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 libfontenc 1.1.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/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/libfontenc/-/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='libfontenc'
624 PACKAGE_TARNAME='libfontenc'
625 PACKAGE_VERSION='1.1.6'
626 PACKAGE_STRING='libfontenc 1.1.6'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/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 LINT_FALSE
667 LINT_TRUE
668 LINT_FLAGS
669 LINT
670 LIBOBJS
671 FONTENC_LIBS
672 FONTENC_CFLAGS
673 ENCODINGSDIR
674 FONTROOTDIR
675 MAN_SUBSTS
676 XORG_MAN_PAGE
677 ADMIN_MAN_DIR
678 DRIVER_MAN_DIR
679 MISC_MAN_DIR
680 FILE_MAN_DIR
681 LIB_MAN_DIR
682 APP_MAN_DIR
683 ADMIN_MAN_SUFFIX
684 DRIVER_MAN_SUFFIX
685 MISC_MAN_SUFFIX
686 FILE_MAN_SUFFIX
687 LIB_MAN_SUFFIX
688 APP_MAN_SUFFIX
689 INSTALL_CMD
690 PKG_CONFIG_LIBDIR
691 PKG_CONFIG_PATH
692 PKG_CONFIG
693 CHANGELOG_CMD
694 STRICT_CFLAGS
695 CWARNFLAGS
696 BASE_CFLAGS
697 LT_SYS_LIBRARY_PATH
698 OTOOL64
699 OTOOL
700 LIPO
701 NMEDIT
702 DSYMUTIL
703 MANIFEST_TOOL
704 RANLIB
705 ac_ct_AR
706 AR
707 DLLTOOL
708 OBJDUMP
709 FILECMD
710 LN_S
711 NM
712 ac_ct_DUMPBIN
713 DUMPBIN
714 LD
715 FGREP
716 EGREP
717 GREP
718 SED
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 LIBTOOL
728 AM_BACKSLASH
729 AM_DEFAULT_VERBOSITY
730 AM_DEFAULT_V
731 AM_V
732 CSCOPE
733 ETAGS
734 CTAGS
735 am__fastdepCC_FALSE
736 am__fastdepCC_TRUE
737 CCDEPMODE
738 am__nodep
739 AMDEPBACKSLASH
740 AMDEP_FALSE
741 AMDEP_TRUE
742 am__include
743 DEPDIR
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
749 AWK
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 runstatedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL
813 am__quote'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_dependency_tracking
818 enable_silent_rules
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_aix_soname
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 enable_selective_werror
828 enable_strict_compilation
829 with_fontrootdir
830 with_encodingsdir
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 FONTENC_CFLAGS
846 FONTENC_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 libfontenc 1.1.6 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/libfontenc]
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 libfontenc 1.1.6:";;
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-dependency-tracking
1477 do not reject slow dependency extractors
1478 --disable-dependency-tracking
1479 speeds up one-time build
1480 --enable-silent-rules less verbose build output (undo: "make V=1")
1481 --disable-silent-rules verbose build output (undo: "make V=0")
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
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
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1498 both]
1499 --with-aix-soname=aix|svr4|both
1500 shared library versioning (aka "SONAME") variant to
1501 provide on AIX, [default=aix].
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1504 compiler's sysroot if not specified).
1505 --with-fontrootdir=DIR Path to root directory for font files
1506 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
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 FONTENC_CFLAGS
1526 C compiler flags for FONTENC, overriding pkg-config
1527 FONTENC_LIBS
1528 linker flags for FONTENC, 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/libfontenc/-/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 libfontenc configure 1.1.6
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_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 printf %s "checking for $2... " >&6; }
1661 if eval test \${$3+y}
1662 then :
1663 printf %s "(cached) " >&6
1664 else $as_nop
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"
1671 then :
1672 eval "$3=yes"
1673 else $as_nop
1674 eval "$3=no"
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1677 fi
1678 eval ac_res=\$$3
1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 printf "%s\n" "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683 } # ac_fn_c_check_header_compile
1684
1685 # ac_fn_c_try_link LINENO
1686 # -----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_link ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 printf "%s\n" "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest$ac_exeext && {
1711 test "$cross_compiling" = yes ||
1712 test -x conftest$ac_exeext
1713 }
1714 then :
1715 ac_retval=0
1716 else $as_nop
1717 printf "%s\n" "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_link
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 ac_configure_args_raw=
1846 for ac_arg
1847 do
1848 case $ac_arg in
1849 *\'*)
1850 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1851 esac
1852 as_fn_append ac_configure_args_raw " '$ac_arg'"
1853 done
1854
1855 case $ac_configure_args_raw in
1856 *$as_nl*)
1857 ac_safe_unquote= ;;
1858 *)
1859 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1860 ac_unsafe_a="$ac_unsafe_z#~"
1861 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1862 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1863 esac
1864
1865 cat >config.log <<_ACEOF
1866 This file contains any messages produced by compilers while
1867 running configure, to aid debugging if configure makes a mistake.
1868
1869 It was created by libfontenc $as_me 1.1.6, which was
1870 generated by GNU Autoconf 2.71. Invocation command line was
1871
1872 $ $0$ac_configure_args_raw
1873
1874 _ACEOF
1875 exec 5>>config.log
1876 {
1877 cat <<_ASUNAME
1878 ## --------- ##
1879 ## Platform. ##
1880 ## --------- ##
1881
1882 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887
1888 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1890
1891 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1892 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1893 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1895 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1896 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1897 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1898
1899 _ASUNAME
1900
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904 IFS=$as_save_IFS
1905 case $as_dir in #(((
1906 '') as_dir=./ ;;
1907 */) ;;
1908 *) as_dir=$as_dir/ ;;
1909 esac
1910 printf "%s\n" "PATH: $as_dir"
1911 done
1912 IFS=$as_save_IFS
1913
1914 } >&5
1915
1916 cat >&5 <<_ACEOF
1917
1918
1919 ## ----------- ##
1920 ## Core tests. ##
1921 ## ----------- ##
1922
1923 _ACEOF
1924
1925
1926 # Keep a trace of the command line.
1927 # Strip out --no-create and --no-recursion so they do not pile up.
1928 # Strip out --silent because we don't want to record it for future runs.
1929 # Also quote any args containing shell meta-characters.
1930 # Make two passes to allow for proper duplicate-argument suppression.
1931 ac_configure_args=
1932 ac_configure_args0=
1933 ac_configure_args1=
1934 ac_must_keep_next=false
1935 for ac_pass in 1 2
1936 do
1937 for ac_arg
1938 do
1939 case $ac_arg in
1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1942 | -silent | --silent | --silen | --sile | --sil)
1943 continue ;;
1944 *\'*)
1945 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946 esac
1947 case $ac_pass in
1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949 2)
1950 as_fn_append ac_configure_args1 " '$ac_arg'"
1951 if test $ac_must_keep_next = true; then
1952 ac_must_keep_next=false # Got value, back to normal.
1953 else
1954 case $ac_arg in
1955 *=* | --config-cache | -C | -disable-* | --disable-* \
1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1958 | -with-* | --with-* | -without-* | --without-* | --x)
1959 case "$ac_configure_args0 " in
1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961 esac
1962 ;;
1963 -* ) ac_must_keep_next=true ;;
1964 esac
1965 fi
1966 as_fn_append ac_configure_args " '$ac_arg'"
1967 ;;
1968 esac
1969 done
1970 done
1971 { ac_configure_args0=; unset ac_configure_args0;}
1972 { ac_configure_args1=; unset ac_configure_args1;}
1973
1974 # When interrupted or exit'd, cleanup temporary files, and complete
1975 # config.log. We remove comments because anyway the quotes in there
1976 # would cause problems or look ugly.
1977 # WARNING: Use '\'' to represent an apostrophe within the trap.
1978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1979 trap 'exit_status=$?
1980 # Sanitize IFS.
1981 IFS=" "" $as_nl"
1982 # Save into config.log some information that might help in debugging.
1983 {
1984 echo
1985
1986 printf "%s\n" "## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##"
1989 echo
1990 # The following way of writing the cache mishandles newlines in values,
1991 (
1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in #(
1995 *${as_nl}*)
1996 case $ac_var in #(
1997 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999 esac
2000 case $ac_var in #(
2001 _ | IFS | as_nl) ;; #(
2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003 *) { eval $ac_var=; unset $ac_var;} ;;
2004 esac ;;
2005 esac
2006 done
2007 (set) 2>&1 |
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2010 sed -n \
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013 ;; #(
2014 *)
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016 ;;
2017 esac |
2018 sort
2019 )
2020 echo
2021
2022 printf "%s\n" "## ----------------- ##
2023 ## Output variables. ##
2024 ## ----------------- ##"
2025 echo
2026 for ac_var in $ac_subst_vars
2027 do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 printf "%s\n" "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2035
2036 if test -n "$ac_subst_files"; then
2037 printf "%s\n" "## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##"
2040 echo
2041 for ac_var in $ac_subst_files
2042 do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 printf "%s\n" "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2050 fi
2051
2052 if test -s confdefs.h; then
2053 printf "%s\n" "## ----------- ##
2054 ## confdefs.h. ##
2055 ## ----------- ##"
2056 echo
2057 cat confdefs.h
2058 echo
2059 fi
2060 test "$ac_signal" != 0 &&
2061 printf "%s\n" "$as_me: caught signal $ac_signal"
2062 printf "%s\n" "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2067 ' 0
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2072
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2075
2076 printf "%s\n" "/* confdefs.h */" > confdefs.h
2077
2078 # Predefined preprocessor variables.
2079
2080 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2081
2082 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2083
2084 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2085
2086 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2087
2088 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2089
2090 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2091
2092
2093 # Let the site file select an alternate cache file if it wants to.
2094 # Prefer an explicitly selected file to automatically selected ones.
2095 if test -n "$CONFIG_SITE"; then
2096 ac_site_files="$CONFIG_SITE"
2097 elif test "x$prefix" != xNONE; then
2098 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2099 else
2100 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2101 fi
2102
2103 for ac_site_file in $ac_site_files
2104 do
2105 case $ac_site_file in #(
2106 */*) :
2107 ;; #(
2108 *) :
2109 ac_site_file=./$ac_site_file ;;
2110 esac
2111 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2113 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2114 sed 's/^/| /' "$ac_site_file" >&5
2115 . "$ac_site_file" \
2116 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2118 as_fn_error $? "failed to load site script $ac_site_file
2119 See \`config.log' for more details" "$LINENO" 5; }
2120 fi
2121 done
2122
2123 if test -r "$cache_file"; then
2124 # Some versions of bash will fail to source /dev/null (special files
2125 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2126 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2128 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2129 case $cache_file in
2130 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2131 *) . "./$cache_file";;
2132 esac
2133 fi
2134 else
2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2136 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2137 >$cache_file
2138 fi
2139
2140 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2141 # Test code for whether the C compiler supports C89 (global declarations)
2142 ac_c_conftest_c89_globals='
2143 /* Does the compiler advertise C89 conformance?
2144 Do not test the value of __STDC__, because some compilers set it to 0
2145 while being otherwise adequately conformant. */
2146 #if !defined __STDC__
2147 # error "Compiler does not advertise C89 conformance"
2148 #endif
2149
2150 #include <stddef.h>
2151 #include <stdarg.h>
2152 struct stat;
2153 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2154 struct buf { int x; };
2155 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2156 static char *e (p, i)
2157 char **p;
2158 int i;
2159 {
2160 return p[i];
2161 }
2162 static char *f (char * (*g) (char **, int), char **p, ...)
2163 {
2164 char *s;
2165 va_list v;
2166 va_start (v,p);
2167 s = g (p, va_arg (v,int));
2168 va_end (v);
2169 return s;
2170 }
2171
2172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2173 function prototypes and stuff, but not \xHH hex character constants.
2174 These do not provoke an error unfortunately, instead are silently treated
2175 as an "x". The following induces an error, until -std is added to get
2176 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2177 array size at least. It is necessary to write \x00 == 0 to get something
2178 that is true only with -std. */
2179 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2180
2181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2182 inside strings and character constants. */
2183 #define FOO(x) '\''x'\''
2184 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2185
2186 int test (int i, double x);
2187 struct s1 {int (*f) (int a);};
2188 struct s2 {int (*f) (double a);};
2189 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2190 int, int);'
2191
2192 # Test code for whether the C compiler supports C89 (body of main).
2193 ac_c_conftest_c89_main='
2194 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2195 '
2196
2197 # Test code for whether the C compiler supports C99 (global declarations)
2198 ac_c_conftest_c99_globals='
2199 // Does the compiler advertise C99 conformance?
2200 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2201 # error "Compiler does not advertise C99 conformance"
2202 #endif
2203
2204 #include <stdbool.h>
2205 extern int puts (const char *);
2206 extern int printf (const char *, ...);
2207 extern int dprintf (int, const char *, ...);
2208 extern void *malloc (size_t);
2209
2210 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2211 // dprintf is used instead of fprintf to avoid needing to declare
2212 // FILE and stderr.
2213 #define debug(...) dprintf (2, __VA_ARGS__)
2214 #define showlist(...) puts (#__VA_ARGS__)
2215 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2216 static void
2217 test_varargs_macros (void)
2218 {
2219 int x = 1234;
2220 int y = 5678;
2221 debug ("Flag");
2222 debug ("X = %d\n", x);
2223 showlist (The first, second, and third items.);
2224 report (x>y, "x is %d but y is %d", x, y);
2225 }
2226
2227 // Check long long types.
2228 #define BIG64 18446744073709551615ull
2229 #define BIG32 4294967295ul
2230 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2231 #if !BIG_OK
2232 #error "your preprocessor is broken"
2233 #endif
2234 #if BIG_OK
2235 #else
2236 #error "your preprocessor is broken"
2237 #endif
2238 static long long int bignum = -9223372036854775807LL;
2239 static unsigned long long int ubignum = BIG64;
2240
2241 struct incomplete_array
2242 {
2243 int datasize;
2244 double data[];
2245 };
2246
2247 struct named_init {
2248 int number;
2249 const wchar_t *name;
2250 double average;
2251 };
2252
2253 typedef const char *ccp;
2254
2255 static inline int
2256 test_restrict (ccp restrict text)
2257 {
2258 // See if C++-style comments work.
2259 // Iterate through items via the restricted pointer.
2260 // Also check for declarations in for loops.
2261 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2262 continue;
2263 return 0;
2264 }
2265
2266 // Check varargs and va_copy.
2267 static bool
2268 test_varargs (const char *format, ...)
2269 {
2270 va_list args;
2271 va_start (args, format);
2272 va_list args_copy;
2273 va_copy (args_copy, args);
2274
2275 const char *str = "";
2276 int number = 0;
2277 float fnumber = 0;
2278
2279 while (*format)
2280 {
2281 switch (*format++)
2282 {
2283 case '\''s'\'': // string
2284 str = va_arg (args_copy, const char *);
2285 break;
2286 case '\''d'\'': // int
2287 number = va_arg (args_copy, int);
2288 break;
2289 case '\''f'\'': // float
2290 fnumber = va_arg (args_copy, double);
2291 break;
2292 default:
2293 break;
2294 }
2295 }
2296 va_end (args_copy);
2297 va_end (args);
2298
2299 return *str && number && fnumber;
2300 }
2301 '
2302
2303 # Test code for whether the C compiler supports C99 (body of main).
2304 ac_c_conftest_c99_main='
2305 // Check bool.
2306 _Bool success = false;
2307 success |= (argc != 0);
2308
2309 // Check restrict.
2310 if (test_restrict ("String literal") == 0)
2311 success = true;
2312 char *restrict newvar = "Another string";
2313
2314 // Check varargs.
2315 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2316 test_varargs_macros ();
2317
2318 // Check flexible array members.
2319 struct incomplete_array *ia =
2320 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2321 ia->datasize = 10;
2322 for (int i = 0; i < ia->datasize; ++i)
2323 ia->data[i] = i * 1.234;
2324
2325 // Check named initializers.
2326 struct named_init ni = {
2327 .number = 34,
2328 .name = L"Test wide string",
2329 .average = 543.34343,
2330 };
2331
2332 ni.number = 58;
2333
2334 int dynamic_array[ni.number];
2335 dynamic_array[0] = argv[0][0];
2336 dynamic_array[ni.number - 1] = 543;
2337
2338 // work around unused variable warnings
2339 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2340 || dynamic_array[ni.number - 1] != 543);
2341 '
2342
2343 # Test code for whether the C compiler supports C11 (global declarations)
2344 ac_c_conftest_c11_globals='
2345 // Does the compiler advertise C11 conformance?
2346 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2347 # error "Compiler does not advertise C11 conformance"
2348 #endif
2349
2350 // Check _Alignas.
2351 char _Alignas (double) aligned_as_double;
2352 char _Alignas (0) no_special_alignment;
2353 extern char aligned_as_int;
2354 char _Alignas (0) _Alignas (int) aligned_as_int;
2355
2356 // Check _Alignof.
2357 enum
2358 {
2359 int_alignment = _Alignof (int),
2360 int_array_alignment = _Alignof (int[100]),
2361 char_alignment = _Alignof (char)
2362 };
2363 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2364
2365 // Check _Noreturn.
2366 int _Noreturn does_not_return (void) { for (;;) continue; }
2367
2368 // Check _Static_assert.
2369 struct test_static_assert
2370 {
2371 int x;
2372 _Static_assert (sizeof (int) <= sizeof (long int),
2373 "_Static_assert does not work in struct");
2374 long int y;
2375 };
2376
2377 // Check UTF-8 literals.
2378 #define u8 syntax error!
2379 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2380
2381 // Check duplicate typedefs.
2382 typedef long *long_ptr;
2383 typedef long int *long_ptr;
2384 typedef long_ptr long_ptr;
2385
2386 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2387 struct anonymous
2388 {
2389 union {
2390 struct { int i; int j; };
2391 struct { int k; long int l; } w;
2392 };
2393 int m;
2394 } v1;
2395 '
2396
2397 # Test code for whether the C compiler supports C11 (body of main).
2398 ac_c_conftest_c11_main='
2399 _Static_assert ((offsetof (struct anonymous, i)
2400 == offsetof (struct anonymous, w.k)),
2401 "Anonymous union alignment botch");
2402 v1.i = 2;
2403 v1.w.k = 5;
2404 ok |= v1.i != 5;
2405 '
2406
2407 # Test code for whether the C compiler supports C11 (complete).
2408 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2409 ${ac_c_conftest_c99_globals}
2410 ${ac_c_conftest_c11_globals}
2411
2412 int
2413 main (int argc, char **argv)
2414 {
2415 int ok = 0;
2416 ${ac_c_conftest_c89_main}
2417 ${ac_c_conftest_c99_main}
2418 ${ac_c_conftest_c11_main}
2419 return ok;
2420 }
2421 "
2422
2423 # Test code for whether the C compiler supports C99 (complete).
2424 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2425 ${ac_c_conftest_c99_globals}
2426
2427 int
2428 main (int argc, char **argv)
2429 {
2430 int ok = 0;
2431 ${ac_c_conftest_c89_main}
2432 ${ac_c_conftest_c99_main}
2433 return ok;
2434 }
2435 "
2436
2437 # Test code for whether the C compiler supports C89 (complete).
2438 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2439
2440 int
2441 main (int argc, char **argv)
2442 {
2443 int ok = 0;
2444 ${ac_c_conftest_c89_main}
2445 return ok;
2446 }
2447 "
2448
2449 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2450 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2451 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2452 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2453 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2454 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2455 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2456 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2457 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2458 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2459
2460 # Auxiliary files required by this configure script.
2461 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2462
2463 # Locations in which to look for auxiliary files.
2464 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2465
2466 # Search for a directory containing all of the required auxiliary files,
2467 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2468 # If we don't find one directory that contains all the files we need,
2469 # we report the set of missing files from the *first* directory in
2470 # $ac_aux_dir_candidates and give up.
2471 ac_missing_aux_files=""
2472 ac_first_candidate=:
2473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 as_found=false
2476 for as_dir in $ac_aux_dir_candidates
2477 do
2478 IFS=$as_save_IFS
2479 case $as_dir in #(((
2480 '') as_dir=./ ;;
2481 */) ;;
2482 *) as_dir=$as_dir/ ;;
2483 esac
2484 as_found=:
2485
2486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2487 ac_aux_dir_found=yes
2488 ac_install_sh=
2489 for ac_aux in $ac_aux_files
2490 do
2491 # As a special case, if "install-sh" is required, that requirement
2492 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2493 # and $ac_install_sh is set appropriately for whichever one is found.
2494 if test x"$ac_aux" = x"install-sh"
2495 then
2496 if test -f "${as_dir}install-sh"; then
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2498 ac_install_sh="${as_dir}install-sh -c"
2499 elif test -f "${as_dir}install.sh"; then
2500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2501 ac_install_sh="${as_dir}install.sh -c"
2502 elif test -f "${as_dir}shtool"; then
2503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2504 ac_install_sh="${as_dir}shtool install -c"
2505 else
2506 ac_aux_dir_found=no
2507 if $ac_first_candidate; then
2508 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2509 else
2510 break
2511 fi
2512 fi
2513 else
2514 if test -f "${as_dir}${ac_aux}"; then
2515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2516 else
2517 ac_aux_dir_found=no
2518 if $ac_first_candidate; then
2519 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2520 else
2521 break
2522 fi
2523 fi
2524 fi
2525 done
2526 if test "$ac_aux_dir_found" = yes; then
2527 ac_aux_dir="$as_dir"
2528 break
2529 fi
2530 ac_first_candidate=false
2531
2532 as_found=false
2533 done
2534 IFS=$as_save_IFS
2535 if $as_found
2536 then :
2537
2538 else $as_nop
2539 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2540 fi
2541
2542
2543 # These three variables are undocumented and unsupported,
2544 # and are intended to be withdrawn in a future Autoconf release.
2545 # They can cause serious problems if a builder's source tree is in a directory
2546 # whose full name contains unusual characters.
2547 if test -f "${ac_aux_dir}config.guess"; then
2548 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2549 fi
2550 if test -f "${ac_aux_dir}config.sub"; then
2551 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2552 fi
2553 if test -f "$ac_aux_dir/configure"; then
2554 ac_configure="$SHELL ${ac_aux_dir}configure"
2555 fi
2556
2557 # Check that the precious variables saved in the cache have kept the same
2558 # value.
2559 ac_cache_corrupted=false
2560 for ac_var in $ac_precious_vars; do
2561 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2562 eval ac_new_set=\$ac_env_${ac_var}_set
2563 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2564 eval ac_new_val=\$ac_env_${ac_var}_value
2565 case $ac_old_set,$ac_new_set in
2566 set,)
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2568 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2569 ac_cache_corrupted=: ;;
2570 ,set)
2571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2572 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2573 ac_cache_corrupted=: ;;
2574 ,);;
2575 *)
2576 if test "x$ac_old_val" != "x$ac_new_val"; then
2577 # differences in whitespace do not lead to failure.
2578 ac_old_val_w=`echo x $ac_old_val`
2579 ac_new_val_w=`echo x $ac_new_val`
2580 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2582 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2583 ac_cache_corrupted=:
2584 else
2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2586 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2587 eval $ac_var=\$ac_old_val
2588 fi
2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2590 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2592 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2593 fi;;
2594 esac
2595 # Pass precious variables to config.status.
2596 if test "$ac_new_set" = set; then
2597 case $ac_new_val in
2598 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2599 *) ac_arg=$ac_var=$ac_new_val ;;
2600 esac
2601 case " $ac_configure_args " in
2602 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2603 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2604 esac
2605 fi
2606 done
2607 if $ac_cache_corrupted; then
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2611 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2612 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2613 and start over" "$LINENO" 5
2614 fi
2615 ## -------------------- ##
2616 ## Main body of script. ##
2617 ## -------------------- ##
2618
2619 ac_ext=c
2620 ac_cpp='$CPP $CPPFLAGS'
2621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624
2625
2626
2627 ac_config_headers="$ac_config_headers config.h"
2628
2629
2630 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2631 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2632 # to avoid autoconf errors.
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644 # Expand $ac_aux_dir to an absolute path.
2645 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2646
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 printf %s "checking for $ac_word... " >&6; }
2657 if test ${ac_cv_prog_CC+y}
2658 then :
2659 printf %s "(cached) " >&6
2660 else $as_nop
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 case $as_dir in #(((
2669 '') as_dir=./ ;;
2670 */) ;;
2671 *) as_dir=$as_dir/ ;;
2672 esac
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 CC=$ac_cv_prog_CC
2686 if test -n "$CC"; then
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2688 printf "%s\n" "$CC" >&6; }
2689 else
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 printf "%s\n" "no" >&6; }
2692 fi
2693
2694
2695 fi
2696 if test -z "$ac_cv_prog_CC"; then
2697 ac_ct_CC=$CC
2698 # Extract the first word of "gcc", so it can be a program name with args.
2699 set dummy gcc; ac_word=$2
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 printf %s "checking for $ac_word... " >&6; }
2702 if test ${ac_cv_prog_ac_ct_CC+y}
2703 then :
2704 printf %s "(cached) " >&6
2705 else $as_nop
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 case $as_dir in #(((
2714 '') as_dir=./ ;;
2715 */) ;;
2716 *) as_dir=$as_dir/ ;;
2717 esac
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2720 ac_cv_prog_ac_ct_CC="gcc"
2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2733 printf "%s\n" "$ac_ct_CC" >&6; }
2734 else
2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 printf "%s\n" "no" >&6; }
2737 fi
2738
2739 if test "x$ac_ct_CC" = x; then
2740 CC=""
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748 CC=$ac_ct_CC
2749 fi
2750 else
2751 CC="$ac_cv_prog_CC"
2752 fi
2753
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 printf %s "checking for $ac_word... " >&6; }
2760 if test ${ac_cv_prog_CC+y}
2761 then :
2762 printf %s "(cached) " >&6
2763 else $as_nop
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 case $as_dir in #(((
2772 '') as_dir=./ ;;
2773 */) ;;
2774 *) as_dir=$as_dir/ ;;
2775 esac
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_CC="${ac_tool_prefix}cc"
2779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 CC=$ac_cv_prog_CC
2789 if test -n "$CC"; then
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791 printf "%s\n" "$CC" >&6; }
2792 else
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 printf "%s\n" "no" >&6; }
2795 fi
2796
2797
2798 fi
2799 fi
2800 if test -z "$CC"; then
2801 # Extract the first word of "cc", so it can be a program name with args.
2802 set dummy cc; ac_word=$2
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 printf %s "checking for $ac_word... " >&6; }
2805 if test ${ac_cv_prog_CC+y}
2806 then :
2807 printf %s "(cached) " >&6
2808 else $as_nop
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 ac_prog_rejected=no
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816 IFS=$as_save_IFS
2817 case $as_dir in #(((
2818 '') as_dir=./ ;;
2819 */) ;;
2820 *) as_dir=$as_dir/ ;;
2821 esac
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2824 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2825 ac_prog_rejected=yes
2826 continue
2827 fi
2828 ac_cv_prog_CC="cc"
2829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 if test $ac_prog_rejected = yes; then
2837 # We found a bogon in the path, so make sure we never use it.
2838 set dummy $ac_cv_prog_CC
2839 shift
2840 if test $# != 0; then
2841 # We chose a different compiler from the bogus one.
2842 # However, it has the same basename, so the bogon will be chosen
2843 # first if we set CC to just the basename; use the full file name.
2844 shift
2845 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2846 fi
2847 fi
2848 fi
2849 fi
2850 CC=$ac_cv_prog_CC
2851 if test -n "$CC"; then
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853 printf "%s\n" "$CC" >&6; }
2854 else
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 printf "%s\n" "no" >&6; }
2857 fi
2858
2859
2860 fi
2861 if test -z "$CC"; then
2862 if test -n "$ac_tool_prefix"; then
2863 for ac_prog in cl.exe
2864 do
2865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 printf %s "checking for $ac_word... " >&6; }
2869 if test ${ac_cv_prog_CC+y}
2870 then :
2871 printf %s "(cached) " >&6
2872 else $as_nop
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 case $as_dir in #(((
2881 '') as_dir=./ ;;
2882 */) ;;
2883 *) as_dir=$as_dir/ ;;
2884 esac
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 printf "%s\n" "$CC" >&6; }
2901 else
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 printf "%s\n" "no" >&6; }
2904 fi
2905
2906
2907 test -n "$CC" && break
2908 done
2909 fi
2910 if test -z "$CC"; then
2911 ac_ct_CC=$CC
2912 for ac_prog in cl.exe
2913 do
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 printf %s "checking for $ac_word... " >&6; }
2918 if test ${ac_cv_prog_ac_ct_CC+y}
2919 then :
2920 printf %s "(cached) " >&6
2921 else $as_nop
2922 if test -n "$ac_ct_CC"; then
2923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 case $as_dir in #(((
2930 '') as_dir=./ ;;
2931 */) ;;
2932 *) as_dir=$as_dir/ ;;
2933 esac
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2936 ac_cv_prog_ac_ct_CC="$ac_prog"
2937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949 printf "%s\n" "$ac_ct_CC" >&6; }
2950 else
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 printf "%s\n" "no" >&6; }
2953 fi
2954
2955
2956 test -n "$ac_ct_CC" && break
2957 done
2958
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2967 esac
2968 CC=$ac_ct_CC
2969 fi
2970 fi
2971
2972 fi
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}clang; ac_word=$2
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 printf %s "checking for $ac_word... " >&6; }
2979 if test ${ac_cv_prog_CC+y}
2980 then :
2981 printf %s "(cached) " >&6
2982 else $as_nop
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 case $as_dir in #(((
2991 '') as_dir=./ ;;
2992 */) ;;
2993 *) as_dir=$as_dir/ ;;
2994 esac
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC="${ac_tool_prefix}clang"
2998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 printf "%s\n" "$CC" >&6; }
3011 else
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 printf "%s\n" "no" >&6; }
3014 fi
3015
3016
3017 fi
3018 if test -z "$ac_cv_prog_CC"; then
3019 ac_ct_CC=$CC
3020 # Extract the first word of "clang", so it can be a program name with args.
3021 set dummy clang; ac_word=$2
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 printf %s "checking for $ac_word... " >&6; }
3024 if test ${ac_cv_prog_ac_ct_CC+y}
3025 then :
3026 printf %s "(cached) " >&6
3027 else $as_nop
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 case $as_dir in #(((
3036 '') as_dir=./ ;;
3037 */) ;;
3038 *) as_dir=$as_dir/ ;;
3039 esac
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_CC="clang"
3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 printf "%s\n" "$ac_ct_CC" >&6; }
3056 else
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 printf "%s\n" "no" >&6; }
3059 fi
3060
3061 if test "x$ac_ct_CC" = x; then
3062 CC=""
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070 CC=$ac_ct_CC
3071 fi
3072 else
3073 CC="$ac_cv_prog_CC"
3074 fi
3075
3076 fi
3077
3078
3079 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "no acceptable C compiler found in \$PATH
3082 See \`config.log' for more details" "$LINENO" 5; }
3083
3084 # Provide some information about the compiler.
3085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3086 set X $ac_compile
3087 ac_compiler=$2
3088 for ac_option in --version -v -V -qversion -version; do
3089 { { ac_try="$ac_compiler $ac_option >&5"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 printf "%s\n" "$ac_try_echo"; } >&5
3096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3097 ac_status=$?
3098 if test -s conftest.err; then
3099 sed '10a\
3100 ... rest of stderr output deleted ...
3101 10q' conftest.err >conftest.er1
3102 cat conftest.er1 >&5
3103 fi
3104 rm -f conftest.er1 conftest.err
3105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 done
3108
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111
3112 int
3113 main (void)
3114 {
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3124 # of exeext.
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 printf %s "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3128
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3131
3132 ac_rmfiles=
3133 for ac_file in $ac_files
3134 do
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 esac
3139 done
3140 rm -f $ac_rmfiles
3141
3142 if { { ac_try="$ac_link_default"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 printf "%s\n" "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
3150 ac_status=$?
3151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }
3153 then :
3154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3157 # so that the user can short-circuit this test for compilers unknown to
3158 # Autoconf.
3159 for ac_file in $ac_files ''
3160 do
3161 test -f "$ac_file" || continue
3162 case $ac_file in
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3164 ;;
3165 [ab].out )
3166 # We found the default executable, but exeext='' is most
3167 # certainly right.
3168 break;;
3169 *.* )
3170 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3171 then :; else
3172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3173 fi
3174 # We set ac_cv_exeext here because the later test for it is not
3175 # safe: cross compilers may not add the suffix if given an `-o'
3176 # argument, so we may need to know it at that point already.
3177 # Even if this section looks crufty: it has the advantage of
3178 # actually working.
3179 break;;
3180 * )
3181 break;;
3182 esac
3183 done
3184 test "$ac_cv_exeext" = no && ac_cv_exeext=
3185
3186 else $as_nop
3187 ac_file=''
3188 fi
3189 if test -z "$ac_file"
3190 then :
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 printf "%s\n" "no" >&6; }
3193 printf "%s\n" "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error 77 "C compiler cannot create executables
3199 See \`config.log' for more details" "$LINENO" 5; }
3200 else $as_nop
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202 printf "%s\n" "yes" >&6; }
3203 fi
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3205 printf %s "checking for C compiler default output file name... " >&6; }
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3207 printf "%s\n" "$ac_file" >&6; }
3208 ac_exeext=$ac_cv_exeext
3209
3210 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3211 ac_clean_files=$ac_clean_files_save
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3213 printf %s "checking for suffix of executables... " >&6; }
3214 if { { ac_try="$ac_link"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 printf "%s\n" "$ac_try_echo"; } >&5
3221 (eval "$ac_link") 2>&5
3222 ac_status=$?
3223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }
3225 then :
3226 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3227 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3228 # work properly (i.e., refer to `conftest.exe'), while it won't with
3229 # `rm'.
3230 for ac_file in conftest.exe conftest conftest.*; do
3231 test -f "$ac_file" || continue
3232 case $ac_file in
3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235 break;;
3236 * ) break;;
3237 esac
3238 done
3239 else $as_nop
3240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details" "$LINENO" 5; }
3244 fi
3245 rm -f conftest conftest$ac_cv_exeext
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3247 printf "%s\n" "$ac_cv_exeext" >&6; }
3248
3249 rm -f conftest.$ac_ext
3250 EXEEXT=$ac_cv_exeext
3251 ac_exeext=$EXEEXT
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3254 #include <stdio.h>
3255 int
3256 main (void)
3257 {
3258 FILE *f = fopen ("conftest.out", "w");
3259 return ferror (f) || fclose (f) != 0;
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 ac_clean_files="$ac_clean_files conftest.out"
3266 # Check that the compiler produces executables we can run. If not, either
3267 # the compiler is broken, or we cross compile.
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3269 printf %s "checking whether we are cross compiling... " >&6; }
3270 if test "$cross_compiling" != yes; then
3271 { { ac_try="$ac_link"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 printf "%s\n" "$ac_try_echo"; } >&5
3278 (eval "$ac_link") 2>&5
3279 ac_status=$?
3280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3282 if { ac_try='./conftest$ac_cv_exeext'
3283 { { case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 printf "%s\n" "$ac_try_echo"; } >&5
3289 (eval "$ac_try") 2>&5
3290 ac_status=$?
3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; }; then
3293 cross_compiling=no
3294 else
3295 if test "$cross_compiling" = maybe; then
3296 cross_compiling=yes
3297 else
3298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error 77 "cannot run C compiled programs.
3301 If you meant to cross compile, use \`--host'.
3302 See \`config.log' for more details" "$LINENO" 5; }
3303 fi
3304 fi
3305 fi
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3307 printf "%s\n" "$cross_compiling" >&6; }
3308
3309 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3310 ac_clean_files=$ac_clean_files_save
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3312 printf %s "checking for suffix of object files... " >&6; }
3313 if test ${ac_cv_objext+y}
3314 then :
3315 printf %s "(cached) " >&6
3316 else $as_nop
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319
3320 int
3321 main (void)
3322 {
3323
3324 ;
3325 return 0;
3326 }
3327 _ACEOF
3328 rm -f conftest.o conftest.obj
3329 if { { ac_try="$ac_compile"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 printf "%s\n" "$ac_try_echo"; } >&5
3336 (eval "$ac_compile") 2>&5
3337 ac_status=$?
3338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }
3340 then :
3341 for ac_file in conftest.o conftest.obj conftest.*; do
3342 test -f "$ac_file" || continue;
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3346 break;;
3347 esac
3348 done
3349 else $as_nop
3350 printf "%s\n" "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of object files: cannot compile
3356 See \`config.log' for more details" "$LINENO" 5; }
3357 fi
3358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3359 fi
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3361 printf "%s\n" "$ac_cv_objext" >&6; }
3362 OBJEXT=$ac_cv_objext
3363 ac_objext=$OBJEXT
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3365 printf %s "checking whether the compiler supports GNU C... " >&6; }
3366 if test ${ac_cv_c_compiler_gnu+y}
3367 then :
3368 printf %s "(cached) " >&6
3369 else $as_nop
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372
3373 int
3374 main (void)
3375 {
3376 #ifndef __GNUC__
3377 choke me
3378 #endif
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"
3385 then :
3386 ac_compiler_gnu=yes
3387 else $as_nop
3388 ac_compiler_gnu=no
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3392
3393 fi
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3395 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398 if test $ac_compiler_gnu = yes; then
3399 GCC=yes
3400 else
3401 GCC=
3402 fi
3403 ac_test_CFLAGS=${CFLAGS+y}
3404 ac_save_CFLAGS=$CFLAGS
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3406 printf %s "checking whether $CC accepts -g... " >&6; }
3407 if test ${ac_cv_prog_cc_g+y}
3408 then :
3409 printf %s "(cached) " >&6
3410 else $as_nop
3411 ac_save_c_werror_flag=$ac_c_werror_flag
3412 ac_c_werror_flag=yes
3413 ac_cv_prog_cc_g=no
3414 CFLAGS="-g"
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main (void)
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_c_try_compile "$LINENO"
3427 then :
3428 ac_cv_prog_cc_g=yes
3429 else $as_nop
3430 CFLAGS=""
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 int
3435 main (void)
3436 {
3437
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 if ac_fn_c_try_compile "$LINENO"
3443 then :
3444
3445 else $as_nop
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3447 CFLAGS="-g"
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450
3451 int
3452 main (void)
3453 {
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"
3460 then :
3461 ac_cv_prog_cc_g=yes
3462 fi
3463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3466 fi
3467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3468 ac_c_werror_flag=$ac_save_c_werror_flag
3469 fi
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3471 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3472 if test $ac_test_CFLAGS; then
3473 CFLAGS=$ac_save_CFLAGS
3474 elif test $ac_cv_prog_cc_g = yes; then
3475 if test "$GCC" = yes; then
3476 CFLAGS="-g -O2"
3477 else
3478 CFLAGS="-g"
3479 fi
3480 else
3481 if test "$GCC" = yes; then
3482 CFLAGS="-O2"
3483 else
3484 CFLAGS=
3485 fi
3486 fi
3487 ac_prog_cc_stdc=no
3488 if test x$ac_prog_cc_stdc = xno
3489 then :
3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3491 printf %s "checking for $CC option to enable C11 features... " >&6; }
3492 if test ${ac_cv_prog_cc_c11+y}
3493 then :
3494 printf %s "(cached) " >&6
3495 else $as_nop
3496 ac_cv_prog_cc_c11=no
3497 ac_save_CC=$CC
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500 $ac_c_conftest_c11_program
3501 _ACEOF
3502 for ac_arg in '' -std=gnu11
3503 do
3504 CC="$ac_save_CC $ac_arg"
3505 if ac_fn_c_try_compile "$LINENO"
3506 then :
3507 ac_cv_prog_cc_c11=$ac_arg
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.beam
3510 test "x$ac_cv_prog_cc_c11" != "xno" && break
3511 done
3512 rm -f conftest.$ac_ext
3513 CC=$ac_save_CC
3514 fi
3515
3516 if test "x$ac_cv_prog_cc_c11" = xno
3517 then :
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3519 printf "%s\n" "unsupported" >&6; }
3520 else $as_nop
3521 if test "x$ac_cv_prog_cc_c11" = x
3522 then :
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3524 printf "%s\n" "none needed" >&6; }
3525 else $as_nop
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3527 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3528 CC="$CC $ac_cv_prog_cc_c11"
3529 fi
3530 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3531 ac_prog_cc_stdc=c11
3532 fi
3533 fi
3534 if test x$ac_prog_cc_stdc = xno
3535 then :
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3537 printf %s "checking for $CC option to enable C99 features... " >&6; }
3538 if test ${ac_cv_prog_cc_c99+y}
3539 then :
3540 printf %s "(cached) " >&6
3541 else $as_nop
3542 ac_cv_prog_cc_c99=no
3543 ac_save_CC=$CC
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546 $ac_c_conftest_c99_program
3547 _ACEOF
3548 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3549 do
3550 CC="$ac_save_CC $ac_arg"
3551 if ac_fn_c_try_compile "$LINENO"
3552 then :
3553 ac_cv_prog_cc_c99=$ac_arg
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.beam
3556 test "x$ac_cv_prog_cc_c99" != "xno" && break
3557 done
3558 rm -f conftest.$ac_ext
3559 CC=$ac_save_CC
3560 fi
3561
3562 if test "x$ac_cv_prog_cc_c99" = xno
3563 then :
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3565 printf "%s\n" "unsupported" >&6; }
3566 else $as_nop
3567 if test "x$ac_cv_prog_cc_c99" = x
3568 then :
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3570 printf "%s\n" "none needed" >&6; }
3571 else $as_nop
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3573 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3574 CC="$CC $ac_cv_prog_cc_c99"
3575 fi
3576 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3577 ac_prog_cc_stdc=c99
3578 fi
3579 fi
3580 if test x$ac_prog_cc_stdc = xno
3581 then :
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3583 printf %s "checking for $CC option to enable C89 features... " >&6; }
3584 if test ${ac_cv_prog_cc_c89+y}
3585 then :
3586 printf %s "(cached) " >&6
3587 else $as_nop
3588 ac_cv_prog_cc_c89=no
3589 ac_save_CC=$CC
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 $ac_c_conftest_c89_program
3593 _ACEOF
3594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 do
3596 CC="$ac_save_CC $ac_arg"
3597 if ac_fn_c_try_compile "$LINENO"
3598 then :
3599 ac_cv_prog_cc_c89=$ac_arg
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.beam
3602 test "x$ac_cv_prog_cc_c89" != "xno" && break
3603 done
3604 rm -f conftest.$ac_ext
3605 CC=$ac_save_CC
3606 fi
3607
3608 if test "x$ac_cv_prog_cc_c89" = xno
3609 then :
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3611 printf "%s\n" "unsupported" >&6; }
3612 else $as_nop
3613 if test "x$ac_cv_prog_cc_c89" = x
3614 then :
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3616 printf "%s\n" "none needed" >&6; }
3617 else $as_nop
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3620 CC="$CC $ac_cv_prog_cc_c89"
3621 fi
3622 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3623 ac_prog_cc_stdc=c89
3624 fi
3625 fi
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3640 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3641 if test ${am_cv_prog_cc_c_o+y}
3642 then :
3643 printf %s "(cached) " >&6
3644 else $as_nop
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 int
3649 main (void)
3650 {
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 # Make sure it works both with $CC and with simple cc.
3657 # Following AC_PROG_CC_C_O, we do the test twice because some
3658 # compilers refuse to overwrite an existing .o file with -o,
3659 # though they will create one.
3660 am_cv_prog_cc_c_o=yes
3661 for am_i in 1 2; do
3662 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3663 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } \
3667 && test -f conftest2.$ac_objext; then
3668 : OK
3669 else
3670 am_cv_prog_cc_c_o=no
3671 break
3672 fi
3673 done
3674 rm -f core conftest*
3675 unset am_i
3676 fi
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3678 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3679 if test "$am_cv_prog_cc_c_o" != yes; then
3680 # Losing compiler, so override with the script.
3681 # FIXME: It is wrong to rewrite CC.
3682 # But if we don't then we get into trouble of one sort or another.
3683 # A longer-term fix would be to have automake use am__CC in this case,
3684 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3685 CC="$am_aux_dir/compile $CC"
3686 fi
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693
3694
3695 ac_header= ac_cache=
3696 for ac_item in $ac_header_c_list
3697 do
3698 if test $ac_cache; then
3699 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3700 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3701 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3702 fi
3703 ac_header= ac_cache=
3704 elif test $ac_header; then
3705 ac_cache=$ac_item
3706 else
3707 ac_header=$ac_item
3708 fi
3709 done
3710
3711
3712
3713
3714
3715
3716
3717
3718 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3719 then :
3720
3721 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3722
3723 fi
3724
3725
3726
3727
3728
3729
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3731 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3732 if test ${ac_cv_safe_to_define___extensions__+y}
3733 then :
3734 printf %s "(cached) " >&6
3735 else $as_nop
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 # define __EXTENSIONS__ 1
3740 $ac_includes_default
3741 int
3742 main (void)
3743 {
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"
3750 then :
3751 ac_cv_safe_to_define___extensions__=yes
3752 else $as_nop
3753 ac_cv_safe_to_define___extensions__=no
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3756 fi
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3758 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3759
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3761 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3762 if test ${ac_cv_should_define__xopen_source+y}
3763 then :
3764 printf %s "(cached) " >&6
3765 else $as_nop
3766 ac_cv_should_define__xopen_source=no
3767 if test $ac_cv_header_wchar_h = yes
3768 then :
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 #include <wchar.h>
3773 mbstate_t x;
3774 int
3775 main (void)
3776 {
3777
3778 ;
3779 return 0;
3780 }
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"
3783 then :
3784
3785 else $as_nop
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788
3789 #define _XOPEN_SOURCE 500
3790 #include <wchar.h>
3791 mbstate_t x;
3792 int
3793 main (void)
3794 {
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"
3801 then :
3802 ac_cv_should_define__xopen_source=yes
3803 fi
3804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3805 fi
3806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3807 fi
3808 fi
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3810 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3811
3812 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3813
3814 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3815
3816 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3817
3818 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3819
3820 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3821
3822 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3823
3824 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3825
3826 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3827
3828 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3829
3830 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3831
3832 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3833
3834 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3835
3836 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3837
3838 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3839
3840 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3841
3842 if test $ac_cv_header_minix_config_h = yes
3843 then :
3844 MINIX=yes
3845 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3846
3847 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3848
3849 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3850
3851 else $as_nop
3852 MINIX=
3853 fi
3854 if test $ac_cv_safe_to_define___extensions__ = yes
3855 then :
3856 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3857
3858 fi
3859 if test $ac_cv_should_define__xopen_source = yes
3860 then :
3861 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3862
3863 fi
3864
3865
3866 # Initialize Automake
3867 am__api_version='1.16'
3868
3869
3870 # Find a good install program. We prefer a C program (faster),
3871 # so one script is as good as another. But avoid the broken or
3872 # incompatible versions:
3873 # SysV /etc/install, /usr/sbin/install
3874 # SunOS /usr/etc/install
3875 # IRIX /sbin/install
3876 # AIX /bin/install
3877 # AmigaOS /C/install, which installs bootblocks on floppy discs
3878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3881 # OS/2's system install, which has a completely different semantic
3882 # ./install, which can be erroneously created by make from ./install.sh.
3883 # Reject install programs that cannot install multiple files.
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3885 printf %s "checking for a BSD-compatible install... " >&6; }
3886 if test -z "$INSTALL"; then
3887 if test ${ac_cv_path_install+y}
3888 then :
3889 printf %s "(cached) " >&6
3890 else $as_nop
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 case $as_dir in #(((
3896 '') as_dir=./ ;;
3897 */) ;;
3898 *) as_dir=$as_dir/ ;;
3899 esac
3900 # Account for fact that we put trailing slashes in our PATH walk.
3901 case $as_dir in #((
3902 ./ | /[cC]/* | \
3903 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3904 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3905 /usr/ucb/* ) ;;
3906 *)
3907 # OSF1 and SCO ODT 3.0 have their own names for install.
3908 # Don't use installbsd from OSF since it installs stuff as root
3909 # by default.
3910 for ac_prog in ginstall scoinst install; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3913 if test $ac_prog = install &&
3914 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3915 # AIX install. It has an incompatible calling convention.
3916 :
3917 elif test $ac_prog = install &&
3918 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3919 # program-specific install script used by HP pwplus--don't use.
3920 :
3921 else
3922 rm -rf conftest.one conftest.two conftest.dir
3923 echo one > conftest.one
3924 echo two > conftest.two
3925 mkdir conftest.dir
3926 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3927 test -s conftest.one && test -s conftest.two &&
3928 test -s conftest.dir/conftest.one &&
3929 test -s conftest.dir/conftest.two
3930 then
3931 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3932 break 3
3933 fi
3934 fi
3935 fi
3936 done
3937 done
3938 ;;
3939 esac
3940
3941 done
3942 IFS=$as_save_IFS
3943
3944 rm -rf conftest.one conftest.two conftest.dir
3945
3946 fi
3947 if test ${ac_cv_path_install+y}; then
3948 INSTALL=$ac_cv_path_install
3949 else
3950 # As a last resort, use the slow shell script. Don't cache a
3951 # value for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the value is a relative name.
3954 INSTALL=$ac_install_sh
3955 fi
3956 fi
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3958 printf "%s\n" "$INSTALL" >&6; }
3959
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3963
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3965
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3969 printf %s "checking whether build environment is sane... " >&6; }
3970 # Reject unsafe characters in $srcdir or the absolute working directory
3971 # name. Accept space and tab only in the latter.
3972 am_lf='
3973 '
3974 case `pwd` in
3975 *[\\\"\#\$\&\'\`$am_lf]*)
3976 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3977 esac
3978 case $srcdir in
3979 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3980 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3981 esac
3982
3983 # Do 'set' in a subshell so we don't clobber the current shell's
3984 # arguments. Must try -L first in case configure is actually a
3985 # symlink; some systems play weird games with the mod time of symlinks
3986 # (eg FreeBSD returns the mod time of the symlink's containing
3987 # directory).
3988 if (
3989 am_has_slept=no
3990 for am_try in 1 2; do
3991 echo "timestamp, slept: $am_has_slept" > conftest.file
3992 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3993 if test "$*" = "X"; then
3994 # -L didn't work.
3995 set X `ls -t "$srcdir/configure" conftest.file`
3996 fi
3997 if test "$*" != "X $srcdir/configure conftest.file" \
3998 && test "$*" != "X conftest.file $srcdir/configure"; then
3999
4000 # If neither matched, then we have a broken ls. This can happen
4001 # if, for instance, CONFIG_SHELL is bash and it inherits a
4002 # broken ls alias from the environment. This has actually
4003 # happened. Such a system could not be considered "sane".
4004 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4005 alias in your environment" "$LINENO" 5
4006 fi
4007 if test "$2" = conftest.file || test $am_try -eq 2; then
4008 break
4009 fi
4010 # Just in case.
4011 sleep 1
4012 am_has_slept=yes
4013 done
4014 test "$2" = conftest.file
4015 )
4016 then
4017 # Ok.
4018 :
4019 else
4020 as_fn_error $? "newly created file is older than distributed files!
4021 Check your system clock" "$LINENO" 5
4022 fi
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4024 printf "%s\n" "yes" >&6; }
4025 # If we didn't sleep, we still need to ensure time stamps of config.status and
4026 # generated files are strictly newer.
4027 am_sleep_pid=
4028 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4029 ( sleep 1 ) &
4030 am_sleep_pid=$!
4031 fi
4032
4033 rm -f conftest.file
4034
4035 test "$program_prefix" != NONE &&
4036 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4037 # Use a double $ so make ignores it.
4038 test "$program_suffix" != NONE &&
4039 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4040 # Double any \ or $.
4041 # By default was `s,x,x', remove it if useless.
4042 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4043 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4044
4045
4046 if test x"${MISSING+set}" != xset; then
4047 MISSING="\${SHELL} '$am_aux_dir/missing'"
4048 fi
4049 # Use eval to expand $SHELL
4050 if eval "$MISSING --is-lightweight"; then
4051 am_missing_run="$MISSING "
4052 else
4053 am_missing_run=
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4055 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4056 fi
4057
4058 if test x"${install_sh+set}" != xset; then
4059 case $am_aux_dir in
4060 *\ * | *\ *)
4061 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4062 *)
4063 install_sh="\${SHELL} $am_aux_dir/install-sh"
4064 esac
4065 fi
4066
4067 # Installed binaries are usually stripped using 'strip' when the user
4068 # run "make install-strip". However 'strip' might not be the right
4069 # tool to use in cross-compilation environments, therefore Automake
4070 # will honor the 'STRIP' environment variable to overrule this program.
4071 if test "$cross_compiling" != no; then
4072 if test -n "$ac_tool_prefix"; then
4073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}strip; ac_word=$2
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 printf %s "checking for $ac_word... " >&6; }
4077 if test ${ac_cv_prog_STRIP+y}
4078 then :
4079 printf %s "(cached) " >&6
4080 else $as_nop
4081 if test -n "$STRIP"; then
4082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087 IFS=$as_save_IFS
4088 case $as_dir in #(((
4089 '') as_dir=./ ;;
4090 */) ;;
4091 *) as_dir=$as_dir/ ;;
4092 esac
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099 done
4100 done
4101 IFS=$as_save_IFS
4102
4103 fi
4104 fi
4105 STRIP=$ac_cv_prog_STRIP
4106 if test -n "$STRIP"; then
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4108 printf "%s\n" "$STRIP" >&6; }
4109 else
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 printf "%s\n" "no" >&6; }
4112 fi
4113
4114
4115 fi
4116 if test -z "$ac_cv_prog_STRIP"; then
4117 ac_ct_STRIP=$STRIP
4118 # Extract the first word of "strip", so it can be a program name with args.
4119 set dummy strip; ac_word=$2
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 printf %s "checking for $ac_word... " >&6; }
4122 if test ${ac_cv_prog_ac_ct_STRIP+y}
4123 then :
4124 printf %s "(cached) " >&6
4125 else $as_nop
4126 if test -n "$ac_ct_STRIP"; then
4127 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 case $as_dir in #(((
4134 '') as_dir=./ ;;
4135 */) ;;
4136 *) as_dir=$as_dir/ ;;
4137 esac
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4140 ac_cv_prog_ac_ct_STRIP="strip"
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144 done
4145 done
4146 IFS=$as_save_IFS
4147
4148 fi
4149 fi
4150 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4151 if test -n "$ac_ct_STRIP"; then
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4153 printf "%s\n" "$ac_ct_STRIP" >&6; }
4154 else
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156 printf "%s\n" "no" >&6; }
4157 fi
4158
4159 if test "x$ac_ct_STRIP" = x; then
4160 STRIP=":"
4161 else
4162 case $cross_compiling:$ac_tool_warned in
4163 yes:)
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4165 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4166 ac_tool_warned=yes ;;
4167 esac
4168 STRIP=$ac_ct_STRIP
4169 fi
4170 else
4171 STRIP="$ac_cv_prog_STRIP"
4172 fi
4173
4174 fi
4175 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4176
4177
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4179 printf %s "checking for a race-free mkdir -p... " >&6; }
4180 if test -z "$MKDIR_P"; then
4181 if test ${ac_cv_path_mkdir+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else $as_nop
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4187 do
4188 IFS=$as_save_IFS
4189 case $as_dir in #(((
4190 '') as_dir=./ ;;
4191 */) ;;
4192 *) as_dir=$as_dir/ ;;
4193 esac
4194 for ac_prog in mkdir gmkdir; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4197 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4198 'mkdir ('*'coreutils) '* | \
4199 'BusyBox '* | \
4200 'mkdir (fileutils) '4.1*)
4201 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4202 break 3;;
4203 esac
4204 done
4205 done
4206 done
4207 IFS=$as_save_IFS
4208
4209 fi
4210
4211 test -d ./--version && rmdir ./--version
4212 if test ${ac_cv_path_mkdir+y}; then
4213 MKDIR_P="$ac_cv_path_mkdir -p"
4214 else
4215 # As a last resort, use the slow shell script. Don't cache a
4216 # value for MKDIR_P within a source directory, because that will
4217 # break other packages using the cache if that directory is
4218 # removed, or if the value is a relative name.
4219 MKDIR_P="$ac_install_sh -d"
4220 fi
4221 fi
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4223 printf "%s\n" "$MKDIR_P" >&6; }
4224
4225 for ac_prog in gawk mawk nawk awk
4226 do
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 printf %s "checking for $ac_word... " >&6; }
4231 if test ${ac_cv_prog_AWK+y}
4232 then :
4233 printf %s "(cached) " >&6
4234 else $as_nop
4235 if test -n "$AWK"; then
4236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 case $as_dir in #(((
4243 '') as_dir=./ ;;
4244 */) ;;
4245 *) as_dir=$as_dir/ ;;
4246 esac
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_AWK="$ac_prog"
4250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 fi
4258 fi
4259 AWK=$ac_cv_prog_AWK
4260 if test -n "$AWK"; then
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4262 printf "%s\n" "$AWK" >&6; }
4263 else
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 printf "%s\n" "no" >&6; }
4266 fi
4267
4268
4269 test -n "$AWK" && break
4270 done
4271
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4273 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4274 set x ${MAKE-make}
4275 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4276 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4277 then :
4278 printf %s "(cached) " >&6
4279 else $as_nop
4280 cat >conftest.make <<\_ACEOF
4281 SHELL = /bin/sh
4282 all:
4283 @echo '@@@%%%=$(MAKE)=@@@%%%'
4284 _ACEOF
4285 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4287 *@@@%%%=?*=@@@%%%*)
4288 eval ac_cv_prog_make_${ac_make}_set=yes;;
4289 *)
4290 eval ac_cv_prog_make_${ac_make}_set=no;;
4291 esac
4292 rm -f conftest.make
4293 fi
4294 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4296 printf "%s\n" "yes" >&6; }
4297 SET_MAKE=
4298 else
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 printf "%s\n" "no" >&6; }
4301 SET_MAKE="MAKE=${MAKE-make}"
4302 fi
4303
4304 rm -rf .tst 2>/dev/null
4305 mkdir .tst 2>/dev/null
4306 if test -d .tst; then
4307 am__leading_dot=.
4308 else
4309 am__leading_dot=_
4310 fi
4311 rmdir .tst 2>/dev/null
4312
4313 DEPDIR="${am__leading_dot}deps"
4314
4315 ac_config_commands="$ac_config_commands depfiles"
4316
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4318 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4319 cat > confinc.mk << 'END'
4320 am__doit:
4321 @echo this is the am__doit target >confinc.out
4322 .PHONY: am__doit
4323 END
4324 am__include="#"
4325 am__quote=
4326 # BSD make does it like this.
4327 echo '.include "confinc.mk" # ignored' > confmf.BSD
4328 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4329 echo 'include confinc.mk # ignored' > confmf.GNU
4330 _am_result=no
4331 for s in GNU BSD; do
4332 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4333 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }
4337 case $?:`cat confinc.out 2>/dev/null` in #(
4338 '0:this is the am__doit target') :
4339 case $s in #(
4340 BSD) :
4341 am__include='.include' am__quote='"' ;; #(
4342 *) :
4343 am__include='include' am__quote='' ;;
4344 esac ;; #(
4345 *) :
4346 ;;
4347 esac
4348 if test "$am__include" != "#"; then
4349 _am_result="yes ($s style)"
4350 break
4351 fi
4352 done
4353 rm -f confinc.* confmf.*
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4355 printf "%s\n" "${_am_result}" >&6; }
4356
4357 # Check whether --enable-dependency-tracking was given.
4358 if test ${enable_dependency_tracking+y}
4359 then :
4360 enableval=$enable_dependency_tracking;
4361 fi
4362
4363 if test "x$enable_dependency_tracking" != xno; then
4364 am_depcomp="$ac_aux_dir/depcomp"
4365 AMDEPBACKSLASH='\'
4366 am__nodep='_no'
4367 fi
4368 if test "x$enable_dependency_tracking" != xno; then
4369 AMDEP_TRUE=
4370 AMDEP_FALSE='#'
4371 else
4372 AMDEP_TRUE='#'
4373 AMDEP_FALSE=
4374 fi
4375
4376
4377 # Check whether --enable-silent-rules was given.
4378 if test ${enable_silent_rules+y}
4379 then :
4380 enableval=$enable_silent_rules;
4381 fi
4382
4383 case $enable_silent_rules in # (((
4384 yes) AM_DEFAULT_VERBOSITY=0;;
4385 no) AM_DEFAULT_VERBOSITY=1;;
4386 *) AM_DEFAULT_VERBOSITY=1;;
4387 esac
4388 am_make=${MAKE-make}
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4390 printf %s "checking whether $am_make supports nested variables... " >&6; }
4391 if test ${am_cv_make_support_nested_variables+y}
4392 then :
4393 printf %s "(cached) " >&6
4394 else $as_nop
4395 if printf "%s\n" 'TRUE=$(BAR$(V))
4396 BAR0=false
4397 BAR1=true
4398 V=1
4399 am__doit:
4400 @$(TRUE)
4401 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4402 am_cv_make_support_nested_variables=yes
4403 else
4404 am_cv_make_support_nested_variables=no
4405 fi
4406 fi
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4408 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4409 if test $am_cv_make_support_nested_variables = yes; then
4410 AM_V='$(V)'
4411 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4412 else
4413 AM_V=$AM_DEFAULT_VERBOSITY
4414 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4415 fi
4416 AM_BACKSLASH='\'
4417
4418 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4419 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4420 # is not polluted with repeated "-I."
4421 am__isrc=' -I$(srcdir)'
4422 # test to see if srcdir already configured
4423 if test -f $srcdir/config.status; then
4424 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4425 fi
4426 fi
4427
4428 # test whether we have cygpath
4429 if test -z "$CYGPATH_W"; then
4430 if (cygpath --version) >/dev/null 2>/dev/null; then
4431 CYGPATH_W='cygpath -w'
4432 else
4433 CYGPATH_W=echo
4434 fi
4435 fi
4436
4437
4438 # Define the identity of the package.
4439 PACKAGE='libfontenc'
4440 VERSION='1.1.6'
4441
4442
4443 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4444
4445
4446 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4447
4448 # Some tools Automake needs.
4449
4450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4451
4452
4453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4454
4455
4456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4457
4458
4459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4460
4461
4462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4463
4464 # For better backward compatibility. To be removed once Automake 1.9.x
4465 # dies out for good. For more background, see:
4466 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4467 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4468 mkdir_p='$(MKDIR_P)'
4469
4470 # We need awk for the "check" target (and possibly the TAP driver). The
4471 # system "awk" is bad on some platforms.
4472 # Always define AMTAR for backward compatibility. Yes, it's still used
4473 # in the wild :-( We should find a proper way to deprecate it ...
4474 AMTAR='$${TAR-tar}'
4475
4476
4477 # We'll loop over all known methods to create a tar archive until one works.
4478 _am_tools='gnutar pax cpio none'
4479
4480 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4481
4482
4483
4484
4485
4486 depcc="$CC" am_compiler_list=
4487
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4489 printf %s "checking dependency style of $depcc... " >&6; }
4490 if test ${am_cv_CC_dependencies_compiler_type+y}
4491 then :
4492 printf %s "(cached) " >&6
4493 else $as_nop
4494 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4495 # We make a subdir and do the tests there. Otherwise we can end up
4496 # making bogus files that we don't know about and never remove. For
4497 # instance it was reported that on HP-UX the gcc test will end up
4498 # making a dummy file named 'D' -- because '-MD' means "put the output
4499 # in D".
4500 rm -rf conftest.dir
4501 mkdir conftest.dir
4502 # Copy depcomp to subdir because otherwise we won't find it if we're
4503 # using a relative directory.
4504 cp "$am_depcomp" conftest.dir
4505 cd conftest.dir
4506 # We will build objects and dependencies in a subdirectory because
4507 # it helps to detect inapplicable dependency modes. For instance
4508 # both Tru64's cc and ICC support -MD to output dependencies as a
4509 # side effect of compilation, but ICC will put the dependencies in
4510 # the current directory while Tru64 will put them in the object
4511 # directory.
4512 mkdir sub
4513
4514 am_cv_CC_dependencies_compiler_type=none
4515 if test "$am_compiler_list" = ""; then
4516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4517 fi
4518 am__universal=false
4519 case " $depcc " in #(
4520 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4521 esac
4522
4523 for depmode in $am_compiler_list; do
4524 # Setup a source with many dependencies, because some compilers
4525 # like to wrap large dependency lists on column 80 (with \), and
4526 # we should not choose a depcomp mode which is confused by this.
4527 #
4528 # We need to recreate these files for each test, as the compiler may
4529 # overwrite some of them when testing with obscure command lines.
4530 # This happens at least with the AIX C compiler.
4531 : > sub/conftest.c
4532 for i in 1 2 3 4 5 6; do
4533 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4534 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4535 # Solaris 10 /bin/sh.
4536 echo '/* dummy */' > sub/conftst$i.h
4537 done
4538 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4539
4540 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4541 # mode. It turns out that the SunPro C++ compiler does not properly
4542 # handle '-M -o', and we need to detect this. Also, some Intel
4543 # versions had trouble with output in subdirs.
4544 am__obj=sub/conftest.${OBJEXT-o}
4545 am__minus_obj="-o $am__obj"
4546 case $depmode in
4547 gcc)
4548 # This depmode causes a compiler race in universal mode.
4549 test "$am__universal" = false || continue
4550 ;;
4551 nosideeffect)
4552 # After this tag, mechanisms are not by side-effect, so they'll
4553 # only be used when explicitly requested.
4554 if test "x$enable_dependency_tracking" = xyes; then
4555 continue
4556 else
4557 break
4558 fi
4559 ;;
4560 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4561 # This compiler won't grok '-c -o', but also, the minuso test has
4562 # not run yet. These depmodes are late enough in the game, and
4563 # so weak that their functioning should not be impacted.
4564 am__obj=conftest.${OBJEXT-o}
4565 am__minus_obj=
4566 ;;
4567 none) break ;;
4568 esac
4569 if depmode=$depmode \
4570 source=sub/conftest.c object=$am__obj \
4571 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4572 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4573 >/dev/null 2>conftest.err &&
4574 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4575 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4576 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4577 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4578 # icc doesn't choke on unknown options, it will just issue warnings
4579 # or remarks (even with -Werror). So we grep stderr for any message
4580 # that says an option was ignored or not supported.
4581 # When given -MP, icc 7.0 and 7.1 complain thusly:
4582 # icc: Command line warning: ignoring option '-M'; no argument required
4583 # The diagnosis changed in icc 8.0:
4584 # icc: Command line remark: option '-MP' not supported
4585 if (grep 'ignoring option' conftest.err ||
4586 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4587 am_cv_CC_dependencies_compiler_type=$depmode
4588 break
4589 fi
4590 fi
4591 done
4592
4593 cd ..
4594 rm -rf conftest.dir
4595 else
4596 am_cv_CC_dependencies_compiler_type=none
4597 fi
4598
4599 fi
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4601 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4602 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4603
4604 if
4605 test "x$enable_dependency_tracking" != xno \
4606 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4607 am__fastdepCC_TRUE=
4608 am__fastdepCC_FALSE='#'
4609 else
4610 am__fastdepCC_TRUE='#'
4611 am__fastdepCC_FALSE=
4612 fi
4613
4614
4615 # Variables for tags utilities; see am/tags.am
4616 if test -z "$CTAGS"; then
4617 CTAGS=ctags
4618 fi
4619
4620 if test -z "$ETAGS"; then
4621 ETAGS=etags
4622 fi
4623
4624 if test -z "$CSCOPE"; then
4625 CSCOPE=cscope
4626 fi
4627
4628
4629
4630 # POSIX will say in a future version that running "rm -f" with no argument
4631 # is OK; and we want to be able to make that assumption in our Makefile
4632 # recipes. So use an aggressive probe to check that the usage we want is
4633 # actually supported "in the wild" to an acceptable degree.
4634 # See automake bug#10828.
4635 # To make any issue more visible, cause the running configure to be aborted
4636 # by default if the 'rm' program in use doesn't match our expectations; the
4637 # user can still override this though.
4638 if rm -f && rm -fr && rm -rf; then : OK; else
4639 cat >&2 <<'END'
4640 Oops!
4641
4642 Your 'rm' program seems unable to run without file operands specified
4643 on the command line, even when the '-f' option is present. This is contrary
4644 to the behaviour of most rm programs out there, and not conforming with
4645 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4646
4647 Please tell bug-automake@gnu.org about your system, including the value
4648 of your $PATH and any error possibly output before this message. This
4649 can help us improve future automake versions.
4650
4651 END
4652 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4653 echo 'Configuration will proceed anyway, since you have set the' >&2
4654 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4655 echo >&2
4656 else
4657 cat >&2 <<'END'
4658 Aborting the configuration process, to ensure you take notice of the issue.
4659
4660 You can download and install GNU coreutils to get an 'rm' implementation
4661 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4662
4663 If you want to complete the configuration process using your problematic
4664 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4665 to "yes", and re-run configure.
4666
4667 END
4668 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4669 fi
4670 fi
4671
4672
4673 # Initialize libtool
4674 case `pwd` in
4675 *\ * | *\ *)
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4677 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4678 esac
4679
4680
4681
4682 macro_version='2.4.7'
4683 macro_revision='2.4.7'
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698 ltmain=$ac_aux_dir/ltmain.sh
4699
4700
4701
4702 # Make sure we can run config.sub.
4703 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4704 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4705
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4707 printf %s "checking build system type... " >&6; }
4708 if test ${ac_cv_build+y}
4709 then :
4710 printf %s "(cached) " >&6
4711 else $as_nop
4712 ac_build_alias=$build_alias
4713 test "x$ac_build_alias" = x &&
4714 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4715 test "x$ac_build_alias" = x &&
4716 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4717 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4718 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4719
4720 fi
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4722 printf "%s\n" "$ac_cv_build" >&6; }
4723 case $ac_cv_build in
4724 *-*-*) ;;
4725 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4726 esac
4727 build=$ac_cv_build
4728 ac_save_IFS=$IFS; IFS='-'
4729 set x $ac_cv_build
4730 shift
4731 build_cpu=$1
4732 build_vendor=$2
4733 shift; shift
4734 # Remember, the first character of IFS is used to create $*,
4735 # except with old shells:
4736 build_os=$*
4737 IFS=$ac_save_IFS
4738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4739
4740
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4742 printf %s "checking host system type... " >&6; }
4743 if test ${ac_cv_host+y}
4744 then :
4745 printf %s "(cached) " >&6
4746 else $as_nop
4747 if test "x$host_alias" = x; then
4748 ac_cv_host=$ac_cv_build
4749 else
4750 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4752 fi
4753
4754 fi
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4756 printf "%s\n" "$ac_cv_host" >&6; }
4757 case $ac_cv_host in
4758 *-*-*) ;;
4759 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4760 esac
4761 host=$ac_cv_host
4762 ac_save_IFS=$IFS; IFS='-'
4763 set x $ac_cv_host
4764 shift
4765 host_cpu=$1
4766 host_vendor=$2
4767 shift; shift
4768 # Remember, the first character of IFS is used to create $*,
4769 # except with old shells:
4770 host_os=$*
4771 IFS=$ac_save_IFS
4772 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4773
4774
4775 # Backslashify metacharacters that are still active within
4776 # double-quoted strings.
4777 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4778
4779 # Same as above, but do not quote variable references.
4780 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4781
4782 # Sed substitution to delay expansion of an escaped shell variable in a
4783 # double_quote_subst'ed string.
4784 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4785
4786 # Sed substitution to delay expansion of an escaped single quote.
4787 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4788
4789 # Sed substitution to avoid accidental globbing in evaled expressions
4790 no_glob_subst='s/\*/\\\*/g'
4791
4792 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4793 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4794 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4795
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4797 printf %s "checking how to print strings... " >&6; }
4798 # Test print first, because it will be a builtin if present.
4799 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4800 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4801 ECHO='print -r --'
4802 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4803 ECHO='printf %s\n'
4804 else
4805 # Use this function as a fallback that always works.
4806 func_fallback_echo ()
4807 {
4808 eval 'cat <<_LTECHO_EOF
4809 $1
4810 _LTECHO_EOF'
4811 }
4812 ECHO='func_fallback_echo'
4813 fi
4814
4815 # func_echo_all arg...
4816 # Invoke $ECHO with all args, space-separated.
4817 func_echo_all ()
4818 {
4819 $ECHO ""
4820 }
4821
4822 case $ECHO in
4823 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4824 printf "%s\n" "printf" >&6; } ;;
4825 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4826 printf "%s\n" "print -r" >&6; } ;;
4827 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4828 printf "%s\n" "cat" >&6; } ;;
4829 esac
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4845 printf %s "checking for a sed that does not truncate output... " >&6; }
4846 if test ${ac_cv_path_SED+y}
4847 then :
4848 printf %s "(cached) " >&6
4849 else $as_nop
4850 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4851 for ac_i in 1 2 3 4 5 6 7; do
4852 ac_script="$ac_script$as_nl$ac_script"
4853 done
4854 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4855 { ac_script=; unset ac_script;}
4856 if test -z "$SED"; then
4857 ac_path_SED_found=false
4858 # Loop through the user's path and test for each of PROGNAME-LIST
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862 IFS=$as_save_IFS
4863 case $as_dir in #(((
4864 '') as_dir=./ ;;
4865 */) ;;
4866 *) as_dir=$as_dir/ ;;
4867 esac
4868 for ac_prog in sed gsed
4869 do
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4872 as_fn_executable_p "$ac_path_SED" || continue
4873 # Check for GNU ac_path_SED and select it if it is found.
4874 # Check for GNU $ac_path_SED
4875 case `"$ac_path_SED" --version 2>&1` in
4876 *GNU*)
4877 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4878 *)
4879 ac_count=0
4880 printf %s 0123456789 >"conftest.in"
4881 while :
4882 do
4883 cat "conftest.in" "conftest.in" >"conftest.tmp"
4884 mv "conftest.tmp" "conftest.in"
4885 cp "conftest.in" "conftest.nl"
4886 printf "%s\n" '' >> "conftest.nl"
4887 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4889 as_fn_arith $ac_count + 1 && ac_count=$as_val
4890 if test $ac_count -gt ${ac_path_SED_max-0}; then
4891 # Best one so far, save it but keep looking for a better one
4892 ac_cv_path_SED="$ac_path_SED"
4893 ac_path_SED_max=$ac_count
4894 fi
4895 # 10*(2^10) chars as input seems more than enough
4896 test $ac_count -gt 10 && break
4897 done
4898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4899 esac
4900
4901 $ac_path_SED_found && break 3
4902 done
4903 done
4904 done
4905 IFS=$as_save_IFS
4906 if test -z "$ac_cv_path_SED"; then
4907 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4908 fi
4909 else
4910 ac_cv_path_SED=$SED
4911 fi
4912
4913 fi
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4915 printf "%s\n" "$ac_cv_path_SED" >&6; }
4916 SED="$ac_cv_path_SED"
4917 rm -f conftest.sed
4918
4919 test -z "$SED" && SED=sed
4920 Xsed="$SED -e 1s/^X//"
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4933 printf %s "checking for grep that handles long lines and -e... " >&6; }
4934 if test ${ac_cv_path_GREP+y}
4935 then :
4936 printf %s "(cached) " >&6
4937 else $as_nop
4938 if test -z "$GREP"; then
4939 ac_path_GREP_found=false
4940 # Loop through the user's path and test for each of PROGNAME-LIST
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4943 do
4944 IFS=$as_save_IFS
4945 case $as_dir in #(((
4946 '') as_dir=./ ;;
4947 */) ;;
4948 *) as_dir=$as_dir/ ;;
4949 esac
4950 for ac_prog in grep ggrep
4951 do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4954 as_fn_executable_p "$ac_path_GREP" || continue
4955 # Check for GNU ac_path_GREP and select it if it is found.
4956 # Check for GNU $ac_path_GREP
4957 case `"$ac_path_GREP" --version 2>&1` in
4958 *GNU*)
4959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4960 *)
4961 ac_count=0
4962 printf %s 0123456789 >"conftest.in"
4963 while :
4964 do
4965 cat "conftest.in" "conftest.in" >"conftest.tmp"
4966 mv "conftest.tmp" "conftest.in"
4967 cp "conftest.in" "conftest.nl"
4968 printf "%s\n" 'GREP' >> "conftest.nl"
4969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971 as_fn_arith $ac_count + 1 && ac_count=$as_val
4972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4973 # Best one so far, save it but keep looking for a better one
4974 ac_cv_path_GREP="$ac_path_GREP"
4975 ac_path_GREP_max=$ac_count
4976 fi
4977 # 10*(2^10) chars as input seems more than enough
4978 test $ac_count -gt 10 && break
4979 done
4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981 esac
4982
4983 $ac_path_GREP_found && break 3
4984 done
4985 done
4986 done
4987 IFS=$as_save_IFS
4988 if test -z "$ac_cv_path_GREP"; then
4989 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990 fi
4991 else
4992 ac_cv_path_GREP=$GREP
4993 fi
4994
4995 fi
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4997 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4998 GREP="$ac_cv_path_GREP"
4999
5000
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5002 printf %s "checking for egrep... " >&6; }
5003 if test ${ac_cv_path_EGREP+y}
5004 then :
5005 printf %s "(cached) " >&6
5006 else $as_nop
5007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5008 then ac_cv_path_EGREP="$GREP -E"
5009 else
5010 if test -z "$EGREP"; then
5011 ac_path_EGREP_found=false
5012 # Loop through the user's path and test for each of PROGNAME-LIST
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5015 do
5016 IFS=$as_save_IFS
5017 case $as_dir in #(((
5018 '') as_dir=./ ;;
5019 */) ;;
5020 *) as_dir=$as_dir/ ;;
5021 esac
5022 for ac_prog in egrep
5023 do
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5026 as_fn_executable_p "$ac_path_EGREP" || continue
5027 # Check for GNU ac_path_EGREP and select it if it is found.
5028 # Check for GNU $ac_path_EGREP
5029 case `"$ac_path_EGREP" --version 2>&1` in
5030 *GNU*)
5031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5032 *)
5033 ac_count=0
5034 printf %s 0123456789 >"conftest.in"
5035 while :
5036 do
5037 cat "conftest.in" "conftest.in" >"conftest.tmp"
5038 mv "conftest.tmp" "conftest.in"
5039 cp "conftest.in" "conftest.nl"
5040 printf "%s\n" 'EGREP' >> "conftest.nl"
5041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5043 as_fn_arith $ac_count + 1 && ac_count=$as_val
5044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5045 # Best one so far, save it but keep looking for a better one
5046 ac_cv_path_EGREP="$ac_path_EGREP"
5047 ac_path_EGREP_max=$ac_count
5048 fi
5049 # 10*(2^10) chars as input seems more than enough
5050 test $ac_count -gt 10 && break
5051 done
5052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5053 esac
5054
5055 $ac_path_EGREP_found && break 3
5056 done
5057 done
5058 done
5059 IFS=$as_save_IFS
5060 if test -z "$ac_cv_path_EGREP"; then
5061 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5062 fi
5063 else
5064 ac_cv_path_EGREP=$EGREP
5065 fi
5066
5067 fi
5068 fi
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5070 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5071 EGREP="$ac_cv_path_EGREP"
5072
5073
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5075 printf %s "checking for fgrep... " >&6; }
5076 if test ${ac_cv_path_FGREP+y}
5077 then :
5078 printf %s "(cached) " >&6
5079 else $as_nop
5080 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5081 then ac_cv_path_FGREP="$GREP -F"
5082 else
5083 if test -z "$FGREP"; then
5084 ac_path_FGREP_found=false
5085 # Loop through the user's path and test for each of PROGNAME-LIST
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5088 do
5089 IFS=$as_save_IFS
5090 case $as_dir in #(((
5091 '') as_dir=./ ;;
5092 */) ;;
5093 *) as_dir=$as_dir/ ;;
5094 esac
5095 for ac_prog in fgrep
5096 do
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5099 as_fn_executable_p "$ac_path_FGREP" || continue
5100 # Check for GNU ac_path_FGREP and select it if it is found.
5101 # Check for GNU $ac_path_FGREP
5102 case `"$ac_path_FGREP" --version 2>&1` in
5103 *GNU*)
5104 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5105 *)
5106 ac_count=0
5107 printf %s 0123456789 >"conftest.in"
5108 while :
5109 do
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 printf "%s\n" 'FGREP' >> "conftest.nl"
5114 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 as_fn_arith $ac_count + 1 && ac_count=$as_val
5117 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_FGREP="$ac_path_FGREP"
5120 ac_path_FGREP_max=$ac_count
5121 fi
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5124 done
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 esac
5127
5128 $ac_path_FGREP_found && break 3
5129 done
5130 done
5131 done
5132 IFS=$as_save_IFS
5133 if test -z "$ac_cv_path_FGREP"; then
5134 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5135 fi
5136 else
5137 ac_cv_path_FGREP=$FGREP
5138 fi
5139
5140 fi
5141 fi
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5143 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5144 FGREP="$ac_cv_path_FGREP"
5145
5146
5147 test -z "$GREP" && GREP=grep
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167 # Check whether --with-gnu-ld was given.
5168 if test ${with_gnu_ld+y}
5169 then :
5170 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5171 else $as_nop
5172 with_gnu_ld=no
5173 fi
5174
5175 ac_prog=ld
5176 if test yes = "$GCC"; then
5177 # Check if gcc -print-prog-name=ld gives a path.
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5179 printf %s "checking for ld used by $CC... " >&6; }
5180 case $host in
5181 *-*-mingw*)
5182 # gcc leaves a trailing carriage return, which upsets mingw
5183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5184 *)
5185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5186 esac
5187 case $ac_prog in
5188 # Accept absolute paths.
5189 [\\/]* | ?:[\\/]*)
5190 re_direlt='/[^/][^/]*/\.\./'
5191 # Canonicalize the pathname of ld
5192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5195 done
5196 test -z "$LD" && LD=$ac_prog
5197 ;;
5198 "")
5199 # If it fails, then pretend we aren't using GCC.
5200 ac_prog=ld
5201 ;;
5202 *)
5203 # If it is relative, then search for the first ld in PATH.
5204 with_gnu_ld=unknown
5205 ;;
5206 esac
5207 elif test yes = "$with_gnu_ld"; then
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5209 printf %s "checking for GNU ld... " >&6; }
5210 else
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5212 printf %s "checking for non-GNU ld... " >&6; }
5213 fi
5214 if test ${lt_cv_path_LD+y}
5215 then :
5216 printf %s "(cached) " >&6
5217 else $as_nop
5218 if test -z "$LD"; then
5219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5220 for ac_dir in $PATH; do
5221 IFS=$lt_save_ifs
5222 test -z "$ac_dir" && ac_dir=.
5223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5224 lt_cv_path_LD=$ac_dir/$ac_prog
5225 # Check to see if the program is GNU ld. I'd rather use --version,
5226 # but apparently some variants of GNU ld only accept -v.
5227 # Break only if it was the GNU/non-GNU ld that we prefer.
5228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5229 *GNU* | *'with BFD'*)
5230 test no != "$with_gnu_ld" && break
5231 ;;
5232 *)
5233 test yes != "$with_gnu_ld" && break
5234 ;;
5235 esac
5236 fi
5237 done
5238 IFS=$lt_save_ifs
5239 else
5240 lt_cv_path_LD=$LD # Let the user override the test with a path.
5241 fi
5242 fi
5243
5244 LD=$lt_cv_path_LD
5245 if test -n "$LD"; then
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5247 printf "%s\n" "$LD" >&6; }
5248 else
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 printf "%s\n" "no" >&6; }
5251 fi
5252 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5254 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5255 if test ${lt_cv_prog_gnu_ld+y}
5256 then :
5257 printf %s "(cached) " >&6
5258 else $as_nop
5259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5260 case `$LD -v 2>&1 </dev/null` in
5261 *GNU* | *'with BFD'*)
5262 lt_cv_prog_gnu_ld=yes
5263 ;;
5264 *)
5265 lt_cv_prog_gnu_ld=no
5266 ;;
5267 esac
5268 fi
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5270 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5271 with_gnu_ld=$lt_cv_prog_gnu_ld
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5282 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5283 if test ${lt_cv_path_NM+y}
5284 then :
5285 printf %s "(cached) " >&6
5286 else $as_nop
5287 if test -n "$NM"; then
5288 # Let the user override the test.
5289 lt_cv_path_NM=$NM
5290 else
5291 lt_nm_to_check=${ac_tool_prefix}nm
5292 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5293 lt_nm_to_check="$lt_nm_to_check nm"
5294 fi
5295 for lt_tmp_nm in $lt_nm_to_check; do
5296 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5297 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5298 IFS=$lt_save_ifs
5299 test -z "$ac_dir" && ac_dir=.
5300 tmp_nm=$ac_dir/$lt_tmp_nm
5301 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5302 # Check to see if the nm accepts a BSD-compat flag.
5303 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5304 # nm: unknown option "B" ignored
5305 # Tru64's nm complains that /dev/null is an invalid object file
5306 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5307 case $build_os in
5308 mingw*) lt_bad_file=conftest.nm/nofile ;;
5309 *) lt_bad_file=/dev/null ;;
5310 esac
5311 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5312 *$lt_bad_file* | *'Invalid file or object type'*)
5313 lt_cv_path_NM="$tmp_nm -B"
5314 break 2
5315 ;;
5316 *)
5317 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5318 */dev/null*)
5319 lt_cv_path_NM="$tmp_nm -p"
5320 break 2
5321 ;;
5322 *)
5323 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5324 continue # so that we can try to find one that supports BSD flags
5325 ;;
5326 esac
5327 ;;
5328 esac
5329 fi
5330 done
5331 IFS=$lt_save_ifs
5332 done
5333 : ${lt_cv_path_NM=no}
5334 fi
5335 fi
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5337 printf "%s\n" "$lt_cv_path_NM" >&6; }
5338 if test no != "$lt_cv_path_NM"; then
5339 NM=$lt_cv_path_NM
5340 else
5341 # Didn't find any BSD compatible name lister, look for dumpbin.
5342 if test -n "$DUMPBIN"; then :
5343 # Let the user override the test.
5344 else
5345 if test -n "$ac_tool_prefix"; then
5346 for ac_prog in dumpbin "link -dump"
5347 do
5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 printf %s "checking for $ac_word... " >&6; }
5352 if test ${ac_cv_prog_DUMPBIN+y}
5353 then :
5354 printf %s "(cached) " >&6
5355 else $as_nop
5356 if test -n "$DUMPBIN"; then
5357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362 IFS=$as_save_IFS
5363 case $as_dir in #(((
5364 '') as_dir=./ ;;
5365 */) ;;
5366 *) as_dir=$as_dir/ ;;
5367 esac
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374 done
5375 done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 DUMPBIN=$ac_cv_prog_DUMPBIN
5381 if test -n "$DUMPBIN"; then
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5383 printf "%s\n" "$DUMPBIN" >&6; }
5384 else
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 printf "%s\n" "no" >&6; }
5387 fi
5388
5389
5390 test -n "$DUMPBIN" && break
5391 done
5392 fi
5393 if test -z "$DUMPBIN"; then
5394 ac_ct_DUMPBIN=$DUMPBIN
5395 for ac_prog in dumpbin "link -dump"
5396 do
5397 # Extract the first word of "$ac_prog", so it can be a program name with args.
5398 set dummy $ac_prog; ac_word=$2
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 printf %s "checking for $ac_word... " >&6; }
5401 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5402 then :
5403 printf %s "(cached) " >&6
5404 else $as_nop
5405 if test -n "$ac_ct_DUMPBIN"; then
5406 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411 IFS=$as_save_IFS
5412 case $as_dir in #(((
5413 '') as_dir=./ ;;
5414 */) ;;
5415 *) as_dir=$as_dir/ ;;
5416 esac
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423 done
5424 done
5425 IFS=$as_save_IFS
5426
5427 fi
5428 fi
5429 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5430 if test -n "$ac_ct_DUMPBIN"; then
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5432 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5433 else
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 printf "%s\n" "no" >&6; }
5436 fi
5437
5438
5439 test -n "$ac_ct_DUMPBIN" && break
5440 done
5441
5442 if test "x$ac_ct_DUMPBIN" = x; then
5443 DUMPBIN=":"
5444 else
5445 case $cross_compiling:$ac_tool_warned in
5446 yes:)
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5448 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5449 ac_tool_warned=yes ;;
5450 esac
5451 DUMPBIN=$ac_ct_DUMPBIN
5452 fi
5453 fi
5454
5455 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5456 *COFF*)
5457 DUMPBIN="$DUMPBIN -symbols -headers"
5458 ;;
5459 *)
5460 DUMPBIN=:
5461 ;;
5462 esac
5463 fi
5464
5465 if test : != "$DUMPBIN"; then
5466 NM=$DUMPBIN
5467 fi
5468 fi
5469 test -z "$NM" && NM=nm
5470
5471
5472
5473
5474
5475
5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5477 printf %s "checking the name lister ($NM) interface... " >&6; }
5478 if test ${lt_cv_nm_interface+y}
5479 then :
5480 printf %s "(cached) " >&6
5481 else $as_nop
5482 lt_cv_nm_interface="BSD nm"
5483 echo "int some_variable = 0;" > conftest.$ac_ext
5484 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5485 (eval "$ac_compile" 2>conftest.err)
5486 cat conftest.err >&5
5487 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5488 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5489 cat conftest.err >&5
5490 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5491 cat conftest.out >&5
5492 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5493 lt_cv_nm_interface="MS dumpbin"
5494 fi
5495 rm -f conftest*
5496 fi
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5498 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5499
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5501 printf %s "checking whether ln -s works... " >&6; }
5502 LN_S=$as_ln_s
5503 if test "$LN_S" = "ln -s"; then
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5505 printf "%s\n" "yes" >&6; }
5506 else
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5508 printf "%s\n" "no, using $LN_S" >&6; }
5509 fi
5510
5511 # find the maximum length of command line arguments
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5513 printf %s "checking the maximum length of command line arguments... " >&6; }
5514 if test ${lt_cv_sys_max_cmd_len+y}
5515 then :
5516 printf %s "(cached) " >&6
5517 else $as_nop
5518 i=0
5519 teststring=ABCD
5520
5521 case $build_os in
5522 msdosdjgpp*)
5523 # On DJGPP, this test can blow up pretty badly due to problems in libc
5524 # (any single argument exceeding 2000 bytes causes a buffer overrun
5525 # during glob expansion). Even if it were fixed, the result of this
5526 # check would be larger than it should be.
5527 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5528 ;;
5529
5530 gnu*)
5531 # Under GNU Hurd, this test is not required because there is
5532 # no limit to the length of command line arguments.
5533 # Libtool will interpret -1 as no limit whatsoever
5534 lt_cv_sys_max_cmd_len=-1;
5535 ;;
5536
5537 cygwin* | mingw* | cegcc*)
5538 # On Win9x/ME, this test blows up -- it succeeds, but takes
5539 # about 5 minutes as the teststring grows exponentially.
5540 # Worse, since 9x/ME are not pre-emptively multitasking,
5541 # you end up with a "frozen" computer, even though with patience
5542 # the test eventually succeeds (with a max line length of 256k).
5543 # Instead, let's just punt: use the minimum linelength reported by
5544 # all of the supported platforms: 8192 (on NT/2K/XP).
5545 lt_cv_sys_max_cmd_len=8192;
5546 ;;
5547
5548 mint*)
5549 # On MiNT this can take a long time and run out of memory.
5550 lt_cv_sys_max_cmd_len=8192;
5551 ;;
5552
5553 amigaos*)
5554 # On AmigaOS with pdksh, this test takes hours, literally.
5555 # So we just punt and use a minimum line length of 8192.
5556 lt_cv_sys_max_cmd_len=8192;
5557 ;;
5558
5559 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5560 # This has been around since 386BSD, at least. Likely further.
5561 if test -x /sbin/sysctl; then
5562 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5563 elif test -x /usr/sbin/sysctl; then
5564 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5565 else
5566 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5567 fi
5568 # And add a safety zone
5569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5571 ;;
5572
5573 interix*)
5574 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5575 lt_cv_sys_max_cmd_len=196608
5576 ;;
5577
5578 os2*)
5579 # The test takes a long time on OS/2.
5580 lt_cv_sys_max_cmd_len=8192
5581 ;;
5582
5583 osf*)
5584 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5585 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5586 # nice to cause kernel panics so lets avoid the loop below.
5587 # First set a reasonable default.
5588 lt_cv_sys_max_cmd_len=16384
5589 #
5590 if test -x /sbin/sysconfig; then
5591 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5592 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5593 esac
5594 fi
5595 ;;
5596 sco3.2v5*)
5597 lt_cv_sys_max_cmd_len=102400
5598 ;;
5599 sysv5* | sco5v6* | sysv4.2uw2*)
5600 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5601 if test -n "$kargmax"; then
5602 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5603 else
5604 lt_cv_sys_max_cmd_len=32768
5605 fi
5606 ;;
5607 *)
5608 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5609 if test -n "$lt_cv_sys_max_cmd_len" && \
5610 test undefined != "$lt_cv_sys_max_cmd_len"; then
5611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5613 else
5614 # Make teststring a little bigger before we do anything with it.
5615 # a 1K string should be a reasonable start.
5616 for i in 1 2 3 4 5 6 7 8; do
5617 teststring=$teststring$teststring
5618 done
5619 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5620 # If test is not a shell built-in, we'll probably end up computing a
5621 # maximum length that is only half of the actual maximum length, but
5622 # we can't tell.
5623 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5624 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5625 test 17 != "$i" # 1/2 MB should be enough
5626 do
5627 i=`expr $i + 1`
5628 teststring=$teststring$teststring
5629 done
5630 # Only check the string length outside the loop.
5631 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5632 teststring=
5633 # Add a significant safety factor because C++ compilers can tack on
5634 # massive amounts of additional arguments before passing them to the
5635 # linker. It appears as though 1/2 is a usable value.
5636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5637 fi
5638 ;;
5639 esac
5640
5641 fi
5642
5643 if test -n "$lt_cv_sys_max_cmd_len"; then
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5645 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5646 else
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5648 printf "%s\n" "none" >&6; }
5649 fi
5650 max_cmd_len=$lt_cv_sys_max_cmd_len
5651
5652
5653
5654
5655
5656
5657 : ${CP="cp -f"}
5658 : ${MV="mv -f"}
5659 : ${RM="rm -f"}
5660
5661 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5662 lt_unset=unset
5663 else
5664 lt_unset=false
5665 fi
5666
5667
5668
5669
5670
5671 # test EBCDIC or ASCII
5672 case `echo X|tr X '\101'` in
5673 A) # ASCII based system
5674 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5675 lt_SP2NL='tr \040 \012'
5676 lt_NL2SP='tr \015\012 \040\040'
5677 ;;
5678 *) # EBCDIC based system
5679 lt_SP2NL='tr \100 \n'
5680 lt_NL2SP='tr \r\n \100\100'
5681 ;;
5682 esac
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5693 printf %s "checking how to convert $build file names to $host format... " >&6; }
5694 if test ${lt_cv_to_host_file_cmd+y}
5695 then :
5696 printf %s "(cached) " >&6
5697 else $as_nop
5698 case $host in
5699 *-*-mingw* )
5700 case $build in
5701 *-*-mingw* ) # actually msys
5702 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5703 ;;
5704 *-*-cygwin* )
5705 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5706 ;;
5707 * ) # otherwise, assume *nix
5708 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5709 ;;
5710 esac
5711 ;;
5712 *-*-cygwin* )
5713 case $build in
5714 *-*-mingw* ) # actually msys
5715 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5716 ;;
5717 *-*-cygwin* )
5718 lt_cv_to_host_file_cmd=func_convert_file_noop
5719 ;;
5720 * ) # otherwise, assume *nix
5721 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5722 ;;
5723 esac
5724 ;;
5725 * ) # unhandled hosts (and "normal" native builds)
5726 lt_cv_to_host_file_cmd=func_convert_file_noop
5727 ;;
5728 esac
5729
5730 fi
5731
5732 to_host_file_cmd=$lt_cv_to_host_file_cmd
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5734 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5735
5736
5737
5738
5739
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5741 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5742 if test ${lt_cv_to_tool_file_cmd+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else $as_nop
5746 #assume ordinary cross tools, or native build.
5747 lt_cv_to_tool_file_cmd=func_convert_file_noop
5748 case $host in
5749 *-*-mingw* )
5750 case $build in
5751 *-*-mingw* ) # actually msys
5752 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5753 ;;
5754 esac
5755 ;;
5756 esac
5757
5758 fi
5759
5760 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5762 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5763
5764
5765
5766
5767
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5769 printf %s "checking for $LD option to reload object files... " >&6; }
5770 if test ${lt_cv_ld_reload_flag+y}
5771 then :
5772 printf %s "(cached) " >&6
5773 else $as_nop
5774 lt_cv_ld_reload_flag='-r'
5775 fi
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5777 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5778 reload_flag=$lt_cv_ld_reload_flag
5779 case $reload_flag in
5780 "" | " "*) ;;
5781 *) reload_flag=" $reload_flag" ;;
5782 esac
5783 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5784 case $host_os in
5785 cygwin* | mingw* | pw32* | cegcc*)
5786 if test yes != "$GCC"; then
5787 reload_cmds=false
5788 fi
5789 ;;
5790 darwin*)
5791 if test yes = "$GCC"; then
5792 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5793 else
5794 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5795 fi
5796 ;;
5797 esac
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}file; ac_word=$2
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 printf %s "checking for $ac_word... " >&6; }
5812 if test ${ac_cv_prog_FILECMD+y}
5813 then :
5814 printf %s "(cached) " >&6
5815 else $as_nop
5816 if test -n "$FILECMD"; then
5817 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822 IFS=$as_save_IFS
5823 case $as_dir in #(((
5824 '') as_dir=./ ;;
5825 */) ;;
5826 *) as_dir=$as_dir/ ;;
5827 esac
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834 done
5835 done
5836 IFS=$as_save_IFS
5837
5838 fi
5839 fi
5840 FILECMD=$ac_cv_prog_FILECMD
5841 if test -n "$FILECMD"; then
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5843 printf "%s\n" "$FILECMD" >&6; }
5844 else
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 printf "%s\n" "no" >&6; }
5847 fi
5848
5849
5850 fi
5851 if test -z "$ac_cv_prog_FILECMD"; then
5852 ac_ct_FILECMD=$FILECMD
5853 # Extract the first word of "file", so it can be a program name with args.
5854 set dummy file; ac_word=$2
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 printf %s "checking for $ac_word... " >&6; }
5857 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5858 then :
5859 printf %s "(cached) " >&6
5860 else $as_nop
5861 if test -n "$ac_ct_FILECMD"; then
5862 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867 IFS=$as_save_IFS
5868 case $as_dir in #(((
5869 '') as_dir=./ ;;
5870 */) ;;
5871 *) as_dir=$as_dir/ ;;
5872 esac
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_ac_ct_FILECMD="file"
5876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5886 if test -n "$ac_ct_FILECMD"; then
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5888 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5889 else
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 printf "%s\n" "no" >&6; }
5892 fi
5893
5894 if test "x$ac_ct_FILECMD" = x; then
5895 FILECMD=":"
5896 else
5897 case $cross_compiling:$ac_tool_warned in
5898 yes:)
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901 ac_tool_warned=yes ;;
5902 esac
5903 FILECMD=$ac_ct_FILECMD
5904 fi
5905 else
5906 FILECMD="$ac_cv_prog_FILECMD"
5907 fi
5908
5909
5910
5911
5912
5913
5914
5915 if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5917 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 printf %s "checking for $ac_word... " >&6; }
5920 if test ${ac_cv_prog_OBJDUMP+y}
5921 then :
5922 printf %s "(cached) " >&6
5923 else $as_nop
5924 if test -n "$OBJDUMP"; then
5925 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930 IFS=$as_save_IFS
5931 case $as_dir in #(((
5932 '') as_dir=./ ;;
5933 */) ;;
5934 *) as_dir=$as_dir/ ;;
5935 esac
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5938 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942 done
5943 done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 OBJDUMP=$ac_cv_prog_OBJDUMP
5949 if test -n "$OBJDUMP"; then
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5951 printf "%s\n" "$OBJDUMP" >&6; }
5952 else
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 printf "%s\n" "no" >&6; }
5955 fi
5956
5957
5958 fi
5959 if test -z "$ac_cv_prog_OBJDUMP"; then
5960 ac_ct_OBJDUMP=$OBJDUMP
5961 # Extract the first word of "objdump", so it can be a program name with args.
5962 set dummy objdump; ac_word=$2
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 printf %s "checking for $ac_word... " >&6; }
5965 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5966 then :
5967 printf %s "(cached) " >&6
5968 else $as_nop
5969 if test -n "$ac_ct_OBJDUMP"; then
5970 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975 IFS=$as_save_IFS
5976 case $as_dir in #(((
5977 '') as_dir=./ ;;
5978 */) ;;
5979 *) as_dir=$as_dir/ ;;
5980 esac
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5983 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987 done
5988 done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5994 if test -n "$ac_ct_OBJDUMP"; then
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5996 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5997 else
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 printf "%s\n" "no" >&6; }
6000 fi
6001
6002 if test "x$ac_ct_OBJDUMP" = x; then
6003 OBJDUMP="false"
6004 else
6005 case $cross_compiling:$ac_tool_warned in
6006 yes:)
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6010 esac
6011 OBJDUMP=$ac_ct_OBJDUMP
6012 fi
6013 else
6014 OBJDUMP="$ac_cv_prog_OBJDUMP"
6015 fi
6016
6017 test -z "$OBJDUMP" && OBJDUMP=objdump
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6028 printf %s "checking how to recognize dependent libraries... " >&6; }
6029 if test ${lt_cv_deplibs_check_method+y}
6030 then :
6031 printf %s "(cached) " >&6
6032 else $as_nop
6033 lt_cv_file_magic_cmd='$MAGIC_CMD'
6034 lt_cv_file_magic_test_file=
6035 lt_cv_deplibs_check_method='unknown'
6036 # Need to set the preceding variable on all platforms that support
6037 # interlibrary dependencies.
6038 # 'none' -- dependencies not supported.
6039 # 'unknown' -- same as none, but documents that we really don't know.
6040 # 'pass_all' -- all dependencies passed with no checks.
6041 # 'test_compile' -- check by making test program.
6042 # 'file_magic [[regex]]' -- check by looking for files in library path
6043 # that responds to the $file_magic_cmd with a given extended regex.
6044 # If you have 'file' or equivalent on your system and you're not sure
6045 # whether 'pass_all' will *always* work, you probably want this one.
6046
6047 case $host_os in
6048 aix[4-9]*)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051
6052 beos*)
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055
6056 bsdi[45]*)
6057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6058 lt_cv_file_magic_cmd='$FILECMD -L'
6059 lt_cv_file_magic_test_file=/shlib/libc.so
6060 ;;
6061
6062 cygwin*)
6063 # func_win32_libid is a shell function defined in ltmain.sh
6064 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6065 lt_cv_file_magic_cmd='func_win32_libid'
6066 ;;
6067
6068 mingw* | pw32*)
6069 # Base MSYS/MinGW do not provide the 'file' command needed by
6070 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6071 # unless we find 'file', for example because we are cross-compiling.
6072 if ( file / ) >/dev/null 2>&1; then
6073 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6074 lt_cv_file_magic_cmd='func_win32_libid'
6075 else
6076 # Keep this pattern in sync with the one in func_win32_libid.
6077 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6078 lt_cv_file_magic_cmd='$OBJDUMP -f'
6079 fi
6080 ;;
6081
6082 cegcc*)
6083 # use the weaker test based on 'objdump'. See mingw*.
6084 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6085 lt_cv_file_magic_cmd='$OBJDUMP -f'
6086 ;;
6087
6088 darwin* | rhapsody*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092 freebsd* | dragonfly* | midnightbsd*)
6093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6094 case $host_cpu in
6095 i*86 )
6096 # Not sure whether the presence of OpenBSD here was a mistake.
6097 # Let's accept both of them until this is cleared up.
6098 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6099 lt_cv_file_magic_cmd=$FILECMD
6100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6101 ;;
6102 esac
6103 else
6104 lt_cv_deplibs_check_method=pass_all
6105 fi
6106 ;;
6107
6108 haiku*)
6109 lt_cv_deplibs_check_method=pass_all
6110 ;;
6111
6112 hpux10.20* | hpux11*)
6113 lt_cv_file_magic_cmd=$FILECMD
6114 case $host_cpu in
6115 ia64*)
6116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6117 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6118 ;;
6119 hppa*64*)
6120 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]'
6121 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6122 ;;
6123 *)
6124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6125 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6126 ;;
6127 esac
6128 ;;
6129
6130 interix[3-9]*)
6131 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6133 ;;
6134
6135 irix5* | irix6* | nonstopux*)
6136 case $LD in
6137 *-32|*"-32 ") libmagic=32-bit;;
6138 *-n32|*"-n32 ") libmagic=N32;;
6139 *-64|*"-64 ") libmagic=64-bit;;
6140 *) libmagic=never-match;;
6141 esac
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
6144
6145 # This must be glibc/ELF.
6146 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149
6150 netbsd*)
6151 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6153 else
6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6155 fi
6156 ;;
6157
6158 newos6*)
6159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6160 lt_cv_file_magic_cmd=$FILECMD
6161 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6162 ;;
6163
6164 *nto* | *qnx*)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167
6168 openbsd* | bitrig*)
6169 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6171 else
6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6173 fi
6174 ;;
6175
6176 osf3* | osf4* | osf5*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179
6180 rdos*)
6181 lt_cv_deplibs_check_method=pass_all
6182 ;;
6183
6184 solaris*)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
6187
6188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6189 lt_cv_deplibs_check_method=pass_all
6190 ;;
6191
6192 sysv4 | sysv4.3*)
6193 case $host_vendor in
6194 motorola)
6195 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]'
6196 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6197 ;;
6198 ncr)
6199 lt_cv_deplibs_check_method=pass_all
6200 ;;
6201 sequent)
6202 lt_cv_file_magic_cmd='/bin/file'
6203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6204 ;;
6205 sni)
6206 lt_cv_file_magic_cmd='/bin/file'
6207 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6208 lt_cv_file_magic_test_file=/lib/libc.so
6209 ;;
6210 siemens)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213 pc)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216 esac
6217 ;;
6218
6219 tpf*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222 os2*)
6223 lt_cv_deplibs_check_method=pass_all
6224 ;;
6225 esac
6226
6227 fi
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6229 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6230
6231 file_magic_glob=
6232 want_nocaseglob=no
6233 if test "$build" = "$host"; then
6234 case $host_os in
6235 mingw* | pw32*)
6236 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6237 want_nocaseglob=yes
6238 else
6239 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6240 fi
6241 ;;
6242 esac
6243 fi
6244
6245 file_magic_cmd=$lt_cv_file_magic_cmd
6246 deplibs_check_method=$lt_cv_deplibs_check_method
6247 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270 if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6272 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 printf %s "checking for $ac_word... " >&6; }
6275 if test ${ac_cv_prog_DLLTOOL+y}
6276 then :
6277 printf %s "(cached) " >&6
6278 else $as_nop
6279 if test -n "$DLLTOOL"; then
6280 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285 IFS=$as_save_IFS
6286 case $as_dir in #(((
6287 '') as_dir=./ ;;
6288 */) ;;
6289 *) as_dir=$as_dir/ ;;
6290 esac
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6293 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 fi
6302 fi
6303 DLLTOOL=$ac_cv_prog_DLLTOOL
6304 if test -n "$DLLTOOL"; then
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6306 printf "%s\n" "$DLLTOOL" >&6; }
6307 else
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 printf "%s\n" "no" >&6; }
6310 fi
6311
6312
6313 fi
6314 if test -z "$ac_cv_prog_DLLTOOL"; then
6315 ac_ct_DLLTOOL=$DLLTOOL
6316 # Extract the first word of "dlltool", so it can be a program name with args.
6317 set dummy dlltool; ac_word=$2
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 printf %s "checking for $ac_word... " >&6; }
6320 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6321 then :
6322 printf %s "(cached) " >&6
6323 else $as_nop
6324 if test -n "$ac_ct_DLLTOOL"; then
6325 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330 IFS=$as_save_IFS
6331 case $as_dir in #(((
6332 '') as_dir=./ ;;
6333 */) ;;
6334 *) as_dir=$as_dir/ ;;
6335 esac
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342 done
6343 done
6344 IFS=$as_save_IFS
6345
6346 fi
6347 fi
6348 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6349 if test -n "$ac_ct_DLLTOOL"; then
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6351 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6352 else
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 printf "%s\n" "no" >&6; }
6355 fi
6356
6357 if test "x$ac_ct_DLLTOOL" = x; then
6358 DLLTOOL="false"
6359 else
6360 case $cross_compiling:$ac_tool_warned in
6361 yes:)
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6363 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6364 ac_tool_warned=yes ;;
6365 esac
6366 DLLTOOL=$ac_ct_DLLTOOL
6367 fi
6368 else
6369 DLLTOOL="$ac_cv_prog_DLLTOOL"
6370 fi
6371
6372 test -z "$DLLTOOL" && DLLTOOL=dlltool
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6384 printf %s "checking how to associate runtime and link libraries... " >&6; }
6385 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6386 then :
6387 printf %s "(cached) " >&6
6388 else $as_nop
6389 lt_cv_sharedlib_from_linklib_cmd='unknown'
6390
6391 case $host_os in
6392 cygwin* | mingw* | pw32* | cegcc*)
6393 # two different shell functions defined in ltmain.sh;
6394 # decide which one to use based on capabilities of $DLLTOOL
6395 case `$DLLTOOL --help 2>&1` in
6396 *--identify-strict*)
6397 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6398 ;;
6399 *)
6400 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6401 ;;
6402 esac
6403 ;;
6404 *)
6405 # fallback: assume linklib IS sharedlib
6406 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6407 ;;
6408 esac
6409
6410 fi
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6412 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6413 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6414 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6415
6416
6417
6418
6419
6420
6421
6422 if test -n "$ac_tool_prefix"; then
6423 for ac_prog in ar
6424 do
6425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 printf %s "checking for $ac_word... " >&6; }
6429 if test ${ac_cv_prog_AR+y}
6430 then :
6431 printf %s "(cached) " >&6
6432 else $as_nop
6433 if test -n "$AR"; then
6434 ac_cv_prog_AR="$AR" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439 IFS=$as_save_IFS
6440 case $as_dir in #(((
6441 '') as_dir=./ ;;
6442 */) ;;
6443 *) as_dir=$as_dir/ ;;
6444 esac
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 AR=$ac_cv_prog_AR
6458 if test -n "$AR"; then
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6460 printf "%s\n" "$AR" >&6; }
6461 else
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 printf "%s\n" "no" >&6; }
6464 fi
6465
6466
6467 test -n "$AR" && break
6468 done
6469 fi
6470 if test -z "$AR"; then
6471 ac_ct_AR=$AR
6472 for ac_prog in ar
6473 do
6474 # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 printf %s "checking for $ac_word... " >&6; }
6478 if test ${ac_cv_prog_ac_ct_AR+y}
6479 then :
6480 printf %s "(cached) " >&6
6481 else $as_nop
6482 if test -n "$ac_ct_AR"; then
6483 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488 IFS=$as_save_IFS
6489 case $as_dir in #(((
6490 '') as_dir=./ ;;
6491 */) ;;
6492 *) as_dir=$as_dir/ ;;
6493 esac
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_ac_ct_AR="$ac_prog"
6497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6498 break 2
6499 fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6507 if test -n "$ac_ct_AR"; then
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6509 printf "%s\n" "$ac_ct_AR" >&6; }
6510 else
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 printf "%s\n" "no" >&6; }
6513 fi
6514
6515
6516 test -n "$ac_ct_AR" && break
6517 done
6518
6519 if test "x$ac_ct_AR" = x; then
6520 AR="false"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 AR=$ac_ct_AR
6529 fi
6530 fi
6531
6532 : ${AR=ar}
6533
6534
6535
6536
6537
6538
6539 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6540 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6541 # higher priority because thats what people were doing historically (setting
6542 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6543 # variable obsoleted/removed.
6544
6545 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6546 lt_ar_flags=$AR_FLAGS
6547
6548
6549
6550
6551
6552
6553 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6554 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6555
6556
6557
6558
6559
6560
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6562 printf %s "checking for archiver @FILE support... " >&6; }
6563 if test ${lt_cv_ar_at_file+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else $as_nop
6567 lt_cv_ar_at_file=no
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570
6571 int
6572 main (void)
6573 {
6574
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 if ac_fn_c_try_compile "$LINENO"
6580 then :
6581 echo conftest.$ac_objext > conftest.lst
6582 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6584 (eval $lt_ar_try) 2>&5
6585 ac_status=$?
6586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6587 test $ac_status = 0; }
6588 if test 0 -eq "$ac_status"; then
6589 # Ensure the archiver fails upon bogus file names.
6590 rm -f conftest.$ac_objext libconftest.a
6591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6592 (eval $lt_ar_try) 2>&5
6593 ac_status=$?
6594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595 test $ac_status = 0; }
6596 if test 0 -ne "$ac_status"; then
6597 lt_cv_ar_at_file=@
6598 fi
6599 fi
6600 rm -f conftest.* libconftest.a
6601
6602 fi
6603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6604
6605 fi
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6607 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6608
6609 if test no = "$lt_cv_ar_at_file"; then
6610 archiver_list_spec=
6611 else
6612 archiver_list_spec=$lt_cv_ar_at_file
6613 fi
6614
6615
6616
6617
6618
6619
6620
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}strip; ac_word=$2
6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 printf %s "checking for $ac_word... " >&6; }
6626 if test ${ac_cv_prog_STRIP+y}
6627 then :
6628 printf %s "(cached) " >&6
6629 else $as_nop
6630 if test -n "$STRIP"; then
6631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636 IFS=$as_save_IFS
6637 case $as_dir in #(((
6638 '') as_dir=./ ;;
6639 */) ;;
6640 *) as_dir=$as_dir/ ;;
6641 esac
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 STRIP=$ac_cv_prog_STRIP
6655 if test -n "$STRIP"; then
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6657 printf "%s\n" "$STRIP" >&6; }
6658 else
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 printf "%s\n" "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_STRIP"; then
6666 ac_ct_STRIP=$STRIP
6667 # Extract the first word of "strip", so it can be a program name with args.
6668 set dummy strip; ac_word=$2
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 printf %s "checking for $ac_word... " >&6; }
6671 if test ${ac_cv_prog_ac_ct_STRIP+y}
6672 then :
6673 printf %s "(cached) " >&6
6674 else $as_nop
6675 if test -n "$ac_ct_STRIP"; then
6676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681 IFS=$as_save_IFS
6682 case $as_dir in #(((
6683 '') as_dir=./ ;;
6684 */) ;;
6685 *) as_dir=$as_dir/ ;;
6686 esac
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_ac_ct_STRIP="strip"
6690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6691 break 2
6692 fi
6693 done
6694 done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6700 if test -n "$ac_ct_STRIP"; then
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6702 printf "%s\n" "$ac_ct_STRIP" >&6; }
6703 else
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 printf "%s\n" "no" >&6; }
6706 fi
6707
6708 if test "x$ac_ct_STRIP" = x; then
6709 STRIP=":"
6710 else
6711 case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6716 esac
6717 STRIP=$ac_ct_STRIP
6718 fi
6719 else
6720 STRIP="$ac_cv_prog_STRIP"
6721 fi
6722
6723 test -z "$STRIP" && STRIP=:
6724
6725
6726
6727
6728
6729
6730 if test -n "$ac_tool_prefix"; then
6731 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 printf %s "checking for $ac_word... " >&6; }
6735 if test ${ac_cv_prog_RANLIB+y}
6736 then :
6737 printf %s "(cached) " >&6
6738 else $as_nop
6739 if test -n "$RANLIB"; then
6740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 case $as_dir in #(((
6747 '') as_dir=./ ;;
6748 */) ;;
6749 *) as_dir=$as_dir/ ;;
6750 esac
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 fi
6762 fi
6763 RANLIB=$ac_cv_prog_RANLIB
6764 if test -n "$RANLIB"; then
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6766 printf "%s\n" "$RANLIB" >&6; }
6767 else
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 printf "%s\n" "no" >&6; }
6770 fi
6771
6772
6773 fi
6774 if test -z "$ac_cv_prog_RANLIB"; then
6775 ac_ct_RANLIB=$RANLIB
6776 # Extract the first word of "ranlib", so it can be a program name with args.
6777 set dummy ranlib; ac_word=$2
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 printf %s "checking for $ac_word... " >&6; }
6780 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6781 then :
6782 printf %s "(cached) " >&6
6783 else $as_nop
6784 if test -n "$ac_ct_RANLIB"; then
6785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790 IFS=$as_save_IFS
6791 case $as_dir in #(((
6792 '') as_dir=./ ;;
6793 */) ;;
6794 *) as_dir=$as_dir/ ;;
6795 esac
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_ac_ct_RANLIB="ranlib"
6799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6809 if test -n "$ac_ct_RANLIB"; then
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6811 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6812 else
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 printf "%s\n" "no" >&6; }
6815 fi
6816
6817 if test "x$ac_ct_RANLIB" = x; then
6818 RANLIB=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821 yes:)
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824 ac_tool_warned=yes ;;
6825 esac
6826 RANLIB=$ac_ct_RANLIB
6827 fi
6828 else
6829 RANLIB="$ac_cv_prog_RANLIB"
6830 fi
6831
6832 test -z "$RANLIB" && RANLIB=:
6833
6834
6835
6836
6837
6838
6839 # Determine commands to create old-style static archives.
6840 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6841 old_postinstall_cmds='chmod 644 $oldlib'
6842 old_postuninstall_cmds=
6843
6844 if test -n "$RANLIB"; then
6845 case $host_os in
6846 bitrig* | openbsd*)
6847 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6848 ;;
6849 *)
6850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6851 ;;
6852 esac
6853 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6854 fi
6855
6856 case $host_os in
6857 darwin*)
6858 lock_old_archive_extraction=yes ;;
6859 *)
6860 lock_old_archive_extraction=no ;;
6861 esac
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901 # If no C compiler was specified, use CC.
6902 LTCC=${LTCC-"$CC"}
6903
6904 # If no C compiler flags were specified, use CFLAGS.
6905 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6906
6907 # Allow CC to be a program name with arguments.
6908 compiler=$CC
6909
6910
6911 # Check for command to grab the raw symbol name followed by C symbol from nm.
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6913 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6914 if test ${lt_cv_sys_global_symbol_pipe+y}
6915 then :
6916 printf %s "(cached) " >&6
6917 else $as_nop
6918
6919 # These are sane defaults that work on at least a few old systems.
6920 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6921
6922 # Character class describing NM global symbol codes.
6923 symcode='[BCDEGRST]'
6924
6925 # Regexp to match symbols that can be accessed directly from C.
6926 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6927
6928 # Define system-specific variables.
6929 case $host_os in
6930 aix*)
6931 symcode='[BCDT]'
6932 ;;
6933 cygwin* | mingw* | pw32* | cegcc*)
6934 symcode='[ABCDGISTW]'
6935 ;;
6936 hpux*)
6937 if test ia64 = "$host_cpu"; then
6938 symcode='[ABCDEGRST]'
6939 fi
6940 ;;
6941 irix* | nonstopux*)
6942 symcode='[BCDEGRST]'
6943 ;;
6944 osf*)
6945 symcode='[BCDEGQRST]'
6946 ;;
6947 solaris*)
6948 symcode='[BDRT]'
6949 ;;
6950 sco3.2v5*)
6951 symcode='[DT]'
6952 ;;
6953 sysv4.2uw2*)
6954 symcode='[DT]'
6955 ;;
6956 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6957 symcode='[ABDT]'
6958 ;;
6959 sysv4)
6960 symcode='[DFNSTU]'
6961 ;;
6962 esac
6963
6964 # If we're using GNU nm, then use its standard symbol codes.
6965 case `$NM -V 2>&1` in
6966 *GNU* | *'with BFD'*)
6967 symcode='[ABCDGIRSTW]' ;;
6968 esac
6969
6970 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6971 # Gets list of data symbols to import.
6972 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6973 # Adjust the below global symbol transforms to fixup imported variables.
6974 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6975 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6976 lt_c_name_lib_hook="\
6977 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6978 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6979 else
6980 # Disable hooks by default.
6981 lt_cv_sys_global_symbol_to_import=
6982 lt_cdecl_hook=
6983 lt_c_name_hook=
6984 lt_c_name_lib_hook=
6985 fi
6986
6987 # Transform an extracted symbol line into a proper C declaration.
6988 # Some systems (esp. on ia64) link data and code symbols differently,
6989 # so use this general approach.
6990 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6991 $lt_cdecl_hook\
6992 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6993 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6994
6995 # Transform an extracted symbol line into symbol name and symbol address
6996 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6997 $lt_c_name_hook\
6998 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6999 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7000
7001 # Transform an extracted symbol line into symbol name with lib prefix and
7002 # symbol address.
7003 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7004 $lt_c_name_lib_hook\
7005 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7006 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7007 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7008
7009 # Handle CRLF in mingw tool chain
7010 opt_cr=
7011 case $build_os in
7012 mingw*)
7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014 ;;
7015 esac
7016
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7019
7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021 symxfrm="\\1 $ac_symprfx\\2 \\2"
7022
7023 # Write the raw and C identifiers.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025 # Fake it for dumpbin and say T for any non-static function,
7026 # D for any global variable and I for any imported variable.
7027 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7028 # which start with @ or ?.
7029 lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 " {last_section=section; section=\$ 3};"\
7031 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7032 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7033 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7034 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7035 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7036 " \$ 0!~/External *\|/{next};"\
7037 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7038 " {if(hide[section]) next};"\
7039 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7040 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7041 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7042 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7043 " ' prfx=^$ac_symprfx"
7044 else
7045 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7046 fi
7047 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7048
7049 # Check to see that the pipe works correctly.
7050 pipe_works=no
7051
7052 rm -f conftest*
7053 cat > conftest.$ac_ext <<_LT_EOF
7054 #ifdef __cplusplus
7055 extern "C" {
7056 #endif
7057 char nm_test_var;
7058 void nm_test_func(void);
7059 void nm_test_func(void){}
7060 #ifdef __cplusplus
7061 }
7062 #endif
7063 int main(){nm_test_var='a';nm_test_func();return(0);}
7064 _LT_EOF
7065
7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7067 (eval $ac_compile) 2>&5
7068 ac_status=$?
7069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; }; then
7071 # Now try to grab the symbols.
7072 nlist=conftest.nm
7073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7074 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7075 ac_status=$?
7076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077 test $ac_status = 0; } && test -s "$nlist"; then
7078 # Try sorting and uniquifying the output.
7079 if sort "$nlist" | uniq > "$nlist"T; then
7080 mv -f "$nlist"T "$nlist"
7081 else
7082 rm -f "$nlist"T
7083 fi
7084
7085 # Make sure that we snagged all the symbols we need.
7086 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7087 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7088 cat <<_LT_EOF > conftest.$ac_ext
7089 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7090 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7091 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7092 relocations are performed -- see ld's documentation on pseudo-relocs. */
7093 # define LT_DLSYM_CONST
7094 #elif defined __osf__
7095 /* This system does not cope well with relocations in const data. */
7096 # define LT_DLSYM_CONST
7097 #else
7098 # define LT_DLSYM_CONST const
7099 #endif
7100
7101 #ifdef __cplusplus
7102 extern "C" {
7103 #endif
7104
7105 _LT_EOF
7106 # Now generate the symbol file.
7107 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7108
7109 cat <<_LT_EOF >> conftest.$ac_ext
7110
7111 /* The mapping between symbol names and symbols. */
7112 LT_DLSYM_CONST struct {
7113 const char *name;
7114 void *address;
7115 }
7116 lt__PROGRAM__LTX_preloaded_symbols[] =
7117 {
7118 { "@PROGRAM@", (void *) 0 },
7119 _LT_EOF
7120 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7121 cat <<\_LT_EOF >> conftest.$ac_ext
7122 {0, (void *) 0}
7123 };
7124
7125 /* This works around a problem in FreeBSD linker */
7126 #ifdef FREEBSD_WORKAROUND
7127 static const void *lt_preloaded_setup() {
7128 return lt__PROGRAM__LTX_preloaded_symbols;
7129 }
7130 #endif
7131
7132 #ifdef __cplusplus
7133 }
7134 #endif
7135 _LT_EOF
7136 # Now try linking the two files.
7137 mv conftest.$ac_objext conftstm.$ac_objext
7138 lt_globsym_save_LIBS=$LIBS
7139 lt_globsym_save_CFLAGS=$CFLAGS
7140 LIBS=conftstm.$ac_objext
7141 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7143 (eval $ac_link) 2>&5
7144 ac_status=$?
7145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7146 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7147 pipe_works=yes
7148 fi
7149 LIBS=$lt_globsym_save_LIBS
7150 CFLAGS=$lt_globsym_save_CFLAGS
7151 else
7152 echo "cannot find nm_test_func in $nlist" >&5
7153 fi
7154 else
7155 echo "cannot find nm_test_var in $nlist" >&5
7156 fi
7157 else
7158 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7159 fi
7160 else
7161 echo "$progname: failed program was:" >&5
7162 cat conftest.$ac_ext >&5
7163 fi
7164 rm -rf conftest* conftst*
7165
7166 # Do not use the global_symbol_pipe unless it works.
7167 if test yes = "$pipe_works"; then
7168 break
7169 else
7170 lt_cv_sys_global_symbol_pipe=
7171 fi
7172 done
7173
7174 fi
7175
7176 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7177 lt_cv_sys_global_symbol_to_cdecl=
7178 fi
7179 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7181 printf "%s\n" "failed" >&6; }
7182 else
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7184 printf "%s\n" "ok" >&6; }
7185 fi
7186
7187 # Response file support.
7188 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7189 nm_file_list_spec='@'
7190 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7191 nm_file_list_spec='@'
7192 fi
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7231 printf %s "checking for sysroot... " >&6; }
7232
7233 # Check whether --with-sysroot was given.
7234 if test ${with_sysroot+y}
7235 then :
7236 withval=$with_sysroot;
7237 else $as_nop
7238 with_sysroot=no
7239 fi
7240
7241
7242 lt_sysroot=
7243 case $with_sysroot in #(
7244 yes)
7245 if test yes = "$GCC"; then
7246 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7247 fi
7248 ;; #(
7249 /*)
7250 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7251 ;; #(
7252 no|'')
7253 ;; #(
7254 *)
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7256 printf "%s\n" "$with_sysroot" >&6; }
7257 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7258 ;;
7259 esac
7260
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7262 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7263
7264
7265
7266
7267
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7269 printf %s "checking for a working dd... " >&6; }
7270 if test ${ac_cv_path_lt_DD+y}
7271 then :
7272 printf %s "(cached) " >&6
7273 else $as_nop
7274 printf 0123456789abcdef0123456789abcdef >conftest.i
7275 cat conftest.i conftest.i >conftest2.i
7276 : ${lt_DD:=$DD}
7277 if test -z "$lt_DD"; then
7278 ac_path_lt_DD_found=false
7279 # Loop through the user's path and test for each of PROGNAME-LIST
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 case $as_dir in #(((
7285 '') as_dir=./ ;;
7286 */) ;;
7287 *) as_dir=$as_dir/ ;;
7288 esac
7289 for ac_prog in dd
7290 do
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7293 as_fn_executable_p "$ac_path_lt_DD" || continue
7294 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7295 cmp -s conftest.i conftest.out \
7296 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7297 fi
7298 $ac_path_lt_DD_found && break 3
7299 done
7300 done
7301 done
7302 IFS=$as_save_IFS
7303 if test -z "$ac_cv_path_lt_DD"; then
7304 :
7305 fi
7306 else
7307 ac_cv_path_lt_DD=$lt_DD
7308 fi
7309
7310 rm -f conftest.i conftest2.i conftest.out
7311 fi
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7313 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7314
7315
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7317 printf %s "checking how to truncate binary pipes... " >&6; }
7318 if test ${lt_cv_truncate_bin+y}
7319 then :
7320 printf %s "(cached) " >&6
7321 else $as_nop
7322 printf 0123456789abcdef0123456789abcdef >conftest.i
7323 cat conftest.i conftest.i >conftest2.i
7324 lt_cv_truncate_bin=
7325 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7326 cmp -s conftest.i conftest.out \
7327 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7328 fi
7329 rm -f conftest.i conftest2.i conftest.out
7330 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7331 fi
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7333 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7334
7335
7336
7337
7338
7339
7340
7341 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7342 func_cc_basename ()
7343 {
7344 for cc_temp in $*""; do
7345 case $cc_temp in
7346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7348 \-*) ;;
7349 *) break;;
7350 esac
7351 done
7352 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7353 }
7354
7355 # Check whether --enable-libtool-lock was given.
7356 if test ${enable_libtool_lock+y}
7357 then :
7358 enableval=$enable_libtool_lock;
7359 fi
7360
7361 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7362
7363 # Some flags need to be propagated to the compiler or linker for good
7364 # libtool support.
7365 case $host in
7366 ia64-*-hpux*)
7367 # Find out what ABI is being produced by ac_compile, and set mode
7368 # options accordingly.
7369 echo 'int i;' > conftest.$ac_ext
7370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7371 (eval $ac_compile) 2>&5
7372 ac_status=$?
7373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374 test $ac_status = 0; }; then
7375 case `$FILECMD conftest.$ac_objext` in
7376 *ELF-32*)
7377 HPUX_IA64_MODE=32
7378 ;;
7379 *ELF-64*)
7380 HPUX_IA64_MODE=64
7381 ;;
7382 esac
7383 fi
7384 rm -rf conftest*
7385 ;;
7386 *-*-irix6*)
7387 # Find out what ABI is being produced by ac_compile, and set linker
7388 # options accordingly.
7389 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7391 (eval $ac_compile) 2>&5
7392 ac_status=$?
7393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; }; then
7395 if test yes = "$lt_cv_prog_gnu_ld"; then
7396 case `$FILECMD conftest.$ac_objext` in
7397 *32-bit*)
7398 LD="${LD-ld} -melf32bsmip"
7399 ;;
7400 *N32*)
7401 LD="${LD-ld} -melf32bmipn32"
7402 ;;
7403 *64-bit*)
7404 LD="${LD-ld} -melf64bmip"
7405 ;;
7406 esac
7407 else
7408 case `$FILECMD conftest.$ac_objext` in
7409 *32-bit*)
7410 LD="${LD-ld} -32"
7411 ;;
7412 *N32*)
7413 LD="${LD-ld} -n32"
7414 ;;
7415 *64-bit*)
7416 LD="${LD-ld} -64"
7417 ;;
7418 esac
7419 fi
7420 fi
7421 rm -rf conftest*
7422 ;;
7423
7424 mips64*-*linux*)
7425 # Find out what ABI is being produced by ac_compile, and set linker
7426 # options accordingly.
7427 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7429 (eval $ac_compile) 2>&5
7430 ac_status=$?
7431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7432 test $ac_status = 0; }; then
7433 emul=elf
7434 case `$FILECMD conftest.$ac_objext` in
7435 *32-bit*)
7436 emul="${emul}32"
7437 ;;
7438 *64-bit*)
7439 emul="${emul}64"
7440 ;;
7441 esac
7442 case `$FILECMD conftest.$ac_objext` in
7443 *MSB*)
7444 emul="${emul}btsmip"
7445 ;;
7446 *LSB*)
7447 emul="${emul}ltsmip"
7448 ;;
7449 esac
7450 case `$FILECMD conftest.$ac_objext` in
7451 *N32*)
7452 emul="${emul}n32"
7453 ;;
7454 esac
7455 LD="${LD-ld} -m $emul"
7456 fi
7457 rm -rf conftest*
7458 ;;
7459
7460 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7461 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7462 # Find out what ABI is being produced by ac_compile, and set linker
7463 # options accordingly. Note that the listed cases only cover the
7464 # situations where additional linker options are needed (such as when
7465 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7466 # vice versa); the common cases where no linker options are needed do
7467 # not appear in the list.
7468 echo 'int i;' > conftest.$ac_ext
7469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7470 (eval $ac_compile) 2>&5
7471 ac_status=$?
7472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473 test $ac_status = 0; }; then
7474 case `$FILECMD conftest.o` in
7475 *32-bit*)
7476 case $host in
7477 x86_64-*kfreebsd*-gnu)
7478 LD="${LD-ld} -m elf_i386_fbsd"
7479 ;;
7480 x86_64-*linux*)
7481 case `$FILECMD conftest.o` in
7482 *x86-64*)
7483 LD="${LD-ld} -m elf32_x86_64"
7484 ;;
7485 *)
7486 LD="${LD-ld} -m elf_i386"
7487 ;;
7488 esac
7489 ;;
7490 powerpc64le-*linux*)
7491 LD="${LD-ld} -m elf32lppclinux"
7492 ;;
7493 powerpc64-*linux*)
7494 LD="${LD-ld} -m elf32ppclinux"
7495 ;;
7496 s390x-*linux*)
7497 LD="${LD-ld} -m elf_s390"
7498 ;;
7499 sparc64-*linux*)
7500 LD="${LD-ld} -m elf32_sparc"
7501 ;;
7502 esac
7503 ;;
7504 *64-bit*)
7505 case $host in
7506 x86_64-*kfreebsd*-gnu)
7507 LD="${LD-ld} -m elf_x86_64_fbsd"
7508 ;;
7509 x86_64-*linux*)
7510 LD="${LD-ld} -m elf_x86_64"
7511 ;;
7512 powerpcle-*linux*)
7513 LD="${LD-ld} -m elf64lppc"
7514 ;;
7515 powerpc-*linux*)
7516 LD="${LD-ld} -m elf64ppc"
7517 ;;
7518 s390*-*linux*|s390*-*tpf*)
7519 LD="${LD-ld} -m elf64_s390"
7520 ;;
7521 sparc*-*linux*)
7522 LD="${LD-ld} -m elf64_sparc"
7523 ;;
7524 esac
7525 ;;
7526 esac
7527 fi
7528 rm -rf conftest*
7529 ;;
7530
7531 *-*-sco3.2v5*)
7532 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7533 SAVE_CFLAGS=$CFLAGS
7534 CFLAGS="$CFLAGS -belf"
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7536 printf %s "checking whether the C compiler needs -belf... " >&6; }
7537 if test ${lt_cv_cc_needs_belf+y}
7538 then :
7539 printf %s "(cached) " >&6
7540 else $as_nop
7541 ac_ext=c
7542 ac_cpp='$CPP $CPPFLAGS'
7543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7546
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549
7550 int
7551 main (void)
7552 {
7553
7554 ;
7555 return 0;
7556 }
7557 _ACEOF
7558 if ac_fn_c_try_link "$LINENO"
7559 then :
7560 lt_cv_cc_needs_belf=yes
7561 else $as_nop
7562 lt_cv_cc_needs_belf=no
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7565 conftest$ac_exeext conftest.$ac_ext
7566 ac_ext=c
7567 ac_cpp='$CPP $CPPFLAGS'
7568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571
7572 fi
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7574 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7575 if test yes != "$lt_cv_cc_needs_belf"; then
7576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7577 CFLAGS=$SAVE_CFLAGS
7578 fi
7579 ;;
7580 *-*solaris*)
7581 # Find out what ABI is being produced by ac_compile, and set linker
7582 # options accordingly.
7583 echo 'int i;' > conftest.$ac_ext
7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585 (eval $ac_compile) 2>&5
7586 ac_status=$?
7587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; }; then
7589 case `$FILECMD conftest.o` in
7590 *64-bit*)
7591 case $lt_cv_prog_gnu_ld in
7592 yes*)
7593 case $host in
7594 i?86-*-solaris*|x86_64-*-solaris*)
7595 LD="${LD-ld} -m elf_x86_64"
7596 ;;
7597 sparc*-*-solaris*)
7598 LD="${LD-ld} -m elf64_sparc"
7599 ;;
7600 esac
7601 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7602 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7603 LD=${LD-ld}_sol2
7604 fi
7605 ;;
7606 *)
7607 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7608 LD="${LD-ld} -64"
7609 fi
7610 ;;
7611 esac
7612 ;;
7613 esac
7614 fi
7615 rm -rf conftest*
7616 ;;
7617 esac
7618
7619 need_locks=$enable_libtool_lock
7620
7621 if test -n "$ac_tool_prefix"; then
7622 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7623 set dummy ${ac_tool_prefix}mt; ac_word=$2
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 printf %s "checking for $ac_word... " >&6; }
7626 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7627 then :
7628 printf %s "(cached) " >&6
7629 else $as_nop
7630 if test -n "$MANIFEST_TOOL"; then
7631 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636 IFS=$as_save_IFS
7637 case $as_dir in #(((
7638 '') as_dir=./ ;;
7639 */) ;;
7640 *) as_dir=$as_dir/ ;;
7641 esac
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7655 if test -n "$MANIFEST_TOOL"; then
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7657 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7658 else
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 printf "%s\n" "no" >&6; }
7661 fi
7662
7663
7664 fi
7665 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7666 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7667 # Extract the first word of "mt", so it can be a program name with args.
7668 set dummy mt; ac_word=$2
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 printf %s "checking for $ac_word... " >&6; }
7671 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7672 then :
7673 printf %s "(cached) " >&6
7674 else $as_nop
7675 if test -n "$ac_ct_MANIFEST_TOOL"; then
7676 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681 IFS=$as_save_IFS
7682 case $as_dir in #(((
7683 '') as_dir=./ ;;
7684 */) ;;
7685 *) as_dir=$as_dir/ ;;
7686 esac
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7689 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697 fi
7698 fi
7699 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7700 if test -n "$ac_ct_MANIFEST_TOOL"; then
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7702 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7703 else
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 printf "%s\n" "no" >&6; }
7706 fi
7707
7708 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7709 MANIFEST_TOOL=":"
7710 else
7711 case $cross_compiling:$ac_tool_warned in
7712 yes:)
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7714 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7715 ac_tool_warned=yes ;;
7716 esac
7717 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7718 fi
7719 else
7720 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7721 fi
7722
7723 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7725 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7726 if test ${lt_cv_path_mainfest_tool+y}
7727 then :
7728 printf %s "(cached) " >&6
7729 else $as_nop
7730 lt_cv_path_mainfest_tool=no
7731 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7732 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7733 cat conftest.err >&5
7734 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7735 lt_cv_path_mainfest_tool=yes
7736 fi
7737 rm -f conftest*
7738 fi
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7740 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7741 if test yes != "$lt_cv_path_mainfest_tool"; then
7742 MANIFEST_TOOL=:
7743 fi
7744
7745
7746
7747
7748
7749
7750 case $host_os in
7751 rhapsody* | darwin*)
7752 if test -n "$ac_tool_prefix"; then
7753 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7754 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 printf %s "checking for $ac_word... " >&6; }
7757 if test ${ac_cv_prog_DSYMUTIL+y}
7758 then :
7759 printf %s "(cached) " >&6
7760 else $as_nop
7761 if test -n "$DSYMUTIL"; then
7762 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767 IFS=$as_save_IFS
7768 case $as_dir in #(((
7769 '') as_dir=./ ;;
7770 */) ;;
7771 *) as_dir=$as_dir/ ;;
7772 esac
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7786 if test -n "$DSYMUTIL"; then
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7788 printf "%s\n" "$DSYMUTIL" >&6; }
7789 else
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 printf "%s\n" "no" >&6; }
7792 fi
7793
7794
7795 fi
7796 if test -z "$ac_cv_prog_DSYMUTIL"; then
7797 ac_ct_DSYMUTIL=$DSYMUTIL
7798 # Extract the first word of "dsymutil", so it can be a program name with args.
7799 set dummy dsymutil; ac_word=$2
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 printf %s "checking for $ac_word... " >&6; }
7802 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7803 then :
7804 printf %s "(cached) " >&6
7805 else $as_nop
7806 if test -n "$ac_ct_DSYMUTIL"; then
7807 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812 IFS=$as_save_IFS
7813 case $as_dir in #(((
7814 '') as_dir=./ ;;
7815 */) ;;
7816 *) as_dir=$as_dir/ ;;
7817 esac
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7820 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7831 if test -n "$ac_ct_DSYMUTIL"; then
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7833 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7834 else
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 printf "%s\n" "no" >&6; }
7837 fi
7838
7839 if test "x$ac_ct_DSYMUTIL" = x; then
7840 DSYMUTIL=":"
7841 else
7842 case $cross_compiling:$ac_tool_warned in
7843 yes:)
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7845 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7846 ac_tool_warned=yes ;;
7847 esac
7848 DSYMUTIL=$ac_ct_DSYMUTIL
7849 fi
7850 else
7851 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7852 fi
7853
7854 if test -n "$ac_tool_prefix"; then
7855 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7856 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 printf %s "checking for $ac_word... " >&6; }
7859 if test ${ac_cv_prog_NMEDIT+y}
7860 then :
7861 printf %s "(cached) " >&6
7862 else $as_nop
7863 if test -n "$NMEDIT"; then
7864 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 case $as_dir in #(((
7871 '') as_dir=./ ;;
7872 */) ;;
7873 *) as_dir=$as_dir/ ;;
7874 esac
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881 done
7882 done
7883 IFS=$as_save_IFS
7884
7885 fi
7886 fi
7887 NMEDIT=$ac_cv_prog_NMEDIT
7888 if test -n "$NMEDIT"; then
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7890 printf "%s\n" "$NMEDIT" >&6; }
7891 else
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 printf "%s\n" "no" >&6; }
7894 fi
7895
7896
7897 fi
7898 if test -z "$ac_cv_prog_NMEDIT"; then
7899 ac_ct_NMEDIT=$NMEDIT
7900 # Extract the first word of "nmedit", so it can be a program name with args.
7901 set dummy nmedit; ac_word=$2
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 printf %s "checking for $ac_word... " >&6; }
7904 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7905 then :
7906 printf %s "(cached) " >&6
7907 else $as_nop
7908 if test -n "$ac_ct_NMEDIT"; then
7909 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 case $as_dir in #(((
7916 '') as_dir=./ ;;
7917 */) ;;
7918 *) as_dir=$as_dir/ ;;
7919 esac
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930 fi
7931 fi
7932 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7933 if test -n "$ac_ct_NMEDIT"; then
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7935 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7936 else
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 printf "%s\n" "no" >&6; }
7939 fi
7940
7941 if test "x$ac_ct_NMEDIT" = x; then
7942 NMEDIT=":"
7943 else
7944 case $cross_compiling:$ac_tool_warned in
7945 yes:)
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7947 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7948 ac_tool_warned=yes ;;
7949 esac
7950 NMEDIT=$ac_ct_NMEDIT
7951 fi
7952 else
7953 NMEDIT="$ac_cv_prog_NMEDIT"
7954 fi
7955
7956 if test -n "$ac_tool_prefix"; then
7957 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7958 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 printf %s "checking for $ac_word... " >&6; }
7961 if test ${ac_cv_prog_LIPO+y}
7962 then :
7963 printf %s "(cached) " >&6
7964 else $as_nop
7965 if test -n "$LIPO"; then
7966 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971 IFS=$as_save_IFS
7972 case $as_dir in #(((
7973 '') as_dir=./ ;;
7974 */) ;;
7975 *) as_dir=$as_dir/ ;;
7976 esac
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7979 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983 done
7984 done
7985 IFS=$as_save_IFS
7986
7987 fi
7988 fi
7989 LIPO=$ac_cv_prog_LIPO
7990 if test -n "$LIPO"; then
7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7992 printf "%s\n" "$LIPO" >&6; }
7993 else
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 printf "%s\n" "no" >&6; }
7996 fi
7997
7998
7999 fi
8000 if test -z "$ac_cv_prog_LIPO"; then
8001 ac_ct_LIPO=$LIPO
8002 # Extract the first word of "lipo", so it can be a program name with args.
8003 set dummy lipo; ac_word=$2
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 printf %s "checking for $ac_word... " >&6; }
8006 if test ${ac_cv_prog_ac_ct_LIPO+y}
8007 then :
8008 printf %s "(cached) " >&6
8009 else $as_nop
8010 if test -n "$ac_ct_LIPO"; then
8011 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016 IFS=$as_save_IFS
8017 case $as_dir in #(((
8018 '') as_dir=./ ;;
8019 */) ;;
8020 *) as_dir=$as_dir/ ;;
8021 esac
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_ac_ct_LIPO="lipo"
8025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028 done
8029 done
8030 IFS=$as_save_IFS
8031
8032 fi
8033 fi
8034 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8035 if test -n "$ac_ct_LIPO"; then
8036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8037 printf "%s\n" "$ac_ct_LIPO" >&6; }
8038 else
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 printf "%s\n" "no" >&6; }
8041 fi
8042
8043 if test "x$ac_ct_LIPO" = x; then
8044 LIPO=":"
8045 else
8046 case $cross_compiling:$ac_tool_warned in
8047 yes:)
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8049 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8050 ac_tool_warned=yes ;;
8051 esac
8052 LIPO=$ac_ct_LIPO
8053 fi
8054 else
8055 LIPO="$ac_cv_prog_LIPO"
8056 fi
8057
8058 if test -n "$ac_tool_prefix"; then
8059 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8060 set dummy ${ac_tool_prefix}otool; ac_word=$2
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 printf %s "checking for $ac_word... " >&6; }
8063 if test ${ac_cv_prog_OTOOL+y}
8064 then :
8065 printf %s "(cached) " >&6
8066 else $as_nop
8067 if test -n "$OTOOL"; then
8068 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073 IFS=$as_save_IFS
8074 case $as_dir in #(((
8075 '') as_dir=./ ;;
8076 */) ;;
8077 *) as_dir=$as_dir/ ;;
8078 esac
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8081 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8083 break 2
8084 fi
8085 done
8086 done
8087 IFS=$as_save_IFS
8088
8089 fi
8090 fi
8091 OTOOL=$ac_cv_prog_OTOOL
8092 if test -n "$OTOOL"; then
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8094 printf "%s\n" "$OTOOL" >&6; }
8095 else
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 printf "%s\n" "no" >&6; }
8098 fi
8099
8100
8101 fi
8102 if test -z "$ac_cv_prog_OTOOL"; then
8103 ac_ct_OTOOL=$OTOOL
8104 # Extract the first word of "otool", so it can be a program name with args.
8105 set dummy otool; ac_word=$2
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 printf %s "checking for $ac_word... " >&6; }
8108 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8109 then :
8110 printf %s "(cached) " >&6
8111 else $as_nop
8112 if test -n "$ac_ct_OTOOL"; then
8113 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118 IFS=$as_save_IFS
8119 case $as_dir in #(((
8120 '') as_dir=./ ;;
8121 */) ;;
8122 *) as_dir=$as_dir/ ;;
8123 esac
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_ac_ct_OTOOL="otool"
8127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8128 break 2
8129 fi
8130 done
8131 done
8132 IFS=$as_save_IFS
8133
8134 fi
8135 fi
8136 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8137 if test -n "$ac_ct_OTOOL"; then
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8139 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8140 else
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 printf "%s\n" "no" >&6; }
8143 fi
8144
8145 if test "x$ac_ct_OTOOL" = x; then
8146 OTOOL=":"
8147 else
8148 case $cross_compiling:$ac_tool_warned in
8149 yes:)
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8151 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8152 ac_tool_warned=yes ;;
8153 esac
8154 OTOOL=$ac_ct_OTOOL
8155 fi
8156 else
8157 OTOOL="$ac_cv_prog_OTOOL"
8158 fi
8159
8160 if test -n "$ac_tool_prefix"; then
8161 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8162 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 printf %s "checking for $ac_word... " >&6; }
8165 if test ${ac_cv_prog_OTOOL64+y}
8166 then :
8167 printf %s "(cached) " >&6
8168 else $as_nop
8169 if test -n "$OTOOL64"; then
8170 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175 IFS=$as_save_IFS
8176 case $as_dir in #(((
8177 '') as_dir=./ ;;
8178 */) ;;
8179 *) as_dir=$as_dir/ ;;
8180 esac
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8183 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8185 break 2
8186 fi
8187 done
8188 done
8189 IFS=$as_save_IFS
8190
8191 fi
8192 fi
8193 OTOOL64=$ac_cv_prog_OTOOL64
8194 if test -n "$OTOOL64"; then
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8196 printf "%s\n" "$OTOOL64" >&6; }
8197 else
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 printf "%s\n" "no" >&6; }
8200 fi
8201
8202
8203 fi
8204 if test -z "$ac_cv_prog_OTOOL64"; then
8205 ac_ct_OTOOL64=$OTOOL64
8206 # Extract the first word of "otool64", so it can be a program name with args.
8207 set dummy otool64; ac_word=$2
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 printf %s "checking for $ac_word... " >&6; }
8210 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8211 then :
8212 printf %s "(cached) " >&6
8213 else $as_nop
8214 if test -n "$ac_ct_OTOOL64"; then
8215 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8219 do
8220 IFS=$as_save_IFS
8221 case $as_dir in #(((
8222 '') as_dir=./ ;;
8223 */) ;;
8224 *) as_dir=$as_dir/ ;;
8225 esac
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8228 ac_cv_prog_ac_ct_OTOOL64="otool64"
8229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232 done
8233 done
8234 IFS=$as_save_IFS
8235
8236 fi
8237 fi
8238 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8239 if test -n "$ac_ct_OTOOL64"; then
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8241 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8242 else
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 printf "%s\n" "no" >&6; }
8245 fi
8246
8247 if test "x$ac_ct_OTOOL64" = x; then
8248 OTOOL64=":"
8249 else
8250 case $cross_compiling:$ac_tool_warned in
8251 yes:)
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8253 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8254 ac_tool_warned=yes ;;
8255 esac
8256 OTOOL64=$ac_ct_OTOOL64
8257 fi
8258 else
8259 OTOOL64="$ac_cv_prog_OTOOL64"
8260 fi
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8289 printf %s "checking for -single_module linker flag... " >&6; }
8290 if test ${lt_cv_apple_cc_single_mod+y}
8291 then :
8292 printf %s "(cached) " >&6
8293 else $as_nop
8294 lt_cv_apple_cc_single_mod=no
8295 if test -z "$LT_MULTI_MODULE"; then
8296 # By default we will add the -single_module flag. You can override
8297 # by either setting the environment variable LT_MULTI_MODULE
8298 # non-empty at configure time, or by adding -multi_module to the
8299 # link flags.
8300 rm -rf libconftest.dylib*
8301 echo "int foo(void){return 1;}" > conftest.c
8302 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8303 -dynamiclib -Wl,-single_module conftest.c" >&5
8304 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8305 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8306 _lt_result=$?
8307 # If there is a non-empty error log, and "single_module"
8308 # appears in it, assume the flag caused a linker warning
8309 if test -s conftest.err && $GREP single_module conftest.err; then
8310 cat conftest.err >&5
8311 # Otherwise, if the output was created with a 0 exit code from
8312 # the compiler, it worked.
8313 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8314 lt_cv_apple_cc_single_mod=yes
8315 else
8316 cat conftest.err >&5
8317 fi
8318 rm -rf libconftest.dylib*
8319 rm -f conftest.*
8320 fi
8321 fi
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8323 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8324
8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8326 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8327 if test ${lt_cv_ld_exported_symbols_list+y}
8328 then :
8329 printf %s "(cached) " >&6
8330 else $as_nop
8331 lt_cv_ld_exported_symbols_list=no
8332 save_LDFLAGS=$LDFLAGS
8333 echo "_main" > conftest.sym
8334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337
8338 int
8339 main (void)
8340 {
8341
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_link "$LINENO"
8347 then :
8348 lt_cv_ld_exported_symbols_list=yes
8349 else $as_nop
8350 lt_cv_ld_exported_symbols_list=no
8351 fi
8352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8353 conftest$ac_exeext conftest.$ac_ext
8354 LDFLAGS=$save_LDFLAGS
8355
8356 fi
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8358 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8359
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8361 printf %s "checking for -force_load linker flag... " >&6; }
8362 if test ${lt_cv_ld_force_load+y}
8363 then :
8364 printf %s "(cached) " >&6
8365 else $as_nop
8366 lt_cv_ld_force_load=no
8367 cat > conftest.c << _LT_EOF
8368 int forced_loaded() { return 2;}
8369 _LT_EOF
8370 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8371 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8372 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8373 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8374 echo "$RANLIB libconftest.a" >&5
8375 $RANLIB libconftest.a 2>&5
8376 cat > conftest.c << _LT_EOF
8377 int main() { return 0;}
8378 _LT_EOF
8379 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8380 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8381 _lt_result=$?
8382 if test -s conftest.err && $GREP force_load conftest.err; then
8383 cat conftest.err >&5
8384 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8385 lt_cv_ld_force_load=yes
8386 else
8387 cat conftest.err >&5
8388 fi
8389 rm -f conftest.err libconftest.a conftest conftest.c
8390 rm -rf conftest.dSYM
8391
8392 fi
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8394 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8395 case $host_os in
8396 rhapsody* | darwin1.[012])
8397 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8398 darwin1.*)
8399 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8400 darwin*)
8401 case $MACOSX_DEPLOYMENT_TARGET,$host in
8402 10.[012],*|,*powerpc*-darwin[5-8]*)
8403 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8404 *)
8405 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8406 esac
8407 ;;
8408 esac
8409 if test yes = "$lt_cv_apple_cc_single_mod"; then
8410 _lt_dar_single_mod='$single_module'
8411 fi
8412 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8413 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8414 else
8415 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8416 fi
8417 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8418 _lt_dsymutil='~$DSYMUTIL $lib || :'
8419 else
8420 _lt_dsymutil=
8421 fi
8422 ;;
8423 esac
8424
8425 # func_munge_path_list VARIABLE PATH
8426 # -----------------------------------
8427 # VARIABLE is name of variable containing _space_ separated list of
8428 # directories to be munged by the contents of PATH, which is string
8429 # having a format:
8430 # "DIR[:DIR]:"
8431 # string "DIR[ DIR]" will be prepended to VARIABLE
8432 # ":DIR[:DIR]"
8433 # string "DIR[ DIR]" will be appended to VARIABLE
8434 # "DIRP[:DIRP]::[DIRA:]DIRA"
8435 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8436 # "DIRA[ DIRA]" will be appended to VARIABLE
8437 # "DIR[:DIR]"
8438 # VARIABLE will be replaced by "DIR[ DIR]"
8439 func_munge_path_list ()
8440 {
8441 case x$2 in
8442 x)
8443 ;;
8444 *:)
8445 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8446 ;;
8447 x:*)
8448 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8449 ;;
8450 *::*)
8451 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8452 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8453 ;;
8454 *)
8455 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8456 ;;
8457 esac
8458 }
8459
8460 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8461 "
8462 if test "x$ac_cv_header_dlfcn_h" = xyes
8463 then :
8464 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8465
8466 fi
8467
8468
8469
8470
8471
8472 # Set options
8473
8474
8475
8476 enable_dlopen=no
8477
8478
8479 enable_win32_dll=no
8480
8481
8482 # Check whether --enable-shared was given.
8483 if test ${enable_shared+y}
8484 then :
8485 enableval=$enable_shared; p=${PACKAGE-default}
8486 case $enableval in
8487 yes) enable_shared=yes ;;
8488 no) enable_shared=no ;;
8489 *)
8490 enable_shared=no
8491 # Look at the argument we got. We use all the common list separators.
8492 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8493 for pkg in $enableval; do
8494 IFS=$lt_save_ifs
8495 if test "X$pkg" = "X$p"; then
8496 enable_shared=yes
8497 fi
8498 done
8499 IFS=$lt_save_ifs
8500 ;;
8501 esac
8502 else $as_nop
8503 enable_shared=yes
8504 fi
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 # Check whether --enable-static was given.
8515 if test ${enable_static+y}
8516 then :
8517 enableval=$enable_static; p=${PACKAGE-default}
8518 case $enableval in
8519 yes) enable_static=yes ;;
8520 no) enable_static=no ;;
8521 *)
8522 enable_static=no
8523 # Look at the argument we got. We use all the common list separators.
8524 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8525 for pkg in $enableval; do
8526 IFS=$lt_save_ifs
8527 if test "X$pkg" = "X$p"; then
8528 enable_static=yes
8529 fi
8530 done
8531 IFS=$lt_save_ifs
8532 ;;
8533 esac
8534 else $as_nop
8535 enable_static=yes
8536 fi
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547 # Check whether --with-pic was given.
8548 if test ${with_pic+y}
8549 then :
8550 withval=$with_pic; lt_p=${PACKAGE-default}
8551 case $withval in
8552 yes|no) pic_mode=$withval ;;
8553 *)
8554 pic_mode=default
8555 # Look at the argument we got. We use all the common list separators.
8556 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8557 for lt_pkg in $withval; do
8558 IFS=$lt_save_ifs
8559 if test "X$lt_pkg" = "X$lt_p"; then
8560 pic_mode=yes
8561 fi
8562 done
8563 IFS=$lt_save_ifs
8564 ;;
8565 esac
8566 else $as_nop
8567 pic_mode=default
8568 fi
8569
8570
8571
8572
8573
8574
8575
8576
8577 # Check whether --enable-fast-install was given.
8578 if test ${enable_fast_install+y}
8579 then :
8580 enableval=$enable_fast_install; p=${PACKAGE-default}
8581 case $enableval in
8582 yes) enable_fast_install=yes ;;
8583 no) enable_fast_install=no ;;
8584 *)
8585 enable_fast_install=no
8586 # Look at the argument we got. We use all the common list separators.
8587 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8588 for pkg in $enableval; do
8589 IFS=$lt_save_ifs
8590 if test "X$pkg" = "X$p"; then
8591 enable_fast_install=yes
8592 fi
8593 done
8594 IFS=$lt_save_ifs
8595 ;;
8596 esac
8597 else $as_nop
8598 enable_fast_install=yes
8599 fi
8600
8601
8602
8603
8604
8605
8606
8607
8608 shared_archive_member_spec=
8609 case $host,$enable_shared in
8610 power*-*-aix[5-9]*,yes)
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8612 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8613
8614 # Check whether --with-aix-soname was given.
8615 if test ${with_aix_soname+y}
8616 then :
8617 withval=$with_aix_soname; case $withval in
8618 aix|svr4|both)
8619 ;;
8620 *)
8621 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8622 ;;
8623 esac
8624 lt_cv_with_aix_soname=$with_aix_soname
8625 else $as_nop
8626 if test ${lt_cv_with_aix_soname+y}
8627 then :
8628 printf %s "(cached) " >&6
8629 else $as_nop
8630 lt_cv_with_aix_soname=aix
8631 fi
8632
8633 with_aix_soname=$lt_cv_with_aix_soname
8634 fi
8635
8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8637 printf "%s\n" "$with_aix_soname" >&6; }
8638 if test aix != "$with_aix_soname"; then
8639 # For the AIX way of multilib, we name the shared archive member
8640 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8641 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8642 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8643 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8644 if test 64 = "${OBJECT_MODE-32}"; then
8645 shared_archive_member_spec=shr_64
8646 else
8647 shared_archive_member_spec=shr
8648 fi
8649 fi
8650 ;;
8651 *)
8652 with_aix_soname=aix
8653 ;;
8654 esac
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665 # This can be used to rebuild libtool when needed
8666 LIBTOOL_DEPS=$ltmain
8667
8668 # Always use our own libtool.
8669 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700 test -z "$LN_S" && LN_S="ln -s"
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715 if test -n "${ZSH_VERSION+set}"; then
8716 setopt NO_GLOB_SUBST
8717 fi
8718
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8720 printf %s "checking for objdir... " >&6; }
8721 if test ${lt_cv_objdir+y}
8722 then :
8723 printf %s "(cached) " >&6
8724 else $as_nop
8725 rm -f .libs 2>/dev/null
8726 mkdir .libs 2>/dev/null
8727 if test -d .libs; then
8728 lt_cv_objdir=.libs
8729 else
8730 # MS-DOS does not allow filenames that begin with a dot.
8731 lt_cv_objdir=_libs
8732 fi
8733 rmdir .libs 2>/dev/null
8734 fi
8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8736 printf "%s\n" "$lt_cv_objdir" >&6; }
8737 objdir=$lt_cv_objdir
8738
8739
8740
8741
8742
8743 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8744
8745
8746
8747
8748 case $host_os in
8749 aix3*)
8750 # AIX sometimes has problems with the GCC collect2 program. For some
8751 # reason, if we set the COLLECT_NAMES environment variable, the problems
8752 # vanish in a puff of smoke.
8753 if test set != "${COLLECT_NAMES+set}"; then
8754 COLLECT_NAMES=
8755 export COLLECT_NAMES
8756 fi
8757 ;;
8758 esac
8759
8760 # Global variables:
8761 ofile=libtool
8762 can_build_shared=yes
8763
8764 # All known linkers require a '.a' archive for static linking (except MSVC and
8765 # ICC, which need '.lib').
8766 libext=a
8767
8768 with_gnu_ld=$lt_cv_prog_gnu_ld
8769
8770 old_CC=$CC
8771 old_CFLAGS=$CFLAGS
8772
8773 # Set sane defaults for various variables
8774 test -z "$CC" && CC=cc
8775 test -z "$LTCC" && LTCC=$CC
8776 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8777 test -z "$LD" && LD=ld
8778 test -z "$ac_objext" && ac_objext=o
8779
8780 func_cc_basename $compiler
8781 cc_basename=$func_cc_basename_result
8782
8783
8784 # Only perform the check for file, if the check method requires it
8785 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8786 case $deplibs_check_method in
8787 file_magic*)
8788 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8790 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8791 if test ${lt_cv_path_MAGIC_CMD+y}
8792 then :
8793 printf %s "(cached) " >&6
8794 else $as_nop
8795 case $MAGIC_CMD in
8796 [\\/*] | ?:[\\/]*)
8797 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8798 ;;
8799 *)
8800 lt_save_MAGIC_CMD=$MAGIC_CMD
8801 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8802 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8803 for ac_dir in $ac_dummy; do
8804 IFS=$lt_save_ifs
8805 test -z "$ac_dir" && ac_dir=.
8806 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8807 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8808 if test -n "$file_magic_test_file"; then
8809 case $deplibs_check_method in
8810 "file_magic "*)
8811 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8812 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8814 $EGREP "$file_magic_regex" > /dev/null; then
8815 :
8816 else
8817 cat <<_LT_EOF 1>&2
8818
8819 *** Warning: the command libtool uses to detect shared libraries,
8820 *** $file_magic_cmd, produces output that libtool cannot recognize.
8821 *** The result is that libtool may fail to recognize shared libraries
8822 *** as such. This will affect the creation of libtool libraries that
8823 *** depend on shared libraries, but programs linked with such libtool
8824 *** libraries will work regardless of this problem. Nevertheless, you
8825 *** may want to report the problem to your system manager and/or to
8826 *** bug-libtool@gnu.org
8827
8828 _LT_EOF
8829 fi ;;
8830 esac
8831 fi
8832 break
8833 fi
8834 done
8835 IFS=$lt_save_ifs
8836 MAGIC_CMD=$lt_save_MAGIC_CMD
8837 ;;
8838 esac
8839 fi
8840
8841 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8842 if test -n "$MAGIC_CMD"; then
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8844 printf "%s\n" "$MAGIC_CMD" >&6; }
8845 else
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 printf "%s\n" "no" >&6; }
8848 fi
8849
8850
8851
8852
8853
8854 if test -z "$lt_cv_path_MAGIC_CMD"; then
8855 if test -n "$ac_tool_prefix"; then
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8857 printf %s "checking for file... " >&6; }
8858 if test ${lt_cv_path_MAGIC_CMD+y}
8859 then :
8860 printf %s "(cached) " >&6
8861 else $as_nop
8862 case $MAGIC_CMD in
8863 [\\/*] | ?:[\\/]*)
8864 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8865 ;;
8866 *)
8867 lt_save_MAGIC_CMD=$MAGIC_CMD
8868 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8870 for ac_dir in $ac_dummy; do
8871 IFS=$lt_save_ifs
8872 test -z "$ac_dir" && ac_dir=.
8873 if test -f "$ac_dir/file"; then
8874 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8875 if test -n "$file_magic_test_file"; then
8876 case $deplibs_check_method in
8877 "file_magic "*)
8878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8879 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8881 $EGREP "$file_magic_regex" > /dev/null; then
8882 :
8883 else
8884 cat <<_LT_EOF 1>&2
8885
8886 *** Warning: the command libtool uses to detect shared libraries,
8887 *** $file_magic_cmd, produces output that libtool cannot recognize.
8888 *** The result is that libtool may fail to recognize shared libraries
8889 *** as such. This will affect the creation of libtool libraries that
8890 *** depend on shared libraries, but programs linked with such libtool
8891 *** libraries will work regardless of this problem. Nevertheless, you
8892 *** may want to report the problem to your system manager and/or to
8893 *** bug-libtool@gnu.org
8894
8895 _LT_EOF
8896 fi ;;
8897 esac
8898 fi
8899 break
8900 fi
8901 done
8902 IFS=$lt_save_ifs
8903 MAGIC_CMD=$lt_save_MAGIC_CMD
8904 ;;
8905 esac
8906 fi
8907
8908 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8909 if test -n "$MAGIC_CMD"; then
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8911 printf "%s\n" "$MAGIC_CMD" >&6; }
8912 else
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 printf "%s\n" "no" >&6; }
8915 fi
8916
8917
8918 else
8919 MAGIC_CMD=:
8920 fi
8921 fi
8922
8923 fi
8924 ;;
8925 esac
8926
8927 # Use C for the default configuration in the libtool script
8928
8929 lt_save_CC=$CC
8930 ac_ext=c
8931 ac_cpp='$CPP $CPPFLAGS'
8932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8935
8936
8937 # Source file extension for C test sources.
8938 ac_ext=c
8939
8940 # Object file extension for compiled C test sources.
8941 objext=o
8942 objext=$objext
8943
8944 # Code to be used in simple compile tests
8945 lt_simple_compile_test_code="int some_variable = 0;"
8946
8947 # Code to be used in simple link tests
8948 lt_simple_link_test_code='int main(){return(0);}'
8949
8950
8951
8952
8953
8954
8955
8956 # If no C compiler was specified, use CC.
8957 LTCC=${LTCC-"$CC"}
8958
8959 # If no C compiler flags were specified, use CFLAGS.
8960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8961
8962 # Allow CC to be a program name with arguments.
8963 compiler=$CC
8964
8965 # Save the default compiler, since it gets overwritten when the other
8966 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8967 compiler_DEFAULT=$CC
8968
8969 # save warnings/boilerplate of simple test code
8970 ac_outfile=conftest.$ac_objext
8971 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8972 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8973 _lt_compiler_boilerplate=`cat conftest.err`
8974 $RM conftest*
8975
8976 ac_outfile=conftest.$ac_objext
8977 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8978 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8979 _lt_linker_boilerplate=`cat conftest.err`
8980 $RM -r conftest*
8981
8982
8983 if test -n "$compiler"; then
8984
8985 lt_prog_compiler_no_builtin_flag=
8986
8987 if test yes = "$GCC"; then
8988 case $cc_basename in
8989 nvcc*)
8990 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8991 *)
8992 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8993 esac
8994
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8996 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8997 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8998 then :
8999 printf %s "(cached) " >&6
9000 else $as_nop
9001 lt_cv_prog_compiler_rtti_exceptions=no
9002 ac_outfile=conftest.$ac_objext
9003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9004 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9005 # Insert the option either (1) after the last *FLAGS variable, or
9006 # (2) before a word containing "conftest.", or (3) at the end.
9007 # Note that $ac_compile itself does not contain backslashes and begins
9008 # with a dollar sign (not a hyphen), so the echo should work correctly.
9009 # The option is referenced via a variable to avoid confusing sed.
9010 lt_compile=`echo "$ac_compile" | $SED \
9011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9013 -e 's:$: $lt_compiler_flag:'`
9014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9015 (eval "$lt_compile" 2>conftest.err)
9016 ac_status=$?
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 if (exit $ac_status) && test -s "$ac_outfile"; then
9020 # The compiler can only warn and ignore the option if not recognized
9021 # So say no if there are warnings other than the usual output.
9022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9024 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9025 lt_cv_prog_compiler_rtti_exceptions=yes
9026 fi
9027 fi
9028 $RM conftest*
9029
9030 fi
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9032 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9033
9034 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9035 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9036 else
9037 :
9038 fi
9039
9040 fi
9041
9042
9043
9044
9045
9046
9047 lt_prog_compiler_wl=
9048 lt_prog_compiler_pic=
9049 lt_prog_compiler_static=
9050
9051
9052 if test yes = "$GCC"; then
9053 lt_prog_compiler_wl='-Wl,'
9054 lt_prog_compiler_static='-static'
9055
9056 case $host_os in
9057 aix*)
9058 # All AIX code is PIC.
9059 if test ia64 = "$host_cpu"; then
9060 # AIX 5 now supports IA64 processor
9061 lt_prog_compiler_static='-Bstatic'
9062 fi
9063 lt_prog_compiler_pic='-fPIC'
9064 ;;
9065
9066 amigaos*)
9067 case $host_cpu in
9068 powerpc)
9069 # see comment about AmigaOS4 .so support
9070 lt_prog_compiler_pic='-fPIC'
9071 ;;
9072 m68k)
9073 # FIXME: we need at least 68020 code to build shared libraries, but
9074 # adding the '-m68020' flag to GCC prevents building anything better,
9075 # like '-m68040'.
9076 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9077 ;;
9078 esac
9079 ;;
9080
9081 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9082 # PIC is the default for these OSes.
9083 ;;
9084
9085 mingw* | cygwin* | pw32* | os2* | cegcc*)
9086 # This hack is so that the source file can tell whether it is being
9087 # built for inclusion in a dll (and should export symbols for example).
9088 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9089 # (--disable-auto-import) libraries
9090 lt_prog_compiler_pic='-DDLL_EXPORT'
9091 case $host_os in
9092 os2*)
9093 lt_prog_compiler_static='$wl-static'
9094 ;;
9095 esac
9096 ;;
9097
9098 darwin* | rhapsody*)
9099 # PIC is the default on this platform
9100 # Common symbols not allowed in MH_DYLIB files
9101 lt_prog_compiler_pic='-fno-common'
9102 ;;
9103
9104 haiku*)
9105 # PIC is the default for Haiku.
9106 # The "-static" flag exists, but is broken.
9107 lt_prog_compiler_static=
9108 ;;
9109
9110 hpux*)
9111 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9112 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9113 # sets the default TLS model and affects inlining.
9114 case $host_cpu in
9115 hppa*64*)
9116 # +Z the default
9117 ;;
9118 *)
9119 lt_prog_compiler_pic='-fPIC'
9120 ;;
9121 esac
9122 ;;
9123
9124 interix[3-9]*)
9125 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9126 # Instead, we relocate shared libraries at runtime.
9127 ;;
9128
9129 msdosdjgpp*)
9130 # Just because we use GCC doesn't mean we suddenly get shared libraries
9131 # on systems that don't support them.
9132 lt_prog_compiler_can_build_shared=no
9133 enable_shared=no
9134 ;;
9135
9136 *nto* | *qnx*)
9137 # QNX uses GNU C++, but need to define -shared option too, otherwise
9138 # it will coredump.
9139 lt_prog_compiler_pic='-fPIC -shared'
9140 ;;
9141
9142 sysv4*MP*)
9143 if test -d /usr/nec; then
9144 lt_prog_compiler_pic=-Kconform_pic
9145 fi
9146 ;;
9147
9148 *)
9149 lt_prog_compiler_pic='-fPIC'
9150 ;;
9151 esac
9152
9153 case $cc_basename in
9154 nvcc*) # Cuda Compiler Driver 2.2
9155 lt_prog_compiler_wl='-Xlinker '
9156 if test -n "$lt_prog_compiler_pic"; then
9157 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9158 fi
9159 ;;
9160 esac
9161 else
9162 # PORTME Check for flag to pass linker flags through the system compiler.
9163 case $host_os in
9164 aix*)
9165 lt_prog_compiler_wl='-Wl,'
9166 if test ia64 = "$host_cpu"; then
9167 # AIX 5 now supports IA64 processor
9168 lt_prog_compiler_static='-Bstatic'
9169 else
9170 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9171 fi
9172 ;;
9173
9174 darwin* | rhapsody*)
9175 # PIC is the default on this platform
9176 # Common symbols not allowed in MH_DYLIB files
9177 lt_prog_compiler_pic='-fno-common'
9178 case $cc_basename in
9179 nagfor*)
9180 # NAG Fortran compiler
9181 lt_prog_compiler_wl='-Wl,-Wl,,'
9182 lt_prog_compiler_pic='-PIC'
9183 lt_prog_compiler_static='-Bstatic'
9184 ;;
9185 esac
9186 ;;
9187
9188 mingw* | cygwin* | pw32* | os2* | cegcc*)
9189 # This hack is so that the source file can tell whether it is being
9190 # built for inclusion in a dll (and should export symbols for example).
9191 lt_prog_compiler_pic='-DDLL_EXPORT'
9192 case $host_os in
9193 os2*)
9194 lt_prog_compiler_static='$wl-static'
9195 ;;
9196 esac
9197 ;;
9198
9199 hpux9* | hpux10* | hpux11*)
9200 lt_prog_compiler_wl='-Wl,'
9201 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9202 # not for PA HP-UX.
9203 case $host_cpu in
9204 hppa*64*|ia64*)
9205 # +Z the default
9206 ;;
9207 *)
9208 lt_prog_compiler_pic='+Z'
9209 ;;
9210 esac
9211 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9212 lt_prog_compiler_static='$wl-a ${wl}archive'
9213 ;;
9214
9215 irix5* | irix6* | nonstopux*)
9216 lt_prog_compiler_wl='-Wl,'
9217 # PIC (with -KPIC) is the default.
9218 lt_prog_compiler_static='-non_shared'
9219 ;;
9220
9221 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9222 case $cc_basename in
9223 # old Intel for x86_64, which still supported -KPIC.
9224 ecc*)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='-KPIC'
9227 lt_prog_compiler_static='-static'
9228 ;;
9229 # icc used to be incompatible with GCC.
9230 # ICC 10 doesn't accept -KPIC any more.
9231 icc* | ifort*)
9232 lt_prog_compiler_wl='-Wl,'
9233 lt_prog_compiler_pic='-fPIC'
9234 lt_prog_compiler_static='-static'
9235 ;;
9236 # Lahey Fortran 8.1.
9237 lf95*)
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_pic='--shared'
9240 lt_prog_compiler_static='--static'
9241 ;;
9242 nagfor*)
9243 # NAG Fortran compiler
9244 lt_prog_compiler_wl='-Wl,-Wl,,'
9245 lt_prog_compiler_pic='-PIC'
9246 lt_prog_compiler_static='-Bstatic'
9247 ;;
9248 tcc*)
9249 # Fabrice Bellard et al's Tiny C Compiler
9250 lt_prog_compiler_wl='-Wl,'
9251 lt_prog_compiler_pic='-fPIC'
9252 lt_prog_compiler_static='-static'
9253 ;;
9254 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9255 # Portland Group compilers (*not* the Pentium gcc compiler,
9256 # which looks to be a dead project)
9257 lt_prog_compiler_wl='-Wl,'
9258 lt_prog_compiler_pic='-fpic'
9259 lt_prog_compiler_static='-Bstatic'
9260 ;;
9261 ccc*)
9262 lt_prog_compiler_wl='-Wl,'
9263 # All Alpha code is PIC.
9264 lt_prog_compiler_static='-non_shared'
9265 ;;
9266 xl* | bgxl* | bgf* | mpixl*)
9267 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9268 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='-qpic'
9270 lt_prog_compiler_static='-qstaticlink'
9271 ;;
9272 *)
9273 case `$CC -V 2>&1 | $SED 5q` in
9274 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9275 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9276 lt_prog_compiler_pic='-KPIC'
9277 lt_prog_compiler_static='-Bstatic'
9278 lt_prog_compiler_wl=''
9279 ;;
9280 *Sun\ F* | *Sun*Fortran*)
9281 lt_prog_compiler_pic='-KPIC'
9282 lt_prog_compiler_static='-Bstatic'
9283 lt_prog_compiler_wl='-Qoption ld '
9284 ;;
9285 *Sun\ C*)
9286 # Sun C 5.9
9287 lt_prog_compiler_pic='-KPIC'
9288 lt_prog_compiler_static='-Bstatic'
9289 lt_prog_compiler_wl='-Wl,'
9290 ;;
9291 *Intel*\ [CF]*Compiler*)
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_pic='-fPIC'
9294 lt_prog_compiler_static='-static'
9295 ;;
9296 *Portland\ Group*)
9297 lt_prog_compiler_wl='-Wl,'
9298 lt_prog_compiler_pic='-fpic'
9299 lt_prog_compiler_static='-Bstatic'
9300 ;;
9301 esac
9302 ;;
9303 esac
9304 ;;
9305
9306 newsos6)
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9309 ;;
9310
9311 *nto* | *qnx*)
9312 # QNX uses GNU C++, but need to define -shared option too, otherwise
9313 # it will coredump.
9314 lt_prog_compiler_pic='-fPIC -shared'
9315 ;;
9316
9317 osf3* | osf4* | osf5*)
9318 lt_prog_compiler_wl='-Wl,'
9319 # All OSF/1 code is PIC.
9320 lt_prog_compiler_static='-non_shared'
9321 ;;
9322
9323 rdos*)
9324 lt_prog_compiler_static='-non_shared'
9325 ;;
9326
9327 solaris*)
9328 lt_prog_compiler_pic='-KPIC'
9329 lt_prog_compiler_static='-Bstatic'
9330 case $cc_basename in
9331 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9332 lt_prog_compiler_wl='-Qoption ld ';;
9333 *)
9334 lt_prog_compiler_wl='-Wl,';;
9335 esac
9336 ;;
9337
9338 sunos4*)
9339 lt_prog_compiler_wl='-Qoption ld '
9340 lt_prog_compiler_pic='-PIC'
9341 lt_prog_compiler_static='-Bstatic'
9342 ;;
9343
9344 sysv4 | sysv4.2uw2* | sysv4.3*)
9345 lt_prog_compiler_wl='-Wl,'
9346 lt_prog_compiler_pic='-KPIC'
9347 lt_prog_compiler_static='-Bstatic'
9348 ;;
9349
9350 sysv4*MP*)
9351 if test -d /usr/nec; then
9352 lt_prog_compiler_pic='-Kconform_pic'
9353 lt_prog_compiler_static='-Bstatic'
9354 fi
9355 ;;
9356
9357 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-KPIC'
9360 lt_prog_compiler_static='-Bstatic'
9361 ;;
9362
9363 unicos*)
9364 lt_prog_compiler_wl='-Wl,'
9365 lt_prog_compiler_can_build_shared=no
9366 ;;
9367
9368 uts4*)
9369 lt_prog_compiler_pic='-pic'
9370 lt_prog_compiler_static='-Bstatic'
9371 ;;
9372
9373 *)
9374 lt_prog_compiler_can_build_shared=no
9375 ;;
9376 esac
9377 fi
9378
9379 case $host_os in
9380 # For platforms that do not support PIC, -DPIC is meaningless:
9381 *djgpp*)
9382 lt_prog_compiler_pic=
9383 ;;
9384 *)
9385 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9386 ;;
9387 esac
9388
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9390 printf %s "checking for $compiler option to produce PIC... " >&6; }
9391 if test ${lt_cv_prog_compiler_pic+y}
9392 then :
9393 printf %s "(cached) " >&6
9394 else $as_nop
9395 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9396 fi
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9398 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9399 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9400
9401 #
9402 # Check to make sure the PIC flag actually works.
9403 #
9404 if test -n "$lt_prog_compiler_pic"; then
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9406 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9407 if test ${lt_cv_prog_compiler_pic_works+y}
9408 then :
9409 printf %s "(cached) " >&6
9410 else $as_nop
9411 lt_cv_prog_compiler_pic_works=no
9412 ac_outfile=conftest.$ac_objext
9413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9414 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9415 # Insert the option either (1) after the last *FLAGS variable, or
9416 # (2) before a word containing "conftest.", or (3) at the end.
9417 # Note that $ac_compile itself does not contain backslashes and begins
9418 # with a dollar sign (not a hyphen), so the echo should work correctly.
9419 # The option is referenced via a variable to avoid confusing sed.
9420 lt_compile=`echo "$ac_compile" | $SED \
9421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9423 -e 's:$: $lt_compiler_flag:'`
9424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9425 (eval "$lt_compile" 2>conftest.err)
9426 ac_status=$?
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 if (exit $ac_status) && test -s "$ac_outfile"; then
9430 # The compiler can only warn and ignore the option if not recognized
9431 # So say no if there are warnings other than the usual output.
9432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9435 lt_cv_prog_compiler_pic_works=yes
9436 fi
9437 fi
9438 $RM conftest*
9439
9440 fi
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9442 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9443
9444 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9445 case $lt_prog_compiler_pic in
9446 "" | " "*) ;;
9447 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9448 esac
9449 else
9450 lt_prog_compiler_pic=
9451 lt_prog_compiler_can_build_shared=no
9452 fi
9453
9454 fi
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466 #
9467 # Check to make sure the static flag actually works.
9468 #
9469 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9471 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9472 if test ${lt_cv_prog_compiler_static_works+y}
9473 then :
9474 printf %s "(cached) " >&6
9475 else $as_nop
9476 lt_cv_prog_compiler_static_works=no
9477 save_LDFLAGS=$LDFLAGS
9478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9481 # The linker can only warn and ignore the option if not recognized
9482 # So say no if there are warnings
9483 if test -s conftest.err; then
9484 # Append any errors to the config.log.
9485 cat conftest.err 1>&5
9486 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9488 if diff conftest.exp conftest.er2 >/dev/null; then
9489 lt_cv_prog_compiler_static_works=yes
9490 fi
9491 else
9492 lt_cv_prog_compiler_static_works=yes
9493 fi
9494 fi
9495 $RM -r conftest*
9496 LDFLAGS=$save_LDFLAGS
9497
9498 fi
9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9500 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9501
9502 if test yes = "$lt_cv_prog_compiler_static_works"; then
9503 :
9504 else
9505 lt_prog_compiler_static=
9506 fi
9507
9508
9509
9510
9511
9512
9513
9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9515 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9516 if test ${lt_cv_prog_compiler_c_o+y}
9517 then :
9518 printf %s "(cached) " >&6
9519 else $as_nop
9520 lt_cv_prog_compiler_c_o=no
9521 $RM -r conftest 2>/dev/null
9522 mkdir conftest
9523 cd conftest
9524 mkdir out
9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9526
9527 lt_compiler_flag="-o out/conftest2.$ac_objext"
9528 # Insert the option either (1) after the last *FLAGS variable, or
9529 # (2) before a word containing "conftest.", or (3) at the end.
9530 # Note that $ac_compile itself does not contain backslashes and begins
9531 # with a dollar sign (not a hyphen), so the echo should work correctly.
9532 lt_compile=`echo "$ac_compile" | $SED \
9533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9535 -e 's:$: $lt_compiler_flag:'`
9536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9537 (eval "$lt_compile" 2>out/conftest.err)
9538 ac_status=$?
9539 cat out/conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9542 then
9543 # The compiler can only warn and ignore the option if not recognized
9544 # So say no if there are warnings
9545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9548 lt_cv_prog_compiler_c_o=yes
9549 fi
9550 fi
9551 chmod u+w . 2>&5
9552 $RM conftest*
9553 # SGI C++ compiler will create directory out/ii_files/ for
9554 # template instantiation
9555 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9556 $RM out/* && rmdir out
9557 cd ..
9558 $RM -r conftest
9559 $RM conftest*
9560
9561 fi
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9563 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9564
9565
9566
9567
9568
9569
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9571 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9572 if test ${lt_cv_prog_compiler_c_o+y}
9573 then :
9574 printf %s "(cached) " >&6
9575 else $as_nop
9576 lt_cv_prog_compiler_c_o=no
9577 $RM -r conftest 2>/dev/null
9578 mkdir conftest
9579 cd conftest
9580 mkdir out
9581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9582
9583 lt_compiler_flag="-o out/conftest2.$ac_objext"
9584 # Insert the option either (1) after the last *FLAGS variable, or
9585 # (2) before a word containing "conftest.", or (3) at the end.
9586 # Note that $ac_compile itself does not contain backslashes and begins
9587 # with a dollar sign (not a hyphen), so the echo should work correctly.
9588 lt_compile=`echo "$ac_compile" | $SED \
9589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9591 -e 's:$: $lt_compiler_flag:'`
9592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9593 (eval "$lt_compile" 2>out/conftest.err)
9594 ac_status=$?
9595 cat out/conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9598 then
9599 # The compiler can only warn and ignore the option if not recognized
9600 # So say no if there are warnings
9601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9604 lt_cv_prog_compiler_c_o=yes
9605 fi
9606 fi
9607 chmod u+w . 2>&5
9608 $RM conftest*
9609 # SGI C++ compiler will create directory out/ii_files/ for
9610 # template instantiation
9611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9612 $RM out/* && rmdir out
9613 cd ..
9614 $RM -r conftest
9615 $RM conftest*
9616
9617 fi
9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9619 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9620
9621
9622
9623
9624 hard_links=nottested
9625 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9626 # do not overwrite the value of need_locks provided by the user
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9628 printf %s "checking if we can lock with hard links... " >&6; }
9629 hard_links=yes
9630 $RM conftest*
9631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9632 touch conftest.a
9633 ln conftest.a conftest.b 2>&5 || hard_links=no
9634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9636 printf "%s\n" "$hard_links" >&6; }
9637 if test no = "$hard_links"; then
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9639 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9640 need_locks=warn
9641 fi
9642 else
9643 need_locks=no
9644 fi
9645
9646
9647
9648
9649
9650
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9652 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9653
9654 runpath_var=
9655 allow_undefined_flag=
9656 always_export_symbols=no
9657 archive_cmds=
9658 archive_expsym_cmds=
9659 compiler_needs_object=no
9660 enable_shared_with_static_runtimes=no
9661 export_dynamic_flag_spec=
9662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9663 hardcode_automatic=no
9664 hardcode_direct=no
9665 hardcode_direct_absolute=no
9666 hardcode_libdir_flag_spec=
9667 hardcode_libdir_separator=
9668 hardcode_minus_L=no
9669 hardcode_shlibpath_var=unsupported
9670 inherit_rpath=no
9671 link_all_deplibs=unknown
9672 module_cmds=
9673 module_expsym_cmds=
9674 old_archive_from_new_cmds=
9675 old_archive_from_expsyms_cmds=
9676 thread_safe_flag_spec=
9677 whole_archive_flag_spec=
9678 # include_expsyms should be a list of space-separated symbols to be *always*
9679 # included in the symbol list
9680 include_expsyms=
9681 # exclude_expsyms can be an extended regexp of symbols to exclude
9682 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9683 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9684 # as well as any symbol that contains 'd'.
9685 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9686 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9687 # platforms (ab)use it in PIC code, but their linkers get confused if
9688 # the symbol is explicitly referenced. Since portable code cannot
9689 # rely on this symbol name, it's probably fine to never include it in
9690 # preloaded symbol tables.
9691 # Exclude shared library initialization/finalization symbols.
9692 extract_expsyms_cmds=
9693
9694 case $host_os in
9695 cygwin* | mingw* | pw32* | cegcc*)
9696 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9697 # When not using gcc, we currently assume that we are using
9698 # Microsoft Visual C++ or Intel C++ Compiler.
9699 if test yes != "$GCC"; then
9700 with_gnu_ld=no
9701 fi
9702 ;;
9703 interix*)
9704 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9705 with_gnu_ld=yes
9706 ;;
9707 openbsd* | bitrig*)
9708 with_gnu_ld=no
9709 ;;
9710 esac
9711
9712 ld_shlibs=yes
9713
9714 # On some targets, GNU ld is compatible enough with the native linker
9715 # that we're better off using the native interface for both.
9716 lt_use_gnu_ld_interface=no
9717 if test yes = "$with_gnu_ld"; then
9718 case $host_os in
9719 aix*)
9720 # The AIX port of GNU ld has always aspired to compatibility
9721 # with the native linker. However, as the warning in the GNU ld
9722 # block says, versions before 2.19.5* couldn't really create working
9723 # shared libraries, regardless of the interface used.
9724 case `$LD -v 2>&1` in
9725 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9726 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9727 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9728 *)
9729 lt_use_gnu_ld_interface=yes
9730 ;;
9731 esac
9732 ;;
9733 *)
9734 lt_use_gnu_ld_interface=yes
9735 ;;
9736 esac
9737 fi
9738
9739 if test yes = "$lt_use_gnu_ld_interface"; then
9740 # If archive_cmds runs LD, not CC, wlarc should be empty
9741 wlarc='$wl'
9742
9743 # Set some defaults for GNU ld with shared library support. These
9744 # are reset later if shared libraries are not supported. Putting them
9745 # here allows them to be overridden if necessary.
9746 runpath_var=LD_RUN_PATH
9747 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9748 export_dynamic_flag_spec='$wl--export-dynamic'
9749 # ancient GNU ld didn't support --whole-archive et. al.
9750 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9751 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9752 else
9753 whole_archive_flag_spec=
9754 fi
9755 supports_anon_versioning=no
9756 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9757 *GNU\ gold*) supports_anon_versioning=yes ;;
9758 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9759 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9760 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9761 *\ 2.11.*) ;; # other 2.11 versions
9762 *) supports_anon_versioning=yes ;;
9763 esac
9764
9765 # See if GNU ld supports shared libraries.
9766 case $host_os in
9767 aix[3-9]*)
9768 # On AIX/PPC, the GNU linker is very broken
9769 if test ia64 != "$host_cpu"; then
9770 ld_shlibs=no
9771 cat <<_LT_EOF 1>&2
9772
9773 *** Warning: the GNU linker, at least up to release 2.19, is reported
9774 *** to be unable to reliably create shared libraries on AIX.
9775 *** Therefore, libtool is disabling shared libraries support. If you
9776 *** really care for shared libraries, you may want to install binutils
9777 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9778 *** You will then need to restart the configuration process.
9779
9780 _LT_EOF
9781 fi
9782 ;;
9783
9784 amigaos*)
9785 case $host_cpu in
9786 powerpc)
9787 # see comment about AmigaOS4 .so support
9788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9789 archive_expsym_cmds=''
9790 ;;
9791 m68k)
9792 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)'
9793 hardcode_libdir_flag_spec='-L$libdir'
9794 hardcode_minus_L=yes
9795 ;;
9796 esac
9797 ;;
9798
9799 beos*)
9800 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9801 allow_undefined_flag=unsupported
9802 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9803 # support --undefined. This deserves some investigation. FIXME
9804 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9805 else
9806 ld_shlibs=no
9807 fi
9808 ;;
9809
9810 cygwin* | mingw* | pw32* | cegcc*)
9811 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9812 # as there is no search path for DLLs.
9813 hardcode_libdir_flag_spec='-L$libdir'
9814 export_dynamic_flag_spec='$wl--export-all-symbols'
9815 allow_undefined_flag=unsupported
9816 always_export_symbols=no
9817 enable_shared_with_static_runtimes=yes
9818 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'
9819 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9820
9821 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9823 # If the export-symbols file already is a .def file, use it as
9824 # is; otherwise, prepend EXPORTS...
9825 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9826 cp $export_symbols $output_objdir/$soname.def;
9827 else
9828 echo EXPORTS > $output_objdir/$soname.def;
9829 cat $export_symbols >> $output_objdir/$soname.def;
9830 fi~
9831 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9832 else
9833 ld_shlibs=no
9834 fi
9835 ;;
9836
9837 haiku*)
9838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9839 link_all_deplibs=yes
9840 ;;
9841
9842 os2*)
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_minus_L=yes
9845 allow_undefined_flag=unsupported
9846 shrext_cmds=.dll
9847 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9848 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9849 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9850 $ECHO EXPORTS >> $output_objdir/$libname.def~
9851 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9852 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9853 emximp -o $lib $output_objdir/$libname.def'
9854 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9855 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9856 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9857 $ECHO EXPORTS >> $output_objdir/$libname.def~
9858 prefix_cmds="$SED"~
9859 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9860 prefix_cmds="$prefix_cmds -e 1d";
9861 fi~
9862 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9863 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9864 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9865 emximp -o $lib $output_objdir/$libname.def'
9866 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9867 enable_shared_with_static_runtimes=yes
9868 file_list_spec='@'
9869 ;;
9870
9871 interix[3-9]*)
9872 hardcode_direct=no
9873 hardcode_shlibpath_var=no
9874 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9875 export_dynamic_flag_spec='$wl-E'
9876 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9877 # Instead, shared libraries are loaded at an image base (0x10000000 by
9878 # default) and relocated if they conflict, which is a slow very memory
9879 # consuming and fragmenting process. To avoid this, we pick a random,
9880 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9881 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9882 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9883 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'
9884 ;;
9885
9886 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9887 tmp_diet=no
9888 if test linux-dietlibc = "$host_os"; then
9889 case $cc_basename in
9890 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9891 esac
9892 fi
9893 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9894 && test no = "$tmp_diet"
9895 then
9896 tmp_addflag=' $pic_flag'
9897 tmp_sharedflag='-shared'
9898 case $cc_basename,$host_cpu in
9899 pgcc*) # Portland Group C compiler
9900 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'
9901 tmp_addflag=' $pic_flag'
9902 ;;
9903 pgf77* | pgf90* | pgf95* | pgfortran*)
9904 # Portland Group f77 and f90 compilers
9905 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'
9906 tmp_addflag=' $pic_flag -Mnomain' ;;
9907 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9908 tmp_addflag=' -i_dynamic' ;;
9909 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9910 tmp_addflag=' -i_dynamic -nofor_main' ;;
9911 ifc* | ifort*) # Intel Fortran compiler
9912 tmp_addflag=' -nofor_main' ;;
9913 lf95*) # Lahey Fortran 8.1
9914 whole_archive_flag_spec=
9915 tmp_sharedflag='--shared' ;;
9916 nagfor*) # NAGFOR 5.3
9917 tmp_sharedflag='-Wl,-shared' ;;
9918 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9919 tmp_sharedflag='-qmkshrobj'
9920 tmp_addflag= ;;
9921 nvcc*) # Cuda Compiler Driver 2.2
9922 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'
9923 compiler_needs_object=yes
9924 ;;
9925 esac
9926 case `$CC -V 2>&1 | $SED 5q` in
9927 *Sun\ C*) # Sun C 5.9
9928 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'
9929 compiler_needs_object=yes
9930 tmp_sharedflag='-G' ;;
9931 *Sun\ F*) # Sun Fortran 8.3
9932 tmp_sharedflag='-G' ;;
9933 esac
9934 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9935
9936 if test yes = "$supports_anon_versioning"; then
9937 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9938 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9939 echo "local: *; };" >> $output_objdir/$libname.ver~
9940 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9941 fi
9942
9943 case $cc_basename in
9944 tcc*)
9945 export_dynamic_flag_spec='-rdynamic'
9946 ;;
9947 xlf* | bgf* | bgxlf* | mpixlf*)
9948 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9949 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9950 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9951 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9952 if test yes = "$supports_anon_versioning"; then
9953 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9954 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9955 echo "local: *; };" >> $output_objdir/$libname.ver~
9956 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9957 fi
9958 ;;
9959 esac
9960 else
9961 ld_shlibs=no
9962 fi
9963 ;;
9964
9965 netbsd*)
9966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9967 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9968 wlarc=
9969 else
9970 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9971 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9972 fi
9973 ;;
9974
9975 solaris*)
9976 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9977 ld_shlibs=no
9978 cat <<_LT_EOF 1>&2
9979
9980 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9981 *** create shared libraries on Solaris systems. Therefore, libtool
9982 *** is disabling shared libraries support. We urge you to upgrade GNU
9983 *** binutils to release 2.9.1 or newer. Another option is to modify
9984 *** your PATH or compiler configuration so that the native linker is
9985 *** used, and then restart.
9986
9987 _LT_EOF
9988 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9989 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9990 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9991 else
9992 ld_shlibs=no
9993 fi
9994 ;;
9995
9996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9997 case `$LD -v 2>&1` in
9998 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9999 ld_shlibs=no
10000 cat <<_LT_EOF 1>&2
10001
10002 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10003 *** reliably create shared libraries on SCO systems. Therefore, libtool
10004 *** is disabling shared libraries support. We urge you to upgrade GNU
10005 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10006 *** your PATH or compiler configuration so that the native linker is
10007 *** used, and then restart.
10008
10009 _LT_EOF
10010 ;;
10011 *)
10012 # For security reasons, it is highly recommended that you always
10013 # use absolute paths for naming shared libraries, and exclude the
10014 # DT_RUNPATH tag from executables and libraries. But doing so
10015 # requires that you compile everything twice, which is a pain.
10016 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10017 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10020 else
10021 ld_shlibs=no
10022 fi
10023 ;;
10024 esac
10025 ;;
10026
10027 sunos4*)
10028 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10029 wlarc=
10030 hardcode_direct=yes
10031 hardcode_shlibpath_var=no
10032 ;;
10033
10034 *)
10035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10036 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10037 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10038 else
10039 ld_shlibs=no
10040 fi
10041 ;;
10042 esac
10043
10044 if test no = "$ld_shlibs"; then
10045 runpath_var=
10046 hardcode_libdir_flag_spec=
10047 export_dynamic_flag_spec=
10048 whole_archive_flag_spec=
10049 fi
10050 else
10051 # PORTME fill in a description of your system's linker (not GNU ld)
10052 case $host_os in
10053 aix3*)
10054 allow_undefined_flag=unsupported
10055 always_export_symbols=yes
10056 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'
10057 # Note: this linker hardcodes the directories in LIBPATH if there
10058 # are no directories specified by -L.
10059 hardcode_minus_L=yes
10060 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10061 # Neither direct hardcoding nor static linking is supported with a
10062 # broken collect2.
10063 hardcode_direct=unsupported
10064 fi
10065 ;;
10066
10067 aix[4-9]*)
10068 if test ia64 = "$host_cpu"; then
10069 # On IA64, the linker does run time linking by default, so we don't
10070 # have to do anything special.
10071 aix_use_runtimelinking=no
10072 exp_sym_flag='-Bexport'
10073 no_entry_flag=
10074 else
10075 # If we're using GNU nm, then we don't want the "-C" option.
10076 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10077 # Without the "-l" option, or with the "-B" option, AIX nm treats
10078 # weak defined symbols like other global defined symbols, whereas
10079 # GNU nm marks them as "W".
10080 # While the 'weak' keyword is ignored in the Export File, we need
10081 # it in the Import File for the 'aix-soname' feature, so we have
10082 # to replace the "-B" option with "-P" for AIX nm.
10083 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10084 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'
10085 else
10086 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'
10087 fi
10088 aix_use_runtimelinking=no
10089
10090 # Test if we are trying to use run time linking or normal
10091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10092 # have runtime linking enabled, and use it for executables.
10093 # For shared libraries, we enable/disable runtime linking
10094 # depending on the kind of the shared library created -
10095 # when "with_aix_soname,aix_use_runtimelinking" is:
10096 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10097 # "aix,yes" lib.so shared, rtl:yes, for executables
10098 # lib.a static archive
10099 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10100 # lib.a(lib.so.V) shared, rtl:no, for executables
10101 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10102 # lib.a(lib.so.V) shared, rtl:no
10103 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10104 # lib.a static archive
10105 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10106 for ld_flag in $LDFLAGS; do
10107 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10108 aix_use_runtimelinking=yes
10109 break
10110 fi
10111 done
10112 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10113 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10114 # so we don't have lib.a shared libs to link our executables.
10115 # We have to force runtime linking in this case.
10116 aix_use_runtimelinking=yes
10117 LDFLAGS="$LDFLAGS -Wl,-brtl"
10118 fi
10119 ;;
10120 esac
10121
10122 exp_sym_flag='-bexport'
10123 no_entry_flag='-bnoentry'
10124 fi
10125
10126 # When large executables or shared objects are built, AIX ld can
10127 # have problems creating the table of contents. If linking a library
10128 # or program results in "error TOC overflow" add -mminimal-toc to
10129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10131
10132 archive_cmds=''
10133 hardcode_direct=yes
10134 hardcode_direct_absolute=yes
10135 hardcode_libdir_separator=':'
10136 link_all_deplibs=yes
10137 file_list_spec='$wl-f,'
10138 case $with_aix_soname,$aix_use_runtimelinking in
10139 aix,*) ;; # traditional, no import file
10140 svr4,* | *,yes) # use import file
10141 # The Import File defines what to hardcode.
10142 hardcode_direct=no
10143 hardcode_direct_absolute=no
10144 ;;
10145 esac
10146
10147 if test yes = "$GCC"; then
10148 case $host_os in aix4.[012]|aix4.[012].*)
10149 # We only want to do this on AIX 4.2 and lower, the check
10150 # below for broken collect2 doesn't work under 4.3+
10151 collect2name=`$CC -print-prog-name=collect2`
10152 if test -f "$collect2name" &&
10153 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10154 then
10155 # We have reworked collect2
10156 :
10157 else
10158 # We have old collect2
10159 hardcode_direct=unsupported
10160 # It fails to find uninstalled libraries when the uninstalled
10161 # path is not listed in the libpath. Setting hardcode_minus_L
10162 # to unsupported forces relinking
10163 hardcode_minus_L=yes
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 hardcode_libdir_separator=
10166 fi
10167 ;;
10168 esac
10169 shared_flag='-shared'
10170 if test yes = "$aix_use_runtimelinking"; then
10171 shared_flag="$shared_flag "'$wl-G'
10172 fi
10173 # Need to ensure runtime linking is disabled for the traditional
10174 # shared library, or the linker may eventually find shared libraries
10175 # /with/ Import File - we do not want to mix them.
10176 shared_flag_aix='-shared'
10177 shared_flag_svr4='-shared $wl-G'
10178 else
10179 # not using gcc
10180 if test ia64 = "$host_cpu"; then
10181 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10182 # chokes on -Wl,-G. The following line is correct:
10183 shared_flag='-G'
10184 else
10185 if test yes = "$aix_use_runtimelinking"; then
10186 shared_flag='$wl-G'
10187 else
10188 shared_flag='$wl-bM:SRE'
10189 fi
10190 shared_flag_aix='$wl-bM:SRE'
10191 shared_flag_svr4='$wl-G'
10192 fi
10193 fi
10194
10195 export_dynamic_flag_spec='$wl-bexpall'
10196 # It seems that -bexpall does not export symbols beginning with
10197 # underscore (_), so it is better to generate a list of symbols to export.
10198 always_export_symbols=yes
10199 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10200 # Warning - without using the other runtime loading flags (-brtl),
10201 # -berok will link without error, but may produce a broken library.
10202 allow_undefined_flag='-berok'
10203 # Determine the default libpath from the value encoded in an
10204 # empty executable.
10205 if test set = "${lt_cv_aix_libpath+set}"; then
10206 aix_libpath=$lt_cv_aix_libpath
10207 else
10208 if test ${lt_cv_aix_libpath_+y}
10209 then :
10210 printf %s "(cached) " >&6
10211 else $as_nop
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214
10215 int
10216 main (void)
10217 {
10218
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"
10224 then :
10225
10226 lt_aix_libpath_sed='
10227 /Import File Strings/,/^$/ {
10228 /^0/ {
10229 s/^0 *\([^ ]*\) *$/\1/
10230 p
10231 }
10232 }'
10233 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10234 # Check for a 64-bit object if we didn't find anything.
10235 if test -z "$lt_cv_aix_libpath_"; then
10236 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10237 fi
10238 fi
10239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10240 conftest$ac_exeext conftest.$ac_ext
10241 if test -z "$lt_cv_aix_libpath_"; then
10242 lt_cv_aix_libpath_=/usr/lib:/lib
10243 fi
10244
10245 fi
10246
10247 aix_libpath=$lt_cv_aix_libpath_
10248 fi
10249
10250 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10251 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
10252 else
10253 if test ia64 = "$host_cpu"; then
10254 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10255 allow_undefined_flag="-z nodefs"
10256 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"
10257 else
10258 # Determine the default libpath from the value encoded in an
10259 # empty executable.
10260 if test set = "${lt_cv_aix_libpath+set}"; then
10261 aix_libpath=$lt_cv_aix_libpath
10262 else
10263 if test ${lt_cv_aix_libpath_+y}
10264 then :
10265 printf %s "(cached) " >&6
10266 else $as_nop
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269
10270 int
10271 main (void)
10272 {
10273
10274 ;
10275 return 0;
10276 }
10277 _ACEOF
10278 if ac_fn_c_try_link "$LINENO"
10279 then :
10280
10281 lt_aix_libpath_sed='
10282 /Import File Strings/,/^$/ {
10283 /^0/ {
10284 s/^0 *\([^ ]*\) *$/\1/
10285 p
10286 }
10287 }'
10288 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10289 # Check for a 64-bit object if we didn't find anything.
10290 if test -z "$lt_cv_aix_libpath_"; then
10291 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10292 fi
10293 fi
10294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10295 conftest$ac_exeext conftest.$ac_ext
10296 if test -z "$lt_cv_aix_libpath_"; then
10297 lt_cv_aix_libpath_=/usr/lib:/lib
10298 fi
10299
10300 fi
10301
10302 aix_libpath=$lt_cv_aix_libpath_
10303 fi
10304
10305 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10306 # Warning - without using the other run time loading flags,
10307 # -berok will link without error, but may produce a broken library.
10308 no_undefined_flag=' $wl-bernotok'
10309 allow_undefined_flag=' $wl-berok'
10310 if test yes = "$with_gnu_ld"; then
10311 # We only use this code for GNU lds that support --whole-archive.
10312 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10313 else
10314 # Exported symbols can be pulled into shared objects from archives
10315 whole_archive_flag_spec='$convenience'
10316 fi
10317 archive_cmds_need_lc=yes
10318 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10319 # -brtl affects multiple linker settings, -berok does not and is overridden later
10320 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10321 if test svr4 != "$with_aix_soname"; then
10322 # This is similar to how AIX traditionally builds its shared libraries.
10323 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'
10324 fi
10325 if test aix != "$with_aix_soname"; then
10326 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'
10327 else
10328 # used by -dlpreopen to get the symbols
10329 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10330 fi
10331 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10332 fi
10333 fi
10334 ;;
10335
10336 amigaos*)
10337 case $host_cpu in
10338 powerpc)
10339 # see comment about AmigaOS4 .so support
10340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10341 archive_expsym_cmds=''
10342 ;;
10343 m68k)
10344 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)'
10345 hardcode_libdir_flag_spec='-L$libdir'
10346 hardcode_minus_L=yes
10347 ;;
10348 esac
10349 ;;
10350
10351 bsdi[45]*)
10352 export_dynamic_flag_spec=-rdynamic
10353 ;;
10354
10355 cygwin* | mingw* | pw32* | cegcc*)
10356 # When not using gcc, we currently assume that we are using
10357 # Microsoft Visual C++ or Intel C++ Compiler.
10358 # hardcode_libdir_flag_spec is actually meaningless, as there is
10359 # no search path for DLLs.
10360 case $cc_basename in
10361 cl* | icl*)
10362 # Native MSVC or ICC
10363 hardcode_libdir_flag_spec=' '
10364 allow_undefined_flag=unsupported
10365 always_export_symbols=yes
10366 file_list_spec='@'
10367 # Tell ltmain to make .lib files, not .a files.
10368 libext=lib
10369 # Tell ltmain to make .dll files, not .so files.
10370 shrext_cmds=.dll
10371 # FIXME: Setting linknames here is a bad hack.
10372 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10373 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10374 cp "$export_symbols" "$output_objdir/$soname.def";
10375 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10376 else
10377 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10378 fi~
10379 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10380 linknames='
10381 # The linker will not automatically build a static lib if we build a DLL.
10382 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10383 enable_shared_with_static_runtimes=yes
10384 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10386 # Don't use ranlib
10387 old_postinstall_cmds='chmod 644 $oldlib'
10388 postlink_cmds='lt_outputfile="@OUTPUT@"~
10389 lt_tool_outputfile="@TOOL_OUTPUT@"~
10390 case $lt_outputfile in
10391 *.exe|*.EXE) ;;
10392 *)
10393 lt_outputfile=$lt_outputfile.exe
10394 lt_tool_outputfile=$lt_tool_outputfile.exe
10395 ;;
10396 esac~
10397 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10398 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10399 $RM "$lt_outputfile.manifest";
10400 fi'
10401 ;;
10402 *)
10403 # Assume MSVC and ICC wrapper
10404 hardcode_libdir_flag_spec=' '
10405 allow_undefined_flag=unsupported
10406 # Tell ltmain to make .lib files, not .a files.
10407 libext=lib
10408 # Tell ltmain to make .dll files, not .so files.
10409 shrext_cmds=.dll
10410 # FIXME: Setting linknames here is a bad hack.
10411 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10412 # The linker will automatically build a .lib file if we build a DLL.
10413 old_archive_from_new_cmds='true'
10414 # FIXME: Should let the user specify the lib program.
10415 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10416 enable_shared_with_static_runtimes=yes
10417 ;;
10418 esac
10419 ;;
10420
10421 darwin* | rhapsody*)
10422
10423
10424 archive_cmds_need_lc=no
10425 hardcode_direct=no
10426 hardcode_automatic=yes
10427 hardcode_shlibpath_var=unsupported
10428 if test yes = "$lt_cv_ld_force_load"; then
10429 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\"`'
10430
10431 else
10432 whole_archive_flag_spec=''
10433 fi
10434 link_all_deplibs=yes
10435 allow_undefined_flag=$_lt_dar_allow_undefined
10436 case $cc_basename in
10437 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10438 *) _lt_dar_can_shared=$GCC ;;
10439 esac
10440 if test yes = "$_lt_dar_can_shared"; then
10441 output_verbose_link_cmd=func_echo_all
10442 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10443 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10444 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"
10445 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"
10446
10447 else
10448 ld_shlibs=no
10449 fi
10450
10451 ;;
10452
10453 dgux*)
10454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455 hardcode_libdir_flag_spec='-L$libdir'
10456 hardcode_shlibpath_var=no
10457 ;;
10458
10459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10460 # support. Future versions do this automatically, but an explicit c++rt0.o
10461 # does not break anything, and helps significantly (at the cost of a little
10462 # extra space).
10463 freebsd2.2*)
10464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10465 hardcode_libdir_flag_spec='-R$libdir'
10466 hardcode_direct=yes
10467 hardcode_shlibpath_var=no
10468 ;;
10469
10470 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10471 freebsd2.*)
10472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10473 hardcode_direct=yes
10474 hardcode_minus_L=yes
10475 hardcode_shlibpath_var=no
10476 ;;
10477
10478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10479 freebsd* | dragonfly* | midnightbsd*)
10480 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10481 hardcode_libdir_flag_spec='-R$libdir'
10482 hardcode_direct=yes
10483 hardcode_shlibpath_var=no
10484 ;;
10485
10486 hpux9*)
10487 if test yes = "$GCC"; then
10488 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'
10489 else
10490 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'
10491 fi
10492 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10493 hardcode_libdir_separator=:
10494 hardcode_direct=yes
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 export_dynamic_flag_spec='$wl-E'
10500 ;;
10501
10502 hpux10*)
10503 if test yes,no = "$GCC,$with_gnu_ld"; then
10504 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10505 else
10506 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10507 fi
10508 if test no = "$with_gnu_ld"; then
10509 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10510 hardcode_libdir_separator=:
10511 hardcode_direct=yes
10512 hardcode_direct_absolute=yes
10513 export_dynamic_flag_spec='$wl-E'
10514 # hardcode_minus_L: Not really in the search PATH,
10515 # but as the default location of the library.
10516 hardcode_minus_L=yes
10517 fi
10518 ;;
10519
10520 hpux11*)
10521 if test yes,no = "$GCC,$with_gnu_ld"; then
10522 case $host_cpu in
10523 hppa*64*)
10524 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10525 ;;
10526 ia64*)
10527 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10528 ;;
10529 *)
10530 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10531 ;;
10532 esac
10533 else
10534 case $host_cpu in
10535 hppa*64*)
10536 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10537 ;;
10538 ia64*)
10539 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10540 ;;
10541 *)
10542
10543 # Older versions of the 11.00 compiler do not understand -b yet
10544 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10546 printf %s "checking if $CC understands -b... " >&6; }
10547 if test ${lt_cv_prog_compiler__b+y}
10548 then :
10549 printf %s "(cached) " >&6
10550 else $as_nop
10551 lt_cv_prog_compiler__b=no
10552 save_LDFLAGS=$LDFLAGS
10553 LDFLAGS="$LDFLAGS -b"
10554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10556 # The linker can only warn and ignore the option if not recognized
10557 # So say no if there are warnings
10558 if test -s conftest.err; then
10559 # Append any errors to the config.log.
10560 cat conftest.err 1>&5
10561 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10563 if diff conftest.exp conftest.er2 >/dev/null; then
10564 lt_cv_prog_compiler__b=yes
10565 fi
10566 else
10567 lt_cv_prog_compiler__b=yes
10568 fi
10569 fi
10570 $RM -r conftest*
10571 LDFLAGS=$save_LDFLAGS
10572
10573 fi
10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10575 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10576
10577 if test yes = "$lt_cv_prog_compiler__b"; then
10578 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10579 else
10580 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10581 fi
10582
10583 ;;
10584 esac
10585 fi
10586 if test no = "$with_gnu_ld"; then
10587 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10588 hardcode_libdir_separator=:
10589
10590 case $host_cpu in
10591 hppa*64*|ia64*)
10592 hardcode_direct=no
10593 hardcode_shlibpath_var=no
10594 ;;
10595 *)
10596 hardcode_direct=yes
10597 hardcode_direct_absolute=yes
10598 export_dynamic_flag_spec='$wl-E'
10599
10600 # hardcode_minus_L: Not really in the search PATH,
10601 # but as the default location of the library.
10602 hardcode_minus_L=yes
10603 ;;
10604 esac
10605 fi
10606 ;;
10607
10608 irix5* | irix6* | nonstopux*)
10609 if test yes = "$GCC"; then
10610 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'
10611 # Try to use the -exported_symbol ld option, if it does not
10612 # work, assume that -exports_file does not work either and
10613 # implicitly export all symbols.
10614 # This should be the same for all languages, so no per-tag cache variable.
10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10616 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10617 if test ${lt_cv_irix_exported_symbol+y}
10618 then :
10619 printf %s "(cached) " >&6
10620 else $as_nop
10621 save_LDFLAGS=$LDFLAGS
10622 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625 int foo (void) { return 0; }
10626 _ACEOF
10627 if ac_fn_c_try_link "$LINENO"
10628 then :
10629 lt_cv_irix_exported_symbol=yes
10630 else $as_nop
10631 lt_cv_irix_exported_symbol=no
10632 fi
10633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LDFLAGS=$save_LDFLAGS
10636 fi
10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10638 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10639 if test yes = "$lt_cv_irix_exported_symbol"; then
10640 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'
10641 fi
10642 else
10643 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'
10644 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'
10645 fi
10646 archive_cmds_need_lc='no'
10647 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10648 hardcode_libdir_separator=:
10649 inherit_rpath=yes
10650 link_all_deplibs=yes
10651 ;;
10652
10653 linux*)
10654 case $cc_basename in
10655 tcc*)
10656 # Fabrice Bellard et al's Tiny C Compiler
10657 ld_shlibs=yes
10658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10659 ;;
10660 esac
10661 ;;
10662
10663 netbsd*)
10664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10666 else
10667 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10668 fi
10669 hardcode_libdir_flag_spec='-R$libdir'
10670 hardcode_direct=yes
10671 hardcode_shlibpath_var=no
10672 ;;
10673
10674 newsos6)
10675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10676 hardcode_direct=yes
10677 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10678 hardcode_libdir_separator=:
10679 hardcode_shlibpath_var=no
10680 ;;
10681
10682 *nto* | *qnx*)
10683 ;;
10684
10685 openbsd* | bitrig*)
10686 if test -f /usr/libexec/ld.so; then
10687 hardcode_direct=yes
10688 hardcode_shlibpath_var=no
10689 hardcode_direct_absolute=yes
10690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10691 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10692 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10693 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10694 export_dynamic_flag_spec='$wl-E'
10695 else
10696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10697 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10698 fi
10699 else
10700 ld_shlibs=no
10701 fi
10702 ;;
10703
10704 os2*)
10705 hardcode_libdir_flag_spec='-L$libdir'
10706 hardcode_minus_L=yes
10707 allow_undefined_flag=unsupported
10708 shrext_cmds=.dll
10709 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10710 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10711 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10712 $ECHO EXPORTS >> $output_objdir/$libname.def~
10713 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10714 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10715 emximp -o $lib $output_objdir/$libname.def'
10716 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10717 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10718 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10719 $ECHO EXPORTS >> $output_objdir/$libname.def~
10720 prefix_cmds="$SED"~
10721 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10722 prefix_cmds="$prefix_cmds -e 1d";
10723 fi~
10724 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10725 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10726 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10727 emximp -o $lib $output_objdir/$libname.def'
10728 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10729 enable_shared_with_static_runtimes=yes
10730 file_list_spec='@'
10731 ;;
10732
10733 osf3*)
10734 if test yes = "$GCC"; then
10735 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10736 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'
10737 else
10738 allow_undefined_flag=' -expect_unresolved \*'
10739 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'
10740 fi
10741 archive_cmds_need_lc='no'
10742 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10743 hardcode_libdir_separator=:
10744 ;;
10745
10746 osf4* | osf5*) # as osf3* with the addition of -msym flag
10747 if test yes = "$GCC"; then
10748 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10749 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'
10750 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10751 else
10752 allow_undefined_flag=' -expect_unresolved \*'
10753 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'
10754 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~
10755 $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'
10756
10757 # Both c and cxx compiler support -rpath directly
10758 hardcode_libdir_flag_spec='-rpath $libdir'
10759 fi
10760 archive_cmds_need_lc='no'
10761 hardcode_libdir_separator=:
10762 ;;
10763
10764 solaris*)
10765 no_undefined_flag=' -z defs'
10766 if test yes = "$GCC"; then
10767 wlarc='$wl'
10768 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10770 $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'
10771 else
10772 case `$CC -V 2>&1` in
10773 *"Compilers 5.0"*)
10774 wlarc=''
10775 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10776 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10777 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10778 ;;
10779 *)
10780 wlarc='$wl'
10781 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10782 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10783 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10784 ;;
10785 esac
10786 fi
10787 hardcode_libdir_flag_spec='-R$libdir'
10788 hardcode_shlibpath_var=no
10789 case $host_os in
10790 solaris2.[0-5] | solaris2.[0-5].*) ;;
10791 *)
10792 # The compiler driver will combine and reorder linker options,
10793 # but understands '-z linker_flag'. GCC discards it without '$wl',
10794 # but is careful enough not to reorder.
10795 # Supported since Solaris 2.6 (maybe 2.5.1?)
10796 if test yes = "$GCC"; then
10797 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10798 else
10799 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10800 fi
10801 ;;
10802 esac
10803 link_all_deplibs=yes
10804 ;;
10805
10806 sunos4*)
10807 if test sequent = "$host_vendor"; then
10808 # Use $CC to link under sequent, because it throws in some extra .o
10809 # files that make .init and .fini sections work.
10810 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10811 else
10812 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10813 fi
10814 hardcode_libdir_flag_spec='-L$libdir'
10815 hardcode_direct=yes
10816 hardcode_minus_L=yes
10817 hardcode_shlibpath_var=no
10818 ;;
10819
10820 sysv4)
10821 case $host_vendor in
10822 sni)
10823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10824 hardcode_direct=yes # is this really true???
10825 ;;
10826 siemens)
10827 ## LD is ld it makes a PLAMLIB
10828 ## CC just makes a GrossModule.
10829 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10830 reload_cmds='$CC -r -o $output$reload_objs'
10831 hardcode_direct=no
10832 ;;
10833 motorola)
10834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10836 ;;
10837 esac
10838 runpath_var='LD_RUN_PATH'
10839 hardcode_shlibpath_var=no
10840 ;;
10841
10842 sysv4.3*)
10843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_shlibpath_var=no
10845 export_dynamic_flag_spec='-Bexport'
10846 ;;
10847
10848 sysv4*MP*)
10849 if test -d /usr/nec; then
10850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10851 hardcode_shlibpath_var=no
10852 runpath_var=LD_RUN_PATH
10853 hardcode_runpath_var=yes
10854 ld_shlibs=yes
10855 fi
10856 ;;
10857
10858 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10859 no_undefined_flag='$wl-z,text'
10860 archive_cmds_need_lc=no
10861 hardcode_shlibpath_var=no
10862 runpath_var='LD_RUN_PATH'
10863
10864 if test yes = "$GCC"; then
10865 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10866 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10867 else
10868 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 fi
10871 ;;
10872
10873 sysv5* | sco3.2v5* | sco5v6*)
10874 # Note: We CANNOT use -z defs as we might desire, because we do not
10875 # link with -lc, and that would cause any symbols used from libc to
10876 # always be unresolved, which means just about no library would
10877 # ever link correctly. If we're not using GNU ld we use -z text
10878 # though, which does catch some bad symbols but isn't as heavy-handed
10879 # as -z defs.
10880 no_undefined_flag='$wl-z,text'
10881 allow_undefined_flag='$wl-z,nodefs'
10882 archive_cmds_need_lc=no
10883 hardcode_shlibpath_var=no
10884 hardcode_libdir_flag_spec='$wl-R,$libdir'
10885 hardcode_libdir_separator=':'
10886 link_all_deplibs=yes
10887 export_dynamic_flag_spec='$wl-Bexport'
10888 runpath_var='LD_RUN_PATH'
10889
10890 if test yes = "$GCC"; then
10891 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10892 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10893 else
10894 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 fi
10897 ;;
10898
10899 uts4*)
10900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_libdir_flag_spec='-L$libdir'
10902 hardcode_shlibpath_var=no
10903 ;;
10904
10905 *)
10906 ld_shlibs=no
10907 ;;
10908 esac
10909
10910 if test sni = "$host_vendor"; then
10911 case $host in
10912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10913 export_dynamic_flag_spec='$wl-Blargedynsym'
10914 ;;
10915 esac
10916 fi
10917 fi
10918
10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10920 printf "%s\n" "$ld_shlibs" >&6; }
10921 test no = "$ld_shlibs" && can_build_shared=no
10922
10923 with_gnu_ld=$with_gnu_ld
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939 #
10940 # Do we need to explicitly link libc?
10941 #
10942 case "x$archive_cmds_need_lc" in
10943 x|xyes)
10944 # Assume -lc should be added
10945 archive_cmds_need_lc=yes
10946
10947 if test yes,yes = "$GCC,$enable_shared"; then
10948 case $archive_cmds in
10949 *'~'*)
10950 # FIXME: we may have to deal with multi-command sequences.
10951 ;;
10952 '$CC '*)
10953 # Test whether the compiler implicitly links with -lc since on some
10954 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10955 # to ld, don't add -lc before -lgcc.
10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10957 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10958 if test ${lt_cv_archive_cmds_need_lc+y}
10959 then :
10960 printf %s "(cached) " >&6
10961 else $as_nop
10962 $RM conftest*
10963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10964
10965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10966 (eval $ac_compile) 2>&5
10967 ac_status=$?
10968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969 test $ac_status = 0; } 2>conftest.err; then
10970 soname=conftest
10971 lib=conftest
10972 libobjs=conftest.$ac_objext
10973 deplibs=
10974 wl=$lt_prog_compiler_wl
10975 pic_flag=$lt_prog_compiler_pic
10976 compiler_flags=-v
10977 linker_flags=-v
10978 verstring=
10979 output_objdir=.
10980 libname=conftest
10981 lt_save_allow_undefined_flag=$allow_undefined_flag
10982 allow_undefined_flag=
10983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10984 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10985 ac_status=$?
10986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10987 test $ac_status = 0; }
10988 then
10989 lt_cv_archive_cmds_need_lc=no
10990 else
10991 lt_cv_archive_cmds_need_lc=yes
10992 fi
10993 allow_undefined_flag=$lt_save_allow_undefined_flag
10994 else
10995 cat conftest.err 1>&5
10996 fi
10997 $RM conftest*
10998
10999 fi
11000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11001 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11002 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11003 ;;
11004 esac
11005 fi
11006 ;;
11007 esac
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
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11161 printf %s "checking dynamic linker characteristics... " >&6; }
11162
11163 if test yes = "$GCC"; then
11164 case $host_os in
11165 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11166 *) lt_awk_arg='/^libraries:/' ;;
11167 esac
11168 case $host_os in
11169 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11170 *) lt_sed_strip_eq='s|=/|/|g' ;;
11171 esac
11172 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11173 case $lt_search_path_spec in
11174 *\;*)
11175 # if the path contains ";" then we assume it to be the separator
11176 # otherwise default to the standard path separator (i.e. ":") - it is
11177 # assumed that no part of a normal pathname contains ";" but that should
11178 # okay in the real world where ";" in dirpaths is itself problematic.
11179 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11180 ;;
11181 *)
11182 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11183 ;;
11184 esac
11185 # Ok, now we have the path, separated by spaces, we can step through it
11186 # and add multilib dir if necessary...
11187 lt_tmp_lt_search_path_spec=
11188 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11189 # ...but if some path component already ends with the multilib dir we assume
11190 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11191 case "$lt_multi_os_dir; $lt_search_path_spec " in
11192 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11193 lt_multi_os_dir=
11194 ;;
11195 esac
11196 for lt_sys_path in $lt_search_path_spec; do
11197 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11198 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11199 elif test -n "$lt_multi_os_dir"; then
11200 test -d "$lt_sys_path" && \
11201 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11202 fi
11203 done
11204 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11205 BEGIN {RS = " "; FS = "/|\n";} {
11206 lt_foo = "";
11207 lt_count = 0;
11208 for (lt_i = NF; lt_i > 0; lt_i--) {
11209 if ($lt_i != "" && $lt_i != ".") {
11210 if ($lt_i == "..") {
11211 lt_count++;
11212 } else {
11213 if (lt_count == 0) {
11214 lt_foo = "/" $lt_i lt_foo;
11215 } else {
11216 lt_count--;
11217 }
11218 }
11219 }
11220 }
11221 if (lt_foo != "") { lt_freq[lt_foo]++; }
11222 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11223 }'`
11224 # AWK program above erroneously prepends '/' to C:/dos/paths
11225 # for these hosts.
11226 case $host_os in
11227 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11228 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11229 esac
11230 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11231 else
11232 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11233 fi
11234 library_names_spec=
11235 libname_spec='lib$name'
11236 soname_spec=
11237 shrext_cmds=.so
11238 postinstall_cmds=
11239 postuninstall_cmds=
11240 finish_cmds=
11241 finish_eval=
11242 shlibpath_var=
11243 shlibpath_overrides_runpath=unknown
11244 version_type=none
11245 dynamic_linker="$host_os ld.so"
11246 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11247 need_lib_prefix=unknown
11248 hardcode_into_libs=no
11249
11250 # when you set need_version to no, make sure it does not cause -set_version
11251 # flags to be left without arguments
11252 need_version=unknown
11253
11254
11255
11256 case $host_os in
11257 aix3*)
11258 version_type=linux # correct to gnu/linux during the next big refactor
11259 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11260 shlibpath_var=LIBPATH
11261
11262 # AIX 3 has no versioning support, so we append a major version to the name.
11263 soname_spec='$libname$release$shared_ext$major'
11264 ;;
11265
11266 aix[4-9]*)
11267 version_type=linux # correct to gnu/linux during the next big refactor
11268 need_lib_prefix=no
11269 need_version=no
11270 hardcode_into_libs=yes
11271 if test ia64 = "$host_cpu"; then
11272 # AIX 5 supports IA64
11273 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 else
11276 # With GCC up to 2.95.x, collect2 would create an import file
11277 # for dependence libraries. The import file would start with
11278 # the line '#! .'. This would cause the generated library to
11279 # depend on '.', always an invalid library. This was fixed in
11280 # development snapshots of GCC prior to 3.0.
11281 case $host_os in
11282 aix4 | aix4.[01] | aix4.[01].*)
11283 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11284 echo ' yes '
11285 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11286 :
11287 else
11288 can_build_shared=no
11289 fi
11290 ;;
11291 esac
11292 # Using Import Files as archive members, it is possible to support
11293 # filename-based versioning of shared library archives on AIX. While
11294 # this would work for both with and without runtime linking, it will
11295 # prevent static linking of such archives. So we do filename-based
11296 # shared library versioning with .so extension only, which is used
11297 # when both runtime linking and shared linking is enabled.
11298 # Unfortunately, runtime linking may impact performance, so we do
11299 # not want this to be the default eventually. Also, we use the
11300 # versioned .so libs for executables only if there is the -brtl
11301 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11302 # To allow for filename-based versioning support, we need to create
11303 # libNAME.so.V as an archive file, containing:
11304 # *) an Import File, referring to the versioned filename of the
11305 # archive as well as the shared archive member, telling the
11306 # bitwidth (32 or 64) of that shared object, and providing the
11307 # list of exported symbols of that shared object, eventually
11308 # decorated with the 'weak' keyword
11309 # *) the shared object with the F_LOADONLY flag set, to really avoid
11310 # it being seen by the linker.
11311 # At run time we better use the real file rather than another symlink,
11312 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11313
11314 case $with_aix_soname,$aix_use_runtimelinking in
11315 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11316 # soname into executable. Probably we can add versioning support to
11317 # collect2, so additional links can be useful in future.
11318 aix,yes) # traditional libtool
11319 dynamic_linker='AIX unversionable lib.so'
11320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11321 # instead of lib<name>.a to let people know that these are not
11322 # typical AIX shared libraries.
11323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11324 ;;
11325 aix,no) # traditional AIX only
11326 dynamic_linker='AIX lib.a(lib.so.V)'
11327 # We preserve .a as extension for shared libraries through AIX4.2
11328 # and later when we are not doing run time linking.
11329 library_names_spec='$libname$release.a $libname.a'
11330 soname_spec='$libname$release$shared_ext$major'
11331 ;;
11332 svr4,*) # full svr4 only
11333 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11334 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11335 # We do not specify a path in Import Files, so LIBPATH fires.
11336 shlibpath_overrides_runpath=yes
11337 ;;
11338 *,yes) # both, prefer svr4
11339 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11340 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11341 # unpreferred sharedlib libNAME.a needs extra handling
11342 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"'
11343 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"'
11344 # We do not specify a path in Import Files, so LIBPATH fires.
11345 shlibpath_overrides_runpath=yes
11346 ;;
11347 *,no) # both, prefer aix
11348 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11349 library_names_spec='$libname$release.a $libname.a'
11350 soname_spec='$libname$release$shared_ext$major'
11351 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11352 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)'
11353 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"'
11354 ;;
11355 esac
11356 shlibpath_var=LIBPATH
11357 fi
11358 ;;
11359
11360 amigaos*)
11361 case $host_cpu in
11362 powerpc)
11363 # Since July 2007 AmigaOS4 officially supports .so libraries.
11364 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11366 ;;
11367 m68k)
11368 library_names_spec='$libname.ixlibrary $libname.a'
11369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11370 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'
11371 ;;
11372 esac
11373 ;;
11374
11375 beos*)
11376 library_names_spec='$libname$shared_ext'
11377 dynamic_linker="$host_os ld.so"
11378 shlibpath_var=LIBRARY_PATH
11379 ;;
11380
11381 bsdi[45]*)
11382 version_type=linux # correct to gnu/linux during the next big refactor
11383 need_version=no
11384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11385 soname_spec='$libname$release$shared_ext$major'
11386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11390 # the default ld.so.conf also contains /usr/contrib/lib and
11391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11392 # libtool to hard-code these into programs
11393 ;;
11394
11395 cygwin* | mingw* | pw32* | cegcc*)
11396 version_type=windows
11397 shrext_cmds=.dll
11398 need_version=no
11399 need_lib_prefix=no
11400
11401 case $GCC,$cc_basename in
11402 yes,*)
11403 # gcc
11404 library_names_spec='$libname.dll.a'
11405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11406 postinstall_cmds='base_file=`basename \$file`~
11407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11408 dldir=$destdir/`dirname \$dlpath`~
11409 test -d \$dldir || mkdir -p \$dldir~
11410 $install_prog $dir/$dlname \$dldir/$dlname~
11411 chmod a+x \$dldir/$dlname~
11412 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11413 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11414 fi'
11415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11416 dlpath=$dir/\$dldll~
11417 $RM \$dlpath'
11418 shlibpath_overrides_runpath=yes
11419
11420 case $host_os in
11421 cygwin*)
11422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11423 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11424
11425 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11426 ;;
11427 mingw* | cegcc*)
11428 # MinGW DLLs use traditional 'lib' prefix
11429 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11430 ;;
11431 pw32*)
11432 # pw32 DLLs use 'pw' prefix rather than 'lib'
11433 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11434 ;;
11435 esac
11436 dynamic_linker='Win32 ld.exe'
11437 ;;
11438
11439 *,cl* | *,icl*)
11440 # Native MSVC or ICC
11441 libname_spec='$name'
11442 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11443 library_names_spec='$libname.dll.lib'
11444
11445 case $build_os in
11446 mingw*)
11447 sys_lib_search_path_spec=
11448 lt_save_ifs=$IFS
11449 IFS=';'
11450 for lt_path in $LIB
11451 do
11452 IFS=$lt_save_ifs
11453 # Let DOS variable expansion print the short 8.3 style file name.
11454 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11455 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11456 done
11457 IFS=$lt_save_ifs
11458 # Convert to MSYS style.
11459 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11460 ;;
11461 cygwin*)
11462 # Convert to unix form, then to dos form, then back to unix form
11463 # but this time dos style (no spaces!) so that the unix form looks
11464 # like /cygdrive/c/PROGRA~1:/cygdr...
11465 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11466 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11467 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11468 ;;
11469 *)
11470 sys_lib_search_path_spec=$LIB
11471 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11472 # It is most probably a Windows format PATH.
11473 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11474 else
11475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11476 fi
11477 # FIXME: find the short name or the path components, as spaces are
11478 # common. (e.g. "Program Files" -> "PROGRA~1")
11479 ;;
11480 esac
11481
11482 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11483 postinstall_cmds='base_file=`basename \$file`~
11484 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11485 dldir=$destdir/`dirname \$dlpath`~
11486 test -d \$dldir || mkdir -p \$dldir~
11487 $install_prog $dir/$dlname \$dldir/$dlname'
11488 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11489 dlpath=$dir/\$dldll~
11490 $RM \$dlpath'
11491 shlibpath_overrides_runpath=yes
11492 dynamic_linker='Win32 link.exe'
11493 ;;
11494
11495 *)
11496 # Assume MSVC and ICC wrapper
11497 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11498 dynamic_linker='Win32 ld.exe'
11499 ;;
11500 esac
11501 # FIXME: first we should search . and the directory the executable is in
11502 shlibpath_var=PATH
11503 ;;
11504
11505 darwin* | rhapsody*)
11506 dynamic_linker="$host_os dyld"
11507 version_type=darwin
11508 need_lib_prefix=no
11509 need_version=no
11510 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11511 soname_spec='$libname$release$major$shared_ext'
11512 shlibpath_overrides_runpath=yes
11513 shlibpath_var=DYLD_LIBRARY_PATH
11514 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11515
11516 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11518 ;;
11519
11520 dgux*)
11521 version_type=linux # correct to gnu/linux during the next big refactor
11522 need_lib_prefix=no
11523 need_version=no
11524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525 soname_spec='$libname$release$shared_ext$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 ;;
11528
11529 freebsd* | dragonfly* | midnightbsd*)
11530 # DragonFly does not have aout. When/if they implement a new
11531 # versioning mechanism, adjust this.
11532 if test -x /usr/bin/objformat; then
11533 objformat=`/usr/bin/objformat`
11534 else
11535 case $host_os in
11536 freebsd[23].*) objformat=aout ;;
11537 *) objformat=elf ;;
11538 esac
11539 fi
11540 version_type=freebsd-$objformat
11541 case $version_type in
11542 freebsd-elf*)
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544 soname_spec='$libname$release$shared_ext$major'
11545 need_version=no
11546 need_lib_prefix=no
11547 ;;
11548 freebsd-*)
11549 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11550 need_version=yes
11551 ;;
11552 esac
11553 shlibpath_var=LD_LIBRARY_PATH
11554 case $host_os in
11555 freebsd2.*)
11556 shlibpath_overrides_runpath=yes
11557 ;;
11558 freebsd3.[01]* | freebsdelf3.[01]*)
11559 shlibpath_overrides_runpath=yes
11560 hardcode_into_libs=yes
11561 ;;
11562 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11563 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11564 shlibpath_overrides_runpath=no
11565 hardcode_into_libs=yes
11566 ;;
11567 *) # from 4.6 on, and DragonFly
11568 shlibpath_overrides_runpath=yes
11569 hardcode_into_libs=yes
11570 ;;
11571 esac
11572 ;;
11573
11574 haiku*)
11575 version_type=linux # correct to gnu/linux during the next big refactor
11576 need_lib_prefix=no
11577 need_version=no
11578 dynamic_linker="$host_os runtime_loader"
11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580 soname_spec='$libname$release$shared_ext$major'
11581 shlibpath_var=LIBRARY_PATH
11582 shlibpath_overrides_runpath=no
11583 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11584 hardcode_into_libs=yes
11585 ;;
11586
11587 hpux9* | hpux10* | hpux11*)
11588 # Give a soname corresponding to the major version so that dld.sl refuses to
11589 # link against other versions.
11590 version_type=sunos
11591 need_lib_prefix=no
11592 need_version=no
11593 case $host_cpu in
11594 ia64*)
11595 shrext_cmds='.so'
11596 hardcode_into_libs=yes
11597 dynamic_linker="$host_os dld.so"
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11601 soname_spec='$libname$release$shared_ext$major'
11602 if test 32 = "$HPUX_IA64_MODE"; then
11603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11604 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11605 else
11606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11607 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11608 fi
11609 ;;
11610 hppa*64*)
11611 shrext_cmds='.sl'
11612 hardcode_into_libs=yes
11613 dynamic_linker="$host_os dld.sl"
11614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11617 soname_spec='$libname$release$shared_ext$major'
11618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11620 ;;
11621 *)
11622 shrext_cmds='.sl'
11623 dynamic_linker="$host_os dld.sl"
11624 shlibpath_var=SHLIB_PATH
11625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11627 soname_spec='$libname$release$shared_ext$major'
11628 ;;
11629 esac
11630 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11631 postinstall_cmds='chmod 555 $lib'
11632 # or fails outright, so override atomically:
11633 install_override_mode=555
11634 ;;
11635
11636 interix[3-9]*)
11637 version_type=linux # correct to gnu/linux during the next big refactor
11638 need_lib_prefix=no
11639 need_version=no
11640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641 soname_spec='$libname$release$shared_ext$major'
11642 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 shlibpath_overrides_runpath=no
11645 hardcode_into_libs=yes
11646 ;;
11647
11648 irix5* | irix6* | nonstopux*)
11649 case $host_os in
11650 nonstopux*) version_type=nonstopux ;;
11651 *)
11652 if test yes = "$lt_cv_prog_gnu_ld"; then
11653 version_type=linux # correct to gnu/linux during the next big refactor
11654 else
11655 version_type=irix
11656 fi ;;
11657 esac
11658 need_lib_prefix=no
11659 need_version=no
11660 soname_spec='$libname$release$shared_ext$major'
11661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11662 case $host_os in
11663 irix5* | nonstopux*)
11664 libsuff= shlibsuff=
11665 ;;
11666 *)
11667 case $LD in # libtool.m4 will add one of these switches to LD
11668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11669 libsuff= shlibsuff= libmagic=32-bit;;
11670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11671 libsuff=32 shlibsuff=N32 libmagic=N32;;
11672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11674 *) libsuff= shlibsuff= libmagic=never-match;;
11675 esac
11676 ;;
11677 esac
11678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11679 shlibpath_overrides_runpath=no
11680 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11681 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11682 hardcode_into_libs=yes
11683 ;;
11684
11685 # No shared lib support for Linux oldld, aout, or coff.
11686 linux*oldld* | linux*aout* | linux*coff*)
11687 dynamic_linker=no
11688 ;;
11689
11690 linux*android*)
11691 version_type=none # Android doesn't support versioned libraries.
11692 need_lib_prefix=no
11693 need_version=no
11694 library_names_spec='$libname$release$shared_ext'
11695 soname_spec='$libname$release$shared_ext'
11696 finish_cmds=
11697 shlibpath_var=LD_LIBRARY_PATH
11698 shlibpath_overrides_runpath=yes
11699
11700 # This implies no fast_install, which is unacceptable.
11701 # Some rework will be needed to allow for fast_install
11702 # before this can be enabled.
11703 hardcode_into_libs=yes
11704
11705 dynamic_linker='Android linker'
11706 # Don't embed -rpath directories since the linker doesn't support them.
11707 hardcode_libdir_flag_spec='-L$libdir'
11708 ;;
11709
11710 # This must be glibc/ELF.
11711 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11712 version_type=linux # correct to gnu/linux during the next big refactor
11713 need_lib_prefix=no
11714 need_version=no
11715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11716 soname_spec='$libname$release$shared_ext$major'
11717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=no
11720
11721 # Some binutils ld are patched to set DT_RUNPATH
11722 if test ${lt_cv_shlibpath_overrides_runpath+y}
11723 then :
11724 printf %s "(cached) " >&6
11725 else $as_nop
11726 lt_cv_shlibpath_overrides_runpath=no
11727 save_LDFLAGS=$LDFLAGS
11728 save_libdir=$libdir
11729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733
11734 int
11735 main (void)
11736 {
11737
11738 ;
11739 return 0;
11740 }
11741 _ACEOF
11742 if ac_fn_c_try_link "$LINENO"
11743 then :
11744 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11745 then :
11746 lt_cv_shlibpath_overrides_runpath=yes
11747 fi
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11750 conftest$ac_exeext conftest.$ac_ext
11751 LDFLAGS=$save_LDFLAGS
11752 libdir=$save_libdir
11753
11754 fi
11755
11756 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11757
11758 # This implies no fast_install, which is unacceptable.
11759 # Some rework will be needed to allow for fast_install
11760 # before this can be enabled.
11761 hardcode_into_libs=yes
11762
11763 # Ideally, we could use ldconfig to report *all* directores which are
11764 # searched for libraries, however this is still not possible. Aside from not
11765 # being certain /sbin/ldconfig is available, command
11766 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11767 # even though it is searched at run-time. Try to do the best guess by
11768 # appending ld.so.conf contents (and includes) to the search path.
11769 if test -f /etc/ld.so.conf; then
11770 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' ' '`
11771 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11772 fi
11773
11774 # We used to test for /lib/ld.so.1 and disable shared libraries on
11775 # powerpc, because MkLinux only supported shared libraries with the
11776 # GNU dynamic linker. Since this was broken with cross compilers,
11777 # most powerpc-linux boxes support dynamic linking these days and
11778 # people can always --disable-shared, the test was removed, and we
11779 # assume the GNU/Linux dynamic linker is in use.
11780 dynamic_linker='GNU/Linux ld.so'
11781 ;;
11782
11783 netbsd*)
11784 version_type=sunos
11785 need_lib_prefix=no
11786 need_version=no
11787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11788 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11790 dynamic_linker='NetBSD (a.out) ld.so'
11791 else
11792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11793 soname_spec='$libname$release$shared_ext$major'
11794 dynamic_linker='NetBSD ld.elf_so'
11795 fi
11796 shlibpath_var=LD_LIBRARY_PATH
11797 shlibpath_overrides_runpath=yes
11798 hardcode_into_libs=yes
11799 ;;
11800
11801 newsos6)
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 shlibpath_var=LD_LIBRARY_PATH
11805 shlibpath_overrides_runpath=yes
11806 ;;
11807
11808 *nto* | *qnx*)
11809 version_type=qnx
11810 need_lib_prefix=no
11811 need_version=no
11812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11813 soname_spec='$libname$release$shared_ext$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=no
11816 hardcode_into_libs=yes
11817 dynamic_linker='ldqnx.so'
11818 ;;
11819
11820 openbsd* | bitrig*)
11821 version_type=sunos
11822 sys_lib_dlsearch_path_spec=/usr/lib
11823 need_lib_prefix=no
11824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11825 need_version=no
11826 else
11827 need_version=yes
11828 fi
11829 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 shlibpath_overrides_runpath=yes
11833 ;;
11834
11835 os2*)
11836 libname_spec='$name'
11837 version_type=windows
11838 shrext_cmds=.dll
11839 need_version=no
11840 need_lib_prefix=no
11841 # OS/2 can only load a DLL with a base name of 8 characters or less.
11842 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11843 v=$($ECHO $release$versuffix | tr -d .-);
11844 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11845 $ECHO $n$v`$shared_ext'
11846 library_names_spec='${libname}_dll.$libext'
11847 dynamic_linker='OS/2 ld.exe'
11848 shlibpath_var=BEGINLIBPATH
11849 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11851 postinstall_cmds='base_file=`basename \$file`~
11852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11853 dldir=$destdir/`dirname \$dlpath`~
11854 test -d \$dldir || mkdir -p \$dldir~
11855 $install_prog $dir/$dlname \$dldir/$dlname~
11856 chmod a+x \$dldir/$dlname~
11857 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11858 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11859 fi'
11860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11861 dlpath=$dir/\$dldll~
11862 $RM \$dlpath'
11863 ;;
11864
11865 osf3* | osf4* | osf5*)
11866 version_type=osf
11867 need_lib_prefix=no
11868 need_version=no
11869 soname_spec='$libname$release$shared_ext$major'
11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11871 shlibpath_var=LD_LIBRARY_PATH
11872 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11874 ;;
11875
11876 rdos*)
11877 dynamic_linker=no
11878 ;;
11879
11880 solaris*)
11881 version_type=linux # correct to gnu/linux during the next big refactor
11882 need_lib_prefix=no
11883 need_version=no
11884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11885 soname_spec='$libname$release$shared_ext$major'
11886 shlibpath_var=LD_LIBRARY_PATH
11887 shlibpath_overrides_runpath=yes
11888 hardcode_into_libs=yes
11889 # ldd complains unless libraries are executable
11890 postinstall_cmds='chmod +x $lib'
11891 ;;
11892
11893 sunos4*)
11894 version_type=sunos
11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11896 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 shlibpath_overrides_runpath=yes
11899 if test yes = "$with_gnu_ld"; then
11900 need_lib_prefix=no
11901 fi
11902 need_version=yes
11903 ;;
11904
11905 sysv4 | sysv4.3*)
11906 version_type=linux # correct to gnu/linux during the next big refactor
11907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11908 soname_spec='$libname$release$shared_ext$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11910 case $host_vendor in
11911 sni)
11912 shlibpath_overrides_runpath=no
11913 need_lib_prefix=no
11914 runpath_var=LD_RUN_PATH
11915 ;;
11916 siemens)
11917 need_lib_prefix=no
11918 ;;
11919 motorola)
11920 need_lib_prefix=no
11921 need_version=no
11922 shlibpath_overrides_runpath=no
11923 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11924 ;;
11925 esac
11926 ;;
11927
11928 sysv4*MP*)
11929 if test -d /usr/nec; then
11930 version_type=linux # correct to gnu/linux during the next big refactor
11931 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11932 soname_spec='$libname$shared_ext.$major'
11933 shlibpath_var=LD_LIBRARY_PATH
11934 fi
11935 ;;
11936
11937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11938 version_type=sco
11939 need_lib_prefix=no
11940 need_version=no
11941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11942 soname_spec='$libname$release$shared_ext$major'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=yes
11945 hardcode_into_libs=yes
11946 if test yes = "$with_gnu_ld"; then
11947 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11948 else
11949 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11950 case $host_os in
11951 sco3.2v5*)
11952 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11953 ;;
11954 esac
11955 fi
11956 sys_lib_dlsearch_path_spec='/usr/lib'
11957 ;;
11958
11959 tpf*)
11960 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11961 version_type=linux # correct to gnu/linux during the next big refactor
11962 need_lib_prefix=no
11963 need_version=no
11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=no
11967 hardcode_into_libs=yes
11968 ;;
11969
11970 uts4*)
11971 version_type=linux # correct to gnu/linux during the next big refactor
11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11973 soname_spec='$libname$release$shared_ext$major'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 ;;
11976
11977 *)
11978 dynamic_linker=no
11979 ;;
11980 esac
11981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11982 printf "%s\n" "$dynamic_linker" >&6; }
11983 test no = "$dynamic_linker" && can_build_shared=no
11984
11985 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11986 if test yes = "$GCC"; then
11987 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11988 fi
11989
11990 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11991 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11992 fi
11993
11994 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11995 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11996 fi
11997
11998 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11999 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12000
12001 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12002 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12003
12004 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12005 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12104 printf %s "checking how to hardcode library paths into programs... " >&6; }
12105 hardcode_action=
12106 if test -n "$hardcode_libdir_flag_spec" ||
12107 test -n "$runpath_var" ||
12108 test yes = "$hardcode_automatic"; then
12109
12110 # We can hardcode non-existent directories.
12111 if test no != "$hardcode_direct" &&
12112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12113 # have to relink, otherwise we might link with an installed library
12114 # when we should be linking with a yet-to-be-installed one
12115 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12116 test no != "$hardcode_minus_L"; then
12117 # Linking always hardcodes the temporary library directory.
12118 hardcode_action=relink
12119 else
12120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12121 hardcode_action=immediate
12122 fi
12123 else
12124 # We cannot hardcode anything, or else we can only hardcode existing
12125 # directories.
12126 hardcode_action=unsupported
12127 fi
12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12129 printf "%s\n" "$hardcode_action" >&6; }
12130
12131 if test relink = "$hardcode_action" ||
12132 test yes = "$inherit_rpath"; then
12133 # Fast installation is not supported
12134 enable_fast_install=no
12135 elif test yes = "$shlibpath_overrides_runpath" ||
12136 test no = "$enable_shared"; then
12137 # Fast installation is not necessary
12138 enable_fast_install=needless
12139 fi
12140
12141
12142
12143
12144
12145
12146 if test yes != "$enable_dlopen"; then
12147 enable_dlopen=unknown
12148 enable_dlopen_self=unknown
12149 enable_dlopen_self_static=unknown
12150 else
12151 lt_cv_dlopen=no
12152 lt_cv_dlopen_libs=
12153
12154 case $host_os in
12155 beos*)
12156 lt_cv_dlopen=load_add_on
12157 lt_cv_dlopen_libs=
12158 lt_cv_dlopen_self=yes
12159 ;;
12160
12161 mingw* | pw32* | cegcc*)
12162 lt_cv_dlopen=LoadLibrary
12163 lt_cv_dlopen_libs=
12164 ;;
12165
12166 cygwin*)
12167 lt_cv_dlopen=dlopen
12168 lt_cv_dlopen_libs=
12169 ;;
12170
12171 darwin*)
12172 # if libdl is installed we need to link against it
12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12174 printf %s "checking for dlopen in -ldl... " >&6; }
12175 if test ${ac_cv_lib_dl_dlopen+y}
12176 then :
12177 printf %s "(cached) " >&6
12178 else $as_nop
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-ldl $LIBS"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12187 char dlopen ();
12188 int
12189 main (void)
12190 {
12191 return dlopen ();
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 if ac_fn_c_try_link "$LINENO"
12197 then :
12198 ac_cv_lib_dl_dlopen=yes
12199 else $as_nop
12200 ac_cv_lib_dl_dlopen=no
12201 fi
12202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12205 fi
12206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12207 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12208 if test "x$ac_cv_lib_dl_dlopen" = xyes
12209 then :
12210 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12211 else $as_nop
12212
12213 lt_cv_dlopen=dyld
12214 lt_cv_dlopen_libs=
12215 lt_cv_dlopen_self=yes
12216
12217 fi
12218
12219 ;;
12220
12221 tpf*)
12222 # Don't try to run any link tests for TPF. We know it's impossible
12223 # because TPF is a cross-compiler, and we know how we open DSOs.
12224 lt_cv_dlopen=dlopen
12225 lt_cv_dlopen_libs=
12226 lt_cv_dlopen_self=no
12227 ;;
12228
12229 *)
12230 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12231 if test "x$ac_cv_func_shl_load" = xyes
12232 then :
12233 lt_cv_dlopen=shl_load
12234 else $as_nop
12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12236 printf %s "checking for shl_load in -ldld... " >&6; }
12237 if test ${ac_cv_lib_dld_shl_load+y}
12238 then :
12239 printf %s "(cached) " >&6
12240 else $as_nop
12241 ac_check_lib_save_LIBS=$LIBS
12242 LIBS="-ldld $LIBS"
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12245
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249 char shl_load ();
12250 int
12251 main (void)
12252 {
12253 return shl_load ();
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 if ac_fn_c_try_link "$LINENO"
12259 then :
12260 ac_cv_lib_dld_shl_load=yes
12261 else $as_nop
12262 ac_cv_lib_dld_shl_load=no
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12267 fi
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12269 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12270 if test "x$ac_cv_lib_dld_shl_load" = xyes
12271 then :
12272 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12273 else $as_nop
12274 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12275 if test "x$ac_cv_func_dlopen" = xyes
12276 then :
12277 lt_cv_dlopen=dlopen
12278 else $as_nop
12279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12280 printf %s "checking for dlopen in -ldl... " >&6; }
12281 if test ${ac_cv_lib_dl_dlopen+y}
12282 then :
12283 printf %s "(cached) " >&6
12284 else $as_nop
12285 ac_check_lib_save_LIBS=$LIBS
12286 LIBS="-ldl $LIBS"
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12293 char dlopen ();
12294 int
12295 main (void)
12296 {
12297 return dlopen ();
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"
12303 then :
12304 ac_cv_lib_dl_dlopen=yes
12305 else $as_nop
12306 ac_cv_lib_dl_dlopen=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12311 fi
12312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12313 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12314 if test "x$ac_cv_lib_dl_dlopen" = xyes
12315 then :
12316 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12317 else $as_nop
12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12319 printf %s "checking for dlopen in -lsvld... " >&6; }
12320 if test ${ac_cv_lib_svld_dlopen+y}
12321 then :
12322 printf %s "(cached) " >&6
12323 else $as_nop
12324 ac_check_lib_save_LIBS=$LIBS
12325 LIBS="-lsvld $LIBS"
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328
12329 /* Override any GCC internal prototype to avoid an error.
12330 Use char because int might match the return type of a GCC
12331 builtin and then its argument prototype would still apply. */
12332 char dlopen ();
12333 int
12334 main (void)
12335 {
12336 return dlopen ();
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 if ac_fn_c_try_link "$LINENO"
12342 then :
12343 ac_cv_lib_svld_dlopen=yes
12344 else $as_nop
12345 ac_cv_lib_svld_dlopen=no
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12348 conftest$ac_exeext conftest.$ac_ext
12349 LIBS=$ac_check_lib_save_LIBS
12350 fi
12351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12352 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12353 if test "x$ac_cv_lib_svld_dlopen" = xyes
12354 then :
12355 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12356 else $as_nop
12357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12358 printf %s "checking for dld_link in -ldld... " >&6; }
12359 if test ${ac_cv_lib_dld_dld_link+y}
12360 then :
12361 printf %s "(cached) " >&6
12362 else $as_nop
12363 ac_check_lib_save_LIBS=$LIBS
12364 LIBS="-ldld $LIBS"
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367
12368 /* Override any GCC internal prototype to avoid an error.
12369 Use char because int might match the return type of a GCC
12370 builtin and then its argument prototype would still apply. */
12371 char dld_link ();
12372 int
12373 main (void)
12374 {
12375 return dld_link ();
12376 ;
12377 return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_link "$LINENO"
12381 then :
12382 ac_cv_lib_dld_dld_link=yes
12383 else $as_nop
12384 ac_cv_lib_dld_dld_link=no
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12389 fi
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12391 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12392 if test "x$ac_cv_lib_dld_dld_link" = xyes
12393 then :
12394 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12395 fi
12396
12397
12398 fi
12399
12400
12401 fi
12402
12403
12404 fi
12405
12406
12407 fi
12408
12409
12410 fi
12411
12412 ;;
12413 esac
12414
12415 if test no = "$lt_cv_dlopen"; then
12416 enable_dlopen=no
12417 else
12418 enable_dlopen=yes
12419 fi
12420
12421 case $lt_cv_dlopen in
12422 dlopen)
12423 save_CPPFLAGS=$CPPFLAGS
12424 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12425
12426 save_LDFLAGS=$LDFLAGS
12427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12428
12429 save_LIBS=$LIBS
12430 LIBS="$lt_cv_dlopen_libs $LIBS"
12431
12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12433 printf %s "checking whether a program can dlopen itself... " >&6; }
12434 if test ${lt_cv_dlopen_self+y}
12435 then :
12436 printf %s "(cached) " >&6
12437 else $as_nop
12438 if test yes = "$cross_compiling"; then :
12439 lt_cv_dlopen_self=cross
12440 else
12441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12442 lt_status=$lt_dlunknown
12443 cat > conftest.$ac_ext <<_LT_EOF
12444 #line $LINENO "configure"
12445 #include "confdefs.h"
12446
12447 #if HAVE_DLFCN_H
12448 #include <dlfcn.h>
12449 #endif
12450
12451 #include <stdio.h>
12452
12453 #ifdef RTLD_GLOBAL
12454 # define LT_DLGLOBAL RTLD_GLOBAL
12455 #else
12456 # ifdef DL_GLOBAL
12457 # define LT_DLGLOBAL DL_GLOBAL
12458 # else
12459 # define LT_DLGLOBAL 0
12460 # endif
12461 #endif
12462
12463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12464 find out it does not work in some platform. */
12465 #ifndef LT_DLLAZY_OR_NOW
12466 # ifdef RTLD_LAZY
12467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12468 # else
12469 # ifdef DL_LAZY
12470 # define LT_DLLAZY_OR_NOW DL_LAZY
12471 # else
12472 # ifdef RTLD_NOW
12473 # define LT_DLLAZY_OR_NOW RTLD_NOW
12474 # else
12475 # ifdef DL_NOW
12476 # define LT_DLLAZY_OR_NOW DL_NOW
12477 # else
12478 # define LT_DLLAZY_OR_NOW 0
12479 # endif
12480 # endif
12481 # endif
12482 # endif
12483 #endif
12484
12485 /* When -fvisibility=hidden is used, assume the code has been annotated
12486 correspondingly for the symbols needed. */
12487 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12488 int fnord () __attribute__((visibility("default")));
12489 #endif
12490
12491 int fnord () { return 42; }
12492 int main ()
12493 {
12494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12495 int status = $lt_dlunknown;
12496
12497 if (self)
12498 {
12499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12500 else
12501 {
12502 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12503 else puts (dlerror ());
12504 }
12505 /* dlclose (self); */
12506 }
12507 else
12508 puts (dlerror ());
12509
12510 return status;
12511 }
12512 _LT_EOF
12513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12514 (eval $ac_link) 2>&5
12515 ac_status=$?
12516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12517 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12518 (./conftest; exit; ) >&5 2>/dev/null
12519 lt_status=$?
12520 case x$lt_status in
12521 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12522 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12523 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12524 esac
12525 else :
12526 # compilation failed
12527 lt_cv_dlopen_self=no
12528 fi
12529 fi
12530 rm -fr conftest*
12531
12532
12533 fi
12534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12535 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12536
12537 if test yes = "$lt_cv_dlopen_self"; then
12538 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12540 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12541 if test ${lt_cv_dlopen_self_static+y}
12542 then :
12543 printf %s "(cached) " >&6
12544 else $as_nop
12545 if test yes = "$cross_compiling"; then :
12546 lt_cv_dlopen_self_static=cross
12547 else
12548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12549 lt_status=$lt_dlunknown
12550 cat > conftest.$ac_ext <<_LT_EOF
12551 #line $LINENO "configure"
12552 #include "confdefs.h"
12553
12554 #if HAVE_DLFCN_H
12555 #include <dlfcn.h>
12556 #endif
12557
12558 #include <stdio.h>
12559
12560 #ifdef RTLD_GLOBAL
12561 # define LT_DLGLOBAL RTLD_GLOBAL
12562 #else
12563 # ifdef DL_GLOBAL
12564 # define LT_DLGLOBAL DL_GLOBAL
12565 # else
12566 # define LT_DLGLOBAL 0
12567 # endif
12568 #endif
12569
12570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12571 find out it does not work in some platform. */
12572 #ifndef LT_DLLAZY_OR_NOW
12573 # ifdef RTLD_LAZY
12574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12575 # else
12576 # ifdef DL_LAZY
12577 # define LT_DLLAZY_OR_NOW DL_LAZY
12578 # else
12579 # ifdef RTLD_NOW
12580 # define LT_DLLAZY_OR_NOW RTLD_NOW
12581 # else
12582 # ifdef DL_NOW
12583 # define LT_DLLAZY_OR_NOW DL_NOW
12584 # else
12585 # define LT_DLLAZY_OR_NOW 0
12586 # endif
12587 # endif
12588 # endif
12589 # endif
12590 #endif
12591
12592 /* When -fvisibility=hidden is used, assume the code has been annotated
12593 correspondingly for the symbols needed. */
12594 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12595 int fnord () __attribute__((visibility("default")));
12596 #endif
12597
12598 int fnord () { return 42; }
12599 int main ()
12600 {
12601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12602 int status = $lt_dlunknown;
12603
12604 if (self)
12605 {
12606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12607 else
12608 {
12609 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12610 else puts (dlerror ());
12611 }
12612 /* dlclose (self); */
12613 }
12614 else
12615 puts (dlerror ());
12616
12617 return status;
12618 }
12619 _LT_EOF
12620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12621 (eval $ac_link) 2>&5
12622 ac_status=$?
12623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12624 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12625 (./conftest; exit; ) >&5 2>/dev/null
12626 lt_status=$?
12627 case x$lt_status in
12628 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12629 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12630 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12631 esac
12632 else :
12633 # compilation failed
12634 lt_cv_dlopen_self_static=no
12635 fi
12636 fi
12637 rm -fr conftest*
12638
12639
12640 fi
12641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12642 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12643 fi
12644
12645 CPPFLAGS=$save_CPPFLAGS
12646 LDFLAGS=$save_LDFLAGS
12647 LIBS=$save_LIBS
12648 ;;
12649 esac
12650
12651 case $lt_cv_dlopen_self in
12652 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12653 *) enable_dlopen_self=unknown ;;
12654 esac
12655
12656 case $lt_cv_dlopen_self_static in
12657 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12658 *) enable_dlopen_self_static=unknown ;;
12659 esac
12660 fi
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678 striplib=
12679 old_striplib=
12680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12681 printf %s "checking whether stripping libraries is possible... " >&6; }
12682 if test -z "$STRIP"; then
12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 printf "%s\n" "no" >&6; }
12685 else
12686 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12687 old_striplib="$STRIP --strip-debug"
12688 striplib="$STRIP --strip-unneeded"
12689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12690 printf "%s\n" "yes" >&6; }
12691 else
12692 case $host_os in
12693 darwin*)
12694 # FIXME - insert some real tests, host_os isn't really good enough
12695 striplib="$STRIP -x"
12696 old_striplib="$STRIP -S"
12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12698 printf "%s\n" "yes" >&6; }
12699 ;;
12700 freebsd*)
12701 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12702 old_striplib="$STRIP --strip-debug"
12703 striplib="$STRIP --strip-unneeded"
12704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12705 printf "%s\n" "yes" >&6; }
12706 else
12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 printf "%s\n" "no" >&6; }
12709 fi
12710 ;;
12711 *)
12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 printf "%s\n" "no" >&6; }
12714 ;;
12715 esac
12716 fi
12717 fi
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730 # Report what library types will actually be built
12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12732 printf %s "checking if libtool supports shared libraries... " >&6; }
12733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12734 printf "%s\n" "$can_build_shared" >&6; }
12735
12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12737 printf %s "checking whether to build shared libraries... " >&6; }
12738 test no = "$can_build_shared" && enable_shared=no
12739
12740 # On AIX, shared libraries and static libraries use the same namespace, and
12741 # are all built from PIC.
12742 case $host_os in
12743 aix3*)
12744 test yes = "$enable_shared" && enable_static=no
12745 if test -n "$RANLIB"; then
12746 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12747 postinstall_cmds='$RANLIB $lib'
12748 fi
12749 ;;
12750
12751 aix[4-9]*)
12752 if test ia64 != "$host_cpu"; then
12753 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12754 yes,aix,yes) ;; # shared object as lib.so file only
12755 yes,svr4,*) ;; # shared object as lib.so archive member only
12756 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12757 esac
12758 fi
12759 ;;
12760 esac
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12762 printf "%s\n" "$enable_shared" >&6; }
12763
12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12765 printf %s "checking whether to build static libraries... " >&6; }
12766 # Make sure either enable_shared or enable_static is yes.
12767 test yes = "$enable_shared" || enable_static=yes
12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12769 printf "%s\n" "$enable_static" >&6; }
12770
12771
12772
12773
12774 fi
12775 ac_ext=c
12776 ac_cpp='$CPP $CPPFLAGS'
12777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12780
12781 CC=$lt_save_CC
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797 ac_config_commands="$ac_config_commands libtool"
12798
12799
12800
12801
12802 # Only expand once:
12803
12804
12805
12806 # Require X.Org macros 1.8 or later
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12820 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12821 if test ${ac_cv_c_undeclared_builtin_options+y}
12822 then :
12823 printf %s "(cached) " >&6
12824 else $as_nop
12825 ac_save_CFLAGS=$CFLAGS
12826 ac_cv_c_undeclared_builtin_options='cannot detect'
12827 for ac_arg in '' -fno-builtin; do
12828 CFLAGS="$ac_save_CFLAGS $ac_arg"
12829 # This test program should *not* compile successfully.
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832
12833 int
12834 main (void)
12835 {
12836 (void) strchr;
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 if ac_fn_c_try_compile "$LINENO"
12842 then :
12843
12844 else $as_nop
12845 # This test program should compile successfully.
12846 # No library function is consistently available on
12847 # freestanding implementations, so test against a dummy
12848 # declaration. Include always-available headers on the
12849 # off chance that they somehow elicit warnings.
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 #include <float.h>
12853 #include <limits.h>
12854 #include <stdarg.h>
12855 #include <stddef.h>
12856 extern void ac_decl (int, char *);
12857
12858 int
12859 main (void)
12860 {
12861 (void) ac_decl (0, (char *) 0);
12862 (void) ac_decl;
12863
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 if ac_fn_c_try_compile "$LINENO"
12869 then :
12870 if test x"$ac_arg" = x
12871 then :
12872 ac_cv_c_undeclared_builtin_options='none needed'
12873 else $as_nop
12874 ac_cv_c_undeclared_builtin_options=$ac_arg
12875 fi
12876 break
12877 fi
12878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12879 fi
12880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12881 done
12882 CFLAGS=$ac_save_CFLAGS
12883
12884 fi
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12886 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12887 case $ac_cv_c_undeclared_builtin_options in #(
12888 'cannot detect') :
12889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12890 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12891 as_fn_error $? "cannot make $CC report undeclared builtins
12892 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12893 'none needed') :
12894 ac_c_undeclared_builtin_options='' ;; #(
12895 *) :
12896 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12897 esac
12898
12899
12900
12901
12902
12903 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12904 if test "x$ac_cv_have_decl___clang__" = xyes
12905 then :
12906 CLANGCC="yes"
12907 else $as_nop
12908 CLANGCC="no"
12909 fi
12910 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12911 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12912 then :
12913 INTELCC="yes"
12914 else $as_nop
12915 INTELCC="no"
12916 fi
12917 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12918 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12919 then :
12920 SUNCC="yes"
12921 else $as_nop
12922 SUNCC="no"
12923 fi
12924
12925
12926
12927
12928
12929
12930
12931
12932 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12933 if test -n "$ac_tool_prefix"; then
12934 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12935 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 printf %s "checking for $ac_word... " >&6; }
12938 if test ${ac_cv_path_PKG_CONFIG+y}
12939 then :
12940 printf %s "(cached) " >&6
12941 else $as_nop
12942 case $PKG_CONFIG in
12943 [\\/]* | ?:[\\/]*)
12944 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12945 ;;
12946 *)
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12949 do
12950 IFS=$as_save_IFS
12951 case $as_dir in #(((
12952 '') as_dir=./ ;;
12953 */) ;;
12954 *) as_dir=$as_dir/ ;;
12955 esac
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12958 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12960 break 2
12961 fi
12962 done
12963 done
12964 IFS=$as_save_IFS
12965
12966 ;;
12967 esac
12968 fi
12969 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12970 if test -n "$PKG_CONFIG"; then
12971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12972 printf "%s\n" "$PKG_CONFIG" >&6; }
12973 else
12974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 printf "%s\n" "no" >&6; }
12976 fi
12977
12978
12979 fi
12980 if test -z "$ac_cv_path_PKG_CONFIG"; then
12981 ac_pt_PKG_CONFIG=$PKG_CONFIG
12982 # Extract the first word of "pkg-config", so it can be a program name with args.
12983 set dummy pkg-config; ac_word=$2
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985 printf %s "checking for $ac_word... " >&6; }
12986 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12987 then :
12988 printf %s "(cached) " >&6
12989 else $as_nop
12990 case $ac_pt_PKG_CONFIG in
12991 [\\/]* | ?:[\\/]*)
12992 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12993 ;;
12994 *)
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12997 do
12998 IFS=$as_save_IFS
12999 case $as_dir in #(((
13000 '') as_dir=./ ;;
13001 */) ;;
13002 *) as_dir=$as_dir/ ;;
13003 esac
13004 for ac_exec_ext in '' $ac_executable_extensions; do
13005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13006 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13008 break 2
13009 fi
13010 done
13011 done
13012 IFS=$as_save_IFS
13013
13014 ;;
13015 esac
13016 fi
13017 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13018 if test -n "$ac_pt_PKG_CONFIG"; then
13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13020 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13021 else
13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 printf "%s\n" "no" >&6; }
13024 fi
13025
13026 if test "x$ac_pt_PKG_CONFIG" = x; then
13027 PKG_CONFIG=""
13028 else
13029 case $cross_compiling:$ac_tool_warned in
13030 yes:)
13031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13033 ac_tool_warned=yes ;;
13034 esac
13035 PKG_CONFIG=$ac_pt_PKG_CONFIG
13036 fi
13037 else
13038 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13039 fi
13040
13041 fi
13042 if test -n "$PKG_CONFIG"; then
13043 _pkg_min_version=0.9.0
13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13045 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13046 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13048 printf "%s\n" "yes" >&6; }
13049 else
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051 printf "%s\n" "no" >&6; }
13052 PKG_CONFIG=""
13053 fi
13054 fi
13055
13056
13057
13058
13059
13060 # Check whether --enable-selective-werror was given.
13061 if test ${enable_selective_werror+y}
13062 then :
13063 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13064 else $as_nop
13065 SELECTIVE_WERROR=yes
13066 fi
13067
13068
13069
13070
13071
13072 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13073 if test "x$SUNCC" = "xyes"; then
13074 BASE_CFLAGS="-v"
13075 else
13076 BASE_CFLAGS=""
13077 fi
13078
13079 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093 xorg_testset_save_CFLAGS="$CFLAGS"
13094
13095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13098 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13099 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13100 then :
13101 printf %s "(cached) " >&6
13102 else $as_nop
13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104 /* end confdefs.h. */
13105 int i;
13106 _ACEOF
13107 if ac_fn_c_try_compile "$LINENO"
13108 then :
13109 xorg_cv_cc_flag_unknown_warning_option=yes
13110 else $as_nop
13111 xorg_cv_cc_flag_unknown_warning_option=no
13112 fi
13113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13114 fi
13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13116 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13118 CFLAGS="$xorg_testset_save_CFLAGS"
13119 fi
13120
13121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13124 fi
13125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13127 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13128 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13129 then :
13130 printf %s "(cached) " >&6
13131 else $as_nop
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 int i;
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"
13137 then :
13138 xorg_cv_cc_flag_unused_command_line_argument=yes
13139 else $as_nop
13140 xorg_cv_cc_flag_unused_command_line_argument=no
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13143 fi
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13145 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13147 CFLAGS="$xorg_testset_save_CFLAGS"
13148 fi
13149
13150 found="no"
13151
13152 if test $found = "no" ; then
13153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13155 fi
13156
13157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13159 fi
13160
13161 CFLAGS="$CFLAGS -Wall"
13162
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13164 printf %s "checking if $CC supports -Wall... " >&6; }
13165 cacheid=xorg_cv_cc_flag__Wall
13166 if eval test \${$cacheid+y}
13167 then :
13168 printf %s "(cached) " >&6
13169 else $as_nop
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172 int i;
13173 int
13174 main (void)
13175 {
13176
13177 ;
13178 return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"
13182 then :
13183 eval $cacheid=yes
13184 else $as_nop
13185 eval $cacheid=no
13186 fi
13187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13188 conftest$ac_exeext conftest.$ac_ext
13189 fi
13190
13191
13192 CFLAGS="$xorg_testset_save_CFLAGS"
13193
13194 eval supported=\$$cacheid
13195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13196 printf "%s\n" "$supported" >&6; }
13197 if test "$supported" = "yes" ; then
13198 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13199 found="yes"
13200 fi
13201 fi
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217 xorg_testset_save_CFLAGS="$CFLAGS"
13218
13219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13222 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13223 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13224 then :
13225 printf %s "(cached) " >&6
13226 else $as_nop
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229 int i;
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"
13232 then :
13233 xorg_cv_cc_flag_unknown_warning_option=yes
13234 else $as_nop
13235 xorg_cv_cc_flag_unknown_warning_option=no
13236 fi
13237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13238 fi
13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13240 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13242 CFLAGS="$xorg_testset_save_CFLAGS"
13243 fi
13244
13245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13248 fi
13249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13251 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13252 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13253 then :
13254 printf %s "(cached) " >&6
13255 else $as_nop
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258 int i;
13259 _ACEOF
13260 if ac_fn_c_try_compile "$LINENO"
13261 then :
13262 xorg_cv_cc_flag_unused_command_line_argument=yes
13263 else $as_nop
13264 xorg_cv_cc_flag_unused_command_line_argument=no
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13267 fi
13268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13269 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13271 CFLAGS="$xorg_testset_save_CFLAGS"
13272 fi
13273
13274 found="no"
13275
13276 if test $found = "no" ; then
13277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13279 fi
13280
13281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13283 fi
13284
13285 CFLAGS="$CFLAGS -Wpointer-arith"
13286
13287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13288 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13289 cacheid=xorg_cv_cc_flag__Wpointer_arith
13290 if eval test \${$cacheid+y}
13291 then :
13292 printf %s "(cached) " >&6
13293 else $as_nop
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 int i;
13297 int
13298 main (void)
13299 {
13300
13301 ;
13302 return 0;
13303 }
13304 _ACEOF
13305 if ac_fn_c_try_link "$LINENO"
13306 then :
13307 eval $cacheid=yes
13308 else $as_nop
13309 eval $cacheid=no
13310 fi
13311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13312 conftest$ac_exeext conftest.$ac_ext
13313 fi
13314
13315
13316 CFLAGS="$xorg_testset_save_CFLAGS"
13317
13318 eval supported=\$$cacheid
13319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13320 printf "%s\n" "$supported" >&6; }
13321 if test "$supported" = "yes" ; then
13322 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13323 found="yes"
13324 fi
13325 fi
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341 xorg_testset_save_CFLAGS="$CFLAGS"
13342
13343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13346 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13347 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13348 then :
13349 printf %s "(cached) " >&6
13350 else $as_nop
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 int i;
13354 _ACEOF
13355 if ac_fn_c_try_compile "$LINENO"
13356 then :
13357 xorg_cv_cc_flag_unknown_warning_option=yes
13358 else $as_nop
13359 xorg_cv_cc_flag_unknown_warning_option=no
13360 fi
13361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13362 fi
13363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13364 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13366 CFLAGS="$xorg_testset_save_CFLAGS"
13367 fi
13368
13369 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13372 fi
13373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13375 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13376 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13377 then :
13378 printf %s "(cached) " >&6
13379 else $as_nop
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 int i;
13383 _ACEOF
13384 if ac_fn_c_try_compile "$LINENO"
13385 then :
13386 xorg_cv_cc_flag_unused_command_line_argument=yes
13387 else $as_nop
13388 xorg_cv_cc_flag_unused_command_line_argument=no
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13391 fi
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13393 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13395 CFLAGS="$xorg_testset_save_CFLAGS"
13396 fi
13397
13398 found="no"
13399
13400 if test $found = "no" ; then
13401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13403 fi
13404
13405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13407 fi
13408
13409 CFLAGS="$CFLAGS -Wmissing-declarations"
13410
13411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13412 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13413 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13414 if eval test \${$cacheid+y}
13415 then :
13416 printf %s "(cached) " >&6
13417 else $as_nop
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13420 int i;
13421 int
13422 main (void)
13423 {
13424
13425 ;
13426 return 0;
13427 }
13428 _ACEOF
13429 if ac_fn_c_try_link "$LINENO"
13430 then :
13431 eval $cacheid=yes
13432 else $as_nop
13433 eval $cacheid=no
13434 fi
13435 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13436 conftest$ac_exeext conftest.$ac_ext
13437 fi
13438
13439
13440 CFLAGS="$xorg_testset_save_CFLAGS"
13441
13442 eval supported=\$$cacheid
13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13444 printf "%s\n" "$supported" >&6; }
13445 if test "$supported" = "yes" ; then
13446 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13447 found="yes"
13448 fi
13449 fi
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465 xorg_testset_save_CFLAGS="$CFLAGS"
13466
13467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13470 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13471 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13472 then :
13473 printf %s "(cached) " >&6
13474 else $as_nop
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477 int i;
13478 _ACEOF
13479 if ac_fn_c_try_compile "$LINENO"
13480 then :
13481 xorg_cv_cc_flag_unknown_warning_option=yes
13482 else $as_nop
13483 xorg_cv_cc_flag_unknown_warning_option=no
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13486 fi
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13488 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13490 CFLAGS="$xorg_testset_save_CFLAGS"
13491 fi
13492
13493 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13496 fi
13497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13499 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13500 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13501 then :
13502 printf %s "(cached) " >&6
13503 else $as_nop
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506 int i;
13507 _ACEOF
13508 if ac_fn_c_try_compile "$LINENO"
13509 then :
13510 xorg_cv_cc_flag_unused_command_line_argument=yes
13511 else $as_nop
13512 xorg_cv_cc_flag_unused_command_line_argument=no
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13515 fi
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13517 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13519 CFLAGS="$xorg_testset_save_CFLAGS"
13520 fi
13521
13522 found="no"
13523
13524 if test $found = "no" ; then
13525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13527 fi
13528
13529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13531 fi
13532
13533 CFLAGS="$CFLAGS -Wformat=2"
13534
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13536 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13537 cacheid=xorg_cv_cc_flag__Wformat_2
13538 if eval test \${$cacheid+y}
13539 then :
13540 printf %s "(cached) " >&6
13541 else $as_nop
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 int i;
13545 int
13546 main (void)
13547 {
13548
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_link "$LINENO"
13554 then :
13555 eval $cacheid=yes
13556 else $as_nop
13557 eval $cacheid=no
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13560 conftest$ac_exeext conftest.$ac_ext
13561 fi
13562
13563
13564 CFLAGS="$xorg_testset_save_CFLAGS"
13565
13566 eval supported=\$$cacheid
13567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13568 printf "%s\n" "$supported" >&6; }
13569 if test "$supported" = "yes" ; then
13570 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13571 found="yes"
13572 fi
13573 fi
13574
13575 if test $found = "no" ; then
13576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13578 fi
13579
13580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13582 fi
13583
13584 CFLAGS="$CFLAGS -Wformat"
13585
13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13587 printf %s "checking if $CC supports -Wformat... " >&6; }
13588 cacheid=xorg_cv_cc_flag__Wformat
13589 if eval test \${$cacheid+y}
13590 then :
13591 printf %s "(cached) " >&6
13592 else $as_nop
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 int i;
13596 int
13597 main (void)
13598 {
13599
13600 ;
13601 return 0;
13602 }
13603 _ACEOF
13604 if ac_fn_c_try_link "$LINENO"
13605 then :
13606 eval $cacheid=yes
13607 else $as_nop
13608 eval $cacheid=no
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13611 conftest$ac_exeext conftest.$ac_ext
13612 fi
13613
13614
13615 CFLAGS="$xorg_testset_save_CFLAGS"
13616
13617 eval supported=\$$cacheid
13618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13619 printf "%s\n" "$supported" >&6; }
13620 if test "$supported" = "yes" ; then
13621 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13622 found="yes"
13623 fi
13624 fi
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642 xorg_testset_save_CFLAGS="$CFLAGS"
13643
13644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13647 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13648 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13649 then :
13650 printf %s "(cached) " >&6
13651 else $as_nop
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 int i;
13655 _ACEOF
13656 if ac_fn_c_try_compile "$LINENO"
13657 then :
13658 xorg_cv_cc_flag_unknown_warning_option=yes
13659 else $as_nop
13660 xorg_cv_cc_flag_unknown_warning_option=no
13661 fi
13662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13663 fi
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13665 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13667 CFLAGS="$xorg_testset_save_CFLAGS"
13668 fi
13669
13670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13673 fi
13674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13676 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13677 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13678 then :
13679 printf %s "(cached) " >&6
13680 else $as_nop
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 int i;
13684 _ACEOF
13685 if ac_fn_c_try_compile "$LINENO"
13686 then :
13687 xorg_cv_cc_flag_unused_command_line_argument=yes
13688 else $as_nop
13689 xorg_cv_cc_flag_unused_command_line_argument=no
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13692 fi
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13694 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13696 CFLAGS="$xorg_testset_save_CFLAGS"
13697 fi
13698
13699 found="no"
13700
13701 if test $found = "no" ; then
13702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704 fi
13705
13706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13708 fi
13709
13710 CFLAGS="$CFLAGS -Wstrict-prototypes"
13711
13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13713 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13714 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13715 if eval test \${$cacheid+y}
13716 then :
13717 printf %s "(cached) " >&6
13718 else $as_nop
13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13721 int i;
13722 int
13723 main (void)
13724 {
13725
13726 ;
13727 return 0;
13728 }
13729 _ACEOF
13730 if ac_fn_c_try_link "$LINENO"
13731 then :
13732 eval $cacheid=yes
13733 else $as_nop
13734 eval $cacheid=no
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13737 conftest$ac_exeext conftest.$ac_ext
13738 fi
13739
13740
13741 CFLAGS="$xorg_testset_save_CFLAGS"
13742
13743 eval supported=\$$cacheid
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13745 printf "%s\n" "$supported" >&6; }
13746 if test "$supported" = "yes" ; then
13747 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13748 found="yes"
13749 fi
13750 fi
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766 xorg_testset_save_CFLAGS="$CFLAGS"
13767
13768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13771 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13772 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13773 then :
13774 printf %s "(cached) " >&6
13775 else $as_nop
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13778 int i;
13779 _ACEOF
13780 if ac_fn_c_try_compile "$LINENO"
13781 then :
13782 xorg_cv_cc_flag_unknown_warning_option=yes
13783 else $as_nop
13784 xorg_cv_cc_flag_unknown_warning_option=no
13785 fi
13786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13787 fi
13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13789 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13791 CFLAGS="$xorg_testset_save_CFLAGS"
13792 fi
13793
13794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797 fi
13798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13800 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13801 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13802 then :
13803 printf %s "(cached) " >&6
13804 else $as_nop
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13807 int i;
13808 _ACEOF
13809 if ac_fn_c_try_compile "$LINENO"
13810 then :
13811 xorg_cv_cc_flag_unused_command_line_argument=yes
13812 else $as_nop
13813 xorg_cv_cc_flag_unused_command_line_argument=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13816 fi
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13818 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13820 CFLAGS="$xorg_testset_save_CFLAGS"
13821 fi
13822
13823 found="no"
13824
13825 if test $found = "no" ; then
13826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13828 fi
13829
13830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13832 fi
13833
13834 CFLAGS="$CFLAGS -Wmissing-prototypes"
13835
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13837 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13838 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13839 if eval test \${$cacheid+y}
13840 then :
13841 printf %s "(cached) " >&6
13842 else $as_nop
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13845 int i;
13846 int
13847 main (void)
13848 {
13849
13850 ;
13851 return 0;
13852 }
13853 _ACEOF
13854 if ac_fn_c_try_link "$LINENO"
13855 then :
13856 eval $cacheid=yes
13857 else $as_nop
13858 eval $cacheid=no
13859 fi
13860 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13861 conftest$ac_exeext conftest.$ac_ext
13862 fi
13863
13864
13865 CFLAGS="$xorg_testset_save_CFLAGS"
13866
13867 eval supported=\$$cacheid
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13869 printf "%s\n" "$supported" >&6; }
13870 if test "$supported" = "yes" ; then
13871 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13872 found="yes"
13873 fi
13874 fi
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890 xorg_testset_save_CFLAGS="$CFLAGS"
13891
13892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13895 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13896 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13897 then :
13898 printf %s "(cached) " >&6
13899 else $as_nop
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 int i;
13903 _ACEOF
13904 if ac_fn_c_try_compile "$LINENO"
13905 then :
13906 xorg_cv_cc_flag_unknown_warning_option=yes
13907 else $as_nop
13908 xorg_cv_cc_flag_unknown_warning_option=no
13909 fi
13910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13911 fi
13912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13913 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13915 CFLAGS="$xorg_testset_save_CFLAGS"
13916 fi
13917
13918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13921 fi
13922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13924 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13925 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13926 then :
13927 printf %s "(cached) " >&6
13928 else $as_nop
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 int i;
13932 _ACEOF
13933 if ac_fn_c_try_compile "$LINENO"
13934 then :
13935 xorg_cv_cc_flag_unused_command_line_argument=yes
13936 else $as_nop
13937 xorg_cv_cc_flag_unused_command_line_argument=no
13938 fi
13939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13940 fi
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13942 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13944 CFLAGS="$xorg_testset_save_CFLAGS"
13945 fi
13946
13947 found="no"
13948
13949 if test $found = "no" ; then
13950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13952 fi
13953
13954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13956 fi
13957
13958 CFLAGS="$CFLAGS -Wnested-externs"
13959
13960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13961 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13962 cacheid=xorg_cv_cc_flag__Wnested_externs
13963 if eval test \${$cacheid+y}
13964 then :
13965 printf %s "(cached) " >&6
13966 else $as_nop
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969 int i;
13970 int
13971 main (void)
13972 {
13973
13974 ;
13975 return 0;
13976 }
13977 _ACEOF
13978 if ac_fn_c_try_link "$LINENO"
13979 then :
13980 eval $cacheid=yes
13981 else $as_nop
13982 eval $cacheid=no
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13985 conftest$ac_exeext conftest.$ac_ext
13986 fi
13987
13988
13989 CFLAGS="$xorg_testset_save_CFLAGS"
13990
13991 eval supported=\$$cacheid
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13993 printf "%s\n" "$supported" >&6; }
13994 if test "$supported" = "yes" ; then
13995 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13996 found="yes"
13997 fi
13998 fi
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014 xorg_testset_save_CFLAGS="$CFLAGS"
14015
14016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14020 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14021 then :
14022 printf %s "(cached) " >&6
14023 else $as_nop
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14026 int i;
14027 _ACEOF
14028 if ac_fn_c_try_compile "$LINENO"
14029 then :
14030 xorg_cv_cc_flag_unknown_warning_option=yes
14031 else $as_nop
14032 xorg_cv_cc_flag_unknown_warning_option=no
14033 fi
14034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14035 fi
14036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14039 CFLAGS="$xorg_testset_save_CFLAGS"
14040 fi
14041
14042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14045 fi
14046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14050 then :
14051 printf %s "(cached) " >&6
14052 else $as_nop
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 int i;
14056 _ACEOF
14057 if ac_fn_c_try_compile "$LINENO"
14058 then :
14059 xorg_cv_cc_flag_unused_command_line_argument=yes
14060 else $as_nop
14061 xorg_cv_cc_flag_unused_command_line_argument=no
14062 fi
14063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14064 fi
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14066 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14068 CFLAGS="$xorg_testset_save_CFLAGS"
14069 fi
14070
14071 found="no"
14072
14073 if test $found = "no" ; then
14074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14076 fi
14077
14078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14080 fi
14081
14082 CFLAGS="$CFLAGS -Wbad-function-cast"
14083
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14085 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14086 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14087 if eval test \${$cacheid+y}
14088 then :
14089 printf %s "(cached) " >&6
14090 else $as_nop
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14093 int i;
14094 int
14095 main (void)
14096 {
14097
14098 ;
14099 return 0;
14100 }
14101 _ACEOF
14102 if ac_fn_c_try_link "$LINENO"
14103 then :
14104 eval $cacheid=yes
14105 else $as_nop
14106 eval $cacheid=no
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14109 conftest$ac_exeext conftest.$ac_ext
14110 fi
14111
14112
14113 CFLAGS="$xorg_testset_save_CFLAGS"
14114
14115 eval supported=\$$cacheid
14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14117 printf "%s\n" "$supported" >&6; }
14118 if test "$supported" = "yes" ; then
14119 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14120 found="yes"
14121 fi
14122 fi
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138 xorg_testset_save_CFLAGS="$CFLAGS"
14139
14140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14145 then :
14146 printf %s "(cached) " >&6
14147 else $as_nop
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 int i;
14151 _ACEOF
14152 if ac_fn_c_try_compile "$LINENO"
14153 then :
14154 xorg_cv_cc_flag_unknown_warning_option=yes
14155 else $as_nop
14156 xorg_cv_cc_flag_unknown_warning_option=no
14157 fi
14158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14159 fi
14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14163 CFLAGS="$xorg_testset_save_CFLAGS"
14164 fi
14165
14166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14169 fi
14170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14174 then :
14175 printf %s "(cached) " >&6
14176 else $as_nop
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 int i;
14180 _ACEOF
14181 if ac_fn_c_try_compile "$LINENO"
14182 then :
14183 xorg_cv_cc_flag_unused_command_line_argument=yes
14184 else $as_nop
14185 xorg_cv_cc_flag_unused_command_line_argument=no
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14188 fi
14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14190 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14192 CFLAGS="$xorg_testset_save_CFLAGS"
14193 fi
14194
14195 found="no"
14196
14197 if test $found = "no" ; then
14198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14200 fi
14201
14202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14204 fi
14205
14206 CFLAGS="$CFLAGS -Wold-style-definition"
14207
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14209 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14210 cacheid=xorg_cv_cc_flag__Wold_style_definition
14211 if eval test \${$cacheid+y}
14212 then :
14213 printf %s "(cached) " >&6
14214 else $as_nop
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217 int i;
14218 int
14219 main (void)
14220 {
14221
14222 ;
14223 return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_c_try_link "$LINENO"
14227 then :
14228 eval $cacheid=yes
14229 else $as_nop
14230 eval $cacheid=no
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14233 conftest$ac_exeext conftest.$ac_ext
14234 fi
14235
14236
14237 CFLAGS="$xorg_testset_save_CFLAGS"
14238
14239 eval supported=\$$cacheid
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14241 printf "%s\n" "$supported" >&6; }
14242 if test "$supported" = "yes" ; then
14243 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14244 found="yes"
14245 fi
14246 fi
14247
14248 if test $found = "no" ; then
14249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14251 fi
14252
14253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14255 fi
14256
14257 CFLAGS="$CFLAGS -fd"
14258
14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14260 printf %s "checking if $CC supports -fd... " >&6; }
14261 cacheid=xorg_cv_cc_flag__fd
14262 if eval test \${$cacheid+y}
14263 then :
14264 printf %s "(cached) " >&6
14265 else $as_nop
14266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14268 int i;
14269 int
14270 main (void)
14271 {
14272
14273 ;
14274 return 0;
14275 }
14276 _ACEOF
14277 if ac_fn_c_try_link "$LINENO"
14278 then :
14279 eval $cacheid=yes
14280 else $as_nop
14281 eval $cacheid=no
14282 fi
14283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14284 conftest$ac_exeext conftest.$ac_ext
14285 fi
14286
14287
14288 CFLAGS="$xorg_testset_save_CFLAGS"
14289
14290 eval supported=\$$cacheid
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14292 printf "%s\n" "$supported" >&6; }
14293 if test "$supported" = "yes" ; then
14294 BASE_CFLAGS="$BASE_CFLAGS -fd"
14295 found="yes"
14296 fi
14297 fi
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313 xorg_testset_save_CFLAGS="$CFLAGS"
14314
14315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14318 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14319 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14320 then :
14321 printf %s "(cached) " >&6
14322 else $as_nop
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 int i;
14326 _ACEOF
14327 if ac_fn_c_try_compile "$LINENO"
14328 then :
14329 xorg_cv_cc_flag_unknown_warning_option=yes
14330 else $as_nop
14331 xorg_cv_cc_flag_unknown_warning_option=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14334 fi
14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14336 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14338 CFLAGS="$xorg_testset_save_CFLAGS"
14339 fi
14340
14341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344 fi
14345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14349 then :
14350 printf %s "(cached) " >&6
14351 else $as_nop
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354 int i;
14355 _ACEOF
14356 if ac_fn_c_try_compile "$LINENO"
14357 then :
14358 xorg_cv_cc_flag_unused_command_line_argument=yes
14359 else $as_nop
14360 xorg_cv_cc_flag_unused_command_line_argument=no
14361 fi
14362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14363 fi
14364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14365 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14367 CFLAGS="$xorg_testset_save_CFLAGS"
14368 fi
14369
14370 found="no"
14371
14372 if test $found = "no" ; then
14373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14375 fi
14376
14377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14379 fi
14380
14381 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14382
14383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14384 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14385 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14386 if eval test \${$cacheid+y}
14387 then :
14388 printf %s "(cached) " >&6
14389 else $as_nop
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14392 int i;
14393 int
14394 main (void)
14395 {
14396
14397 ;
14398 return 0;
14399 }
14400 _ACEOF
14401 if ac_fn_c_try_link "$LINENO"
14402 then :
14403 eval $cacheid=yes
14404 else $as_nop
14405 eval $cacheid=no
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14408 conftest$ac_exeext conftest.$ac_ext
14409 fi
14410
14411
14412 CFLAGS="$xorg_testset_save_CFLAGS"
14413
14414 eval supported=\$$cacheid
14415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14416 printf "%s\n" "$supported" >&6; }
14417 if test "$supported" = "yes" ; then
14418 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14419 found="yes"
14420 fi
14421 fi
14422
14423
14424
14425
14426
14427 # This chunk adds additional warnings that could catch undesired effects.
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441 xorg_testset_save_CFLAGS="$CFLAGS"
14442
14443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14446 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14447 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14448 then :
14449 printf %s "(cached) " >&6
14450 else $as_nop
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453 int i;
14454 _ACEOF
14455 if ac_fn_c_try_compile "$LINENO"
14456 then :
14457 xorg_cv_cc_flag_unknown_warning_option=yes
14458 else $as_nop
14459 xorg_cv_cc_flag_unknown_warning_option=no
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14462 fi
14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14464 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14466 CFLAGS="$xorg_testset_save_CFLAGS"
14467 fi
14468
14469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14472 fi
14473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14475 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14476 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14477 then :
14478 printf %s "(cached) " >&6
14479 else $as_nop
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482 int i;
14483 _ACEOF
14484 if ac_fn_c_try_compile "$LINENO"
14485 then :
14486 xorg_cv_cc_flag_unused_command_line_argument=yes
14487 else $as_nop
14488 xorg_cv_cc_flag_unused_command_line_argument=no
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14491 fi
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14495 CFLAGS="$xorg_testset_save_CFLAGS"
14496 fi
14497
14498 found="no"
14499
14500 if test $found = "no" ; then
14501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14503 fi
14504
14505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14507 fi
14508
14509 CFLAGS="$CFLAGS -Wunused"
14510
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14512 printf %s "checking if $CC supports -Wunused... " >&6; }
14513 cacheid=xorg_cv_cc_flag__Wunused
14514 if eval test \${$cacheid+y}
14515 then :
14516 printf %s "(cached) " >&6
14517 else $as_nop
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 int i;
14521 int
14522 main (void)
14523 {
14524
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"
14530 then :
14531 eval $cacheid=yes
14532 else $as_nop
14533 eval $cacheid=no
14534 fi
14535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14536 conftest$ac_exeext conftest.$ac_ext
14537 fi
14538
14539
14540 CFLAGS="$xorg_testset_save_CFLAGS"
14541
14542 eval supported=\$$cacheid
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14544 printf "%s\n" "$supported" >&6; }
14545 if test "$supported" = "yes" ; then
14546 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14547 found="yes"
14548 fi
14549 fi
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565 xorg_testset_save_CFLAGS="$CFLAGS"
14566
14567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14570 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14571 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14572 then :
14573 printf %s "(cached) " >&6
14574 else $as_nop
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 int i;
14578 _ACEOF
14579 if ac_fn_c_try_compile "$LINENO"
14580 then :
14581 xorg_cv_cc_flag_unknown_warning_option=yes
14582 else $as_nop
14583 xorg_cv_cc_flag_unknown_warning_option=no
14584 fi
14585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14586 fi
14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14588 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14590 CFLAGS="$xorg_testset_save_CFLAGS"
14591 fi
14592
14593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14596 fi
14597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14599 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14600 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14601 then :
14602 printf %s "(cached) " >&6
14603 else $as_nop
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14606 int i;
14607 _ACEOF
14608 if ac_fn_c_try_compile "$LINENO"
14609 then :
14610 xorg_cv_cc_flag_unused_command_line_argument=yes
14611 else $as_nop
14612 xorg_cv_cc_flag_unused_command_line_argument=no
14613 fi
14614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14615 fi
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14617 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14619 CFLAGS="$xorg_testset_save_CFLAGS"
14620 fi
14621
14622 found="no"
14623
14624 if test $found = "no" ; then
14625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14627 fi
14628
14629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14631 fi
14632
14633 CFLAGS="$CFLAGS -Wuninitialized"
14634
14635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14636 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14637 cacheid=xorg_cv_cc_flag__Wuninitialized
14638 if eval test \${$cacheid+y}
14639 then :
14640 printf %s "(cached) " >&6
14641 else $as_nop
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 int i;
14645 int
14646 main (void)
14647 {
14648
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_link "$LINENO"
14654 then :
14655 eval $cacheid=yes
14656 else $as_nop
14657 eval $cacheid=no
14658 fi
14659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14660 conftest$ac_exeext conftest.$ac_ext
14661 fi
14662
14663
14664 CFLAGS="$xorg_testset_save_CFLAGS"
14665
14666 eval supported=\$$cacheid
14667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14668 printf "%s\n" "$supported" >&6; }
14669 if test "$supported" = "yes" ; then
14670 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14671 found="yes"
14672 fi
14673 fi
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689 xorg_testset_save_CFLAGS="$CFLAGS"
14690
14691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14694 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14695 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14696 then :
14697 printf %s "(cached) " >&6
14698 else $as_nop
14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14701 int i;
14702 _ACEOF
14703 if ac_fn_c_try_compile "$LINENO"
14704 then :
14705 xorg_cv_cc_flag_unknown_warning_option=yes
14706 else $as_nop
14707 xorg_cv_cc_flag_unknown_warning_option=no
14708 fi
14709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14710 fi
14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14712 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14714 CFLAGS="$xorg_testset_save_CFLAGS"
14715 fi
14716
14717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14720 fi
14721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14723 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14724 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14725 then :
14726 printf %s "(cached) " >&6
14727 else $as_nop
14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14730 int i;
14731 _ACEOF
14732 if ac_fn_c_try_compile "$LINENO"
14733 then :
14734 xorg_cv_cc_flag_unused_command_line_argument=yes
14735 else $as_nop
14736 xorg_cv_cc_flag_unused_command_line_argument=no
14737 fi
14738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14739 fi
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14741 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14743 CFLAGS="$xorg_testset_save_CFLAGS"
14744 fi
14745
14746 found="no"
14747
14748 if test $found = "no" ; then
14749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14751 fi
14752
14753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14755 fi
14756
14757 CFLAGS="$CFLAGS -Wshadow"
14758
14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14760 printf %s "checking if $CC supports -Wshadow... " >&6; }
14761 cacheid=xorg_cv_cc_flag__Wshadow
14762 if eval test \${$cacheid+y}
14763 then :
14764 printf %s "(cached) " >&6
14765 else $as_nop
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 int i;
14769 int
14770 main (void)
14771 {
14772
14773 ;
14774 return 0;
14775 }
14776 _ACEOF
14777 if ac_fn_c_try_link "$LINENO"
14778 then :
14779 eval $cacheid=yes
14780 else $as_nop
14781 eval $cacheid=no
14782 fi
14783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14784 conftest$ac_exeext conftest.$ac_ext
14785 fi
14786
14787
14788 CFLAGS="$xorg_testset_save_CFLAGS"
14789
14790 eval supported=\$$cacheid
14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14792 printf "%s\n" "$supported" >&6; }
14793 if test "$supported" = "yes" ; then
14794 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14795 found="yes"
14796 fi
14797 fi
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813 xorg_testset_save_CFLAGS="$CFLAGS"
14814
14815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14818 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14819 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14820 then :
14821 printf %s "(cached) " >&6
14822 else $as_nop
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 int i;
14826 _ACEOF
14827 if ac_fn_c_try_compile "$LINENO"
14828 then :
14829 xorg_cv_cc_flag_unknown_warning_option=yes
14830 else $as_nop
14831 xorg_cv_cc_flag_unknown_warning_option=no
14832 fi
14833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14834 fi
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14836 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14838 CFLAGS="$xorg_testset_save_CFLAGS"
14839 fi
14840
14841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14844 fi
14845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14847 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14848 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14849 then :
14850 printf %s "(cached) " >&6
14851 else $as_nop
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14854 int i;
14855 _ACEOF
14856 if ac_fn_c_try_compile "$LINENO"
14857 then :
14858 xorg_cv_cc_flag_unused_command_line_argument=yes
14859 else $as_nop
14860 xorg_cv_cc_flag_unused_command_line_argument=no
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14863 fi
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14865 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14867 CFLAGS="$xorg_testset_save_CFLAGS"
14868 fi
14869
14870 found="no"
14871
14872 if test $found = "no" ; then
14873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14875 fi
14876
14877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14879 fi
14880
14881 CFLAGS="$CFLAGS -Wmissing-noreturn"
14882
14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14884 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14885 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14886 if eval test \${$cacheid+y}
14887 then :
14888 printf %s "(cached) " >&6
14889 else $as_nop
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 int i;
14893 int
14894 main (void)
14895 {
14896
14897 ;
14898 return 0;
14899 }
14900 _ACEOF
14901 if ac_fn_c_try_link "$LINENO"
14902 then :
14903 eval $cacheid=yes
14904 else $as_nop
14905 eval $cacheid=no
14906 fi
14907 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14908 conftest$ac_exeext conftest.$ac_ext
14909 fi
14910
14911
14912 CFLAGS="$xorg_testset_save_CFLAGS"
14913
14914 eval supported=\$$cacheid
14915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14916 printf "%s\n" "$supported" >&6; }
14917 if test "$supported" = "yes" ; then
14918 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14919 found="yes"
14920 fi
14921 fi
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937 xorg_testset_save_CFLAGS="$CFLAGS"
14938
14939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14942 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14943 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14944 then :
14945 printf %s "(cached) " >&6
14946 else $as_nop
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14949 int i;
14950 _ACEOF
14951 if ac_fn_c_try_compile "$LINENO"
14952 then :
14953 xorg_cv_cc_flag_unknown_warning_option=yes
14954 else $as_nop
14955 xorg_cv_cc_flag_unknown_warning_option=no
14956 fi
14957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14958 fi
14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14960 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14962 CFLAGS="$xorg_testset_save_CFLAGS"
14963 fi
14964
14965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14968 fi
14969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14971 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14972 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14973 then :
14974 printf %s "(cached) " >&6
14975 else $as_nop
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 int i;
14979 _ACEOF
14980 if ac_fn_c_try_compile "$LINENO"
14981 then :
14982 xorg_cv_cc_flag_unused_command_line_argument=yes
14983 else $as_nop
14984 xorg_cv_cc_flag_unused_command_line_argument=no
14985 fi
14986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14987 fi
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14989 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14991 CFLAGS="$xorg_testset_save_CFLAGS"
14992 fi
14993
14994 found="no"
14995
14996 if test $found = "no" ; then
14997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14999 fi
15000
15001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15003 fi
15004
15005 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15006
15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15008 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15009 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15010 if eval test \${$cacheid+y}
15011 then :
15012 printf %s "(cached) " >&6
15013 else $as_nop
15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h. */
15016 int i;
15017 int
15018 main (void)
15019 {
15020
15021 ;
15022 return 0;
15023 }
15024 _ACEOF
15025 if ac_fn_c_try_link "$LINENO"
15026 then :
15027 eval $cacheid=yes
15028 else $as_nop
15029 eval $cacheid=no
15030 fi
15031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15032 conftest$ac_exeext conftest.$ac_ext
15033 fi
15034
15035
15036 CFLAGS="$xorg_testset_save_CFLAGS"
15037
15038 eval supported=\$$cacheid
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15040 printf "%s\n" "$supported" >&6; }
15041 if test "$supported" = "yes" ; then
15042 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15043 found="yes"
15044 fi
15045 fi
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061 xorg_testset_save_CFLAGS="$CFLAGS"
15062
15063 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15066 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15067 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15068 then :
15069 printf %s "(cached) " >&6
15070 else $as_nop
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073 int i;
15074 _ACEOF
15075 if ac_fn_c_try_compile "$LINENO"
15076 then :
15077 xorg_cv_cc_flag_unknown_warning_option=yes
15078 else $as_nop
15079 xorg_cv_cc_flag_unknown_warning_option=no
15080 fi
15081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15082 fi
15083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15084 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15086 CFLAGS="$xorg_testset_save_CFLAGS"
15087 fi
15088
15089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15092 fi
15093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15095 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15096 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15097 then :
15098 printf %s "(cached) " >&6
15099 else $as_nop
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 int i;
15103 _ACEOF
15104 if ac_fn_c_try_compile "$LINENO"
15105 then :
15106 xorg_cv_cc_flag_unused_command_line_argument=yes
15107 else $as_nop
15108 xorg_cv_cc_flag_unused_command_line_argument=no
15109 fi
15110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15111 fi
15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15113 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15115 CFLAGS="$xorg_testset_save_CFLAGS"
15116 fi
15117
15118 found="no"
15119
15120 if test $found = "no" ; then
15121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15123 fi
15124
15125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15127 fi
15128
15129 CFLAGS="$CFLAGS -Wredundant-decls"
15130
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15132 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15133 cacheid=xorg_cv_cc_flag__Wredundant_decls
15134 if eval test \${$cacheid+y}
15135 then :
15136 printf %s "(cached) " >&6
15137 else $as_nop
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 int i;
15141 int
15142 main (void)
15143 {
15144
15145 ;
15146 return 0;
15147 }
15148 _ACEOF
15149 if ac_fn_c_try_link "$LINENO"
15150 then :
15151 eval $cacheid=yes
15152 else $as_nop
15153 eval $cacheid=no
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15156 conftest$ac_exeext conftest.$ac_ext
15157 fi
15158
15159
15160 CFLAGS="$xorg_testset_save_CFLAGS"
15161
15162 eval supported=\$$cacheid
15163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15164 printf "%s\n" "$supported" >&6; }
15165 if test "$supported" = "yes" ; then
15166 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15167 found="yes"
15168 fi
15169 fi
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185 xorg_testset_save_CFLAGS="$CFLAGS"
15186
15187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15190 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15191 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15192 then :
15193 printf %s "(cached) " >&6
15194 else $as_nop
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 int i;
15198 _ACEOF
15199 if ac_fn_c_try_compile "$LINENO"
15200 then :
15201 xorg_cv_cc_flag_unknown_warning_option=yes
15202 else $as_nop
15203 xorg_cv_cc_flag_unknown_warning_option=no
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15206 fi
15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15208 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15210 CFLAGS="$xorg_testset_save_CFLAGS"
15211 fi
15212
15213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15216 fi
15217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15221 then :
15222 printf %s "(cached) " >&6
15223 else $as_nop
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15226 int i;
15227 _ACEOF
15228 if ac_fn_c_try_compile "$LINENO"
15229 then :
15230 xorg_cv_cc_flag_unused_command_line_argument=yes
15231 else $as_nop
15232 xorg_cv_cc_flag_unused_command_line_argument=no
15233 fi
15234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15235 fi
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15239 CFLAGS="$xorg_testset_save_CFLAGS"
15240 fi
15241
15242 found="no"
15243
15244 if test $found = "no" ; then
15245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15247 fi
15248
15249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15251 fi
15252
15253 CFLAGS="$CFLAGS -Wlogical-op"
15254
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15256 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15257 cacheid=xorg_cv_cc_flag__Wlogical_op
15258 if eval test \${$cacheid+y}
15259 then :
15260 printf %s "(cached) " >&6
15261 else $as_nop
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264 int i;
15265 int
15266 main (void)
15267 {
15268
15269 ;
15270 return 0;
15271 }
15272 _ACEOF
15273 if ac_fn_c_try_link "$LINENO"
15274 then :
15275 eval $cacheid=yes
15276 else $as_nop
15277 eval $cacheid=no
15278 fi
15279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15280 conftest$ac_exeext conftest.$ac_ext
15281 fi
15282
15283
15284 CFLAGS="$xorg_testset_save_CFLAGS"
15285
15286 eval supported=\$$cacheid
15287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15288 printf "%s\n" "$supported" >&6; }
15289 if test "$supported" = "yes" ; then
15290 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15291 found="yes"
15292 fi
15293 fi
15294
15295
15296
15297 # These are currently disabled because they are noisy. They will be enabled
15298 # in the future once the codebase is sufficiently modernized to silence
15299 # them. For now, I don't want them to drown out the other warnings.
15300 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15301 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15302 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15303
15304 # Turn some warnings into errors, so we don't accidently get successful builds
15305 # when there are problems that should be fixed.
15306
15307 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321 xorg_testset_save_CFLAGS="$CFLAGS"
15322
15323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15326 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15327 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15328 then :
15329 printf %s "(cached) " >&6
15330 else $as_nop
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333 int i;
15334 _ACEOF
15335 if ac_fn_c_try_compile "$LINENO"
15336 then :
15337 xorg_cv_cc_flag_unknown_warning_option=yes
15338 else $as_nop
15339 xorg_cv_cc_flag_unknown_warning_option=no
15340 fi
15341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15342 fi
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15344 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15346 CFLAGS="$xorg_testset_save_CFLAGS"
15347 fi
15348
15349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15352 fi
15353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15355 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15356 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15357 then :
15358 printf %s "(cached) " >&6
15359 else $as_nop
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 int i;
15363 _ACEOF
15364 if ac_fn_c_try_compile "$LINENO"
15365 then :
15366 xorg_cv_cc_flag_unused_command_line_argument=yes
15367 else $as_nop
15368 xorg_cv_cc_flag_unused_command_line_argument=no
15369 fi
15370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15371 fi
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15373 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15375 CFLAGS="$xorg_testset_save_CFLAGS"
15376 fi
15377
15378 found="no"
15379
15380 if test $found = "no" ; then
15381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15383 fi
15384
15385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15387 fi
15388
15389 CFLAGS="$CFLAGS -Werror=implicit"
15390
15391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15392 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15393 cacheid=xorg_cv_cc_flag__Werror_implicit
15394 if eval test \${$cacheid+y}
15395 then :
15396 printf %s "(cached) " >&6
15397 else $as_nop
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400 int i;
15401 int
15402 main (void)
15403 {
15404
15405 ;
15406 return 0;
15407 }
15408 _ACEOF
15409 if ac_fn_c_try_link "$LINENO"
15410 then :
15411 eval $cacheid=yes
15412 else $as_nop
15413 eval $cacheid=no
15414 fi
15415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15416 conftest$ac_exeext conftest.$ac_ext
15417 fi
15418
15419
15420 CFLAGS="$xorg_testset_save_CFLAGS"
15421
15422 eval supported=\$$cacheid
15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15424 printf "%s\n" "$supported" >&6; }
15425 if test "$supported" = "yes" ; then
15426 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15427 found="yes"
15428 fi
15429 fi
15430
15431 if test $found = "no" ; then
15432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15434 fi
15435
15436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15438 fi
15439
15440 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15441
15442 { 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
15443 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15444 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15445 if eval test \${$cacheid+y}
15446 then :
15447 printf %s "(cached) " >&6
15448 else $as_nop
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 int i;
15452 int
15453 main (void)
15454 {
15455
15456 ;
15457 return 0;
15458 }
15459 _ACEOF
15460 if ac_fn_c_try_link "$LINENO"
15461 then :
15462 eval $cacheid=yes
15463 else $as_nop
15464 eval $cacheid=no
15465 fi
15466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15467 conftest$ac_exeext conftest.$ac_ext
15468 fi
15469
15470
15471 CFLAGS="$xorg_testset_save_CFLAGS"
15472
15473 eval supported=\$$cacheid
15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15475 printf "%s\n" "$supported" >&6; }
15476 if test "$supported" = "yes" ; then
15477 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15478 found="yes"
15479 fi
15480 fi
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496 xorg_testset_save_CFLAGS="$CFLAGS"
15497
15498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15501 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15502 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15503 then :
15504 printf %s "(cached) " >&6
15505 else $as_nop
15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 int i;
15509 _ACEOF
15510 if ac_fn_c_try_compile "$LINENO"
15511 then :
15512 xorg_cv_cc_flag_unknown_warning_option=yes
15513 else $as_nop
15514 xorg_cv_cc_flag_unknown_warning_option=no
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15517 fi
15518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15519 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15521 CFLAGS="$xorg_testset_save_CFLAGS"
15522 fi
15523
15524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15527 fi
15528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15530 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15531 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15532 then :
15533 printf %s "(cached) " >&6
15534 else $as_nop
15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15537 int i;
15538 _ACEOF
15539 if ac_fn_c_try_compile "$LINENO"
15540 then :
15541 xorg_cv_cc_flag_unused_command_line_argument=yes
15542 else $as_nop
15543 xorg_cv_cc_flag_unused_command_line_argument=no
15544 fi
15545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15546 fi
15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15548 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15550 CFLAGS="$xorg_testset_save_CFLAGS"
15551 fi
15552
15553 found="no"
15554
15555 if test $found = "no" ; then
15556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15558 fi
15559
15560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15562 fi
15563
15564 CFLAGS="$CFLAGS -Werror=nonnull"
15565
15566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15567 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15568 cacheid=xorg_cv_cc_flag__Werror_nonnull
15569 if eval test \${$cacheid+y}
15570 then :
15571 printf %s "(cached) " >&6
15572 else $as_nop
15573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15575 int i;
15576 int
15577 main (void)
15578 {
15579
15580 ;
15581 return 0;
15582 }
15583 _ACEOF
15584 if ac_fn_c_try_link "$LINENO"
15585 then :
15586 eval $cacheid=yes
15587 else $as_nop
15588 eval $cacheid=no
15589 fi
15590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15591 conftest$ac_exeext conftest.$ac_ext
15592 fi
15593
15594
15595 CFLAGS="$xorg_testset_save_CFLAGS"
15596
15597 eval supported=\$$cacheid
15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15599 printf "%s\n" "$supported" >&6; }
15600 if test "$supported" = "yes" ; then
15601 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15602 found="yes"
15603 fi
15604 fi
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620 xorg_testset_save_CFLAGS="$CFLAGS"
15621
15622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15625 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15626 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15627 then :
15628 printf %s "(cached) " >&6
15629 else $as_nop
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15632 int i;
15633 _ACEOF
15634 if ac_fn_c_try_compile "$LINENO"
15635 then :
15636 xorg_cv_cc_flag_unknown_warning_option=yes
15637 else $as_nop
15638 xorg_cv_cc_flag_unknown_warning_option=no
15639 fi
15640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15641 fi
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15643 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15645 CFLAGS="$xorg_testset_save_CFLAGS"
15646 fi
15647
15648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15651 fi
15652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15656 then :
15657 printf %s "(cached) " >&6
15658 else $as_nop
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661 int i;
15662 _ACEOF
15663 if ac_fn_c_try_compile "$LINENO"
15664 then :
15665 xorg_cv_cc_flag_unused_command_line_argument=yes
15666 else $as_nop
15667 xorg_cv_cc_flag_unused_command_line_argument=no
15668 fi
15669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15670 fi
15671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15672 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15674 CFLAGS="$xorg_testset_save_CFLAGS"
15675 fi
15676
15677 found="no"
15678
15679 if test $found = "no" ; then
15680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15682 fi
15683
15684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15686 fi
15687
15688 CFLAGS="$CFLAGS -Werror=init-self"
15689
15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15691 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15692 cacheid=xorg_cv_cc_flag__Werror_init_self
15693 if eval test \${$cacheid+y}
15694 then :
15695 printf %s "(cached) " >&6
15696 else $as_nop
15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15699 int i;
15700 int
15701 main (void)
15702 {
15703
15704 ;
15705 return 0;
15706 }
15707 _ACEOF
15708 if ac_fn_c_try_link "$LINENO"
15709 then :
15710 eval $cacheid=yes
15711 else $as_nop
15712 eval $cacheid=no
15713 fi
15714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15715 conftest$ac_exeext conftest.$ac_ext
15716 fi
15717
15718
15719 CFLAGS="$xorg_testset_save_CFLAGS"
15720
15721 eval supported=\$$cacheid
15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15723 printf "%s\n" "$supported" >&6; }
15724 if test "$supported" = "yes" ; then
15725 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15726 found="yes"
15727 fi
15728 fi
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744 xorg_testset_save_CFLAGS="$CFLAGS"
15745
15746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15749 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15750 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15751 then :
15752 printf %s "(cached) " >&6
15753 else $as_nop
15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h. */
15756 int i;
15757 _ACEOF
15758 if ac_fn_c_try_compile "$LINENO"
15759 then :
15760 xorg_cv_cc_flag_unknown_warning_option=yes
15761 else $as_nop
15762 xorg_cv_cc_flag_unknown_warning_option=no
15763 fi
15764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15765 fi
15766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15767 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15769 CFLAGS="$xorg_testset_save_CFLAGS"
15770 fi
15771
15772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15775 fi
15776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15778 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15779 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15780 then :
15781 printf %s "(cached) " >&6
15782 else $as_nop
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785 int i;
15786 _ACEOF
15787 if ac_fn_c_try_compile "$LINENO"
15788 then :
15789 xorg_cv_cc_flag_unused_command_line_argument=yes
15790 else $as_nop
15791 xorg_cv_cc_flag_unused_command_line_argument=no
15792 fi
15793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15794 fi
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15796 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15798 CFLAGS="$xorg_testset_save_CFLAGS"
15799 fi
15800
15801 found="no"
15802
15803 if test $found = "no" ; then
15804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15806 fi
15807
15808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15810 fi
15811
15812 CFLAGS="$CFLAGS -Werror=main"
15813
15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15815 printf %s "checking if $CC supports -Werror=main... " >&6; }
15816 cacheid=xorg_cv_cc_flag__Werror_main
15817 if eval test \${$cacheid+y}
15818 then :
15819 printf %s "(cached) " >&6
15820 else $as_nop
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 int i;
15824 int
15825 main (void)
15826 {
15827
15828 ;
15829 return 0;
15830 }
15831 _ACEOF
15832 if ac_fn_c_try_link "$LINENO"
15833 then :
15834 eval $cacheid=yes
15835 else $as_nop
15836 eval $cacheid=no
15837 fi
15838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15839 conftest$ac_exeext conftest.$ac_ext
15840 fi
15841
15842
15843 CFLAGS="$xorg_testset_save_CFLAGS"
15844
15845 eval supported=\$$cacheid
15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15847 printf "%s\n" "$supported" >&6; }
15848 if test "$supported" = "yes" ; then
15849 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15850 found="yes"
15851 fi
15852 fi
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868 xorg_testset_save_CFLAGS="$CFLAGS"
15869
15870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15873 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15874 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15875 then :
15876 printf %s "(cached) " >&6
15877 else $as_nop
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 int i;
15881 _ACEOF
15882 if ac_fn_c_try_compile "$LINENO"
15883 then :
15884 xorg_cv_cc_flag_unknown_warning_option=yes
15885 else $as_nop
15886 xorg_cv_cc_flag_unknown_warning_option=no
15887 fi
15888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15889 fi
15890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15891 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15893 CFLAGS="$xorg_testset_save_CFLAGS"
15894 fi
15895
15896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15899 fi
15900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15902 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15903 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15904 then :
15905 printf %s "(cached) " >&6
15906 else $as_nop
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15909 int i;
15910 _ACEOF
15911 if ac_fn_c_try_compile "$LINENO"
15912 then :
15913 xorg_cv_cc_flag_unused_command_line_argument=yes
15914 else $as_nop
15915 xorg_cv_cc_flag_unused_command_line_argument=no
15916 fi
15917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15918 fi
15919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15920 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15922 CFLAGS="$xorg_testset_save_CFLAGS"
15923 fi
15924
15925 found="no"
15926
15927 if test $found = "no" ; then
15928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15930 fi
15931
15932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15934 fi
15935
15936 CFLAGS="$CFLAGS -Werror=missing-braces"
15937
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15939 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15940 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15941 if eval test \${$cacheid+y}
15942 then :
15943 printf %s "(cached) " >&6
15944 else $as_nop
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15947 int i;
15948 int
15949 main (void)
15950 {
15951
15952 ;
15953 return 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_link "$LINENO"
15957 then :
15958 eval $cacheid=yes
15959 else $as_nop
15960 eval $cacheid=no
15961 fi
15962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15963 conftest$ac_exeext conftest.$ac_ext
15964 fi
15965
15966
15967 CFLAGS="$xorg_testset_save_CFLAGS"
15968
15969 eval supported=\$$cacheid
15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15971 printf "%s\n" "$supported" >&6; }
15972 if test "$supported" = "yes" ; then
15973 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15974 found="yes"
15975 fi
15976 fi
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992 xorg_testset_save_CFLAGS="$CFLAGS"
15993
15994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15997 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15998 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15999 then :
16000 printf %s "(cached) " >&6
16001 else $as_nop
16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003 /* end confdefs.h. */
16004 int i;
16005 _ACEOF
16006 if ac_fn_c_try_compile "$LINENO"
16007 then :
16008 xorg_cv_cc_flag_unknown_warning_option=yes
16009 else $as_nop
16010 xorg_cv_cc_flag_unknown_warning_option=no
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16013 fi
16014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16015 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16017 CFLAGS="$xorg_testset_save_CFLAGS"
16018 fi
16019
16020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16023 fi
16024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16026 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16027 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16028 then :
16029 printf %s "(cached) " >&6
16030 else $as_nop
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033 int i;
16034 _ACEOF
16035 if ac_fn_c_try_compile "$LINENO"
16036 then :
16037 xorg_cv_cc_flag_unused_command_line_argument=yes
16038 else $as_nop
16039 xorg_cv_cc_flag_unused_command_line_argument=no
16040 fi
16041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16042 fi
16043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16044 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16046 CFLAGS="$xorg_testset_save_CFLAGS"
16047 fi
16048
16049 found="no"
16050
16051 if test $found = "no" ; then
16052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16054 fi
16055
16056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16058 fi
16059
16060 CFLAGS="$CFLAGS -Werror=sequence-point"
16061
16062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16063 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16064 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16065 if eval test \${$cacheid+y}
16066 then :
16067 printf %s "(cached) " >&6
16068 else $as_nop
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071 int i;
16072 int
16073 main (void)
16074 {
16075
16076 ;
16077 return 0;
16078 }
16079 _ACEOF
16080 if ac_fn_c_try_link "$LINENO"
16081 then :
16082 eval $cacheid=yes
16083 else $as_nop
16084 eval $cacheid=no
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16087 conftest$ac_exeext conftest.$ac_ext
16088 fi
16089
16090
16091 CFLAGS="$xorg_testset_save_CFLAGS"
16092
16093 eval supported=\$$cacheid
16094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16095 printf "%s\n" "$supported" >&6; }
16096 if test "$supported" = "yes" ; then
16097 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16098 found="yes"
16099 fi
16100 fi
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116 xorg_testset_save_CFLAGS="$CFLAGS"
16117
16118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16121 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16122 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16123 then :
16124 printf %s "(cached) " >&6
16125 else $as_nop
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16128 int i;
16129 _ACEOF
16130 if ac_fn_c_try_compile "$LINENO"
16131 then :
16132 xorg_cv_cc_flag_unknown_warning_option=yes
16133 else $as_nop
16134 xorg_cv_cc_flag_unknown_warning_option=no
16135 fi
16136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16137 fi
16138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16139 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16141 CFLAGS="$xorg_testset_save_CFLAGS"
16142 fi
16143
16144 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16147 fi
16148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16150 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16151 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16152 then :
16153 printf %s "(cached) " >&6
16154 else $as_nop
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157 int i;
16158 _ACEOF
16159 if ac_fn_c_try_compile "$LINENO"
16160 then :
16161 xorg_cv_cc_flag_unused_command_line_argument=yes
16162 else $as_nop
16163 xorg_cv_cc_flag_unused_command_line_argument=no
16164 fi
16165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16166 fi
16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16168 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16170 CFLAGS="$xorg_testset_save_CFLAGS"
16171 fi
16172
16173 found="no"
16174
16175 if test $found = "no" ; then
16176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178 fi
16179
16180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16182 fi
16183
16184 CFLAGS="$CFLAGS -Werror=return-type"
16185
16186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16187 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16188 cacheid=xorg_cv_cc_flag__Werror_return_type
16189 if eval test \${$cacheid+y}
16190 then :
16191 printf %s "(cached) " >&6
16192 else $as_nop
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16195 int i;
16196 int
16197 main (void)
16198 {
16199
16200 ;
16201 return 0;
16202 }
16203 _ACEOF
16204 if ac_fn_c_try_link "$LINENO"
16205 then :
16206 eval $cacheid=yes
16207 else $as_nop
16208 eval $cacheid=no
16209 fi
16210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16211 conftest$ac_exeext conftest.$ac_ext
16212 fi
16213
16214
16215 CFLAGS="$xorg_testset_save_CFLAGS"
16216
16217 eval supported=\$$cacheid
16218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16219 printf "%s\n" "$supported" >&6; }
16220 if test "$supported" = "yes" ; then
16221 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16222 found="yes"
16223 fi
16224 fi
16225
16226 if test $found = "no" ; then
16227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16229 fi
16230
16231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16233 fi
16234
16235 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16236
16237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16238 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16239 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16240 if eval test \${$cacheid+y}
16241 then :
16242 printf %s "(cached) " >&6
16243 else $as_nop
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16246 int i;
16247 int
16248 main (void)
16249 {
16250
16251 ;
16252 return 0;
16253 }
16254 _ACEOF
16255 if ac_fn_c_try_link "$LINENO"
16256 then :
16257 eval $cacheid=yes
16258 else $as_nop
16259 eval $cacheid=no
16260 fi
16261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16262 conftest$ac_exeext conftest.$ac_ext
16263 fi
16264
16265
16266 CFLAGS="$xorg_testset_save_CFLAGS"
16267
16268 eval supported=\$$cacheid
16269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16270 printf "%s\n" "$supported" >&6; }
16271 if test "$supported" = "yes" ; then
16272 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16273 found="yes"
16274 fi
16275 fi
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291 xorg_testset_save_CFLAGS="$CFLAGS"
16292
16293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16296 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16297 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16298 then :
16299 printf %s "(cached) " >&6
16300 else $as_nop
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16303 int i;
16304 _ACEOF
16305 if ac_fn_c_try_compile "$LINENO"
16306 then :
16307 xorg_cv_cc_flag_unknown_warning_option=yes
16308 else $as_nop
16309 xorg_cv_cc_flag_unknown_warning_option=no
16310 fi
16311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16312 fi
16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16314 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16316 CFLAGS="$xorg_testset_save_CFLAGS"
16317 fi
16318
16319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16322 fi
16323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16325 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16326 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16327 then :
16328 printf %s "(cached) " >&6
16329 else $as_nop
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16332 int i;
16333 _ACEOF
16334 if ac_fn_c_try_compile "$LINENO"
16335 then :
16336 xorg_cv_cc_flag_unused_command_line_argument=yes
16337 else $as_nop
16338 xorg_cv_cc_flag_unused_command_line_argument=no
16339 fi
16340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16341 fi
16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16343 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16345 CFLAGS="$xorg_testset_save_CFLAGS"
16346 fi
16347
16348 found="no"
16349
16350 if test $found = "no" ; then
16351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16353 fi
16354
16355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16357 fi
16358
16359 CFLAGS="$CFLAGS -Werror=trigraphs"
16360
16361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16362 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16363 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16364 if eval test \${$cacheid+y}
16365 then :
16366 printf %s "(cached) " >&6
16367 else $as_nop
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16370 int i;
16371 int
16372 main (void)
16373 {
16374
16375 ;
16376 return 0;
16377 }
16378 _ACEOF
16379 if ac_fn_c_try_link "$LINENO"
16380 then :
16381 eval $cacheid=yes
16382 else $as_nop
16383 eval $cacheid=no
16384 fi
16385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16386 conftest$ac_exeext conftest.$ac_ext
16387 fi
16388
16389
16390 CFLAGS="$xorg_testset_save_CFLAGS"
16391
16392 eval supported=\$$cacheid
16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16394 printf "%s\n" "$supported" >&6; }
16395 if test "$supported" = "yes" ; then
16396 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16397 found="yes"
16398 fi
16399 fi
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415 xorg_testset_save_CFLAGS="$CFLAGS"
16416
16417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16420 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16421 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16422 then :
16423 printf %s "(cached) " >&6
16424 else $as_nop
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16427 int i;
16428 _ACEOF
16429 if ac_fn_c_try_compile "$LINENO"
16430 then :
16431 xorg_cv_cc_flag_unknown_warning_option=yes
16432 else $as_nop
16433 xorg_cv_cc_flag_unknown_warning_option=no
16434 fi
16435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16436 fi
16437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16438 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16440 CFLAGS="$xorg_testset_save_CFLAGS"
16441 fi
16442
16443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16446 fi
16447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16449 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16450 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16451 then :
16452 printf %s "(cached) " >&6
16453 else $as_nop
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 int i;
16457 _ACEOF
16458 if ac_fn_c_try_compile "$LINENO"
16459 then :
16460 xorg_cv_cc_flag_unused_command_line_argument=yes
16461 else $as_nop
16462 xorg_cv_cc_flag_unused_command_line_argument=no
16463 fi
16464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16465 fi
16466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16467 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16469 CFLAGS="$xorg_testset_save_CFLAGS"
16470 fi
16471
16472 found="no"
16473
16474 if test $found = "no" ; then
16475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16477 fi
16478
16479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16481 fi
16482
16483 CFLAGS="$CFLAGS -Werror=array-bounds"
16484
16485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16486 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16487 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16488 if eval test \${$cacheid+y}
16489 then :
16490 printf %s "(cached) " >&6
16491 else $as_nop
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16494 int i;
16495 int
16496 main (void)
16497 {
16498
16499 ;
16500 return 0;
16501 }
16502 _ACEOF
16503 if ac_fn_c_try_link "$LINENO"
16504 then :
16505 eval $cacheid=yes
16506 else $as_nop
16507 eval $cacheid=no
16508 fi
16509 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16510 conftest$ac_exeext conftest.$ac_ext
16511 fi
16512
16513
16514 CFLAGS="$xorg_testset_save_CFLAGS"
16515
16516 eval supported=\$$cacheid
16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16518 printf "%s\n" "$supported" >&6; }
16519 if test "$supported" = "yes" ; then
16520 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16521 found="yes"
16522 fi
16523 fi
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539 xorg_testset_save_CFLAGS="$CFLAGS"
16540
16541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16544 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16545 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16546 then :
16547 printf %s "(cached) " >&6
16548 else $as_nop
16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h. */
16551 int i;
16552 _ACEOF
16553 if ac_fn_c_try_compile "$LINENO"
16554 then :
16555 xorg_cv_cc_flag_unknown_warning_option=yes
16556 else $as_nop
16557 xorg_cv_cc_flag_unknown_warning_option=no
16558 fi
16559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16560 fi
16561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16562 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16564 CFLAGS="$xorg_testset_save_CFLAGS"
16565 fi
16566
16567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16570 fi
16571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16573 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16574 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16575 then :
16576 printf %s "(cached) " >&6
16577 else $as_nop
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16580 int i;
16581 _ACEOF
16582 if ac_fn_c_try_compile "$LINENO"
16583 then :
16584 xorg_cv_cc_flag_unused_command_line_argument=yes
16585 else $as_nop
16586 xorg_cv_cc_flag_unused_command_line_argument=no
16587 fi
16588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16589 fi
16590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16591 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16593 CFLAGS="$xorg_testset_save_CFLAGS"
16594 fi
16595
16596 found="no"
16597
16598 if test $found = "no" ; then
16599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16601 fi
16602
16603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16605 fi
16606
16607 CFLAGS="$CFLAGS -Werror=write-strings"
16608
16609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16610 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16611 cacheid=xorg_cv_cc_flag__Werror_write_strings
16612 if eval test \${$cacheid+y}
16613 then :
16614 printf %s "(cached) " >&6
16615 else $as_nop
16616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617 /* end confdefs.h. */
16618 int i;
16619 int
16620 main (void)
16621 {
16622
16623 ;
16624 return 0;
16625 }
16626 _ACEOF
16627 if ac_fn_c_try_link "$LINENO"
16628 then :
16629 eval $cacheid=yes
16630 else $as_nop
16631 eval $cacheid=no
16632 fi
16633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16634 conftest$ac_exeext conftest.$ac_ext
16635 fi
16636
16637
16638 CFLAGS="$xorg_testset_save_CFLAGS"
16639
16640 eval supported=\$$cacheid
16641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16642 printf "%s\n" "$supported" >&6; }
16643 if test "$supported" = "yes" ; then
16644 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16645 found="yes"
16646 fi
16647 fi
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663 xorg_testset_save_CFLAGS="$CFLAGS"
16664
16665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16669 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16670 then :
16671 printf %s "(cached) " >&6
16672 else $as_nop
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16675 int i;
16676 _ACEOF
16677 if ac_fn_c_try_compile "$LINENO"
16678 then :
16679 xorg_cv_cc_flag_unknown_warning_option=yes
16680 else $as_nop
16681 xorg_cv_cc_flag_unknown_warning_option=no
16682 fi
16683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16684 fi
16685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16686 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16688 CFLAGS="$xorg_testset_save_CFLAGS"
16689 fi
16690
16691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16694 fi
16695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16697 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16698 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16699 then :
16700 printf %s "(cached) " >&6
16701 else $as_nop
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704 int i;
16705 _ACEOF
16706 if ac_fn_c_try_compile "$LINENO"
16707 then :
16708 xorg_cv_cc_flag_unused_command_line_argument=yes
16709 else $as_nop
16710 xorg_cv_cc_flag_unused_command_line_argument=no
16711 fi
16712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16713 fi
16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16715 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16717 CFLAGS="$xorg_testset_save_CFLAGS"
16718 fi
16719
16720 found="no"
16721
16722 if test $found = "no" ; then
16723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16725 fi
16726
16727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16729 fi
16730
16731 CFLAGS="$CFLAGS -Werror=address"
16732
16733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16734 printf %s "checking if $CC supports -Werror=address... " >&6; }
16735 cacheid=xorg_cv_cc_flag__Werror_address
16736 if eval test \${$cacheid+y}
16737 then :
16738 printf %s "(cached) " >&6
16739 else $as_nop
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 int i;
16743 int
16744 main (void)
16745 {
16746
16747 ;
16748 return 0;
16749 }
16750 _ACEOF
16751 if ac_fn_c_try_link "$LINENO"
16752 then :
16753 eval $cacheid=yes
16754 else $as_nop
16755 eval $cacheid=no
16756 fi
16757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16758 conftest$ac_exeext conftest.$ac_ext
16759 fi
16760
16761
16762 CFLAGS="$xorg_testset_save_CFLAGS"
16763
16764 eval supported=\$$cacheid
16765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16766 printf "%s\n" "$supported" >&6; }
16767 if test "$supported" = "yes" ; then
16768 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16769 found="yes"
16770 fi
16771 fi
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787 xorg_testset_save_CFLAGS="$CFLAGS"
16788
16789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16792 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16793 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16794 then :
16795 printf %s "(cached) " >&6
16796 else $as_nop
16797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798 /* end confdefs.h. */
16799 int i;
16800 _ACEOF
16801 if ac_fn_c_try_compile "$LINENO"
16802 then :
16803 xorg_cv_cc_flag_unknown_warning_option=yes
16804 else $as_nop
16805 xorg_cv_cc_flag_unknown_warning_option=no
16806 fi
16807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16808 fi
16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16810 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16812 CFLAGS="$xorg_testset_save_CFLAGS"
16813 fi
16814
16815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16818 fi
16819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16821 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16822 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16823 then :
16824 printf %s "(cached) " >&6
16825 else $as_nop
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16828 int i;
16829 _ACEOF
16830 if ac_fn_c_try_compile "$LINENO"
16831 then :
16832 xorg_cv_cc_flag_unused_command_line_argument=yes
16833 else $as_nop
16834 xorg_cv_cc_flag_unused_command_line_argument=no
16835 fi
16836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16837 fi
16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16839 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16841 CFLAGS="$xorg_testset_save_CFLAGS"
16842 fi
16843
16844 found="no"
16845
16846 if test $found = "no" ; then
16847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16849 fi
16850
16851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16853 fi
16854
16855 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16856
16857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16858 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16859 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16860 if eval test \${$cacheid+y}
16861 then :
16862 printf %s "(cached) " >&6
16863 else $as_nop
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866 int i;
16867 int
16868 main (void)
16869 {
16870
16871 ;
16872 return 0;
16873 }
16874 _ACEOF
16875 if ac_fn_c_try_link "$LINENO"
16876 then :
16877 eval $cacheid=yes
16878 else $as_nop
16879 eval $cacheid=no
16880 fi
16881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16882 conftest$ac_exeext conftest.$ac_ext
16883 fi
16884
16885
16886 CFLAGS="$xorg_testset_save_CFLAGS"
16887
16888 eval supported=\$$cacheid
16889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16890 printf "%s\n" "$supported" >&6; }
16891 if test "$supported" = "yes" ; then
16892 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16893 found="yes"
16894 fi
16895 fi
16896
16897 if test $found = "no" ; then
16898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16900 fi
16901
16902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16904 fi
16905
16906 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16907
16908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16909 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16910 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16911 if eval test \${$cacheid+y}
16912 then :
16913 printf %s "(cached) " >&6
16914 else $as_nop
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16917 int i;
16918 int
16919 main (void)
16920 {
16921
16922 ;
16923 return 0;
16924 }
16925 _ACEOF
16926 if ac_fn_c_try_link "$LINENO"
16927 then :
16928 eval $cacheid=yes
16929 else $as_nop
16930 eval $cacheid=no
16931 fi
16932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16933 conftest$ac_exeext conftest.$ac_ext
16934 fi
16935
16936
16937 CFLAGS="$xorg_testset_save_CFLAGS"
16938
16939 eval supported=\$$cacheid
16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16941 printf "%s\n" "$supported" >&6; }
16942 if test "$supported" = "yes" ; then
16943 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16944 found="yes"
16945 fi
16946 fi
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962 xorg_testset_save_CFLAGS="$CFLAGS"
16963
16964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16968 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16969 then :
16970 printf %s "(cached) " >&6
16971 else $as_nop
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h. */
16974 int i;
16975 _ACEOF
16976 if ac_fn_c_try_compile "$LINENO"
16977 then :
16978 xorg_cv_cc_flag_unknown_warning_option=yes
16979 else $as_nop
16980 xorg_cv_cc_flag_unknown_warning_option=no
16981 fi
16982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16983 fi
16984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16987 CFLAGS="$xorg_testset_save_CFLAGS"
16988 fi
16989
16990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16993 fi
16994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16998 then :
16999 printf %s "(cached) " >&6
17000 else $as_nop
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17003 int i;
17004 _ACEOF
17005 if ac_fn_c_try_compile "$LINENO"
17006 then :
17007 xorg_cv_cc_flag_unused_command_line_argument=yes
17008 else $as_nop
17009 xorg_cv_cc_flag_unused_command_line_argument=no
17010 fi
17011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17012 fi
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17016 CFLAGS="$xorg_testset_save_CFLAGS"
17017 fi
17018
17019 found="no"
17020
17021 if test $found = "no" ; then
17022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024 fi
17025
17026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17028 fi
17029
17030 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17031
17032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17033 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17034 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17035 if eval test \${$cacheid+y}
17036 then :
17037 printf %s "(cached) " >&6
17038 else $as_nop
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17041 int i;
17042 int
17043 main (void)
17044 {
17045
17046 ;
17047 return 0;
17048 }
17049 _ACEOF
17050 if ac_fn_c_try_link "$LINENO"
17051 then :
17052 eval $cacheid=yes
17053 else $as_nop
17054 eval $cacheid=no
17055 fi
17056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17057 conftest$ac_exeext conftest.$ac_ext
17058 fi
17059
17060
17061 CFLAGS="$xorg_testset_save_CFLAGS"
17062
17063 eval supported=\$$cacheid
17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17065 printf "%s\n" "$supported" >&6; }
17066 if test "$supported" = "yes" ; then
17067 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17068 found="yes"
17069 fi
17070 fi
17071
17072 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17073 else
17074 { 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
17075 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;}
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089 xorg_testset_save_CFLAGS="$CFLAGS"
17090
17091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17094 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17095 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17096 then :
17097 printf %s "(cached) " >&6
17098 else $as_nop
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101 int i;
17102 _ACEOF
17103 if ac_fn_c_try_compile "$LINENO"
17104 then :
17105 xorg_cv_cc_flag_unknown_warning_option=yes
17106 else $as_nop
17107 xorg_cv_cc_flag_unknown_warning_option=no
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17110 fi
17111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17112 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17114 CFLAGS="$xorg_testset_save_CFLAGS"
17115 fi
17116
17117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17120 fi
17121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17123 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17124 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17125 then :
17126 printf %s "(cached) " >&6
17127 else $as_nop
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130 int i;
17131 _ACEOF
17132 if ac_fn_c_try_compile "$LINENO"
17133 then :
17134 xorg_cv_cc_flag_unused_command_line_argument=yes
17135 else $as_nop
17136 xorg_cv_cc_flag_unused_command_line_argument=no
17137 fi
17138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17139 fi
17140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17141 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17143 CFLAGS="$xorg_testset_save_CFLAGS"
17144 fi
17145
17146 found="no"
17147
17148 if test $found = "no" ; then
17149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17151 fi
17152
17153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17155 fi
17156
17157 CFLAGS="$CFLAGS -Wimplicit"
17158
17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17160 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17161 cacheid=xorg_cv_cc_flag__Wimplicit
17162 if eval test \${$cacheid+y}
17163 then :
17164 printf %s "(cached) " >&6
17165 else $as_nop
17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167 /* end confdefs.h. */
17168 int i;
17169 int
17170 main (void)
17171 {
17172
17173 ;
17174 return 0;
17175 }
17176 _ACEOF
17177 if ac_fn_c_try_link "$LINENO"
17178 then :
17179 eval $cacheid=yes
17180 else $as_nop
17181 eval $cacheid=no
17182 fi
17183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17184 conftest$ac_exeext conftest.$ac_ext
17185 fi
17186
17187
17188 CFLAGS="$xorg_testset_save_CFLAGS"
17189
17190 eval supported=\$$cacheid
17191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17192 printf "%s\n" "$supported" >&6; }
17193 if test "$supported" = "yes" ; then
17194 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17195 found="yes"
17196 fi
17197 fi
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213 xorg_testset_save_CFLAGS="$CFLAGS"
17214
17215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17218 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17219 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17220 then :
17221 printf %s "(cached) " >&6
17222 else $as_nop
17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17225 int i;
17226 _ACEOF
17227 if ac_fn_c_try_compile "$LINENO"
17228 then :
17229 xorg_cv_cc_flag_unknown_warning_option=yes
17230 else $as_nop
17231 xorg_cv_cc_flag_unknown_warning_option=no
17232 fi
17233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17234 fi
17235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17236 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17238 CFLAGS="$xorg_testset_save_CFLAGS"
17239 fi
17240
17241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17244 fi
17245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17247 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17248 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17249 then :
17250 printf %s "(cached) " >&6
17251 else $as_nop
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254 int i;
17255 _ACEOF
17256 if ac_fn_c_try_compile "$LINENO"
17257 then :
17258 xorg_cv_cc_flag_unused_command_line_argument=yes
17259 else $as_nop
17260 xorg_cv_cc_flag_unused_command_line_argument=no
17261 fi
17262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17263 fi
17264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17265 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17267 CFLAGS="$xorg_testset_save_CFLAGS"
17268 fi
17269
17270 found="no"
17271
17272 if test $found = "no" ; then
17273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17275 fi
17276
17277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17279 fi
17280
17281 CFLAGS="$CFLAGS -Wnonnull"
17282
17283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17284 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17285 cacheid=xorg_cv_cc_flag__Wnonnull
17286 if eval test \${$cacheid+y}
17287 then :
17288 printf %s "(cached) " >&6
17289 else $as_nop
17290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17292 int i;
17293 int
17294 main (void)
17295 {
17296
17297 ;
17298 return 0;
17299 }
17300 _ACEOF
17301 if ac_fn_c_try_link "$LINENO"
17302 then :
17303 eval $cacheid=yes
17304 else $as_nop
17305 eval $cacheid=no
17306 fi
17307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17308 conftest$ac_exeext conftest.$ac_ext
17309 fi
17310
17311
17312 CFLAGS="$xorg_testset_save_CFLAGS"
17313
17314 eval supported=\$$cacheid
17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17316 printf "%s\n" "$supported" >&6; }
17317 if test "$supported" = "yes" ; then
17318 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17319 found="yes"
17320 fi
17321 fi
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337 xorg_testset_save_CFLAGS="$CFLAGS"
17338
17339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17342 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17343 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17344 then :
17345 printf %s "(cached) " >&6
17346 else $as_nop
17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348 /* end confdefs.h. */
17349 int i;
17350 _ACEOF
17351 if ac_fn_c_try_compile "$LINENO"
17352 then :
17353 xorg_cv_cc_flag_unknown_warning_option=yes
17354 else $as_nop
17355 xorg_cv_cc_flag_unknown_warning_option=no
17356 fi
17357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17358 fi
17359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17360 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17362 CFLAGS="$xorg_testset_save_CFLAGS"
17363 fi
17364
17365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17368 fi
17369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17371 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17372 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17373 then :
17374 printf %s "(cached) " >&6
17375 else $as_nop
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17378 int i;
17379 _ACEOF
17380 if ac_fn_c_try_compile "$LINENO"
17381 then :
17382 xorg_cv_cc_flag_unused_command_line_argument=yes
17383 else $as_nop
17384 xorg_cv_cc_flag_unused_command_line_argument=no
17385 fi
17386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17387 fi
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17389 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17391 CFLAGS="$xorg_testset_save_CFLAGS"
17392 fi
17393
17394 found="no"
17395
17396 if test $found = "no" ; then
17397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17399 fi
17400
17401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17403 fi
17404
17405 CFLAGS="$CFLAGS -Winit-self"
17406
17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17408 printf %s "checking if $CC supports -Winit-self... " >&6; }
17409 cacheid=xorg_cv_cc_flag__Winit_self
17410 if eval test \${$cacheid+y}
17411 then :
17412 printf %s "(cached) " >&6
17413 else $as_nop
17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17416 int i;
17417 int
17418 main (void)
17419 {
17420
17421 ;
17422 return 0;
17423 }
17424 _ACEOF
17425 if ac_fn_c_try_link "$LINENO"
17426 then :
17427 eval $cacheid=yes
17428 else $as_nop
17429 eval $cacheid=no
17430 fi
17431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17432 conftest$ac_exeext conftest.$ac_ext
17433 fi
17434
17435
17436 CFLAGS="$xorg_testset_save_CFLAGS"
17437
17438 eval supported=\$$cacheid
17439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17440 printf "%s\n" "$supported" >&6; }
17441 if test "$supported" = "yes" ; then
17442 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17443 found="yes"
17444 fi
17445 fi
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461 xorg_testset_save_CFLAGS="$CFLAGS"
17462
17463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17466 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17467 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17468 then :
17469 printf %s "(cached) " >&6
17470 else $as_nop
17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17473 int i;
17474 _ACEOF
17475 if ac_fn_c_try_compile "$LINENO"
17476 then :
17477 xorg_cv_cc_flag_unknown_warning_option=yes
17478 else $as_nop
17479 xorg_cv_cc_flag_unknown_warning_option=no
17480 fi
17481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17482 fi
17483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17484 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17486 CFLAGS="$xorg_testset_save_CFLAGS"
17487 fi
17488
17489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17492 fi
17493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17497 then :
17498 printf %s "(cached) " >&6
17499 else $as_nop
17500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501 /* end confdefs.h. */
17502 int i;
17503 _ACEOF
17504 if ac_fn_c_try_compile "$LINENO"
17505 then :
17506 xorg_cv_cc_flag_unused_command_line_argument=yes
17507 else $as_nop
17508 xorg_cv_cc_flag_unused_command_line_argument=no
17509 fi
17510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17511 fi
17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17513 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17515 CFLAGS="$xorg_testset_save_CFLAGS"
17516 fi
17517
17518 found="no"
17519
17520 if test $found = "no" ; then
17521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17523 fi
17524
17525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17527 fi
17528
17529 CFLAGS="$CFLAGS -Wmain"
17530
17531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17532 printf %s "checking if $CC supports -Wmain... " >&6; }
17533 cacheid=xorg_cv_cc_flag__Wmain
17534 if eval test \${$cacheid+y}
17535 then :
17536 printf %s "(cached) " >&6
17537 else $as_nop
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17540 int i;
17541 int
17542 main (void)
17543 {
17544
17545 ;
17546 return 0;
17547 }
17548 _ACEOF
17549 if ac_fn_c_try_link "$LINENO"
17550 then :
17551 eval $cacheid=yes
17552 else $as_nop
17553 eval $cacheid=no
17554 fi
17555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17556 conftest$ac_exeext conftest.$ac_ext
17557 fi
17558
17559
17560 CFLAGS="$xorg_testset_save_CFLAGS"
17561
17562 eval supported=\$$cacheid
17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17564 printf "%s\n" "$supported" >&6; }
17565 if test "$supported" = "yes" ; then
17566 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17567 found="yes"
17568 fi
17569 fi
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585 xorg_testset_save_CFLAGS="$CFLAGS"
17586
17587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17590 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17591 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17592 then :
17593 printf %s "(cached) " >&6
17594 else $as_nop
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597 int i;
17598 _ACEOF
17599 if ac_fn_c_try_compile "$LINENO"
17600 then :
17601 xorg_cv_cc_flag_unknown_warning_option=yes
17602 else $as_nop
17603 xorg_cv_cc_flag_unknown_warning_option=no
17604 fi
17605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17606 fi
17607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17608 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17610 CFLAGS="$xorg_testset_save_CFLAGS"
17611 fi
17612
17613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17616 fi
17617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17621 then :
17622 printf %s "(cached) " >&6
17623 else $as_nop
17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h. */
17626 int i;
17627 _ACEOF
17628 if ac_fn_c_try_compile "$LINENO"
17629 then :
17630 xorg_cv_cc_flag_unused_command_line_argument=yes
17631 else $as_nop
17632 xorg_cv_cc_flag_unused_command_line_argument=no
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17635 fi
17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17637 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17639 CFLAGS="$xorg_testset_save_CFLAGS"
17640 fi
17641
17642 found="no"
17643
17644 if test $found = "no" ; then
17645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17647 fi
17648
17649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17651 fi
17652
17653 CFLAGS="$CFLAGS -Wmissing-braces"
17654
17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17656 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17657 cacheid=xorg_cv_cc_flag__Wmissing_braces
17658 if eval test \${$cacheid+y}
17659 then :
17660 printf %s "(cached) " >&6
17661 else $as_nop
17662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663 /* end confdefs.h. */
17664 int i;
17665 int
17666 main (void)
17667 {
17668
17669 ;
17670 return 0;
17671 }
17672 _ACEOF
17673 if ac_fn_c_try_link "$LINENO"
17674 then :
17675 eval $cacheid=yes
17676 else $as_nop
17677 eval $cacheid=no
17678 fi
17679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17680 conftest$ac_exeext conftest.$ac_ext
17681 fi
17682
17683
17684 CFLAGS="$xorg_testset_save_CFLAGS"
17685
17686 eval supported=\$$cacheid
17687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17688 printf "%s\n" "$supported" >&6; }
17689 if test "$supported" = "yes" ; then
17690 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17691 found="yes"
17692 fi
17693 fi
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709 xorg_testset_save_CFLAGS="$CFLAGS"
17710
17711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17714 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17715 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17716 then :
17717 printf %s "(cached) " >&6
17718 else $as_nop
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17721 int i;
17722 _ACEOF
17723 if ac_fn_c_try_compile "$LINENO"
17724 then :
17725 xorg_cv_cc_flag_unknown_warning_option=yes
17726 else $as_nop
17727 xorg_cv_cc_flag_unknown_warning_option=no
17728 fi
17729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17730 fi
17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17732 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17734 CFLAGS="$xorg_testset_save_CFLAGS"
17735 fi
17736
17737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17740 fi
17741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17743 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17744 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17745 then :
17746 printf %s "(cached) " >&6
17747 else $as_nop
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17750 int i;
17751 _ACEOF
17752 if ac_fn_c_try_compile "$LINENO"
17753 then :
17754 xorg_cv_cc_flag_unused_command_line_argument=yes
17755 else $as_nop
17756 xorg_cv_cc_flag_unused_command_line_argument=no
17757 fi
17758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17759 fi
17760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17761 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17763 CFLAGS="$xorg_testset_save_CFLAGS"
17764 fi
17765
17766 found="no"
17767
17768 if test $found = "no" ; then
17769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17771 fi
17772
17773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17775 fi
17776
17777 CFLAGS="$CFLAGS -Wsequence-point"
17778
17779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17780 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17781 cacheid=xorg_cv_cc_flag__Wsequence_point
17782 if eval test \${$cacheid+y}
17783 then :
17784 printf %s "(cached) " >&6
17785 else $as_nop
17786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17788 int i;
17789 int
17790 main (void)
17791 {
17792
17793 ;
17794 return 0;
17795 }
17796 _ACEOF
17797 if ac_fn_c_try_link "$LINENO"
17798 then :
17799 eval $cacheid=yes
17800 else $as_nop
17801 eval $cacheid=no
17802 fi
17803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17804 conftest$ac_exeext conftest.$ac_ext
17805 fi
17806
17807
17808 CFLAGS="$xorg_testset_save_CFLAGS"
17809
17810 eval supported=\$$cacheid
17811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17812 printf "%s\n" "$supported" >&6; }
17813 if test "$supported" = "yes" ; then
17814 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17815 found="yes"
17816 fi
17817 fi
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833 xorg_testset_save_CFLAGS="$CFLAGS"
17834
17835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17840 then :
17841 printf %s "(cached) " >&6
17842 else $as_nop
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17845 int i;
17846 _ACEOF
17847 if ac_fn_c_try_compile "$LINENO"
17848 then :
17849 xorg_cv_cc_flag_unknown_warning_option=yes
17850 else $as_nop
17851 xorg_cv_cc_flag_unknown_warning_option=no
17852 fi
17853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17854 fi
17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17858 CFLAGS="$xorg_testset_save_CFLAGS"
17859 fi
17860
17861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17864 fi
17865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17869 then :
17870 printf %s "(cached) " >&6
17871 else $as_nop
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17874 int i;
17875 _ACEOF
17876 if ac_fn_c_try_compile "$LINENO"
17877 then :
17878 xorg_cv_cc_flag_unused_command_line_argument=yes
17879 else $as_nop
17880 xorg_cv_cc_flag_unused_command_line_argument=no
17881 fi
17882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17883 fi
17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17887 CFLAGS="$xorg_testset_save_CFLAGS"
17888 fi
17889
17890 found="no"
17891
17892 if test $found = "no" ; then
17893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17895 fi
17896
17897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17899 fi
17900
17901 CFLAGS="$CFLAGS -Wreturn-type"
17902
17903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17904 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17905 cacheid=xorg_cv_cc_flag__Wreturn_type
17906 if eval test \${$cacheid+y}
17907 then :
17908 printf %s "(cached) " >&6
17909 else $as_nop
17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h. */
17912 int i;
17913 int
17914 main (void)
17915 {
17916
17917 ;
17918 return 0;
17919 }
17920 _ACEOF
17921 if ac_fn_c_try_link "$LINENO"
17922 then :
17923 eval $cacheid=yes
17924 else $as_nop
17925 eval $cacheid=no
17926 fi
17927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17928 conftest$ac_exeext conftest.$ac_ext
17929 fi
17930
17931
17932 CFLAGS="$xorg_testset_save_CFLAGS"
17933
17934 eval supported=\$$cacheid
17935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17936 printf "%s\n" "$supported" >&6; }
17937 if test "$supported" = "yes" ; then
17938 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17939 found="yes"
17940 fi
17941 fi
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957 xorg_testset_save_CFLAGS="$CFLAGS"
17958
17959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17964 then :
17965 printf %s "(cached) " >&6
17966 else $as_nop
17967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h. */
17969 int i;
17970 _ACEOF
17971 if ac_fn_c_try_compile "$LINENO"
17972 then :
17973 xorg_cv_cc_flag_unknown_warning_option=yes
17974 else $as_nop
17975 xorg_cv_cc_flag_unknown_warning_option=no
17976 fi
17977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17978 fi
17979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17982 CFLAGS="$xorg_testset_save_CFLAGS"
17983 fi
17984
17985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17988 fi
17989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17993 then :
17994 printf %s "(cached) " >&6
17995 else $as_nop
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17998 int i;
17999 _ACEOF
18000 if ac_fn_c_try_compile "$LINENO"
18001 then :
18002 xorg_cv_cc_flag_unused_command_line_argument=yes
18003 else $as_nop
18004 xorg_cv_cc_flag_unused_command_line_argument=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18007 fi
18008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18011 CFLAGS="$xorg_testset_save_CFLAGS"
18012 fi
18013
18014 found="no"
18015
18016 if test $found = "no" ; then
18017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18019 fi
18020
18021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18023 fi
18024
18025 CFLAGS="$CFLAGS -Wtrigraphs"
18026
18027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18028 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18029 cacheid=xorg_cv_cc_flag__Wtrigraphs
18030 if eval test \${$cacheid+y}
18031 then :
18032 printf %s "(cached) " >&6
18033 else $as_nop
18034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035 /* end confdefs.h. */
18036 int i;
18037 int
18038 main (void)
18039 {
18040
18041 ;
18042 return 0;
18043 }
18044 _ACEOF
18045 if ac_fn_c_try_link "$LINENO"
18046 then :
18047 eval $cacheid=yes
18048 else $as_nop
18049 eval $cacheid=no
18050 fi
18051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18052 conftest$ac_exeext conftest.$ac_ext
18053 fi
18054
18055
18056 CFLAGS="$xorg_testset_save_CFLAGS"
18057
18058 eval supported=\$$cacheid
18059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18060 printf "%s\n" "$supported" >&6; }
18061 if test "$supported" = "yes" ; then
18062 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18063 found="yes"
18064 fi
18065 fi
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081 xorg_testset_save_CFLAGS="$CFLAGS"
18082
18083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18087 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18088 then :
18089 printf %s "(cached) " >&6
18090 else $as_nop
18091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h. */
18093 int i;
18094 _ACEOF
18095 if ac_fn_c_try_compile "$LINENO"
18096 then :
18097 xorg_cv_cc_flag_unknown_warning_option=yes
18098 else $as_nop
18099 xorg_cv_cc_flag_unknown_warning_option=no
18100 fi
18101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18102 fi
18103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18104 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18106 CFLAGS="$xorg_testset_save_CFLAGS"
18107 fi
18108
18109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18112 fi
18113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18115 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18116 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18117 then :
18118 printf %s "(cached) " >&6
18119 else $as_nop
18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h. */
18122 int i;
18123 _ACEOF
18124 if ac_fn_c_try_compile "$LINENO"
18125 then :
18126 xorg_cv_cc_flag_unused_command_line_argument=yes
18127 else $as_nop
18128 xorg_cv_cc_flag_unused_command_line_argument=no
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18131 fi
18132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18133 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18135 CFLAGS="$xorg_testset_save_CFLAGS"
18136 fi
18137
18138 found="no"
18139
18140 if test $found = "no" ; then
18141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18143 fi
18144
18145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18147 fi
18148
18149 CFLAGS="$CFLAGS -Warray-bounds"
18150
18151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18152 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18153 cacheid=xorg_cv_cc_flag__Warray_bounds
18154 if eval test \${$cacheid+y}
18155 then :
18156 printf %s "(cached) " >&6
18157 else $as_nop
18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h. */
18160 int i;
18161 int
18162 main (void)
18163 {
18164
18165 ;
18166 return 0;
18167 }
18168 _ACEOF
18169 if ac_fn_c_try_link "$LINENO"
18170 then :
18171 eval $cacheid=yes
18172 else $as_nop
18173 eval $cacheid=no
18174 fi
18175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18176 conftest$ac_exeext conftest.$ac_ext
18177 fi
18178
18179
18180 CFLAGS="$xorg_testset_save_CFLAGS"
18181
18182 eval supported=\$$cacheid
18183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18184 printf "%s\n" "$supported" >&6; }
18185 if test "$supported" = "yes" ; then
18186 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18187 found="yes"
18188 fi
18189 fi
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205 xorg_testset_save_CFLAGS="$CFLAGS"
18206
18207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18210 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18211 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18212 then :
18213 printf %s "(cached) " >&6
18214 else $as_nop
18215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h. */
18217 int i;
18218 _ACEOF
18219 if ac_fn_c_try_compile "$LINENO"
18220 then :
18221 xorg_cv_cc_flag_unknown_warning_option=yes
18222 else $as_nop
18223 xorg_cv_cc_flag_unknown_warning_option=no
18224 fi
18225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18226 fi
18227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18228 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18230 CFLAGS="$xorg_testset_save_CFLAGS"
18231 fi
18232
18233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18236 fi
18237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18239 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18240 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18241 then :
18242 printf %s "(cached) " >&6
18243 else $as_nop
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18246 int i;
18247 _ACEOF
18248 if ac_fn_c_try_compile "$LINENO"
18249 then :
18250 xorg_cv_cc_flag_unused_command_line_argument=yes
18251 else $as_nop
18252 xorg_cv_cc_flag_unused_command_line_argument=no
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18255 fi
18256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18257 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18259 CFLAGS="$xorg_testset_save_CFLAGS"
18260 fi
18261
18262 found="no"
18263
18264 if test $found = "no" ; then
18265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18267 fi
18268
18269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18271 fi
18272
18273 CFLAGS="$CFLAGS -Wwrite-strings"
18274
18275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18276 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18277 cacheid=xorg_cv_cc_flag__Wwrite_strings
18278 if eval test \${$cacheid+y}
18279 then :
18280 printf %s "(cached) " >&6
18281 else $as_nop
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18284 int i;
18285 int
18286 main (void)
18287 {
18288
18289 ;
18290 return 0;
18291 }
18292 _ACEOF
18293 if ac_fn_c_try_link "$LINENO"
18294 then :
18295 eval $cacheid=yes
18296 else $as_nop
18297 eval $cacheid=no
18298 fi
18299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18300 conftest$ac_exeext conftest.$ac_ext
18301 fi
18302
18303
18304 CFLAGS="$xorg_testset_save_CFLAGS"
18305
18306 eval supported=\$$cacheid
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18308 printf "%s\n" "$supported" >&6; }
18309 if test "$supported" = "yes" ; then
18310 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18311 found="yes"
18312 fi
18313 fi
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329 xorg_testset_save_CFLAGS="$CFLAGS"
18330
18331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18334 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18335 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18336 then :
18337 printf %s "(cached) " >&6
18338 else $as_nop
18339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340 /* end confdefs.h. */
18341 int i;
18342 _ACEOF
18343 if ac_fn_c_try_compile "$LINENO"
18344 then :
18345 xorg_cv_cc_flag_unknown_warning_option=yes
18346 else $as_nop
18347 xorg_cv_cc_flag_unknown_warning_option=no
18348 fi
18349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18350 fi
18351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18352 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18354 CFLAGS="$xorg_testset_save_CFLAGS"
18355 fi
18356
18357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18360 fi
18361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18363 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18364 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18365 then :
18366 printf %s "(cached) " >&6
18367 else $as_nop
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370 int i;
18371 _ACEOF
18372 if ac_fn_c_try_compile "$LINENO"
18373 then :
18374 xorg_cv_cc_flag_unused_command_line_argument=yes
18375 else $as_nop
18376 xorg_cv_cc_flag_unused_command_line_argument=no
18377 fi
18378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18379 fi
18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18381 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18383 CFLAGS="$xorg_testset_save_CFLAGS"
18384 fi
18385
18386 found="no"
18387
18388 if test $found = "no" ; then
18389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18391 fi
18392
18393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18395 fi
18396
18397 CFLAGS="$CFLAGS -Waddress"
18398
18399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18400 printf %s "checking if $CC supports -Waddress... " >&6; }
18401 cacheid=xorg_cv_cc_flag__Waddress
18402 if eval test \${$cacheid+y}
18403 then :
18404 printf %s "(cached) " >&6
18405 else $as_nop
18406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18407 /* end confdefs.h. */
18408 int i;
18409 int
18410 main (void)
18411 {
18412
18413 ;
18414 return 0;
18415 }
18416 _ACEOF
18417 if ac_fn_c_try_link "$LINENO"
18418 then :
18419 eval $cacheid=yes
18420 else $as_nop
18421 eval $cacheid=no
18422 fi
18423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18424 conftest$ac_exeext conftest.$ac_ext
18425 fi
18426
18427
18428 CFLAGS="$xorg_testset_save_CFLAGS"
18429
18430 eval supported=\$$cacheid
18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18432 printf "%s\n" "$supported" >&6; }
18433 if test "$supported" = "yes" ; then
18434 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18435 found="yes"
18436 fi
18437 fi
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453 xorg_testset_save_CFLAGS="$CFLAGS"
18454
18455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18458 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18459 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18460 then :
18461 printf %s "(cached) " >&6
18462 else $as_nop
18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464 /* end confdefs.h. */
18465 int i;
18466 _ACEOF
18467 if ac_fn_c_try_compile "$LINENO"
18468 then :
18469 xorg_cv_cc_flag_unknown_warning_option=yes
18470 else $as_nop
18471 xorg_cv_cc_flag_unknown_warning_option=no
18472 fi
18473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18474 fi
18475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18476 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18478 CFLAGS="$xorg_testset_save_CFLAGS"
18479 fi
18480
18481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18484 fi
18485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18487 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18488 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18489 then :
18490 printf %s "(cached) " >&6
18491 else $as_nop
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18494 int i;
18495 _ACEOF
18496 if ac_fn_c_try_compile "$LINENO"
18497 then :
18498 xorg_cv_cc_flag_unused_command_line_argument=yes
18499 else $as_nop
18500 xorg_cv_cc_flag_unused_command_line_argument=no
18501 fi
18502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18503 fi
18504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18505 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18507 CFLAGS="$xorg_testset_save_CFLAGS"
18508 fi
18509
18510 found="no"
18511
18512 if test $found = "no" ; then
18513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18515 fi
18516
18517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18519 fi
18520
18521 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18522
18523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18524 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18525 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18526 if eval test \${$cacheid+y}
18527 then :
18528 printf %s "(cached) " >&6
18529 else $as_nop
18530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18531 /* end confdefs.h. */
18532 int i;
18533 int
18534 main (void)
18535 {
18536
18537 ;
18538 return 0;
18539 }
18540 _ACEOF
18541 if ac_fn_c_try_link "$LINENO"
18542 then :
18543 eval $cacheid=yes
18544 else $as_nop
18545 eval $cacheid=no
18546 fi
18547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18548 conftest$ac_exeext conftest.$ac_ext
18549 fi
18550
18551
18552 CFLAGS="$xorg_testset_save_CFLAGS"
18553
18554 eval supported=\$$cacheid
18555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18556 printf "%s\n" "$supported" >&6; }
18557 if test "$supported" = "yes" ; then
18558 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18559 found="yes"
18560 fi
18561 fi
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577 xorg_testset_save_CFLAGS="$CFLAGS"
18578
18579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18582 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18583 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18584 then :
18585 printf %s "(cached) " >&6
18586 else $as_nop
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18589 int i;
18590 _ACEOF
18591 if ac_fn_c_try_compile "$LINENO"
18592 then :
18593 xorg_cv_cc_flag_unknown_warning_option=yes
18594 else $as_nop
18595 xorg_cv_cc_flag_unknown_warning_option=no
18596 fi
18597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18598 fi
18599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18600 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18602 CFLAGS="$xorg_testset_save_CFLAGS"
18603 fi
18604
18605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18608 fi
18609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18611 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18612 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18613 then :
18614 printf %s "(cached) " >&6
18615 else $as_nop
18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617 /* end confdefs.h. */
18618 int i;
18619 _ACEOF
18620 if ac_fn_c_try_compile "$LINENO"
18621 then :
18622 xorg_cv_cc_flag_unused_command_line_argument=yes
18623 else $as_nop
18624 xorg_cv_cc_flag_unused_command_line_argument=no
18625 fi
18626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18627 fi
18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18629 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18631 CFLAGS="$xorg_testset_save_CFLAGS"
18632 fi
18633
18634 found="no"
18635
18636 if test $found = "no" ; then
18637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18639 fi
18640
18641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18643 fi
18644
18645 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18646
18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18648 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18649 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18650 if eval test \${$cacheid+y}
18651 then :
18652 printf %s "(cached) " >&6
18653 else $as_nop
18654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h. */
18656 int i;
18657 int
18658 main (void)
18659 {
18660
18661 ;
18662 return 0;
18663 }
18664 _ACEOF
18665 if ac_fn_c_try_link "$LINENO"
18666 then :
18667 eval $cacheid=yes
18668 else $as_nop
18669 eval $cacheid=no
18670 fi
18671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18672 conftest$ac_exeext conftest.$ac_ext
18673 fi
18674
18675
18676 CFLAGS="$xorg_testset_save_CFLAGS"
18677
18678 eval supported=\$$cacheid
18679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18680 printf "%s\n" "$supported" >&6; }
18681 if test "$supported" = "yes" ; then
18682 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18683 found="yes"
18684 fi
18685 fi
18686
18687
18688 fi
18689
18690
18691
18692
18693
18694
18695
18696 CWARNFLAGS="$BASE_CFLAGS"
18697 if test "x$GCC" = xyes ; then
18698 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18699 fi
18700
18701
18702
18703
18704
18705
18706
18707
18708 # Check whether --enable-strict-compilation was given.
18709 if test ${enable_strict_compilation+y}
18710 then :
18711 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18712 else $as_nop
18713 STRICT_COMPILE=no
18714 fi
18715
18716
18717
18718
18719
18720
18721 STRICT_CFLAGS=""
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735 xorg_testset_save_CFLAGS="$CFLAGS"
18736
18737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18740 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18741 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18742 then :
18743 printf %s "(cached) " >&6
18744 else $as_nop
18745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h. */
18747 int i;
18748 _ACEOF
18749 if ac_fn_c_try_compile "$LINENO"
18750 then :
18751 xorg_cv_cc_flag_unknown_warning_option=yes
18752 else $as_nop
18753 xorg_cv_cc_flag_unknown_warning_option=no
18754 fi
18755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18756 fi
18757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18758 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18760 CFLAGS="$xorg_testset_save_CFLAGS"
18761 fi
18762
18763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18766 fi
18767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18769 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18770 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18771 then :
18772 printf %s "(cached) " >&6
18773 else $as_nop
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18776 int i;
18777 _ACEOF
18778 if ac_fn_c_try_compile "$LINENO"
18779 then :
18780 xorg_cv_cc_flag_unused_command_line_argument=yes
18781 else $as_nop
18782 xorg_cv_cc_flag_unused_command_line_argument=no
18783 fi
18784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18785 fi
18786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18787 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18789 CFLAGS="$xorg_testset_save_CFLAGS"
18790 fi
18791
18792 found="no"
18793
18794 if test $found = "no" ; then
18795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18797 fi
18798
18799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18801 fi
18802
18803 CFLAGS="$CFLAGS -pedantic"
18804
18805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18806 printf %s "checking if $CC supports -pedantic... " >&6; }
18807 cacheid=xorg_cv_cc_flag__pedantic
18808 if eval test \${$cacheid+y}
18809 then :
18810 printf %s "(cached) " >&6
18811 else $as_nop
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18814 int i;
18815 int
18816 main (void)
18817 {
18818
18819 ;
18820 return 0;
18821 }
18822 _ACEOF
18823 if ac_fn_c_try_link "$LINENO"
18824 then :
18825 eval $cacheid=yes
18826 else $as_nop
18827 eval $cacheid=no
18828 fi
18829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18830 conftest$ac_exeext conftest.$ac_ext
18831 fi
18832
18833
18834 CFLAGS="$xorg_testset_save_CFLAGS"
18835
18836 eval supported=\$$cacheid
18837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18838 printf "%s\n" "$supported" >&6; }
18839 if test "$supported" = "yes" ; then
18840 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18841 found="yes"
18842 fi
18843 fi
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859 xorg_testset_save_CFLAGS="$CFLAGS"
18860
18861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18864 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18865 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18866 then :
18867 printf %s "(cached) " >&6
18868 else $as_nop
18869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h. */
18871 int i;
18872 _ACEOF
18873 if ac_fn_c_try_compile "$LINENO"
18874 then :
18875 xorg_cv_cc_flag_unknown_warning_option=yes
18876 else $as_nop
18877 xorg_cv_cc_flag_unknown_warning_option=no
18878 fi
18879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18880 fi
18881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18882 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18884 CFLAGS="$xorg_testset_save_CFLAGS"
18885 fi
18886
18887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18890 fi
18891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18893 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18894 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18895 then :
18896 printf %s "(cached) " >&6
18897 else $as_nop
18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h. */
18900 int i;
18901 _ACEOF
18902 if ac_fn_c_try_compile "$LINENO"
18903 then :
18904 xorg_cv_cc_flag_unused_command_line_argument=yes
18905 else $as_nop
18906 xorg_cv_cc_flag_unused_command_line_argument=no
18907 fi
18908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18909 fi
18910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18911 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18913 CFLAGS="$xorg_testset_save_CFLAGS"
18914 fi
18915
18916 found="no"
18917
18918 if test $found = "no" ; then
18919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18921 fi
18922
18923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18925 fi
18926
18927 CFLAGS="$CFLAGS -Werror"
18928
18929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18930 printf %s "checking if $CC supports -Werror... " >&6; }
18931 cacheid=xorg_cv_cc_flag__Werror
18932 if eval test \${$cacheid+y}
18933 then :
18934 printf %s "(cached) " >&6
18935 else $as_nop
18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18938 int i;
18939 int
18940 main (void)
18941 {
18942
18943 ;
18944 return 0;
18945 }
18946 _ACEOF
18947 if ac_fn_c_try_link "$LINENO"
18948 then :
18949 eval $cacheid=yes
18950 else $as_nop
18951 eval $cacheid=no
18952 fi
18953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18954 conftest$ac_exeext conftest.$ac_ext
18955 fi
18956
18957
18958 CFLAGS="$xorg_testset_save_CFLAGS"
18959
18960 eval supported=\$$cacheid
18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18962 printf "%s\n" "$supported" >&6; }
18963 if test "$supported" = "yes" ; then
18964 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18965 found="yes"
18966 fi
18967 fi
18968
18969 if test $found = "no" ; then
18970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18972 fi
18973
18974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18976 fi
18977
18978 CFLAGS="$CFLAGS -errwarn"
18979
18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18981 printf %s "checking if $CC supports -errwarn... " >&6; }
18982 cacheid=xorg_cv_cc_flag__errwarn
18983 if eval test \${$cacheid+y}
18984 then :
18985 printf %s "(cached) " >&6
18986 else $as_nop
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h. */
18989 int i;
18990 int
18991 main (void)
18992 {
18993
18994 ;
18995 return 0;
18996 }
18997 _ACEOF
18998 if ac_fn_c_try_link "$LINENO"
18999 then :
19000 eval $cacheid=yes
19001 else $as_nop
19002 eval $cacheid=no
19003 fi
19004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19005 conftest$ac_exeext conftest.$ac_ext
19006 fi
19007
19008
19009 CFLAGS="$xorg_testset_save_CFLAGS"
19010
19011 eval supported=\$$cacheid
19012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19013 printf "%s\n" "$supported" >&6; }
19014 if test "$supported" = "yes" ; then
19015 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19016 found="yes"
19017 fi
19018 fi
19019
19020
19021
19022 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19023 # activate it with -Werror, so we add it here explicitly.
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037 xorg_testset_save_CFLAGS="$CFLAGS"
19038
19039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19042 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19043 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19044 then :
19045 printf %s "(cached) " >&6
19046 else $as_nop
19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19049 int i;
19050 _ACEOF
19051 if ac_fn_c_try_compile "$LINENO"
19052 then :
19053 xorg_cv_cc_flag_unknown_warning_option=yes
19054 else $as_nop
19055 xorg_cv_cc_flag_unknown_warning_option=no
19056 fi
19057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19058 fi
19059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19060 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19062 CFLAGS="$xorg_testset_save_CFLAGS"
19063 fi
19064
19065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19068 fi
19069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19071 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19072 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19073 then :
19074 printf %s "(cached) " >&6
19075 else $as_nop
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19078 int i;
19079 _ACEOF
19080 if ac_fn_c_try_compile "$LINENO"
19081 then :
19082 xorg_cv_cc_flag_unused_command_line_argument=yes
19083 else $as_nop
19084 xorg_cv_cc_flag_unused_command_line_argument=no
19085 fi
19086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19087 fi
19088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19089 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19091 CFLAGS="$xorg_testset_save_CFLAGS"
19092 fi
19093
19094 found="no"
19095
19096 if test $found = "no" ; then
19097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19099 fi
19100
19101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19103 fi
19104
19105 CFLAGS="$CFLAGS -Werror=attributes"
19106
19107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19108 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19109 cacheid=xorg_cv_cc_flag__Werror_attributes
19110 if eval test \${$cacheid+y}
19111 then :
19112 printf %s "(cached) " >&6
19113 else $as_nop
19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19116 int i;
19117 int
19118 main (void)
19119 {
19120
19121 ;
19122 return 0;
19123 }
19124 _ACEOF
19125 if ac_fn_c_try_link "$LINENO"
19126 then :
19127 eval $cacheid=yes
19128 else $as_nop
19129 eval $cacheid=no
19130 fi
19131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19132 conftest$ac_exeext conftest.$ac_ext
19133 fi
19134
19135
19136 CFLAGS="$xorg_testset_save_CFLAGS"
19137
19138 eval supported=\$$cacheid
19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19140 printf "%s\n" "$supported" >&6; }
19141 if test "$supported" = "yes" ; then
19142 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19143 found="yes"
19144 fi
19145 fi
19146
19147
19148
19149 if test "x$STRICT_COMPILE" = "xyes"; then
19150 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19151 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19152 fi
19153
19154
19155
19156
19157
19158
19159 cat >>confdefs.h <<_ACEOF
19160 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19161 _ACEOF
19162
19163 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19164 if test "x$PVM" = "x"; then
19165 PVM="0"
19166 fi
19167
19168 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19169
19170 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19171 if test "x$PVP" = "x"; then
19172 PVP="0"
19173 fi
19174
19175 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19176
19177
19178
19179 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19180 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19181 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19182 touch \$(top_srcdir)/ChangeLog; \
19183 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19184
19185
19186
19187
19188 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19189 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19190 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19191 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19192 touch \$(top_srcdir)/INSTALL; \
19193 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19194
19195
19196
19197
19198
19199
19200 case $host_os in
19201 solaris*)
19202 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19203 # check for a man page file found in later versions that use
19204 # traditional section numbers instead
19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19206 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19207 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19208 then :
19209 printf %s "(cached) " >&6
19210 else $as_nop
19211 test "$cross_compiling" = yes &&
19212 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19213 if test -r "/usr/share/man/man7/attributes.7"; then
19214 ac_cv_file__usr_share_man_man7_attributes_7=yes
19215 else
19216 ac_cv_file__usr_share_man_man7_attributes_7=no
19217 fi
19218 fi
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19220 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19221 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19222 then :
19223 SYSV_MAN_SECTIONS=false
19224 else $as_nop
19225 SYSV_MAN_SECTIONS=true
19226 fi
19227
19228 ;;
19229 *) SYSV_MAN_SECTIONS=false ;;
19230 esac
19231
19232 if test x$APP_MAN_SUFFIX = x ; then
19233 APP_MAN_SUFFIX=1
19234 fi
19235 if test x$APP_MAN_DIR = x ; then
19236 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19237 fi
19238
19239 if test x$LIB_MAN_SUFFIX = x ; then
19240 LIB_MAN_SUFFIX=3
19241 fi
19242 if test x$LIB_MAN_DIR = x ; then
19243 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19244 fi
19245
19246 if test x$FILE_MAN_SUFFIX = x ; then
19247 case $SYSV_MAN_SECTIONS in
19248 true) FILE_MAN_SUFFIX=4 ;;
19249 *) FILE_MAN_SUFFIX=5 ;;
19250 esac
19251 fi
19252 if test x$FILE_MAN_DIR = x ; then
19253 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19254 fi
19255
19256 if test x$MISC_MAN_SUFFIX = x ; then
19257 case $SYSV_MAN_SECTIONS in
19258 true) MISC_MAN_SUFFIX=5 ;;
19259 *) MISC_MAN_SUFFIX=7 ;;
19260 esac
19261 fi
19262 if test x$MISC_MAN_DIR = x ; then
19263 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19264 fi
19265
19266 if test x$DRIVER_MAN_SUFFIX = x ; then
19267 case $SYSV_MAN_SECTIONS in
19268 true) DRIVER_MAN_SUFFIX=7 ;;
19269 *) DRIVER_MAN_SUFFIX=4 ;;
19270 esac
19271 fi
19272 if test x$DRIVER_MAN_DIR = x ; then
19273 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19274 fi
19275
19276 if test x$ADMIN_MAN_SUFFIX = x ; then
19277 case $SYSV_MAN_SECTIONS in
19278 true) ADMIN_MAN_SUFFIX=1m ;;
19279 *) ADMIN_MAN_SUFFIX=8 ;;
19280 esac
19281 fi
19282 if test x$ADMIN_MAN_DIR = x ; then
19283 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19284 fi
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300 XORG_MAN_PAGE="X Version 11"
19301
19302 MAN_SUBSTS="\
19303 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19304 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19305 -e 's|__xservername__|Xorg|g' \
19306 -e 's|__xconfigfile__|xorg.conf|g' \
19307 -e 's|__projectroot__|\$(prefix)|g' \
19308 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19309 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19310 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19311 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19312 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19313 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19314 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19315
19316
19317
19318 # Check whether --enable-silent-rules was given.
19319 if test ${enable_silent_rules+y}
19320 then :
19321 enableval=$enable_silent_rules;
19322 fi
19323
19324 case $enable_silent_rules in # (((
19325 yes) AM_DEFAULT_VERBOSITY=0;;
19326 no) AM_DEFAULT_VERBOSITY=1;;
19327 *) AM_DEFAULT_VERBOSITY=0;;
19328 esac
19329 am_make=${MAKE-make}
19330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19331 printf %s "checking whether $am_make supports nested variables... " >&6; }
19332 if test ${am_cv_make_support_nested_variables+y}
19333 then :
19334 printf %s "(cached) " >&6
19335 else $as_nop
19336 if printf "%s\n" 'TRUE=$(BAR$(V))
19337 BAR0=false
19338 BAR1=true
19339 V=1
19340 am__doit:
19341 @$(TRUE)
19342 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19343 am_cv_make_support_nested_variables=yes
19344 else
19345 am_cv_make_support_nested_variables=no
19346 fi
19347 fi
19348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19349 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19350 if test $am_cv_make_support_nested_variables = yes; then
19351 AM_V='$(V)'
19352 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19353 else
19354 AM_V=$AM_DEFAULT_VERBOSITY
19355 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19356 fi
19357 AM_BACKSLASH='\'
19358
19359
19360
19361 # Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
19377 printf %s "checking for root directory for font files... " >&6; }
19378
19379 # Check whether --with-fontrootdir was given.
19380 if test ${with_fontrootdir+y}
19381 then :
19382 withval=$with_fontrootdir; FONTROOTDIR="$withval"
19383 fi
19384
19385 # if --with-fontrootdir not specified...
19386 if test "x${FONTROOTDIR}" = "x"; then
19387 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
19388 fi
19389 # ...and if pkg-config didn't find fontdir in fontutil.pc...
19390 if test "x${FONTROOTDIR}" = "x"; then
19391 FONTROOTDIR="${datadir}/fonts/X11"
19392 fi
19393
19394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
19395 printf "%s\n" "${FONTROOTDIR}" >&6; }
19396
19397
19398
19399
19400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
19401 printf %s "checking for directory for encodings files... " >&6; }
19402
19403 # Check whether --with-encodingsdir was given.
19404 if test ${with_encodingsdir+y}
19405 then :
19406 withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
19407 else $as_nop
19408 ENCODINGSDIR='${FONTROOTDIR}/encodings'
19409 fi
19410
19411
19412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
19413 printf "%s\n" "${ENCODINGSDIR}" >&6; }
19414
19415
19416 # zlib
19417 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19418 if test "x$ac_cv_header_zlib_h" = xyes
19419 then :
19420
19421 else $as_nop
19422 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19423 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19424 as_fn_error $? "zlib.h is required to compile libfontenc
19425 See \`config.log' for more details" "$LINENO" 5; }
19426 fi
19427
19428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
19429 printf %s "checking for gzclose in -lz... " >&6; }
19430 if test ${ac_cv_lib_z_gzclose+y}
19431 then :
19432 printf %s "(cached) " >&6
19433 else $as_nop
19434 ac_check_lib_save_LIBS=$LIBS
19435 LIBS="-lz $LIBS"
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19438
19439 /* Override any GCC internal prototype to avoid an error.
19440 Use char because int might match the return type of a GCC
19441 builtin and then its argument prototype would still apply. */
19442 char gzclose ();
19443 int
19444 main (void)
19445 {
19446 return gzclose ();
19447 ;
19448 return 0;
19449 }
19450 _ACEOF
19451 if ac_fn_c_try_link "$LINENO"
19452 then :
19453 ac_cv_lib_z_gzclose=yes
19454 else $as_nop
19455 ac_cv_lib_z_gzclose=no
19456 fi
19457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19460 fi
19461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
19462 printf "%s\n" "$ac_cv_lib_z_gzclose" >&6; }
19463 if test "x$ac_cv_lib_z_gzclose" = xyes
19464 then :
19465 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
19466
19467 LIBS="-lz $LIBS"
19468
19469 else $as_nop
19470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19471 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19472 as_fn_error $? "zlib is required to compile libfontenc
19473 See \`config.log' for more details" "$LINENO" 5; }
19474 fi
19475
19476
19477 # Obtain compiler/linker options for dependencies
19478
19479 pkg_failed=no
19480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5
19481 printf %s "checking for FONTENC... " >&6; }
19482
19483 if test -n "$FONTENC_CFLAGS"; then
19484 pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS"
19485 elif test -n "$PKG_CONFIG"; then
19486 if test -n "$PKG_CONFIG" && \
19487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19488 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19489 ac_status=$?
19490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19491 test $ac_status = 0; }; then
19492 pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
19493 test "x$?" != "x0" && pkg_failed=yes
19494 else
19495 pkg_failed=yes
19496 fi
19497 else
19498 pkg_failed=untried
19499 fi
19500 if test -n "$FONTENC_LIBS"; then
19501 pkg_cv_FONTENC_LIBS="$FONTENC_LIBS"
19502 elif test -n "$PKG_CONFIG"; then
19503 if test -n "$PKG_CONFIG" && \
19504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19505 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19506 ac_status=$?
19507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19508 test $ac_status = 0; }; then
19509 pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
19510 test "x$?" != "x0" && pkg_failed=yes
19511 else
19512 pkg_failed=yes
19513 fi
19514 else
19515 pkg_failed=untried
19516 fi
19517
19518
19519
19520 if test $pkg_failed = yes; then
19521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19522 printf "%s\n" "no" >&6; }
19523
19524 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19525 _pkg_short_errors_supported=yes
19526 else
19527 _pkg_short_errors_supported=no
19528 fi
19529 if test $_pkg_short_errors_supported = yes; then
19530 FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
19531 else
19532 FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
19533 fi
19534 # Put the nasty error message in config.log where it belongs
19535 echo "$FONTENC_PKG_ERRORS" >&5
19536
19537 as_fn_error $? "Package requirements (xproto) were not met:
19538
19539 $FONTENC_PKG_ERRORS
19540
19541 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19542 installed software in a non-standard prefix.
19543
19544 Alternatively, you may set the environment variables FONTENC_CFLAGS
19545 and FONTENC_LIBS to avoid the need to call pkg-config.
19546 See the pkg-config man page for more details." "$LINENO" 5
19547 elif test $pkg_failed = untried; then
19548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19549 printf "%s\n" "no" >&6; }
19550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19551 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19552 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19553 is in your PATH or set the PKG_CONFIG environment variable to the full
19554 path to pkg-config.
19555
19556 Alternatively, you may set the environment variables FONTENC_CFLAGS
19557 and FONTENC_LIBS to avoid the need to call pkg-config.
19558 See the pkg-config man page for more details.
19559
19560 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19561 See \`config.log' for more details" "$LINENO" 5; }
19562 else
19563 FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS
19564 FONTENC_LIBS=$pkg_cv_FONTENC_LIBS
19565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19566 printf "%s\n" "yes" >&6; }
19567
19568 fi
19569
19570 # Checks for library functions.
19571 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19572 if test "x$ac_cv_func_reallocarray" = xyes
19573 then :
19574 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19575
19576 else $as_nop
19577 case " $LIBOBJS " in
19578 *" reallocarray.$ac_objext "* ) ;;
19579 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19580 ;;
19581 esac
19582
19583 fi
19584
19585
19586 # Allow checking code with lint, sparse, etc.
19587
19588
19589
19590
19591
19592 # Check whether --with-lint was given.
19593 if test ${with_lint+y}
19594 then :
19595 withval=$with_lint; use_lint=$withval
19596 else $as_nop
19597 use_lint=no
19598 fi
19599
19600
19601 # Obtain platform specific info like program name and options
19602 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
19603 case $host_os in
19604 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
19605 lint_name=splint
19606 lint_options="-badflag"
19607 ;;
19608 *freebsd* | *netbsd*)
19609 lint_name=lint
19610 lint_options="-u -b"
19611 ;;
19612 *solaris*)
19613 lint_name=lint
19614 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19615 ;;
19616 esac
19617
19618 # Test for the presence of the program (either guessed by the code or spelled out by the user)
19619 if test "x$use_lint" = x"yes" ; then
19620 # Extract the first word of "$lint_name", so it can be a program name with args.
19621 set dummy $lint_name; ac_word=$2
19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19623 printf %s "checking for $ac_word... " >&6; }
19624 if test ${ac_cv_path_LINT+y}
19625 then :
19626 printf %s "(cached) " >&6
19627 else $as_nop
19628 case $LINT in
19629 [\\/]* | ?:[\\/]*)
19630 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
19631 ;;
19632 *)
19633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19634 for as_dir in $PATH
19635 do
19636 IFS=$as_save_IFS
19637 case $as_dir in #(((
19638 '') as_dir=./ ;;
19639 */) ;;
19640 *) as_dir=$as_dir/ ;;
19641 esac
19642 for ac_exec_ext in '' $ac_executable_extensions; do
19643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19644 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
19645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19646 break 2
19647 fi
19648 done
19649 done
19650 IFS=$as_save_IFS
19651
19652 ;;
19653 esac
19654 fi
19655 LINT=$ac_cv_path_LINT
19656 if test -n "$LINT"; then
19657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19658 printf "%s\n" "$LINT" >&6; }
19659 else
19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661 printf "%s\n" "no" >&6; }
19662 fi
19663
19664
19665 if test "x$LINT" = "x"; then
19666 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19667 fi
19668 elif test "x$use_lint" = x"no" ; then
19669 if test "x$LINT" != "x"; then
19670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19671 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19672 fi
19673 else
19674 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
19675 fi
19676
19677 # User supplied flags override default flags
19678 if test "x$LINT_FLAGS" != "x"; then
19679 lint_options=$LINT_FLAGS
19680 fi
19681
19682 LINT_FLAGS=$lint_options
19683
19684 if test "x$LINT" != x; then
19685 LINT_TRUE=
19686 LINT_FALSE='#'
19687 else
19688 LINT_TRUE='#'
19689 LINT_FALSE=
19690 fi
19691
19692
19693
19694 LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
19695
19696 ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc"
19697
19698 cat >confcache <<\_ACEOF
19699 # This file is a shell script that caches the results of configure
19700 # tests run on this system so they can be shared between configure
19701 # scripts and configure runs, see configure's option --config-cache.
19702 # It is not useful on other systems. If it contains results you don't
19703 # want to keep, you may remove or edit it.
19704 #
19705 # config.status only pays attention to the cache file if you give it
19706 # the --recheck option to rerun configure.
19707 #
19708 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19709 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19710 # following values.
19711
19712 _ACEOF
19713
19714 # The following way of writing the cache mishandles newlines in values,
19715 # but we know of no workaround that is simple, portable, and efficient.
19716 # So, we kill variables containing newlines.
19717 # Ultrix sh set writes to stderr and can't be redirected directly,
19718 # and sets the high bit in the cache file unless we assign to the vars.
19719 (
19720 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19721 eval ac_val=\$$ac_var
19722 case $ac_val in #(
19723 *${as_nl}*)
19724 case $ac_var in #(
19725 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19726 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19727 esac
19728 case $ac_var in #(
19729 _ | IFS | as_nl) ;; #(
19730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19731 *) { eval $ac_var=; unset $ac_var;} ;;
19732 esac ;;
19733 esac
19734 done
19735
19736 (set) 2>&1 |
19737 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19738 *${as_nl}ac_space=\ *)
19739 # `set' does not quote correctly, so add quotes: double-quote
19740 # substitution turns \\\\ into \\, and sed turns \\ into \.
19741 sed -n \
19742 "s/'/'\\\\''/g;
19743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19744 ;; #(
19745 *)
19746 # `set' quotes correctly as required by POSIX, so do not add quotes.
19747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19748 ;;
19749 esac |
19750 sort
19751 ) |
19752 sed '
19753 /^ac_cv_env_/b end
19754 t clear
19755 :clear
19756 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19757 t end
19758 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19759 :end' >>confcache
19760 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19761 if test -w "$cache_file"; then
19762 if test "x$cache_file" != "x/dev/null"; then
19763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19764 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19765 if test ! -f "$cache_file" || test -h "$cache_file"; then
19766 cat confcache >"$cache_file"
19767 else
19768 case $cache_file in #(
19769 */* | ?:*)
19770 mv -f confcache "$cache_file"$$ &&
19771 mv -f "$cache_file"$$ "$cache_file" ;; #(
19772 *)
19773 mv -f confcache "$cache_file" ;;
19774 esac
19775 fi
19776 fi
19777 else
19778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19779 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19780 fi
19781 fi
19782 rm -f confcache
19783
19784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19785 # Let make expand exec_prefix.
19786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19787
19788 DEFS=-DHAVE_CONFIG_H
19789
19790 ac_libobjs=
19791 ac_ltlibobjs=
19792 U=
19793 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19794 # 1. Remove the extension, and $U if already installed.
19795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19796 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19798 # will be set to the directory where LIBOBJS objects are built.
19799 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19800 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19801 done
19802 LIBOBJS=$ac_libobjs
19803
19804 LTLIBOBJS=$ac_ltlibobjs
19805
19806
19807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19808 printf %s "checking that generated files are newer than configure... " >&6; }
19809 if test -n "$am_sleep_pid"; then
19810 # Hide warnings about reused PIDs.
19811 wait $am_sleep_pid 2>/dev/null
19812 fi
19813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19814 printf "%s\n" "done" >&6; }
19815 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19816 as_fn_error $? "conditional \"AMDEP\" was never defined.
19817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19818 fi
19819 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19820 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19822 fi
19823 if test -n "$EXEEXT"; then
19824 am__EXEEXT_TRUE=
19825 am__EXEEXT_FALSE='#'
19826 else
19827 am__EXEEXT_TRUE='#'
19828 am__EXEEXT_FALSE=
19829 fi
19830
19831 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
19832 as_fn_error $? "conditional \"LINT\" was never defined.
19833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19834 fi
19835
19836 : "${CONFIG_STATUS=./config.status}"
19837 ac_write_fail=0
19838 ac_clean_files_save=$ac_clean_files
19839 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19841 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19842 as_write_fail=0
19843 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19844 #! $SHELL
19845 # Generated by $as_me.
19846 # Run this file to recreate the current configuration.
19847 # Compiler output produced by configure, useful for debugging
19848 # configure, is in config.log if it exists.
19849
19850 debug=false
19851 ac_cs_recheck=false
19852 ac_cs_silent=false
19853
19854 SHELL=\${CONFIG_SHELL-$SHELL}
19855 export SHELL
19856 _ASEOF
19857 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19858 ## -------------------- ##
19859 ## M4sh Initialization. ##
19860 ## -------------------- ##
19861
19862 # Be more Bourne compatible
19863 DUALCASE=1; export DUALCASE # for MKS sh
19864 as_nop=:
19865 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19866 then :
19867 emulate sh
19868 NULLCMD=:
19869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19870 # is contrary to our usage. Disable this feature.
19871 alias -g '${1+"$@"}'='"$@"'
19872 setopt NO_GLOB_SUBST
19873 else $as_nop
19874 case `(set -o) 2>/dev/null` in #(
19875 *posix*) :
19876 set -o posix ;; #(
19877 *) :
19878 ;;
19879 esac
19880 fi
19881
19882
19883
19884 # Reset variables that may have inherited troublesome values from
19885 # the environment.
19886
19887 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19888 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19889 # side effect of setting IFS to empty, thus disabling word splitting.)
19890 # Quoting is to prevent editors from complaining about space-tab.
19891 as_nl='
19892 '
19893 export as_nl
19894 IFS=" "" $as_nl"
19895
19896 PS1='$ '
19897 PS2='> '
19898 PS4='+ '
19899
19900 # Ensure predictable behavior from utilities with locale-dependent output.
19901 LC_ALL=C
19902 export LC_ALL
19903 LANGUAGE=C
19904 export LANGUAGE
19905
19906 # We cannot yet rely on "unset" to work, but we need these variables
19907 # to be unset--not just set to an empty or harmless value--now, to
19908 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19909 # also avoids known problems related to "unset" and subshell syntax
19910 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19911 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19912 do eval test \${$as_var+y} \
19913 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19914 done
19915
19916 # Ensure that fds 0, 1, and 2 are open.
19917 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19918 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19919 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19920
19921 # The user is always right.
19922 if ${PATH_SEPARATOR+false} :; then
19923 PATH_SEPARATOR=:
19924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19926 PATH_SEPARATOR=';'
19927 }
19928 fi
19929
19930
19931 # Find who we are. Look in the path if we contain no directory separator.
19932 as_myself=
19933 case $0 in #((
19934 *[\\/]* ) as_myself=$0 ;;
19935 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19936 for as_dir in $PATH
19937 do
19938 IFS=$as_save_IFS
19939 case $as_dir in #(((
19940 '') as_dir=./ ;;
19941 */) ;;
19942 *) as_dir=$as_dir/ ;;
19943 esac
19944 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19945 done
19946 IFS=$as_save_IFS
19947
19948 ;;
19949 esac
19950 # We did not find ourselves, most probably we were run as `sh COMMAND'
19951 # in which case we are not to be found in the path.
19952 if test "x$as_myself" = x; then
19953 as_myself=$0
19954 fi
19955 if test ! -f "$as_myself"; then
19956 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19957 exit 1
19958 fi
19959
19960
19961
19962 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19963 # ----------------------------------------
19964 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19965 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19966 # script with STATUS, using 1 if that was 0.
19967 as_fn_error ()
19968 {
19969 as_status=$1; test $as_status -eq 0 && as_status=1
19970 if test "$4"; then
19971 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19973 fi
19974 printf "%s\n" "$as_me: error: $2" >&2
19975 as_fn_exit $as_status
19976 } # as_fn_error
19977
19978
19979
19980 # as_fn_set_status STATUS
19981 # -----------------------
19982 # Set $? to STATUS, without forking.
19983 as_fn_set_status ()
19984 {
19985 return $1
19986 } # as_fn_set_status
19987
19988 # as_fn_exit STATUS
19989 # -----------------
19990 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19991 as_fn_exit ()
19992 {
19993 set +e
19994 as_fn_set_status $1
19995 exit $1
19996 } # as_fn_exit
19997
19998 # as_fn_unset VAR
19999 # ---------------
20000 # Portably unset VAR.
20001 as_fn_unset ()
20002 {
20003 { eval $1=; unset $1;}
20004 }
20005 as_unset=as_fn_unset
20006
20007 # as_fn_append VAR VALUE
20008 # ----------------------
20009 # Append the text in VALUE to the end of the definition contained in VAR. Take
20010 # advantage of any shell optimizations that allow amortized linear growth over
20011 # repeated appends, instead of the typical quadratic growth present in naive
20012 # implementations.
20013 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20014 then :
20015 eval 'as_fn_append ()
20016 {
20017 eval $1+=\$2
20018 }'
20019 else $as_nop
20020 as_fn_append ()
20021 {
20022 eval $1=\$$1\$2
20023 }
20024 fi # as_fn_append
20025
20026 # as_fn_arith ARG...
20027 # ------------------
20028 # Perform arithmetic evaluation on the ARGs, and store the result in the
20029 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20030 # must be portable across $(()) and expr.
20031 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20032 then :
20033 eval 'as_fn_arith ()
20034 {
20035 as_val=$(( $* ))
20036 }'
20037 else $as_nop
20038 as_fn_arith ()
20039 {
20040 as_val=`expr "$@" || test $? -eq 1`
20041 }
20042 fi # as_fn_arith
20043
20044
20045 if expr a : '\(a\)' >/dev/null 2>&1 &&
20046 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20047 as_expr=expr
20048 else
20049 as_expr=false
20050 fi
20051
20052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20053 as_basename=basename
20054 else
20055 as_basename=false
20056 fi
20057
20058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20059 as_dirname=dirname
20060 else
20061 as_dirname=false
20062 fi
20063
20064 as_me=`$as_basename -- "$0" ||
20065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20066 X"$0" : 'X\(//\)$' \| \
20067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20068 printf "%s\n" X/"$0" |
20069 sed '/^.*\/\([^/][^/]*\)\/*$/{
20070 s//\1/
20071 q
20072 }
20073 /^X\/\(\/\/\)$/{
20074 s//\1/
20075 q
20076 }
20077 /^X\/\(\/\).*/{
20078 s//\1/
20079 q
20080 }
20081 s/.*/./; q'`
20082
20083 # Avoid depending upon Character Ranges.
20084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20087 as_cr_digits='0123456789'
20088 as_cr_alnum=$as_cr_Letters$as_cr_digits
20089
20090
20091 # Determine whether it's possible to make 'echo' print without a newline.
20092 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20093 # for compatibility with existing Makefiles.
20094 ECHO_C= ECHO_N= ECHO_T=
20095 case `echo -n x` in #(((((
20096 -n*)
20097 case `echo 'xy\c'` in
20098 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20099 xy) ECHO_C='\c';;
20100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20101 ECHO_T=' ';;
20102 esac;;
20103 *)
20104 ECHO_N='-n';;
20105 esac
20106
20107 # For backward compatibility with old third-party macros, we provide
20108 # the shell variables $as_echo and $as_echo_n. New code should use
20109 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20110 as_echo='printf %s\n'
20111 as_echo_n='printf %s'
20112
20113 rm -f conf$$ conf$$.exe conf$$.file
20114 if test -d conf$$.dir; then
20115 rm -f conf$$.dir/conf$$.file
20116 else
20117 rm -f conf$$.dir
20118 mkdir conf$$.dir 2>/dev/null
20119 fi
20120 if (echo >conf$$.file) 2>/dev/null; then
20121 if ln -s conf$$.file conf$$ 2>/dev/null; then
20122 as_ln_s='ln -s'
20123 # ... but there are two gotchas:
20124 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20125 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20126 # In both cases, we have to default to `cp -pR'.
20127 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20128 as_ln_s='cp -pR'
20129 elif ln conf$$.file conf$$ 2>/dev/null; then
20130 as_ln_s=ln
20131 else
20132 as_ln_s='cp -pR'
20133 fi
20134 else
20135 as_ln_s='cp -pR'
20136 fi
20137 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20138 rmdir conf$$.dir 2>/dev/null
20139
20140
20141 # as_fn_mkdir_p
20142 # -------------
20143 # Create "$as_dir" as a directory, including parents if necessary.
20144 as_fn_mkdir_p ()
20145 {
20146
20147 case $as_dir in #(
20148 -*) as_dir=./$as_dir;;
20149 esac
20150 test -d "$as_dir" || eval $as_mkdir_p || {
20151 as_dirs=
20152 while :; do
20153 case $as_dir in #(
20154 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20155 *) as_qdir=$as_dir;;
20156 esac
20157 as_dirs="'$as_qdir' $as_dirs"
20158 as_dir=`$as_dirname -- "$as_dir" ||
20159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20160 X"$as_dir" : 'X\(//\)[^/]' \| \
20161 X"$as_dir" : 'X\(//\)$' \| \
20162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20163 printf "%s\n" X"$as_dir" |
20164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20165 s//\1/
20166 q
20167 }
20168 /^X\(\/\/\)[^/].*/{
20169 s//\1/
20170 q
20171 }
20172 /^X\(\/\/\)$/{
20173 s//\1/
20174 q
20175 }
20176 /^X\(\/\).*/{
20177 s//\1/
20178 q
20179 }
20180 s/.*/./; q'`
20181 test -d "$as_dir" && break
20182 done
20183 test -z "$as_dirs" || eval "mkdir $as_dirs"
20184 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20185
20186
20187 } # as_fn_mkdir_p
20188 if mkdir -p . 2>/dev/null; then
20189 as_mkdir_p='mkdir -p "$as_dir"'
20190 else
20191 test -d ./-p && rmdir ./-p
20192 as_mkdir_p=false
20193 fi
20194
20195
20196 # as_fn_executable_p FILE
20197 # -----------------------
20198 # Test if FILE is an executable regular file.
20199 as_fn_executable_p ()
20200 {
20201 test -f "$1" && test -x "$1"
20202 } # as_fn_executable_p
20203 as_test_x='test -x'
20204 as_executable_p=as_fn_executable_p
20205
20206 # Sed expression to map a string onto a valid CPP name.
20207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20208
20209 # Sed expression to map a string onto a valid variable name.
20210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20211
20212
20213 exec 6>&1
20214 ## ----------------------------------- ##
20215 ## Main body of $CONFIG_STATUS script. ##
20216 ## ----------------------------------- ##
20217 _ASEOF
20218 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20219
20220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20221 # Save the log message, to keep $0 and so on meaningful, and to
20222 # report actual input values of CONFIG_FILES etc. instead of their
20223 # values after options handling.
20224 ac_log="
20225 This file was extended by libfontenc $as_me 1.1.6, which was
20226 generated by GNU Autoconf 2.71. Invocation command line was
20227
20228 CONFIG_FILES = $CONFIG_FILES
20229 CONFIG_HEADERS = $CONFIG_HEADERS
20230 CONFIG_LINKS = $CONFIG_LINKS
20231 CONFIG_COMMANDS = $CONFIG_COMMANDS
20232 $ $0 $@
20233
20234 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20235 "
20236
20237 _ACEOF
20238
20239 case $ac_config_files in *"
20240 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20241 esac
20242
20243 case $ac_config_headers in *"
20244 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20245 esac
20246
20247
20248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20249 # Files that config.status was made for.
20250 config_files="$ac_config_files"
20251 config_headers="$ac_config_headers"
20252 config_commands="$ac_config_commands"
20253
20254 _ACEOF
20255
20256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20257 ac_cs_usage="\
20258 \`$as_me' instantiates files and other configuration actions
20259 from templates according to the current configuration. Unless the files
20260 and actions are specified as TAGs, all are instantiated by default.
20261
20262 Usage: $0 [OPTION]... [TAG]...
20263
20264 -h, --help print this help, then exit
20265 -V, --version print version number and configuration settings, then exit
20266 --config print configuration, then exit
20267 -q, --quiet, --silent
20268 do not print progress messages
20269 -d, --debug don't remove temporary files
20270 --recheck update $as_me by reconfiguring in the same conditions
20271 --file=FILE[:TEMPLATE]
20272 instantiate the configuration file FILE
20273 --header=FILE[:TEMPLATE]
20274 instantiate the configuration header FILE
20275
20276 Configuration files:
20277 $config_files
20278
20279 Configuration headers:
20280 $config_headers
20281
20282 Configuration commands:
20283 $config_commands
20284
20285 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>."
20286
20287 _ACEOF
20288 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20289 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20291 ac_cs_config='$ac_cs_config_escaped'
20292 ac_cs_version="\\
20293 libfontenc config.status 1.1.6
20294 configured by $0, generated by GNU Autoconf 2.71,
20295 with options \\"\$ac_cs_config\\"
20296
20297 Copyright (C) 2021 Free Software Foundation, Inc.
20298 This config.status script is free software; the Free Software Foundation
20299 gives unlimited permission to copy, distribute and modify it."
20300
20301 ac_pwd='$ac_pwd'
20302 srcdir='$srcdir'
20303 INSTALL='$INSTALL'
20304 MKDIR_P='$MKDIR_P'
20305 AWK='$AWK'
20306 test -n "\$AWK" || AWK=awk
20307 _ACEOF
20308
20309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20310 # The default lists apply if the user does not specify any file.
20311 ac_need_defaults=:
20312 while test $# != 0
20313 do
20314 case $1 in
20315 --*=?*)
20316 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20317 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20318 ac_shift=:
20319 ;;
20320 --*=)
20321 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20322 ac_optarg=
20323 ac_shift=:
20324 ;;
20325 *)
20326 ac_option=$1
20327 ac_optarg=$2
20328 ac_shift=shift
20329 ;;
20330 esac
20331
20332 case $ac_option in
20333 # Handling of the options.
20334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20335 ac_cs_recheck=: ;;
20336 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20337 printf "%s\n" "$ac_cs_version"; exit ;;
20338 --config | --confi | --conf | --con | --co | --c )
20339 printf "%s\n" "$ac_cs_config"; exit ;;
20340 --debug | --debu | --deb | --de | --d | -d )
20341 debug=: ;;
20342 --file | --fil | --fi | --f )
20343 $ac_shift
20344 case $ac_optarg in
20345 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20346 '') as_fn_error $? "missing file argument" ;;
20347 esac
20348 as_fn_append CONFIG_FILES " '$ac_optarg'"
20349 ac_need_defaults=false;;
20350 --header | --heade | --head | --hea )
20351 $ac_shift
20352 case $ac_optarg in
20353 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20354 esac
20355 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20356 ac_need_defaults=false;;
20357 --he | --h)
20358 # Conflict between --help and --header
20359 as_fn_error $? "ambiguous option: \`$1'
20360 Try \`$0 --help' for more information.";;
20361 --help | --hel | -h )
20362 printf "%s\n" "$ac_cs_usage"; exit ;;
20363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20364 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20365 ac_cs_silent=: ;;
20366
20367 # This is an error.
20368 -*) as_fn_error $? "unrecognized option: \`$1'
20369 Try \`$0 --help' for more information." ;;
20370
20371 *) as_fn_append ac_config_targets " $1"
20372 ac_need_defaults=false ;;
20373
20374 esac
20375 shift
20376 done
20377
20378 ac_configure_extra_args=
20379
20380 if $ac_cs_silent; then
20381 exec 6>/dev/null
20382 ac_configure_extra_args="$ac_configure_extra_args --silent"
20383 fi
20384
20385 _ACEOF
20386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20387 if \$ac_cs_recheck; then
20388 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20389 shift
20390 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20391 CONFIG_SHELL='$SHELL'
20392 export CONFIG_SHELL
20393 exec "\$@"
20394 fi
20395
20396 _ACEOF
20397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20398 exec 5>>config.log
20399 {
20400 echo
20401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20402 ## Running $as_me. ##
20403 _ASBOX
20404 printf "%s\n" "$ac_log"
20405 } >&5
20406
20407 _ACEOF
20408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20409 #
20410 # INIT-COMMANDS
20411 #
20412 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20413
20414
20415 # The HP-UX ksh and POSIX shell print the target directory to stdout
20416 # if CDPATH is set.
20417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20418
20419 sed_quote_subst='$sed_quote_subst'
20420 double_quote_subst='$double_quote_subst'
20421 delay_variable_subst='$delay_variable_subst'
20422 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20423 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20424 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20425 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20426 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20427 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20428 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20429 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20430 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20431 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20432 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20433 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20434 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20435 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20436 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20437 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20438 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20439 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20440 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20441 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20442 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20443 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20444 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20445 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20446 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20447 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20448 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20449 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20450 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20451 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20452 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20453 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20454 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20455 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20456 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20457 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20458 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20459 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20460 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20461 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20462 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20463 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20464 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20465 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20466 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20467 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20468 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20469 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20470 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20471 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20472 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20473 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20474 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20475 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20476 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20477 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20478 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20479 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20480 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20481 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20482 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"`'
20483 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20484 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20485 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20486 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20487 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20488 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20489 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20490 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20491 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20492 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20493 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20494 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20495 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20496 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20497 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20498 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20499 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20500 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20501 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20502 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20503 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20504 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20505 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20506 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20507 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20508 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20509 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20510 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20511 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20512 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20513 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20514 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20515 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20516 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20517 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20518 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20519 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20520 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20521 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20522 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20523 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20524 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20525 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20526 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20527 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20528 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20529 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20530 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20531 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20532 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20533 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20534 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20535 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20536 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20537 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20538 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20539 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20540 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20541 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20542 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20543 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20544 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20545 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20546 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20547 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20548 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20549 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20550 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20551 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20552 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20553 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20554 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20555 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20556 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20557 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20558 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20559
20560 LTCC='$LTCC'
20561 LTCFLAGS='$LTCFLAGS'
20562 compiler='$compiler_DEFAULT'
20563
20564 # A function that is used when there is no print builtin or printf.
20565 func_fallback_echo ()
20566 {
20567 eval 'cat <<_LTECHO_EOF
20568 \$1
20569 _LTECHO_EOF'
20570 }
20571
20572 # Quote evaled strings.
20573 for var in SHELL \
20574 ECHO \
20575 PATH_SEPARATOR \
20576 SED \
20577 GREP \
20578 EGREP \
20579 FGREP \
20580 LD \
20581 NM \
20582 LN_S \
20583 lt_SP2NL \
20584 lt_NL2SP \
20585 reload_flag \
20586 FILECMD \
20587 OBJDUMP \
20588 deplibs_check_method \
20589 file_magic_cmd \
20590 file_magic_glob \
20591 want_nocaseglob \
20592 DLLTOOL \
20593 sharedlib_from_linklib_cmd \
20594 AR \
20595 archiver_list_spec \
20596 STRIP \
20597 RANLIB \
20598 CC \
20599 CFLAGS \
20600 compiler \
20601 lt_cv_sys_global_symbol_pipe \
20602 lt_cv_sys_global_symbol_to_cdecl \
20603 lt_cv_sys_global_symbol_to_import \
20604 lt_cv_sys_global_symbol_to_c_name_address \
20605 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20606 lt_cv_nm_interface \
20607 nm_file_list_spec \
20608 lt_cv_truncate_bin \
20609 lt_prog_compiler_no_builtin_flag \
20610 lt_prog_compiler_pic \
20611 lt_prog_compiler_wl \
20612 lt_prog_compiler_static \
20613 lt_cv_prog_compiler_c_o \
20614 need_locks \
20615 MANIFEST_TOOL \
20616 DSYMUTIL \
20617 NMEDIT \
20618 LIPO \
20619 OTOOL \
20620 OTOOL64 \
20621 shrext_cmds \
20622 export_dynamic_flag_spec \
20623 whole_archive_flag_spec \
20624 compiler_needs_object \
20625 with_gnu_ld \
20626 allow_undefined_flag \
20627 no_undefined_flag \
20628 hardcode_libdir_flag_spec \
20629 hardcode_libdir_separator \
20630 exclude_expsyms \
20631 include_expsyms \
20632 file_list_spec \
20633 variables_saved_for_relink \
20634 libname_spec \
20635 library_names_spec \
20636 soname_spec \
20637 install_override_mode \
20638 finish_eval \
20639 old_striplib \
20640 striplib; do
20641 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20642 *[\\\\\\\`\\"\\\$]*)
20643 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20644 ;;
20645 *)
20646 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20647 ;;
20648 esac
20649 done
20650
20651 # Double-quote double-evaled strings.
20652 for var in reload_cmds \
20653 old_postinstall_cmds \
20654 old_postuninstall_cmds \
20655 old_archive_cmds \
20656 extract_expsyms_cmds \
20657 old_archive_from_new_cmds \
20658 old_archive_from_expsyms_cmds \
20659 archive_cmds \
20660 archive_expsym_cmds \
20661 module_cmds \
20662 module_expsym_cmds \
20663 export_symbols_cmds \
20664 prelink_cmds \
20665 postlink_cmds \
20666 postinstall_cmds \
20667 postuninstall_cmds \
20668 finish_cmds \
20669 sys_lib_search_path_spec \
20670 configure_time_dlsearch_path \
20671 configure_time_lt_sys_library_path; do
20672 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20673 *[\\\\\\\`\\"\\\$]*)
20674 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20675 ;;
20676 *)
20677 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20678 ;;
20679 esac
20680 done
20681
20682 ac_aux_dir='$ac_aux_dir'
20683
20684 # See if we are running on zsh, and set the options that allow our
20685 # commands through without removal of \ escapes INIT.
20686 if test -n "\${ZSH_VERSION+set}"; then
20687 setopt NO_GLOB_SUBST
20688 fi
20689
20690
20691 PACKAGE='$PACKAGE'
20692 VERSION='$VERSION'
20693 RM='$RM'
20694 ofile='$ofile'
20695
20696
20697
20698
20699 _ACEOF
20700
20701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20702
20703 # Handling of arguments.
20704 for ac_config_target in $ac_config_targets
20705 do
20706 case $ac_config_target in
20707 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20708 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20709 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20710 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20711 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20712 "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;;
20713
20714 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20715 esac
20716 done
20717
20718
20719 # If the user did not use the arguments to specify the items to instantiate,
20720 # then the envvar interface is used. Set only those that are not.
20721 # We use the long form for the default assignment because of an extremely
20722 # bizarre bug on SunOS 4.1.3.
20723 if $ac_need_defaults; then
20724 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20725 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20726 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20727 fi
20728
20729 # Have a temporary directory for convenience. Make it in the build tree
20730 # simply because there is no reason against having it here, and in addition,
20731 # creating and moving files from /tmp can sometimes cause problems.
20732 # Hook for its removal unless debugging.
20733 # Note that there is a small window in which the directory will not be cleaned:
20734 # after its creation but before its name has been assigned to `$tmp'.
20735 $debug ||
20736 {
20737 tmp= ac_tmp=
20738 trap 'exit_status=$?
20739 : "${ac_tmp:=$tmp}"
20740 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20741 ' 0
20742 trap 'as_fn_exit 1' 1 2 13 15
20743 }
20744 # Create a (secure) tmp directory for tmp files.
20745
20746 {
20747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20748 test -d "$tmp"
20749 } ||
20750 {
20751 tmp=./conf$$-$RANDOM
20752 (umask 077 && mkdir "$tmp")
20753 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20754 ac_tmp=$tmp
20755
20756 # Set up the scripts for CONFIG_FILES section.
20757 # No need to generate them if there are no CONFIG_FILES.
20758 # This happens for instance with `./config.status config.h'.
20759 if test -n "$CONFIG_FILES"; then
20760
20761
20762 ac_cr=`echo X | tr X '\015'`
20763 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20764 # But we know of no other shell where ac_cr would be empty at this
20765 # point, so we can use a bashism as a fallback.
20766 if test "x$ac_cr" = x; then
20767 eval ac_cr=\$\'\\r\'
20768 fi
20769 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20770 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20771 ac_cs_awk_cr='\\r'
20772 else
20773 ac_cs_awk_cr=$ac_cr
20774 fi
20775
20776 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20777 _ACEOF
20778
20779
20780 {
20781 echo "cat >conf$$subs.awk <<_ACEOF" &&
20782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20783 echo "_ACEOF"
20784 } >conf$$subs.sh ||
20785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20787 ac_delim='%!_!# '
20788 for ac_last_try in false false false false false :; do
20789 . ./conf$$subs.sh ||
20790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20791
20792 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20793 if test $ac_delim_n = $ac_delim_num; then
20794 break
20795 elif $ac_last_try; then
20796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20797 else
20798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20799 fi
20800 done
20801 rm -f conf$$subs.sh
20802
20803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20804 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20805 _ACEOF
20806 sed -n '
20807 h
20808 s/^/S["/; s/!.*/"]=/
20809 p
20810 g
20811 s/^[^!]*!//
20812 :repl
20813 t repl
20814 s/'"$ac_delim"'$//
20815 t delim
20816 :nl
20817 h
20818 s/\(.\{148\}\)..*/\1/
20819 t more1
20820 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20821 p
20822 n
20823 b repl
20824 :more1
20825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20826 p
20827 g
20828 s/.\{148\}//
20829 t nl
20830 :delim
20831 h
20832 s/\(.\{148\}\)..*/\1/
20833 t more2
20834 s/["\\]/\\&/g; s/^/"/; s/$/"/
20835 p
20836 b
20837 :more2
20838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20839 p
20840 g
20841 s/.\{148\}//
20842 t delim
20843 ' <conf$$subs.awk | sed '
20844 /^[^""]/{
20845 N
20846 s/\n//
20847 }
20848 ' >>$CONFIG_STATUS || ac_write_fail=1
20849 rm -f conf$$subs.awk
20850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20851 _ACAWK
20852 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20853 for (key in S) S_is_set[key] = 1
20854 FS = ""
20855
20856 }
20857 {
20858 line = $ 0
20859 nfields = split(line, field, "@")
20860 substed = 0
20861 len = length(field[1])
20862 for (i = 2; i < nfields; i++) {
20863 key = field[i]
20864 keylen = length(key)
20865 if (S_is_set[key]) {
20866 value = S[key]
20867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20868 len += length(value) + length(field[++i])
20869 substed = 1
20870 } else
20871 len += 1 + keylen
20872 }
20873
20874 print line
20875 }
20876
20877 _ACAWK
20878 _ACEOF
20879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20880 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20881 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20882 else
20883 cat
20884 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20885 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20886 _ACEOF
20887
20888 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20889 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20890 # trailing colons and then remove the whole line if VPATH becomes empty
20891 # (actually we leave an empty line to preserve line numbers).
20892 if test "x$srcdir" = x.; then
20893 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20894 h
20895 s///
20896 s/^/:/
20897 s/[ ]*$/:/
20898 s/:\$(srcdir):/:/g
20899 s/:\${srcdir}:/:/g
20900 s/:@srcdir@:/:/g
20901 s/^:*//
20902 s/:*$//
20903 x
20904 s/\(=[ ]*\).*/\1/
20905 G
20906 s/\n//
20907 s/^[^=]*=[ ]*$//
20908 }'
20909 fi
20910
20911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20912 fi # test -n "$CONFIG_FILES"
20913
20914 # Set up the scripts for CONFIG_HEADERS section.
20915 # No need to generate them if there are no CONFIG_HEADERS.
20916 # This happens for instance with `./config.status Makefile'.
20917 if test -n "$CONFIG_HEADERS"; then
20918 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20919 BEGIN {
20920 _ACEOF
20921
20922 # Transform confdefs.h into an awk script `defines.awk', embedded as
20923 # here-document in config.status, that substitutes the proper values into
20924 # config.h.in to produce config.h.
20925
20926 # Create a delimiter string that does not exist in confdefs.h, to ease
20927 # handling of long lines.
20928 ac_delim='%!_!# '
20929 for ac_last_try in false false :; do
20930 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20931 if test -z "$ac_tt"; then
20932 break
20933 elif $ac_last_try; then
20934 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20935 else
20936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20937 fi
20938 done
20939
20940 # For the awk script, D is an array of macro values keyed by name,
20941 # likewise P contains macro parameters if any. Preserve backslash
20942 # newline sequences.
20943
20944 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20945 sed -n '
20946 s/.\{148\}/&'"$ac_delim"'/g
20947 t rset
20948 :rset
20949 s/^[ ]*#[ ]*define[ ][ ]*/ /
20950 t def
20951 d
20952 :def
20953 s/\\$//
20954 t bsnl
20955 s/["\\]/\\&/g
20956 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20957 D["\1"]=" \3"/p
20958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20959 d
20960 :bsnl
20961 s/["\\]/\\&/g
20962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20963 D["\1"]=" \3\\\\\\n"\\/p
20964 t cont
20965 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20966 t cont
20967 d
20968 :cont
20969 n
20970 s/.\{148\}/&'"$ac_delim"'/g
20971 t clear
20972 :clear
20973 s/\\$//
20974 t bsnlc
20975 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20976 d
20977 :bsnlc
20978 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20979 b cont
20980 ' <confdefs.h | sed '
20981 s/'"$ac_delim"'/"\\\
20982 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20983
20984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20985 for (key in D) D_is_set[key] = 1
20986 FS = ""
20987 }
20988 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20989 line = \$ 0
20990 split(line, arg, " ")
20991 if (arg[1] == "#") {
20992 defundef = arg[2]
20993 mac1 = arg[3]
20994 } else {
20995 defundef = substr(arg[1], 2)
20996 mac1 = arg[2]
20997 }
20998 split(mac1, mac2, "(") #)
20999 macro = mac2[1]
21000 prefix = substr(line, 1, index(line, defundef) - 1)
21001 if (D_is_set[macro]) {
21002 # Preserve the white space surrounding the "#".
21003 print prefix "define", macro P[macro] D[macro]
21004 next
21005 } else {
21006 # Replace #undef with comments. This is necessary, for example,
21007 # in the case of _POSIX_SOURCE, which is predefined and required
21008 # on some systems where configure will not decide to define it.
21009 if (defundef == "undef") {
21010 print "/*", prefix defundef, macro, "*/"
21011 next
21012 }
21013 }
21014 }
21015 { print }
21016 _ACAWK
21017 _ACEOF
21018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21019 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21020 fi # test -n "$CONFIG_HEADERS"
21021
21022
21023 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21024 shift
21025 for ac_tag
21026 do
21027 case $ac_tag in
21028 :[FHLC]) ac_mode=$ac_tag; continue;;
21029 esac
21030 case $ac_mode$ac_tag in
21031 :[FHL]*:*);;
21032 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21033 :[FH]-) ac_tag=-:-;;
21034 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21035 esac
21036 ac_save_IFS=$IFS
21037 IFS=:
21038 set x $ac_tag
21039 IFS=$ac_save_IFS
21040 shift
21041 ac_file=$1
21042 shift
21043
21044 case $ac_mode in
21045 :L) ac_source=$1;;
21046 :[FH])
21047 ac_file_inputs=
21048 for ac_f
21049 do
21050 case $ac_f in
21051 -) ac_f="$ac_tmp/stdin";;
21052 *) # Look for the file first in the build tree, then in the source tree
21053 # (if the path is not absolute). The absolute path cannot be DOS-style,
21054 # because $ac_f cannot contain `:'.
21055 test -f "$ac_f" ||
21056 case $ac_f in
21057 [\\/$]*) false;;
21058 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21059 esac ||
21060 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21061 esac
21062 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21063 as_fn_append ac_file_inputs " '$ac_f'"
21064 done
21065
21066 # Let's still pretend it is `configure' which instantiates (i.e., don't
21067 # use $as_me), people would be surprised to read:
21068 # /* config.h. Generated by config.status. */
21069 configure_input='Generated from '`
21070 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21071 `' by configure.'
21072 if test x"$ac_file" != x-; then
21073 configure_input="$ac_file. $configure_input"
21074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21075 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21076 fi
21077 # Neutralize special characters interpreted by sed in replacement strings.
21078 case $configure_input in #(
21079 *\&* | *\|* | *\\* )
21080 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21081 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21082 *) ac_sed_conf_input=$configure_input;;
21083 esac
21084
21085 case $ac_tag in
21086 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21088 esac
21089 ;;
21090 esac
21091
21092 ac_dir=`$as_dirname -- "$ac_file" ||
21093 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21094 X"$ac_file" : 'X\(//\)[^/]' \| \
21095 X"$ac_file" : 'X\(//\)$' \| \
21096 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21097 printf "%s\n" X"$ac_file" |
21098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21099 s//\1/
21100 q
21101 }
21102 /^X\(\/\/\)[^/].*/{
21103 s//\1/
21104 q
21105 }
21106 /^X\(\/\/\)$/{
21107 s//\1/
21108 q
21109 }
21110 /^X\(\/\).*/{
21111 s//\1/
21112 q
21113 }
21114 s/.*/./; q'`
21115 as_dir="$ac_dir"; as_fn_mkdir_p
21116 ac_builddir=.
21117
21118 case "$ac_dir" in
21119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21120 *)
21121 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21122 # A ".." for each directory in $ac_dir_suffix.
21123 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21124 case $ac_top_builddir_sub in
21125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21127 esac ;;
21128 esac
21129 ac_abs_top_builddir=$ac_pwd
21130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21131 # for backward compatibility:
21132 ac_top_builddir=$ac_top_build_prefix
21133
21134 case $srcdir in
21135 .) # We are building in place.
21136 ac_srcdir=.
21137 ac_top_srcdir=$ac_top_builddir_sub
21138 ac_abs_top_srcdir=$ac_pwd ;;
21139 [\\/]* | ?:[\\/]* ) # Absolute name.
21140 ac_srcdir=$srcdir$ac_dir_suffix;
21141 ac_top_srcdir=$srcdir
21142 ac_abs_top_srcdir=$srcdir ;;
21143 *) # Relative name.
21144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21145 ac_top_srcdir=$ac_top_build_prefix$srcdir
21146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21147 esac
21148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21149
21150
21151 case $ac_mode in
21152 :F)
21153 #
21154 # CONFIG_FILE
21155 #
21156
21157 case $INSTALL in
21158 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21159 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21160 esac
21161 ac_MKDIR_P=$MKDIR_P
21162 case $MKDIR_P in
21163 [\\/$]* | ?:[\\/]* ) ;;
21164 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21165 esac
21166 _ACEOF
21167
21168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21169 # If the template does not know about datarootdir, expand it.
21170 # FIXME: This hack should be removed a few years after 2.60.
21171 ac_datarootdir_hack=; ac_datarootdir_seen=
21172 ac_sed_dataroot='
21173 /datarootdir/ {
21174 p
21175 q
21176 }
21177 /@datadir@/p
21178 /@docdir@/p
21179 /@infodir@/p
21180 /@localedir@/p
21181 /@mandir@/p'
21182 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21183 *datarootdir*) ac_datarootdir_seen=yes;;
21184 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21186 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21187 _ACEOF
21188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21189 ac_datarootdir_hack='
21190 s&@datadir@&$datadir&g
21191 s&@docdir@&$docdir&g
21192 s&@infodir@&$infodir&g
21193 s&@localedir@&$localedir&g
21194 s&@mandir@&$mandir&g
21195 s&\\\${datarootdir}&$datarootdir&g' ;;
21196 esac
21197 _ACEOF
21198
21199 # Neutralize VPATH when `$srcdir' = `.'.
21200 # Shell code in configure.ac might set extrasub.
21201 # FIXME: do we really want to maintain this feature?
21202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21203 ac_sed_extra="$ac_vpsub
21204 $extrasub
21205 _ACEOF
21206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21207 :t
21208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21209 s|@configure_input@|$ac_sed_conf_input|;t t
21210 s&@top_builddir@&$ac_top_builddir_sub&;t t
21211 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21212 s&@srcdir@&$ac_srcdir&;t t
21213 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21214 s&@top_srcdir@&$ac_top_srcdir&;t t
21215 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21216 s&@builddir@&$ac_builddir&;t t
21217 s&@abs_builddir@&$ac_abs_builddir&;t t
21218 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21219 s&@INSTALL@&$ac_INSTALL&;t t
21220 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21221 $ac_datarootdir_hack
21222 "
21223 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21224 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21225
21226 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21227 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21228 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21229 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21231 which seems to be undefined. Please make sure it is defined" >&5
21232 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21233 which seems to be undefined. Please make sure it is defined" >&2;}
21234
21235 rm -f "$ac_tmp/stdin"
21236 case $ac_file in
21237 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21238 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21239 esac \
21240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21241 ;;
21242 :H)
21243 #
21244 # CONFIG_HEADER
21245 #
21246 if test x"$ac_file" != x-; then
21247 {
21248 printf "%s\n" "/* $configure_input */" >&1 \
21249 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21250 } >"$ac_tmp/config.h" \
21251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21252 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21254 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21255 else
21256 rm -f "$ac_file"
21257 mv "$ac_tmp/config.h" "$ac_file" \
21258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21259 fi
21260 else
21261 printf "%s\n" "/* $configure_input */" >&1 \
21262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21263 || as_fn_error $? "could not create -" "$LINENO" 5
21264 fi
21265 # Compute "$ac_file"'s index in $config_headers.
21266 _am_arg="$ac_file"
21267 _am_stamp_count=1
21268 for _am_header in $config_headers :; do
21269 case $_am_header in
21270 $_am_arg | $_am_arg:* )
21271 break ;;
21272 * )
21273 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21274 esac
21275 done
21276 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21277 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21278 X"$_am_arg" : 'X\(//\)[^/]' \| \
21279 X"$_am_arg" : 'X\(//\)$' \| \
21280 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21281 printf "%s\n" X"$_am_arg" |
21282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21283 s//\1/
21284 q
21285 }
21286 /^X\(\/\/\)[^/].*/{
21287 s//\1/
21288 q
21289 }
21290 /^X\(\/\/\)$/{
21291 s//\1/
21292 q
21293 }
21294 /^X\(\/\).*/{
21295 s//\1/
21296 q
21297 }
21298 s/.*/./; q'`/stamp-h$_am_stamp_count
21299 ;;
21300
21301 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21302 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21303 ;;
21304 esac
21305
21306
21307 case $ac_file$ac_mode in
21308 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21309 # Older Autoconf quotes --file arguments for eval, but not when files
21310 # are listed without --file. Let's play safe and only enable the eval
21311 # if we detect the quoting.
21312 # TODO: see whether this extra hack can be removed once we start
21313 # requiring Autoconf 2.70 or later.
21314 case $CONFIG_FILES in #(
21315 *\'*) :
21316 eval set x "$CONFIG_FILES" ;; #(
21317 *) :
21318 set x $CONFIG_FILES ;; #(
21319 *) :
21320 ;;
21321 esac
21322 shift
21323 # Used to flag and report bootstrapping failures.
21324 am_rc=0
21325 for am_mf
21326 do
21327 # Strip MF so we end up with the name of the file.
21328 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21329 # Check whether this is an Automake generated Makefile which includes
21330 # dependency-tracking related rules and includes.
21331 # Grep'ing the whole file directly is not great: AIX grep has a line
21332 # limit of 2048, but all sed's we know have understand at least 4000.
21333 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21334 || continue
21335 am_dirpart=`$as_dirname -- "$am_mf" ||
21336 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21337 X"$am_mf" : 'X\(//\)[^/]' \| \
21338 X"$am_mf" : 'X\(//\)$' \| \
21339 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21340 printf "%s\n" X"$am_mf" |
21341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21342 s//\1/
21343 q
21344 }
21345 /^X\(\/\/\)[^/].*/{
21346 s//\1/
21347 q
21348 }
21349 /^X\(\/\/\)$/{
21350 s//\1/
21351 q
21352 }
21353 /^X\(\/\).*/{
21354 s//\1/
21355 q
21356 }
21357 s/.*/./; q'`
21358 am_filepart=`$as_basename -- "$am_mf" ||
21359 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21360 X"$am_mf" : 'X\(//\)$' \| \
21361 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21362 printf "%s\n" X/"$am_mf" |
21363 sed '/^.*\/\([^/][^/]*\)\/*$/{
21364 s//\1/
21365 q
21366 }
21367 /^X\/\(\/\/\)$/{
21368 s//\1/
21369 q
21370 }
21371 /^X\/\(\/\).*/{
21372 s//\1/
21373 q
21374 }
21375 s/.*/./; q'`
21376 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21377 && sed -e '/# am--include-marker/d' "$am_filepart" \
21378 | $MAKE -f - am--depfiles" >&5
21379 (cd "$am_dirpart" \
21380 && sed -e '/# am--include-marker/d' "$am_filepart" \
21381 | $MAKE -f - am--depfiles) >&5 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } || am_rc=$?
21385 done
21386 if test $am_rc -ne 0; then
21387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21388 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21389 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21390 for automatic dependency tracking. If GNU make was not used, consider
21391 re-running the configure script with MAKE=\"gmake\" (or whatever is
21392 necessary). You can also try re-running configure with the
21393 '--disable-dependency-tracking' option to at least be able to build
21394 the package (albeit without support for automatic dependency tracking).
21395 See \`config.log' for more details" "$LINENO" 5; }
21396 fi
21397 { am_dirpart=; unset am_dirpart;}
21398 { am_filepart=; unset am_filepart;}
21399 { am_mf=; unset am_mf;}
21400 { am_rc=; unset am_rc;}
21401 rm -f conftest-deps.mk
21402 }
21403 ;;
21404 "libtool":C)
21405
21406 # See if we are running on zsh, and set the options that allow our
21407 # commands through without removal of \ escapes.
21408 if test -n "${ZSH_VERSION+set}"; then
21409 setopt NO_GLOB_SUBST
21410 fi
21411
21412 cfgfile=${ofile}T
21413 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21414 $RM "$cfgfile"
21415
21416 cat <<_LT_EOF >> "$cfgfile"
21417 #! $SHELL
21418 # Generated automatically by $as_me ($PACKAGE) $VERSION
21419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21420 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21421
21422 # Provide generalized library-building support services.
21423 # Written by Gordon Matzigkeit, 1996
21424
21425 # Copyright (C) 2014 Free Software Foundation, Inc.
21426 # This is free software; see the source for copying conditions. There is NO
21427 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21428
21429 # GNU Libtool is free software; you can redistribute it and/or modify
21430 # it under the terms of the GNU General Public License as published by
21431 # the Free Software Foundation; either version 2 of of the License, or
21432 # (at your option) any later version.
21433 #
21434 # As a special exception to the GNU General Public License, if you
21435 # distribute this file as part of a program or library that is built
21436 # using GNU Libtool, you may include this file under the same
21437 # distribution terms that you use for the rest of that program.
21438 #
21439 # GNU Libtool is distributed in the hope that it will be useful, but
21440 # WITHOUT ANY WARRANTY; without even the implied warranty of
21441 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21442 # GNU General Public License for more details.
21443 #
21444 # You should have received a copy of the GNU General Public License
21445 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21446
21447
21448 # The names of the tagged configurations supported by this script.
21449 available_tags=''
21450
21451 # Configured defaults for sys_lib_dlsearch_path munging.
21452 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21453
21454 # ### BEGIN LIBTOOL CONFIG
21455
21456 # Which release of libtool.m4 was used?
21457 macro_version=$macro_version
21458 macro_revision=$macro_revision
21459
21460 # Whether or not to build shared libraries.
21461 build_libtool_libs=$enable_shared
21462
21463 # Whether or not to build static libraries.
21464 build_old_libs=$enable_static
21465
21466 # What type of objects to build.
21467 pic_mode=$pic_mode
21468
21469 # Whether or not to optimize for fast installation.
21470 fast_install=$enable_fast_install
21471
21472 # Shared archive member basename,for filename based shared library versioning on AIX.
21473 shared_archive_member_spec=$shared_archive_member_spec
21474
21475 # Shell to use when invoking shell scripts.
21476 SHELL=$lt_SHELL
21477
21478 # An echo program that protects backslashes.
21479 ECHO=$lt_ECHO
21480
21481 # The PATH separator for the build system.
21482 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21483
21484 # The host system.
21485 host_alias=$host_alias
21486 host=$host
21487 host_os=$host_os
21488
21489 # The build system.
21490 build_alias=$build_alias
21491 build=$build
21492 build_os=$build_os
21493
21494 # A sed program that does not truncate output.
21495 SED=$lt_SED
21496
21497 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21498 Xsed="\$SED -e 1s/^X//"
21499
21500 # A grep program that handles long lines.
21501 GREP=$lt_GREP
21502
21503 # An ERE matcher.
21504 EGREP=$lt_EGREP
21505
21506 # A literal string matcher.
21507 FGREP=$lt_FGREP
21508
21509 # A BSD- or MS-compatible name lister.
21510 NM=$lt_NM
21511
21512 # Whether we need soft or hard links.
21513 LN_S=$lt_LN_S
21514
21515 # What is the maximum length of a command?
21516 max_cmd_len=$max_cmd_len
21517
21518 # Object file suffix (normally "o").
21519 objext=$ac_objext
21520
21521 # Executable file suffix (normally "").
21522 exeext=$exeext
21523
21524 # whether the shell understands "unset".
21525 lt_unset=$lt_unset
21526
21527 # turn spaces into newlines.
21528 SP2NL=$lt_lt_SP2NL
21529
21530 # turn newlines into spaces.
21531 NL2SP=$lt_lt_NL2SP
21532
21533 # convert \$build file names to \$host format.
21534 to_host_file_cmd=$lt_cv_to_host_file_cmd
21535
21536 # convert \$build files to toolchain format.
21537 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21538
21539 # A file(cmd) program that detects file types.
21540 FILECMD=$lt_FILECMD
21541
21542 # An object symbol dumper.
21543 OBJDUMP=$lt_OBJDUMP
21544
21545 # Method to check whether dependent libraries are shared objects.
21546 deplibs_check_method=$lt_deplibs_check_method
21547
21548 # Command to use when deplibs_check_method = "file_magic".
21549 file_magic_cmd=$lt_file_magic_cmd
21550
21551 # How to find potential files when deplibs_check_method = "file_magic".
21552 file_magic_glob=$lt_file_magic_glob
21553
21554 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21555 want_nocaseglob=$lt_want_nocaseglob
21556
21557 # DLL creation program.
21558 DLLTOOL=$lt_DLLTOOL
21559
21560 # Command to associate shared and link libraries.
21561 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21562
21563 # The archiver.
21564 AR=$lt_AR
21565
21566 # Flags to create an archive (by configure).
21567 lt_ar_flags=$lt_ar_flags
21568
21569 # Flags to create an archive.
21570 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21571
21572 # How to feed a file listing to the archiver.
21573 archiver_list_spec=$lt_archiver_list_spec
21574
21575 # A symbol stripping program.
21576 STRIP=$lt_STRIP
21577
21578 # Commands used to install an old-style archive.
21579 RANLIB=$lt_RANLIB
21580 old_postinstall_cmds=$lt_old_postinstall_cmds
21581 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21582
21583 # Whether to use a lock for old archive extraction.
21584 lock_old_archive_extraction=$lock_old_archive_extraction
21585
21586 # A C compiler.
21587 LTCC=$lt_CC
21588
21589 # LTCC compiler flags.
21590 LTCFLAGS=$lt_CFLAGS
21591
21592 # Take the output of nm and produce a listing of raw symbols and C names.
21593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21594
21595 # Transform the output of nm in a proper C declaration.
21596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21597
21598 # Transform the output of nm into a list of symbols to manually relocate.
21599 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21600
21601 # Transform the output of nm in a C name address pair.
21602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21603
21604 # Transform the output of nm in a C name address pair when lib prefix is needed.
21605 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21606
21607 # The name lister interface.
21608 nm_interface=$lt_lt_cv_nm_interface
21609
21610 # Specify filename containing input files for \$NM.
21611 nm_file_list_spec=$lt_nm_file_list_spec
21612
21613 # The root where to search for dependent libraries,and where our libraries should be installed.
21614 lt_sysroot=$lt_sysroot
21615
21616 # Command to truncate a binary pipe.
21617 lt_truncate_bin=$lt_lt_cv_truncate_bin
21618
21619 # The name of the directory that contains temporary libtool files.
21620 objdir=$objdir
21621
21622 # Used to examine libraries when file_magic_cmd begins with "file".
21623 MAGIC_CMD=$MAGIC_CMD
21624
21625 # Must we lock files when doing compilation?
21626 need_locks=$lt_need_locks
21627
21628 # Manifest tool.
21629 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21630
21631 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21632 DSYMUTIL=$lt_DSYMUTIL
21633
21634 # Tool to change global to local symbols on Mac OS X.
21635 NMEDIT=$lt_NMEDIT
21636
21637 # Tool to manipulate fat objects and archives on Mac OS X.
21638 LIPO=$lt_LIPO
21639
21640 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21641 OTOOL=$lt_OTOOL
21642
21643 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21644 OTOOL64=$lt_OTOOL64
21645
21646 # Old archive suffix (normally "a").
21647 libext=$libext
21648
21649 # Shared library suffix (normally ".so").
21650 shrext_cmds=$lt_shrext_cmds
21651
21652 # The commands to extract the exported symbol list from a shared archive.
21653 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21654
21655 # Variables whose values should be saved in libtool wrapper scripts and
21656 # restored at link time.
21657 variables_saved_for_relink=$lt_variables_saved_for_relink
21658
21659 # Do we need the "lib" prefix for modules?
21660 need_lib_prefix=$need_lib_prefix
21661
21662 # Do we need a version for libraries?
21663 need_version=$need_version
21664
21665 # Library versioning type.
21666 version_type=$version_type
21667
21668 # Shared library runtime path variable.
21669 runpath_var=$runpath_var
21670
21671 # Shared library path variable.
21672 shlibpath_var=$shlibpath_var
21673
21674 # Is shlibpath searched before the hard-coded library search path?
21675 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21676
21677 # Format of library name prefix.
21678 libname_spec=$lt_libname_spec
21679
21680 # List of archive names. First name is the real one, the rest are links.
21681 # The last name is the one that the linker finds with -lNAME
21682 library_names_spec=$lt_library_names_spec
21683
21684 # The coded name of the library, if different from the real name.
21685 soname_spec=$lt_soname_spec
21686
21687 # Permission mode override for installation of shared libraries.
21688 install_override_mode=$lt_install_override_mode
21689
21690 # Command to use after installation of a shared archive.
21691 postinstall_cmds=$lt_postinstall_cmds
21692
21693 # Command to use after uninstallation of a shared archive.
21694 postuninstall_cmds=$lt_postuninstall_cmds
21695
21696 # Commands used to finish a libtool library installation in a directory.
21697 finish_cmds=$lt_finish_cmds
21698
21699 # As "finish_cmds", except a single script fragment to be evaled but
21700 # not shown.
21701 finish_eval=$lt_finish_eval
21702
21703 # Whether we should hardcode library paths into libraries.
21704 hardcode_into_libs=$hardcode_into_libs
21705
21706 # Compile-time system search path for libraries.
21707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21708
21709 # Detected run-time system search path for libraries.
21710 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21711
21712 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21713 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21714
21715 # Whether dlopen is supported.
21716 dlopen_support=$enable_dlopen
21717
21718 # Whether dlopen of programs is supported.
21719 dlopen_self=$enable_dlopen_self
21720
21721 # Whether dlopen of statically linked programs is supported.
21722 dlopen_self_static=$enable_dlopen_self_static
21723
21724 # Commands to strip libraries.
21725 old_striplib=$lt_old_striplib
21726 striplib=$lt_striplib
21727
21728
21729 # The linker used to build libraries.
21730 LD=$lt_LD
21731
21732 # How to create reloadable object files.
21733 reload_flag=$lt_reload_flag
21734 reload_cmds=$lt_reload_cmds
21735
21736 # Commands used to build an old-style archive.
21737 old_archive_cmds=$lt_old_archive_cmds
21738
21739 # A language specific compiler.
21740 CC=$lt_compiler
21741
21742 # Is the compiler the GNU compiler?
21743 with_gcc=$GCC
21744
21745 # Compiler flag to turn off builtin functions.
21746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21747
21748 # Additional compiler flags for building library objects.
21749 pic_flag=$lt_lt_prog_compiler_pic
21750
21751 # How to pass a linker flag through the compiler.
21752 wl=$lt_lt_prog_compiler_wl
21753
21754 # Compiler flag to prevent dynamic linking.
21755 link_static_flag=$lt_lt_prog_compiler_static
21756
21757 # Does compiler simultaneously support -c and -o options?
21758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21759
21760 # Whether or not to add -lc for building shared libraries.
21761 build_libtool_need_lc=$archive_cmds_need_lc
21762
21763 # Whether or not to disallow shared libs when runtime libs are static.
21764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21765
21766 # Compiler flag to allow reflexive dlopens.
21767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21768
21769 # Compiler flag to generate shared objects directly from archives.
21770 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21771
21772 # Whether the compiler copes with passing no objects directly.
21773 compiler_needs_object=$lt_compiler_needs_object
21774
21775 # Create an old-style archive from a shared archive.
21776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21777
21778 # Create a temporary old-style archive to link instead of a shared archive.
21779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21780
21781 # Commands used to build a shared archive.
21782 archive_cmds=$lt_archive_cmds
21783 archive_expsym_cmds=$lt_archive_expsym_cmds
21784
21785 # Commands used to build a loadable module if different from building
21786 # a shared archive.
21787 module_cmds=$lt_module_cmds
21788 module_expsym_cmds=$lt_module_expsym_cmds
21789
21790 # Whether we are building with GNU ld or not.
21791 with_gnu_ld=$lt_with_gnu_ld
21792
21793 # Flag that allows shared libraries with undefined symbols to be built.
21794 allow_undefined_flag=$lt_allow_undefined_flag
21795
21796 # Flag that enforces no undefined symbols.
21797 no_undefined_flag=$lt_no_undefined_flag
21798
21799 # Flag to hardcode \$libdir into a binary during linking.
21800 # This must work even if \$libdir does not exist
21801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21802
21803 # Whether we need a single "-rpath" flag with a separated argument.
21804 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21805
21806 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21807 # DIR into the resulting binary.
21808 hardcode_direct=$hardcode_direct
21809
21810 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21811 # DIR into the resulting binary and the resulting library dependency is
21812 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21813 # library is relocated.
21814 hardcode_direct_absolute=$hardcode_direct_absolute
21815
21816 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21817 # into the resulting binary.
21818 hardcode_minus_L=$hardcode_minus_L
21819
21820 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21821 # into the resulting binary.
21822 hardcode_shlibpath_var=$hardcode_shlibpath_var
21823
21824 # Set to "yes" if building a shared library automatically hardcodes DIR
21825 # into the library and all subsequent libraries and executables linked
21826 # against it.
21827 hardcode_automatic=$hardcode_automatic
21828
21829 # Set to yes if linker adds runtime paths of dependent libraries
21830 # to runtime path list.
21831 inherit_rpath=$inherit_rpath
21832
21833 # Whether libtool must link a program against all its dependency libraries.
21834 link_all_deplibs=$link_all_deplibs
21835
21836 # Set to "yes" if exported symbols are required.
21837 always_export_symbols=$always_export_symbols
21838
21839 # The commands to list exported symbols.
21840 export_symbols_cmds=$lt_export_symbols_cmds
21841
21842 # Symbols that should not be listed in the preloaded symbols.
21843 exclude_expsyms=$lt_exclude_expsyms
21844
21845 # Symbols that must always be exported.
21846 include_expsyms=$lt_include_expsyms
21847
21848 # Commands necessary for linking programs (against libraries) with templates.
21849 prelink_cmds=$lt_prelink_cmds
21850
21851 # Commands necessary for finishing linking programs.
21852 postlink_cmds=$lt_postlink_cmds
21853
21854 # Specify filename containing input files.
21855 file_list_spec=$lt_file_list_spec
21856
21857 # How to hardcode a shared library path into an executable.
21858 hardcode_action=$hardcode_action
21859
21860 # ### END LIBTOOL CONFIG
21861
21862 _LT_EOF
21863
21864 cat <<'_LT_EOF' >> "$cfgfile"
21865
21866 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21867
21868 # func_munge_path_list VARIABLE PATH
21869 # -----------------------------------
21870 # VARIABLE is name of variable containing _space_ separated list of
21871 # directories to be munged by the contents of PATH, which is string
21872 # having a format:
21873 # "DIR[:DIR]:"
21874 # string "DIR[ DIR]" will be prepended to VARIABLE
21875 # ":DIR[:DIR]"
21876 # string "DIR[ DIR]" will be appended to VARIABLE
21877 # "DIRP[:DIRP]::[DIRA:]DIRA"
21878 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21879 # "DIRA[ DIRA]" will be appended to VARIABLE
21880 # "DIR[:DIR]"
21881 # VARIABLE will be replaced by "DIR[ DIR]"
21882 func_munge_path_list ()
21883 {
21884 case x$2 in
21885 x)
21886 ;;
21887 *:)
21888 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21889 ;;
21890 x:*)
21891 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21892 ;;
21893 *::*)
21894 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21895 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21896 ;;
21897 *)
21898 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21899 ;;
21900 esac
21901 }
21902
21903
21904 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21905 func_cc_basename ()
21906 {
21907 for cc_temp in $*""; do
21908 case $cc_temp in
21909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21911 \-*) ;;
21912 *) break;;
21913 esac
21914 done
21915 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21916 }
21917
21918
21919 # ### END FUNCTIONS SHARED WITH CONFIGURE
21920
21921 _LT_EOF
21922
21923 case $host_os in
21924 aix3*)
21925 cat <<\_LT_EOF >> "$cfgfile"
21926 # AIX sometimes has problems with the GCC collect2 program. For some
21927 # reason, if we set the COLLECT_NAMES environment variable, the problems
21928 # vanish in a puff of smoke.
21929 if test set != "${COLLECT_NAMES+set}"; then
21930 COLLECT_NAMES=
21931 export COLLECT_NAMES
21932 fi
21933 _LT_EOF
21934 ;;
21935 esac
21936
21937
21938
21939 ltmain=$ac_aux_dir/ltmain.sh
21940
21941
21942 # We use sed instead of cat because bash on DJGPP gets confused if
21943 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21944 # text mode, it properly converts lines to CR/LF. This bash problem
21945 # is reportedly fixed, but why not run on old versions too?
21946 $SED '$q' "$ltmain" >> "$cfgfile" \
21947 || (rm -f "$cfgfile"; exit 1)
21948
21949 mv -f "$cfgfile" "$ofile" ||
21950 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21951 chmod +x "$ofile"
21952
21953 ;;
21954
21955 esac
21956 done # for ac_tag
21957
21958
21959 as_fn_exit 0
21960 _ACEOF
21961 ac_clean_files=$ac_clean_files_save
21962
21963 test $ac_write_fail = 0 ||
21964 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21965
21966
21967 # configure is writing to config.log, and then calls config.status.
21968 # config.status does its own redirection, appending to config.log.
21969 # Unfortunately, on DOS this fails, as config.log is still kept open
21970 # by configure, so config.status won't be able to write to it; its
21971 # output is simply discarded. So we exec the FD to /dev/null,
21972 # effectively closing config.log, so it can be properly (re)opened and
21973 # appended to by config.status. When coming back to configure, we
21974 # need to make the FD available again.
21975 if test "$no_create" != yes; then
21976 ac_cs_success=:
21977 ac_config_status_args=
21978 test "$silent" = yes &&
21979 ac_config_status_args="$ac_config_status_args --quiet"
21980 exec 5>/dev/null
21981 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21982 exec 5>>config.log
21983 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21984 # would make configure fail if this is the last instruction.
21985 $ac_cs_success || as_fn_exit 1
21986 fi
21987 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21989 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21990 fi
21991
21992
21993