configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libFS 1.0.9.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='libFS'
624 PACKAGE_TARNAME='libFS'
625 PACKAGE_VERSION='1.0.9'
626 PACKAGE_STRING='libFS 1.0.9'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 MAKE_LINT_LIB_FALSE
667 MAKE_LINT_LIB_TRUE
668 LINTLIB
669 LINT_FALSE
670 LINT_TRUE
671 LINT_FLAGS
672 LINT
673 LIBOBJS
674 FS_LIBS
675 FS_CFLAGS
676 XTMALLOC_ZERO_CFLAGS
677 XMALLOC_ZERO_CFLAGS
678 MALLOC_ZERO_CFLAGS
679 MAN_SUBSTS
680 XORG_MAN_PAGE
681 ADMIN_MAN_DIR
682 DRIVER_MAN_DIR
683 MISC_MAN_DIR
684 FILE_MAN_DIR
685 LIB_MAN_DIR
686 APP_MAN_DIR
687 ADMIN_MAN_SUFFIX
688 DRIVER_MAN_SUFFIX
689 MISC_MAN_SUFFIX
690 FILE_MAN_SUFFIX
691 LIB_MAN_SUFFIX
692 APP_MAN_SUFFIX
693 INSTALL_CMD
694 PKG_CONFIG_LIBDIR
695 PKG_CONFIG_PATH
696 PKG_CONFIG
697 CHANGELOG_CMD
698 STRICT_CFLAGS
699 CWARNFLAGS
700 BASE_CFLAGS
701 LT_SYS_LIBRARY_PATH
702 OTOOL64
703 OTOOL
704 LIPO
705 NMEDIT
706 DSYMUTIL
707 MANIFEST_TOOL
708 RANLIB
709 ac_ct_AR
710 AR
711 DLLTOOL
712 OBJDUMP
713 FILECMD
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 EGREP
721 GREP
722 SED
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 LIBTOOL
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 AM_BACKSLASH
749 AM_DEFAULT_VERBOSITY
750 AM_DEFAULT_V
751 AM_V
752 CSCOPE
753 ETAGS
754 CTAGS
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
760 AWK
761 mkdir_p
762 MKDIR_P
763 INSTALL_STRIP_PROGRAM
764 STRIP
765 install_sh
766 MAKEINFO
767 AUTOHEADER
768 AUTOMAKE
769 AUTOCONF
770 ACLOCAL
771 VERSION
772 PACKAGE
773 CYGPATH_W
774 am__isrc
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 runstatedir
798 localstatedir
799 sharedstatedir
800 sysconfdir
801 datadir
802 datarootdir
803 libexecdir
804 sbindir
805 bindir
806 program_transform_name
807 prefix
808 exec_prefix
809 PACKAGE_URL
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL
817 am__quote'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_silent_rules
822 enable_dependency_tracking
823 enable_shared
824 enable_static
825 with_pic
826 enable_fast_install
827 with_aix_soname
828 with_gnu_ld
829 with_sysroot
830 enable_libtool_lock
831 enable_selective_werror
832 enable_strict_compilation
833 enable_malloc0returnsnull
834 enable_unix_transport
835 enable_tcp_transport
836 enable_ipv6
837 enable_local_transport
838 with_lint
839 enable_lint_library
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 LT_SYS_LIBRARY_PATH
850 PKG_CONFIG
851 PKG_CONFIG_PATH
852 PKG_CONFIG_LIBDIR
853 FS_CFLAGS
854 FS_LIBS
855 LINT
856 LINT_FLAGS'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
880
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 runstatedir='${localstatedir}/run'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: \`$ac_useropt'"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: \`$ac_useropt'"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -runstatedir | --runstatedir | --runstatedi | --runstated \
1147 | --runstate | --runstat | --runsta | --runst | --runs \
1148 | --run | --ru | --r)
1149 ac_prev=runstatedir ;;
1150 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1151 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1152 | --run=* | --ru=* | --r=*)
1153 runstatedir=$ac_optarg ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: \`$ac_useropt'"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: \`$ac_useropt'"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir runstatedir
1293 do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 printf "%s\n" X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370 else
1371 ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures libFS 1.0.9 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libFS]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1460
1461 cat <<\_ACEOF
1462
1463 Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468 System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 _ACEOF
1472 fi
1473
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of libFS 1.0.9:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480 Optional Features:
1481 --disable-option-checking ignore unrecognized --enable/--with options
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-silent-rules less verbose build output (undo: "make V=1")
1485 --disable-silent-rules verbose build output (undo: "make V=0")
1486 --enable-dependency-tracking
1487 do not reject slow dependency extractors
1488 --disable-dependency-tracking
1489 speeds up one-time build
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --disable-selective-werror
1496 Turn off selective compiler errors. (default:
1497 enabled)
1498 --enable-strict-compilation
1499 Enable all warnings from compiler and make them
1500 errors (default: disabled)
1501 --enable-malloc0returnsnull
1502 malloc(0) returns NULL (default: auto)
1503 --enable-unix-transport Enable UNIX domain socket transport
1504 --enable-tcp-transport Enable TCP socket transport
1505 --enable-ipv6 Enable IPv6 support
1506 --enable-local-transport
1507 Enable os-specific local transport
1508 --enable-lint-library Create lint library (default: disabled)
1509
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1514 both]
1515 --with-aix-soname=aix|svr4|both
1516 shared library versioning (aka "SONAME") variant to
1517 provide on AIX, [default=aix].
1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1519 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1520 compiler's sysroot if not specified).
1521 --with-lint Use a lint-style source code checker (default:
1522 disabled)
1523
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1532 LT_SYS_LIBRARY_PATH
1533 User-defined run-time library search path.
1534 PKG_CONFIG path to pkg-config utility
1535 PKG_CONFIG_PATH
1536 directories to add to pkg-config's search path
1537 PKG_CONFIG_LIBDIR
1538 path overriding pkg-config's built-in search path
1539 FS_CFLAGS C compiler flags for FS, overriding pkg-config
1540 FS_LIBS linker flags for FS, overriding pkg-config
1541 LINT Path to a lint-style command
1542 LINT_FLAGS Flags for the lint-style command
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for configure.gnu first; this name is used for a wrapper for
1594 # Metaconfig's "Configure" on case-insensitive file systems.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 libFS configure 1.0.9
1612 generated by GNU Autoconf 2.71
1613
1614 Copyright (C) 2021 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1619 fi
1620
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1624
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext conftest.beam
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 printf "%s\n" "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext
1651 then :
1652 ac_retval=0
1653 else $as_nop
1654 printf "%s\n" "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 printf %s "checking for $2... " >&6; }
1673 if eval test \${$3+y}
1674 then :
1675 printf %s "(cached) " >&6
1676 else $as_nop
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"
1683 then :
1684 eval "$3=yes"
1685 else $as_nop
1686 eval "$3=no"
1687 fi
1688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1689 fi
1690 eval ac_res=\$$3
1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 printf "%s\n" "$ac_res" >&6; }
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694
1695 } # ac_fn_c_check_header_compile
1696
1697 # ac_fn_c_try_link LINENO
1698 # -----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_link ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1704 if { { ac_try="$ac_link"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 printf "%s\n" "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest$ac_exeext && {
1723 test "$cross_compiling" = yes ||
1724 test -x conftest$ac_exeext
1725 }
1726 then :
1727 ac_retval=0
1728 else $as_nop
1729 printf "%s\n" "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733 fi
1734 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736 # interfere with the next link command; also delete a directory that is
1737 # left behind by Apple's compiler. We do this before executing the actions.
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_link
1743
1744 # ac_fn_c_check_func LINENO FUNC VAR
1745 # ----------------------------------
1746 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1747 ac_fn_c_check_func ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 printf %s "checking for $2... " >&6; }
1752 if eval test \${$3+y}
1753 then :
1754 printf %s "(cached) " >&6
1755 else $as_nop
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1758 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1760 #define $2 innocuous_$2
1761
1762 /* System header to define __stub macros and hopefully few prototypes,
1763 which can conflict with char $2 (); below. */
1764
1765 #include <limits.h>
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main (void)
1784 {
1785 return $2 ();
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"
1791 then :
1792 eval "$3=yes"
1793 else $as_nop
1794 eval "$3=no"
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1797 conftest$ac_exeext conftest.$ac_ext
1798 fi
1799 eval ac_res=\$$3
1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 printf "%s\n" "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_func
1805
1806 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1807 # ------------------------------------------------------------------
1808 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1809 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1810 ac_fn_check_decl ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 as_decl_name=`echo $2|sed 's/ *(.*//'`
1814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1815 printf %s "checking whether $as_decl_name is declared... " >&6; }
1816 if eval test \${$3+y}
1817 then :
1818 printf %s "(cached) " >&6
1819 else $as_nop
1820 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1821 eval ac_save_FLAGS=\$$6
1822 as_fn_append $6 " $5"
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 $4
1826 int
1827 main (void)
1828 {
1829 #ifndef $as_decl_name
1830 #ifdef __cplusplus
1831 (void) $as_decl_use;
1832 #else
1833 (void) $as_decl_name;
1834 #endif
1835 #endif
1836
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"
1842 then :
1843 eval "$3=yes"
1844 else $as_nop
1845 eval "$3=no"
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1848 eval $6=\$ac_save_FLAGS
1849
1850 fi
1851 eval ac_res=\$$3
1852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 printf "%s\n" "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_check_decl
1857
1858 # ac_fn_c_try_run LINENO
1859 # ----------------------
1860 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1861 # executables *can* be run.
1862 ac_fn_c_try_run ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 printf "%s\n" "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>&5
1873 ac_status=$?
1874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876 { { case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 printf "%s\n" "$ac_try_echo"; } >&5
1882 (eval "$ac_try") 2>&5
1883 ac_status=$?
1884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; }; }
1886 then :
1887 ac_retval=0
1888 else $as_nop
1889 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1890 printf "%s\n" "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=$ac_status
1894 fi
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1898
1899 } # ac_fn_c_try_run
1900
1901 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1902 # ----------------------------------------------------
1903 # Tries to find if the field MEMBER exists in type AGGR, after including
1904 # INCLUDES, setting cache variable VAR accordingly.
1905 ac_fn_c_check_member ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1909 printf %s "checking for $2.$3... " >&6; }
1910 if eval test \${$4+y}
1911 then :
1912 printf %s "(cached) " >&6
1913 else $as_nop
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 $5
1917 int
1918 main (void)
1919 {
1920 static $2 ac_aggr;
1921 if (ac_aggr.$3)
1922 return 0;
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"
1928 then :
1929 eval "$4=yes"
1930 else $as_nop
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 $5
1934 int
1935 main (void)
1936 {
1937 static $2 ac_aggr;
1938 if (sizeof ac_aggr.$3)
1939 return 0;
1940 ;
1941 return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"
1945 then :
1946 eval "$4=yes"
1947 else $as_nop
1948 eval "$4=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$4
1955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 printf "%s\n" "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_check_member
1960
1961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962 # -------------------------------------------
1963 # Tests whether TYPE exists after having included INCLUDES, setting cache
1964 # variable VAR accordingly.
1965 ac_fn_c_check_type ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 printf %s "checking for $2... " >&6; }
1970 if eval test \${$3+y}
1971 then :
1972 printf %s "(cached) " >&6
1973 else $as_nop
1974 eval "$3=no"
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main (void)
1980 {
1981 if (sizeof ($2))
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"
1988 then :
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $4
1992 int
1993 main (void)
1994 {
1995 if (sizeof (($2)))
1996 return 0;
1997 ;
1998 return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"
2002 then :
2003
2004 else $as_nop
2005 eval "$3=yes"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2010 fi
2011 eval ac_res=\$$3
2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 printf "%s\n" "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016 } # ac_fn_c_check_type
2017 ac_configure_args_raw=
2018 for ac_arg
2019 do
2020 case $ac_arg in
2021 *\'*)
2022 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 esac
2024 as_fn_append ac_configure_args_raw " '$ac_arg'"
2025 done
2026
2027 case $ac_configure_args_raw in
2028 *$as_nl*)
2029 ac_safe_unquote= ;;
2030 *)
2031 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2032 ac_unsafe_a="$ac_unsafe_z#~"
2033 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2034 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2035 esac
2036
2037 cat >config.log <<_ACEOF
2038 This file contains any messages produced by compilers while
2039 running configure, to aid debugging if configure makes a mistake.
2040
2041 It was created by libFS $as_me 1.0.9, which was
2042 generated by GNU Autoconf 2.71. Invocation command line was
2043
2044 $ $0$ac_configure_args_raw
2045
2046 _ACEOF
2047 exec 5>>config.log
2048 {
2049 cat <<_ASUNAME
2050 ## --------- ##
2051 ## Platform. ##
2052 ## --------- ##
2053
2054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2062
2063 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2064 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2067 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2068 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2069 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070
2071 _ASUNAME
2072
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076 IFS=$as_save_IFS
2077 case $as_dir in #(((
2078 '') as_dir=./ ;;
2079 */) ;;
2080 *) as_dir=$as_dir/ ;;
2081 esac
2082 printf "%s\n" "PATH: $as_dir"
2083 done
2084 IFS=$as_save_IFS
2085
2086 } >&5
2087
2088 cat >&5 <<_ACEOF
2089
2090
2091 ## ----------- ##
2092 ## Core tests. ##
2093 ## ----------- ##
2094
2095 _ACEOF
2096
2097
2098 # Keep a trace of the command line.
2099 # Strip out --no-create and --no-recursion so they do not pile up.
2100 # Strip out --silent because we don't want to record it for future runs.
2101 # Also quote any args containing shell meta-characters.
2102 # Make two passes to allow for proper duplicate-argument suppression.
2103 ac_configure_args=
2104 ac_configure_args0=
2105 ac_configure_args1=
2106 ac_must_keep_next=false
2107 for ac_pass in 1 2
2108 do
2109 for ac_arg
2110 do
2111 case $ac_arg in
2112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114 | -silent | --silent | --silen | --sile | --sil)
2115 continue ;;
2116 *\'*)
2117 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 esac
2119 case $ac_pass in
2120 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2121 2)
2122 as_fn_append ac_configure_args1 " '$ac_arg'"
2123 if test $ac_must_keep_next = true; then
2124 ac_must_keep_next=false # Got value, back to normal.
2125 else
2126 case $ac_arg in
2127 *=* | --config-cache | -C | -disable-* | --disable-* \
2128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130 | -with-* | --with-* | -without-* | --without-* | --x)
2131 case "$ac_configure_args0 " in
2132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133 esac
2134 ;;
2135 -* ) ac_must_keep_next=true ;;
2136 esac
2137 fi
2138 as_fn_append ac_configure_args " '$ac_arg'"
2139 ;;
2140 esac
2141 done
2142 done
2143 { ac_configure_args0=; unset ac_configure_args0;}
2144 { ac_configure_args1=; unset ac_configure_args1;}
2145
2146 # When interrupted or exit'd, cleanup temporary files, and complete
2147 # config.log. We remove comments because anyway the quotes in there
2148 # would cause problems or look ugly.
2149 # WARNING: Use '\'' to represent an apostrophe within the trap.
2150 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151 trap 'exit_status=$?
2152 # Sanitize IFS.
2153 IFS=" "" $as_nl"
2154 # Save into config.log some information that might help in debugging.
2155 {
2156 echo
2157
2158 printf "%s\n" "## ---------------- ##
2159 ## Cache variables. ##
2160 ## ---------------- ##"
2161 echo
2162 # The following way of writing the cache mishandles newlines in values,
2163 (
2164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165 eval ac_val=\$$ac_var
2166 case $ac_val in #(
2167 *${as_nl}*)
2168 case $ac_var in #(
2169 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2170 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2171 esac
2172 case $ac_var in #(
2173 _ | IFS | as_nl) ;; #(
2174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2175 *) { eval $ac_var=; unset $ac_var;} ;;
2176 esac ;;
2177 esac
2178 done
2179 (set) 2>&1 |
2180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2181 *${as_nl}ac_space=\ *)
2182 sed -n \
2183 "s/'\''/'\''\\\\'\'''\''/g;
2184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2185 ;; #(
2186 *)
2187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2188 ;;
2189 esac |
2190 sort
2191 )
2192 echo
2193
2194 printf "%s\n" "## ----------------- ##
2195 ## Output variables. ##
2196 ## ----------------- ##"
2197 echo
2198 for ac_var in $ac_subst_vars
2199 do
2200 eval ac_val=\$$ac_var
2201 case $ac_val in
2202 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203 esac
2204 printf "%s\n" "$ac_var='\''$ac_val'\''"
2205 done | sort
2206 echo
2207
2208 if test -n "$ac_subst_files"; then
2209 printf "%s\n" "## ------------------- ##
2210 ## File substitutions. ##
2211 ## ------------------- ##"
2212 echo
2213 for ac_var in $ac_subst_files
2214 do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in
2217 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 esac
2219 printf "%s\n" "$ac_var='\''$ac_val'\''"
2220 done | sort
2221 echo
2222 fi
2223
2224 if test -s confdefs.h; then
2225 printf "%s\n" "## ----------- ##
2226 ## confdefs.h. ##
2227 ## ----------- ##"
2228 echo
2229 cat confdefs.h
2230 echo
2231 fi
2232 test "$ac_signal" != 0 &&
2233 printf "%s\n" "$as_me: caught signal $ac_signal"
2234 printf "%s\n" "$as_me: exit $exit_status"
2235 } >&5
2236 rm -f core *.core core.conftest.* &&
2237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2238 exit $exit_status
2239 ' 0
2240 for ac_signal in 1 2 13 15; do
2241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2242 done
2243 ac_signal=0
2244
2245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2246 rm -f -r conftest* confdefs.h
2247
2248 printf "%s\n" "/* confdefs.h */" > confdefs.h
2249
2250 # Predefined preprocessor variables.
2251
2252 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2253
2254 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2255
2256 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2257
2258 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2259
2260 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2261
2262 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2263
2264
2265 # Let the site file select an alternate cache file if it wants to.
2266 # Prefer an explicitly selected file to automatically selected ones.
2267 if test -n "$CONFIG_SITE"; then
2268 ac_site_files="$CONFIG_SITE"
2269 elif test "x$prefix" != xNONE; then
2270 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2271 else
2272 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2273 fi
2274
2275 for ac_site_file in $ac_site_files
2276 do
2277 case $ac_site_file in #(
2278 */*) :
2279 ;; #(
2280 *) :
2281 ac_site_file=./$ac_site_file ;;
2282 esac
2283 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2286 sed 's/^/| /' "$ac_site_file" >&5
2287 . "$ac_site_file" \
2288 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2290 as_fn_error $? "failed to load site script $ac_site_file
2291 See \`config.log' for more details" "$LINENO" 5; }
2292 fi
2293 done
2294
2295 if test -r "$cache_file"; then
2296 # Some versions of bash will fail to source /dev/null (special files
2297 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2298 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2301 case $cache_file in
2302 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303 *) . "./$cache_file";;
2304 esac
2305 fi
2306 else
2307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2309 >$cache_file
2310 fi
2311
2312 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2313 # Test code for whether the C compiler supports C89 (global declarations)
2314 ac_c_conftest_c89_globals='
2315 /* Does the compiler advertise C89 conformance?
2316 Do not test the value of __STDC__, because some compilers set it to 0
2317 while being otherwise adequately conformant. */
2318 #if !defined __STDC__
2319 # error "Compiler does not advertise C89 conformance"
2320 #endif
2321
2322 #include <stddef.h>
2323 #include <stdarg.h>
2324 struct stat;
2325 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2326 struct buf { int x; };
2327 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2328 static char *e (p, i)
2329 char **p;
2330 int i;
2331 {
2332 return p[i];
2333 }
2334 static char *f (char * (*g) (char **, int), char **p, ...)
2335 {
2336 char *s;
2337 va_list v;
2338 va_start (v,p);
2339 s = g (p, va_arg (v,int));
2340 va_end (v);
2341 return s;
2342 }
2343
2344 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2345 function prototypes and stuff, but not \xHH hex character constants.
2346 These do not provoke an error unfortunately, instead are silently treated
2347 as an "x". The following induces an error, until -std is added to get
2348 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2349 array size at least. It is necessary to write \x00 == 0 to get something
2350 that is true only with -std. */
2351 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2352
2353 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2354 inside strings and character constants. */
2355 #define FOO(x) '\''x'\''
2356 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2357
2358 int test (int i, double x);
2359 struct s1 {int (*f) (int a);};
2360 struct s2 {int (*f) (double a);};
2361 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2362 int, int);'
2363
2364 # Test code for whether the C compiler supports C89 (body of main).
2365 ac_c_conftest_c89_main='
2366 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2367 '
2368
2369 # Test code for whether the C compiler supports C99 (global declarations)
2370 ac_c_conftest_c99_globals='
2371 // Does the compiler advertise C99 conformance?
2372 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2373 # error "Compiler does not advertise C99 conformance"
2374 #endif
2375
2376 #include <stdbool.h>
2377 extern int puts (const char *);
2378 extern int printf (const char *, ...);
2379 extern int dprintf (int, const char *, ...);
2380 extern void *malloc (size_t);
2381
2382 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2383 // dprintf is used instead of fprintf to avoid needing to declare
2384 // FILE and stderr.
2385 #define debug(...) dprintf (2, __VA_ARGS__)
2386 #define showlist(...) puts (#__VA_ARGS__)
2387 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2388 static void
2389 test_varargs_macros (void)
2390 {
2391 int x = 1234;
2392 int y = 5678;
2393 debug ("Flag");
2394 debug ("X = %d\n", x);
2395 showlist (The first, second, and third items.);
2396 report (x>y, "x is %d but y is %d", x, y);
2397 }
2398
2399 // Check long long types.
2400 #define BIG64 18446744073709551615ull
2401 #define BIG32 4294967295ul
2402 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2403 #if !BIG_OK
2404 #error "your preprocessor is broken"
2405 #endif
2406 #if BIG_OK
2407 #else
2408 #error "your preprocessor is broken"
2409 #endif
2410 static long long int bignum = -9223372036854775807LL;
2411 static unsigned long long int ubignum = BIG64;
2412
2413 struct incomplete_array
2414 {
2415 int datasize;
2416 double data[];
2417 };
2418
2419 struct named_init {
2420 int number;
2421 const wchar_t *name;
2422 double average;
2423 };
2424
2425 typedef const char *ccp;
2426
2427 static inline int
2428 test_restrict (ccp restrict text)
2429 {
2430 // See if C++-style comments work.
2431 // Iterate through items via the restricted pointer.
2432 // Also check for declarations in for loops.
2433 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2434 continue;
2435 return 0;
2436 }
2437
2438 // Check varargs and va_copy.
2439 static bool
2440 test_varargs (const char *format, ...)
2441 {
2442 va_list args;
2443 va_start (args, format);
2444 va_list args_copy;
2445 va_copy (args_copy, args);
2446
2447 const char *str = "";
2448 int number = 0;
2449 float fnumber = 0;
2450
2451 while (*format)
2452 {
2453 switch (*format++)
2454 {
2455 case '\''s'\'': // string
2456 str = va_arg (args_copy, const char *);
2457 break;
2458 case '\''d'\'': // int
2459 number = va_arg (args_copy, int);
2460 break;
2461 case '\''f'\'': // float
2462 fnumber = va_arg (args_copy, double);
2463 break;
2464 default:
2465 break;
2466 }
2467 }
2468 va_end (args_copy);
2469 va_end (args);
2470
2471 return *str && number && fnumber;
2472 }
2473 '
2474
2475 # Test code for whether the C compiler supports C99 (body of main).
2476 ac_c_conftest_c99_main='
2477 // Check bool.
2478 _Bool success = false;
2479 success |= (argc != 0);
2480
2481 // Check restrict.
2482 if (test_restrict ("String literal") == 0)
2483 success = true;
2484 char *restrict newvar = "Another string";
2485
2486 // Check varargs.
2487 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2488 test_varargs_macros ();
2489
2490 // Check flexible array members.
2491 struct incomplete_array *ia =
2492 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2493 ia->datasize = 10;
2494 for (int i = 0; i < ia->datasize; ++i)
2495 ia->data[i] = i * 1.234;
2496
2497 // Check named initializers.
2498 struct named_init ni = {
2499 .number = 34,
2500 .name = L"Test wide string",
2501 .average = 543.34343,
2502 };
2503
2504 ni.number = 58;
2505
2506 int dynamic_array[ni.number];
2507 dynamic_array[0] = argv[0][0];
2508 dynamic_array[ni.number - 1] = 543;
2509
2510 // work around unused variable warnings
2511 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2512 || dynamic_array[ni.number - 1] != 543);
2513 '
2514
2515 # Test code for whether the C compiler supports C11 (global declarations)
2516 ac_c_conftest_c11_globals='
2517 // Does the compiler advertise C11 conformance?
2518 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2519 # error "Compiler does not advertise C11 conformance"
2520 #endif
2521
2522 // Check _Alignas.
2523 char _Alignas (double) aligned_as_double;
2524 char _Alignas (0) no_special_alignment;
2525 extern char aligned_as_int;
2526 char _Alignas (0) _Alignas (int) aligned_as_int;
2527
2528 // Check _Alignof.
2529 enum
2530 {
2531 int_alignment = _Alignof (int),
2532 int_array_alignment = _Alignof (int[100]),
2533 char_alignment = _Alignof (char)
2534 };
2535 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2536
2537 // Check _Noreturn.
2538 int _Noreturn does_not_return (void) { for (;;) continue; }
2539
2540 // Check _Static_assert.
2541 struct test_static_assert
2542 {
2543 int x;
2544 _Static_assert (sizeof (int) <= sizeof (long int),
2545 "_Static_assert does not work in struct");
2546 long int y;
2547 };
2548
2549 // Check UTF-8 literals.
2550 #define u8 syntax error!
2551 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2552
2553 // Check duplicate typedefs.
2554 typedef long *long_ptr;
2555 typedef long int *long_ptr;
2556 typedef long_ptr long_ptr;
2557
2558 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2559 struct anonymous
2560 {
2561 union {
2562 struct { int i; int j; };
2563 struct { int k; long int l; } w;
2564 };
2565 int m;
2566 } v1;
2567 '
2568
2569 # Test code for whether the C compiler supports C11 (body of main).
2570 ac_c_conftest_c11_main='
2571 _Static_assert ((offsetof (struct anonymous, i)
2572 == offsetof (struct anonymous, w.k)),
2573 "Anonymous union alignment botch");
2574 v1.i = 2;
2575 v1.w.k = 5;
2576 ok |= v1.i != 5;
2577 '
2578
2579 # Test code for whether the C compiler supports C11 (complete).
2580 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2581 ${ac_c_conftest_c99_globals}
2582 ${ac_c_conftest_c11_globals}
2583
2584 int
2585 main (int argc, char **argv)
2586 {
2587 int ok = 0;
2588 ${ac_c_conftest_c89_main}
2589 ${ac_c_conftest_c99_main}
2590 ${ac_c_conftest_c11_main}
2591 return ok;
2592 }
2593 "
2594
2595 # Test code for whether the C compiler supports C99 (complete).
2596 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2597 ${ac_c_conftest_c99_globals}
2598
2599 int
2600 main (int argc, char **argv)
2601 {
2602 int ok = 0;
2603 ${ac_c_conftest_c89_main}
2604 ${ac_c_conftest_c99_main}
2605 return ok;
2606 }
2607 "
2608
2609 # Test code for whether the C compiler supports C89 (complete).
2610 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2611
2612 int
2613 main (int argc, char **argv)
2614 {
2615 int ok = 0;
2616 ${ac_c_conftest_c89_main}
2617 return ok;
2618 }
2619 "
2620
2621 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2622 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2623 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2624 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2625 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2626 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2627 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2628 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2629 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2630 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2631
2632 # Auxiliary files required by this configure script.
2633 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2634
2635 # Locations in which to look for auxiliary files.
2636 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2637
2638 # Search for a directory containing all of the required auxiliary files,
2639 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2640 # If we don't find one directory that contains all the files we need,
2641 # we report the set of missing files from the *first* directory in
2642 # $ac_aux_dir_candidates and give up.
2643 ac_missing_aux_files=""
2644 ac_first_candidate=:
2645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 as_found=false
2648 for as_dir in $ac_aux_dir_candidates
2649 do
2650 IFS=$as_save_IFS
2651 case $as_dir in #(((
2652 '') as_dir=./ ;;
2653 */) ;;
2654 *) as_dir=$as_dir/ ;;
2655 esac
2656 as_found=:
2657
2658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2659 ac_aux_dir_found=yes
2660 ac_install_sh=
2661 for ac_aux in $ac_aux_files
2662 do
2663 # As a special case, if "install-sh" is required, that requirement
2664 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2665 # and $ac_install_sh is set appropriately for whichever one is found.
2666 if test x"$ac_aux" = x"install-sh"
2667 then
2668 if test -f "${as_dir}install-sh"; then
2669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2670 ac_install_sh="${as_dir}install-sh -c"
2671 elif test -f "${as_dir}install.sh"; then
2672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2673 ac_install_sh="${as_dir}install.sh -c"
2674 elif test -f "${as_dir}shtool"; then
2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2676 ac_install_sh="${as_dir}shtool install -c"
2677 else
2678 ac_aux_dir_found=no
2679 if $ac_first_candidate; then
2680 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2681 else
2682 break
2683 fi
2684 fi
2685 else
2686 if test -f "${as_dir}${ac_aux}"; then
2687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2688 else
2689 ac_aux_dir_found=no
2690 if $ac_first_candidate; then
2691 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2692 else
2693 break
2694 fi
2695 fi
2696 fi
2697 done
2698 if test "$ac_aux_dir_found" = yes; then
2699 ac_aux_dir="$as_dir"
2700 break
2701 fi
2702 ac_first_candidate=false
2703
2704 as_found=false
2705 done
2706 IFS=$as_save_IFS
2707 if $as_found
2708 then :
2709
2710 else $as_nop
2711 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2712 fi
2713
2714
2715 # These three variables are undocumented and unsupported,
2716 # and are intended to be withdrawn in a future Autoconf release.
2717 # They can cause serious problems if a builder's source tree is in a directory
2718 # whose full name contains unusual characters.
2719 if test -f "${ac_aux_dir}config.guess"; then
2720 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2721 fi
2722 if test -f "${ac_aux_dir}config.sub"; then
2723 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2724 fi
2725 if test -f "$ac_aux_dir/configure"; then
2726 ac_configure="$SHELL ${ac_aux_dir}configure"
2727 fi
2728
2729 # Check that the precious variables saved in the cache have kept the same
2730 # value.
2731 ac_cache_corrupted=false
2732 for ac_var in $ac_precious_vars; do
2733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2734 eval ac_new_set=\$ac_env_${ac_var}_set
2735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2736 eval ac_new_val=\$ac_env_${ac_var}_value
2737 case $ac_old_set,$ac_new_set in
2738 set,)
2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2740 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2741 ac_cache_corrupted=: ;;
2742 ,set)
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2744 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2745 ac_cache_corrupted=: ;;
2746 ,);;
2747 *)
2748 if test "x$ac_old_val" != "x$ac_new_val"; then
2749 # differences in whitespace do not lead to failure.
2750 ac_old_val_w=`echo x $ac_old_val`
2751 ac_new_val_w=`echo x $ac_new_val`
2752 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2754 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2755 ac_cache_corrupted=:
2756 else
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2758 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2759 eval $ac_var=\$ac_old_val
2760 fi
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2762 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2764 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2765 fi;;
2766 esac
2767 # Pass precious variables to config.status.
2768 if test "$ac_new_set" = set; then
2769 case $ac_new_val in
2770 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2771 *) ac_arg=$ac_var=$ac_new_val ;;
2772 esac
2773 case " $ac_configure_args " in
2774 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2775 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2776 esac
2777 fi
2778 done
2779 if $ac_cache_corrupted; then
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2781 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2783 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2784 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2785 and start over" "$LINENO" 5
2786 fi
2787 ## -------------------- ##
2788 ## Main body of script. ##
2789 ## -------------------- ##
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797
2798
2799 ac_config_headers="$ac_config_headers config.h"
2800
2801
2802 # Initialize Automake
2803 am__api_version='1.16'
2804
2805
2806
2807 # Find a good install program. We prefer a C program (faster),
2808 # so one script is as good as another. But avoid the broken or
2809 # incompatible versions:
2810 # SysV /etc/install, /usr/sbin/install
2811 # SunOS /usr/etc/install
2812 # IRIX /sbin/install
2813 # AIX /bin/install
2814 # AmigaOS /C/install, which installs bootblocks on floppy discs
2815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2818 # OS/2's system install, which has a completely different semantic
2819 # ./install, which can be erroneously created by make from ./install.sh.
2820 # Reject install programs that cannot install multiple files.
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2822 printf %s "checking for a BSD-compatible install... " >&6; }
2823 if test -z "$INSTALL"; then
2824 if test ${ac_cv_path_install+y}
2825 then :
2826 printf %s "(cached) " >&6
2827 else $as_nop
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 case $as_dir in #(((
2833 '') as_dir=./ ;;
2834 */) ;;
2835 *) as_dir=$as_dir/ ;;
2836 esac
2837 # Account for fact that we put trailing slashes in our PATH walk.
2838 case $as_dir in #((
2839 ./ | /[cC]/* | \
2840 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2841 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2842 /usr/ucb/* ) ;;
2843 *)
2844 # OSF1 and SCO ODT 3.0 have their own names for install.
2845 # Don't use installbsd from OSF since it installs stuff as root
2846 # by default.
2847 for ac_prog in ginstall scoinst install; do
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2850 if test $ac_prog = install &&
2851 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2852 # AIX install. It has an incompatible calling convention.
2853 :
2854 elif test $ac_prog = install &&
2855 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2856 # program-specific install script used by HP pwplus--don't use.
2857 :
2858 else
2859 rm -rf conftest.one conftest.two conftest.dir
2860 echo one > conftest.one
2861 echo two > conftest.two
2862 mkdir conftest.dir
2863 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2864 test -s conftest.one && test -s conftest.two &&
2865 test -s conftest.dir/conftest.one &&
2866 test -s conftest.dir/conftest.two
2867 then
2868 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2869 break 3
2870 fi
2871 fi
2872 fi
2873 done
2874 done
2875 ;;
2876 esac
2877
2878 done
2879 IFS=$as_save_IFS
2880
2881 rm -rf conftest.one conftest.two conftest.dir
2882
2883 fi
2884 if test ${ac_cv_path_install+y}; then
2885 INSTALL=$ac_cv_path_install
2886 else
2887 # As a last resort, use the slow shell script. Don't cache a
2888 # value for INSTALL within a source directory, because that will
2889 # break other packages using the cache if that directory is
2890 # removed, or if the value is a relative name.
2891 INSTALL=$ac_install_sh
2892 fi
2893 fi
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2895 printf "%s\n" "$INSTALL" >&6; }
2896
2897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2898 # It thinks the first close brace ends the variable substitution.
2899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2900
2901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2902
2903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2904
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2906 printf %s "checking whether build environment is sane... " >&6; }
2907 # Reject unsafe characters in $srcdir or the absolute working directory
2908 # name. Accept space and tab only in the latter.
2909 am_lf='
2910 '
2911 case `pwd` in
2912 *[\\\"\#\$\&\'\`$am_lf]*)
2913 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2914 esac
2915 case $srcdir in
2916 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2917 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2918 esac
2919
2920 # Do 'set' in a subshell so we don't clobber the current shell's
2921 # arguments. Must try -L first in case configure is actually a
2922 # symlink; some systems play weird games with the mod time of symlinks
2923 # (eg FreeBSD returns the mod time of the symlink's containing
2924 # directory).
2925 if (
2926 am_has_slept=no
2927 for am_try in 1 2; do
2928 echo "timestamp, slept: $am_has_slept" > conftest.file
2929 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2930 if test "$*" = "X"; then
2931 # -L didn't work.
2932 set X `ls -t "$srcdir/configure" conftest.file`
2933 fi
2934 if test "$*" != "X $srcdir/configure conftest.file" \
2935 && test "$*" != "X conftest.file $srcdir/configure"; then
2936
2937 # If neither matched, then we have a broken ls. This can happen
2938 # if, for instance, CONFIG_SHELL is bash and it inherits a
2939 # broken ls alias from the environment. This has actually
2940 # happened. Such a system could not be considered "sane".
2941 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2942 alias in your environment" "$LINENO" 5
2943 fi
2944 if test "$2" = conftest.file || test $am_try -eq 2; then
2945 break
2946 fi
2947 # Just in case.
2948 sleep 1
2949 am_has_slept=yes
2950 done
2951 test "$2" = conftest.file
2952 )
2953 then
2954 # Ok.
2955 :
2956 else
2957 as_fn_error $? "newly created file is older than distributed files!
2958 Check your system clock" "$LINENO" 5
2959 fi
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2961 printf "%s\n" "yes" >&6; }
2962 # If we didn't sleep, we still need to ensure time stamps of config.status and
2963 # generated files are strictly newer.
2964 am_sleep_pid=
2965 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2966 ( sleep 1 ) &
2967 am_sleep_pid=$!
2968 fi
2969
2970 rm -f conftest.file
2971
2972 test "$program_prefix" != NONE &&
2973 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2974 # Use a double $ so make ignores it.
2975 test "$program_suffix" != NONE &&
2976 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2977 # Double any \ or $.
2978 # By default was `s,x,x', remove it if useless.
2979 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2980 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2981
2982
2983 # Expand $ac_aux_dir to an absolute path.
2984 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2985
2986
2987 if test x"${MISSING+set}" != xset; then
2988 MISSING="\${SHELL} '$am_aux_dir/missing'"
2989 fi
2990 # Use eval to expand $SHELL
2991 if eval "$MISSING --is-lightweight"; then
2992 am_missing_run="$MISSING "
2993 else
2994 am_missing_run=
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2996 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2997 fi
2998
2999 if test x"${install_sh+set}" != xset; then
3000 case $am_aux_dir in
3001 *\ * | *\ *)
3002 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3003 *)
3004 install_sh="\${SHELL} $am_aux_dir/install-sh"
3005 esac
3006 fi
3007
3008 # Installed binaries are usually stripped using 'strip' when the user
3009 # run "make install-strip". However 'strip' might not be the right
3010 # tool to use in cross-compilation environments, therefore Automake
3011 # will honor the 'STRIP' environment variable to overrule this program.
3012 if test "$cross_compiling" != no; then
3013 if test -n "$ac_tool_prefix"; then
3014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}strip; ac_word=$2
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 printf %s "checking for $ac_word... " >&6; }
3018 if test ${ac_cv_prog_STRIP+y}
3019 then :
3020 printf %s "(cached) " >&6
3021 else $as_nop
3022 if test -n "$STRIP"; then
3023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028 IFS=$as_save_IFS
3029 case $as_dir in #(((
3030 '') as_dir=./ ;;
3031 */) ;;
3032 *) as_dir=$as_dir/ ;;
3033 esac
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 STRIP=$ac_cv_prog_STRIP
3047 if test -n "$STRIP"; then
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049 printf "%s\n" "$STRIP" >&6; }
3050 else
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 printf "%s\n" "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_STRIP"; then
3058 ac_ct_STRIP=$STRIP
3059 # Extract the first word of "strip", so it can be a program name with args.
3060 set dummy strip; ac_word=$2
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 printf %s "checking for $ac_word... " >&6; }
3063 if test ${ac_cv_prog_ac_ct_STRIP+y}
3064 then :
3065 printf %s "(cached) " >&6
3066 else $as_nop
3067 if test -n "$ac_ct_STRIP"; then
3068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 case $as_dir in #(((
3075 '') as_dir=./ ;;
3076 */) ;;
3077 *) as_dir=$as_dir/ ;;
3078 esac
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_ac_ct_STRIP="strip"
3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090 fi
3091 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3092 if test -n "$ac_ct_STRIP"; then
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3094 printf "%s\n" "$ac_ct_STRIP" >&6; }
3095 else
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 printf "%s\n" "no" >&6; }
3098 fi
3099
3100 if test "x$ac_ct_STRIP" = x; then
3101 STRIP=":"
3102 else
3103 case $cross_compiling:$ac_tool_warned in
3104 yes:)
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3107 ac_tool_warned=yes ;;
3108 esac
3109 STRIP=$ac_ct_STRIP
3110 fi
3111 else
3112 STRIP="$ac_cv_prog_STRIP"
3113 fi
3114
3115 fi
3116 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3117
3118
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3120 printf %s "checking for a race-free mkdir -p... " >&6; }
3121 if test -z "$MKDIR_P"; then
3122 if test ${ac_cv_path_mkdir+y}
3123 then :
3124 printf %s "(cached) " >&6
3125 else $as_nop
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3128 do
3129 IFS=$as_save_IFS
3130 case $as_dir in #(((
3131 '') as_dir=./ ;;
3132 */) ;;
3133 *) as_dir=$as_dir/ ;;
3134 esac
3135 for ac_prog in mkdir gmkdir; do
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3138 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3139 'mkdir ('*'coreutils) '* | \
3140 'BusyBox '* | \
3141 'mkdir (fileutils) '4.1*)
3142 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3143 break 3;;
3144 esac
3145 done
3146 done
3147 done
3148 IFS=$as_save_IFS
3149
3150 fi
3151
3152 test -d ./--version && rmdir ./--version
3153 if test ${ac_cv_path_mkdir+y}; then
3154 MKDIR_P="$ac_cv_path_mkdir -p"
3155 else
3156 # As a last resort, use the slow shell script. Don't cache a
3157 # value for MKDIR_P within a source directory, because that will
3158 # break other packages using the cache if that directory is
3159 # removed, or if the value is a relative name.
3160 MKDIR_P="$ac_install_sh -d"
3161 fi
3162 fi
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3164 printf "%s\n" "$MKDIR_P" >&6; }
3165
3166 for ac_prog in gawk mawk nawk awk
3167 do
3168 # Extract the first word of "$ac_prog", so it can be a program name with args.
3169 set dummy $ac_prog; ac_word=$2
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 printf %s "checking for $ac_word... " >&6; }
3172 if test ${ac_cv_prog_AWK+y}
3173 then :
3174 printf %s "(cached) " >&6
3175 else $as_nop
3176 if test -n "$AWK"; then
3177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 case $as_dir in #(((
3184 '') as_dir=./ ;;
3185 */) ;;
3186 *) as_dir=$as_dir/ ;;
3187 esac
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_AWK="$ac_prog"
3191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 AWK=$ac_cv_prog_AWK
3201 if test -n "$AWK"; then
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3203 printf "%s\n" "$AWK" >&6; }
3204 else
3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 printf "%s\n" "no" >&6; }
3207 fi
3208
3209
3210 test -n "$AWK" && break
3211 done
3212
3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3214 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3215 set x ${MAKE-make}
3216 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3217 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3218 then :
3219 printf %s "(cached) " >&6
3220 else $as_nop
3221 cat >conftest.make <<\_ACEOF
3222 SHELL = /bin/sh
3223 all:
3224 @echo '@@@%%%=$(MAKE)=@@@%%%'
3225 _ACEOF
3226 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3228 *@@@%%%=?*=@@@%%%*)
3229 eval ac_cv_prog_make_${ac_make}_set=yes;;
3230 *)
3231 eval ac_cv_prog_make_${ac_make}_set=no;;
3232 esac
3233 rm -f conftest.make
3234 fi
3235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3237 printf "%s\n" "yes" >&6; }
3238 SET_MAKE=
3239 else
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 printf "%s\n" "no" >&6; }
3242 SET_MAKE="MAKE=${MAKE-make}"
3243 fi
3244
3245 rm -rf .tst 2>/dev/null
3246 mkdir .tst 2>/dev/null
3247 if test -d .tst; then
3248 am__leading_dot=.
3249 else
3250 am__leading_dot=_
3251 fi
3252 rmdir .tst 2>/dev/null
3253
3254 # Check whether --enable-silent-rules was given.
3255 if test ${enable_silent_rules+y}
3256 then :
3257 enableval=$enable_silent_rules;
3258 fi
3259
3260 case $enable_silent_rules in # (((
3261 yes) AM_DEFAULT_VERBOSITY=0;;
3262 no) AM_DEFAULT_VERBOSITY=1;;
3263 *) AM_DEFAULT_VERBOSITY=1;;
3264 esac
3265 am_make=${MAKE-make}
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3267 printf %s "checking whether $am_make supports nested variables... " >&6; }
3268 if test ${am_cv_make_support_nested_variables+y}
3269 then :
3270 printf %s "(cached) " >&6
3271 else $as_nop
3272 if printf "%s\n" 'TRUE=$(BAR$(V))
3273 BAR0=false
3274 BAR1=true
3275 V=1
3276 am__doit:
3277 @$(TRUE)
3278 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3279 am_cv_make_support_nested_variables=yes
3280 else
3281 am_cv_make_support_nested_variables=no
3282 fi
3283 fi
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3285 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3286 if test $am_cv_make_support_nested_variables = yes; then
3287 AM_V='$(V)'
3288 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3289 else
3290 AM_V=$AM_DEFAULT_VERBOSITY
3291 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3292 fi
3293 AM_BACKSLASH='\'
3294
3295 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3296 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3297 # is not polluted with repeated "-I."
3298 am__isrc=' -I$(srcdir)'
3299 # test to see if srcdir already configured
3300 if test -f $srcdir/config.status; then
3301 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3302 fi
3303 fi
3304
3305 # test whether we have cygpath
3306 if test -z "$CYGPATH_W"; then
3307 if (cygpath --version) >/dev/null 2>/dev/null; then
3308 CYGPATH_W='cygpath -w'
3309 else
3310 CYGPATH_W=echo
3311 fi
3312 fi
3313
3314
3315 # Define the identity of the package.
3316 PACKAGE='libFS'
3317 VERSION='1.0.9'
3318
3319
3320 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3321
3322
3323 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3324
3325 # Some tools Automake needs.
3326
3327 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3328
3329
3330 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3331
3332
3333 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3334
3335
3336 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3337
3338
3339 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3340
3341 # For better backward compatibility. To be removed once Automake 1.9.x
3342 # dies out for good. For more background, see:
3343 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3344 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3345 mkdir_p='$(MKDIR_P)'
3346
3347 # We need awk for the "check" target (and possibly the TAP driver). The
3348 # system "awk" is bad on some platforms.
3349 # Always define AMTAR for backward compatibility. Yes, it's still used
3350 # in the wild :-( We should find a proper way to deprecate it ...
3351 AMTAR='$${TAR-tar}'
3352
3353
3354 # We'll loop over all known methods to create a tar archive until one works.
3355 _am_tools='gnutar pax cpio none'
3356
3357 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3358
3359
3360
3361
3362
3363 # Variables for tags utilities; see am/tags.am
3364 if test -z "$CTAGS"; then
3365 CTAGS=ctags
3366 fi
3367
3368 if test -z "$ETAGS"; then
3369 ETAGS=etags
3370 fi
3371
3372 if test -z "$CSCOPE"; then
3373 CSCOPE=cscope
3374 fi
3375
3376
3377
3378 # POSIX will say in a future version that running "rm -f" with no argument
3379 # is OK; and we want to be able to make that assumption in our Makefile
3380 # recipes. So use an aggressive probe to check that the usage we want is
3381 # actually supported "in the wild" to an acceptable degree.
3382 # See automake bug#10828.
3383 # To make any issue more visible, cause the running configure to be aborted
3384 # by default if the 'rm' program in use doesn't match our expectations; the
3385 # user can still override this though.
3386 if rm -f && rm -fr && rm -rf; then : OK; else
3387 cat >&2 <<'END'
3388 Oops!
3389
3390 Your 'rm' program seems unable to run without file operands specified
3391 on the command line, even when the '-f' option is present. This is contrary
3392 to the behaviour of most rm programs out there, and not conforming with
3393 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3394
3395 Please tell bug-automake@gnu.org about your system, including the value
3396 of your $PATH and any error possibly output before this message. This
3397 can help us improve future automake versions.
3398
3399 END
3400 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3401 echo 'Configuration will proceed anyway, since you have set the' >&2
3402 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3403 echo >&2
3404 else
3405 cat >&2 <<'END'
3406 Aborting the configuration process, to ensure you take notice of the issue.
3407
3408 You can download and install GNU coreutils to get an 'rm' implementation
3409 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3410
3411 If you want to complete the configuration process using your problematic
3412 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3413 to "yes", and re-run configure.
3414
3415 END
3416 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3417 fi
3418 fi
3419
3420
3421 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3422 # Must be called before any macros that run the compiler (like
3423 # AC_PROG_LIBTOOL) to avoid autoconf errors.
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433 DEPDIR="${am__leading_dot}deps"
3434
3435 ac_config_commands="$ac_config_commands depfiles"
3436
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3438 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3439 cat > confinc.mk << 'END'
3440 am__doit:
3441 @echo this is the am__doit target >confinc.out
3442 .PHONY: am__doit
3443 END
3444 am__include="#"
3445 am__quote=
3446 # BSD make does it like this.
3447 echo '.include "confinc.mk" # ignored' > confmf.BSD
3448 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3449 echo 'include confinc.mk # ignored' > confmf.GNU
3450 _am_result=no
3451 for s in GNU BSD; do
3452 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3453 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }
3457 case $?:`cat confinc.out 2>/dev/null` in #(
3458 '0:this is the am__doit target') :
3459 case $s in #(
3460 BSD) :
3461 am__include='.include' am__quote='"' ;; #(
3462 *) :
3463 am__include='include' am__quote='' ;;
3464 esac ;; #(
3465 *) :
3466 ;;
3467 esac
3468 if test "$am__include" != "#"; then
3469 _am_result="yes ($s style)"
3470 break
3471 fi
3472 done
3473 rm -f confinc.* confmf.*
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3475 printf "%s\n" "${_am_result}" >&6; }
3476
3477 # Check whether --enable-dependency-tracking was given.
3478 if test ${enable_dependency_tracking+y}
3479 then :
3480 enableval=$enable_dependency_tracking;
3481 fi
3482
3483 if test "x$enable_dependency_tracking" != xno; then
3484 am_depcomp="$ac_aux_dir/depcomp"
3485 AMDEPBACKSLASH='\'
3486 am__nodep='_no'
3487 fi
3488 if test "x$enable_dependency_tracking" != xno; then
3489 AMDEP_TRUE=
3490 AMDEP_FALSE='#'
3491 else
3492 AMDEP_TRUE='#'
3493 AMDEP_FALSE=
3494 fi
3495
3496
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 printf %s "checking for $ac_word... " >&6; }
3507 if test ${ac_cv_prog_CC+y}
3508 then :
3509 printf %s "(cached) " >&6
3510 else $as_nop
3511 if test -n "$CC"; then
3512 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 else
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517 IFS=$as_save_IFS
3518 case $as_dir in #(((
3519 '') as_dir=./ ;;
3520 */) ;;
3521 *) as_dir=$as_dir/ ;;
3522 esac
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 printf "%s\n" "$CC" >&6; }
3539 else
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 printf "%s\n" "no" >&6; }
3542 fi
3543
3544
3545 fi
3546 if test -z "$ac_cv_prog_CC"; then
3547 ac_ct_CC=$CC
3548 # Extract the first word of "gcc", so it can be a program name with args.
3549 set dummy gcc; ac_word=$2
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 printf %s "checking for $ac_word... " >&6; }
3552 if test ${ac_cv_prog_ac_ct_CC+y}
3553 then :
3554 printf %s "(cached) " >&6
3555 else $as_nop
3556 if test -n "$ac_ct_CC"; then
3557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3561 do
3562 IFS=$as_save_IFS
3563 case $as_dir in #(((
3564 '') as_dir=./ ;;
3565 */) ;;
3566 *) as_dir=$as_dir/ ;;
3567 esac
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_ac_ct_CC="gcc"
3571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574 done
3575 done
3576 IFS=$as_save_IFS
3577
3578 fi
3579 fi
3580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3581 if test -n "$ac_ct_CC"; then
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3583 printf "%s\n" "$ac_ct_CC" >&6; }
3584 else
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 printf "%s\n" "no" >&6; }
3587 fi
3588
3589 if test "x$ac_ct_CC" = x; then
3590 CC=""
3591 else
3592 case $cross_compiling:$ac_tool_warned in
3593 yes:)
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596 ac_tool_warned=yes ;;
3597 esac
3598 CC=$ac_ct_CC
3599 fi
3600 else
3601 CC="$ac_cv_prog_CC"
3602 fi
3603
3604 if test -z "$CC"; then
3605 if test -n "$ac_tool_prefix"; then
3606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3607 set dummy ${ac_tool_prefix}cc; ac_word=$2
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 printf %s "checking for $ac_word... " >&6; }
3610 if test ${ac_cv_prog_CC+y}
3611 then :
3612 printf %s "(cached) " >&6
3613 else $as_nop
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC="$CC" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620 IFS=$as_save_IFS
3621 case $as_dir in #(((
3622 '') as_dir=./ ;;
3623 */) ;;
3624 *) as_dir=$as_dir/ ;;
3625 esac
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_CC="${ac_tool_prefix}cc"
3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 printf "%s\n" "$CC" >&6; }
3642 else
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 printf "%s\n" "no" >&6; }
3645 fi
3646
3647
3648 fi
3649 fi
3650 if test -z "$CC"; then
3651 # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc; ac_word=$2
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 printf %s "checking for $ac_word... " >&6; }
3655 if test ${ac_cv_prog_CC+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else $as_nop
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 ac_prog_rejected=no
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 case $as_dir in #(((
3668 '') as_dir=./ ;;
3669 */) ;;
3670 *) as_dir=$as_dir/ ;;
3671 esac
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3674 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3675 ac_prog_rejected=yes
3676 continue
3677 fi
3678 ac_cv_prog_CC="cc"
3679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3680 break 2
3681 fi
3682 done
3683 done
3684 IFS=$as_save_IFS
3685
3686 if test $ac_prog_rejected = yes; then
3687 # We found a bogon in the path, so make sure we never use it.
3688 set dummy $ac_cv_prog_CC
3689 shift
3690 if test $# != 0; then
3691 # We chose a different compiler from the bogus one.
3692 # However, it has the same basename, so the bogon will be chosen
3693 # first if we set CC to just the basename; use the full file name.
3694 shift
3695 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3696 fi
3697 fi
3698 fi
3699 fi
3700 CC=$ac_cv_prog_CC
3701 if test -n "$CC"; then
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3703 printf "%s\n" "$CC" >&6; }
3704 else
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 printf "%s\n" "no" >&6; }
3707 fi
3708
3709
3710 fi
3711 if test -z "$CC"; then
3712 if test -n "$ac_tool_prefix"; then
3713 for ac_prog in cl.exe
3714 do
3715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 printf %s "checking for $ac_word... " >&6; }
3719 if test ${ac_cv_prog_CC+y}
3720 then :
3721 printf %s "(cached) " >&6
3722 else $as_nop
3723 if test -n "$CC"; then
3724 ac_cv_prog_CC="$CC" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729 IFS=$as_save_IFS
3730 case $as_dir in #(((
3731 '') as_dir=./ ;;
3732 */) ;;
3733 *) as_dir=$as_dir/ ;;
3734 esac
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3739 break 2
3740 fi
3741 done
3742 done
3743 IFS=$as_save_IFS
3744
3745 fi
3746 fi
3747 CC=$ac_cv_prog_CC
3748 if test -n "$CC"; then
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 printf "%s\n" "$CC" >&6; }
3751 else
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 printf "%s\n" "no" >&6; }
3754 fi
3755
3756
3757 test -n "$CC" && break
3758 done
3759 fi
3760 if test -z "$CC"; then
3761 ac_ct_CC=$CC
3762 for ac_prog in cl.exe
3763 do
3764 # Extract the first word of "$ac_prog", so it can be a program name with args.
3765 set dummy $ac_prog; ac_word=$2
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 printf %s "checking for $ac_word... " >&6; }
3768 if test ${ac_cv_prog_ac_ct_CC+y}
3769 then :
3770 printf %s "(cached) " >&6
3771 else $as_nop
3772 if test -n "$ac_ct_CC"; then
3773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3777 do
3778 IFS=$as_save_IFS
3779 case $as_dir in #(((
3780 '') as_dir=./ ;;
3781 */) ;;
3782 *) as_dir=$as_dir/ ;;
3783 esac
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3786 ac_cv_prog_ac_ct_CC="$ac_prog"
3787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3788 break 2
3789 fi
3790 done
3791 done
3792 IFS=$as_save_IFS
3793
3794 fi
3795 fi
3796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3797 if test -n "$ac_ct_CC"; then
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3799 printf "%s\n" "$ac_ct_CC" >&6; }
3800 else
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 printf "%s\n" "no" >&6; }
3803 fi
3804
3805
3806 test -n "$ac_ct_CC" && break
3807 done
3808
3809 if test "x$ac_ct_CC" = x; then
3810 CC=""
3811 else
3812 case $cross_compiling:$ac_tool_warned in
3813 yes:)
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816 ac_tool_warned=yes ;;
3817 esac
3818 CC=$ac_ct_CC
3819 fi
3820 fi
3821
3822 fi
3823 if test -z "$CC"; then
3824 if test -n "$ac_tool_prefix"; then
3825 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3826 set dummy ${ac_tool_prefix}clang; ac_word=$2
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 printf %s "checking for $ac_word... " >&6; }
3829 if test ${ac_cv_prog_CC+y}
3830 then :
3831 printf %s "(cached) " >&6
3832 else $as_nop
3833 if test -n "$CC"; then
3834 ac_cv_prog_CC="$CC" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839 IFS=$as_save_IFS
3840 case $as_dir in #(((
3841 '') as_dir=./ ;;
3842 */) ;;
3843 *) as_dir=$as_dir/ ;;
3844 esac
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3847 ac_cv_prog_CC="${ac_tool_prefix}clang"
3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3849 break 2
3850 fi
3851 done
3852 done
3853 IFS=$as_save_IFS
3854
3855 fi
3856 fi
3857 CC=$ac_cv_prog_CC
3858 if test -n "$CC"; then
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3860 printf "%s\n" "$CC" >&6; }
3861 else
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 printf "%s\n" "no" >&6; }
3864 fi
3865
3866
3867 fi
3868 if test -z "$ac_cv_prog_CC"; then
3869 ac_ct_CC=$CC
3870 # Extract the first word of "clang", so it can be a program name with args.
3871 set dummy clang; ac_word=$2
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 printf %s "checking for $ac_word... " >&6; }
3874 if test ${ac_cv_prog_ac_ct_CC+y}
3875 then :
3876 printf %s "(cached) " >&6
3877 else $as_nop
3878 if test -n "$ac_ct_CC"; then
3879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884 IFS=$as_save_IFS
3885 case $as_dir in #(((
3886 '') as_dir=./ ;;
3887 */) ;;
3888 *) as_dir=$as_dir/ ;;
3889 esac
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_ac_ct_CC="clang"
3893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896 done
3897 done
3898 IFS=$as_save_IFS
3899
3900 fi
3901 fi
3902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3903 if test -n "$ac_ct_CC"; then
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3905 printf "%s\n" "$ac_ct_CC" >&6; }
3906 else
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 printf "%s\n" "no" >&6; }
3909 fi
3910
3911 if test "x$ac_ct_CC" = x; then
3912 CC=""
3913 else
3914 case $cross_compiling:$ac_tool_warned in
3915 yes:)
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3918 ac_tool_warned=yes ;;
3919 esac
3920 CC=$ac_ct_CC
3921 fi
3922 else
3923 CC="$ac_cv_prog_CC"
3924 fi
3925
3926 fi
3927
3928
3929 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "no acceptable C compiler found in \$PATH
3932 See \`config.log' for more details" "$LINENO" 5; }
3933
3934 # Provide some information about the compiler.
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3936 set X $ac_compile
3937 ac_compiler=$2
3938 for ac_option in --version -v -V -qversion -version; do
3939 { { ac_try="$ac_compiler $ac_option >&5"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 printf "%s\n" "$ac_try_echo"; } >&5
3946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3947 ac_status=$?
3948 if test -s conftest.err; then
3949 sed '10a\
3950 ... rest of stderr output deleted ...
3951 10q' conftest.err >conftest.er1
3952 cat conftest.er1 >&5
3953 fi
3954 rm -f conftest.er1 conftest.err
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3957 done
3958
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961
3962 int
3963 main (void)
3964 {
3965
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 ac_clean_files_save=$ac_clean_files
3971 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3972 # Try to create an executable without -o first, disregard a.out.
3973 # It will help us diagnose broken compilers, and finding out an intuition
3974 # of exeext.
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3976 printf %s "checking whether the C compiler works... " >&6; }
3977 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3978
3979 # The possible output files:
3980 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3981
3982 ac_rmfiles=
3983 for ac_file in $ac_files
3984 do
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3987 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3988 esac
3989 done
3990 rm -f $ac_rmfiles
3991
3992 if { { ac_try="$ac_link_default"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 printf "%s\n" "$ac_try_echo"; } >&5
3999 (eval "$ac_link_default") 2>&5
4000 ac_status=$?
4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }
4003 then :
4004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4005 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4006 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4007 # so that the user can short-circuit this test for compilers unknown to
4008 # Autoconf.
4009 for ac_file in $ac_files ''
4010 do
4011 test -f "$ac_file" || continue
4012 case $ac_file in
4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4014 ;;
4015 [ab].out )
4016 # We found the default executable, but exeext='' is most
4017 # certainly right.
4018 break;;
4019 *.* )
4020 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4021 then :; else
4022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 fi
4024 # We set ac_cv_exeext here because the later test for it is not
4025 # safe: cross compilers may not add the suffix if given an `-o'
4026 # argument, so we may need to know it at that point already.
4027 # Even if this section looks crufty: it has the advantage of
4028 # actually working.
4029 break;;
4030 * )
4031 break;;
4032 esac
4033 done
4034 test "$ac_cv_exeext" = no && ac_cv_exeext=
4035
4036 else $as_nop
4037 ac_file=''
4038 fi
4039 if test -z "$ac_file"
4040 then :
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042 printf "%s\n" "no" >&6; }
4043 printf "%s\n" "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error 77 "C compiler cannot create executables
4049 See \`config.log' for more details" "$LINENO" 5; }
4050 else $as_nop
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052 printf "%s\n" "yes" >&6; }
4053 fi
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4055 printf %s "checking for C compiler default output file name... " >&6; }
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4057 printf "%s\n" "$ac_file" >&6; }
4058 ac_exeext=$ac_cv_exeext
4059
4060 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4061 ac_clean_files=$ac_clean_files_save
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4063 printf %s "checking for suffix of executables... " >&6; }
4064 if { { ac_try="$ac_link"
4065 case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 printf "%s\n" "$ac_try_echo"; } >&5
4071 (eval "$ac_link") 2>&5
4072 ac_status=$?
4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }
4075 then :
4076 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4077 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4078 # work properly (i.e., refer to `conftest.exe'), while it won't with
4079 # `rm'.
4080 for ac_file in conftest.exe conftest conftest.*; do
4081 test -f "$ac_file" || continue
4082 case $ac_file in
4083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4084 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4085 break;;
4086 * ) break;;
4087 esac
4088 done
4089 else $as_nop
4090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4093 See \`config.log' for more details" "$LINENO" 5; }
4094 fi
4095 rm -f conftest conftest$ac_cv_exeext
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4097 printf "%s\n" "$ac_cv_exeext" >&6; }
4098
4099 rm -f conftest.$ac_ext
4100 EXEEXT=$ac_cv_exeext
4101 ac_exeext=$EXEEXT
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #include <stdio.h>
4105 int
4106 main (void)
4107 {
4108 FILE *f = fopen ("conftest.out", "w");
4109 return ferror (f) || fclose (f) != 0;
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 ac_clean_files="$ac_clean_files conftest.out"
4116 # Check that the compiler produces executables we can run. If not, either
4117 # the compiler is broken, or we cross compile.
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4119 printf %s "checking whether we are cross compiling... " >&6; }
4120 if test "$cross_compiling" != yes; then
4121 { { ac_try="$ac_link"
4122 case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127 printf "%s\n" "$ac_try_echo"; } >&5
4128 (eval "$ac_link") 2>&5
4129 ac_status=$?
4130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }
4132 if { ac_try='./conftest$ac_cv_exeext'
4133 { { case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136 esac
4137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138 printf "%s\n" "$ac_try_echo"; } >&5
4139 (eval "$ac_try") 2>&5
4140 ac_status=$?
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142 test $ac_status = 0; }; }; then
4143 cross_compiling=no
4144 else
4145 if test "$cross_compiling" = maybe; then
4146 cross_compiling=yes
4147 else
4148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4149 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4150 as_fn_error 77 "cannot run C compiled programs.
4151 If you meant to cross compile, use \`--host'.
4152 See \`config.log' for more details" "$LINENO" 5; }
4153 fi
4154 fi
4155 fi
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4157 printf "%s\n" "$cross_compiling" >&6; }
4158
4159 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4160 ac_clean_files=$ac_clean_files_save
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4162 printf %s "checking for suffix of object files... " >&6; }
4163 if test ${ac_cv_objext+y}
4164 then :
4165 printf %s "(cached) " >&6
4166 else $as_nop
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169
4170 int
4171 main (void)
4172 {
4173
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.o conftest.obj
4179 if { { ac_try="$ac_compile"
4180 case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185 printf "%s\n" "$ac_try_echo"; } >&5
4186 (eval "$ac_compile") 2>&5
4187 ac_status=$?
4188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }
4190 then :
4191 for ac_file in conftest.o conftest.obj conftest.*; do
4192 test -f "$ac_file" || continue;
4193 case $ac_file in
4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4196 break;;
4197 esac
4198 done
4199 else $as_nop
4200 printf "%s\n" "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "cannot compute suffix of object files: cannot compile
4206 See \`config.log' for more details" "$LINENO" 5; }
4207 fi
4208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4209 fi
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4211 printf "%s\n" "$ac_cv_objext" >&6; }
4212 OBJEXT=$ac_cv_objext
4213 ac_objext=$OBJEXT
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4215 printf %s "checking whether the compiler supports GNU C... " >&6; }
4216 if test ${ac_cv_c_compiler_gnu+y}
4217 then :
4218 printf %s "(cached) " >&6
4219 else $as_nop
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222
4223 int
4224 main (void)
4225 {
4226 #ifndef __GNUC__
4227 choke me
4228 #endif
4229
4230 ;
4231 return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"
4235 then :
4236 ac_compiler_gnu=yes
4237 else $as_nop
4238 ac_compiler_gnu=no
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4241 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4242
4243 fi
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4245 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248 if test $ac_compiler_gnu = yes; then
4249 GCC=yes
4250 else
4251 GCC=
4252 fi
4253 ac_test_CFLAGS=${CFLAGS+y}
4254 ac_save_CFLAGS=$CFLAGS
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4256 printf %s "checking whether $CC accepts -g... " >&6; }
4257 if test ${ac_cv_prog_cc_g+y}
4258 then :
4259 printf %s "(cached) " >&6
4260 else $as_nop
4261 ac_save_c_werror_flag=$ac_c_werror_flag
4262 ac_c_werror_flag=yes
4263 ac_cv_prog_cc_g=no
4264 CFLAGS="-g"
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267
4268 int
4269 main (void)
4270 {
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_c_try_compile "$LINENO"
4277 then :
4278 ac_cv_prog_cc_g=yes
4279 else $as_nop
4280 CFLAGS=""
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283
4284 int
4285 main (void)
4286 {
4287
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_c_try_compile "$LINENO"
4293 then :
4294
4295 else $as_nop
4296 ac_c_werror_flag=$ac_save_c_werror_flag
4297 CFLAGS="-g"
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300
4301 int
4302 main (void)
4303 {
4304
4305 ;
4306 return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"
4310 then :
4311 ac_cv_prog_cc_g=yes
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4318 ac_c_werror_flag=$ac_save_c_werror_flag
4319 fi
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4321 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4322 if test $ac_test_CFLAGS; then
4323 CFLAGS=$ac_save_CFLAGS
4324 elif test $ac_cv_prog_cc_g = yes; then
4325 if test "$GCC" = yes; then
4326 CFLAGS="-g -O2"
4327 else
4328 CFLAGS="-g"
4329 fi
4330 else
4331 if test "$GCC" = yes; then
4332 CFLAGS="-O2"
4333 else
4334 CFLAGS=
4335 fi
4336 fi
4337 ac_prog_cc_stdc=no
4338 if test x$ac_prog_cc_stdc = xno
4339 then :
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4341 printf %s "checking for $CC option to enable C11 features... " >&6; }
4342 if test ${ac_cv_prog_cc_c11+y}
4343 then :
4344 printf %s "(cached) " >&6
4345 else $as_nop
4346 ac_cv_prog_cc_c11=no
4347 ac_save_CC=$CC
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 $ac_c_conftest_c11_program
4351 _ACEOF
4352 for ac_arg in '' -std=gnu11
4353 do
4354 CC="$ac_save_CC $ac_arg"
4355 if ac_fn_c_try_compile "$LINENO"
4356 then :
4357 ac_cv_prog_cc_c11=$ac_arg
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.beam
4360 test "x$ac_cv_prog_cc_c11" != "xno" && break
4361 done
4362 rm -f conftest.$ac_ext
4363 CC=$ac_save_CC
4364 fi
4365
4366 if test "x$ac_cv_prog_cc_c11" = xno
4367 then :
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4369 printf "%s\n" "unsupported" >&6; }
4370 else $as_nop
4371 if test "x$ac_cv_prog_cc_c11" = x
4372 then :
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4374 printf "%s\n" "none needed" >&6; }
4375 else $as_nop
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4377 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4378 CC="$CC $ac_cv_prog_cc_c11"
4379 fi
4380 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4381 ac_prog_cc_stdc=c11
4382 fi
4383 fi
4384 if test x$ac_prog_cc_stdc = xno
4385 then :
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4387 printf %s "checking for $CC option to enable C99 features... " >&6; }
4388 if test ${ac_cv_prog_cc_c99+y}
4389 then :
4390 printf %s "(cached) " >&6
4391 else $as_nop
4392 ac_cv_prog_cc_c99=no
4393 ac_save_CC=$CC
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 $ac_c_conftest_c99_program
4397 _ACEOF
4398 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4399 do
4400 CC="$ac_save_CC $ac_arg"
4401 if ac_fn_c_try_compile "$LINENO"
4402 then :
4403 ac_cv_prog_cc_c99=$ac_arg
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.beam
4406 test "x$ac_cv_prog_cc_c99" != "xno" && break
4407 done
4408 rm -f conftest.$ac_ext
4409 CC=$ac_save_CC
4410 fi
4411
4412 if test "x$ac_cv_prog_cc_c99" = xno
4413 then :
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4415 printf "%s\n" "unsupported" >&6; }
4416 else $as_nop
4417 if test "x$ac_cv_prog_cc_c99" = x
4418 then :
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4420 printf "%s\n" "none needed" >&6; }
4421 else $as_nop
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4423 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4424 CC="$CC $ac_cv_prog_cc_c99"
4425 fi
4426 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4427 ac_prog_cc_stdc=c99
4428 fi
4429 fi
4430 if test x$ac_prog_cc_stdc = xno
4431 then :
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4433 printf %s "checking for $CC option to enable C89 features... " >&6; }
4434 if test ${ac_cv_prog_cc_c89+y}
4435 then :
4436 printf %s "(cached) " >&6
4437 else $as_nop
4438 ac_cv_prog_cc_c89=no
4439 ac_save_CC=$CC
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442 $ac_c_conftest_c89_program
4443 _ACEOF
4444 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4445 do
4446 CC="$ac_save_CC $ac_arg"
4447 if ac_fn_c_try_compile "$LINENO"
4448 then :
4449 ac_cv_prog_cc_c89=$ac_arg
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext conftest.beam
4452 test "x$ac_cv_prog_cc_c89" != "xno" && break
4453 done
4454 rm -f conftest.$ac_ext
4455 CC=$ac_save_CC
4456 fi
4457
4458 if test "x$ac_cv_prog_cc_c89" = xno
4459 then :
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4461 printf "%s\n" "unsupported" >&6; }
4462 else $as_nop
4463 if test "x$ac_cv_prog_cc_c89" = x
4464 then :
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4466 printf "%s\n" "none needed" >&6; }
4467 else $as_nop
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4469 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4470 CC="$CC $ac_cv_prog_cc_c89"
4471 fi
4472 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4473 ac_prog_cc_stdc=c89
4474 fi
4475 fi
4476
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482
4483
4484 ac_ext=c
4485 ac_cpp='$CPP $CPPFLAGS'
4486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4490 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4491 if test ${am_cv_prog_cc_c_o+y}
4492 then :
4493 printf %s "(cached) " >&6
4494 else $as_nop
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497
4498 int
4499 main (void)
4500 {
4501
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 # Make sure it works both with $CC and with simple cc.
4507 # Following AC_PROG_CC_C_O, we do the test twice because some
4508 # compilers refuse to overwrite an existing .o file with -o,
4509 # though they will create one.
4510 am_cv_prog_cc_c_o=yes
4511 for am_i in 1 2; do
4512 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4513 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } \
4517 && test -f conftest2.$ac_objext; then
4518 : OK
4519 else
4520 am_cv_prog_cc_c_o=no
4521 break
4522 fi
4523 done
4524 rm -f core conftest*
4525 unset am_i
4526 fi
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4528 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4529 if test "$am_cv_prog_cc_c_o" != yes; then
4530 # Losing compiler, so override with the script.
4531 # FIXME: It is wrong to rewrite CC.
4532 # But if we don't then we get into trouble of one sort or another.
4533 # A longer-term fix would be to have automake use am__CC in this case,
4534 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4535 CC="$am_aux_dir/compile $CC"
4536 fi
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542
4543
4544 depcc="$CC" am_compiler_list=
4545
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4547 printf %s "checking dependency style of $depcc... " >&6; }
4548 if test ${am_cv_CC_dependencies_compiler_type+y}
4549 then :
4550 printf %s "(cached) " >&6
4551 else $as_nop
4552 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4553 # We make a subdir and do the tests there. Otherwise we can end up
4554 # making bogus files that we don't know about and never remove. For
4555 # instance it was reported that on HP-UX the gcc test will end up
4556 # making a dummy file named 'D' -- because '-MD' means "put the output
4557 # in D".
4558 rm -rf conftest.dir
4559 mkdir conftest.dir
4560 # Copy depcomp to subdir because otherwise we won't find it if we're
4561 # using a relative directory.
4562 cp "$am_depcomp" conftest.dir
4563 cd conftest.dir
4564 # We will build objects and dependencies in a subdirectory because
4565 # it helps to detect inapplicable dependency modes. For instance
4566 # both Tru64's cc and ICC support -MD to output dependencies as a
4567 # side effect of compilation, but ICC will put the dependencies in
4568 # the current directory while Tru64 will put them in the object
4569 # directory.
4570 mkdir sub
4571
4572 am_cv_CC_dependencies_compiler_type=none
4573 if test "$am_compiler_list" = ""; then
4574 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4575 fi
4576 am__universal=false
4577 case " $depcc " in #(
4578 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4579 esac
4580
4581 for depmode in $am_compiler_list; do
4582 # Setup a source with many dependencies, because some compilers
4583 # like to wrap large dependency lists on column 80 (with \), and
4584 # we should not choose a depcomp mode which is confused by this.
4585 #
4586 # We need to recreate these files for each test, as the compiler may
4587 # overwrite some of them when testing with obscure command lines.
4588 # This happens at least with the AIX C compiler.
4589 : > sub/conftest.c
4590 for i in 1 2 3 4 5 6; do
4591 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4592 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4593 # Solaris 10 /bin/sh.
4594 echo '/* dummy */' > sub/conftst$i.h
4595 done
4596 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4597
4598 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4599 # mode. It turns out that the SunPro C++ compiler does not properly
4600 # handle '-M -o', and we need to detect this. Also, some Intel
4601 # versions had trouble with output in subdirs.
4602 am__obj=sub/conftest.${OBJEXT-o}
4603 am__minus_obj="-o $am__obj"
4604 case $depmode in
4605 gcc)
4606 # This depmode causes a compiler race in universal mode.
4607 test "$am__universal" = false || continue
4608 ;;
4609 nosideeffect)
4610 # After this tag, mechanisms are not by side-effect, so they'll
4611 # only be used when explicitly requested.
4612 if test "x$enable_dependency_tracking" = xyes; then
4613 continue
4614 else
4615 break
4616 fi
4617 ;;
4618 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4619 # This compiler won't grok '-c -o', but also, the minuso test has
4620 # not run yet. These depmodes are late enough in the game, and
4621 # so weak that their functioning should not be impacted.
4622 am__obj=conftest.${OBJEXT-o}
4623 am__minus_obj=
4624 ;;
4625 none) break ;;
4626 esac
4627 if depmode=$depmode \
4628 source=sub/conftest.c object=$am__obj \
4629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4630 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4631 >/dev/null 2>conftest.err &&
4632 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4634 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4636 # icc doesn't choke on unknown options, it will just issue warnings
4637 # or remarks (even with -Werror). So we grep stderr for any message
4638 # that says an option was ignored or not supported.
4639 # When given -MP, icc 7.0 and 7.1 complain thusly:
4640 # icc: Command line warning: ignoring option '-M'; no argument required
4641 # The diagnosis changed in icc 8.0:
4642 # icc: Command line remark: option '-MP' not supported
4643 if (grep 'ignoring option' conftest.err ||
4644 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4645 am_cv_CC_dependencies_compiler_type=$depmode
4646 break
4647 fi
4648 fi
4649 done
4650
4651 cd ..
4652 rm -rf conftest.dir
4653 else
4654 am_cv_CC_dependencies_compiler_type=none
4655 fi
4656
4657 fi
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4659 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4660 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4661
4662 if
4663 test "x$enable_dependency_tracking" != xno \
4664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4665 am__fastdepCC_TRUE=
4666 am__fastdepCC_FALSE='#'
4667 else
4668 am__fastdepCC_TRUE='#'
4669 am__fastdepCC_FALSE=
4670 fi
4671
4672
4673
4674 ac_header= ac_cache=
4675 for ac_item in $ac_header_c_list
4676 do
4677 if test $ac_cache; then
4678 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4679 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4680 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4681 fi
4682 ac_header= ac_cache=
4683 elif test $ac_header; then
4684 ac_cache=$ac_item
4685 else
4686 ac_header=$ac_item
4687 fi
4688 done
4689
4690
4691
4692
4693
4694
4695
4696
4697 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4698 then :
4699
4700 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4701
4702 fi
4703
4704
4705
4706
4707
4708
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4710 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4711 if test ${ac_cv_safe_to_define___extensions__+y}
4712 then :
4713 printf %s "(cached) " >&6
4714 else $as_nop
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717
4718 # define __EXTENSIONS__ 1
4719 $ac_includes_default
4720 int
4721 main (void)
4722 {
4723
4724 ;
4725 return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"
4729 then :
4730 ac_cv_safe_to_define___extensions__=yes
4731 else $as_nop
4732 ac_cv_safe_to_define___extensions__=no
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 fi
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4737 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4738
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4740 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4741 if test ${ac_cv_should_define__xopen_source+y}
4742 then :
4743 printf %s "(cached) " >&6
4744 else $as_nop
4745 ac_cv_should_define__xopen_source=no
4746 if test $ac_cv_header_wchar_h = yes
4747 then :
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750
4751 #include <wchar.h>
4752 mbstate_t x;
4753 int
4754 main (void)
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"
4762 then :
4763
4764 else $as_nop
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767
4768 #define _XOPEN_SOURCE 500
4769 #include <wchar.h>
4770 mbstate_t x;
4771 int
4772 main (void)
4773 {
4774
4775 ;
4776 return 0;
4777 }
4778 _ACEOF
4779 if ac_fn_c_try_compile "$LINENO"
4780 then :
4781 ac_cv_should_define__xopen_source=yes
4782 fi
4783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4786 fi
4787 fi
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4789 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4790
4791 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4792
4793 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4794
4795 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4796
4797 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4798
4799 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4800
4801 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4802
4803 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4804
4805 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4806
4807 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4808
4809 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4810
4811 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4812
4813 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4814
4815 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4816
4817 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4818
4819 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4820
4821 if test $ac_cv_header_minix_config_h = yes
4822 then :
4823 MINIX=yes
4824 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4825
4826 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4827
4828 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4829
4830 else $as_nop
4831 MINIX=
4832 fi
4833 if test $ac_cv_safe_to_define___extensions__ = yes
4834 then :
4835 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4836
4837 fi
4838 if test $ac_cv_should_define__xopen_source = yes
4839 then :
4840 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4841
4842 fi
4843
4844
4845 # Initialize libtool
4846 case `pwd` in
4847 *\ * | *\ *)
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4849 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4850 esac
4851
4852
4853
4854 macro_version='2.4.7'
4855 macro_revision='2.4.7'
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870 ltmain=$ac_aux_dir/ltmain.sh
4871
4872
4873
4874 # Make sure we can run config.sub.
4875 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4876 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4877
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4879 printf %s "checking build system type... " >&6; }
4880 if test ${ac_cv_build+y}
4881 then :
4882 printf %s "(cached) " >&6
4883 else $as_nop
4884 ac_build_alias=$build_alias
4885 test "x$ac_build_alias" = x &&
4886 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4887 test "x$ac_build_alias" = x &&
4888 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4889 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4890 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4891
4892 fi
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4894 printf "%s\n" "$ac_cv_build" >&6; }
4895 case $ac_cv_build in
4896 *-*-*) ;;
4897 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4898 esac
4899 build=$ac_cv_build
4900 ac_save_IFS=$IFS; IFS='-'
4901 set x $ac_cv_build
4902 shift
4903 build_cpu=$1
4904 build_vendor=$2
4905 shift; shift
4906 # Remember, the first character of IFS is used to create $*,
4907 # except with old shells:
4908 build_os=$*
4909 IFS=$ac_save_IFS
4910 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4911
4912
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4914 printf %s "checking host system type... " >&6; }
4915 if test ${ac_cv_host+y}
4916 then :
4917 printf %s "(cached) " >&6
4918 else $as_nop
4919 if test "x$host_alias" = x; then
4920 ac_cv_host=$ac_cv_build
4921 else
4922 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4923 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4924 fi
4925
4926 fi
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4928 printf "%s\n" "$ac_cv_host" >&6; }
4929 case $ac_cv_host in
4930 *-*-*) ;;
4931 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4932 esac
4933 host=$ac_cv_host
4934 ac_save_IFS=$IFS; IFS='-'
4935 set x $ac_cv_host
4936 shift
4937 host_cpu=$1
4938 host_vendor=$2
4939 shift; shift
4940 # Remember, the first character of IFS is used to create $*,
4941 # except with old shells:
4942 host_os=$*
4943 IFS=$ac_save_IFS
4944 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4945
4946
4947 # Backslashify metacharacters that are still active within
4948 # double-quoted strings.
4949 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4950
4951 # Same as above, but do not quote variable references.
4952 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4953
4954 # Sed substitution to delay expansion of an escaped shell variable in a
4955 # double_quote_subst'ed string.
4956 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4957
4958 # Sed substitution to delay expansion of an escaped single quote.
4959 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4960
4961 # Sed substitution to avoid accidental globbing in evaled expressions
4962 no_glob_subst='s/\*/\\\*/g'
4963
4964 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4965 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4966 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4967
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4969 printf %s "checking how to print strings... " >&6; }
4970 # Test print first, because it will be a builtin if present.
4971 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4972 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4973 ECHO='print -r --'
4974 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4975 ECHO='printf %s\n'
4976 else
4977 # Use this function as a fallback that always works.
4978 func_fallback_echo ()
4979 {
4980 eval 'cat <<_LTECHO_EOF
4981 $1
4982 _LTECHO_EOF'
4983 }
4984 ECHO='func_fallback_echo'
4985 fi
4986
4987 # func_echo_all arg...
4988 # Invoke $ECHO with all args, space-separated.
4989 func_echo_all ()
4990 {
4991 $ECHO ""
4992 }
4993
4994 case $ECHO in
4995 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4996 printf "%s\n" "printf" >&6; } ;;
4997 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4998 printf "%s\n" "print -r" >&6; } ;;
4999 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5000 printf "%s\n" "cat" >&6; } ;;
5001 esac
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5017 printf %s "checking for a sed that does not truncate output... " >&6; }
5018 if test ${ac_cv_path_SED+y}
5019 then :
5020 printf %s "(cached) " >&6
5021 else $as_nop
5022 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5023 for ac_i in 1 2 3 4 5 6 7; do
5024 ac_script="$ac_script$as_nl$ac_script"
5025 done
5026 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5027 { ac_script=; unset ac_script;}
5028 if test -z "$SED"; then
5029 ac_path_SED_found=false
5030 # Loop through the user's path and test for each of PROGNAME-LIST
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 case $as_dir in #(((
5036 '') as_dir=./ ;;
5037 */) ;;
5038 *) as_dir=$as_dir/ ;;
5039 esac
5040 for ac_prog in sed gsed
5041 do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5044 as_fn_executable_p "$ac_path_SED" || continue
5045 # Check for GNU ac_path_SED and select it if it is found.
5046 # Check for GNU $ac_path_SED
5047 case `"$ac_path_SED" --version 2>&1` in
5048 *GNU*)
5049 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5050 *)
5051 ac_count=0
5052 printf %s 0123456789 >"conftest.in"
5053 while :
5054 do
5055 cat "conftest.in" "conftest.in" >"conftest.tmp"
5056 mv "conftest.tmp" "conftest.in"
5057 cp "conftest.in" "conftest.nl"
5058 printf "%s\n" '' >> "conftest.nl"
5059 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5061 as_fn_arith $ac_count + 1 && ac_count=$as_val
5062 if test $ac_count -gt ${ac_path_SED_max-0}; then
5063 # Best one so far, save it but keep looking for a better one
5064 ac_cv_path_SED="$ac_path_SED"
5065 ac_path_SED_max=$ac_count
5066 fi
5067 # 10*(2^10) chars as input seems more than enough
5068 test $ac_count -gt 10 && break
5069 done
5070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5071 esac
5072
5073 $ac_path_SED_found && break 3
5074 done
5075 done
5076 done
5077 IFS=$as_save_IFS
5078 if test -z "$ac_cv_path_SED"; then
5079 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5080 fi
5081 else
5082 ac_cv_path_SED=$SED
5083 fi
5084
5085 fi
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5087 printf "%s\n" "$ac_cv_path_SED" >&6; }
5088 SED="$ac_cv_path_SED"
5089 rm -f conftest.sed
5090
5091 test -z "$SED" && SED=sed
5092 Xsed="$SED -e 1s/^X//"
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5105 printf %s "checking for grep that handles long lines and -e... " >&6; }
5106 if test ${ac_cv_path_GREP+y}
5107 then :
5108 printf %s "(cached) " >&6
5109 else $as_nop
5110 if test -z "$GREP"; then
5111 ac_path_GREP_found=false
5112 # Loop through the user's path and test for each of PROGNAME-LIST
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5115 do
5116 IFS=$as_save_IFS
5117 case $as_dir in #(((
5118 '') as_dir=./ ;;
5119 */) ;;
5120 *) as_dir=$as_dir/ ;;
5121 esac
5122 for ac_prog in grep ggrep
5123 do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5126 as_fn_executable_p "$ac_path_GREP" || continue
5127 # Check for GNU ac_path_GREP and select it if it is found.
5128 # Check for GNU $ac_path_GREP
5129 case `"$ac_path_GREP" --version 2>&1` in
5130 *GNU*)
5131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5132 *)
5133 ac_count=0
5134 printf %s 0123456789 >"conftest.in"
5135 while :
5136 do
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 printf "%s\n" 'GREP' >> "conftest.nl"
5141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val
5144 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_GREP="$ac_path_GREP"
5147 ac_path_GREP_max=$ac_count
5148 fi
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5151 done
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 esac
5154
5155 $ac_path_GREP_found && break 3
5156 done
5157 done
5158 done
5159 IFS=$as_save_IFS
5160 if test -z "$ac_cv_path_GREP"; then
5161 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 fi
5163 else
5164 ac_cv_path_GREP=$GREP
5165 fi
5166
5167 fi
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5169 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5170 GREP="$ac_cv_path_GREP"
5171
5172
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5174 printf %s "checking for egrep... " >&6; }
5175 if test ${ac_cv_path_EGREP+y}
5176 then :
5177 printf %s "(cached) " >&6
5178 else $as_nop
5179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5180 then ac_cv_path_EGREP="$GREP -E"
5181 else
5182 if test -z "$EGREP"; then
5183 ac_path_EGREP_found=false
5184 # Loop through the user's path and test for each of PROGNAME-LIST
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5187 do
5188 IFS=$as_save_IFS
5189 case $as_dir in #(((
5190 '') as_dir=./ ;;
5191 */) ;;
5192 *) as_dir=$as_dir/ ;;
5193 esac
5194 for ac_prog in egrep
5195 do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5198 as_fn_executable_p "$ac_path_EGREP" || continue
5199 # Check for GNU ac_path_EGREP and select it if it is found.
5200 # Check for GNU $ac_path_EGREP
5201 case `"$ac_path_EGREP" --version 2>&1` in
5202 *GNU*)
5203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5204 *)
5205 ac_count=0
5206 printf %s 0123456789 >"conftest.in"
5207 while :
5208 do
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 printf "%s\n" 'EGREP' >> "conftest.nl"
5213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 as_fn_arith $ac_count + 1 && ac_count=$as_val
5216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_EGREP="$ac_path_EGREP"
5219 ac_path_EGREP_max=$ac_count
5220 fi
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5223 done
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225 esac
5226
5227 $ac_path_EGREP_found && break 3
5228 done
5229 done
5230 done
5231 IFS=$as_save_IFS
5232 if test -z "$ac_cv_path_EGREP"; then
5233 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5234 fi
5235 else
5236 ac_cv_path_EGREP=$EGREP
5237 fi
5238
5239 fi
5240 fi
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5242 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5243 EGREP="$ac_cv_path_EGREP"
5244
5245
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5247 printf %s "checking for fgrep... " >&6; }
5248 if test ${ac_cv_path_FGREP+y}
5249 then :
5250 printf %s "(cached) " >&6
5251 else $as_nop
5252 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5253 then ac_cv_path_FGREP="$GREP -F"
5254 else
5255 if test -z "$FGREP"; then
5256 ac_path_FGREP_found=false
5257 # Loop through the user's path and test for each of PROGNAME-LIST
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5260 do
5261 IFS=$as_save_IFS
5262 case $as_dir in #(((
5263 '') as_dir=./ ;;
5264 */) ;;
5265 *) as_dir=$as_dir/ ;;
5266 esac
5267 for ac_prog in fgrep
5268 do
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5271 as_fn_executable_p "$ac_path_FGREP" || continue
5272 # Check for GNU ac_path_FGREP and select it if it is found.
5273 # Check for GNU $ac_path_FGREP
5274 case `"$ac_path_FGREP" --version 2>&1` in
5275 *GNU*)
5276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5277 *)
5278 ac_count=0
5279 printf %s 0123456789 >"conftest.in"
5280 while :
5281 do
5282 cat "conftest.in" "conftest.in" >"conftest.tmp"
5283 mv "conftest.tmp" "conftest.in"
5284 cp "conftest.in" "conftest.nl"
5285 printf "%s\n" 'FGREP' >> "conftest.nl"
5286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288 as_fn_arith $ac_count + 1 && ac_count=$as_val
5289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5290 # Best one so far, save it but keep looking for a better one
5291 ac_cv_path_FGREP="$ac_path_FGREP"
5292 ac_path_FGREP_max=$ac_count
5293 fi
5294 # 10*(2^10) chars as input seems more than enough
5295 test $ac_count -gt 10 && break
5296 done
5297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5298 esac
5299
5300 $ac_path_FGREP_found && break 3
5301 done
5302 done
5303 done
5304 IFS=$as_save_IFS
5305 if test -z "$ac_cv_path_FGREP"; then
5306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5307 fi
5308 else
5309 ac_cv_path_FGREP=$FGREP
5310 fi
5311
5312 fi
5313 fi
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5315 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5316 FGREP="$ac_cv_path_FGREP"
5317
5318
5319 test -z "$GREP" && GREP=grep
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339 # Check whether --with-gnu-ld was given.
5340 if test ${with_gnu_ld+y}
5341 then :
5342 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5343 else $as_nop
5344 with_gnu_ld=no
5345 fi
5346
5347 ac_prog=ld
5348 if test yes = "$GCC"; then
5349 # Check if gcc -print-prog-name=ld gives a path.
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5351 printf %s "checking for ld used by $CC... " >&6; }
5352 case $host in
5353 *-*-mingw*)
5354 # gcc leaves a trailing carriage return, which upsets mingw
5355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5356 *)
5357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5358 esac
5359 case $ac_prog in
5360 # Accept absolute paths.
5361 [\\/]* | ?:[\\/]*)
5362 re_direlt='/[^/][^/]*/\.\./'
5363 # Canonicalize the pathname of ld
5364 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5365 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5366 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5367 done
5368 test -z "$LD" && LD=$ac_prog
5369 ;;
5370 "")
5371 # If it fails, then pretend we aren't using GCC.
5372 ac_prog=ld
5373 ;;
5374 *)
5375 # If it is relative, then search for the first ld in PATH.
5376 with_gnu_ld=unknown
5377 ;;
5378 esac
5379 elif test yes = "$with_gnu_ld"; then
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5381 printf %s "checking for GNU ld... " >&6; }
5382 else
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5384 printf %s "checking for non-GNU ld... " >&6; }
5385 fi
5386 if test ${lt_cv_path_LD+y}
5387 then :
5388 printf %s "(cached) " >&6
5389 else $as_nop
5390 if test -z "$LD"; then
5391 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5392 for ac_dir in $PATH; do
5393 IFS=$lt_save_ifs
5394 test -z "$ac_dir" && ac_dir=.
5395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5396 lt_cv_path_LD=$ac_dir/$ac_prog
5397 # Check to see if the program is GNU ld. I'd rather use --version,
5398 # but apparently some variants of GNU ld only accept -v.
5399 # Break only if it was the GNU/non-GNU ld that we prefer.
5400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5401 *GNU* | *'with BFD'*)
5402 test no != "$with_gnu_ld" && break
5403 ;;
5404 *)
5405 test yes != "$with_gnu_ld" && break
5406 ;;
5407 esac
5408 fi
5409 done
5410 IFS=$lt_save_ifs
5411 else
5412 lt_cv_path_LD=$LD # Let the user override the test with a path.
5413 fi
5414 fi
5415
5416 LD=$lt_cv_path_LD
5417 if test -n "$LD"; then
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5419 printf "%s\n" "$LD" >&6; }
5420 else
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 printf "%s\n" "no" >&6; }
5423 fi
5424 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5426 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5427 if test ${lt_cv_prog_gnu_ld+y}
5428 then :
5429 printf %s "(cached) " >&6
5430 else $as_nop
5431 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5432 case `$LD -v 2>&1 </dev/null` in
5433 *GNU* | *'with BFD'*)
5434 lt_cv_prog_gnu_ld=yes
5435 ;;
5436 *)
5437 lt_cv_prog_gnu_ld=no
5438 ;;
5439 esac
5440 fi
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5442 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5443 with_gnu_ld=$lt_cv_prog_gnu_ld
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5454 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5455 if test ${lt_cv_path_NM+y}
5456 then :
5457 printf %s "(cached) " >&6
5458 else $as_nop
5459 if test -n "$NM"; then
5460 # Let the user override the test.
5461 lt_cv_path_NM=$NM
5462 else
5463 lt_nm_to_check=${ac_tool_prefix}nm
5464 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5465 lt_nm_to_check="$lt_nm_to_check nm"
5466 fi
5467 for lt_tmp_nm in $lt_nm_to_check; do
5468 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5469 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5470 IFS=$lt_save_ifs
5471 test -z "$ac_dir" && ac_dir=.
5472 tmp_nm=$ac_dir/$lt_tmp_nm
5473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5474 # Check to see if the nm accepts a BSD-compat flag.
5475 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5476 # nm: unknown option "B" ignored
5477 # Tru64's nm complains that /dev/null is an invalid object file
5478 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5479 case $build_os in
5480 mingw*) lt_bad_file=conftest.nm/nofile ;;
5481 *) lt_bad_file=/dev/null ;;
5482 esac
5483 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5484 *$lt_bad_file* | *'Invalid file or object type'*)
5485 lt_cv_path_NM="$tmp_nm -B"
5486 break 2
5487 ;;
5488 *)
5489 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5490 */dev/null*)
5491 lt_cv_path_NM="$tmp_nm -p"
5492 break 2
5493 ;;
5494 *)
5495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5496 continue # so that we can try to find one that supports BSD flags
5497 ;;
5498 esac
5499 ;;
5500 esac
5501 fi
5502 done
5503 IFS=$lt_save_ifs
5504 done
5505 : ${lt_cv_path_NM=no}
5506 fi
5507 fi
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5509 printf "%s\n" "$lt_cv_path_NM" >&6; }
5510 if test no != "$lt_cv_path_NM"; then
5511 NM=$lt_cv_path_NM
5512 else
5513 # Didn't find any BSD compatible name lister, look for dumpbin.
5514 if test -n "$DUMPBIN"; then :
5515 # Let the user override the test.
5516 else
5517 if test -n "$ac_tool_prefix"; then
5518 for ac_prog in dumpbin "link -dump"
5519 do
5520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 printf %s "checking for $ac_word... " >&6; }
5524 if test ${ac_cv_prog_DUMPBIN+y}
5525 then :
5526 printf %s "(cached) " >&6
5527 else $as_nop
5528 if test -n "$DUMPBIN"; then
5529 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534 IFS=$as_save_IFS
5535 case $as_dir in #(((
5536 '') as_dir=./ ;;
5537 */) ;;
5538 *) as_dir=$as_dir/ ;;
5539 esac
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 DUMPBIN=$ac_cv_prog_DUMPBIN
5553 if test -n "$DUMPBIN"; then
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5555 printf "%s\n" "$DUMPBIN" >&6; }
5556 else
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 printf "%s\n" "no" >&6; }
5559 fi
5560
5561
5562 test -n "$DUMPBIN" && break
5563 done
5564 fi
5565 if test -z "$DUMPBIN"; then
5566 ac_ct_DUMPBIN=$DUMPBIN
5567 for ac_prog in dumpbin "link -dump"
5568 do
5569 # Extract the first word of "$ac_prog", so it can be a program name with args.
5570 set dummy $ac_prog; ac_word=$2
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 printf %s "checking for $ac_word... " >&6; }
5573 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5574 then :
5575 printf %s "(cached) " >&6
5576 else $as_nop
5577 if test -n "$ac_ct_DUMPBIN"; then
5578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 case $as_dir in #(((
5585 '') as_dir=./ ;;
5586 */) ;;
5587 *) as_dir=$as_dir/ ;;
5588 esac
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595 done
5596 done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5602 if test -n "$ac_ct_DUMPBIN"; then
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5604 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5605 else
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 printf "%s\n" "no" >&6; }
5608 fi
5609
5610
5611 test -n "$ac_ct_DUMPBIN" && break
5612 done
5613
5614 if test "x$ac_ct_DUMPBIN" = x; then
5615 DUMPBIN=":"
5616 else
5617 case $cross_compiling:$ac_tool_warned in
5618 yes:)
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621 ac_tool_warned=yes ;;
5622 esac
5623 DUMPBIN=$ac_ct_DUMPBIN
5624 fi
5625 fi
5626
5627 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5628 *COFF*)
5629 DUMPBIN="$DUMPBIN -symbols -headers"
5630 ;;
5631 *)
5632 DUMPBIN=:
5633 ;;
5634 esac
5635 fi
5636
5637 if test : != "$DUMPBIN"; then
5638 NM=$DUMPBIN
5639 fi
5640 fi
5641 test -z "$NM" && NM=nm
5642
5643
5644
5645
5646
5647
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5649 printf %s "checking the name lister ($NM) interface... " >&6; }
5650 if test ${lt_cv_nm_interface+y}
5651 then :
5652 printf %s "(cached) " >&6
5653 else $as_nop
5654 lt_cv_nm_interface="BSD nm"
5655 echo "int some_variable = 0;" > conftest.$ac_ext
5656 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5657 (eval "$ac_compile" 2>conftest.err)
5658 cat conftest.err >&5
5659 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5660 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5661 cat conftest.err >&5
5662 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5663 cat conftest.out >&5
5664 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5665 lt_cv_nm_interface="MS dumpbin"
5666 fi
5667 rm -f conftest*
5668 fi
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5670 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5671
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5673 printf %s "checking whether ln -s works... " >&6; }
5674 LN_S=$as_ln_s
5675 if test "$LN_S" = "ln -s"; then
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677 printf "%s\n" "yes" >&6; }
5678 else
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5680 printf "%s\n" "no, using $LN_S" >&6; }
5681 fi
5682
5683 # find the maximum length of command line arguments
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5685 printf %s "checking the maximum length of command line arguments... " >&6; }
5686 if test ${lt_cv_sys_max_cmd_len+y}
5687 then :
5688 printf %s "(cached) " >&6
5689 else $as_nop
5690 i=0
5691 teststring=ABCD
5692
5693 case $build_os in
5694 msdosdjgpp*)
5695 # On DJGPP, this test can blow up pretty badly due to problems in libc
5696 # (any single argument exceeding 2000 bytes causes a buffer overrun
5697 # during glob expansion). Even if it were fixed, the result of this
5698 # check would be larger than it should be.
5699 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5700 ;;
5701
5702 gnu*)
5703 # Under GNU Hurd, this test is not required because there is
5704 # no limit to the length of command line arguments.
5705 # Libtool will interpret -1 as no limit whatsoever
5706 lt_cv_sys_max_cmd_len=-1;
5707 ;;
5708
5709 cygwin* | mingw* | cegcc*)
5710 # On Win9x/ME, this test blows up -- it succeeds, but takes
5711 # about 5 minutes as the teststring grows exponentially.
5712 # Worse, since 9x/ME are not pre-emptively multitasking,
5713 # you end up with a "frozen" computer, even though with patience
5714 # the test eventually succeeds (with a max line length of 256k).
5715 # Instead, let's just punt: use the minimum linelength reported by
5716 # all of the supported platforms: 8192 (on NT/2K/XP).
5717 lt_cv_sys_max_cmd_len=8192;
5718 ;;
5719
5720 mint*)
5721 # On MiNT this can take a long time and run out of memory.
5722 lt_cv_sys_max_cmd_len=8192;
5723 ;;
5724
5725 amigaos*)
5726 # On AmigaOS with pdksh, this test takes hours, literally.
5727 # So we just punt and use a minimum line length of 8192.
5728 lt_cv_sys_max_cmd_len=8192;
5729 ;;
5730
5731 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5732 # This has been around since 386BSD, at least. Likely further.
5733 if test -x /sbin/sysctl; then
5734 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5735 elif test -x /usr/sbin/sysctl; then
5736 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5737 else
5738 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5739 fi
5740 # And add a safety zone
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5743 ;;
5744
5745 interix*)
5746 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5747 lt_cv_sys_max_cmd_len=196608
5748 ;;
5749
5750 os2*)
5751 # The test takes a long time on OS/2.
5752 lt_cv_sys_max_cmd_len=8192
5753 ;;
5754
5755 osf*)
5756 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5757 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5758 # nice to cause kernel panics so lets avoid the loop below.
5759 # First set a reasonable default.
5760 lt_cv_sys_max_cmd_len=16384
5761 #
5762 if test -x /sbin/sysconfig; then
5763 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5764 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5765 esac
5766 fi
5767 ;;
5768 sco3.2v5*)
5769 lt_cv_sys_max_cmd_len=102400
5770 ;;
5771 sysv5* | sco5v6* | sysv4.2uw2*)
5772 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5773 if test -n "$kargmax"; then
5774 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5775 else
5776 lt_cv_sys_max_cmd_len=32768
5777 fi
5778 ;;
5779 *)
5780 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5781 if test -n "$lt_cv_sys_max_cmd_len" && \
5782 test undefined != "$lt_cv_sys_max_cmd_len"; then
5783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5785 else
5786 # Make teststring a little bigger before we do anything with it.
5787 # a 1K string should be a reasonable start.
5788 for i in 1 2 3 4 5 6 7 8; do
5789 teststring=$teststring$teststring
5790 done
5791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5792 # If test is not a shell built-in, we'll probably end up computing a
5793 # maximum length that is only half of the actual maximum length, but
5794 # we can't tell.
5795 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5796 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5797 test 17 != "$i" # 1/2 MB should be enough
5798 do
5799 i=`expr $i + 1`
5800 teststring=$teststring$teststring
5801 done
5802 # Only check the string length outside the loop.
5803 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5804 teststring=
5805 # Add a significant safety factor because C++ compilers can tack on
5806 # massive amounts of additional arguments before passing them to the
5807 # linker. It appears as though 1/2 is a usable value.
5808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5809 fi
5810 ;;
5811 esac
5812
5813 fi
5814
5815 if test -n "$lt_cv_sys_max_cmd_len"; then
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5817 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5818 else
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5820 printf "%s\n" "none" >&6; }
5821 fi
5822 max_cmd_len=$lt_cv_sys_max_cmd_len
5823
5824
5825
5826
5827
5828
5829 : ${CP="cp -f"}
5830 : ${MV="mv -f"}
5831 : ${RM="rm -f"}
5832
5833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5834 lt_unset=unset
5835 else
5836 lt_unset=false
5837 fi
5838
5839
5840
5841
5842
5843 # test EBCDIC or ASCII
5844 case `echo X|tr X '\101'` in
5845 A) # ASCII based system
5846 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5847 lt_SP2NL='tr \040 \012'
5848 lt_NL2SP='tr \015\012 \040\040'
5849 ;;
5850 *) # EBCDIC based system
5851 lt_SP2NL='tr \100 \n'
5852 lt_NL2SP='tr \r\n \100\100'
5853 ;;
5854 esac
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5865 printf %s "checking how to convert $build file names to $host format... " >&6; }
5866 if test ${lt_cv_to_host_file_cmd+y}
5867 then :
5868 printf %s "(cached) " >&6
5869 else $as_nop
5870 case $host in
5871 *-*-mingw* )
5872 case $build in
5873 *-*-mingw* ) # actually msys
5874 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5875 ;;
5876 *-*-cygwin* )
5877 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5878 ;;
5879 * ) # otherwise, assume *nix
5880 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5881 ;;
5882 esac
5883 ;;
5884 *-*-cygwin* )
5885 case $build in
5886 *-*-mingw* ) # actually msys
5887 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5888 ;;
5889 *-*-cygwin* )
5890 lt_cv_to_host_file_cmd=func_convert_file_noop
5891 ;;
5892 * ) # otherwise, assume *nix
5893 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5894 ;;
5895 esac
5896 ;;
5897 * ) # unhandled hosts (and "normal" native builds)
5898 lt_cv_to_host_file_cmd=func_convert_file_noop
5899 ;;
5900 esac
5901
5902 fi
5903
5904 to_host_file_cmd=$lt_cv_to_host_file_cmd
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5906 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5907
5908
5909
5910
5911
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5913 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5914 if test ${lt_cv_to_tool_file_cmd+y}
5915 then :
5916 printf %s "(cached) " >&6
5917 else $as_nop
5918 #assume ordinary cross tools, or native build.
5919 lt_cv_to_tool_file_cmd=func_convert_file_noop
5920 case $host in
5921 *-*-mingw* )
5922 case $build in
5923 *-*-mingw* ) # actually msys
5924 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5925 ;;
5926 esac
5927 ;;
5928 esac
5929
5930 fi
5931
5932 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5934 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5935
5936
5937
5938
5939
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5941 printf %s "checking for $LD option to reload object files... " >&6; }
5942 if test ${lt_cv_ld_reload_flag+y}
5943 then :
5944 printf %s "(cached) " >&6
5945 else $as_nop
5946 lt_cv_ld_reload_flag='-r'
5947 fi
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5949 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5950 reload_flag=$lt_cv_ld_reload_flag
5951 case $reload_flag in
5952 "" | " "*) ;;
5953 *) reload_flag=" $reload_flag" ;;
5954 esac
5955 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5956 case $host_os in
5957 cygwin* | mingw* | pw32* | cegcc*)
5958 if test yes != "$GCC"; then
5959 reload_cmds=false
5960 fi
5961 ;;
5962 darwin*)
5963 if test yes = "$GCC"; then
5964 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5965 else
5966 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5967 fi
5968 ;;
5969 esac
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979 if test -n "$ac_tool_prefix"; then
5980 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5981 set dummy ${ac_tool_prefix}file; ac_word=$2
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 printf %s "checking for $ac_word... " >&6; }
5984 if test ${ac_cv_prog_FILECMD+y}
5985 then :
5986 printf %s "(cached) " >&6
5987 else $as_nop
5988 if test -n "$FILECMD"; then
5989 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5993 do
5994 IFS=$as_save_IFS
5995 case $as_dir in #(((
5996 '') as_dir=./ ;;
5997 */) ;;
5998 *) as_dir=$as_dir/ ;;
5999 esac
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6002 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6010 fi
6011 fi
6012 FILECMD=$ac_cv_prog_FILECMD
6013 if test -n "$FILECMD"; then
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6015 printf "%s\n" "$FILECMD" >&6; }
6016 else
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 printf "%s\n" "no" >&6; }
6019 fi
6020
6021
6022 fi
6023 if test -z "$ac_cv_prog_FILECMD"; then
6024 ac_ct_FILECMD=$FILECMD
6025 # Extract the first word of "file", so it can be a program name with args.
6026 set dummy file; ac_word=$2
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 printf %s "checking for $ac_word... " >&6; }
6029 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6030 then :
6031 printf %s "(cached) " >&6
6032 else $as_nop
6033 if test -n "$ac_ct_FILECMD"; then
6034 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039 IFS=$as_save_IFS
6040 case $as_dir in #(((
6041 '') as_dir=./ ;;
6042 */) ;;
6043 *) as_dir=$as_dir/ ;;
6044 esac
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6047 ac_cv_prog_ac_ct_FILECMD="file"
6048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6049 break 2
6050 fi
6051 done
6052 done
6053 IFS=$as_save_IFS
6054
6055 fi
6056 fi
6057 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6058 if test -n "$ac_ct_FILECMD"; then
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6060 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6061 else
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 printf "%s\n" "no" >&6; }
6064 fi
6065
6066 if test "x$ac_ct_FILECMD" = x; then
6067 FILECMD=":"
6068 else
6069 case $cross_compiling:$ac_tool_warned in
6070 yes:)
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073 ac_tool_warned=yes ;;
6074 esac
6075 FILECMD=$ac_ct_FILECMD
6076 fi
6077 else
6078 FILECMD="$ac_cv_prog_FILECMD"
6079 fi
6080
6081
6082
6083
6084
6085
6086
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 printf %s "checking for $ac_word... " >&6; }
6092 if test ${ac_cv_prog_OBJDUMP+y}
6093 then :
6094 printf %s "(cached) " >&6
6095 else $as_nop
6096 if test -n "$OBJDUMP"; then
6097 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102 IFS=$as_save_IFS
6103 case $as_dir in #(((
6104 '') as_dir=./ ;;
6105 */) ;;
6106 *) as_dir=$as_dir/ ;;
6107 esac
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 OBJDUMP=$ac_cv_prog_OBJDUMP
6121 if test -n "$OBJDUMP"; then
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6123 printf "%s\n" "$OBJDUMP" >&6; }
6124 else
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 printf "%s\n" "no" >&6; }
6127 fi
6128
6129
6130 fi
6131 if test -z "$ac_cv_prog_OBJDUMP"; then
6132 ac_ct_OBJDUMP=$OBJDUMP
6133 # Extract the first word of "objdump", so it can be a program name with args.
6134 set dummy objdump; ac_word=$2
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 printf %s "checking for $ac_word... " >&6; }
6137 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6138 then :
6139 printf %s "(cached) " >&6
6140 else $as_nop
6141 if test -n "$ac_ct_OBJDUMP"; then
6142 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147 IFS=$as_save_IFS
6148 case $as_dir in #(((
6149 '') as_dir=./ ;;
6150 */) ;;
6151 *) as_dir=$as_dir/ ;;
6152 esac
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6166 if test -n "$ac_ct_OBJDUMP"; then
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6168 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6169 else
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 printf "%s\n" "no" >&6; }
6172 fi
6173
6174 if test "x$ac_ct_OBJDUMP" = x; then
6175 OBJDUMP="false"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 OBJDUMP=$ac_ct_OBJDUMP
6184 fi
6185 else
6186 OBJDUMP="$ac_cv_prog_OBJDUMP"
6187 fi
6188
6189 test -z "$OBJDUMP" && OBJDUMP=objdump
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6200 printf %s "checking how to recognize dependent libraries... " >&6; }
6201 if test ${lt_cv_deplibs_check_method+y}
6202 then :
6203 printf %s "(cached) " >&6
6204 else $as_nop
6205 lt_cv_file_magic_cmd='$MAGIC_CMD'
6206 lt_cv_file_magic_test_file=
6207 lt_cv_deplibs_check_method='unknown'
6208 # Need to set the preceding variable on all platforms that support
6209 # interlibrary dependencies.
6210 # 'none' -- dependencies not supported.
6211 # 'unknown' -- same as none, but documents that we really don't know.
6212 # 'pass_all' -- all dependencies passed with no checks.
6213 # 'test_compile' -- check by making test program.
6214 # 'file_magic [[regex]]' -- check by looking for files in library path
6215 # that responds to the $file_magic_cmd with a given extended regex.
6216 # If you have 'file' or equivalent on your system and you're not sure
6217 # whether 'pass_all' will *always* work, you probably want this one.
6218
6219 case $host_os in
6220 aix[4-9]*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224 beos*)
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
6227
6228 bsdi[45]*)
6229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6230 lt_cv_file_magic_cmd='$FILECMD -L'
6231 lt_cv_file_magic_test_file=/shlib/libc.so
6232 ;;
6233
6234 cygwin*)
6235 # func_win32_libid is a shell function defined in ltmain.sh
6236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6237 lt_cv_file_magic_cmd='func_win32_libid'
6238 ;;
6239
6240 mingw* | pw32*)
6241 # Base MSYS/MinGW do not provide the 'file' command needed by
6242 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6243 # unless we find 'file', for example because we are cross-compiling.
6244 if ( file / ) >/dev/null 2>&1; then
6245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6246 lt_cv_file_magic_cmd='func_win32_libid'
6247 else
6248 # Keep this pattern in sync with the one in func_win32_libid.
6249 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6250 lt_cv_file_magic_cmd='$OBJDUMP -f'
6251 fi
6252 ;;
6253
6254 cegcc*)
6255 # use the weaker test based on 'objdump'. See mingw*.
6256 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6257 lt_cv_file_magic_cmd='$OBJDUMP -f'
6258 ;;
6259
6260 darwin* | rhapsody*)
6261 lt_cv_deplibs_check_method=pass_all
6262 ;;
6263
6264 freebsd* | dragonfly* | midnightbsd*)
6265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6266 case $host_cpu in
6267 i*86 )
6268 # Not sure whether the presence of OpenBSD here was a mistake.
6269 # Let's accept both of them until this is cleared up.
6270 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6271 lt_cv_file_magic_cmd=$FILECMD
6272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6273 ;;
6274 esac
6275 else
6276 lt_cv_deplibs_check_method=pass_all
6277 fi
6278 ;;
6279
6280 haiku*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283
6284 hpux10.20* | hpux11*)
6285 lt_cv_file_magic_cmd=$FILECMD
6286 case $host_cpu in
6287 ia64*)
6288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6289 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6290 ;;
6291 hppa*64*)
6292 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]'
6293 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6294 ;;
6295 *)
6296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6297 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6298 ;;
6299 esac
6300 ;;
6301
6302 interix[3-9]*)
6303 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6305 ;;
6306
6307 irix5* | irix6* | nonstopux*)
6308 case $LD in
6309 *-32|*"-32 ") libmagic=32-bit;;
6310 *-n32|*"-n32 ") libmagic=N32;;
6311 *-64|*"-64 ") libmagic=64-bit;;
6312 *) libmagic=never-match;;
6313 esac
6314 lt_cv_deplibs_check_method=pass_all
6315 ;;
6316
6317 # This must be glibc/ELF.
6318 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6319 lt_cv_deplibs_check_method=pass_all
6320 ;;
6321
6322 netbsd*)
6323 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6325 else
6326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6327 fi
6328 ;;
6329
6330 newos6*)
6331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6332 lt_cv_file_magic_cmd=$FILECMD
6333 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6334 ;;
6335
6336 *nto* | *qnx*)
6337 lt_cv_deplibs_check_method=pass_all
6338 ;;
6339
6340 openbsd* | bitrig*)
6341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6343 else
6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6345 fi
6346 ;;
6347
6348 osf3* | osf4* | osf5*)
6349 lt_cv_deplibs_check_method=pass_all
6350 ;;
6351
6352 rdos*)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355
6356 solaris*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
6359
6360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364 sysv4 | sysv4.3*)
6365 case $host_vendor in
6366 motorola)
6367 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]'
6368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6369 ;;
6370 ncr)
6371 lt_cv_deplibs_check_method=pass_all
6372 ;;
6373 sequent)
6374 lt_cv_file_magic_cmd='/bin/file'
6375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6376 ;;
6377 sni)
6378 lt_cv_file_magic_cmd='/bin/file'
6379 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6380 lt_cv_file_magic_test_file=/lib/libc.so
6381 ;;
6382 siemens)
6383 lt_cv_deplibs_check_method=pass_all
6384 ;;
6385 pc)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388 esac
6389 ;;
6390
6391 tpf*)
6392 lt_cv_deplibs_check_method=pass_all
6393 ;;
6394 os2*)
6395 lt_cv_deplibs_check_method=pass_all
6396 ;;
6397 esac
6398
6399 fi
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6401 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6402
6403 file_magic_glob=
6404 want_nocaseglob=no
6405 if test "$build" = "$host"; then
6406 case $host_os in
6407 mingw* | pw32*)
6408 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6409 want_nocaseglob=yes
6410 else
6411 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6412 fi
6413 ;;
6414 esac
6415 fi
6416
6417 file_magic_cmd=$lt_cv_file_magic_cmd
6418 deplibs_check_method=$lt_cv_deplibs_check_method
6419 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 printf %s "checking for $ac_word... " >&6; }
6447 if test ${ac_cv_prog_DLLTOOL+y}
6448 then :
6449 printf %s "(cached) " >&6
6450 else $as_nop
6451 if test -n "$DLLTOOL"; then
6452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 case $as_dir in #(((
6459 '') as_dir=./ ;;
6460 */) ;;
6461 *) as_dir=$as_dir/ ;;
6462 esac
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 DLLTOOL=$ac_cv_prog_DLLTOOL
6476 if test -n "$DLLTOOL"; then
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6478 printf "%s\n" "$DLLTOOL" >&6; }
6479 else
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 printf "%s\n" "no" >&6; }
6482 fi
6483
6484
6485 fi
6486 if test -z "$ac_cv_prog_DLLTOOL"; then
6487 ac_ct_DLLTOOL=$DLLTOOL
6488 # Extract the first word of "dlltool", so it can be a program name with args.
6489 set dummy dlltool; ac_word=$2
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 printf %s "checking for $ac_word... " >&6; }
6492 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6493 then :
6494 printf %s "(cached) " >&6
6495 else $as_nop
6496 if test -n "$ac_ct_DLLTOOL"; then
6497 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502 IFS=$as_save_IFS
6503 case $as_dir in #(((
6504 '') as_dir=./ ;;
6505 */) ;;
6506 *) as_dir=$as_dir/ ;;
6507 esac
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514 done
6515 done
6516 IFS=$as_save_IFS
6517
6518 fi
6519 fi
6520 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6521 if test -n "$ac_ct_DLLTOOL"; then
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6523 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6524 else
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 printf "%s\n" "no" >&6; }
6527 fi
6528
6529 if test "x$ac_ct_DLLTOOL" = x; then
6530 DLLTOOL="false"
6531 else
6532 case $cross_compiling:$ac_tool_warned in
6533 yes:)
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6535 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6536 ac_tool_warned=yes ;;
6537 esac
6538 DLLTOOL=$ac_ct_DLLTOOL
6539 fi
6540 else
6541 DLLTOOL="$ac_cv_prog_DLLTOOL"
6542 fi
6543
6544 test -z "$DLLTOOL" && DLLTOOL=dlltool
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6556 printf %s "checking how to associate runtime and link libraries... " >&6; }
6557 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6558 then :
6559 printf %s "(cached) " >&6
6560 else $as_nop
6561 lt_cv_sharedlib_from_linklib_cmd='unknown'
6562
6563 case $host_os in
6564 cygwin* | mingw* | pw32* | cegcc*)
6565 # two different shell functions defined in ltmain.sh;
6566 # decide which one to use based on capabilities of $DLLTOOL
6567 case `$DLLTOOL --help 2>&1` in
6568 *--identify-strict*)
6569 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6570 ;;
6571 *)
6572 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6573 ;;
6574 esac
6575 ;;
6576 *)
6577 # fallback: assume linklib IS sharedlib
6578 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6579 ;;
6580 esac
6581
6582 fi
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6584 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6585 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6586 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6587
6588
6589
6590
6591
6592
6593
6594 if test -n "$ac_tool_prefix"; then
6595 for ac_prog in ar
6596 do
6597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 printf %s "checking for $ac_word... " >&6; }
6601 if test ${ac_cv_prog_AR+y}
6602 then :
6603 printf %s "(cached) " >&6
6604 else $as_nop
6605 if test -n "$AR"; then
6606 ac_cv_prog_AR="$AR" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611 IFS=$as_save_IFS
6612 case $as_dir in #(((
6613 '') as_dir=./ ;;
6614 */) ;;
6615 *) as_dir=$as_dir/ ;;
6616 esac
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6619 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 AR=$ac_cv_prog_AR
6630 if test -n "$AR"; then
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6632 printf "%s\n" "$AR" >&6; }
6633 else
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 printf "%s\n" "no" >&6; }
6636 fi
6637
6638
6639 test -n "$AR" && break
6640 done
6641 fi
6642 if test -z "$AR"; then
6643 ac_ct_AR=$AR
6644 for ac_prog in ar
6645 do
6646 # Extract the first word of "$ac_prog", so it can be a program name with args.
6647 set dummy $ac_prog; ac_word=$2
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 printf %s "checking for $ac_word... " >&6; }
6650 if test ${ac_cv_prog_ac_ct_AR+y}
6651 then :
6652 printf %s "(cached) " >&6
6653 else $as_nop
6654 if test -n "$ac_ct_AR"; then
6655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 case $as_dir in #(((
6662 '') as_dir=./ ;;
6663 */) ;;
6664 *) as_dir=$as_dir/ ;;
6665 esac
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_ac_ct_AR="$ac_prog"
6669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6679 if test -n "$ac_ct_AR"; then
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6681 printf "%s\n" "$ac_ct_AR" >&6; }
6682 else
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 printf "%s\n" "no" >&6; }
6685 fi
6686
6687
6688 test -n "$ac_ct_AR" && break
6689 done
6690
6691 if test "x$ac_ct_AR" = x; then
6692 AR="false"
6693 else
6694 case $cross_compiling:$ac_tool_warned in
6695 yes:)
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6699 esac
6700 AR=$ac_ct_AR
6701 fi
6702 fi
6703
6704 : ${AR=ar}
6705
6706
6707
6708
6709
6710
6711 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6712 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6713 # higher priority because thats what people were doing historically (setting
6714 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6715 # variable obsoleted/removed.
6716
6717 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6718 lt_ar_flags=$AR_FLAGS
6719
6720
6721
6722
6723
6724
6725 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6726 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6727
6728
6729
6730
6731
6732
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6734 printf %s "checking for archiver @FILE support... " >&6; }
6735 if test ${lt_cv_ar_at_file+y}
6736 then :
6737 printf %s "(cached) " >&6
6738 else $as_nop
6739 lt_cv_ar_at_file=no
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742
6743 int
6744 main (void)
6745 {
6746
6747 ;
6748 return 0;
6749 }
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"
6752 then :
6753 echo conftest.$ac_objext > conftest.lst
6754 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6756 (eval $lt_ar_try) 2>&5
6757 ac_status=$?
6758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759 test $ac_status = 0; }
6760 if test 0 -eq "$ac_status"; then
6761 # Ensure the archiver fails upon bogus file names.
6762 rm -f conftest.$ac_objext libconftest.a
6763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6764 (eval $lt_ar_try) 2>&5
6765 ac_status=$?
6766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; }
6768 if test 0 -ne "$ac_status"; then
6769 lt_cv_ar_at_file=@
6770 fi
6771 fi
6772 rm -f conftest.* libconftest.a
6773
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6776
6777 fi
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6779 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6780
6781 if test no = "$lt_cv_ar_at_file"; then
6782 archiver_list_spec=
6783 else
6784 archiver_list_spec=$lt_cv_ar_at_file
6785 fi
6786
6787
6788
6789
6790
6791
6792
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}strip; ac_word=$2
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 printf %s "checking for $ac_word... " >&6; }
6798 if test ${ac_cv_prog_STRIP+y}
6799 then :
6800 printf %s "(cached) " >&6
6801 else $as_nop
6802 if test -n "$STRIP"; then
6803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808 IFS=$as_save_IFS
6809 case $as_dir in #(((
6810 '') as_dir=./ ;;
6811 */) ;;
6812 *) as_dir=$as_dir/ ;;
6813 esac
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6816 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 STRIP=$ac_cv_prog_STRIP
6827 if test -n "$STRIP"; then
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6829 printf "%s\n" "$STRIP" >&6; }
6830 else
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 printf "%s\n" "no" >&6; }
6833 fi
6834
6835
6836 fi
6837 if test -z "$ac_cv_prog_STRIP"; then
6838 ac_ct_STRIP=$STRIP
6839 # Extract the first word of "strip", so it can be a program name with args.
6840 set dummy strip; ac_word=$2
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 printf %s "checking for $ac_word... " >&6; }
6843 if test ${ac_cv_prog_ac_ct_STRIP+y}
6844 then :
6845 printf %s "(cached) " >&6
6846 else $as_nop
6847 if test -n "$ac_ct_STRIP"; then
6848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 case $as_dir in #(((
6855 '') as_dir=./ ;;
6856 */) ;;
6857 *) as_dir=$as_dir/ ;;
6858 esac
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6861 ac_cv_prog_ac_ct_STRIP="strip"
6862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6872 if test -n "$ac_ct_STRIP"; then
6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6874 printf "%s\n" "$ac_ct_STRIP" >&6; }
6875 else
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 printf "%s\n" "no" >&6; }
6878 fi
6879
6880 if test "x$ac_ct_STRIP" = x; then
6881 STRIP=":"
6882 else
6883 case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887 ac_tool_warned=yes ;;
6888 esac
6889 STRIP=$ac_ct_STRIP
6890 fi
6891 else
6892 STRIP="$ac_cv_prog_STRIP"
6893 fi
6894
6895 test -z "$STRIP" && STRIP=:
6896
6897
6898
6899
6900
6901
6902 if test -n "$ac_tool_prefix"; then
6903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 printf %s "checking for $ac_word... " >&6; }
6907 if test ${ac_cv_prog_RANLIB+y}
6908 then :
6909 printf %s "(cached) " >&6
6910 else $as_nop
6911 if test -n "$RANLIB"; then
6912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 case $as_dir in #(((
6919 '') as_dir=./ ;;
6920 */) ;;
6921 *) as_dir=$as_dir/ ;;
6922 esac
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 RANLIB=$ac_cv_prog_RANLIB
6936 if test -n "$RANLIB"; then
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6938 printf "%s\n" "$RANLIB" >&6; }
6939 else
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 printf "%s\n" "no" >&6; }
6942 fi
6943
6944
6945 fi
6946 if test -z "$ac_cv_prog_RANLIB"; then
6947 ac_ct_RANLIB=$RANLIB
6948 # Extract the first word of "ranlib", so it can be a program name with args.
6949 set dummy ranlib; ac_word=$2
6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 printf %s "checking for $ac_word... " >&6; }
6952 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6953 then :
6954 printf %s "(cached) " >&6
6955 else $as_nop
6956 if test -n "$ac_ct_RANLIB"; then
6957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 case $as_dir in #(((
6964 '') as_dir=./ ;;
6965 */) ;;
6966 *) as_dir=$as_dir/ ;;
6967 esac
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_RANLIB="ranlib"
6971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6981 if test -n "$ac_ct_RANLIB"; then
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6983 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6984 else
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 printf "%s\n" "no" >&6; }
6987 fi
6988
6989 if test "x$ac_ct_RANLIB" = x; then
6990 RANLIB=":"
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998 RANLIB=$ac_ct_RANLIB
6999 fi
7000 else
7001 RANLIB="$ac_cv_prog_RANLIB"
7002 fi
7003
7004 test -z "$RANLIB" && RANLIB=:
7005
7006
7007
7008
7009
7010
7011 # Determine commands to create old-style static archives.
7012 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7013 old_postinstall_cmds='chmod 644 $oldlib'
7014 old_postuninstall_cmds=
7015
7016 if test -n "$RANLIB"; then
7017 case $host_os in
7018 bitrig* | openbsd*)
7019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7020 ;;
7021 *)
7022 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7023 ;;
7024 esac
7025 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7026 fi
7027
7028 case $host_os in
7029 darwin*)
7030 lock_old_archive_extraction=yes ;;
7031 *)
7032 lock_old_archive_extraction=no ;;
7033 esac
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073 # If no C compiler was specified, use CC.
7074 LTCC=${LTCC-"$CC"}
7075
7076 # If no C compiler flags were specified, use CFLAGS.
7077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7078
7079 # Allow CC to be a program name with arguments.
7080 compiler=$CC
7081
7082
7083 # Check for command to grab the raw symbol name followed by C symbol from nm.
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7085 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7086 if test ${lt_cv_sys_global_symbol_pipe+y}
7087 then :
7088 printf %s "(cached) " >&6
7089 else $as_nop
7090
7091 # These are sane defaults that work on at least a few old systems.
7092 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7093
7094 # Character class describing NM global symbol codes.
7095 symcode='[BCDEGRST]'
7096
7097 # Regexp to match symbols that can be accessed directly from C.
7098 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7099
7100 # Define system-specific variables.
7101 case $host_os in
7102 aix*)
7103 symcode='[BCDT]'
7104 ;;
7105 cygwin* | mingw* | pw32* | cegcc*)
7106 symcode='[ABCDGISTW]'
7107 ;;
7108 hpux*)
7109 if test ia64 = "$host_cpu"; then
7110 symcode='[ABCDEGRST]'
7111 fi
7112 ;;
7113 irix* | nonstopux*)
7114 symcode='[BCDEGRST]'
7115 ;;
7116 osf*)
7117 symcode='[BCDEGQRST]'
7118 ;;
7119 solaris*)
7120 symcode='[BDRT]'
7121 ;;
7122 sco3.2v5*)
7123 symcode='[DT]'
7124 ;;
7125 sysv4.2uw2*)
7126 symcode='[DT]'
7127 ;;
7128 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7129 symcode='[ABDT]'
7130 ;;
7131 sysv4)
7132 symcode='[DFNSTU]'
7133 ;;
7134 esac
7135
7136 # If we're using GNU nm, then use its standard symbol codes.
7137 case `$NM -V 2>&1` in
7138 *GNU* | *'with BFD'*)
7139 symcode='[ABCDGIRSTW]' ;;
7140 esac
7141
7142 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7143 # Gets list of data symbols to import.
7144 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7145 # Adjust the below global symbol transforms to fixup imported variables.
7146 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7147 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7148 lt_c_name_lib_hook="\
7149 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7150 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7151 else
7152 # Disable hooks by default.
7153 lt_cv_sys_global_symbol_to_import=
7154 lt_cdecl_hook=
7155 lt_c_name_hook=
7156 lt_c_name_lib_hook=
7157 fi
7158
7159 # Transform an extracted symbol line into a proper C declaration.
7160 # Some systems (esp. on ia64) link data and code symbols differently,
7161 # so use this general approach.
7162 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7163 $lt_cdecl_hook\
7164 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7165 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7166
7167 # Transform an extracted symbol line into symbol name and symbol address
7168 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7169 $lt_c_name_hook\
7170 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7171 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7172
7173 # Transform an extracted symbol line into symbol name with lib prefix and
7174 # symbol address.
7175 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7176 $lt_c_name_lib_hook\
7177 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7178 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7179 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7180
7181 # Handle CRLF in mingw tool chain
7182 opt_cr=
7183 case $build_os in
7184 mingw*)
7185 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7186 ;;
7187 esac
7188
7189 # Try without a prefix underscore, then with it.
7190 for ac_symprfx in "" "_"; do
7191
7192 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7193 symxfrm="\\1 $ac_symprfx\\2 \\2"
7194
7195 # Write the raw and C identifiers.
7196 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7197 # Fake it for dumpbin and say T for any non-static function,
7198 # D for any global variable and I for any imported variable.
7199 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7200 # which start with @ or ?.
7201 lt_cv_sys_global_symbol_pipe="$AWK '"\
7202 " {last_section=section; section=\$ 3};"\
7203 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7204 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7205 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7206 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7207 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7208 " \$ 0!~/External *\|/{next};"\
7209 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7210 " {if(hide[section]) next};"\
7211 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7212 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7213 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7214 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7215 " ' prfx=^$ac_symprfx"
7216 else
7217 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7218 fi
7219 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7220
7221 # Check to see that the pipe works correctly.
7222 pipe_works=no
7223
7224 rm -f conftest*
7225 cat > conftest.$ac_ext <<_LT_EOF
7226 #ifdef __cplusplus
7227 extern "C" {
7228 #endif
7229 char nm_test_var;
7230 void nm_test_func(void);
7231 void nm_test_func(void){}
7232 #ifdef __cplusplus
7233 }
7234 #endif
7235 int main(){nm_test_var='a';nm_test_func();return(0);}
7236 _LT_EOF
7237
7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7239 (eval $ac_compile) 2>&5
7240 ac_status=$?
7241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242 test $ac_status = 0; }; then
7243 # Now try to grab the symbols.
7244 nlist=conftest.nm
7245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7246 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7247 ac_status=$?
7248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249 test $ac_status = 0; } && test -s "$nlist"; then
7250 # Try sorting and uniquifying the output.
7251 if sort "$nlist" | uniq > "$nlist"T; then
7252 mv -f "$nlist"T "$nlist"
7253 else
7254 rm -f "$nlist"T
7255 fi
7256
7257 # Make sure that we snagged all the symbols we need.
7258 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7259 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7260 cat <<_LT_EOF > conftest.$ac_ext
7261 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7262 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7263 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7264 relocations are performed -- see ld's documentation on pseudo-relocs. */
7265 # define LT_DLSYM_CONST
7266 #elif defined __osf__
7267 /* This system does not cope well with relocations in const data. */
7268 # define LT_DLSYM_CONST
7269 #else
7270 # define LT_DLSYM_CONST const
7271 #endif
7272
7273 #ifdef __cplusplus
7274 extern "C" {
7275 #endif
7276
7277 _LT_EOF
7278 # Now generate the symbol file.
7279 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7280
7281 cat <<_LT_EOF >> conftest.$ac_ext
7282
7283 /* The mapping between symbol names and symbols. */
7284 LT_DLSYM_CONST struct {
7285 const char *name;
7286 void *address;
7287 }
7288 lt__PROGRAM__LTX_preloaded_symbols[] =
7289 {
7290 { "@PROGRAM@", (void *) 0 },
7291 _LT_EOF
7292 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7293 cat <<\_LT_EOF >> conftest.$ac_ext
7294 {0, (void *) 0}
7295 };
7296
7297 /* This works around a problem in FreeBSD linker */
7298 #ifdef FREEBSD_WORKAROUND
7299 static const void *lt_preloaded_setup() {
7300 return lt__PROGRAM__LTX_preloaded_symbols;
7301 }
7302 #endif
7303
7304 #ifdef __cplusplus
7305 }
7306 #endif
7307 _LT_EOF
7308 # Now try linking the two files.
7309 mv conftest.$ac_objext conftstm.$ac_objext
7310 lt_globsym_save_LIBS=$LIBS
7311 lt_globsym_save_CFLAGS=$CFLAGS
7312 LIBS=conftstm.$ac_objext
7313 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7315 (eval $ac_link) 2>&5
7316 ac_status=$?
7317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7319 pipe_works=yes
7320 fi
7321 LIBS=$lt_globsym_save_LIBS
7322 CFLAGS=$lt_globsym_save_CFLAGS
7323 else
7324 echo "cannot find nm_test_func in $nlist" >&5
7325 fi
7326 else
7327 echo "cannot find nm_test_var in $nlist" >&5
7328 fi
7329 else
7330 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7331 fi
7332 else
7333 echo "$progname: failed program was:" >&5
7334 cat conftest.$ac_ext >&5
7335 fi
7336 rm -rf conftest* conftst*
7337
7338 # Do not use the global_symbol_pipe unless it works.
7339 if test yes = "$pipe_works"; then
7340 break
7341 else
7342 lt_cv_sys_global_symbol_pipe=
7343 fi
7344 done
7345
7346 fi
7347
7348 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7349 lt_cv_sys_global_symbol_to_cdecl=
7350 fi
7351 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7353 printf "%s\n" "failed" >&6; }
7354 else
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7356 printf "%s\n" "ok" >&6; }
7357 fi
7358
7359 # Response file support.
7360 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7361 nm_file_list_spec='@'
7362 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7363 nm_file_list_spec='@'
7364 fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7403 printf %s "checking for sysroot... " >&6; }
7404
7405 # Check whether --with-sysroot was given.
7406 if test ${with_sysroot+y}
7407 then :
7408 withval=$with_sysroot;
7409 else $as_nop
7410 with_sysroot=no
7411 fi
7412
7413
7414 lt_sysroot=
7415 case $with_sysroot in #(
7416 yes)
7417 if test yes = "$GCC"; then
7418 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7419 fi
7420 ;; #(
7421 /*)
7422 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7423 ;; #(
7424 no|'')
7425 ;; #(
7426 *)
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7428 printf "%s\n" "$with_sysroot" >&6; }
7429 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7430 ;;
7431 esac
7432
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7434 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7435
7436
7437
7438
7439
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7441 printf %s "checking for a working dd... " >&6; }
7442 if test ${ac_cv_path_lt_DD+y}
7443 then :
7444 printf %s "(cached) " >&6
7445 else $as_nop
7446 printf 0123456789abcdef0123456789abcdef >conftest.i
7447 cat conftest.i conftest.i >conftest2.i
7448 : ${lt_DD:=$DD}
7449 if test -z "$lt_DD"; then
7450 ac_path_lt_DD_found=false
7451 # Loop through the user's path and test for each of PROGNAME-LIST
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455 IFS=$as_save_IFS
7456 case $as_dir in #(((
7457 '') as_dir=./ ;;
7458 */) ;;
7459 *) as_dir=$as_dir/ ;;
7460 esac
7461 for ac_prog in dd
7462 do
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7465 as_fn_executable_p "$ac_path_lt_DD" || continue
7466 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7467 cmp -s conftest.i conftest.out \
7468 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7469 fi
7470 $ac_path_lt_DD_found && break 3
7471 done
7472 done
7473 done
7474 IFS=$as_save_IFS
7475 if test -z "$ac_cv_path_lt_DD"; then
7476 :
7477 fi
7478 else
7479 ac_cv_path_lt_DD=$lt_DD
7480 fi
7481
7482 rm -f conftest.i conftest2.i conftest.out
7483 fi
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7485 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7486
7487
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7489 printf %s "checking how to truncate binary pipes... " >&6; }
7490 if test ${lt_cv_truncate_bin+y}
7491 then :
7492 printf %s "(cached) " >&6
7493 else $as_nop
7494 printf 0123456789abcdef0123456789abcdef >conftest.i
7495 cat conftest.i conftest.i >conftest2.i
7496 lt_cv_truncate_bin=
7497 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7498 cmp -s conftest.i conftest.out \
7499 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7500 fi
7501 rm -f conftest.i conftest2.i conftest.out
7502 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7503 fi
7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7505 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7506
7507
7508
7509
7510
7511
7512
7513 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7514 func_cc_basename ()
7515 {
7516 for cc_temp in $*""; do
7517 case $cc_temp in
7518 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7519 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7520 \-*) ;;
7521 *) break;;
7522 esac
7523 done
7524 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7525 }
7526
7527 # Check whether --enable-libtool-lock was given.
7528 if test ${enable_libtool_lock+y}
7529 then :
7530 enableval=$enable_libtool_lock;
7531 fi
7532
7533 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7534
7535 # Some flags need to be propagated to the compiler or linker for good
7536 # libtool support.
7537 case $host in
7538 ia64-*-hpux*)
7539 # Find out what ABI is being produced by ac_compile, and set mode
7540 # options accordingly.
7541 echo 'int i;' > conftest.$ac_ext
7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7543 (eval $ac_compile) 2>&5
7544 ac_status=$?
7545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546 test $ac_status = 0; }; then
7547 case `$FILECMD conftest.$ac_objext` in
7548 *ELF-32*)
7549 HPUX_IA64_MODE=32
7550 ;;
7551 *ELF-64*)
7552 HPUX_IA64_MODE=64
7553 ;;
7554 esac
7555 fi
7556 rm -rf conftest*
7557 ;;
7558 *-*-irix6*)
7559 # Find out what ABI is being produced by ac_compile, and set linker
7560 # options accordingly.
7561 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7563 (eval $ac_compile) 2>&5
7564 ac_status=$?
7565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7566 test $ac_status = 0; }; then
7567 if test yes = "$lt_cv_prog_gnu_ld"; then
7568 case `$FILECMD conftest.$ac_objext` in
7569 *32-bit*)
7570 LD="${LD-ld} -melf32bsmip"
7571 ;;
7572 *N32*)
7573 LD="${LD-ld} -melf32bmipn32"
7574 ;;
7575 *64-bit*)
7576 LD="${LD-ld} -melf64bmip"
7577 ;;
7578 esac
7579 else
7580 case `$FILECMD conftest.$ac_objext` in
7581 *32-bit*)
7582 LD="${LD-ld} -32"
7583 ;;
7584 *N32*)
7585 LD="${LD-ld} -n32"
7586 ;;
7587 *64-bit*)
7588 LD="${LD-ld} -64"
7589 ;;
7590 esac
7591 fi
7592 fi
7593 rm -rf conftest*
7594 ;;
7595
7596 mips64*-*linux*)
7597 # Find out what ABI is being produced by ac_compile, and set linker
7598 # options accordingly.
7599 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7601 (eval $ac_compile) 2>&5
7602 ac_status=$?
7603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7604 test $ac_status = 0; }; then
7605 emul=elf
7606 case `$FILECMD conftest.$ac_objext` in
7607 *32-bit*)
7608 emul="${emul}32"
7609 ;;
7610 *64-bit*)
7611 emul="${emul}64"
7612 ;;
7613 esac
7614 case `$FILECMD conftest.$ac_objext` in
7615 *MSB*)
7616 emul="${emul}btsmip"
7617 ;;
7618 *LSB*)
7619 emul="${emul}ltsmip"
7620 ;;
7621 esac
7622 case `$FILECMD conftest.$ac_objext` in
7623 *N32*)
7624 emul="${emul}n32"
7625 ;;
7626 esac
7627 LD="${LD-ld} -m $emul"
7628 fi
7629 rm -rf conftest*
7630 ;;
7631
7632 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7633 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7634 # Find out what ABI is being produced by ac_compile, and set linker
7635 # options accordingly. Note that the listed cases only cover the
7636 # situations where additional linker options are needed (such as when
7637 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7638 # vice versa); the common cases where no linker options are needed do
7639 # not appear in the list.
7640 echo 'int i;' > conftest.$ac_ext
7641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7642 (eval $ac_compile) 2>&5
7643 ac_status=$?
7644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645 test $ac_status = 0; }; then
7646 case `$FILECMD conftest.o` in
7647 *32-bit*)
7648 case $host in
7649 x86_64-*kfreebsd*-gnu)
7650 LD="${LD-ld} -m elf_i386_fbsd"
7651 ;;
7652 x86_64-*linux*)
7653 case `$FILECMD conftest.o` in
7654 *x86-64*)
7655 LD="${LD-ld} -m elf32_x86_64"
7656 ;;
7657 *)
7658 LD="${LD-ld} -m elf_i386"
7659 ;;
7660 esac
7661 ;;
7662 powerpc64le-*linux*)
7663 LD="${LD-ld} -m elf32lppclinux"
7664 ;;
7665 powerpc64-*linux*)
7666 LD="${LD-ld} -m elf32ppclinux"
7667 ;;
7668 s390x-*linux*)
7669 LD="${LD-ld} -m elf_s390"
7670 ;;
7671 sparc64-*linux*)
7672 LD="${LD-ld} -m elf32_sparc"
7673 ;;
7674 esac
7675 ;;
7676 *64-bit*)
7677 case $host in
7678 x86_64-*kfreebsd*-gnu)
7679 LD="${LD-ld} -m elf_x86_64_fbsd"
7680 ;;
7681 x86_64-*linux*)
7682 LD="${LD-ld} -m elf_x86_64"
7683 ;;
7684 powerpcle-*linux*)
7685 LD="${LD-ld} -m elf64lppc"
7686 ;;
7687 powerpc-*linux*)
7688 LD="${LD-ld} -m elf64ppc"
7689 ;;
7690 s390*-*linux*|s390*-*tpf*)
7691 LD="${LD-ld} -m elf64_s390"
7692 ;;
7693 sparc*-*linux*)
7694 LD="${LD-ld} -m elf64_sparc"
7695 ;;
7696 esac
7697 ;;
7698 esac
7699 fi
7700 rm -rf conftest*
7701 ;;
7702
7703 *-*-sco3.2v5*)
7704 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7705 SAVE_CFLAGS=$CFLAGS
7706 CFLAGS="$CFLAGS -belf"
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7708 printf %s "checking whether the C compiler needs -belf... " >&6; }
7709 if test ${lt_cv_cc_needs_belf+y}
7710 then :
7711 printf %s "(cached) " >&6
7712 else $as_nop
7713 ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721
7722 int
7723 main (void)
7724 {
7725
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_link "$LINENO"
7731 then :
7732 lt_cv_cc_needs_belf=yes
7733 else $as_nop
7734 lt_cv_cc_needs_belf=no
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7737 conftest$ac_exeext conftest.$ac_ext
7738 ac_ext=c
7739 ac_cpp='$CPP $CPPFLAGS'
7740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7743
7744 fi
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7746 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7747 if test yes != "$lt_cv_cc_needs_belf"; then
7748 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7749 CFLAGS=$SAVE_CFLAGS
7750 fi
7751 ;;
7752 *-*solaris*)
7753 # Find out what ABI is being produced by ac_compile, and set linker
7754 # options accordingly.
7755 echo 'int i;' > conftest.$ac_ext
7756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7757 (eval $ac_compile) 2>&5
7758 ac_status=$?
7759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; }; then
7761 case `$FILECMD conftest.o` in
7762 *64-bit*)
7763 case $lt_cv_prog_gnu_ld in
7764 yes*)
7765 case $host in
7766 i?86-*-solaris*|x86_64-*-solaris*)
7767 LD="${LD-ld} -m elf_x86_64"
7768 ;;
7769 sparc*-*-solaris*)
7770 LD="${LD-ld} -m elf64_sparc"
7771 ;;
7772 esac
7773 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7774 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7775 LD=${LD-ld}_sol2
7776 fi
7777 ;;
7778 *)
7779 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7780 LD="${LD-ld} -64"
7781 fi
7782 ;;
7783 esac
7784 ;;
7785 esac
7786 fi
7787 rm -rf conftest*
7788 ;;
7789 esac
7790
7791 need_locks=$enable_libtool_lock
7792
7793 if test -n "$ac_tool_prefix"; then
7794 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7795 set dummy ${ac_tool_prefix}mt; ac_word=$2
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 printf %s "checking for $ac_word... " >&6; }
7798 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7799 then :
7800 printf %s "(cached) " >&6
7801 else $as_nop
7802 if test -n "$MANIFEST_TOOL"; then
7803 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808 IFS=$as_save_IFS
7809 case $as_dir in #(((
7810 '') as_dir=./ ;;
7811 */) ;;
7812 *) as_dir=$as_dir/ ;;
7813 esac
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820 done
7821 done
7822 IFS=$as_save_IFS
7823
7824 fi
7825 fi
7826 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7827 if test -n "$MANIFEST_TOOL"; then
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7829 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7830 else
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 printf "%s\n" "no" >&6; }
7833 fi
7834
7835
7836 fi
7837 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7838 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7839 # Extract the first word of "mt", so it can be a program name with args.
7840 set dummy mt; ac_word=$2
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 printf %s "checking for $ac_word... " >&6; }
7843 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7844 then :
7845 printf %s "(cached) " >&6
7846 else $as_nop
7847 if test -n "$ac_ct_MANIFEST_TOOL"; then
7848 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853 IFS=$as_save_IFS
7854 case $as_dir in #(((
7855 '') as_dir=./ ;;
7856 */) ;;
7857 *) as_dir=$as_dir/ ;;
7858 esac
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865 done
7866 done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7872 if test -n "$ac_ct_MANIFEST_TOOL"; then
7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7874 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7875 else
7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 printf "%s\n" "no" >&6; }
7878 fi
7879
7880 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7881 MANIFEST_TOOL=":"
7882 else
7883 case $cross_compiling:$ac_tool_warned in
7884 yes:)
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887 ac_tool_warned=yes ;;
7888 esac
7889 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7890 fi
7891 else
7892 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7893 fi
7894
7895 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7897 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7898 if test ${lt_cv_path_mainfest_tool+y}
7899 then :
7900 printf %s "(cached) " >&6
7901 else $as_nop
7902 lt_cv_path_mainfest_tool=no
7903 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7904 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7905 cat conftest.err >&5
7906 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7907 lt_cv_path_mainfest_tool=yes
7908 fi
7909 rm -f conftest*
7910 fi
7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7912 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7913 if test yes != "$lt_cv_path_mainfest_tool"; then
7914 MANIFEST_TOOL=:
7915 fi
7916
7917
7918
7919
7920
7921
7922 case $host_os in
7923 rhapsody* | darwin*)
7924 if test -n "$ac_tool_prefix"; then
7925 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7926 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 printf %s "checking for $ac_word... " >&6; }
7929 if test ${ac_cv_prog_DSYMUTIL+y}
7930 then :
7931 printf %s "(cached) " >&6
7932 else $as_nop
7933 if test -n "$DSYMUTIL"; then
7934 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939 IFS=$as_save_IFS
7940 case $as_dir in #(((
7941 '') as_dir=./ ;;
7942 */) ;;
7943 *) as_dir=$as_dir/ ;;
7944 esac
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951 done
7952 done
7953 IFS=$as_save_IFS
7954
7955 fi
7956 fi
7957 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7958 if test -n "$DSYMUTIL"; then
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7960 printf "%s\n" "$DSYMUTIL" >&6; }
7961 else
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 printf "%s\n" "no" >&6; }
7964 fi
7965
7966
7967 fi
7968 if test -z "$ac_cv_prog_DSYMUTIL"; then
7969 ac_ct_DSYMUTIL=$DSYMUTIL
7970 # Extract the first word of "dsymutil", so it can be a program name with args.
7971 set dummy dsymutil; ac_word=$2
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 printf %s "checking for $ac_word... " >&6; }
7974 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7975 then :
7976 printf %s "(cached) " >&6
7977 else $as_nop
7978 if test -n "$ac_ct_DSYMUTIL"; then
7979 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 case $as_dir in #(((
7986 '') as_dir=./ ;;
7987 */) ;;
7988 *) as_dir=$as_dir/ ;;
7989 esac
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996 done
7997 done
7998 IFS=$as_save_IFS
7999
8000 fi
8001 fi
8002 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8003 if test -n "$ac_ct_DSYMUTIL"; then
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8005 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8006 else
8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 printf "%s\n" "no" >&6; }
8009 fi
8010
8011 if test "x$ac_ct_DSYMUTIL" = x; then
8012 DSYMUTIL=":"
8013 else
8014 case $cross_compiling:$ac_tool_warned in
8015 yes:)
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018 ac_tool_warned=yes ;;
8019 esac
8020 DSYMUTIL=$ac_ct_DSYMUTIL
8021 fi
8022 else
8023 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8024 fi
8025
8026 if test -n "$ac_tool_prefix"; then
8027 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8028 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 printf %s "checking for $ac_word... " >&6; }
8031 if test ${ac_cv_prog_NMEDIT+y}
8032 then :
8033 printf %s "(cached) " >&6
8034 else $as_nop
8035 if test -n "$NMEDIT"; then
8036 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041 IFS=$as_save_IFS
8042 case $as_dir in #(((
8043 '') as_dir=./ ;;
8044 */) ;;
8045 *) as_dir=$as_dir/ ;;
8046 esac
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 NMEDIT=$ac_cv_prog_NMEDIT
8060 if test -n "$NMEDIT"; then
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8062 printf "%s\n" "$NMEDIT" >&6; }
8063 else
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 printf "%s\n" "no" >&6; }
8066 fi
8067
8068
8069 fi
8070 if test -z "$ac_cv_prog_NMEDIT"; then
8071 ac_ct_NMEDIT=$NMEDIT
8072 # Extract the first word of "nmedit", so it can be a program name with args.
8073 set dummy nmedit; ac_word=$2
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 printf %s "checking for $ac_word... " >&6; }
8076 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8077 then :
8078 printf %s "(cached) " >&6
8079 else $as_nop
8080 if test -n "$ac_ct_NMEDIT"; then
8081 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086 IFS=$as_save_IFS
8087 case $as_dir in #(((
8088 '') as_dir=./ ;;
8089 */) ;;
8090 *) as_dir=$as_dir/ ;;
8091 esac
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098 done
8099 done
8100 IFS=$as_save_IFS
8101
8102 fi
8103 fi
8104 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8105 if test -n "$ac_ct_NMEDIT"; then
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8107 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8108 else
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 printf "%s\n" "no" >&6; }
8111 fi
8112
8113 if test "x$ac_ct_NMEDIT" = x; then
8114 NMEDIT=":"
8115 else
8116 case $cross_compiling:$ac_tool_warned in
8117 yes:)
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8119 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8120 ac_tool_warned=yes ;;
8121 esac
8122 NMEDIT=$ac_ct_NMEDIT
8123 fi
8124 else
8125 NMEDIT="$ac_cv_prog_NMEDIT"
8126 fi
8127
8128 if test -n "$ac_tool_prefix"; then
8129 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8130 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 printf %s "checking for $ac_word... " >&6; }
8133 if test ${ac_cv_prog_LIPO+y}
8134 then :
8135 printf %s "(cached) " >&6
8136 else $as_nop
8137 if test -n "$LIPO"; then
8138 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143 IFS=$as_save_IFS
8144 case $as_dir in #(((
8145 '') as_dir=./ ;;
8146 */) ;;
8147 *) as_dir=$as_dir/ ;;
8148 esac
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8153 break 2
8154 fi
8155 done
8156 done
8157 IFS=$as_save_IFS
8158
8159 fi
8160 fi
8161 LIPO=$ac_cv_prog_LIPO
8162 if test -n "$LIPO"; then
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8164 printf "%s\n" "$LIPO" >&6; }
8165 else
8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 printf "%s\n" "no" >&6; }
8168 fi
8169
8170
8171 fi
8172 if test -z "$ac_cv_prog_LIPO"; then
8173 ac_ct_LIPO=$LIPO
8174 # Extract the first word of "lipo", so it can be a program name with args.
8175 set dummy lipo; ac_word=$2
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 printf %s "checking for $ac_word... " >&6; }
8178 if test ${ac_cv_prog_ac_ct_LIPO+y}
8179 then :
8180 printf %s "(cached) " >&6
8181 else $as_nop
8182 if test -n "$ac_ct_LIPO"; then
8183 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8187 do
8188 IFS=$as_save_IFS
8189 case $as_dir in #(((
8190 '') as_dir=./ ;;
8191 */) ;;
8192 *) as_dir=$as_dir/ ;;
8193 esac
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8196 ac_cv_prog_ac_ct_LIPO="lipo"
8197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8198 break 2
8199 fi
8200 done
8201 done
8202 IFS=$as_save_IFS
8203
8204 fi
8205 fi
8206 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8207 if test -n "$ac_ct_LIPO"; then
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8209 printf "%s\n" "$ac_ct_LIPO" >&6; }
8210 else
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 printf "%s\n" "no" >&6; }
8213 fi
8214
8215 if test "x$ac_ct_LIPO" = x; then
8216 LIPO=":"
8217 else
8218 case $cross_compiling:$ac_tool_warned in
8219 yes:)
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8221 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8222 ac_tool_warned=yes ;;
8223 esac
8224 LIPO=$ac_ct_LIPO
8225 fi
8226 else
8227 LIPO="$ac_cv_prog_LIPO"
8228 fi
8229
8230 if test -n "$ac_tool_prefix"; then
8231 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8232 set dummy ${ac_tool_prefix}otool; ac_word=$2
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 printf %s "checking for $ac_word... " >&6; }
8235 if test ${ac_cv_prog_OTOOL+y}
8236 then :
8237 printf %s "(cached) " >&6
8238 else $as_nop
8239 if test -n "$OTOOL"; then
8240 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245 IFS=$as_save_IFS
8246 case $as_dir in #(((
8247 '') as_dir=./ ;;
8248 */) ;;
8249 *) as_dir=$as_dir/ ;;
8250 esac
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257 done
8258 done
8259 IFS=$as_save_IFS
8260
8261 fi
8262 fi
8263 OTOOL=$ac_cv_prog_OTOOL
8264 if test -n "$OTOOL"; then
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8266 printf "%s\n" "$OTOOL" >&6; }
8267 else
8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 printf "%s\n" "no" >&6; }
8270 fi
8271
8272
8273 fi
8274 if test -z "$ac_cv_prog_OTOOL"; then
8275 ac_ct_OTOOL=$OTOOL
8276 # Extract the first word of "otool", so it can be a program name with args.
8277 set dummy otool; ac_word=$2
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 printf %s "checking for $ac_word... " >&6; }
8280 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8281 then :
8282 printf %s "(cached) " >&6
8283 else $as_nop
8284 if test -n "$ac_ct_OTOOL"; then
8285 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8286 else
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8289 do
8290 IFS=$as_save_IFS
8291 case $as_dir in #(((
8292 '') as_dir=./ ;;
8293 */) ;;
8294 *) as_dir=$as_dir/ ;;
8295 esac
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8298 ac_cv_prog_ac_ct_OTOOL="otool"
8299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302 done
8303 done
8304 IFS=$as_save_IFS
8305
8306 fi
8307 fi
8308 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8309 if test -n "$ac_ct_OTOOL"; then
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8311 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8312 else
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 printf "%s\n" "no" >&6; }
8315 fi
8316
8317 if test "x$ac_ct_OTOOL" = x; then
8318 OTOOL=":"
8319 else
8320 case $cross_compiling:$ac_tool_warned in
8321 yes:)
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8323 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8324 ac_tool_warned=yes ;;
8325 esac
8326 OTOOL=$ac_ct_OTOOL
8327 fi
8328 else
8329 OTOOL="$ac_cv_prog_OTOOL"
8330 fi
8331
8332 if test -n "$ac_tool_prefix"; then
8333 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 printf %s "checking for $ac_word... " >&6; }
8337 if test ${ac_cv_prog_OTOOL64+y}
8338 then :
8339 printf %s "(cached) " >&6
8340 else $as_nop
8341 if test -n "$OTOOL64"; then
8342 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8343 else
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8346 do
8347 IFS=$as_save_IFS
8348 case $as_dir in #(((
8349 '') as_dir=./ ;;
8350 */) ;;
8351 *) as_dir=$as_dir/ ;;
8352 esac
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8355 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359 done
8360 done
8361 IFS=$as_save_IFS
8362
8363 fi
8364 fi
8365 OTOOL64=$ac_cv_prog_OTOOL64
8366 if test -n "$OTOOL64"; then
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8368 printf "%s\n" "$OTOOL64" >&6; }
8369 else
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 printf "%s\n" "no" >&6; }
8372 fi
8373
8374
8375 fi
8376 if test -z "$ac_cv_prog_OTOOL64"; then
8377 ac_ct_OTOOL64=$OTOOL64
8378 # Extract the first word of "otool64", so it can be a program name with args.
8379 set dummy otool64; ac_word=$2
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 printf %s "checking for $ac_word... " >&6; }
8382 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8383 then :
8384 printf %s "(cached) " >&6
8385 else $as_nop
8386 if test -n "$ac_ct_OTOOL64"; then
8387 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392 IFS=$as_save_IFS
8393 case $as_dir in #(((
8394 '') as_dir=./ ;;
8395 */) ;;
8396 *) as_dir=$as_dir/ ;;
8397 esac
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_ac_ct_OTOOL64="otool64"
8401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404 done
8405 done
8406 IFS=$as_save_IFS
8407
8408 fi
8409 fi
8410 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8411 if test -n "$ac_ct_OTOOL64"; then
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8413 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8414 else
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 printf "%s\n" "no" >&6; }
8417 fi
8418
8419 if test "x$ac_ct_OTOOL64" = x; then
8420 OTOOL64=":"
8421 else
8422 case $cross_compiling:$ac_tool_warned in
8423 yes:)
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8426 ac_tool_warned=yes ;;
8427 esac
8428 OTOOL64=$ac_ct_OTOOL64
8429 fi
8430 else
8431 OTOOL64="$ac_cv_prog_OTOOL64"
8432 fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8461 printf %s "checking for -single_module linker flag... " >&6; }
8462 if test ${lt_cv_apple_cc_single_mod+y}
8463 then :
8464 printf %s "(cached) " >&6
8465 else $as_nop
8466 lt_cv_apple_cc_single_mod=no
8467 if test -z "$LT_MULTI_MODULE"; then
8468 # By default we will add the -single_module flag. You can override
8469 # by either setting the environment variable LT_MULTI_MODULE
8470 # non-empty at configure time, or by adding -multi_module to the
8471 # link flags.
8472 rm -rf libconftest.dylib*
8473 echo "int foo(void){return 1;}" > conftest.c
8474 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8475 -dynamiclib -Wl,-single_module conftest.c" >&5
8476 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8477 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8478 _lt_result=$?
8479 # If there is a non-empty error log, and "single_module"
8480 # appears in it, assume the flag caused a linker warning
8481 if test -s conftest.err && $GREP single_module conftest.err; then
8482 cat conftest.err >&5
8483 # Otherwise, if the output was created with a 0 exit code from
8484 # the compiler, it worked.
8485 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8486 lt_cv_apple_cc_single_mod=yes
8487 else
8488 cat conftest.err >&5
8489 fi
8490 rm -rf libconftest.dylib*
8491 rm -f conftest.*
8492 fi
8493 fi
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8495 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8496
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8498 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8499 if test ${lt_cv_ld_exported_symbols_list+y}
8500 then :
8501 printf %s "(cached) " >&6
8502 else $as_nop
8503 lt_cv_ld_exported_symbols_list=no
8504 save_LDFLAGS=$LDFLAGS
8505 echo "_main" > conftest.sym
8506 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509
8510 int
8511 main (void)
8512 {
8513
8514 ;
8515 return 0;
8516 }
8517 _ACEOF
8518 if ac_fn_c_try_link "$LINENO"
8519 then :
8520 lt_cv_ld_exported_symbols_list=yes
8521 else $as_nop
8522 lt_cv_ld_exported_symbols_list=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8525 conftest$ac_exeext conftest.$ac_ext
8526 LDFLAGS=$save_LDFLAGS
8527
8528 fi
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8530 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8531
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8533 printf %s "checking for -force_load linker flag... " >&6; }
8534 if test ${lt_cv_ld_force_load+y}
8535 then :
8536 printf %s "(cached) " >&6
8537 else $as_nop
8538 lt_cv_ld_force_load=no
8539 cat > conftest.c << _LT_EOF
8540 int forced_loaded() { return 2;}
8541 _LT_EOF
8542 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8543 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8544 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8545 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8546 echo "$RANLIB libconftest.a" >&5
8547 $RANLIB libconftest.a 2>&5
8548 cat > conftest.c << _LT_EOF
8549 int main() { return 0;}
8550 _LT_EOF
8551 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8552 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8553 _lt_result=$?
8554 if test -s conftest.err && $GREP force_load conftest.err; then
8555 cat conftest.err >&5
8556 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8557 lt_cv_ld_force_load=yes
8558 else
8559 cat conftest.err >&5
8560 fi
8561 rm -f conftest.err libconftest.a conftest conftest.c
8562 rm -rf conftest.dSYM
8563
8564 fi
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8566 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8567 case $host_os in
8568 rhapsody* | darwin1.[012])
8569 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8570 darwin1.*)
8571 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8572 darwin*)
8573 case $MACOSX_DEPLOYMENT_TARGET,$host in
8574 10.[012],*|,*powerpc*-darwin[5-8]*)
8575 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8576 *)
8577 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8578 esac
8579 ;;
8580 esac
8581 if test yes = "$lt_cv_apple_cc_single_mod"; then
8582 _lt_dar_single_mod='$single_module'
8583 fi
8584 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8585 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8586 else
8587 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8588 fi
8589 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8590 _lt_dsymutil='~$DSYMUTIL $lib || :'
8591 else
8592 _lt_dsymutil=
8593 fi
8594 ;;
8595 esac
8596
8597 # func_munge_path_list VARIABLE PATH
8598 # -----------------------------------
8599 # VARIABLE is name of variable containing _space_ separated list of
8600 # directories to be munged by the contents of PATH, which is string
8601 # having a format:
8602 # "DIR[:DIR]:"
8603 # string "DIR[ DIR]" will be prepended to VARIABLE
8604 # ":DIR[:DIR]"
8605 # string "DIR[ DIR]" will be appended to VARIABLE
8606 # "DIRP[:DIRP]::[DIRA:]DIRA"
8607 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8608 # "DIRA[ DIRA]" will be appended to VARIABLE
8609 # "DIR[:DIR]"
8610 # VARIABLE will be replaced by "DIR[ DIR]"
8611 func_munge_path_list ()
8612 {
8613 case x$2 in
8614 x)
8615 ;;
8616 *:)
8617 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8618 ;;
8619 x:*)
8620 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8621 ;;
8622 *::*)
8623 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8624 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8625 ;;
8626 *)
8627 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8628 ;;
8629 esac
8630 }
8631
8632 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8633 "
8634 if test "x$ac_cv_header_dlfcn_h" = xyes
8635 then :
8636 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8637
8638 fi
8639
8640
8641
8642
8643
8644 # Set options
8645
8646
8647
8648 enable_dlopen=no
8649
8650
8651 enable_win32_dll=no
8652
8653
8654 # Check whether --enable-shared was given.
8655 if test ${enable_shared+y}
8656 then :
8657 enableval=$enable_shared; p=${PACKAGE-default}
8658 case $enableval in
8659 yes) enable_shared=yes ;;
8660 no) enable_shared=no ;;
8661 *)
8662 enable_shared=no
8663 # Look at the argument we got. We use all the common list separators.
8664 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8665 for pkg in $enableval; do
8666 IFS=$lt_save_ifs
8667 if test "X$pkg" = "X$p"; then
8668 enable_shared=yes
8669 fi
8670 done
8671 IFS=$lt_save_ifs
8672 ;;
8673 esac
8674 else $as_nop
8675 enable_shared=yes
8676 fi
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686 # Check whether --enable-static was given.
8687 if test ${enable_static+y}
8688 then :
8689 enableval=$enable_static; p=${PACKAGE-default}
8690 case $enableval in
8691 yes) enable_static=yes ;;
8692 no) enable_static=no ;;
8693 *)
8694 enable_static=no
8695 # Look at the argument we got. We use all the common list separators.
8696 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8697 for pkg in $enableval; do
8698 IFS=$lt_save_ifs
8699 if test "X$pkg" = "X$p"; then
8700 enable_static=yes
8701 fi
8702 done
8703 IFS=$lt_save_ifs
8704 ;;
8705 esac
8706 else $as_nop
8707 enable_static=yes
8708 fi
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719 # Check whether --with-pic was given.
8720 if test ${with_pic+y}
8721 then :
8722 withval=$with_pic; lt_p=${PACKAGE-default}
8723 case $withval in
8724 yes|no) pic_mode=$withval ;;
8725 *)
8726 pic_mode=default
8727 # Look at the argument we got. We use all the common list separators.
8728 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8729 for lt_pkg in $withval; do
8730 IFS=$lt_save_ifs
8731 if test "X$lt_pkg" = "X$lt_p"; then
8732 pic_mode=yes
8733 fi
8734 done
8735 IFS=$lt_save_ifs
8736 ;;
8737 esac
8738 else $as_nop
8739 pic_mode=default
8740 fi
8741
8742
8743
8744
8745
8746
8747
8748
8749 # Check whether --enable-fast-install was given.
8750 if test ${enable_fast_install+y}
8751 then :
8752 enableval=$enable_fast_install; p=${PACKAGE-default}
8753 case $enableval in
8754 yes) enable_fast_install=yes ;;
8755 no) enable_fast_install=no ;;
8756 *)
8757 enable_fast_install=no
8758 # Look at the argument we got. We use all the common list separators.
8759 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8760 for pkg in $enableval; do
8761 IFS=$lt_save_ifs
8762 if test "X$pkg" = "X$p"; then
8763 enable_fast_install=yes
8764 fi
8765 done
8766 IFS=$lt_save_ifs
8767 ;;
8768 esac
8769 else $as_nop
8770 enable_fast_install=yes
8771 fi
8772
8773
8774
8775
8776
8777
8778
8779
8780 shared_archive_member_spec=
8781 case $host,$enable_shared in
8782 power*-*-aix[5-9]*,yes)
8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8784 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8785
8786 # Check whether --with-aix-soname was given.
8787 if test ${with_aix_soname+y}
8788 then :
8789 withval=$with_aix_soname; case $withval in
8790 aix|svr4|both)
8791 ;;
8792 *)
8793 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8794 ;;
8795 esac
8796 lt_cv_with_aix_soname=$with_aix_soname
8797 else $as_nop
8798 if test ${lt_cv_with_aix_soname+y}
8799 then :
8800 printf %s "(cached) " >&6
8801 else $as_nop
8802 lt_cv_with_aix_soname=aix
8803 fi
8804
8805 with_aix_soname=$lt_cv_with_aix_soname
8806 fi
8807
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8809 printf "%s\n" "$with_aix_soname" >&6; }
8810 if test aix != "$with_aix_soname"; then
8811 # For the AIX way of multilib, we name the shared archive member
8812 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8813 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8814 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8815 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8816 if test 64 = "${OBJECT_MODE-32}"; then
8817 shared_archive_member_spec=shr_64
8818 else
8819 shared_archive_member_spec=shr
8820 fi
8821 fi
8822 ;;
8823 *)
8824 with_aix_soname=aix
8825 ;;
8826 esac
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 # This can be used to rebuild libtool when needed
8838 LIBTOOL_DEPS=$ltmain
8839
8840 # Always use our own libtool.
8841 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872 test -z "$LN_S" && LN_S="ln -s"
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887 if test -n "${ZSH_VERSION+set}"; then
8888 setopt NO_GLOB_SUBST
8889 fi
8890
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8892 printf %s "checking for objdir... " >&6; }
8893 if test ${lt_cv_objdir+y}
8894 then :
8895 printf %s "(cached) " >&6
8896 else $as_nop
8897 rm -f .libs 2>/dev/null
8898 mkdir .libs 2>/dev/null
8899 if test -d .libs; then
8900 lt_cv_objdir=.libs
8901 else
8902 # MS-DOS does not allow filenames that begin with a dot.
8903 lt_cv_objdir=_libs
8904 fi
8905 rmdir .libs 2>/dev/null
8906 fi
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8908 printf "%s\n" "$lt_cv_objdir" >&6; }
8909 objdir=$lt_cv_objdir
8910
8911
8912
8913
8914
8915 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8916
8917
8918
8919
8920 case $host_os in
8921 aix3*)
8922 # AIX sometimes has problems with the GCC collect2 program. For some
8923 # reason, if we set the COLLECT_NAMES environment variable, the problems
8924 # vanish in a puff of smoke.
8925 if test set != "${COLLECT_NAMES+set}"; then
8926 COLLECT_NAMES=
8927 export COLLECT_NAMES
8928 fi
8929 ;;
8930 esac
8931
8932 # Global variables:
8933 ofile=libtool
8934 can_build_shared=yes
8935
8936 # All known linkers require a '.a' archive for static linking (except MSVC and
8937 # ICC, which need '.lib').
8938 libext=a
8939
8940 with_gnu_ld=$lt_cv_prog_gnu_ld
8941
8942 old_CC=$CC
8943 old_CFLAGS=$CFLAGS
8944
8945 # Set sane defaults for various variables
8946 test -z "$CC" && CC=cc
8947 test -z "$LTCC" && LTCC=$CC
8948 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8949 test -z "$LD" && LD=ld
8950 test -z "$ac_objext" && ac_objext=o
8951
8952 func_cc_basename $compiler
8953 cc_basename=$func_cc_basename_result
8954
8955
8956 # Only perform the check for file, if the check method requires it
8957 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8958 case $deplibs_check_method in
8959 file_magic*)
8960 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8962 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8963 if test ${lt_cv_path_MAGIC_CMD+y}
8964 then :
8965 printf %s "(cached) " >&6
8966 else $as_nop
8967 case $MAGIC_CMD in
8968 [\\/*] | ?:[\\/]*)
8969 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8970 ;;
8971 *)
8972 lt_save_MAGIC_CMD=$MAGIC_CMD
8973 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8974 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8975 for ac_dir in $ac_dummy; do
8976 IFS=$lt_save_ifs
8977 test -z "$ac_dir" && ac_dir=.
8978 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8979 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8980 if test -n "$file_magic_test_file"; then
8981 case $deplibs_check_method in
8982 "file_magic "*)
8983 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8984 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8986 $EGREP "$file_magic_regex" > /dev/null; then
8987 :
8988 else
8989 cat <<_LT_EOF 1>&2
8990
8991 *** Warning: the command libtool uses to detect shared libraries,
8992 *** $file_magic_cmd, produces output that libtool cannot recognize.
8993 *** The result is that libtool may fail to recognize shared libraries
8994 *** as such. This will affect the creation of libtool libraries that
8995 *** depend on shared libraries, but programs linked with such libtool
8996 *** libraries will work regardless of this problem. Nevertheless, you
8997 *** may want to report the problem to your system manager and/or to
8998 *** bug-libtool@gnu.org
8999
9000 _LT_EOF
9001 fi ;;
9002 esac
9003 fi
9004 break
9005 fi
9006 done
9007 IFS=$lt_save_ifs
9008 MAGIC_CMD=$lt_save_MAGIC_CMD
9009 ;;
9010 esac
9011 fi
9012
9013 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9014 if test -n "$MAGIC_CMD"; then
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9016 printf "%s\n" "$MAGIC_CMD" >&6; }
9017 else
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 printf "%s\n" "no" >&6; }
9020 fi
9021
9022
9023
9024
9025
9026 if test -z "$lt_cv_path_MAGIC_CMD"; then
9027 if test -n "$ac_tool_prefix"; then
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9029 printf %s "checking for file... " >&6; }
9030 if test ${lt_cv_path_MAGIC_CMD+y}
9031 then :
9032 printf %s "(cached) " >&6
9033 else $as_nop
9034 case $MAGIC_CMD in
9035 [\\/*] | ?:[\\/]*)
9036 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9037 ;;
9038 *)
9039 lt_save_MAGIC_CMD=$MAGIC_CMD
9040 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9042 for ac_dir in $ac_dummy; do
9043 IFS=$lt_save_ifs
9044 test -z "$ac_dir" && ac_dir=.
9045 if test -f "$ac_dir/file"; then
9046 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9047 if test -n "$file_magic_test_file"; then
9048 case $deplibs_check_method in
9049 "file_magic "*)
9050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9051 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9053 $EGREP "$file_magic_regex" > /dev/null; then
9054 :
9055 else
9056 cat <<_LT_EOF 1>&2
9057
9058 *** Warning: the command libtool uses to detect shared libraries,
9059 *** $file_magic_cmd, produces output that libtool cannot recognize.
9060 *** The result is that libtool may fail to recognize shared libraries
9061 *** as such. This will affect the creation of libtool libraries that
9062 *** depend on shared libraries, but programs linked with such libtool
9063 *** libraries will work regardless of this problem. Nevertheless, you
9064 *** may want to report the problem to your system manager and/or to
9065 *** bug-libtool@gnu.org
9066
9067 _LT_EOF
9068 fi ;;
9069 esac
9070 fi
9071 break
9072 fi
9073 done
9074 IFS=$lt_save_ifs
9075 MAGIC_CMD=$lt_save_MAGIC_CMD
9076 ;;
9077 esac
9078 fi
9079
9080 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9081 if test -n "$MAGIC_CMD"; then
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9083 printf "%s\n" "$MAGIC_CMD" >&6; }
9084 else
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086 printf "%s\n" "no" >&6; }
9087 fi
9088
9089
9090 else
9091 MAGIC_CMD=:
9092 fi
9093 fi
9094
9095 fi
9096 ;;
9097 esac
9098
9099 # Use C for the default configuration in the libtool script
9100
9101 lt_save_CC=$CC
9102 ac_ext=c
9103 ac_cpp='$CPP $CPPFLAGS'
9104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9107
9108
9109 # Source file extension for C test sources.
9110 ac_ext=c
9111
9112 # Object file extension for compiled C test sources.
9113 objext=o
9114 objext=$objext
9115
9116 # Code to be used in simple compile tests
9117 lt_simple_compile_test_code="int some_variable = 0;"
9118
9119 # Code to be used in simple link tests
9120 lt_simple_link_test_code='int main(){return(0);}'
9121
9122
9123
9124
9125
9126
9127
9128 # If no C compiler was specified, use CC.
9129 LTCC=${LTCC-"$CC"}
9130
9131 # If no C compiler flags were specified, use CFLAGS.
9132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9133
9134 # Allow CC to be a program name with arguments.
9135 compiler=$CC
9136
9137 # Save the default compiler, since it gets overwritten when the other
9138 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9139 compiler_DEFAULT=$CC
9140
9141 # save warnings/boilerplate of simple test code
9142 ac_outfile=conftest.$ac_objext
9143 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9144 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9145 _lt_compiler_boilerplate=`cat conftest.err`
9146 $RM conftest*
9147
9148 ac_outfile=conftest.$ac_objext
9149 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9150 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9151 _lt_linker_boilerplate=`cat conftest.err`
9152 $RM -r conftest*
9153
9154
9155 if test -n "$compiler"; then
9156
9157 lt_prog_compiler_no_builtin_flag=
9158
9159 if test yes = "$GCC"; then
9160 case $cc_basename in
9161 nvcc*)
9162 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9163 *)
9164 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9165 esac
9166
9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9168 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9169 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9170 then :
9171 printf %s "(cached) " >&6
9172 else $as_nop
9173 lt_cv_prog_compiler_rtti_exceptions=no
9174 ac_outfile=conftest.$ac_objext
9175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9176 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9177 # Insert the option either (1) after the last *FLAGS variable, or
9178 # (2) before a word containing "conftest.", or (3) at the end.
9179 # Note that $ac_compile itself does not contain backslashes and begins
9180 # with a dollar sign (not a hyphen), so the echo should work correctly.
9181 # The option is referenced via a variable to avoid confusing sed.
9182 lt_compile=`echo "$ac_compile" | $SED \
9183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9185 -e 's:$: $lt_compiler_flag:'`
9186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9187 (eval "$lt_compile" 2>conftest.err)
9188 ac_status=$?
9189 cat conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 if (exit $ac_status) && test -s "$ac_outfile"; then
9192 # The compiler can only warn and ignore the option if not recognized
9193 # So say no if there are warnings other than the usual output.
9194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9197 lt_cv_prog_compiler_rtti_exceptions=yes
9198 fi
9199 fi
9200 $RM conftest*
9201
9202 fi
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9204 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9205
9206 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9207 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9208 else
9209 :
9210 fi
9211
9212 fi
9213
9214
9215
9216
9217
9218
9219 lt_prog_compiler_wl=
9220 lt_prog_compiler_pic=
9221 lt_prog_compiler_static=
9222
9223
9224 if test yes = "$GCC"; then
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_static='-static'
9227
9228 case $host_os in
9229 aix*)
9230 # All AIX code is PIC.
9231 if test ia64 = "$host_cpu"; then
9232 # AIX 5 now supports IA64 processor
9233 lt_prog_compiler_static='-Bstatic'
9234 fi
9235 lt_prog_compiler_pic='-fPIC'
9236 ;;
9237
9238 amigaos*)
9239 case $host_cpu in
9240 powerpc)
9241 # see comment about AmigaOS4 .so support
9242 lt_prog_compiler_pic='-fPIC'
9243 ;;
9244 m68k)
9245 # FIXME: we need at least 68020 code to build shared libraries, but
9246 # adding the '-m68020' flag to GCC prevents building anything better,
9247 # like '-m68040'.
9248 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9249 ;;
9250 esac
9251 ;;
9252
9253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9254 # PIC is the default for these OSes.
9255 ;;
9256
9257 mingw* | cygwin* | pw32* | os2* | cegcc*)
9258 # This hack is so that the source file can tell whether it is being
9259 # built for inclusion in a dll (and should export symbols for example).
9260 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9261 # (--disable-auto-import) libraries
9262 lt_prog_compiler_pic='-DDLL_EXPORT'
9263 case $host_os in
9264 os2*)
9265 lt_prog_compiler_static='$wl-static'
9266 ;;
9267 esac
9268 ;;
9269
9270 darwin* | rhapsody*)
9271 # PIC is the default on this platform
9272 # Common symbols not allowed in MH_DYLIB files
9273 lt_prog_compiler_pic='-fno-common'
9274 ;;
9275
9276 haiku*)
9277 # PIC is the default for Haiku.
9278 # The "-static" flag exists, but is broken.
9279 lt_prog_compiler_static=
9280 ;;
9281
9282 hpux*)
9283 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9284 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9285 # sets the default TLS model and affects inlining.
9286 case $host_cpu in
9287 hppa*64*)
9288 # +Z the default
9289 ;;
9290 *)
9291 lt_prog_compiler_pic='-fPIC'
9292 ;;
9293 esac
9294 ;;
9295
9296 interix[3-9]*)
9297 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9298 # Instead, we relocate shared libraries at runtime.
9299 ;;
9300
9301 msdosdjgpp*)
9302 # Just because we use GCC doesn't mean we suddenly get shared libraries
9303 # on systems that don't support them.
9304 lt_prog_compiler_can_build_shared=no
9305 enable_shared=no
9306 ;;
9307
9308 *nto* | *qnx*)
9309 # QNX uses GNU C++, but need to define -shared option too, otherwise
9310 # it will coredump.
9311 lt_prog_compiler_pic='-fPIC -shared'
9312 ;;
9313
9314 sysv4*MP*)
9315 if test -d /usr/nec; then
9316 lt_prog_compiler_pic=-Kconform_pic
9317 fi
9318 ;;
9319
9320 *)
9321 lt_prog_compiler_pic='-fPIC'
9322 ;;
9323 esac
9324
9325 case $cc_basename in
9326 nvcc*) # Cuda Compiler Driver 2.2
9327 lt_prog_compiler_wl='-Xlinker '
9328 if test -n "$lt_prog_compiler_pic"; then
9329 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9330 fi
9331 ;;
9332 esac
9333 else
9334 # PORTME Check for flag to pass linker flags through the system compiler.
9335 case $host_os in
9336 aix*)
9337 lt_prog_compiler_wl='-Wl,'
9338 if test ia64 = "$host_cpu"; then
9339 # AIX 5 now supports IA64 processor
9340 lt_prog_compiler_static='-Bstatic'
9341 else
9342 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9343 fi
9344 ;;
9345
9346 darwin* | rhapsody*)
9347 # PIC is the default on this platform
9348 # Common symbols not allowed in MH_DYLIB files
9349 lt_prog_compiler_pic='-fno-common'
9350 case $cc_basename in
9351 nagfor*)
9352 # NAG Fortran compiler
9353 lt_prog_compiler_wl='-Wl,-Wl,,'
9354 lt_prog_compiler_pic='-PIC'
9355 lt_prog_compiler_static='-Bstatic'
9356 ;;
9357 esac
9358 ;;
9359
9360 mingw* | cygwin* | pw32* | os2* | cegcc*)
9361 # This hack is so that the source file can tell whether it is being
9362 # built for inclusion in a dll (and should export symbols for example).
9363 lt_prog_compiler_pic='-DDLL_EXPORT'
9364 case $host_os in
9365 os2*)
9366 lt_prog_compiler_static='$wl-static'
9367 ;;
9368 esac
9369 ;;
9370
9371 hpux9* | hpux10* | hpux11*)
9372 lt_prog_compiler_wl='-Wl,'
9373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9374 # not for PA HP-UX.
9375 case $host_cpu in
9376 hppa*64*|ia64*)
9377 # +Z the default
9378 ;;
9379 *)
9380 lt_prog_compiler_pic='+Z'
9381 ;;
9382 esac
9383 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9384 lt_prog_compiler_static='$wl-a ${wl}archive'
9385 ;;
9386
9387 irix5* | irix6* | nonstopux*)
9388 lt_prog_compiler_wl='-Wl,'
9389 # PIC (with -KPIC) is the default.
9390 lt_prog_compiler_static='-non_shared'
9391 ;;
9392
9393 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9394 case $cc_basename in
9395 # old Intel for x86_64, which still supported -KPIC.
9396 ecc*)
9397 lt_prog_compiler_wl='-Wl,'
9398 lt_prog_compiler_pic='-KPIC'
9399 lt_prog_compiler_static='-static'
9400 ;;
9401 # icc used to be incompatible with GCC.
9402 # ICC 10 doesn't accept -KPIC any more.
9403 icc* | ifort*)
9404 lt_prog_compiler_wl='-Wl,'
9405 lt_prog_compiler_pic='-fPIC'
9406 lt_prog_compiler_static='-static'
9407 ;;
9408 # Lahey Fortran 8.1.
9409 lf95*)
9410 lt_prog_compiler_wl='-Wl,'
9411 lt_prog_compiler_pic='--shared'
9412 lt_prog_compiler_static='--static'
9413 ;;
9414 nagfor*)
9415 # NAG Fortran compiler
9416 lt_prog_compiler_wl='-Wl,-Wl,,'
9417 lt_prog_compiler_pic='-PIC'
9418 lt_prog_compiler_static='-Bstatic'
9419 ;;
9420 tcc*)
9421 # Fabrice Bellard et al's Tiny C Compiler
9422 lt_prog_compiler_wl='-Wl,'
9423 lt_prog_compiler_pic='-fPIC'
9424 lt_prog_compiler_static='-static'
9425 ;;
9426 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9427 # Portland Group compilers (*not* the Pentium gcc compiler,
9428 # which looks to be a dead project)
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-fpic'
9431 lt_prog_compiler_static='-Bstatic'
9432 ;;
9433 ccc*)
9434 lt_prog_compiler_wl='-Wl,'
9435 # All Alpha code is PIC.
9436 lt_prog_compiler_static='-non_shared'
9437 ;;
9438 xl* | bgxl* | bgf* | mpixl*)
9439 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9440 lt_prog_compiler_wl='-Wl,'
9441 lt_prog_compiler_pic='-qpic'
9442 lt_prog_compiler_static='-qstaticlink'
9443 ;;
9444 *)
9445 case `$CC -V 2>&1 | $SED 5q` in
9446 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9447 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9448 lt_prog_compiler_pic='-KPIC'
9449 lt_prog_compiler_static='-Bstatic'
9450 lt_prog_compiler_wl=''
9451 ;;
9452 *Sun\ F* | *Sun*Fortran*)
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 lt_prog_compiler_wl='-Qoption ld '
9456 ;;
9457 *Sun\ C*)
9458 # Sun C 5.9
9459 lt_prog_compiler_pic='-KPIC'
9460 lt_prog_compiler_static='-Bstatic'
9461 lt_prog_compiler_wl='-Wl,'
9462 ;;
9463 *Intel*\ [CF]*Compiler*)
9464 lt_prog_compiler_wl='-Wl,'
9465 lt_prog_compiler_pic='-fPIC'
9466 lt_prog_compiler_static='-static'
9467 ;;
9468 *Portland\ Group*)
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_pic='-fpic'
9471 lt_prog_compiler_static='-Bstatic'
9472 ;;
9473 esac
9474 ;;
9475 esac
9476 ;;
9477
9478 newsos6)
9479 lt_prog_compiler_pic='-KPIC'
9480 lt_prog_compiler_static='-Bstatic'
9481 ;;
9482
9483 *nto* | *qnx*)
9484 # QNX uses GNU C++, but need to define -shared option too, otherwise
9485 # it will coredump.
9486 lt_prog_compiler_pic='-fPIC -shared'
9487 ;;
9488
9489 osf3* | osf4* | osf5*)
9490 lt_prog_compiler_wl='-Wl,'
9491 # All OSF/1 code is PIC.
9492 lt_prog_compiler_static='-non_shared'
9493 ;;
9494
9495 rdos*)
9496 lt_prog_compiler_static='-non_shared'
9497 ;;
9498
9499 solaris*)
9500 lt_prog_compiler_pic='-KPIC'
9501 lt_prog_compiler_static='-Bstatic'
9502 case $cc_basename in
9503 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9504 lt_prog_compiler_wl='-Qoption ld ';;
9505 *)
9506 lt_prog_compiler_wl='-Wl,';;
9507 esac
9508 ;;
9509
9510 sunos4*)
9511 lt_prog_compiler_wl='-Qoption ld '
9512 lt_prog_compiler_pic='-PIC'
9513 lt_prog_compiler_static='-Bstatic'
9514 ;;
9515
9516 sysv4 | sysv4.2uw2* | sysv4.3*)
9517 lt_prog_compiler_wl='-Wl,'
9518 lt_prog_compiler_pic='-KPIC'
9519 lt_prog_compiler_static='-Bstatic'
9520 ;;
9521
9522 sysv4*MP*)
9523 if test -d /usr/nec; then
9524 lt_prog_compiler_pic='-Kconform_pic'
9525 lt_prog_compiler_static='-Bstatic'
9526 fi
9527 ;;
9528
9529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-KPIC'
9532 lt_prog_compiler_static='-Bstatic'
9533 ;;
9534
9535 unicos*)
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_can_build_shared=no
9538 ;;
9539
9540 uts4*)
9541 lt_prog_compiler_pic='-pic'
9542 lt_prog_compiler_static='-Bstatic'
9543 ;;
9544
9545 *)
9546 lt_prog_compiler_can_build_shared=no
9547 ;;
9548 esac
9549 fi
9550
9551 case $host_os in
9552 # For platforms that do not support PIC, -DPIC is meaningless:
9553 *djgpp*)
9554 lt_prog_compiler_pic=
9555 ;;
9556 *)
9557 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9558 ;;
9559 esac
9560
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9562 printf %s "checking for $compiler option to produce PIC... " >&6; }
9563 if test ${lt_cv_prog_compiler_pic+y}
9564 then :
9565 printf %s "(cached) " >&6
9566 else $as_nop
9567 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9568 fi
9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9570 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9571 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9572
9573 #
9574 # Check to make sure the PIC flag actually works.
9575 #
9576 if test -n "$lt_prog_compiler_pic"; then
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9578 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9579 if test ${lt_cv_prog_compiler_pic_works+y}
9580 then :
9581 printf %s "(cached) " >&6
9582 else $as_nop
9583 lt_cv_prog_compiler_pic_works=no
9584 ac_outfile=conftest.$ac_objext
9585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9586 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9587 # Insert the option either (1) after the last *FLAGS variable, or
9588 # (2) before a word containing "conftest.", or (3) at the end.
9589 # Note that $ac_compile itself does not contain backslashes and begins
9590 # with a dollar sign (not a hyphen), so the echo should work correctly.
9591 # The option is referenced via a variable to avoid confusing sed.
9592 lt_compile=`echo "$ac_compile" | $SED \
9593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9595 -e 's:$: $lt_compiler_flag:'`
9596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9597 (eval "$lt_compile" 2>conftest.err)
9598 ac_status=$?
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 if (exit $ac_status) && test -s "$ac_outfile"; then
9602 # The compiler can only warn and ignore the option if not recognized
9603 # So say no if there are warnings other than the usual output.
9604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9607 lt_cv_prog_compiler_pic_works=yes
9608 fi
9609 fi
9610 $RM conftest*
9611
9612 fi
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9614 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9615
9616 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9617 case $lt_prog_compiler_pic in
9618 "" | " "*) ;;
9619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9620 esac
9621 else
9622 lt_prog_compiler_pic=
9623 lt_prog_compiler_can_build_shared=no
9624 fi
9625
9626 fi
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638 #
9639 # Check to make sure the static flag actually works.
9640 #
9641 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9643 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9644 if test ${lt_cv_prog_compiler_static_works+y}
9645 then :
9646 printf %s "(cached) " >&6
9647 else $as_nop
9648 lt_cv_prog_compiler_static_works=no
9649 save_LDFLAGS=$LDFLAGS
9650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9653 # The linker can only warn and ignore the option if not recognized
9654 # So say no if there are warnings
9655 if test -s conftest.err; then
9656 # Append any errors to the config.log.
9657 cat conftest.err 1>&5
9658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9660 if diff conftest.exp conftest.er2 >/dev/null; then
9661 lt_cv_prog_compiler_static_works=yes
9662 fi
9663 else
9664 lt_cv_prog_compiler_static_works=yes
9665 fi
9666 fi
9667 $RM -r conftest*
9668 LDFLAGS=$save_LDFLAGS
9669
9670 fi
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9672 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9673
9674 if test yes = "$lt_cv_prog_compiler_static_works"; then
9675 :
9676 else
9677 lt_prog_compiler_static=
9678 fi
9679
9680
9681
9682
9683
9684
9685
9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9687 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9688 if test ${lt_cv_prog_compiler_c_o+y}
9689 then :
9690 printf %s "(cached) " >&6
9691 else $as_nop
9692 lt_cv_prog_compiler_c_o=no
9693 $RM -r conftest 2>/dev/null
9694 mkdir conftest
9695 cd conftest
9696 mkdir out
9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9698
9699 lt_compiler_flag="-o out/conftest2.$ac_objext"
9700 # Insert the option either (1) after the last *FLAGS variable, or
9701 # (2) before a word containing "conftest.", or (3) at the end.
9702 # Note that $ac_compile itself does not contain backslashes and begins
9703 # with a dollar sign (not a hyphen), so the echo should work correctly.
9704 lt_compile=`echo "$ac_compile" | $SED \
9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9707 -e 's:$: $lt_compiler_flag:'`
9708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9709 (eval "$lt_compile" 2>out/conftest.err)
9710 ac_status=$?
9711 cat out/conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9714 then
9715 # The compiler can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9720 lt_cv_prog_compiler_c_o=yes
9721 fi
9722 fi
9723 chmod u+w . 2>&5
9724 $RM conftest*
9725 # SGI C++ compiler will create directory out/ii_files/ for
9726 # template instantiation
9727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9728 $RM out/* && rmdir out
9729 cd ..
9730 $RM -r conftest
9731 $RM conftest*
9732
9733 fi
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9735 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9736
9737
9738
9739
9740
9741
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9743 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9744 if test ${lt_cv_prog_compiler_c_o+y}
9745 then :
9746 printf %s "(cached) " >&6
9747 else $as_nop
9748 lt_cv_prog_compiler_c_o=no
9749 $RM -r conftest 2>/dev/null
9750 mkdir conftest
9751 cd conftest
9752 mkdir out
9753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754
9755 lt_compiler_flag="-o out/conftest2.$ac_objext"
9756 # Insert the option either (1) after the last *FLAGS variable, or
9757 # (2) before a word containing "conftest.", or (3) at the end.
9758 # Note that $ac_compile itself does not contain backslashes and begins
9759 # with a dollar sign (not a hyphen), so the echo should work correctly.
9760 lt_compile=`echo "$ac_compile" | $SED \
9761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763 -e 's:$: $lt_compiler_flag:'`
9764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9765 (eval "$lt_compile" 2>out/conftest.err)
9766 ac_status=$?
9767 cat out/conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9770 then
9771 # The compiler can only warn and ignore the option if not recognized
9772 # So say no if there are warnings
9773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9776 lt_cv_prog_compiler_c_o=yes
9777 fi
9778 fi
9779 chmod u+w . 2>&5
9780 $RM conftest*
9781 # SGI C++ compiler will create directory out/ii_files/ for
9782 # template instantiation
9783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9784 $RM out/* && rmdir out
9785 cd ..
9786 $RM -r conftest
9787 $RM conftest*
9788
9789 fi
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9791 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9792
9793
9794
9795
9796 hard_links=nottested
9797 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9798 # do not overwrite the value of need_locks provided by the user
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9800 printf %s "checking if we can lock with hard links... " >&6; }
9801 hard_links=yes
9802 $RM conftest*
9803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9804 touch conftest.a
9805 ln conftest.a conftest.b 2>&5 || hard_links=no
9806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9808 printf "%s\n" "$hard_links" >&6; }
9809 if test no = "$hard_links"; then
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9811 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9812 need_locks=warn
9813 fi
9814 else
9815 need_locks=no
9816 fi
9817
9818
9819
9820
9821
9822
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9824 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9825
9826 runpath_var=
9827 allow_undefined_flag=
9828 always_export_symbols=no
9829 archive_cmds=
9830 archive_expsym_cmds=
9831 compiler_needs_object=no
9832 enable_shared_with_static_runtimes=no
9833 export_dynamic_flag_spec=
9834 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9835 hardcode_automatic=no
9836 hardcode_direct=no
9837 hardcode_direct_absolute=no
9838 hardcode_libdir_flag_spec=
9839 hardcode_libdir_separator=
9840 hardcode_minus_L=no
9841 hardcode_shlibpath_var=unsupported
9842 inherit_rpath=no
9843 link_all_deplibs=unknown
9844 module_cmds=
9845 module_expsym_cmds=
9846 old_archive_from_new_cmds=
9847 old_archive_from_expsyms_cmds=
9848 thread_safe_flag_spec=
9849 whole_archive_flag_spec=
9850 # include_expsyms should be a list of space-separated symbols to be *always*
9851 # included in the symbol list
9852 include_expsyms=
9853 # exclude_expsyms can be an extended regexp of symbols to exclude
9854 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9855 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9856 # as well as any symbol that contains 'd'.
9857 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9859 # platforms (ab)use it in PIC code, but their linkers get confused if
9860 # the symbol is explicitly referenced. Since portable code cannot
9861 # rely on this symbol name, it's probably fine to never include it in
9862 # preloaded symbol tables.
9863 # Exclude shared library initialization/finalization symbols.
9864 extract_expsyms_cmds=
9865
9866 case $host_os in
9867 cygwin* | mingw* | pw32* | cegcc*)
9868 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9869 # When not using gcc, we currently assume that we are using
9870 # Microsoft Visual C++ or Intel C++ Compiler.
9871 if test yes != "$GCC"; then
9872 with_gnu_ld=no
9873 fi
9874 ;;
9875 interix*)
9876 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9877 with_gnu_ld=yes
9878 ;;
9879 openbsd* | bitrig*)
9880 with_gnu_ld=no
9881 ;;
9882 esac
9883
9884 ld_shlibs=yes
9885
9886 # On some targets, GNU ld is compatible enough with the native linker
9887 # that we're better off using the native interface for both.
9888 lt_use_gnu_ld_interface=no
9889 if test yes = "$with_gnu_ld"; then
9890 case $host_os in
9891 aix*)
9892 # The AIX port of GNU ld has always aspired to compatibility
9893 # with the native linker. However, as the warning in the GNU ld
9894 # block says, versions before 2.19.5* couldn't really create working
9895 # shared libraries, regardless of the interface used.
9896 case `$LD -v 2>&1` in
9897 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9898 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9899 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9900 *)
9901 lt_use_gnu_ld_interface=yes
9902 ;;
9903 esac
9904 ;;
9905 *)
9906 lt_use_gnu_ld_interface=yes
9907 ;;
9908 esac
9909 fi
9910
9911 if test yes = "$lt_use_gnu_ld_interface"; then
9912 # If archive_cmds runs LD, not CC, wlarc should be empty
9913 wlarc='$wl'
9914
9915 # Set some defaults for GNU ld with shared library support. These
9916 # are reset later if shared libraries are not supported. Putting them
9917 # here allows them to be overridden if necessary.
9918 runpath_var=LD_RUN_PATH
9919 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9920 export_dynamic_flag_spec='$wl--export-dynamic'
9921 # ancient GNU ld didn't support --whole-archive et. al.
9922 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9923 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9924 else
9925 whole_archive_flag_spec=
9926 fi
9927 supports_anon_versioning=no
9928 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9929 *GNU\ gold*) supports_anon_versioning=yes ;;
9930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9933 *\ 2.11.*) ;; # other 2.11 versions
9934 *) supports_anon_versioning=yes ;;
9935 esac
9936
9937 # See if GNU ld supports shared libraries.
9938 case $host_os in
9939 aix[3-9]*)
9940 # On AIX/PPC, the GNU linker is very broken
9941 if test ia64 != "$host_cpu"; then
9942 ld_shlibs=no
9943 cat <<_LT_EOF 1>&2
9944
9945 *** Warning: the GNU linker, at least up to release 2.19, is reported
9946 *** to be unable to reliably create shared libraries on AIX.
9947 *** Therefore, libtool is disabling shared libraries support. If you
9948 *** really care for shared libraries, you may want to install binutils
9949 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9950 *** You will then need to restart the configuration process.
9951
9952 _LT_EOF
9953 fi
9954 ;;
9955
9956 amigaos*)
9957 case $host_cpu in
9958 powerpc)
9959 # see comment about AmigaOS4 .so support
9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9961 archive_expsym_cmds=''
9962 ;;
9963 m68k)
9964 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)'
9965 hardcode_libdir_flag_spec='-L$libdir'
9966 hardcode_minus_L=yes
9967 ;;
9968 esac
9969 ;;
9970
9971 beos*)
9972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9973 allow_undefined_flag=unsupported
9974 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9975 # support --undefined. This deserves some investigation. FIXME
9976 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9977 else
9978 ld_shlibs=no
9979 fi
9980 ;;
9981
9982 cygwin* | mingw* | pw32* | cegcc*)
9983 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9984 # as there is no search path for DLLs.
9985 hardcode_libdir_flag_spec='-L$libdir'
9986 export_dynamic_flag_spec='$wl--export-all-symbols'
9987 allow_undefined_flag=unsupported
9988 always_export_symbols=no
9989 enable_shared_with_static_runtimes=yes
9990 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'
9991 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9992
9993 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9995 # If the export-symbols file already is a .def file, use it as
9996 # is; otherwise, prepend EXPORTS...
9997 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9998 cp $export_symbols $output_objdir/$soname.def;
9999 else
10000 echo EXPORTS > $output_objdir/$soname.def;
10001 cat $export_symbols >> $output_objdir/$soname.def;
10002 fi~
10003 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10004 else
10005 ld_shlibs=no
10006 fi
10007 ;;
10008
10009 haiku*)
10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10011 link_all_deplibs=yes
10012 ;;
10013
10014 os2*)
10015 hardcode_libdir_flag_spec='-L$libdir'
10016 hardcode_minus_L=yes
10017 allow_undefined_flag=unsupported
10018 shrext_cmds=.dll
10019 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10020 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10021 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10022 $ECHO EXPORTS >> $output_objdir/$libname.def~
10023 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10024 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10025 emximp -o $lib $output_objdir/$libname.def'
10026 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10027 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10028 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10029 $ECHO EXPORTS >> $output_objdir/$libname.def~
10030 prefix_cmds="$SED"~
10031 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10032 prefix_cmds="$prefix_cmds -e 1d";
10033 fi~
10034 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10035 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10036 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10037 emximp -o $lib $output_objdir/$libname.def'
10038 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10039 enable_shared_with_static_runtimes=yes
10040 file_list_spec='@'
10041 ;;
10042
10043 interix[3-9]*)
10044 hardcode_direct=no
10045 hardcode_shlibpath_var=no
10046 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10047 export_dynamic_flag_spec='$wl-E'
10048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10049 # Instead, shared libraries are loaded at an image base (0x10000000 by
10050 # default) and relocated if they conflict, which is a slow very memory
10051 # consuming and fragmenting process. To avoid this, we pick a random,
10052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10055 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'
10056 ;;
10057
10058 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10059 tmp_diet=no
10060 if test linux-dietlibc = "$host_os"; then
10061 case $cc_basename in
10062 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10063 esac
10064 fi
10065 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10066 && test no = "$tmp_diet"
10067 then
10068 tmp_addflag=' $pic_flag'
10069 tmp_sharedflag='-shared'
10070 case $cc_basename,$host_cpu in
10071 pgcc*) # Portland Group C compiler
10072 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'
10073 tmp_addflag=' $pic_flag'
10074 ;;
10075 pgf77* | pgf90* | pgf95* | pgfortran*)
10076 # Portland Group f77 and f90 compilers
10077 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'
10078 tmp_addflag=' $pic_flag -Mnomain' ;;
10079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10080 tmp_addflag=' -i_dynamic' ;;
10081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10082 tmp_addflag=' -i_dynamic -nofor_main' ;;
10083 ifc* | ifort*) # Intel Fortran compiler
10084 tmp_addflag=' -nofor_main' ;;
10085 lf95*) # Lahey Fortran 8.1
10086 whole_archive_flag_spec=
10087 tmp_sharedflag='--shared' ;;
10088 nagfor*) # NAGFOR 5.3
10089 tmp_sharedflag='-Wl,-shared' ;;
10090 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10091 tmp_sharedflag='-qmkshrobj'
10092 tmp_addflag= ;;
10093 nvcc*) # Cuda Compiler Driver 2.2
10094 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'
10095 compiler_needs_object=yes
10096 ;;
10097 esac
10098 case `$CC -V 2>&1 | $SED 5q` in
10099 *Sun\ C*) # Sun C 5.9
10100 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'
10101 compiler_needs_object=yes
10102 tmp_sharedflag='-G' ;;
10103 *Sun\ F*) # Sun Fortran 8.3
10104 tmp_sharedflag='-G' ;;
10105 esac
10106 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10107
10108 if test yes = "$supports_anon_versioning"; then
10109 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10110 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10111 echo "local: *; };" >> $output_objdir/$libname.ver~
10112 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10113 fi
10114
10115 case $cc_basename in
10116 tcc*)
10117 export_dynamic_flag_spec='-rdynamic'
10118 ;;
10119 xlf* | bgf* | bgxlf* | mpixlf*)
10120 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10121 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10123 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10124 if test yes = "$supports_anon_versioning"; then
10125 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10126 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10127 echo "local: *; };" >> $output_objdir/$libname.ver~
10128 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10129 fi
10130 ;;
10131 esac
10132 else
10133 ld_shlibs=no
10134 fi
10135 ;;
10136
10137 netbsd*)
10138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10139 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10140 wlarc=
10141 else
10142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10144 fi
10145 ;;
10146
10147 solaris*)
10148 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10149 ld_shlibs=no
10150 cat <<_LT_EOF 1>&2
10151
10152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10153 *** create shared libraries on Solaris systems. Therefore, libtool
10154 *** is disabling shared libraries support. We urge you to upgrade GNU
10155 *** binutils to release 2.9.1 or newer. Another option is to modify
10156 *** your PATH or compiler configuration so that the native linker is
10157 *** used, and then restart.
10158
10159 _LT_EOF
10160 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10163 else
10164 ld_shlibs=no
10165 fi
10166 ;;
10167
10168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10169 case `$LD -v 2>&1` in
10170 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10171 ld_shlibs=no
10172 cat <<_LT_EOF 1>&2
10173
10174 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10175 *** reliably create shared libraries on SCO systems. Therefore, libtool
10176 *** is disabling shared libraries support. We urge you to upgrade GNU
10177 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10178 *** your PATH or compiler configuration so that the native linker is
10179 *** used, and then restart.
10180
10181 _LT_EOF
10182 ;;
10183 *)
10184 # For security reasons, it is highly recommended that you always
10185 # use absolute paths for naming shared libraries, and exclude the
10186 # DT_RUNPATH tag from executables and libraries. But doing so
10187 # requires that you compile everything twice, which is a pain.
10188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10192 else
10193 ld_shlibs=no
10194 fi
10195 ;;
10196 esac
10197 ;;
10198
10199 sunos4*)
10200 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10201 wlarc=
10202 hardcode_direct=yes
10203 hardcode_shlibpath_var=no
10204 ;;
10205
10206 *)
10207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10209 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10210 else
10211 ld_shlibs=no
10212 fi
10213 ;;
10214 esac
10215
10216 if test no = "$ld_shlibs"; then
10217 runpath_var=
10218 hardcode_libdir_flag_spec=
10219 export_dynamic_flag_spec=
10220 whole_archive_flag_spec=
10221 fi
10222 else
10223 # PORTME fill in a description of your system's linker (not GNU ld)
10224 case $host_os in
10225 aix3*)
10226 allow_undefined_flag=unsupported
10227 always_export_symbols=yes
10228 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'
10229 # Note: this linker hardcodes the directories in LIBPATH if there
10230 # are no directories specified by -L.
10231 hardcode_minus_L=yes
10232 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10233 # Neither direct hardcoding nor static linking is supported with a
10234 # broken collect2.
10235 hardcode_direct=unsupported
10236 fi
10237 ;;
10238
10239 aix[4-9]*)
10240 if test ia64 = "$host_cpu"; then
10241 # On IA64, the linker does run time linking by default, so we don't
10242 # have to do anything special.
10243 aix_use_runtimelinking=no
10244 exp_sym_flag='-Bexport'
10245 no_entry_flag=
10246 else
10247 # If we're using GNU nm, then we don't want the "-C" option.
10248 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10249 # Without the "-l" option, or with the "-B" option, AIX nm treats
10250 # weak defined symbols like other global defined symbols, whereas
10251 # GNU nm marks them as "W".
10252 # While the 'weak' keyword is ignored in the Export File, we need
10253 # it in the Import File for the 'aix-soname' feature, so we have
10254 # to replace the "-B" option with "-P" for AIX nm.
10255 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10256 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'
10257 else
10258 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10259 fi
10260 aix_use_runtimelinking=no
10261
10262 # Test if we are trying to use run time linking or normal
10263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10264 # have runtime linking enabled, and use it for executables.
10265 # For shared libraries, we enable/disable runtime linking
10266 # depending on the kind of the shared library created -
10267 # when "with_aix_soname,aix_use_runtimelinking" is:
10268 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10269 # "aix,yes" lib.so shared, rtl:yes, for executables
10270 # lib.a static archive
10271 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10272 # lib.a(lib.so.V) shared, rtl:no, for executables
10273 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10274 # lib.a(lib.so.V) shared, rtl:no
10275 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10276 # lib.a static archive
10277 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10278 for ld_flag in $LDFLAGS; do
10279 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10280 aix_use_runtimelinking=yes
10281 break
10282 fi
10283 done
10284 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10285 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10286 # so we don't have lib.a shared libs to link our executables.
10287 # We have to force runtime linking in this case.
10288 aix_use_runtimelinking=yes
10289 LDFLAGS="$LDFLAGS -Wl,-brtl"
10290 fi
10291 ;;
10292 esac
10293
10294 exp_sym_flag='-bexport'
10295 no_entry_flag='-bnoentry'
10296 fi
10297
10298 # When large executables or shared objects are built, AIX ld can
10299 # have problems creating the table of contents. If linking a library
10300 # or program results in "error TOC overflow" add -mminimal-toc to
10301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10303
10304 archive_cmds=''
10305 hardcode_direct=yes
10306 hardcode_direct_absolute=yes
10307 hardcode_libdir_separator=':'
10308 link_all_deplibs=yes
10309 file_list_spec='$wl-f,'
10310 case $with_aix_soname,$aix_use_runtimelinking in
10311 aix,*) ;; # traditional, no import file
10312 svr4,* | *,yes) # use import file
10313 # The Import File defines what to hardcode.
10314 hardcode_direct=no
10315 hardcode_direct_absolute=no
10316 ;;
10317 esac
10318
10319 if test yes = "$GCC"; then
10320 case $host_os in aix4.[012]|aix4.[012].*)
10321 # We only want to do this on AIX 4.2 and lower, the check
10322 # below for broken collect2 doesn't work under 4.3+
10323 collect2name=`$CC -print-prog-name=collect2`
10324 if test -f "$collect2name" &&
10325 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10326 then
10327 # We have reworked collect2
10328 :
10329 else
10330 # We have old collect2
10331 hardcode_direct=unsupported
10332 # It fails to find uninstalled libraries when the uninstalled
10333 # path is not listed in the libpath. Setting hardcode_minus_L
10334 # to unsupported forces relinking
10335 hardcode_minus_L=yes
10336 hardcode_libdir_flag_spec='-L$libdir'
10337 hardcode_libdir_separator=
10338 fi
10339 ;;
10340 esac
10341 shared_flag='-shared'
10342 if test yes = "$aix_use_runtimelinking"; then
10343 shared_flag="$shared_flag "'$wl-G'
10344 fi
10345 # Need to ensure runtime linking is disabled for the traditional
10346 # shared library, or the linker may eventually find shared libraries
10347 # /with/ Import File - we do not want to mix them.
10348 shared_flag_aix='-shared'
10349 shared_flag_svr4='-shared $wl-G'
10350 else
10351 # not using gcc
10352 if test ia64 = "$host_cpu"; then
10353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10354 # chokes on -Wl,-G. The following line is correct:
10355 shared_flag='-G'
10356 else
10357 if test yes = "$aix_use_runtimelinking"; then
10358 shared_flag='$wl-G'
10359 else
10360 shared_flag='$wl-bM:SRE'
10361 fi
10362 shared_flag_aix='$wl-bM:SRE'
10363 shared_flag_svr4='$wl-G'
10364 fi
10365 fi
10366
10367 export_dynamic_flag_spec='$wl-bexpall'
10368 # It seems that -bexpall does not export symbols beginning with
10369 # underscore (_), so it is better to generate a list of symbols to export.
10370 always_export_symbols=yes
10371 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10372 # Warning - without using the other runtime loading flags (-brtl),
10373 # -berok will link without error, but may produce a broken library.
10374 allow_undefined_flag='-berok'
10375 # Determine the default libpath from the value encoded in an
10376 # empty executable.
10377 if test set = "${lt_cv_aix_libpath+set}"; then
10378 aix_libpath=$lt_cv_aix_libpath
10379 else
10380 if test ${lt_cv_aix_libpath_+y}
10381 then :
10382 printf %s "(cached) " >&6
10383 else $as_nop
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386
10387 int
10388 main (void)
10389 {
10390
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"
10396 then :
10397
10398 lt_aix_libpath_sed='
10399 /Import File Strings/,/^$/ {
10400 /^0/ {
10401 s/^0 *\([^ ]*\) *$/\1/
10402 p
10403 }
10404 }'
10405 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10406 # Check for a 64-bit object if we didn't find anything.
10407 if test -z "$lt_cv_aix_libpath_"; then
10408 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10409 fi
10410 fi
10411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10412 conftest$ac_exeext conftest.$ac_ext
10413 if test -z "$lt_cv_aix_libpath_"; then
10414 lt_cv_aix_libpath_=/usr/lib:/lib
10415 fi
10416
10417 fi
10418
10419 aix_libpath=$lt_cv_aix_libpath_
10420 fi
10421
10422 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10423 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
10424 else
10425 if test ia64 = "$host_cpu"; then
10426 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10427 allow_undefined_flag="-z nodefs"
10428 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"
10429 else
10430 # Determine the default libpath from the value encoded in an
10431 # empty executable.
10432 if test set = "${lt_cv_aix_libpath+set}"; then
10433 aix_libpath=$lt_cv_aix_libpath
10434 else
10435 if test ${lt_cv_aix_libpath_+y}
10436 then :
10437 printf %s "(cached) " >&6
10438 else $as_nop
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441
10442 int
10443 main (void)
10444 {
10445
10446 ;
10447 return 0;
10448 }
10449 _ACEOF
10450 if ac_fn_c_try_link "$LINENO"
10451 then :
10452
10453 lt_aix_libpath_sed='
10454 /Import File Strings/,/^$/ {
10455 /^0/ {
10456 s/^0 *\([^ ]*\) *$/\1/
10457 p
10458 }
10459 }'
10460 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10461 # Check for a 64-bit object if we didn't find anything.
10462 if test -z "$lt_cv_aix_libpath_"; then
10463 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10464 fi
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10467 conftest$ac_exeext conftest.$ac_ext
10468 if test -z "$lt_cv_aix_libpath_"; then
10469 lt_cv_aix_libpath_=/usr/lib:/lib
10470 fi
10471
10472 fi
10473
10474 aix_libpath=$lt_cv_aix_libpath_
10475 fi
10476
10477 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10478 # Warning - without using the other run time loading flags,
10479 # -berok will link without error, but may produce a broken library.
10480 no_undefined_flag=' $wl-bernotok'
10481 allow_undefined_flag=' $wl-berok'
10482 if test yes = "$with_gnu_ld"; then
10483 # We only use this code for GNU lds that support --whole-archive.
10484 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10485 else
10486 # Exported symbols can be pulled into shared objects from archives
10487 whole_archive_flag_spec='$convenience'
10488 fi
10489 archive_cmds_need_lc=yes
10490 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10491 # -brtl affects multiple linker settings, -berok does not and is overridden later
10492 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10493 if test svr4 != "$with_aix_soname"; then
10494 # This is similar to how AIX traditionally builds its shared libraries.
10495 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'
10496 fi
10497 if test aix != "$with_aix_soname"; then
10498 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'
10499 else
10500 # used by -dlpreopen to get the symbols
10501 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10502 fi
10503 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10504 fi
10505 fi
10506 ;;
10507
10508 amigaos*)
10509 case $host_cpu in
10510 powerpc)
10511 # see comment about AmigaOS4 .so support
10512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10513 archive_expsym_cmds=''
10514 ;;
10515 m68k)
10516 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)'
10517 hardcode_libdir_flag_spec='-L$libdir'
10518 hardcode_minus_L=yes
10519 ;;
10520 esac
10521 ;;
10522
10523 bsdi[45]*)
10524 export_dynamic_flag_spec=-rdynamic
10525 ;;
10526
10527 cygwin* | mingw* | pw32* | cegcc*)
10528 # When not using gcc, we currently assume that we are using
10529 # Microsoft Visual C++ or Intel C++ Compiler.
10530 # hardcode_libdir_flag_spec is actually meaningless, as there is
10531 # no search path for DLLs.
10532 case $cc_basename in
10533 cl* | icl*)
10534 # Native MSVC or ICC
10535 hardcode_libdir_flag_spec=' '
10536 allow_undefined_flag=unsupported
10537 always_export_symbols=yes
10538 file_list_spec='@'
10539 # Tell ltmain to make .lib files, not .a files.
10540 libext=lib
10541 # Tell ltmain to make .dll files, not .so files.
10542 shrext_cmds=.dll
10543 # FIXME: Setting linknames here is a bad hack.
10544 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10545 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10546 cp "$export_symbols" "$output_objdir/$soname.def";
10547 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10548 else
10549 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10550 fi~
10551 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10552 linknames='
10553 # The linker will not automatically build a static lib if we build a DLL.
10554 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10555 enable_shared_with_static_runtimes=yes
10556 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10558 # Don't use ranlib
10559 old_postinstall_cmds='chmod 644 $oldlib'
10560 postlink_cmds='lt_outputfile="@OUTPUT@"~
10561 lt_tool_outputfile="@TOOL_OUTPUT@"~
10562 case $lt_outputfile in
10563 *.exe|*.EXE) ;;
10564 *)
10565 lt_outputfile=$lt_outputfile.exe
10566 lt_tool_outputfile=$lt_tool_outputfile.exe
10567 ;;
10568 esac~
10569 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10570 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10571 $RM "$lt_outputfile.manifest";
10572 fi'
10573 ;;
10574 *)
10575 # Assume MSVC and ICC wrapper
10576 hardcode_libdir_flag_spec=' '
10577 allow_undefined_flag=unsupported
10578 # Tell ltmain to make .lib files, not .a files.
10579 libext=lib
10580 # Tell ltmain to make .dll files, not .so files.
10581 shrext_cmds=.dll
10582 # FIXME: Setting linknames here is a bad hack.
10583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10584 # The linker will automatically build a .lib file if we build a DLL.
10585 old_archive_from_new_cmds='true'
10586 # FIXME: Should let the user specify the lib program.
10587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10588 enable_shared_with_static_runtimes=yes
10589 ;;
10590 esac
10591 ;;
10592
10593 darwin* | rhapsody*)
10594
10595
10596 archive_cmds_need_lc=no
10597 hardcode_direct=no
10598 hardcode_automatic=yes
10599 hardcode_shlibpath_var=unsupported
10600 if test yes = "$lt_cv_ld_force_load"; then
10601 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\"`'
10602
10603 else
10604 whole_archive_flag_spec=''
10605 fi
10606 link_all_deplibs=yes
10607 allow_undefined_flag=$_lt_dar_allow_undefined
10608 case $cc_basename in
10609 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10610 *) _lt_dar_can_shared=$GCC ;;
10611 esac
10612 if test yes = "$_lt_dar_can_shared"; then
10613 output_verbose_link_cmd=func_echo_all
10614 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10615 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10616 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"
10617 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"
10618
10619 else
10620 ld_shlibs=no
10621 fi
10622
10623 ;;
10624
10625 dgux*)
10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_libdir_flag_spec='-L$libdir'
10628 hardcode_shlibpath_var=no
10629 ;;
10630
10631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10632 # support. Future versions do this automatically, but an explicit c++rt0.o
10633 # does not break anything, and helps significantly (at the cost of a little
10634 # extra space).
10635 freebsd2.2*)
10636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10637 hardcode_libdir_flag_spec='-R$libdir'
10638 hardcode_direct=yes
10639 hardcode_shlibpath_var=no
10640 ;;
10641
10642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10643 freebsd2.*)
10644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10645 hardcode_direct=yes
10646 hardcode_minus_L=yes
10647 hardcode_shlibpath_var=no
10648 ;;
10649
10650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10651 freebsd* | dragonfly* | midnightbsd*)
10652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10653 hardcode_libdir_flag_spec='-R$libdir'
10654 hardcode_direct=yes
10655 hardcode_shlibpath_var=no
10656 ;;
10657
10658 hpux9*)
10659 if test yes = "$GCC"; then
10660 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'
10661 else
10662 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'
10663 fi
10664 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10665 hardcode_libdir_separator=:
10666 hardcode_direct=yes
10667
10668 # hardcode_minus_L: Not really in the search PATH,
10669 # but as the default location of the library.
10670 hardcode_minus_L=yes
10671 export_dynamic_flag_spec='$wl-E'
10672 ;;
10673
10674 hpux10*)
10675 if test yes,no = "$GCC,$with_gnu_ld"; then
10676 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10677 else
10678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10679 fi
10680 if test no = "$with_gnu_ld"; then
10681 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10682 hardcode_libdir_separator=:
10683 hardcode_direct=yes
10684 hardcode_direct_absolute=yes
10685 export_dynamic_flag_spec='$wl-E'
10686 # hardcode_minus_L: Not really in the search PATH,
10687 # but as the default location of the library.
10688 hardcode_minus_L=yes
10689 fi
10690 ;;
10691
10692 hpux11*)
10693 if test yes,no = "$GCC,$with_gnu_ld"; then
10694 case $host_cpu in
10695 hppa*64*)
10696 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 ;;
10698 ia64*)
10699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10700 ;;
10701 *)
10702 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10703 ;;
10704 esac
10705 else
10706 case $host_cpu in
10707 hppa*64*)
10708 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 ;;
10710 ia64*)
10711 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10712 ;;
10713 *)
10714
10715 # Older versions of the 11.00 compiler do not understand -b yet
10716 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10718 printf %s "checking if $CC understands -b... " >&6; }
10719 if test ${lt_cv_prog_compiler__b+y}
10720 then :
10721 printf %s "(cached) " >&6
10722 else $as_nop
10723 lt_cv_prog_compiler__b=no
10724 save_LDFLAGS=$LDFLAGS
10725 LDFLAGS="$LDFLAGS -b"
10726 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10727 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10728 # The linker can only warn and ignore the option if not recognized
10729 # So say no if there are warnings
10730 if test -s conftest.err; then
10731 # Append any errors to the config.log.
10732 cat conftest.err 1>&5
10733 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10735 if diff conftest.exp conftest.er2 >/dev/null; then
10736 lt_cv_prog_compiler__b=yes
10737 fi
10738 else
10739 lt_cv_prog_compiler__b=yes
10740 fi
10741 fi
10742 $RM -r conftest*
10743 LDFLAGS=$save_LDFLAGS
10744
10745 fi
10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10747 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10748
10749 if test yes = "$lt_cv_prog_compiler__b"; then
10750 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10751 else
10752 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10753 fi
10754
10755 ;;
10756 esac
10757 fi
10758 if test no = "$with_gnu_ld"; then
10759 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10760 hardcode_libdir_separator=:
10761
10762 case $host_cpu in
10763 hppa*64*|ia64*)
10764 hardcode_direct=no
10765 hardcode_shlibpath_var=no
10766 ;;
10767 *)
10768 hardcode_direct=yes
10769 hardcode_direct_absolute=yes
10770 export_dynamic_flag_spec='$wl-E'
10771
10772 # hardcode_minus_L: Not really in the search PATH,
10773 # but as the default location of the library.
10774 hardcode_minus_L=yes
10775 ;;
10776 esac
10777 fi
10778 ;;
10779
10780 irix5* | irix6* | nonstopux*)
10781 if test yes = "$GCC"; then
10782 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'
10783 # Try to use the -exported_symbol ld option, if it does not
10784 # work, assume that -exports_file does not work either and
10785 # implicitly export all symbols.
10786 # This should be the same for all languages, so no per-tag cache variable.
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10788 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10789 if test ${lt_cv_irix_exported_symbol+y}
10790 then :
10791 printf %s "(cached) " >&6
10792 else $as_nop
10793 save_LDFLAGS=$LDFLAGS
10794 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797 int foo (void) { return 0; }
10798 _ACEOF
10799 if ac_fn_c_try_link "$LINENO"
10800 then :
10801 lt_cv_irix_exported_symbol=yes
10802 else $as_nop
10803 lt_cv_irix_exported_symbol=no
10804 fi
10805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10806 conftest$ac_exeext conftest.$ac_ext
10807 LDFLAGS=$save_LDFLAGS
10808 fi
10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10810 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10811 if test yes = "$lt_cv_irix_exported_symbol"; then
10812 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'
10813 fi
10814 else
10815 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'
10816 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'
10817 fi
10818 archive_cmds_need_lc='no'
10819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10820 hardcode_libdir_separator=:
10821 inherit_rpath=yes
10822 link_all_deplibs=yes
10823 ;;
10824
10825 linux*)
10826 case $cc_basename in
10827 tcc*)
10828 # Fabrice Bellard et al's Tiny C Compiler
10829 ld_shlibs=yes
10830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10831 ;;
10832 esac
10833 ;;
10834
10835 netbsd*)
10836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10838 else
10839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10840 fi
10841 hardcode_libdir_flag_spec='-R$libdir'
10842 hardcode_direct=yes
10843 hardcode_shlibpath_var=no
10844 ;;
10845
10846 newsos6)
10847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10848 hardcode_direct=yes
10849 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10850 hardcode_libdir_separator=:
10851 hardcode_shlibpath_var=no
10852 ;;
10853
10854 *nto* | *qnx*)
10855 ;;
10856
10857 openbsd* | bitrig*)
10858 if test -f /usr/libexec/ld.so; then
10859 hardcode_direct=yes
10860 hardcode_shlibpath_var=no
10861 hardcode_direct_absolute=yes
10862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10865 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10866 export_dynamic_flag_spec='$wl-E'
10867 else
10868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10869 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10870 fi
10871 else
10872 ld_shlibs=no
10873 fi
10874 ;;
10875
10876 os2*)
10877 hardcode_libdir_flag_spec='-L$libdir'
10878 hardcode_minus_L=yes
10879 allow_undefined_flag=unsupported
10880 shrext_cmds=.dll
10881 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10882 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10883 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10884 $ECHO EXPORTS >> $output_objdir/$libname.def~
10885 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10886 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10887 emximp -o $lib $output_objdir/$libname.def'
10888 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10889 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10890 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10891 $ECHO EXPORTS >> $output_objdir/$libname.def~
10892 prefix_cmds="$SED"~
10893 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10894 prefix_cmds="$prefix_cmds -e 1d";
10895 fi~
10896 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10897 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10898 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10899 emximp -o $lib $output_objdir/$libname.def'
10900 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10901 enable_shared_with_static_runtimes=yes
10902 file_list_spec='@'
10903 ;;
10904
10905 osf3*)
10906 if test yes = "$GCC"; then
10907 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10908 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'
10909 else
10910 allow_undefined_flag=' -expect_unresolved \*'
10911 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'
10912 fi
10913 archive_cmds_need_lc='no'
10914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10915 hardcode_libdir_separator=:
10916 ;;
10917
10918 osf4* | osf5*) # as osf3* with the addition of -msym flag
10919 if test yes = "$GCC"; then
10920 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10921 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'
10922 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10923 else
10924 allow_undefined_flag=' -expect_unresolved \*'
10925 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'
10926 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~
10927 $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'
10928
10929 # Both c and cxx compiler support -rpath directly
10930 hardcode_libdir_flag_spec='-rpath $libdir'
10931 fi
10932 archive_cmds_need_lc='no'
10933 hardcode_libdir_separator=:
10934 ;;
10935
10936 solaris*)
10937 no_undefined_flag=' -z defs'
10938 if test yes = "$GCC"; then
10939 wlarc='$wl'
10940 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10942 $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'
10943 else
10944 case `$CC -V 2>&1` in
10945 *"Compilers 5.0"*)
10946 wlarc=''
10947 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10949 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10950 ;;
10951 *)
10952 wlarc='$wl'
10953 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10954 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10955 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10956 ;;
10957 esac
10958 fi
10959 hardcode_libdir_flag_spec='-R$libdir'
10960 hardcode_shlibpath_var=no
10961 case $host_os in
10962 solaris2.[0-5] | solaris2.[0-5].*) ;;
10963 *)
10964 # The compiler driver will combine and reorder linker options,
10965 # but understands '-z linker_flag'. GCC discards it without '$wl',
10966 # but is careful enough not to reorder.
10967 # Supported since Solaris 2.6 (maybe 2.5.1?)
10968 if test yes = "$GCC"; then
10969 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10970 else
10971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10972 fi
10973 ;;
10974 esac
10975 link_all_deplibs=yes
10976 ;;
10977
10978 sunos4*)
10979 if test sequent = "$host_vendor"; then
10980 # Use $CC to link under sequent, because it throws in some extra .o
10981 # files that make .init and .fini sections work.
10982 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10983 else
10984 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10985 fi
10986 hardcode_libdir_flag_spec='-L$libdir'
10987 hardcode_direct=yes
10988 hardcode_minus_L=yes
10989 hardcode_shlibpath_var=no
10990 ;;
10991
10992 sysv4)
10993 case $host_vendor in
10994 sni)
10995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996 hardcode_direct=yes # is this really true???
10997 ;;
10998 siemens)
10999 ## LD is ld it makes a PLAMLIB
11000 ## CC just makes a GrossModule.
11001 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11002 reload_cmds='$CC -r -o $output$reload_objs'
11003 hardcode_direct=no
11004 ;;
11005 motorola)
11006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11008 ;;
11009 esac
11010 runpath_var='LD_RUN_PATH'
11011 hardcode_shlibpath_var=no
11012 ;;
11013
11014 sysv4.3*)
11015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11016 hardcode_shlibpath_var=no
11017 export_dynamic_flag_spec='-Bexport'
11018 ;;
11019
11020 sysv4*MP*)
11021 if test -d /usr/nec; then
11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023 hardcode_shlibpath_var=no
11024 runpath_var=LD_RUN_PATH
11025 hardcode_runpath_var=yes
11026 ld_shlibs=yes
11027 fi
11028 ;;
11029
11030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11031 no_undefined_flag='$wl-z,text'
11032 archive_cmds_need_lc=no
11033 hardcode_shlibpath_var=no
11034 runpath_var='LD_RUN_PATH'
11035
11036 if test yes = "$GCC"; then
11037 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039 else
11040 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042 fi
11043 ;;
11044
11045 sysv5* | sco3.2v5* | sco5v6*)
11046 # Note: We CANNOT use -z defs as we might desire, because we do not
11047 # link with -lc, and that would cause any symbols used from libc to
11048 # always be unresolved, which means just about no library would
11049 # ever link correctly. If we're not using GNU ld we use -z text
11050 # though, which does catch some bad symbols but isn't as heavy-handed
11051 # as -z defs.
11052 no_undefined_flag='$wl-z,text'
11053 allow_undefined_flag='$wl-z,nodefs'
11054 archive_cmds_need_lc=no
11055 hardcode_shlibpath_var=no
11056 hardcode_libdir_flag_spec='$wl-R,$libdir'
11057 hardcode_libdir_separator=':'
11058 link_all_deplibs=yes
11059 export_dynamic_flag_spec='$wl-Bexport'
11060 runpath_var='LD_RUN_PATH'
11061
11062 if test yes = "$GCC"; then
11063 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11064 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11065 else
11066 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11067 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11068 fi
11069 ;;
11070
11071 uts4*)
11072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11073 hardcode_libdir_flag_spec='-L$libdir'
11074 hardcode_shlibpath_var=no
11075 ;;
11076
11077 *)
11078 ld_shlibs=no
11079 ;;
11080 esac
11081
11082 if test sni = "$host_vendor"; then
11083 case $host in
11084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11085 export_dynamic_flag_spec='$wl-Blargedynsym'
11086 ;;
11087 esac
11088 fi
11089 fi
11090
11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11092 printf "%s\n" "$ld_shlibs" >&6; }
11093 test no = "$ld_shlibs" && can_build_shared=no
11094
11095 with_gnu_ld=$with_gnu_ld
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111 #
11112 # Do we need to explicitly link libc?
11113 #
11114 case "x$archive_cmds_need_lc" in
11115 x|xyes)
11116 # Assume -lc should be added
11117 archive_cmds_need_lc=yes
11118
11119 if test yes,yes = "$GCC,$enable_shared"; then
11120 case $archive_cmds in
11121 *'~'*)
11122 # FIXME: we may have to deal with multi-command sequences.
11123 ;;
11124 '$CC '*)
11125 # Test whether the compiler implicitly links with -lc since on some
11126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11127 # to ld, don't add -lc before -lgcc.
11128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11129 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11130 if test ${lt_cv_archive_cmds_need_lc+y}
11131 then :
11132 printf %s "(cached) " >&6
11133 else $as_nop
11134 $RM conftest*
11135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11136
11137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11138 (eval $ac_compile) 2>&5
11139 ac_status=$?
11140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11141 test $ac_status = 0; } 2>conftest.err; then
11142 soname=conftest
11143 lib=conftest
11144 libobjs=conftest.$ac_objext
11145 deplibs=
11146 wl=$lt_prog_compiler_wl
11147 pic_flag=$lt_prog_compiler_pic
11148 compiler_flags=-v
11149 linker_flags=-v
11150 verstring=
11151 output_objdir=.
11152 libname=conftest
11153 lt_save_allow_undefined_flag=$allow_undefined_flag
11154 allow_undefined_flag=
11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11156 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11157 ac_status=$?
11158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; }
11160 then
11161 lt_cv_archive_cmds_need_lc=no
11162 else
11163 lt_cv_archive_cmds_need_lc=yes
11164 fi
11165 allow_undefined_flag=$lt_save_allow_undefined_flag
11166 else
11167 cat conftest.err 1>&5
11168 fi
11169 $RM conftest*
11170
11171 fi
11172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11173 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11174 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11175 ;;
11176 esac
11177 fi
11178 ;;
11179 esac
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11333 printf %s "checking dynamic linker characteristics... " >&6; }
11334
11335 if test yes = "$GCC"; then
11336 case $host_os in
11337 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11338 *) lt_awk_arg='/^libraries:/' ;;
11339 esac
11340 case $host_os in
11341 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11342 *) lt_sed_strip_eq='s|=/|/|g' ;;
11343 esac
11344 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11345 case $lt_search_path_spec in
11346 *\;*)
11347 # if the path contains ";" then we assume it to be the separator
11348 # otherwise default to the standard path separator (i.e. ":") - it is
11349 # assumed that no part of a normal pathname contains ";" but that should
11350 # okay in the real world where ";" in dirpaths is itself problematic.
11351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11352 ;;
11353 *)
11354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11355 ;;
11356 esac
11357 # Ok, now we have the path, separated by spaces, we can step through it
11358 # and add multilib dir if necessary...
11359 lt_tmp_lt_search_path_spec=
11360 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11361 # ...but if some path component already ends with the multilib dir we assume
11362 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11363 case "$lt_multi_os_dir; $lt_search_path_spec " in
11364 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11365 lt_multi_os_dir=
11366 ;;
11367 esac
11368 for lt_sys_path in $lt_search_path_spec; do
11369 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11370 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11371 elif test -n "$lt_multi_os_dir"; then
11372 test -d "$lt_sys_path" && \
11373 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11374 fi
11375 done
11376 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11377 BEGIN {RS = " "; FS = "/|\n";} {
11378 lt_foo = "";
11379 lt_count = 0;
11380 for (lt_i = NF; lt_i > 0; lt_i--) {
11381 if ($lt_i != "" && $lt_i != ".") {
11382 if ($lt_i == "..") {
11383 lt_count++;
11384 } else {
11385 if (lt_count == 0) {
11386 lt_foo = "/" $lt_i lt_foo;
11387 } else {
11388 lt_count--;
11389 }
11390 }
11391 }
11392 }
11393 if (lt_foo != "") { lt_freq[lt_foo]++; }
11394 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11395 }'`
11396 # AWK program above erroneously prepends '/' to C:/dos/paths
11397 # for these hosts.
11398 case $host_os in
11399 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11400 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11401 esac
11402 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11403 else
11404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11405 fi
11406 library_names_spec=
11407 libname_spec='lib$name'
11408 soname_spec=
11409 shrext_cmds=.so
11410 postinstall_cmds=
11411 postuninstall_cmds=
11412 finish_cmds=
11413 finish_eval=
11414 shlibpath_var=
11415 shlibpath_overrides_runpath=unknown
11416 version_type=none
11417 dynamic_linker="$host_os ld.so"
11418 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11419 need_lib_prefix=unknown
11420 hardcode_into_libs=no
11421
11422 # when you set need_version to no, make sure it does not cause -set_version
11423 # flags to be left without arguments
11424 need_version=unknown
11425
11426
11427
11428 case $host_os in
11429 aix3*)
11430 version_type=linux # correct to gnu/linux during the next big refactor
11431 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11432 shlibpath_var=LIBPATH
11433
11434 # AIX 3 has no versioning support, so we append a major version to the name.
11435 soname_spec='$libname$release$shared_ext$major'
11436 ;;
11437
11438 aix[4-9]*)
11439 version_type=linux # correct to gnu/linux during the next big refactor
11440 need_lib_prefix=no
11441 need_version=no
11442 hardcode_into_libs=yes
11443 if test ia64 = "$host_cpu"; then
11444 # AIX 5 supports IA64
11445 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 else
11448 # With GCC up to 2.95.x, collect2 would create an import file
11449 # for dependence libraries. The import file would start with
11450 # the line '#! .'. This would cause the generated library to
11451 # depend on '.', always an invalid library. This was fixed in
11452 # development snapshots of GCC prior to 3.0.
11453 case $host_os in
11454 aix4 | aix4.[01] | aix4.[01].*)
11455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11456 echo ' yes '
11457 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11458 :
11459 else
11460 can_build_shared=no
11461 fi
11462 ;;
11463 esac
11464 # Using Import Files as archive members, it is possible to support
11465 # filename-based versioning of shared library archives on AIX. While
11466 # this would work for both with and without runtime linking, it will
11467 # prevent static linking of such archives. So we do filename-based
11468 # shared library versioning with .so extension only, which is used
11469 # when both runtime linking and shared linking is enabled.
11470 # Unfortunately, runtime linking may impact performance, so we do
11471 # not want this to be the default eventually. Also, we use the
11472 # versioned .so libs for executables only if there is the -brtl
11473 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11474 # To allow for filename-based versioning support, we need to create
11475 # libNAME.so.V as an archive file, containing:
11476 # *) an Import File, referring to the versioned filename of the
11477 # archive as well as the shared archive member, telling the
11478 # bitwidth (32 or 64) of that shared object, and providing the
11479 # list of exported symbols of that shared object, eventually
11480 # decorated with the 'weak' keyword
11481 # *) the shared object with the F_LOADONLY flag set, to really avoid
11482 # it being seen by the linker.
11483 # At run time we better use the real file rather than another symlink,
11484 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11485
11486 case $with_aix_soname,$aix_use_runtimelinking in
11487 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11488 # soname into executable. Probably we can add versioning support to
11489 # collect2, so additional links can be useful in future.
11490 aix,yes) # traditional libtool
11491 dynamic_linker='AIX unversionable lib.so'
11492 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11493 # instead of lib<name>.a to let people know that these are not
11494 # typical AIX shared libraries.
11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11496 ;;
11497 aix,no) # traditional AIX only
11498 dynamic_linker='AIX lib.a(lib.so.V)'
11499 # We preserve .a as extension for shared libraries through AIX4.2
11500 # and later when we are not doing run time linking.
11501 library_names_spec='$libname$release.a $libname.a'
11502 soname_spec='$libname$release$shared_ext$major'
11503 ;;
11504 svr4,*) # full svr4 only
11505 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11506 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11507 # We do not specify a path in Import Files, so LIBPATH fires.
11508 shlibpath_overrides_runpath=yes
11509 ;;
11510 *,yes) # both, prefer svr4
11511 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11512 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11513 # unpreferred sharedlib libNAME.a needs extra handling
11514 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"'
11515 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"'
11516 # We do not specify a path in Import Files, so LIBPATH fires.
11517 shlibpath_overrides_runpath=yes
11518 ;;
11519 *,no) # both, prefer aix
11520 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11521 library_names_spec='$libname$release.a $libname.a'
11522 soname_spec='$libname$release$shared_ext$major'
11523 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11524 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)'
11525 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"'
11526 ;;
11527 esac
11528 shlibpath_var=LIBPATH
11529 fi
11530 ;;
11531
11532 amigaos*)
11533 case $host_cpu in
11534 powerpc)
11535 # Since July 2007 AmigaOS4 officially supports .so libraries.
11536 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11538 ;;
11539 m68k)
11540 library_names_spec='$libname.ixlibrary $libname.a'
11541 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11542 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'
11543 ;;
11544 esac
11545 ;;
11546
11547 beos*)
11548 library_names_spec='$libname$shared_ext'
11549 dynamic_linker="$host_os ld.so"
11550 shlibpath_var=LIBRARY_PATH
11551 ;;
11552
11553 bsdi[45]*)
11554 version_type=linux # correct to gnu/linux during the next big refactor
11555 need_version=no
11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11557 soname_spec='$libname$release$shared_ext$major'
11558 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11561 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11562 # the default ld.so.conf also contains /usr/contrib/lib and
11563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11564 # libtool to hard-code these into programs
11565 ;;
11566
11567 cygwin* | mingw* | pw32* | cegcc*)
11568 version_type=windows
11569 shrext_cmds=.dll
11570 need_version=no
11571 need_lib_prefix=no
11572
11573 case $GCC,$cc_basename in
11574 yes,*)
11575 # gcc
11576 library_names_spec='$libname.dll.a'
11577 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11578 postinstall_cmds='base_file=`basename \$file`~
11579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11580 dldir=$destdir/`dirname \$dlpath`~
11581 test -d \$dldir || mkdir -p \$dldir~
11582 $install_prog $dir/$dlname \$dldir/$dlname~
11583 chmod a+x \$dldir/$dlname~
11584 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11585 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11586 fi'
11587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11588 dlpath=$dir/\$dldll~
11589 $RM \$dlpath'
11590 shlibpath_overrides_runpath=yes
11591
11592 case $host_os in
11593 cygwin*)
11594 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11595 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11596
11597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11598 ;;
11599 mingw* | cegcc*)
11600 # MinGW DLLs use traditional 'lib' prefix
11601 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11602 ;;
11603 pw32*)
11604 # pw32 DLLs use 'pw' prefix rather than 'lib'
11605 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11606 ;;
11607 esac
11608 dynamic_linker='Win32 ld.exe'
11609 ;;
11610
11611 *,cl* | *,icl*)
11612 # Native MSVC or ICC
11613 libname_spec='$name'
11614 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11615 library_names_spec='$libname.dll.lib'
11616
11617 case $build_os in
11618 mingw*)
11619 sys_lib_search_path_spec=
11620 lt_save_ifs=$IFS
11621 IFS=';'
11622 for lt_path in $LIB
11623 do
11624 IFS=$lt_save_ifs
11625 # Let DOS variable expansion print the short 8.3 style file name.
11626 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11627 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11628 done
11629 IFS=$lt_save_ifs
11630 # Convert to MSYS style.
11631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11632 ;;
11633 cygwin*)
11634 # Convert to unix form, then to dos form, then back to unix form
11635 # but this time dos style (no spaces!) so that the unix form looks
11636 # like /cygdrive/c/PROGRA~1:/cygdr...
11637 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11638 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11639 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11640 ;;
11641 *)
11642 sys_lib_search_path_spec=$LIB
11643 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11644 # It is most probably a Windows format PATH.
11645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11646 else
11647 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11648 fi
11649 # FIXME: find the short name or the path components, as spaces are
11650 # common. (e.g. "Program Files" -> "PROGRA~1")
11651 ;;
11652 esac
11653
11654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11655 postinstall_cmds='base_file=`basename \$file`~
11656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11657 dldir=$destdir/`dirname \$dlpath`~
11658 test -d \$dldir || mkdir -p \$dldir~
11659 $install_prog $dir/$dlname \$dldir/$dlname'
11660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11661 dlpath=$dir/\$dldll~
11662 $RM \$dlpath'
11663 shlibpath_overrides_runpath=yes
11664 dynamic_linker='Win32 link.exe'
11665 ;;
11666
11667 *)
11668 # Assume MSVC and ICC wrapper
11669 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11670 dynamic_linker='Win32 ld.exe'
11671 ;;
11672 esac
11673 # FIXME: first we should search . and the directory the executable is in
11674 shlibpath_var=PATH
11675 ;;
11676
11677 darwin* | rhapsody*)
11678 dynamic_linker="$host_os dyld"
11679 version_type=darwin
11680 need_lib_prefix=no
11681 need_version=no
11682 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11683 soname_spec='$libname$release$major$shared_ext'
11684 shlibpath_overrides_runpath=yes
11685 shlibpath_var=DYLD_LIBRARY_PATH
11686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11687
11688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11690 ;;
11691
11692 dgux*)
11693 version_type=linux # correct to gnu/linux during the next big refactor
11694 need_lib_prefix=no
11695 need_version=no
11696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11697 soname_spec='$libname$release$shared_ext$major'
11698 shlibpath_var=LD_LIBRARY_PATH
11699 ;;
11700
11701 freebsd* | dragonfly* | midnightbsd*)
11702 # DragonFly does not have aout. When/if they implement a new
11703 # versioning mechanism, adjust this.
11704 if test -x /usr/bin/objformat; then
11705 objformat=`/usr/bin/objformat`
11706 else
11707 case $host_os in
11708 freebsd[23].*) objformat=aout ;;
11709 *) objformat=elf ;;
11710 esac
11711 fi
11712 version_type=freebsd-$objformat
11713 case $version_type in
11714 freebsd-elf*)
11715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11716 soname_spec='$libname$release$shared_ext$major'
11717 need_version=no
11718 need_lib_prefix=no
11719 ;;
11720 freebsd-*)
11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11722 need_version=yes
11723 ;;
11724 esac
11725 shlibpath_var=LD_LIBRARY_PATH
11726 case $host_os in
11727 freebsd2.*)
11728 shlibpath_overrides_runpath=yes
11729 ;;
11730 freebsd3.[01]* | freebsdelf3.[01]*)
11731 shlibpath_overrides_runpath=yes
11732 hardcode_into_libs=yes
11733 ;;
11734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11736 shlibpath_overrides_runpath=no
11737 hardcode_into_libs=yes
11738 ;;
11739 *) # from 4.6 on, and DragonFly
11740 shlibpath_overrides_runpath=yes
11741 hardcode_into_libs=yes
11742 ;;
11743 esac
11744 ;;
11745
11746 haiku*)
11747 version_type=linux # correct to gnu/linux during the next big refactor
11748 need_lib_prefix=no
11749 need_version=no
11750 dynamic_linker="$host_os runtime_loader"
11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11752 soname_spec='$libname$release$shared_ext$major'
11753 shlibpath_var=LIBRARY_PATH
11754 shlibpath_overrides_runpath=no
11755 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11756 hardcode_into_libs=yes
11757 ;;
11758
11759 hpux9* | hpux10* | hpux11*)
11760 # Give a soname corresponding to the major version so that dld.sl refuses to
11761 # link against other versions.
11762 version_type=sunos
11763 need_lib_prefix=no
11764 need_version=no
11765 case $host_cpu in
11766 ia64*)
11767 shrext_cmds='.so'
11768 hardcode_into_libs=yes
11769 dynamic_linker="$host_os dld.so"
11770 shlibpath_var=LD_LIBRARY_PATH
11771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11773 soname_spec='$libname$release$shared_ext$major'
11774 if test 32 = "$HPUX_IA64_MODE"; then
11775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11776 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11777 else
11778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11779 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11780 fi
11781 ;;
11782 hppa*64*)
11783 shrext_cmds='.sl'
11784 hardcode_into_libs=yes
11785 dynamic_linker="$host_os dld.sl"
11786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11789 soname_spec='$libname$release$shared_ext$major'
11790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11792 ;;
11793 *)
11794 shrext_cmds='.sl'
11795 dynamic_linker="$host_os dld.sl"
11796 shlibpath_var=SHLIB_PATH
11797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11799 soname_spec='$libname$release$shared_ext$major'
11800 ;;
11801 esac
11802 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11803 postinstall_cmds='chmod 555 $lib'
11804 # or fails outright, so override atomically:
11805 install_override_mode=555
11806 ;;
11807
11808 interix[3-9]*)
11809 version_type=linux # correct to gnu/linux during the next big refactor
11810 need_lib_prefix=no
11811 need_version=no
11812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11813 soname_spec='$libname$release$shared_ext$major'
11814 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 hardcode_into_libs=yes
11818 ;;
11819
11820 irix5* | irix6* | nonstopux*)
11821 case $host_os in
11822 nonstopux*) version_type=nonstopux ;;
11823 *)
11824 if test yes = "$lt_cv_prog_gnu_ld"; then
11825 version_type=linux # correct to gnu/linux during the next big refactor
11826 else
11827 version_type=irix
11828 fi ;;
11829 esac
11830 need_lib_prefix=no
11831 need_version=no
11832 soname_spec='$libname$release$shared_ext$major'
11833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11834 case $host_os in
11835 irix5* | nonstopux*)
11836 libsuff= shlibsuff=
11837 ;;
11838 *)
11839 case $LD in # libtool.m4 will add one of these switches to LD
11840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11841 libsuff= shlibsuff= libmagic=32-bit;;
11842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11843 libsuff=32 shlibsuff=N32 libmagic=N32;;
11844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11845 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11846 *) libsuff= shlibsuff= libmagic=never-match;;
11847 esac
11848 ;;
11849 esac
11850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11851 shlibpath_overrides_runpath=no
11852 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11853 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11854 hardcode_into_libs=yes
11855 ;;
11856
11857 # No shared lib support for Linux oldld, aout, or coff.
11858 linux*oldld* | linux*aout* | linux*coff*)
11859 dynamic_linker=no
11860 ;;
11861
11862 linux*android*)
11863 version_type=none # Android doesn't support versioned libraries.
11864 need_lib_prefix=no
11865 need_version=no
11866 library_names_spec='$libname$release$shared_ext'
11867 soname_spec='$libname$release$shared_ext'
11868 finish_cmds=
11869 shlibpath_var=LD_LIBRARY_PATH
11870 shlibpath_overrides_runpath=yes
11871
11872 # This implies no fast_install, which is unacceptable.
11873 # Some rework will be needed to allow for fast_install
11874 # before this can be enabled.
11875 hardcode_into_libs=yes
11876
11877 dynamic_linker='Android linker'
11878 # Don't embed -rpath directories since the linker doesn't support them.
11879 hardcode_libdir_flag_spec='-L$libdir'
11880 ;;
11881
11882 # This must be glibc/ELF.
11883 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11884 version_type=linux # correct to gnu/linux during the next big refactor
11885 need_lib_prefix=no
11886 need_version=no
11887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11888 soname_spec='$libname$release$shared_ext$major'
11889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=no
11892
11893 # Some binutils ld are patched to set DT_RUNPATH
11894 if test ${lt_cv_shlibpath_overrides_runpath+y}
11895 then :
11896 printf %s "(cached) " >&6
11897 else $as_nop
11898 lt_cv_shlibpath_overrides_runpath=no
11899 save_LDFLAGS=$LDFLAGS
11900 save_libdir=$libdir
11901 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11902 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905
11906 int
11907 main (void)
11908 {
11909
11910 ;
11911 return 0;
11912 }
11913 _ACEOF
11914 if ac_fn_c_try_link "$LINENO"
11915 then :
11916 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11917 then :
11918 lt_cv_shlibpath_overrides_runpath=yes
11919 fi
11920 fi
11921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11922 conftest$ac_exeext conftest.$ac_ext
11923 LDFLAGS=$save_LDFLAGS
11924 libdir=$save_libdir
11925
11926 fi
11927
11928 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11929
11930 # This implies no fast_install, which is unacceptable.
11931 # Some rework will be needed to allow for fast_install
11932 # before this can be enabled.
11933 hardcode_into_libs=yes
11934
11935 # Ideally, we could use ldconfig to report *all* directores which are
11936 # searched for libraries, however this is still not possible. Aside from not
11937 # being certain /sbin/ldconfig is available, command
11938 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11939 # even though it is searched at run-time. Try to do the best guess by
11940 # appending ld.so.conf contents (and includes) to the search path.
11941 if test -f /etc/ld.so.conf; then
11942 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' ' '`
11943 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11944 fi
11945
11946 # We used to test for /lib/ld.so.1 and disable shared libraries on
11947 # powerpc, because MkLinux only supported shared libraries with the
11948 # GNU dynamic linker. Since this was broken with cross compilers,
11949 # most powerpc-linux boxes support dynamic linking these days and
11950 # people can always --disable-shared, the test was removed, and we
11951 # assume the GNU/Linux dynamic linker is in use.
11952 dynamic_linker='GNU/Linux ld.so'
11953 ;;
11954
11955 netbsd*)
11956 version_type=sunos
11957 need_lib_prefix=no
11958 need_version=no
11959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11962 dynamic_linker='NetBSD (a.out) ld.so'
11963 else
11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11965 soname_spec='$libname$release$shared_ext$major'
11966 dynamic_linker='NetBSD ld.elf_so'
11967 fi
11968 shlibpath_var=LD_LIBRARY_PATH
11969 shlibpath_overrides_runpath=yes
11970 hardcode_into_libs=yes
11971 ;;
11972
11973 newsos6)
11974 version_type=linux # correct to gnu/linux during the next big refactor
11975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 shlibpath_overrides_runpath=yes
11978 ;;
11979
11980 *nto* | *qnx*)
11981 version_type=qnx
11982 need_lib_prefix=no
11983 need_version=no
11984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11985 soname_spec='$libname$release$shared_ext$major'
11986 shlibpath_var=LD_LIBRARY_PATH
11987 shlibpath_overrides_runpath=no
11988 hardcode_into_libs=yes
11989 dynamic_linker='ldqnx.so'
11990 ;;
11991
11992 openbsd* | bitrig*)
11993 version_type=sunos
11994 sys_lib_dlsearch_path_spec=/usr/lib
11995 need_lib_prefix=no
11996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11997 need_version=no
11998 else
11999 need_version=yes
12000 fi
12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes
12005 ;;
12006
12007 os2*)
12008 libname_spec='$name'
12009 version_type=windows
12010 shrext_cmds=.dll
12011 need_version=no
12012 need_lib_prefix=no
12013 # OS/2 can only load a DLL with a base name of 8 characters or less.
12014 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12015 v=$($ECHO $release$versuffix | tr -d .-);
12016 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12017 $ECHO $n$v`$shared_ext'
12018 library_names_spec='${libname}_dll.$libext'
12019 dynamic_linker='OS/2 ld.exe'
12020 shlibpath_var=BEGINLIBPATH
12021 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12023 postinstall_cmds='base_file=`basename \$file`~
12024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12025 dldir=$destdir/`dirname \$dlpath`~
12026 test -d \$dldir || mkdir -p \$dldir~
12027 $install_prog $dir/$dlname \$dldir/$dlname~
12028 chmod a+x \$dldir/$dlname~
12029 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12030 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12031 fi'
12032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12033 dlpath=$dir/\$dldll~
12034 $RM \$dlpath'
12035 ;;
12036
12037 osf3* | osf4* | osf5*)
12038 version_type=osf
12039 need_lib_prefix=no
12040 need_version=no
12041 soname_spec='$libname$release$shared_ext$major'
12042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12043 shlibpath_var=LD_LIBRARY_PATH
12044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12046 ;;
12047
12048 rdos*)
12049 dynamic_linker=no
12050 ;;
12051
12052 solaris*)
12053 version_type=linux # correct to gnu/linux during the next big refactor
12054 need_lib_prefix=no
12055 need_version=no
12056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12057 soname_spec='$libname$release$shared_ext$major'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=yes
12060 hardcode_into_libs=yes
12061 # ldd complains unless libraries are executable
12062 postinstall_cmds='chmod +x $lib'
12063 ;;
12064
12065 sunos4*)
12066 version_type=sunos
12067 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 shlibpath_overrides_runpath=yes
12071 if test yes = "$with_gnu_ld"; then
12072 need_lib_prefix=no
12073 fi
12074 need_version=yes
12075 ;;
12076
12077 sysv4 | sysv4.3*)
12078 version_type=linux # correct to gnu/linux during the next big refactor
12079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12080 soname_spec='$libname$release$shared_ext$major'
12081 shlibpath_var=LD_LIBRARY_PATH
12082 case $host_vendor in
12083 sni)
12084 shlibpath_overrides_runpath=no
12085 need_lib_prefix=no
12086 runpath_var=LD_RUN_PATH
12087 ;;
12088 siemens)
12089 need_lib_prefix=no
12090 ;;
12091 motorola)
12092 need_lib_prefix=no
12093 need_version=no
12094 shlibpath_overrides_runpath=no
12095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12096 ;;
12097 esac
12098 ;;
12099
12100 sysv4*MP*)
12101 if test -d /usr/nec; then
12102 version_type=linux # correct to gnu/linux during the next big refactor
12103 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12104 soname_spec='$libname$shared_ext.$major'
12105 shlibpath_var=LD_LIBRARY_PATH
12106 fi
12107 ;;
12108
12109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12110 version_type=sco
12111 need_lib_prefix=no
12112 need_version=no
12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12114 soname_spec='$libname$release$shared_ext$major'
12115 shlibpath_var=LD_LIBRARY_PATH
12116 shlibpath_overrides_runpath=yes
12117 hardcode_into_libs=yes
12118 if test yes = "$with_gnu_ld"; then
12119 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12120 else
12121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12122 case $host_os in
12123 sco3.2v5*)
12124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12125 ;;
12126 esac
12127 fi
12128 sys_lib_dlsearch_path_spec='/usr/lib'
12129 ;;
12130
12131 tpf*)
12132 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12133 version_type=linux # correct to gnu/linux during the next big refactor
12134 need_lib_prefix=no
12135 need_version=no
12136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12137 shlibpath_var=LD_LIBRARY_PATH
12138 shlibpath_overrides_runpath=no
12139 hardcode_into_libs=yes
12140 ;;
12141
12142 uts4*)
12143 version_type=linux # correct to gnu/linux during the next big refactor
12144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12145 soname_spec='$libname$release$shared_ext$major'
12146 shlibpath_var=LD_LIBRARY_PATH
12147 ;;
12148
12149 *)
12150 dynamic_linker=no
12151 ;;
12152 esac
12153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12154 printf "%s\n" "$dynamic_linker" >&6; }
12155 test no = "$dynamic_linker" && can_build_shared=no
12156
12157 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12158 if test yes = "$GCC"; then
12159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12160 fi
12161
12162 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12163 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12164 fi
12165
12166 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12167 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12168 fi
12169
12170 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12171 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12172
12173 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12174 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12175
12176 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12177 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12276 printf %s "checking how to hardcode library paths into programs... " >&6; }
12277 hardcode_action=
12278 if test -n "$hardcode_libdir_flag_spec" ||
12279 test -n "$runpath_var" ||
12280 test yes = "$hardcode_automatic"; then
12281
12282 # We can hardcode non-existent directories.
12283 if test no != "$hardcode_direct" &&
12284 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12285 # have to relink, otherwise we might link with an installed library
12286 # when we should be linking with a yet-to-be-installed one
12287 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12288 test no != "$hardcode_minus_L"; then
12289 # Linking always hardcodes the temporary library directory.
12290 hardcode_action=relink
12291 else
12292 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12293 hardcode_action=immediate
12294 fi
12295 else
12296 # We cannot hardcode anything, or else we can only hardcode existing
12297 # directories.
12298 hardcode_action=unsupported
12299 fi
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12301 printf "%s\n" "$hardcode_action" >&6; }
12302
12303 if test relink = "$hardcode_action" ||
12304 test yes = "$inherit_rpath"; then
12305 # Fast installation is not supported
12306 enable_fast_install=no
12307 elif test yes = "$shlibpath_overrides_runpath" ||
12308 test no = "$enable_shared"; then
12309 # Fast installation is not necessary
12310 enable_fast_install=needless
12311 fi
12312
12313
12314
12315
12316
12317
12318 if test yes != "$enable_dlopen"; then
12319 enable_dlopen=unknown
12320 enable_dlopen_self=unknown
12321 enable_dlopen_self_static=unknown
12322 else
12323 lt_cv_dlopen=no
12324 lt_cv_dlopen_libs=
12325
12326 case $host_os in
12327 beos*)
12328 lt_cv_dlopen=load_add_on
12329 lt_cv_dlopen_libs=
12330 lt_cv_dlopen_self=yes
12331 ;;
12332
12333 mingw* | pw32* | cegcc*)
12334 lt_cv_dlopen=LoadLibrary
12335 lt_cv_dlopen_libs=
12336 ;;
12337
12338 cygwin*)
12339 lt_cv_dlopen=dlopen
12340 lt_cv_dlopen_libs=
12341 ;;
12342
12343 darwin*)
12344 # if libdl is installed we need to link against it
12345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12346 printf %s "checking for dlopen in -ldl... " >&6; }
12347 if test ${ac_cv_lib_dl_dlopen+y}
12348 then :
12349 printf %s "(cached) " >&6
12350 else $as_nop
12351 ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-ldl $LIBS"
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355
12356 /* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
12359 char dlopen ();
12360 int
12361 main (void)
12362 {
12363 return dlopen ();
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_link "$LINENO"
12369 then :
12370 ac_cv_lib_dl_dlopen=yes
12371 else $as_nop
12372 ac_cv_lib_dl_dlopen=no
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12375 conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_check_lib_save_LIBS
12377 fi
12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12379 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12380 if test "x$ac_cv_lib_dl_dlopen" = xyes
12381 then :
12382 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12383 else $as_nop
12384
12385 lt_cv_dlopen=dyld
12386 lt_cv_dlopen_libs=
12387 lt_cv_dlopen_self=yes
12388
12389 fi
12390
12391 ;;
12392
12393 tpf*)
12394 # Don't try to run any link tests for TPF. We know it's impossible
12395 # because TPF is a cross-compiler, and we know how we open DSOs.
12396 lt_cv_dlopen=dlopen
12397 lt_cv_dlopen_libs=
12398 lt_cv_dlopen_self=no
12399 ;;
12400
12401 *)
12402 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12403 if test "x$ac_cv_func_shl_load" = xyes
12404 then :
12405 lt_cv_dlopen=shl_load
12406 else $as_nop
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12408 printf %s "checking for shl_load in -ldld... " >&6; }
12409 if test ${ac_cv_lib_dld_shl_load+y}
12410 then :
12411 printf %s "(cached) " >&6
12412 else $as_nop
12413 ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-ldld $LIBS"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12421 char shl_load ();
12422 int
12423 main (void)
12424 {
12425 return shl_load ();
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 if ac_fn_c_try_link "$LINENO"
12431 then :
12432 ac_cv_lib_dld_shl_load=yes
12433 else $as_nop
12434 ac_cv_lib_dld_shl_load=no
12435 fi
12436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12437 conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12439 fi
12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12441 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12442 if test "x$ac_cv_lib_dld_shl_load" = xyes
12443 then :
12444 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12445 else $as_nop
12446 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12447 if test "x$ac_cv_func_dlopen" = xyes
12448 then :
12449 lt_cv_dlopen=dlopen
12450 else $as_nop
12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12452 printf %s "checking for dlopen in -ldl... " >&6; }
12453 if test ${ac_cv_lib_dl_dlopen+y}
12454 then :
12455 printf %s "(cached) " >&6
12456 else $as_nop
12457 ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-ldl $LIBS"
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461
12462 /* Override any GCC internal prototype to avoid an error.
12463 Use char because int might match the return type of a GCC
12464 builtin and then its argument prototype would still apply. */
12465 char dlopen ();
12466 int
12467 main (void)
12468 {
12469 return dlopen ();
12470 ;
12471 return 0;
12472 }
12473 _ACEOF
12474 if ac_fn_c_try_link "$LINENO"
12475 then :
12476 ac_cv_lib_dl_dlopen=yes
12477 else $as_nop
12478 ac_cv_lib_dl_dlopen=no
12479 fi
12480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12483 fi
12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12485 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12486 if test "x$ac_cv_lib_dl_dlopen" = xyes
12487 then :
12488 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12489 else $as_nop
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12491 printf %s "checking for dlopen in -lsvld... " >&6; }
12492 if test ${ac_cv_lib_svld_dlopen+y}
12493 then :
12494 printf %s "(cached) " >&6
12495 else $as_nop
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lsvld $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 char dlopen ();
12505 int
12506 main (void)
12507 {
12508 return dlopen ();
12509 ;
12510 return 0;
12511 }
12512 _ACEOF
12513 if ac_fn_c_try_link "$LINENO"
12514 then :
12515 ac_cv_lib_svld_dlopen=yes
12516 else $as_nop
12517 ac_cv_lib_svld_dlopen=no
12518 fi
12519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12520 conftest$ac_exeext conftest.$ac_ext
12521 LIBS=$ac_check_lib_save_LIBS
12522 fi
12523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12524 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12525 if test "x$ac_cv_lib_svld_dlopen" = xyes
12526 then :
12527 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12528 else $as_nop
12529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12530 printf %s "checking for dld_link in -ldld... " >&6; }
12531 if test ${ac_cv_lib_dld_dld_link+y}
12532 then :
12533 printf %s "(cached) " >&6
12534 else $as_nop
12535 ac_check_lib_save_LIBS=$LIBS
12536 LIBS="-ldld $LIBS"
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539
12540 /* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12543 char dld_link ();
12544 int
12545 main (void)
12546 {
12547 return dld_link ();
12548 ;
12549 return 0;
12550 }
12551 _ACEOF
12552 if ac_fn_c_try_link "$LINENO"
12553 then :
12554 ac_cv_lib_dld_dld_link=yes
12555 else $as_nop
12556 ac_cv_lib_dld_dld_link=no
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12559 conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12561 fi
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12563 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12564 if test "x$ac_cv_lib_dld_dld_link" = xyes
12565 then :
12566 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12567 fi
12568
12569
12570 fi
12571
12572
12573 fi
12574
12575
12576 fi
12577
12578
12579 fi
12580
12581
12582 fi
12583
12584 ;;
12585 esac
12586
12587 if test no = "$lt_cv_dlopen"; then
12588 enable_dlopen=no
12589 else
12590 enable_dlopen=yes
12591 fi
12592
12593 case $lt_cv_dlopen in
12594 dlopen)
12595 save_CPPFLAGS=$CPPFLAGS
12596 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12597
12598 save_LDFLAGS=$LDFLAGS
12599 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12600
12601 save_LIBS=$LIBS
12602 LIBS="$lt_cv_dlopen_libs $LIBS"
12603
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12605 printf %s "checking whether a program can dlopen itself... " >&6; }
12606 if test ${lt_cv_dlopen_self+y}
12607 then :
12608 printf %s "(cached) " >&6
12609 else $as_nop
12610 if test yes = "$cross_compiling"; then :
12611 lt_cv_dlopen_self=cross
12612 else
12613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12614 lt_status=$lt_dlunknown
12615 cat > conftest.$ac_ext <<_LT_EOF
12616 #line $LINENO "configure"
12617 #include "confdefs.h"
12618
12619 #if HAVE_DLFCN_H
12620 #include <dlfcn.h>
12621 #endif
12622
12623 #include <stdio.h>
12624
12625 #ifdef RTLD_GLOBAL
12626 # define LT_DLGLOBAL RTLD_GLOBAL
12627 #else
12628 # ifdef DL_GLOBAL
12629 # define LT_DLGLOBAL DL_GLOBAL
12630 # else
12631 # define LT_DLGLOBAL 0
12632 # endif
12633 #endif
12634
12635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12636 find out it does not work in some platform. */
12637 #ifndef LT_DLLAZY_OR_NOW
12638 # ifdef RTLD_LAZY
12639 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12640 # else
12641 # ifdef DL_LAZY
12642 # define LT_DLLAZY_OR_NOW DL_LAZY
12643 # else
12644 # ifdef RTLD_NOW
12645 # define LT_DLLAZY_OR_NOW RTLD_NOW
12646 # else
12647 # ifdef DL_NOW
12648 # define LT_DLLAZY_OR_NOW DL_NOW
12649 # else
12650 # define LT_DLLAZY_OR_NOW 0
12651 # endif
12652 # endif
12653 # endif
12654 # endif
12655 #endif
12656
12657 /* When -fvisibility=hidden is used, assume the code has been annotated
12658 correspondingly for the symbols needed. */
12659 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12660 int fnord () __attribute__((visibility("default")));
12661 #endif
12662
12663 int fnord () { return 42; }
12664 int main ()
12665 {
12666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12667 int status = $lt_dlunknown;
12668
12669 if (self)
12670 {
12671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12672 else
12673 {
12674 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12675 else puts (dlerror ());
12676 }
12677 /* dlclose (self); */
12678 }
12679 else
12680 puts (dlerror ());
12681
12682 return status;
12683 }
12684 _LT_EOF
12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12686 (eval $ac_link) 2>&5
12687 ac_status=$?
12688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12690 (./conftest; exit; ) >&5 2>/dev/null
12691 lt_status=$?
12692 case x$lt_status in
12693 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12694 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12695 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12696 esac
12697 else :
12698 # compilation failed
12699 lt_cv_dlopen_self=no
12700 fi
12701 fi
12702 rm -fr conftest*
12703
12704
12705 fi
12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12707 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12708
12709 if test yes = "$lt_cv_dlopen_self"; then
12710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12712 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12713 if test ${lt_cv_dlopen_self_static+y}
12714 then :
12715 printf %s "(cached) " >&6
12716 else $as_nop
12717 if test yes = "$cross_compiling"; then :
12718 lt_cv_dlopen_self_static=cross
12719 else
12720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12721 lt_status=$lt_dlunknown
12722 cat > conftest.$ac_ext <<_LT_EOF
12723 #line $LINENO "configure"
12724 #include "confdefs.h"
12725
12726 #if HAVE_DLFCN_H
12727 #include <dlfcn.h>
12728 #endif
12729
12730 #include <stdio.h>
12731
12732 #ifdef RTLD_GLOBAL
12733 # define LT_DLGLOBAL RTLD_GLOBAL
12734 #else
12735 # ifdef DL_GLOBAL
12736 # define LT_DLGLOBAL DL_GLOBAL
12737 # else
12738 # define LT_DLGLOBAL 0
12739 # endif
12740 #endif
12741
12742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12743 find out it does not work in some platform. */
12744 #ifndef LT_DLLAZY_OR_NOW
12745 # ifdef RTLD_LAZY
12746 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12747 # else
12748 # ifdef DL_LAZY
12749 # define LT_DLLAZY_OR_NOW DL_LAZY
12750 # else
12751 # ifdef RTLD_NOW
12752 # define LT_DLLAZY_OR_NOW RTLD_NOW
12753 # else
12754 # ifdef DL_NOW
12755 # define LT_DLLAZY_OR_NOW DL_NOW
12756 # else
12757 # define LT_DLLAZY_OR_NOW 0
12758 # endif
12759 # endif
12760 # endif
12761 # endif
12762 #endif
12763
12764 /* When -fvisibility=hidden is used, assume the code has been annotated
12765 correspondingly for the symbols needed. */
12766 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12767 int fnord () __attribute__((visibility("default")));
12768 #endif
12769
12770 int fnord () { return 42; }
12771 int main ()
12772 {
12773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12774 int status = $lt_dlunknown;
12775
12776 if (self)
12777 {
12778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12779 else
12780 {
12781 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12782 else puts (dlerror ());
12783 }
12784 /* dlclose (self); */
12785 }
12786 else
12787 puts (dlerror ());
12788
12789 return status;
12790 }
12791 _LT_EOF
12792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12793 (eval $ac_link) 2>&5
12794 ac_status=$?
12795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12796 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12797 (./conftest; exit; ) >&5 2>/dev/null
12798 lt_status=$?
12799 case x$lt_status in
12800 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12801 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12802 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12803 esac
12804 else :
12805 # compilation failed
12806 lt_cv_dlopen_self_static=no
12807 fi
12808 fi
12809 rm -fr conftest*
12810
12811
12812 fi
12813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12814 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12815 fi
12816
12817 CPPFLAGS=$save_CPPFLAGS
12818 LDFLAGS=$save_LDFLAGS
12819 LIBS=$save_LIBS
12820 ;;
12821 esac
12822
12823 case $lt_cv_dlopen_self in
12824 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12825 *) enable_dlopen_self=unknown ;;
12826 esac
12827
12828 case $lt_cv_dlopen_self_static in
12829 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12830 *) enable_dlopen_self_static=unknown ;;
12831 esac
12832 fi
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850 striplib=
12851 old_striplib=
12852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12853 printf %s "checking whether stripping libraries is possible... " >&6; }
12854 if test -z "$STRIP"; then
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 printf "%s\n" "no" >&6; }
12857 else
12858 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12859 old_striplib="$STRIP --strip-debug"
12860 striplib="$STRIP --strip-unneeded"
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12862 printf "%s\n" "yes" >&6; }
12863 else
12864 case $host_os in
12865 darwin*)
12866 # FIXME - insert some real tests, host_os isn't really good enough
12867 striplib="$STRIP -x"
12868 old_striplib="$STRIP -S"
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12870 printf "%s\n" "yes" >&6; }
12871 ;;
12872 freebsd*)
12873 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12874 old_striplib="$STRIP --strip-debug"
12875 striplib="$STRIP --strip-unneeded"
12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877 printf "%s\n" "yes" >&6; }
12878 else
12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 printf "%s\n" "no" >&6; }
12881 fi
12882 ;;
12883 *)
12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 printf "%s\n" "no" >&6; }
12886 ;;
12887 esac
12888 fi
12889 fi
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902 # Report what library types will actually be built
12903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12904 printf %s "checking if libtool supports shared libraries... " >&6; }
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12906 printf "%s\n" "$can_build_shared" >&6; }
12907
12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12909 printf %s "checking whether to build shared libraries... " >&6; }
12910 test no = "$can_build_shared" && enable_shared=no
12911
12912 # On AIX, shared libraries and static libraries use the same namespace, and
12913 # are all built from PIC.
12914 case $host_os in
12915 aix3*)
12916 test yes = "$enable_shared" && enable_static=no
12917 if test -n "$RANLIB"; then
12918 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12919 postinstall_cmds='$RANLIB $lib'
12920 fi
12921 ;;
12922
12923 aix[4-9]*)
12924 if test ia64 != "$host_cpu"; then
12925 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12926 yes,aix,yes) ;; # shared object as lib.so file only
12927 yes,svr4,*) ;; # shared object as lib.so archive member only
12928 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12929 esac
12930 fi
12931 ;;
12932 esac
12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12934 printf "%s\n" "$enable_shared" >&6; }
12935
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12937 printf %s "checking whether to build static libraries... " >&6; }
12938 # Make sure either enable_shared or enable_static is yes.
12939 test yes = "$enable_shared" || enable_static=yes
12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12941 printf "%s\n" "$enable_static" >&6; }
12942
12943
12944
12945
12946 fi
12947 ac_ext=c
12948 ac_cpp='$CPP $CPPFLAGS'
12949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12952
12953 CC=$lt_save_CC
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969 ac_config_commands="$ac_config_commands libtool"
12970
12971
12972
12973
12974 # Only expand once:
12975
12976
12977
12978 # Require X.Org macros 1.8 or later
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12992 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12993 if test ${ac_cv_c_undeclared_builtin_options+y}
12994 then :
12995 printf %s "(cached) " >&6
12996 else $as_nop
12997 ac_save_CFLAGS=$CFLAGS
12998 ac_cv_c_undeclared_builtin_options='cannot detect'
12999 for ac_arg in '' -fno-builtin; do
13000 CFLAGS="$ac_save_CFLAGS $ac_arg"
13001 # This test program should *not* compile successfully.
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004
13005 int
13006 main (void)
13007 {
13008 (void) strchr;
13009 ;
13010 return 0;
13011 }
13012 _ACEOF
13013 if ac_fn_c_try_compile "$LINENO"
13014 then :
13015
13016 else $as_nop
13017 # This test program should compile successfully.
13018 # No library function is consistently available on
13019 # freestanding implementations, so test against a dummy
13020 # declaration. Include always-available headers on the
13021 # off chance that they somehow elicit warnings.
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13024 #include <float.h>
13025 #include <limits.h>
13026 #include <stdarg.h>
13027 #include <stddef.h>
13028 extern void ac_decl (int, char *);
13029
13030 int
13031 main (void)
13032 {
13033 (void) ac_decl (0, (char *) 0);
13034 (void) ac_decl;
13035
13036 ;
13037 return 0;
13038 }
13039 _ACEOF
13040 if ac_fn_c_try_compile "$LINENO"
13041 then :
13042 if test x"$ac_arg" = x
13043 then :
13044 ac_cv_c_undeclared_builtin_options='none needed'
13045 else $as_nop
13046 ac_cv_c_undeclared_builtin_options=$ac_arg
13047 fi
13048 break
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13051 fi
13052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13053 done
13054 CFLAGS=$ac_save_CFLAGS
13055
13056 fi
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13058 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13059 case $ac_cv_c_undeclared_builtin_options in #(
13060 'cannot detect') :
13061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13062 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13063 as_fn_error $? "cannot make $CC report undeclared builtins
13064 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13065 'none needed') :
13066 ac_c_undeclared_builtin_options='' ;; #(
13067 *) :
13068 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13069 esac
13070
13071
13072
13073
13074
13075 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13076 if test "x$ac_cv_have_decl___clang__" = xyes
13077 then :
13078 CLANGCC="yes"
13079 else $as_nop
13080 CLANGCC="no"
13081 fi
13082 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13083 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13084 then :
13085 INTELCC="yes"
13086 else $as_nop
13087 INTELCC="no"
13088 fi
13089 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13090 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13091 then :
13092 SUNCC="yes"
13093 else $as_nop
13094 SUNCC="no"
13095 fi
13096
13097
13098
13099
13100
13101
13102
13103
13104 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13105 if test -n "$ac_tool_prefix"; then
13106 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13107 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13109 printf %s "checking for $ac_word... " >&6; }
13110 if test ${ac_cv_path_PKG_CONFIG+y}
13111 then :
13112 printf %s "(cached) " >&6
13113 else $as_nop
13114 case $PKG_CONFIG in
13115 [\\/]* | ?:[\\/]*)
13116 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13117 ;;
13118 *)
13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in $PATH
13121 do
13122 IFS=$as_save_IFS
13123 case $as_dir in #(((
13124 '') as_dir=./ ;;
13125 */) ;;
13126 *) as_dir=$as_dir/ ;;
13127 esac
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13130 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13132 break 2
13133 fi
13134 done
13135 done
13136 IFS=$as_save_IFS
13137
13138 ;;
13139 esac
13140 fi
13141 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13142 if test -n "$PKG_CONFIG"; then
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13144 printf "%s\n" "$PKG_CONFIG" >&6; }
13145 else
13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 printf "%s\n" "no" >&6; }
13148 fi
13149
13150
13151 fi
13152 if test -z "$ac_cv_path_PKG_CONFIG"; then
13153 ac_pt_PKG_CONFIG=$PKG_CONFIG
13154 # Extract the first word of "pkg-config", so it can be a program name with args.
13155 set dummy pkg-config; ac_word=$2
13156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157 printf %s "checking for $ac_word... " >&6; }
13158 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13159 then :
13160 printf %s "(cached) " >&6
13161 else $as_nop
13162 case $ac_pt_PKG_CONFIG in
13163 [\\/]* | ?:[\\/]*)
13164 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13165 ;;
13166 *)
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13169 do
13170 IFS=$as_save_IFS
13171 case $as_dir in #(((
13172 '') as_dir=./ ;;
13173 */) ;;
13174 *) as_dir=$as_dir/ ;;
13175 esac
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13178 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13180 break 2
13181 fi
13182 done
13183 done
13184 IFS=$as_save_IFS
13185
13186 ;;
13187 esac
13188 fi
13189 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13190 if test -n "$ac_pt_PKG_CONFIG"; then
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13192 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13193 else
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 printf "%s\n" "no" >&6; }
13196 fi
13197
13198 if test "x$ac_pt_PKG_CONFIG" = x; then
13199 PKG_CONFIG=""
13200 else
13201 case $cross_compiling:$ac_tool_warned in
13202 yes:)
13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13204 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13205 ac_tool_warned=yes ;;
13206 esac
13207 PKG_CONFIG=$ac_pt_PKG_CONFIG
13208 fi
13209 else
13210 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13211 fi
13212
13213 fi
13214 if test -n "$PKG_CONFIG"; then
13215 _pkg_min_version=0.9.0
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13217 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13218 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13220 printf "%s\n" "yes" >&6; }
13221 else
13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 printf "%s\n" "no" >&6; }
13224 PKG_CONFIG=""
13225 fi
13226 fi
13227
13228
13229
13230
13231
13232 # Check whether --enable-selective-werror was given.
13233 if test ${enable_selective_werror+y}
13234 then :
13235 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13236 else $as_nop
13237 SELECTIVE_WERROR=yes
13238 fi
13239
13240
13241
13242
13243
13244 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13245 if test "x$SUNCC" = "xyes"; then
13246 BASE_CFLAGS="-v"
13247 else
13248 BASE_CFLAGS=""
13249 fi
13250
13251 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265 xorg_testset_save_CFLAGS="$CFLAGS"
13266
13267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13271 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13272 then :
13273 printf %s "(cached) " >&6
13274 else $as_nop
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13277 int i;
13278 _ACEOF
13279 if ac_fn_c_try_compile "$LINENO"
13280 then :
13281 xorg_cv_cc_flag_unknown_warning_option=yes
13282 else $as_nop
13283 xorg_cv_cc_flag_unknown_warning_option=no
13284 fi
13285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13286 fi
13287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13290 CFLAGS="$xorg_testset_save_CFLAGS"
13291 fi
13292
13293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13296 fi
13297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13300 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13301 then :
13302 printf %s "(cached) " >&6
13303 else $as_nop
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 int i;
13307 _ACEOF
13308 if ac_fn_c_try_compile "$LINENO"
13309 then :
13310 xorg_cv_cc_flag_unused_command_line_argument=yes
13311 else $as_nop
13312 xorg_cv_cc_flag_unused_command_line_argument=no
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13315 fi
13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13319 CFLAGS="$xorg_testset_save_CFLAGS"
13320 fi
13321
13322 found="no"
13323
13324 if test $found = "no" ; then
13325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13327 fi
13328
13329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13331 fi
13332
13333 CFLAGS="$CFLAGS -Wall"
13334
13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13336 printf %s "checking if $CC supports -Wall... " >&6; }
13337 cacheid=xorg_cv_cc_flag__Wall
13338 if eval test \${$cacheid+y}
13339 then :
13340 printf %s "(cached) " >&6
13341 else $as_nop
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13344 int i;
13345 int
13346 main (void)
13347 {
13348
13349 ;
13350 return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_link "$LINENO"
13354 then :
13355 eval $cacheid=yes
13356 else $as_nop
13357 eval $cacheid=no
13358 fi
13359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13360 conftest$ac_exeext conftest.$ac_ext
13361 fi
13362
13363
13364 CFLAGS="$xorg_testset_save_CFLAGS"
13365
13366 eval supported=\$$cacheid
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13368 printf "%s\n" "$supported" >&6; }
13369 if test "$supported" = "yes" ; then
13370 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13371 found="yes"
13372 fi
13373 fi
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389 xorg_testset_save_CFLAGS="$CFLAGS"
13390
13391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13394 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13395 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13396 then :
13397 printf %s "(cached) " >&6
13398 else $as_nop
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13401 int i;
13402 _ACEOF
13403 if ac_fn_c_try_compile "$LINENO"
13404 then :
13405 xorg_cv_cc_flag_unknown_warning_option=yes
13406 else $as_nop
13407 xorg_cv_cc_flag_unknown_warning_option=no
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13410 fi
13411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13412 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13414 CFLAGS="$xorg_testset_save_CFLAGS"
13415 fi
13416
13417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13420 fi
13421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13423 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13424 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13425 then :
13426 printf %s "(cached) " >&6
13427 else $as_nop
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 int i;
13431 _ACEOF
13432 if ac_fn_c_try_compile "$LINENO"
13433 then :
13434 xorg_cv_cc_flag_unused_command_line_argument=yes
13435 else $as_nop
13436 xorg_cv_cc_flag_unused_command_line_argument=no
13437 fi
13438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13439 fi
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13441 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13443 CFLAGS="$xorg_testset_save_CFLAGS"
13444 fi
13445
13446 found="no"
13447
13448 if test $found = "no" ; then
13449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13451 fi
13452
13453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13455 fi
13456
13457 CFLAGS="$CFLAGS -Wpointer-arith"
13458
13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13460 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13461 cacheid=xorg_cv_cc_flag__Wpointer_arith
13462 if eval test \${$cacheid+y}
13463 then :
13464 printf %s "(cached) " >&6
13465 else $as_nop
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468 int i;
13469 int
13470 main (void)
13471 {
13472
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 if ac_fn_c_try_link "$LINENO"
13478 then :
13479 eval $cacheid=yes
13480 else $as_nop
13481 eval $cacheid=no
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13484 conftest$ac_exeext conftest.$ac_ext
13485 fi
13486
13487
13488 CFLAGS="$xorg_testset_save_CFLAGS"
13489
13490 eval supported=\$$cacheid
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13492 printf "%s\n" "$supported" >&6; }
13493 if test "$supported" = "yes" ; then
13494 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13495 found="yes"
13496 fi
13497 fi
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513 xorg_testset_save_CFLAGS="$CFLAGS"
13514
13515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13518 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13519 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13520 then :
13521 printf %s "(cached) " >&6
13522 else $as_nop
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525 int i;
13526 _ACEOF
13527 if ac_fn_c_try_compile "$LINENO"
13528 then :
13529 xorg_cv_cc_flag_unknown_warning_option=yes
13530 else $as_nop
13531 xorg_cv_cc_flag_unknown_warning_option=no
13532 fi
13533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13534 fi
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13538 CFLAGS="$xorg_testset_save_CFLAGS"
13539 fi
13540
13541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13544 fi
13545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13549 then :
13550 printf %s "(cached) " >&6
13551 else $as_nop
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 int i;
13555 _ACEOF
13556 if ac_fn_c_try_compile "$LINENO"
13557 then :
13558 xorg_cv_cc_flag_unused_command_line_argument=yes
13559 else $as_nop
13560 xorg_cv_cc_flag_unused_command_line_argument=no
13561 fi
13562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13563 fi
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13565 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13567 CFLAGS="$xorg_testset_save_CFLAGS"
13568 fi
13569
13570 found="no"
13571
13572 if test $found = "no" ; then
13573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575 fi
13576
13577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13579 fi
13580
13581 CFLAGS="$CFLAGS -Wmissing-declarations"
13582
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13584 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13585 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13586 if eval test \${$cacheid+y}
13587 then :
13588 printf %s "(cached) " >&6
13589 else $as_nop
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592 int i;
13593 int
13594 main (void)
13595 {
13596
13597 ;
13598 return 0;
13599 }
13600 _ACEOF
13601 if ac_fn_c_try_link "$LINENO"
13602 then :
13603 eval $cacheid=yes
13604 else $as_nop
13605 eval $cacheid=no
13606 fi
13607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13608 conftest$ac_exeext conftest.$ac_ext
13609 fi
13610
13611
13612 CFLAGS="$xorg_testset_save_CFLAGS"
13613
13614 eval supported=\$$cacheid
13615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13616 printf "%s\n" "$supported" >&6; }
13617 if test "$supported" = "yes" ; then
13618 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13619 found="yes"
13620 fi
13621 fi
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637 xorg_testset_save_CFLAGS="$CFLAGS"
13638
13639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13642 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13643 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13644 then :
13645 printf %s "(cached) " >&6
13646 else $as_nop
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"
13652 then :
13653 xorg_cv_cc_flag_unknown_warning_option=yes
13654 else $as_nop
13655 xorg_cv_cc_flag_unknown_warning_option=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13658 fi
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13660 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13662 CFLAGS="$xorg_testset_save_CFLAGS"
13663 fi
13664
13665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13668 fi
13669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13671 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13672 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13673 then :
13674 printf %s "(cached) " >&6
13675 else $as_nop
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678 int i;
13679 _ACEOF
13680 if ac_fn_c_try_compile "$LINENO"
13681 then :
13682 xorg_cv_cc_flag_unused_command_line_argument=yes
13683 else $as_nop
13684 xorg_cv_cc_flag_unused_command_line_argument=no
13685 fi
13686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13687 fi
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13689 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13691 CFLAGS="$xorg_testset_save_CFLAGS"
13692 fi
13693
13694 found="no"
13695
13696 if test $found = "no" ; then
13697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13699 fi
13700
13701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13703 fi
13704
13705 CFLAGS="$CFLAGS -Wformat=2"
13706
13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13708 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13709 cacheid=xorg_cv_cc_flag__Wformat_2
13710 if eval test \${$cacheid+y}
13711 then :
13712 printf %s "(cached) " >&6
13713 else $as_nop
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13716 int i;
13717 int
13718 main (void)
13719 {
13720
13721 ;
13722 return 0;
13723 }
13724 _ACEOF
13725 if ac_fn_c_try_link "$LINENO"
13726 then :
13727 eval $cacheid=yes
13728 else $as_nop
13729 eval $cacheid=no
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13732 conftest$ac_exeext conftest.$ac_ext
13733 fi
13734
13735
13736 CFLAGS="$xorg_testset_save_CFLAGS"
13737
13738 eval supported=\$$cacheid
13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13740 printf "%s\n" "$supported" >&6; }
13741 if test "$supported" = "yes" ; then
13742 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13743 found="yes"
13744 fi
13745 fi
13746
13747 if test $found = "no" ; then
13748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13750 fi
13751
13752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13754 fi
13755
13756 CFLAGS="$CFLAGS -Wformat"
13757
13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13759 printf %s "checking if $CC supports -Wformat... " >&6; }
13760 cacheid=xorg_cv_cc_flag__Wformat
13761 if eval test \${$cacheid+y}
13762 then :
13763 printf %s "(cached) " >&6
13764 else $as_nop
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767 int i;
13768 int
13769 main (void)
13770 {
13771
13772 ;
13773 return 0;
13774 }
13775 _ACEOF
13776 if ac_fn_c_try_link "$LINENO"
13777 then :
13778 eval $cacheid=yes
13779 else $as_nop
13780 eval $cacheid=no
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13783 conftest$ac_exeext conftest.$ac_ext
13784 fi
13785
13786
13787 CFLAGS="$xorg_testset_save_CFLAGS"
13788
13789 eval supported=\$$cacheid
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13791 printf "%s\n" "$supported" >&6; }
13792 if test "$supported" = "yes" ; then
13793 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13794 found="yes"
13795 fi
13796 fi
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814 xorg_testset_save_CFLAGS="$CFLAGS"
13815
13816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13819 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13820 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13821 then :
13822 printf %s "(cached) " >&6
13823 else $as_nop
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 int i;
13827 _ACEOF
13828 if ac_fn_c_try_compile "$LINENO"
13829 then :
13830 xorg_cv_cc_flag_unknown_warning_option=yes
13831 else $as_nop
13832 xorg_cv_cc_flag_unknown_warning_option=no
13833 fi
13834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13835 fi
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13839 CFLAGS="$xorg_testset_save_CFLAGS"
13840 fi
13841
13842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13845 fi
13846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13850 then :
13851 printf %s "(cached) " >&6
13852 else $as_nop
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855 int i;
13856 _ACEOF
13857 if ac_fn_c_try_compile "$LINENO"
13858 then :
13859 xorg_cv_cc_flag_unused_command_line_argument=yes
13860 else $as_nop
13861 xorg_cv_cc_flag_unused_command_line_argument=no
13862 fi
13863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13864 fi
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13866 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13868 CFLAGS="$xorg_testset_save_CFLAGS"
13869 fi
13870
13871 found="no"
13872
13873 if test $found = "no" ; then
13874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13876 fi
13877
13878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13880 fi
13881
13882 CFLAGS="$CFLAGS -Wstrict-prototypes"
13883
13884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13885 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13886 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13887 if eval test \${$cacheid+y}
13888 then :
13889 printf %s "(cached) " >&6
13890 else $as_nop
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13893 int i;
13894 int
13895 main (void)
13896 {
13897
13898 ;
13899 return 0;
13900 }
13901 _ACEOF
13902 if ac_fn_c_try_link "$LINENO"
13903 then :
13904 eval $cacheid=yes
13905 else $as_nop
13906 eval $cacheid=no
13907 fi
13908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13909 conftest$ac_exeext conftest.$ac_ext
13910 fi
13911
13912
13913 CFLAGS="$xorg_testset_save_CFLAGS"
13914
13915 eval supported=\$$cacheid
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13917 printf "%s\n" "$supported" >&6; }
13918 if test "$supported" = "yes" ; then
13919 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13920 found="yes"
13921 fi
13922 fi
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938 xorg_testset_save_CFLAGS="$CFLAGS"
13939
13940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13943 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13944 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13945 then :
13946 printf %s "(cached) " >&6
13947 else $as_nop
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13950 int i;
13951 _ACEOF
13952 if ac_fn_c_try_compile "$LINENO"
13953 then :
13954 xorg_cv_cc_flag_unknown_warning_option=yes
13955 else $as_nop
13956 xorg_cv_cc_flag_unknown_warning_option=no
13957 fi
13958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13959 fi
13960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13963 CFLAGS="$xorg_testset_save_CFLAGS"
13964 fi
13965
13966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13969 fi
13970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13974 then :
13975 printf %s "(cached) " >&6
13976 else $as_nop
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13979 int i;
13980 _ACEOF
13981 if ac_fn_c_try_compile "$LINENO"
13982 then :
13983 xorg_cv_cc_flag_unused_command_line_argument=yes
13984 else $as_nop
13985 xorg_cv_cc_flag_unused_command_line_argument=no
13986 fi
13987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13988 fi
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13990 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13992 CFLAGS="$xorg_testset_save_CFLAGS"
13993 fi
13994
13995 found="no"
13996
13997 if test $found = "no" ; then
13998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14000 fi
14001
14002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14004 fi
14005
14006 CFLAGS="$CFLAGS -Wmissing-prototypes"
14007
14008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14009 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14010 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14011 if eval test \${$cacheid+y}
14012 then :
14013 printf %s "(cached) " >&6
14014 else $as_nop
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14017 int i;
14018 int
14019 main (void)
14020 {
14021
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_link "$LINENO"
14027 then :
14028 eval $cacheid=yes
14029 else $as_nop
14030 eval $cacheid=no
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14033 conftest$ac_exeext conftest.$ac_ext
14034 fi
14035
14036
14037 CFLAGS="$xorg_testset_save_CFLAGS"
14038
14039 eval supported=\$$cacheid
14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14041 printf "%s\n" "$supported" >&6; }
14042 if test "$supported" = "yes" ; then
14043 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14044 found="yes"
14045 fi
14046 fi
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062 xorg_testset_save_CFLAGS="$CFLAGS"
14063
14064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14067 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14068 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14069 then :
14070 printf %s "(cached) " >&6
14071 else $as_nop
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14074 int i;
14075 _ACEOF
14076 if ac_fn_c_try_compile "$LINENO"
14077 then :
14078 xorg_cv_cc_flag_unknown_warning_option=yes
14079 else $as_nop
14080 xorg_cv_cc_flag_unknown_warning_option=no
14081 fi
14082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14083 fi
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14085 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14087 CFLAGS="$xorg_testset_save_CFLAGS"
14088 fi
14089
14090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14093 fi
14094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14096 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14097 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14098 then :
14099 printf %s "(cached) " >&6
14100 else $as_nop
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103 int i;
14104 _ACEOF
14105 if ac_fn_c_try_compile "$LINENO"
14106 then :
14107 xorg_cv_cc_flag_unused_command_line_argument=yes
14108 else $as_nop
14109 xorg_cv_cc_flag_unused_command_line_argument=no
14110 fi
14111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14112 fi
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14114 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14116 CFLAGS="$xorg_testset_save_CFLAGS"
14117 fi
14118
14119 found="no"
14120
14121 if test $found = "no" ; then
14122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14124 fi
14125
14126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14128 fi
14129
14130 CFLAGS="$CFLAGS -Wnested-externs"
14131
14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14133 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14134 cacheid=xorg_cv_cc_flag__Wnested_externs
14135 if eval test \${$cacheid+y}
14136 then :
14137 printf %s "(cached) " >&6
14138 else $as_nop
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141 int i;
14142 int
14143 main (void)
14144 {
14145
14146 ;
14147 return 0;
14148 }
14149 _ACEOF
14150 if ac_fn_c_try_link "$LINENO"
14151 then :
14152 eval $cacheid=yes
14153 else $as_nop
14154 eval $cacheid=no
14155 fi
14156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14157 conftest$ac_exeext conftest.$ac_ext
14158 fi
14159
14160
14161 CFLAGS="$xorg_testset_save_CFLAGS"
14162
14163 eval supported=\$$cacheid
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14165 printf "%s\n" "$supported" >&6; }
14166 if test "$supported" = "yes" ; then
14167 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14168 found="yes"
14169 fi
14170 fi
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186 xorg_testset_save_CFLAGS="$CFLAGS"
14187
14188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14191 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14192 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14193 then :
14194 printf %s "(cached) " >&6
14195 else $as_nop
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198 int i;
14199 _ACEOF
14200 if ac_fn_c_try_compile "$LINENO"
14201 then :
14202 xorg_cv_cc_flag_unknown_warning_option=yes
14203 else $as_nop
14204 xorg_cv_cc_flag_unknown_warning_option=no
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14207 fi
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14209 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14211 CFLAGS="$xorg_testset_save_CFLAGS"
14212 fi
14213
14214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14217 fi
14218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14220 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14221 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14222 then :
14223 printf %s "(cached) " >&6
14224 else $as_nop
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 int i;
14228 _ACEOF
14229 if ac_fn_c_try_compile "$LINENO"
14230 then :
14231 xorg_cv_cc_flag_unused_command_line_argument=yes
14232 else $as_nop
14233 xorg_cv_cc_flag_unused_command_line_argument=no
14234 fi
14235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14236 fi
14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14238 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14240 CFLAGS="$xorg_testset_save_CFLAGS"
14241 fi
14242
14243 found="no"
14244
14245 if test $found = "no" ; then
14246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14248 fi
14249
14250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14252 fi
14253
14254 CFLAGS="$CFLAGS -Wbad-function-cast"
14255
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14257 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14258 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14259 if eval test \${$cacheid+y}
14260 then :
14261 printf %s "(cached) " >&6
14262 else $as_nop
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14265 int i;
14266 int
14267 main (void)
14268 {
14269
14270 ;
14271 return 0;
14272 }
14273 _ACEOF
14274 if ac_fn_c_try_link "$LINENO"
14275 then :
14276 eval $cacheid=yes
14277 else $as_nop
14278 eval $cacheid=no
14279 fi
14280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14281 conftest$ac_exeext conftest.$ac_ext
14282 fi
14283
14284
14285 CFLAGS="$xorg_testset_save_CFLAGS"
14286
14287 eval supported=\$$cacheid
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14289 printf "%s\n" "$supported" >&6; }
14290 if test "$supported" = "yes" ; then
14291 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14292 found="yes"
14293 fi
14294 fi
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310 xorg_testset_save_CFLAGS="$CFLAGS"
14311
14312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14315 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14316 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14317 then :
14318 printf %s "(cached) " >&6
14319 else $as_nop
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14322 int i;
14323 _ACEOF
14324 if ac_fn_c_try_compile "$LINENO"
14325 then :
14326 xorg_cv_cc_flag_unknown_warning_option=yes
14327 else $as_nop
14328 xorg_cv_cc_flag_unknown_warning_option=no
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14331 fi
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14333 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14335 CFLAGS="$xorg_testset_save_CFLAGS"
14336 fi
14337
14338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14341 fi
14342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14344 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14345 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14346 then :
14347 printf %s "(cached) " >&6
14348 else $as_nop
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351 int i;
14352 _ACEOF
14353 if ac_fn_c_try_compile "$LINENO"
14354 then :
14355 xorg_cv_cc_flag_unused_command_line_argument=yes
14356 else $as_nop
14357 xorg_cv_cc_flag_unused_command_line_argument=no
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14360 fi
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14362 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14364 CFLAGS="$xorg_testset_save_CFLAGS"
14365 fi
14366
14367 found="no"
14368
14369 if test $found = "no" ; then
14370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14372 fi
14373
14374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14376 fi
14377
14378 CFLAGS="$CFLAGS -Wold-style-definition"
14379
14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14381 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14382 cacheid=xorg_cv_cc_flag__Wold_style_definition
14383 if eval test \${$cacheid+y}
14384 then :
14385 printf %s "(cached) " >&6
14386 else $as_nop
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389 int i;
14390 int
14391 main (void)
14392 {
14393
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"
14399 then :
14400 eval $cacheid=yes
14401 else $as_nop
14402 eval $cacheid=no
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14405 conftest$ac_exeext conftest.$ac_ext
14406 fi
14407
14408
14409 CFLAGS="$xorg_testset_save_CFLAGS"
14410
14411 eval supported=\$$cacheid
14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14413 printf "%s\n" "$supported" >&6; }
14414 if test "$supported" = "yes" ; then
14415 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14416 found="yes"
14417 fi
14418 fi
14419
14420 if test $found = "no" ; then
14421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14423 fi
14424
14425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14427 fi
14428
14429 CFLAGS="$CFLAGS -fd"
14430
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14432 printf %s "checking if $CC supports -fd... " >&6; }
14433 cacheid=xorg_cv_cc_flag__fd
14434 if eval test \${$cacheid+y}
14435 then :
14436 printf %s "(cached) " >&6
14437 else $as_nop
14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14440 int i;
14441 int
14442 main (void)
14443 {
14444
14445 ;
14446 return 0;
14447 }
14448 _ACEOF
14449 if ac_fn_c_try_link "$LINENO"
14450 then :
14451 eval $cacheid=yes
14452 else $as_nop
14453 eval $cacheid=no
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14456 conftest$ac_exeext conftest.$ac_ext
14457 fi
14458
14459
14460 CFLAGS="$xorg_testset_save_CFLAGS"
14461
14462 eval supported=\$$cacheid
14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14464 printf "%s\n" "$supported" >&6; }
14465 if test "$supported" = "yes" ; then
14466 BASE_CFLAGS="$BASE_CFLAGS -fd"
14467 found="yes"
14468 fi
14469 fi
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485 xorg_testset_save_CFLAGS="$CFLAGS"
14486
14487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14490 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14491 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14492 then :
14493 printf %s "(cached) " >&6
14494 else $as_nop
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 int i;
14498 _ACEOF
14499 if ac_fn_c_try_compile "$LINENO"
14500 then :
14501 xorg_cv_cc_flag_unknown_warning_option=yes
14502 else $as_nop
14503 xorg_cv_cc_flag_unknown_warning_option=no
14504 fi
14505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14506 fi
14507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14508 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14510 CFLAGS="$xorg_testset_save_CFLAGS"
14511 fi
14512
14513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14516 fi
14517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14519 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14520 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14521 then :
14522 printf %s "(cached) " >&6
14523 else $as_nop
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 int i;
14527 _ACEOF
14528 if ac_fn_c_try_compile "$LINENO"
14529 then :
14530 xorg_cv_cc_flag_unused_command_line_argument=yes
14531 else $as_nop
14532 xorg_cv_cc_flag_unused_command_line_argument=no
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14535 fi
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14537 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14539 CFLAGS="$xorg_testset_save_CFLAGS"
14540 fi
14541
14542 found="no"
14543
14544 if test $found = "no" ; then
14545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14547 fi
14548
14549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14551 fi
14552
14553 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14554
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14556 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14557 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14558 if eval test \${$cacheid+y}
14559 then :
14560 printf %s "(cached) " >&6
14561 else $as_nop
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14564 int i;
14565 int
14566 main (void)
14567 {
14568
14569 ;
14570 return 0;
14571 }
14572 _ACEOF
14573 if ac_fn_c_try_link "$LINENO"
14574 then :
14575 eval $cacheid=yes
14576 else $as_nop
14577 eval $cacheid=no
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14580 conftest$ac_exeext conftest.$ac_ext
14581 fi
14582
14583
14584 CFLAGS="$xorg_testset_save_CFLAGS"
14585
14586 eval supported=\$$cacheid
14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14588 printf "%s\n" "$supported" >&6; }
14589 if test "$supported" = "yes" ; then
14590 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14591 found="yes"
14592 fi
14593 fi
14594
14595
14596
14597
14598
14599 # This chunk adds additional warnings that could catch undesired effects.
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613 xorg_testset_save_CFLAGS="$CFLAGS"
14614
14615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14618 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14619 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14620 then :
14621 printf %s "(cached) " >&6
14622 else $as_nop
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14625 int i;
14626 _ACEOF
14627 if ac_fn_c_try_compile "$LINENO"
14628 then :
14629 xorg_cv_cc_flag_unknown_warning_option=yes
14630 else $as_nop
14631 xorg_cv_cc_flag_unknown_warning_option=no
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14634 fi
14635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14638 CFLAGS="$xorg_testset_save_CFLAGS"
14639 fi
14640
14641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14644 fi
14645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14649 then :
14650 printf %s "(cached) " >&6
14651 else $as_nop
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"
14657 then :
14658 xorg_cv_cc_flag_unused_command_line_argument=yes
14659 else $as_nop
14660 xorg_cv_cc_flag_unused_command_line_argument=no
14661 fi
14662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14663 fi
14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14665 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14667 CFLAGS="$xorg_testset_save_CFLAGS"
14668 fi
14669
14670 found="no"
14671
14672 if test $found = "no" ; then
14673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14675 fi
14676
14677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14679 fi
14680
14681 CFLAGS="$CFLAGS -Wunused"
14682
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14684 printf %s "checking if $CC supports -Wunused... " >&6; }
14685 cacheid=xorg_cv_cc_flag__Wunused
14686 if eval test \${$cacheid+y}
14687 then :
14688 printf %s "(cached) " >&6
14689 else $as_nop
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14692 int i;
14693 int
14694 main (void)
14695 {
14696
14697 ;
14698 return 0;
14699 }
14700 _ACEOF
14701 if ac_fn_c_try_link "$LINENO"
14702 then :
14703 eval $cacheid=yes
14704 else $as_nop
14705 eval $cacheid=no
14706 fi
14707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14708 conftest$ac_exeext conftest.$ac_ext
14709 fi
14710
14711
14712 CFLAGS="$xorg_testset_save_CFLAGS"
14713
14714 eval supported=\$$cacheid
14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14716 printf "%s\n" "$supported" >&6; }
14717 if test "$supported" = "yes" ; then
14718 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14719 found="yes"
14720 fi
14721 fi
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737 xorg_testset_save_CFLAGS="$CFLAGS"
14738
14739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14743 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14744 then :
14745 printf %s "(cached) " >&6
14746 else $as_nop
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14749 int i;
14750 _ACEOF
14751 if ac_fn_c_try_compile "$LINENO"
14752 then :
14753 xorg_cv_cc_flag_unknown_warning_option=yes
14754 else $as_nop
14755 xorg_cv_cc_flag_unknown_warning_option=no
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14758 fi
14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14760 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14762 CFLAGS="$xorg_testset_save_CFLAGS"
14763 fi
14764
14765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14768 fi
14769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14771 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14772 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14773 then :
14774 printf %s "(cached) " >&6
14775 else $as_nop
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14778 int i;
14779 _ACEOF
14780 if ac_fn_c_try_compile "$LINENO"
14781 then :
14782 xorg_cv_cc_flag_unused_command_line_argument=yes
14783 else $as_nop
14784 xorg_cv_cc_flag_unused_command_line_argument=no
14785 fi
14786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14787 fi
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14789 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14791 CFLAGS="$xorg_testset_save_CFLAGS"
14792 fi
14793
14794 found="no"
14795
14796 if test $found = "no" ; then
14797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14799 fi
14800
14801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14803 fi
14804
14805 CFLAGS="$CFLAGS -Wuninitialized"
14806
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14808 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14809 cacheid=xorg_cv_cc_flag__Wuninitialized
14810 if eval test \${$cacheid+y}
14811 then :
14812 printf %s "(cached) " >&6
14813 else $as_nop
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816 int i;
14817 int
14818 main (void)
14819 {
14820
14821 ;
14822 return 0;
14823 }
14824 _ACEOF
14825 if ac_fn_c_try_link "$LINENO"
14826 then :
14827 eval $cacheid=yes
14828 else $as_nop
14829 eval $cacheid=no
14830 fi
14831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14832 conftest$ac_exeext conftest.$ac_ext
14833 fi
14834
14835
14836 CFLAGS="$xorg_testset_save_CFLAGS"
14837
14838 eval supported=\$$cacheid
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14840 printf "%s\n" "$supported" >&6; }
14841 if test "$supported" = "yes" ; then
14842 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14843 found="yes"
14844 fi
14845 fi
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861 xorg_testset_save_CFLAGS="$CFLAGS"
14862
14863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14867 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14868 then :
14869 printf %s "(cached) " >&6
14870 else $as_nop
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873 int i;
14874 _ACEOF
14875 if ac_fn_c_try_compile "$LINENO"
14876 then :
14877 xorg_cv_cc_flag_unknown_warning_option=yes
14878 else $as_nop
14879 xorg_cv_cc_flag_unknown_warning_option=no
14880 fi
14881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14882 fi
14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14886 CFLAGS="$xorg_testset_save_CFLAGS"
14887 fi
14888
14889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14892 fi
14893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14897 then :
14898 printf %s "(cached) " >&6
14899 else $as_nop
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902 int i;
14903 _ACEOF
14904 if ac_fn_c_try_compile "$LINENO"
14905 then :
14906 xorg_cv_cc_flag_unused_command_line_argument=yes
14907 else $as_nop
14908 xorg_cv_cc_flag_unused_command_line_argument=no
14909 fi
14910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14911 fi
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14913 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14915 CFLAGS="$xorg_testset_save_CFLAGS"
14916 fi
14917
14918 found="no"
14919
14920 if test $found = "no" ; then
14921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14923 fi
14924
14925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14927 fi
14928
14929 CFLAGS="$CFLAGS -Wshadow"
14930
14931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14932 printf %s "checking if $CC supports -Wshadow... " >&6; }
14933 cacheid=xorg_cv_cc_flag__Wshadow
14934 if eval test \${$cacheid+y}
14935 then :
14936 printf %s "(cached) " >&6
14937 else $as_nop
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 int i;
14941 int
14942 main (void)
14943 {
14944
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"
14950 then :
14951 eval $cacheid=yes
14952 else $as_nop
14953 eval $cacheid=no
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14956 conftest$ac_exeext conftest.$ac_ext
14957 fi
14958
14959
14960 CFLAGS="$xorg_testset_save_CFLAGS"
14961
14962 eval supported=\$$cacheid
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14964 printf "%s\n" "$supported" >&6; }
14965 if test "$supported" = "yes" ; then
14966 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14967 found="yes"
14968 fi
14969 fi
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985 xorg_testset_save_CFLAGS="$CFLAGS"
14986
14987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14991 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14992 then :
14993 printf %s "(cached) " >&6
14994 else $as_nop
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14997 int i;
14998 _ACEOF
14999 if ac_fn_c_try_compile "$LINENO"
15000 then :
15001 xorg_cv_cc_flag_unknown_warning_option=yes
15002 else $as_nop
15003 xorg_cv_cc_flag_unknown_warning_option=no
15004 fi
15005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15006 fi
15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15008 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15010 CFLAGS="$xorg_testset_save_CFLAGS"
15011 fi
15012
15013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016 fi
15017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15021 then :
15022 printf %s "(cached) " >&6
15023 else $as_nop
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15026 int i;
15027 _ACEOF
15028 if ac_fn_c_try_compile "$LINENO"
15029 then :
15030 xorg_cv_cc_flag_unused_command_line_argument=yes
15031 else $as_nop
15032 xorg_cv_cc_flag_unused_command_line_argument=no
15033 fi
15034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15035 fi
15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15037 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15039 CFLAGS="$xorg_testset_save_CFLAGS"
15040 fi
15041
15042 found="no"
15043
15044 if test $found = "no" ; then
15045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15047 fi
15048
15049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15051 fi
15052
15053 CFLAGS="$CFLAGS -Wmissing-noreturn"
15054
15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15056 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15057 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15058 if eval test \${$cacheid+y}
15059 then :
15060 printf %s "(cached) " >&6
15061 else $as_nop
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15064 int i;
15065 int
15066 main (void)
15067 {
15068
15069 ;
15070 return 0;
15071 }
15072 _ACEOF
15073 if ac_fn_c_try_link "$LINENO"
15074 then :
15075 eval $cacheid=yes
15076 else $as_nop
15077 eval $cacheid=no
15078 fi
15079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15080 conftest$ac_exeext conftest.$ac_ext
15081 fi
15082
15083
15084 CFLAGS="$xorg_testset_save_CFLAGS"
15085
15086 eval supported=\$$cacheid
15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15088 printf "%s\n" "$supported" >&6; }
15089 if test "$supported" = "yes" ; then
15090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15091 found="yes"
15092 fi
15093 fi
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109 xorg_testset_save_CFLAGS="$CFLAGS"
15110
15111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15115 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15116 then :
15117 printf %s "(cached) " >&6
15118 else $as_nop
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15121 int i;
15122 _ACEOF
15123 if ac_fn_c_try_compile "$LINENO"
15124 then :
15125 xorg_cv_cc_flag_unknown_warning_option=yes
15126 else $as_nop
15127 xorg_cv_cc_flag_unknown_warning_option=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15130 fi
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15132 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15134 CFLAGS="$xorg_testset_save_CFLAGS"
15135 fi
15136
15137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15140 fi
15141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15143 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15144 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15145 then :
15146 printf %s "(cached) " >&6
15147 else $as_nop
15148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h. */
15150 int i;
15151 _ACEOF
15152 if ac_fn_c_try_compile "$LINENO"
15153 then :
15154 xorg_cv_cc_flag_unused_command_line_argument=yes
15155 else $as_nop
15156 xorg_cv_cc_flag_unused_command_line_argument=no
15157 fi
15158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15159 fi
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15161 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15163 CFLAGS="$xorg_testset_save_CFLAGS"
15164 fi
15165
15166 found="no"
15167
15168 if test $found = "no" ; then
15169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15171 fi
15172
15173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15175 fi
15176
15177 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15178
15179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15180 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15181 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15182 if eval test \${$cacheid+y}
15183 then :
15184 printf %s "(cached) " >&6
15185 else $as_nop
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 int i;
15189 int
15190 main (void)
15191 {
15192
15193 ;
15194 return 0;
15195 }
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"
15198 then :
15199 eval $cacheid=yes
15200 else $as_nop
15201 eval $cacheid=no
15202 fi
15203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15204 conftest$ac_exeext conftest.$ac_ext
15205 fi
15206
15207
15208 CFLAGS="$xorg_testset_save_CFLAGS"
15209
15210 eval supported=\$$cacheid
15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15212 printf "%s\n" "$supported" >&6; }
15213 if test "$supported" = "yes" ; then
15214 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15215 found="yes"
15216 fi
15217 fi
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233 xorg_testset_save_CFLAGS="$CFLAGS"
15234
15235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15239 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15240 then :
15241 printf %s "(cached) " >&6
15242 else $as_nop
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15245 int i;
15246 _ACEOF
15247 if ac_fn_c_try_compile "$LINENO"
15248 then :
15249 xorg_cv_cc_flag_unknown_warning_option=yes
15250 else $as_nop
15251 xorg_cv_cc_flag_unknown_warning_option=no
15252 fi
15253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15254 fi
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15258 CFLAGS="$xorg_testset_save_CFLAGS"
15259 fi
15260
15261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15264 fi
15265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15269 then :
15270 printf %s "(cached) " >&6
15271 else $as_nop
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274 int i;
15275 _ACEOF
15276 if ac_fn_c_try_compile "$LINENO"
15277 then :
15278 xorg_cv_cc_flag_unused_command_line_argument=yes
15279 else $as_nop
15280 xorg_cv_cc_flag_unused_command_line_argument=no
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15283 fi
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15287 CFLAGS="$xorg_testset_save_CFLAGS"
15288 fi
15289
15290 found="no"
15291
15292 if test $found = "no" ; then
15293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15295 fi
15296
15297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15299 fi
15300
15301 CFLAGS="$CFLAGS -Wredundant-decls"
15302
15303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15304 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15305 cacheid=xorg_cv_cc_flag__Wredundant_decls
15306 if eval test \${$cacheid+y}
15307 then :
15308 printf %s "(cached) " >&6
15309 else $as_nop
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15312 int i;
15313 int
15314 main (void)
15315 {
15316
15317 ;
15318 return 0;
15319 }
15320 _ACEOF
15321 if ac_fn_c_try_link "$LINENO"
15322 then :
15323 eval $cacheid=yes
15324 else $as_nop
15325 eval $cacheid=no
15326 fi
15327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15328 conftest$ac_exeext conftest.$ac_ext
15329 fi
15330
15331
15332 CFLAGS="$xorg_testset_save_CFLAGS"
15333
15334 eval supported=\$$cacheid
15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15336 printf "%s\n" "$supported" >&6; }
15337 if test "$supported" = "yes" ; then
15338 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15339 found="yes"
15340 fi
15341 fi
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357 xorg_testset_save_CFLAGS="$CFLAGS"
15358
15359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15362 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15363 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15364 then :
15365 printf %s "(cached) " >&6
15366 else $as_nop
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369 int i;
15370 _ACEOF
15371 if ac_fn_c_try_compile "$LINENO"
15372 then :
15373 xorg_cv_cc_flag_unknown_warning_option=yes
15374 else $as_nop
15375 xorg_cv_cc_flag_unknown_warning_option=no
15376 fi
15377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15378 fi
15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15382 CFLAGS="$xorg_testset_save_CFLAGS"
15383 fi
15384
15385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15388 fi
15389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15393 then :
15394 printf %s "(cached) " >&6
15395 else $as_nop
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 int i;
15399 _ACEOF
15400 if ac_fn_c_try_compile "$LINENO"
15401 then :
15402 xorg_cv_cc_flag_unused_command_line_argument=yes
15403 else $as_nop
15404 xorg_cv_cc_flag_unused_command_line_argument=no
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15407 fi
15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15411 CFLAGS="$xorg_testset_save_CFLAGS"
15412 fi
15413
15414 found="no"
15415
15416 if test $found = "no" ; then
15417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15419 fi
15420
15421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15423 fi
15424
15425 CFLAGS="$CFLAGS -Wlogical-op"
15426
15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15428 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15429 cacheid=xorg_cv_cc_flag__Wlogical_op
15430 if eval test \${$cacheid+y}
15431 then :
15432 printf %s "(cached) " >&6
15433 else $as_nop
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15436 int i;
15437 int
15438 main (void)
15439 {
15440
15441 ;
15442 return 0;
15443 }
15444 _ACEOF
15445 if ac_fn_c_try_link "$LINENO"
15446 then :
15447 eval $cacheid=yes
15448 else $as_nop
15449 eval $cacheid=no
15450 fi
15451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15452 conftest$ac_exeext conftest.$ac_ext
15453 fi
15454
15455
15456 CFLAGS="$xorg_testset_save_CFLAGS"
15457
15458 eval supported=\$$cacheid
15459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15460 printf "%s\n" "$supported" >&6; }
15461 if test "$supported" = "yes" ; then
15462 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15463 found="yes"
15464 fi
15465 fi
15466
15467
15468
15469 # These are currently disabled because they are noisy. They will be enabled
15470 # in the future once the codebase is sufficiently modernized to silence
15471 # them. For now, I don't want them to drown out the other warnings.
15472 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15473 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15474 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15475
15476 # Turn some warnings into errors, so we don't accidently get successful builds
15477 # when there are problems that should be fixed.
15478
15479 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493 xorg_testset_save_CFLAGS="$CFLAGS"
15494
15495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15498 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15499 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15500 then :
15501 printf %s "(cached) " >&6
15502 else $as_nop
15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15505 int i;
15506 _ACEOF
15507 if ac_fn_c_try_compile "$LINENO"
15508 then :
15509 xorg_cv_cc_flag_unknown_warning_option=yes
15510 else $as_nop
15511 xorg_cv_cc_flag_unknown_warning_option=no
15512 fi
15513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15514 fi
15515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15516 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15518 CFLAGS="$xorg_testset_save_CFLAGS"
15519 fi
15520
15521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15524 fi
15525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15527 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15528 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15529 then :
15530 printf %s "(cached) " >&6
15531 else $as_nop
15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533 /* end confdefs.h. */
15534 int i;
15535 _ACEOF
15536 if ac_fn_c_try_compile "$LINENO"
15537 then :
15538 xorg_cv_cc_flag_unused_command_line_argument=yes
15539 else $as_nop
15540 xorg_cv_cc_flag_unused_command_line_argument=no
15541 fi
15542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15543 fi
15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15545 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15547 CFLAGS="$xorg_testset_save_CFLAGS"
15548 fi
15549
15550 found="no"
15551
15552 if test $found = "no" ; then
15553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15555 fi
15556
15557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15559 fi
15560
15561 CFLAGS="$CFLAGS -Werror=implicit"
15562
15563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15564 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15565 cacheid=xorg_cv_cc_flag__Werror_implicit
15566 if eval test \${$cacheid+y}
15567 then :
15568 printf %s "(cached) " >&6
15569 else $as_nop
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15572 int i;
15573 int
15574 main (void)
15575 {
15576
15577 ;
15578 return 0;
15579 }
15580 _ACEOF
15581 if ac_fn_c_try_link "$LINENO"
15582 then :
15583 eval $cacheid=yes
15584 else $as_nop
15585 eval $cacheid=no
15586 fi
15587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15588 conftest$ac_exeext conftest.$ac_ext
15589 fi
15590
15591
15592 CFLAGS="$xorg_testset_save_CFLAGS"
15593
15594 eval supported=\$$cacheid
15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15596 printf "%s\n" "$supported" >&6; }
15597 if test "$supported" = "yes" ; then
15598 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15599 found="yes"
15600 fi
15601 fi
15602
15603 if test $found = "no" ; then
15604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606 fi
15607
15608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610 fi
15611
15612 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15613
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15615 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15616 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15617 if eval test \${$cacheid+y}
15618 then :
15619 printf %s "(cached) " >&6
15620 else $as_nop
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 int i;
15624 int
15625 main (void)
15626 {
15627
15628 ;
15629 return 0;
15630 }
15631 _ACEOF
15632 if ac_fn_c_try_link "$LINENO"
15633 then :
15634 eval $cacheid=yes
15635 else $as_nop
15636 eval $cacheid=no
15637 fi
15638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15639 conftest$ac_exeext conftest.$ac_ext
15640 fi
15641
15642
15643 CFLAGS="$xorg_testset_save_CFLAGS"
15644
15645 eval supported=\$$cacheid
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15647 printf "%s\n" "$supported" >&6; }
15648 if test "$supported" = "yes" ; then
15649 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15650 found="yes"
15651 fi
15652 fi
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668 xorg_testset_save_CFLAGS="$CFLAGS"
15669
15670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15673 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15674 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15675 then :
15676 printf %s "(cached) " >&6
15677 else $as_nop
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 int i;
15681 _ACEOF
15682 if ac_fn_c_try_compile "$LINENO"
15683 then :
15684 xorg_cv_cc_flag_unknown_warning_option=yes
15685 else $as_nop
15686 xorg_cv_cc_flag_unknown_warning_option=no
15687 fi
15688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15689 fi
15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15691 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15693 CFLAGS="$xorg_testset_save_CFLAGS"
15694 fi
15695
15696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15699 fi
15700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15702 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15703 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15704 then :
15705 printf %s "(cached) " >&6
15706 else $as_nop
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709 int i;
15710 _ACEOF
15711 if ac_fn_c_try_compile "$LINENO"
15712 then :
15713 xorg_cv_cc_flag_unused_command_line_argument=yes
15714 else $as_nop
15715 xorg_cv_cc_flag_unused_command_line_argument=no
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15718 fi
15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15720 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15722 CFLAGS="$xorg_testset_save_CFLAGS"
15723 fi
15724
15725 found="no"
15726
15727 if test $found = "no" ; then
15728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15730 fi
15731
15732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15734 fi
15735
15736 CFLAGS="$CFLAGS -Werror=nonnull"
15737
15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15739 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15740 cacheid=xorg_cv_cc_flag__Werror_nonnull
15741 if eval test \${$cacheid+y}
15742 then :
15743 printf %s "(cached) " >&6
15744 else $as_nop
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747 int i;
15748 int
15749 main (void)
15750 {
15751
15752 ;
15753 return 0;
15754 }
15755 _ACEOF
15756 if ac_fn_c_try_link "$LINENO"
15757 then :
15758 eval $cacheid=yes
15759 else $as_nop
15760 eval $cacheid=no
15761 fi
15762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15763 conftest$ac_exeext conftest.$ac_ext
15764 fi
15765
15766
15767 CFLAGS="$xorg_testset_save_CFLAGS"
15768
15769 eval supported=\$$cacheid
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15771 printf "%s\n" "$supported" >&6; }
15772 if test "$supported" = "yes" ; then
15773 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15774 found="yes"
15775 fi
15776 fi
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792 xorg_testset_save_CFLAGS="$CFLAGS"
15793
15794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15797 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15798 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15799 then :
15800 printf %s "(cached) " >&6
15801 else $as_nop
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 int i;
15805 _ACEOF
15806 if ac_fn_c_try_compile "$LINENO"
15807 then :
15808 xorg_cv_cc_flag_unknown_warning_option=yes
15809 else $as_nop
15810 xorg_cv_cc_flag_unknown_warning_option=no
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15813 fi
15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15817 CFLAGS="$xorg_testset_save_CFLAGS"
15818 fi
15819
15820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15823 fi
15824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15828 then :
15829 printf %s "(cached) " >&6
15830 else $as_nop
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 int i;
15834 _ACEOF
15835 if ac_fn_c_try_compile "$LINENO"
15836 then :
15837 xorg_cv_cc_flag_unused_command_line_argument=yes
15838 else $as_nop
15839 xorg_cv_cc_flag_unused_command_line_argument=no
15840 fi
15841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15842 fi
15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15844 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15846 CFLAGS="$xorg_testset_save_CFLAGS"
15847 fi
15848
15849 found="no"
15850
15851 if test $found = "no" ; then
15852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15854 fi
15855
15856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15858 fi
15859
15860 CFLAGS="$CFLAGS -Werror=init-self"
15861
15862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15863 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15864 cacheid=xorg_cv_cc_flag__Werror_init_self
15865 if eval test \${$cacheid+y}
15866 then :
15867 printf %s "(cached) " >&6
15868 else $as_nop
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15871 int i;
15872 int
15873 main (void)
15874 {
15875
15876 ;
15877 return 0;
15878 }
15879 _ACEOF
15880 if ac_fn_c_try_link "$LINENO"
15881 then :
15882 eval $cacheid=yes
15883 else $as_nop
15884 eval $cacheid=no
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15887 conftest$ac_exeext conftest.$ac_ext
15888 fi
15889
15890
15891 CFLAGS="$xorg_testset_save_CFLAGS"
15892
15893 eval supported=\$$cacheid
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15895 printf "%s\n" "$supported" >&6; }
15896 if test "$supported" = "yes" ; then
15897 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15898 found="yes"
15899 fi
15900 fi
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916 xorg_testset_save_CFLAGS="$CFLAGS"
15917
15918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15921 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15922 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15923 then :
15924 printf %s "(cached) " >&6
15925 else $as_nop
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15928 int i;
15929 _ACEOF
15930 if ac_fn_c_try_compile "$LINENO"
15931 then :
15932 xorg_cv_cc_flag_unknown_warning_option=yes
15933 else $as_nop
15934 xorg_cv_cc_flag_unknown_warning_option=no
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15937 fi
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15939 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15941 CFLAGS="$xorg_testset_save_CFLAGS"
15942 fi
15943
15944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15947 fi
15948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15950 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15951 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15952 then :
15953 printf %s "(cached) " >&6
15954 else $as_nop
15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956 /* end confdefs.h. */
15957 int i;
15958 _ACEOF
15959 if ac_fn_c_try_compile "$LINENO"
15960 then :
15961 xorg_cv_cc_flag_unused_command_line_argument=yes
15962 else $as_nop
15963 xorg_cv_cc_flag_unused_command_line_argument=no
15964 fi
15965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15966 fi
15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15968 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15970 CFLAGS="$xorg_testset_save_CFLAGS"
15971 fi
15972
15973 found="no"
15974
15975 if test $found = "no" ; then
15976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15978 fi
15979
15980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15982 fi
15983
15984 CFLAGS="$CFLAGS -Werror=main"
15985
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15987 printf %s "checking if $CC supports -Werror=main... " >&6; }
15988 cacheid=xorg_cv_cc_flag__Werror_main
15989 if eval test \${$cacheid+y}
15990 then :
15991 printf %s "(cached) " >&6
15992 else $as_nop
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15995 int i;
15996 int
15997 main (void)
15998 {
15999
16000 ;
16001 return 0;
16002 }
16003 _ACEOF
16004 if ac_fn_c_try_link "$LINENO"
16005 then :
16006 eval $cacheid=yes
16007 else $as_nop
16008 eval $cacheid=no
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16011 conftest$ac_exeext conftest.$ac_ext
16012 fi
16013
16014
16015 CFLAGS="$xorg_testset_save_CFLAGS"
16016
16017 eval supported=\$$cacheid
16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16019 printf "%s\n" "$supported" >&6; }
16020 if test "$supported" = "yes" ; then
16021 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16022 found="yes"
16023 fi
16024 fi
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040 xorg_testset_save_CFLAGS="$CFLAGS"
16041
16042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16045 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16046 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16047 then :
16048 printf %s "(cached) " >&6
16049 else $as_nop
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16052 int i;
16053 _ACEOF
16054 if ac_fn_c_try_compile "$LINENO"
16055 then :
16056 xorg_cv_cc_flag_unknown_warning_option=yes
16057 else $as_nop
16058 xorg_cv_cc_flag_unknown_warning_option=no
16059 fi
16060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16061 fi
16062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16063 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16065 CFLAGS="$xorg_testset_save_CFLAGS"
16066 fi
16067
16068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16071 fi
16072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16074 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16075 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16076 then :
16077 printf %s "(cached) " >&6
16078 else $as_nop
16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080 /* end confdefs.h. */
16081 int i;
16082 _ACEOF
16083 if ac_fn_c_try_compile "$LINENO"
16084 then :
16085 xorg_cv_cc_flag_unused_command_line_argument=yes
16086 else $as_nop
16087 xorg_cv_cc_flag_unused_command_line_argument=no
16088 fi
16089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16090 fi
16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16092 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16094 CFLAGS="$xorg_testset_save_CFLAGS"
16095 fi
16096
16097 found="no"
16098
16099 if test $found = "no" ; then
16100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16102 fi
16103
16104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16106 fi
16107
16108 CFLAGS="$CFLAGS -Werror=missing-braces"
16109
16110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16111 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16112 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16113 if eval test \${$cacheid+y}
16114 then :
16115 printf %s "(cached) " >&6
16116 else $as_nop
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119 int i;
16120 int
16121 main (void)
16122 {
16123
16124 ;
16125 return 0;
16126 }
16127 _ACEOF
16128 if ac_fn_c_try_link "$LINENO"
16129 then :
16130 eval $cacheid=yes
16131 else $as_nop
16132 eval $cacheid=no
16133 fi
16134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16135 conftest$ac_exeext conftest.$ac_ext
16136 fi
16137
16138
16139 CFLAGS="$xorg_testset_save_CFLAGS"
16140
16141 eval supported=\$$cacheid
16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16143 printf "%s\n" "$supported" >&6; }
16144 if test "$supported" = "yes" ; then
16145 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16146 found="yes"
16147 fi
16148 fi
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164 xorg_testset_save_CFLAGS="$CFLAGS"
16165
16166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16169 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16170 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16171 then :
16172 printf %s "(cached) " >&6
16173 else $as_nop
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16176 int i;
16177 _ACEOF
16178 if ac_fn_c_try_compile "$LINENO"
16179 then :
16180 xorg_cv_cc_flag_unknown_warning_option=yes
16181 else $as_nop
16182 xorg_cv_cc_flag_unknown_warning_option=no
16183 fi
16184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16185 fi
16186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16187 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16189 CFLAGS="$xorg_testset_save_CFLAGS"
16190 fi
16191
16192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16195 fi
16196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16198 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16199 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16200 then :
16201 printf %s "(cached) " >&6
16202 else $as_nop
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 int i;
16206 _ACEOF
16207 if ac_fn_c_try_compile "$LINENO"
16208 then :
16209 xorg_cv_cc_flag_unused_command_line_argument=yes
16210 else $as_nop
16211 xorg_cv_cc_flag_unused_command_line_argument=no
16212 fi
16213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16214 fi
16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16216 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16218 CFLAGS="$xorg_testset_save_CFLAGS"
16219 fi
16220
16221 found="no"
16222
16223 if test $found = "no" ; then
16224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16226 fi
16227
16228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16230 fi
16231
16232 CFLAGS="$CFLAGS -Werror=sequence-point"
16233
16234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16235 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16236 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16237 if eval test \${$cacheid+y}
16238 then :
16239 printf %s "(cached) " >&6
16240 else $as_nop
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 int i;
16244 int
16245 main (void)
16246 {
16247
16248 ;
16249 return 0;
16250 }
16251 _ACEOF
16252 if ac_fn_c_try_link "$LINENO"
16253 then :
16254 eval $cacheid=yes
16255 else $as_nop
16256 eval $cacheid=no
16257 fi
16258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16259 conftest$ac_exeext conftest.$ac_ext
16260 fi
16261
16262
16263 CFLAGS="$xorg_testset_save_CFLAGS"
16264
16265 eval supported=\$$cacheid
16266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16267 printf "%s\n" "$supported" >&6; }
16268 if test "$supported" = "yes" ; then
16269 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16270 found="yes"
16271 fi
16272 fi
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288 xorg_testset_save_CFLAGS="$CFLAGS"
16289
16290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16293 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16294 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16295 then :
16296 printf %s "(cached) " >&6
16297 else $as_nop
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16300 int i;
16301 _ACEOF
16302 if ac_fn_c_try_compile "$LINENO"
16303 then :
16304 xorg_cv_cc_flag_unknown_warning_option=yes
16305 else $as_nop
16306 xorg_cv_cc_flag_unknown_warning_option=no
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16309 fi
16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16311 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16313 CFLAGS="$xorg_testset_save_CFLAGS"
16314 fi
16315
16316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319 fi
16320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16322 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16323 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16324 then :
16325 printf %s "(cached) " >&6
16326 else $as_nop
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16329 int i;
16330 _ACEOF
16331 if ac_fn_c_try_compile "$LINENO"
16332 then :
16333 xorg_cv_cc_flag_unused_command_line_argument=yes
16334 else $as_nop
16335 xorg_cv_cc_flag_unused_command_line_argument=no
16336 fi
16337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16338 fi
16339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16340 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16342 CFLAGS="$xorg_testset_save_CFLAGS"
16343 fi
16344
16345 found="no"
16346
16347 if test $found = "no" ; then
16348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16350 fi
16351
16352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16354 fi
16355
16356 CFLAGS="$CFLAGS -Werror=return-type"
16357
16358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16359 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16360 cacheid=xorg_cv_cc_flag__Werror_return_type
16361 if eval test \${$cacheid+y}
16362 then :
16363 printf %s "(cached) " >&6
16364 else $as_nop
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366 /* end confdefs.h. */
16367 int i;
16368 int
16369 main (void)
16370 {
16371
16372 ;
16373 return 0;
16374 }
16375 _ACEOF
16376 if ac_fn_c_try_link "$LINENO"
16377 then :
16378 eval $cacheid=yes
16379 else $as_nop
16380 eval $cacheid=no
16381 fi
16382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16383 conftest$ac_exeext conftest.$ac_ext
16384 fi
16385
16386
16387 CFLAGS="$xorg_testset_save_CFLAGS"
16388
16389 eval supported=\$$cacheid
16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16391 printf "%s\n" "$supported" >&6; }
16392 if test "$supported" = "yes" ; then
16393 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16394 found="yes"
16395 fi
16396 fi
16397
16398 if test $found = "no" ; then
16399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16401 fi
16402
16403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16405 fi
16406
16407 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16408
16409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16410 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16411 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16412 if eval test \${$cacheid+y}
16413 then :
16414 printf %s "(cached) " >&6
16415 else $as_nop
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16418 int i;
16419 int
16420 main (void)
16421 {
16422
16423 ;
16424 return 0;
16425 }
16426 _ACEOF
16427 if ac_fn_c_try_link "$LINENO"
16428 then :
16429 eval $cacheid=yes
16430 else $as_nop
16431 eval $cacheid=no
16432 fi
16433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16434 conftest$ac_exeext conftest.$ac_ext
16435 fi
16436
16437
16438 CFLAGS="$xorg_testset_save_CFLAGS"
16439
16440 eval supported=\$$cacheid
16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16442 printf "%s\n" "$supported" >&6; }
16443 if test "$supported" = "yes" ; then
16444 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16445 found="yes"
16446 fi
16447 fi
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463 xorg_testset_save_CFLAGS="$CFLAGS"
16464
16465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16468 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16469 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16470 then :
16471 printf %s "(cached) " >&6
16472 else $as_nop
16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16475 int i;
16476 _ACEOF
16477 if ac_fn_c_try_compile "$LINENO"
16478 then :
16479 xorg_cv_cc_flag_unknown_warning_option=yes
16480 else $as_nop
16481 xorg_cv_cc_flag_unknown_warning_option=no
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16484 fi
16485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16486 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16488 CFLAGS="$xorg_testset_save_CFLAGS"
16489 fi
16490
16491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16494 fi
16495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16497 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16498 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16499 then :
16500 printf %s "(cached) " >&6
16501 else $as_nop
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 int i;
16505 _ACEOF
16506 if ac_fn_c_try_compile "$LINENO"
16507 then :
16508 xorg_cv_cc_flag_unused_command_line_argument=yes
16509 else $as_nop
16510 xorg_cv_cc_flag_unused_command_line_argument=no
16511 fi
16512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16513 fi
16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16517 CFLAGS="$xorg_testset_save_CFLAGS"
16518 fi
16519
16520 found="no"
16521
16522 if test $found = "no" ; then
16523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16525 fi
16526
16527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16529 fi
16530
16531 CFLAGS="$CFLAGS -Werror=trigraphs"
16532
16533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16534 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16535 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16536 if eval test \${$cacheid+y}
16537 then :
16538 printf %s "(cached) " >&6
16539 else $as_nop
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542 int i;
16543 int
16544 main (void)
16545 {
16546
16547 ;
16548 return 0;
16549 }
16550 _ACEOF
16551 if ac_fn_c_try_link "$LINENO"
16552 then :
16553 eval $cacheid=yes
16554 else $as_nop
16555 eval $cacheid=no
16556 fi
16557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16558 conftest$ac_exeext conftest.$ac_ext
16559 fi
16560
16561
16562 CFLAGS="$xorg_testset_save_CFLAGS"
16563
16564 eval supported=\$$cacheid
16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16566 printf "%s\n" "$supported" >&6; }
16567 if test "$supported" = "yes" ; then
16568 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16569 found="yes"
16570 fi
16571 fi
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587 xorg_testset_save_CFLAGS="$CFLAGS"
16588
16589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16592 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16593 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16594 then :
16595 printf %s "(cached) " >&6
16596 else $as_nop
16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598 /* end confdefs.h. */
16599 int i;
16600 _ACEOF
16601 if ac_fn_c_try_compile "$LINENO"
16602 then :
16603 xorg_cv_cc_flag_unknown_warning_option=yes
16604 else $as_nop
16605 xorg_cv_cc_flag_unknown_warning_option=no
16606 fi
16607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16608 fi
16609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16610 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16612 CFLAGS="$xorg_testset_save_CFLAGS"
16613 fi
16614
16615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16618 fi
16619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16621 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16622 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16623 then :
16624 printf %s "(cached) " >&6
16625 else $as_nop
16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16628 int i;
16629 _ACEOF
16630 if ac_fn_c_try_compile "$LINENO"
16631 then :
16632 xorg_cv_cc_flag_unused_command_line_argument=yes
16633 else $as_nop
16634 xorg_cv_cc_flag_unused_command_line_argument=no
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16637 fi
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16639 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16641 CFLAGS="$xorg_testset_save_CFLAGS"
16642 fi
16643
16644 found="no"
16645
16646 if test $found = "no" ; then
16647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16649 fi
16650
16651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16653 fi
16654
16655 CFLAGS="$CFLAGS -Werror=array-bounds"
16656
16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16658 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16659 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16660 if eval test \${$cacheid+y}
16661 then :
16662 printf %s "(cached) " >&6
16663 else $as_nop
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h. */
16666 int i;
16667 int
16668 main (void)
16669 {
16670
16671 ;
16672 return 0;
16673 }
16674 _ACEOF
16675 if ac_fn_c_try_link "$LINENO"
16676 then :
16677 eval $cacheid=yes
16678 else $as_nop
16679 eval $cacheid=no
16680 fi
16681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16682 conftest$ac_exeext conftest.$ac_ext
16683 fi
16684
16685
16686 CFLAGS="$xorg_testset_save_CFLAGS"
16687
16688 eval supported=\$$cacheid
16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16690 printf "%s\n" "$supported" >&6; }
16691 if test "$supported" = "yes" ; then
16692 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16693 found="yes"
16694 fi
16695 fi
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711 xorg_testset_save_CFLAGS="$CFLAGS"
16712
16713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16716 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16717 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16718 then :
16719 printf %s "(cached) " >&6
16720 else $as_nop
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 int i;
16724 _ACEOF
16725 if ac_fn_c_try_compile "$LINENO"
16726 then :
16727 xorg_cv_cc_flag_unknown_warning_option=yes
16728 else $as_nop
16729 xorg_cv_cc_flag_unknown_warning_option=no
16730 fi
16731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16732 fi
16733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16734 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16736 CFLAGS="$xorg_testset_save_CFLAGS"
16737 fi
16738
16739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16742 fi
16743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16745 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16746 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16747 then :
16748 printf %s "(cached) " >&6
16749 else $as_nop
16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h. */
16752 int i;
16753 _ACEOF
16754 if ac_fn_c_try_compile "$LINENO"
16755 then :
16756 xorg_cv_cc_flag_unused_command_line_argument=yes
16757 else $as_nop
16758 xorg_cv_cc_flag_unused_command_line_argument=no
16759 fi
16760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16761 fi
16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16763 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16765 CFLAGS="$xorg_testset_save_CFLAGS"
16766 fi
16767
16768 found="no"
16769
16770 if test $found = "no" ; then
16771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16773 fi
16774
16775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16777 fi
16778
16779 CFLAGS="$CFLAGS -Werror=write-strings"
16780
16781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16782 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16783 cacheid=xorg_cv_cc_flag__Werror_write_strings
16784 if eval test \${$cacheid+y}
16785 then :
16786 printf %s "(cached) " >&6
16787 else $as_nop
16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789 /* end confdefs.h. */
16790 int i;
16791 int
16792 main (void)
16793 {
16794
16795 ;
16796 return 0;
16797 }
16798 _ACEOF
16799 if ac_fn_c_try_link "$LINENO"
16800 then :
16801 eval $cacheid=yes
16802 else $as_nop
16803 eval $cacheid=no
16804 fi
16805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16806 conftest$ac_exeext conftest.$ac_ext
16807 fi
16808
16809
16810 CFLAGS="$xorg_testset_save_CFLAGS"
16811
16812 eval supported=\$$cacheid
16813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16814 printf "%s\n" "$supported" >&6; }
16815 if test "$supported" = "yes" ; then
16816 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16817 found="yes"
16818 fi
16819 fi
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835 xorg_testset_save_CFLAGS="$CFLAGS"
16836
16837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16841 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16842 then :
16843 printf %s "(cached) " >&6
16844 else $as_nop
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h. */
16847 int i;
16848 _ACEOF
16849 if ac_fn_c_try_compile "$LINENO"
16850 then :
16851 xorg_cv_cc_flag_unknown_warning_option=yes
16852 else $as_nop
16853 xorg_cv_cc_flag_unknown_warning_option=no
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16856 fi
16857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16860 CFLAGS="$xorg_testset_save_CFLAGS"
16861 fi
16862
16863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16866 fi
16867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16871 then :
16872 printf %s "(cached) " >&6
16873 else $as_nop
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 int i;
16877 _ACEOF
16878 if ac_fn_c_try_compile "$LINENO"
16879 then :
16880 xorg_cv_cc_flag_unused_command_line_argument=yes
16881 else $as_nop
16882 xorg_cv_cc_flag_unused_command_line_argument=no
16883 fi
16884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16885 fi
16886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16889 CFLAGS="$xorg_testset_save_CFLAGS"
16890 fi
16891
16892 found="no"
16893
16894 if test $found = "no" ; then
16895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16897 fi
16898
16899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16901 fi
16902
16903 CFLAGS="$CFLAGS -Werror=address"
16904
16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16906 printf %s "checking if $CC supports -Werror=address... " >&6; }
16907 cacheid=xorg_cv_cc_flag__Werror_address
16908 if eval test \${$cacheid+y}
16909 then :
16910 printf %s "(cached) " >&6
16911 else $as_nop
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16914 int i;
16915 int
16916 main (void)
16917 {
16918
16919 ;
16920 return 0;
16921 }
16922 _ACEOF
16923 if ac_fn_c_try_link "$LINENO"
16924 then :
16925 eval $cacheid=yes
16926 else $as_nop
16927 eval $cacheid=no
16928 fi
16929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16930 conftest$ac_exeext conftest.$ac_ext
16931 fi
16932
16933
16934 CFLAGS="$xorg_testset_save_CFLAGS"
16935
16936 eval supported=\$$cacheid
16937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16938 printf "%s\n" "$supported" >&6; }
16939 if test "$supported" = "yes" ; then
16940 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16965 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16966 then :
16967 printf %s "(cached) " >&6
16968 else $as_nop
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16971 int i;
16972 _ACEOF
16973 if ac_fn_c_try_compile "$LINENO"
16974 then :
16975 xorg_cv_cc_flag_unknown_warning_option=yes
16976 else $as_nop
16977 xorg_cv_cc_flag_unknown_warning_option=no
16978 fi
16979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16980 fi
16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16984 CFLAGS="$xorg_testset_save_CFLAGS"
16985 fi
16986
16987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16990 fi
16991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16995 then :
16996 printf %s "(cached) " >&6
16997 else $as_nop
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17000 int i;
17001 _ACEOF
17002 if ac_fn_c_try_compile "$LINENO"
17003 then :
17004 xorg_cv_cc_flag_unused_command_line_argument=yes
17005 else $as_nop
17006 xorg_cv_cc_flag_unused_command_line_argument=no
17007 fi
17008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17009 fi
17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17013 CFLAGS="$xorg_testset_save_CFLAGS"
17014 fi
17015
17016 found="no"
17017
17018 if test $found = "no" ; then
17019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17021 fi
17022
17023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17025 fi
17026
17027 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17028
17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17030 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17031 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17032 if eval test \${$cacheid+y}
17033 then :
17034 printf %s "(cached) " >&6
17035 else $as_nop
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17038 int i;
17039 int
17040 main (void)
17041 {
17042
17043 ;
17044 return 0;
17045 }
17046 _ACEOF
17047 if ac_fn_c_try_link "$LINENO"
17048 then :
17049 eval $cacheid=yes
17050 else $as_nop
17051 eval $cacheid=no
17052 fi
17053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17054 conftest$ac_exeext conftest.$ac_ext
17055 fi
17056
17057
17058 CFLAGS="$xorg_testset_save_CFLAGS"
17059
17060 eval supported=\$$cacheid
17061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17062 printf "%s\n" "$supported" >&6; }
17063 if test "$supported" = "yes" ; then
17064 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17065 found="yes"
17066 fi
17067 fi
17068
17069 if test $found = "no" ; then
17070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17072 fi
17073
17074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17076 fi
17077
17078 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17079
17080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17081 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17082 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17083 if eval test \${$cacheid+y}
17084 then :
17085 printf %s "(cached) " >&6
17086 else $as_nop
17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h. */
17089 int i;
17090 int
17091 main (void)
17092 {
17093
17094 ;
17095 return 0;
17096 }
17097 _ACEOF
17098 if ac_fn_c_try_link "$LINENO"
17099 then :
17100 eval $cacheid=yes
17101 else $as_nop
17102 eval $cacheid=no
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17105 conftest$ac_exeext conftest.$ac_ext
17106 fi
17107
17108
17109 CFLAGS="$xorg_testset_save_CFLAGS"
17110
17111 eval supported=\$$cacheid
17112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17113 printf "%s\n" "$supported" >&6; }
17114 if test "$supported" = "yes" ; then
17115 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17116 found="yes"
17117 fi
17118 fi
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134 xorg_testset_save_CFLAGS="$CFLAGS"
17135
17136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17139 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17140 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17141 then :
17142 printf %s "(cached) " >&6
17143 else $as_nop
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17146 int i;
17147 _ACEOF
17148 if ac_fn_c_try_compile "$LINENO"
17149 then :
17150 xorg_cv_cc_flag_unknown_warning_option=yes
17151 else $as_nop
17152 xorg_cv_cc_flag_unknown_warning_option=no
17153 fi
17154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17155 fi
17156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17159 CFLAGS="$xorg_testset_save_CFLAGS"
17160 fi
17161
17162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17165 fi
17166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17169 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17170 then :
17171 printf %s "(cached) " >&6
17172 else $as_nop
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17175 int i;
17176 _ACEOF
17177 if ac_fn_c_try_compile "$LINENO"
17178 then :
17179 xorg_cv_cc_flag_unused_command_line_argument=yes
17180 else $as_nop
17181 xorg_cv_cc_flag_unused_command_line_argument=no
17182 fi
17183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17184 fi
17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17188 CFLAGS="$xorg_testset_save_CFLAGS"
17189 fi
17190
17191 found="no"
17192
17193 if test $found = "no" ; then
17194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17196 fi
17197
17198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17200 fi
17201
17202 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17203
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17205 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17206 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17207 if eval test \${$cacheid+y}
17208 then :
17209 printf %s "(cached) " >&6
17210 else $as_nop
17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17212 /* end confdefs.h. */
17213 int i;
17214 int
17215 main (void)
17216 {
17217
17218 ;
17219 return 0;
17220 }
17221 _ACEOF
17222 if ac_fn_c_try_link "$LINENO"
17223 then :
17224 eval $cacheid=yes
17225 else $as_nop
17226 eval $cacheid=no
17227 fi
17228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17229 conftest$ac_exeext conftest.$ac_ext
17230 fi
17231
17232
17233 CFLAGS="$xorg_testset_save_CFLAGS"
17234
17235 eval supported=\$$cacheid
17236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17237 printf "%s\n" "$supported" >&6; }
17238 if test "$supported" = "yes" ; then
17239 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17240 found="yes"
17241 fi
17242 fi
17243
17244 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17245 else
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
17247 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261 xorg_testset_save_CFLAGS="$CFLAGS"
17262
17263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17266 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17267 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17268 then :
17269 printf %s "(cached) " >&6
17270 else $as_nop
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17273 int i;
17274 _ACEOF
17275 if ac_fn_c_try_compile "$LINENO"
17276 then :
17277 xorg_cv_cc_flag_unknown_warning_option=yes
17278 else $as_nop
17279 xorg_cv_cc_flag_unknown_warning_option=no
17280 fi
17281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17282 fi
17283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17284 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17286 CFLAGS="$xorg_testset_save_CFLAGS"
17287 fi
17288
17289 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17292 fi
17293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17295 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17296 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17297 then :
17298 printf %s "(cached) " >&6
17299 else $as_nop
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 int i;
17303 _ACEOF
17304 if ac_fn_c_try_compile "$LINENO"
17305 then :
17306 xorg_cv_cc_flag_unused_command_line_argument=yes
17307 else $as_nop
17308 xorg_cv_cc_flag_unused_command_line_argument=no
17309 fi
17310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17311 fi
17312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17313 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17315 CFLAGS="$xorg_testset_save_CFLAGS"
17316 fi
17317
17318 found="no"
17319
17320 if test $found = "no" ; then
17321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17323 fi
17324
17325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17327 fi
17328
17329 CFLAGS="$CFLAGS -Wimplicit"
17330
17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17332 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17333 cacheid=xorg_cv_cc_flag__Wimplicit
17334 if eval test \${$cacheid+y}
17335 then :
17336 printf %s "(cached) " >&6
17337 else $as_nop
17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17340 int i;
17341 int
17342 main (void)
17343 {
17344
17345 ;
17346 return 0;
17347 }
17348 _ACEOF
17349 if ac_fn_c_try_link "$LINENO"
17350 then :
17351 eval $cacheid=yes
17352 else $as_nop
17353 eval $cacheid=no
17354 fi
17355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17356 conftest$ac_exeext conftest.$ac_ext
17357 fi
17358
17359
17360 CFLAGS="$xorg_testset_save_CFLAGS"
17361
17362 eval supported=\$$cacheid
17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17364 printf "%s\n" "$supported" >&6; }
17365 if test "$supported" = "yes" ; then
17366 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17367 found="yes"
17368 fi
17369 fi
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385 xorg_testset_save_CFLAGS="$CFLAGS"
17386
17387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17391 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17392 then :
17393 printf %s "(cached) " >&6
17394 else $as_nop
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h. */
17397 int i;
17398 _ACEOF
17399 if ac_fn_c_try_compile "$LINENO"
17400 then :
17401 xorg_cv_cc_flag_unknown_warning_option=yes
17402 else $as_nop
17403 xorg_cv_cc_flag_unknown_warning_option=no
17404 fi
17405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17406 fi
17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17408 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17410 CFLAGS="$xorg_testset_save_CFLAGS"
17411 fi
17412
17413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17416 fi
17417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17419 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17420 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17421 then :
17422 printf %s "(cached) " >&6
17423 else $as_nop
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17426 int i;
17427 _ACEOF
17428 if ac_fn_c_try_compile "$LINENO"
17429 then :
17430 xorg_cv_cc_flag_unused_command_line_argument=yes
17431 else $as_nop
17432 xorg_cv_cc_flag_unused_command_line_argument=no
17433 fi
17434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17435 fi
17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17439 CFLAGS="$xorg_testset_save_CFLAGS"
17440 fi
17441
17442 found="no"
17443
17444 if test $found = "no" ; then
17445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17447 fi
17448
17449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17451 fi
17452
17453 CFLAGS="$CFLAGS -Wnonnull"
17454
17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17456 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17457 cacheid=xorg_cv_cc_flag__Wnonnull
17458 if eval test \${$cacheid+y}
17459 then :
17460 printf %s "(cached) " >&6
17461 else $as_nop
17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463 /* end confdefs.h. */
17464 int i;
17465 int
17466 main (void)
17467 {
17468
17469 ;
17470 return 0;
17471 }
17472 _ACEOF
17473 if ac_fn_c_try_link "$LINENO"
17474 then :
17475 eval $cacheid=yes
17476 else $as_nop
17477 eval $cacheid=no
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17480 conftest$ac_exeext conftest.$ac_ext
17481 fi
17482
17483
17484 CFLAGS="$xorg_testset_save_CFLAGS"
17485
17486 eval supported=\$$cacheid
17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17488 printf "%s\n" "$supported" >&6; }
17489 if test "$supported" = "yes" ; then
17490 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17491 found="yes"
17492 fi
17493 fi
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509 xorg_testset_save_CFLAGS="$CFLAGS"
17510
17511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17514 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17515 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17516 then :
17517 printf %s "(cached) " >&6
17518 else $as_nop
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17521 int i;
17522 _ACEOF
17523 if ac_fn_c_try_compile "$LINENO"
17524 then :
17525 xorg_cv_cc_flag_unknown_warning_option=yes
17526 else $as_nop
17527 xorg_cv_cc_flag_unknown_warning_option=no
17528 fi
17529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17530 fi
17531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17532 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17534 CFLAGS="$xorg_testset_save_CFLAGS"
17535 fi
17536
17537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17540 fi
17541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17543 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17544 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17545 then :
17546 printf %s "(cached) " >&6
17547 else $as_nop
17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h. */
17550 int i;
17551 _ACEOF
17552 if ac_fn_c_try_compile "$LINENO"
17553 then :
17554 xorg_cv_cc_flag_unused_command_line_argument=yes
17555 else $as_nop
17556 xorg_cv_cc_flag_unused_command_line_argument=no
17557 fi
17558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17559 fi
17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17561 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17563 CFLAGS="$xorg_testset_save_CFLAGS"
17564 fi
17565
17566 found="no"
17567
17568 if test $found = "no" ; then
17569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17571 fi
17572
17573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17575 fi
17576
17577 CFLAGS="$CFLAGS -Winit-self"
17578
17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17580 printf %s "checking if $CC supports -Winit-self... " >&6; }
17581 cacheid=xorg_cv_cc_flag__Winit_self
17582 if eval test \${$cacheid+y}
17583 then :
17584 printf %s "(cached) " >&6
17585 else $as_nop
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588 int i;
17589 int
17590 main (void)
17591 {
17592
17593 ;
17594 return 0;
17595 }
17596 _ACEOF
17597 if ac_fn_c_try_link "$LINENO"
17598 then :
17599 eval $cacheid=yes
17600 else $as_nop
17601 eval $cacheid=no
17602 fi
17603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17604 conftest$ac_exeext conftest.$ac_ext
17605 fi
17606
17607
17608 CFLAGS="$xorg_testset_save_CFLAGS"
17609
17610 eval supported=\$$cacheid
17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17612 printf "%s\n" "$supported" >&6; }
17613 if test "$supported" = "yes" ; then
17614 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17615 found="yes"
17616 fi
17617 fi
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633 xorg_testset_save_CFLAGS="$CFLAGS"
17634
17635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17638 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17639 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17640 then :
17641 printf %s "(cached) " >&6
17642 else $as_nop
17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h. */
17645 int i;
17646 _ACEOF
17647 if ac_fn_c_try_compile "$LINENO"
17648 then :
17649 xorg_cv_cc_flag_unknown_warning_option=yes
17650 else $as_nop
17651 xorg_cv_cc_flag_unknown_warning_option=no
17652 fi
17653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17654 fi
17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17656 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17658 CFLAGS="$xorg_testset_save_CFLAGS"
17659 fi
17660
17661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17664 fi
17665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17667 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17668 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17669 then :
17670 printf %s "(cached) " >&6
17671 else $as_nop
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17674 int i;
17675 _ACEOF
17676 if ac_fn_c_try_compile "$LINENO"
17677 then :
17678 xorg_cv_cc_flag_unused_command_line_argument=yes
17679 else $as_nop
17680 xorg_cv_cc_flag_unused_command_line_argument=no
17681 fi
17682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17683 fi
17684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17687 CFLAGS="$xorg_testset_save_CFLAGS"
17688 fi
17689
17690 found="no"
17691
17692 if test $found = "no" ; then
17693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17695 fi
17696
17697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17699 fi
17700
17701 CFLAGS="$CFLAGS -Wmain"
17702
17703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17704 printf %s "checking if $CC supports -Wmain... " >&6; }
17705 cacheid=xorg_cv_cc_flag__Wmain
17706 if eval test \${$cacheid+y}
17707 then :
17708 printf %s "(cached) " >&6
17709 else $as_nop
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17712 int i;
17713 int
17714 main (void)
17715 {
17716
17717 ;
17718 return 0;
17719 }
17720 _ACEOF
17721 if ac_fn_c_try_link "$LINENO"
17722 then :
17723 eval $cacheid=yes
17724 else $as_nop
17725 eval $cacheid=no
17726 fi
17727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17728 conftest$ac_exeext conftest.$ac_ext
17729 fi
17730
17731
17732 CFLAGS="$xorg_testset_save_CFLAGS"
17733
17734 eval supported=\$$cacheid
17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17736 printf "%s\n" "$supported" >&6; }
17737 if test "$supported" = "yes" ; then
17738 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17739 found="yes"
17740 fi
17741 fi
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757 xorg_testset_save_CFLAGS="$CFLAGS"
17758
17759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17762 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17763 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17764 then :
17765 printf %s "(cached) " >&6
17766 else $as_nop
17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h. */
17769 int i;
17770 _ACEOF
17771 if ac_fn_c_try_compile "$LINENO"
17772 then :
17773 xorg_cv_cc_flag_unknown_warning_option=yes
17774 else $as_nop
17775 xorg_cv_cc_flag_unknown_warning_option=no
17776 fi
17777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17778 fi
17779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17780 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17782 CFLAGS="$xorg_testset_save_CFLAGS"
17783 fi
17784
17785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17788 fi
17789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17791 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17792 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17793 then :
17794 printf %s "(cached) " >&6
17795 else $as_nop
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17798 int i;
17799 _ACEOF
17800 if ac_fn_c_try_compile "$LINENO"
17801 then :
17802 xorg_cv_cc_flag_unused_command_line_argument=yes
17803 else $as_nop
17804 xorg_cv_cc_flag_unused_command_line_argument=no
17805 fi
17806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17807 fi
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17811 CFLAGS="$xorg_testset_save_CFLAGS"
17812 fi
17813
17814 found="no"
17815
17816 if test $found = "no" ; then
17817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17819 fi
17820
17821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17823 fi
17824
17825 CFLAGS="$CFLAGS -Wmissing-braces"
17826
17827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17828 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17829 cacheid=xorg_cv_cc_flag__Wmissing_braces
17830 if eval test \${$cacheid+y}
17831 then :
17832 printf %s "(cached) " >&6
17833 else $as_nop
17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17836 int i;
17837 int
17838 main (void)
17839 {
17840
17841 ;
17842 return 0;
17843 }
17844 _ACEOF
17845 if ac_fn_c_try_link "$LINENO"
17846 then :
17847 eval $cacheid=yes
17848 else $as_nop
17849 eval $cacheid=no
17850 fi
17851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17852 conftest$ac_exeext conftest.$ac_ext
17853 fi
17854
17855
17856 CFLAGS="$xorg_testset_save_CFLAGS"
17857
17858 eval supported=\$$cacheid
17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17860 printf "%s\n" "$supported" >&6; }
17861 if test "$supported" = "yes" ; then
17862 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17863 found="yes"
17864 fi
17865 fi
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881 xorg_testset_save_CFLAGS="$CFLAGS"
17882
17883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17887 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17888 then :
17889 printf %s "(cached) " >&6
17890 else $as_nop
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17893 int i;
17894 _ACEOF
17895 if ac_fn_c_try_compile "$LINENO"
17896 then :
17897 xorg_cv_cc_flag_unknown_warning_option=yes
17898 else $as_nop
17899 xorg_cv_cc_flag_unknown_warning_option=no
17900 fi
17901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17902 fi
17903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17904 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17906 CFLAGS="$xorg_testset_save_CFLAGS"
17907 fi
17908
17909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17912 fi
17913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17915 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17916 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17917 then :
17918 printf %s "(cached) " >&6
17919 else $as_nop
17920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921 /* end confdefs.h. */
17922 int i;
17923 _ACEOF
17924 if ac_fn_c_try_compile "$LINENO"
17925 then :
17926 xorg_cv_cc_flag_unused_command_line_argument=yes
17927 else $as_nop
17928 xorg_cv_cc_flag_unused_command_line_argument=no
17929 fi
17930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17931 fi
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17935 CFLAGS="$xorg_testset_save_CFLAGS"
17936 fi
17937
17938 found="no"
17939
17940 if test $found = "no" ; then
17941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17943 fi
17944
17945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17947 fi
17948
17949 CFLAGS="$CFLAGS -Wsequence-point"
17950
17951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17952 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17953 cacheid=xorg_cv_cc_flag__Wsequence_point
17954 if eval test \${$cacheid+y}
17955 then :
17956 printf %s "(cached) " >&6
17957 else $as_nop
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17960 int i;
17961 int
17962 main (void)
17963 {
17964
17965 ;
17966 return 0;
17967 }
17968 _ACEOF
17969 if ac_fn_c_try_link "$LINENO"
17970 then :
17971 eval $cacheid=yes
17972 else $as_nop
17973 eval $cacheid=no
17974 fi
17975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17976 conftest$ac_exeext conftest.$ac_ext
17977 fi
17978
17979
17980 CFLAGS="$xorg_testset_save_CFLAGS"
17981
17982 eval supported=\$$cacheid
17983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17984 printf "%s\n" "$supported" >&6; }
17985 if test "$supported" = "yes" ; then
17986 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17987 found="yes"
17988 fi
17989 fi
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005 xorg_testset_save_CFLAGS="$CFLAGS"
18006
18007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18011 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18012 then :
18013 printf %s "(cached) " >&6
18014 else $as_nop
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18017 int i;
18018 _ACEOF
18019 if ac_fn_c_try_compile "$LINENO"
18020 then :
18021 xorg_cv_cc_flag_unknown_warning_option=yes
18022 else $as_nop
18023 xorg_cv_cc_flag_unknown_warning_option=no
18024 fi
18025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18026 fi
18027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18030 CFLAGS="$xorg_testset_save_CFLAGS"
18031 fi
18032
18033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18036 fi
18037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18041 then :
18042 printf %s "(cached) " >&6
18043 else $as_nop
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18046 int i;
18047 _ACEOF
18048 if ac_fn_c_try_compile "$LINENO"
18049 then :
18050 xorg_cv_cc_flag_unused_command_line_argument=yes
18051 else $as_nop
18052 xorg_cv_cc_flag_unused_command_line_argument=no
18053 fi
18054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18055 fi
18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18059 CFLAGS="$xorg_testset_save_CFLAGS"
18060 fi
18061
18062 found="no"
18063
18064 if test $found = "no" ; then
18065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18067 fi
18068
18069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18071 fi
18072
18073 CFLAGS="$CFLAGS -Wreturn-type"
18074
18075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18076 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18077 cacheid=xorg_cv_cc_flag__Wreturn_type
18078 if eval test \${$cacheid+y}
18079 then :
18080 printf %s "(cached) " >&6
18081 else $as_nop
18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18084 int i;
18085 int
18086 main (void)
18087 {
18088
18089 ;
18090 return 0;
18091 }
18092 _ACEOF
18093 if ac_fn_c_try_link "$LINENO"
18094 then :
18095 eval $cacheid=yes
18096 else $as_nop
18097 eval $cacheid=no
18098 fi
18099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18100 conftest$ac_exeext conftest.$ac_ext
18101 fi
18102
18103
18104 CFLAGS="$xorg_testset_save_CFLAGS"
18105
18106 eval supported=\$$cacheid
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18108 printf "%s\n" "$supported" >&6; }
18109 if test "$supported" = "yes" ; then
18110 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18111 found="yes"
18112 fi
18113 fi
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129 xorg_testset_save_CFLAGS="$CFLAGS"
18130
18131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18134 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18135 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18136 then :
18137 printf %s "(cached) " >&6
18138 else $as_nop
18139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h. */
18141 int i;
18142 _ACEOF
18143 if ac_fn_c_try_compile "$LINENO"
18144 then :
18145 xorg_cv_cc_flag_unknown_warning_option=yes
18146 else $as_nop
18147 xorg_cv_cc_flag_unknown_warning_option=no
18148 fi
18149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18150 fi
18151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18152 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18154 CFLAGS="$xorg_testset_save_CFLAGS"
18155 fi
18156
18157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18160 fi
18161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18163 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18164 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18165 then :
18166 printf %s "(cached) " >&6
18167 else $as_nop
18168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169 /* end confdefs.h. */
18170 int i;
18171 _ACEOF
18172 if ac_fn_c_try_compile "$LINENO"
18173 then :
18174 xorg_cv_cc_flag_unused_command_line_argument=yes
18175 else $as_nop
18176 xorg_cv_cc_flag_unused_command_line_argument=no
18177 fi
18178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18179 fi
18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18181 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18183 CFLAGS="$xorg_testset_save_CFLAGS"
18184 fi
18185
18186 found="no"
18187
18188 if test $found = "no" ; then
18189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18191 fi
18192
18193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18195 fi
18196
18197 CFLAGS="$CFLAGS -Wtrigraphs"
18198
18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18200 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18201 cacheid=xorg_cv_cc_flag__Wtrigraphs
18202 if eval test \${$cacheid+y}
18203 then :
18204 printf %s "(cached) " >&6
18205 else $as_nop
18206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18207 /* end confdefs.h. */
18208 int i;
18209 int
18210 main (void)
18211 {
18212
18213 ;
18214 return 0;
18215 }
18216 _ACEOF
18217 if ac_fn_c_try_link "$LINENO"
18218 then :
18219 eval $cacheid=yes
18220 else $as_nop
18221 eval $cacheid=no
18222 fi
18223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18224 conftest$ac_exeext conftest.$ac_ext
18225 fi
18226
18227
18228 CFLAGS="$xorg_testset_save_CFLAGS"
18229
18230 eval supported=\$$cacheid
18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18232 printf "%s\n" "$supported" >&6; }
18233 if test "$supported" = "yes" ; then
18234 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18235 found="yes"
18236 fi
18237 fi
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253 xorg_testset_save_CFLAGS="$CFLAGS"
18254
18255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18258 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18259 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18260 then :
18261 printf %s "(cached) " >&6
18262 else $as_nop
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18265 int i;
18266 _ACEOF
18267 if ac_fn_c_try_compile "$LINENO"
18268 then :
18269 xorg_cv_cc_flag_unknown_warning_option=yes
18270 else $as_nop
18271 xorg_cv_cc_flag_unknown_warning_option=no
18272 fi
18273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18274 fi
18275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18278 CFLAGS="$xorg_testset_save_CFLAGS"
18279 fi
18280
18281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18284 fi
18285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18289 then :
18290 printf %s "(cached) " >&6
18291 else $as_nop
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18294 int i;
18295 _ACEOF
18296 if ac_fn_c_try_compile "$LINENO"
18297 then :
18298 xorg_cv_cc_flag_unused_command_line_argument=yes
18299 else $as_nop
18300 xorg_cv_cc_flag_unused_command_line_argument=no
18301 fi
18302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18303 fi
18304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18307 CFLAGS="$xorg_testset_save_CFLAGS"
18308 fi
18309
18310 found="no"
18311
18312 if test $found = "no" ; then
18313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18315 fi
18316
18317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18319 fi
18320
18321 CFLAGS="$CFLAGS -Warray-bounds"
18322
18323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18324 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18325 cacheid=xorg_cv_cc_flag__Warray_bounds
18326 if eval test \${$cacheid+y}
18327 then :
18328 printf %s "(cached) " >&6
18329 else $as_nop
18330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h. */
18332 int i;
18333 int
18334 main (void)
18335 {
18336
18337 ;
18338 return 0;
18339 }
18340 _ACEOF
18341 if ac_fn_c_try_link "$LINENO"
18342 then :
18343 eval $cacheid=yes
18344 else $as_nop
18345 eval $cacheid=no
18346 fi
18347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18348 conftest$ac_exeext conftest.$ac_ext
18349 fi
18350
18351
18352 CFLAGS="$xorg_testset_save_CFLAGS"
18353
18354 eval supported=\$$cacheid
18355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18356 printf "%s\n" "$supported" >&6; }
18357 if test "$supported" = "yes" ; then
18358 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18359 found="yes"
18360 fi
18361 fi
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377 xorg_testset_save_CFLAGS="$CFLAGS"
18378
18379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18383 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18384 then :
18385 printf %s "(cached) " >&6
18386 else $as_nop
18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h. */
18389 int i;
18390 _ACEOF
18391 if ac_fn_c_try_compile "$LINENO"
18392 then :
18393 xorg_cv_cc_flag_unknown_warning_option=yes
18394 else $as_nop
18395 xorg_cv_cc_flag_unknown_warning_option=no
18396 fi
18397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18398 fi
18399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18402 CFLAGS="$xorg_testset_save_CFLAGS"
18403 fi
18404
18405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18408 fi
18409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18413 then :
18414 printf %s "(cached) " >&6
18415 else $as_nop
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h. */
18418 int i;
18419 _ACEOF
18420 if ac_fn_c_try_compile "$LINENO"
18421 then :
18422 xorg_cv_cc_flag_unused_command_line_argument=yes
18423 else $as_nop
18424 xorg_cv_cc_flag_unused_command_line_argument=no
18425 fi
18426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18427 fi
18428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18429 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18431 CFLAGS="$xorg_testset_save_CFLAGS"
18432 fi
18433
18434 found="no"
18435
18436 if test $found = "no" ; then
18437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18439 fi
18440
18441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18443 fi
18444
18445 CFLAGS="$CFLAGS -Wwrite-strings"
18446
18447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18448 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18449 cacheid=xorg_cv_cc_flag__Wwrite_strings
18450 if eval test \${$cacheid+y}
18451 then :
18452 printf %s "(cached) " >&6
18453 else $as_nop
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456 int i;
18457 int
18458 main (void)
18459 {
18460
18461 ;
18462 return 0;
18463 }
18464 _ACEOF
18465 if ac_fn_c_try_link "$LINENO"
18466 then :
18467 eval $cacheid=yes
18468 else $as_nop
18469 eval $cacheid=no
18470 fi
18471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18472 conftest$ac_exeext conftest.$ac_ext
18473 fi
18474
18475
18476 CFLAGS="$xorg_testset_save_CFLAGS"
18477
18478 eval supported=\$$cacheid
18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18480 printf "%s\n" "$supported" >&6; }
18481 if test "$supported" = "yes" ; then
18482 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18483 found="yes"
18484 fi
18485 fi
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501 xorg_testset_save_CFLAGS="$CFLAGS"
18502
18503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18507 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18508 then :
18509 printf %s "(cached) " >&6
18510 else $as_nop
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18513 int i;
18514 _ACEOF
18515 if ac_fn_c_try_compile "$LINENO"
18516 then :
18517 xorg_cv_cc_flag_unknown_warning_option=yes
18518 else $as_nop
18519 xorg_cv_cc_flag_unknown_warning_option=no
18520 fi
18521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18522 fi
18523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18526 CFLAGS="$xorg_testset_save_CFLAGS"
18527 fi
18528
18529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18532 fi
18533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18537 then :
18538 printf %s "(cached) " >&6
18539 else $as_nop
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 int i;
18543 _ACEOF
18544 if ac_fn_c_try_compile "$LINENO"
18545 then :
18546 xorg_cv_cc_flag_unused_command_line_argument=yes
18547 else $as_nop
18548 xorg_cv_cc_flag_unused_command_line_argument=no
18549 fi
18550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18551 fi
18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18553 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18555 CFLAGS="$xorg_testset_save_CFLAGS"
18556 fi
18557
18558 found="no"
18559
18560 if test $found = "no" ; then
18561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18563 fi
18564
18565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18567 fi
18568
18569 CFLAGS="$CFLAGS -Waddress"
18570
18571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18572 printf %s "checking if $CC supports -Waddress... " >&6; }
18573 cacheid=xorg_cv_cc_flag__Waddress
18574 if eval test \${$cacheid+y}
18575 then :
18576 printf %s "(cached) " >&6
18577 else $as_nop
18578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h. */
18580 int i;
18581 int
18582 main (void)
18583 {
18584
18585 ;
18586 return 0;
18587 }
18588 _ACEOF
18589 if ac_fn_c_try_link "$LINENO"
18590 then :
18591 eval $cacheid=yes
18592 else $as_nop
18593 eval $cacheid=no
18594 fi
18595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18596 conftest$ac_exeext conftest.$ac_ext
18597 fi
18598
18599
18600 CFLAGS="$xorg_testset_save_CFLAGS"
18601
18602 eval supported=\$$cacheid
18603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18604 printf "%s\n" "$supported" >&6; }
18605 if test "$supported" = "yes" ; then
18606 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18607 found="yes"
18608 fi
18609 fi
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625 xorg_testset_save_CFLAGS="$CFLAGS"
18626
18627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18631 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18632 then :
18633 printf %s "(cached) " >&6
18634 else $as_nop
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h. */
18637 int i;
18638 _ACEOF
18639 if ac_fn_c_try_compile "$LINENO"
18640 then :
18641 xorg_cv_cc_flag_unknown_warning_option=yes
18642 else $as_nop
18643 xorg_cv_cc_flag_unknown_warning_option=no
18644 fi
18645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18646 fi
18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18650 CFLAGS="$xorg_testset_save_CFLAGS"
18651 fi
18652
18653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18656 fi
18657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18661 then :
18662 printf %s "(cached) " >&6
18663 else $as_nop
18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18665 /* end confdefs.h. */
18666 int i;
18667 _ACEOF
18668 if ac_fn_c_try_compile "$LINENO"
18669 then :
18670 xorg_cv_cc_flag_unused_command_line_argument=yes
18671 else $as_nop
18672 xorg_cv_cc_flag_unused_command_line_argument=no
18673 fi
18674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18675 fi
18676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18679 CFLAGS="$xorg_testset_save_CFLAGS"
18680 fi
18681
18682 found="no"
18683
18684 if test $found = "no" ; then
18685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18687 fi
18688
18689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18691 fi
18692
18693 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18694
18695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18696 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18697 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18698 if eval test \${$cacheid+y}
18699 then :
18700 printf %s "(cached) " >&6
18701 else $as_nop
18702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703 /* end confdefs.h. */
18704 int i;
18705 int
18706 main (void)
18707 {
18708
18709 ;
18710 return 0;
18711 }
18712 _ACEOF
18713 if ac_fn_c_try_link "$LINENO"
18714 then :
18715 eval $cacheid=yes
18716 else $as_nop
18717 eval $cacheid=no
18718 fi
18719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18720 conftest$ac_exeext conftest.$ac_ext
18721 fi
18722
18723
18724 CFLAGS="$xorg_testset_save_CFLAGS"
18725
18726 eval supported=\$$cacheid
18727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18728 printf "%s\n" "$supported" >&6; }
18729 if test "$supported" = "yes" ; then
18730 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18731 found="yes"
18732 fi
18733 fi
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749 xorg_testset_save_CFLAGS="$CFLAGS"
18750
18751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18754 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18755 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18756 then :
18757 printf %s "(cached) " >&6
18758 else $as_nop
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18761 int i;
18762 _ACEOF
18763 if ac_fn_c_try_compile "$LINENO"
18764 then :
18765 xorg_cv_cc_flag_unknown_warning_option=yes
18766 else $as_nop
18767 xorg_cv_cc_flag_unknown_warning_option=no
18768 fi
18769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18770 fi
18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18772 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18774 CFLAGS="$xorg_testset_save_CFLAGS"
18775 fi
18776
18777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18780 fi
18781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18783 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18784 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18785 then :
18786 printf %s "(cached) " >&6
18787 else $as_nop
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18790 int i;
18791 _ACEOF
18792 if ac_fn_c_try_compile "$LINENO"
18793 then :
18794 xorg_cv_cc_flag_unused_command_line_argument=yes
18795 else $as_nop
18796 xorg_cv_cc_flag_unused_command_line_argument=no
18797 fi
18798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18799 fi
18800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18803 CFLAGS="$xorg_testset_save_CFLAGS"
18804 fi
18805
18806 found="no"
18807
18808 if test $found = "no" ; then
18809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18811 fi
18812
18813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18815 fi
18816
18817 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18818
18819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18820 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18821 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18822 if eval test \${$cacheid+y}
18823 then :
18824 printf %s "(cached) " >&6
18825 else $as_nop
18826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18827 /* end confdefs.h. */
18828 int i;
18829 int
18830 main (void)
18831 {
18832
18833 ;
18834 return 0;
18835 }
18836 _ACEOF
18837 if ac_fn_c_try_link "$LINENO"
18838 then :
18839 eval $cacheid=yes
18840 else $as_nop
18841 eval $cacheid=no
18842 fi
18843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18844 conftest$ac_exeext conftest.$ac_ext
18845 fi
18846
18847
18848 CFLAGS="$xorg_testset_save_CFLAGS"
18849
18850 eval supported=\$$cacheid
18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18852 printf "%s\n" "$supported" >&6; }
18853 if test "$supported" = "yes" ; then
18854 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18855 found="yes"
18856 fi
18857 fi
18858
18859
18860 fi
18861
18862
18863
18864
18865
18866
18867
18868 CWARNFLAGS="$BASE_CFLAGS"
18869 if test "x$GCC" = xyes ; then
18870 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18871 fi
18872
18873
18874
18875
18876
18877
18878
18879
18880 # Check whether --enable-strict-compilation was given.
18881 if test ${enable_strict_compilation+y}
18882 then :
18883 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18884 else $as_nop
18885 STRICT_COMPILE=no
18886 fi
18887
18888
18889
18890
18891
18892
18893 STRICT_CFLAGS=""
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907 xorg_testset_save_CFLAGS="$CFLAGS"
18908
18909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18912 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18913 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18914 then :
18915 printf %s "(cached) " >&6
18916 else $as_nop
18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918 /* end confdefs.h. */
18919 int i;
18920 _ACEOF
18921 if ac_fn_c_try_compile "$LINENO"
18922 then :
18923 xorg_cv_cc_flag_unknown_warning_option=yes
18924 else $as_nop
18925 xorg_cv_cc_flag_unknown_warning_option=no
18926 fi
18927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18928 fi
18929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18930 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18932 CFLAGS="$xorg_testset_save_CFLAGS"
18933 fi
18934
18935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18938 fi
18939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18941 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18942 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18943 then :
18944 printf %s "(cached) " >&6
18945 else $as_nop
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18948 int i;
18949 _ACEOF
18950 if ac_fn_c_try_compile "$LINENO"
18951 then :
18952 xorg_cv_cc_flag_unused_command_line_argument=yes
18953 else $as_nop
18954 xorg_cv_cc_flag_unused_command_line_argument=no
18955 fi
18956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18957 fi
18958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18959 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18961 CFLAGS="$xorg_testset_save_CFLAGS"
18962 fi
18963
18964 found="no"
18965
18966 if test $found = "no" ; then
18967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18969 fi
18970
18971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18973 fi
18974
18975 CFLAGS="$CFLAGS -pedantic"
18976
18977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18978 printf %s "checking if $CC supports -pedantic... " >&6; }
18979 cacheid=xorg_cv_cc_flag__pedantic
18980 if eval test \${$cacheid+y}
18981 then :
18982 printf %s "(cached) " >&6
18983 else $as_nop
18984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985 /* end confdefs.h. */
18986 int i;
18987 int
18988 main (void)
18989 {
18990
18991 ;
18992 return 0;
18993 }
18994 _ACEOF
18995 if ac_fn_c_try_link "$LINENO"
18996 then :
18997 eval $cacheid=yes
18998 else $as_nop
18999 eval $cacheid=no
19000 fi
19001 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19002 conftest$ac_exeext conftest.$ac_ext
19003 fi
19004
19005
19006 CFLAGS="$xorg_testset_save_CFLAGS"
19007
19008 eval supported=\$$cacheid
19009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19010 printf "%s\n" "$supported" >&6; }
19011 if test "$supported" = "yes" ; then
19012 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19013 found="yes"
19014 fi
19015 fi
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031 xorg_testset_save_CFLAGS="$CFLAGS"
19032
19033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19036 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19037 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19038 then :
19039 printf %s "(cached) " >&6
19040 else $as_nop
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19043 int i;
19044 _ACEOF
19045 if ac_fn_c_try_compile "$LINENO"
19046 then :
19047 xorg_cv_cc_flag_unknown_warning_option=yes
19048 else $as_nop
19049 xorg_cv_cc_flag_unknown_warning_option=no
19050 fi
19051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19052 fi
19053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19054 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19056 CFLAGS="$xorg_testset_save_CFLAGS"
19057 fi
19058
19059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19062 fi
19063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19065 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19066 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19067 then :
19068 printf %s "(cached) " >&6
19069 else $as_nop
19070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19071 /* end confdefs.h. */
19072 int i;
19073 _ACEOF
19074 if ac_fn_c_try_compile "$LINENO"
19075 then :
19076 xorg_cv_cc_flag_unused_command_line_argument=yes
19077 else $as_nop
19078 xorg_cv_cc_flag_unused_command_line_argument=no
19079 fi
19080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19081 fi
19082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19083 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19085 CFLAGS="$xorg_testset_save_CFLAGS"
19086 fi
19087
19088 found="no"
19089
19090 if test $found = "no" ; then
19091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19093 fi
19094
19095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19097 fi
19098
19099 CFLAGS="$CFLAGS -Werror"
19100
19101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19102 printf %s "checking if $CC supports -Werror... " >&6; }
19103 cacheid=xorg_cv_cc_flag__Werror
19104 if eval test \${$cacheid+y}
19105 then :
19106 printf %s "(cached) " >&6
19107 else $as_nop
19108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19109 /* end confdefs.h. */
19110 int i;
19111 int
19112 main (void)
19113 {
19114
19115 ;
19116 return 0;
19117 }
19118 _ACEOF
19119 if ac_fn_c_try_link "$LINENO"
19120 then :
19121 eval $cacheid=yes
19122 else $as_nop
19123 eval $cacheid=no
19124 fi
19125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19126 conftest$ac_exeext conftest.$ac_ext
19127 fi
19128
19129
19130 CFLAGS="$xorg_testset_save_CFLAGS"
19131
19132 eval supported=\$$cacheid
19133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19134 printf "%s\n" "$supported" >&6; }
19135 if test "$supported" = "yes" ; then
19136 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19137 found="yes"
19138 fi
19139 fi
19140
19141 if test $found = "no" ; then
19142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19144 fi
19145
19146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19148 fi
19149
19150 CFLAGS="$CFLAGS -errwarn"
19151
19152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19153 printf %s "checking if $CC supports -errwarn... " >&6; }
19154 cacheid=xorg_cv_cc_flag__errwarn
19155 if eval test \${$cacheid+y}
19156 then :
19157 printf %s "(cached) " >&6
19158 else $as_nop
19159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19160 /* end confdefs.h. */
19161 int i;
19162 int
19163 main (void)
19164 {
19165
19166 ;
19167 return 0;
19168 }
19169 _ACEOF
19170 if ac_fn_c_try_link "$LINENO"
19171 then :
19172 eval $cacheid=yes
19173 else $as_nop
19174 eval $cacheid=no
19175 fi
19176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19177 conftest$ac_exeext conftest.$ac_ext
19178 fi
19179
19180
19181 CFLAGS="$xorg_testset_save_CFLAGS"
19182
19183 eval supported=\$$cacheid
19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19185 printf "%s\n" "$supported" >&6; }
19186 if test "$supported" = "yes" ; then
19187 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19188 found="yes"
19189 fi
19190 fi
19191
19192
19193
19194 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19195 # activate it with -Werror, so we add it here explicitly.
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209 xorg_testset_save_CFLAGS="$CFLAGS"
19210
19211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19214 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19215 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19216 then :
19217 printf %s "(cached) " >&6
19218 else $as_nop
19219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220 /* end confdefs.h. */
19221 int i;
19222 _ACEOF
19223 if ac_fn_c_try_compile "$LINENO"
19224 then :
19225 xorg_cv_cc_flag_unknown_warning_option=yes
19226 else $as_nop
19227 xorg_cv_cc_flag_unknown_warning_option=no
19228 fi
19229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19230 fi
19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19232 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19234 CFLAGS="$xorg_testset_save_CFLAGS"
19235 fi
19236
19237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19240 fi
19241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19243 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19244 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19245 then :
19246 printf %s "(cached) " >&6
19247 else $as_nop
19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19250 int i;
19251 _ACEOF
19252 if ac_fn_c_try_compile "$LINENO"
19253 then :
19254 xorg_cv_cc_flag_unused_command_line_argument=yes
19255 else $as_nop
19256 xorg_cv_cc_flag_unused_command_line_argument=no
19257 fi
19258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19259 fi
19260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19261 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19263 CFLAGS="$xorg_testset_save_CFLAGS"
19264 fi
19265
19266 found="no"
19267
19268 if test $found = "no" ; then
19269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19271 fi
19272
19273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19275 fi
19276
19277 CFLAGS="$CFLAGS -Werror=attributes"
19278
19279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19280 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19281 cacheid=xorg_cv_cc_flag__Werror_attributes
19282 if eval test \${$cacheid+y}
19283 then :
19284 printf %s "(cached) " >&6
19285 else $as_nop
19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h. */
19288 int i;
19289 int
19290 main (void)
19291 {
19292
19293 ;
19294 return 0;
19295 }
19296 _ACEOF
19297 if ac_fn_c_try_link "$LINENO"
19298 then :
19299 eval $cacheid=yes
19300 else $as_nop
19301 eval $cacheid=no
19302 fi
19303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19304 conftest$ac_exeext conftest.$ac_ext
19305 fi
19306
19307
19308 CFLAGS="$xorg_testset_save_CFLAGS"
19309
19310 eval supported=\$$cacheid
19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19312 printf "%s\n" "$supported" >&6; }
19313 if test "$supported" = "yes" ; then
19314 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19315 found="yes"
19316 fi
19317 fi
19318
19319
19320
19321 if test "x$STRICT_COMPILE" = "xyes"; then
19322 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19323 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19324 fi
19325
19326
19327
19328
19329
19330
19331 cat >>confdefs.h <<_ACEOF
19332 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19333 _ACEOF
19334
19335 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19336 if test "x$PVM" = "x"; then
19337 PVM="0"
19338 fi
19339
19340 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19341
19342 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19343 if test "x$PVP" = "x"; then
19344 PVP="0"
19345 fi
19346
19347 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19348
19349
19350
19351 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19352 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19353 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19354 touch \$(top_srcdir)/ChangeLog; \
19355 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19356
19357
19358
19359
19360 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19361 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19362 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19363 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19364 touch \$(top_srcdir)/INSTALL; \
19365 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19366
19367
19368
19369
19370
19371
19372 case $host_os in
19373 solaris*)
19374 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19375 # check for a man page file found in later versions that use
19376 # traditional section numbers instead
19377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19378 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19379 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19380 then :
19381 printf %s "(cached) " >&6
19382 else $as_nop
19383 test "$cross_compiling" = yes &&
19384 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19385 if test -r "/usr/share/man/man7/attributes.7"; then
19386 ac_cv_file__usr_share_man_man7_attributes_7=yes
19387 else
19388 ac_cv_file__usr_share_man_man7_attributes_7=no
19389 fi
19390 fi
19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19392 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19393 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19394 then :
19395 SYSV_MAN_SECTIONS=false
19396 else $as_nop
19397 SYSV_MAN_SECTIONS=true
19398 fi
19399
19400 ;;
19401 *) SYSV_MAN_SECTIONS=false ;;
19402 esac
19403
19404 if test x$APP_MAN_SUFFIX = x ; then
19405 APP_MAN_SUFFIX=1
19406 fi
19407 if test x$APP_MAN_DIR = x ; then
19408 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19409 fi
19410
19411 if test x$LIB_MAN_SUFFIX = x ; then
19412 LIB_MAN_SUFFIX=3
19413 fi
19414 if test x$LIB_MAN_DIR = x ; then
19415 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19416 fi
19417
19418 if test x$FILE_MAN_SUFFIX = x ; then
19419 case $SYSV_MAN_SECTIONS in
19420 true) FILE_MAN_SUFFIX=4 ;;
19421 *) FILE_MAN_SUFFIX=5 ;;
19422 esac
19423 fi
19424 if test x$FILE_MAN_DIR = x ; then
19425 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19426 fi
19427
19428 if test x$MISC_MAN_SUFFIX = x ; then
19429 case $SYSV_MAN_SECTIONS in
19430 true) MISC_MAN_SUFFIX=5 ;;
19431 *) MISC_MAN_SUFFIX=7 ;;
19432 esac
19433 fi
19434 if test x$MISC_MAN_DIR = x ; then
19435 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19436 fi
19437
19438 if test x$DRIVER_MAN_SUFFIX = x ; then
19439 case $SYSV_MAN_SECTIONS in
19440 true) DRIVER_MAN_SUFFIX=7 ;;
19441 *) DRIVER_MAN_SUFFIX=4 ;;
19442 esac
19443 fi
19444 if test x$DRIVER_MAN_DIR = x ; then
19445 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19446 fi
19447
19448 if test x$ADMIN_MAN_SUFFIX = x ; then
19449 case $SYSV_MAN_SECTIONS in
19450 true) ADMIN_MAN_SUFFIX=1m ;;
19451 *) ADMIN_MAN_SUFFIX=8 ;;
19452 esac
19453 fi
19454 if test x$ADMIN_MAN_DIR = x ; then
19455 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19456 fi
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472 XORG_MAN_PAGE="X Version 11"
19473
19474 MAN_SUBSTS="\
19475 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19476 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19477 -e 's|__xservername__|Xorg|g' \
19478 -e 's|__xconfigfile__|xorg.conf|g' \
19479 -e 's|__projectroot__|\$(prefix)|g' \
19480 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19481 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19482 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19483 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19484 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19485 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19486 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19487
19488
19489
19490 # Check whether --enable-silent-rules was given.
19491 if test ${enable_silent_rules+y}
19492 then :
19493 enableval=$enable_silent_rules;
19494 fi
19495
19496 case $enable_silent_rules in # (((
19497 yes) AM_DEFAULT_VERBOSITY=0;;
19498 no) AM_DEFAULT_VERBOSITY=1;;
19499 *) AM_DEFAULT_VERBOSITY=0;;
19500 esac
19501 am_make=${MAKE-make}
19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19503 printf %s "checking whether $am_make supports nested variables... " >&6; }
19504 if test ${am_cv_make_support_nested_variables+y}
19505 then :
19506 printf %s "(cached) " >&6
19507 else $as_nop
19508 if printf "%s\n" 'TRUE=$(BAR$(V))
19509 BAR0=false
19510 BAR1=true
19511 V=1
19512 am__doit:
19513 @$(TRUE)
19514 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19515 am_cv_make_support_nested_variables=yes
19516 else
19517 am_cv_make_support_nested_variables=no
19518 fi
19519 fi
19520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19521 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19522 if test $am_cv_make_support_nested_variables = yes; then
19523 AM_V='$(V)'
19524 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19525 else
19526 AM_V=$AM_DEFAULT_VERBOSITY
19527 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19528 fi
19529 AM_BACKSLASH='\'
19530
19531
19532
19533 # Check whether --enable-malloc0returnsnull was given.
19534 if test ${enable_malloc0returnsnull+y}
19535 then :
19536 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19537 else $as_nop
19538 MALLOC_ZERO_RETURNS_NULL=auto
19539 fi
19540
19541
19542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19543 printf %s "checking whether malloc(0) returns NULL... " >&6; }
19544 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19545 if test ${xorg_cv_malloc0_returns_null+y}
19546 then :
19547 printf %s "(cached) " >&6
19548 else $as_nop
19549 if test "$cross_compiling" = yes
19550 then :
19551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19552 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19553 as_fn_error $? "cannot run test program while cross compiling
19554 See \`config.log' for more details" "$LINENO" 5; }
19555 else $as_nop
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19558
19559 #include <stdlib.h>
19560
19561 int
19562 main (void)
19563 {
19564
19565 char *m0, *r0, *c0, *p;
19566 m0 = malloc(0);
19567 p = malloc(10);
19568 r0 = realloc(p,0);
19569 c0 = calloc(0,10);
19570 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19571
19572 ;
19573 return 0;
19574 }
19575 _ACEOF
19576 if ac_fn_c_try_run "$LINENO"
19577 then :
19578 xorg_cv_malloc0_returns_null=yes
19579 else $as_nop
19580 xorg_cv_malloc0_returns_null=no
19581 fi
19582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19583 conftest.$ac_objext conftest.beam conftest.$ac_ext
19584 fi
19585
19586 fi
19587
19588 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19589 fi
19590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19591 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19592
19593 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19594 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19595 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19596 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19597 else
19598 MALLOC_ZERO_CFLAGS=""
19599 XMALLOC_ZERO_CFLAGS=""
19600 XTMALLOC_ZERO_CFLAGS=""
19601 fi
19602
19603
19604
19605
19606
19607
19608 # Obtain compiler/linker options for dependencies
19609
19610 pkg_failed=no
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FS" >&5
19612 printf %s "checking for FS... " >&6; }
19613
19614 if test -n "$FS_CFLAGS"; then
19615 pkg_cv_FS_CFLAGS="$FS_CFLAGS"
19616 elif test -n "$PKG_CONFIG"; then
19617 if test -n "$PKG_CONFIG" && \
19618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
19619 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
19620 ac_status=$?
19621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622 test $ac_status = 0; }; then
19623 pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
19624 test "x$?" != "x0" && pkg_failed=yes
19625 else
19626 pkg_failed=yes
19627 fi
19628 else
19629 pkg_failed=untried
19630 fi
19631 if test -n "$FS_LIBS"; then
19632 pkg_cv_FS_LIBS="$FS_LIBS"
19633 elif test -n "$PKG_CONFIG"; then
19634 if test -n "$PKG_CONFIG" && \
19635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
19636 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
19637 ac_status=$?
19638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19639 test $ac_status = 0; }; then
19640 pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
19641 test "x$?" != "x0" && pkg_failed=yes
19642 else
19643 pkg_failed=yes
19644 fi
19645 else
19646 pkg_failed=untried
19647 fi
19648
19649
19650
19651 if test $pkg_failed = yes; then
19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653 printf "%s\n" "no" >&6; }
19654
19655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19656 _pkg_short_errors_supported=yes
19657 else
19658 _pkg_short_errors_supported=no
19659 fi
19660 if test $_pkg_short_errors_supported = yes; then
19661 FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
19662 else
19663 FS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
19664 fi
19665 # Put the nasty error message in config.log where it belongs
19666 echo "$FS_PKG_ERRORS" >&5
19667
19668 as_fn_error $? "Package requirements (xproto >= 7.0.17 fontsproto xtrans) were not met:
19669
19670 $FS_PKG_ERRORS
19671
19672 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19673 installed software in a non-standard prefix.
19674
19675 Alternatively, you may set the environment variables FS_CFLAGS
19676 and FS_LIBS to avoid the need to call pkg-config.
19677 See the pkg-config man page for more details." "$LINENO" 5
19678 elif test $pkg_failed = untried; then
19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19680 printf "%s\n" "no" >&6; }
19681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19682 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19683 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19684 is in your PATH or set the PKG_CONFIG environment variable to the full
19685 path to pkg-config.
19686
19687 Alternatively, you may set the environment variables FS_CFLAGS
19688 and FS_LIBS to avoid the need to call pkg-config.
19689 See the pkg-config man page for more details.
19690
19691 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19692 See \`config.log' for more details" "$LINENO" 5; }
19693 else
19694 FS_CFLAGS=$pkg_cv_FS_CFLAGS
19695 FS_LIBS=$pkg_cv_FS_LIBS
19696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19697 printf "%s\n" "yes" >&6; }
19698
19699 fi
19700
19701 # Find needed libraries for TCP sockets (pre-pended in $LIBS)
19702
19703
19704 case $host_os in
19705 mingw*) unixdef="no" ;;
19706 *) unixdef="yes" ;;
19707 esac
19708 # Check whether --enable-unix-transport was given.
19709 if test ${enable_unix_transport+y}
19710 then :
19711 enableval=$enable_unix_transport; UNIXCONN=$enableval
19712 else $as_nop
19713 UNIXCONN=$unixdef
19714 fi
19715
19716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19717 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
19718 if test "$UNIXCONN" = "yes"; then
19719
19720 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
19721
19722 fi
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19724 printf "%s\n" "$UNIXCONN" >&6; }
19725 # Check whether --enable-tcp-transport was given.
19726 if test ${enable_tcp_transport+y}
19727 then :
19728 enableval=$enable_tcp_transport; TCPCONN=$enableval
19729 else $as_nop
19730 TCPCONN=yes
19731 fi
19732
19733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19734 printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
19735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19736 printf "%s\n" "$TCPCONN" >&6; }
19737 if test "$TCPCONN" = "yes"; then
19738
19739 printf "%s\n" "#define TCPCONN 1" >>confdefs.h
19740
19741
19742 # SVR4 hides these in libraries other than libc
19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19744 printf %s "checking for library containing socket... " >&6; }
19745 if test ${ac_cv_search_socket+y}
19746 then :
19747 printf %s "(cached) " >&6
19748 else $as_nop
19749 ac_func_search_save_LIBS=$LIBS
19750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h. */
19752
19753 /* Override any GCC internal prototype to avoid an error.
19754 Use char because int might match the return type of a GCC
19755 builtin and then its argument prototype would still apply. */
19756 char socket ();
19757 int
19758 main (void)
19759 {
19760 return socket ();
19761 ;
19762 return 0;
19763 }
19764 _ACEOF
19765 for ac_lib in '' socket
19766 do
19767 if test -z "$ac_lib"; then
19768 ac_res="none required"
19769 else
19770 ac_res=-l$ac_lib
19771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19772 fi
19773 if ac_fn_c_try_link "$LINENO"
19774 then :
19775 ac_cv_search_socket=$ac_res
19776 fi
19777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19778 conftest$ac_exeext
19779 if test ${ac_cv_search_socket+y}
19780 then :
19781 break
19782 fi
19783 done
19784 if test ${ac_cv_search_socket+y}
19785 then :
19786
19787 else $as_nop
19788 ac_cv_search_socket=no
19789 fi
19790 rm conftest.$ac_ext
19791 LIBS=$ac_func_search_save_LIBS
19792 fi
19793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19794 printf "%s\n" "$ac_cv_search_socket" >&6; }
19795 ac_res=$ac_cv_search_socket
19796 if test "$ac_res" != no
19797 then :
19798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19799
19800 fi
19801
19802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19803 printf %s "checking for library containing gethostbyname... " >&6; }
19804 if test ${ac_cv_search_gethostbyname+y}
19805 then :
19806 printf %s "(cached) " >&6
19807 else $as_nop
19808 ac_func_search_save_LIBS=$LIBS
19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19811
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19815 char gethostbyname ();
19816 int
19817 main (void)
19818 {
19819 return gethostbyname ();
19820 ;
19821 return 0;
19822 }
19823 _ACEOF
19824 for ac_lib in '' nsl
19825 do
19826 if test -z "$ac_lib"; then
19827 ac_res="none required"
19828 else
19829 ac_res=-l$ac_lib
19830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19831 fi
19832 if ac_fn_c_try_link "$LINENO"
19833 then :
19834 ac_cv_search_gethostbyname=$ac_res
19835 fi
19836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19837 conftest$ac_exeext
19838 if test ${ac_cv_search_gethostbyname+y}
19839 then :
19840 break
19841 fi
19842 done
19843 if test ${ac_cv_search_gethostbyname+y}
19844 then :
19845
19846 else $as_nop
19847 ac_cv_search_gethostbyname=no
19848 fi
19849 rm conftest.$ac_ext
19850 LIBS=$ac_func_search_save_LIBS
19851 fi
19852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19853 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
19854 ac_res=$ac_cv_search_gethostbyname
19855 if test "$ac_res" != no
19856 then :
19857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19858
19859 fi
19860
19861 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19863 printf %s "checking for main in -lws2_32... " >&6; }
19864 if test ${ac_cv_lib_ws2_32_main+y}
19865 then :
19866 printf %s "(cached) " >&6
19867 else $as_nop
19868 ac_check_lib_save_LIBS=$LIBS
19869 LIBS="-lws2_32 $LIBS"
19870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19871 /* end confdefs.h. */
19872
19873
19874 int
19875 main (void)
19876 {
19877 return main ();
19878 ;
19879 return 0;
19880 }
19881 _ACEOF
19882 if ac_fn_c_try_link "$LINENO"
19883 then :
19884 ac_cv_lib_ws2_32_main=yes
19885 else $as_nop
19886 ac_cv_lib_ws2_32_main=no
19887 fi
19888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19889 conftest$ac_exeext conftest.$ac_ext
19890 LIBS=$ac_check_lib_save_LIBS
19891 fi
19892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19893 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
19894 if test "x$ac_cv_lib_ws2_32_main" = xyes
19895 then :
19896 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
19897
19898 LIBS="-lws2_32 $LIBS"
19899
19900 fi
19901
19902 fi
19903
19904 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19905 # Check whether --enable-ipv6 was given.
19906 if test ${enable_ipv6+y}
19907 then :
19908 enableval=$enable_ipv6; IPV6CONN=$enableval
19909 else $as_nop
19910 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19911 if test "x$ac_cv_func_getaddrinfo" = xyes
19912 then :
19913 IPV6CONN=yes
19914 else $as_nop
19915 IPV6CONN=no
19916 fi
19917
19918 fi
19919
19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
19921 printf %s "checking if IPv6 support should be built... " >&6; }
19922 if test "$IPV6CONN" = "yes"; then
19923
19924 printf "%s\n" "#define IPv6 1" >>confdefs.h
19925
19926 fi
19927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
19928 printf "%s\n" "$IPV6CONN" >&6; }
19929
19930 # 4.3BSD-Reno added a new member to struct sockaddr_in
19931 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
19932 #include <sys/types.h>
19933 #include <sys/socket.h>
19934 #include <netinet/in.h>
19935
19936 "
19937 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
19938 then :
19939
19940 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
19941
19942 fi
19943
19944
19945 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
19946 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19947 $ac_includes_default
19948 #include <sys/socket.h>
19949 "
19950 if test "x$ac_cv_type_socklen_t" = xyes
19951 then :
19952
19953 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
19954
19955
19956 fi
19957
19958
19959 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19960 # _XOPEN_SOURCE to get it (such as on Solaris)
19961 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19962 $ac_includes_default
19963 #include <sys/socket.h>
19964
19965 "
19966 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
19967 then :
19968
19969 fi
19970
19971 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19972 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19973 unset ac_cv_member_struct_msghdr_msg_control
19974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19975 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19976 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19977 #define _XOPEN_SOURCE 600
19978 $ac_includes_default
19979 #include <sys/socket.h>
19980
19981 "
19982 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
19983 then :
19984
19985 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
19986
19987
19988 fi
19989
19990 fi
19991 # If that didn't work, fall back to XPG5/UNIX98 with C89
19992 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19993 unset ac_cv_member_struct_msghdr_msg_control
19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19995 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19996 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19997 #define _XOPEN_SOURCE 500
19998 $ac_includes_default
19999 #include <sys/socket.h>
20000
20001 "
20002 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20003 then :
20004
20005 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
20006
20007
20008 fi
20009
20010 fi
20011
20012
20013
20014 fi
20015 case $host_os in
20016 solaris*) localdef="yes" ;;
20017 *) localdef="no" ;;
20018 esac
20019 # Check whether --enable-local-transport was given.
20020 if test ${enable_local_transport+y}
20021 then :
20022 enableval=$enable_local_transport; LOCALCONN=$enableval
20023 else $as_nop
20024 LOCALCONN=$localdef
20025 fi
20026
20027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20028 printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
20029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20030 printf "%s\n" "$LOCALCONN" >&6; }
20031 if test "$LOCALCONN" = "yes"; then
20032
20033 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
20034
20035 fi
20036
20037 # Other functions Xtrans may need
20038 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20039 if test "x$ac_cv_func_strcasecmp" = xyes
20040 then :
20041 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
20042
20043 fi
20044 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20045 if test "x$ac_cv_func_strlcpy" = xyes
20046 then :
20047 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20048
20049 fi
20050
20051
20052
20053
20054 # Checks for library functions.
20055 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20056 if test "x$ac_cv_func_strlcpy" = xyes
20057 then :
20058 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20059
20060 fi
20061 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
20062 if test "x$ac_cv_func_strnlen" = xyes
20063 then :
20064 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
20065
20066 fi
20067
20068 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20069 if test "x$ac_cv_func_reallocarray" = xyes
20070 then :
20071 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20072
20073 else $as_nop
20074 case " $LIBOBJS " in
20075 *" reallocarray.$ac_objext "* ) ;;
20076 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20077 ;;
20078 esac
20079
20080 fi
20081
20082
20083 # Allow checking code with lint, sparse, etc.
20084
20085
20086
20087
20088
20089 # Check whether --with-lint was given.
20090 if test ${with_lint+y}
20091 then :
20092 withval=$with_lint; use_lint=$withval
20093 else $as_nop
20094 use_lint=no
20095 fi
20096
20097
20098 # Obtain platform specific info like program name and options
20099 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
20100 case $host_os in
20101 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20102 lint_name=splint
20103 lint_options="-badflag"
20104 ;;
20105 *freebsd* | *netbsd*)
20106 lint_name=lint
20107 lint_options="-u -b"
20108 ;;
20109 *solaris*)
20110 lint_name=lint
20111 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20112 ;;
20113 esac
20114
20115 # Test for the presence of the program (either guessed by the code or spelled out by the user)
20116 if test "x$use_lint" = x"yes" ; then
20117 # Extract the first word of "$lint_name", so it can be a program name with args.
20118 set dummy $lint_name; ac_word=$2
20119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20120 printf %s "checking for $ac_word... " >&6; }
20121 if test ${ac_cv_path_LINT+y}
20122 then :
20123 printf %s "(cached) " >&6
20124 else $as_nop
20125 case $LINT in
20126 [\\/]* | ?:[\\/]*)
20127 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20128 ;;
20129 *)
20130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20131 for as_dir in $PATH
20132 do
20133 IFS=$as_save_IFS
20134 case $as_dir in #(((
20135 '') as_dir=./ ;;
20136 */) ;;
20137 *) as_dir=$as_dir/ ;;
20138 esac
20139 for ac_exec_ext in '' $ac_executable_extensions; do
20140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20141 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20143 break 2
20144 fi
20145 done
20146 done
20147 IFS=$as_save_IFS
20148
20149 ;;
20150 esac
20151 fi
20152 LINT=$ac_cv_path_LINT
20153 if test -n "$LINT"; then
20154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20155 printf "%s\n" "$LINT" >&6; }
20156 else
20157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20158 printf "%s\n" "no" >&6; }
20159 fi
20160
20161
20162 if test "x$LINT" = "x"; then
20163 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20164 fi
20165 elif test "x$use_lint" = x"no" ; then
20166 if test "x$LINT" != "x"; then
20167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20168 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20169 fi
20170 else
20171 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20172 fi
20173
20174 # User supplied flags override default flags
20175 if test "x$LINT_FLAGS" != "x"; then
20176 lint_options=$LINT_FLAGS
20177 fi
20178
20179 LINT_FLAGS=$lint_options
20180
20181 if test "x$LINT" != x; then
20182 LINT_TRUE=
20183 LINT_FALSE='#'
20184 else
20185 LINT_TRUE='#'
20186 LINT_FALSE=
20187 fi
20188
20189
20190
20191
20192
20193 # Check whether --enable-lint-library was given.
20194 if test ${enable_lint_library+y}
20195 then :
20196 enableval=$enable_lint_library; make_lint_lib=$enableval
20197 else $as_nop
20198 make_lint_lib=no
20199 fi
20200
20201
20202 if test "x$make_lint_lib" = x"yes" ; then
20203 LINTLIB=llib-lFS.ln
20204 if test "x$LINT" = "x"; then
20205 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20206 fi
20207 elif test "x$make_lint_lib" != x"no" ; then
20208 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20209 fi
20210
20211
20212 if test x$make_lint_lib != xno; then
20213 MAKE_LINT_LIB_TRUE=
20214 MAKE_LINT_LIB_FALSE='#'
20215 else
20216 MAKE_LINT_LIB_TRUE='#'
20217 MAKE_LINT_LIB_FALSE=
20218 fi
20219
20220
20221
20222
20223 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile libfs.pc"
20224
20225 cat >confcache <<\_ACEOF
20226 # This file is a shell script that caches the results of configure
20227 # tests run on this system so they can be shared between configure
20228 # scripts and configure runs, see configure's option --config-cache.
20229 # It is not useful on other systems. If it contains results you don't
20230 # want to keep, you may remove or edit it.
20231 #
20232 # config.status only pays attention to the cache file if you give it
20233 # the --recheck option to rerun configure.
20234 #
20235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20237 # following values.
20238
20239 _ACEOF
20240
20241 # The following way of writing the cache mishandles newlines in values,
20242 # but we know of no workaround that is simple, portable, and efficient.
20243 # So, we kill variables containing newlines.
20244 # Ultrix sh set writes to stderr and can't be redirected directly,
20245 # and sets the high bit in the cache file unless we assign to the vars.
20246 (
20247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20248 eval ac_val=\$$ac_var
20249 case $ac_val in #(
20250 *${as_nl}*)
20251 case $ac_var in #(
20252 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20253 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20254 esac
20255 case $ac_var in #(
20256 _ | IFS | as_nl) ;; #(
20257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20258 *) { eval $ac_var=; unset $ac_var;} ;;
20259 esac ;;
20260 esac
20261 done
20262
20263 (set) 2>&1 |
20264 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20265 *${as_nl}ac_space=\ *)
20266 # `set' does not quote correctly, so add quotes: double-quote
20267 # substitution turns \\\\ into \\, and sed turns \\ into \.
20268 sed -n \
20269 "s/'/'\\\\''/g;
20270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20271 ;; #(
20272 *)
20273 # `set' quotes correctly as required by POSIX, so do not add quotes.
20274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20275 ;;
20276 esac |
20277 sort
20278 ) |
20279 sed '
20280 /^ac_cv_env_/b end
20281 t clear
20282 :clear
20283 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20284 t end
20285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20286 :end' >>confcache
20287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20288 if test -w "$cache_file"; then
20289 if test "x$cache_file" != "x/dev/null"; then
20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20291 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20292 if test ! -f "$cache_file" || test -h "$cache_file"; then
20293 cat confcache >"$cache_file"
20294 else
20295 case $cache_file in #(
20296 */* | ?:*)
20297 mv -f confcache "$cache_file"$$ &&
20298 mv -f "$cache_file"$$ "$cache_file" ;; #(
20299 *)
20300 mv -f confcache "$cache_file" ;;
20301 esac
20302 fi
20303 fi
20304 else
20305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20306 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20307 fi
20308 fi
20309 rm -f confcache
20310
20311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20312 # Let make expand exec_prefix.
20313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20314
20315 DEFS=-DHAVE_CONFIG_H
20316
20317 ac_libobjs=
20318 ac_ltlibobjs=
20319 U=
20320 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20321 # 1. Remove the extension, and $U if already installed.
20322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20323 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20325 # will be set to the directory where LIBOBJS objects are built.
20326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20328 done
20329 LIBOBJS=$ac_libobjs
20330
20331 LTLIBOBJS=$ac_ltlibobjs
20332
20333
20334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20335 printf %s "checking that generated files are newer than configure... " >&6; }
20336 if test -n "$am_sleep_pid"; then
20337 # Hide warnings about reused PIDs.
20338 wait $am_sleep_pid 2>/dev/null
20339 fi
20340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20341 printf "%s\n" "done" >&6; }
20342 if test -n "$EXEEXT"; then
20343 am__EXEEXT_TRUE=
20344 am__EXEEXT_FALSE='#'
20345 else
20346 am__EXEEXT_TRUE='#'
20347 am__EXEEXT_FALSE=
20348 fi
20349
20350 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20351 as_fn_error $? "conditional \"AMDEP\" was never defined.
20352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20353 fi
20354 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20355 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20357 fi
20358 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20359 as_fn_error $? "conditional \"LINT\" was never defined.
20360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20361 fi
20362 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20363 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20365 fi
20366
20367 : "${CONFIG_STATUS=./config.status}"
20368 ac_write_fail=0
20369 ac_clean_files_save=$ac_clean_files
20370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20372 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20373 as_write_fail=0
20374 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20375 #! $SHELL
20376 # Generated by $as_me.
20377 # Run this file to recreate the current configuration.
20378 # Compiler output produced by configure, useful for debugging
20379 # configure, is in config.log if it exists.
20380
20381 debug=false
20382 ac_cs_recheck=false
20383 ac_cs_silent=false
20384
20385 SHELL=\${CONFIG_SHELL-$SHELL}
20386 export SHELL
20387 _ASEOF
20388 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20389 ## -------------------- ##
20390 ## M4sh Initialization. ##
20391 ## -------------------- ##
20392
20393 # Be more Bourne compatible
20394 DUALCASE=1; export DUALCASE # for MKS sh
20395 as_nop=:
20396 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20397 then :
20398 emulate sh
20399 NULLCMD=:
20400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20401 # is contrary to our usage. Disable this feature.
20402 alias -g '${1+"$@"}'='"$@"'
20403 setopt NO_GLOB_SUBST
20404 else $as_nop
20405 case `(set -o) 2>/dev/null` in #(
20406 *posix*) :
20407 set -o posix ;; #(
20408 *) :
20409 ;;
20410 esac
20411 fi
20412
20413
20414
20415 # Reset variables that may have inherited troublesome values from
20416 # the environment.
20417
20418 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20419 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20420 # side effect of setting IFS to empty, thus disabling word splitting.)
20421 # Quoting is to prevent editors from complaining about space-tab.
20422 as_nl='
20423 '
20424 export as_nl
20425 IFS=" "" $as_nl"
20426
20427 PS1='$ '
20428 PS2='> '
20429 PS4='+ '
20430
20431 # Ensure predictable behavior from utilities with locale-dependent output.
20432 LC_ALL=C
20433 export LC_ALL
20434 LANGUAGE=C
20435 export LANGUAGE
20436
20437 # We cannot yet rely on "unset" to work, but we need these variables
20438 # to be unset--not just set to an empty or harmless value--now, to
20439 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20440 # also avoids known problems related to "unset" and subshell syntax
20441 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20442 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20443 do eval test \${$as_var+y} \
20444 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20445 done
20446
20447 # Ensure that fds 0, 1, and 2 are open.
20448 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20449 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20450 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20451
20452 # The user is always right.
20453 if ${PATH_SEPARATOR+false} :; then
20454 PATH_SEPARATOR=:
20455 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20456 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20457 PATH_SEPARATOR=';'
20458 }
20459 fi
20460
20461
20462 # Find who we are. Look in the path if we contain no directory separator.
20463 as_myself=
20464 case $0 in #((
20465 *[\\/]* ) as_myself=$0 ;;
20466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20467 for as_dir in $PATH
20468 do
20469 IFS=$as_save_IFS
20470 case $as_dir in #(((
20471 '') as_dir=./ ;;
20472 */) ;;
20473 *) as_dir=$as_dir/ ;;
20474 esac
20475 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20476 done
20477 IFS=$as_save_IFS
20478
20479 ;;
20480 esac
20481 # We did not find ourselves, most probably we were run as `sh COMMAND'
20482 # in which case we are not to be found in the path.
20483 if test "x$as_myself" = x; then
20484 as_myself=$0
20485 fi
20486 if test ! -f "$as_myself"; then
20487 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20488 exit 1
20489 fi
20490
20491
20492
20493 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20494 # ----------------------------------------
20495 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20496 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20497 # script with STATUS, using 1 if that was 0.
20498 as_fn_error ()
20499 {
20500 as_status=$1; test $as_status -eq 0 && as_status=1
20501 if test "$4"; then
20502 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20504 fi
20505 printf "%s\n" "$as_me: error: $2" >&2
20506 as_fn_exit $as_status
20507 } # as_fn_error
20508
20509
20510
20511 # as_fn_set_status STATUS
20512 # -----------------------
20513 # Set $? to STATUS, without forking.
20514 as_fn_set_status ()
20515 {
20516 return $1
20517 } # as_fn_set_status
20518
20519 # as_fn_exit STATUS
20520 # -----------------
20521 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20522 as_fn_exit ()
20523 {
20524 set +e
20525 as_fn_set_status $1
20526 exit $1
20527 } # as_fn_exit
20528
20529 # as_fn_unset VAR
20530 # ---------------
20531 # Portably unset VAR.
20532 as_fn_unset ()
20533 {
20534 { eval $1=; unset $1;}
20535 }
20536 as_unset=as_fn_unset
20537
20538 # as_fn_append VAR VALUE
20539 # ----------------------
20540 # Append the text in VALUE to the end of the definition contained in VAR. Take
20541 # advantage of any shell optimizations that allow amortized linear growth over
20542 # repeated appends, instead of the typical quadratic growth present in naive
20543 # implementations.
20544 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20545 then :
20546 eval 'as_fn_append ()
20547 {
20548 eval $1+=\$2
20549 }'
20550 else $as_nop
20551 as_fn_append ()
20552 {
20553 eval $1=\$$1\$2
20554 }
20555 fi # as_fn_append
20556
20557 # as_fn_arith ARG...
20558 # ------------------
20559 # Perform arithmetic evaluation on the ARGs, and store the result in the
20560 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20561 # must be portable across $(()) and expr.
20562 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20563 then :
20564 eval 'as_fn_arith ()
20565 {
20566 as_val=$(( $* ))
20567 }'
20568 else $as_nop
20569 as_fn_arith ()
20570 {
20571 as_val=`expr "$@" || test $? -eq 1`
20572 }
20573 fi # as_fn_arith
20574
20575
20576 if expr a : '\(a\)' >/dev/null 2>&1 &&
20577 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20578 as_expr=expr
20579 else
20580 as_expr=false
20581 fi
20582
20583 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20584 as_basename=basename
20585 else
20586 as_basename=false
20587 fi
20588
20589 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20590 as_dirname=dirname
20591 else
20592 as_dirname=false
20593 fi
20594
20595 as_me=`$as_basename -- "$0" ||
20596 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20597 X"$0" : 'X\(//\)$' \| \
20598 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20599 printf "%s\n" X/"$0" |
20600 sed '/^.*\/\([^/][^/]*\)\/*$/{
20601 s//\1/
20602 q
20603 }
20604 /^X\/\(\/\/\)$/{
20605 s//\1/
20606 q
20607 }
20608 /^X\/\(\/\).*/{
20609 s//\1/
20610 q
20611 }
20612 s/.*/./; q'`
20613
20614 # Avoid depending upon Character Ranges.
20615 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20618 as_cr_digits='0123456789'
20619 as_cr_alnum=$as_cr_Letters$as_cr_digits
20620
20621
20622 # Determine whether it's possible to make 'echo' print without a newline.
20623 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20624 # for compatibility with existing Makefiles.
20625 ECHO_C= ECHO_N= ECHO_T=
20626 case `echo -n x` in #(((((
20627 -n*)
20628 case `echo 'xy\c'` in
20629 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20630 xy) ECHO_C='\c';;
20631 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20632 ECHO_T=' ';;
20633 esac;;
20634 *)
20635 ECHO_N='-n';;
20636 esac
20637
20638 # For backward compatibility with old third-party macros, we provide
20639 # the shell variables $as_echo and $as_echo_n. New code should use
20640 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20641 as_echo='printf %s\n'
20642 as_echo_n='printf %s'
20643
20644 rm -f conf$$ conf$$.exe conf$$.file
20645 if test -d conf$$.dir; then
20646 rm -f conf$$.dir/conf$$.file
20647 else
20648 rm -f conf$$.dir
20649 mkdir conf$$.dir 2>/dev/null
20650 fi
20651 if (echo >conf$$.file) 2>/dev/null; then
20652 if ln -s conf$$.file conf$$ 2>/dev/null; then
20653 as_ln_s='ln -s'
20654 # ... but there are two gotchas:
20655 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20656 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20657 # In both cases, we have to default to `cp -pR'.
20658 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20659 as_ln_s='cp -pR'
20660 elif ln conf$$.file conf$$ 2>/dev/null; then
20661 as_ln_s=ln
20662 else
20663 as_ln_s='cp -pR'
20664 fi
20665 else
20666 as_ln_s='cp -pR'
20667 fi
20668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20669 rmdir conf$$.dir 2>/dev/null
20670
20671
20672 # as_fn_mkdir_p
20673 # -------------
20674 # Create "$as_dir" as a directory, including parents if necessary.
20675 as_fn_mkdir_p ()
20676 {
20677
20678 case $as_dir in #(
20679 -*) as_dir=./$as_dir;;
20680 esac
20681 test -d "$as_dir" || eval $as_mkdir_p || {
20682 as_dirs=
20683 while :; do
20684 case $as_dir in #(
20685 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20686 *) as_qdir=$as_dir;;
20687 esac
20688 as_dirs="'$as_qdir' $as_dirs"
20689 as_dir=`$as_dirname -- "$as_dir" ||
20690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20691 X"$as_dir" : 'X\(//\)[^/]' \| \
20692 X"$as_dir" : 'X\(//\)$' \| \
20693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20694 printf "%s\n" X"$as_dir" |
20695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20696 s//\1/
20697 q
20698 }
20699 /^X\(\/\/\)[^/].*/{
20700 s//\1/
20701 q
20702 }
20703 /^X\(\/\/\)$/{
20704 s//\1/
20705 q
20706 }
20707 /^X\(\/\).*/{
20708 s//\1/
20709 q
20710 }
20711 s/.*/./; q'`
20712 test -d "$as_dir" && break
20713 done
20714 test -z "$as_dirs" || eval "mkdir $as_dirs"
20715 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20716
20717
20718 } # as_fn_mkdir_p
20719 if mkdir -p . 2>/dev/null; then
20720 as_mkdir_p='mkdir -p "$as_dir"'
20721 else
20722 test -d ./-p && rmdir ./-p
20723 as_mkdir_p=false
20724 fi
20725
20726
20727 # as_fn_executable_p FILE
20728 # -----------------------
20729 # Test if FILE is an executable regular file.
20730 as_fn_executable_p ()
20731 {
20732 test -f "$1" && test -x "$1"
20733 } # as_fn_executable_p
20734 as_test_x='test -x'
20735 as_executable_p=as_fn_executable_p
20736
20737 # Sed expression to map a string onto a valid CPP name.
20738 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20739
20740 # Sed expression to map a string onto a valid variable name.
20741 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20742
20743
20744 exec 6>&1
20745 ## ----------------------------------- ##
20746 ## Main body of $CONFIG_STATUS script. ##
20747 ## ----------------------------------- ##
20748 _ASEOF
20749 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20750
20751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20752 # Save the log message, to keep $0 and so on meaningful, and to
20753 # report actual input values of CONFIG_FILES etc. instead of their
20754 # values after options handling.
20755 ac_log="
20756 This file was extended by libFS $as_me 1.0.9, which was
20757 generated by GNU Autoconf 2.71. Invocation command line was
20758
20759 CONFIG_FILES = $CONFIG_FILES
20760 CONFIG_HEADERS = $CONFIG_HEADERS
20761 CONFIG_LINKS = $CONFIG_LINKS
20762 CONFIG_COMMANDS = $CONFIG_COMMANDS
20763 $ $0 $@
20764
20765 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20766 "
20767
20768 _ACEOF
20769
20770 case $ac_config_files in *"
20771 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20772 esac
20773
20774 case $ac_config_headers in *"
20775 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20776 esac
20777
20778
20779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20780 # Files that config.status was made for.
20781 config_files="$ac_config_files"
20782 config_headers="$ac_config_headers"
20783 config_commands="$ac_config_commands"
20784
20785 _ACEOF
20786
20787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20788 ac_cs_usage="\
20789 \`$as_me' instantiates files and other configuration actions
20790 from templates according to the current configuration. Unless the files
20791 and actions are specified as TAGs, all are instantiated by default.
20792
20793 Usage: $0 [OPTION]... [TAG]...
20794
20795 -h, --help print this help, then exit
20796 -V, --version print version number and configuration settings, then exit
20797 --config print configuration, then exit
20798 -q, --quiet, --silent
20799 do not print progress messages
20800 -d, --debug don't remove temporary files
20801 --recheck update $as_me by reconfiguring in the same conditions
20802 --file=FILE[:TEMPLATE]
20803 instantiate the configuration file FILE
20804 --header=FILE[:TEMPLATE]
20805 instantiate the configuration header FILE
20806
20807 Configuration files:
20808 $config_files
20809
20810 Configuration headers:
20811 $config_headers
20812
20813 Configuration commands:
20814 $config_commands
20815
20816 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>."
20817
20818 _ACEOF
20819 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20820 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20822 ac_cs_config='$ac_cs_config_escaped'
20823 ac_cs_version="\\
20824 libFS config.status 1.0.9
20825 configured by $0, generated by GNU Autoconf 2.71,
20826 with options \\"\$ac_cs_config\\"
20827
20828 Copyright (C) 2021 Free Software Foundation, Inc.
20829 This config.status script is free software; the Free Software Foundation
20830 gives unlimited permission to copy, distribute and modify it."
20831
20832 ac_pwd='$ac_pwd'
20833 srcdir='$srcdir'
20834 INSTALL='$INSTALL'
20835 MKDIR_P='$MKDIR_P'
20836 AWK='$AWK'
20837 test -n "\$AWK" || AWK=awk
20838 _ACEOF
20839
20840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20841 # The default lists apply if the user does not specify any file.
20842 ac_need_defaults=:
20843 while test $# != 0
20844 do
20845 case $1 in
20846 --*=?*)
20847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20849 ac_shift=:
20850 ;;
20851 --*=)
20852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20853 ac_optarg=
20854 ac_shift=:
20855 ;;
20856 *)
20857 ac_option=$1
20858 ac_optarg=$2
20859 ac_shift=shift
20860 ;;
20861 esac
20862
20863 case $ac_option in
20864 # Handling of the options.
20865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20866 ac_cs_recheck=: ;;
20867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20868 printf "%s\n" "$ac_cs_version"; exit ;;
20869 --config | --confi | --conf | --con | --co | --c )
20870 printf "%s\n" "$ac_cs_config"; exit ;;
20871 --debug | --debu | --deb | --de | --d | -d )
20872 debug=: ;;
20873 --file | --fil | --fi | --f )
20874 $ac_shift
20875 case $ac_optarg in
20876 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20877 '') as_fn_error $? "missing file argument" ;;
20878 esac
20879 as_fn_append CONFIG_FILES " '$ac_optarg'"
20880 ac_need_defaults=false;;
20881 --header | --heade | --head | --hea )
20882 $ac_shift
20883 case $ac_optarg in
20884 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20885 esac
20886 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20887 ac_need_defaults=false;;
20888 --he | --h)
20889 # Conflict between --help and --header
20890 as_fn_error $? "ambiguous option: \`$1'
20891 Try \`$0 --help' for more information.";;
20892 --help | --hel | -h )
20893 printf "%s\n" "$ac_cs_usage"; exit ;;
20894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20895 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20896 ac_cs_silent=: ;;
20897
20898 # This is an error.
20899 -*) as_fn_error $? "unrecognized option: \`$1'
20900 Try \`$0 --help' for more information." ;;
20901
20902 *) as_fn_append ac_config_targets " $1"
20903 ac_need_defaults=false ;;
20904
20905 esac
20906 shift
20907 done
20908
20909 ac_configure_extra_args=
20910
20911 if $ac_cs_silent; then
20912 exec 6>/dev/null
20913 ac_configure_extra_args="$ac_configure_extra_args --silent"
20914 fi
20915
20916 _ACEOF
20917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20918 if \$ac_cs_recheck; then
20919 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20920 shift
20921 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20922 CONFIG_SHELL='$SHELL'
20923 export CONFIG_SHELL
20924 exec "\$@"
20925 fi
20926
20927 _ACEOF
20928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20929 exec 5>>config.log
20930 {
20931 echo
20932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20933 ## Running $as_me. ##
20934 _ASBOX
20935 printf "%s\n" "$ac_log"
20936 } >&5
20937
20938 _ACEOF
20939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20940 #
20941 # INIT-COMMANDS
20942 #
20943 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20944
20945
20946 # The HP-UX ksh and POSIX shell print the target directory to stdout
20947 # if CDPATH is set.
20948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20949
20950 sed_quote_subst='$sed_quote_subst'
20951 double_quote_subst='$double_quote_subst'
20952 delay_variable_subst='$delay_variable_subst'
20953 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20954 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20955 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20956 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20957 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20958 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20959 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20960 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20961 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20962 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20963 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20964 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20965 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20966 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20967 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20968 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20969 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20970 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20971 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20972 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20973 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20974 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20975 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20976 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20977 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20978 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20979 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20980 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20981 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20982 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20983 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20984 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20985 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20986 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20987 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20988 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20989 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20990 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20991 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20992 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20993 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20994 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20995 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20996 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20997 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20998 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20999 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21000 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21001 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21002 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21003 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21004 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21005 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21006 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21007 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21008 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21009 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21010 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21011 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21012 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21013 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"`'
21014 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21015 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21016 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21017 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21018 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21019 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21020 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21021 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21022 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21023 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21024 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21025 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21026 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21027 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21028 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21029 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21030 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21031 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21032 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21033 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21034 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21035 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21036 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21037 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21038 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21039 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21040 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21041 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21042 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21043 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21044 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21045 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21046 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21047 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21048 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21049 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21050 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21051 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21052 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21053 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21054 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21055 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21056 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21057 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21058 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21059 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21060 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21061 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21062 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21063 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21064 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21065 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21066 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21067 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21068 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21069 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21070 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21071 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21072 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21073 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21074 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21075 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21076 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21077 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21078 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21079 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21080 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21081 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21082 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21083 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21084 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21085 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21086 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21087 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21088 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21089 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21090
21091 LTCC='$LTCC'
21092 LTCFLAGS='$LTCFLAGS'
21093 compiler='$compiler_DEFAULT'
21094
21095 # A function that is used when there is no print builtin or printf.
21096 func_fallback_echo ()
21097 {
21098 eval 'cat <<_LTECHO_EOF
21099 \$1
21100 _LTECHO_EOF'
21101 }
21102
21103 # Quote evaled strings.
21104 for var in SHELL \
21105 ECHO \
21106 PATH_SEPARATOR \
21107 SED \
21108 GREP \
21109 EGREP \
21110 FGREP \
21111 LD \
21112 NM \
21113 LN_S \
21114 lt_SP2NL \
21115 lt_NL2SP \
21116 reload_flag \
21117 FILECMD \
21118 OBJDUMP \
21119 deplibs_check_method \
21120 file_magic_cmd \
21121 file_magic_glob \
21122 want_nocaseglob \
21123 DLLTOOL \
21124 sharedlib_from_linklib_cmd \
21125 AR \
21126 archiver_list_spec \
21127 STRIP \
21128 RANLIB \
21129 CC \
21130 CFLAGS \
21131 compiler \
21132 lt_cv_sys_global_symbol_pipe \
21133 lt_cv_sys_global_symbol_to_cdecl \
21134 lt_cv_sys_global_symbol_to_import \
21135 lt_cv_sys_global_symbol_to_c_name_address \
21136 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21137 lt_cv_nm_interface \
21138 nm_file_list_spec \
21139 lt_cv_truncate_bin \
21140 lt_prog_compiler_no_builtin_flag \
21141 lt_prog_compiler_pic \
21142 lt_prog_compiler_wl \
21143 lt_prog_compiler_static \
21144 lt_cv_prog_compiler_c_o \
21145 need_locks \
21146 MANIFEST_TOOL \
21147 DSYMUTIL \
21148 NMEDIT \
21149 LIPO \
21150 OTOOL \
21151 OTOOL64 \
21152 shrext_cmds \
21153 export_dynamic_flag_spec \
21154 whole_archive_flag_spec \
21155 compiler_needs_object \
21156 with_gnu_ld \
21157 allow_undefined_flag \
21158 no_undefined_flag \
21159 hardcode_libdir_flag_spec \
21160 hardcode_libdir_separator \
21161 exclude_expsyms \
21162 include_expsyms \
21163 file_list_spec \
21164 variables_saved_for_relink \
21165 libname_spec \
21166 library_names_spec \
21167 soname_spec \
21168 install_override_mode \
21169 finish_eval \
21170 old_striplib \
21171 striplib; do
21172 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21173 *[\\\\\\\`\\"\\\$]*)
21174 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21175 ;;
21176 *)
21177 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21178 ;;
21179 esac
21180 done
21181
21182 # Double-quote double-evaled strings.
21183 for var in reload_cmds \
21184 old_postinstall_cmds \
21185 old_postuninstall_cmds \
21186 old_archive_cmds \
21187 extract_expsyms_cmds \
21188 old_archive_from_new_cmds \
21189 old_archive_from_expsyms_cmds \
21190 archive_cmds \
21191 archive_expsym_cmds \
21192 module_cmds \
21193 module_expsym_cmds \
21194 export_symbols_cmds \
21195 prelink_cmds \
21196 postlink_cmds \
21197 postinstall_cmds \
21198 postuninstall_cmds \
21199 finish_cmds \
21200 sys_lib_search_path_spec \
21201 configure_time_dlsearch_path \
21202 configure_time_lt_sys_library_path; do
21203 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21204 *[\\\\\\\`\\"\\\$]*)
21205 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21206 ;;
21207 *)
21208 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21209 ;;
21210 esac
21211 done
21212
21213 ac_aux_dir='$ac_aux_dir'
21214
21215 # See if we are running on zsh, and set the options that allow our
21216 # commands through without removal of \ escapes INIT.
21217 if test -n "\${ZSH_VERSION+set}"; then
21218 setopt NO_GLOB_SUBST
21219 fi
21220
21221
21222 PACKAGE='$PACKAGE'
21223 VERSION='$VERSION'
21224 RM='$RM'
21225 ofile='$ofile'
21226
21227
21228
21229
21230 _ACEOF
21231
21232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21233
21234 # Handling of arguments.
21235 for ac_config_target in $ac_config_targets
21236 do
21237 case $ac_config_target in
21238 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21239 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21240 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21241 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21242 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21243 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21244 "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;;
21245
21246 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21247 esac
21248 done
21249
21250
21251 # If the user did not use the arguments to specify the items to instantiate,
21252 # then the envvar interface is used. Set only those that are not.
21253 # We use the long form for the default assignment because of an extremely
21254 # bizarre bug on SunOS 4.1.3.
21255 if $ac_need_defaults; then
21256 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21257 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21258 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21259 fi
21260
21261 # Have a temporary directory for convenience. Make it in the build tree
21262 # simply because there is no reason against having it here, and in addition,
21263 # creating and moving files from /tmp can sometimes cause problems.
21264 # Hook for its removal unless debugging.
21265 # Note that there is a small window in which the directory will not be cleaned:
21266 # after its creation but before its name has been assigned to `$tmp'.
21267 $debug ||
21268 {
21269 tmp= ac_tmp=
21270 trap 'exit_status=$?
21271 : "${ac_tmp:=$tmp}"
21272 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21273 ' 0
21274 trap 'as_fn_exit 1' 1 2 13 15
21275 }
21276 # Create a (secure) tmp directory for tmp files.
21277
21278 {
21279 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21280 test -d "$tmp"
21281 } ||
21282 {
21283 tmp=./conf$$-$RANDOM
21284 (umask 077 && mkdir "$tmp")
21285 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21286 ac_tmp=$tmp
21287
21288 # Set up the scripts for CONFIG_FILES section.
21289 # No need to generate them if there are no CONFIG_FILES.
21290 # This happens for instance with `./config.status config.h'.
21291 if test -n "$CONFIG_FILES"; then
21292
21293
21294 ac_cr=`echo X | tr X '\015'`
21295 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21296 # But we know of no other shell where ac_cr would be empty at this
21297 # point, so we can use a bashism as a fallback.
21298 if test "x$ac_cr" = x; then
21299 eval ac_cr=\$\'\\r\'
21300 fi
21301 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21302 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21303 ac_cs_awk_cr='\\r'
21304 else
21305 ac_cs_awk_cr=$ac_cr
21306 fi
21307
21308 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21309 _ACEOF
21310
21311
21312 {
21313 echo "cat >conf$$subs.awk <<_ACEOF" &&
21314 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21315 echo "_ACEOF"
21316 } >conf$$subs.sh ||
21317 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21318 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21319 ac_delim='%!_!# '
21320 for ac_last_try in false false false false false :; do
21321 . ./conf$$subs.sh ||
21322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21323
21324 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21325 if test $ac_delim_n = $ac_delim_num; then
21326 break
21327 elif $ac_last_try; then
21328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21329 else
21330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21331 fi
21332 done
21333 rm -f conf$$subs.sh
21334
21335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21336 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21337 _ACEOF
21338 sed -n '
21339 h
21340 s/^/S["/; s/!.*/"]=/
21341 p
21342 g
21343 s/^[^!]*!//
21344 :repl
21345 t repl
21346 s/'"$ac_delim"'$//
21347 t delim
21348 :nl
21349 h
21350 s/\(.\{148\}\)..*/\1/
21351 t more1
21352 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21353 p
21354 n
21355 b repl
21356 :more1
21357 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21358 p
21359 g
21360 s/.\{148\}//
21361 t nl
21362 :delim
21363 h
21364 s/\(.\{148\}\)..*/\1/
21365 t more2
21366 s/["\\]/\\&/g; s/^/"/; s/$/"/
21367 p
21368 b
21369 :more2
21370 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21371 p
21372 g
21373 s/.\{148\}//
21374 t delim
21375 ' <conf$$subs.awk | sed '
21376 /^[^""]/{
21377 N
21378 s/\n//
21379 }
21380 ' >>$CONFIG_STATUS || ac_write_fail=1
21381 rm -f conf$$subs.awk
21382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21383 _ACAWK
21384 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21385 for (key in S) S_is_set[key] = 1
21386 FS = ""
21387
21388 }
21389 {
21390 line = $ 0
21391 nfields = split(line, field, "@")
21392 substed = 0
21393 len = length(field[1])
21394 for (i = 2; i < nfields; i++) {
21395 key = field[i]
21396 keylen = length(key)
21397 if (S_is_set[key]) {
21398 value = S[key]
21399 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21400 len += length(value) + length(field[++i])
21401 substed = 1
21402 } else
21403 len += 1 + keylen
21404 }
21405
21406 print line
21407 }
21408
21409 _ACAWK
21410 _ACEOF
21411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21412 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21413 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21414 else
21415 cat
21416 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21417 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21418 _ACEOF
21419
21420 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21421 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21422 # trailing colons and then remove the whole line if VPATH becomes empty
21423 # (actually we leave an empty line to preserve line numbers).
21424 if test "x$srcdir" = x.; then
21425 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21426 h
21427 s///
21428 s/^/:/
21429 s/[ ]*$/:/
21430 s/:\$(srcdir):/:/g
21431 s/:\${srcdir}:/:/g
21432 s/:@srcdir@:/:/g
21433 s/^:*//
21434 s/:*$//
21435 x
21436 s/\(=[ ]*\).*/\1/
21437 G
21438 s/\n//
21439 s/^[^=]*=[ ]*$//
21440 }'
21441 fi
21442
21443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21444 fi # test -n "$CONFIG_FILES"
21445
21446 # Set up the scripts for CONFIG_HEADERS section.
21447 # No need to generate them if there are no CONFIG_HEADERS.
21448 # This happens for instance with `./config.status Makefile'.
21449 if test -n "$CONFIG_HEADERS"; then
21450 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21451 BEGIN {
21452 _ACEOF
21453
21454 # Transform confdefs.h into an awk script `defines.awk', embedded as
21455 # here-document in config.status, that substitutes the proper values into
21456 # config.h.in to produce config.h.
21457
21458 # Create a delimiter string that does not exist in confdefs.h, to ease
21459 # handling of long lines.
21460 ac_delim='%!_!# '
21461 for ac_last_try in false false :; do
21462 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21463 if test -z "$ac_tt"; then
21464 break
21465 elif $ac_last_try; then
21466 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21467 else
21468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21469 fi
21470 done
21471
21472 # For the awk script, D is an array of macro values keyed by name,
21473 # likewise P contains macro parameters if any. Preserve backslash
21474 # newline sequences.
21475
21476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21477 sed -n '
21478 s/.\{148\}/&'"$ac_delim"'/g
21479 t rset
21480 :rset
21481 s/^[ ]*#[ ]*define[ ][ ]*/ /
21482 t def
21483 d
21484 :def
21485 s/\\$//
21486 t bsnl
21487 s/["\\]/\\&/g
21488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21489 D["\1"]=" \3"/p
21490 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21491 d
21492 :bsnl
21493 s/["\\]/\\&/g
21494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21495 D["\1"]=" \3\\\\\\n"\\/p
21496 t cont
21497 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21498 t cont
21499 d
21500 :cont
21501 n
21502 s/.\{148\}/&'"$ac_delim"'/g
21503 t clear
21504 :clear
21505 s/\\$//
21506 t bsnlc
21507 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21508 d
21509 :bsnlc
21510 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21511 b cont
21512 ' <confdefs.h | sed '
21513 s/'"$ac_delim"'/"\\\
21514 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21515
21516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21517 for (key in D) D_is_set[key] = 1
21518 FS = ""
21519 }
21520 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21521 line = \$ 0
21522 split(line, arg, " ")
21523 if (arg[1] == "#") {
21524 defundef = arg[2]
21525 mac1 = arg[3]
21526 } else {
21527 defundef = substr(arg[1], 2)
21528 mac1 = arg[2]
21529 }
21530 split(mac1, mac2, "(") #)
21531 macro = mac2[1]
21532 prefix = substr(line, 1, index(line, defundef) - 1)
21533 if (D_is_set[macro]) {
21534 # Preserve the white space surrounding the "#".
21535 print prefix "define", macro P[macro] D[macro]
21536 next
21537 } else {
21538 # Replace #undef with comments. This is necessary, for example,
21539 # in the case of _POSIX_SOURCE, which is predefined and required
21540 # on some systems where configure will not decide to define it.
21541 if (defundef == "undef") {
21542 print "/*", prefix defundef, macro, "*/"
21543 next
21544 }
21545 }
21546 }
21547 { print }
21548 _ACAWK
21549 _ACEOF
21550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21551 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21552 fi # test -n "$CONFIG_HEADERS"
21553
21554
21555 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21556 shift
21557 for ac_tag
21558 do
21559 case $ac_tag in
21560 :[FHLC]) ac_mode=$ac_tag; continue;;
21561 esac
21562 case $ac_mode$ac_tag in
21563 :[FHL]*:*);;
21564 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21565 :[FH]-) ac_tag=-:-;;
21566 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21567 esac
21568 ac_save_IFS=$IFS
21569 IFS=:
21570 set x $ac_tag
21571 IFS=$ac_save_IFS
21572 shift
21573 ac_file=$1
21574 shift
21575
21576 case $ac_mode in
21577 :L) ac_source=$1;;
21578 :[FH])
21579 ac_file_inputs=
21580 for ac_f
21581 do
21582 case $ac_f in
21583 -) ac_f="$ac_tmp/stdin";;
21584 *) # Look for the file first in the build tree, then in the source tree
21585 # (if the path is not absolute). The absolute path cannot be DOS-style,
21586 # because $ac_f cannot contain `:'.
21587 test -f "$ac_f" ||
21588 case $ac_f in
21589 [\\/$]*) false;;
21590 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21591 esac ||
21592 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21593 esac
21594 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21595 as_fn_append ac_file_inputs " '$ac_f'"
21596 done
21597
21598 # Let's still pretend it is `configure' which instantiates (i.e., don't
21599 # use $as_me), people would be surprised to read:
21600 # /* config.h. Generated by config.status. */
21601 configure_input='Generated from '`
21602 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21603 `' by configure.'
21604 if test x"$ac_file" != x-; then
21605 configure_input="$ac_file. $configure_input"
21606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21607 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21608 fi
21609 # Neutralize special characters interpreted by sed in replacement strings.
21610 case $configure_input in #(
21611 *\&* | *\|* | *\\* )
21612 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21613 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21614 *) ac_sed_conf_input=$configure_input;;
21615 esac
21616
21617 case $ac_tag in
21618 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21620 esac
21621 ;;
21622 esac
21623
21624 ac_dir=`$as_dirname -- "$ac_file" ||
21625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21626 X"$ac_file" : 'X\(//\)[^/]' \| \
21627 X"$ac_file" : 'X\(//\)$' \| \
21628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21629 printf "%s\n" X"$ac_file" |
21630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21631 s//\1/
21632 q
21633 }
21634 /^X\(\/\/\)[^/].*/{
21635 s//\1/
21636 q
21637 }
21638 /^X\(\/\/\)$/{
21639 s//\1/
21640 q
21641 }
21642 /^X\(\/\).*/{
21643 s//\1/
21644 q
21645 }
21646 s/.*/./; q'`
21647 as_dir="$ac_dir"; as_fn_mkdir_p
21648 ac_builddir=.
21649
21650 case "$ac_dir" in
21651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21652 *)
21653 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21654 # A ".." for each directory in $ac_dir_suffix.
21655 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21656 case $ac_top_builddir_sub in
21657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21659 esac ;;
21660 esac
21661 ac_abs_top_builddir=$ac_pwd
21662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21663 # for backward compatibility:
21664 ac_top_builddir=$ac_top_build_prefix
21665
21666 case $srcdir in
21667 .) # We are building in place.
21668 ac_srcdir=.
21669 ac_top_srcdir=$ac_top_builddir_sub
21670 ac_abs_top_srcdir=$ac_pwd ;;
21671 [\\/]* | ?:[\\/]* ) # Absolute name.
21672 ac_srcdir=$srcdir$ac_dir_suffix;
21673 ac_top_srcdir=$srcdir
21674 ac_abs_top_srcdir=$srcdir ;;
21675 *) # Relative name.
21676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21677 ac_top_srcdir=$ac_top_build_prefix$srcdir
21678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21679 esac
21680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21681
21682
21683 case $ac_mode in
21684 :F)
21685 #
21686 # CONFIG_FILE
21687 #
21688
21689 case $INSTALL in
21690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21692 esac
21693 ac_MKDIR_P=$MKDIR_P
21694 case $MKDIR_P in
21695 [\\/$]* | ?:[\\/]* ) ;;
21696 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21697 esac
21698 _ACEOF
21699
21700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21701 # If the template does not know about datarootdir, expand it.
21702 # FIXME: This hack should be removed a few years after 2.60.
21703 ac_datarootdir_hack=; ac_datarootdir_seen=
21704 ac_sed_dataroot='
21705 /datarootdir/ {
21706 p
21707 q
21708 }
21709 /@datadir@/p
21710 /@docdir@/p
21711 /@infodir@/p
21712 /@localedir@/p
21713 /@mandir@/p'
21714 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21715 *datarootdir*) ac_datarootdir_seen=yes;;
21716 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21718 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21719 _ACEOF
21720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21721 ac_datarootdir_hack='
21722 s&@datadir@&$datadir&g
21723 s&@docdir@&$docdir&g
21724 s&@infodir@&$infodir&g
21725 s&@localedir@&$localedir&g
21726 s&@mandir@&$mandir&g
21727 s&\\\${datarootdir}&$datarootdir&g' ;;
21728 esac
21729 _ACEOF
21730
21731 # Neutralize VPATH when `$srcdir' = `.'.
21732 # Shell code in configure.ac might set extrasub.
21733 # FIXME: do we really want to maintain this feature?
21734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21735 ac_sed_extra="$ac_vpsub
21736 $extrasub
21737 _ACEOF
21738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21739 :t
21740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21741 s|@configure_input@|$ac_sed_conf_input|;t t
21742 s&@top_builddir@&$ac_top_builddir_sub&;t t
21743 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21744 s&@srcdir@&$ac_srcdir&;t t
21745 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21746 s&@top_srcdir@&$ac_top_srcdir&;t t
21747 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21748 s&@builddir@&$ac_builddir&;t t
21749 s&@abs_builddir@&$ac_abs_builddir&;t t
21750 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21751 s&@INSTALL@&$ac_INSTALL&;t t
21752 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21753 $ac_datarootdir_hack
21754 "
21755 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21756 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21757
21758 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21759 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21760 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21761 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21763 which seems to be undefined. Please make sure it is defined" >&5
21764 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21765 which seems to be undefined. Please make sure it is defined" >&2;}
21766
21767 rm -f "$ac_tmp/stdin"
21768 case $ac_file in
21769 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21770 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21771 esac \
21772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21773 ;;
21774 :H)
21775 #
21776 # CONFIG_HEADER
21777 #
21778 if test x"$ac_file" != x-; then
21779 {
21780 printf "%s\n" "/* $configure_input */" >&1 \
21781 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21782 } >"$ac_tmp/config.h" \
21783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21784 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21786 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21787 else
21788 rm -f "$ac_file"
21789 mv "$ac_tmp/config.h" "$ac_file" \
21790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21791 fi
21792 else
21793 printf "%s\n" "/* $configure_input */" >&1 \
21794 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21795 || as_fn_error $? "could not create -" "$LINENO" 5
21796 fi
21797 # Compute "$ac_file"'s index in $config_headers.
21798 _am_arg="$ac_file"
21799 _am_stamp_count=1
21800 for _am_header in $config_headers :; do
21801 case $_am_header in
21802 $_am_arg | $_am_arg:* )
21803 break ;;
21804 * )
21805 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21806 esac
21807 done
21808 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21809 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21810 X"$_am_arg" : 'X\(//\)[^/]' \| \
21811 X"$_am_arg" : 'X\(//\)$' \| \
21812 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21813 printf "%s\n" X"$_am_arg" |
21814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21815 s//\1/
21816 q
21817 }
21818 /^X\(\/\/\)[^/].*/{
21819 s//\1/
21820 q
21821 }
21822 /^X\(\/\/\)$/{
21823 s//\1/
21824 q
21825 }
21826 /^X\(\/\).*/{
21827 s//\1/
21828 q
21829 }
21830 s/.*/./; q'`/stamp-h$_am_stamp_count
21831 ;;
21832
21833 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21834 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21835 ;;
21836 esac
21837
21838
21839 case $ac_file$ac_mode in
21840 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21841 # Older Autoconf quotes --file arguments for eval, but not when files
21842 # are listed without --file. Let's play safe and only enable the eval
21843 # if we detect the quoting.
21844 # TODO: see whether this extra hack can be removed once we start
21845 # requiring Autoconf 2.70 or later.
21846 case $CONFIG_FILES in #(
21847 *\'*) :
21848 eval set x "$CONFIG_FILES" ;; #(
21849 *) :
21850 set x $CONFIG_FILES ;; #(
21851 *) :
21852 ;;
21853 esac
21854 shift
21855 # Used to flag and report bootstrapping failures.
21856 am_rc=0
21857 for am_mf
21858 do
21859 # Strip MF so we end up with the name of the file.
21860 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21861 # Check whether this is an Automake generated Makefile which includes
21862 # dependency-tracking related rules and includes.
21863 # Grep'ing the whole file directly is not great: AIX grep has a line
21864 # limit of 2048, but all sed's we know have understand at least 4000.
21865 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21866 || continue
21867 am_dirpart=`$as_dirname -- "$am_mf" ||
21868 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21869 X"$am_mf" : 'X\(//\)[^/]' \| \
21870 X"$am_mf" : 'X\(//\)$' \| \
21871 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21872 printf "%s\n" X"$am_mf" |
21873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21874 s//\1/
21875 q
21876 }
21877 /^X\(\/\/\)[^/].*/{
21878 s//\1/
21879 q
21880 }
21881 /^X\(\/\/\)$/{
21882 s//\1/
21883 q
21884 }
21885 /^X\(\/\).*/{
21886 s//\1/
21887 q
21888 }
21889 s/.*/./; q'`
21890 am_filepart=`$as_basename -- "$am_mf" ||
21891 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21892 X"$am_mf" : 'X\(//\)$' \| \
21893 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21894 printf "%s\n" X/"$am_mf" |
21895 sed '/^.*\/\([^/][^/]*\)\/*$/{
21896 s//\1/
21897 q
21898 }
21899 /^X\/\(\/\/\)$/{
21900 s//\1/
21901 q
21902 }
21903 /^X\/\(\/\).*/{
21904 s//\1/
21905 q
21906 }
21907 s/.*/./; q'`
21908 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21909 && sed -e '/# am--include-marker/d' "$am_filepart" \
21910 | $MAKE -f - am--depfiles" >&5
21911 (cd "$am_dirpart" \
21912 && sed -e '/# am--include-marker/d' "$am_filepart" \
21913 | $MAKE -f - am--depfiles) >&5 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } || am_rc=$?
21917 done
21918 if test $am_rc -ne 0; then
21919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21920 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21921 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21922 for automatic dependency tracking. If GNU make was not used, consider
21923 re-running the configure script with MAKE=\"gmake\" (or whatever is
21924 necessary). You can also try re-running configure with the
21925 '--disable-dependency-tracking' option to at least be able to build
21926 the package (albeit without support for automatic dependency tracking).
21927 See \`config.log' for more details" "$LINENO" 5; }
21928 fi
21929 { am_dirpart=; unset am_dirpart;}
21930 { am_filepart=; unset am_filepart;}
21931 { am_mf=; unset am_mf;}
21932 { am_rc=; unset am_rc;}
21933 rm -f conftest-deps.mk
21934 }
21935 ;;
21936 "libtool":C)
21937
21938 # See if we are running on zsh, and set the options that allow our
21939 # commands through without removal of \ escapes.
21940 if test -n "${ZSH_VERSION+set}"; then
21941 setopt NO_GLOB_SUBST
21942 fi
21943
21944 cfgfile=${ofile}T
21945 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21946 $RM "$cfgfile"
21947
21948 cat <<_LT_EOF >> "$cfgfile"
21949 #! $SHELL
21950 # Generated automatically by $as_me ($PACKAGE) $VERSION
21951 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21952 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21953
21954 # Provide generalized library-building support services.
21955 # Written by Gordon Matzigkeit, 1996
21956
21957 # Copyright (C) 2014 Free Software Foundation, Inc.
21958 # This is free software; see the source for copying conditions. There is NO
21959 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21960
21961 # GNU Libtool is free software; you can redistribute it and/or modify
21962 # it under the terms of the GNU General Public License as published by
21963 # the Free Software Foundation; either version 2 of of the License, or
21964 # (at your option) any later version.
21965 #
21966 # As a special exception to the GNU General Public License, if you
21967 # distribute this file as part of a program or library that is built
21968 # using GNU Libtool, you may include this file under the same
21969 # distribution terms that you use for the rest of that program.
21970 #
21971 # GNU Libtool is distributed in the hope that it will be useful, but
21972 # WITHOUT ANY WARRANTY; without even the implied warranty of
21973 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21974 # GNU General Public License for more details.
21975 #
21976 # You should have received a copy of the GNU General Public License
21977 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21978
21979
21980 # The names of the tagged configurations supported by this script.
21981 available_tags=''
21982
21983 # Configured defaults for sys_lib_dlsearch_path munging.
21984 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21985
21986 # ### BEGIN LIBTOOL CONFIG
21987
21988 # Which release of libtool.m4 was used?
21989 macro_version=$macro_version
21990 macro_revision=$macro_revision
21991
21992 # Whether or not to build shared libraries.
21993 build_libtool_libs=$enable_shared
21994
21995 # Whether or not to build static libraries.
21996 build_old_libs=$enable_static
21997
21998 # What type of objects to build.
21999 pic_mode=$pic_mode
22000
22001 # Whether or not to optimize for fast installation.
22002 fast_install=$enable_fast_install
22003
22004 # Shared archive member basename,for filename based shared library versioning on AIX.
22005 shared_archive_member_spec=$shared_archive_member_spec
22006
22007 # Shell to use when invoking shell scripts.
22008 SHELL=$lt_SHELL
22009
22010 # An echo program that protects backslashes.
22011 ECHO=$lt_ECHO
22012
22013 # The PATH separator for the build system.
22014 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22015
22016 # The host system.
22017 host_alias=$host_alias
22018 host=$host
22019 host_os=$host_os
22020
22021 # The build system.
22022 build_alias=$build_alias
22023 build=$build
22024 build_os=$build_os
22025
22026 # A sed program that does not truncate output.
22027 SED=$lt_SED
22028
22029 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22030 Xsed="\$SED -e 1s/^X//"
22031
22032 # A grep program that handles long lines.
22033 GREP=$lt_GREP
22034
22035 # An ERE matcher.
22036 EGREP=$lt_EGREP
22037
22038 # A literal string matcher.
22039 FGREP=$lt_FGREP
22040
22041 # A BSD- or MS-compatible name lister.
22042 NM=$lt_NM
22043
22044 # Whether we need soft or hard links.
22045 LN_S=$lt_LN_S
22046
22047 # What is the maximum length of a command?
22048 max_cmd_len=$max_cmd_len
22049
22050 # Object file suffix (normally "o").
22051 objext=$ac_objext
22052
22053 # Executable file suffix (normally "").
22054 exeext=$exeext
22055
22056 # whether the shell understands "unset".
22057 lt_unset=$lt_unset
22058
22059 # turn spaces into newlines.
22060 SP2NL=$lt_lt_SP2NL
22061
22062 # turn newlines into spaces.
22063 NL2SP=$lt_lt_NL2SP
22064
22065 # convert \$build file names to \$host format.
22066 to_host_file_cmd=$lt_cv_to_host_file_cmd
22067
22068 # convert \$build files to toolchain format.
22069 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22070
22071 # A file(cmd) program that detects file types.
22072 FILECMD=$lt_FILECMD
22073
22074 # An object symbol dumper.
22075 OBJDUMP=$lt_OBJDUMP
22076
22077 # Method to check whether dependent libraries are shared objects.
22078 deplibs_check_method=$lt_deplibs_check_method
22079
22080 # Command to use when deplibs_check_method = "file_magic".
22081 file_magic_cmd=$lt_file_magic_cmd
22082
22083 # How to find potential files when deplibs_check_method = "file_magic".
22084 file_magic_glob=$lt_file_magic_glob
22085
22086 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22087 want_nocaseglob=$lt_want_nocaseglob
22088
22089 # DLL creation program.
22090 DLLTOOL=$lt_DLLTOOL
22091
22092 # Command to associate shared and link libraries.
22093 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22094
22095 # The archiver.
22096 AR=$lt_AR
22097
22098 # Flags to create an archive (by configure).
22099 lt_ar_flags=$lt_ar_flags
22100
22101 # Flags to create an archive.
22102 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22103
22104 # How to feed a file listing to the archiver.
22105 archiver_list_spec=$lt_archiver_list_spec
22106
22107 # A symbol stripping program.
22108 STRIP=$lt_STRIP
22109
22110 # Commands used to install an old-style archive.
22111 RANLIB=$lt_RANLIB
22112 old_postinstall_cmds=$lt_old_postinstall_cmds
22113 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22114
22115 # Whether to use a lock for old archive extraction.
22116 lock_old_archive_extraction=$lock_old_archive_extraction
22117
22118 # A C compiler.
22119 LTCC=$lt_CC
22120
22121 # LTCC compiler flags.
22122 LTCFLAGS=$lt_CFLAGS
22123
22124 # Take the output of nm and produce a listing of raw symbols and C names.
22125 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22126
22127 # Transform the output of nm in a proper C declaration.
22128 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22129
22130 # Transform the output of nm into a list of symbols to manually relocate.
22131 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22132
22133 # Transform the output of nm in a C name address pair.
22134 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22135
22136 # Transform the output of nm in a C name address pair when lib prefix is needed.
22137 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22138
22139 # The name lister interface.
22140 nm_interface=$lt_lt_cv_nm_interface
22141
22142 # Specify filename containing input files for \$NM.
22143 nm_file_list_spec=$lt_nm_file_list_spec
22144
22145 # The root where to search for dependent libraries,and where our libraries should be installed.
22146 lt_sysroot=$lt_sysroot
22147
22148 # Command to truncate a binary pipe.
22149 lt_truncate_bin=$lt_lt_cv_truncate_bin
22150
22151 # The name of the directory that contains temporary libtool files.
22152 objdir=$objdir
22153
22154 # Used to examine libraries when file_magic_cmd begins with "file".
22155 MAGIC_CMD=$MAGIC_CMD
22156
22157 # Must we lock files when doing compilation?
22158 need_locks=$lt_need_locks
22159
22160 # Manifest tool.
22161 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22162
22163 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22164 DSYMUTIL=$lt_DSYMUTIL
22165
22166 # Tool to change global to local symbols on Mac OS X.
22167 NMEDIT=$lt_NMEDIT
22168
22169 # Tool to manipulate fat objects and archives on Mac OS X.
22170 LIPO=$lt_LIPO
22171
22172 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22173 OTOOL=$lt_OTOOL
22174
22175 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22176 OTOOL64=$lt_OTOOL64
22177
22178 # Old archive suffix (normally "a").
22179 libext=$libext
22180
22181 # Shared library suffix (normally ".so").
22182 shrext_cmds=$lt_shrext_cmds
22183
22184 # The commands to extract the exported symbol list from a shared archive.
22185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22186
22187 # Variables whose values should be saved in libtool wrapper scripts and
22188 # restored at link time.
22189 variables_saved_for_relink=$lt_variables_saved_for_relink
22190
22191 # Do we need the "lib" prefix for modules?
22192 need_lib_prefix=$need_lib_prefix
22193
22194 # Do we need a version for libraries?
22195 need_version=$need_version
22196
22197 # Library versioning type.
22198 version_type=$version_type
22199
22200 # Shared library runtime path variable.
22201 runpath_var=$runpath_var
22202
22203 # Shared library path variable.
22204 shlibpath_var=$shlibpath_var
22205
22206 # Is shlibpath searched before the hard-coded library search path?
22207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22208
22209 # Format of library name prefix.
22210 libname_spec=$lt_libname_spec
22211
22212 # List of archive names. First name is the real one, the rest are links.
22213 # The last name is the one that the linker finds with -lNAME
22214 library_names_spec=$lt_library_names_spec
22215
22216 # The coded name of the library, if different from the real name.
22217 soname_spec=$lt_soname_spec
22218
22219 # Permission mode override for installation of shared libraries.
22220 install_override_mode=$lt_install_override_mode
22221
22222 # Command to use after installation of a shared archive.
22223 postinstall_cmds=$lt_postinstall_cmds
22224
22225 # Command to use after uninstallation of a shared archive.
22226 postuninstall_cmds=$lt_postuninstall_cmds
22227
22228 # Commands used to finish a libtool library installation in a directory.
22229 finish_cmds=$lt_finish_cmds
22230
22231 # As "finish_cmds", except a single script fragment to be evaled but
22232 # not shown.
22233 finish_eval=$lt_finish_eval
22234
22235 # Whether we should hardcode library paths into libraries.
22236 hardcode_into_libs=$hardcode_into_libs
22237
22238 # Compile-time system search path for libraries.
22239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22240
22241 # Detected run-time system search path for libraries.
22242 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22243
22244 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22245 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22246
22247 # Whether dlopen is supported.
22248 dlopen_support=$enable_dlopen
22249
22250 # Whether dlopen of programs is supported.
22251 dlopen_self=$enable_dlopen_self
22252
22253 # Whether dlopen of statically linked programs is supported.
22254 dlopen_self_static=$enable_dlopen_self_static
22255
22256 # Commands to strip libraries.
22257 old_striplib=$lt_old_striplib
22258 striplib=$lt_striplib
22259
22260
22261 # The linker used to build libraries.
22262 LD=$lt_LD
22263
22264 # How to create reloadable object files.
22265 reload_flag=$lt_reload_flag
22266 reload_cmds=$lt_reload_cmds
22267
22268 # Commands used to build an old-style archive.
22269 old_archive_cmds=$lt_old_archive_cmds
22270
22271 # A language specific compiler.
22272 CC=$lt_compiler
22273
22274 # Is the compiler the GNU compiler?
22275 with_gcc=$GCC
22276
22277 # Compiler flag to turn off builtin functions.
22278 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22279
22280 # Additional compiler flags for building library objects.
22281 pic_flag=$lt_lt_prog_compiler_pic
22282
22283 # How to pass a linker flag through the compiler.
22284 wl=$lt_lt_prog_compiler_wl
22285
22286 # Compiler flag to prevent dynamic linking.
22287 link_static_flag=$lt_lt_prog_compiler_static
22288
22289 # Does compiler simultaneously support -c and -o options?
22290 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22291
22292 # Whether or not to add -lc for building shared libraries.
22293 build_libtool_need_lc=$archive_cmds_need_lc
22294
22295 # Whether or not to disallow shared libs when runtime libs are static.
22296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22297
22298 # Compiler flag to allow reflexive dlopens.
22299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22300
22301 # Compiler flag to generate shared objects directly from archives.
22302 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22303
22304 # Whether the compiler copes with passing no objects directly.
22305 compiler_needs_object=$lt_compiler_needs_object
22306
22307 # Create an old-style archive from a shared archive.
22308 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22309
22310 # Create a temporary old-style archive to link instead of a shared archive.
22311 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22312
22313 # Commands used to build a shared archive.
22314 archive_cmds=$lt_archive_cmds
22315 archive_expsym_cmds=$lt_archive_expsym_cmds
22316
22317 # Commands used to build a loadable module if different from building
22318 # a shared archive.
22319 module_cmds=$lt_module_cmds
22320 module_expsym_cmds=$lt_module_expsym_cmds
22321
22322 # Whether we are building with GNU ld or not.
22323 with_gnu_ld=$lt_with_gnu_ld
22324
22325 # Flag that allows shared libraries with undefined symbols to be built.
22326 allow_undefined_flag=$lt_allow_undefined_flag
22327
22328 # Flag that enforces no undefined symbols.
22329 no_undefined_flag=$lt_no_undefined_flag
22330
22331 # Flag to hardcode \$libdir into a binary during linking.
22332 # This must work even if \$libdir does not exist
22333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22334
22335 # Whether we need a single "-rpath" flag with a separated argument.
22336 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22337
22338 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22339 # DIR into the resulting binary.
22340 hardcode_direct=$hardcode_direct
22341
22342 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22343 # DIR into the resulting binary and the resulting library dependency is
22344 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22345 # library is relocated.
22346 hardcode_direct_absolute=$hardcode_direct_absolute
22347
22348 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22349 # into the resulting binary.
22350 hardcode_minus_L=$hardcode_minus_L
22351
22352 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22353 # into the resulting binary.
22354 hardcode_shlibpath_var=$hardcode_shlibpath_var
22355
22356 # Set to "yes" if building a shared library automatically hardcodes DIR
22357 # into the library and all subsequent libraries and executables linked
22358 # against it.
22359 hardcode_automatic=$hardcode_automatic
22360
22361 # Set to yes if linker adds runtime paths of dependent libraries
22362 # to runtime path list.
22363 inherit_rpath=$inherit_rpath
22364
22365 # Whether libtool must link a program against all its dependency libraries.
22366 link_all_deplibs=$link_all_deplibs
22367
22368 # Set to "yes" if exported symbols are required.
22369 always_export_symbols=$always_export_symbols
22370
22371 # The commands to list exported symbols.
22372 export_symbols_cmds=$lt_export_symbols_cmds
22373
22374 # Symbols that should not be listed in the preloaded symbols.
22375 exclude_expsyms=$lt_exclude_expsyms
22376
22377 # Symbols that must always be exported.
22378 include_expsyms=$lt_include_expsyms
22379
22380 # Commands necessary for linking programs (against libraries) with templates.
22381 prelink_cmds=$lt_prelink_cmds
22382
22383 # Commands necessary for finishing linking programs.
22384 postlink_cmds=$lt_postlink_cmds
22385
22386 # Specify filename containing input files.
22387 file_list_spec=$lt_file_list_spec
22388
22389 # How to hardcode a shared library path into an executable.
22390 hardcode_action=$hardcode_action
22391
22392 # ### END LIBTOOL CONFIG
22393
22394 _LT_EOF
22395
22396 cat <<'_LT_EOF' >> "$cfgfile"
22397
22398 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22399
22400 # func_munge_path_list VARIABLE PATH
22401 # -----------------------------------
22402 # VARIABLE is name of variable containing _space_ separated list of
22403 # directories to be munged by the contents of PATH, which is string
22404 # having a format:
22405 # "DIR[:DIR]:"
22406 # string "DIR[ DIR]" will be prepended to VARIABLE
22407 # ":DIR[:DIR]"
22408 # string "DIR[ DIR]" will be appended to VARIABLE
22409 # "DIRP[:DIRP]::[DIRA:]DIRA"
22410 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22411 # "DIRA[ DIRA]" will be appended to VARIABLE
22412 # "DIR[:DIR]"
22413 # VARIABLE will be replaced by "DIR[ DIR]"
22414 func_munge_path_list ()
22415 {
22416 case x$2 in
22417 x)
22418 ;;
22419 *:)
22420 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22421 ;;
22422 x:*)
22423 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22424 ;;
22425 *::*)
22426 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22427 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22428 ;;
22429 *)
22430 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22431 ;;
22432 esac
22433 }
22434
22435
22436 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22437 func_cc_basename ()
22438 {
22439 for cc_temp in $*""; do
22440 case $cc_temp in
22441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22443 \-*) ;;
22444 *) break;;
22445 esac
22446 done
22447 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22448 }
22449
22450
22451 # ### END FUNCTIONS SHARED WITH CONFIGURE
22452
22453 _LT_EOF
22454
22455 case $host_os in
22456 aix3*)
22457 cat <<\_LT_EOF >> "$cfgfile"
22458 # AIX sometimes has problems with the GCC collect2 program. For some
22459 # reason, if we set the COLLECT_NAMES environment variable, the problems
22460 # vanish in a puff of smoke.
22461 if test set != "${COLLECT_NAMES+set}"; then
22462 COLLECT_NAMES=
22463 export COLLECT_NAMES
22464 fi
22465 _LT_EOF
22466 ;;
22467 esac
22468
22469
22470
22471 ltmain=$ac_aux_dir/ltmain.sh
22472
22473
22474 # We use sed instead of cat because bash on DJGPP gets confused if
22475 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22476 # text mode, it properly converts lines to CR/LF. This bash problem
22477 # is reportedly fixed, but why not run on old versions too?
22478 $SED '$q' "$ltmain" >> "$cfgfile" \
22479 || (rm -f "$cfgfile"; exit 1)
22480
22481 mv -f "$cfgfile" "$ofile" ||
22482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22483 chmod +x "$ofile"
22484
22485 ;;
22486
22487 esac
22488 done # for ac_tag
22489
22490
22491 as_fn_exit 0
22492 _ACEOF
22493 ac_clean_files=$ac_clean_files_save
22494
22495 test $ac_write_fail = 0 ||
22496 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22497
22498
22499 # configure is writing to config.log, and then calls config.status.
22500 # config.status does its own redirection, appending to config.log.
22501 # Unfortunately, on DOS this fails, as config.log is still kept open
22502 # by configure, so config.status won't be able to write to it; its
22503 # output is simply discarded. So we exec the FD to /dev/null,
22504 # effectively closing config.log, so it can be properly (re)opened and
22505 # appended to by config.status. When coming back to configure, we
22506 # need to make the FD available again.
22507 if test "$no_create" != yes; then
22508 ac_cs_success=:
22509 ac_config_status_args=
22510 test "$silent" = yes &&
22511 ac_config_status_args="$ac_config_status_args --quiet"
22512 exec 5>/dev/null
22513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22514 exec 5>>config.log
22515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22516 # would make configure fail if this is the last instruction.
22517 $ac_cs_success || as_fn_exit 1
22518 fi
22519 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22521 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22522 fi
22523
22524
22525