configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXinerama 1.1.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxinerama/-/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/libxinerama/-/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='libXinerama'
624 PACKAGE_TARNAME='libXinerama'
625 PACKAGE_VERSION='1.1.5'
626 PACKAGE_STRING='libXinerama 1.1.5'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxinerama/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 LINT_FALSE
668 LINT_TRUE
669 LINT_FLAGS
670 LINT
671 XINERAMA_LIBS
672 XINERAMA_CFLAGS
673 XTMALLOC_ZERO_CFLAGS
674 XMALLOC_ZERO_CFLAGS
675 MALLOC_ZERO_CFLAGS
676 MAN_SUBSTS
677 XORG_MAN_PAGE
678 ADMIN_MAN_DIR
679 DRIVER_MAN_DIR
680 MISC_MAN_DIR
681 FILE_MAN_DIR
682 LIB_MAN_DIR
683 APP_MAN_DIR
684 ADMIN_MAN_SUFFIX
685 DRIVER_MAN_SUFFIX
686 MISC_MAN_SUFFIX
687 FILE_MAN_SUFFIX
688 LIB_MAN_SUFFIX
689 APP_MAN_SUFFIX
690 INSTALL_CMD
691 PKG_CONFIG_LIBDIR
692 PKG_CONFIG_PATH
693 PKG_CONFIG
694 CHANGELOG_CMD
695 STRICT_CFLAGS
696 CWARNFLAGS
697 BASE_CFLAGS
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 ac_ct_AR
707 AR
708 DLLTOOL
709 OBJDUMP
710 FILECMD
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 EGREP
718 GREP
719 SED
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 host_os
737 host_vendor
738 host_cpu
739 host
740 build_os
741 build_vendor
742 build_cpu
743 build
744 LIBTOOL
745 AM_BACKSLASH
746 AM_DEFAULT_VERBOSITY
747 AM_DEFAULT_V
748 AM_V
749 CSCOPE
750 ETAGS
751 CTAGS
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
757 AWK
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 runstatedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL
814 am__quote'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_aix_soname
824 enable_dependency_tracking
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_selective_werror
829 enable_strict_compilation
830 enable_malloc0returnsnull
831 with_lint
832 '
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 LT_SYS_LIBRARY_PATH
842 PKG_CONFIG
843 PKG_CONFIG_PATH
844 PKG_CONFIG_LIBDIR
845 XINERAMA_CFLAGS
846 XINERAMA_LIBS
847 LINT
848 LINT_FLAGS'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 runstatedir='${localstatedir}/run'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: \`$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: \`$ac_useropt'"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -runstatedir | --runstatedir | --runstatedi | --runstated \
1139 | --runstate | --runstat | --runsta | --runst | --runs \
1140 | --run | --ru | --r)
1141 ac_prev=runstatedir ;;
1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144 | --run=* | --ru=* | --r=*)
1145 runstatedir=$ac_optarg ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: \`$ac_useropt'"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: \`$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir runstatedir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 printf "%s\n" X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures libXinerama 1.1.5 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/libXinerama]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of libXinerama 1.1.5:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-static[=PKGS] build static libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --disable-selective-werror
1488 Turn off selective compiler errors. (default:
1489 enabled)
1490 --enable-strict-compilation
1491 Enable all warnings from compiler and make them
1492 errors (default: disabled)
1493 --enable-malloc0returnsnull
1494 malloc(0) returns NULL (default: auto)
1495
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1500 both]
1501 --with-aix-soname=aix|svr4|both
1502 shared library versioning (aka "SONAME") variant to
1503 provide on AIX, [default=aix].
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1506 compiler's sysroot if not specified).
1507 --with-lint Use a lint-style source code checker (default:
1508 disabled)
1509
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 LT_SYS_LIBRARY_PATH
1519 User-defined run-time library search path.
1520 PKG_CONFIG path to pkg-config utility
1521 PKG_CONFIG_PATH
1522 directories to add to pkg-config's search path
1523 PKG_CONFIG_LIBDIR
1524 path overriding pkg-config's built-in search path
1525 XINERAMA_CFLAGS
1526 C compiler flags for XINERAMA, overriding pkg-config
1527 XINERAMA_LIBS
1528 linker flags for XINERAMA, overriding pkg-config
1529 LINT Path to a lint-style command
1530 LINT_FLAGS Flags for the lint-style command
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxinerama/-/issues>.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for configure.gnu first; this name is used for a wrapper for
1582 # Metaconfig's "Configure" on case-insensitive file systems.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 libXinerama configure 1.1.5
1600 generated by GNU Autoconf 2.71
1601
1602 Copyright (C) 2021 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest.beam
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 printf "%s\n" "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext
1639 then :
1640 ac_retval=0
1641 else $as_nop
1642 printf "%s\n" "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_compile
1651
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf "%s\n" "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1680 }
1681 then :
1682 ac_retval=0
1683 else $as_nop
1684 printf "%s\n" "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else $as_nop
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"
1718 then :
1719 eval "$3=yes"
1720 else $as_nop
1721 eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 printf "%s\n" "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 printf %s "checking for $2... " >&6; }
1740 if eval test \${$3+y}
1741 then :
1742 printf %s "(cached) " >&6
1743 else $as_nop
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1749
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (); below. */
1752
1753 #include <limits.h>
1754 #undef $2
1755
1756 /* Override any GCC internal prototype to avoid an error.
1757 Use char because int might match the return type of a GCC
1758 builtin and then its argument prototype would still apply. */
1759 #ifdef __cplusplus
1760 extern "C"
1761 #endif
1762 char $2 ();
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined __stub_$2 || defined __stub___$2
1767 choke me
1768 #endif
1769
1770 int
1771 main (void)
1772 {
1773 return $2 ();
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"
1779 then :
1780 eval "$3=yes"
1781 else $as_nop
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785 conftest$ac_exeext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 printf "%s\n" "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_func
1793
1794 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1795 # ------------------------------------------------------------------
1796 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1797 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1798 ac_fn_check_decl ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 as_decl_name=`echo $2|sed 's/ *(.*//'`
1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1803 printf %s "checking whether $as_decl_name is declared... " >&6; }
1804 if eval test \${$3+y}
1805 then :
1806 printf %s "(cached) " >&6
1807 else $as_nop
1808 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1809 eval ac_save_FLAGS=\$$6
1810 as_fn_append $6 " $5"
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $4
1814 int
1815 main (void)
1816 {
1817 #ifndef $as_decl_name
1818 #ifdef __cplusplus
1819 (void) $as_decl_use;
1820 #else
1821 (void) $as_decl_name;
1822 #endif
1823 #endif
1824
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"
1830 then :
1831 eval "$3=yes"
1832 else $as_nop
1833 eval "$3=no"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1836 eval $6=\$ac_save_FLAGS
1837
1838 fi
1839 eval ac_res=\$$3
1840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 printf "%s\n" "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_check_decl
1845
1846 # ac_fn_c_try_run LINENO
1847 # ----------------------
1848 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1849 # executables *can* be run.
1850 ac_fn_c_try_run ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 printf "%s\n" "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>&5
1861 ac_status=$?
1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864 { { case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 printf "%s\n" "$ac_try_echo"; } >&5
1870 (eval "$ac_try") 2>&5
1871 ac_status=$?
1872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; }; }
1874 then :
1875 ac_retval=0
1876 else $as_nop
1877 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1878 printf "%s\n" "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=$ac_status
1882 fi
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1886
1887 } # ac_fn_c_try_run
1888 ac_configure_args_raw=
1889 for ac_arg
1890 do
1891 case $ac_arg in
1892 *\'*)
1893 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 esac
1895 as_fn_append ac_configure_args_raw " '$ac_arg'"
1896 done
1897
1898 case $ac_configure_args_raw in
1899 *$as_nl*)
1900 ac_safe_unquote= ;;
1901 *)
1902 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1903 ac_unsafe_a="$ac_unsafe_z#~"
1904 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1905 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1906 esac
1907
1908 cat >config.log <<_ACEOF
1909 This file contains any messages produced by compilers while
1910 running configure, to aid debugging if configure makes a mistake.
1911
1912 It was created by libXinerama $as_me 1.1.5, which was
1913 generated by GNU Autoconf 2.71. Invocation command line was
1914
1915 $ $0$ac_configure_args_raw
1916
1917 _ACEOF
1918 exec 5>>config.log
1919 {
1920 cat <<_ASUNAME
1921 ## --------- ##
1922 ## Platform. ##
1923 ## --------- ##
1924
1925 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930
1931 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1933
1934 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1941
1942 _ASUNAME
1943
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947 IFS=$as_save_IFS
1948 case $as_dir in #(((
1949 '') as_dir=./ ;;
1950 */) ;;
1951 *) as_dir=$as_dir/ ;;
1952 esac
1953 printf "%s\n" "PATH: $as_dir"
1954 done
1955 IFS=$as_save_IFS
1956
1957 } >&5
1958
1959 cat >&5 <<_ACEOF
1960
1961
1962 ## ----------- ##
1963 ## Core tests. ##
1964 ## ----------- ##
1965
1966 _ACEOF
1967
1968
1969 # Keep a trace of the command line.
1970 # Strip out --no-create and --no-recursion so they do not pile up.
1971 # Strip out --silent because we don't want to record it for future runs.
1972 # Also quote any args containing shell meta-characters.
1973 # Make two passes to allow for proper duplicate-argument suppression.
1974 ac_configure_args=
1975 ac_configure_args0=
1976 ac_configure_args1=
1977 ac_must_keep_next=false
1978 for ac_pass in 1 2
1979 do
1980 for ac_arg
1981 do
1982 case $ac_arg in
1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985 | -silent | --silent | --silen | --sile | --sil)
1986 continue ;;
1987 *\'*)
1988 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 esac
1990 case $ac_pass in
1991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1992 2)
1993 as_fn_append ac_configure_args1 " '$ac_arg'"
1994 if test $ac_must_keep_next = true; then
1995 ac_must_keep_next=false # Got value, back to normal.
1996 else
1997 case $ac_arg in
1998 *=* | --config-cache | -C | -disable-* | --disable-* \
1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001 | -with-* | --with-* | -without-* | --without-* | --x)
2002 case "$ac_configure_args0 " in
2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004 esac
2005 ;;
2006 -* ) ac_must_keep_next=true ;;
2007 esac
2008 fi
2009 as_fn_append ac_configure_args " '$ac_arg'"
2010 ;;
2011 esac
2012 done
2013 done
2014 { ac_configure_args0=; unset ac_configure_args0;}
2015 { ac_configure_args1=; unset ac_configure_args1;}
2016
2017 # When interrupted or exit'd, cleanup temporary files, and complete
2018 # config.log. We remove comments because anyway the quotes in there
2019 # would cause problems or look ugly.
2020 # WARNING: Use '\'' to represent an apostrophe within the trap.
2021 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022 trap 'exit_status=$?
2023 # Sanitize IFS.
2024 IFS=" "" $as_nl"
2025 # Save into config.log some information that might help in debugging.
2026 {
2027 echo
2028
2029 printf "%s\n" "## ---------------- ##
2030 ## Cache variables. ##
2031 ## ---------------- ##"
2032 echo
2033 # The following way of writing the cache mishandles newlines in values,
2034 (
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in #(
2038 *${as_nl}*)
2039 case $ac_var in #(
2040 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042 esac
2043 case $ac_var in #(
2044 _ | IFS | as_nl) ;; #(
2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046 *) { eval $ac_var=; unset $ac_var;} ;;
2047 esac ;;
2048 esac
2049 done
2050 (set) 2>&1 |
2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
2053 sed -n \
2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056 ;; #(
2057 *)
2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059 ;;
2060 esac |
2061 sort
2062 )
2063 echo
2064
2065 printf "%s\n" "## ----------------- ##
2066 ## Output variables. ##
2067 ## ----------------- ##"
2068 echo
2069 for ac_var in $ac_subst_vars
2070 do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 printf "%s\n" "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2078
2079 if test -n "$ac_subst_files"; then
2080 printf "%s\n" "## ------------------- ##
2081 ## File substitutions. ##
2082 ## ------------------- ##"
2083 echo
2084 for ac_var in $ac_subst_files
2085 do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 printf "%s\n" "$ac_var='\''$ac_val'\''"
2091 done | sort
2092 echo
2093 fi
2094
2095 if test -s confdefs.h; then
2096 printf "%s\n" "## ----------- ##
2097 ## confdefs.h. ##
2098 ## ----------- ##"
2099 echo
2100 cat confdefs.h
2101 echo
2102 fi
2103 test "$ac_signal" != 0 &&
2104 printf "%s\n" "$as_me: caught signal $ac_signal"
2105 printf "%s\n" "$as_me: exit $exit_status"
2106 } >&5
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2109 exit $exit_status
2110 ' 0
2111 for ac_signal in 1 2 13 15; do
2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113 done
2114 ac_signal=0
2115
2116 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2117 rm -f -r conftest* confdefs.h
2118
2119 printf "%s\n" "/* confdefs.h */" > confdefs.h
2120
2121 # Predefined preprocessor variables.
2122
2123 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2124
2125 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2126
2127 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2128
2129 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2130
2131 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2132
2133 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2134
2135
2136 # Let the site file select an alternate cache file if it wants to.
2137 # Prefer an explicitly selected file to automatically selected ones.
2138 if test -n "$CONFIG_SITE"; then
2139 ac_site_files="$CONFIG_SITE"
2140 elif test "x$prefix" != xNONE; then
2141 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2142 else
2143 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2144 fi
2145
2146 for ac_site_file in $ac_site_files
2147 do
2148 case $ac_site_file in #(
2149 */*) :
2150 ;; #(
2151 *) :
2152 ac_site_file=./$ac_site_file ;;
2153 esac
2154 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2157 sed 's/^/| /' "$ac_site_file" >&5
2158 . "$ac_site_file" \
2159 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2161 as_fn_error $? "failed to load site script $ac_site_file
2162 See \`config.log' for more details" "$LINENO" 5; }
2163 fi
2164 done
2165
2166 if test -r "$cache_file"; then
2167 # Some versions of bash will fail to source /dev/null (special files
2168 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2169 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2172 case $cache_file in
2173 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174 *) . "./$cache_file";;
2175 esac
2176 fi
2177 else
2178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2180 >$cache_file
2181 fi
2182
2183 # Test code for whether the C compiler supports C89 (global declarations)
2184 ac_c_conftest_c89_globals='
2185 /* Does the compiler advertise C89 conformance?
2186 Do not test the value of __STDC__, because some compilers set it to 0
2187 while being otherwise adequately conformant. */
2188 #if !defined __STDC__
2189 # error "Compiler does not advertise C89 conformance"
2190 #endif
2191
2192 #include <stddef.h>
2193 #include <stdarg.h>
2194 struct stat;
2195 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2196 struct buf { int x; };
2197 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2198 static char *e (p, i)
2199 char **p;
2200 int i;
2201 {
2202 return p[i];
2203 }
2204 static char *f (char * (*g) (char **, int), char **p, ...)
2205 {
2206 char *s;
2207 va_list v;
2208 va_start (v,p);
2209 s = g (p, va_arg (v,int));
2210 va_end (v);
2211 return s;
2212 }
2213
2214 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2215 function prototypes and stuff, but not \xHH hex character constants.
2216 These do not provoke an error unfortunately, instead are silently treated
2217 as an "x". The following induces an error, until -std is added to get
2218 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2219 array size at least. It is necessary to write \x00 == 0 to get something
2220 that is true only with -std. */
2221 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2222
2223 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2224 inside strings and character constants. */
2225 #define FOO(x) '\''x'\''
2226 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2227
2228 int test (int i, double x);
2229 struct s1 {int (*f) (int a);};
2230 struct s2 {int (*f) (double a);};
2231 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2232 int, int);'
2233
2234 # Test code for whether the C compiler supports C89 (body of main).
2235 ac_c_conftest_c89_main='
2236 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2237 '
2238
2239 # Test code for whether the C compiler supports C99 (global declarations)
2240 ac_c_conftest_c99_globals='
2241 // Does the compiler advertise C99 conformance?
2242 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2243 # error "Compiler does not advertise C99 conformance"
2244 #endif
2245
2246 #include <stdbool.h>
2247 extern int puts (const char *);
2248 extern int printf (const char *, ...);
2249 extern int dprintf (int, const char *, ...);
2250 extern void *malloc (size_t);
2251
2252 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2253 // dprintf is used instead of fprintf to avoid needing to declare
2254 // FILE and stderr.
2255 #define debug(...) dprintf (2, __VA_ARGS__)
2256 #define showlist(...) puts (#__VA_ARGS__)
2257 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2258 static void
2259 test_varargs_macros (void)
2260 {
2261 int x = 1234;
2262 int y = 5678;
2263 debug ("Flag");
2264 debug ("X = %d\n", x);
2265 showlist (The first, second, and third items.);
2266 report (x>y, "x is %d but y is %d", x, y);
2267 }
2268
2269 // Check long long types.
2270 #define BIG64 18446744073709551615ull
2271 #define BIG32 4294967295ul
2272 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2273 #if !BIG_OK
2274 #error "your preprocessor is broken"
2275 #endif
2276 #if BIG_OK
2277 #else
2278 #error "your preprocessor is broken"
2279 #endif
2280 static long long int bignum = -9223372036854775807LL;
2281 static unsigned long long int ubignum = BIG64;
2282
2283 struct incomplete_array
2284 {
2285 int datasize;
2286 double data[];
2287 };
2288
2289 struct named_init {
2290 int number;
2291 const wchar_t *name;
2292 double average;
2293 };
2294
2295 typedef const char *ccp;
2296
2297 static inline int
2298 test_restrict (ccp restrict text)
2299 {
2300 // See if C++-style comments work.
2301 // Iterate through items via the restricted pointer.
2302 // Also check for declarations in for loops.
2303 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2304 continue;
2305 return 0;
2306 }
2307
2308 // Check varargs and va_copy.
2309 static bool
2310 test_varargs (const char *format, ...)
2311 {
2312 va_list args;
2313 va_start (args, format);
2314 va_list args_copy;
2315 va_copy (args_copy, args);
2316
2317 const char *str = "";
2318 int number = 0;
2319 float fnumber = 0;
2320
2321 while (*format)
2322 {
2323 switch (*format++)
2324 {
2325 case '\''s'\'': // string
2326 str = va_arg (args_copy, const char *);
2327 break;
2328 case '\''d'\'': // int
2329 number = va_arg (args_copy, int);
2330 break;
2331 case '\''f'\'': // float
2332 fnumber = va_arg (args_copy, double);
2333 break;
2334 default:
2335 break;
2336 }
2337 }
2338 va_end (args_copy);
2339 va_end (args);
2340
2341 return *str && number && fnumber;
2342 }
2343 '
2344
2345 # Test code for whether the C compiler supports C99 (body of main).
2346 ac_c_conftest_c99_main='
2347 // Check bool.
2348 _Bool success = false;
2349 success |= (argc != 0);
2350
2351 // Check restrict.
2352 if (test_restrict ("String literal") == 0)
2353 success = true;
2354 char *restrict newvar = "Another string";
2355
2356 // Check varargs.
2357 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2358 test_varargs_macros ();
2359
2360 // Check flexible array members.
2361 struct incomplete_array *ia =
2362 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2363 ia->datasize = 10;
2364 for (int i = 0; i < ia->datasize; ++i)
2365 ia->data[i] = i * 1.234;
2366
2367 // Check named initializers.
2368 struct named_init ni = {
2369 .number = 34,
2370 .name = L"Test wide string",
2371 .average = 543.34343,
2372 };
2373
2374 ni.number = 58;
2375
2376 int dynamic_array[ni.number];
2377 dynamic_array[0] = argv[0][0];
2378 dynamic_array[ni.number - 1] = 543;
2379
2380 // work around unused variable warnings
2381 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2382 || dynamic_array[ni.number - 1] != 543);
2383 '
2384
2385 # Test code for whether the C compiler supports C11 (global declarations)
2386 ac_c_conftest_c11_globals='
2387 // Does the compiler advertise C11 conformance?
2388 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2389 # error "Compiler does not advertise C11 conformance"
2390 #endif
2391
2392 // Check _Alignas.
2393 char _Alignas (double) aligned_as_double;
2394 char _Alignas (0) no_special_alignment;
2395 extern char aligned_as_int;
2396 char _Alignas (0) _Alignas (int) aligned_as_int;
2397
2398 // Check _Alignof.
2399 enum
2400 {
2401 int_alignment = _Alignof (int),
2402 int_array_alignment = _Alignof (int[100]),
2403 char_alignment = _Alignof (char)
2404 };
2405 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2406
2407 // Check _Noreturn.
2408 int _Noreturn does_not_return (void) { for (;;) continue; }
2409
2410 // Check _Static_assert.
2411 struct test_static_assert
2412 {
2413 int x;
2414 _Static_assert (sizeof (int) <= sizeof (long int),
2415 "_Static_assert does not work in struct");
2416 long int y;
2417 };
2418
2419 // Check UTF-8 literals.
2420 #define u8 syntax error!
2421 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2422
2423 // Check duplicate typedefs.
2424 typedef long *long_ptr;
2425 typedef long int *long_ptr;
2426 typedef long_ptr long_ptr;
2427
2428 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2429 struct anonymous
2430 {
2431 union {
2432 struct { int i; int j; };
2433 struct { int k; long int l; } w;
2434 };
2435 int m;
2436 } v1;
2437 '
2438
2439 # Test code for whether the C compiler supports C11 (body of main).
2440 ac_c_conftest_c11_main='
2441 _Static_assert ((offsetof (struct anonymous, i)
2442 == offsetof (struct anonymous, w.k)),
2443 "Anonymous union alignment botch");
2444 v1.i = 2;
2445 v1.w.k = 5;
2446 ok |= v1.i != 5;
2447 '
2448
2449 # Test code for whether the C compiler supports C11 (complete).
2450 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2451 ${ac_c_conftest_c99_globals}
2452 ${ac_c_conftest_c11_globals}
2453
2454 int
2455 main (int argc, char **argv)
2456 {
2457 int ok = 0;
2458 ${ac_c_conftest_c89_main}
2459 ${ac_c_conftest_c99_main}
2460 ${ac_c_conftest_c11_main}
2461 return ok;
2462 }
2463 "
2464
2465 # Test code for whether the C compiler supports C99 (complete).
2466 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2467 ${ac_c_conftest_c99_globals}
2468
2469 int
2470 main (int argc, char **argv)
2471 {
2472 int ok = 0;
2473 ${ac_c_conftest_c89_main}
2474 ${ac_c_conftest_c99_main}
2475 return ok;
2476 }
2477 "
2478
2479 # Test code for whether the C compiler supports C89 (complete).
2480 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2481
2482 int
2483 main (int argc, char **argv)
2484 {
2485 int ok = 0;
2486 ${ac_c_conftest_c89_main}
2487 return ok;
2488 }
2489 "
2490
2491 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2492 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2493 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2494 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2495 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2496 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2497 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2498 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2499 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2500
2501 # Auxiliary files required by this configure script.
2502 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2503
2504 # Locations in which to look for auxiliary files.
2505 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2506
2507 # Search for a directory containing all of the required auxiliary files,
2508 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2509 # If we don't find one directory that contains all the files we need,
2510 # we report the set of missing files from the *first* directory in
2511 # $ac_aux_dir_candidates and give up.
2512 ac_missing_aux_files=""
2513 ac_first_candidate=:
2514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 as_found=false
2517 for as_dir in $ac_aux_dir_candidates
2518 do
2519 IFS=$as_save_IFS
2520 case $as_dir in #(((
2521 '') as_dir=./ ;;
2522 */) ;;
2523 *) as_dir=$as_dir/ ;;
2524 esac
2525 as_found=:
2526
2527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2528 ac_aux_dir_found=yes
2529 ac_install_sh=
2530 for ac_aux in $ac_aux_files
2531 do
2532 # As a special case, if "install-sh" is required, that requirement
2533 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2534 # and $ac_install_sh is set appropriately for whichever one is found.
2535 if test x"$ac_aux" = x"install-sh"
2536 then
2537 if test -f "${as_dir}install-sh"; then
2538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2539 ac_install_sh="${as_dir}install-sh -c"
2540 elif test -f "${as_dir}install.sh"; then
2541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2542 ac_install_sh="${as_dir}install.sh -c"
2543 elif test -f "${as_dir}shtool"; then
2544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2545 ac_install_sh="${as_dir}shtool install -c"
2546 else
2547 ac_aux_dir_found=no
2548 if $ac_first_candidate; then
2549 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2550 else
2551 break
2552 fi
2553 fi
2554 else
2555 if test -f "${as_dir}${ac_aux}"; then
2556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2557 else
2558 ac_aux_dir_found=no
2559 if $ac_first_candidate; then
2560 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2561 else
2562 break
2563 fi
2564 fi
2565 fi
2566 done
2567 if test "$ac_aux_dir_found" = yes; then
2568 ac_aux_dir="$as_dir"
2569 break
2570 fi
2571 ac_first_candidate=false
2572
2573 as_found=false
2574 done
2575 IFS=$as_save_IFS
2576 if $as_found
2577 then :
2578
2579 else $as_nop
2580 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2581 fi
2582
2583
2584 # These three variables are undocumented and unsupported,
2585 # and are intended to be withdrawn in a future Autoconf release.
2586 # They can cause serious problems if a builder's source tree is in a directory
2587 # whose full name contains unusual characters.
2588 if test -f "${ac_aux_dir}config.guess"; then
2589 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2590 fi
2591 if test -f "${ac_aux_dir}config.sub"; then
2592 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2593 fi
2594 if test -f "$ac_aux_dir/configure"; then
2595 ac_configure="$SHELL ${ac_aux_dir}configure"
2596 fi
2597
2598 # Check that the precious variables saved in the cache have kept the same
2599 # value.
2600 ac_cache_corrupted=false
2601 for ac_var in $ac_precious_vars; do
2602 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2603 eval ac_new_set=\$ac_env_${ac_var}_set
2604 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2605 eval ac_new_val=\$ac_env_${ac_var}_value
2606 case $ac_old_set,$ac_new_set in
2607 set,)
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2609 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2611 ,set)
2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2613 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2615 ,);;
2616 *)
2617 if test "x$ac_old_val" != "x$ac_new_val"; then
2618 # differences in whitespace do not lead to failure.
2619 ac_old_val_w=`echo x $ac_old_val`
2620 ac_new_val_w=`echo x $ac_new_val`
2621 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2623 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2624 ac_cache_corrupted=:
2625 else
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2627 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2628 eval $ac_var=\$ac_old_val
2629 fi
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2631 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2633 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2634 fi;;
2635 esac
2636 # Pass precious variables to config.status.
2637 if test "$ac_new_set" = set; then
2638 case $ac_new_val in
2639 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2640 *) ac_arg=$ac_var=$ac_new_val ;;
2641 esac
2642 case " $ac_configure_args " in
2643 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2644 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2645 esac
2646 fi
2647 done
2648 if $ac_cache_corrupted; then
2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2652 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2653 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2654 and start over" "$LINENO" 5
2655 fi
2656 ## -------------------- ##
2657 ## Main body of script. ##
2658 ## -------------------- ##
2659
2660 ac_ext=c
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665
2666
2667
2668 ac_config_headers="$ac_config_headers config.h"
2669
2670
2671 # Initialize Automake
2672 am__api_version='1.16'
2673
2674
2675
2676 # Find a good install program. We prefer a C program (faster),
2677 # so one script is as good as another. But avoid the broken or
2678 # incompatible versions:
2679 # SysV /etc/install, /usr/sbin/install
2680 # SunOS /usr/etc/install
2681 # IRIX /sbin/install
2682 # AIX /bin/install
2683 # AmigaOS /C/install, which installs bootblocks on floppy discs
2684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2687 # OS/2's system install, which has a completely different semantic
2688 # ./install, which can be erroneously created by make from ./install.sh.
2689 # Reject install programs that cannot install multiple files.
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2691 printf %s "checking for a BSD-compatible install... " >&6; }
2692 if test -z "$INSTALL"; then
2693 if test ${ac_cv_path_install+y}
2694 then :
2695 printf %s "(cached) " >&6
2696 else $as_nop
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700 IFS=$as_save_IFS
2701 case $as_dir in #(((
2702 '') as_dir=./ ;;
2703 */) ;;
2704 *) as_dir=$as_dir/ ;;
2705 esac
2706 # Account for fact that we put trailing slashes in our PATH walk.
2707 case $as_dir in #((
2708 ./ | /[cC]/* | \
2709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2710 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2711 /usr/ucb/* ) ;;
2712 *)
2713 # OSF1 and SCO ODT 3.0 have their own names for install.
2714 # Don't use installbsd from OSF since it installs stuff as root
2715 # by default.
2716 for ac_prog in ginstall scoinst install; do
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2719 if test $ac_prog = install &&
2720 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721 # AIX install. It has an incompatible calling convention.
2722 :
2723 elif test $ac_prog = install &&
2724 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725 # program-specific install script used by HP pwplus--don't use.
2726 :
2727 else
2728 rm -rf conftest.one conftest.two conftest.dir
2729 echo one > conftest.one
2730 echo two > conftest.two
2731 mkdir conftest.dir
2732 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2733 test -s conftest.one && test -s conftest.two &&
2734 test -s conftest.dir/conftest.one &&
2735 test -s conftest.dir/conftest.two
2736 then
2737 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2738 break 3
2739 fi
2740 fi
2741 fi
2742 done
2743 done
2744 ;;
2745 esac
2746
2747 done
2748 IFS=$as_save_IFS
2749
2750 rm -rf conftest.one conftest.two conftest.dir
2751
2752 fi
2753 if test ${ac_cv_path_install+y}; then
2754 INSTALL=$ac_cv_path_install
2755 else
2756 # As a last resort, use the slow shell script. Don't cache a
2757 # value for INSTALL within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the value is a relative name.
2760 INSTALL=$ac_install_sh
2761 fi
2762 fi
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2764 printf "%s\n" "$INSTALL" >&6; }
2765
2766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2767 # It thinks the first close brace ends the variable substitution.
2768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2769
2770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2771
2772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2773
2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2775 printf %s "checking whether build environment is sane... " >&6; }
2776 # Reject unsafe characters in $srcdir or the absolute working directory
2777 # name. Accept space and tab only in the latter.
2778 am_lf='
2779 '
2780 case `pwd` in
2781 *[\\\"\#\$\&\'\`$am_lf]*)
2782 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2783 esac
2784 case $srcdir in
2785 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2786 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2787 esac
2788
2789 # Do 'set' in a subshell so we don't clobber the current shell's
2790 # arguments. Must try -L first in case configure is actually a
2791 # symlink; some systems play weird games with the mod time of symlinks
2792 # (eg FreeBSD returns the mod time of the symlink's containing
2793 # directory).
2794 if (
2795 am_has_slept=no
2796 for am_try in 1 2; do
2797 echo "timestamp, slept: $am_has_slept" > conftest.file
2798 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2799 if test "$*" = "X"; then
2800 # -L didn't work.
2801 set X `ls -t "$srcdir/configure" conftest.file`
2802 fi
2803 if test "$*" != "X $srcdir/configure conftest.file" \
2804 && test "$*" != "X conftest.file $srcdir/configure"; then
2805
2806 # If neither matched, then we have a broken ls. This can happen
2807 # if, for instance, CONFIG_SHELL is bash and it inherits a
2808 # broken ls alias from the environment. This has actually
2809 # happened. Such a system could not be considered "sane".
2810 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2811 alias in your environment" "$LINENO" 5
2812 fi
2813 if test "$2" = conftest.file || test $am_try -eq 2; then
2814 break
2815 fi
2816 # Just in case.
2817 sleep 1
2818 am_has_slept=yes
2819 done
2820 test "$2" = conftest.file
2821 )
2822 then
2823 # Ok.
2824 :
2825 else
2826 as_fn_error $? "newly created file is older than distributed files!
2827 Check your system clock" "$LINENO" 5
2828 fi
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2830 printf "%s\n" "yes" >&6; }
2831 # If we didn't sleep, we still need to ensure time stamps of config.status and
2832 # generated files are strictly newer.
2833 am_sleep_pid=
2834 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2835 ( sleep 1 ) &
2836 am_sleep_pid=$!
2837 fi
2838
2839 rm -f conftest.file
2840
2841 test "$program_prefix" != NONE &&
2842 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2843 # Use a double $ so make ignores it.
2844 test "$program_suffix" != NONE &&
2845 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2846 # Double any \ or $.
2847 # By default was `s,x,x', remove it if useless.
2848 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2849 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2850
2851
2852 # Expand $ac_aux_dir to an absolute path.
2853 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2854
2855
2856 if test x"${MISSING+set}" != xset; then
2857 MISSING="\${SHELL} '$am_aux_dir/missing'"
2858 fi
2859 # Use eval to expand $SHELL
2860 if eval "$MISSING --is-lightweight"; then
2861 am_missing_run="$MISSING "
2862 else
2863 am_missing_run=
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2865 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2866 fi
2867
2868 if test x"${install_sh+set}" != xset; then
2869 case $am_aux_dir in
2870 *\ * | *\ *)
2871 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2872 *)
2873 install_sh="\${SHELL} $am_aux_dir/install-sh"
2874 esac
2875 fi
2876
2877 # Installed binaries are usually stripped using 'strip' when the user
2878 # run "make install-strip". However 'strip' might not be the right
2879 # tool to use in cross-compilation environments, therefore Automake
2880 # will honor the 'STRIP' environment variable to overrule this program.
2881 if test "$cross_compiling" != no; then
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}strip; ac_word=$2
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 printf %s "checking for $ac_word... " >&6; }
2887 if test ${ac_cv_prog_STRIP+y}
2888 then :
2889 printf %s "(cached) " >&6
2890 else $as_nop
2891 if test -n "$STRIP"; then
2892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 case $as_dir in #(((
2899 '') as_dir=./ ;;
2900 */) ;;
2901 *) as_dir=$as_dir/ ;;
2902 esac
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 STRIP=$ac_cv_prog_STRIP
2916 if test -n "$STRIP"; then
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2918 printf "%s\n" "$STRIP" >&6; }
2919 else
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 printf "%s\n" "no" >&6; }
2922 fi
2923
2924
2925 fi
2926 if test -z "$ac_cv_prog_STRIP"; then
2927 ac_ct_STRIP=$STRIP
2928 # Extract the first word of "strip", so it can be a program name with args.
2929 set dummy strip; ac_word=$2
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 printf %s "checking for $ac_word... " >&6; }
2932 if test ${ac_cv_prog_ac_ct_STRIP+y}
2933 then :
2934 printf %s "(cached) " >&6
2935 else $as_nop
2936 if test -n "$ac_ct_STRIP"; then
2937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 case $as_dir in #(((
2944 '') as_dir=./ ;;
2945 */) ;;
2946 *) as_dir=$as_dir/ ;;
2947 esac
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_ac_ct_STRIP="strip"
2951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2961 if test -n "$ac_ct_STRIP"; then
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2963 printf "%s\n" "$ac_ct_STRIP" >&6; }
2964 else
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 printf "%s\n" "no" >&6; }
2967 fi
2968
2969 if test "x$ac_ct_STRIP" = x; then
2970 STRIP=":"
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 STRIP=$ac_ct_STRIP
2979 fi
2980 else
2981 STRIP="$ac_cv_prog_STRIP"
2982 fi
2983
2984 fi
2985 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2986
2987
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2989 printf %s "checking for a race-free mkdir -p... " >&6; }
2990 if test -z "$MKDIR_P"; then
2991 if test ${ac_cv_path_mkdir+y}
2992 then :
2993 printf %s "(cached) " >&6
2994 else $as_nop
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2997 do
2998 IFS=$as_save_IFS
2999 case $as_dir in #(((
3000 '') as_dir=./ ;;
3001 */) ;;
3002 *) as_dir=$as_dir/ ;;
3003 esac
3004 for ac_prog in mkdir gmkdir; do
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3007 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3008 'mkdir ('*'coreutils) '* | \
3009 'BusyBox '* | \
3010 'mkdir (fileutils) '4.1*)
3011 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3012 break 3;;
3013 esac
3014 done
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020
3021 test -d ./--version && rmdir ./--version
3022 if test ${ac_cv_path_mkdir+y}; then
3023 MKDIR_P="$ac_cv_path_mkdir -p"
3024 else
3025 # As a last resort, use the slow shell script. Don't cache a
3026 # value for MKDIR_P within a source directory, because that will
3027 # break other packages using the cache if that directory is
3028 # removed, or if the value is a relative name.
3029 MKDIR_P="$ac_install_sh -d"
3030 fi
3031 fi
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3033 printf "%s\n" "$MKDIR_P" >&6; }
3034
3035 for ac_prog in gawk mawk nawk awk
3036 do
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 printf %s "checking for $ac_word... " >&6; }
3041 if test ${ac_cv_prog_AWK+y}
3042 then :
3043 printf %s "(cached) " >&6
3044 else $as_nop
3045 if test -n "$AWK"; then
3046 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 case $as_dir in #(((
3053 '') as_dir=./ ;;
3054 */) ;;
3055 *) as_dir=$as_dir/ ;;
3056 esac
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_AWK="$ac_prog"
3060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 AWK=$ac_cv_prog_AWK
3070 if test -n "$AWK"; then
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3072 printf "%s\n" "$AWK" >&6; }
3073 else
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 printf "%s\n" "no" >&6; }
3076 fi
3077
3078
3079 test -n "$AWK" && break
3080 done
3081
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3083 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3084 set x ${MAKE-make}
3085 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3086 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3087 then :
3088 printf %s "(cached) " >&6
3089 else $as_nop
3090 cat >conftest.make <<\_ACEOF
3091 SHELL = /bin/sh
3092 all:
3093 @echo '@@@%%%=$(MAKE)=@@@%%%'
3094 _ACEOF
3095 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3096 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3097 *@@@%%%=?*=@@@%%%*)
3098 eval ac_cv_prog_make_${ac_make}_set=yes;;
3099 *)
3100 eval ac_cv_prog_make_${ac_make}_set=no;;
3101 esac
3102 rm -f conftest.make
3103 fi
3104 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106 printf "%s\n" "yes" >&6; }
3107 SET_MAKE=
3108 else
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 printf "%s\n" "no" >&6; }
3111 SET_MAKE="MAKE=${MAKE-make}"
3112 fi
3113
3114 rm -rf .tst 2>/dev/null
3115 mkdir .tst 2>/dev/null
3116 if test -d .tst; then
3117 am__leading_dot=.
3118 else
3119 am__leading_dot=_
3120 fi
3121 rmdir .tst 2>/dev/null
3122
3123 # Check whether --enable-silent-rules was given.
3124 if test ${enable_silent_rules+y}
3125 then :
3126 enableval=$enable_silent_rules;
3127 fi
3128
3129 case $enable_silent_rules in # (((
3130 yes) AM_DEFAULT_VERBOSITY=0;;
3131 no) AM_DEFAULT_VERBOSITY=1;;
3132 *) AM_DEFAULT_VERBOSITY=1;;
3133 esac
3134 am_make=${MAKE-make}
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3136 printf %s "checking whether $am_make supports nested variables... " >&6; }
3137 if test ${am_cv_make_support_nested_variables+y}
3138 then :
3139 printf %s "(cached) " >&6
3140 else $as_nop
3141 if printf "%s\n" 'TRUE=$(BAR$(V))
3142 BAR0=false
3143 BAR1=true
3144 V=1
3145 am__doit:
3146 @$(TRUE)
3147 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3148 am_cv_make_support_nested_variables=yes
3149 else
3150 am_cv_make_support_nested_variables=no
3151 fi
3152 fi
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3154 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3155 if test $am_cv_make_support_nested_variables = yes; then
3156 AM_V='$(V)'
3157 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3158 else
3159 AM_V=$AM_DEFAULT_VERBOSITY
3160 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3161 fi
3162 AM_BACKSLASH='\'
3163
3164 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3165 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3166 # is not polluted with repeated "-I."
3167 am__isrc=' -I$(srcdir)'
3168 # test to see if srcdir already configured
3169 if test -f $srcdir/config.status; then
3170 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3171 fi
3172 fi
3173
3174 # test whether we have cygpath
3175 if test -z "$CYGPATH_W"; then
3176 if (cygpath --version) >/dev/null 2>/dev/null; then
3177 CYGPATH_W='cygpath -w'
3178 else
3179 CYGPATH_W=echo
3180 fi
3181 fi
3182
3183
3184 # Define the identity of the package.
3185 PACKAGE='libXinerama'
3186 VERSION='1.1.5'
3187
3188
3189 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3190
3191
3192 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3193
3194 # Some tools Automake needs.
3195
3196 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3197
3198
3199 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3200
3201
3202 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3203
3204
3205 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3206
3207
3208 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3209
3210 # For better backward compatibility. To be removed once Automake 1.9.x
3211 # dies out for good. For more background, see:
3212 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3213 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3214 mkdir_p='$(MKDIR_P)'
3215
3216 # We need awk for the "check" target (and possibly the TAP driver). The
3217 # system "awk" is bad on some platforms.
3218 # Always define AMTAR for backward compatibility. Yes, it's still used
3219 # in the wild :-( We should find a proper way to deprecate it ...
3220 AMTAR='$${TAR-tar}'
3221
3222
3223 # We'll loop over all known methods to create a tar archive until one works.
3224 _am_tools='gnutar pax cpio none'
3225
3226 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3227
3228
3229
3230
3231
3232 # Variables for tags utilities; see am/tags.am
3233 if test -z "$CTAGS"; then
3234 CTAGS=ctags
3235 fi
3236
3237 if test -z "$ETAGS"; then
3238 ETAGS=etags
3239 fi
3240
3241 if test -z "$CSCOPE"; then
3242 CSCOPE=cscope
3243 fi
3244
3245
3246
3247 # POSIX will say in a future version that running "rm -f" with no argument
3248 # is OK; and we want to be able to make that assumption in our Makefile
3249 # recipes. So use an aggressive probe to check that the usage we want is
3250 # actually supported "in the wild" to an acceptable degree.
3251 # See automake bug#10828.
3252 # To make any issue more visible, cause the running configure to be aborted
3253 # by default if the 'rm' program in use doesn't match our expectations; the
3254 # user can still override this though.
3255 if rm -f && rm -fr && rm -rf; then : OK; else
3256 cat >&2 <<'END'
3257 Oops!
3258
3259 Your 'rm' program seems unable to run without file operands specified
3260 on the command line, even when the '-f' option is present. This is contrary
3261 to the behaviour of most rm programs out there, and not conforming with
3262 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3263
3264 Please tell bug-automake@gnu.org about your system, including the value
3265 of your $PATH and any error possibly output before this message. This
3266 can help us improve future automake versions.
3267
3268 END
3269 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3270 echo 'Configuration will proceed anyway, since you have set the' >&2
3271 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3272 echo >&2
3273 else
3274 cat >&2 <<'END'
3275 Aborting the configuration process, to ensure you take notice of the issue.
3276
3277 You can download and install GNU coreutils to get an 'rm' implementation
3278 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3279
3280 If you want to complete the configuration process using your problematic
3281 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3282 to "yes", and re-run configure.
3283
3284 END
3285 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3286 fi
3287 fi
3288
3289
3290 # Initialize libtool
3291 case `pwd` in
3292 *\ * | *\ *)
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3294 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3295 esac
3296
3297
3298
3299 macro_version='2.4.7'
3300 macro_revision='2.4.7'
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315 ltmain=$ac_aux_dir/ltmain.sh
3316
3317
3318
3319 # Make sure we can run config.sub.
3320 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3321 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3322
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3324 printf %s "checking build system type... " >&6; }
3325 if test ${ac_cv_build+y}
3326 then :
3327 printf %s "(cached) " >&6
3328 else $as_nop
3329 ac_build_alias=$build_alias
3330 test "x$ac_build_alias" = x &&
3331 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3332 test "x$ac_build_alias" = x &&
3333 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3334 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3335 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3336
3337 fi
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3339 printf "%s\n" "$ac_cv_build" >&6; }
3340 case $ac_cv_build in
3341 *-*-*) ;;
3342 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3343 esac
3344 build=$ac_cv_build
3345 ac_save_IFS=$IFS; IFS='-'
3346 set x $ac_cv_build
3347 shift
3348 build_cpu=$1
3349 build_vendor=$2
3350 shift; shift
3351 # Remember, the first character of IFS is used to create $*,
3352 # except with old shells:
3353 build_os=$*
3354 IFS=$ac_save_IFS
3355 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3356
3357
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3359 printf %s "checking host system type... " >&6; }
3360 if test ${ac_cv_host+y}
3361 then :
3362 printf %s "(cached) " >&6
3363 else $as_nop
3364 if test "x$host_alias" = x; then
3365 ac_cv_host=$ac_cv_build
3366 else
3367 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3368 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3369 fi
3370
3371 fi
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3373 printf "%s\n" "$ac_cv_host" >&6; }
3374 case $ac_cv_host in
3375 *-*-*) ;;
3376 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3377 esac
3378 host=$ac_cv_host
3379 ac_save_IFS=$IFS; IFS='-'
3380 set x $ac_cv_host
3381 shift
3382 host_cpu=$1
3383 host_vendor=$2
3384 shift; shift
3385 # Remember, the first character of IFS is used to create $*,
3386 # except with old shells:
3387 host_os=$*
3388 IFS=$ac_save_IFS
3389 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3390
3391
3392 # Backslashify metacharacters that are still active within
3393 # double-quoted strings.
3394 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3395
3396 # Same as above, but do not quote variable references.
3397 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3398
3399 # Sed substitution to delay expansion of an escaped shell variable in a
3400 # double_quote_subst'ed string.
3401 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3402
3403 # Sed substitution to delay expansion of an escaped single quote.
3404 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3405
3406 # Sed substitution to avoid accidental globbing in evaled expressions
3407 no_glob_subst='s/\*/\\\*/g'
3408
3409 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3410 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3411 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3412
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3414 printf %s "checking how to print strings... " >&6; }
3415 # Test print first, because it will be a builtin if present.
3416 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3417 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3418 ECHO='print -r --'
3419 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3420 ECHO='printf %s\n'
3421 else
3422 # Use this function as a fallback that always works.
3423 func_fallback_echo ()
3424 {
3425 eval 'cat <<_LTECHO_EOF
3426 $1
3427 _LTECHO_EOF'
3428 }
3429 ECHO='func_fallback_echo'
3430 fi
3431
3432 # func_echo_all arg...
3433 # Invoke $ECHO with all args, space-separated.
3434 func_echo_all ()
3435 {
3436 $ECHO ""
3437 }
3438
3439 case $ECHO in
3440 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3441 printf "%s\n" "printf" >&6; } ;;
3442 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3443 printf "%s\n" "print -r" >&6; } ;;
3444 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3445 printf "%s\n" "cat" >&6; } ;;
3446 esac
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470 DEPDIR="${am__leading_dot}deps"
3471
3472 ac_config_commands="$ac_config_commands depfiles"
3473
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3475 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3476 cat > confinc.mk << 'END'
3477 am__doit:
3478 @echo this is the am__doit target >confinc.out
3479 .PHONY: am__doit
3480 END
3481 am__include="#"
3482 am__quote=
3483 # BSD make does it like this.
3484 echo '.include "confinc.mk" # ignored' > confmf.BSD
3485 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3486 echo 'include confinc.mk # ignored' > confmf.GNU
3487 _am_result=no
3488 for s in GNU BSD; do
3489 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3490 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }
3494 case $?:`cat confinc.out 2>/dev/null` in #(
3495 '0:this is the am__doit target') :
3496 case $s in #(
3497 BSD) :
3498 am__include='.include' am__quote='"' ;; #(
3499 *) :
3500 am__include='include' am__quote='' ;;
3501 esac ;; #(
3502 *) :
3503 ;;
3504 esac
3505 if test "$am__include" != "#"; then
3506 _am_result="yes ($s style)"
3507 break
3508 fi
3509 done
3510 rm -f confinc.* confmf.*
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3512 printf "%s\n" "${_am_result}" >&6; }
3513
3514 # Check whether --enable-dependency-tracking was given.
3515 if test ${enable_dependency_tracking+y}
3516 then :
3517 enableval=$enable_dependency_tracking;
3518 fi
3519
3520 if test "x$enable_dependency_tracking" != xno; then
3521 am_depcomp="$ac_aux_dir/depcomp"
3522 AMDEPBACKSLASH='\'
3523 am__nodep='_no'
3524 fi
3525 if test "x$enable_dependency_tracking" != xno; then
3526 AMDEP_TRUE=
3527 AMDEP_FALSE='#'
3528 else
3529 AMDEP_TRUE='#'
3530 AMDEP_FALSE=
3531 fi
3532
3533
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 printf %s "checking for $ac_word... " >&6; }
3544 if test ${ac_cv_prog_CC+y}
3545 then :
3546 printf %s "(cached) " >&6
3547 else $as_nop
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC="$CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 printf "%s\n" "$CC" >&6; }
3576 else
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 printf "%s\n" "no" >&6; }
3579 fi
3580
3581
3582 fi
3583 if test -z "$ac_cv_prog_CC"; then
3584 ac_ct_CC=$CC
3585 # Extract the first word of "gcc", so it can be a program name with args.
3586 set dummy gcc; ac_word=$2
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 printf %s "checking for $ac_word... " >&6; }
3589 if test ${ac_cv_prog_ac_ct_CC+y}
3590 then :
3591 printf %s "(cached) " >&6
3592 else $as_nop
3593 if test -n "$ac_ct_CC"; then
3594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 case $as_dir in #(((
3601 '') as_dir=./ ;;
3602 */) ;;
3603 *) as_dir=$as_dir/ ;;
3604 esac
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_ac_ct_CC="gcc"
3608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618 if test -n "$ac_ct_CC"; then
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3620 printf "%s\n" "$ac_ct_CC" >&6; }
3621 else
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 printf "%s\n" "no" >&6; }
3624 fi
3625
3626 if test "x$ac_ct_CC" = x; then
3627 CC=""
3628 else
3629 case $cross_compiling:$ac_tool_warned in
3630 yes:)
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3634 esac
3635 CC=$ac_ct_CC
3636 fi
3637 else
3638 CC="$ac_cv_prog_CC"
3639 fi
3640
3641 if test -z "$CC"; then
3642 if test -n "$ac_tool_prefix"; then
3643 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3644 set dummy ${ac_tool_prefix}cc; ac_word=$2
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 printf %s "checking for $ac_word... " >&6; }
3647 if test ${ac_cv_prog_CC+y}
3648 then :
3649 printf %s "(cached) " >&6
3650 else $as_nop
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657 IFS=$as_save_IFS
3658 case $as_dir in #(((
3659 '') as_dir=./ ;;
3660 */) ;;
3661 *) as_dir=$as_dir/ ;;
3662 esac
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_CC="${ac_tool_prefix}cc"
3666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669 done
3670 done
3671 IFS=$as_save_IFS
3672
3673 fi
3674 fi
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 printf "%s\n" "$CC" >&6; }
3679 else
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 printf "%s\n" "no" >&6; }
3682 fi
3683
3684
3685 fi
3686 fi
3687 if test -z "$CC"; then
3688 # Extract the first word of "cc", so it can be a program name with args.
3689 set dummy cc; ac_word=$2
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 printf %s "checking for $ac_word... " >&6; }
3692 if test ${ac_cv_prog_CC+y}
3693 then :
3694 printf %s "(cached) " >&6
3695 else $as_nop
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 ac_prog_rejected=no
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703 IFS=$as_save_IFS
3704 case $as_dir in #(((
3705 '') as_dir=./ ;;
3706 */) ;;
3707 *) as_dir=$as_dir/ ;;
3708 esac
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3711 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3712 ac_prog_rejected=yes
3713 continue
3714 fi
3715 ac_cv_prog_CC="cc"
3716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719 done
3720 done
3721 IFS=$as_save_IFS
3722
3723 if test $ac_prog_rejected = yes; then
3724 # We found a bogon in the path, so make sure we never use it.
3725 set dummy $ac_cv_prog_CC
3726 shift
3727 if test $# != 0; then
3728 # We chose a different compiler from the bogus one.
3729 # However, it has the same basename, so the bogon will be chosen
3730 # first if we set CC to just the basename; use the full file name.
3731 shift
3732 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3733 fi
3734 fi
3735 fi
3736 fi
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 printf "%s\n" "$CC" >&6; }
3741 else
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 printf "%s\n" "no" >&6; }
3744 fi
3745
3746
3747 fi
3748 if test -z "$CC"; then
3749 if test -n "$ac_tool_prefix"; then
3750 for ac_prog in cl.exe
3751 do
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 printf %s "checking for $ac_word... " >&6; }
3756 if test ${ac_cv_prog_CC+y}
3757 then :
3758 printf %s "(cached) " >&6
3759 else $as_nop
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766 IFS=$as_save_IFS
3767 case $as_dir in #(((
3768 '') as_dir=./ ;;
3769 */) ;;
3770 *) as_dir=$as_dir/ ;;
3771 esac
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778 done
3779 done
3780 IFS=$as_save_IFS
3781
3782 fi
3783 fi
3784 CC=$ac_cv_prog_CC
3785 if test -n "$CC"; then
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787 printf "%s\n" "$CC" >&6; }
3788 else
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 printf "%s\n" "no" >&6; }
3791 fi
3792
3793
3794 test -n "$CC" && break
3795 done
3796 fi
3797 if test -z "$CC"; then
3798 ac_ct_CC=$CC
3799 for ac_prog in cl.exe
3800 do
3801 # Extract the first word of "$ac_prog", so it can be a program name with args.
3802 set dummy $ac_prog; ac_word=$2
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 printf %s "checking for $ac_word... " >&6; }
3805 if test ${ac_cv_prog_ac_ct_CC+y}
3806 then :
3807 printf %s "(cached) " >&6
3808 else $as_nop
3809 if test -n "$ac_ct_CC"; then
3810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815 IFS=$as_save_IFS
3816 case $as_dir in #(((
3817 '') as_dir=./ ;;
3818 */) ;;
3819 *) as_dir=$as_dir/ ;;
3820 esac
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_ac_ct_CC="$ac_prog"
3824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827 done
3828 done
3829 IFS=$as_save_IFS
3830
3831 fi
3832 fi
3833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3834 if test -n "$ac_ct_CC"; then
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836 printf "%s\n" "$ac_ct_CC" >&6; }
3837 else
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 printf "%s\n" "no" >&6; }
3840 fi
3841
3842
3843 test -n "$ac_ct_CC" && break
3844 done
3845
3846 if test "x$ac_ct_CC" = x; then
3847 CC=""
3848 else
3849 case $cross_compiling:$ac_tool_warned in
3850 yes:)
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned=yes ;;
3854 esac
3855 CC=$ac_ct_CC
3856 fi
3857 fi
3858
3859 fi
3860 if test -z "$CC"; then
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}clang; ac_word=$2
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 printf %s "checking for $ac_word... " >&6; }
3866 if test ${ac_cv_prog_CC+y}
3867 then :
3868 printf %s "(cached) " >&6
3869 else $as_nop
3870 if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876 IFS=$as_save_IFS
3877 case $as_dir in #(((
3878 '') as_dir=./ ;;
3879 */) ;;
3880 *) as_dir=$as_dir/ ;;
3881 esac
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_CC="${ac_tool_prefix}clang"
3885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3886 break 2
3887 fi
3888 done
3889 done
3890 IFS=$as_save_IFS
3891
3892 fi
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 printf "%s\n" "$CC" >&6; }
3898 else
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 printf "%s\n" "no" >&6; }
3901 fi
3902
3903
3904 fi
3905 if test -z "$ac_cv_prog_CC"; then
3906 ac_ct_CC=$CC
3907 # Extract the first word of "clang", so it can be a program name with args.
3908 set dummy clang; ac_word=$2
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910 printf %s "checking for $ac_word... " >&6; }
3911 if test ${ac_cv_prog_ac_ct_CC+y}
3912 then :
3913 printf %s "(cached) " >&6
3914 else $as_nop
3915 if test -n "$ac_ct_CC"; then
3916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921 IFS=$as_save_IFS
3922 case $as_dir in #(((
3923 '') as_dir=./ ;;
3924 */) ;;
3925 *) as_dir=$as_dir/ ;;
3926 esac
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_ac_ct_CC="clang"
3930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933 done
3934 done
3935 IFS=$as_save_IFS
3936
3937 fi
3938 fi
3939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3940 if test -n "$ac_ct_CC"; then
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3942 printf "%s\n" "$ac_ct_CC" >&6; }
3943 else
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 printf "%s\n" "no" >&6; }
3946 fi
3947
3948 if test "x$ac_ct_CC" = x; then
3949 CC=""
3950 else
3951 case $cross_compiling:$ac_tool_warned in
3952 yes:)
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3954 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3955 ac_tool_warned=yes ;;
3956 esac
3957 CC=$ac_ct_CC
3958 fi
3959 else
3960 CC="$ac_cv_prog_CC"
3961 fi
3962
3963 fi
3964
3965
3966 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3968 as_fn_error $? "no acceptable C compiler found in \$PATH
3969 See \`config.log' for more details" "$LINENO" 5; }
3970
3971 # Provide some information about the compiler.
3972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3973 set X $ac_compile
3974 ac_compiler=$2
3975 for ac_option in --version -v -V -qversion -version; do
3976 { { ac_try="$ac_compiler $ac_option >&5"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 printf "%s\n" "$ac_try_echo"; } >&5
3983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3984 ac_status=$?
3985 if test -s conftest.err; then
3986 sed '10a\
3987 ... rest of stderr output deleted ...
3988 10q' conftest.err >conftest.er1
3989 cat conftest.er1 >&5
3990 fi
3991 rm -f conftest.er1 conftest.err
3992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }
3994 done
3995
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998
3999 int
4000 main (void)
4001 {
4002
4003 ;
4004 return 0;
4005 }
4006 _ACEOF
4007 ac_clean_files_save=$ac_clean_files
4008 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4009 # Try to create an executable without -o first, disregard a.out.
4010 # It will help us diagnose broken compilers, and finding out an intuition
4011 # of exeext.
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4013 printf %s "checking whether the C compiler works... " >&6; }
4014 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4015
4016 # The possible output files:
4017 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4018
4019 ac_rmfiles=
4020 for ac_file in $ac_files
4021 do
4022 case $ac_file in
4023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4024 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4025 esac
4026 done
4027 rm -f $ac_rmfiles
4028
4029 if { { ac_try="$ac_link_default"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 printf "%s\n" "$ac_try_echo"; } >&5
4036 (eval "$ac_link_default") 2>&5
4037 ac_status=$?
4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }
4040 then :
4041 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4042 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4043 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4044 # so that the user can short-circuit this test for compilers unknown to
4045 # Autoconf.
4046 for ac_file in $ac_files ''
4047 do
4048 test -f "$ac_file" || continue
4049 case $ac_file in
4050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4051 ;;
4052 [ab].out )
4053 # We found the default executable, but exeext='' is most
4054 # certainly right.
4055 break;;
4056 *.* )
4057 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4058 then :; else
4059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4060 fi
4061 # We set ac_cv_exeext here because the later test for it is not
4062 # safe: cross compilers may not add the suffix if given an `-o'
4063 # argument, so we may need to know it at that point already.
4064 # Even if this section looks crufty: it has the advantage of
4065 # actually working.
4066 break;;
4067 * )
4068 break;;
4069 esac
4070 done
4071 test "$ac_cv_exeext" = no && ac_cv_exeext=
4072
4073 else $as_nop
4074 ac_file=''
4075 fi
4076 if test -z "$ac_file"
4077 then :
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 printf "%s\n" "no" >&6; }
4080 printf "%s\n" "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error 77 "C compiler cannot create executables
4086 See \`config.log' for more details" "$LINENO" 5; }
4087 else $as_nop
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089 printf "%s\n" "yes" >&6; }
4090 fi
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4092 printf %s "checking for C compiler default output file name... " >&6; }
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4094 printf "%s\n" "$ac_file" >&6; }
4095 ac_exeext=$ac_cv_exeext
4096
4097 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4098 ac_clean_files=$ac_clean_files_save
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4100 printf %s "checking for suffix of executables... " >&6; }
4101 if { { ac_try="$ac_link"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 printf "%s\n" "$ac_try_echo"; } >&5
4108 (eval "$ac_link") 2>&5
4109 ac_status=$?
4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }
4112 then :
4113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4115 # work properly (i.e., refer to `conftest.exe'), while it won't with
4116 # `rm'.
4117 for ac_file in conftest.exe conftest conftest.*; do
4118 test -f "$ac_file" || continue
4119 case $ac_file in
4120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4122 break;;
4123 * ) break;;
4124 esac
4125 done
4126 else $as_nop
4127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4130 See \`config.log' for more details" "$LINENO" 5; }
4131 fi
4132 rm -f conftest conftest$ac_cv_exeext
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4134 printf "%s\n" "$ac_cv_exeext" >&6; }
4135
4136 rm -f conftest.$ac_ext
4137 EXEEXT=$ac_cv_exeext
4138 ac_exeext=$EXEEXT
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #include <stdio.h>
4142 int
4143 main (void)
4144 {
4145 FILE *f = fopen ("conftest.out", "w");
4146 return ferror (f) || fclose (f) != 0;
4147
4148 ;
4149 return 0;
4150 }
4151 _ACEOF
4152 ac_clean_files="$ac_clean_files conftest.out"
4153 # Check that the compiler produces executables we can run. If not, either
4154 # the compiler is broken, or we cross compile.
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4156 printf %s "checking whether we are cross compiling... " >&6; }
4157 if test "$cross_compiling" != yes; then
4158 { { ac_try="$ac_link"
4159 case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162 esac
4163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164 printf "%s\n" "$ac_try_echo"; } >&5
4165 (eval "$ac_link") 2>&5
4166 ac_status=$?
4167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168 test $ac_status = 0; }
4169 if { ac_try='./conftest$ac_cv_exeext'
4170 { { case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 printf "%s\n" "$ac_try_echo"; } >&5
4176 (eval "$ac_try") 2>&5
4177 ac_status=$?
4178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179 test $ac_status = 0; }; }; then
4180 cross_compiling=no
4181 else
4182 if test "$cross_compiling" = maybe; then
4183 cross_compiling=yes
4184 else
4185 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4187 as_fn_error 77 "cannot run C compiled programs.
4188 If you meant to cross compile, use \`--host'.
4189 See \`config.log' for more details" "$LINENO" 5; }
4190 fi
4191 fi
4192 fi
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4194 printf "%s\n" "$cross_compiling" >&6; }
4195
4196 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4197 ac_clean_files=$ac_clean_files_save
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4199 printf %s "checking for suffix of object files... " >&6; }
4200 if test ${ac_cv_objext+y}
4201 then :
4202 printf %s "(cached) " >&6
4203 else $as_nop
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206
4207 int
4208 main (void)
4209 {
4210
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.o conftest.obj
4216 if { { ac_try="$ac_compile"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 printf "%s\n" "$ac_try_echo"; } >&5
4223 (eval "$ac_compile") 2>&5
4224 ac_status=$?
4225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226 test $ac_status = 0; }
4227 then :
4228 for ac_file in conftest.o conftest.obj conftest.*; do
4229 test -f "$ac_file" || continue;
4230 case $ac_file in
4231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4232 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4233 break;;
4234 esac
4235 done
4236 else $as_nop
4237 printf "%s\n" "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4241 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4242 as_fn_error $? "cannot compute suffix of object files: cannot compile
4243 See \`config.log' for more details" "$LINENO" 5; }
4244 fi
4245 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4246 fi
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4248 printf "%s\n" "$ac_cv_objext" >&6; }
4249 OBJEXT=$ac_cv_objext
4250 ac_objext=$OBJEXT
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4252 printf %s "checking whether the compiler supports GNU C... " >&6; }
4253 if test ${ac_cv_c_compiler_gnu+y}
4254 then :
4255 printf %s "(cached) " >&6
4256 else $as_nop
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259
4260 int
4261 main (void)
4262 {
4263 #ifndef __GNUC__
4264 choke me
4265 #endif
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 if ac_fn_c_try_compile "$LINENO"
4272 then :
4273 ac_compiler_gnu=yes
4274 else $as_nop
4275 ac_compiler_gnu=no
4276 fi
4277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4279
4280 fi
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4282 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284
4285 if test $ac_compiler_gnu = yes; then
4286 GCC=yes
4287 else
4288 GCC=
4289 fi
4290 ac_test_CFLAGS=${CFLAGS+y}
4291 ac_save_CFLAGS=$CFLAGS
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4293 printf %s "checking whether $CC accepts -g... " >&6; }
4294 if test ${ac_cv_prog_cc_g+y}
4295 then :
4296 printf %s "(cached) " >&6
4297 else $as_nop
4298 ac_save_c_werror_flag=$ac_c_werror_flag
4299 ac_c_werror_flag=yes
4300 ac_cv_prog_cc_g=no
4301 CFLAGS="-g"
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304
4305 int
4306 main (void)
4307 {
4308
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"
4314 then :
4315 ac_cv_prog_cc_g=yes
4316 else $as_nop
4317 CFLAGS=""
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320
4321 int
4322 main (void)
4323 {
4324
4325 ;
4326 return 0;
4327 }
4328 _ACEOF
4329 if ac_fn_c_try_compile "$LINENO"
4330 then :
4331
4332 else $as_nop
4333 ac_c_werror_flag=$ac_save_c_werror_flag
4334 CFLAGS="-g"
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337
4338 int
4339 main (void)
4340 {
4341
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"
4347 then :
4348 ac_cv_prog_cc_g=yes
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4351 fi
4352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4355 ac_c_werror_flag=$ac_save_c_werror_flag
4356 fi
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4358 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4359 if test $ac_test_CFLAGS; then
4360 CFLAGS=$ac_save_CFLAGS
4361 elif test $ac_cv_prog_cc_g = yes; then
4362 if test "$GCC" = yes; then
4363 CFLAGS="-g -O2"
4364 else
4365 CFLAGS="-g"
4366 fi
4367 else
4368 if test "$GCC" = yes; then
4369 CFLAGS="-O2"
4370 else
4371 CFLAGS=
4372 fi
4373 fi
4374 ac_prog_cc_stdc=no
4375 if test x$ac_prog_cc_stdc = xno
4376 then :
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4378 printf %s "checking for $CC option to enable C11 features... " >&6; }
4379 if test ${ac_cv_prog_cc_c11+y}
4380 then :
4381 printf %s "(cached) " >&6
4382 else $as_nop
4383 ac_cv_prog_cc_c11=no
4384 ac_save_CC=$CC
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 $ac_c_conftest_c11_program
4388 _ACEOF
4389 for ac_arg in '' -std=gnu11
4390 do
4391 CC="$ac_save_CC $ac_arg"
4392 if ac_fn_c_try_compile "$LINENO"
4393 then :
4394 ac_cv_prog_cc_c11=$ac_arg
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.beam
4397 test "x$ac_cv_prog_cc_c11" != "xno" && break
4398 done
4399 rm -f conftest.$ac_ext
4400 CC=$ac_save_CC
4401 fi
4402
4403 if test "x$ac_cv_prog_cc_c11" = xno
4404 then :
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4406 printf "%s\n" "unsupported" >&6; }
4407 else $as_nop
4408 if test "x$ac_cv_prog_cc_c11" = x
4409 then :
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4411 printf "%s\n" "none needed" >&6; }
4412 else $as_nop
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4414 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4415 CC="$CC $ac_cv_prog_cc_c11"
4416 fi
4417 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4418 ac_prog_cc_stdc=c11
4419 fi
4420 fi
4421 if test x$ac_prog_cc_stdc = xno
4422 then :
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4424 printf %s "checking for $CC option to enable C99 features... " >&6; }
4425 if test ${ac_cv_prog_cc_c99+y}
4426 then :
4427 printf %s "(cached) " >&6
4428 else $as_nop
4429 ac_cv_prog_cc_c99=no
4430 ac_save_CC=$CC
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 $ac_c_conftest_c99_program
4434 _ACEOF
4435 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4436 do
4437 CC="$ac_save_CC $ac_arg"
4438 if ac_fn_c_try_compile "$LINENO"
4439 then :
4440 ac_cv_prog_cc_c99=$ac_arg
4441 fi
4442 rm -f core conftest.err conftest.$ac_objext conftest.beam
4443 test "x$ac_cv_prog_cc_c99" != "xno" && break
4444 done
4445 rm -f conftest.$ac_ext
4446 CC=$ac_save_CC
4447 fi
4448
4449 if test "x$ac_cv_prog_cc_c99" = xno
4450 then :
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4452 printf "%s\n" "unsupported" >&6; }
4453 else $as_nop
4454 if test "x$ac_cv_prog_cc_c99" = x
4455 then :
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4457 printf "%s\n" "none needed" >&6; }
4458 else $as_nop
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4460 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4461 CC="$CC $ac_cv_prog_cc_c99"
4462 fi
4463 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4464 ac_prog_cc_stdc=c99
4465 fi
4466 fi
4467 if test x$ac_prog_cc_stdc = xno
4468 then :
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4470 printf %s "checking for $CC option to enable C89 features... " >&6; }
4471 if test ${ac_cv_prog_cc_c89+y}
4472 then :
4473 printf %s "(cached) " >&6
4474 else $as_nop
4475 ac_cv_prog_cc_c89=no
4476 ac_save_CC=$CC
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 $ac_c_conftest_c89_program
4480 _ACEOF
4481 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4482 do
4483 CC="$ac_save_CC $ac_arg"
4484 if ac_fn_c_try_compile "$LINENO"
4485 then :
4486 ac_cv_prog_cc_c89=$ac_arg
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext conftest.beam
4489 test "x$ac_cv_prog_cc_c89" != "xno" && break
4490 done
4491 rm -f conftest.$ac_ext
4492 CC=$ac_save_CC
4493 fi
4494
4495 if test "x$ac_cv_prog_cc_c89" = xno
4496 then :
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498 printf "%s\n" "unsupported" >&6; }
4499 else $as_nop
4500 if test "x$ac_cv_prog_cc_c89" = x
4501 then :
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4503 printf "%s\n" "none needed" >&6; }
4504 else $as_nop
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4506 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4507 CC="$CC $ac_cv_prog_cc_c89"
4508 fi
4509 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4510 ac_prog_cc_stdc=c89
4511 fi
4512 fi
4513
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519
4520
4521 ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4527 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4528 if test ${am_cv_prog_cc_c_o+y}
4529 then :
4530 printf %s "(cached) " >&6
4531 else $as_nop
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534
4535 int
4536 main (void)
4537 {
4538
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 # Make sure it works both with $CC and with simple cc.
4544 # Following AC_PROG_CC_C_O, we do the test twice because some
4545 # compilers refuse to overwrite an existing .o file with -o,
4546 # though they will create one.
4547 am_cv_prog_cc_c_o=yes
4548 for am_i in 1 2; do
4549 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4550 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } \
4554 && test -f conftest2.$ac_objext; then
4555 : OK
4556 else
4557 am_cv_prog_cc_c_o=no
4558 break
4559 fi
4560 done
4561 rm -f core conftest*
4562 unset am_i
4563 fi
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4565 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4566 if test "$am_cv_prog_cc_c_o" != yes; then
4567 # Losing compiler, so override with the script.
4568 # FIXME: It is wrong to rewrite CC.
4569 # But if we don't then we get into trouble of one sort or another.
4570 # A longer-term fix would be to have automake use am__CC in this case,
4571 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4572 CC="$am_aux_dir/compile $CC"
4573 fi
4574 ac_ext=c
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579
4580
4581 depcc="$CC" am_compiler_list=
4582
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4584 printf %s "checking dependency style of $depcc... " >&6; }
4585 if test ${am_cv_CC_dependencies_compiler_type+y}
4586 then :
4587 printf %s "(cached) " >&6
4588 else $as_nop
4589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4590 # We make a subdir and do the tests there. Otherwise we can end up
4591 # making bogus files that we don't know about and never remove. For
4592 # instance it was reported that on HP-UX the gcc test will end up
4593 # making a dummy file named 'D' -- because '-MD' means "put the output
4594 # in D".
4595 rm -rf conftest.dir
4596 mkdir conftest.dir
4597 # Copy depcomp to subdir because otherwise we won't find it if we're
4598 # using a relative directory.
4599 cp "$am_depcomp" conftest.dir
4600 cd conftest.dir
4601 # We will build objects and dependencies in a subdirectory because
4602 # it helps to detect inapplicable dependency modes. For instance
4603 # both Tru64's cc and ICC support -MD to output dependencies as a
4604 # side effect of compilation, but ICC will put the dependencies in
4605 # the current directory while Tru64 will put them in the object
4606 # directory.
4607 mkdir sub
4608
4609 am_cv_CC_dependencies_compiler_type=none
4610 if test "$am_compiler_list" = ""; then
4611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4612 fi
4613 am__universal=false
4614 case " $depcc " in #(
4615 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4616 esac
4617
4618 for depmode in $am_compiler_list; do
4619 # Setup a source with many dependencies, because some compilers
4620 # like to wrap large dependency lists on column 80 (with \), and
4621 # we should not choose a depcomp mode which is confused by this.
4622 #
4623 # We need to recreate these files for each test, as the compiler may
4624 # overwrite some of them when testing with obscure command lines.
4625 # This happens at least with the AIX C compiler.
4626 : > sub/conftest.c
4627 for i in 1 2 3 4 5 6; do
4628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4630 # Solaris 10 /bin/sh.
4631 echo '/* dummy */' > sub/conftst$i.h
4632 done
4633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4634
4635 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4636 # mode. It turns out that the SunPro C++ compiler does not properly
4637 # handle '-M -o', and we need to detect this. Also, some Intel
4638 # versions had trouble with output in subdirs.
4639 am__obj=sub/conftest.${OBJEXT-o}
4640 am__minus_obj="-o $am__obj"
4641 case $depmode in
4642 gcc)
4643 # This depmode causes a compiler race in universal mode.
4644 test "$am__universal" = false || continue
4645 ;;
4646 nosideeffect)
4647 # After this tag, mechanisms are not by side-effect, so they'll
4648 # only be used when explicitly requested.
4649 if test "x$enable_dependency_tracking" = xyes; then
4650 continue
4651 else
4652 break
4653 fi
4654 ;;
4655 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4656 # This compiler won't grok '-c -o', but also, the minuso test has
4657 # not run yet. These depmodes are late enough in the game, and
4658 # so weak that their functioning should not be impacted.
4659 am__obj=conftest.${OBJEXT-o}
4660 am__minus_obj=
4661 ;;
4662 none) break ;;
4663 esac
4664 if depmode=$depmode \
4665 source=sub/conftest.c object=$am__obj \
4666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4668 >/dev/null 2>conftest.err &&
4669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4673 # icc doesn't choke on unknown options, it will just issue warnings
4674 # or remarks (even with -Werror). So we grep stderr for any message
4675 # that says an option was ignored or not supported.
4676 # When given -MP, icc 7.0 and 7.1 complain thusly:
4677 # icc: Command line warning: ignoring option '-M'; no argument required
4678 # The diagnosis changed in icc 8.0:
4679 # icc: Command line remark: option '-MP' not supported
4680 if (grep 'ignoring option' conftest.err ||
4681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4682 am_cv_CC_dependencies_compiler_type=$depmode
4683 break
4684 fi
4685 fi
4686 done
4687
4688 cd ..
4689 rm -rf conftest.dir
4690 else
4691 am_cv_CC_dependencies_compiler_type=none
4692 fi
4693
4694 fi
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4696 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4697 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4698
4699 if
4700 test "x$enable_dependency_tracking" != xno \
4701 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4702 am__fastdepCC_TRUE=
4703 am__fastdepCC_FALSE='#'
4704 else
4705 am__fastdepCC_TRUE='#'
4706 am__fastdepCC_FALSE=
4707 fi
4708
4709
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4711 printf %s "checking for a sed that does not truncate output... " >&6; }
4712 if test ${ac_cv_path_SED+y}
4713 then :
4714 printf %s "(cached) " >&6
4715 else $as_nop
4716 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4717 for ac_i in 1 2 3 4 5 6 7; do
4718 ac_script="$ac_script$as_nl$ac_script"
4719 done
4720 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4721 { ac_script=; unset ac_script;}
4722 if test -z "$SED"; then
4723 ac_path_SED_found=false
4724 # Loop through the user's path and test for each of PROGNAME-LIST
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728 IFS=$as_save_IFS
4729 case $as_dir in #(((
4730 '') as_dir=./ ;;
4731 */) ;;
4732 *) as_dir=$as_dir/ ;;
4733 esac
4734 for ac_prog in sed gsed
4735 do
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4738 as_fn_executable_p "$ac_path_SED" || continue
4739 # Check for GNU ac_path_SED and select it if it is found.
4740 # Check for GNU $ac_path_SED
4741 case `"$ac_path_SED" --version 2>&1` in
4742 *GNU*)
4743 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4744 *)
4745 ac_count=0
4746 printf %s 0123456789 >"conftest.in"
4747 while :
4748 do
4749 cat "conftest.in" "conftest.in" >"conftest.tmp"
4750 mv "conftest.tmp" "conftest.in"
4751 cp "conftest.in" "conftest.nl"
4752 printf "%s\n" '' >> "conftest.nl"
4753 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755 as_fn_arith $ac_count + 1 && ac_count=$as_val
4756 if test $ac_count -gt ${ac_path_SED_max-0}; then
4757 # Best one so far, save it but keep looking for a better one
4758 ac_cv_path_SED="$ac_path_SED"
4759 ac_path_SED_max=$ac_count
4760 fi
4761 # 10*(2^10) chars as input seems more than enough
4762 test $ac_count -gt 10 && break
4763 done
4764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765 esac
4766
4767 $ac_path_SED_found && break 3
4768 done
4769 done
4770 done
4771 IFS=$as_save_IFS
4772 if test -z "$ac_cv_path_SED"; then
4773 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4774 fi
4775 else
4776 ac_cv_path_SED=$SED
4777 fi
4778
4779 fi
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4781 printf "%s\n" "$ac_cv_path_SED" >&6; }
4782 SED="$ac_cv_path_SED"
4783 rm -f conftest.sed
4784
4785 test -z "$SED" && SED=sed
4786 Xsed="$SED -e 1s/^X//"
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4799 printf %s "checking for grep that handles long lines and -e... " >&6; }
4800 if test ${ac_cv_path_GREP+y}
4801 then :
4802 printf %s "(cached) " >&6
4803 else $as_nop
4804 if test -z "$GREP"; then
4805 ac_path_GREP_found=false
4806 # Loop through the user's path and test for each of PROGNAME-LIST
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4809 do
4810 IFS=$as_save_IFS
4811 case $as_dir in #(((
4812 '') as_dir=./ ;;
4813 */) ;;
4814 *) as_dir=$as_dir/ ;;
4815 esac
4816 for ac_prog in grep ggrep
4817 do
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4820 as_fn_executable_p "$ac_path_GREP" || continue
4821 # Check for GNU ac_path_GREP and select it if it is found.
4822 # Check for GNU $ac_path_GREP
4823 case `"$ac_path_GREP" --version 2>&1` in
4824 *GNU*)
4825 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4826 *)
4827 ac_count=0
4828 printf %s 0123456789 >"conftest.in"
4829 while :
4830 do
4831 cat "conftest.in" "conftest.in" >"conftest.tmp"
4832 mv "conftest.tmp" "conftest.in"
4833 cp "conftest.in" "conftest.nl"
4834 printf "%s\n" 'GREP' >> "conftest.nl"
4835 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4837 as_fn_arith $ac_count + 1 && ac_count=$as_val
4838 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4839 # Best one so far, save it but keep looking for a better one
4840 ac_cv_path_GREP="$ac_path_GREP"
4841 ac_path_GREP_max=$ac_count
4842 fi
4843 # 10*(2^10) chars as input seems more than enough
4844 test $ac_count -gt 10 && break
4845 done
4846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4847 esac
4848
4849 $ac_path_GREP_found && break 3
4850 done
4851 done
4852 done
4853 IFS=$as_save_IFS
4854 if test -z "$ac_cv_path_GREP"; then
4855 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4856 fi
4857 else
4858 ac_cv_path_GREP=$GREP
4859 fi
4860
4861 fi
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4863 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4864 GREP="$ac_cv_path_GREP"
4865
4866
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4868 printf %s "checking for egrep... " >&6; }
4869 if test ${ac_cv_path_EGREP+y}
4870 then :
4871 printf %s "(cached) " >&6
4872 else $as_nop
4873 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4874 then ac_cv_path_EGREP="$GREP -E"
4875 else
4876 if test -z "$EGREP"; then
4877 ac_path_EGREP_found=false
4878 # Loop through the user's path and test for each of PROGNAME-LIST
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4881 do
4882 IFS=$as_save_IFS
4883 case $as_dir in #(((
4884 '') as_dir=./ ;;
4885 */) ;;
4886 *) as_dir=$as_dir/ ;;
4887 esac
4888 for ac_prog in egrep
4889 do
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4892 as_fn_executable_p "$ac_path_EGREP" || continue
4893 # Check for GNU ac_path_EGREP and select it if it is found.
4894 # Check for GNU $ac_path_EGREP
4895 case `"$ac_path_EGREP" --version 2>&1` in
4896 *GNU*)
4897 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4898 *)
4899 ac_count=0
4900 printf %s 0123456789 >"conftest.in"
4901 while :
4902 do
4903 cat "conftest.in" "conftest.in" >"conftest.tmp"
4904 mv "conftest.tmp" "conftest.in"
4905 cp "conftest.in" "conftest.nl"
4906 printf "%s\n" 'EGREP' >> "conftest.nl"
4907 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909 as_fn_arith $ac_count + 1 && ac_count=$as_val
4910 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4911 # Best one so far, save it but keep looking for a better one
4912 ac_cv_path_EGREP="$ac_path_EGREP"
4913 ac_path_EGREP_max=$ac_count
4914 fi
4915 # 10*(2^10) chars as input seems more than enough
4916 test $ac_count -gt 10 && break
4917 done
4918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4919 esac
4920
4921 $ac_path_EGREP_found && break 3
4922 done
4923 done
4924 done
4925 IFS=$as_save_IFS
4926 if test -z "$ac_cv_path_EGREP"; then
4927 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4928 fi
4929 else
4930 ac_cv_path_EGREP=$EGREP
4931 fi
4932
4933 fi
4934 fi
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4936 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4937 EGREP="$ac_cv_path_EGREP"
4938
4939
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4941 printf %s "checking for fgrep... " >&6; }
4942 if test ${ac_cv_path_FGREP+y}
4943 then :
4944 printf %s "(cached) " >&6
4945 else $as_nop
4946 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4947 then ac_cv_path_FGREP="$GREP -F"
4948 else
4949 if test -z "$FGREP"; then
4950 ac_path_FGREP_found=false
4951 # Loop through the user's path and test for each of PROGNAME-LIST
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4954 do
4955 IFS=$as_save_IFS
4956 case $as_dir in #(((
4957 '') as_dir=./ ;;
4958 */) ;;
4959 *) as_dir=$as_dir/ ;;
4960 esac
4961 for ac_prog in fgrep
4962 do
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4965 as_fn_executable_p "$ac_path_FGREP" || continue
4966 # Check for GNU ac_path_FGREP and select it if it is found.
4967 # Check for GNU $ac_path_FGREP
4968 case `"$ac_path_FGREP" --version 2>&1` in
4969 *GNU*)
4970 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4971 *)
4972 ac_count=0
4973 printf %s 0123456789 >"conftest.in"
4974 while :
4975 do
4976 cat "conftest.in" "conftest.in" >"conftest.tmp"
4977 mv "conftest.tmp" "conftest.in"
4978 cp "conftest.in" "conftest.nl"
4979 printf "%s\n" 'FGREP' >> "conftest.nl"
4980 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4982 as_fn_arith $ac_count + 1 && ac_count=$as_val
4983 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4984 # Best one so far, save it but keep looking for a better one
4985 ac_cv_path_FGREP="$ac_path_FGREP"
4986 ac_path_FGREP_max=$ac_count
4987 fi
4988 # 10*(2^10) chars as input seems more than enough
4989 test $ac_count -gt 10 && break
4990 done
4991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4992 esac
4993
4994 $ac_path_FGREP_found && break 3
4995 done
4996 done
4997 done
4998 IFS=$as_save_IFS
4999 if test -z "$ac_cv_path_FGREP"; then
5000 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5001 fi
5002 else
5003 ac_cv_path_FGREP=$FGREP
5004 fi
5005
5006 fi
5007 fi
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5009 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5010 FGREP="$ac_cv_path_FGREP"
5011
5012
5013 test -z "$GREP" && GREP=grep
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 # Check whether --with-gnu-ld was given.
5034 if test ${with_gnu_ld+y}
5035 then :
5036 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5037 else $as_nop
5038 with_gnu_ld=no
5039 fi
5040
5041 ac_prog=ld
5042 if test yes = "$GCC"; then
5043 # Check if gcc -print-prog-name=ld gives a path.
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5045 printf %s "checking for ld used by $CC... " >&6; }
5046 case $host in
5047 *-*-mingw*)
5048 # gcc leaves a trailing carriage return, which upsets mingw
5049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5050 *)
5051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5052 esac
5053 case $ac_prog in
5054 # Accept absolute paths.
5055 [\\/]* | ?:[\\/]*)
5056 re_direlt='/[^/][^/]*/\.\./'
5057 # Canonicalize the pathname of ld
5058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5061 done
5062 test -z "$LD" && LD=$ac_prog
5063 ;;
5064 "")
5065 # If it fails, then pretend we aren't using GCC.
5066 ac_prog=ld
5067 ;;
5068 *)
5069 # If it is relative, then search for the first ld in PATH.
5070 with_gnu_ld=unknown
5071 ;;
5072 esac
5073 elif test yes = "$with_gnu_ld"; then
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5075 printf %s "checking for GNU ld... " >&6; }
5076 else
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5078 printf %s "checking for non-GNU ld... " >&6; }
5079 fi
5080 if test ${lt_cv_path_LD+y}
5081 then :
5082 printf %s "(cached) " >&6
5083 else $as_nop
5084 if test -z "$LD"; then
5085 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5086 for ac_dir in $PATH; do
5087 IFS=$lt_save_ifs
5088 test -z "$ac_dir" && ac_dir=.
5089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5090 lt_cv_path_LD=$ac_dir/$ac_prog
5091 # Check to see if the program is GNU ld. I'd rather use --version,
5092 # but apparently some variants of GNU ld only accept -v.
5093 # Break only if it was the GNU/non-GNU ld that we prefer.
5094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5095 *GNU* | *'with BFD'*)
5096 test no != "$with_gnu_ld" && break
5097 ;;
5098 *)
5099 test yes != "$with_gnu_ld" && break
5100 ;;
5101 esac
5102 fi
5103 done
5104 IFS=$lt_save_ifs
5105 else
5106 lt_cv_path_LD=$LD # Let the user override the test with a path.
5107 fi
5108 fi
5109
5110 LD=$lt_cv_path_LD
5111 if test -n "$LD"; then
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5113 printf "%s\n" "$LD" >&6; }
5114 else
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 printf "%s\n" "no" >&6; }
5117 fi
5118 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5120 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5121 if test ${lt_cv_prog_gnu_ld+y}
5122 then :
5123 printf %s "(cached) " >&6
5124 else $as_nop
5125 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5126 case `$LD -v 2>&1 </dev/null` in
5127 *GNU* | *'with BFD'*)
5128 lt_cv_prog_gnu_ld=yes
5129 ;;
5130 *)
5131 lt_cv_prog_gnu_ld=no
5132 ;;
5133 esac
5134 fi
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5136 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5137 with_gnu_ld=$lt_cv_prog_gnu_ld
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5148 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5149 if test ${lt_cv_path_NM+y}
5150 then :
5151 printf %s "(cached) " >&6
5152 else $as_nop
5153 if test -n "$NM"; then
5154 # Let the user override the test.
5155 lt_cv_path_NM=$NM
5156 else
5157 lt_nm_to_check=${ac_tool_prefix}nm
5158 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5159 lt_nm_to_check="$lt_nm_to_check nm"
5160 fi
5161 for lt_tmp_nm in $lt_nm_to_check; do
5162 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5163 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5164 IFS=$lt_save_ifs
5165 test -z "$ac_dir" && ac_dir=.
5166 tmp_nm=$ac_dir/$lt_tmp_nm
5167 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5168 # Check to see if the nm accepts a BSD-compat flag.
5169 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5170 # nm: unknown option "B" ignored
5171 # Tru64's nm complains that /dev/null is an invalid object file
5172 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5173 case $build_os in
5174 mingw*) lt_bad_file=conftest.nm/nofile ;;
5175 *) lt_bad_file=/dev/null ;;
5176 esac
5177 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5178 *$lt_bad_file* | *'Invalid file or object type'*)
5179 lt_cv_path_NM="$tmp_nm -B"
5180 break 2
5181 ;;
5182 *)
5183 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5184 */dev/null*)
5185 lt_cv_path_NM="$tmp_nm -p"
5186 break 2
5187 ;;
5188 *)
5189 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5190 continue # so that we can try to find one that supports BSD flags
5191 ;;
5192 esac
5193 ;;
5194 esac
5195 fi
5196 done
5197 IFS=$lt_save_ifs
5198 done
5199 : ${lt_cv_path_NM=no}
5200 fi
5201 fi
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5203 printf "%s\n" "$lt_cv_path_NM" >&6; }
5204 if test no != "$lt_cv_path_NM"; then
5205 NM=$lt_cv_path_NM
5206 else
5207 # Didn't find any BSD compatible name lister, look for dumpbin.
5208 if test -n "$DUMPBIN"; then :
5209 # Let the user override the test.
5210 else
5211 if test -n "$ac_tool_prefix"; then
5212 for ac_prog in dumpbin "link -dump"
5213 do
5214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 printf %s "checking for $ac_word... " >&6; }
5218 if test ${ac_cv_prog_DUMPBIN+y}
5219 then :
5220 printf %s "(cached) " >&6
5221 else $as_nop
5222 if test -n "$DUMPBIN"; then
5223 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228 IFS=$as_save_IFS
5229 case $as_dir in #(((
5230 '') as_dir=./ ;;
5231 */) ;;
5232 *) as_dir=$as_dir/ ;;
5233 esac
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 DUMPBIN=$ac_cv_prog_DUMPBIN
5247 if test -n "$DUMPBIN"; then
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5249 printf "%s\n" "$DUMPBIN" >&6; }
5250 else
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 printf "%s\n" "no" >&6; }
5253 fi
5254
5255
5256 test -n "$DUMPBIN" && break
5257 done
5258 fi
5259 if test -z "$DUMPBIN"; then
5260 ac_ct_DUMPBIN=$DUMPBIN
5261 for ac_prog in dumpbin "link -dump"
5262 do
5263 # Extract the first word of "$ac_prog", so it can be a program name with args.
5264 set dummy $ac_prog; ac_word=$2
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 printf %s "checking for $ac_word... " >&6; }
5267 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5268 then :
5269 printf %s "(cached) " >&6
5270 else $as_nop
5271 if test -n "$ac_ct_DUMPBIN"; then
5272 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 case $as_dir in #(((
5279 '') as_dir=./ ;;
5280 */) ;;
5281 *) as_dir=$as_dir/ ;;
5282 esac
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289 done
5290 done
5291 IFS=$as_save_IFS
5292
5293 fi
5294 fi
5295 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5296 if test -n "$ac_ct_DUMPBIN"; then
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5298 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5299 else
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 printf "%s\n" "no" >&6; }
5302 fi
5303
5304
5305 test -n "$ac_ct_DUMPBIN" && break
5306 done
5307
5308 if test "x$ac_ct_DUMPBIN" = x; then
5309 DUMPBIN=":"
5310 else
5311 case $cross_compiling:$ac_tool_warned in
5312 yes:)
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315 ac_tool_warned=yes ;;
5316 esac
5317 DUMPBIN=$ac_ct_DUMPBIN
5318 fi
5319 fi
5320
5321 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5322 *COFF*)
5323 DUMPBIN="$DUMPBIN -symbols -headers"
5324 ;;
5325 *)
5326 DUMPBIN=:
5327 ;;
5328 esac
5329 fi
5330
5331 if test : != "$DUMPBIN"; then
5332 NM=$DUMPBIN
5333 fi
5334 fi
5335 test -z "$NM" && NM=nm
5336
5337
5338
5339
5340
5341
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5343 printf %s "checking the name lister ($NM) interface... " >&6; }
5344 if test ${lt_cv_nm_interface+y}
5345 then :
5346 printf %s "(cached) " >&6
5347 else $as_nop
5348 lt_cv_nm_interface="BSD nm"
5349 echo "int some_variable = 0;" > conftest.$ac_ext
5350 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5351 (eval "$ac_compile" 2>conftest.err)
5352 cat conftest.err >&5
5353 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5354 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5355 cat conftest.err >&5
5356 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5357 cat conftest.out >&5
5358 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5359 lt_cv_nm_interface="MS dumpbin"
5360 fi
5361 rm -f conftest*
5362 fi
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5364 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5365
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5367 printf %s "checking whether ln -s works... " >&6; }
5368 LN_S=$as_ln_s
5369 if test "$LN_S" = "ln -s"; then
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371 printf "%s\n" "yes" >&6; }
5372 else
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5374 printf "%s\n" "no, using $LN_S" >&6; }
5375 fi
5376
5377 # find the maximum length of command line arguments
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5379 printf %s "checking the maximum length of command line arguments... " >&6; }
5380 if test ${lt_cv_sys_max_cmd_len+y}
5381 then :
5382 printf %s "(cached) " >&6
5383 else $as_nop
5384 i=0
5385 teststring=ABCD
5386
5387 case $build_os in
5388 msdosdjgpp*)
5389 # On DJGPP, this test can blow up pretty badly due to problems in libc
5390 # (any single argument exceeding 2000 bytes causes a buffer overrun
5391 # during glob expansion). Even if it were fixed, the result of this
5392 # check would be larger than it should be.
5393 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5394 ;;
5395
5396 gnu*)
5397 # Under GNU Hurd, this test is not required because there is
5398 # no limit to the length of command line arguments.
5399 # Libtool will interpret -1 as no limit whatsoever
5400 lt_cv_sys_max_cmd_len=-1;
5401 ;;
5402
5403 cygwin* | mingw* | cegcc*)
5404 # On Win9x/ME, this test blows up -- it succeeds, but takes
5405 # about 5 minutes as the teststring grows exponentially.
5406 # Worse, since 9x/ME are not pre-emptively multitasking,
5407 # you end up with a "frozen" computer, even though with patience
5408 # the test eventually succeeds (with a max line length of 256k).
5409 # Instead, let's just punt: use the minimum linelength reported by
5410 # all of the supported platforms: 8192 (on NT/2K/XP).
5411 lt_cv_sys_max_cmd_len=8192;
5412 ;;
5413
5414 mint*)
5415 # On MiNT this can take a long time and run out of memory.
5416 lt_cv_sys_max_cmd_len=8192;
5417 ;;
5418
5419 amigaos*)
5420 # On AmigaOS with pdksh, this test takes hours, literally.
5421 # So we just punt and use a minimum line length of 8192.
5422 lt_cv_sys_max_cmd_len=8192;
5423 ;;
5424
5425 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5426 # This has been around since 386BSD, at least. Likely further.
5427 if test -x /sbin/sysctl; then
5428 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5429 elif test -x /usr/sbin/sysctl; then
5430 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5431 else
5432 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5433 fi
5434 # And add a safety zone
5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5437 ;;
5438
5439 interix*)
5440 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5441 lt_cv_sys_max_cmd_len=196608
5442 ;;
5443
5444 os2*)
5445 # The test takes a long time on OS/2.
5446 lt_cv_sys_max_cmd_len=8192
5447 ;;
5448
5449 osf*)
5450 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5451 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5452 # nice to cause kernel panics so lets avoid the loop below.
5453 # First set a reasonable default.
5454 lt_cv_sys_max_cmd_len=16384
5455 #
5456 if test -x /sbin/sysconfig; then
5457 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5458 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5459 esac
5460 fi
5461 ;;
5462 sco3.2v5*)
5463 lt_cv_sys_max_cmd_len=102400
5464 ;;
5465 sysv5* | sco5v6* | sysv4.2uw2*)
5466 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5467 if test -n "$kargmax"; then
5468 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5469 else
5470 lt_cv_sys_max_cmd_len=32768
5471 fi
5472 ;;
5473 *)
5474 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5475 if test -n "$lt_cv_sys_max_cmd_len" && \
5476 test undefined != "$lt_cv_sys_max_cmd_len"; then
5477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5479 else
5480 # Make teststring a little bigger before we do anything with it.
5481 # a 1K string should be a reasonable start.
5482 for i in 1 2 3 4 5 6 7 8; do
5483 teststring=$teststring$teststring
5484 done
5485 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5486 # If test is not a shell built-in, we'll probably end up computing a
5487 # maximum length that is only half of the actual maximum length, but
5488 # we can't tell.
5489 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5490 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5491 test 17 != "$i" # 1/2 MB should be enough
5492 do
5493 i=`expr $i + 1`
5494 teststring=$teststring$teststring
5495 done
5496 # Only check the string length outside the loop.
5497 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5498 teststring=
5499 # Add a significant safety factor because C++ compilers can tack on
5500 # massive amounts of additional arguments before passing them to the
5501 # linker. It appears as though 1/2 is a usable value.
5502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5503 fi
5504 ;;
5505 esac
5506
5507 fi
5508
5509 if test -n "$lt_cv_sys_max_cmd_len"; then
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5511 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5512 else
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5514 printf "%s\n" "none" >&6; }
5515 fi
5516 max_cmd_len=$lt_cv_sys_max_cmd_len
5517
5518
5519
5520
5521
5522
5523 : ${CP="cp -f"}
5524 : ${MV="mv -f"}
5525 : ${RM="rm -f"}
5526
5527 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5528 lt_unset=unset
5529 else
5530 lt_unset=false
5531 fi
5532
5533
5534
5535
5536
5537 # test EBCDIC or ASCII
5538 case `echo X|tr X '\101'` in
5539 A) # ASCII based system
5540 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5541 lt_SP2NL='tr \040 \012'
5542 lt_NL2SP='tr \015\012 \040\040'
5543 ;;
5544 *) # EBCDIC based system
5545 lt_SP2NL='tr \100 \n'
5546 lt_NL2SP='tr \r\n \100\100'
5547 ;;
5548 esac
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5559 printf %s "checking how to convert $build file names to $host format... " >&6; }
5560 if test ${lt_cv_to_host_file_cmd+y}
5561 then :
5562 printf %s "(cached) " >&6
5563 else $as_nop
5564 case $host in
5565 *-*-mingw* )
5566 case $build in
5567 *-*-mingw* ) # actually msys
5568 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5569 ;;
5570 *-*-cygwin* )
5571 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5572 ;;
5573 * ) # otherwise, assume *nix
5574 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5575 ;;
5576 esac
5577 ;;
5578 *-*-cygwin* )
5579 case $build in
5580 *-*-mingw* ) # actually msys
5581 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5582 ;;
5583 *-*-cygwin* )
5584 lt_cv_to_host_file_cmd=func_convert_file_noop
5585 ;;
5586 * ) # otherwise, assume *nix
5587 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5588 ;;
5589 esac
5590 ;;
5591 * ) # unhandled hosts (and "normal" native builds)
5592 lt_cv_to_host_file_cmd=func_convert_file_noop
5593 ;;
5594 esac
5595
5596 fi
5597
5598 to_host_file_cmd=$lt_cv_to_host_file_cmd
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5600 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5601
5602
5603
5604
5605
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5607 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5608 if test ${lt_cv_to_tool_file_cmd+y}
5609 then :
5610 printf %s "(cached) " >&6
5611 else $as_nop
5612 #assume ordinary cross tools, or native build.
5613 lt_cv_to_tool_file_cmd=func_convert_file_noop
5614 case $host in
5615 *-*-mingw* )
5616 case $build in
5617 *-*-mingw* ) # actually msys
5618 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5619 ;;
5620 esac
5621 ;;
5622 esac
5623
5624 fi
5625
5626 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5628 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5629
5630
5631
5632
5633
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5635 printf %s "checking for $LD option to reload object files... " >&6; }
5636 if test ${lt_cv_ld_reload_flag+y}
5637 then :
5638 printf %s "(cached) " >&6
5639 else $as_nop
5640 lt_cv_ld_reload_flag='-r'
5641 fi
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5643 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5644 reload_flag=$lt_cv_ld_reload_flag
5645 case $reload_flag in
5646 "" | " "*) ;;
5647 *) reload_flag=" $reload_flag" ;;
5648 esac
5649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5650 case $host_os in
5651 cygwin* | mingw* | pw32* | cegcc*)
5652 if test yes != "$GCC"; then
5653 reload_cmds=false
5654 fi
5655 ;;
5656 darwin*)
5657 if test yes = "$GCC"; then
5658 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5659 else
5660 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5661 fi
5662 ;;
5663 esac
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}file; ac_word=$2
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 printf %s "checking for $ac_word... " >&6; }
5678 if test ${ac_cv_prog_FILECMD+y}
5679 then :
5680 printf %s "(cached) " >&6
5681 else $as_nop
5682 if test -n "$FILECMD"; then
5683 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688 IFS=$as_save_IFS
5689 case $as_dir in #(((
5690 '') as_dir=./ ;;
5691 */) ;;
5692 *) as_dir=$as_dir/ ;;
5693 esac
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700 done
5701 done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 FILECMD=$ac_cv_prog_FILECMD
5707 if test -n "$FILECMD"; then
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5709 printf "%s\n" "$FILECMD" >&6; }
5710 else
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 printf "%s\n" "no" >&6; }
5713 fi
5714
5715
5716 fi
5717 if test -z "$ac_cv_prog_FILECMD"; then
5718 ac_ct_FILECMD=$FILECMD
5719 # Extract the first word of "file", so it can be a program name with args.
5720 set dummy file; ac_word=$2
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 printf %s "checking for $ac_word... " >&6; }
5723 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5724 then :
5725 printf %s "(cached) " >&6
5726 else $as_nop
5727 if test -n "$ac_ct_FILECMD"; then
5728 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5732 do
5733 IFS=$as_save_IFS
5734 case $as_dir in #(((
5735 '') as_dir=./ ;;
5736 */) ;;
5737 *) as_dir=$as_dir/ ;;
5738 esac
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_ac_ct_FILECMD="file"
5742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745 done
5746 done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5752 if test -n "$ac_ct_FILECMD"; then
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5754 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5755 else
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 printf "%s\n" "no" >&6; }
5758 fi
5759
5760 if test "x$ac_ct_FILECMD" = x; then
5761 FILECMD=":"
5762 else
5763 case $cross_compiling:$ac_tool_warned in
5764 yes:)
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767 ac_tool_warned=yes ;;
5768 esac
5769 FILECMD=$ac_ct_FILECMD
5770 fi
5771 else
5772 FILECMD="$ac_cv_prog_FILECMD"
5773 fi
5774
5775
5776
5777
5778
5779
5780
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 printf %s "checking for $ac_word... " >&6; }
5786 if test ${ac_cv_prog_OBJDUMP+y}
5787 then :
5788 printf %s "(cached) " >&6
5789 else $as_nop
5790 if test -n "$OBJDUMP"; then
5791 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796 IFS=$as_save_IFS
5797 case $as_dir in #(((
5798 '') as_dir=./ ;;
5799 */) ;;
5800 *) as_dir=$as_dir/ ;;
5801 esac
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808 done
5809 done
5810 IFS=$as_save_IFS
5811
5812 fi
5813 fi
5814 OBJDUMP=$ac_cv_prog_OBJDUMP
5815 if test -n "$OBJDUMP"; then
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5817 printf "%s\n" "$OBJDUMP" >&6; }
5818 else
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 printf "%s\n" "no" >&6; }
5821 fi
5822
5823
5824 fi
5825 if test -z "$ac_cv_prog_OBJDUMP"; then
5826 ac_ct_OBJDUMP=$OBJDUMP
5827 # Extract the first word of "objdump", so it can be a program name with args.
5828 set dummy objdump; ac_word=$2
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 printf %s "checking for $ac_word... " >&6; }
5831 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5832 then :
5833 printf %s "(cached) " >&6
5834 else $as_nop
5835 if test -n "$ac_ct_OBJDUMP"; then
5836 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841 IFS=$as_save_IFS
5842 case $as_dir in #(((
5843 '') as_dir=./ ;;
5844 */) ;;
5845 *) as_dir=$as_dir/ ;;
5846 esac
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5860 if test -n "$ac_ct_OBJDUMP"; then
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5862 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5863 else
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 printf "%s\n" "no" >&6; }
5866 fi
5867
5868 if test "x$ac_ct_OBJDUMP" = x; then
5869 OBJDUMP="false"
5870 else
5871 case $cross_compiling:$ac_tool_warned in
5872 yes:)
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875 ac_tool_warned=yes ;;
5876 esac
5877 OBJDUMP=$ac_ct_OBJDUMP
5878 fi
5879 else
5880 OBJDUMP="$ac_cv_prog_OBJDUMP"
5881 fi
5882
5883 test -z "$OBJDUMP" && OBJDUMP=objdump
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5894 printf %s "checking how to recognize dependent libraries... " >&6; }
5895 if test ${lt_cv_deplibs_check_method+y}
5896 then :
5897 printf %s "(cached) " >&6
5898 else $as_nop
5899 lt_cv_file_magic_cmd='$MAGIC_CMD'
5900 lt_cv_file_magic_test_file=
5901 lt_cv_deplibs_check_method='unknown'
5902 # Need to set the preceding variable on all platforms that support
5903 # interlibrary dependencies.
5904 # 'none' -- dependencies not supported.
5905 # 'unknown' -- same as none, but documents that we really don't know.
5906 # 'pass_all' -- all dependencies passed with no checks.
5907 # 'test_compile' -- check by making test program.
5908 # 'file_magic [[regex]]' -- check by looking for files in library path
5909 # that responds to the $file_magic_cmd with a given extended regex.
5910 # If you have 'file' or equivalent on your system and you're not sure
5911 # whether 'pass_all' will *always* work, you probably want this one.
5912
5913 case $host_os in
5914 aix[4-9]*)
5915 lt_cv_deplibs_check_method=pass_all
5916 ;;
5917
5918 beos*)
5919 lt_cv_deplibs_check_method=pass_all
5920 ;;
5921
5922 bsdi[45]*)
5923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5924 lt_cv_file_magic_cmd='$FILECMD -L'
5925 lt_cv_file_magic_test_file=/shlib/libc.so
5926 ;;
5927
5928 cygwin*)
5929 # func_win32_libid is a shell function defined in ltmain.sh
5930 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5931 lt_cv_file_magic_cmd='func_win32_libid'
5932 ;;
5933
5934 mingw* | pw32*)
5935 # Base MSYS/MinGW do not provide the 'file' command needed by
5936 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5937 # unless we find 'file', for example because we are cross-compiling.
5938 if ( file / ) >/dev/null 2>&1; then
5939 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5940 lt_cv_file_magic_cmd='func_win32_libid'
5941 else
5942 # Keep this pattern in sync with the one in func_win32_libid.
5943 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5944 lt_cv_file_magic_cmd='$OBJDUMP -f'
5945 fi
5946 ;;
5947
5948 cegcc*)
5949 # use the weaker test based on 'objdump'. See mingw*.
5950 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5951 lt_cv_file_magic_cmd='$OBJDUMP -f'
5952 ;;
5953
5954 darwin* | rhapsody*)
5955 lt_cv_deplibs_check_method=pass_all
5956 ;;
5957
5958 freebsd* | dragonfly* | midnightbsd*)
5959 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5960 case $host_cpu in
5961 i*86 )
5962 # Not sure whether the presence of OpenBSD here was a mistake.
5963 # Let's accept both of them until this is cleared up.
5964 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5965 lt_cv_file_magic_cmd=$FILECMD
5966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5967 ;;
5968 esac
5969 else
5970 lt_cv_deplibs_check_method=pass_all
5971 fi
5972 ;;
5973
5974 haiku*)
5975 lt_cv_deplibs_check_method=pass_all
5976 ;;
5977
5978 hpux10.20* | hpux11*)
5979 lt_cv_file_magic_cmd=$FILECMD
5980 case $host_cpu in
5981 ia64*)
5982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5983 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5984 ;;
5985 hppa*64*)
5986 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]'
5987 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5988 ;;
5989 *)
5990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5991 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5992 ;;
5993 esac
5994 ;;
5995
5996 interix[3-9]*)
5997 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5999 ;;
6000
6001 irix5* | irix6* | nonstopux*)
6002 case $LD in
6003 *-32|*"-32 ") libmagic=32-bit;;
6004 *-n32|*"-n32 ") libmagic=N32;;
6005 *-64|*"-64 ") libmagic=64-bit;;
6006 *) libmagic=never-match;;
6007 esac
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010
6011 # This must be glibc/ELF.
6012 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016 netbsd*)
6017 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6019 else
6020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6021 fi
6022 ;;
6023
6024 newos6*)
6025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6026 lt_cv_file_magic_cmd=$FILECMD
6027 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6028 ;;
6029
6030 *nto* | *qnx*)
6031 lt_cv_deplibs_check_method=pass_all
6032 ;;
6033
6034 openbsd* | bitrig*)
6035 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6037 else
6038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6039 fi
6040 ;;
6041
6042 osf3* | osf4* | osf5*)
6043 lt_cv_deplibs_check_method=pass_all
6044 ;;
6045
6046 rdos*)
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
6049
6050 solaris*)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
6053
6054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057
6058 sysv4 | sysv4.3*)
6059 case $host_vendor in
6060 motorola)
6061 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]'
6062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6063 ;;
6064 ncr)
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067 sequent)
6068 lt_cv_file_magic_cmd='/bin/file'
6069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6070 ;;
6071 sni)
6072 lt_cv_file_magic_cmd='/bin/file'
6073 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6074 lt_cv_file_magic_test_file=/lib/libc.so
6075 ;;
6076 siemens)
6077 lt_cv_deplibs_check_method=pass_all
6078 ;;
6079 pc)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082 esac
6083 ;;
6084
6085 tpf*)
6086 lt_cv_deplibs_check_method=pass_all
6087 ;;
6088 os2*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091 esac
6092
6093 fi
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6095 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6096
6097 file_magic_glob=
6098 want_nocaseglob=no
6099 if test "$build" = "$host"; then
6100 case $host_os in
6101 mingw* | pw32*)
6102 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6103 want_nocaseglob=yes
6104 else
6105 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6106 fi
6107 ;;
6108 esac
6109 fi
6110
6111 file_magic_cmd=$lt_cv_file_magic_cmd
6112 deplibs_check_method=$lt_cv_deplibs_check_method
6113 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136 if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 printf %s "checking for $ac_word... " >&6; }
6141 if test ${ac_cv_prog_DLLTOOL+y}
6142 then :
6143 printf %s "(cached) " >&6
6144 else $as_nop
6145 if test -n "$DLLTOOL"; then
6146 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 case $as_dir in #(((
6153 '') as_dir=./ ;;
6154 */) ;;
6155 *) as_dir=$as_dir/ ;;
6156 esac
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 DLLTOOL=$ac_cv_prog_DLLTOOL
6170 if test -n "$DLLTOOL"; then
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6172 printf "%s\n" "$DLLTOOL" >&6; }
6173 else
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 printf "%s\n" "no" >&6; }
6176 fi
6177
6178
6179 fi
6180 if test -z "$ac_cv_prog_DLLTOOL"; then
6181 ac_ct_DLLTOOL=$DLLTOOL
6182 # Extract the first word of "dlltool", so it can be a program name with args.
6183 set dummy dlltool; ac_word=$2
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 printf %s "checking for $ac_word... " >&6; }
6186 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6187 then :
6188 printf %s "(cached) " >&6
6189 else $as_nop
6190 if test -n "$ac_ct_DLLTOOL"; then
6191 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 case $as_dir in #(((
6198 '') as_dir=./ ;;
6199 */) ;;
6200 *) as_dir=$as_dir/ ;;
6201 esac
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6215 if test -n "$ac_ct_DLLTOOL"; then
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6217 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6218 else
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 printf "%s\n" "no" >&6; }
6221 fi
6222
6223 if test "x$ac_ct_DLLTOOL" = x; then
6224 DLLTOOL="false"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232 DLLTOOL=$ac_ct_DLLTOOL
6233 fi
6234 else
6235 DLLTOOL="$ac_cv_prog_DLLTOOL"
6236 fi
6237
6238 test -z "$DLLTOOL" && DLLTOOL=dlltool
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6250 printf %s "checking how to associate runtime and link libraries... " >&6; }
6251 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6252 then :
6253 printf %s "(cached) " >&6
6254 else $as_nop
6255 lt_cv_sharedlib_from_linklib_cmd='unknown'
6256
6257 case $host_os in
6258 cygwin* | mingw* | pw32* | cegcc*)
6259 # two different shell functions defined in ltmain.sh;
6260 # decide which one to use based on capabilities of $DLLTOOL
6261 case `$DLLTOOL --help 2>&1` in
6262 *--identify-strict*)
6263 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6264 ;;
6265 *)
6266 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6267 ;;
6268 esac
6269 ;;
6270 *)
6271 # fallback: assume linklib IS sharedlib
6272 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6273 ;;
6274 esac
6275
6276 fi
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6278 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6279 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6280 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6281
6282
6283
6284
6285
6286
6287
6288
6289 if test -n "$ac_tool_prefix"; then
6290 for ac_prog in ar
6291 do
6292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 printf %s "checking for $ac_word... " >&6; }
6296 if test ${ac_cv_prog_AR+y}
6297 then :
6298 printf %s "(cached) " >&6
6299 else $as_nop
6300 if test -n "$AR"; then
6301 ac_cv_prog_AR="$AR" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306 IFS=$as_save_IFS
6307 case $as_dir in #(((
6308 '') as_dir=./ ;;
6309 */) ;;
6310 *) as_dir=$as_dir/ ;;
6311 esac
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6314 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 AR=$ac_cv_prog_AR
6325 if test -n "$AR"; then
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6327 printf "%s\n" "$AR" >&6; }
6328 else
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 printf "%s\n" "no" >&6; }
6331 fi
6332
6333
6334 test -n "$AR" && break
6335 done
6336 fi
6337 if test -z "$AR"; then
6338 ac_ct_AR=$AR
6339 for ac_prog in ar
6340 do
6341 # Extract the first word of "$ac_prog", so it can be a program name with args.
6342 set dummy $ac_prog; ac_word=$2
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 printf %s "checking for $ac_word... " >&6; }
6345 if test ${ac_cv_prog_ac_ct_AR+y}
6346 then :
6347 printf %s "(cached) " >&6
6348 else $as_nop
6349 if test -n "$ac_ct_AR"; then
6350 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355 IFS=$as_save_IFS
6356 case $as_dir in #(((
6357 '') as_dir=./ ;;
6358 */) ;;
6359 *) as_dir=$as_dir/ ;;
6360 esac
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6363 ac_cv_prog_ac_ct_AR="$ac_prog"
6364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6374 if test -n "$ac_ct_AR"; then
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6376 printf "%s\n" "$ac_ct_AR" >&6; }
6377 else
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 printf "%s\n" "no" >&6; }
6380 fi
6381
6382
6383 test -n "$ac_ct_AR" && break
6384 done
6385
6386 if test "x$ac_ct_AR" = x; then
6387 AR="false"
6388 else
6389 case $cross_compiling:$ac_tool_warned in
6390 yes:)
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395 AR=$ac_ct_AR
6396 fi
6397 fi
6398
6399 : ${AR=ar}
6400
6401
6402
6403
6404
6405
6406 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6407 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6408 # higher priority because thats what people were doing historically (setting
6409 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6410 # variable obsoleted/removed.
6411
6412 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6413 lt_ar_flags=$AR_FLAGS
6414
6415
6416
6417
6418
6419
6420 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6421 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6422
6423
6424
6425
6426
6427
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6429 printf %s "checking for archiver @FILE support... " >&6; }
6430 if test ${lt_cv_ar_at_file+y}
6431 then :
6432 printf %s "(cached) " >&6
6433 else $as_nop
6434 lt_cv_ar_at_file=no
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437
6438 int
6439 main (void)
6440 {
6441
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"
6447 then :
6448 echo conftest.$ac_objext > conftest.lst
6449 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6451 (eval $lt_ar_try) 2>&5
6452 ac_status=$?
6453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }
6455 if test 0 -eq "$ac_status"; then
6456 # Ensure the archiver fails upon bogus file names.
6457 rm -f conftest.$ac_objext libconftest.a
6458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6459 (eval $lt_ar_try) 2>&5
6460 ac_status=$?
6461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462 test $ac_status = 0; }
6463 if test 0 -ne "$ac_status"; then
6464 lt_cv_ar_at_file=@
6465 fi
6466 fi
6467 rm -f conftest.* libconftest.a
6468
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6471
6472 fi
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6474 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6475
6476 if test no = "$lt_cv_ar_at_file"; then
6477 archiver_list_spec=
6478 else
6479 archiver_list_spec=$lt_cv_ar_at_file
6480 fi
6481
6482
6483
6484
6485
6486
6487
6488 if test -n "$ac_tool_prefix"; then
6489 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6490 set dummy ${ac_tool_prefix}strip; ac_word=$2
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 printf %s "checking for $ac_word... " >&6; }
6493 if test ${ac_cv_prog_STRIP+y}
6494 then :
6495 printf %s "(cached) " >&6
6496 else $as_nop
6497 if test -n "$STRIP"; then
6498 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503 IFS=$as_save_IFS
6504 case $as_dir in #(((
6505 '') as_dir=./ ;;
6506 */) ;;
6507 *) as_dir=$as_dir/ ;;
6508 esac
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6511 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 STRIP=$ac_cv_prog_STRIP
6522 if test -n "$STRIP"; then
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6524 printf "%s\n" "$STRIP" >&6; }
6525 else
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 printf "%s\n" "no" >&6; }
6528 fi
6529
6530
6531 fi
6532 if test -z "$ac_cv_prog_STRIP"; then
6533 ac_ct_STRIP=$STRIP
6534 # Extract the first word of "strip", so it can be a program name with args.
6535 set dummy strip; ac_word=$2
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 printf %s "checking for $ac_word... " >&6; }
6538 if test ${ac_cv_prog_ac_ct_STRIP+y}
6539 then :
6540 printf %s "(cached) " >&6
6541 else $as_nop
6542 if test -n "$ac_ct_STRIP"; then
6543 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 case $as_dir in #(((
6550 '') as_dir=./ ;;
6551 */) ;;
6552 *) as_dir=$as_dir/ ;;
6553 esac
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_ac_ct_STRIP="strip"
6557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560 done
6561 done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6567 if test -n "$ac_ct_STRIP"; then
6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6569 printf "%s\n" "$ac_ct_STRIP" >&6; }
6570 else
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 printf "%s\n" "no" >&6; }
6573 fi
6574
6575 if test "x$ac_ct_STRIP" = x; then
6576 STRIP=":"
6577 else
6578 case $cross_compiling:$ac_tool_warned in
6579 yes:)
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6583 esac
6584 STRIP=$ac_ct_STRIP
6585 fi
6586 else
6587 STRIP="$ac_cv_prog_STRIP"
6588 fi
6589
6590 test -z "$STRIP" && STRIP=:
6591
6592
6593
6594
6595
6596
6597 if test -n "$ac_tool_prefix"; then
6598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 printf %s "checking for $ac_word... " >&6; }
6602 if test ${ac_cv_prog_RANLIB+y}
6603 then :
6604 printf %s "(cached) " >&6
6605 else $as_nop
6606 if test -n "$RANLIB"; then
6607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612 IFS=$as_save_IFS
6613 case $as_dir in #(((
6614 '') as_dir=./ ;;
6615 */) ;;
6616 *) as_dir=$as_dir/ ;;
6617 esac
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 RANLIB=$ac_cv_prog_RANLIB
6631 if test -n "$RANLIB"; then
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6633 printf "%s\n" "$RANLIB" >&6; }
6634 else
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 printf "%s\n" "no" >&6; }
6637 fi
6638
6639
6640 fi
6641 if test -z "$ac_cv_prog_RANLIB"; then
6642 ac_ct_RANLIB=$RANLIB
6643 # Extract the first word of "ranlib", so it can be a program name with args.
6644 set dummy ranlib; ac_word=$2
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 printf %s "checking for $ac_word... " >&6; }
6647 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6648 then :
6649 printf %s "(cached) " >&6
6650 else $as_nop
6651 if test -n "$ac_ct_RANLIB"; then
6652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657 IFS=$as_save_IFS
6658 case $as_dir in #(((
6659 '') as_dir=./ ;;
6660 */) ;;
6661 *) as_dir=$as_dir/ ;;
6662 esac
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_RANLIB="ranlib"
6666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6676 if test -n "$ac_ct_RANLIB"; then
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6678 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6679 else
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 printf "%s\n" "no" >&6; }
6682 fi
6683
6684 if test "x$ac_ct_RANLIB" = x; then
6685 RANLIB=":"
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 RANLIB=$ac_ct_RANLIB
6694 fi
6695 else
6696 RANLIB="$ac_cv_prog_RANLIB"
6697 fi
6698
6699 test -z "$RANLIB" && RANLIB=:
6700
6701
6702
6703
6704
6705
6706 # Determine commands to create old-style static archives.
6707 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6708 old_postinstall_cmds='chmod 644 $oldlib'
6709 old_postuninstall_cmds=
6710
6711 if test -n "$RANLIB"; then
6712 case $host_os in
6713 bitrig* | openbsd*)
6714 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6715 ;;
6716 *)
6717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6718 ;;
6719 esac
6720 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6721 fi
6722
6723 case $host_os in
6724 darwin*)
6725 lock_old_archive_extraction=yes ;;
6726 *)
6727 lock_old_archive_extraction=no ;;
6728 esac
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768 # If no C compiler was specified, use CC.
6769 LTCC=${LTCC-"$CC"}
6770
6771 # If no C compiler flags were specified, use CFLAGS.
6772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6773
6774 # Allow CC to be a program name with arguments.
6775 compiler=$CC
6776
6777
6778 # Check for command to grab the raw symbol name followed by C symbol from nm.
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6780 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6781 if test ${lt_cv_sys_global_symbol_pipe+y}
6782 then :
6783 printf %s "(cached) " >&6
6784 else $as_nop
6785
6786 # These are sane defaults that work on at least a few old systems.
6787 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6788
6789 # Character class describing NM global symbol codes.
6790 symcode='[BCDEGRST]'
6791
6792 # Regexp to match symbols that can be accessed directly from C.
6793 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6794
6795 # Define system-specific variables.
6796 case $host_os in
6797 aix*)
6798 symcode='[BCDT]'
6799 ;;
6800 cygwin* | mingw* | pw32* | cegcc*)
6801 symcode='[ABCDGISTW]'
6802 ;;
6803 hpux*)
6804 if test ia64 = "$host_cpu"; then
6805 symcode='[ABCDEGRST]'
6806 fi
6807 ;;
6808 irix* | nonstopux*)
6809 symcode='[BCDEGRST]'
6810 ;;
6811 osf*)
6812 symcode='[BCDEGQRST]'
6813 ;;
6814 solaris*)
6815 symcode='[BDRT]'
6816 ;;
6817 sco3.2v5*)
6818 symcode='[DT]'
6819 ;;
6820 sysv4.2uw2*)
6821 symcode='[DT]'
6822 ;;
6823 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6824 symcode='[ABDT]'
6825 ;;
6826 sysv4)
6827 symcode='[DFNSTU]'
6828 ;;
6829 esac
6830
6831 # If we're using GNU nm, then use its standard symbol codes.
6832 case `$NM -V 2>&1` in
6833 *GNU* | *'with BFD'*)
6834 symcode='[ABCDGIRSTW]' ;;
6835 esac
6836
6837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6838 # Gets list of data symbols to import.
6839 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6840 # Adjust the below global symbol transforms to fixup imported variables.
6841 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6842 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6843 lt_c_name_lib_hook="\
6844 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6845 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6846 else
6847 # Disable hooks by default.
6848 lt_cv_sys_global_symbol_to_import=
6849 lt_cdecl_hook=
6850 lt_c_name_hook=
6851 lt_c_name_lib_hook=
6852 fi
6853
6854 # Transform an extracted symbol line into a proper C declaration.
6855 # Some systems (esp. on ia64) link data and code symbols differently,
6856 # so use this general approach.
6857 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6858 $lt_cdecl_hook\
6859 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6860 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6861
6862 # Transform an extracted symbol line into symbol name and symbol address
6863 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6864 $lt_c_name_hook\
6865 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6866 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6867
6868 # Transform an extracted symbol line into symbol name with lib prefix and
6869 # symbol address.
6870 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6871 $lt_c_name_lib_hook\
6872 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6873 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6874 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6875
6876 # Handle CRLF in mingw tool chain
6877 opt_cr=
6878 case $build_os in
6879 mingw*)
6880 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6881 ;;
6882 esac
6883
6884 # Try without a prefix underscore, then with it.
6885 for ac_symprfx in "" "_"; do
6886
6887 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6888 symxfrm="\\1 $ac_symprfx\\2 \\2"
6889
6890 # Write the raw and C identifiers.
6891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6892 # Fake it for dumpbin and say T for any non-static function,
6893 # D for any global variable and I for any imported variable.
6894 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6895 # which start with @ or ?.
6896 lt_cv_sys_global_symbol_pipe="$AWK '"\
6897 " {last_section=section; section=\$ 3};"\
6898 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6899 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6900 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6901 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6902 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6903 " \$ 0!~/External *\|/{next};"\
6904 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6905 " {if(hide[section]) next};"\
6906 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6907 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6908 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6909 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6910 " ' prfx=^$ac_symprfx"
6911 else
6912 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6913 fi
6914 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6915
6916 # Check to see that the pipe works correctly.
6917 pipe_works=no
6918
6919 rm -f conftest*
6920 cat > conftest.$ac_ext <<_LT_EOF
6921 #ifdef __cplusplus
6922 extern "C" {
6923 #endif
6924 char nm_test_var;
6925 void nm_test_func(void);
6926 void nm_test_func(void){}
6927 #ifdef __cplusplus
6928 }
6929 #endif
6930 int main(){nm_test_var='a';nm_test_func();return(0);}
6931 _LT_EOF
6932
6933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6934 (eval $ac_compile) 2>&5
6935 ac_status=$?
6936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937 test $ac_status = 0; }; then
6938 # Now try to grab the symbols.
6939 nlist=conftest.nm
6940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6941 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6942 ac_status=$?
6943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944 test $ac_status = 0; } && test -s "$nlist"; then
6945 # Try sorting and uniquifying the output.
6946 if sort "$nlist" | uniq > "$nlist"T; then
6947 mv -f "$nlist"T "$nlist"
6948 else
6949 rm -f "$nlist"T
6950 fi
6951
6952 # Make sure that we snagged all the symbols we need.
6953 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6954 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6955 cat <<_LT_EOF > conftest.$ac_ext
6956 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6957 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6958 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6959 relocations are performed -- see ld's documentation on pseudo-relocs. */
6960 # define LT_DLSYM_CONST
6961 #elif defined __osf__
6962 /* This system does not cope well with relocations in const data. */
6963 # define LT_DLSYM_CONST
6964 #else
6965 # define LT_DLSYM_CONST const
6966 #endif
6967
6968 #ifdef __cplusplus
6969 extern "C" {
6970 #endif
6971
6972 _LT_EOF
6973 # Now generate the symbol file.
6974 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6975
6976 cat <<_LT_EOF >> conftest.$ac_ext
6977
6978 /* The mapping between symbol names and symbols. */
6979 LT_DLSYM_CONST struct {
6980 const char *name;
6981 void *address;
6982 }
6983 lt__PROGRAM__LTX_preloaded_symbols[] =
6984 {
6985 { "@PROGRAM@", (void *) 0 },
6986 _LT_EOF
6987 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6988 cat <<\_LT_EOF >> conftest.$ac_ext
6989 {0, (void *) 0}
6990 };
6991
6992 /* This works around a problem in FreeBSD linker */
6993 #ifdef FREEBSD_WORKAROUND
6994 static const void *lt_preloaded_setup() {
6995 return lt__PROGRAM__LTX_preloaded_symbols;
6996 }
6997 #endif
6998
6999 #ifdef __cplusplus
7000 }
7001 #endif
7002 _LT_EOF
7003 # Now try linking the two files.
7004 mv conftest.$ac_objext conftstm.$ac_objext
7005 lt_globsym_save_LIBS=$LIBS
7006 lt_globsym_save_CFLAGS=$CFLAGS
7007 LIBS=conftstm.$ac_objext
7008 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7010 (eval $ac_link) 2>&5
7011 ac_status=$?
7012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7014 pipe_works=yes
7015 fi
7016 LIBS=$lt_globsym_save_LIBS
7017 CFLAGS=$lt_globsym_save_CFLAGS
7018 else
7019 echo "cannot find nm_test_func in $nlist" >&5
7020 fi
7021 else
7022 echo "cannot find nm_test_var in $nlist" >&5
7023 fi
7024 else
7025 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7026 fi
7027 else
7028 echo "$progname: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 fi
7031 rm -rf conftest* conftst*
7032
7033 # Do not use the global_symbol_pipe unless it works.
7034 if test yes = "$pipe_works"; then
7035 break
7036 else
7037 lt_cv_sys_global_symbol_pipe=
7038 fi
7039 done
7040
7041 fi
7042
7043 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7044 lt_cv_sys_global_symbol_to_cdecl=
7045 fi
7046 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7048 printf "%s\n" "failed" >&6; }
7049 else
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7051 printf "%s\n" "ok" >&6; }
7052 fi
7053
7054 # Response file support.
7055 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7056 nm_file_list_spec='@'
7057 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7058 nm_file_list_spec='@'
7059 fi
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7098 printf %s "checking for sysroot... " >&6; }
7099
7100 # Check whether --with-sysroot was given.
7101 if test ${with_sysroot+y}
7102 then :
7103 withval=$with_sysroot;
7104 else $as_nop
7105 with_sysroot=no
7106 fi
7107
7108
7109 lt_sysroot=
7110 case $with_sysroot in #(
7111 yes)
7112 if test yes = "$GCC"; then
7113 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7114 fi
7115 ;; #(
7116 /*)
7117 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7118 ;; #(
7119 no|'')
7120 ;; #(
7121 *)
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7123 printf "%s\n" "$with_sysroot" >&6; }
7124 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7125 ;;
7126 esac
7127
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7129 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7130
7131
7132
7133
7134
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7136 printf %s "checking for a working dd... " >&6; }
7137 if test ${ac_cv_path_lt_DD+y}
7138 then :
7139 printf %s "(cached) " >&6
7140 else $as_nop
7141 printf 0123456789abcdef0123456789abcdef >conftest.i
7142 cat conftest.i conftest.i >conftest2.i
7143 : ${lt_DD:=$DD}
7144 if test -z "$lt_DD"; then
7145 ac_path_lt_DD_found=false
7146 # Loop through the user's path and test for each of PROGNAME-LIST
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 case $as_dir in #(((
7152 '') as_dir=./ ;;
7153 */) ;;
7154 *) as_dir=$as_dir/ ;;
7155 esac
7156 for ac_prog in dd
7157 do
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7160 as_fn_executable_p "$ac_path_lt_DD" || continue
7161 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7162 cmp -s conftest.i conftest.out \
7163 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7164 fi
7165 $ac_path_lt_DD_found && break 3
7166 done
7167 done
7168 done
7169 IFS=$as_save_IFS
7170 if test -z "$ac_cv_path_lt_DD"; then
7171 :
7172 fi
7173 else
7174 ac_cv_path_lt_DD=$lt_DD
7175 fi
7176
7177 rm -f conftest.i conftest2.i conftest.out
7178 fi
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7180 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7181
7182
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7184 printf %s "checking how to truncate binary pipes... " >&6; }
7185 if test ${lt_cv_truncate_bin+y}
7186 then :
7187 printf %s "(cached) " >&6
7188 else $as_nop
7189 printf 0123456789abcdef0123456789abcdef >conftest.i
7190 cat conftest.i conftest.i >conftest2.i
7191 lt_cv_truncate_bin=
7192 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7193 cmp -s conftest.i conftest.out \
7194 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7195 fi
7196 rm -f conftest.i conftest2.i conftest.out
7197 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7198 fi
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7200 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7201
7202
7203
7204
7205
7206
7207
7208 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7209 func_cc_basename ()
7210 {
7211 for cc_temp in $*""; do
7212 case $cc_temp in
7213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7215 \-*) ;;
7216 *) break;;
7217 esac
7218 done
7219 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7220 }
7221
7222 # Check whether --enable-libtool-lock was given.
7223 if test ${enable_libtool_lock+y}
7224 then :
7225 enableval=$enable_libtool_lock;
7226 fi
7227
7228 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7229
7230 # Some flags need to be propagated to the compiler or linker for good
7231 # libtool support.
7232 case $host in
7233 ia64-*-hpux*)
7234 # Find out what ABI is being produced by ac_compile, and set mode
7235 # options accordingly.
7236 echo 'int i;' > conftest.$ac_ext
7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238 (eval $ac_compile) 2>&5
7239 ac_status=$?
7240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
7242 case `$FILECMD conftest.$ac_objext` in
7243 *ELF-32*)
7244 HPUX_IA64_MODE=32
7245 ;;
7246 *ELF-64*)
7247 HPUX_IA64_MODE=64
7248 ;;
7249 esac
7250 fi
7251 rm -rf conftest*
7252 ;;
7253 *-*-irix6*)
7254 # Find out what ABI is being produced by ac_compile, and set linker
7255 # options accordingly.
7256 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7258 (eval $ac_compile) 2>&5
7259 ac_status=$?
7260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; }; then
7262 if test yes = "$lt_cv_prog_gnu_ld"; then
7263 case `$FILECMD conftest.$ac_objext` in
7264 *32-bit*)
7265 LD="${LD-ld} -melf32bsmip"
7266 ;;
7267 *N32*)
7268 LD="${LD-ld} -melf32bmipn32"
7269 ;;
7270 *64-bit*)
7271 LD="${LD-ld} -melf64bmip"
7272 ;;
7273 esac
7274 else
7275 case `$FILECMD conftest.$ac_objext` in
7276 *32-bit*)
7277 LD="${LD-ld} -32"
7278 ;;
7279 *N32*)
7280 LD="${LD-ld} -n32"
7281 ;;
7282 *64-bit*)
7283 LD="${LD-ld} -64"
7284 ;;
7285 esac
7286 fi
7287 fi
7288 rm -rf conftest*
7289 ;;
7290
7291 mips64*-*linux*)
7292 # Find out what ABI is being produced by ac_compile, and set linker
7293 # options accordingly.
7294 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7296 (eval $ac_compile) 2>&5
7297 ac_status=$?
7298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299 test $ac_status = 0; }; then
7300 emul=elf
7301 case `$FILECMD conftest.$ac_objext` in
7302 *32-bit*)
7303 emul="${emul}32"
7304 ;;
7305 *64-bit*)
7306 emul="${emul}64"
7307 ;;
7308 esac
7309 case `$FILECMD conftest.$ac_objext` in
7310 *MSB*)
7311 emul="${emul}btsmip"
7312 ;;
7313 *LSB*)
7314 emul="${emul}ltsmip"
7315 ;;
7316 esac
7317 case `$FILECMD conftest.$ac_objext` in
7318 *N32*)
7319 emul="${emul}n32"
7320 ;;
7321 esac
7322 LD="${LD-ld} -m $emul"
7323 fi
7324 rm -rf conftest*
7325 ;;
7326
7327 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7328 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7329 # Find out what ABI is being produced by ac_compile, and set linker
7330 # options accordingly. Note that the listed cases only cover the
7331 # situations where additional linker options are needed (such as when
7332 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7333 # vice versa); the common cases where no linker options are needed do
7334 # not appear in the list.
7335 echo 'int i;' > conftest.$ac_ext
7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337 (eval $ac_compile) 2>&5
7338 ac_status=$?
7339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340 test $ac_status = 0; }; then
7341 case `$FILECMD conftest.o` in
7342 *32-bit*)
7343 case $host in
7344 x86_64-*kfreebsd*-gnu)
7345 LD="${LD-ld} -m elf_i386_fbsd"
7346 ;;
7347 x86_64-*linux*)
7348 case `$FILECMD conftest.o` in
7349 *x86-64*)
7350 LD="${LD-ld} -m elf32_x86_64"
7351 ;;
7352 *)
7353 LD="${LD-ld} -m elf_i386"
7354 ;;
7355 esac
7356 ;;
7357 powerpc64le-*linux*)
7358 LD="${LD-ld} -m elf32lppclinux"
7359 ;;
7360 powerpc64-*linux*)
7361 LD="${LD-ld} -m elf32ppclinux"
7362 ;;
7363 s390x-*linux*)
7364 LD="${LD-ld} -m elf_s390"
7365 ;;
7366 sparc64-*linux*)
7367 LD="${LD-ld} -m elf32_sparc"
7368 ;;
7369 esac
7370 ;;
7371 *64-bit*)
7372 case $host in
7373 x86_64-*kfreebsd*-gnu)
7374 LD="${LD-ld} -m elf_x86_64_fbsd"
7375 ;;
7376 x86_64-*linux*)
7377 LD="${LD-ld} -m elf_x86_64"
7378 ;;
7379 powerpcle-*linux*)
7380 LD="${LD-ld} -m elf64lppc"
7381 ;;
7382 powerpc-*linux*)
7383 LD="${LD-ld} -m elf64ppc"
7384 ;;
7385 s390*-*linux*|s390*-*tpf*)
7386 LD="${LD-ld} -m elf64_s390"
7387 ;;
7388 sparc*-*linux*)
7389 LD="${LD-ld} -m elf64_sparc"
7390 ;;
7391 esac
7392 ;;
7393 esac
7394 fi
7395 rm -rf conftest*
7396 ;;
7397
7398 *-*-sco3.2v5*)
7399 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7400 SAVE_CFLAGS=$CFLAGS
7401 CFLAGS="$CFLAGS -belf"
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7403 printf %s "checking whether the C compiler needs -belf... " >&6; }
7404 if test ${lt_cv_cc_needs_belf+y}
7405 then :
7406 printf %s "(cached) " >&6
7407 else $as_nop
7408 ac_ext=c
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416
7417 int
7418 main (void)
7419 {
7420
7421 ;
7422 return 0;
7423 }
7424 _ACEOF
7425 if ac_fn_c_try_link "$LINENO"
7426 then :
7427 lt_cv_cc_needs_belf=yes
7428 else $as_nop
7429 lt_cv_cc_needs_belf=no
7430 fi
7431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7432 conftest$ac_exeext conftest.$ac_ext
7433 ac_ext=c
7434 ac_cpp='$CPP $CPPFLAGS'
7435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438
7439 fi
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7441 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7442 if test yes != "$lt_cv_cc_needs_belf"; then
7443 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7444 CFLAGS=$SAVE_CFLAGS
7445 fi
7446 ;;
7447 *-*solaris*)
7448 # Find out what ABI is being produced by ac_compile, and set linker
7449 # options accordingly.
7450 echo 'int i;' > conftest.$ac_ext
7451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7452 (eval $ac_compile) 2>&5
7453 ac_status=$?
7454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455 test $ac_status = 0; }; then
7456 case `$FILECMD conftest.o` in
7457 *64-bit*)
7458 case $lt_cv_prog_gnu_ld in
7459 yes*)
7460 case $host in
7461 i?86-*-solaris*|x86_64-*-solaris*)
7462 LD="${LD-ld} -m elf_x86_64"
7463 ;;
7464 sparc*-*-solaris*)
7465 LD="${LD-ld} -m elf64_sparc"
7466 ;;
7467 esac
7468 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7469 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7470 LD=${LD-ld}_sol2
7471 fi
7472 ;;
7473 *)
7474 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7475 LD="${LD-ld} -64"
7476 fi
7477 ;;
7478 esac
7479 ;;
7480 esac
7481 fi
7482 rm -rf conftest*
7483 ;;
7484 esac
7485
7486 need_locks=$enable_libtool_lock
7487
7488 if test -n "$ac_tool_prefix"; then
7489 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7490 set dummy ${ac_tool_prefix}mt; ac_word=$2
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 printf %s "checking for $ac_word... " >&6; }
7493 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7494 then :
7495 printf %s "(cached) " >&6
7496 else $as_nop
7497 if test -n "$MANIFEST_TOOL"; then
7498 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 case $as_dir in #(((
7505 '') as_dir=./ ;;
7506 */) ;;
7507 *) as_dir=$as_dir/ ;;
7508 esac
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7522 if test -n "$MANIFEST_TOOL"; then
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7524 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7525 else
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 printf "%s\n" "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7533 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7534 # Extract the first word of "mt", so it can be a program name with args.
7535 set dummy mt; ac_word=$2
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 printf %s "checking for $ac_word... " >&6; }
7538 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7539 then :
7540 printf %s "(cached) " >&6
7541 else $as_nop
7542 if test -n "$ac_ct_MANIFEST_TOOL"; then
7543 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548 IFS=$as_save_IFS
7549 case $as_dir in #(((
7550 '') as_dir=./ ;;
7551 */) ;;
7552 *) as_dir=$as_dir/ ;;
7553 esac
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7567 if test -n "$ac_ct_MANIFEST_TOOL"; then
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7569 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7570 else
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 printf "%s\n" "no" >&6; }
7573 fi
7574
7575 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7576 MANIFEST_TOOL=":"
7577 else
7578 case $cross_compiling:$ac_tool_warned in
7579 yes:)
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7583 esac
7584 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7585 fi
7586 else
7587 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7588 fi
7589
7590 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7592 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7593 if test ${lt_cv_path_mainfest_tool+y}
7594 then :
7595 printf %s "(cached) " >&6
7596 else $as_nop
7597 lt_cv_path_mainfest_tool=no
7598 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7599 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7600 cat conftest.err >&5
7601 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7602 lt_cv_path_mainfest_tool=yes
7603 fi
7604 rm -f conftest*
7605 fi
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7607 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7608 if test yes != "$lt_cv_path_mainfest_tool"; then
7609 MANIFEST_TOOL=:
7610 fi
7611
7612
7613
7614
7615
7616
7617 case $host_os in
7618 rhapsody* | darwin*)
7619 if test -n "$ac_tool_prefix"; then
7620 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7621 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 printf %s "checking for $ac_word... " >&6; }
7624 if test ${ac_cv_prog_DSYMUTIL+y}
7625 then :
7626 printf %s "(cached) " >&6
7627 else $as_nop
7628 if test -n "$DSYMUTIL"; then
7629 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634 IFS=$as_save_IFS
7635 case $as_dir in #(((
7636 '') as_dir=./ ;;
7637 */) ;;
7638 *) as_dir=$as_dir/ ;;
7639 esac
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7653 if test -n "$DSYMUTIL"; then
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7655 printf "%s\n" "$DSYMUTIL" >&6; }
7656 else
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 printf "%s\n" "no" >&6; }
7659 fi
7660
7661
7662 fi
7663 if test -z "$ac_cv_prog_DSYMUTIL"; then
7664 ac_ct_DSYMUTIL=$DSYMUTIL
7665 # Extract the first word of "dsymutil", so it can be a program name with args.
7666 set dummy dsymutil; ac_word=$2
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 printf %s "checking for $ac_word... " >&6; }
7669 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7670 then :
7671 printf %s "(cached) " >&6
7672 else $as_nop
7673 if test -n "$ac_ct_DSYMUTIL"; then
7674 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679 IFS=$as_save_IFS
7680 case $as_dir in #(((
7681 '') as_dir=./ ;;
7682 */) ;;
7683 *) as_dir=$as_dir/ ;;
7684 esac
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7687 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691 done
7692 done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7698 if test -n "$ac_ct_DSYMUTIL"; then
7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7700 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7701 else
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 printf "%s\n" "no" >&6; }
7704 fi
7705
7706 if test "x$ac_ct_DSYMUTIL" = x; then
7707 DSYMUTIL=":"
7708 else
7709 case $cross_compiling:$ac_tool_warned in
7710 yes:)
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7712 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7713 ac_tool_warned=yes ;;
7714 esac
7715 DSYMUTIL=$ac_ct_DSYMUTIL
7716 fi
7717 else
7718 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7719 fi
7720
7721 if test -n "$ac_tool_prefix"; then
7722 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7723 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 printf %s "checking for $ac_word... " >&6; }
7726 if test ${ac_cv_prog_NMEDIT+y}
7727 then :
7728 printf %s "(cached) " >&6
7729 else $as_nop
7730 if test -n "$NMEDIT"; then
7731 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736 IFS=$as_save_IFS
7737 case $as_dir in #(((
7738 '') as_dir=./ ;;
7739 */) ;;
7740 *) as_dir=$as_dir/ ;;
7741 esac
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7744 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7746 break 2
7747 fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752 fi
7753 fi
7754 NMEDIT=$ac_cv_prog_NMEDIT
7755 if test -n "$NMEDIT"; then
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7757 printf "%s\n" "$NMEDIT" >&6; }
7758 else
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 printf "%s\n" "no" >&6; }
7761 fi
7762
7763
7764 fi
7765 if test -z "$ac_cv_prog_NMEDIT"; then
7766 ac_ct_NMEDIT=$NMEDIT
7767 # Extract the first word of "nmedit", so it can be a program name with args.
7768 set dummy nmedit; ac_word=$2
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 printf %s "checking for $ac_word... " >&6; }
7771 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7772 then :
7773 printf %s "(cached) " >&6
7774 else $as_nop
7775 if test -n "$ac_ct_NMEDIT"; then
7776 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781 IFS=$as_save_IFS
7782 case $as_dir in #(((
7783 '') as_dir=./ ;;
7784 */) ;;
7785 *) as_dir=$as_dir/ ;;
7786 esac
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7789 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793 done
7794 done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7800 if test -n "$ac_ct_NMEDIT"; then
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7802 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7803 else
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 printf "%s\n" "no" >&6; }
7806 fi
7807
7808 if test "x$ac_ct_NMEDIT" = x; then
7809 NMEDIT=":"
7810 else
7811 case $cross_compiling:$ac_tool_warned in
7812 yes:)
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815 ac_tool_warned=yes ;;
7816 esac
7817 NMEDIT=$ac_ct_NMEDIT
7818 fi
7819 else
7820 NMEDIT="$ac_cv_prog_NMEDIT"
7821 fi
7822
7823 if test -n "$ac_tool_prefix"; then
7824 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7825 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 printf %s "checking for $ac_word... " >&6; }
7828 if test ${ac_cv_prog_LIPO+y}
7829 then :
7830 printf %s "(cached) " >&6
7831 else $as_nop
7832 if test -n "$LIPO"; then
7833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838 IFS=$as_save_IFS
7839 case $as_dir in #(((
7840 '') as_dir=./ ;;
7841 */) ;;
7842 *) as_dir=$as_dir/ ;;
7843 esac
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 LIPO=$ac_cv_prog_LIPO
7857 if test -n "$LIPO"; then
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7859 printf "%s\n" "$LIPO" >&6; }
7860 else
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 printf "%s\n" "no" >&6; }
7863 fi
7864
7865
7866 fi
7867 if test -z "$ac_cv_prog_LIPO"; then
7868 ac_ct_LIPO=$LIPO
7869 # Extract the first word of "lipo", so it can be a program name with args.
7870 set dummy lipo; ac_word=$2
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 printf %s "checking for $ac_word... " >&6; }
7873 if test ${ac_cv_prog_ac_ct_LIPO+y}
7874 then :
7875 printf %s "(cached) " >&6
7876 else $as_nop
7877 if test -n "$ac_ct_LIPO"; then
7878 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7879 else
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7882 do
7883 IFS=$as_save_IFS
7884 case $as_dir in #(((
7885 '') as_dir=./ ;;
7886 */) ;;
7887 *) as_dir=$as_dir/ ;;
7888 esac
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_ac_ct_LIPO="lipo"
7892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7902 if test -n "$ac_ct_LIPO"; then
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7904 printf "%s\n" "$ac_ct_LIPO" >&6; }
7905 else
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 printf "%s\n" "no" >&6; }
7908 fi
7909
7910 if test "x$ac_ct_LIPO" = x; then
7911 LIPO=":"
7912 else
7913 case $cross_compiling:$ac_tool_warned in
7914 yes:)
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917 ac_tool_warned=yes ;;
7918 esac
7919 LIPO=$ac_ct_LIPO
7920 fi
7921 else
7922 LIPO="$ac_cv_prog_LIPO"
7923 fi
7924
7925 if test -n "$ac_tool_prefix"; then
7926 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}otool; ac_word=$2
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 printf %s "checking for $ac_word... " >&6; }
7930 if test ${ac_cv_prog_OTOOL+y}
7931 then :
7932 printf %s "(cached) " >&6
7933 else $as_nop
7934 if test -n "$OTOOL"; then
7935 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940 IFS=$as_save_IFS
7941 case $as_dir in #(((
7942 '') as_dir=./ ;;
7943 */) ;;
7944 *) as_dir=$as_dir/ ;;
7945 esac
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7948 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7950 break 2
7951 fi
7952 done
7953 done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 OTOOL=$ac_cv_prog_OTOOL
7959 if test -n "$OTOOL"; then
7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7961 printf "%s\n" "$OTOOL" >&6; }
7962 else
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 printf "%s\n" "no" >&6; }
7965 fi
7966
7967
7968 fi
7969 if test -z "$ac_cv_prog_OTOOL"; then
7970 ac_ct_OTOOL=$OTOOL
7971 # Extract the first word of "otool", so it can be a program name with args.
7972 set dummy otool; ac_word=$2
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 printf %s "checking for $ac_word... " >&6; }
7975 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7976 then :
7977 printf %s "(cached) " >&6
7978 else $as_nop
7979 if test -n "$ac_ct_OTOOL"; then
7980 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 case $as_dir in #(((
7987 '') as_dir=./ ;;
7988 */) ;;
7989 *) as_dir=$as_dir/ ;;
7990 esac
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7993 ac_cv_prog_ac_ct_OTOOL="otool"
7994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997 done
7998 done
7999 IFS=$as_save_IFS
8000
8001 fi
8002 fi
8003 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8004 if test -n "$ac_ct_OTOOL"; then
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8006 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8007 else
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 printf "%s\n" "no" >&6; }
8010 fi
8011
8012 if test "x$ac_ct_OTOOL" = x; then
8013 OTOOL=":"
8014 else
8015 case $cross_compiling:$ac_tool_warned in
8016 yes:)
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8018 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8019 ac_tool_warned=yes ;;
8020 esac
8021 OTOOL=$ac_ct_OTOOL
8022 fi
8023 else
8024 OTOOL="$ac_cv_prog_OTOOL"
8025 fi
8026
8027 if test -n "$ac_tool_prefix"; then
8028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8029 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 printf %s "checking for $ac_word... " >&6; }
8032 if test ${ac_cv_prog_OTOOL64+y}
8033 then :
8034 printf %s "(cached) " >&6
8035 else $as_nop
8036 if test -n "$OTOOL64"; then
8037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042 IFS=$as_save_IFS
8043 case $as_dir in #(((
8044 '') as_dir=./ ;;
8045 */) ;;
8046 *) as_dir=$as_dir/ ;;
8047 esac
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054 done
8055 done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 OTOOL64=$ac_cv_prog_OTOOL64
8061 if test -n "$OTOOL64"; then
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8063 printf "%s\n" "$OTOOL64" >&6; }
8064 else
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 printf "%s\n" "no" >&6; }
8067 fi
8068
8069
8070 fi
8071 if test -z "$ac_cv_prog_OTOOL64"; then
8072 ac_ct_OTOOL64=$OTOOL64
8073 # Extract the first word of "otool64", so it can be a program name with args.
8074 set dummy otool64; ac_word=$2
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 printf %s "checking for $ac_word... " >&6; }
8077 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8078 then :
8079 printf %s "(cached) " >&6
8080 else $as_nop
8081 if test -n "$ac_ct_OTOOL64"; then
8082 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087 IFS=$as_save_IFS
8088 case $as_dir in #(((
8089 '') as_dir=./ ;;
8090 */) ;;
8091 *) as_dir=$as_dir/ ;;
8092 esac
8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8095 ac_cv_prog_ac_ct_OTOOL64="otool64"
8096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8097 break 2
8098 fi
8099 done
8100 done
8101 IFS=$as_save_IFS
8102
8103 fi
8104 fi
8105 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8106 if test -n "$ac_ct_OTOOL64"; then
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8108 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8109 else
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 printf "%s\n" "no" >&6; }
8112 fi
8113
8114 if test "x$ac_ct_OTOOL64" = x; then
8115 OTOOL64=":"
8116 else
8117 case $cross_compiling:$ac_tool_warned in
8118 yes:)
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8120 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8121 ac_tool_warned=yes ;;
8122 esac
8123 OTOOL64=$ac_ct_OTOOL64
8124 fi
8125 else
8126 OTOOL64="$ac_cv_prog_OTOOL64"
8127 fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8156 printf %s "checking for -single_module linker flag... " >&6; }
8157 if test ${lt_cv_apple_cc_single_mod+y}
8158 then :
8159 printf %s "(cached) " >&6
8160 else $as_nop
8161 lt_cv_apple_cc_single_mod=no
8162 if test -z "$LT_MULTI_MODULE"; then
8163 # By default we will add the -single_module flag. You can override
8164 # by either setting the environment variable LT_MULTI_MODULE
8165 # non-empty at configure time, or by adding -multi_module to the
8166 # link flags.
8167 rm -rf libconftest.dylib*
8168 echo "int foo(void){return 1;}" > conftest.c
8169 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8170 -dynamiclib -Wl,-single_module conftest.c" >&5
8171 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8172 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8173 _lt_result=$?
8174 # If there is a non-empty error log, and "single_module"
8175 # appears in it, assume the flag caused a linker warning
8176 if test -s conftest.err && $GREP single_module conftest.err; then
8177 cat conftest.err >&5
8178 # Otherwise, if the output was created with a 0 exit code from
8179 # the compiler, it worked.
8180 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8181 lt_cv_apple_cc_single_mod=yes
8182 else
8183 cat conftest.err >&5
8184 fi
8185 rm -rf libconftest.dylib*
8186 rm -f conftest.*
8187 fi
8188 fi
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8190 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8191
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8193 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8194 if test ${lt_cv_ld_exported_symbols_list+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else $as_nop
8198 lt_cv_ld_exported_symbols_list=no
8199 save_LDFLAGS=$LDFLAGS
8200 echo "_main" > conftest.sym
8201 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204
8205 int
8206 main (void)
8207 {
8208
8209 ;
8210 return 0;
8211 }
8212 _ACEOF
8213 if ac_fn_c_try_link "$LINENO"
8214 then :
8215 lt_cv_ld_exported_symbols_list=yes
8216 else $as_nop
8217 lt_cv_ld_exported_symbols_list=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8220 conftest$ac_exeext conftest.$ac_ext
8221 LDFLAGS=$save_LDFLAGS
8222
8223 fi
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8225 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8226
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8228 printf %s "checking for -force_load linker flag... " >&6; }
8229 if test ${lt_cv_ld_force_load+y}
8230 then :
8231 printf %s "(cached) " >&6
8232 else $as_nop
8233 lt_cv_ld_force_load=no
8234 cat > conftest.c << _LT_EOF
8235 int forced_loaded() { return 2;}
8236 _LT_EOF
8237 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8238 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8239 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8240 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8241 echo "$RANLIB libconftest.a" >&5
8242 $RANLIB libconftest.a 2>&5
8243 cat > conftest.c << _LT_EOF
8244 int main() { return 0;}
8245 _LT_EOF
8246 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8247 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8248 _lt_result=$?
8249 if test -s conftest.err && $GREP force_load conftest.err; then
8250 cat conftest.err >&5
8251 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8252 lt_cv_ld_force_load=yes
8253 else
8254 cat conftest.err >&5
8255 fi
8256 rm -f conftest.err libconftest.a conftest conftest.c
8257 rm -rf conftest.dSYM
8258
8259 fi
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8261 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8262 case $host_os in
8263 rhapsody* | darwin1.[012])
8264 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8265 darwin1.*)
8266 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8267 darwin*)
8268 case $MACOSX_DEPLOYMENT_TARGET,$host in
8269 10.[012],*|,*powerpc*-darwin[5-8]*)
8270 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8271 *)
8272 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8273 esac
8274 ;;
8275 esac
8276 if test yes = "$lt_cv_apple_cc_single_mod"; then
8277 _lt_dar_single_mod='$single_module'
8278 fi
8279 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8280 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8281 else
8282 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8283 fi
8284 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8285 _lt_dsymutil='~$DSYMUTIL $lib || :'
8286 else
8287 _lt_dsymutil=
8288 fi
8289 ;;
8290 esac
8291
8292 # func_munge_path_list VARIABLE PATH
8293 # -----------------------------------
8294 # VARIABLE is name of variable containing _space_ separated list of
8295 # directories to be munged by the contents of PATH, which is string
8296 # having a format:
8297 # "DIR[:DIR]:"
8298 # string "DIR[ DIR]" will be prepended to VARIABLE
8299 # ":DIR[:DIR]"
8300 # string "DIR[ DIR]" will be appended to VARIABLE
8301 # "DIRP[:DIRP]::[DIRA:]DIRA"
8302 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8303 # "DIRA[ DIRA]" will be appended to VARIABLE
8304 # "DIR[:DIR]"
8305 # VARIABLE will be replaced by "DIR[ DIR]"
8306 func_munge_path_list ()
8307 {
8308 case x$2 in
8309 x)
8310 ;;
8311 *:)
8312 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8313 ;;
8314 x:*)
8315 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8316 ;;
8317 *::*)
8318 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8319 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8320 ;;
8321 *)
8322 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8323 ;;
8324 esac
8325 }
8326
8327 ac_header= ac_cache=
8328 for ac_item in $ac_header_c_list
8329 do
8330 if test $ac_cache; then
8331 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8332 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8333 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8334 fi
8335 ac_header= ac_cache=
8336 elif test $ac_header; then
8337 ac_cache=$ac_item
8338 else
8339 ac_header=$ac_item
8340 fi
8341 done
8342
8343
8344
8345
8346
8347
8348
8349
8350 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8351 then :
8352
8353 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8354
8355 fi
8356 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8357 "
8358 if test "x$ac_cv_header_dlfcn_h" = xyes
8359 then :
8360 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8361
8362 fi
8363
8364
8365
8366
8367
8368 # Set options
8369
8370
8371
8372 enable_dlopen=no
8373
8374
8375 enable_win32_dll=no
8376
8377
8378 # Check whether --enable-shared was given.
8379 if test ${enable_shared+y}
8380 then :
8381 enableval=$enable_shared; p=${PACKAGE-default}
8382 case $enableval in
8383 yes) enable_shared=yes ;;
8384 no) enable_shared=no ;;
8385 *)
8386 enable_shared=no
8387 # Look at the argument we got. We use all the common list separators.
8388 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8389 for pkg in $enableval; do
8390 IFS=$lt_save_ifs
8391 if test "X$pkg" = "X$p"; then
8392 enable_shared=yes
8393 fi
8394 done
8395 IFS=$lt_save_ifs
8396 ;;
8397 esac
8398 else $as_nop
8399 enable_shared=yes
8400 fi
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410 # Check whether --enable-static was given.
8411 if test ${enable_static+y}
8412 then :
8413 enableval=$enable_static; p=${PACKAGE-default}
8414 case $enableval in
8415 yes) enable_static=yes ;;
8416 no) enable_static=no ;;
8417 *)
8418 enable_static=no
8419 # Look at the argument we got. We use all the common list separators.
8420 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8421 for pkg in $enableval; do
8422 IFS=$lt_save_ifs
8423 if test "X$pkg" = "X$p"; then
8424 enable_static=yes
8425 fi
8426 done
8427 IFS=$lt_save_ifs
8428 ;;
8429 esac
8430 else $as_nop
8431 enable_static=yes
8432 fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443 # Check whether --with-pic was given.
8444 if test ${with_pic+y}
8445 then :
8446 withval=$with_pic; lt_p=${PACKAGE-default}
8447 case $withval in
8448 yes|no) pic_mode=$withval ;;
8449 *)
8450 pic_mode=default
8451 # Look at the argument we got. We use all the common list separators.
8452 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8453 for lt_pkg in $withval; do
8454 IFS=$lt_save_ifs
8455 if test "X$lt_pkg" = "X$lt_p"; then
8456 pic_mode=yes
8457 fi
8458 done
8459 IFS=$lt_save_ifs
8460 ;;
8461 esac
8462 else $as_nop
8463 pic_mode=default
8464 fi
8465
8466
8467
8468
8469
8470
8471
8472
8473 # Check whether --enable-fast-install was given.
8474 if test ${enable_fast_install+y}
8475 then :
8476 enableval=$enable_fast_install; p=${PACKAGE-default}
8477 case $enableval in
8478 yes) enable_fast_install=yes ;;
8479 no) enable_fast_install=no ;;
8480 *)
8481 enable_fast_install=no
8482 # Look at the argument we got. We use all the common list separators.
8483 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8484 for pkg in $enableval; do
8485 IFS=$lt_save_ifs
8486 if test "X$pkg" = "X$p"; then
8487 enable_fast_install=yes
8488 fi
8489 done
8490 IFS=$lt_save_ifs
8491 ;;
8492 esac
8493 else $as_nop
8494 enable_fast_install=yes
8495 fi
8496
8497
8498
8499
8500
8501
8502
8503
8504 shared_archive_member_spec=
8505 case $host,$enable_shared in
8506 power*-*-aix[5-9]*,yes)
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8508 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8509
8510 # Check whether --with-aix-soname was given.
8511 if test ${with_aix_soname+y}
8512 then :
8513 withval=$with_aix_soname; case $withval in
8514 aix|svr4|both)
8515 ;;
8516 *)
8517 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8518 ;;
8519 esac
8520 lt_cv_with_aix_soname=$with_aix_soname
8521 else $as_nop
8522 if test ${lt_cv_with_aix_soname+y}
8523 then :
8524 printf %s "(cached) " >&6
8525 else $as_nop
8526 lt_cv_with_aix_soname=aix
8527 fi
8528
8529 with_aix_soname=$lt_cv_with_aix_soname
8530 fi
8531
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8533 printf "%s\n" "$with_aix_soname" >&6; }
8534 if test aix != "$with_aix_soname"; then
8535 # For the AIX way of multilib, we name the shared archive member
8536 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8537 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8538 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8539 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8540 if test 64 = "${OBJECT_MODE-32}"; then
8541 shared_archive_member_spec=shr_64
8542 else
8543 shared_archive_member_spec=shr
8544 fi
8545 fi
8546 ;;
8547 *)
8548 with_aix_soname=aix
8549 ;;
8550 esac
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561 # This can be used to rebuild libtool when needed
8562 LIBTOOL_DEPS=$ltmain
8563
8564 # Always use our own libtool.
8565 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596 test -z "$LN_S" && LN_S="ln -s"
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611 if test -n "${ZSH_VERSION+set}"; then
8612 setopt NO_GLOB_SUBST
8613 fi
8614
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8616 printf %s "checking for objdir... " >&6; }
8617 if test ${lt_cv_objdir+y}
8618 then :
8619 printf %s "(cached) " >&6
8620 else $as_nop
8621 rm -f .libs 2>/dev/null
8622 mkdir .libs 2>/dev/null
8623 if test -d .libs; then
8624 lt_cv_objdir=.libs
8625 else
8626 # MS-DOS does not allow filenames that begin with a dot.
8627 lt_cv_objdir=_libs
8628 fi
8629 rmdir .libs 2>/dev/null
8630 fi
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8632 printf "%s\n" "$lt_cv_objdir" >&6; }
8633 objdir=$lt_cv_objdir
8634
8635
8636
8637
8638
8639 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8640
8641
8642
8643
8644 case $host_os in
8645 aix3*)
8646 # AIX sometimes has problems with the GCC collect2 program. For some
8647 # reason, if we set the COLLECT_NAMES environment variable, the problems
8648 # vanish in a puff of smoke.
8649 if test set != "${COLLECT_NAMES+set}"; then
8650 COLLECT_NAMES=
8651 export COLLECT_NAMES
8652 fi
8653 ;;
8654 esac
8655
8656 # Global variables:
8657 ofile=libtool
8658 can_build_shared=yes
8659
8660 # All known linkers require a '.a' archive for static linking (except MSVC and
8661 # ICC, which need '.lib').
8662 libext=a
8663
8664 with_gnu_ld=$lt_cv_prog_gnu_ld
8665
8666 old_CC=$CC
8667 old_CFLAGS=$CFLAGS
8668
8669 # Set sane defaults for various variables
8670 test -z "$CC" && CC=cc
8671 test -z "$LTCC" && LTCC=$CC
8672 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8673 test -z "$LD" && LD=ld
8674 test -z "$ac_objext" && ac_objext=o
8675
8676 func_cc_basename $compiler
8677 cc_basename=$func_cc_basename_result
8678
8679
8680 # Only perform the check for file, if the check method requires it
8681 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8682 case $deplibs_check_method in
8683 file_magic*)
8684 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8686 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8687 if test ${lt_cv_path_MAGIC_CMD+y}
8688 then :
8689 printf %s "(cached) " >&6
8690 else $as_nop
8691 case $MAGIC_CMD in
8692 [\\/*] | ?:[\\/]*)
8693 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8694 ;;
8695 *)
8696 lt_save_MAGIC_CMD=$MAGIC_CMD
8697 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8698 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8699 for ac_dir in $ac_dummy; do
8700 IFS=$lt_save_ifs
8701 test -z "$ac_dir" && ac_dir=.
8702 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8703 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8704 if test -n "$file_magic_test_file"; then
8705 case $deplibs_check_method in
8706 "file_magic "*)
8707 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8708 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8709 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8710 $EGREP "$file_magic_regex" > /dev/null; then
8711 :
8712 else
8713 cat <<_LT_EOF 1>&2
8714
8715 *** Warning: the command libtool uses to detect shared libraries,
8716 *** $file_magic_cmd, produces output that libtool cannot recognize.
8717 *** The result is that libtool may fail to recognize shared libraries
8718 *** as such. This will affect the creation of libtool libraries that
8719 *** depend on shared libraries, but programs linked with such libtool
8720 *** libraries will work regardless of this problem. Nevertheless, you
8721 *** may want to report the problem to your system manager and/or to
8722 *** bug-libtool@gnu.org
8723
8724 _LT_EOF
8725 fi ;;
8726 esac
8727 fi
8728 break
8729 fi
8730 done
8731 IFS=$lt_save_ifs
8732 MAGIC_CMD=$lt_save_MAGIC_CMD
8733 ;;
8734 esac
8735 fi
8736
8737 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8738 if test -n "$MAGIC_CMD"; then
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8740 printf "%s\n" "$MAGIC_CMD" >&6; }
8741 else
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 printf "%s\n" "no" >&6; }
8744 fi
8745
8746
8747
8748
8749
8750 if test -z "$lt_cv_path_MAGIC_CMD"; then
8751 if test -n "$ac_tool_prefix"; then
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8753 printf %s "checking for file... " >&6; }
8754 if test ${lt_cv_path_MAGIC_CMD+y}
8755 then :
8756 printf %s "(cached) " >&6
8757 else $as_nop
8758 case $MAGIC_CMD in
8759 [\\/*] | ?:[\\/]*)
8760 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8761 ;;
8762 *)
8763 lt_save_MAGIC_CMD=$MAGIC_CMD
8764 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8765 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8766 for ac_dir in $ac_dummy; do
8767 IFS=$lt_save_ifs
8768 test -z "$ac_dir" && ac_dir=.
8769 if test -f "$ac_dir/file"; then
8770 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8771 if test -n "$file_magic_test_file"; then
8772 case $deplibs_check_method in
8773 "file_magic "*)
8774 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8775 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8776 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8777 $EGREP "$file_magic_regex" > /dev/null; then
8778 :
8779 else
8780 cat <<_LT_EOF 1>&2
8781
8782 *** Warning: the command libtool uses to detect shared libraries,
8783 *** $file_magic_cmd, produces output that libtool cannot recognize.
8784 *** The result is that libtool may fail to recognize shared libraries
8785 *** as such. This will affect the creation of libtool libraries that
8786 *** depend on shared libraries, but programs linked with such libtool
8787 *** libraries will work regardless of this problem. Nevertheless, you
8788 *** may want to report the problem to your system manager and/or to
8789 *** bug-libtool@gnu.org
8790
8791 _LT_EOF
8792 fi ;;
8793 esac
8794 fi
8795 break
8796 fi
8797 done
8798 IFS=$lt_save_ifs
8799 MAGIC_CMD=$lt_save_MAGIC_CMD
8800 ;;
8801 esac
8802 fi
8803
8804 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8805 if test -n "$MAGIC_CMD"; then
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8807 printf "%s\n" "$MAGIC_CMD" >&6; }
8808 else
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 printf "%s\n" "no" >&6; }
8811 fi
8812
8813
8814 else
8815 MAGIC_CMD=:
8816 fi
8817 fi
8818
8819 fi
8820 ;;
8821 esac
8822
8823 # Use C for the default configuration in the libtool script
8824
8825 lt_save_CC=$CC
8826 ac_ext=c
8827 ac_cpp='$CPP $CPPFLAGS'
8828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8831
8832
8833 # Source file extension for C test sources.
8834 ac_ext=c
8835
8836 # Object file extension for compiled C test sources.
8837 objext=o
8838 objext=$objext
8839
8840 # Code to be used in simple compile tests
8841 lt_simple_compile_test_code="int some_variable = 0;"
8842
8843 # Code to be used in simple link tests
8844 lt_simple_link_test_code='int main(){return(0);}'
8845
8846
8847
8848
8849
8850
8851
8852 # If no C compiler was specified, use CC.
8853 LTCC=${LTCC-"$CC"}
8854
8855 # If no C compiler flags were specified, use CFLAGS.
8856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8857
8858 # Allow CC to be a program name with arguments.
8859 compiler=$CC
8860
8861 # Save the default compiler, since it gets overwritten when the other
8862 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8863 compiler_DEFAULT=$CC
8864
8865 # save warnings/boilerplate of simple test code
8866 ac_outfile=conftest.$ac_objext
8867 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8868 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8869 _lt_compiler_boilerplate=`cat conftest.err`
8870 $RM conftest*
8871
8872 ac_outfile=conftest.$ac_objext
8873 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8874 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8875 _lt_linker_boilerplate=`cat conftest.err`
8876 $RM -r conftest*
8877
8878
8879 if test -n "$compiler"; then
8880
8881 lt_prog_compiler_no_builtin_flag=
8882
8883 if test yes = "$GCC"; then
8884 case $cc_basename in
8885 nvcc*)
8886 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8887 *)
8888 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8889 esac
8890
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8892 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8893 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8894 then :
8895 printf %s "(cached) " >&6
8896 else $as_nop
8897 lt_cv_prog_compiler_rtti_exceptions=no
8898 ac_outfile=conftest.$ac_objext
8899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8900 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8901 # Insert the option either (1) after the last *FLAGS variable, or
8902 # (2) before a word containing "conftest.", or (3) at the end.
8903 # Note that $ac_compile itself does not contain backslashes and begins
8904 # with a dollar sign (not a hyphen), so the echo should work correctly.
8905 # The option is referenced via a variable to avoid confusing sed.
8906 lt_compile=`echo "$ac_compile" | $SED \
8907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8909 -e 's:$: $lt_compiler_flag:'`
8910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8911 (eval "$lt_compile" 2>conftest.err)
8912 ac_status=$?
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 if (exit $ac_status) && test -s "$ac_outfile"; then
8916 # The compiler can only warn and ignore the option if not recognized
8917 # So say no if there are warnings other than the usual output.
8918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8921 lt_cv_prog_compiler_rtti_exceptions=yes
8922 fi
8923 fi
8924 $RM conftest*
8925
8926 fi
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8928 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8929
8930 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8931 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8932 else
8933 :
8934 fi
8935
8936 fi
8937
8938
8939
8940
8941
8942
8943 lt_prog_compiler_wl=
8944 lt_prog_compiler_pic=
8945 lt_prog_compiler_static=
8946
8947
8948 if test yes = "$GCC"; then
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_static='-static'
8951
8952 case $host_os in
8953 aix*)
8954 # All AIX code is PIC.
8955 if test ia64 = "$host_cpu"; then
8956 # AIX 5 now supports IA64 processor
8957 lt_prog_compiler_static='-Bstatic'
8958 fi
8959 lt_prog_compiler_pic='-fPIC'
8960 ;;
8961
8962 amigaos*)
8963 case $host_cpu in
8964 powerpc)
8965 # see comment about AmigaOS4 .so support
8966 lt_prog_compiler_pic='-fPIC'
8967 ;;
8968 m68k)
8969 # FIXME: we need at least 68020 code to build shared libraries, but
8970 # adding the '-m68020' flag to GCC prevents building anything better,
8971 # like '-m68040'.
8972 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8973 ;;
8974 esac
8975 ;;
8976
8977 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8978 # PIC is the default for these OSes.
8979 ;;
8980
8981 mingw* | cygwin* | pw32* | os2* | cegcc*)
8982 # This hack is so that the source file can tell whether it is being
8983 # built for inclusion in a dll (and should export symbols for example).
8984 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8985 # (--disable-auto-import) libraries
8986 lt_prog_compiler_pic='-DDLL_EXPORT'
8987 case $host_os in
8988 os2*)
8989 lt_prog_compiler_static='$wl-static'
8990 ;;
8991 esac
8992 ;;
8993
8994 darwin* | rhapsody*)
8995 # PIC is the default on this platform
8996 # Common symbols not allowed in MH_DYLIB files
8997 lt_prog_compiler_pic='-fno-common'
8998 ;;
8999
9000 haiku*)
9001 # PIC is the default for Haiku.
9002 # The "-static" flag exists, but is broken.
9003 lt_prog_compiler_static=
9004 ;;
9005
9006 hpux*)
9007 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9008 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9009 # sets the default TLS model and affects inlining.
9010 case $host_cpu in
9011 hppa*64*)
9012 # +Z the default
9013 ;;
9014 *)
9015 lt_prog_compiler_pic='-fPIC'
9016 ;;
9017 esac
9018 ;;
9019
9020 interix[3-9]*)
9021 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9022 # Instead, we relocate shared libraries at runtime.
9023 ;;
9024
9025 msdosdjgpp*)
9026 # Just because we use GCC doesn't mean we suddenly get shared libraries
9027 # on systems that don't support them.
9028 lt_prog_compiler_can_build_shared=no
9029 enable_shared=no
9030 ;;
9031
9032 *nto* | *qnx*)
9033 # QNX uses GNU C++, but need to define -shared option too, otherwise
9034 # it will coredump.
9035 lt_prog_compiler_pic='-fPIC -shared'
9036 ;;
9037
9038 sysv4*MP*)
9039 if test -d /usr/nec; then
9040 lt_prog_compiler_pic=-Kconform_pic
9041 fi
9042 ;;
9043
9044 *)
9045 lt_prog_compiler_pic='-fPIC'
9046 ;;
9047 esac
9048
9049 case $cc_basename in
9050 nvcc*) # Cuda Compiler Driver 2.2
9051 lt_prog_compiler_wl='-Xlinker '
9052 if test -n "$lt_prog_compiler_pic"; then
9053 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9054 fi
9055 ;;
9056 esac
9057 else
9058 # PORTME Check for flag to pass linker flags through the system compiler.
9059 case $host_os in
9060 aix*)
9061 lt_prog_compiler_wl='-Wl,'
9062 if test ia64 = "$host_cpu"; then
9063 # AIX 5 now supports IA64 processor
9064 lt_prog_compiler_static='-Bstatic'
9065 else
9066 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9067 fi
9068 ;;
9069
9070 darwin* | rhapsody*)
9071 # PIC is the default on this platform
9072 # Common symbols not allowed in MH_DYLIB files
9073 lt_prog_compiler_pic='-fno-common'
9074 case $cc_basename in
9075 nagfor*)
9076 # NAG Fortran compiler
9077 lt_prog_compiler_wl='-Wl,-Wl,,'
9078 lt_prog_compiler_pic='-PIC'
9079 lt_prog_compiler_static='-Bstatic'
9080 ;;
9081 esac
9082 ;;
9083
9084 mingw* | cygwin* | pw32* | os2* | cegcc*)
9085 # This hack is so that the source file can tell whether it is being
9086 # built for inclusion in a dll (and should export symbols for example).
9087 lt_prog_compiler_pic='-DDLL_EXPORT'
9088 case $host_os in
9089 os2*)
9090 lt_prog_compiler_static='$wl-static'
9091 ;;
9092 esac
9093 ;;
9094
9095 hpux9* | hpux10* | hpux11*)
9096 lt_prog_compiler_wl='-Wl,'
9097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9098 # not for PA HP-UX.
9099 case $host_cpu in
9100 hppa*64*|ia64*)
9101 # +Z the default
9102 ;;
9103 *)
9104 lt_prog_compiler_pic='+Z'
9105 ;;
9106 esac
9107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9108 lt_prog_compiler_static='$wl-a ${wl}archive'
9109 ;;
9110
9111 irix5* | irix6* | nonstopux*)
9112 lt_prog_compiler_wl='-Wl,'
9113 # PIC (with -KPIC) is the default.
9114 lt_prog_compiler_static='-non_shared'
9115 ;;
9116
9117 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9118 case $cc_basename in
9119 # old Intel for x86_64, which still supported -KPIC.
9120 ecc*)
9121 lt_prog_compiler_wl='-Wl,'
9122 lt_prog_compiler_pic='-KPIC'
9123 lt_prog_compiler_static='-static'
9124 ;;
9125 # icc used to be incompatible with GCC.
9126 # ICC 10 doesn't accept -KPIC any more.
9127 icc* | ifort*)
9128 lt_prog_compiler_wl='-Wl,'
9129 lt_prog_compiler_pic='-fPIC'
9130 lt_prog_compiler_static='-static'
9131 ;;
9132 # Lahey Fortran 8.1.
9133 lf95*)
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='--shared'
9136 lt_prog_compiler_static='--static'
9137 ;;
9138 nagfor*)
9139 # NAG Fortran compiler
9140 lt_prog_compiler_wl='-Wl,-Wl,,'
9141 lt_prog_compiler_pic='-PIC'
9142 lt_prog_compiler_static='-Bstatic'
9143 ;;
9144 tcc*)
9145 # Fabrice Bellard et al's Tiny C Compiler
9146 lt_prog_compiler_wl='-Wl,'
9147 lt_prog_compiler_pic='-fPIC'
9148 lt_prog_compiler_static='-static'
9149 ;;
9150 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9151 # Portland Group compilers (*not* the Pentium gcc compiler,
9152 # which looks to be a dead project)
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_pic='-fpic'
9155 lt_prog_compiler_static='-Bstatic'
9156 ;;
9157 ccc*)
9158 lt_prog_compiler_wl='-Wl,'
9159 # All Alpha code is PIC.
9160 lt_prog_compiler_static='-non_shared'
9161 ;;
9162 xl* | bgxl* | bgf* | mpixl*)
9163 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-qpic'
9166 lt_prog_compiler_static='-qstaticlink'
9167 ;;
9168 *)
9169 case `$CC -V 2>&1 | $SED 5q` in
9170 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9171 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9172 lt_prog_compiler_pic='-KPIC'
9173 lt_prog_compiler_static='-Bstatic'
9174 lt_prog_compiler_wl=''
9175 ;;
9176 *Sun\ F* | *Sun*Fortran*)
9177 lt_prog_compiler_pic='-KPIC'
9178 lt_prog_compiler_static='-Bstatic'
9179 lt_prog_compiler_wl='-Qoption ld '
9180 ;;
9181 *Sun\ C*)
9182 # Sun C 5.9
9183 lt_prog_compiler_pic='-KPIC'
9184 lt_prog_compiler_static='-Bstatic'
9185 lt_prog_compiler_wl='-Wl,'
9186 ;;
9187 *Intel*\ [CF]*Compiler*)
9188 lt_prog_compiler_wl='-Wl,'
9189 lt_prog_compiler_pic='-fPIC'
9190 lt_prog_compiler_static='-static'
9191 ;;
9192 *Portland\ Group*)
9193 lt_prog_compiler_wl='-Wl,'
9194 lt_prog_compiler_pic='-fpic'
9195 lt_prog_compiler_static='-Bstatic'
9196 ;;
9197 esac
9198 ;;
9199 esac
9200 ;;
9201
9202 newsos6)
9203 lt_prog_compiler_pic='-KPIC'
9204 lt_prog_compiler_static='-Bstatic'
9205 ;;
9206
9207 *nto* | *qnx*)
9208 # QNX uses GNU C++, but need to define -shared option too, otherwise
9209 # it will coredump.
9210 lt_prog_compiler_pic='-fPIC -shared'
9211 ;;
9212
9213 osf3* | osf4* | osf5*)
9214 lt_prog_compiler_wl='-Wl,'
9215 # All OSF/1 code is PIC.
9216 lt_prog_compiler_static='-non_shared'
9217 ;;
9218
9219 rdos*)
9220 lt_prog_compiler_static='-non_shared'
9221 ;;
9222
9223 solaris*)
9224 lt_prog_compiler_pic='-KPIC'
9225 lt_prog_compiler_static='-Bstatic'
9226 case $cc_basename in
9227 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9228 lt_prog_compiler_wl='-Qoption ld ';;
9229 *)
9230 lt_prog_compiler_wl='-Wl,';;
9231 esac
9232 ;;
9233
9234 sunos4*)
9235 lt_prog_compiler_wl='-Qoption ld '
9236 lt_prog_compiler_pic='-PIC'
9237 lt_prog_compiler_static='-Bstatic'
9238 ;;
9239
9240 sysv4 | sysv4.2uw2* | sysv4.3*)
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_pic='-KPIC'
9243 lt_prog_compiler_static='-Bstatic'
9244 ;;
9245
9246 sysv4*MP*)
9247 if test -d /usr/nec; then
9248 lt_prog_compiler_pic='-Kconform_pic'
9249 lt_prog_compiler_static='-Bstatic'
9250 fi
9251 ;;
9252
9253 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9254 lt_prog_compiler_wl='-Wl,'
9255 lt_prog_compiler_pic='-KPIC'
9256 lt_prog_compiler_static='-Bstatic'
9257 ;;
9258
9259 unicos*)
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_can_build_shared=no
9262 ;;
9263
9264 uts4*)
9265 lt_prog_compiler_pic='-pic'
9266 lt_prog_compiler_static='-Bstatic'
9267 ;;
9268
9269 *)
9270 lt_prog_compiler_can_build_shared=no
9271 ;;
9272 esac
9273 fi
9274
9275 case $host_os in
9276 # For platforms that do not support PIC, -DPIC is meaningless:
9277 *djgpp*)
9278 lt_prog_compiler_pic=
9279 ;;
9280 *)
9281 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9282 ;;
9283 esac
9284
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9286 printf %s "checking for $compiler option to produce PIC... " >&6; }
9287 if test ${lt_cv_prog_compiler_pic+y}
9288 then :
9289 printf %s "(cached) " >&6
9290 else $as_nop
9291 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9292 fi
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9294 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9295 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9296
9297 #
9298 # Check to make sure the PIC flag actually works.
9299 #
9300 if test -n "$lt_prog_compiler_pic"; then
9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9302 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9303 if test ${lt_cv_prog_compiler_pic_works+y}
9304 then :
9305 printf %s "(cached) " >&6
9306 else $as_nop
9307 lt_cv_prog_compiler_pic_works=no
9308 ac_outfile=conftest.$ac_objext
9309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9310 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9311 # Insert the option either (1) after the last *FLAGS variable, or
9312 # (2) before a word containing "conftest.", or (3) at the end.
9313 # Note that $ac_compile itself does not contain backslashes and begins
9314 # with a dollar sign (not a hyphen), so the echo should work correctly.
9315 # The option is referenced via a variable to avoid confusing sed.
9316 lt_compile=`echo "$ac_compile" | $SED \
9317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9319 -e 's:$: $lt_compiler_flag:'`
9320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9321 (eval "$lt_compile" 2>conftest.err)
9322 ac_status=$?
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 if (exit $ac_status) && test -s "$ac_outfile"; then
9326 # The compiler can only warn and ignore the option if not recognized
9327 # So say no if there are warnings other than the usual output.
9328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9331 lt_cv_prog_compiler_pic_works=yes
9332 fi
9333 fi
9334 $RM conftest*
9335
9336 fi
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9338 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9339
9340 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9341 case $lt_prog_compiler_pic in
9342 "" | " "*) ;;
9343 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9344 esac
9345 else
9346 lt_prog_compiler_pic=
9347 lt_prog_compiler_can_build_shared=no
9348 fi
9349
9350 fi
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362 #
9363 # Check to make sure the static flag actually works.
9364 #
9365 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9367 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9368 if test ${lt_cv_prog_compiler_static_works+y}
9369 then :
9370 printf %s "(cached) " >&6
9371 else $as_nop
9372 lt_cv_prog_compiler_static_works=no
9373 save_LDFLAGS=$LDFLAGS
9374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9377 # The linker can only warn and ignore the option if not recognized
9378 # So say no if there are warnings
9379 if test -s conftest.err; then
9380 # Append any errors to the config.log.
9381 cat conftest.err 1>&5
9382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9384 if diff conftest.exp conftest.er2 >/dev/null; then
9385 lt_cv_prog_compiler_static_works=yes
9386 fi
9387 else
9388 lt_cv_prog_compiler_static_works=yes
9389 fi
9390 fi
9391 $RM -r conftest*
9392 LDFLAGS=$save_LDFLAGS
9393
9394 fi
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9396 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9397
9398 if test yes = "$lt_cv_prog_compiler_static_works"; then
9399 :
9400 else
9401 lt_prog_compiler_static=
9402 fi
9403
9404
9405
9406
9407
9408
9409
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9411 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9412 if test ${lt_cv_prog_compiler_c_o+y}
9413 then :
9414 printf %s "(cached) " >&6
9415 else $as_nop
9416 lt_cv_prog_compiler_c_o=no
9417 $RM -r conftest 2>/dev/null
9418 mkdir conftest
9419 cd conftest
9420 mkdir out
9421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422
9423 lt_compiler_flag="-o out/conftest2.$ac_objext"
9424 # Insert the option either (1) after the last *FLAGS variable, or
9425 # (2) before a word containing "conftest.", or (3) at the end.
9426 # Note that $ac_compile itself does not contain backslashes and begins
9427 # with a dollar sign (not a hyphen), so the echo should work correctly.
9428 lt_compile=`echo "$ac_compile" | $SED \
9429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9431 -e 's:$: $lt_compiler_flag:'`
9432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9433 (eval "$lt_compile" 2>out/conftest.err)
9434 ac_status=$?
9435 cat out/conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9438 then
9439 # The compiler can only warn and ignore the option if not recognized
9440 # So say no if there are warnings
9441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9444 lt_cv_prog_compiler_c_o=yes
9445 fi
9446 fi
9447 chmod u+w . 2>&5
9448 $RM conftest*
9449 # SGI C++ compiler will create directory out/ii_files/ for
9450 # template instantiation
9451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9452 $RM out/* && rmdir out
9453 cd ..
9454 $RM -r conftest
9455 $RM conftest*
9456
9457 fi
9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9459 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9460
9461
9462
9463
9464
9465
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9467 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9468 if test ${lt_cv_prog_compiler_c_o+y}
9469 then :
9470 printf %s "(cached) " >&6
9471 else $as_nop
9472 lt_cv_prog_compiler_c_o=no
9473 $RM -r conftest 2>/dev/null
9474 mkdir conftest
9475 cd conftest
9476 mkdir out
9477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9478
9479 lt_compiler_flag="-o out/conftest2.$ac_objext"
9480 # Insert the option either (1) after the last *FLAGS variable, or
9481 # (2) before a word containing "conftest.", or (3) at the end.
9482 # Note that $ac_compile itself does not contain backslashes and begins
9483 # with a dollar sign (not a hyphen), so the echo should work correctly.
9484 lt_compile=`echo "$ac_compile" | $SED \
9485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9487 -e 's:$: $lt_compiler_flag:'`
9488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9489 (eval "$lt_compile" 2>out/conftest.err)
9490 ac_status=$?
9491 cat out/conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9494 then
9495 # The compiler can only warn and ignore the option if not recognized
9496 # So say no if there are warnings
9497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9500 lt_cv_prog_compiler_c_o=yes
9501 fi
9502 fi
9503 chmod u+w . 2>&5
9504 $RM conftest*
9505 # SGI C++ compiler will create directory out/ii_files/ for
9506 # template instantiation
9507 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9508 $RM out/* && rmdir out
9509 cd ..
9510 $RM -r conftest
9511 $RM conftest*
9512
9513 fi
9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9515 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9516
9517
9518
9519
9520 hard_links=nottested
9521 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9522 # do not overwrite the value of need_locks provided by the user
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9524 printf %s "checking if we can lock with hard links... " >&6; }
9525 hard_links=yes
9526 $RM conftest*
9527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9528 touch conftest.a
9529 ln conftest.a conftest.b 2>&5 || hard_links=no
9530 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9532 printf "%s\n" "$hard_links" >&6; }
9533 if test no = "$hard_links"; then
9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9535 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9536 need_locks=warn
9537 fi
9538 else
9539 need_locks=no
9540 fi
9541
9542
9543
9544
9545
9546
9547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9548 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9549
9550 runpath_var=
9551 allow_undefined_flag=
9552 always_export_symbols=no
9553 archive_cmds=
9554 archive_expsym_cmds=
9555 compiler_needs_object=no
9556 enable_shared_with_static_runtimes=no
9557 export_dynamic_flag_spec=
9558 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9559 hardcode_automatic=no
9560 hardcode_direct=no
9561 hardcode_direct_absolute=no
9562 hardcode_libdir_flag_spec=
9563 hardcode_libdir_separator=
9564 hardcode_minus_L=no
9565 hardcode_shlibpath_var=unsupported
9566 inherit_rpath=no
9567 link_all_deplibs=unknown
9568 module_cmds=
9569 module_expsym_cmds=
9570 old_archive_from_new_cmds=
9571 old_archive_from_expsyms_cmds=
9572 thread_safe_flag_spec=
9573 whole_archive_flag_spec=
9574 # include_expsyms should be a list of space-separated symbols to be *always*
9575 # included in the symbol list
9576 include_expsyms=
9577 # exclude_expsyms can be an extended regexp of symbols to exclude
9578 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9579 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9580 # as well as any symbol that contains 'd'.
9581 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9582 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9583 # platforms (ab)use it in PIC code, but their linkers get confused if
9584 # the symbol is explicitly referenced. Since portable code cannot
9585 # rely on this symbol name, it's probably fine to never include it in
9586 # preloaded symbol tables.
9587 # Exclude shared library initialization/finalization symbols.
9588 extract_expsyms_cmds=
9589
9590 case $host_os in
9591 cygwin* | mingw* | pw32* | cegcc*)
9592 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9593 # When not using gcc, we currently assume that we are using
9594 # Microsoft Visual C++ or Intel C++ Compiler.
9595 if test yes != "$GCC"; then
9596 with_gnu_ld=no
9597 fi
9598 ;;
9599 interix*)
9600 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9601 with_gnu_ld=yes
9602 ;;
9603 openbsd* | bitrig*)
9604 with_gnu_ld=no
9605 ;;
9606 esac
9607
9608 ld_shlibs=yes
9609
9610 # On some targets, GNU ld is compatible enough with the native linker
9611 # that we're better off using the native interface for both.
9612 lt_use_gnu_ld_interface=no
9613 if test yes = "$with_gnu_ld"; then
9614 case $host_os in
9615 aix*)
9616 # The AIX port of GNU ld has always aspired to compatibility
9617 # with the native linker. However, as the warning in the GNU ld
9618 # block says, versions before 2.19.5* couldn't really create working
9619 # shared libraries, regardless of the interface used.
9620 case `$LD -v 2>&1` in
9621 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9622 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9623 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9624 *)
9625 lt_use_gnu_ld_interface=yes
9626 ;;
9627 esac
9628 ;;
9629 *)
9630 lt_use_gnu_ld_interface=yes
9631 ;;
9632 esac
9633 fi
9634
9635 if test yes = "$lt_use_gnu_ld_interface"; then
9636 # If archive_cmds runs LD, not CC, wlarc should be empty
9637 wlarc='$wl'
9638
9639 # Set some defaults for GNU ld with shared library support. These
9640 # are reset later if shared libraries are not supported. Putting them
9641 # here allows them to be overridden if necessary.
9642 runpath_var=LD_RUN_PATH
9643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9644 export_dynamic_flag_spec='$wl--export-dynamic'
9645 # ancient GNU ld didn't support --whole-archive et. al.
9646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9647 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9648 else
9649 whole_archive_flag_spec=
9650 fi
9651 supports_anon_versioning=no
9652 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9653 *GNU\ gold*) supports_anon_versioning=yes ;;
9654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9657 *\ 2.11.*) ;; # other 2.11 versions
9658 *) supports_anon_versioning=yes ;;
9659 esac
9660
9661 # See if GNU ld supports shared libraries.
9662 case $host_os in
9663 aix[3-9]*)
9664 # On AIX/PPC, the GNU linker is very broken
9665 if test ia64 != "$host_cpu"; then
9666 ld_shlibs=no
9667 cat <<_LT_EOF 1>&2
9668
9669 *** Warning: the GNU linker, at least up to release 2.19, is reported
9670 *** to be unable to reliably create shared libraries on AIX.
9671 *** Therefore, libtool is disabling shared libraries support. If you
9672 *** really care for shared libraries, you may want to install binutils
9673 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9674 *** You will then need to restart the configuration process.
9675
9676 _LT_EOF
9677 fi
9678 ;;
9679
9680 amigaos*)
9681 case $host_cpu in
9682 powerpc)
9683 # see comment about AmigaOS4 .so support
9684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9685 archive_expsym_cmds=''
9686 ;;
9687 m68k)
9688 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)'
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_minus_L=yes
9691 ;;
9692 esac
9693 ;;
9694
9695 beos*)
9696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9697 allow_undefined_flag=unsupported
9698 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9699 # support --undefined. This deserves some investigation. FIXME
9700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9701 else
9702 ld_shlibs=no
9703 fi
9704 ;;
9705
9706 cygwin* | mingw* | pw32* | cegcc*)
9707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9708 # as there is no search path for DLLs.
9709 hardcode_libdir_flag_spec='-L$libdir'
9710 export_dynamic_flag_spec='$wl--export-all-symbols'
9711 allow_undefined_flag=unsupported
9712 always_export_symbols=no
9713 enable_shared_with_static_runtimes=yes
9714 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'
9715 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9716
9717 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9719 # If the export-symbols file already is a .def file, use it as
9720 # is; otherwise, prepend EXPORTS...
9721 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9722 cp $export_symbols $output_objdir/$soname.def;
9723 else
9724 echo EXPORTS > $output_objdir/$soname.def;
9725 cat $export_symbols >> $output_objdir/$soname.def;
9726 fi~
9727 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9728 else
9729 ld_shlibs=no
9730 fi
9731 ;;
9732
9733 haiku*)
9734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9735 link_all_deplibs=yes
9736 ;;
9737
9738 os2*)
9739 hardcode_libdir_flag_spec='-L$libdir'
9740 hardcode_minus_L=yes
9741 allow_undefined_flag=unsupported
9742 shrext_cmds=.dll
9743 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9744 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9745 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9746 $ECHO EXPORTS >> $output_objdir/$libname.def~
9747 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9748 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9749 emximp -o $lib $output_objdir/$libname.def'
9750 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9751 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9752 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9753 $ECHO EXPORTS >> $output_objdir/$libname.def~
9754 prefix_cmds="$SED"~
9755 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9756 prefix_cmds="$prefix_cmds -e 1d";
9757 fi~
9758 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9759 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9760 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9761 emximp -o $lib $output_objdir/$libname.def'
9762 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9763 enable_shared_with_static_runtimes=yes
9764 file_list_spec='@'
9765 ;;
9766
9767 interix[3-9]*)
9768 hardcode_direct=no
9769 hardcode_shlibpath_var=no
9770 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9771 export_dynamic_flag_spec='$wl-E'
9772 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9773 # Instead, shared libraries are loaded at an image base (0x10000000 by
9774 # default) and relocated if they conflict, which is a slow very memory
9775 # consuming and fragmenting process. To avoid this, we pick a random,
9776 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9777 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9779 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'
9780 ;;
9781
9782 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9783 tmp_diet=no
9784 if test linux-dietlibc = "$host_os"; then
9785 case $cc_basename in
9786 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9787 esac
9788 fi
9789 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9790 && test no = "$tmp_diet"
9791 then
9792 tmp_addflag=' $pic_flag'
9793 tmp_sharedflag='-shared'
9794 case $cc_basename,$host_cpu in
9795 pgcc*) # Portland Group C compiler
9796 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'
9797 tmp_addflag=' $pic_flag'
9798 ;;
9799 pgf77* | pgf90* | pgf95* | pgfortran*)
9800 # Portland Group f77 and f90 compilers
9801 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'
9802 tmp_addflag=' $pic_flag -Mnomain' ;;
9803 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9804 tmp_addflag=' -i_dynamic' ;;
9805 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9806 tmp_addflag=' -i_dynamic -nofor_main' ;;
9807 ifc* | ifort*) # Intel Fortran compiler
9808 tmp_addflag=' -nofor_main' ;;
9809 lf95*) # Lahey Fortran 8.1
9810 whole_archive_flag_spec=
9811 tmp_sharedflag='--shared' ;;
9812 nagfor*) # NAGFOR 5.3
9813 tmp_sharedflag='-Wl,-shared' ;;
9814 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9815 tmp_sharedflag='-qmkshrobj'
9816 tmp_addflag= ;;
9817 nvcc*) # Cuda Compiler Driver 2.2
9818 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'
9819 compiler_needs_object=yes
9820 ;;
9821 esac
9822 case `$CC -V 2>&1 | $SED 5q` in
9823 *Sun\ C*) # Sun C 5.9
9824 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'
9825 compiler_needs_object=yes
9826 tmp_sharedflag='-G' ;;
9827 *Sun\ F*) # Sun Fortran 8.3
9828 tmp_sharedflag='-G' ;;
9829 esac
9830 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9831
9832 if test yes = "$supports_anon_versioning"; then
9833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9834 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9835 echo "local: *; };" >> $output_objdir/$libname.ver~
9836 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9837 fi
9838
9839 case $cc_basename in
9840 tcc*)
9841 export_dynamic_flag_spec='-rdynamic'
9842 ;;
9843 xlf* | bgf* | bgxlf* | mpixlf*)
9844 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9845 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9846 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9847 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9848 if test yes = "$supports_anon_versioning"; then
9849 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9850 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9851 echo "local: *; };" >> $output_objdir/$libname.ver~
9852 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9853 fi
9854 ;;
9855 esac
9856 else
9857 ld_shlibs=no
9858 fi
9859 ;;
9860
9861 netbsd*)
9862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9863 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9864 wlarc=
9865 else
9866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9867 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9868 fi
9869 ;;
9870
9871 solaris*)
9872 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9873 ld_shlibs=no
9874 cat <<_LT_EOF 1>&2
9875
9876 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9877 *** create shared libraries on Solaris systems. Therefore, libtool
9878 *** is disabling shared libraries support. We urge you to upgrade GNU
9879 *** binutils to release 2.9.1 or newer. Another option is to modify
9880 *** your PATH or compiler configuration so that the native linker is
9881 *** used, and then restart.
9882
9883 _LT_EOF
9884 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9886 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9887 else
9888 ld_shlibs=no
9889 fi
9890 ;;
9891
9892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9893 case `$LD -v 2>&1` in
9894 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9895 ld_shlibs=no
9896 cat <<_LT_EOF 1>&2
9897
9898 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9899 *** reliably create shared libraries on SCO systems. Therefore, libtool
9900 *** is disabling shared libraries support. We urge you to upgrade GNU
9901 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9902 *** your PATH or compiler configuration so that the native linker is
9903 *** used, and then restart.
9904
9905 _LT_EOF
9906 ;;
9907 *)
9908 # For security reasons, it is highly recommended that you always
9909 # use absolute paths for naming shared libraries, and exclude the
9910 # DT_RUNPATH tag from executables and libraries. But doing so
9911 # requires that you compile everything twice, which is a pain.
9912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9913 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9916 else
9917 ld_shlibs=no
9918 fi
9919 ;;
9920 esac
9921 ;;
9922
9923 sunos4*)
9924 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9925 wlarc=
9926 hardcode_direct=yes
9927 hardcode_shlibpath_var=no
9928 ;;
9929
9930 *)
9931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9933 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9934 else
9935 ld_shlibs=no
9936 fi
9937 ;;
9938 esac
9939
9940 if test no = "$ld_shlibs"; then
9941 runpath_var=
9942 hardcode_libdir_flag_spec=
9943 export_dynamic_flag_spec=
9944 whole_archive_flag_spec=
9945 fi
9946 else
9947 # PORTME fill in a description of your system's linker (not GNU ld)
9948 case $host_os in
9949 aix3*)
9950 allow_undefined_flag=unsupported
9951 always_export_symbols=yes
9952 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'
9953 # Note: this linker hardcodes the directories in LIBPATH if there
9954 # are no directories specified by -L.
9955 hardcode_minus_L=yes
9956 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9957 # Neither direct hardcoding nor static linking is supported with a
9958 # broken collect2.
9959 hardcode_direct=unsupported
9960 fi
9961 ;;
9962
9963 aix[4-9]*)
9964 if test ia64 = "$host_cpu"; then
9965 # On IA64, the linker does run time linking by default, so we don't
9966 # have to do anything special.
9967 aix_use_runtimelinking=no
9968 exp_sym_flag='-Bexport'
9969 no_entry_flag=
9970 else
9971 # If we're using GNU nm, then we don't want the "-C" option.
9972 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9973 # Without the "-l" option, or with the "-B" option, AIX nm treats
9974 # weak defined symbols like other global defined symbols, whereas
9975 # GNU nm marks them as "W".
9976 # While the 'weak' keyword is ignored in the Export File, we need
9977 # it in the Import File for the 'aix-soname' feature, so we have
9978 # to replace the "-B" option with "-P" for AIX nm.
9979 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9980 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'
9981 else
9982 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'
9983 fi
9984 aix_use_runtimelinking=no
9985
9986 # Test if we are trying to use run time linking or normal
9987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9988 # have runtime linking enabled, and use it for executables.
9989 # For shared libraries, we enable/disable runtime linking
9990 # depending on the kind of the shared library created -
9991 # when "with_aix_soname,aix_use_runtimelinking" is:
9992 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9993 # "aix,yes" lib.so shared, rtl:yes, for executables
9994 # lib.a static archive
9995 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9996 # lib.a(lib.so.V) shared, rtl:no, for executables
9997 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9998 # lib.a(lib.so.V) shared, rtl:no
9999 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10000 # lib.a static archive
10001 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10002 for ld_flag in $LDFLAGS; do
10003 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10004 aix_use_runtimelinking=yes
10005 break
10006 fi
10007 done
10008 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10009 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10010 # so we don't have lib.a shared libs to link our executables.
10011 # We have to force runtime linking in this case.
10012 aix_use_runtimelinking=yes
10013 LDFLAGS="$LDFLAGS -Wl,-brtl"
10014 fi
10015 ;;
10016 esac
10017
10018 exp_sym_flag='-bexport'
10019 no_entry_flag='-bnoentry'
10020 fi
10021
10022 # When large executables or shared objects are built, AIX ld can
10023 # have problems creating the table of contents. If linking a library
10024 # or program results in "error TOC overflow" add -mminimal-toc to
10025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10027
10028 archive_cmds=''
10029 hardcode_direct=yes
10030 hardcode_direct_absolute=yes
10031 hardcode_libdir_separator=':'
10032 link_all_deplibs=yes
10033 file_list_spec='$wl-f,'
10034 case $with_aix_soname,$aix_use_runtimelinking in
10035 aix,*) ;; # traditional, no import file
10036 svr4,* | *,yes) # use import file
10037 # The Import File defines what to hardcode.
10038 hardcode_direct=no
10039 hardcode_direct_absolute=no
10040 ;;
10041 esac
10042
10043 if test yes = "$GCC"; then
10044 case $host_os in aix4.[012]|aix4.[012].*)
10045 # We only want to do this on AIX 4.2 and lower, the check
10046 # below for broken collect2 doesn't work under 4.3+
10047 collect2name=`$CC -print-prog-name=collect2`
10048 if test -f "$collect2name" &&
10049 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10050 then
10051 # We have reworked collect2
10052 :
10053 else
10054 # We have old collect2
10055 hardcode_direct=unsupported
10056 # It fails to find uninstalled libraries when the uninstalled
10057 # path is not listed in the libpath. Setting hardcode_minus_L
10058 # to unsupported forces relinking
10059 hardcode_minus_L=yes
10060 hardcode_libdir_flag_spec='-L$libdir'
10061 hardcode_libdir_separator=
10062 fi
10063 ;;
10064 esac
10065 shared_flag='-shared'
10066 if test yes = "$aix_use_runtimelinking"; then
10067 shared_flag="$shared_flag "'$wl-G'
10068 fi
10069 # Need to ensure runtime linking is disabled for the traditional
10070 # shared library, or the linker may eventually find shared libraries
10071 # /with/ Import File - we do not want to mix them.
10072 shared_flag_aix='-shared'
10073 shared_flag_svr4='-shared $wl-G'
10074 else
10075 # not using gcc
10076 if test ia64 = "$host_cpu"; then
10077 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10078 # chokes on -Wl,-G. The following line is correct:
10079 shared_flag='-G'
10080 else
10081 if test yes = "$aix_use_runtimelinking"; then
10082 shared_flag='$wl-G'
10083 else
10084 shared_flag='$wl-bM:SRE'
10085 fi
10086 shared_flag_aix='$wl-bM:SRE'
10087 shared_flag_svr4='$wl-G'
10088 fi
10089 fi
10090
10091 export_dynamic_flag_spec='$wl-bexpall'
10092 # It seems that -bexpall does not export symbols beginning with
10093 # underscore (_), so it is better to generate a list of symbols to export.
10094 always_export_symbols=yes
10095 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10096 # Warning - without using the other runtime loading flags (-brtl),
10097 # -berok will link without error, but may produce a broken library.
10098 allow_undefined_flag='-berok'
10099 # Determine the default libpath from the value encoded in an
10100 # empty executable.
10101 if test set = "${lt_cv_aix_libpath+set}"; then
10102 aix_libpath=$lt_cv_aix_libpath
10103 else
10104 if test ${lt_cv_aix_libpath_+y}
10105 then :
10106 printf %s "(cached) " >&6
10107 else $as_nop
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110
10111 int
10112 main (void)
10113 {
10114
10115 ;
10116 return 0;
10117 }
10118 _ACEOF
10119 if ac_fn_c_try_link "$LINENO"
10120 then :
10121
10122 lt_aix_libpath_sed='
10123 /Import File Strings/,/^$/ {
10124 /^0/ {
10125 s/^0 *\([^ ]*\) *$/\1/
10126 p
10127 }
10128 }'
10129 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130 # Check for a 64-bit object if we didn't find anything.
10131 if test -z "$lt_cv_aix_libpath_"; then
10132 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10133 fi
10134 fi
10135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10136 conftest$ac_exeext conftest.$ac_ext
10137 if test -z "$lt_cv_aix_libpath_"; then
10138 lt_cv_aix_libpath_=/usr/lib:/lib
10139 fi
10140
10141 fi
10142
10143 aix_libpath=$lt_cv_aix_libpath_
10144 fi
10145
10146 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10147 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
10148 else
10149 if test ia64 = "$host_cpu"; then
10150 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10151 allow_undefined_flag="-z nodefs"
10152 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"
10153 else
10154 # Determine the default libpath from the value encoded in an
10155 # empty executable.
10156 if test set = "${lt_cv_aix_libpath+set}"; then
10157 aix_libpath=$lt_cv_aix_libpath
10158 else
10159 if test ${lt_cv_aix_libpath_+y}
10160 then :
10161 printf %s "(cached) " >&6
10162 else $as_nop
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165
10166 int
10167 main (void)
10168 {
10169
10170 ;
10171 return 0;
10172 }
10173 _ACEOF
10174 if ac_fn_c_try_link "$LINENO"
10175 then :
10176
10177 lt_aix_libpath_sed='
10178 /Import File Strings/,/^$/ {
10179 /^0/ {
10180 s/^0 *\([^ ]*\) *$/\1/
10181 p
10182 }
10183 }'
10184 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10185 # Check for a 64-bit object if we didn't find anything.
10186 if test -z "$lt_cv_aix_libpath_"; then
10187 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10188 fi
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10191 conftest$ac_exeext conftest.$ac_ext
10192 if test -z "$lt_cv_aix_libpath_"; then
10193 lt_cv_aix_libpath_=/usr/lib:/lib
10194 fi
10195
10196 fi
10197
10198 aix_libpath=$lt_cv_aix_libpath_
10199 fi
10200
10201 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10202 # Warning - without using the other run time loading flags,
10203 # -berok will link without error, but may produce a broken library.
10204 no_undefined_flag=' $wl-bernotok'
10205 allow_undefined_flag=' $wl-berok'
10206 if test yes = "$with_gnu_ld"; then
10207 # We only use this code for GNU lds that support --whole-archive.
10208 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10209 else
10210 # Exported symbols can be pulled into shared objects from archives
10211 whole_archive_flag_spec='$convenience'
10212 fi
10213 archive_cmds_need_lc=yes
10214 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10215 # -brtl affects multiple linker settings, -berok does not and is overridden later
10216 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10217 if test svr4 != "$with_aix_soname"; then
10218 # This is similar to how AIX traditionally builds its shared libraries.
10219 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'
10220 fi
10221 if test aix != "$with_aix_soname"; then
10222 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'
10223 else
10224 # used by -dlpreopen to get the symbols
10225 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10226 fi
10227 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10228 fi
10229 fi
10230 ;;
10231
10232 amigaos*)
10233 case $host_cpu in
10234 powerpc)
10235 # see comment about AmigaOS4 .so support
10236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10237 archive_expsym_cmds=''
10238 ;;
10239 m68k)
10240 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)'
10241 hardcode_libdir_flag_spec='-L$libdir'
10242 hardcode_minus_L=yes
10243 ;;
10244 esac
10245 ;;
10246
10247 bsdi[45]*)
10248 export_dynamic_flag_spec=-rdynamic
10249 ;;
10250
10251 cygwin* | mingw* | pw32* | cegcc*)
10252 # When not using gcc, we currently assume that we are using
10253 # Microsoft Visual C++ or Intel C++ Compiler.
10254 # hardcode_libdir_flag_spec is actually meaningless, as there is
10255 # no search path for DLLs.
10256 case $cc_basename in
10257 cl* | icl*)
10258 # Native MSVC or ICC
10259 hardcode_libdir_flag_spec=' '
10260 allow_undefined_flag=unsupported
10261 always_export_symbols=yes
10262 file_list_spec='@'
10263 # Tell ltmain to make .lib files, not .a files.
10264 libext=lib
10265 # Tell ltmain to make .dll files, not .so files.
10266 shrext_cmds=.dll
10267 # FIXME: Setting linknames here is a bad hack.
10268 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10269 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10270 cp "$export_symbols" "$output_objdir/$soname.def";
10271 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10272 else
10273 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10274 fi~
10275 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10276 linknames='
10277 # The linker will not automatically build a static lib if we build a DLL.
10278 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10279 enable_shared_with_static_runtimes=yes
10280 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10282 # Don't use ranlib
10283 old_postinstall_cmds='chmod 644 $oldlib'
10284 postlink_cmds='lt_outputfile="@OUTPUT@"~
10285 lt_tool_outputfile="@TOOL_OUTPUT@"~
10286 case $lt_outputfile in
10287 *.exe|*.EXE) ;;
10288 *)
10289 lt_outputfile=$lt_outputfile.exe
10290 lt_tool_outputfile=$lt_tool_outputfile.exe
10291 ;;
10292 esac~
10293 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10294 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10295 $RM "$lt_outputfile.manifest";
10296 fi'
10297 ;;
10298 *)
10299 # Assume MSVC and ICC wrapper
10300 hardcode_libdir_flag_spec=' '
10301 allow_undefined_flag=unsupported
10302 # Tell ltmain to make .lib files, not .a files.
10303 libext=lib
10304 # Tell ltmain to make .dll files, not .so files.
10305 shrext_cmds=.dll
10306 # FIXME: Setting linknames here is a bad hack.
10307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10308 # The linker will automatically build a .lib file if we build a DLL.
10309 old_archive_from_new_cmds='true'
10310 # FIXME: Should let the user specify the lib program.
10311 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10312 enable_shared_with_static_runtimes=yes
10313 ;;
10314 esac
10315 ;;
10316
10317 darwin* | rhapsody*)
10318
10319
10320 archive_cmds_need_lc=no
10321 hardcode_direct=no
10322 hardcode_automatic=yes
10323 hardcode_shlibpath_var=unsupported
10324 if test yes = "$lt_cv_ld_force_load"; then
10325 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\"`'
10326
10327 else
10328 whole_archive_flag_spec=''
10329 fi
10330 link_all_deplibs=yes
10331 allow_undefined_flag=$_lt_dar_allow_undefined
10332 case $cc_basename in
10333 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10334 *) _lt_dar_can_shared=$GCC ;;
10335 esac
10336 if test yes = "$_lt_dar_can_shared"; then
10337 output_verbose_link_cmd=func_echo_all
10338 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10339 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10340 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"
10341 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"
10342
10343 else
10344 ld_shlibs=no
10345 fi
10346
10347 ;;
10348
10349 dgux*)
10350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_shlibpath_var=no
10353 ;;
10354
10355 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10356 # support. Future versions do this automatically, but an explicit c++rt0.o
10357 # does not break anything, and helps significantly (at the cost of a little
10358 # extra space).
10359 freebsd2.2*)
10360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10361 hardcode_libdir_flag_spec='-R$libdir'
10362 hardcode_direct=yes
10363 hardcode_shlibpath_var=no
10364 ;;
10365
10366 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10367 freebsd2.*)
10368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_direct=yes
10370 hardcode_minus_L=yes
10371 hardcode_shlibpath_var=no
10372 ;;
10373
10374 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10375 freebsd* | dragonfly* | midnightbsd*)
10376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10377 hardcode_libdir_flag_spec='-R$libdir'
10378 hardcode_direct=yes
10379 hardcode_shlibpath_var=no
10380 ;;
10381
10382 hpux9*)
10383 if test yes = "$GCC"; then
10384 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'
10385 else
10386 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'
10387 fi
10388 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10389 hardcode_libdir_separator=:
10390 hardcode_direct=yes
10391
10392 # hardcode_minus_L: Not really in the search PATH,
10393 # but as the default location of the library.
10394 hardcode_minus_L=yes
10395 export_dynamic_flag_spec='$wl-E'
10396 ;;
10397
10398 hpux10*)
10399 if test yes,no = "$GCC,$with_gnu_ld"; then
10400 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10401 else
10402 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10403 fi
10404 if test no = "$with_gnu_ld"; then
10405 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10406 hardcode_libdir_separator=:
10407 hardcode_direct=yes
10408 hardcode_direct_absolute=yes
10409 export_dynamic_flag_spec='$wl-E'
10410 # hardcode_minus_L: Not really in the search PATH,
10411 # but as the default location of the library.
10412 hardcode_minus_L=yes
10413 fi
10414 ;;
10415
10416 hpux11*)
10417 if test yes,no = "$GCC,$with_gnu_ld"; then
10418 case $host_cpu in
10419 hppa*64*)
10420 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 ;;
10422 ia64*)
10423 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10424 ;;
10425 *)
10426 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10427 ;;
10428 esac
10429 else
10430 case $host_cpu in
10431 hppa*64*)
10432 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 ;;
10434 ia64*)
10435 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10436 ;;
10437 *)
10438
10439 # Older versions of the 11.00 compiler do not understand -b yet
10440 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10442 printf %s "checking if $CC understands -b... " >&6; }
10443 if test ${lt_cv_prog_compiler__b+y}
10444 then :
10445 printf %s "(cached) " >&6
10446 else $as_nop
10447 lt_cv_prog_compiler__b=no
10448 save_LDFLAGS=$LDFLAGS
10449 LDFLAGS="$LDFLAGS -b"
10450 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10451 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10452 # The linker can only warn and ignore the option if not recognized
10453 # So say no if there are warnings
10454 if test -s conftest.err; then
10455 # Append any errors to the config.log.
10456 cat conftest.err 1>&5
10457 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10459 if diff conftest.exp conftest.er2 >/dev/null; then
10460 lt_cv_prog_compiler__b=yes
10461 fi
10462 else
10463 lt_cv_prog_compiler__b=yes
10464 fi
10465 fi
10466 $RM -r conftest*
10467 LDFLAGS=$save_LDFLAGS
10468
10469 fi
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10471 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10472
10473 if test yes = "$lt_cv_prog_compiler__b"; then
10474 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10475 else
10476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10477 fi
10478
10479 ;;
10480 esac
10481 fi
10482 if test no = "$with_gnu_ld"; then
10483 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10484 hardcode_libdir_separator=:
10485
10486 case $host_cpu in
10487 hppa*64*|ia64*)
10488 hardcode_direct=no
10489 hardcode_shlibpath_var=no
10490 ;;
10491 *)
10492 hardcode_direct=yes
10493 hardcode_direct_absolute=yes
10494 export_dynamic_flag_spec='$wl-E'
10495
10496 # hardcode_minus_L: Not really in the search PATH,
10497 # but as the default location of the library.
10498 hardcode_minus_L=yes
10499 ;;
10500 esac
10501 fi
10502 ;;
10503
10504 irix5* | irix6* | nonstopux*)
10505 if test yes = "$GCC"; then
10506 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'
10507 # Try to use the -exported_symbol ld option, if it does not
10508 # work, assume that -exports_file does not work either and
10509 # implicitly export all symbols.
10510 # This should be the same for all languages, so no per-tag cache variable.
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10512 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10513 if test ${lt_cv_irix_exported_symbol+y}
10514 then :
10515 printf %s "(cached) " >&6
10516 else $as_nop
10517 save_LDFLAGS=$LDFLAGS
10518 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 int foo (void) { return 0; }
10522 _ACEOF
10523 if ac_fn_c_try_link "$LINENO"
10524 then :
10525 lt_cv_irix_exported_symbol=yes
10526 else $as_nop
10527 lt_cv_irix_exported_symbol=no
10528 fi
10529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10530 conftest$ac_exeext conftest.$ac_ext
10531 LDFLAGS=$save_LDFLAGS
10532 fi
10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10534 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10535 if test yes = "$lt_cv_irix_exported_symbol"; then
10536 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'
10537 fi
10538 else
10539 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'
10540 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'
10541 fi
10542 archive_cmds_need_lc='no'
10543 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10544 hardcode_libdir_separator=:
10545 inherit_rpath=yes
10546 link_all_deplibs=yes
10547 ;;
10548
10549 linux*)
10550 case $cc_basename in
10551 tcc*)
10552 # Fabrice Bellard et al's Tiny C Compiler
10553 ld_shlibs=yes
10554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10555 ;;
10556 esac
10557 ;;
10558
10559 netbsd*)
10560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10562 else
10563 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10564 fi
10565 hardcode_libdir_flag_spec='-R$libdir'
10566 hardcode_direct=yes
10567 hardcode_shlibpath_var=no
10568 ;;
10569
10570 newsos6)
10571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572 hardcode_direct=yes
10573 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10574 hardcode_libdir_separator=:
10575 hardcode_shlibpath_var=no
10576 ;;
10577
10578 *nto* | *qnx*)
10579 ;;
10580
10581 openbsd* | bitrig*)
10582 if test -f /usr/libexec/ld.so; then
10583 hardcode_direct=yes
10584 hardcode_shlibpath_var=no
10585 hardcode_direct_absolute=yes
10586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10587 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10588 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10589 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10590 export_dynamic_flag_spec='$wl-E'
10591 else
10592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10593 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10594 fi
10595 else
10596 ld_shlibs=no
10597 fi
10598 ;;
10599
10600 os2*)
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_minus_L=yes
10603 allow_undefined_flag=unsupported
10604 shrext_cmds=.dll
10605 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10606 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10607 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10608 $ECHO EXPORTS >> $output_objdir/$libname.def~
10609 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10610 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10611 emximp -o $lib $output_objdir/$libname.def'
10612 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10613 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10614 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10615 $ECHO EXPORTS >> $output_objdir/$libname.def~
10616 prefix_cmds="$SED"~
10617 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10618 prefix_cmds="$prefix_cmds -e 1d";
10619 fi~
10620 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10621 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10622 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10623 emximp -o $lib $output_objdir/$libname.def'
10624 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10625 enable_shared_with_static_runtimes=yes
10626 file_list_spec='@'
10627 ;;
10628
10629 osf3*)
10630 if test yes = "$GCC"; then
10631 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10632 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'
10633 else
10634 allow_undefined_flag=' -expect_unresolved \*'
10635 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'
10636 fi
10637 archive_cmds_need_lc='no'
10638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10639 hardcode_libdir_separator=:
10640 ;;
10641
10642 osf4* | osf5*) # as osf3* with the addition of -msym flag
10643 if test yes = "$GCC"; then
10644 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10645 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'
10646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10647 else
10648 allow_undefined_flag=' -expect_unresolved \*'
10649 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'
10650 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~
10651 $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'
10652
10653 # Both c and cxx compiler support -rpath directly
10654 hardcode_libdir_flag_spec='-rpath $libdir'
10655 fi
10656 archive_cmds_need_lc='no'
10657 hardcode_libdir_separator=:
10658 ;;
10659
10660 solaris*)
10661 no_undefined_flag=' -z defs'
10662 if test yes = "$GCC"; then
10663 wlarc='$wl'
10664 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10666 $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'
10667 else
10668 case `$CC -V 2>&1` in
10669 *"Compilers 5.0"*)
10670 wlarc=''
10671 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10673 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10674 ;;
10675 *)
10676 wlarc='$wl'
10677 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10678 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10679 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10680 ;;
10681 esac
10682 fi
10683 hardcode_libdir_flag_spec='-R$libdir'
10684 hardcode_shlibpath_var=no
10685 case $host_os in
10686 solaris2.[0-5] | solaris2.[0-5].*) ;;
10687 *)
10688 # The compiler driver will combine and reorder linker options,
10689 # but understands '-z linker_flag'. GCC discards it without '$wl',
10690 # but is careful enough not to reorder.
10691 # Supported since Solaris 2.6 (maybe 2.5.1?)
10692 if test yes = "$GCC"; then
10693 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10694 else
10695 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10696 fi
10697 ;;
10698 esac
10699 link_all_deplibs=yes
10700 ;;
10701
10702 sunos4*)
10703 if test sequent = "$host_vendor"; then
10704 # Use $CC to link under sequent, because it throws in some extra .o
10705 # files that make .init and .fini sections work.
10706 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10707 else
10708 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10709 fi
10710 hardcode_libdir_flag_spec='-L$libdir'
10711 hardcode_direct=yes
10712 hardcode_minus_L=yes
10713 hardcode_shlibpath_var=no
10714 ;;
10715
10716 sysv4)
10717 case $host_vendor in
10718 sni)
10719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720 hardcode_direct=yes # is this really true???
10721 ;;
10722 siemens)
10723 ## LD is ld it makes a PLAMLIB
10724 ## CC just makes a GrossModule.
10725 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10726 reload_cmds='$CC -r -o $output$reload_objs'
10727 hardcode_direct=no
10728 ;;
10729 motorola)
10730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10731 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10732 ;;
10733 esac
10734 runpath_var='LD_RUN_PATH'
10735 hardcode_shlibpath_var=no
10736 ;;
10737
10738 sysv4.3*)
10739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740 hardcode_shlibpath_var=no
10741 export_dynamic_flag_spec='-Bexport'
10742 ;;
10743
10744 sysv4*MP*)
10745 if test -d /usr/nec; then
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_shlibpath_var=no
10748 runpath_var=LD_RUN_PATH
10749 hardcode_runpath_var=yes
10750 ld_shlibs=yes
10751 fi
10752 ;;
10753
10754 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10755 no_undefined_flag='$wl-z,text'
10756 archive_cmds_need_lc=no
10757 hardcode_shlibpath_var=no
10758 runpath_var='LD_RUN_PATH'
10759
10760 if test yes = "$GCC"; then
10761 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 else
10764 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 fi
10767 ;;
10768
10769 sysv5* | sco3.2v5* | sco5v6*)
10770 # Note: We CANNOT use -z defs as we might desire, because we do not
10771 # link with -lc, and that would cause any symbols used from libc to
10772 # always be unresolved, which means just about no library would
10773 # ever link correctly. If we're not using GNU ld we use -z text
10774 # though, which does catch some bad symbols but isn't as heavy-handed
10775 # as -z defs.
10776 no_undefined_flag='$wl-z,text'
10777 allow_undefined_flag='$wl-z,nodefs'
10778 archive_cmds_need_lc=no
10779 hardcode_shlibpath_var=no
10780 hardcode_libdir_flag_spec='$wl-R,$libdir'
10781 hardcode_libdir_separator=':'
10782 link_all_deplibs=yes
10783 export_dynamic_flag_spec='$wl-Bexport'
10784 runpath_var='LD_RUN_PATH'
10785
10786 if test yes = "$GCC"; then
10787 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 else
10790 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 fi
10793 ;;
10794
10795 uts4*)
10796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10797 hardcode_libdir_flag_spec='-L$libdir'
10798 hardcode_shlibpath_var=no
10799 ;;
10800
10801 *)
10802 ld_shlibs=no
10803 ;;
10804 esac
10805
10806 if test sni = "$host_vendor"; then
10807 case $host in
10808 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10809 export_dynamic_flag_spec='$wl-Blargedynsym'
10810 ;;
10811 esac
10812 fi
10813 fi
10814
10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10816 printf "%s\n" "$ld_shlibs" >&6; }
10817 test no = "$ld_shlibs" && can_build_shared=no
10818
10819 with_gnu_ld=$with_gnu_ld
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835 #
10836 # Do we need to explicitly link libc?
10837 #
10838 case "x$archive_cmds_need_lc" in
10839 x|xyes)
10840 # Assume -lc should be added
10841 archive_cmds_need_lc=yes
10842
10843 if test yes,yes = "$GCC,$enable_shared"; then
10844 case $archive_cmds in
10845 *'~'*)
10846 # FIXME: we may have to deal with multi-command sequences.
10847 ;;
10848 '$CC '*)
10849 # Test whether the compiler implicitly links with -lc since on some
10850 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10851 # to ld, don't add -lc before -lgcc.
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10853 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10854 if test ${lt_cv_archive_cmds_need_lc+y}
10855 then :
10856 printf %s "(cached) " >&6
10857 else $as_nop
10858 $RM conftest*
10859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10860
10861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10862 (eval $ac_compile) 2>&5
10863 ac_status=$?
10864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10865 test $ac_status = 0; } 2>conftest.err; then
10866 soname=conftest
10867 lib=conftest
10868 libobjs=conftest.$ac_objext
10869 deplibs=
10870 wl=$lt_prog_compiler_wl
10871 pic_flag=$lt_prog_compiler_pic
10872 compiler_flags=-v
10873 linker_flags=-v
10874 verstring=
10875 output_objdir=.
10876 libname=conftest
10877 lt_save_allow_undefined_flag=$allow_undefined_flag
10878 allow_undefined_flag=
10879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10880 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10881 ac_status=$?
10882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10883 test $ac_status = 0; }
10884 then
10885 lt_cv_archive_cmds_need_lc=no
10886 else
10887 lt_cv_archive_cmds_need_lc=yes
10888 fi
10889 allow_undefined_flag=$lt_save_allow_undefined_flag
10890 else
10891 cat conftest.err 1>&5
10892 fi
10893 $RM conftest*
10894
10895 fi
10896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10897 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10898 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10899 ;;
10900 esac
10901 fi
10902 ;;
10903 esac
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11057 printf %s "checking dynamic linker characteristics... " >&6; }
11058
11059 if test yes = "$GCC"; then
11060 case $host_os in
11061 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11062 *) lt_awk_arg='/^libraries:/' ;;
11063 esac
11064 case $host_os in
11065 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11066 *) lt_sed_strip_eq='s|=/|/|g' ;;
11067 esac
11068 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11069 case $lt_search_path_spec in
11070 *\;*)
11071 # if the path contains ";" then we assume it to be the separator
11072 # otherwise default to the standard path separator (i.e. ":") - it is
11073 # assumed that no part of a normal pathname contains ";" but that should
11074 # okay in the real world where ";" in dirpaths is itself problematic.
11075 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11076 ;;
11077 *)
11078 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11079 ;;
11080 esac
11081 # Ok, now we have the path, separated by spaces, we can step through it
11082 # and add multilib dir if necessary...
11083 lt_tmp_lt_search_path_spec=
11084 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11085 # ...but if some path component already ends with the multilib dir we assume
11086 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11087 case "$lt_multi_os_dir; $lt_search_path_spec " in
11088 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11089 lt_multi_os_dir=
11090 ;;
11091 esac
11092 for lt_sys_path in $lt_search_path_spec; do
11093 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11095 elif test -n "$lt_multi_os_dir"; then
11096 test -d "$lt_sys_path" && \
11097 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11098 fi
11099 done
11100 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11101 BEGIN {RS = " "; FS = "/|\n";} {
11102 lt_foo = "";
11103 lt_count = 0;
11104 for (lt_i = NF; lt_i > 0; lt_i--) {
11105 if ($lt_i != "" && $lt_i != ".") {
11106 if ($lt_i == "..") {
11107 lt_count++;
11108 } else {
11109 if (lt_count == 0) {
11110 lt_foo = "/" $lt_i lt_foo;
11111 } else {
11112 lt_count--;
11113 }
11114 }
11115 }
11116 }
11117 if (lt_foo != "") { lt_freq[lt_foo]++; }
11118 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11119 }'`
11120 # AWK program above erroneously prepends '/' to C:/dos/paths
11121 # for these hosts.
11122 case $host_os in
11123 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11124 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11125 esac
11126 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11127 else
11128 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11129 fi
11130 library_names_spec=
11131 libname_spec='lib$name'
11132 soname_spec=
11133 shrext_cmds=.so
11134 postinstall_cmds=
11135 postuninstall_cmds=
11136 finish_cmds=
11137 finish_eval=
11138 shlibpath_var=
11139 shlibpath_overrides_runpath=unknown
11140 version_type=none
11141 dynamic_linker="$host_os ld.so"
11142 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11143 need_lib_prefix=unknown
11144 hardcode_into_libs=no
11145
11146 # when you set need_version to no, make sure it does not cause -set_version
11147 # flags to be left without arguments
11148 need_version=unknown
11149
11150
11151
11152 case $host_os in
11153 aix3*)
11154 version_type=linux # correct to gnu/linux during the next big refactor
11155 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11156 shlibpath_var=LIBPATH
11157
11158 # AIX 3 has no versioning support, so we append a major version to the name.
11159 soname_spec='$libname$release$shared_ext$major'
11160 ;;
11161
11162 aix[4-9]*)
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 need_lib_prefix=no
11165 need_version=no
11166 hardcode_into_libs=yes
11167 if test ia64 = "$host_cpu"; then
11168 # AIX 5 supports IA64
11169 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 else
11172 # With GCC up to 2.95.x, collect2 would create an import file
11173 # for dependence libraries. The import file would start with
11174 # the line '#! .'. This would cause the generated library to
11175 # depend on '.', always an invalid library. This was fixed in
11176 # development snapshots of GCC prior to 3.0.
11177 case $host_os in
11178 aix4 | aix4.[01] | aix4.[01].*)
11179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11180 echo ' yes '
11181 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11182 :
11183 else
11184 can_build_shared=no
11185 fi
11186 ;;
11187 esac
11188 # Using Import Files as archive members, it is possible to support
11189 # filename-based versioning of shared library archives on AIX. While
11190 # this would work for both with and without runtime linking, it will
11191 # prevent static linking of such archives. So we do filename-based
11192 # shared library versioning with .so extension only, which is used
11193 # when both runtime linking and shared linking is enabled.
11194 # Unfortunately, runtime linking may impact performance, so we do
11195 # not want this to be the default eventually. Also, we use the
11196 # versioned .so libs for executables only if there is the -brtl
11197 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11198 # To allow for filename-based versioning support, we need to create
11199 # libNAME.so.V as an archive file, containing:
11200 # *) an Import File, referring to the versioned filename of the
11201 # archive as well as the shared archive member, telling the
11202 # bitwidth (32 or 64) of that shared object, and providing the
11203 # list of exported symbols of that shared object, eventually
11204 # decorated with the 'weak' keyword
11205 # *) the shared object with the F_LOADONLY flag set, to really avoid
11206 # it being seen by the linker.
11207 # At run time we better use the real file rather than another symlink,
11208 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11209
11210 case $with_aix_soname,$aix_use_runtimelinking in
11211 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11212 # soname into executable. Probably we can add versioning support to
11213 # collect2, so additional links can be useful in future.
11214 aix,yes) # traditional libtool
11215 dynamic_linker='AIX unversionable lib.so'
11216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11217 # instead of lib<name>.a to let people know that these are not
11218 # typical AIX shared libraries.
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220 ;;
11221 aix,no) # traditional AIX only
11222 dynamic_linker='AIX lib.a(lib.so.V)'
11223 # We preserve .a as extension for shared libraries through AIX4.2
11224 # and later when we are not doing run time linking.
11225 library_names_spec='$libname$release.a $libname.a'
11226 soname_spec='$libname$release$shared_ext$major'
11227 ;;
11228 svr4,*) # full svr4 only
11229 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11230 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11231 # We do not specify a path in Import Files, so LIBPATH fires.
11232 shlibpath_overrides_runpath=yes
11233 ;;
11234 *,yes) # both, prefer svr4
11235 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11236 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11237 # unpreferred sharedlib libNAME.a needs extra handling
11238 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"'
11239 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"'
11240 # We do not specify a path in Import Files, so LIBPATH fires.
11241 shlibpath_overrides_runpath=yes
11242 ;;
11243 *,no) # both, prefer aix
11244 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11245 library_names_spec='$libname$release.a $libname.a'
11246 soname_spec='$libname$release$shared_ext$major'
11247 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11248 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)'
11249 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"'
11250 ;;
11251 esac
11252 shlibpath_var=LIBPATH
11253 fi
11254 ;;
11255
11256 amigaos*)
11257 case $host_cpu in
11258 powerpc)
11259 # Since July 2007 AmigaOS4 officially supports .so libraries.
11260 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262 ;;
11263 m68k)
11264 library_names_spec='$libname.ixlibrary $libname.a'
11265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11266 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'
11267 ;;
11268 esac
11269 ;;
11270
11271 beos*)
11272 library_names_spec='$libname$shared_ext'
11273 dynamic_linker="$host_os ld.so"
11274 shlibpath_var=LIBRARY_PATH
11275 ;;
11276
11277 bsdi[45]*)
11278 version_type=linux # correct to gnu/linux during the next big refactor
11279 need_version=no
11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11281 soname_spec='$libname$release$shared_ext$major'
11282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11286 # the default ld.so.conf also contains /usr/contrib/lib and
11287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11288 # libtool to hard-code these into programs
11289 ;;
11290
11291 cygwin* | mingw* | pw32* | cegcc*)
11292 version_type=windows
11293 shrext_cmds=.dll
11294 need_version=no
11295 need_lib_prefix=no
11296
11297 case $GCC,$cc_basename in
11298 yes,*)
11299 # gcc
11300 library_names_spec='$libname.dll.a'
11301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11302 postinstall_cmds='base_file=`basename \$file`~
11303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11304 dldir=$destdir/`dirname \$dlpath`~
11305 test -d \$dldir || mkdir -p \$dldir~
11306 $install_prog $dir/$dlname \$dldir/$dlname~
11307 chmod a+x \$dldir/$dlname~
11308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11310 fi'
11311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11312 dlpath=$dir/\$dldll~
11313 $RM \$dlpath'
11314 shlibpath_overrides_runpath=yes
11315
11316 case $host_os in
11317 cygwin*)
11318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11319 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11320
11321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11322 ;;
11323 mingw* | cegcc*)
11324 # MinGW DLLs use traditional 'lib' prefix
11325 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11326 ;;
11327 pw32*)
11328 # pw32 DLLs use 'pw' prefix rather than 'lib'
11329 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11330 ;;
11331 esac
11332 dynamic_linker='Win32 ld.exe'
11333 ;;
11334
11335 *,cl* | *,icl*)
11336 # Native MSVC or ICC
11337 libname_spec='$name'
11338 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11339 library_names_spec='$libname.dll.lib'
11340
11341 case $build_os in
11342 mingw*)
11343 sys_lib_search_path_spec=
11344 lt_save_ifs=$IFS
11345 IFS=';'
11346 for lt_path in $LIB
11347 do
11348 IFS=$lt_save_ifs
11349 # Let DOS variable expansion print the short 8.3 style file name.
11350 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11351 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11352 done
11353 IFS=$lt_save_ifs
11354 # Convert to MSYS style.
11355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11356 ;;
11357 cygwin*)
11358 # Convert to unix form, then to dos form, then back to unix form
11359 # but this time dos style (no spaces!) so that the unix form looks
11360 # like /cygdrive/c/PROGRA~1:/cygdr...
11361 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11362 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11363 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11364 ;;
11365 *)
11366 sys_lib_search_path_spec=$LIB
11367 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11368 # It is most probably a Windows format PATH.
11369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11370 else
11371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11372 fi
11373 # FIXME: find the short name or the path components, as spaces are
11374 # common. (e.g. "Program Files" -> "PROGRA~1")
11375 ;;
11376 esac
11377
11378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11379 postinstall_cmds='base_file=`basename \$file`~
11380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11381 dldir=$destdir/`dirname \$dlpath`~
11382 test -d \$dldir || mkdir -p \$dldir~
11383 $install_prog $dir/$dlname \$dldir/$dlname'
11384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11385 dlpath=$dir/\$dldll~
11386 $RM \$dlpath'
11387 shlibpath_overrides_runpath=yes
11388 dynamic_linker='Win32 link.exe'
11389 ;;
11390
11391 *)
11392 # Assume MSVC and ICC wrapper
11393 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11394 dynamic_linker='Win32 ld.exe'
11395 ;;
11396 esac
11397 # FIXME: first we should search . and the directory the executable is in
11398 shlibpath_var=PATH
11399 ;;
11400
11401 darwin* | rhapsody*)
11402 dynamic_linker="$host_os dyld"
11403 version_type=darwin
11404 need_lib_prefix=no
11405 need_version=no
11406 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11407 soname_spec='$libname$release$major$shared_ext'
11408 shlibpath_overrides_runpath=yes
11409 shlibpath_var=DYLD_LIBRARY_PATH
11410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11411
11412 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11414 ;;
11415
11416 dgux*)
11417 version_type=linux # correct to gnu/linux during the next big refactor
11418 need_lib_prefix=no
11419 need_version=no
11420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11421 soname_spec='$libname$release$shared_ext$major'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 ;;
11424
11425 freebsd* | dragonfly* | midnightbsd*)
11426 # DragonFly does not have aout. When/if they implement a new
11427 # versioning mechanism, adjust this.
11428 if test -x /usr/bin/objformat; then
11429 objformat=`/usr/bin/objformat`
11430 else
11431 case $host_os in
11432 freebsd[23].*) objformat=aout ;;
11433 *) objformat=elf ;;
11434 esac
11435 fi
11436 version_type=freebsd-$objformat
11437 case $version_type in
11438 freebsd-elf*)
11439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11440 soname_spec='$libname$release$shared_ext$major'
11441 need_version=no
11442 need_lib_prefix=no
11443 ;;
11444 freebsd-*)
11445 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11446 need_version=yes
11447 ;;
11448 esac
11449 shlibpath_var=LD_LIBRARY_PATH
11450 case $host_os in
11451 freebsd2.*)
11452 shlibpath_overrides_runpath=yes
11453 ;;
11454 freebsd3.[01]* | freebsdelf3.[01]*)
11455 shlibpath_overrides_runpath=yes
11456 hardcode_into_libs=yes
11457 ;;
11458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11460 shlibpath_overrides_runpath=no
11461 hardcode_into_libs=yes
11462 ;;
11463 *) # from 4.6 on, and DragonFly
11464 shlibpath_overrides_runpath=yes
11465 hardcode_into_libs=yes
11466 ;;
11467 esac
11468 ;;
11469
11470 haiku*)
11471 version_type=linux # correct to gnu/linux during the next big refactor
11472 need_lib_prefix=no
11473 need_version=no
11474 dynamic_linker="$host_os runtime_loader"
11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 soname_spec='$libname$release$shared_ext$major'
11477 shlibpath_var=LIBRARY_PATH
11478 shlibpath_overrides_runpath=no
11479 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11480 hardcode_into_libs=yes
11481 ;;
11482
11483 hpux9* | hpux10* | hpux11*)
11484 # Give a soname corresponding to the major version so that dld.sl refuses to
11485 # link against other versions.
11486 version_type=sunos
11487 need_lib_prefix=no
11488 need_version=no
11489 case $host_cpu in
11490 ia64*)
11491 shrext_cmds='.so'
11492 hardcode_into_libs=yes
11493 dynamic_linker="$host_os dld.so"
11494 shlibpath_var=LD_LIBRARY_PATH
11495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11497 soname_spec='$libname$release$shared_ext$major'
11498 if test 32 = "$HPUX_IA64_MODE"; then
11499 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11500 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11501 else
11502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11503 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11504 fi
11505 ;;
11506 hppa*64*)
11507 shrext_cmds='.sl'
11508 hardcode_into_libs=yes
11509 dynamic_linker="$host_os dld.sl"
11510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11513 soname_spec='$libname$release$shared_ext$major'
11514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11516 ;;
11517 *)
11518 shrext_cmds='.sl'
11519 dynamic_linker="$host_os dld.sl"
11520 shlibpath_var=SHLIB_PATH
11521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523 soname_spec='$libname$release$shared_ext$major'
11524 ;;
11525 esac
11526 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11527 postinstall_cmds='chmod 555 $lib'
11528 # or fails outright, so override atomically:
11529 install_override_mode=555
11530 ;;
11531
11532 interix[3-9]*)
11533 version_type=linux # correct to gnu/linux during the next big refactor
11534 need_lib_prefix=no
11535 need_version=no
11536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537 soname_spec='$libname$release$shared_ext$major'
11538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 shlibpath_overrides_runpath=no
11541 hardcode_into_libs=yes
11542 ;;
11543
11544 irix5* | irix6* | nonstopux*)
11545 case $host_os in
11546 nonstopux*) version_type=nonstopux ;;
11547 *)
11548 if test yes = "$lt_cv_prog_gnu_ld"; then
11549 version_type=linux # correct to gnu/linux during the next big refactor
11550 else
11551 version_type=irix
11552 fi ;;
11553 esac
11554 need_lib_prefix=no
11555 need_version=no
11556 soname_spec='$libname$release$shared_ext$major'
11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11558 case $host_os in
11559 irix5* | nonstopux*)
11560 libsuff= shlibsuff=
11561 ;;
11562 *)
11563 case $LD in # libtool.m4 will add one of these switches to LD
11564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11565 libsuff= shlibsuff= libmagic=32-bit;;
11566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11567 libsuff=32 shlibsuff=N32 libmagic=N32;;
11568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11570 *) libsuff= shlibsuff= libmagic=never-match;;
11571 esac
11572 ;;
11573 esac
11574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11575 shlibpath_overrides_runpath=no
11576 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11577 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11578 hardcode_into_libs=yes
11579 ;;
11580
11581 # No shared lib support for Linux oldld, aout, or coff.
11582 linux*oldld* | linux*aout* | linux*coff*)
11583 dynamic_linker=no
11584 ;;
11585
11586 linux*android*)
11587 version_type=none # Android doesn't support versioned libraries.
11588 need_lib_prefix=no
11589 need_version=no
11590 library_names_spec='$libname$release$shared_ext'
11591 soname_spec='$libname$release$shared_ext'
11592 finish_cmds=
11593 shlibpath_var=LD_LIBRARY_PATH
11594 shlibpath_overrides_runpath=yes
11595
11596 # This implies no fast_install, which is unacceptable.
11597 # Some rework will be needed to allow for fast_install
11598 # before this can be enabled.
11599 hardcode_into_libs=yes
11600
11601 dynamic_linker='Android linker'
11602 # Don't embed -rpath directories since the linker doesn't support them.
11603 hardcode_libdir_flag_spec='-L$libdir'
11604 ;;
11605
11606 # This must be glibc/ELF.
11607 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11608 version_type=linux # correct to gnu/linux during the next big refactor
11609 need_lib_prefix=no
11610 need_version=no
11611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11612 soname_spec='$libname$release$shared_ext$major'
11613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=no
11616
11617 # Some binutils ld are patched to set DT_RUNPATH
11618 if test ${lt_cv_shlibpath_overrides_runpath+y}
11619 then :
11620 printf %s "(cached) " >&6
11621 else $as_nop
11622 lt_cv_shlibpath_overrides_runpath=no
11623 save_LDFLAGS=$LDFLAGS
11624 save_libdir=$libdir
11625 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11626 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11629
11630 int
11631 main (void)
11632 {
11633
11634 ;
11635 return 0;
11636 }
11637 _ACEOF
11638 if ac_fn_c_try_link "$LINENO"
11639 then :
11640 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11641 then :
11642 lt_cv_shlibpath_overrides_runpath=yes
11643 fi
11644 fi
11645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LDFLAGS=$save_LDFLAGS
11648 libdir=$save_libdir
11649
11650 fi
11651
11652 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11653
11654 # This implies no fast_install, which is unacceptable.
11655 # Some rework will be needed to allow for fast_install
11656 # before this can be enabled.
11657 hardcode_into_libs=yes
11658
11659 # Ideally, we could use ldconfig to report *all* directores which are
11660 # searched for libraries, however this is still not possible. Aside from not
11661 # being certain /sbin/ldconfig is available, command
11662 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11663 # even though it is searched at run-time. Try to do the best guess by
11664 # appending ld.so.conf contents (and includes) to the search path.
11665 if test -f /etc/ld.so.conf; then
11666 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' ' '`
11667 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11668 fi
11669
11670 # We used to test for /lib/ld.so.1 and disable shared libraries on
11671 # powerpc, because MkLinux only supported shared libraries with the
11672 # GNU dynamic linker. Since this was broken with cross compilers,
11673 # most powerpc-linux boxes support dynamic linking these days and
11674 # people can always --disable-shared, the test was removed, and we
11675 # assume the GNU/Linux dynamic linker is in use.
11676 dynamic_linker='GNU/Linux ld.so'
11677 ;;
11678
11679 netbsd*)
11680 version_type=sunos
11681 need_lib_prefix=no
11682 need_version=no
11683 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11684 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11686 dynamic_linker='NetBSD (a.out) ld.so'
11687 else
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689 soname_spec='$libname$release$shared_ext$major'
11690 dynamic_linker='NetBSD ld.elf_so'
11691 fi
11692 shlibpath_var=LD_LIBRARY_PATH
11693 shlibpath_overrides_runpath=yes
11694 hardcode_into_libs=yes
11695 ;;
11696
11697 newsos6)
11698 version_type=linux # correct to gnu/linux during the next big refactor
11699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11700 shlibpath_var=LD_LIBRARY_PATH
11701 shlibpath_overrides_runpath=yes
11702 ;;
11703
11704 *nto* | *qnx*)
11705 version_type=qnx
11706 need_lib_prefix=no
11707 need_version=no
11708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11709 soname_spec='$libname$release$shared_ext$major'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=no
11712 hardcode_into_libs=yes
11713 dynamic_linker='ldqnx.so'
11714 ;;
11715
11716 openbsd* | bitrig*)
11717 version_type=sunos
11718 sys_lib_dlsearch_path_spec=/usr/lib
11719 need_lib_prefix=no
11720 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11721 need_version=no
11722 else
11723 need_version=yes
11724 fi
11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath=yes
11729 ;;
11730
11731 os2*)
11732 libname_spec='$name'
11733 version_type=windows
11734 shrext_cmds=.dll
11735 need_version=no
11736 need_lib_prefix=no
11737 # OS/2 can only load a DLL with a base name of 8 characters or less.
11738 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11739 v=$($ECHO $release$versuffix | tr -d .-);
11740 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11741 $ECHO $n$v`$shared_ext'
11742 library_names_spec='${libname}_dll.$libext'
11743 dynamic_linker='OS/2 ld.exe'
11744 shlibpath_var=BEGINLIBPATH
11745 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11747 postinstall_cmds='base_file=`basename \$file`~
11748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11749 dldir=$destdir/`dirname \$dlpath`~
11750 test -d \$dldir || mkdir -p \$dldir~
11751 $install_prog $dir/$dlname \$dldir/$dlname~
11752 chmod a+x \$dldir/$dlname~
11753 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11754 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11755 fi'
11756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11757 dlpath=$dir/\$dldll~
11758 $RM \$dlpath'
11759 ;;
11760
11761 osf3* | osf4* | osf5*)
11762 version_type=osf
11763 need_lib_prefix=no
11764 need_version=no
11765 soname_spec='$libname$release$shared_ext$major'
11766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11770 ;;
11771
11772 rdos*)
11773 dynamic_linker=no
11774 ;;
11775
11776 solaris*)
11777 version_type=linux # correct to gnu/linux during the next big refactor
11778 need_lib_prefix=no
11779 need_version=no
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781 soname_spec='$libname$release$shared_ext$major'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=yes
11784 hardcode_into_libs=yes
11785 # ldd complains unless libraries are executable
11786 postinstall_cmds='chmod +x $lib'
11787 ;;
11788
11789 sunos4*)
11790 version_type=sunos
11791 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 shlibpath_overrides_runpath=yes
11795 if test yes = "$with_gnu_ld"; then
11796 need_lib_prefix=no
11797 fi
11798 need_version=yes
11799 ;;
11800
11801 sysv4 | sysv4.3*)
11802 version_type=linux # correct to gnu/linux during the next big refactor
11803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11804 soname_spec='$libname$release$shared_ext$major'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 case $host_vendor in
11807 sni)
11808 shlibpath_overrides_runpath=no
11809 need_lib_prefix=no
11810 runpath_var=LD_RUN_PATH
11811 ;;
11812 siemens)
11813 need_lib_prefix=no
11814 ;;
11815 motorola)
11816 need_lib_prefix=no
11817 need_version=no
11818 shlibpath_overrides_runpath=no
11819 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11820 ;;
11821 esac
11822 ;;
11823
11824 sysv4*MP*)
11825 if test -d /usr/nec; then
11826 version_type=linux # correct to gnu/linux during the next big refactor
11827 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11828 soname_spec='$libname$shared_ext.$major'
11829 shlibpath_var=LD_LIBRARY_PATH
11830 fi
11831 ;;
11832
11833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11834 version_type=sco
11835 need_lib_prefix=no
11836 need_version=no
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11838 soname_spec='$libname$release$shared_ext$major'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 shlibpath_overrides_runpath=yes
11841 hardcode_into_libs=yes
11842 if test yes = "$with_gnu_ld"; then
11843 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11844 else
11845 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11846 case $host_os in
11847 sco3.2v5*)
11848 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11849 ;;
11850 esac
11851 fi
11852 sys_lib_dlsearch_path_spec='/usr/lib'
11853 ;;
11854
11855 tpf*)
11856 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11857 version_type=linux # correct to gnu/linux during the next big refactor
11858 need_lib_prefix=no
11859 need_version=no
11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=no
11863 hardcode_into_libs=yes
11864 ;;
11865
11866 uts4*)
11867 version_type=linux # correct to gnu/linux during the next big refactor
11868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11869 soname_spec='$libname$release$shared_ext$major'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 ;;
11872
11873 *)
11874 dynamic_linker=no
11875 ;;
11876 esac
11877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11878 printf "%s\n" "$dynamic_linker" >&6; }
11879 test no = "$dynamic_linker" && can_build_shared=no
11880
11881 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11882 if test yes = "$GCC"; then
11883 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11884 fi
11885
11886 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11887 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11888 fi
11889
11890 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11891 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11892 fi
11893
11894 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11895 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11896
11897 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11898 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11899
11900 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11901 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12000 printf %s "checking how to hardcode library paths into programs... " >&6; }
12001 hardcode_action=
12002 if test -n "$hardcode_libdir_flag_spec" ||
12003 test -n "$runpath_var" ||
12004 test yes = "$hardcode_automatic"; then
12005
12006 # We can hardcode non-existent directories.
12007 if test no != "$hardcode_direct" &&
12008 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12009 # have to relink, otherwise we might link with an installed library
12010 # when we should be linking with a yet-to-be-installed one
12011 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12012 test no != "$hardcode_minus_L"; then
12013 # Linking always hardcodes the temporary library directory.
12014 hardcode_action=relink
12015 else
12016 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12017 hardcode_action=immediate
12018 fi
12019 else
12020 # We cannot hardcode anything, or else we can only hardcode existing
12021 # directories.
12022 hardcode_action=unsupported
12023 fi
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12025 printf "%s\n" "$hardcode_action" >&6; }
12026
12027 if test relink = "$hardcode_action" ||
12028 test yes = "$inherit_rpath"; then
12029 # Fast installation is not supported
12030 enable_fast_install=no
12031 elif test yes = "$shlibpath_overrides_runpath" ||
12032 test no = "$enable_shared"; then
12033 # Fast installation is not necessary
12034 enable_fast_install=needless
12035 fi
12036
12037
12038
12039
12040
12041
12042 if test yes != "$enable_dlopen"; then
12043 enable_dlopen=unknown
12044 enable_dlopen_self=unknown
12045 enable_dlopen_self_static=unknown
12046 else
12047 lt_cv_dlopen=no
12048 lt_cv_dlopen_libs=
12049
12050 case $host_os in
12051 beos*)
12052 lt_cv_dlopen=load_add_on
12053 lt_cv_dlopen_libs=
12054 lt_cv_dlopen_self=yes
12055 ;;
12056
12057 mingw* | pw32* | cegcc*)
12058 lt_cv_dlopen=LoadLibrary
12059 lt_cv_dlopen_libs=
12060 ;;
12061
12062 cygwin*)
12063 lt_cv_dlopen=dlopen
12064 lt_cv_dlopen_libs=
12065 ;;
12066
12067 darwin*)
12068 # if libdl is installed we need to link against it
12069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12070 printf %s "checking for dlopen in -ldl... " >&6; }
12071 if test ${ac_cv_lib_dl_dlopen+y}
12072 then :
12073 printf %s "(cached) " >&6
12074 else $as_nop
12075 ac_check_lib_save_LIBS=$LIBS
12076 LIBS="-ldl $LIBS"
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12083 char dlopen ();
12084 int
12085 main (void)
12086 {
12087 return dlopen ();
12088 ;
12089 return 0;
12090 }
12091 _ACEOF
12092 if ac_fn_c_try_link "$LINENO"
12093 then :
12094 ac_cv_lib_dl_dlopen=yes
12095 else $as_nop
12096 ac_cv_lib_dl_dlopen=no
12097 fi
12098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12099 conftest$ac_exeext conftest.$ac_ext
12100 LIBS=$ac_check_lib_save_LIBS
12101 fi
12102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12103 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12104 if test "x$ac_cv_lib_dl_dlopen" = xyes
12105 then :
12106 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12107 else $as_nop
12108
12109 lt_cv_dlopen=dyld
12110 lt_cv_dlopen_libs=
12111 lt_cv_dlopen_self=yes
12112
12113 fi
12114
12115 ;;
12116
12117 tpf*)
12118 # Don't try to run any link tests for TPF. We know it's impossible
12119 # because TPF is a cross-compiler, and we know how we open DSOs.
12120 lt_cv_dlopen=dlopen
12121 lt_cv_dlopen_libs=
12122 lt_cv_dlopen_self=no
12123 ;;
12124
12125 *)
12126 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12127 if test "x$ac_cv_func_shl_load" = xyes
12128 then :
12129 lt_cv_dlopen=shl_load
12130 else $as_nop
12131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12132 printf %s "checking for shl_load in -ldld... " >&6; }
12133 if test ${ac_cv_lib_dld_shl_load+y}
12134 then :
12135 printf %s "(cached) " >&6
12136 else $as_nop
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-ldld $LIBS"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12145 char shl_load ();
12146 int
12147 main (void)
12148 {
12149 return shl_load ();
12150 ;
12151 return 0;
12152 }
12153 _ACEOF
12154 if ac_fn_c_try_link "$LINENO"
12155 then :
12156 ac_cv_lib_dld_shl_load=yes
12157 else $as_nop
12158 ac_cv_lib_dld_shl_load=no
12159 fi
12160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12163 fi
12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12165 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12166 if test "x$ac_cv_lib_dld_shl_load" = xyes
12167 then :
12168 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12169 else $as_nop
12170 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12171 if test "x$ac_cv_func_dlopen" = xyes
12172 then :
12173 lt_cv_dlopen=dlopen
12174 else $as_nop
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12176 printf %s "checking for dlopen in -ldl... " >&6; }
12177 if test ${ac_cv_lib_dl_dlopen+y}
12178 then :
12179 printf %s "(cached) " >&6
12180 else $as_nop
12181 ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-ldl $LIBS"
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12185
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12189 char dlopen ();
12190 int
12191 main (void)
12192 {
12193 return dlopen ();
12194 ;
12195 return 0;
12196 }
12197 _ACEOF
12198 if ac_fn_c_try_link "$LINENO"
12199 then :
12200 ac_cv_lib_dl_dlopen=yes
12201 else $as_nop
12202 ac_cv_lib_dl_dlopen=no
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12209 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12210 if test "x$ac_cv_lib_dl_dlopen" = xyes
12211 then :
12212 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12213 else $as_nop
12214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12215 printf %s "checking for dlopen in -lsvld... " >&6; }
12216 if test ${ac_cv_lib_svld_dlopen+y}
12217 then :
12218 printf %s "(cached) " >&6
12219 else $as_nop
12220 ac_check_lib_save_LIBS=$LIBS
12221 LIBS="-lsvld $LIBS"
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224
12225 /* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228 char dlopen ();
12229 int
12230 main (void)
12231 {
12232 return dlopen ();
12233 ;
12234 return 0;
12235 }
12236 _ACEOF
12237 if ac_fn_c_try_link "$LINENO"
12238 then :
12239 ac_cv_lib_svld_dlopen=yes
12240 else $as_nop
12241 ac_cv_lib_svld_dlopen=no
12242 fi
12243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12244 conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12246 fi
12247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12248 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12249 if test "x$ac_cv_lib_svld_dlopen" = xyes
12250 then :
12251 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12252 else $as_nop
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12254 printf %s "checking for dld_link in -ldld... " >&6; }
12255 if test ${ac_cv_lib_dld_dld_link+y}
12256 then :
12257 printf %s "(cached) " >&6
12258 else $as_nop
12259 ac_check_lib_save_LIBS=$LIBS
12260 LIBS="-ldld $LIBS"
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12263
12264 /* Override any GCC internal prototype to avoid an error.
12265 Use char because int might match the return type of a GCC
12266 builtin and then its argument prototype would still apply. */
12267 char dld_link ();
12268 int
12269 main (void)
12270 {
12271 return dld_link ();
12272 ;
12273 return 0;
12274 }
12275 _ACEOF
12276 if ac_fn_c_try_link "$LINENO"
12277 then :
12278 ac_cv_lib_dld_dld_link=yes
12279 else $as_nop
12280 ac_cv_lib_dld_dld_link=no
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12283 conftest$ac_exeext conftest.$ac_ext
12284 LIBS=$ac_check_lib_save_LIBS
12285 fi
12286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12287 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12288 if test "x$ac_cv_lib_dld_dld_link" = xyes
12289 then :
12290 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12291 fi
12292
12293
12294 fi
12295
12296
12297 fi
12298
12299
12300 fi
12301
12302
12303 fi
12304
12305
12306 fi
12307
12308 ;;
12309 esac
12310
12311 if test no = "$lt_cv_dlopen"; then
12312 enable_dlopen=no
12313 else
12314 enable_dlopen=yes
12315 fi
12316
12317 case $lt_cv_dlopen in
12318 dlopen)
12319 save_CPPFLAGS=$CPPFLAGS
12320 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12321
12322 save_LDFLAGS=$LDFLAGS
12323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12324
12325 save_LIBS=$LIBS
12326 LIBS="$lt_cv_dlopen_libs $LIBS"
12327
12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12329 printf %s "checking whether a program can dlopen itself... " >&6; }
12330 if test ${lt_cv_dlopen_self+y}
12331 then :
12332 printf %s "(cached) " >&6
12333 else $as_nop
12334 if test yes = "$cross_compiling"; then :
12335 lt_cv_dlopen_self=cross
12336 else
12337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12338 lt_status=$lt_dlunknown
12339 cat > conftest.$ac_ext <<_LT_EOF
12340 #line $LINENO "configure"
12341 #include "confdefs.h"
12342
12343 #if HAVE_DLFCN_H
12344 #include <dlfcn.h>
12345 #endif
12346
12347 #include <stdio.h>
12348
12349 #ifdef RTLD_GLOBAL
12350 # define LT_DLGLOBAL RTLD_GLOBAL
12351 #else
12352 # ifdef DL_GLOBAL
12353 # define LT_DLGLOBAL DL_GLOBAL
12354 # else
12355 # define LT_DLGLOBAL 0
12356 # endif
12357 #endif
12358
12359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12360 find out it does not work in some platform. */
12361 #ifndef LT_DLLAZY_OR_NOW
12362 # ifdef RTLD_LAZY
12363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12364 # else
12365 # ifdef DL_LAZY
12366 # define LT_DLLAZY_OR_NOW DL_LAZY
12367 # else
12368 # ifdef RTLD_NOW
12369 # define LT_DLLAZY_OR_NOW RTLD_NOW
12370 # else
12371 # ifdef DL_NOW
12372 # define LT_DLLAZY_OR_NOW DL_NOW
12373 # else
12374 # define LT_DLLAZY_OR_NOW 0
12375 # endif
12376 # endif
12377 # endif
12378 # endif
12379 #endif
12380
12381 /* When -fvisibility=hidden is used, assume the code has been annotated
12382 correspondingly for the symbols needed. */
12383 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12384 int fnord () __attribute__((visibility("default")));
12385 #endif
12386
12387 int fnord () { return 42; }
12388 int main ()
12389 {
12390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12391 int status = $lt_dlunknown;
12392
12393 if (self)
12394 {
12395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12396 else
12397 {
12398 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12399 else puts (dlerror ());
12400 }
12401 /* dlclose (self); */
12402 }
12403 else
12404 puts (dlerror ());
12405
12406 return status;
12407 }
12408 _LT_EOF
12409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12410 (eval $ac_link) 2>&5
12411 ac_status=$?
12412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12413 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12414 (./conftest; exit; ) >&5 2>/dev/null
12415 lt_status=$?
12416 case x$lt_status in
12417 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12418 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12419 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12420 esac
12421 else :
12422 # compilation failed
12423 lt_cv_dlopen_self=no
12424 fi
12425 fi
12426 rm -fr conftest*
12427
12428
12429 fi
12430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12431 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12432
12433 if test yes = "$lt_cv_dlopen_self"; then
12434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12436 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12437 if test ${lt_cv_dlopen_self_static+y}
12438 then :
12439 printf %s "(cached) " >&6
12440 else $as_nop
12441 if test yes = "$cross_compiling"; then :
12442 lt_cv_dlopen_self_static=cross
12443 else
12444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12445 lt_status=$lt_dlunknown
12446 cat > conftest.$ac_ext <<_LT_EOF
12447 #line $LINENO "configure"
12448 #include "confdefs.h"
12449
12450 #if HAVE_DLFCN_H
12451 #include <dlfcn.h>
12452 #endif
12453
12454 #include <stdio.h>
12455
12456 #ifdef RTLD_GLOBAL
12457 # define LT_DLGLOBAL RTLD_GLOBAL
12458 #else
12459 # ifdef DL_GLOBAL
12460 # define LT_DLGLOBAL DL_GLOBAL
12461 # else
12462 # define LT_DLGLOBAL 0
12463 # endif
12464 #endif
12465
12466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12467 find out it does not work in some platform. */
12468 #ifndef LT_DLLAZY_OR_NOW
12469 # ifdef RTLD_LAZY
12470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12471 # else
12472 # ifdef DL_LAZY
12473 # define LT_DLLAZY_OR_NOW DL_LAZY
12474 # else
12475 # ifdef RTLD_NOW
12476 # define LT_DLLAZY_OR_NOW RTLD_NOW
12477 # else
12478 # ifdef DL_NOW
12479 # define LT_DLLAZY_OR_NOW DL_NOW
12480 # else
12481 # define LT_DLLAZY_OR_NOW 0
12482 # endif
12483 # endif
12484 # endif
12485 # endif
12486 #endif
12487
12488 /* When -fvisibility=hidden is used, assume the code has been annotated
12489 correspondingly for the symbols needed. */
12490 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12491 int fnord () __attribute__((visibility("default")));
12492 #endif
12493
12494 int fnord () { return 42; }
12495 int main ()
12496 {
12497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12498 int status = $lt_dlunknown;
12499
12500 if (self)
12501 {
12502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12503 else
12504 {
12505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12506 else puts (dlerror ());
12507 }
12508 /* dlclose (self); */
12509 }
12510 else
12511 puts (dlerror ());
12512
12513 return status;
12514 }
12515 _LT_EOF
12516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12517 (eval $ac_link) 2>&5
12518 ac_status=$?
12519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12520 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12521 (./conftest; exit; ) >&5 2>/dev/null
12522 lt_status=$?
12523 case x$lt_status in
12524 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12525 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12526 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12527 esac
12528 else :
12529 # compilation failed
12530 lt_cv_dlopen_self_static=no
12531 fi
12532 fi
12533 rm -fr conftest*
12534
12535
12536 fi
12537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12538 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12539 fi
12540
12541 CPPFLAGS=$save_CPPFLAGS
12542 LDFLAGS=$save_LDFLAGS
12543 LIBS=$save_LIBS
12544 ;;
12545 esac
12546
12547 case $lt_cv_dlopen_self in
12548 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12549 *) enable_dlopen_self=unknown ;;
12550 esac
12551
12552 case $lt_cv_dlopen_self_static in
12553 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12554 *) enable_dlopen_self_static=unknown ;;
12555 esac
12556 fi
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574 striplib=
12575 old_striplib=
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12577 printf %s "checking whether stripping libraries is possible... " >&6; }
12578 if test -z "$STRIP"; then
12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 printf "%s\n" "no" >&6; }
12581 else
12582 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12583 old_striplib="$STRIP --strip-debug"
12584 striplib="$STRIP --strip-unneeded"
12585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12586 printf "%s\n" "yes" >&6; }
12587 else
12588 case $host_os in
12589 darwin*)
12590 # FIXME - insert some real tests, host_os isn't really good enough
12591 striplib="$STRIP -x"
12592 old_striplib="$STRIP -S"
12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594 printf "%s\n" "yes" >&6; }
12595 ;;
12596 freebsd*)
12597 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12598 old_striplib="$STRIP --strip-debug"
12599 striplib="$STRIP --strip-unneeded"
12600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 printf "%s\n" "yes" >&6; }
12602 else
12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 printf "%s\n" "no" >&6; }
12605 fi
12606 ;;
12607 *)
12608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 printf "%s\n" "no" >&6; }
12610 ;;
12611 esac
12612 fi
12613 fi
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626 # Report what library types will actually be built
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12628 printf %s "checking if libtool supports shared libraries... " >&6; }
12629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12630 printf "%s\n" "$can_build_shared" >&6; }
12631
12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12633 printf %s "checking whether to build shared libraries... " >&6; }
12634 test no = "$can_build_shared" && enable_shared=no
12635
12636 # On AIX, shared libraries and static libraries use the same namespace, and
12637 # are all built from PIC.
12638 case $host_os in
12639 aix3*)
12640 test yes = "$enable_shared" && enable_static=no
12641 if test -n "$RANLIB"; then
12642 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12643 postinstall_cmds='$RANLIB $lib'
12644 fi
12645 ;;
12646
12647 aix[4-9]*)
12648 if test ia64 != "$host_cpu"; then
12649 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12650 yes,aix,yes) ;; # shared object as lib.so file only
12651 yes,svr4,*) ;; # shared object as lib.so archive member only
12652 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12653 esac
12654 fi
12655 ;;
12656 esac
12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12658 printf "%s\n" "$enable_shared" >&6; }
12659
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12661 printf %s "checking whether to build static libraries... " >&6; }
12662 # Make sure either enable_shared or enable_static is yes.
12663 test yes = "$enable_shared" || enable_static=yes
12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12665 printf "%s\n" "$enable_static" >&6; }
12666
12667
12668
12669
12670 fi
12671 ac_ext=c
12672 ac_cpp='$CPP $CPPFLAGS'
12673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676
12677 CC=$lt_save_CC
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693 ac_config_commands="$ac_config_commands libtool"
12694
12695
12696
12697
12698 # Only expand once:
12699
12700
12701
12702 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12716 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12717 if test ${ac_cv_c_undeclared_builtin_options+y}
12718 then :
12719 printf %s "(cached) " >&6
12720 else $as_nop
12721 ac_save_CFLAGS=$CFLAGS
12722 ac_cv_c_undeclared_builtin_options='cannot detect'
12723 for ac_arg in '' -fno-builtin; do
12724 CFLAGS="$ac_save_CFLAGS $ac_arg"
12725 # This test program should *not* compile successfully.
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12728
12729 int
12730 main (void)
12731 {
12732 (void) strchr;
12733 ;
12734 return 0;
12735 }
12736 _ACEOF
12737 if ac_fn_c_try_compile "$LINENO"
12738 then :
12739
12740 else $as_nop
12741 # This test program should compile successfully.
12742 # No library function is consistently available on
12743 # freestanding implementations, so test against a dummy
12744 # declaration. Include always-available headers on the
12745 # off chance that they somehow elicit warnings.
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748 #include <float.h>
12749 #include <limits.h>
12750 #include <stdarg.h>
12751 #include <stddef.h>
12752 extern void ac_decl (int, char *);
12753
12754 int
12755 main (void)
12756 {
12757 (void) ac_decl (0, (char *) 0);
12758 (void) ac_decl;
12759
12760 ;
12761 return 0;
12762 }
12763 _ACEOF
12764 if ac_fn_c_try_compile "$LINENO"
12765 then :
12766 if test x"$ac_arg" = x
12767 then :
12768 ac_cv_c_undeclared_builtin_options='none needed'
12769 else $as_nop
12770 ac_cv_c_undeclared_builtin_options=$ac_arg
12771 fi
12772 break
12773 fi
12774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12775 fi
12776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12777 done
12778 CFLAGS=$ac_save_CFLAGS
12779
12780 fi
12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12782 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12783 case $ac_cv_c_undeclared_builtin_options in #(
12784 'cannot detect') :
12785 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12786 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12787 as_fn_error $? "cannot make $CC report undeclared builtins
12788 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12789 'none needed') :
12790 ac_c_undeclared_builtin_options='' ;; #(
12791 *) :
12792 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12793 esac
12794
12795
12796
12797
12798
12799 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12800 if test "x$ac_cv_have_decl___clang__" = xyes
12801 then :
12802 CLANGCC="yes"
12803 else $as_nop
12804 CLANGCC="no"
12805 fi
12806 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12807 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12808 then :
12809 INTELCC="yes"
12810 else $as_nop
12811 INTELCC="no"
12812 fi
12813 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12814 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12815 then :
12816 SUNCC="yes"
12817 else $as_nop
12818 SUNCC="no"
12819 fi
12820
12821
12822
12823
12824
12825
12826
12827
12828 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12829 if test -n "$ac_tool_prefix"; then
12830 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12831 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 printf %s "checking for $ac_word... " >&6; }
12834 if test ${ac_cv_path_PKG_CONFIG+y}
12835 then :
12836 printf %s "(cached) " >&6
12837 else $as_nop
12838 case $PKG_CONFIG in
12839 [\\/]* | ?:[\\/]*)
12840 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12841 ;;
12842 *)
12843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12845 do
12846 IFS=$as_save_IFS
12847 case $as_dir in #(((
12848 '') as_dir=./ ;;
12849 */) ;;
12850 *) as_dir=$as_dir/ ;;
12851 esac
12852 for ac_exec_ext in '' $ac_executable_extensions; do
12853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12854 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12856 break 2
12857 fi
12858 done
12859 done
12860 IFS=$as_save_IFS
12861
12862 ;;
12863 esac
12864 fi
12865 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12866 if test -n "$PKG_CONFIG"; then
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12868 printf "%s\n" "$PKG_CONFIG" >&6; }
12869 else
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 printf "%s\n" "no" >&6; }
12872 fi
12873
12874
12875 fi
12876 if test -z "$ac_cv_path_PKG_CONFIG"; then
12877 ac_pt_PKG_CONFIG=$PKG_CONFIG
12878 # Extract the first word of "pkg-config", so it can be a program name with args.
12879 set dummy pkg-config; ac_word=$2
12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881 printf %s "checking for $ac_word... " >&6; }
12882 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12883 then :
12884 printf %s "(cached) " >&6
12885 else $as_nop
12886 case $ac_pt_PKG_CONFIG in
12887 [\\/]* | ?:[\\/]*)
12888 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12889 ;;
12890 *)
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12893 do
12894 IFS=$as_save_IFS
12895 case $as_dir in #(((
12896 '') as_dir=./ ;;
12897 */) ;;
12898 *) as_dir=$as_dir/ ;;
12899 esac
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12902 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12904 break 2
12905 fi
12906 done
12907 done
12908 IFS=$as_save_IFS
12909
12910 ;;
12911 esac
12912 fi
12913 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12914 if test -n "$ac_pt_PKG_CONFIG"; then
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12916 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12917 else
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 printf "%s\n" "no" >&6; }
12920 fi
12921
12922 if test "x$ac_pt_PKG_CONFIG" = x; then
12923 PKG_CONFIG=""
12924 else
12925 case $cross_compiling:$ac_tool_warned in
12926 yes:)
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12929 ac_tool_warned=yes ;;
12930 esac
12931 PKG_CONFIG=$ac_pt_PKG_CONFIG
12932 fi
12933 else
12934 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12935 fi
12936
12937 fi
12938 if test -n "$PKG_CONFIG"; then
12939 _pkg_min_version=0.9.0
12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12941 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12942 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12944 printf "%s\n" "yes" >&6; }
12945 else
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 printf "%s\n" "no" >&6; }
12948 PKG_CONFIG=""
12949 fi
12950 fi
12951
12952
12953
12954
12955
12956 # Check whether --enable-selective-werror was given.
12957 if test ${enable_selective_werror+y}
12958 then :
12959 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12960 else $as_nop
12961 SELECTIVE_WERROR=yes
12962 fi
12963
12964
12965
12966
12967
12968 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12969 if test "x$SUNCC" = "xyes"; then
12970 BASE_CFLAGS="-v"
12971 else
12972 BASE_CFLAGS=""
12973 fi
12974
12975 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989 xorg_testset_save_CFLAGS="$CFLAGS"
12990
12991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12994 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12995 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12996 then :
12997 printf %s "(cached) " >&6
12998 else $as_nop
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13001 int i;
13002 _ACEOF
13003 if ac_fn_c_try_compile "$LINENO"
13004 then :
13005 xorg_cv_cc_flag_unknown_warning_option=yes
13006 else $as_nop
13007 xorg_cv_cc_flag_unknown_warning_option=no
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13010 fi
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13012 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13014 CFLAGS="$xorg_testset_save_CFLAGS"
13015 fi
13016
13017 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13020 fi
13021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13023 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13024 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13025 then :
13026 printf %s "(cached) " >&6
13027 else $as_nop
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030 int i;
13031 _ACEOF
13032 if ac_fn_c_try_compile "$LINENO"
13033 then :
13034 xorg_cv_cc_flag_unused_command_line_argument=yes
13035 else $as_nop
13036 xorg_cv_cc_flag_unused_command_line_argument=no
13037 fi
13038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13039 fi
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13041 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13043 CFLAGS="$xorg_testset_save_CFLAGS"
13044 fi
13045
13046 found="no"
13047
13048 if test $found = "no" ; then
13049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13051 fi
13052
13053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13055 fi
13056
13057 CFLAGS="$CFLAGS -Wall"
13058
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13060 printf %s "checking if $CC supports -Wall... " >&6; }
13061 cacheid=xorg_cv_cc_flag__Wall
13062 if eval test \${$cacheid+y}
13063 then :
13064 printf %s "(cached) " >&6
13065 else $as_nop
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068 int i;
13069 int
13070 main (void)
13071 {
13072
13073 ;
13074 return 0;
13075 }
13076 _ACEOF
13077 if ac_fn_c_try_link "$LINENO"
13078 then :
13079 eval $cacheid=yes
13080 else $as_nop
13081 eval $cacheid=no
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13084 conftest$ac_exeext conftest.$ac_ext
13085 fi
13086
13087
13088 CFLAGS="$xorg_testset_save_CFLAGS"
13089
13090 eval supported=\$$cacheid
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13092 printf "%s\n" "$supported" >&6; }
13093 if test "$supported" = "yes" ; then
13094 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13095 found="yes"
13096 fi
13097 fi
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113 xorg_testset_save_CFLAGS="$CFLAGS"
13114
13115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13118 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13119 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13120 then :
13121 printf %s "(cached) " >&6
13122 else $as_nop
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125 int i;
13126 _ACEOF
13127 if ac_fn_c_try_compile "$LINENO"
13128 then :
13129 xorg_cv_cc_flag_unknown_warning_option=yes
13130 else $as_nop
13131 xorg_cv_cc_flag_unknown_warning_option=no
13132 fi
13133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13134 fi
13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13136 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13138 CFLAGS="$xorg_testset_save_CFLAGS"
13139 fi
13140
13141 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13144 fi
13145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13147 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13148 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13149 then :
13150 printf %s "(cached) " >&6
13151 else $as_nop
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154 int i;
13155 _ACEOF
13156 if ac_fn_c_try_compile "$LINENO"
13157 then :
13158 xorg_cv_cc_flag_unused_command_line_argument=yes
13159 else $as_nop
13160 xorg_cv_cc_flag_unused_command_line_argument=no
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13163 fi
13164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13167 CFLAGS="$xorg_testset_save_CFLAGS"
13168 fi
13169
13170 found="no"
13171
13172 if test $found = "no" ; then
13173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13175 fi
13176
13177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13179 fi
13180
13181 CFLAGS="$CFLAGS -Wpointer-arith"
13182
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13184 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13185 cacheid=xorg_cv_cc_flag__Wpointer_arith
13186 if eval test \${$cacheid+y}
13187 then :
13188 printf %s "(cached) " >&6
13189 else $as_nop
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13192 int i;
13193 int
13194 main (void)
13195 {
13196
13197 ;
13198 return 0;
13199 }
13200 _ACEOF
13201 if ac_fn_c_try_link "$LINENO"
13202 then :
13203 eval $cacheid=yes
13204 else $as_nop
13205 eval $cacheid=no
13206 fi
13207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13208 conftest$ac_exeext conftest.$ac_ext
13209 fi
13210
13211
13212 CFLAGS="$xorg_testset_save_CFLAGS"
13213
13214 eval supported=\$$cacheid
13215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13216 printf "%s\n" "$supported" >&6; }
13217 if test "$supported" = "yes" ; then
13218 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13219 found="yes"
13220 fi
13221 fi
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237 xorg_testset_save_CFLAGS="$CFLAGS"
13238
13239 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13242 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13243 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13244 then :
13245 printf %s "(cached) " >&6
13246 else $as_nop
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249 int i;
13250 _ACEOF
13251 if ac_fn_c_try_compile "$LINENO"
13252 then :
13253 xorg_cv_cc_flag_unknown_warning_option=yes
13254 else $as_nop
13255 xorg_cv_cc_flag_unknown_warning_option=no
13256 fi
13257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13258 fi
13259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13260 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13262 CFLAGS="$xorg_testset_save_CFLAGS"
13263 fi
13264
13265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13268 fi
13269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13271 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13272 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13273 then :
13274 printf %s "(cached) " >&6
13275 else $as_nop
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 int i;
13279 _ACEOF
13280 if ac_fn_c_try_compile "$LINENO"
13281 then :
13282 xorg_cv_cc_flag_unused_command_line_argument=yes
13283 else $as_nop
13284 xorg_cv_cc_flag_unused_command_line_argument=no
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13287 fi
13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13289 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13291 CFLAGS="$xorg_testset_save_CFLAGS"
13292 fi
13293
13294 found="no"
13295
13296 if test $found = "no" ; then
13297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13299 fi
13300
13301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13303 fi
13304
13305 CFLAGS="$CFLAGS -Wmissing-declarations"
13306
13307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13308 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13309 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13310 if eval test \${$cacheid+y}
13311 then :
13312 printf %s "(cached) " >&6
13313 else $as_nop
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13316 int i;
13317 int
13318 main (void)
13319 {
13320
13321 ;
13322 return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"
13326 then :
13327 eval $cacheid=yes
13328 else $as_nop
13329 eval $cacheid=no
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13332 conftest$ac_exeext conftest.$ac_ext
13333 fi
13334
13335
13336 CFLAGS="$xorg_testset_save_CFLAGS"
13337
13338 eval supported=\$$cacheid
13339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13340 printf "%s\n" "$supported" >&6; }
13341 if test "$supported" = "yes" ; then
13342 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13343 found="yes"
13344 fi
13345 fi
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361 xorg_testset_save_CFLAGS="$CFLAGS"
13362
13363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13366 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13367 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13368 then :
13369 printf %s "(cached) " >&6
13370 else $as_nop
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373 int i;
13374 _ACEOF
13375 if ac_fn_c_try_compile "$LINENO"
13376 then :
13377 xorg_cv_cc_flag_unknown_warning_option=yes
13378 else $as_nop
13379 xorg_cv_cc_flag_unknown_warning_option=no
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13382 fi
13383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13384 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13386 CFLAGS="$xorg_testset_save_CFLAGS"
13387 fi
13388
13389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13392 fi
13393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13395 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13396 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13397 then :
13398 printf %s "(cached) " >&6
13399 else $as_nop
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402 int i;
13403 _ACEOF
13404 if ac_fn_c_try_compile "$LINENO"
13405 then :
13406 xorg_cv_cc_flag_unused_command_line_argument=yes
13407 else $as_nop
13408 xorg_cv_cc_flag_unused_command_line_argument=no
13409 fi
13410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13411 fi
13412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13413 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13415 CFLAGS="$xorg_testset_save_CFLAGS"
13416 fi
13417
13418 found="no"
13419
13420 if test $found = "no" ; then
13421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13423 fi
13424
13425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13427 fi
13428
13429 CFLAGS="$CFLAGS -Wformat=2"
13430
13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13432 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13433 cacheid=xorg_cv_cc_flag__Wformat_2
13434 if eval test \${$cacheid+y}
13435 then :
13436 printf %s "(cached) " >&6
13437 else $as_nop
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440 int i;
13441 int
13442 main (void)
13443 {
13444
13445 ;
13446 return 0;
13447 }
13448 _ACEOF
13449 if ac_fn_c_try_link "$LINENO"
13450 then :
13451 eval $cacheid=yes
13452 else $as_nop
13453 eval $cacheid=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13456 conftest$ac_exeext conftest.$ac_ext
13457 fi
13458
13459
13460 CFLAGS="$xorg_testset_save_CFLAGS"
13461
13462 eval supported=\$$cacheid
13463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13464 printf "%s\n" "$supported" >&6; }
13465 if test "$supported" = "yes" ; then
13466 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13467 found="yes"
13468 fi
13469 fi
13470
13471 if test $found = "no" ; then
13472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13474 fi
13475
13476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13478 fi
13479
13480 CFLAGS="$CFLAGS -Wformat"
13481
13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13483 printf %s "checking if $CC supports -Wformat... " >&6; }
13484 cacheid=xorg_cv_cc_flag__Wformat
13485 if eval test \${$cacheid+y}
13486 then :
13487 printf %s "(cached) " >&6
13488 else $as_nop
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491 int i;
13492 int
13493 main (void)
13494 {
13495
13496 ;
13497 return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_c_try_link "$LINENO"
13501 then :
13502 eval $cacheid=yes
13503 else $as_nop
13504 eval $cacheid=no
13505 fi
13506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13507 conftest$ac_exeext conftest.$ac_ext
13508 fi
13509
13510
13511 CFLAGS="$xorg_testset_save_CFLAGS"
13512
13513 eval supported=\$$cacheid
13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13515 printf "%s\n" "$supported" >&6; }
13516 if test "$supported" = "yes" ; then
13517 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13518 found="yes"
13519 fi
13520 fi
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538 xorg_testset_save_CFLAGS="$CFLAGS"
13539
13540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13543 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13544 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13545 then :
13546 printf %s "(cached) " >&6
13547 else $as_nop
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550 int i;
13551 _ACEOF
13552 if ac_fn_c_try_compile "$LINENO"
13553 then :
13554 xorg_cv_cc_flag_unknown_warning_option=yes
13555 else $as_nop
13556 xorg_cv_cc_flag_unknown_warning_option=no
13557 fi
13558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13559 fi
13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13561 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13563 CFLAGS="$xorg_testset_save_CFLAGS"
13564 fi
13565
13566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13569 fi
13570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13572 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13573 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13574 then :
13575 printf %s "(cached) " >&6
13576 else $as_nop
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13579 int i;
13580 _ACEOF
13581 if ac_fn_c_try_compile "$LINENO"
13582 then :
13583 xorg_cv_cc_flag_unused_command_line_argument=yes
13584 else $as_nop
13585 xorg_cv_cc_flag_unused_command_line_argument=no
13586 fi
13587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13588 fi
13589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13590 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13592 CFLAGS="$xorg_testset_save_CFLAGS"
13593 fi
13594
13595 found="no"
13596
13597 if test $found = "no" ; then
13598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13600 fi
13601
13602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13604 fi
13605
13606 CFLAGS="$CFLAGS -Wstrict-prototypes"
13607
13608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13609 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13610 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13611 if eval test \${$cacheid+y}
13612 then :
13613 printf %s "(cached) " >&6
13614 else $as_nop
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13617 int i;
13618 int
13619 main (void)
13620 {
13621
13622 ;
13623 return 0;
13624 }
13625 _ACEOF
13626 if ac_fn_c_try_link "$LINENO"
13627 then :
13628 eval $cacheid=yes
13629 else $as_nop
13630 eval $cacheid=no
13631 fi
13632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13633 conftest$ac_exeext conftest.$ac_ext
13634 fi
13635
13636
13637 CFLAGS="$xorg_testset_save_CFLAGS"
13638
13639 eval supported=\$$cacheid
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13641 printf "%s\n" "$supported" >&6; }
13642 if test "$supported" = "yes" ; then
13643 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13644 found="yes"
13645 fi
13646 fi
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662 xorg_testset_save_CFLAGS="$CFLAGS"
13663
13664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13667 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13668 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13669 then :
13670 printf %s "(cached) " >&6
13671 else $as_nop
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13674 int i;
13675 _ACEOF
13676 if ac_fn_c_try_compile "$LINENO"
13677 then :
13678 xorg_cv_cc_flag_unknown_warning_option=yes
13679 else $as_nop
13680 xorg_cv_cc_flag_unknown_warning_option=no
13681 fi
13682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13683 fi
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13685 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13687 CFLAGS="$xorg_testset_save_CFLAGS"
13688 fi
13689
13690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693 fi
13694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13698 then :
13699 printf %s "(cached) " >&6
13700 else $as_nop
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703 int i;
13704 _ACEOF
13705 if ac_fn_c_try_compile "$LINENO"
13706 then :
13707 xorg_cv_cc_flag_unused_command_line_argument=yes
13708 else $as_nop
13709 xorg_cv_cc_flag_unused_command_line_argument=no
13710 fi
13711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13712 fi
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13714 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13716 CFLAGS="$xorg_testset_save_CFLAGS"
13717 fi
13718
13719 found="no"
13720
13721 if test $found = "no" ; then
13722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13724 fi
13725
13726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13728 fi
13729
13730 CFLAGS="$CFLAGS -Wmissing-prototypes"
13731
13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13733 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13734 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13735 if eval test \${$cacheid+y}
13736 then :
13737 printf %s "(cached) " >&6
13738 else $as_nop
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741 int i;
13742 int
13743 main (void)
13744 {
13745
13746 ;
13747 return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_link "$LINENO"
13751 then :
13752 eval $cacheid=yes
13753 else $as_nop
13754 eval $cacheid=no
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13757 conftest$ac_exeext conftest.$ac_ext
13758 fi
13759
13760
13761 CFLAGS="$xorg_testset_save_CFLAGS"
13762
13763 eval supported=\$$cacheid
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13765 printf "%s\n" "$supported" >&6; }
13766 if test "$supported" = "yes" ; then
13767 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13768 found="yes"
13769 fi
13770 fi
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786 xorg_testset_save_CFLAGS="$CFLAGS"
13787
13788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13791 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13792 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13793 then :
13794 printf %s "(cached) " >&6
13795 else $as_nop
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13798 int i;
13799 _ACEOF
13800 if ac_fn_c_try_compile "$LINENO"
13801 then :
13802 xorg_cv_cc_flag_unknown_warning_option=yes
13803 else $as_nop
13804 xorg_cv_cc_flag_unknown_warning_option=no
13805 fi
13806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13807 fi
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13809 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13811 CFLAGS="$xorg_testset_save_CFLAGS"
13812 fi
13813
13814 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13817 fi
13818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13820 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13821 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13822 then :
13823 printf %s "(cached) " >&6
13824 else $as_nop
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 int i;
13828 _ACEOF
13829 if ac_fn_c_try_compile "$LINENO"
13830 then :
13831 xorg_cv_cc_flag_unused_command_line_argument=yes
13832 else $as_nop
13833 xorg_cv_cc_flag_unused_command_line_argument=no
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13836 fi
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13838 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13840 CFLAGS="$xorg_testset_save_CFLAGS"
13841 fi
13842
13843 found="no"
13844
13845 if test $found = "no" ; then
13846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13848 fi
13849
13850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13852 fi
13853
13854 CFLAGS="$CFLAGS -Wnested-externs"
13855
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13857 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13858 cacheid=xorg_cv_cc_flag__Wnested_externs
13859 if eval test \${$cacheid+y}
13860 then :
13861 printf %s "(cached) " >&6
13862 else $as_nop
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13865 int i;
13866 int
13867 main (void)
13868 {
13869
13870 ;
13871 return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_link "$LINENO"
13875 then :
13876 eval $cacheid=yes
13877 else $as_nop
13878 eval $cacheid=no
13879 fi
13880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13881 conftest$ac_exeext conftest.$ac_ext
13882 fi
13883
13884
13885 CFLAGS="$xorg_testset_save_CFLAGS"
13886
13887 eval supported=\$$cacheid
13888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13889 printf "%s\n" "$supported" >&6; }
13890 if test "$supported" = "yes" ; then
13891 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13892 found="yes"
13893 fi
13894 fi
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910 xorg_testset_save_CFLAGS="$CFLAGS"
13911
13912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13916 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13917 then :
13918 printf %s "(cached) " >&6
13919 else $as_nop
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13922 int i;
13923 _ACEOF
13924 if ac_fn_c_try_compile "$LINENO"
13925 then :
13926 xorg_cv_cc_flag_unknown_warning_option=yes
13927 else $as_nop
13928 xorg_cv_cc_flag_unknown_warning_option=no
13929 fi
13930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13931 fi
13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13933 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13935 CFLAGS="$xorg_testset_save_CFLAGS"
13936 fi
13937
13938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13941 fi
13942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13944 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13945 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13946 then :
13947 printf %s "(cached) " >&6
13948 else $as_nop
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13951 int i;
13952 _ACEOF
13953 if ac_fn_c_try_compile "$LINENO"
13954 then :
13955 xorg_cv_cc_flag_unused_command_line_argument=yes
13956 else $as_nop
13957 xorg_cv_cc_flag_unused_command_line_argument=no
13958 fi
13959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13960 fi
13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13962 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13964 CFLAGS="$xorg_testset_save_CFLAGS"
13965 fi
13966
13967 found="no"
13968
13969 if test $found = "no" ; then
13970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13972 fi
13973
13974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13976 fi
13977
13978 CFLAGS="$CFLAGS -Wbad-function-cast"
13979
13980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13981 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13982 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13983 if eval test \${$cacheid+y}
13984 then :
13985 printf %s "(cached) " >&6
13986 else $as_nop
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 int i;
13990 int
13991 main (void)
13992 {
13993
13994 ;
13995 return 0;
13996 }
13997 _ACEOF
13998 if ac_fn_c_try_link "$LINENO"
13999 then :
14000 eval $cacheid=yes
14001 else $as_nop
14002 eval $cacheid=no
14003 fi
14004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14005 conftest$ac_exeext conftest.$ac_ext
14006 fi
14007
14008
14009 CFLAGS="$xorg_testset_save_CFLAGS"
14010
14011 eval supported=\$$cacheid
14012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14013 printf "%s\n" "$supported" >&6; }
14014 if test "$supported" = "yes" ; then
14015 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14016 found="yes"
14017 fi
14018 fi
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034 xorg_testset_save_CFLAGS="$CFLAGS"
14035
14036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14039 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14040 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14041 then :
14042 printf %s "(cached) " >&6
14043 else $as_nop
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046 int i;
14047 _ACEOF
14048 if ac_fn_c_try_compile "$LINENO"
14049 then :
14050 xorg_cv_cc_flag_unknown_warning_option=yes
14051 else $as_nop
14052 xorg_cv_cc_flag_unknown_warning_option=no
14053 fi
14054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14055 fi
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14057 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14059 CFLAGS="$xorg_testset_save_CFLAGS"
14060 fi
14061
14062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14065 fi
14066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14068 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14069 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14070 then :
14071 printf %s "(cached) " >&6
14072 else $as_nop
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14075 int i;
14076 _ACEOF
14077 if ac_fn_c_try_compile "$LINENO"
14078 then :
14079 xorg_cv_cc_flag_unused_command_line_argument=yes
14080 else $as_nop
14081 xorg_cv_cc_flag_unused_command_line_argument=no
14082 fi
14083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14084 fi
14085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14086 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14088 CFLAGS="$xorg_testset_save_CFLAGS"
14089 fi
14090
14091 found="no"
14092
14093 if test $found = "no" ; then
14094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14096 fi
14097
14098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14100 fi
14101
14102 CFLAGS="$CFLAGS -Wold-style-definition"
14103
14104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14105 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14106 cacheid=xorg_cv_cc_flag__Wold_style_definition
14107 if eval test \${$cacheid+y}
14108 then :
14109 printf %s "(cached) " >&6
14110 else $as_nop
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14113 int i;
14114 int
14115 main (void)
14116 {
14117
14118 ;
14119 return 0;
14120 }
14121 _ACEOF
14122 if ac_fn_c_try_link "$LINENO"
14123 then :
14124 eval $cacheid=yes
14125 else $as_nop
14126 eval $cacheid=no
14127 fi
14128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14129 conftest$ac_exeext conftest.$ac_ext
14130 fi
14131
14132
14133 CFLAGS="$xorg_testset_save_CFLAGS"
14134
14135 eval supported=\$$cacheid
14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14137 printf "%s\n" "$supported" >&6; }
14138 if test "$supported" = "yes" ; then
14139 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14140 found="yes"
14141 fi
14142 fi
14143
14144 if test $found = "no" ; then
14145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14147 fi
14148
14149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14151 fi
14152
14153 CFLAGS="$CFLAGS -fd"
14154
14155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14156 printf %s "checking if $CC supports -fd... " >&6; }
14157 cacheid=xorg_cv_cc_flag__fd
14158 if eval test \${$cacheid+y}
14159 then :
14160 printf %s "(cached) " >&6
14161 else $as_nop
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164 int i;
14165 int
14166 main (void)
14167 {
14168
14169 ;
14170 return 0;
14171 }
14172 _ACEOF
14173 if ac_fn_c_try_link "$LINENO"
14174 then :
14175 eval $cacheid=yes
14176 else $as_nop
14177 eval $cacheid=no
14178 fi
14179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14180 conftest$ac_exeext conftest.$ac_ext
14181 fi
14182
14183
14184 CFLAGS="$xorg_testset_save_CFLAGS"
14185
14186 eval supported=\$$cacheid
14187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14188 printf "%s\n" "$supported" >&6; }
14189 if test "$supported" = "yes" ; then
14190 BASE_CFLAGS="$BASE_CFLAGS -fd"
14191 found="yes"
14192 fi
14193 fi
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209 xorg_testset_save_CFLAGS="$CFLAGS"
14210
14211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14214 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14215 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14216 then :
14217 printf %s "(cached) " >&6
14218 else $as_nop
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14221 int i;
14222 _ACEOF
14223 if ac_fn_c_try_compile "$LINENO"
14224 then :
14225 xorg_cv_cc_flag_unknown_warning_option=yes
14226 else $as_nop
14227 xorg_cv_cc_flag_unknown_warning_option=no
14228 fi
14229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14230 fi
14231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14232 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14234 CFLAGS="$xorg_testset_save_CFLAGS"
14235 fi
14236
14237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14240 fi
14241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14243 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14244 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14245 then :
14246 printf %s "(cached) " >&6
14247 else $as_nop
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 int i;
14251 _ACEOF
14252 if ac_fn_c_try_compile "$LINENO"
14253 then :
14254 xorg_cv_cc_flag_unused_command_line_argument=yes
14255 else $as_nop
14256 xorg_cv_cc_flag_unused_command_line_argument=no
14257 fi
14258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14259 fi
14260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14261 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14263 CFLAGS="$xorg_testset_save_CFLAGS"
14264 fi
14265
14266 found="no"
14267
14268 if test $found = "no" ; then
14269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14271 fi
14272
14273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14275 fi
14276
14277 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14278
14279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14280 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14281 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14282 if eval test \${$cacheid+y}
14283 then :
14284 printf %s "(cached) " >&6
14285 else $as_nop
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14288 int i;
14289 int
14290 main (void)
14291 {
14292
14293 ;
14294 return 0;
14295 }
14296 _ACEOF
14297 if ac_fn_c_try_link "$LINENO"
14298 then :
14299 eval $cacheid=yes
14300 else $as_nop
14301 eval $cacheid=no
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14304 conftest$ac_exeext conftest.$ac_ext
14305 fi
14306
14307
14308 CFLAGS="$xorg_testset_save_CFLAGS"
14309
14310 eval supported=\$$cacheid
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14312 printf "%s\n" "$supported" >&6; }
14313 if test "$supported" = "yes" ; then
14314 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14315 found="yes"
14316 fi
14317 fi
14318
14319
14320
14321
14322
14323 # This chunk adds additional warnings that could catch undesired effects.
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337 xorg_testset_save_CFLAGS="$CFLAGS"
14338
14339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14342 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14343 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14344 then :
14345 printf %s "(cached) " >&6
14346 else $as_nop
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349 int i;
14350 _ACEOF
14351 if ac_fn_c_try_compile "$LINENO"
14352 then :
14353 xorg_cv_cc_flag_unknown_warning_option=yes
14354 else $as_nop
14355 xorg_cv_cc_flag_unknown_warning_option=no
14356 fi
14357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14358 fi
14359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14360 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14362 CFLAGS="$xorg_testset_save_CFLAGS"
14363 fi
14364
14365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14368 fi
14369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14371 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14372 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14373 then :
14374 printf %s "(cached) " >&6
14375 else $as_nop
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 int i;
14379 _ACEOF
14380 if ac_fn_c_try_compile "$LINENO"
14381 then :
14382 xorg_cv_cc_flag_unused_command_line_argument=yes
14383 else $as_nop
14384 xorg_cv_cc_flag_unused_command_line_argument=no
14385 fi
14386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14387 fi
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14389 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14391 CFLAGS="$xorg_testset_save_CFLAGS"
14392 fi
14393
14394 found="no"
14395
14396 if test $found = "no" ; then
14397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14399 fi
14400
14401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14403 fi
14404
14405 CFLAGS="$CFLAGS -Wunused"
14406
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14408 printf %s "checking if $CC supports -Wunused... " >&6; }
14409 cacheid=xorg_cv_cc_flag__Wunused
14410 if eval test \${$cacheid+y}
14411 then :
14412 printf %s "(cached) " >&6
14413 else $as_nop
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416 int i;
14417 int
14418 main (void)
14419 {
14420
14421 ;
14422 return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_c_try_link "$LINENO"
14426 then :
14427 eval $cacheid=yes
14428 else $as_nop
14429 eval $cacheid=no
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14432 conftest$ac_exeext conftest.$ac_ext
14433 fi
14434
14435
14436 CFLAGS="$xorg_testset_save_CFLAGS"
14437
14438 eval supported=\$$cacheid
14439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14440 printf "%s\n" "$supported" >&6; }
14441 if test "$supported" = "yes" ; then
14442 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14443 found="yes"
14444 fi
14445 fi
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461 xorg_testset_save_CFLAGS="$CFLAGS"
14462
14463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14466 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14467 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14468 then :
14469 printf %s "(cached) " >&6
14470 else $as_nop
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473 int i;
14474 _ACEOF
14475 if ac_fn_c_try_compile "$LINENO"
14476 then :
14477 xorg_cv_cc_flag_unknown_warning_option=yes
14478 else $as_nop
14479 xorg_cv_cc_flag_unknown_warning_option=no
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14482 fi
14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14484 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14486 CFLAGS="$xorg_testset_save_CFLAGS"
14487 fi
14488
14489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14492 fi
14493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14497 then :
14498 printf %s "(cached) " >&6
14499 else $as_nop
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 int i;
14503 _ACEOF
14504 if ac_fn_c_try_compile "$LINENO"
14505 then :
14506 xorg_cv_cc_flag_unused_command_line_argument=yes
14507 else $as_nop
14508 xorg_cv_cc_flag_unused_command_line_argument=no
14509 fi
14510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14511 fi
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14513 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14515 CFLAGS="$xorg_testset_save_CFLAGS"
14516 fi
14517
14518 found="no"
14519
14520 if test $found = "no" ; then
14521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14523 fi
14524
14525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14527 fi
14528
14529 CFLAGS="$CFLAGS -Wuninitialized"
14530
14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14532 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14533 cacheid=xorg_cv_cc_flag__Wuninitialized
14534 if eval test \${$cacheid+y}
14535 then :
14536 printf %s "(cached) " >&6
14537 else $as_nop
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540 int i;
14541 int
14542 main (void)
14543 {
14544
14545 ;
14546 return 0;
14547 }
14548 _ACEOF
14549 if ac_fn_c_try_link "$LINENO"
14550 then :
14551 eval $cacheid=yes
14552 else $as_nop
14553 eval $cacheid=no
14554 fi
14555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14556 conftest$ac_exeext conftest.$ac_ext
14557 fi
14558
14559
14560 CFLAGS="$xorg_testset_save_CFLAGS"
14561
14562 eval supported=\$$cacheid
14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14564 printf "%s\n" "$supported" >&6; }
14565 if test "$supported" = "yes" ; then
14566 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14567 found="yes"
14568 fi
14569 fi
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585 xorg_testset_save_CFLAGS="$CFLAGS"
14586
14587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14590 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14591 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14592 then :
14593 printf %s "(cached) " >&6
14594 else $as_nop
14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14597 int i;
14598 _ACEOF
14599 if ac_fn_c_try_compile "$LINENO"
14600 then :
14601 xorg_cv_cc_flag_unknown_warning_option=yes
14602 else $as_nop
14603 xorg_cv_cc_flag_unknown_warning_option=no
14604 fi
14605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14606 fi
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14608 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14610 CFLAGS="$xorg_testset_save_CFLAGS"
14611 fi
14612
14613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14616 fi
14617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14621 then :
14622 printf %s "(cached) " >&6
14623 else $as_nop
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h. */
14626 int i;
14627 _ACEOF
14628 if ac_fn_c_try_compile "$LINENO"
14629 then :
14630 xorg_cv_cc_flag_unused_command_line_argument=yes
14631 else $as_nop
14632 xorg_cv_cc_flag_unused_command_line_argument=no
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14635 fi
14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14637 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14639 CFLAGS="$xorg_testset_save_CFLAGS"
14640 fi
14641
14642 found="no"
14643
14644 if test $found = "no" ; then
14645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14647 fi
14648
14649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14651 fi
14652
14653 CFLAGS="$CFLAGS -Wshadow"
14654
14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14656 printf %s "checking if $CC supports -Wshadow... " >&6; }
14657 cacheid=xorg_cv_cc_flag__Wshadow
14658 if eval test \${$cacheid+y}
14659 then :
14660 printf %s "(cached) " >&6
14661 else $as_nop
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664 int i;
14665 int
14666 main (void)
14667 {
14668
14669 ;
14670 return 0;
14671 }
14672 _ACEOF
14673 if ac_fn_c_try_link "$LINENO"
14674 then :
14675 eval $cacheid=yes
14676 else $as_nop
14677 eval $cacheid=no
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14680 conftest$ac_exeext conftest.$ac_ext
14681 fi
14682
14683
14684 CFLAGS="$xorg_testset_save_CFLAGS"
14685
14686 eval supported=\$$cacheid
14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14688 printf "%s\n" "$supported" >&6; }
14689 if test "$supported" = "yes" ; then
14690 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14691 found="yes"
14692 fi
14693 fi
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709 xorg_testset_save_CFLAGS="$CFLAGS"
14710
14711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14714 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14715 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14716 then :
14717 printf %s "(cached) " >&6
14718 else $as_nop
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721 int i;
14722 _ACEOF
14723 if ac_fn_c_try_compile "$LINENO"
14724 then :
14725 xorg_cv_cc_flag_unknown_warning_option=yes
14726 else $as_nop
14727 xorg_cv_cc_flag_unknown_warning_option=no
14728 fi
14729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14730 fi
14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14732 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14734 CFLAGS="$xorg_testset_save_CFLAGS"
14735 fi
14736
14737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14740 fi
14741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14743 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14744 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14745 then :
14746 printf %s "(cached) " >&6
14747 else $as_nop
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14750 int i;
14751 _ACEOF
14752 if ac_fn_c_try_compile "$LINENO"
14753 then :
14754 xorg_cv_cc_flag_unused_command_line_argument=yes
14755 else $as_nop
14756 xorg_cv_cc_flag_unused_command_line_argument=no
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14759 fi
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14761 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14763 CFLAGS="$xorg_testset_save_CFLAGS"
14764 fi
14765
14766 found="no"
14767
14768 if test $found = "no" ; then
14769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14771 fi
14772
14773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14775 fi
14776
14777 CFLAGS="$CFLAGS -Wmissing-noreturn"
14778
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14780 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14781 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14782 if eval test \${$cacheid+y}
14783 then :
14784 printf %s "(cached) " >&6
14785 else $as_nop
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 int i;
14789 int
14790 main (void)
14791 {
14792
14793 ;
14794 return 0;
14795 }
14796 _ACEOF
14797 if ac_fn_c_try_link "$LINENO"
14798 then :
14799 eval $cacheid=yes
14800 else $as_nop
14801 eval $cacheid=no
14802 fi
14803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14804 conftest$ac_exeext conftest.$ac_ext
14805 fi
14806
14807
14808 CFLAGS="$xorg_testset_save_CFLAGS"
14809
14810 eval supported=\$$cacheid
14811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14812 printf "%s\n" "$supported" >&6; }
14813 if test "$supported" = "yes" ; then
14814 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14815 found="yes"
14816 fi
14817 fi
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833 xorg_testset_save_CFLAGS="$CFLAGS"
14834
14835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14840 then :
14841 printf %s "(cached) " >&6
14842 else $as_nop
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 int i;
14846 _ACEOF
14847 if ac_fn_c_try_compile "$LINENO"
14848 then :
14849 xorg_cv_cc_flag_unknown_warning_option=yes
14850 else $as_nop
14851 xorg_cv_cc_flag_unknown_warning_option=no
14852 fi
14853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14854 fi
14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14858 CFLAGS="$xorg_testset_save_CFLAGS"
14859 fi
14860
14861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14864 fi
14865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14869 then :
14870 printf %s "(cached) " >&6
14871 else $as_nop
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14874 int i;
14875 _ACEOF
14876 if ac_fn_c_try_compile "$LINENO"
14877 then :
14878 xorg_cv_cc_flag_unused_command_line_argument=yes
14879 else $as_nop
14880 xorg_cv_cc_flag_unused_command_line_argument=no
14881 fi
14882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14883 fi
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14887 CFLAGS="$xorg_testset_save_CFLAGS"
14888 fi
14889
14890 found="no"
14891
14892 if test $found = "no" ; then
14893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14895 fi
14896
14897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14899 fi
14900
14901 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14902
14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14904 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14905 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14906 if eval test \${$cacheid+y}
14907 then :
14908 printf %s "(cached) " >&6
14909 else $as_nop
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 int i;
14913 int
14914 main (void)
14915 {
14916
14917 ;
14918 return 0;
14919 }
14920 _ACEOF
14921 if ac_fn_c_try_link "$LINENO"
14922 then :
14923 eval $cacheid=yes
14924 else $as_nop
14925 eval $cacheid=no
14926 fi
14927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14928 conftest$ac_exeext conftest.$ac_ext
14929 fi
14930
14931
14932 CFLAGS="$xorg_testset_save_CFLAGS"
14933
14934 eval supported=\$$cacheid
14935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14936 printf "%s\n" "$supported" >&6; }
14937 if test "$supported" = "yes" ; then
14938 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14939 found="yes"
14940 fi
14941 fi
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957 xorg_testset_save_CFLAGS="$CFLAGS"
14958
14959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14964 then :
14965 printf %s "(cached) " >&6
14966 else $as_nop
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 int i;
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"
14972 then :
14973 xorg_cv_cc_flag_unknown_warning_option=yes
14974 else $as_nop
14975 xorg_cv_cc_flag_unknown_warning_option=no
14976 fi
14977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14978 fi
14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14982 CFLAGS="$xorg_testset_save_CFLAGS"
14983 fi
14984
14985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14988 fi
14989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14993 then :
14994 printf %s "(cached) " >&6
14995 else $as_nop
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998 int i;
14999 _ACEOF
15000 if ac_fn_c_try_compile "$LINENO"
15001 then :
15002 xorg_cv_cc_flag_unused_command_line_argument=yes
15003 else $as_nop
15004 xorg_cv_cc_flag_unused_command_line_argument=no
15005 fi
15006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15007 fi
15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15011 CFLAGS="$xorg_testset_save_CFLAGS"
15012 fi
15013
15014 found="no"
15015
15016 if test $found = "no" ; then
15017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15019 fi
15020
15021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15023 fi
15024
15025 CFLAGS="$CFLAGS -Wredundant-decls"
15026
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15028 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15029 cacheid=xorg_cv_cc_flag__Wredundant_decls
15030 if eval test \${$cacheid+y}
15031 then :
15032 printf %s "(cached) " >&6
15033 else $as_nop
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 int i;
15037 int
15038 main (void)
15039 {
15040
15041 ;
15042 return 0;
15043 }
15044 _ACEOF
15045 if ac_fn_c_try_link "$LINENO"
15046 then :
15047 eval $cacheid=yes
15048 else $as_nop
15049 eval $cacheid=no
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15052 conftest$ac_exeext conftest.$ac_ext
15053 fi
15054
15055
15056 CFLAGS="$xorg_testset_save_CFLAGS"
15057
15058 eval supported=\$$cacheid
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15060 printf "%s\n" "$supported" >&6; }
15061 if test "$supported" = "yes" ; then
15062 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15063 found="yes"
15064 fi
15065 fi
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081 xorg_testset_save_CFLAGS="$CFLAGS"
15082
15083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15087 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15088 then :
15089 printf %s "(cached) " >&6
15090 else $as_nop
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 int i;
15094 _ACEOF
15095 if ac_fn_c_try_compile "$LINENO"
15096 then :
15097 xorg_cv_cc_flag_unknown_warning_option=yes
15098 else $as_nop
15099 xorg_cv_cc_flag_unknown_warning_option=no
15100 fi
15101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15102 fi
15103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15104 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15106 CFLAGS="$xorg_testset_save_CFLAGS"
15107 fi
15108
15109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15112 fi
15113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15115 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15116 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15117 then :
15118 printf %s "(cached) " >&6
15119 else $as_nop
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 int i;
15123 _ACEOF
15124 if ac_fn_c_try_compile "$LINENO"
15125 then :
15126 xorg_cv_cc_flag_unused_command_line_argument=yes
15127 else $as_nop
15128 xorg_cv_cc_flag_unused_command_line_argument=no
15129 fi
15130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15131 fi
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15133 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15135 CFLAGS="$xorg_testset_save_CFLAGS"
15136 fi
15137
15138 found="no"
15139
15140 if test $found = "no" ; then
15141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15143 fi
15144
15145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15147 fi
15148
15149 CFLAGS="$CFLAGS -Wlogical-op"
15150
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15152 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15153 cacheid=xorg_cv_cc_flag__Wlogical_op
15154 if eval test \${$cacheid+y}
15155 then :
15156 printf %s "(cached) " >&6
15157 else $as_nop
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 int i;
15161 int
15162 main (void)
15163 {
15164
15165 ;
15166 return 0;
15167 }
15168 _ACEOF
15169 if ac_fn_c_try_link "$LINENO"
15170 then :
15171 eval $cacheid=yes
15172 else $as_nop
15173 eval $cacheid=no
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15176 conftest$ac_exeext conftest.$ac_ext
15177 fi
15178
15179
15180 CFLAGS="$xorg_testset_save_CFLAGS"
15181
15182 eval supported=\$$cacheid
15183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15184 printf "%s\n" "$supported" >&6; }
15185 if test "$supported" = "yes" ; then
15186 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15187 found="yes"
15188 fi
15189 fi
15190
15191
15192
15193 # These are currently disabled because they are noisy. They will be enabled
15194 # in the future once the codebase is sufficiently modernized to silence
15195 # them. For now, I don't want them to drown out the other warnings.
15196 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15197 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15198 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15199
15200 # Turn some warnings into errors, so we don't accidently get successful builds
15201 # when there are problems that should be fixed.
15202
15203 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217 xorg_testset_save_CFLAGS="$CFLAGS"
15218
15219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15222 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15223 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15224 then :
15225 printf %s "(cached) " >&6
15226 else $as_nop
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 int i;
15230 _ACEOF
15231 if ac_fn_c_try_compile "$LINENO"
15232 then :
15233 xorg_cv_cc_flag_unknown_warning_option=yes
15234 else $as_nop
15235 xorg_cv_cc_flag_unknown_warning_option=no
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15238 fi
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15240 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15242 CFLAGS="$xorg_testset_save_CFLAGS"
15243 fi
15244
15245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15248 fi
15249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15251 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15252 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15253 then :
15254 printf %s "(cached) " >&6
15255 else $as_nop
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 int i;
15259 _ACEOF
15260 if ac_fn_c_try_compile "$LINENO"
15261 then :
15262 xorg_cv_cc_flag_unused_command_line_argument=yes
15263 else $as_nop
15264 xorg_cv_cc_flag_unused_command_line_argument=no
15265 fi
15266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15267 fi
15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15269 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15271 CFLAGS="$xorg_testset_save_CFLAGS"
15272 fi
15273
15274 found="no"
15275
15276 if test $found = "no" ; then
15277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15279 fi
15280
15281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15283 fi
15284
15285 CFLAGS="$CFLAGS -Werror=implicit"
15286
15287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15288 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15289 cacheid=xorg_cv_cc_flag__Werror_implicit
15290 if eval test \${$cacheid+y}
15291 then :
15292 printf %s "(cached) " >&6
15293 else $as_nop
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15296 int i;
15297 int
15298 main (void)
15299 {
15300
15301 ;
15302 return 0;
15303 }
15304 _ACEOF
15305 if ac_fn_c_try_link "$LINENO"
15306 then :
15307 eval $cacheid=yes
15308 else $as_nop
15309 eval $cacheid=no
15310 fi
15311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15312 conftest$ac_exeext conftest.$ac_ext
15313 fi
15314
15315
15316 CFLAGS="$xorg_testset_save_CFLAGS"
15317
15318 eval supported=\$$cacheid
15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15320 printf "%s\n" "$supported" >&6; }
15321 if test "$supported" = "yes" ; then
15322 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15323 found="yes"
15324 fi
15325 fi
15326
15327 if test $found = "no" ; then
15328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15330 fi
15331
15332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15334 fi
15335
15336 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15337
15338 { 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
15339 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15340 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15341 if eval test \${$cacheid+y}
15342 then :
15343 printf %s "(cached) " >&6
15344 else $as_nop
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 int i;
15348 int
15349 main (void)
15350 {
15351
15352 ;
15353 return 0;
15354 }
15355 _ACEOF
15356 if ac_fn_c_try_link "$LINENO"
15357 then :
15358 eval $cacheid=yes
15359 else $as_nop
15360 eval $cacheid=no
15361 fi
15362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15363 conftest$ac_exeext conftest.$ac_ext
15364 fi
15365
15366
15367 CFLAGS="$xorg_testset_save_CFLAGS"
15368
15369 eval supported=\$$cacheid
15370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15371 printf "%s\n" "$supported" >&6; }
15372 if test "$supported" = "yes" ; then
15373 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15374 found="yes"
15375 fi
15376 fi
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392 xorg_testset_save_CFLAGS="$CFLAGS"
15393
15394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15397 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15398 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15399 then :
15400 printf %s "(cached) " >&6
15401 else $as_nop
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404 int i;
15405 _ACEOF
15406 if ac_fn_c_try_compile "$LINENO"
15407 then :
15408 xorg_cv_cc_flag_unknown_warning_option=yes
15409 else $as_nop
15410 xorg_cv_cc_flag_unknown_warning_option=no
15411 fi
15412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15413 fi
15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15415 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15417 CFLAGS="$xorg_testset_save_CFLAGS"
15418 fi
15419
15420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15423 fi
15424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15426 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15427 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15428 then :
15429 printf %s "(cached) " >&6
15430 else $as_nop
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433 int i;
15434 _ACEOF
15435 if ac_fn_c_try_compile "$LINENO"
15436 then :
15437 xorg_cv_cc_flag_unused_command_line_argument=yes
15438 else $as_nop
15439 xorg_cv_cc_flag_unused_command_line_argument=no
15440 fi
15441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15442 fi
15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15444 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15446 CFLAGS="$xorg_testset_save_CFLAGS"
15447 fi
15448
15449 found="no"
15450
15451 if test $found = "no" ; then
15452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15454 fi
15455
15456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15458 fi
15459
15460 CFLAGS="$CFLAGS -Werror=nonnull"
15461
15462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15463 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15464 cacheid=xorg_cv_cc_flag__Werror_nonnull
15465 if eval test \${$cacheid+y}
15466 then :
15467 printf %s "(cached) " >&6
15468 else $as_nop
15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15471 int i;
15472 int
15473 main (void)
15474 {
15475
15476 ;
15477 return 0;
15478 }
15479 _ACEOF
15480 if ac_fn_c_try_link "$LINENO"
15481 then :
15482 eval $cacheid=yes
15483 else $as_nop
15484 eval $cacheid=no
15485 fi
15486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15487 conftest$ac_exeext conftest.$ac_ext
15488 fi
15489
15490
15491 CFLAGS="$xorg_testset_save_CFLAGS"
15492
15493 eval supported=\$$cacheid
15494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15495 printf "%s\n" "$supported" >&6; }
15496 if test "$supported" = "yes" ; then
15497 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15498 found="yes"
15499 fi
15500 fi
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516 xorg_testset_save_CFLAGS="$CFLAGS"
15517
15518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15521 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15522 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15523 then :
15524 printf %s "(cached) " >&6
15525 else $as_nop
15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15527 /* end confdefs.h. */
15528 int i;
15529 _ACEOF
15530 if ac_fn_c_try_compile "$LINENO"
15531 then :
15532 xorg_cv_cc_flag_unknown_warning_option=yes
15533 else $as_nop
15534 xorg_cv_cc_flag_unknown_warning_option=no
15535 fi
15536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15537 fi
15538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15539 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15541 CFLAGS="$xorg_testset_save_CFLAGS"
15542 fi
15543
15544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15547 fi
15548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15550 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15551 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15552 then :
15553 printf %s "(cached) " >&6
15554 else $as_nop
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 int i;
15558 _ACEOF
15559 if ac_fn_c_try_compile "$LINENO"
15560 then :
15561 xorg_cv_cc_flag_unused_command_line_argument=yes
15562 else $as_nop
15563 xorg_cv_cc_flag_unused_command_line_argument=no
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15566 fi
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15568 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15570 CFLAGS="$xorg_testset_save_CFLAGS"
15571 fi
15572
15573 found="no"
15574
15575 if test $found = "no" ; then
15576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15578 fi
15579
15580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15582 fi
15583
15584 CFLAGS="$CFLAGS -Werror=init-self"
15585
15586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15587 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15588 cacheid=xorg_cv_cc_flag__Werror_init_self
15589 if eval test \${$cacheid+y}
15590 then :
15591 printf %s "(cached) " >&6
15592 else $as_nop
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595 int i;
15596 int
15597 main (void)
15598 {
15599
15600 ;
15601 return 0;
15602 }
15603 _ACEOF
15604 if ac_fn_c_try_link "$LINENO"
15605 then :
15606 eval $cacheid=yes
15607 else $as_nop
15608 eval $cacheid=no
15609 fi
15610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15611 conftest$ac_exeext conftest.$ac_ext
15612 fi
15613
15614
15615 CFLAGS="$xorg_testset_save_CFLAGS"
15616
15617 eval supported=\$$cacheid
15618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15619 printf "%s\n" "$supported" >&6; }
15620 if test "$supported" = "yes" ; then
15621 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15622 found="yes"
15623 fi
15624 fi
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640 xorg_testset_save_CFLAGS="$CFLAGS"
15641
15642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15645 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15646 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15647 then :
15648 printf %s "(cached) " >&6
15649 else $as_nop
15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15652 int i;
15653 _ACEOF
15654 if ac_fn_c_try_compile "$LINENO"
15655 then :
15656 xorg_cv_cc_flag_unknown_warning_option=yes
15657 else $as_nop
15658 xorg_cv_cc_flag_unknown_warning_option=no
15659 fi
15660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15661 fi
15662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15663 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15665 CFLAGS="$xorg_testset_save_CFLAGS"
15666 fi
15667
15668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15671 fi
15672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15674 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15675 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15676 then :
15677 printf %s "(cached) " >&6
15678 else $as_nop
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15681 int i;
15682 _ACEOF
15683 if ac_fn_c_try_compile "$LINENO"
15684 then :
15685 xorg_cv_cc_flag_unused_command_line_argument=yes
15686 else $as_nop
15687 xorg_cv_cc_flag_unused_command_line_argument=no
15688 fi
15689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15690 fi
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15692 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15694 CFLAGS="$xorg_testset_save_CFLAGS"
15695 fi
15696
15697 found="no"
15698
15699 if test $found = "no" ; then
15700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15702 fi
15703
15704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15706 fi
15707
15708 CFLAGS="$CFLAGS -Werror=main"
15709
15710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15711 printf %s "checking if $CC supports -Werror=main... " >&6; }
15712 cacheid=xorg_cv_cc_flag__Werror_main
15713 if eval test \${$cacheid+y}
15714 then :
15715 printf %s "(cached) " >&6
15716 else $as_nop
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15719 int i;
15720 int
15721 main (void)
15722 {
15723
15724 ;
15725 return 0;
15726 }
15727 _ACEOF
15728 if ac_fn_c_try_link "$LINENO"
15729 then :
15730 eval $cacheid=yes
15731 else $as_nop
15732 eval $cacheid=no
15733 fi
15734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15735 conftest$ac_exeext conftest.$ac_ext
15736 fi
15737
15738
15739 CFLAGS="$xorg_testset_save_CFLAGS"
15740
15741 eval supported=\$$cacheid
15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15743 printf "%s\n" "$supported" >&6; }
15744 if test "$supported" = "yes" ; then
15745 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15746 found="yes"
15747 fi
15748 fi
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764 xorg_testset_save_CFLAGS="$CFLAGS"
15765
15766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15769 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15770 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15771 then :
15772 printf %s "(cached) " >&6
15773 else $as_nop
15774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775 /* end confdefs.h. */
15776 int i;
15777 _ACEOF
15778 if ac_fn_c_try_compile "$LINENO"
15779 then :
15780 xorg_cv_cc_flag_unknown_warning_option=yes
15781 else $as_nop
15782 xorg_cv_cc_flag_unknown_warning_option=no
15783 fi
15784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15785 fi
15786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15787 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15789 CFLAGS="$xorg_testset_save_CFLAGS"
15790 fi
15791
15792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795 fi
15796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15798 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15799 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15800 then :
15801 printf %s "(cached) " >&6
15802 else $as_nop
15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805 int i;
15806 _ACEOF
15807 if ac_fn_c_try_compile "$LINENO"
15808 then :
15809 xorg_cv_cc_flag_unused_command_line_argument=yes
15810 else $as_nop
15811 xorg_cv_cc_flag_unused_command_line_argument=no
15812 fi
15813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15814 fi
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15816 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15818 CFLAGS="$xorg_testset_save_CFLAGS"
15819 fi
15820
15821 found="no"
15822
15823 if test $found = "no" ; then
15824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15826 fi
15827
15828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15830 fi
15831
15832 CFLAGS="$CFLAGS -Werror=missing-braces"
15833
15834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15835 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15836 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15837 if eval test \${$cacheid+y}
15838 then :
15839 printf %s "(cached) " >&6
15840 else $as_nop
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 int i;
15844 int
15845 main (void)
15846 {
15847
15848 ;
15849 return 0;
15850 }
15851 _ACEOF
15852 if ac_fn_c_try_link "$LINENO"
15853 then :
15854 eval $cacheid=yes
15855 else $as_nop
15856 eval $cacheid=no
15857 fi
15858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15859 conftest$ac_exeext conftest.$ac_ext
15860 fi
15861
15862
15863 CFLAGS="$xorg_testset_save_CFLAGS"
15864
15865 eval supported=\$$cacheid
15866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15867 printf "%s\n" "$supported" >&6; }
15868 if test "$supported" = "yes" ; then
15869 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15870 found="yes"
15871 fi
15872 fi
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888 xorg_testset_save_CFLAGS="$CFLAGS"
15889
15890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15893 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15894 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15895 then :
15896 printf %s "(cached) " >&6
15897 else $as_nop
15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15900 int i;
15901 _ACEOF
15902 if ac_fn_c_try_compile "$LINENO"
15903 then :
15904 xorg_cv_cc_flag_unknown_warning_option=yes
15905 else $as_nop
15906 xorg_cv_cc_flag_unknown_warning_option=no
15907 fi
15908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15909 fi
15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15911 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15913 CFLAGS="$xorg_testset_save_CFLAGS"
15914 fi
15915
15916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15919 fi
15920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15922 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15923 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15924 then :
15925 printf %s "(cached) " >&6
15926 else $as_nop
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15929 int i;
15930 _ACEOF
15931 if ac_fn_c_try_compile "$LINENO"
15932 then :
15933 xorg_cv_cc_flag_unused_command_line_argument=yes
15934 else $as_nop
15935 xorg_cv_cc_flag_unused_command_line_argument=no
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15938 fi
15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15940 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15942 CFLAGS="$xorg_testset_save_CFLAGS"
15943 fi
15944
15945 found="no"
15946
15947 if test $found = "no" ; then
15948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15950 fi
15951
15952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15954 fi
15955
15956 CFLAGS="$CFLAGS -Werror=sequence-point"
15957
15958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15959 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15960 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15961 if eval test \${$cacheid+y}
15962 then :
15963 printf %s "(cached) " >&6
15964 else $as_nop
15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966 /* end confdefs.h. */
15967 int i;
15968 int
15969 main (void)
15970 {
15971
15972 ;
15973 return 0;
15974 }
15975 _ACEOF
15976 if ac_fn_c_try_link "$LINENO"
15977 then :
15978 eval $cacheid=yes
15979 else $as_nop
15980 eval $cacheid=no
15981 fi
15982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15983 conftest$ac_exeext conftest.$ac_ext
15984 fi
15985
15986
15987 CFLAGS="$xorg_testset_save_CFLAGS"
15988
15989 eval supported=\$$cacheid
15990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15991 printf "%s\n" "$supported" >&6; }
15992 if test "$supported" = "yes" ; then
15993 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15994 found="yes"
15995 fi
15996 fi
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012 xorg_testset_save_CFLAGS="$CFLAGS"
16013
16014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16018 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16019 then :
16020 printf %s "(cached) " >&6
16021 else $as_nop
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024 int i;
16025 _ACEOF
16026 if ac_fn_c_try_compile "$LINENO"
16027 then :
16028 xorg_cv_cc_flag_unknown_warning_option=yes
16029 else $as_nop
16030 xorg_cv_cc_flag_unknown_warning_option=no
16031 fi
16032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16033 fi
16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16035 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16037 CFLAGS="$xorg_testset_save_CFLAGS"
16038 fi
16039
16040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16043 fi
16044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16046 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16047 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16048 then :
16049 printf %s "(cached) " >&6
16050 else $as_nop
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 int i;
16054 _ACEOF
16055 if ac_fn_c_try_compile "$LINENO"
16056 then :
16057 xorg_cv_cc_flag_unused_command_line_argument=yes
16058 else $as_nop
16059 xorg_cv_cc_flag_unused_command_line_argument=no
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16062 fi
16063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16066 CFLAGS="$xorg_testset_save_CFLAGS"
16067 fi
16068
16069 found="no"
16070
16071 if test $found = "no" ; then
16072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16074 fi
16075
16076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16078 fi
16079
16080 CFLAGS="$CFLAGS -Werror=return-type"
16081
16082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16083 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16084 cacheid=xorg_cv_cc_flag__Werror_return_type
16085 if eval test \${$cacheid+y}
16086 then :
16087 printf %s "(cached) " >&6
16088 else $as_nop
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091 int i;
16092 int
16093 main (void)
16094 {
16095
16096 ;
16097 return 0;
16098 }
16099 _ACEOF
16100 if ac_fn_c_try_link "$LINENO"
16101 then :
16102 eval $cacheid=yes
16103 else $as_nop
16104 eval $cacheid=no
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16107 conftest$ac_exeext conftest.$ac_ext
16108 fi
16109
16110
16111 CFLAGS="$xorg_testset_save_CFLAGS"
16112
16113 eval supported=\$$cacheid
16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16115 printf "%s\n" "$supported" >&6; }
16116 if test "$supported" = "yes" ; then
16117 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16118 found="yes"
16119 fi
16120 fi
16121
16122 if test $found = "no" ; then
16123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16125 fi
16126
16127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16129 fi
16130
16131 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16132
16133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16134 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16135 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16136 if eval test \${$cacheid+y}
16137 then :
16138 printf %s "(cached) " >&6
16139 else $as_nop
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16142 int i;
16143 int
16144 main (void)
16145 {
16146
16147 ;
16148 return 0;
16149 }
16150 _ACEOF
16151 if ac_fn_c_try_link "$LINENO"
16152 then :
16153 eval $cacheid=yes
16154 else $as_nop
16155 eval $cacheid=no
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16158 conftest$ac_exeext conftest.$ac_ext
16159 fi
16160
16161
16162 CFLAGS="$xorg_testset_save_CFLAGS"
16163
16164 eval supported=\$$cacheid
16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16166 printf "%s\n" "$supported" >&6; }
16167 if test "$supported" = "yes" ; then
16168 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16169 found="yes"
16170 fi
16171 fi
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187 xorg_testset_save_CFLAGS="$CFLAGS"
16188
16189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16192 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16193 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16194 then :
16195 printf %s "(cached) " >&6
16196 else $as_nop
16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h. */
16199 int i;
16200 _ACEOF
16201 if ac_fn_c_try_compile "$LINENO"
16202 then :
16203 xorg_cv_cc_flag_unknown_warning_option=yes
16204 else $as_nop
16205 xorg_cv_cc_flag_unknown_warning_option=no
16206 fi
16207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16208 fi
16209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16210 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16212 CFLAGS="$xorg_testset_save_CFLAGS"
16213 fi
16214
16215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16218 fi
16219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16221 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16222 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16223 then :
16224 printf %s "(cached) " >&6
16225 else $as_nop
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16228 int i;
16229 _ACEOF
16230 if ac_fn_c_try_compile "$LINENO"
16231 then :
16232 xorg_cv_cc_flag_unused_command_line_argument=yes
16233 else $as_nop
16234 xorg_cv_cc_flag_unused_command_line_argument=no
16235 fi
16236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16237 fi
16238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16241 CFLAGS="$xorg_testset_save_CFLAGS"
16242 fi
16243
16244 found="no"
16245
16246 if test $found = "no" ; then
16247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16249 fi
16250
16251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16253 fi
16254
16255 CFLAGS="$CFLAGS -Werror=trigraphs"
16256
16257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16258 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16259 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16260 if eval test \${$cacheid+y}
16261 then :
16262 printf %s "(cached) " >&6
16263 else $as_nop
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 int i;
16267 int
16268 main (void)
16269 {
16270
16271 ;
16272 return 0;
16273 }
16274 _ACEOF
16275 if ac_fn_c_try_link "$LINENO"
16276 then :
16277 eval $cacheid=yes
16278 else $as_nop
16279 eval $cacheid=no
16280 fi
16281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16282 conftest$ac_exeext conftest.$ac_ext
16283 fi
16284
16285
16286 CFLAGS="$xorg_testset_save_CFLAGS"
16287
16288 eval supported=\$$cacheid
16289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16290 printf "%s\n" "$supported" >&6; }
16291 if test "$supported" = "yes" ; then
16292 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16293 found="yes"
16294 fi
16295 fi
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311 xorg_testset_save_CFLAGS="$CFLAGS"
16312
16313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16317 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16318 then :
16319 printf %s "(cached) " >&6
16320 else $as_nop
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16323 int i;
16324 _ACEOF
16325 if ac_fn_c_try_compile "$LINENO"
16326 then :
16327 xorg_cv_cc_flag_unknown_warning_option=yes
16328 else $as_nop
16329 xorg_cv_cc_flag_unknown_warning_option=no
16330 fi
16331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16332 fi
16333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16336 CFLAGS="$xorg_testset_save_CFLAGS"
16337 fi
16338
16339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16342 fi
16343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16347 then :
16348 printf %s "(cached) " >&6
16349 else $as_nop
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 int i;
16353 _ACEOF
16354 if ac_fn_c_try_compile "$LINENO"
16355 then :
16356 xorg_cv_cc_flag_unused_command_line_argument=yes
16357 else $as_nop
16358 xorg_cv_cc_flag_unused_command_line_argument=no
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16361 fi
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16365 CFLAGS="$xorg_testset_save_CFLAGS"
16366 fi
16367
16368 found="no"
16369
16370 if test $found = "no" ; then
16371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16373 fi
16374
16375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377 fi
16378
16379 CFLAGS="$CFLAGS -Werror=array-bounds"
16380
16381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16382 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16383 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16384 if eval test \${$cacheid+y}
16385 then :
16386 printf %s "(cached) " >&6
16387 else $as_nop
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16390 int i;
16391 int
16392 main (void)
16393 {
16394
16395 ;
16396 return 0;
16397 }
16398 _ACEOF
16399 if ac_fn_c_try_link "$LINENO"
16400 then :
16401 eval $cacheid=yes
16402 else $as_nop
16403 eval $cacheid=no
16404 fi
16405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16406 conftest$ac_exeext conftest.$ac_ext
16407 fi
16408
16409
16410 CFLAGS="$xorg_testset_save_CFLAGS"
16411
16412 eval supported=\$$cacheid
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16414 printf "%s\n" "$supported" >&6; }
16415 if test "$supported" = "yes" ; then
16416 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16417 found="yes"
16418 fi
16419 fi
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435 xorg_testset_save_CFLAGS="$CFLAGS"
16436
16437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16441 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16442 then :
16443 printf %s "(cached) " >&6
16444 else $as_nop
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16447 int i;
16448 _ACEOF
16449 if ac_fn_c_try_compile "$LINENO"
16450 then :
16451 xorg_cv_cc_flag_unknown_warning_option=yes
16452 else $as_nop
16453 xorg_cv_cc_flag_unknown_warning_option=no
16454 fi
16455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16456 fi
16457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16460 CFLAGS="$xorg_testset_save_CFLAGS"
16461 fi
16462
16463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466 fi
16467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16471 then :
16472 printf %s "(cached) " >&6
16473 else $as_nop
16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16476 int i;
16477 _ACEOF
16478 if ac_fn_c_try_compile "$LINENO"
16479 then :
16480 xorg_cv_cc_flag_unused_command_line_argument=yes
16481 else $as_nop
16482 xorg_cv_cc_flag_unused_command_line_argument=no
16483 fi
16484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16485 fi
16486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16487 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16489 CFLAGS="$xorg_testset_save_CFLAGS"
16490 fi
16491
16492 found="no"
16493
16494 if test $found = "no" ; then
16495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16497 fi
16498
16499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16501 fi
16502
16503 CFLAGS="$CFLAGS -Werror=write-strings"
16504
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16506 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16507 cacheid=xorg_cv_cc_flag__Werror_write_strings
16508 if eval test \${$cacheid+y}
16509 then :
16510 printf %s "(cached) " >&6
16511 else $as_nop
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16514 int i;
16515 int
16516 main (void)
16517 {
16518
16519 ;
16520 return 0;
16521 }
16522 _ACEOF
16523 if ac_fn_c_try_link "$LINENO"
16524 then :
16525 eval $cacheid=yes
16526 else $as_nop
16527 eval $cacheid=no
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16530 conftest$ac_exeext conftest.$ac_ext
16531 fi
16532
16533
16534 CFLAGS="$xorg_testset_save_CFLAGS"
16535
16536 eval supported=\$$cacheid
16537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16538 printf "%s\n" "$supported" >&6; }
16539 if test "$supported" = "yes" ; then
16540 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16541 found="yes"
16542 fi
16543 fi
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559 xorg_testset_save_CFLAGS="$CFLAGS"
16560
16561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16565 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16566 then :
16567 printf %s "(cached) " >&6
16568 else $as_nop
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16571 int i;
16572 _ACEOF
16573 if ac_fn_c_try_compile "$LINENO"
16574 then :
16575 xorg_cv_cc_flag_unknown_warning_option=yes
16576 else $as_nop
16577 xorg_cv_cc_flag_unknown_warning_option=no
16578 fi
16579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16580 fi
16581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16584 CFLAGS="$xorg_testset_save_CFLAGS"
16585 fi
16586
16587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16590 fi
16591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16594 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16595 then :
16596 printf %s "(cached) " >&6
16597 else $as_nop
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 int i;
16601 _ACEOF
16602 if ac_fn_c_try_compile "$LINENO"
16603 then :
16604 xorg_cv_cc_flag_unused_command_line_argument=yes
16605 else $as_nop
16606 xorg_cv_cc_flag_unused_command_line_argument=no
16607 fi
16608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16609 fi
16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16613 CFLAGS="$xorg_testset_save_CFLAGS"
16614 fi
16615
16616 found="no"
16617
16618 if test $found = "no" ; then
16619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16621 fi
16622
16623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16625 fi
16626
16627 CFLAGS="$CFLAGS -Werror=address"
16628
16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16630 printf %s "checking if $CC supports -Werror=address... " >&6; }
16631 cacheid=xorg_cv_cc_flag__Werror_address
16632 if eval test \${$cacheid+y}
16633 then :
16634 printf %s "(cached) " >&6
16635 else $as_nop
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16638 int i;
16639 int
16640 main (void)
16641 {
16642
16643 ;
16644 return 0;
16645 }
16646 _ACEOF
16647 if ac_fn_c_try_link "$LINENO"
16648 then :
16649 eval $cacheid=yes
16650 else $as_nop
16651 eval $cacheid=no
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16654 conftest$ac_exeext conftest.$ac_ext
16655 fi
16656
16657
16658 CFLAGS="$xorg_testset_save_CFLAGS"
16659
16660 eval supported=\$$cacheid
16661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16662 printf "%s\n" "$supported" >&6; }
16663 if test "$supported" = "yes" ; then
16664 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16665 found="yes"
16666 fi
16667 fi
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683 xorg_testset_save_CFLAGS="$CFLAGS"
16684
16685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16689 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16690 then :
16691 printf %s "(cached) " >&6
16692 else $as_nop
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16695 int i;
16696 _ACEOF
16697 if ac_fn_c_try_compile "$LINENO"
16698 then :
16699 xorg_cv_cc_flag_unknown_warning_option=yes
16700 else $as_nop
16701 xorg_cv_cc_flag_unknown_warning_option=no
16702 fi
16703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16704 fi
16705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16708 CFLAGS="$xorg_testset_save_CFLAGS"
16709 fi
16710
16711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16714 fi
16715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16718 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16719 then :
16720 printf %s "(cached) " >&6
16721 else $as_nop
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723 /* end confdefs.h. */
16724 int i;
16725 _ACEOF
16726 if ac_fn_c_try_compile "$LINENO"
16727 then :
16728 xorg_cv_cc_flag_unused_command_line_argument=yes
16729 else $as_nop
16730 xorg_cv_cc_flag_unused_command_line_argument=no
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16733 fi
16734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16737 CFLAGS="$xorg_testset_save_CFLAGS"
16738 fi
16739
16740 found="no"
16741
16742 if test $found = "no" ; then
16743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16745 fi
16746
16747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16749 fi
16750
16751 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16752
16753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16754 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16755 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16756 if eval test \${$cacheid+y}
16757 then :
16758 printf %s "(cached) " >&6
16759 else $as_nop
16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h. */
16762 int i;
16763 int
16764 main (void)
16765 {
16766
16767 ;
16768 return 0;
16769 }
16770 _ACEOF
16771 if ac_fn_c_try_link "$LINENO"
16772 then :
16773 eval $cacheid=yes
16774 else $as_nop
16775 eval $cacheid=no
16776 fi
16777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16778 conftest$ac_exeext conftest.$ac_ext
16779 fi
16780
16781
16782 CFLAGS="$xorg_testset_save_CFLAGS"
16783
16784 eval supported=\$$cacheid
16785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16786 printf "%s\n" "$supported" >&6; }
16787 if test "$supported" = "yes" ; then
16788 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16789 found="yes"
16790 fi
16791 fi
16792
16793 if test $found = "no" ; then
16794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16796 fi
16797
16798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16800 fi
16801
16802 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16803
16804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16805 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16806 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16807 if eval test \${$cacheid+y}
16808 then :
16809 printf %s "(cached) " >&6
16810 else $as_nop
16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h. */
16813 int i;
16814 int
16815 main (void)
16816 {
16817
16818 ;
16819 return 0;
16820 }
16821 _ACEOF
16822 if ac_fn_c_try_link "$LINENO"
16823 then :
16824 eval $cacheid=yes
16825 else $as_nop
16826 eval $cacheid=no
16827 fi
16828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16829 conftest$ac_exeext conftest.$ac_ext
16830 fi
16831
16832
16833 CFLAGS="$xorg_testset_save_CFLAGS"
16834
16835 eval supported=\$$cacheid
16836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16837 printf "%s\n" "$supported" >&6; }
16838 if test "$supported" = "yes" ; then
16839 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16840 found="yes"
16841 fi
16842 fi
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858 xorg_testset_save_CFLAGS="$CFLAGS"
16859
16860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16863 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16864 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16865 then :
16866 printf %s "(cached) " >&6
16867 else $as_nop
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870 int i;
16871 _ACEOF
16872 if ac_fn_c_try_compile "$LINENO"
16873 then :
16874 xorg_cv_cc_flag_unknown_warning_option=yes
16875 else $as_nop
16876 xorg_cv_cc_flag_unknown_warning_option=no
16877 fi
16878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16879 fi
16880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16881 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16883 CFLAGS="$xorg_testset_save_CFLAGS"
16884 fi
16885
16886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16889 fi
16890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16894 then :
16895 printf %s "(cached) " >&6
16896 else $as_nop
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16899 int i;
16900 _ACEOF
16901 if ac_fn_c_try_compile "$LINENO"
16902 then :
16903 xorg_cv_cc_flag_unused_command_line_argument=yes
16904 else $as_nop
16905 xorg_cv_cc_flag_unused_command_line_argument=no
16906 fi
16907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16908 fi
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16910 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16912 CFLAGS="$xorg_testset_save_CFLAGS"
16913 fi
16914
16915 found="no"
16916
16917 if test $found = "no" ; then
16918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16920 fi
16921
16922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16924 fi
16925
16926 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16927
16928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16929 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16930 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16931 if eval test \${$cacheid+y}
16932 then :
16933 printf %s "(cached) " >&6
16934 else $as_nop
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16937 int i;
16938 int
16939 main (void)
16940 {
16941
16942 ;
16943 return 0;
16944 }
16945 _ACEOF
16946 if ac_fn_c_try_link "$LINENO"
16947 then :
16948 eval $cacheid=yes
16949 else $as_nop
16950 eval $cacheid=no
16951 fi
16952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16953 conftest$ac_exeext conftest.$ac_ext
16954 fi
16955
16956
16957 CFLAGS="$xorg_testset_save_CFLAGS"
16958
16959 eval supported=\$$cacheid
16960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16961 printf "%s\n" "$supported" >&6; }
16962 if test "$supported" = "yes" ; then
16963 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16964 found="yes"
16965 fi
16966 fi
16967
16968 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16969 else
16970 { 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
16971 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;}
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985 xorg_testset_save_CFLAGS="$CFLAGS"
16986
16987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16991 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16992 then :
16993 printf %s "(cached) " >&6
16994 else $as_nop
16995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h. */
16997 int i;
16998 _ACEOF
16999 if ac_fn_c_try_compile "$LINENO"
17000 then :
17001 xorg_cv_cc_flag_unknown_warning_option=yes
17002 else $as_nop
17003 xorg_cv_cc_flag_unknown_warning_option=no
17004 fi
17005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17006 fi
17007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17008 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17010 CFLAGS="$xorg_testset_save_CFLAGS"
17011 fi
17012
17013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17016 fi
17017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17021 then :
17022 printf %s "(cached) " >&6
17023 else $as_nop
17024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h. */
17026 int i;
17027 _ACEOF
17028 if ac_fn_c_try_compile "$LINENO"
17029 then :
17030 xorg_cv_cc_flag_unused_command_line_argument=yes
17031 else $as_nop
17032 xorg_cv_cc_flag_unused_command_line_argument=no
17033 fi
17034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17035 fi
17036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17037 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17039 CFLAGS="$xorg_testset_save_CFLAGS"
17040 fi
17041
17042 found="no"
17043
17044 if test $found = "no" ; then
17045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17047 fi
17048
17049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17051 fi
17052
17053 CFLAGS="$CFLAGS -Wimplicit"
17054
17055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17056 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17057 cacheid=xorg_cv_cc_flag__Wimplicit
17058 if eval test \${$cacheid+y}
17059 then :
17060 printf %s "(cached) " >&6
17061 else $as_nop
17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063 /* end confdefs.h. */
17064 int i;
17065 int
17066 main (void)
17067 {
17068
17069 ;
17070 return 0;
17071 }
17072 _ACEOF
17073 if ac_fn_c_try_link "$LINENO"
17074 then :
17075 eval $cacheid=yes
17076 else $as_nop
17077 eval $cacheid=no
17078 fi
17079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17080 conftest$ac_exeext conftest.$ac_ext
17081 fi
17082
17083
17084 CFLAGS="$xorg_testset_save_CFLAGS"
17085
17086 eval supported=\$$cacheid
17087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17088 printf "%s\n" "$supported" >&6; }
17089 if test "$supported" = "yes" ; then
17090 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17091 found="yes"
17092 fi
17093 fi
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109 xorg_testset_save_CFLAGS="$CFLAGS"
17110
17111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17115 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17116 then :
17117 printf %s "(cached) " >&6
17118 else $as_nop
17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120 /* end confdefs.h. */
17121 int i;
17122 _ACEOF
17123 if ac_fn_c_try_compile "$LINENO"
17124 then :
17125 xorg_cv_cc_flag_unknown_warning_option=yes
17126 else $as_nop
17127 xorg_cv_cc_flag_unknown_warning_option=no
17128 fi
17129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17130 fi
17131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17132 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17134 CFLAGS="$xorg_testset_save_CFLAGS"
17135 fi
17136
17137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17140 fi
17141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17143 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17144 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17145 then :
17146 printf %s "(cached) " >&6
17147 else $as_nop
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17150 int i;
17151 _ACEOF
17152 if ac_fn_c_try_compile "$LINENO"
17153 then :
17154 xorg_cv_cc_flag_unused_command_line_argument=yes
17155 else $as_nop
17156 xorg_cv_cc_flag_unused_command_line_argument=no
17157 fi
17158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17159 fi
17160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17161 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17163 CFLAGS="$xorg_testset_save_CFLAGS"
17164 fi
17165
17166 found="no"
17167
17168 if test $found = "no" ; then
17169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17171 fi
17172
17173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17175 fi
17176
17177 CFLAGS="$CFLAGS -Wnonnull"
17178
17179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17180 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17181 cacheid=xorg_cv_cc_flag__Wnonnull
17182 if eval test \${$cacheid+y}
17183 then :
17184 printf %s "(cached) " >&6
17185 else $as_nop
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188 int i;
17189 int
17190 main (void)
17191 {
17192
17193 ;
17194 return 0;
17195 }
17196 _ACEOF
17197 if ac_fn_c_try_link "$LINENO"
17198 then :
17199 eval $cacheid=yes
17200 else $as_nop
17201 eval $cacheid=no
17202 fi
17203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17204 conftest$ac_exeext conftest.$ac_ext
17205 fi
17206
17207
17208 CFLAGS="$xorg_testset_save_CFLAGS"
17209
17210 eval supported=\$$cacheid
17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17212 printf "%s\n" "$supported" >&6; }
17213 if test "$supported" = "yes" ; then
17214 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17215 found="yes"
17216 fi
17217 fi
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233 xorg_testset_save_CFLAGS="$CFLAGS"
17234
17235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17239 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17240 then :
17241 printf %s "(cached) " >&6
17242 else $as_nop
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17245 int i;
17246 _ACEOF
17247 if ac_fn_c_try_compile "$LINENO"
17248 then :
17249 xorg_cv_cc_flag_unknown_warning_option=yes
17250 else $as_nop
17251 xorg_cv_cc_flag_unknown_warning_option=no
17252 fi
17253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17254 fi
17255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17258 CFLAGS="$xorg_testset_save_CFLAGS"
17259 fi
17260
17261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17264 fi
17265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17269 then :
17270 printf %s "(cached) " >&6
17271 else $as_nop
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17274 int i;
17275 _ACEOF
17276 if ac_fn_c_try_compile "$LINENO"
17277 then :
17278 xorg_cv_cc_flag_unused_command_line_argument=yes
17279 else $as_nop
17280 xorg_cv_cc_flag_unused_command_line_argument=no
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17283 fi
17284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17287 CFLAGS="$xorg_testset_save_CFLAGS"
17288 fi
17289
17290 found="no"
17291
17292 if test $found = "no" ; then
17293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17295 fi
17296
17297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17299 fi
17300
17301 CFLAGS="$CFLAGS -Winit-self"
17302
17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17304 printf %s "checking if $CC supports -Winit-self... " >&6; }
17305 cacheid=xorg_cv_cc_flag__Winit_self
17306 if eval test \${$cacheid+y}
17307 then :
17308 printf %s "(cached) " >&6
17309 else $as_nop
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17312 int i;
17313 int
17314 main (void)
17315 {
17316
17317 ;
17318 return 0;
17319 }
17320 _ACEOF
17321 if ac_fn_c_try_link "$LINENO"
17322 then :
17323 eval $cacheid=yes
17324 else $as_nop
17325 eval $cacheid=no
17326 fi
17327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17328 conftest$ac_exeext conftest.$ac_ext
17329 fi
17330
17331
17332 CFLAGS="$xorg_testset_save_CFLAGS"
17333
17334 eval supported=\$$cacheid
17335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17336 printf "%s\n" "$supported" >&6; }
17337 if test "$supported" = "yes" ; then
17338 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17339 found="yes"
17340 fi
17341 fi
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357 xorg_testset_save_CFLAGS="$CFLAGS"
17358
17359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17362 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17363 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17364 then :
17365 printf %s "(cached) " >&6
17366 else $as_nop
17367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17368 /* end confdefs.h. */
17369 int i;
17370 _ACEOF
17371 if ac_fn_c_try_compile "$LINENO"
17372 then :
17373 xorg_cv_cc_flag_unknown_warning_option=yes
17374 else $as_nop
17375 xorg_cv_cc_flag_unknown_warning_option=no
17376 fi
17377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17378 fi
17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17382 CFLAGS="$xorg_testset_save_CFLAGS"
17383 fi
17384
17385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17388 fi
17389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17393 then :
17394 printf %s "(cached) " >&6
17395 else $as_nop
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398 int i;
17399 _ACEOF
17400 if ac_fn_c_try_compile "$LINENO"
17401 then :
17402 xorg_cv_cc_flag_unused_command_line_argument=yes
17403 else $as_nop
17404 xorg_cv_cc_flag_unused_command_line_argument=no
17405 fi
17406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17407 fi
17408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17411 CFLAGS="$xorg_testset_save_CFLAGS"
17412 fi
17413
17414 found="no"
17415
17416 if test $found = "no" ; then
17417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17419 fi
17420
17421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17423 fi
17424
17425 CFLAGS="$CFLAGS -Wmain"
17426
17427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17428 printf %s "checking if $CC supports -Wmain... " >&6; }
17429 cacheid=xorg_cv_cc_flag__Wmain
17430 if eval test \${$cacheid+y}
17431 then :
17432 printf %s "(cached) " >&6
17433 else $as_nop
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17436 int i;
17437 int
17438 main (void)
17439 {
17440
17441 ;
17442 return 0;
17443 }
17444 _ACEOF
17445 if ac_fn_c_try_link "$LINENO"
17446 then :
17447 eval $cacheid=yes
17448 else $as_nop
17449 eval $cacheid=no
17450 fi
17451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17452 conftest$ac_exeext conftest.$ac_ext
17453 fi
17454
17455
17456 CFLAGS="$xorg_testset_save_CFLAGS"
17457
17458 eval supported=\$$cacheid
17459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17460 printf "%s\n" "$supported" >&6; }
17461 if test "$supported" = "yes" ; then
17462 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17463 found="yes"
17464 fi
17465 fi
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481 xorg_testset_save_CFLAGS="$CFLAGS"
17482
17483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17486 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17487 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17488 then :
17489 printf %s "(cached) " >&6
17490 else $as_nop
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493 int i;
17494 _ACEOF
17495 if ac_fn_c_try_compile "$LINENO"
17496 then :
17497 xorg_cv_cc_flag_unknown_warning_option=yes
17498 else $as_nop
17499 xorg_cv_cc_flag_unknown_warning_option=no
17500 fi
17501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17502 fi
17503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17504 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17506 CFLAGS="$xorg_testset_save_CFLAGS"
17507 fi
17508
17509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17512 fi
17513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17515 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17516 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17517 then :
17518 printf %s "(cached) " >&6
17519 else $as_nop
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 int i;
17523 _ACEOF
17524 if ac_fn_c_try_compile "$LINENO"
17525 then :
17526 xorg_cv_cc_flag_unused_command_line_argument=yes
17527 else $as_nop
17528 xorg_cv_cc_flag_unused_command_line_argument=no
17529 fi
17530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17531 fi
17532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17533 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17535 CFLAGS="$xorg_testset_save_CFLAGS"
17536 fi
17537
17538 found="no"
17539
17540 if test $found = "no" ; then
17541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17543 fi
17544
17545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17547 fi
17548
17549 CFLAGS="$CFLAGS -Wmissing-braces"
17550
17551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17552 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17553 cacheid=xorg_cv_cc_flag__Wmissing_braces
17554 if eval test \${$cacheid+y}
17555 then :
17556 printf %s "(cached) " >&6
17557 else $as_nop
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560 int i;
17561 int
17562 main (void)
17563 {
17564
17565 ;
17566 return 0;
17567 }
17568 _ACEOF
17569 if ac_fn_c_try_link "$LINENO"
17570 then :
17571 eval $cacheid=yes
17572 else $as_nop
17573 eval $cacheid=no
17574 fi
17575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17576 conftest$ac_exeext conftest.$ac_ext
17577 fi
17578
17579
17580 CFLAGS="$xorg_testset_save_CFLAGS"
17581
17582 eval supported=\$$cacheid
17583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17584 printf "%s\n" "$supported" >&6; }
17585 if test "$supported" = "yes" ; then
17586 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17587 found="yes"
17588 fi
17589 fi
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605 xorg_testset_save_CFLAGS="$CFLAGS"
17606
17607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17610 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17611 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17612 then :
17613 printf %s "(cached) " >&6
17614 else $as_nop
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17617 int i;
17618 _ACEOF
17619 if ac_fn_c_try_compile "$LINENO"
17620 then :
17621 xorg_cv_cc_flag_unknown_warning_option=yes
17622 else $as_nop
17623 xorg_cv_cc_flag_unknown_warning_option=no
17624 fi
17625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17626 fi
17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17628 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17630 CFLAGS="$xorg_testset_save_CFLAGS"
17631 fi
17632
17633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17636 fi
17637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17639 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17640 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17641 then :
17642 printf %s "(cached) " >&6
17643 else $as_nop
17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17646 int i;
17647 _ACEOF
17648 if ac_fn_c_try_compile "$LINENO"
17649 then :
17650 xorg_cv_cc_flag_unused_command_line_argument=yes
17651 else $as_nop
17652 xorg_cv_cc_flag_unused_command_line_argument=no
17653 fi
17654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17655 fi
17656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17657 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17659 CFLAGS="$xorg_testset_save_CFLAGS"
17660 fi
17661
17662 found="no"
17663
17664 if test $found = "no" ; then
17665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17667 fi
17668
17669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17671 fi
17672
17673 CFLAGS="$CFLAGS -Wsequence-point"
17674
17675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17676 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17677 cacheid=xorg_cv_cc_flag__Wsequence_point
17678 if eval test \${$cacheid+y}
17679 then :
17680 printf %s "(cached) " >&6
17681 else $as_nop
17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17684 int i;
17685 int
17686 main (void)
17687 {
17688
17689 ;
17690 return 0;
17691 }
17692 _ACEOF
17693 if ac_fn_c_try_link "$LINENO"
17694 then :
17695 eval $cacheid=yes
17696 else $as_nop
17697 eval $cacheid=no
17698 fi
17699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17700 conftest$ac_exeext conftest.$ac_ext
17701 fi
17702
17703
17704 CFLAGS="$xorg_testset_save_CFLAGS"
17705
17706 eval supported=\$$cacheid
17707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17708 printf "%s\n" "$supported" >&6; }
17709 if test "$supported" = "yes" ; then
17710 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17711 found="yes"
17712 fi
17713 fi
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729 xorg_testset_save_CFLAGS="$CFLAGS"
17730
17731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17734 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17735 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17736 then :
17737 printf %s "(cached) " >&6
17738 else $as_nop
17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17741 int i;
17742 _ACEOF
17743 if ac_fn_c_try_compile "$LINENO"
17744 then :
17745 xorg_cv_cc_flag_unknown_warning_option=yes
17746 else $as_nop
17747 xorg_cv_cc_flag_unknown_warning_option=no
17748 fi
17749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17750 fi
17751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17752 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17754 CFLAGS="$xorg_testset_save_CFLAGS"
17755 fi
17756
17757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17760 fi
17761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17763 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17764 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17765 then :
17766 printf %s "(cached) " >&6
17767 else $as_nop
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770 int i;
17771 _ACEOF
17772 if ac_fn_c_try_compile "$LINENO"
17773 then :
17774 xorg_cv_cc_flag_unused_command_line_argument=yes
17775 else $as_nop
17776 xorg_cv_cc_flag_unused_command_line_argument=no
17777 fi
17778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17779 fi
17780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17781 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17783 CFLAGS="$xorg_testset_save_CFLAGS"
17784 fi
17785
17786 found="no"
17787
17788 if test $found = "no" ; then
17789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17791 fi
17792
17793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17795 fi
17796
17797 CFLAGS="$CFLAGS -Wreturn-type"
17798
17799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17800 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17801 cacheid=xorg_cv_cc_flag__Wreturn_type
17802 if eval test \${$cacheid+y}
17803 then :
17804 printf %s "(cached) " >&6
17805 else $as_nop
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808 int i;
17809 int
17810 main (void)
17811 {
17812
17813 ;
17814 return 0;
17815 }
17816 _ACEOF
17817 if ac_fn_c_try_link "$LINENO"
17818 then :
17819 eval $cacheid=yes
17820 else $as_nop
17821 eval $cacheid=no
17822 fi
17823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17824 conftest$ac_exeext conftest.$ac_ext
17825 fi
17826
17827
17828 CFLAGS="$xorg_testset_save_CFLAGS"
17829
17830 eval supported=\$$cacheid
17831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17832 printf "%s\n" "$supported" >&6; }
17833 if test "$supported" = "yes" ; then
17834 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17835 found="yes"
17836 fi
17837 fi
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853 xorg_testset_save_CFLAGS="$CFLAGS"
17854
17855 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17858 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17859 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17860 then :
17861 printf %s "(cached) " >&6
17862 else $as_nop
17863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17864 /* end confdefs.h. */
17865 int i;
17866 _ACEOF
17867 if ac_fn_c_try_compile "$LINENO"
17868 then :
17869 xorg_cv_cc_flag_unknown_warning_option=yes
17870 else $as_nop
17871 xorg_cv_cc_flag_unknown_warning_option=no
17872 fi
17873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17874 fi
17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17876 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17878 CFLAGS="$xorg_testset_save_CFLAGS"
17879 fi
17880
17881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17884 fi
17885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17887 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17888 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17889 then :
17890 printf %s "(cached) " >&6
17891 else $as_nop
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17894 int i;
17895 _ACEOF
17896 if ac_fn_c_try_compile "$LINENO"
17897 then :
17898 xorg_cv_cc_flag_unused_command_line_argument=yes
17899 else $as_nop
17900 xorg_cv_cc_flag_unused_command_line_argument=no
17901 fi
17902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17903 fi
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17905 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17907 CFLAGS="$xorg_testset_save_CFLAGS"
17908 fi
17909
17910 found="no"
17911
17912 if test $found = "no" ; then
17913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17915 fi
17916
17917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17919 fi
17920
17921 CFLAGS="$CFLAGS -Wtrigraphs"
17922
17923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17924 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17925 cacheid=xorg_cv_cc_flag__Wtrigraphs
17926 if eval test \${$cacheid+y}
17927 then :
17928 printf %s "(cached) " >&6
17929 else $as_nop
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17932 int i;
17933 int
17934 main (void)
17935 {
17936
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 if ac_fn_c_try_link "$LINENO"
17942 then :
17943 eval $cacheid=yes
17944 else $as_nop
17945 eval $cacheid=no
17946 fi
17947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17948 conftest$ac_exeext conftest.$ac_ext
17949 fi
17950
17951
17952 CFLAGS="$xorg_testset_save_CFLAGS"
17953
17954 eval supported=\$$cacheid
17955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17956 printf "%s\n" "$supported" >&6; }
17957 if test "$supported" = "yes" ; then
17958 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17959 found="yes"
17960 fi
17961 fi
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977 xorg_testset_save_CFLAGS="$CFLAGS"
17978
17979 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17982 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17983 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17984 then :
17985 printf %s "(cached) " >&6
17986 else $as_nop
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17989 int i;
17990 _ACEOF
17991 if ac_fn_c_try_compile "$LINENO"
17992 then :
17993 xorg_cv_cc_flag_unknown_warning_option=yes
17994 else $as_nop
17995 xorg_cv_cc_flag_unknown_warning_option=no
17996 fi
17997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17998 fi
17999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18000 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18002 CFLAGS="$xorg_testset_save_CFLAGS"
18003 fi
18004
18005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18008 fi
18009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18011 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18012 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18013 then :
18014 printf %s "(cached) " >&6
18015 else $as_nop
18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h. */
18018 int i;
18019 _ACEOF
18020 if ac_fn_c_try_compile "$LINENO"
18021 then :
18022 xorg_cv_cc_flag_unused_command_line_argument=yes
18023 else $as_nop
18024 xorg_cv_cc_flag_unused_command_line_argument=no
18025 fi
18026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18027 fi
18028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18029 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18031 CFLAGS="$xorg_testset_save_CFLAGS"
18032 fi
18033
18034 found="no"
18035
18036 if test $found = "no" ; then
18037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18039 fi
18040
18041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18043 fi
18044
18045 CFLAGS="$CFLAGS -Warray-bounds"
18046
18047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18048 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18049 cacheid=xorg_cv_cc_flag__Warray_bounds
18050 if eval test \${$cacheid+y}
18051 then :
18052 printf %s "(cached) " >&6
18053 else $as_nop
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18056 int i;
18057 int
18058 main (void)
18059 {
18060
18061 ;
18062 return 0;
18063 }
18064 _ACEOF
18065 if ac_fn_c_try_link "$LINENO"
18066 then :
18067 eval $cacheid=yes
18068 else $as_nop
18069 eval $cacheid=no
18070 fi
18071 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18072 conftest$ac_exeext conftest.$ac_ext
18073 fi
18074
18075
18076 CFLAGS="$xorg_testset_save_CFLAGS"
18077
18078 eval supported=\$$cacheid
18079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18080 printf "%s\n" "$supported" >&6; }
18081 if test "$supported" = "yes" ; then
18082 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18083 found="yes"
18084 fi
18085 fi
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101 xorg_testset_save_CFLAGS="$CFLAGS"
18102
18103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18106 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18107 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18108 then :
18109 printf %s "(cached) " >&6
18110 else $as_nop
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113 int i;
18114 _ACEOF
18115 if ac_fn_c_try_compile "$LINENO"
18116 then :
18117 xorg_cv_cc_flag_unknown_warning_option=yes
18118 else $as_nop
18119 xorg_cv_cc_flag_unknown_warning_option=no
18120 fi
18121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18122 fi
18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18124 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18126 CFLAGS="$xorg_testset_save_CFLAGS"
18127 fi
18128
18129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18132 fi
18133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18135 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18136 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18137 then :
18138 printf %s "(cached) " >&6
18139 else $as_nop
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18142 int i;
18143 _ACEOF
18144 if ac_fn_c_try_compile "$LINENO"
18145 then :
18146 xorg_cv_cc_flag_unused_command_line_argument=yes
18147 else $as_nop
18148 xorg_cv_cc_flag_unused_command_line_argument=no
18149 fi
18150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18151 fi
18152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18153 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18155 CFLAGS="$xorg_testset_save_CFLAGS"
18156 fi
18157
18158 found="no"
18159
18160 if test $found = "no" ; then
18161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18163 fi
18164
18165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18167 fi
18168
18169 CFLAGS="$CFLAGS -Wwrite-strings"
18170
18171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18172 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18173 cacheid=xorg_cv_cc_flag__Wwrite_strings
18174 if eval test \${$cacheid+y}
18175 then :
18176 printf %s "(cached) " >&6
18177 else $as_nop
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18180 int i;
18181 int
18182 main (void)
18183 {
18184
18185 ;
18186 return 0;
18187 }
18188 _ACEOF
18189 if ac_fn_c_try_link "$LINENO"
18190 then :
18191 eval $cacheid=yes
18192 else $as_nop
18193 eval $cacheid=no
18194 fi
18195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18196 conftest$ac_exeext conftest.$ac_ext
18197 fi
18198
18199
18200 CFLAGS="$xorg_testset_save_CFLAGS"
18201
18202 eval supported=\$$cacheid
18203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18204 printf "%s\n" "$supported" >&6; }
18205 if test "$supported" = "yes" ; then
18206 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18207 found="yes"
18208 fi
18209 fi
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225 xorg_testset_save_CFLAGS="$CFLAGS"
18226
18227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18230 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18231 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18232 then :
18233 printf %s "(cached) " >&6
18234 else $as_nop
18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18237 int i;
18238 _ACEOF
18239 if ac_fn_c_try_compile "$LINENO"
18240 then :
18241 xorg_cv_cc_flag_unknown_warning_option=yes
18242 else $as_nop
18243 xorg_cv_cc_flag_unknown_warning_option=no
18244 fi
18245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18246 fi
18247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18248 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18250 CFLAGS="$xorg_testset_save_CFLAGS"
18251 fi
18252
18253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18256 fi
18257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18261 then :
18262 printf %s "(cached) " >&6
18263 else $as_nop
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266 int i;
18267 _ACEOF
18268 if ac_fn_c_try_compile "$LINENO"
18269 then :
18270 xorg_cv_cc_flag_unused_command_line_argument=yes
18271 else $as_nop
18272 xorg_cv_cc_flag_unused_command_line_argument=no
18273 fi
18274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18275 fi
18276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18277 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18279 CFLAGS="$xorg_testset_save_CFLAGS"
18280 fi
18281
18282 found="no"
18283
18284 if test $found = "no" ; then
18285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18287 fi
18288
18289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18291 fi
18292
18293 CFLAGS="$CFLAGS -Waddress"
18294
18295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18296 printf %s "checking if $CC supports -Waddress... " >&6; }
18297 cacheid=xorg_cv_cc_flag__Waddress
18298 if eval test \${$cacheid+y}
18299 then :
18300 printf %s "(cached) " >&6
18301 else $as_nop
18302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303 /* end confdefs.h. */
18304 int i;
18305 int
18306 main (void)
18307 {
18308
18309 ;
18310 return 0;
18311 }
18312 _ACEOF
18313 if ac_fn_c_try_link "$LINENO"
18314 then :
18315 eval $cacheid=yes
18316 else $as_nop
18317 eval $cacheid=no
18318 fi
18319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18320 conftest$ac_exeext conftest.$ac_ext
18321 fi
18322
18323
18324 CFLAGS="$xorg_testset_save_CFLAGS"
18325
18326 eval supported=\$$cacheid
18327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18328 printf "%s\n" "$supported" >&6; }
18329 if test "$supported" = "yes" ; then
18330 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18331 found="yes"
18332 fi
18333 fi
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349 xorg_testset_save_CFLAGS="$CFLAGS"
18350
18351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18354 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18355 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18356 then :
18357 printf %s "(cached) " >&6
18358 else $as_nop
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18361 int i;
18362 _ACEOF
18363 if ac_fn_c_try_compile "$LINENO"
18364 then :
18365 xorg_cv_cc_flag_unknown_warning_option=yes
18366 else $as_nop
18367 xorg_cv_cc_flag_unknown_warning_option=no
18368 fi
18369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18370 fi
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18374 CFLAGS="$xorg_testset_save_CFLAGS"
18375 fi
18376
18377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18380 fi
18381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18385 then :
18386 printf %s "(cached) " >&6
18387 else $as_nop
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18390 int i;
18391 _ACEOF
18392 if ac_fn_c_try_compile "$LINENO"
18393 then :
18394 xorg_cv_cc_flag_unused_command_line_argument=yes
18395 else $as_nop
18396 xorg_cv_cc_flag_unused_command_line_argument=no
18397 fi
18398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18399 fi
18400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18401 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18403 CFLAGS="$xorg_testset_save_CFLAGS"
18404 fi
18405
18406 found="no"
18407
18408 if test $found = "no" ; then
18409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18411 fi
18412
18413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18415 fi
18416
18417 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18418
18419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18420 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18421 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18422 if eval test \${$cacheid+y}
18423 then :
18424 printf %s "(cached) " >&6
18425 else $as_nop
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 int i;
18429 int
18430 main (void)
18431 {
18432
18433 ;
18434 return 0;
18435 }
18436 _ACEOF
18437 if ac_fn_c_try_link "$LINENO"
18438 then :
18439 eval $cacheid=yes
18440 else $as_nop
18441 eval $cacheid=no
18442 fi
18443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18444 conftest$ac_exeext conftest.$ac_ext
18445 fi
18446
18447
18448 CFLAGS="$xorg_testset_save_CFLAGS"
18449
18450 eval supported=\$$cacheid
18451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18452 printf "%s\n" "$supported" >&6; }
18453 if test "$supported" = "yes" ; then
18454 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18455 found="yes"
18456 fi
18457 fi
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473 xorg_testset_save_CFLAGS="$CFLAGS"
18474
18475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18478 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18479 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18480 then :
18481 printf %s "(cached) " >&6
18482 else $as_nop
18483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18485 int i;
18486 _ACEOF
18487 if ac_fn_c_try_compile "$LINENO"
18488 then :
18489 xorg_cv_cc_flag_unknown_warning_option=yes
18490 else $as_nop
18491 xorg_cv_cc_flag_unknown_warning_option=no
18492 fi
18493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18494 fi
18495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18496 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18498 CFLAGS="$xorg_testset_save_CFLAGS"
18499 fi
18500
18501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18504 fi
18505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18507 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18508 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18509 then :
18510 printf %s "(cached) " >&6
18511 else $as_nop
18512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513 /* end confdefs.h. */
18514 int i;
18515 _ACEOF
18516 if ac_fn_c_try_compile "$LINENO"
18517 then :
18518 xorg_cv_cc_flag_unused_command_line_argument=yes
18519 else $as_nop
18520 xorg_cv_cc_flag_unused_command_line_argument=no
18521 fi
18522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18523 fi
18524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18525 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18527 CFLAGS="$xorg_testset_save_CFLAGS"
18528 fi
18529
18530 found="no"
18531
18532 if test $found = "no" ; then
18533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18535 fi
18536
18537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18539 fi
18540
18541 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18542
18543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18544 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18545 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18546 if eval test \${$cacheid+y}
18547 then :
18548 printf %s "(cached) " >&6
18549 else $as_nop
18550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18551 /* end confdefs.h. */
18552 int i;
18553 int
18554 main (void)
18555 {
18556
18557 ;
18558 return 0;
18559 }
18560 _ACEOF
18561 if ac_fn_c_try_link "$LINENO"
18562 then :
18563 eval $cacheid=yes
18564 else $as_nop
18565 eval $cacheid=no
18566 fi
18567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18568 conftest$ac_exeext conftest.$ac_ext
18569 fi
18570
18571
18572 CFLAGS="$xorg_testset_save_CFLAGS"
18573
18574 eval supported=\$$cacheid
18575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18576 printf "%s\n" "$supported" >&6; }
18577 if test "$supported" = "yes" ; then
18578 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18579 found="yes"
18580 fi
18581 fi
18582
18583
18584 fi
18585
18586
18587
18588
18589
18590
18591
18592 CWARNFLAGS="$BASE_CFLAGS"
18593 if test "x$GCC" = xyes ; then
18594 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18595 fi
18596
18597
18598
18599
18600
18601
18602
18603
18604 # Check whether --enable-strict-compilation was given.
18605 if test ${enable_strict_compilation+y}
18606 then :
18607 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18608 else $as_nop
18609 STRICT_COMPILE=no
18610 fi
18611
18612
18613
18614
18615
18616
18617 STRICT_CFLAGS=""
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631 xorg_testset_save_CFLAGS="$CFLAGS"
18632
18633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18636 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18637 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18638 then :
18639 printf %s "(cached) " >&6
18640 else $as_nop
18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18643 int i;
18644 _ACEOF
18645 if ac_fn_c_try_compile "$LINENO"
18646 then :
18647 xorg_cv_cc_flag_unknown_warning_option=yes
18648 else $as_nop
18649 xorg_cv_cc_flag_unknown_warning_option=no
18650 fi
18651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18652 fi
18653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18654 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18656 CFLAGS="$xorg_testset_save_CFLAGS"
18657 fi
18658
18659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18662 fi
18663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18666 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18667 then :
18668 printf %s "(cached) " >&6
18669 else $as_nop
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18672 int i;
18673 _ACEOF
18674 if ac_fn_c_try_compile "$LINENO"
18675 then :
18676 xorg_cv_cc_flag_unused_command_line_argument=yes
18677 else $as_nop
18678 xorg_cv_cc_flag_unused_command_line_argument=no
18679 fi
18680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18681 fi
18682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18683 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18685 CFLAGS="$xorg_testset_save_CFLAGS"
18686 fi
18687
18688 found="no"
18689
18690 if test $found = "no" ; then
18691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18693 fi
18694
18695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18697 fi
18698
18699 CFLAGS="$CFLAGS -pedantic"
18700
18701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18702 printf %s "checking if $CC supports -pedantic... " >&6; }
18703 cacheid=xorg_cv_cc_flag__pedantic
18704 if eval test \${$cacheid+y}
18705 then :
18706 printf %s "(cached) " >&6
18707 else $as_nop
18708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18709 /* end confdefs.h. */
18710 int i;
18711 int
18712 main (void)
18713 {
18714
18715 ;
18716 return 0;
18717 }
18718 _ACEOF
18719 if ac_fn_c_try_link "$LINENO"
18720 then :
18721 eval $cacheid=yes
18722 else $as_nop
18723 eval $cacheid=no
18724 fi
18725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18726 conftest$ac_exeext conftest.$ac_ext
18727 fi
18728
18729
18730 CFLAGS="$xorg_testset_save_CFLAGS"
18731
18732 eval supported=\$$cacheid
18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18734 printf "%s\n" "$supported" >&6; }
18735 if test "$supported" = "yes" ; then
18736 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18737 found="yes"
18738 fi
18739 fi
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755 xorg_testset_save_CFLAGS="$CFLAGS"
18756
18757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18760 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18761 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18762 then :
18763 printf %s "(cached) " >&6
18764 else $as_nop
18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766 /* end confdefs.h. */
18767 int i;
18768 _ACEOF
18769 if ac_fn_c_try_compile "$LINENO"
18770 then :
18771 xorg_cv_cc_flag_unknown_warning_option=yes
18772 else $as_nop
18773 xorg_cv_cc_flag_unknown_warning_option=no
18774 fi
18775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18776 fi
18777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18778 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18780 CFLAGS="$xorg_testset_save_CFLAGS"
18781 fi
18782
18783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18786 fi
18787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18789 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18790 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18791 then :
18792 printf %s "(cached) " >&6
18793 else $as_nop
18794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18796 int i;
18797 _ACEOF
18798 if ac_fn_c_try_compile "$LINENO"
18799 then :
18800 xorg_cv_cc_flag_unused_command_line_argument=yes
18801 else $as_nop
18802 xorg_cv_cc_flag_unused_command_line_argument=no
18803 fi
18804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18805 fi
18806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18807 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18809 CFLAGS="$xorg_testset_save_CFLAGS"
18810 fi
18811
18812 found="no"
18813
18814 if test $found = "no" ; then
18815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18817 fi
18818
18819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18821 fi
18822
18823 CFLAGS="$CFLAGS -Werror"
18824
18825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18826 printf %s "checking if $CC supports -Werror... " >&6; }
18827 cacheid=xorg_cv_cc_flag__Werror
18828 if eval test \${$cacheid+y}
18829 then :
18830 printf %s "(cached) " >&6
18831 else $as_nop
18832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h. */
18834 int i;
18835 int
18836 main (void)
18837 {
18838
18839 ;
18840 return 0;
18841 }
18842 _ACEOF
18843 if ac_fn_c_try_link "$LINENO"
18844 then :
18845 eval $cacheid=yes
18846 else $as_nop
18847 eval $cacheid=no
18848 fi
18849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18850 conftest$ac_exeext conftest.$ac_ext
18851 fi
18852
18853
18854 CFLAGS="$xorg_testset_save_CFLAGS"
18855
18856 eval supported=\$$cacheid
18857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18858 printf "%s\n" "$supported" >&6; }
18859 if test "$supported" = "yes" ; then
18860 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18861 found="yes"
18862 fi
18863 fi
18864
18865 if test $found = "no" ; then
18866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18868 fi
18869
18870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18872 fi
18873
18874 CFLAGS="$CFLAGS -errwarn"
18875
18876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18877 printf %s "checking if $CC supports -errwarn... " >&6; }
18878 cacheid=xorg_cv_cc_flag__errwarn
18879 if eval test \${$cacheid+y}
18880 then :
18881 printf %s "(cached) " >&6
18882 else $as_nop
18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884 /* end confdefs.h. */
18885 int i;
18886 int
18887 main (void)
18888 {
18889
18890 ;
18891 return 0;
18892 }
18893 _ACEOF
18894 if ac_fn_c_try_link "$LINENO"
18895 then :
18896 eval $cacheid=yes
18897 else $as_nop
18898 eval $cacheid=no
18899 fi
18900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18901 conftest$ac_exeext conftest.$ac_ext
18902 fi
18903
18904
18905 CFLAGS="$xorg_testset_save_CFLAGS"
18906
18907 eval supported=\$$cacheid
18908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18909 printf "%s\n" "$supported" >&6; }
18910 if test "$supported" = "yes" ; then
18911 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18912 found="yes"
18913 fi
18914 fi
18915
18916
18917
18918 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18919 # activate it with -Werror, so we add it here explicitly.
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933 xorg_testset_save_CFLAGS="$CFLAGS"
18934
18935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18938 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18939 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18940 then :
18941 printf %s "(cached) " >&6
18942 else $as_nop
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18945 int i;
18946 _ACEOF
18947 if ac_fn_c_try_compile "$LINENO"
18948 then :
18949 xorg_cv_cc_flag_unknown_warning_option=yes
18950 else $as_nop
18951 xorg_cv_cc_flag_unknown_warning_option=no
18952 fi
18953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18954 fi
18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18956 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18958 CFLAGS="$xorg_testset_save_CFLAGS"
18959 fi
18960
18961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18964 fi
18965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18967 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18968 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18969 then :
18970 printf %s "(cached) " >&6
18971 else $as_nop
18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973 /* end confdefs.h. */
18974 int i;
18975 _ACEOF
18976 if ac_fn_c_try_compile "$LINENO"
18977 then :
18978 xorg_cv_cc_flag_unused_command_line_argument=yes
18979 else $as_nop
18980 xorg_cv_cc_flag_unused_command_line_argument=no
18981 fi
18982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18983 fi
18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18985 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18987 CFLAGS="$xorg_testset_save_CFLAGS"
18988 fi
18989
18990 found="no"
18991
18992 if test $found = "no" ; then
18993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18995 fi
18996
18997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18999 fi
19000
19001 CFLAGS="$CFLAGS -Werror=attributes"
19002
19003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19004 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19005 cacheid=xorg_cv_cc_flag__Werror_attributes
19006 if eval test \${$cacheid+y}
19007 then :
19008 printf %s "(cached) " >&6
19009 else $as_nop
19010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19011 /* end confdefs.h. */
19012 int i;
19013 int
19014 main (void)
19015 {
19016
19017 ;
19018 return 0;
19019 }
19020 _ACEOF
19021 if ac_fn_c_try_link "$LINENO"
19022 then :
19023 eval $cacheid=yes
19024 else $as_nop
19025 eval $cacheid=no
19026 fi
19027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19028 conftest$ac_exeext conftest.$ac_ext
19029 fi
19030
19031
19032 CFLAGS="$xorg_testset_save_CFLAGS"
19033
19034 eval supported=\$$cacheid
19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19036 printf "%s\n" "$supported" >&6; }
19037 if test "$supported" = "yes" ; then
19038 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19039 found="yes"
19040 fi
19041 fi
19042
19043
19044
19045 if test "x$STRICT_COMPILE" = "xyes"; then
19046 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19047 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19048 fi
19049
19050
19051
19052
19053
19054
19055 cat >>confdefs.h <<_ACEOF
19056 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19057 _ACEOF
19058
19059 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19060 if test "x$PVM" = "x"; then
19061 PVM="0"
19062 fi
19063
19064 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19065
19066 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19067 if test "x$PVP" = "x"; then
19068 PVP="0"
19069 fi
19070
19071 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19072
19073
19074
19075 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19076 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19077 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19078 touch \$(top_srcdir)/ChangeLog; \
19079 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19080
19081
19082
19083
19084 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19085 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19086 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19087 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19088 touch \$(top_srcdir)/INSTALL; \
19089 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19090
19091
19092
19093
19094
19095
19096 case $host_os in
19097 solaris*)
19098 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19099 # check for a man page file found in later versions that use
19100 # traditional section numbers instead
19101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19102 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19103 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19104 then :
19105 printf %s "(cached) " >&6
19106 else $as_nop
19107 test "$cross_compiling" = yes &&
19108 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19109 if test -r "/usr/share/man/man7/attributes.7"; then
19110 ac_cv_file__usr_share_man_man7_attributes_7=yes
19111 else
19112 ac_cv_file__usr_share_man_man7_attributes_7=no
19113 fi
19114 fi
19115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19116 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19117 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19118 then :
19119 SYSV_MAN_SECTIONS=false
19120 else $as_nop
19121 SYSV_MAN_SECTIONS=true
19122 fi
19123
19124 ;;
19125 *) SYSV_MAN_SECTIONS=false ;;
19126 esac
19127
19128 if test x$APP_MAN_SUFFIX = x ; then
19129 APP_MAN_SUFFIX=1
19130 fi
19131 if test x$APP_MAN_DIR = x ; then
19132 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19133 fi
19134
19135 if test x$LIB_MAN_SUFFIX = x ; then
19136 LIB_MAN_SUFFIX=3
19137 fi
19138 if test x$LIB_MAN_DIR = x ; then
19139 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19140 fi
19141
19142 if test x$FILE_MAN_SUFFIX = x ; then
19143 case $SYSV_MAN_SECTIONS in
19144 true) FILE_MAN_SUFFIX=4 ;;
19145 *) FILE_MAN_SUFFIX=5 ;;
19146 esac
19147 fi
19148 if test x$FILE_MAN_DIR = x ; then
19149 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19150 fi
19151
19152 if test x$MISC_MAN_SUFFIX = x ; then
19153 case $SYSV_MAN_SECTIONS in
19154 true) MISC_MAN_SUFFIX=5 ;;
19155 *) MISC_MAN_SUFFIX=7 ;;
19156 esac
19157 fi
19158 if test x$MISC_MAN_DIR = x ; then
19159 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19160 fi
19161
19162 if test x$DRIVER_MAN_SUFFIX = x ; then
19163 case $SYSV_MAN_SECTIONS in
19164 true) DRIVER_MAN_SUFFIX=7 ;;
19165 *) DRIVER_MAN_SUFFIX=4 ;;
19166 esac
19167 fi
19168 if test x$DRIVER_MAN_DIR = x ; then
19169 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19170 fi
19171
19172 if test x$ADMIN_MAN_SUFFIX = x ; then
19173 case $SYSV_MAN_SECTIONS in
19174 true) ADMIN_MAN_SUFFIX=1m ;;
19175 *) ADMIN_MAN_SUFFIX=8 ;;
19176 esac
19177 fi
19178 if test x$ADMIN_MAN_DIR = x ; then
19179 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19180 fi
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196 XORG_MAN_PAGE="X Version 11"
19197
19198 MAN_SUBSTS="\
19199 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19200 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19201 -e 's|__xservername__|Xorg|g' \
19202 -e 's|__xconfigfile__|xorg.conf|g' \
19203 -e 's|__projectroot__|\$(prefix)|g' \
19204 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19205 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19206 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19207 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19208 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19209 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19210 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19211
19212
19213
19214 # Check whether --enable-silent-rules was given.
19215 if test ${enable_silent_rules+y}
19216 then :
19217 enableval=$enable_silent_rules;
19218 fi
19219
19220 case $enable_silent_rules in # (((
19221 yes) AM_DEFAULT_VERBOSITY=0;;
19222 no) AM_DEFAULT_VERBOSITY=1;;
19223 *) AM_DEFAULT_VERBOSITY=0;;
19224 esac
19225 am_make=${MAKE-make}
19226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19227 printf %s "checking whether $am_make supports nested variables... " >&6; }
19228 if test ${am_cv_make_support_nested_variables+y}
19229 then :
19230 printf %s "(cached) " >&6
19231 else $as_nop
19232 if printf "%s\n" 'TRUE=$(BAR$(V))
19233 BAR0=false
19234 BAR1=true
19235 V=1
19236 am__doit:
19237 @$(TRUE)
19238 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19239 am_cv_make_support_nested_variables=yes
19240 else
19241 am_cv_make_support_nested_variables=no
19242 fi
19243 fi
19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19245 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19246 if test $am_cv_make_support_nested_variables = yes; then
19247 AM_V='$(V)'
19248 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19249 else
19250 AM_V=$AM_DEFAULT_VERBOSITY
19251 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19252 fi
19253 AM_BACKSLASH='\'
19254
19255
19256
19257 # Check whether --enable-malloc0returnsnull was given.
19258 if test ${enable_malloc0returnsnull+y}
19259 then :
19260 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19261 else $as_nop
19262 MALLOC_ZERO_RETURNS_NULL=auto
19263 fi
19264
19265
19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19267 printf %s "checking whether malloc(0) returns NULL... " >&6; }
19268 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19269 if test ${xorg_cv_malloc0_returns_null+y}
19270 then :
19271 printf %s "(cached) " >&6
19272 else $as_nop
19273 if test "$cross_compiling" = yes
19274 then :
19275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19276 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19277 as_fn_error $? "cannot run test program while cross compiling
19278 See \`config.log' for more details" "$LINENO" 5; }
19279 else $as_nop
19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19282
19283 #include <stdlib.h>
19284
19285 int
19286 main (void)
19287 {
19288
19289 char *m0, *r0, *c0, *p;
19290 m0 = malloc(0);
19291 p = malloc(10);
19292 r0 = realloc(p,0);
19293 c0 = calloc(0,10);
19294 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19295
19296 ;
19297 return 0;
19298 }
19299 _ACEOF
19300 if ac_fn_c_try_run "$LINENO"
19301 then :
19302 xorg_cv_malloc0_returns_null=yes
19303 else $as_nop
19304 xorg_cv_malloc0_returns_null=no
19305 fi
19306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19307 conftest.$ac_objext conftest.beam conftest.$ac_ext
19308 fi
19309
19310 fi
19311
19312 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19313 fi
19314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19315 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19316
19317 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19318 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19319 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19320 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19321 else
19322 MALLOC_ZERO_CFLAGS=""
19323 XMALLOC_ZERO_CFLAGS=""
19324 XTMALLOC_ZERO_CFLAGS=""
19325 fi
19326
19327
19328
19329
19330
19331
19332 # Obtain compiler/linker options for dependencies
19333
19334 pkg_failed=no
19335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
19336 printf %s "checking for XINERAMA... " >&6; }
19337
19338 if test -n "$XINERAMA_CFLAGS"; then
19339 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
19340 elif test -n "$PKG_CONFIG"; then
19341 if test -n "$PKG_CONFIG" && \
19342 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
19343 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
19344 ac_status=$?
19345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19346 test $ac_status = 0; }; then
19347 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
19348 test "x$?" != "x0" && pkg_failed=yes
19349 else
19350 pkg_failed=yes
19351 fi
19352 else
19353 pkg_failed=untried
19354 fi
19355 if test -n "$XINERAMA_LIBS"; then
19356 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
19357 elif test -n "$PKG_CONFIG"; then
19358 if test -n "$PKG_CONFIG" && \
19359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
19360 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
19361 ac_status=$?
19362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19363 test $ac_status = 0; }; then
19364 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
19365 test "x$?" != "x0" && pkg_failed=yes
19366 else
19367 pkg_failed=yes
19368 fi
19369 else
19370 pkg_failed=untried
19371 fi
19372
19373
19374
19375 if test $pkg_failed = yes; then
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19377 printf "%s\n" "no" >&6; }
19378
19379 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19380 _pkg_short_errors_supported=yes
19381 else
19382 _pkg_short_errors_supported=no
19383 fi
19384 if test $_pkg_short_errors_supported = yes; then
19385 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
19386 else
19387 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
19388 fi
19389 # Put the nasty error message in config.log where it belongs
19390 echo "$XINERAMA_PKG_ERRORS" >&5
19391
19392 as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1) were not met:
19393
19394 $XINERAMA_PKG_ERRORS
19395
19396 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19397 installed software in a non-standard prefix.
19398
19399 Alternatively, you may set the environment variables XINERAMA_CFLAGS
19400 and XINERAMA_LIBS to avoid the need to call pkg-config.
19401 See the pkg-config man page for more details." "$LINENO" 5
19402 elif test $pkg_failed = untried; then
19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404 printf "%s\n" "no" >&6; }
19405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19406 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19407 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19408 is in your PATH or set the PKG_CONFIG environment variable to the full
19409 path to pkg-config.
19410
19411 Alternatively, you may set the environment variables XINERAMA_CFLAGS
19412 and XINERAMA_LIBS to avoid the need to call pkg-config.
19413 See the pkg-config man page for more details.
19414
19415 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19416 See \`config.log' for more details" "$LINENO" 5; }
19417 else
19418 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
19419 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19421 printf "%s\n" "yes" >&6; }
19422
19423 fi
19424
19425 # Allow checking code with lint, sparse, etc.
19426
19427
19428
19429
19430
19431 # Check whether --with-lint was given.
19432 if test ${with_lint+y}
19433 then :
19434 withval=$with_lint; use_lint=$withval
19435 else $as_nop
19436 use_lint=no
19437 fi
19438
19439
19440 # Obtain platform specific info like program name and options
19441 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
19442 case $host_os in
19443 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
19444 lint_name=splint
19445 lint_options="-badflag"
19446 ;;
19447 *freebsd* | *netbsd*)
19448 lint_name=lint
19449 lint_options="-u -b"
19450 ;;
19451 *solaris*)
19452 lint_name=lint
19453 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19454 ;;
19455 esac
19456
19457 # Test for the presence of the program (either guessed by the code or spelled out by the user)
19458 if test "x$use_lint" = x"yes" ; then
19459 # Extract the first word of "$lint_name", so it can be a program name with args.
19460 set dummy $lint_name; ac_word=$2
19461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19462 printf %s "checking for $ac_word... " >&6; }
19463 if test ${ac_cv_path_LINT+y}
19464 then :
19465 printf %s "(cached) " >&6
19466 else $as_nop
19467 case $LINT in
19468 [\\/]* | ?:[\\/]*)
19469 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
19470 ;;
19471 *)
19472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19473 for as_dir in $PATH
19474 do
19475 IFS=$as_save_IFS
19476 case $as_dir in #(((
19477 '') as_dir=./ ;;
19478 */) ;;
19479 *) as_dir=$as_dir/ ;;
19480 esac
19481 for ac_exec_ext in '' $ac_executable_extensions; do
19482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19483 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
19484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19485 break 2
19486 fi
19487 done
19488 done
19489 IFS=$as_save_IFS
19490
19491 ;;
19492 esac
19493 fi
19494 LINT=$ac_cv_path_LINT
19495 if test -n "$LINT"; then
19496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19497 printf "%s\n" "$LINT" >&6; }
19498 else
19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19500 printf "%s\n" "no" >&6; }
19501 fi
19502
19503
19504 if test "x$LINT" = "x"; then
19505 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19506 fi
19507 elif test "x$use_lint" = x"no" ; then
19508 if test "x$LINT" != "x"; then
19509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19510 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19511 fi
19512 else
19513 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
19514 fi
19515
19516 # User supplied flags override default flags
19517 if test "x$LINT_FLAGS" != "x"; then
19518 lint_options=$LINT_FLAGS
19519 fi
19520
19521 LINT_FLAGS=$lint_options
19522
19523 if test "x$LINT" != x; then
19524 LINT_TRUE=
19525 LINT_FALSE='#'
19526 else
19527 LINT_TRUE='#'
19528 LINT_FALSE=
19529 fi
19530
19531
19532
19533 LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}"
19534
19535 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc"
19536
19537 cat >confcache <<\_ACEOF
19538 # This file is a shell script that caches the results of configure
19539 # tests run on this system so they can be shared between configure
19540 # scripts and configure runs, see configure's option --config-cache.
19541 # It is not useful on other systems. If it contains results you don't
19542 # want to keep, you may remove or edit it.
19543 #
19544 # config.status only pays attention to the cache file if you give it
19545 # the --recheck option to rerun configure.
19546 #
19547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19549 # following values.
19550
19551 _ACEOF
19552
19553 # The following way of writing the cache mishandles newlines in values,
19554 # but we know of no workaround that is simple, portable, and efficient.
19555 # So, we kill variables containing newlines.
19556 # Ultrix sh set writes to stderr and can't be redirected directly,
19557 # and sets the high bit in the cache file unless we assign to the vars.
19558 (
19559 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19560 eval ac_val=\$$ac_var
19561 case $ac_val in #(
19562 *${as_nl}*)
19563 case $ac_var in #(
19564 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19565 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19566 esac
19567 case $ac_var in #(
19568 _ | IFS | as_nl) ;; #(
19569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19570 *) { eval $ac_var=; unset $ac_var;} ;;
19571 esac ;;
19572 esac
19573 done
19574
19575 (set) 2>&1 |
19576 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19577 *${as_nl}ac_space=\ *)
19578 # `set' does not quote correctly, so add quotes: double-quote
19579 # substitution turns \\\\ into \\, and sed turns \\ into \.
19580 sed -n \
19581 "s/'/'\\\\''/g;
19582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19583 ;; #(
19584 *)
19585 # `set' quotes correctly as required by POSIX, so do not add quotes.
19586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19587 ;;
19588 esac |
19589 sort
19590 ) |
19591 sed '
19592 /^ac_cv_env_/b end
19593 t clear
19594 :clear
19595 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19596 t end
19597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19598 :end' >>confcache
19599 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19600 if test -w "$cache_file"; then
19601 if test "x$cache_file" != "x/dev/null"; then
19602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19603 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19604 if test ! -f "$cache_file" || test -h "$cache_file"; then
19605 cat confcache >"$cache_file"
19606 else
19607 case $cache_file in #(
19608 */* | ?:*)
19609 mv -f confcache "$cache_file"$$ &&
19610 mv -f "$cache_file"$$ "$cache_file" ;; #(
19611 *)
19612 mv -f confcache "$cache_file" ;;
19613 esac
19614 fi
19615 fi
19616 else
19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19618 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19619 fi
19620 fi
19621 rm -f confcache
19622
19623 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19624 # Let make expand exec_prefix.
19625 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19626
19627 DEFS=-DHAVE_CONFIG_H
19628
19629 ac_libobjs=
19630 ac_ltlibobjs=
19631 U=
19632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19633 # 1. Remove the extension, and $U if already installed.
19634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19635 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19637 # will be set to the directory where LIBOBJS objects are built.
19638 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19639 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19640 done
19641 LIBOBJS=$ac_libobjs
19642
19643 LTLIBOBJS=$ac_ltlibobjs
19644
19645
19646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19647 printf %s "checking that generated files are newer than configure... " >&6; }
19648 if test -n "$am_sleep_pid"; then
19649 # Hide warnings about reused PIDs.
19650 wait $am_sleep_pid 2>/dev/null
19651 fi
19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19653 printf "%s\n" "done" >&6; }
19654 if test -n "$EXEEXT"; then
19655 am__EXEEXT_TRUE=
19656 am__EXEEXT_FALSE='#'
19657 else
19658 am__EXEEXT_TRUE='#'
19659 am__EXEEXT_FALSE=
19660 fi
19661
19662 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19663 as_fn_error $? "conditional \"AMDEP\" was never defined.
19664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19665 fi
19666 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19667 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19669 fi
19670 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
19671 as_fn_error $? "conditional \"LINT\" was never defined.
19672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19673 fi
19674
19675 : "${CONFIG_STATUS=./config.status}"
19676 ac_write_fail=0
19677 ac_clean_files_save=$ac_clean_files
19678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19680 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19681 as_write_fail=0
19682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19683 #! $SHELL
19684 # Generated by $as_me.
19685 # Run this file to recreate the current configuration.
19686 # Compiler output produced by configure, useful for debugging
19687 # configure, is in config.log if it exists.
19688
19689 debug=false
19690 ac_cs_recheck=false
19691 ac_cs_silent=false
19692
19693 SHELL=\${CONFIG_SHELL-$SHELL}
19694 export SHELL
19695 _ASEOF
19696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19697 ## -------------------- ##
19698 ## M4sh Initialization. ##
19699 ## -------------------- ##
19700
19701 # Be more Bourne compatible
19702 DUALCASE=1; export DUALCASE # for MKS sh
19703 as_nop=:
19704 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19705 then :
19706 emulate sh
19707 NULLCMD=:
19708 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19709 # is contrary to our usage. Disable this feature.
19710 alias -g '${1+"$@"}'='"$@"'
19711 setopt NO_GLOB_SUBST
19712 else $as_nop
19713 case `(set -o) 2>/dev/null` in #(
19714 *posix*) :
19715 set -o posix ;; #(
19716 *) :
19717 ;;
19718 esac
19719 fi
19720
19721
19722
19723 # Reset variables that may have inherited troublesome values from
19724 # the environment.
19725
19726 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19727 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19728 # side effect of setting IFS to empty, thus disabling word splitting.)
19729 # Quoting is to prevent editors from complaining about space-tab.
19730 as_nl='
19731 '
19732 export as_nl
19733 IFS=" "" $as_nl"
19734
19735 PS1='$ '
19736 PS2='> '
19737 PS4='+ '
19738
19739 # Ensure predictable behavior from utilities with locale-dependent output.
19740 LC_ALL=C
19741 export LC_ALL
19742 LANGUAGE=C
19743 export LANGUAGE
19744
19745 # We cannot yet rely on "unset" to work, but we need these variables
19746 # to be unset--not just set to an empty or harmless value--now, to
19747 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19748 # also avoids known problems related to "unset" and subshell syntax
19749 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19750 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19751 do eval test \${$as_var+y} \
19752 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19753 done
19754
19755 # Ensure that fds 0, 1, and 2 are open.
19756 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19757 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19758 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19759
19760 # The user is always right.
19761 if ${PATH_SEPARATOR+false} :; then
19762 PATH_SEPARATOR=:
19763 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19764 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19765 PATH_SEPARATOR=';'
19766 }
19767 fi
19768
19769
19770 # Find who we are. Look in the path if we contain no directory separator.
19771 as_myself=
19772 case $0 in #((
19773 *[\\/]* ) as_myself=$0 ;;
19774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19775 for as_dir in $PATH
19776 do
19777 IFS=$as_save_IFS
19778 case $as_dir in #(((
19779 '') as_dir=./ ;;
19780 */) ;;
19781 *) as_dir=$as_dir/ ;;
19782 esac
19783 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19784 done
19785 IFS=$as_save_IFS
19786
19787 ;;
19788 esac
19789 # We did not find ourselves, most probably we were run as `sh COMMAND'
19790 # in which case we are not to be found in the path.
19791 if test "x$as_myself" = x; then
19792 as_myself=$0
19793 fi
19794 if test ! -f "$as_myself"; then
19795 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19796 exit 1
19797 fi
19798
19799
19800
19801 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19802 # ----------------------------------------
19803 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19804 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19805 # script with STATUS, using 1 if that was 0.
19806 as_fn_error ()
19807 {
19808 as_status=$1; test $as_status -eq 0 && as_status=1
19809 if test "$4"; then
19810 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19812 fi
19813 printf "%s\n" "$as_me: error: $2" >&2
19814 as_fn_exit $as_status
19815 } # as_fn_error
19816
19817
19818
19819 # as_fn_set_status STATUS
19820 # -----------------------
19821 # Set $? to STATUS, without forking.
19822 as_fn_set_status ()
19823 {
19824 return $1
19825 } # as_fn_set_status
19826
19827 # as_fn_exit STATUS
19828 # -----------------
19829 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19830 as_fn_exit ()
19831 {
19832 set +e
19833 as_fn_set_status $1
19834 exit $1
19835 } # as_fn_exit
19836
19837 # as_fn_unset VAR
19838 # ---------------
19839 # Portably unset VAR.
19840 as_fn_unset ()
19841 {
19842 { eval $1=; unset $1;}
19843 }
19844 as_unset=as_fn_unset
19845
19846 # as_fn_append VAR VALUE
19847 # ----------------------
19848 # Append the text in VALUE to the end of the definition contained in VAR. Take
19849 # advantage of any shell optimizations that allow amortized linear growth over
19850 # repeated appends, instead of the typical quadratic growth present in naive
19851 # implementations.
19852 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19853 then :
19854 eval 'as_fn_append ()
19855 {
19856 eval $1+=\$2
19857 }'
19858 else $as_nop
19859 as_fn_append ()
19860 {
19861 eval $1=\$$1\$2
19862 }
19863 fi # as_fn_append
19864
19865 # as_fn_arith ARG...
19866 # ------------------
19867 # Perform arithmetic evaluation on the ARGs, and store the result in the
19868 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19869 # must be portable across $(()) and expr.
19870 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19871 then :
19872 eval 'as_fn_arith ()
19873 {
19874 as_val=$(( $* ))
19875 }'
19876 else $as_nop
19877 as_fn_arith ()
19878 {
19879 as_val=`expr "$@" || test $? -eq 1`
19880 }
19881 fi # as_fn_arith
19882
19883
19884 if expr a : '\(a\)' >/dev/null 2>&1 &&
19885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19886 as_expr=expr
19887 else
19888 as_expr=false
19889 fi
19890
19891 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19892 as_basename=basename
19893 else
19894 as_basename=false
19895 fi
19896
19897 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19898 as_dirname=dirname
19899 else
19900 as_dirname=false
19901 fi
19902
19903 as_me=`$as_basename -- "$0" ||
19904 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19905 X"$0" : 'X\(//\)$' \| \
19906 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19907 printf "%s\n" X/"$0" |
19908 sed '/^.*\/\([^/][^/]*\)\/*$/{
19909 s//\1/
19910 q
19911 }
19912 /^X\/\(\/\/\)$/{
19913 s//\1/
19914 q
19915 }
19916 /^X\/\(\/\).*/{
19917 s//\1/
19918 q
19919 }
19920 s/.*/./; q'`
19921
19922 # Avoid depending upon Character Ranges.
19923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19926 as_cr_digits='0123456789'
19927 as_cr_alnum=$as_cr_Letters$as_cr_digits
19928
19929
19930 # Determine whether it's possible to make 'echo' print without a newline.
19931 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19932 # for compatibility with existing Makefiles.
19933 ECHO_C= ECHO_N= ECHO_T=
19934 case `echo -n x` in #(((((
19935 -n*)
19936 case `echo 'xy\c'` in
19937 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19938 xy) ECHO_C='\c';;
19939 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19940 ECHO_T=' ';;
19941 esac;;
19942 *)
19943 ECHO_N='-n';;
19944 esac
19945
19946 # For backward compatibility with old third-party macros, we provide
19947 # the shell variables $as_echo and $as_echo_n. New code should use
19948 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19949 as_echo='printf %s\n'
19950 as_echo_n='printf %s'
19951
19952 rm -f conf$$ conf$$.exe conf$$.file
19953 if test -d conf$$.dir; then
19954 rm -f conf$$.dir/conf$$.file
19955 else
19956 rm -f conf$$.dir
19957 mkdir conf$$.dir 2>/dev/null
19958 fi
19959 if (echo >conf$$.file) 2>/dev/null; then
19960 if ln -s conf$$.file conf$$ 2>/dev/null; then
19961 as_ln_s='ln -s'
19962 # ... but there are two gotchas:
19963 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19964 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19965 # In both cases, we have to default to `cp -pR'.
19966 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19967 as_ln_s='cp -pR'
19968 elif ln conf$$.file conf$$ 2>/dev/null; then
19969 as_ln_s=ln
19970 else
19971 as_ln_s='cp -pR'
19972 fi
19973 else
19974 as_ln_s='cp -pR'
19975 fi
19976 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19977 rmdir conf$$.dir 2>/dev/null
19978
19979
19980 # as_fn_mkdir_p
19981 # -------------
19982 # Create "$as_dir" as a directory, including parents if necessary.
19983 as_fn_mkdir_p ()
19984 {
19985
19986 case $as_dir in #(
19987 -*) as_dir=./$as_dir;;
19988 esac
19989 test -d "$as_dir" || eval $as_mkdir_p || {
19990 as_dirs=
19991 while :; do
19992 case $as_dir in #(
19993 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19994 *) as_qdir=$as_dir;;
19995 esac
19996 as_dirs="'$as_qdir' $as_dirs"
19997 as_dir=`$as_dirname -- "$as_dir" ||
19998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19999 X"$as_dir" : 'X\(//\)[^/]' \| \
20000 X"$as_dir" : 'X\(//\)$' \| \
20001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20002 printf "%s\n" X"$as_dir" |
20003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20004 s//\1/
20005 q
20006 }
20007 /^X\(\/\/\)[^/].*/{
20008 s//\1/
20009 q
20010 }
20011 /^X\(\/\/\)$/{
20012 s//\1/
20013 q
20014 }
20015 /^X\(\/\).*/{
20016 s//\1/
20017 q
20018 }
20019 s/.*/./; q'`
20020 test -d "$as_dir" && break
20021 done
20022 test -z "$as_dirs" || eval "mkdir $as_dirs"
20023 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20024
20025
20026 } # as_fn_mkdir_p
20027 if mkdir -p . 2>/dev/null; then
20028 as_mkdir_p='mkdir -p "$as_dir"'
20029 else
20030 test -d ./-p && rmdir ./-p
20031 as_mkdir_p=false
20032 fi
20033
20034
20035 # as_fn_executable_p FILE
20036 # -----------------------
20037 # Test if FILE is an executable regular file.
20038 as_fn_executable_p ()
20039 {
20040 test -f "$1" && test -x "$1"
20041 } # as_fn_executable_p
20042 as_test_x='test -x'
20043 as_executable_p=as_fn_executable_p
20044
20045 # Sed expression to map a string onto a valid CPP name.
20046 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20047
20048 # Sed expression to map a string onto a valid variable name.
20049 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20050
20051
20052 exec 6>&1
20053 ## ----------------------------------- ##
20054 ## Main body of $CONFIG_STATUS script. ##
20055 ## ----------------------------------- ##
20056 _ASEOF
20057 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20058
20059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20060 # Save the log message, to keep $0 and so on meaningful, and to
20061 # report actual input values of CONFIG_FILES etc. instead of their
20062 # values after options handling.
20063 ac_log="
20064 This file was extended by libXinerama $as_me 1.1.5, which was
20065 generated by GNU Autoconf 2.71. Invocation command line was
20066
20067 CONFIG_FILES = $CONFIG_FILES
20068 CONFIG_HEADERS = $CONFIG_HEADERS
20069 CONFIG_LINKS = $CONFIG_LINKS
20070 CONFIG_COMMANDS = $CONFIG_COMMANDS
20071 $ $0 $@
20072
20073 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20074 "
20075
20076 _ACEOF
20077
20078 case $ac_config_files in *"
20079 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20080 esac
20081
20082 case $ac_config_headers in *"
20083 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20084 esac
20085
20086
20087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20088 # Files that config.status was made for.
20089 config_files="$ac_config_files"
20090 config_headers="$ac_config_headers"
20091 config_commands="$ac_config_commands"
20092
20093 _ACEOF
20094
20095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20096 ac_cs_usage="\
20097 \`$as_me' instantiates files and other configuration actions
20098 from templates according to the current configuration. Unless the files
20099 and actions are specified as TAGs, all are instantiated by default.
20100
20101 Usage: $0 [OPTION]... [TAG]...
20102
20103 -h, --help print this help, then exit
20104 -V, --version print version number and configuration settings, then exit
20105 --config print configuration, then exit
20106 -q, --quiet, --silent
20107 do not print progress messages
20108 -d, --debug don't remove temporary files
20109 --recheck update $as_me by reconfiguring in the same conditions
20110 --file=FILE[:TEMPLATE]
20111 instantiate the configuration file FILE
20112 --header=FILE[:TEMPLATE]
20113 instantiate the configuration header FILE
20114
20115 Configuration files:
20116 $config_files
20117
20118 Configuration headers:
20119 $config_headers
20120
20121 Configuration commands:
20122 $config_commands
20123
20124 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxinerama/-/issues>."
20125
20126 _ACEOF
20127 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20128 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20130 ac_cs_config='$ac_cs_config_escaped'
20131 ac_cs_version="\\
20132 libXinerama config.status 1.1.5
20133 configured by $0, generated by GNU Autoconf 2.71,
20134 with options \\"\$ac_cs_config\\"
20135
20136 Copyright (C) 2021 Free Software Foundation, Inc.
20137 This config.status script is free software; the Free Software Foundation
20138 gives unlimited permission to copy, distribute and modify it."
20139
20140 ac_pwd='$ac_pwd'
20141 srcdir='$srcdir'
20142 INSTALL='$INSTALL'
20143 MKDIR_P='$MKDIR_P'
20144 AWK='$AWK'
20145 test -n "\$AWK" || AWK=awk
20146 _ACEOF
20147
20148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20149 # The default lists apply if the user does not specify any file.
20150 ac_need_defaults=:
20151 while test $# != 0
20152 do
20153 case $1 in
20154 --*=?*)
20155 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20156 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20157 ac_shift=:
20158 ;;
20159 --*=)
20160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20161 ac_optarg=
20162 ac_shift=:
20163 ;;
20164 *)
20165 ac_option=$1
20166 ac_optarg=$2
20167 ac_shift=shift
20168 ;;
20169 esac
20170
20171 case $ac_option in
20172 # Handling of the options.
20173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20174 ac_cs_recheck=: ;;
20175 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20176 printf "%s\n" "$ac_cs_version"; exit ;;
20177 --config | --confi | --conf | --con | --co | --c )
20178 printf "%s\n" "$ac_cs_config"; exit ;;
20179 --debug | --debu | --deb | --de | --d | -d )
20180 debug=: ;;
20181 --file | --fil | --fi | --f )
20182 $ac_shift
20183 case $ac_optarg in
20184 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20185 '') as_fn_error $? "missing file argument" ;;
20186 esac
20187 as_fn_append CONFIG_FILES " '$ac_optarg'"
20188 ac_need_defaults=false;;
20189 --header | --heade | --head | --hea )
20190 $ac_shift
20191 case $ac_optarg in
20192 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20193 esac
20194 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20195 ac_need_defaults=false;;
20196 --he | --h)
20197 # Conflict between --help and --header
20198 as_fn_error $? "ambiguous option: \`$1'
20199 Try \`$0 --help' for more information.";;
20200 --help | --hel | -h )
20201 printf "%s\n" "$ac_cs_usage"; exit ;;
20202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20203 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20204 ac_cs_silent=: ;;
20205
20206 # This is an error.
20207 -*) as_fn_error $? "unrecognized option: \`$1'
20208 Try \`$0 --help' for more information." ;;
20209
20210 *) as_fn_append ac_config_targets " $1"
20211 ac_need_defaults=false ;;
20212
20213 esac
20214 shift
20215 done
20216
20217 ac_configure_extra_args=
20218
20219 if $ac_cs_silent; then
20220 exec 6>/dev/null
20221 ac_configure_extra_args="$ac_configure_extra_args --silent"
20222 fi
20223
20224 _ACEOF
20225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20226 if \$ac_cs_recheck; then
20227 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20228 shift
20229 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20230 CONFIG_SHELL='$SHELL'
20231 export CONFIG_SHELL
20232 exec "\$@"
20233 fi
20234
20235 _ACEOF
20236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20237 exec 5>>config.log
20238 {
20239 echo
20240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20241 ## Running $as_me. ##
20242 _ASBOX
20243 printf "%s\n" "$ac_log"
20244 } >&5
20245
20246 _ACEOF
20247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20248 #
20249 # INIT-COMMANDS
20250 #
20251 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20252
20253
20254 # The HP-UX ksh and POSIX shell print the target directory to stdout
20255 # if CDPATH is set.
20256 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20257
20258 sed_quote_subst='$sed_quote_subst'
20259 double_quote_subst='$double_quote_subst'
20260 delay_variable_subst='$delay_variable_subst'
20261 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20262 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20263 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20264 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20265 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20266 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20267 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20268 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20269 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20270 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20271 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20272 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20273 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20274 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20275 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20276 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20277 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20278 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20279 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20280 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20281 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20282 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20283 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20284 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20285 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20286 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20287 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20288 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20289 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20290 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20291 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20292 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20293 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20294 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20295 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20296 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20297 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20298 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20299 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20300 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20301 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20302 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20303 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20304 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20305 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20306 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20307 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20308 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20309 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20310 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20311 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20312 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20313 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20314 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20315 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20316 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20317 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20318 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20319 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20320 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20321 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"`'
20322 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20323 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20324 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20325 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20326 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20327 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20328 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20329 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20330 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20331 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20332 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20333 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20334 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20335 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20336 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20337 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20338 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20339 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20340 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20341 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20342 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20343 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20344 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20345 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20346 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20347 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20348 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20349 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20350 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20351 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20352 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20353 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20354 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20355 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20356 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20357 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20358 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20359 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20360 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20361 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20362 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20363 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20364 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20365 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20366 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20367 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20368 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20369 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20370 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20371 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20372 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20373 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20374 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20375 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20376 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20377 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20378 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20379 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20380 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20381 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20382 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20383 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20384 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20385 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20386 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20387 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20388 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20389 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20390 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20391 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20392 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20393 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20394 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20395 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20396 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20397 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20398
20399 LTCC='$LTCC'
20400 LTCFLAGS='$LTCFLAGS'
20401 compiler='$compiler_DEFAULT'
20402
20403 # A function that is used when there is no print builtin or printf.
20404 func_fallback_echo ()
20405 {
20406 eval 'cat <<_LTECHO_EOF
20407 \$1
20408 _LTECHO_EOF'
20409 }
20410
20411 # Quote evaled strings.
20412 for var in SHELL \
20413 ECHO \
20414 PATH_SEPARATOR \
20415 SED \
20416 GREP \
20417 EGREP \
20418 FGREP \
20419 LD \
20420 NM \
20421 LN_S \
20422 lt_SP2NL \
20423 lt_NL2SP \
20424 reload_flag \
20425 FILECMD \
20426 OBJDUMP \
20427 deplibs_check_method \
20428 file_magic_cmd \
20429 file_magic_glob \
20430 want_nocaseglob \
20431 DLLTOOL \
20432 sharedlib_from_linklib_cmd \
20433 AR \
20434 archiver_list_spec \
20435 STRIP \
20436 RANLIB \
20437 CC \
20438 CFLAGS \
20439 compiler \
20440 lt_cv_sys_global_symbol_pipe \
20441 lt_cv_sys_global_symbol_to_cdecl \
20442 lt_cv_sys_global_symbol_to_import \
20443 lt_cv_sys_global_symbol_to_c_name_address \
20444 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20445 lt_cv_nm_interface \
20446 nm_file_list_spec \
20447 lt_cv_truncate_bin \
20448 lt_prog_compiler_no_builtin_flag \
20449 lt_prog_compiler_pic \
20450 lt_prog_compiler_wl \
20451 lt_prog_compiler_static \
20452 lt_cv_prog_compiler_c_o \
20453 need_locks \
20454 MANIFEST_TOOL \
20455 DSYMUTIL \
20456 NMEDIT \
20457 LIPO \
20458 OTOOL \
20459 OTOOL64 \
20460 shrext_cmds \
20461 export_dynamic_flag_spec \
20462 whole_archive_flag_spec \
20463 compiler_needs_object \
20464 with_gnu_ld \
20465 allow_undefined_flag \
20466 no_undefined_flag \
20467 hardcode_libdir_flag_spec \
20468 hardcode_libdir_separator \
20469 exclude_expsyms \
20470 include_expsyms \
20471 file_list_spec \
20472 variables_saved_for_relink \
20473 libname_spec \
20474 library_names_spec \
20475 soname_spec \
20476 install_override_mode \
20477 finish_eval \
20478 old_striplib \
20479 striplib; do
20480 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20481 *[\\\\\\\`\\"\\\$]*)
20482 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20483 ;;
20484 *)
20485 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20486 ;;
20487 esac
20488 done
20489
20490 # Double-quote double-evaled strings.
20491 for var in reload_cmds \
20492 old_postinstall_cmds \
20493 old_postuninstall_cmds \
20494 old_archive_cmds \
20495 extract_expsyms_cmds \
20496 old_archive_from_new_cmds \
20497 old_archive_from_expsyms_cmds \
20498 archive_cmds \
20499 archive_expsym_cmds \
20500 module_cmds \
20501 module_expsym_cmds \
20502 export_symbols_cmds \
20503 prelink_cmds \
20504 postlink_cmds \
20505 postinstall_cmds \
20506 postuninstall_cmds \
20507 finish_cmds \
20508 sys_lib_search_path_spec \
20509 configure_time_dlsearch_path \
20510 configure_time_lt_sys_library_path; do
20511 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20512 *[\\\\\\\`\\"\\\$]*)
20513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20514 ;;
20515 *)
20516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20517 ;;
20518 esac
20519 done
20520
20521 ac_aux_dir='$ac_aux_dir'
20522
20523 # See if we are running on zsh, and set the options that allow our
20524 # commands through without removal of \ escapes INIT.
20525 if test -n "\${ZSH_VERSION+set}"; then
20526 setopt NO_GLOB_SUBST
20527 fi
20528
20529
20530 PACKAGE='$PACKAGE'
20531 VERSION='$VERSION'
20532 RM='$RM'
20533 ofile='$ofile'
20534
20535
20536
20537
20538 _ACEOF
20539
20540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20541
20542 # Handling of arguments.
20543 for ac_config_target in $ac_config_targets
20544 do
20545 case $ac_config_target in
20546 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20547 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20548 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20549 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20550 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20551 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20552 "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;;
20553
20554 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20555 esac
20556 done
20557
20558
20559 # If the user did not use the arguments to specify the items to instantiate,
20560 # then the envvar interface is used. Set only those that are not.
20561 # We use the long form for the default assignment because of an extremely
20562 # bizarre bug on SunOS 4.1.3.
20563 if $ac_need_defaults; then
20564 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20565 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20566 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20567 fi
20568
20569 # Have a temporary directory for convenience. Make it in the build tree
20570 # simply because there is no reason against having it here, and in addition,
20571 # creating and moving files from /tmp can sometimes cause problems.
20572 # Hook for its removal unless debugging.
20573 # Note that there is a small window in which the directory will not be cleaned:
20574 # after its creation but before its name has been assigned to `$tmp'.
20575 $debug ||
20576 {
20577 tmp= ac_tmp=
20578 trap 'exit_status=$?
20579 : "${ac_tmp:=$tmp}"
20580 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20581 ' 0
20582 trap 'as_fn_exit 1' 1 2 13 15
20583 }
20584 # Create a (secure) tmp directory for tmp files.
20585
20586 {
20587 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20588 test -d "$tmp"
20589 } ||
20590 {
20591 tmp=./conf$$-$RANDOM
20592 (umask 077 && mkdir "$tmp")
20593 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20594 ac_tmp=$tmp
20595
20596 # Set up the scripts for CONFIG_FILES section.
20597 # No need to generate them if there are no CONFIG_FILES.
20598 # This happens for instance with `./config.status config.h'.
20599 if test -n "$CONFIG_FILES"; then
20600
20601
20602 ac_cr=`echo X | tr X '\015'`
20603 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20604 # But we know of no other shell where ac_cr would be empty at this
20605 # point, so we can use a bashism as a fallback.
20606 if test "x$ac_cr" = x; then
20607 eval ac_cr=\$\'\\r\'
20608 fi
20609 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20610 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20611 ac_cs_awk_cr='\\r'
20612 else
20613 ac_cs_awk_cr=$ac_cr
20614 fi
20615
20616 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20617 _ACEOF
20618
20619
20620 {
20621 echo "cat >conf$$subs.awk <<_ACEOF" &&
20622 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20623 echo "_ACEOF"
20624 } >conf$$subs.sh ||
20625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20626 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20627 ac_delim='%!_!# '
20628 for ac_last_try in false false false false false :; do
20629 . ./conf$$subs.sh ||
20630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20631
20632 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20633 if test $ac_delim_n = $ac_delim_num; then
20634 break
20635 elif $ac_last_try; then
20636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20637 else
20638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20639 fi
20640 done
20641 rm -f conf$$subs.sh
20642
20643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20644 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20645 _ACEOF
20646 sed -n '
20647 h
20648 s/^/S["/; s/!.*/"]=/
20649 p
20650 g
20651 s/^[^!]*!//
20652 :repl
20653 t repl
20654 s/'"$ac_delim"'$//
20655 t delim
20656 :nl
20657 h
20658 s/\(.\{148\}\)..*/\1/
20659 t more1
20660 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20661 p
20662 n
20663 b repl
20664 :more1
20665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20666 p
20667 g
20668 s/.\{148\}//
20669 t nl
20670 :delim
20671 h
20672 s/\(.\{148\}\)..*/\1/
20673 t more2
20674 s/["\\]/\\&/g; s/^/"/; s/$/"/
20675 p
20676 b
20677 :more2
20678 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20679 p
20680 g
20681 s/.\{148\}//
20682 t delim
20683 ' <conf$$subs.awk | sed '
20684 /^[^""]/{
20685 N
20686 s/\n//
20687 }
20688 ' >>$CONFIG_STATUS || ac_write_fail=1
20689 rm -f conf$$subs.awk
20690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20691 _ACAWK
20692 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20693 for (key in S) S_is_set[key] = 1
20694 FS = ""
20695
20696 }
20697 {
20698 line = $ 0
20699 nfields = split(line, field, "@")
20700 substed = 0
20701 len = length(field[1])
20702 for (i = 2; i < nfields; i++) {
20703 key = field[i]
20704 keylen = length(key)
20705 if (S_is_set[key]) {
20706 value = S[key]
20707 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20708 len += length(value) + length(field[++i])
20709 substed = 1
20710 } else
20711 len += 1 + keylen
20712 }
20713
20714 print line
20715 }
20716
20717 _ACAWK
20718 _ACEOF
20719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20720 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20721 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20722 else
20723 cat
20724 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20725 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20726 _ACEOF
20727
20728 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20729 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20730 # trailing colons and then remove the whole line if VPATH becomes empty
20731 # (actually we leave an empty line to preserve line numbers).
20732 if test "x$srcdir" = x.; then
20733 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20734 h
20735 s///
20736 s/^/:/
20737 s/[ ]*$/:/
20738 s/:\$(srcdir):/:/g
20739 s/:\${srcdir}:/:/g
20740 s/:@srcdir@:/:/g
20741 s/^:*//
20742 s/:*$//
20743 x
20744 s/\(=[ ]*\).*/\1/
20745 G
20746 s/\n//
20747 s/^[^=]*=[ ]*$//
20748 }'
20749 fi
20750
20751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20752 fi # test -n "$CONFIG_FILES"
20753
20754 # Set up the scripts for CONFIG_HEADERS section.
20755 # No need to generate them if there are no CONFIG_HEADERS.
20756 # This happens for instance with `./config.status Makefile'.
20757 if test -n "$CONFIG_HEADERS"; then
20758 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20759 BEGIN {
20760 _ACEOF
20761
20762 # Transform confdefs.h into an awk script `defines.awk', embedded as
20763 # here-document in config.status, that substitutes the proper values into
20764 # config.h.in to produce config.h.
20765
20766 # Create a delimiter string that does not exist in confdefs.h, to ease
20767 # handling of long lines.
20768 ac_delim='%!_!# '
20769 for ac_last_try in false false :; do
20770 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20771 if test -z "$ac_tt"; then
20772 break
20773 elif $ac_last_try; then
20774 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20775 else
20776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20777 fi
20778 done
20779
20780 # For the awk script, D is an array of macro values keyed by name,
20781 # likewise P contains macro parameters if any. Preserve backslash
20782 # newline sequences.
20783
20784 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20785 sed -n '
20786 s/.\{148\}/&'"$ac_delim"'/g
20787 t rset
20788 :rset
20789 s/^[ ]*#[ ]*define[ ][ ]*/ /
20790 t def
20791 d
20792 :def
20793 s/\\$//
20794 t bsnl
20795 s/["\\]/\\&/g
20796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20797 D["\1"]=" \3"/p
20798 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20799 d
20800 :bsnl
20801 s/["\\]/\\&/g
20802 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20803 D["\1"]=" \3\\\\\\n"\\/p
20804 t cont
20805 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20806 t cont
20807 d
20808 :cont
20809 n
20810 s/.\{148\}/&'"$ac_delim"'/g
20811 t clear
20812 :clear
20813 s/\\$//
20814 t bsnlc
20815 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20816 d
20817 :bsnlc
20818 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20819 b cont
20820 ' <confdefs.h | sed '
20821 s/'"$ac_delim"'/"\\\
20822 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20823
20824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20825 for (key in D) D_is_set[key] = 1
20826 FS = ""
20827 }
20828 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20829 line = \$ 0
20830 split(line, arg, " ")
20831 if (arg[1] == "#") {
20832 defundef = arg[2]
20833 mac1 = arg[3]
20834 } else {
20835 defundef = substr(arg[1], 2)
20836 mac1 = arg[2]
20837 }
20838 split(mac1, mac2, "(") #)
20839 macro = mac2[1]
20840 prefix = substr(line, 1, index(line, defundef) - 1)
20841 if (D_is_set[macro]) {
20842 # Preserve the white space surrounding the "#".
20843 print prefix "define", macro P[macro] D[macro]
20844 next
20845 } else {
20846 # Replace #undef with comments. This is necessary, for example,
20847 # in the case of _POSIX_SOURCE, which is predefined and required
20848 # on some systems where configure will not decide to define it.
20849 if (defundef == "undef") {
20850 print "/*", prefix defundef, macro, "*/"
20851 next
20852 }
20853 }
20854 }
20855 { print }
20856 _ACAWK
20857 _ACEOF
20858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20859 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20860 fi # test -n "$CONFIG_HEADERS"
20861
20862
20863 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20864 shift
20865 for ac_tag
20866 do
20867 case $ac_tag in
20868 :[FHLC]) ac_mode=$ac_tag; continue;;
20869 esac
20870 case $ac_mode$ac_tag in
20871 :[FHL]*:*);;
20872 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20873 :[FH]-) ac_tag=-:-;;
20874 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20875 esac
20876 ac_save_IFS=$IFS
20877 IFS=:
20878 set x $ac_tag
20879 IFS=$ac_save_IFS
20880 shift
20881 ac_file=$1
20882 shift
20883
20884 case $ac_mode in
20885 :L) ac_source=$1;;
20886 :[FH])
20887 ac_file_inputs=
20888 for ac_f
20889 do
20890 case $ac_f in
20891 -) ac_f="$ac_tmp/stdin";;
20892 *) # Look for the file first in the build tree, then in the source tree
20893 # (if the path is not absolute). The absolute path cannot be DOS-style,
20894 # because $ac_f cannot contain `:'.
20895 test -f "$ac_f" ||
20896 case $ac_f in
20897 [\\/$]*) false;;
20898 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20899 esac ||
20900 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20901 esac
20902 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20903 as_fn_append ac_file_inputs " '$ac_f'"
20904 done
20905
20906 # Let's still pretend it is `configure' which instantiates (i.e., don't
20907 # use $as_me), people would be surprised to read:
20908 # /* config.h. Generated by config.status. */
20909 configure_input='Generated from '`
20910 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20911 `' by configure.'
20912 if test x"$ac_file" != x-; then
20913 configure_input="$ac_file. $configure_input"
20914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20915 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20916 fi
20917 # Neutralize special characters interpreted by sed in replacement strings.
20918 case $configure_input in #(
20919 *\&* | *\|* | *\\* )
20920 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20921 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20922 *) ac_sed_conf_input=$configure_input;;
20923 esac
20924
20925 case $ac_tag in
20926 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20928 esac
20929 ;;
20930 esac
20931
20932 ac_dir=`$as_dirname -- "$ac_file" ||
20933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20934 X"$ac_file" : 'X\(//\)[^/]' \| \
20935 X"$ac_file" : 'X\(//\)$' \| \
20936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20937 printf "%s\n" X"$ac_file" |
20938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20939 s//\1/
20940 q
20941 }
20942 /^X\(\/\/\)[^/].*/{
20943 s//\1/
20944 q
20945 }
20946 /^X\(\/\/\)$/{
20947 s//\1/
20948 q
20949 }
20950 /^X\(\/\).*/{
20951 s//\1/
20952 q
20953 }
20954 s/.*/./; q'`
20955 as_dir="$ac_dir"; as_fn_mkdir_p
20956 ac_builddir=.
20957
20958 case "$ac_dir" in
20959 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20960 *)
20961 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20962 # A ".." for each directory in $ac_dir_suffix.
20963 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20964 case $ac_top_builddir_sub in
20965 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20966 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20967 esac ;;
20968 esac
20969 ac_abs_top_builddir=$ac_pwd
20970 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20971 # for backward compatibility:
20972 ac_top_builddir=$ac_top_build_prefix
20973
20974 case $srcdir in
20975 .) # We are building in place.
20976 ac_srcdir=.
20977 ac_top_srcdir=$ac_top_builddir_sub
20978 ac_abs_top_srcdir=$ac_pwd ;;
20979 [\\/]* | ?:[\\/]* ) # Absolute name.
20980 ac_srcdir=$srcdir$ac_dir_suffix;
20981 ac_top_srcdir=$srcdir
20982 ac_abs_top_srcdir=$srcdir ;;
20983 *) # Relative name.
20984 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20985 ac_top_srcdir=$ac_top_build_prefix$srcdir
20986 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20987 esac
20988 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20989
20990
20991 case $ac_mode in
20992 :F)
20993 #
20994 # CONFIG_FILE
20995 #
20996
20997 case $INSTALL in
20998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20999 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21000 esac
21001 ac_MKDIR_P=$MKDIR_P
21002 case $MKDIR_P in
21003 [\\/$]* | ?:[\\/]* ) ;;
21004 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21005 esac
21006 _ACEOF
21007
21008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21009 # If the template does not know about datarootdir, expand it.
21010 # FIXME: This hack should be removed a few years after 2.60.
21011 ac_datarootdir_hack=; ac_datarootdir_seen=
21012 ac_sed_dataroot='
21013 /datarootdir/ {
21014 p
21015 q
21016 }
21017 /@datadir@/p
21018 /@docdir@/p
21019 /@infodir@/p
21020 /@localedir@/p
21021 /@mandir@/p'
21022 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21023 *datarootdir*) ac_datarootdir_seen=yes;;
21024 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21026 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21027 _ACEOF
21028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21029 ac_datarootdir_hack='
21030 s&@datadir@&$datadir&g
21031 s&@docdir@&$docdir&g
21032 s&@infodir@&$infodir&g
21033 s&@localedir@&$localedir&g
21034 s&@mandir@&$mandir&g
21035 s&\\\${datarootdir}&$datarootdir&g' ;;
21036 esac
21037 _ACEOF
21038
21039 # Neutralize VPATH when `$srcdir' = `.'.
21040 # Shell code in configure.ac might set extrasub.
21041 # FIXME: do we really want to maintain this feature?
21042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21043 ac_sed_extra="$ac_vpsub
21044 $extrasub
21045 _ACEOF
21046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21047 :t
21048 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21049 s|@configure_input@|$ac_sed_conf_input|;t t
21050 s&@top_builddir@&$ac_top_builddir_sub&;t t
21051 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21052 s&@srcdir@&$ac_srcdir&;t t
21053 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21054 s&@top_srcdir@&$ac_top_srcdir&;t t
21055 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21056 s&@builddir@&$ac_builddir&;t t
21057 s&@abs_builddir@&$ac_abs_builddir&;t t
21058 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21059 s&@INSTALL@&$ac_INSTALL&;t t
21060 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21061 $ac_datarootdir_hack
21062 "
21063 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21064 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21065
21066 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21067 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21069 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21071 which seems to be undefined. Please make sure it is defined" >&5
21072 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21073 which seems to be undefined. Please make sure it is defined" >&2;}
21074
21075 rm -f "$ac_tmp/stdin"
21076 case $ac_file in
21077 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21078 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21079 esac \
21080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21081 ;;
21082 :H)
21083 #
21084 # CONFIG_HEADER
21085 #
21086 if test x"$ac_file" != x-; then
21087 {
21088 printf "%s\n" "/* $configure_input */" >&1 \
21089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21090 } >"$ac_tmp/config.h" \
21091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21092 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21094 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21095 else
21096 rm -f "$ac_file"
21097 mv "$ac_tmp/config.h" "$ac_file" \
21098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21099 fi
21100 else
21101 printf "%s\n" "/* $configure_input */" >&1 \
21102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21103 || as_fn_error $? "could not create -" "$LINENO" 5
21104 fi
21105 # Compute "$ac_file"'s index in $config_headers.
21106 _am_arg="$ac_file"
21107 _am_stamp_count=1
21108 for _am_header in $config_headers :; do
21109 case $_am_header in
21110 $_am_arg | $_am_arg:* )
21111 break ;;
21112 * )
21113 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21114 esac
21115 done
21116 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21117 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21118 X"$_am_arg" : 'X\(//\)[^/]' \| \
21119 X"$_am_arg" : 'X\(//\)$' \| \
21120 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21121 printf "%s\n" X"$_am_arg" |
21122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21123 s//\1/
21124 q
21125 }
21126 /^X\(\/\/\)[^/].*/{
21127 s//\1/
21128 q
21129 }
21130 /^X\(\/\/\)$/{
21131 s//\1/
21132 q
21133 }
21134 /^X\(\/\).*/{
21135 s//\1/
21136 q
21137 }
21138 s/.*/./; q'`/stamp-h$_am_stamp_count
21139 ;;
21140
21141 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21142 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21143 ;;
21144 esac
21145
21146
21147 case $ac_file$ac_mode in
21148 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21149 # Older Autoconf quotes --file arguments for eval, but not when files
21150 # are listed without --file. Let's play safe and only enable the eval
21151 # if we detect the quoting.
21152 # TODO: see whether this extra hack can be removed once we start
21153 # requiring Autoconf 2.70 or later.
21154 case $CONFIG_FILES in #(
21155 *\'*) :
21156 eval set x "$CONFIG_FILES" ;; #(
21157 *) :
21158 set x $CONFIG_FILES ;; #(
21159 *) :
21160 ;;
21161 esac
21162 shift
21163 # Used to flag and report bootstrapping failures.
21164 am_rc=0
21165 for am_mf
21166 do
21167 # Strip MF so we end up with the name of the file.
21168 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21169 # Check whether this is an Automake generated Makefile which includes
21170 # dependency-tracking related rules and includes.
21171 # Grep'ing the whole file directly is not great: AIX grep has a line
21172 # limit of 2048, but all sed's we know have understand at least 4000.
21173 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21174 || continue
21175 am_dirpart=`$as_dirname -- "$am_mf" ||
21176 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21177 X"$am_mf" : 'X\(//\)[^/]' \| \
21178 X"$am_mf" : 'X\(//\)$' \| \
21179 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21180 printf "%s\n" X"$am_mf" |
21181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21182 s//\1/
21183 q
21184 }
21185 /^X\(\/\/\)[^/].*/{
21186 s//\1/
21187 q
21188 }
21189 /^X\(\/\/\)$/{
21190 s//\1/
21191 q
21192 }
21193 /^X\(\/\).*/{
21194 s//\1/
21195 q
21196 }
21197 s/.*/./; q'`
21198 am_filepart=`$as_basename -- "$am_mf" ||
21199 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21200 X"$am_mf" : 'X\(//\)$' \| \
21201 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21202 printf "%s\n" X/"$am_mf" |
21203 sed '/^.*\/\([^/][^/]*\)\/*$/{
21204 s//\1/
21205 q
21206 }
21207 /^X\/\(\/\/\)$/{
21208 s//\1/
21209 q
21210 }
21211 /^X\/\(\/\).*/{
21212 s//\1/
21213 q
21214 }
21215 s/.*/./; q'`
21216 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21217 && sed -e '/# am--include-marker/d' "$am_filepart" \
21218 | $MAKE -f - am--depfiles" >&5
21219 (cd "$am_dirpart" \
21220 && sed -e '/# am--include-marker/d' "$am_filepart" \
21221 | $MAKE -f - am--depfiles) >&5 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } || am_rc=$?
21225 done
21226 if test $am_rc -ne 0; then
21227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21228 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21229 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21230 for automatic dependency tracking. If GNU make was not used, consider
21231 re-running the configure script with MAKE=\"gmake\" (or whatever is
21232 necessary). You can also try re-running configure with the
21233 '--disable-dependency-tracking' option to at least be able to build
21234 the package (albeit without support for automatic dependency tracking).
21235 See \`config.log' for more details" "$LINENO" 5; }
21236 fi
21237 { am_dirpart=; unset am_dirpart;}
21238 { am_filepart=; unset am_filepart;}
21239 { am_mf=; unset am_mf;}
21240 { am_rc=; unset am_rc;}
21241 rm -f conftest-deps.mk
21242 }
21243 ;;
21244 "libtool":C)
21245
21246 # See if we are running on zsh, and set the options that allow our
21247 # commands through without removal of \ escapes.
21248 if test -n "${ZSH_VERSION+set}"; then
21249 setopt NO_GLOB_SUBST
21250 fi
21251
21252 cfgfile=${ofile}T
21253 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21254 $RM "$cfgfile"
21255
21256 cat <<_LT_EOF >> "$cfgfile"
21257 #! $SHELL
21258 # Generated automatically by $as_me ($PACKAGE) $VERSION
21259 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21260 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21261
21262 # Provide generalized library-building support services.
21263 # Written by Gordon Matzigkeit, 1996
21264
21265 # Copyright (C) 2014 Free Software Foundation, Inc.
21266 # This is free software; see the source for copying conditions. There is NO
21267 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21268
21269 # GNU Libtool is free software; you can redistribute it and/or modify
21270 # it under the terms of the GNU General Public License as published by
21271 # the Free Software Foundation; either version 2 of of the License, or
21272 # (at your option) any later version.
21273 #
21274 # As a special exception to the GNU General Public License, if you
21275 # distribute this file as part of a program or library that is built
21276 # using GNU Libtool, you may include this file under the same
21277 # distribution terms that you use for the rest of that program.
21278 #
21279 # GNU Libtool is distributed in the hope that it will be useful, but
21280 # WITHOUT ANY WARRANTY; without even the implied warranty of
21281 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21282 # GNU General Public License for more details.
21283 #
21284 # You should have received a copy of the GNU General Public License
21285 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21286
21287
21288 # The names of the tagged configurations supported by this script.
21289 available_tags=''
21290
21291 # Configured defaults for sys_lib_dlsearch_path munging.
21292 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21293
21294 # ### BEGIN LIBTOOL CONFIG
21295
21296 # Which release of libtool.m4 was used?
21297 macro_version=$macro_version
21298 macro_revision=$macro_revision
21299
21300 # Whether or not to build shared libraries.
21301 build_libtool_libs=$enable_shared
21302
21303 # Whether or not to build static libraries.
21304 build_old_libs=$enable_static
21305
21306 # What type of objects to build.
21307 pic_mode=$pic_mode
21308
21309 # Whether or not to optimize for fast installation.
21310 fast_install=$enable_fast_install
21311
21312 # Shared archive member basename,for filename based shared library versioning on AIX.
21313 shared_archive_member_spec=$shared_archive_member_spec
21314
21315 # Shell to use when invoking shell scripts.
21316 SHELL=$lt_SHELL
21317
21318 # An echo program that protects backslashes.
21319 ECHO=$lt_ECHO
21320
21321 # The PATH separator for the build system.
21322 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21323
21324 # The host system.
21325 host_alias=$host_alias
21326 host=$host
21327 host_os=$host_os
21328
21329 # The build system.
21330 build_alias=$build_alias
21331 build=$build
21332 build_os=$build_os
21333
21334 # A sed program that does not truncate output.
21335 SED=$lt_SED
21336
21337 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21338 Xsed="\$SED -e 1s/^X//"
21339
21340 # A grep program that handles long lines.
21341 GREP=$lt_GREP
21342
21343 # An ERE matcher.
21344 EGREP=$lt_EGREP
21345
21346 # A literal string matcher.
21347 FGREP=$lt_FGREP
21348
21349 # A BSD- or MS-compatible name lister.
21350 NM=$lt_NM
21351
21352 # Whether we need soft or hard links.
21353 LN_S=$lt_LN_S
21354
21355 # What is the maximum length of a command?
21356 max_cmd_len=$max_cmd_len
21357
21358 # Object file suffix (normally "o").
21359 objext=$ac_objext
21360
21361 # Executable file suffix (normally "").
21362 exeext=$exeext
21363
21364 # whether the shell understands "unset".
21365 lt_unset=$lt_unset
21366
21367 # turn spaces into newlines.
21368 SP2NL=$lt_lt_SP2NL
21369
21370 # turn newlines into spaces.
21371 NL2SP=$lt_lt_NL2SP
21372
21373 # convert \$build file names to \$host format.
21374 to_host_file_cmd=$lt_cv_to_host_file_cmd
21375
21376 # convert \$build files to toolchain format.
21377 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21378
21379 # A file(cmd) program that detects file types.
21380 FILECMD=$lt_FILECMD
21381
21382 # An object symbol dumper.
21383 OBJDUMP=$lt_OBJDUMP
21384
21385 # Method to check whether dependent libraries are shared objects.
21386 deplibs_check_method=$lt_deplibs_check_method
21387
21388 # Command to use when deplibs_check_method = "file_magic".
21389 file_magic_cmd=$lt_file_magic_cmd
21390
21391 # How to find potential files when deplibs_check_method = "file_magic".
21392 file_magic_glob=$lt_file_magic_glob
21393
21394 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21395 want_nocaseglob=$lt_want_nocaseglob
21396
21397 # DLL creation program.
21398 DLLTOOL=$lt_DLLTOOL
21399
21400 # Command to associate shared and link libraries.
21401 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21402
21403 # The archiver.
21404 AR=$lt_AR
21405
21406 # Flags to create an archive (by configure).
21407 lt_ar_flags=$lt_ar_flags
21408
21409 # Flags to create an archive.
21410 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21411
21412 # How to feed a file listing to the archiver.
21413 archiver_list_spec=$lt_archiver_list_spec
21414
21415 # A symbol stripping program.
21416 STRIP=$lt_STRIP
21417
21418 # Commands used to install an old-style archive.
21419 RANLIB=$lt_RANLIB
21420 old_postinstall_cmds=$lt_old_postinstall_cmds
21421 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21422
21423 # Whether to use a lock for old archive extraction.
21424 lock_old_archive_extraction=$lock_old_archive_extraction
21425
21426 # A C compiler.
21427 LTCC=$lt_CC
21428
21429 # LTCC compiler flags.
21430 LTCFLAGS=$lt_CFLAGS
21431
21432 # Take the output of nm and produce a listing of raw symbols and C names.
21433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21434
21435 # Transform the output of nm in a proper C declaration.
21436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21437
21438 # Transform the output of nm into a list of symbols to manually relocate.
21439 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21440
21441 # Transform the output of nm in a C name address pair.
21442 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21443
21444 # Transform the output of nm in a C name address pair when lib prefix is needed.
21445 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21446
21447 # The name lister interface.
21448 nm_interface=$lt_lt_cv_nm_interface
21449
21450 # Specify filename containing input files for \$NM.
21451 nm_file_list_spec=$lt_nm_file_list_spec
21452
21453 # The root where to search for dependent libraries,and where our libraries should be installed.
21454 lt_sysroot=$lt_sysroot
21455
21456 # Command to truncate a binary pipe.
21457 lt_truncate_bin=$lt_lt_cv_truncate_bin
21458
21459 # The name of the directory that contains temporary libtool files.
21460 objdir=$objdir
21461
21462 # Used to examine libraries when file_magic_cmd begins with "file".
21463 MAGIC_CMD=$MAGIC_CMD
21464
21465 # Must we lock files when doing compilation?
21466 need_locks=$lt_need_locks
21467
21468 # Manifest tool.
21469 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21470
21471 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21472 DSYMUTIL=$lt_DSYMUTIL
21473
21474 # Tool to change global to local symbols on Mac OS X.
21475 NMEDIT=$lt_NMEDIT
21476
21477 # Tool to manipulate fat objects and archives on Mac OS X.
21478 LIPO=$lt_LIPO
21479
21480 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21481 OTOOL=$lt_OTOOL
21482
21483 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21484 OTOOL64=$lt_OTOOL64
21485
21486 # Old archive suffix (normally "a").
21487 libext=$libext
21488
21489 # Shared library suffix (normally ".so").
21490 shrext_cmds=$lt_shrext_cmds
21491
21492 # The commands to extract the exported symbol list from a shared archive.
21493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21494
21495 # Variables whose values should be saved in libtool wrapper scripts and
21496 # restored at link time.
21497 variables_saved_for_relink=$lt_variables_saved_for_relink
21498
21499 # Do we need the "lib" prefix for modules?
21500 need_lib_prefix=$need_lib_prefix
21501
21502 # Do we need a version for libraries?
21503 need_version=$need_version
21504
21505 # Library versioning type.
21506 version_type=$version_type
21507
21508 # Shared library runtime path variable.
21509 runpath_var=$runpath_var
21510
21511 # Shared library path variable.
21512 shlibpath_var=$shlibpath_var
21513
21514 # Is shlibpath searched before the hard-coded library search path?
21515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21516
21517 # Format of library name prefix.
21518 libname_spec=$lt_libname_spec
21519
21520 # List of archive names. First name is the real one, the rest are links.
21521 # The last name is the one that the linker finds with -lNAME
21522 library_names_spec=$lt_library_names_spec
21523
21524 # The coded name of the library, if different from the real name.
21525 soname_spec=$lt_soname_spec
21526
21527 # Permission mode override for installation of shared libraries.
21528 install_override_mode=$lt_install_override_mode
21529
21530 # Command to use after installation of a shared archive.
21531 postinstall_cmds=$lt_postinstall_cmds
21532
21533 # Command to use after uninstallation of a shared archive.
21534 postuninstall_cmds=$lt_postuninstall_cmds
21535
21536 # Commands used to finish a libtool library installation in a directory.
21537 finish_cmds=$lt_finish_cmds
21538
21539 # As "finish_cmds", except a single script fragment to be evaled but
21540 # not shown.
21541 finish_eval=$lt_finish_eval
21542
21543 # Whether we should hardcode library paths into libraries.
21544 hardcode_into_libs=$hardcode_into_libs
21545
21546 # Compile-time system search path for libraries.
21547 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21548
21549 # Detected run-time system search path for libraries.
21550 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21551
21552 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21553 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21554
21555 # Whether dlopen is supported.
21556 dlopen_support=$enable_dlopen
21557
21558 # Whether dlopen of programs is supported.
21559 dlopen_self=$enable_dlopen_self
21560
21561 # Whether dlopen of statically linked programs is supported.
21562 dlopen_self_static=$enable_dlopen_self_static
21563
21564 # Commands to strip libraries.
21565 old_striplib=$lt_old_striplib
21566 striplib=$lt_striplib
21567
21568
21569 # The linker used to build libraries.
21570 LD=$lt_LD
21571
21572 # How to create reloadable object files.
21573 reload_flag=$lt_reload_flag
21574 reload_cmds=$lt_reload_cmds
21575
21576 # Commands used to build an old-style archive.
21577 old_archive_cmds=$lt_old_archive_cmds
21578
21579 # A language specific compiler.
21580 CC=$lt_compiler
21581
21582 # Is the compiler the GNU compiler?
21583 with_gcc=$GCC
21584
21585 # Compiler flag to turn off builtin functions.
21586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21587
21588 # Additional compiler flags for building library objects.
21589 pic_flag=$lt_lt_prog_compiler_pic
21590
21591 # How to pass a linker flag through the compiler.
21592 wl=$lt_lt_prog_compiler_wl
21593
21594 # Compiler flag to prevent dynamic linking.
21595 link_static_flag=$lt_lt_prog_compiler_static
21596
21597 # Does compiler simultaneously support -c and -o options?
21598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21599
21600 # Whether or not to add -lc for building shared libraries.
21601 build_libtool_need_lc=$archive_cmds_need_lc
21602
21603 # Whether or not to disallow shared libs when runtime libs are static.
21604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21605
21606 # Compiler flag to allow reflexive dlopens.
21607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21608
21609 # Compiler flag to generate shared objects directly from archives.
21610 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21611
21612 # Whether the compiler copes with passing no objects directly.
21613 compiler_needs_object=$lt_compiler_needs_object
21614
21615 # Create an old-style archive from a shared archive.
21616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21617
21618 # Create a temporary old-style archive to link instead of a shared archive.
21619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21620
21621 # Commands used to build a shared archive.
21622 archive_cmds=$lt_archive_cmds
21623 archive_expsym_cmds=$lt_archive_expsym_cmds
21624
21625 # Commands used to build a loadable module if different from building
21626 # a shared archive.
21627 module_cmds=$lt_module_cmds
21628 module_expsym_cmds=$lt_module_expsym_cmds
21629
21630 # Whether we are building with GNU ld or not.
21631 with_gnu_ld=$lt_with_gnu_ld
21632
21633 # Flag that allows shared libraries with undefined symbols to be built.
21634 allow_undefined_flag=$lt_allow_undefined_flag
21635
21636 # Flag that enforces no undefined symbols.
21637 no_undefined_flag=$lt_no_undefined_flag
21638
21639 # Flag to hardcode \$libdir into a binary during linking.
21640 # This must work even if \$libdir does not exist
21641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21642
21643 # Whether we need a single "-rpath" flag with a separated argument.
21644 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21645
21646 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21647 # DIR into the resulting binary.
21648 hardcode_direct=$hardcode_direct
21649
21650 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21651 # DIR into the resulting binary and the resulting library dependency is
21652 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21653 # library is relocated.
21654 hardcode_direct_absolute=$hardcode_direct_absolute
21655
21656 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21657 # into the resulting binary.
21658 hardcode_minus_L=$hardcode_minus_L
21659
21660 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21661 # into the resulting binary.
21662 hardcode_shlibpath_var=$hardcode_shlibpath_var
21663
21664 # Set to "yes" if building a shared library automatically hardcodes DIR
21665 # into the library and all subsequent libraries and executables linked
21666 # against it.
21667 hardcode_automatic=$hardcode_automatic
21668
21669 # Set to yes if linker adds runtime paths of dependent libraries
21670 # to runtime path list.
21671 inherit_rpath=$inherit_rpath
21672
21673 # Whether libtool must link a program against all its dependency libraries.
21674 link_all_deplibs=$link_all_deplibs
21675
21676 # Set to "yes" if exported symbols are required.
21677 always_export_symbols=$always_export_symbols
21678
21679 # The commands to list exported symbols.
21680 export_symbols_cmds=$lt_export_symbols_cmds
21681
21682 # Symbols that should not be listed in the preloaded symbols.
21683 exclude_expsyms=$lt_exclude_expsyms
21684
21685 # Symbols that must always be exported.
21686 include_expsyms=$lt_include_expsyms
21687
21688 # Commands necessary for linking programs (against libraries) with templates.
21689 prelink_cmds=$lt_prelink_cmds
21690
21691 # Commands necessary for finishing linking programs.
21692 postlink_cmds=$lt_postlink_cmds
21693
21694 # Specify filename containing input files.
21695 file_list_spec=$lt_file_list_spec
21696
21697 # How to hardcode a shared library path into an executable.
21698 hardcode_action=$hardcode_action
21699
21700 # ### END LIBTOOL CONFIG
21701
21702 _LT_EOF
21703
21704 cat <<'_LT_EOF' >> "$cfgfile"
21705
21706 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21707
21708 # func_munge_path_list VARIABLE PATH
21709 # -----------------------------------
21710 # VARIABLE is name of variable containing _space_ separated list of
21711 # directories to be munged by the contents of PATH, which is string
21712 # having a format:
21713 # "DIR[:DIR]:"
21714 # string "DIR[ DIR]" will be prepended to VARIABLE
21715 # ":DIR[:DIR]"
21716 # string "DIR[ DIR]" will be appended to VARIABLE
21717 # "DIRP[:DIRP]::[DIRA:]DIRA"
21718 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21719 # "DIRA[ DIRA]" will be appended to VARIABLE
21720 # "DIR[:DIR]"
21721 # VARIABLE will be replaced by "DIR[ DIR]"
21722 func_munge_path_list ()
21723 {
21724 case x$2 in
21725 x)
21726 ;;
21727 *:)
21728 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21729 ;;
21730 x:*)
21731 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21732 ;;
21733 *::*)
21734 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21735 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21736 ;;
21737 *)
21738 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21739 ;;
21740 esac
21741 }
21742
21743
21744 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21745 func_cc_basename ()
21746 {
21747 for cc_temp in $*""; do
21748 case $cc_temp in
21749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21751 \-*) ;;
21752 *) break;;
21753 esac
21754 done
21755 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21756 }
21757
21758
21759 # ### END FUNCTIONS SHARED WITH CONFIGURE
21760
21761 _LT_EOF
21762
21763 case $host_os in
21764 aix3*)
21765 cat <<\_LT_EOF >> "$cfgfile"
21766 # AIX sometimes has problems with the GCC collect2 program. For some
21767 # reason, if we set the COLLECT_NAMES environment variable, the problems
21768 # vanish in a puff of smoke.
21769 if test set != "${COLLECT_NAMES+set}"; then
21770 COLLECT_NAMES=
21771 export COLLECT_NAMES
21772 fi
21773 _LT_EOF
21774 ;;
21775 esac
21776
21777
21778
21779 ltmain=$ac_aux_dir/ltmain.sh
21780
21781
21782 # We use sed instead of cat because bash on DJGPP gets confused if
21783 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21784 # text mode, it properly converts lines to CR/LF. This bash problem
21785 # is reportedly fixed, but why not run on old versions too?
21786 $SED '$q' "$ltmain" >> "$cfgfile" \
21787 || (rm -f "$cfgfile"; exit 1)
21788
21789 mv -f "$cfgfile" "$ofile" ||
21790 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21791 chmod +x "$ofile"
21792
21793 ;;
21794
21795 esac
21796 done # for ac_tag
21797
21798
21799 as_fn_exit 0
21800 _ACEOF
21801 ac_clean_files=$ac_clean_files_save
21802
21803 test $ac_write_fail = 0 ||
21804 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21805
21806
21807 # configure is writing to config.log, and then calls config.status.
21808 # config.status does its own redirection, appending to config.log.
21809 # Unfortunately, on DOS this fails, as config.log is still kept open
21810 # by configure, so config.status won't be able to write to it; its
21811 # output is simply discarded. So we exec the FD to /dev/null,
21812 # effectively closing config.log, so it can be properly (re)opened and
21813 # appended to by config.status. When coming back to configure, we
21814 # need to make the FD available again.
21815 if test "$no_create" != yes; then
21816 ac_cs_success=:
21817 ac_config_status_args=
21818 test "$silent" = yes &&
21819 ac_config_status_args="$ac_config_status_args --quiet"
21820 exec 5>/dev/null
21821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21822 exec 5>>config.log
21823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21824 # would make configure fail if this is the last instruction.
21825 $ac_cs_success || as_fn_exit 1
21826 fi
21827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21829 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21830 fi
21831
21832
21833