Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for procps-ng 4.0.4.
4 #
5 # Report bugs to <[email protected]>.
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 test \$(( 1 + 1 )) = 2 || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 [email protected] and
279 $0: [email protected] about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='procps-ng'
623 PACKAGE_TARNAME='procps-ng'
624 PACKAGE_VERSION='4.0.4'
625 PACKAGE_STRING='procps-ng 4.0.4'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='https://gitlab.com/procps-ng/procps'
628
629 ac_unique_file="src/free.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_func_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 DEJAGNU
667 DL_LIB
668 EXAMPLE_FILES_FALSE
669 EXAMPLE_FILES_TRUE
670 BUILD_SKILL_FALSE
671 BUILD_SKILL_TRUE
672 CYGWIN_FALSE
673 CYGWIN_TRUE
674 LINUX_FALSE
675 LINUX_TRUE
676 BUILD_W_FALSE
677 BUILD_W_TRUE
678 BUILD_KILL_FALSE
679 BUILD_KILL_TRUE
680 BUILD_PIDOF_FALSE
681 BUILD_PIDOF_TRUE
682 WITH_ELOGIND_FALSE
683 WITH_ELOGIND_TRUE
684 ELOGIND_LIBS
685 ELOGIND_CFLAGS
686 WITH_SYSTEMD_FALSE
687 WITH_SYSTEMD_TRUE
688 SYSTEMD_LIBS
689 SYSTEMD_CFLAGS
690 NCURSES_LIBS
691 NCURSES_CFLAGS
692 WITH_NCURSES_FALSE
693 WITH_NCURSES_TRUE
694 HARDEN_LDFLAGS
695 HARDEN_CFLAGS
696 WITH_COLORWATCH
697 WITH_WATCH8BIT
698 BUILD_PIDWAIT_FALSE
699 BUILD_PIDWAIT_TRUE
700 POSUB
701 LTLIBINTL
702 LIBINTL
703 INTLLIBS
704 LTLIBICONV
705 LIBICONV
706 MSGMERGE
707 XGETTEXT
708 GMSGFMT
709 MSGFMT
710 MKINSTALLDIRS
711 usrbin_execdir
712 POW_LIB
713 LIBOBJS
714 LT_SYS_LIBRARY_PATH
715 OTOOL64
716 OTOOL
717 LIPO
718 NMEDIT
719 DSYMUTIL
720 MANIFEST_TOOL
721 RANLIB
722 ac_ct_AR
723 AR
724 DLLTOOL
725 OBJDUMP
726 FILECMD
727 NM
728 ac_ct_DUMPBIN
729 DUMPBIN
730 LD
731 FGREP
732 SED
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 LIBTOOL
742 EGREP
743 GREP
744 USE_PO4A
745 PO4A
746 USE_NLS
747 PKG_CONFIG_LIBDIR
748 PKG_CONFIG_PATH
749 PKG_CONFIG
750 LN_S
751 CPP
752 am__fastdepCC_FALSE
753 am__fastdepCC_TRUE
754 CCDEPMODE
755 am__nodep
756 AMDEPBACKSLASH
757 AMDEP_FALSE
758 AMDEP_TRUE
759 am__include
760 DEPDIR
761 OBJEXT
762 EXEEXT
763 ac_ct_CC
764 CPPFLAGS
765 LDFLAGS
766 CFLAGS
767 CC
768 AM_BACKSLASH
769 AM_DEFAULT_VERBOSITY
770 AM_DEFAULT_V
771 AM_V
772 CSCOPE
773 ETAGS
774 CTAGS
775 am__untar
776 am__tar
777 AMTAR
778 am__leading_dot
779 SET_MAKE
780 AWK
781 mkdir_p
782 MKDIR_P
783 INSTALL_STRIP_PROGRAM
784 STRIP
785 install_sh
786 MAKEINFO
787 AUTOHEADER
788 AUTOMAKE
789 AUTOCONF
790 ACLOCAL
791 VERSION
792 PACKAGE
793 CYGPATH_W
794 am__isrc
795 INSTALL_DATA
796 INSTALL_SCRIPT
797 INSTALL_PROGRAM
798 target_alias
799 host_alias
800 build_alias
801 LIBS
802 ECHO_T
803 ECHO_N
804 ECHO_C
805 DEFS
806 mandir
807 localedir
808 libdir
809 psdir
810 pdfdir
811 dvidir
812 htmldir
813 infodir
814 docdir
815 oldincludedir
816 includedir
817 runstatedir
818 localstatedir
819 sharedstatedir
820 sysconfdir
821 datadir
822 datarootdir
823 libexecdir
824 sbindir
825 bindir
826 program_transform_name
827 prefix
828 exec_prefix
829 PACKAGE_URL
830 PACKAGE_BUGREPORT
831 PACKAGE_STRING
832 PACKAGE_VERSION
833 PACKAGE_TARNAME
834 PACKAGE_NAME
835 PATH_SEPARATOR
836 SHELL
837 am__quote'
838 ac_subst_files=''
839 ac_user_opts='
840 enable_option_checking
841 enable_silent_rules
842 enable_dependency_tracking
843 enable_largefile
844 enable_nls
845 enable_shared
846 enable_static
847 with_pic
848 enable_fast_install
849 with_aix_soname
850 with_gnu_ld
851 with_sysroot
852 enable_libtool_lock
853 enable_rpath
854 with_libiconv_prefix
855 with_libintl_prefix
856 enable_watch8bit
857 enable_colorwatch
858 enable_libselinux
859 enable_harden_flags
860 with_ncurses
861 with_systemd
862 with_elogind
863 enable_pidof
864 enable_kill
865 enable_w
866 enable_skill
867 enable_examples
868 enable_sigwinch
869 enable_wide_percent
870 enable_wide_memory
871 enable_modern_top
872 enable_numa
873 enable_w_from
874 enable_whining
875 '
876 ac_precious_vars='build_alias
877 host_alias
878 target_alias
879 CC
880 CFLAGS
881 LDFLAGS
882 LIBS
883 CPPFLAGS
884 CPP
885 PKG_CONFIG
886 PKG_CONFIG_PATH
887 PKG_CONFIG_LIBDIR
888 LT_SYS_LIBRARY_PATH
889 NCURSES_CFLAGS
890 NCURSES_LIBS
891 SYSTEMD_CFLAGS
892 SYSTEMD_LIBS
893 ELOGIND_CFLAGS
894 ELOGIND_LIBS'
895
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 ac_unrecognized_opts=
901 ac_unrecognized_sep=
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
918
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 runstatedir='${localstatedir}/run'
934 includedir='${prefix}/include'
935 oldincludedir='/usr/include'
936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937 infodir='${datarootdir}/info'
938 htmldir='${docdir}'
939 dvidir='${docdir}'
940 pdfdir='${docdir}'
941 psdir='${docdir}'
942 libdir='${exec_prefix}/lib'
943 localedir='${datarootdir}/locale'
944 mandir='${datarootdir}/man'
945
946 ac_prev=
947 ac_dashdash=
948 for ac_option
949 do
950 # If the previous option needs an argument, assign it.
951 if test -n "$ac_prev"; then
952 eval $ac_prev=\$ac_option
953 ac_prev=
954 continue
955 fi
956
957 case $ac_option in
958 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 *=) ac_optarg= ;;
960 *) ac_optarg=yes ;;
961 esac
962
963 case $ac_dashdash$ac_option in
964 --)
965 ac_dashdash=yes ;;
966
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 ac_prev=bindir ;;
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 bindir=$ac_optarg ;;
971
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
976
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
983
984 --config-cache | -C)
985 cache_file=config.cache ;;
986
987 -datadir | --datadir | --datadi | --datad)
988 ac_prev=datadir ;;
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
991
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
998
999 -disable-* | --disable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1024
1025 -enable-* | --enable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=\$ac_optarg ;;
1040
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1049
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1052 with_gas=yes ;;
1053
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1060
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1065
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 ac_prev=htmldir ;;
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 | --ht=*)
1070 htmldir=$ac_optarg ;;
1071
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1078
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 ac_prev=infodir ;;
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1083
1084 -libdir | --libdir | --libdi | --libd)
1085 ac_prev=libdir ;;
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1088
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1095
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1100
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1107
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 ac_prev=mandir ;;
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1112
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1115 with_fp=no ;;
1116
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1119 no_create=yes ;;
1120
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 no_recursion=yes ;;
1124
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1133
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 ac_prev=prefix ;;
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1138
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1145
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1152
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1169
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 ac_prev=pdfdir ;;
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1174
1175 -psdir | --psdir | --psdi | --psd | --ps)
1176 ac_prev=psdir ;;
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 psdir=$ac_optarg ;;
1179
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1182 silent=yes ;;
1183
1184 -runstatedir | --runstatedir | --runstatedi | --runstated \
1185 | --runstate | --runstat | --runsta | --runst | --runs \
1186 | --run | --ru | --r)
1187 ac_prev=runstatedir ;;
1188 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1189 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1190 | --run=* | --ru=* | --r=*)
1191 runstatedir=$ac_optarg ;;
1192
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
1198
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
1208 sharedstatedir=$ac_optarg ;;
1209
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1219
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1226
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1237
1238 -with-* | --with-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: \`$ac_useropt'"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
1253
1254 -without-* | --without-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: \`$ac_useropt'"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
1269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279 x_includes=$ac_optarg ;;
1280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286 x_libraries=$ac_optarg ;;
1287
1288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1290 ;;
1291
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298 esac
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1301
1302 *)
1303 # FIXME: should be removed in autoconf 3.0.
1304 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 ;;
1309
1310 esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error $? "missing argument to $ac_option"
1316 fi
1317
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324 fi
1325
1326 # Check all directory arguments for consistency.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir runstatedir
1331 do
1332 eval ac_val=\$$ac_var
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 done
1346
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 printf "%s\n" X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1407 fi
1408 else
1409 ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 fi
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF
1443 \`configure' configures procps-ng 4.0.4 to adapt to many kinds of systems.
1444
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking ...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root [DATAROOTDIR/doc/procps-ng]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
1497 _ACEOF
1498
1499 cat <<\_ACEOF
1500
1501 Program names:
1502 --program-prefix=PREFIX prepend PREFIX to installed program names
1503 --program-suffix=SUFFIX append SUFFIX to installed program names
1504 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1505
1506 System types:
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 _ACEOF
1510 fi
1511
1512 if test -n "$ac_init_help"; then
1513 case $ac_init_help in
1514 short | recursive ) echo "Configuration of procps-ng 4.0.4:";;
1515 esac
1516 cat <<\_ACEOF
1517
1518 Optional Features:
1519 --disable-option-checking ignore unrecognized --enable/--with options
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-silent-rules less verbose build output (undo: "make V=1")
1523 --disable-silent-rules verbose build output (undo: "make V=0")
1524 --enable-dependency-tracking
1525 do not reject slow dependency extractors
1526 --disable-dependency-tracking
1527 speeds up one-time build
1528 --disable-largefile omit support for large files
1529 --disable-nls do not use Native Language Support
1530 --enable-shared[=PKGS] build shared libraries [default=yes]
1531 --enable-static[=PKGS] build static libraries [default=yes]
1532 --enable-fast-install[=PKGS]
1533 optimize for fast installation [default=yes]
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1535 --disable-rpath do not hardcode runtime library paths
1536 --enable-watch8bit enable watch to be 8bit clean (requires ncursesw)
1537 --enable-colorwatch enable watch to use color by default
1538 --enable-libselinux enable libselinux
1539 --enable-harden-flags enable hardened compilier and linker flags
1540 --disable-pidof do not build pidof
1541 --disable-kill do not build kill
1542 --disable-w do not build w
1543 --enable-skill build skill and snice
1544 --enable-examples add example files to installation
1545 --enable-sigwinch reduce impact of x-windows resize operations on top
1546 --enable-wide-percent provide extra precision under %CPU and %MEM for top
1547 --enable-wide-memory provide extra precision under memory fields for top
1548 --disable-modern-top disable new startup defaults, return to original top
1549 --disable-numa disable NUMA/Node support in top
1550 --enable-w-from enable w from field by default
1551 --disable-whining do not print unnecessary warnings (slackware-ism)
1552
1553 Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1557 both]
1558 --with-aix-soname=aix|svr4|both
1559 shared library versioning (aka "SONAME") variant to
1560 provide on AIX, [default=aix].
1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1562 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1563 compiler's sysroot if not specified).
1564 --with-gnu-ld assume the C compiler uses GNU ld default=no
1565 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1566 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1567 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1568 --without-libintl-prefix don't search for libintl in includedir and libdir
1569 --without-ncurses build only applications not needing ncurses
1570 --with-systemd enable systemd support
1571 --with-elogind enable elogind support
1572
1573 Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1581 CPP C preprocessor
1582 PKG_CONFIG path to pkg-config utility
1583 PKG_CONFIG_PATH
1584 directories to add to pkg-config's search path
1585 PKG_CONFIG_LIBDIR
1586 path overriding pkg-config's built-in search path
1587 LT_SYS_LIBRARY_PATH
1588 User-defined run-time library search path.
1589 NCURSES_CFLAGS
1590 C compiler flags for NCURSES, overriding pkg-config
1591 NCURSES_LIBS
1592 linker flags for NCURSES, overriding pkg-config
1593 SYSTEMD_CFLAGS
1594 C compiler flags for SYSTEMD, overriding pkg-config
1595 SYSTEMD_LIBS
1596 linker flags for SYSTEMD, overriding pkg-config
1597 ELOGIND_CFLAGS
1598 C compiler flags for ELOGIND, overriding pkg-config
1599 ELOGIND_LIBS
1600 linker flags for ELOGIND, overriding pkg-config
1601
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 Report bugs to <[email protected]>.
1606 procps-ng home page: <https://gitlab.com/procps-ng/procps>.
1607 _ACEOF
1608 ac_status=$?
1609 fi
1610
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
1617 ac_builddir=.
1618
1619 case "$ac_dir" in
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *)
1622 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629 esac
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1634
1635 case $srcdir in
1636 .) # We are building in place.
1637 ac_srcdir=.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 esac
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for configure.gnu first; this name is used for a wrapper for
1653 # Metaconfig's "Configure" on case-insensitive file systems.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure" --help=recursive
1660 else
1661 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662 fi || ac_status=$?
1663 cd "$ac_pwd" || { ac_status=$?; break; }
1664 done
1665 fi
1666
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1669 cat <<\_ACEOF
1670 procps-ng configure 4.0.4
1671 generated by GNU Autoconf 2.71
1672
1673 Copyright (C) 2021 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1676 _ACEOF
1677 exit
1678 fi
1679
1680 ## ------------------------ ##
1681 ## Autoconf initialization. ##
1682 ## ------------------------ ##
1683
1684 # ac_fn_c_try_compile LINENO
1685 # --------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest.beam
1691 if { { ac_try="$ac_compile"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext
1710 then :
1711 ac_retval=0
1712 else $as_nop
1713 printf "%s\n" "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717 fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_compile
1722
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 printf %s "checking for $2... " >&6; }
1732 if eval test \${$3+y}
1733 then :
1734 printf %s "(cached) " >&6
1735 else $as_nop
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 $4
1739 #include <$2>
1740 _ACEOF
1741 if ac_fn_c_try_compile "$LINENO"
1742 then :
1743 eval "$3=yes"
1744 else $as_nop
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 printf "%s\n" "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1759 # executables *can* be run.
1760 ac_fn_c_try_run ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 printf "%s\n" "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1771 ac_status=$?
1772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 printf "%s\n" "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1781 ac_status=$?
1782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }
1784 then :
1785 ac_retval=0
1786 else $as_nop
1787 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1788 printf "%s\n" "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=$ac_status
1792 fi
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1796
1797 } # ac_fn_c_try_run
1798
1799 # ac_fn_c_try_cpp LINENO
1800 # ----------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_cpp ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_cpp conftest.$ac_ext"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 printf "%s\n" "$ac_try_echo"; } >&5
1812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } > conftest.i && {
1821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 }
1824 then :
1825 ac_retval=0
1826 else $as_nop
1827 printf "%s\n" "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_cpp
1836
1837 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1838 # -------------------------------------------
1839 # Tests whether TYPE exists after having included INCLUDES, setting cache
1840 # variable VAR accordingly.
1841 ac_fn_c_check_type ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 printf %s "checking for $2... " >&6; }
1846 if eval test \${$3+y}
1847 then :
1848 printf %s "(cached) " >&6
1849 else $as_nop
1850 eval "$3=no"
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 int
1855 main (void)
1856 {
1857 if (sizeof ($2))
1858 return 0;
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"
1864 then :
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 int
1869 main (void)
1870 {
1871 if (sizeof (($2)))
1872 return 0;
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"
1878 then :
1879
1880 else $as_nop
1881 eval "$3=yes"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 printf "%s\n" "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892 } # ac_fn_c_check_type
1893
1894 # ac_fn_c_find_intX_t LINENO BITS VAR
1895 # -----------------------------------
1896 # Finds a signed integer type with width BITS, setting cache variable VAR
1897 # accordingly.
1898 ac_fn_c_find_intX_t ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1902 printf %s "checking for int$2_t... " >&6; }
1903 if eval test \${$3+y}
1904 then :
1905 printf %s "(cached) " >&6
1906 else $as_nop
1907 eval "$3=no"
1908 # Order is important - never check a type that is potentially smaller
1909 # than half of the expected target width.
1910 for ac_type in int$2_t 'int' 'long int' \
1911 'long long int' 'short int' 'signed char'; do
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $ac_includes_default
1915 enum { N = $2 / 2 - 1 };
1916 int
1917 main (void)
1918 {
1919 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1920 test_array [0] = 0;
1921 return test_array [0];
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"
1928 then :
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 $ac_includes_default
1932 enum { N = $2 / 2 - 1 };
1933 int
1934 main (void)
1935 {
1936 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1937 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"
1946 then :
1947
1948 else $as_nop
1949 case $ac_type in #(
1950 int$2_t) :
1951 eval "$3=yes" ;; #(
1952 *) :
1953 eval "$3=\$ac_type" ;;
1954 esac
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1959 if eval test \"x\$"$3"\" = x"no"
1960 then :
1961
1962 else $as_nop
1963 break
1964 fi
1965 done
1966 fi
1967 eval ac_res=\$$3
1968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 printf "%s\n" "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972 } # ac_fn_c_find_intX_t
1973
1974 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1975 # ----------------------------------------------------
1976 # Tries to find if the field MEMBER exists in type AGGR, after including
1977 # INCLUDES, setting cache variable VAR accordingly.
1978 ac_fn_c_check_member ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1982 printf %s "checking for $2.$3... " >&6; }
1983 if eval test \${$4+y}
1984 then :
1985 printf %s "(cached) " >&6
1986 else $as_nop
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $5
1990 int
1991 main (void)
1992 {
1993 static $2 ac_aggr;
1994 if (ac_aggr.$3)
1995 return 0;
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"
2001 then :
2002 eval "$4=yes"
2003 else $as_nop
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $5
2007 int
2008 main (void)
2009 {
2010 static $2 ac_aggr;
2011 if (sizeof ac_aggr.$3)
2012 return 0;
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"
2018 then :
2019 eval "$4=yes"
2020 else $as_nop
2021 eval "$4=no"
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2026 fi
2027 eval ac_res=\$$4
2028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 printf "%s\n" "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
2032 } # ac_fn_c_check_member
2033
2034 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2035 # ------------------------------------------------------------------
2036 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2037 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2038 ac_fn_check_decl ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 as_decl_name=`echo $2|sed 's/ *(.*//'`
2042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2043 printf %s "checking whether $as_decl_name is declared... " >&6; }
2044 if eval test \${$3+y}
2045 then :
2046 printf %s "(cached) " >&6
2047 else $as_nop
2048 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2049 eval ac_save_FLAGS=\$$6
2050 as_fn_append $6 " $5"
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 $4
2054 int
2055 main (void)
2056 {
2057 #ifndef $as_decl_name
2058 #ifdef __cplusplus
2059 (void) $as_decl_use;
2060 #else
2061 (void) $as_decl_name;
2062 #endif
2063 #endif
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"
2070 then :
2071 eval "$3=yes"
2072 else $as_nop
2073 eval "$3=no"
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2076 eval $6=\$ac_save_FLAGS
2077
2078 fi
2079 eval ac_res=\$$3
2080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 printf "%s\n" "$ac_res" >&6; }
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084 } # ac_fn_check_decl
2085
2086 # ac_fn_c_try_link LINENO
2087 # -----------------------
2088 # Try to link conftest.$ac_ext, and return whether this succeeded.
2089 ac_fn_c_try_link ()
2090 {
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2093 if { { ac_try="$ac_link"
2094 case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097 esac
2098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2099 printf "%s\n" "$ac_try_echo"; } >&5
2100 (eval "$ac_link") 2>conftest.err
2101 ac_status=$?
2102 if test -s conftest.err; then
2103 grep -v '^ *+' conftest.err >conftest.er1
2104 cat conftest.er1 >&5
2105 mv -f conftest.er1 conftest.err
2106 fi
2107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2108 test $ac_status = 0; } && {
2109 test -z "$ac_c_werror_flag" ||
2110 test ! -s conftest.err
2111 } && test -s conftest$ac_exeext && {
2112 test "$cross_compiling" = yes ||
2113 test -x conftest$ac_exeext
2114 }
2115 then :
2116 ac_retval=0
2117 else $as_nop
2118 printf "%s\n" "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_retval=1
2122 fi
2123 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2124 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2125 # interfere with the next link command; also delete a directory that is
2126 # left behind by Apple's compiler. We do this before executing the actions.
2127 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
2130
2131 } # ac_fn_c_try_link
2132
2133 # ac_fn_c_check_func LINENO FUNC VAR
2134 # ----------------------------------
2135 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2136 ac_fn_c_check_func ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 printf %s "checking for $2... " >&6; }
2141 if eval test \${$3+y}
2142 then :
2143 printf %s "(cached) " >&6
2144 else $as_nop
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2149 #define $2 innocuous_$2
2150
2151 /* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char $2 (); below. */
2153
2154 #include <limits.h>
2155 #undef $2
2156
2157 /* Override any GCC internal prototype to avoid an error.
2158 Use char because int might match the return type of a GCC
2159 builtin and then its argument prototype would still apply. */
2160 #ifdef __cplusplus
2161 extern "C"
2162 #endif
2163 char $2 ();
2164 /* The GNU C library defines this for functions which it implements
2165 to always fail with ENOSYS. Some functions are actually named
2166 something starting with __ and the normal name is an alias. */
2167 #if defined __stub_$2 || defined __stub___$2
2168 choke me
2169 #endif
2170
2171 int
2172 main (void)
2173 {
2174 return $2 ();
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_link "$LINENO"
2180 then :
2181 eval "$3=yes"
2182 else $as_nop
2183 eval "$3=no"
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2186 conftest$ac_exeext conftest.$ac_ext
2187 fi
2188 eval ac_res=\$$3
2189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 printf "%s\n" "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192
2193 } # ac_fn_c_check_func
2194 ac_configure_args_raw=
2195 for ac_arg
2196 do
2197 case $ac_arg in
2198 *\'*)
2199 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2200 esac
2201 as_fn_append ac_configure_args_raw " '$ac_arg'"
2202 done
2203
2204 case $ac_configure_args_raw in
2205 *$as_nl*)
2206 ac_safe_unquote= ;;
2207 *)
2208 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2209 ac_unsafe_a="$ac_unsafe_z#~"
2210 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2211 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2212 esac
2213
2214 cat >config.log <<_ACEOF
2215 This file contains any messages produced by compilers while
2216 running configure, to aid debugging if configure makes a mistake.
2217
2218 It was created by procps-ng $as_me 4.0.4, which was
2219 generated by GNU Autoconf 2.71. Invocation command line was
2220
2221 $ $0$ac_configure_args_raw
2222
2223 _ACEOF
2224 exec 5>>config.log
2225 {
2226 cat <<_ASUNAME
2227 ## --------- ##
2228 ## Platform. ##
2229 ## --------- ##
2230
2231 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2232 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2233 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2234 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2235 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2236
2237 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2238 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2239
2240 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2241 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2242 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2243 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2244 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2245 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2246 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2247
2248 _ASUNAME
2249
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253 IFS=$as_save_IFS
2254 case $as_dir in #(((
2255 '') as_dir=./ ;;
2256 */) ;;
2257 *) as_dir=$as_dir/ ;;
2258 esac
2259 printf "%s\n" "PATH: $as_dir"
2260 done
2261 IFS=$as_save_IFS
2262
2263 } >&5
2264
2265 cat >&5 <<_ACEOF
2266
2267
2268 ## ----------- ##
2269 ## Core tests. ##
2270 ## ----------- ##
2271
2272 _ACEOF
2273
2274
2275 # Keep a trace of the command line.
2276 # Strip out --no-create and --no-recursion so they do not pile up.
2277 # Strip out --silent because we don't want to record it for future runs.
2278 # Also quote any args containing shell meta-characters.
2279 # Make two passes to allow for proper duplicate-argument suppression.
2280 ac_configure_args=
2281 ac_configure_args0=
2282 ac_configure_args1=
2283 ac_must_keep_next=false
2284 for ac_pass in 1 2
2285 do
2286 for ac_arg
2287 do
2288 case $ac_arg in
2289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2291 | -silent | --silent | --silen | --sile | --sil)
2292 continue ;;
2293 *\'*)
2294 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 esac
2296 case $ac_pass in
2297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2298 2)
2299 as_fn_append ac_configure_args1 " '$ac_arg'"
2300 if test $ac_must_keep_next = true; then
2301 ac_must_keep_next=false # Got value, back to normal.
2302 else
2303 case $ac_arg in
2304 *=* | --config-cache | -C | -disable-* | --disable-* \
2305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2307 | -with-* | --with-* | -without-* | --without-* | --x)
2308 case "$ac_configure_args0 " in
2309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2310 esac
2311 ;;
2312 -* ) ac_must_keep_next=true ;;
2313 esac
2314 fi
2315 as_fn_append ac_configure_args " '$ac_arg'"
2316 ;;
2317 esac
2318 done
2319 done
2320 { ac_configure_args0=; unset ac_configure_args0;}
2321 { ac_configure_args1=; unset ac_configure_args1;}
2322
2323 # When interrupted or exit'd, cleanup temporary files, and complete
2324 # config.log. We remove comments because anyway the quotes in there
2325 # would cause problems or look ugly.
2326 # WARNING: Use '\'' to represent an apostrophe within the trap.
2327 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2328 trap 'exit_status=$?
2329 # Sanitize IFS.
2330 IFS=" "" $as_nl"
2331 # Save into config.log some information that might help in debugging.
2332 {
2333 echo
2334
2335 printf "%s\n" "## ---------------- ##
2336 ## Cache variables. ##
2337 ## ---------------- ##"
2338 echo
2339 # The following way of writing the cache mishandles newlines in values,
2340 (
2341 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in #(
2344 *${as_nl}*)
2345 case $ac_var in #(
2346 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2347 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2348 esac
2349 case $ac_var in #(
2350 _ | IFS | as_nl) ;; #(
2351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2352 *) { eval $ac_var=; unset $ac_var;} ;;
2353 esac ;;
2354 esac
2355 done
2356 (set) 2>&1 |
2357 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2358 *${as_nl}ac_space=\ *)
2359 sed -n \
2360 "s/'\''/'\''\\\\'\'''\''/g;
2361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2362 ;; #(
2363 *)
2364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2365 ;;
2366 esac |
2367 sort
2368 )
2369 echo
2370
2371 printf "%s\n" "## ----------------- ##
2372 ## Output variables. ##
2373 ## ----------------- ##"
2374 echo
2375 for ac_var in $ac_subst_vars
2376 do
2377 eval ac_val=\$$ac_var
2378 case $ac_val in
2379 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380 esac
2381 printf "%s\n" "$ac_var='\''$ac_val'\''"
2382 done | sort
2383 echo
2384
2385 if test -n "$ac_subst_files"; then
2386 printf "%s\n" "## ------------------- ##
2387 ## File substitutions. ##
2388 ## ------------------- ##"
2389 echo
2390 for ac_var in $ac_subst_files
2391 do
2392 eval ac_val=\$$ac_var
2393 case $ac_val in
2394 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 esac
2396 printf "%s\n" "$ac_var='\''$ac_val'\''"
2397 done | sort
2398 echo
2399 fi
2400
2401 if test -s confdefs.h; then
2402 printf "%s\n" "## ----------- ##
2403 ## confdefs.h. ##
2404 ## ----------- ##"
2405 echo
2406 cat confdefs.h
2407 echo
2408 fi
2409 test "$ac_signal" != 0 &&
2410 printf "%s\n" "$as_me: caught signal $ac_signal"
2411 printf "%s\n" "$as_me: exit $exit_status"
2412 } >&5
2413 rm -f core *.core core.conftest.* &&
2414 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2415 exit $exit_status
2416 ' 0
2417 for ac_signal in 1 2 13 15; do
2418 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2419 done
2420 ac_signal=0
2421
2422 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2423 rm -f -r conftest* confdefs.h
2424
2425 printf "%s\n" "/* confdefs.h */" > confdefs.h
2426
2427 # Predefined preprocessor variables.
2428
2429 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2430
2431 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2432
2433 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2434
2435 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2436
2437 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2438
2439 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2440
2441
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2444 if test -n "$CONFIG_SITE"; then
2445 ac_site_files="$CONFIG_SITE"
2446 elif test "x$prefix" != xNONE; then
2447 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2448 else
2449 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2450 fi
2451
2452 for ac_site_file in $ac_site_files
2453 do
2454 case $ac_site_file in #(
2455 */*) :
2456 ;; #(
2457 *) :
2458 ac_site_file=./$ac_site_file ;;
2459 esac
2460 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2462 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2463 sed 's/^/| /' "$ac_site_file" >&5
2464 . "$ac_site_file" \
2465 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2467 as_fn_error $? "failed to load site script $ac_site_file
2468 See \`config.log' for more details" "$LINENO" 5; }
2469 fi
2470 done
2471
2472 if test -r "$cache_file"; then
2473 # Some versions of bash will fail to source /dev/null (special files
2474 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2475 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2477 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2478 case $cache_file in
2479 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2480 *) . "./$cache_file";;
2481 esac
2482 fi
2483 else
2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2485 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2486 >$cache_file
2487 fi
2488
2489 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2490 # Test code for whether the C compiler supports C89 (global declarations)
2491 ac_c_conftest_c89_globals='
2492 /* Does the compiler advertise C89 conformance?
2493 Do not test the value of __STDC__, because some compilers set it to 0
2494 while being otherwise adequately conformant. */
2495 #if !defined __STDC__
2496 # error "Compiler does not advertise C89 conformance"
2497 #endif
2498
2499 #include <stddef.h>
2500 #include <stdarg.h>
2501 struct stat;
2502 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2503 struct buf { int x; };
2504 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2505 static char *e (p, i)
2506 char **p;
2507 int i;
2508 {
2509 return p[i];
2510 }
2511 static char *f (char * (*g) (char **, int), char **p, ...)
2512 {
2513 char *s;
2514 va_list v;
2515 va_start (v,p);
2516 s = g (p, va_arg (v,int));
2517 va_end (v);
2518 return s;
2519 }
2520
2521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2522 function prototypes and stuff, but not \xHH hex character constants.
2523 These do not provoke an error unfortunately, instead are silently treated
2524 as an "x". The following induces an error, until -std is added to get
2525 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2526 array size at least. It is necessary to write \x00 == 0 to get something
2527 that is true only with -std. */
2528 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2529
2530 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2531 inside strings and character constants. */
2532 #define FOO(x) '\''x'\''
2533 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2534
2535 int test (int i, double x);
2536 struct s1 {int (*f) (int a);};
2537 struct s2 {int (*f) (double a);};
2538 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2539 int, int);'
2540
2541 # Test code for whether the C compiler supports C89 (body of main).
2542 ac_c_conftest_c89_main='
2543 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2544 '
2545
2546 # Test code for whether the C compiler supports C99 (global declarations)
2547 ac_c_conftest_c99_globals='
2548 // Does the compiler advertise C99 conformance?
2549 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2550 # error "Compiler does not advertise C99 conformance"
2551 #endif
2552
2553 #include <stdbool.h>
2554 extern int puts (const char *);
2555 extern int printf (const char *, ...);
2556 extern int dprintf (int, const char *, ...);
2557 extern void *malloc (size_t);
2558
2559 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2560 // dprintf is used instead of fprintf to avoid needing to declare
2561 // FILE and stderr.
2562 #define debug(...) dprintf (2, __VA_ARGS__)
2563 #define showlist(...) puts (#__VA_ARGS__)
2564 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2565 static void
2566 test_varargs_macros (void)
2567 {
2568 int x = 1234;
2569 int y = 5678;
2570 debug ("Flag");
2571 debug ("X = %d\n", x);
2572 showlist (The first, second, and third items.);
2573 report (x>y, "x is %d but y is %d", x, y);
2574 }
2575
2576 // Check long long types.
2577 #define BIG64 18446744073709551615ull
2578 #define BIG32 4294967295ul
2579 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2580 #if !BIG_OK
2581 #error "your preprocessor is broken"
2582 #endif
2583 #if BIG_OK
2584 #else
2585 #error "your preprocessor is broken"
2586 #endif
2587 static long long int bignum = -9223372036854775807LL;
2588 static unsigned long long int ubignum = BIG64;
2589
2590 struct incomplete_array
2591 {
2592 int datasize;
2593 double data[];
2594 };
2595
2596 struct named_init {
2597 int number;
2598 const wchar_t *name;
2599 double average;
2600 };
2601
2602 typedef const char *ccp;
2603
2604 static inline int
2605 test_restrict (ccp restrict text)
2606 {
2607 // See if C++-style comments work.
2608 // Iterate through items via the restricted pointer.
2609 // Also check for declarations in for loops.
2610 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2611 continue;
2612 return 0;
2613 }
2614
2615 // Check varargs and va_copy.
2616 static bool
2617 test_varargs (const char *format, ...)
2618 {
2619 va_list args;
2620 va_start (args, format);
2621 va_list args_copy;
2622 va_copy (args_copy, args);
2623
2624 const char *str = "";
2625 int number = 0;
2626 float fnumber = 0;
2627
2628 while (*format)
2629 {
2630 switch (*format++)
2631 {
2632 case '\''s'\'': // string
2633 str = va_arg (args_copy, const char *);
2634 break;
2635 case '\''d'\'': // int
2636 number = va_arg (args_copy, int);
2637 break;
2638 case '\''f'\'': // float
2639 fnumber = va_arg (args_copy, double);
2640 break;
2641 default:
2642 break;
2643 }
2644 }
2645 va_end (args_copy);
2646 va_end (args);
2647
2648 return *str && number && fnumber;
2649 }
2650 '
2651
2652 # Test code for whether the C compiler supports C99 (body of main).
2653 ac_c_conftest_c99_main='
2654 // Check bool.
2655 _Bool success = false;
2656 success |= (argc != 0);
2657
2658 // Check restrict.
2659 if (test_restrict ("String literal") == 0)
2660 success = true;
2661 char *restrict newvar = "Another string";
2662
2663 // Check varargs.
2664 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2665 test_varargs_macros ();
2666
2667 // Check flexible array members.
2668 struct incomplete_array *ia =
2669 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2670 ia->datasize = 10;
2671 for (int i = 0; i < ia->datasize; ++i)
2672 ia->data[i] = i * 1.234;
2673
2674 // Check named initializers.
2675 struct named_init ni = {
2676 .number = 34,
2677 .name = L"Test wide string",
2678 .average = 543.34343,
2679 };
2680
2681 ni.number = 58;
2682
2683 int dynamic_array[ni.number];
2684 dynamic_array[0] = argv[0][0];
2685 dynamic_array[ni.number - 1] = 543;
2686
2687 // work around unused variable warnings
2688 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2689 || dynamic_array[ni.number - 1] != 543);
2690 '
2691
2692 # Test code for whether the C compiler supports C11 (global declarations)
2693 ac_c_conftest_c11_globals='
2694 // Does the compiler advertise C11 conformance?
2695 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2696 # error "Compiler does not advertise C11 conformance"
2697 #endif
2698
2699 // Check _Alignas.
2700 char _Alignas (double) aligned_as_double;
2701 char _Alignas (0) no_special_alignment;
2702 extern char aligned_as_int;
2703 char _Alignas (0) _Alignas (int) aligned_as_int;
2704
2705 // Check _Alignof.
2706 enum
2707 {
2708 int_alignment = _Alignof (int),
2709 int_array_alignment = _Alignof (int[100]),
2710 char_alignment = _Alignof (char)
2711 };
2712 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2713
2714 // Check _Noreturn.
2715 int _Noreturn does_not_return (void) { for (;;) continue; }
2716
2717 // Check _Static_assert.
2718 struct test_static_assert
2719 {
2720 int x;
2721 _Static_assert (sizeof (int) <= sizeof (long int),
2722 "_Static_assert does not work in struct");
2723 long int y;
2724 };
2725
2726 // Check UTF-8 literals.
2727 #define u8 syntax error!
2728 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2729
2730 // Check duplicate typedefs.
2731 typedef long *long_ptr;
2732 typedef long int *long_ptr;
2733 typedef long_ptr long_ptr;
2734
2735 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2736 struct anonymous
2737 {
2738 union {
2739 struct { int i; int j; };
2740 struct { int k; long int l; } w;
2741 };
2742 int m;
2743 } v1;
2744 '
2745
2746 # Test code for whether the C compiler supports C11 (body of main).
2747 ac_c_conftest_c11_main='
2748 _Static_assert ((offsetof (struct anonymous, i)
2749 == offsetof (struct anonymous, w.k)),
2750 "Anonymous union alignment botch");
2751 v1.i = 2;
2752 v1.w.k = 5;
2753 ok |= v1.i != 5;
2754 '
2755
2756 # Test code for whether the C compiler supports C11 (complete).
2757 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2758 ${ac_c_conftest_c99_globals}
2759 ${ac_c_conftest_c11_globals}
2760
2761 int
2762 main (int argc, char **argv)
2763 {
2764 int ok = 0;
2765 ${ac_c_conftest_c89_main}
2766 ${ac_c_conftest_c99_main}
2767 ${ac_c_conftest_c11_main}
2768 return ok;
2769 }
2770 "
2771
2772 # Test code for whether the C compiler supports C99 (complete).
2773 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2774 ${ac_c_conftest_c99_globals}
2775
2776 int
2777 main (int argc, char **argv)
2778 {
2779 int ok = 0;
2780 ${ac_c_conftest_c89_main}
2781 ${ac_c_conftest_c99_main}
2782 return ok;
2783 }
2784 "
2785
2786 # Test code for whether the C compiler supports C89 (complete).
2787 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2788
2789 int
2790 main (int argc, char **argv)
2791 {
2792 int ok = 0;
2793 ${ac_c_conftest_c89_main}
2794 return ok;
2795 }
2796 "
2797
2798 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2799 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2800 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2801 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2802 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2803 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2804 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2805 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2806 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2807 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2808 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2809 as_fn_append ac_func_c_list " fork HAVE_FORK"
2810 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2811 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2812 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2813
2814 # Auxiliary files required by this configure script.
2815 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2816
2817 # Locations in which to look for auxiliary files.
2818 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2819
2820 # Search for a directory containing all of the required auxiliary files,
2821 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2822 # If we don't find one directory that contains all the files we need,
2823 # we report the set of missing files from the *first* directory in
2824 # $ac_aux_dir_candidates and give up.
2825 ac_missing_aux_files=""
2826 ac_first_candidate=:
2827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 as_found=false
2830 for as_dir in $ac_aux_dir_candidates
2831 do
2832 IFS=$as_save_IFS
2833 case $as_dir in #(((
2834 '') as_dir=./ ;;
2835 */) ;;
2836 *) as_dir=$as_dir/ ;;
2837 esac
2838 as_found=:
2839
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2841 ac_aux_dir_found=yes
2842 ac_install_sh=
2843 for ac_aux in $ac_aux_files
2844 do
2845 # As a special case, if "install-sh" is required, that requirement
2846 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2847 # and $ac_install_sh is set appropriately for whichever one is found.
2848 if test x"$ac_aux" = x"install-sh"
2849 then
2850 if test -f "${as_dir}install-sh"; then
2851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2852 ac_install_sh="${as_dir}install-sh -c"
2853 elif test -f "${as_dir}install.sh"; then
2854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2855 ac_install_sh="${as_dir}install.sh -c"
2856 elif test -f "${as_dir}shtool"; then
2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2858 ac_install_sh="${as_dir}shtool install -c"
2859 else
2860 ac_aux_dir_found=no
2861 if $ac_first_candidate; then
2862 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2863 else
2864 break
2865 fi
2866 fi
2867 else
2868 if test -f "${as_dir}${ac_aux}"; then
2869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2870 else
2871 ac_aux_dir_found=no
2872 if $ac_first_candidate; then
2873 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2874 else
2875 break
2876 fi
2877 fi
2878 fi
2879 done
2880 if test "$ac_aux_dir_found" = yes; then
2881 ac_aux_dir="$as_dir"
2882 break
2883 fi
2884 ac_first_candidate=false
2885
2886 as_found=false
2887 done
2888 IFS=$as_save_IFS
2889 if $as_found
2890 then :
2891
2892 else $as_nop
2893 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2894 fi
2895
2896
2897 # These three variables are undocumented and unsupported,
2898 # and are intended to be withdrawn in a future Autoconf release.
2899 # They can cause serious problems if a builder's source tree is in a directory
2900 # whose full name contains unusual characters.
2901 if test -f "${ac_aux_dir}config.guess"; then
2902 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2903 fi
2904 if test -f "${ac_aux_dir}config.sub"; then
2905 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2906 fi
2907 if test -f "$ac_aux_dir/configure"; then
2908 ac_configure="$SHELL ${ac_aux_dir}configure"
2909 fi
2910
2911 # Check that the precious variables saved in the cache have kept the same
2912 # value.
2913 ac_cache_corrupted=false
2914 for ac_var in $ac_precious_vars; do
2915 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2916 eval ac_new_set=\$ac_env_${ac_var}_set
2917 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2918 eval ac_new_val=\$ac_env_${ac_var}_value
2919 case $ac_old_set,$ac_new_set in
2920 set,)
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2922 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2923 ac_cache_corrupted=: ;;
2924 ,set)
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2926 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2927 ac_cache_corrupted=: ;;
2928 ,);;
2929 *)
2930 if test "x$ac_old_val" != "x$ac_new_val"; then
2931 # differences in whitespace do not lead to failure.
2932 ac_old_val_w=`echo x $ac_old_val`
2933 ac_new_val_w=`echo x $ac_new_val`
2934 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2936 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2937 ac_cache_corrupted=:
2938 else
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2940 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2941 eval $ac_var=\$ac_old_val
2942 fi
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2944 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2946 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2947 fi;;
2948 esac
2949 # Pass precious variables to config.status.
2950 if test "$ac_new_set" = set; then
2951 case $ac_new_val in
2952 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2953 *) ac_arg=$ac_var=$ac_new_val ;;
2954 esac
2955 case " $ac_configure_args " in
2956 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2957 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2958 esac
2959 fi
2960 done
2961 if $ac_cache_corrupted; then
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2963 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2965 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2966 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2967 and start over" "$LINENO" 5
2968 fi
2969 ## -------------------- ##
2970 ## Main body of script. ##
2971 ## -------------------- ##
2972
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978
2979
2980 am__api_version='1.16'
2981
2982
2983
2984 # Find a good install program. We prefer a C program (faster),
2985 # so one script is as good as another. But avoid the broken or
2986 # incompatible versions:
2987 # SysV /etc/install, /usr/sbin/install
2988 # SunOS /usr/etc/install
2989 # IRIX /sbin/install
2990 # AIX /bin/install
2991 # AmigaOS /C/install, which installs bootblocks on floppy discs
2992 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2993 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2994 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2995 # OS/2's system install, which has a completely different semantic
2996 # ./install, which can be erroneously created by make from ./install.sh.
2997 # Reject install programs that cannot install multiple files.
2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2999 printf %s "checking for a BSD-compatible install... " >&6; }
3000 if test -z "$INSTALL"; then
3001 if test ${ac_cv_path_install+y}
3002 then :
3003 printf %s "(cached) " >&6
3004 else $as_nop
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 case $as_dir in #(((
3010 '') as_dir=./ ;;
3011 */) ;;
3012 *) as_dir=$as_dir/ ;;
3013 esac
3014 # Account for fact that we put trailing slashes in our PATH walk.
3015 case $as_dir in #((
3016 ./ | /[cC]/* | \
3017 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3018 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3019 /usr/ucb/* ) ;;
3020 *)
3021 # OSF1 and SCO ODT 3.0 have their own names for install.
3022 # Don't use installbsd from OSF since it installs stuff as root
3023 # by default.
3024 for ac_prog in ginstall scoinst install; do
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3027 if test $ac_prog = install &&
3028 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3029 # AIX install. It has an incompatible calling convention.
3030 :
3031 elif test $ac_prog = install &&
3032 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033 # program-specific install script used by HP pwplus--don't use.
3034 :
3035 else
3036 rm -rf conftest.one conftest.two conftest.dir
3037 echo one > conftest.one
3038 echo two > conftest.two
3039 mkdir conftest.dir
3040 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3041 test -s conftest.one && test -s conftest.two &&
3042 test -s conftest.dir/conftest.one &&
3043 test -s conftest.dir/conftest.two
3044 then
3045 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3046 break 3
3047 fi
3048 fi
3049 fi
3050 done
3051 done
3052 ;;
3053 esac
3054
3055 done
3056 IFS=$as_save_IFS
3057
3058 rm -rf conftest.one conftest.two conftest.dir
3059
3060 fi
3061 if test ${ac_cv_path_install+y}; then
3062 INSTALL=$ac_cv_path_install
3063 else
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for INSTALL within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 INSTALL=$ac_install_sh
3069 fi
3070 fi
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3072 printf "%s\n" "$INSTALL" >&6; }
3073
3074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075 # It thinks the first close brace ends the variable substitution.
3076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3077
3078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3079
3080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3081
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3083 printf %s "checking whether build environment is sane... " >&6; }
3084 # Reject unsafe characters in $srcdir or the absolute working directory
3085 # name. Accept space and tab only in the latter.
3086 am_lf='
3087 '
3088 case `pwd` in
3089 *[\\\"\#\$\&\'\`$am_lf]*)
3090 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3091 esac
3092 case $srcdir in
3093 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3094 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3095 esac
3096
3097 # Do 'set' in a subshell so we don't clobber the current shell's
3098 # arguments. Must try -L first in case configure is actually a
3099 # symlink; some systems play weird games with the mod time of symlinks
3100 # (eg FreeBSD returns the mod time of the symlink's containing
3101 # directory).
3102 if (
3103 am_has_slept=no
3104 for am_try in 1 2; do
3105 echo "timestamp, slept: $am_has_slept" > conftest.file
3106 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3107 if test "$*" = "X"; then
3108 # -L didn't work.
3109 set X `ls -t "$srcdir/configure" conftest.file`
3110 fi
3111 if test "$*" != "X $srcdir/configure conftest.file" \
3112 && test "$*" != "X conftest.file $srcdir/configure"; then
3113
3114 # If neither matched, then we have a broken ls. This can happen
3115 # if, for instance, CONFIG_SHELL is bash and it inherits a
3116 # broken ls alias from the environment. This has actually
3117 # happened. Such a system could not be considered "sane".
3118 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3119 alias in your environment" "$LINENO" 5
3120 fi
3121 if test "$2" = conftest.file || test $am_try -eq 2; then
3122 break
3123 fi
3124 # Just in case.
3125 sleep 1
3126 am_has_slept=yes
3127 done
3128 test "$2" = conftest.file
3129 )
3130 then
3131 # Ok.
3132 :
3133 else
3134 as_fn_error $? "newly created file is older than distributed files!
3135 Check your system clock" "$LINENO" 5
3136 fi
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 printf "%s\n" "yes" >&6; }
3139 # If we didn't sleep, we still need to ensure time stamps of config.status and
3140 # generated files are strictly newer.
3141 am_sleep_pid=
3142 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3143 ( sleep 1 ) &
3144 am_sleep_pid=$!
3145 fi
3146
3147 rm -f conftest.file
3148
3149 test "$program_prefix" != NONE &&
3150 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3151 # Use a double $ so make ignores it.
3152 test "$program_suffix" != NONE &&
3153 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3154 # Double any \ or $.
3155 # By default was `s,x,x', remove it if useless.
3156 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3157 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3158
3159
3160 # Expand $ac_aux_dir to an absolute path.
3161 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3162
3163
3164 if test x"${MISSING+set}" != xset; then
3165 MISSING="\${SHELL} '$am_aux_dir/missing'"
3166 fi
3167 # Use eval to expand $SHELL
3168 if eval "$MISSING --is-lightweight"; then
3169 am_missing_run="$MISSING "
3170 else
3171 am_missing_run=
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3173 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3174 fi
3175
3176 if test x"${install_sh+set}" != xset; then
3177 case $am_aux_dir in
3178 *\ * | *\ *)
3179 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3180 *)
3181 install_sh="\${SHELL} $am_aux_dir/install-sh"
3182 esac
3183 fi
3184
3185 # Installed binaries are usually stripped using 'strip' when the user
3186 # run "make install-strip". However 'strip' might not be the right
3187 # tool to use in cross-compilation environments, therefore Automake
3188 # will honor the 'STRIP' environment variable to overrule this program.
3189 if test "$cross_compiling" != no; then
3190 if test -n "$ac_tool_prefix"; then
3191 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3192 set dummy ${ac_tool_prefix}strip; ac_word=$2
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 printf %s "checking for $ac_word... " >&6; }
3195 if test ${ac_cv_prog_STRIP+y}
3196 then :
3197 printf %s "(cached) " >&6
3198 else $as_nop
3199 if test -n "$STRIP"; then
3200 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 case $as_dir in #(((
3207 '') as_dir=./ ;;
3208 */) ;;
3209 *) as_dir=$as_dir/ ;;
3210 esac
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 STRIP=$ac_cv_prog_STRIP
3224 if test -n "$STRIP"; then
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3226 printf "%s\n" "$STRIP" >&6; }
3227 else
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 printf "%s\n" "no" >&6; }
3230 fi
3231
3232
3233 fi
3234 if test -z "$ac_cv_prog_STRIP"; then
3235 ac_ct_STRIP=$STRIP
3236 # Extract the first word of "strip", so it can be a program name with args.
3237 set dummy strip; ac_word=$2
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 printf %s "checking for $ac_word... " >&6; }
3240 if test ${ac_cv_prog_ac_ct_STRIP+y}
3241 then :
3242 printf %s "(cached) " >&6
3243 else $as_nop
3244 if test -n "$ac_ct_STRIP"; then
3245 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 case $as_dir in #(((
3252 '') as_dir=./ ;;
3253 */) ;;
3254 *) as_dir=$as_dir/ ;;
3255 esac
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_ac_ct_STRIP="strip"
3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262 done
3263 done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3269 if test -n "$ac_ct_STRIP"; then
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3271 printf "%s\n" "$ac_ct_STRIP" >&6; }
3272 else
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 printf "%s\n" "no" >&6; }
3275 fi
3276
3277 if test "x$ac_ct_STRIP" = x; then
3278 STRIP=":"
3279 else
3280 case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286 STRIP=$ac_ct_STRIP
3287 fi
3288 else
3289 STRIP="$ac_cv_prog_STRIP"
3290 fi
3291
3292 fi
3293 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3294
3295
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3297 printf %s "checking for a race-free mkdir -p... " >&6; }
3298 if test -z "$MKDIR_P"; then
3299 if test ${ac_cv_path_mkdir+y}
3300 then :
3301 printf %s "(cached) " >&6
3302 else $as_nop
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3305 do
3306 IFS=$as_save_IFS
3307 case $as_dir in #(((
3308 '') as_dir=./ ;;
3309 */) ;;
3310 *) as_dir=$as_dir/ ;;
3311 esac
3312 for ac_prog in mkdir gmkdir; do
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3315 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3316 'mkdir ('*'coreutils) '* | \
3317 'BusyBox '* | \
3318 'mkdir (fileutils) '4.1*)
3319 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3320 break 3;;
3321 esac
3322 done
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 fi
3328
3329 test -d ./--version && rmdir ./--version
3330 if test ${ac_cv_path_mkdir+y}; then
3331 MKDIR_P="$ac_cv_path_mkdir -p"
3332 else
3333 # As a last resort, use the slow shell script. Don't cache a
3334 # value for MKDIR_P within a source directory, because that will
3335 # break other packages using the cache if that directory is
3336 # removed, or if the value is a relative name.
3337 MKDIR_P="$ac_install_sh -d"
3338 fi
3339 fi
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3341 printf "%s\n" "$MKDIR_P" >&6; }
3342
3343 for ac_prog in gawk mawk nawk awk
3344 do
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346 set dummy $ac_prog; ac_word=$2
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 printf %s "checking for $ac_word... " >&6; }
3349 if test ${ac_cv_prog_AWK+y}
3350 then :
3351 printf %s "(cached) " >&6
3352 else $as_nop
3353 if test -n "$AWK"; then
3354 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 case $as_dir in #(((
3361 '') as_dir=./ ;;
3362 */) ;;
3363 *) as_dir=$as_dir/ ;;
3364 esac
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_AWK="$ac_prog"
3368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 AWK=$ac_cv_prog_AWK
3378 if test -n "$AWK"; then
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3380 printf "%s\n" "$AWK" >&6; }
3381 else
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 printf "%s\n" "no" >&6; }
3384 fi
3385
3386
3387 test -n "$AWK" && break
3388 done
3389
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3391 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3392 set x ${MAKE-make}
3393 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3394 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3395 then :
3396 printf %s "(cached) " >&6
3397 else $as_nop
3398 cat >conftest.make <<\_ACEOF
3399 SHELL = /bin/sh
3400 all:
3401 @echo '@@@%%%=$(MAKE)=@@@%%%'
3402 _ACEOF
3403 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3404 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3405 *@@@%%%=?*=@@@%%%*)
3406 eval ac_cv_prog_make_${ac_make}_set=yes;;
3407 *)
3408 eval ac_cv_prog_make_${ac_make}_set=no;;
3409 esac
3410 rm -f conftest.make
3411 fi
3412 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 printf "%s\n" "yes" >&6; }
3415 SET_MAKE=
3416 else
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 printf "%s\n" "no" >&6; }
3419 SET_MAKE="MAKE=${MAKE-make}"
3420 fi
3421
3422 rm -rf .tst 2>/dev/null
3423 mkdir .tst 2>/dev/null
3424 if test -d .tst; then
3425 am__leading_dot=.
3426 else
3427 am__leading_dot=_
3428 fi
3429 rmdir .tst 2>/dev/null
3430
3431 # Check whether --enable-silent-rules was given.
3432 if test ${enable_silent_rules+y}
3433 then :
3434 enableval=$enable_silent_rules;
3435 fi
3436
3437 case $enable_silent_rules in # (((
3438 yes) AM_DEFAULT_VERBOSITY=0;;
3439 no) AM_DEFAULT_VERBOSITY=1;;
3440 *) AM_DEFAULT_VERBOSITY=1;;
3441 esac
3442 am_make=${MAKE-make}
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3444 printf %s "checking whether $am_make supports nested variables... " >&6; }
3445 if test ${am_cv_make_support_nested_variables+y}
3446 then :
3447 printf %s "(cached) " >&6
3448 else $as_nop
3449 if printf "%s\n" 'TRUE=$(BAR$(V))
3450 BAR0=false
3451 BAR1=true
3452 V=1
3453 am__doit:
3454 @$(TRUE)
3455 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3456 am_cv_make_support_nested_variables=yes
3457 else
3458 am_cv_make_support_nested_variables=no
3459 fi
3460 fi
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3462 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3463 if test $am_cv_make_support_nested_variables = yes; then
3464 AM_V='$(V)'
3465 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3466 else
3467 AM_V=$AM_DEFAULT_VERBOSITY
3468 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3469 fi
3470 AM_BACKSLASH='\'
3471
3472 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3473 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3474 # is not polluted with repeated "-I."
3475 am__isrc=' -I$(srcdir)'
3476 # test to see if srcdir already configured
3477 if test -f $srcdir/config.status; then
3478 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3479 fi
3480 fi
3481
3482 # test whether we have cygpath
3483 if test -z "$CYGPATH_W"; then
3484 if (cygpath --version) >/dev/null 2>/dev/null; then
3485 CYGPATH_W='cygpath -w'
3486 else
3487 CYGPATH_W=echo
3488 fi
3489 fi
3490
3491
3492 # Define the identity of the package.
3493 PACKAGE='procps-ng'
3494 VERSION='4.0.4'
3495
3496
3497 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3498
3499
3500 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3501
3502 # Some tools Automake needs.
3503
3504 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3505
3506
3507 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3508
3509
3510 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3511
3512
3513 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3514
3515
3516 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3517
3518 # For better backward compatibility. To be removed once Automake 1.9.x
3519 # dies out for good. For more background, see:
3520 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3521 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3522 mkdir_p='$(MKDIR_P)'
3523
3524 # We need awk for the "check" target (and possibly the TAP driver). The
3525 # system "awk" is bad on some platforms.
3526 # Always define AMTAR for backward compatibility. Yes, it's still used
3527 # in the wild :-( We should find a proper way to deprecate it ...
3528 AMTAR='$${TAR-tar}'
3529
3530
3531 # We'll loop over all known methods to create a tar archive until one works.
3532 _am_tools='gnutar pax cpio none'
3533
3534
3535
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3537 printf %s "checking how to create a pax tar archive... " >&6; }
3538
3539 # Go ahead even if we have the value already cached. We do so because we
3540 # need to set the values for the 'am__tar' and 'am__untar' variables.
3541 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3542
3543 for _am_tool in $_am_tools; do
3544 case $_am_tool in
3545 gnutar)
3546 for _am_tar in tar gnutar gtar; do
3547 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3548 ($_am_tar --version) >&5 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } && break
3552 done
3553 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3554 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3555 am__untar="$_am_tar -xf -"
3556 ;;
3557 plaintar)
3558 # Must skip GNU tar: if it does not support --format= it doesn't create
3559 # ustar tarball either.
3560 (tar --version) >/dev/null 2>&1 && continue
3561 am__tar='tar chf - "$$tardir"'
3562 am__tar_='tar chf - "$tardir"'
3563 am__untar='tar xf -'
3564 ;;
3565 pax)
3566 am__tar='pax -L -x pax -w "$$tardir"'
3567 am__tar_='pax -L -x pax -w "$tardir"'
3568 am__untar='pax -r'
3569 ;;
3570 cpio)
3571 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3572 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3573 am__untar='cpio -i -H pax -d'
3574 ;;
3575 none)
3576 am__tar=false
3577 am__tar_=false
3578 am__untar=false
3579 ;;
3580 esac
3581
3582 # If the value was cached, stop now. We just wanted to have am__tar
3583 # and am__untar set.
3584 test -n "${am_cv_prog_tar_pax}" && break
3585
3586 # tar/untar a dummy directory, and stop if the command works.
3587 rm -rf conftest.dir
3588 mkdir conftest.dir
3589 echo GrepMe > conftest.dir/file
3590 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3591 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }
3595 rm -rf conftest.dir
3596 if test -s conftest.tar; then
3597 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3598 ($am__untar <conftest.tar) >&5 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3603 (cat conftest.dir/file) >&5 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }
3607 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3608 fi
3609 done
3610 rm -rf conftest.dir
3611
3612 if test ${am_cv_prog_tar_pax+y}
3613 then :
3614 printf %s "(cached) " >&6
3615 else $as_nop
3616 am_cv_prog_tar_pax=$_am_tool
3617 fi
3618
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3620 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3621
3622
3623
3624
3625
3626 # Variables for tags utilities; see am/tags.am
3627 if test -z "$CTAGS"; then
3628 CTAGS=ctags
3629 fi
3630
3631 if test -z "$ETAGS"; then
3632 ETAGS=etags
3633 fi
3634
3635 if test -z "$CSCOPE"; then
3636 CSCOPE=cscope
3637 fi
3638
3639
3640
3641 # POSIX will say in a future version that running "rm -f" with no argument
3642 # is OK; and we want to be able to make that assumption in our Makefile
3643 # recipes. So use an aggressive probe to check that the usage we want is
3644 # actually supported "in the wild" to an acceptable degree.
3645 # See automake bug#10828.
3646 # To make any issue more visible, cause the running configure to be aborted
3647 # by default if the 'rm' program in use doesn't match our expectations; the
3648 # user can still override this though.
3649 if rm -f && rm -fr && rm -rf; then : OK; else
3650 cat >&2 <<'END'
3651 Oops!
3652
3653 Your 'rm' program seems unable to run without file operands specified
3654 on the command line, even when the '-f' option is present. This is contrary
3655 to the behaviour of most rm programs out there, and not conforming with
3656 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3657
3658 Please tell [email protected] about your system, including the value
3659 of your $PATH and any error possibly output before this message. This
3660 can help us improve future automake versions.
3661
3662 END
3663 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3664 echo 'Configuration will proceed anyway, since you have set the' >&2
3665 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3666 echo >&2
3667 else
3668 cat >&2 <<'END'
3669 Aborting the configuration process, to ensure you take notice of the issue.
3670
3671 You can download and install GNU coreutils to get an 'rm' implementation
3672 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3673
3674 If you want to complete the configuration process using your problematic
3675 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3676 to "yes", and re-run configure.
3677
3678 END
3679 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3680 fi
3681 fi
3682
3683 # Check whether --enable-silent-rules was given.
3684 if test ${enable_silent_rules+y}
3685 then :
3686 enableval=$enable_silent_rules;
3687 fi
3688
3689 case $enable_silent_rules in # (((
3690 yes) AM_DEFAULT_VERBOSITY=0;;
3691 no) AM_DEFAULT_VERBOSITY=1;;
3692 *) AM_DEFAULT_VERBOSITY=0;;
3693 esac
3694 am_make=${MAKE-make}
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3696 printf %s "checking whether $am_make supports nested variables... " >&6; }
3697 if test ${am_cv_make_support_nested_variables+y}
3698 then :
3699 printf %s "(cached) " >&6
3700 else $as_nop
3701 if printf "%s\n" 'TRUE=$(BAR$(V))
3702 BAR0=false
3703 BAR1=true
3704 V=1
3705 am__doit:
3706 @$(TRUE)
3707 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3708 am_cv_make_support_nested_variables=yes
3709 else
3710 am_cv_make_support_nested_variables=no
3711 fi
3712 fi
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3714 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3715 if test $am_cv_make_support_nested_variables = yes; then
3716 AM_V='$(V)'
3717 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3718 else
3719 AM_V=$AM_DEFAULT_VERBOSITY
3720 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3721 fi
3722 AM_BACKSLASH='\'
3723
3724
3725 ac_config_headers="$ac_config_headers config.h"
3726
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732
3733
3734 # Checks for programs.
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744 DEPDIR="${am__leading_dot}deps"
3745
3746 ac_config_commands="$ac_config_commands depfiles"
3747
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3749 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3750 cat > confinc.mk << 'END'
3751 am__doit:
3752 @echo this is the am__doit target >confinc.out
3753 .PHONY: am__doit
3754 END
3755 am__include="#"
3756 am__quote=
3757 # BSD make does it like this.
3758 echo '.include "confinc.mk" # ignored' > confmf.BSD
3759 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3760 echo 'include confinc.mk # ignored' > confmf.GNU
3761 _am_result=no
3762 for s in GNU BSD; do
3763 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3764 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3765 ac_status=$?
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }
3768 case $?:`cat confinc.out 2>/dev/null` in #(
3769 '0:this is the am__doit target') :
3770 case $s in #(
3771 BSD) :
3772 am__include='.include' am__quote='"' ;; #(
3773 *) :
3774 am__include='include' am__quote='' ;;
3775 esac ;; #(
3776 *) :
3777 ;;
3778 esac
3779 if test "$am__include" != "#"; then
3780 _am_result="yes ($s style)"
3781 break
3782 fi
3783 done
3784 rm -f confinc.* confmf.*
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3786 printf "%s\n" "${_am_result}" >&6; }
3787
3788 # Check whether --enable-dependency-tracking was given.
3789 if test ${enable_dependency_tracking+y}
3790 then :
3791 enableval=$enable_dependency_tracking;
3792 fi
3793
3794 if test "x$enable_dependency_tracking" != xno; then
3795 am_depcomp="$ac_aux_dir/depcomp"
3796 AMDEPBACKSLASH='\'
3797 am__nodep='_no'
3798 fi
3799 if test "x$enable_dependency_tracking" != xno; then
3800 AMDEP_TRUE=
3801 AMDEP_FALSE='#'
3802 else
3803 AMDEP_TRUE='#'
3804 AMDEP_FALSE=
3805 fi
3806
3807
3808 ac_ext=c
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 if test -n "$ac_tool_prefix"; then
3814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817 printf %s "checking for $ac_word... " >&6; }
3818 if test ${ac_cv_prog_CC+y}
3819 then :
3820 printf %s "(cached) " >&6
3821 else $as_nop
3822 if test -n "$CC"; then
3823 ac_cv_prog_CC="$CC" # Let the user override the test.
3824 else
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3827 do
3828 IFS=$as_save_IFS
3829 case $as_dir in #(((
3830 '') as_dir=./ ;;
3831 */) ;;
3832 *) as_dir=$as_dir/ ;;
3833 esac
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3838 break 2
3839 fi
3840 done
3841 done
3842 IFS=$as_save_IFS
3843
3844 fi
3845 fi
3846 CC=$ac_cv_prog_CC
3847 if test -n "$CC"; then
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849 printf "%s\n" "$CC" >&6; }
3850 else
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 printf "%s\n" "no" >&6; }
3853 fi
3854
3855
3856 fi
3857 if test -z "$ac_cv_prog_CC"; then
3858 ac_ct_CC=$CC
3859 # Extract the first word of "gcc", so it can be a program name with args.
3860 set dummy gcc; ac_word=$2
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 printf %s "checking for $ac_word... " >&6; }
3863 if test ${ac_cv_prog_ac_ct_CC+y}
3864 then :
3865 printf %s "(cached) " >&6
3866 else $as_nop
3867 if test -n "$ac_ct_CC"; then
3868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873 IFS=$as_save_IFS
3874 case $as_dir in #(((
3875 '') as_dir=./ ;;
3876 */) ;;
3877 *) as_dir=$as_dir/ ;;
3878 esac
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_ac_ct_CC="gcc"
3882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885 done
3886 done
3887 IFS=$as_save_IFS
3888
3889 fi
3890 fi
3891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3892 if test -n "$ac_ct_CC"; then
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3894 printf "%s\n" "$ac_ct_CC" >&6; }
3895 else
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 printf "%s\n" "no" >&6; }
3898 fi
3899
3900 if test "x$ac_ct_CC" = x; then
3901 CC=""
3902 else
3903 case $cross_compiling:$ac_tool_warned in
3904 yes:)
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907 ac_tool_warned=yes ;;
3908 esac
3909 CC=$ac_ct_CC
3910 fi
3911 else
3912 CC="$ac_cv_prog_CC"
3913 fi
3914
3915 if test -z "$CC"; then
3916 if test -n "$ac_tool_prefix"; then
3917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}cc; ac_word=$2
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 printf %s "checking for $ac_word... " >&6; }
3921 if test ${ac_cv_prog_CC+y}
3922 then :
3923 printf %s "(cached) " >&6
3924 else $as_nop
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931 IFS=$as_save_IFS
3932 case $as_dir in #(((
3933 '') as_dir=./ ;;
3934 */) ;;
3935 *) as_dir=$as_dir/ ;;
3936 esac
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_CC="${ac_tool_prefix}cc"
3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943 done
3944 done
3945 IFS=$as_save_IFS
3946
3947 fi
3948 fi
3949 CC=$ac_cv_prog_CC
3950 if test -n "$CC"; then
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952 printf "%s\n" "$CC" >&6; }
3953 else
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 printf "%s\n" "no" >&6; }
3956 fi
3957
3958
3959 fi
3960 fi
3961 if test -z "$CC"; then
3962 # Extract the first word of "cc", so it can be a program name with args.
3963 set dummy cc; ac_word=$2
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 printf %s "checking for $ac_word... " >&6; }
3966 if test ${ac_cv_prog_CC+y}
3967 then :
3968 printf %s "(cached) " >&6
3969 else $as_nop
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC="$CC" # Let the user override the test.
3972 else
3973 ac_prog_rejected=no
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 case $as_dir in #(((
3979 '') as_dir=./ ;;
3980 */) ;;
3981 *) as_dir=$as_dir/ ;;
3982 esac
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3985 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3986 ac_prog_rejected=yes
3987 continue
3988 fi
3989 ac_cv_prog_CC="cc"
3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 if test $ac_prog_rejected = yes; then
3998 # We found a bogon in the path, so make sure we never use it.
3999 set dummy $ac_cv_prog_CC
4000 shift
4001 if test $# != 0; then
4002 # We chose a different compiler from the bogus one.
4003 # However, it has the same basename, so the bogon will be chosen
4004 # first if we set CC to just the basename; use the full file name.
4005 shift
4006 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4007 fi
4008 fi
4009 fi
4010 fi
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 printf "%s\n" "$CC" >&6; }
4015 else
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 printf "%s\n" "no" >&6; }
4018 fi
4019
4020
4021 fi
4022 if test -z "$CC"; then
4023 if test -n "$ac_tool_prefix"; then
4024 for ac_prog in cl.exe
4025 do
4026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 printf %s "checking for $ac_word... " >&6; }
4030 if test ${ac_cv_prog_CC+y}
4031 then :
4032 printf %s "(cached) " >&6
4033 else $as_nop
4034 if test -n "$CC"; then
4035 ac_cv_prog_CC="$CC" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040 IFS=$as_save_IFS
4041 case $as_dir in #(((
4042 '') as_dir=./ ;;
4043 */) ;;
4044 *) as_dir=$as_dir/ ;;
4045 esac
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4050 break 2
4051 fi
4052 done
4053 done
4054 IFS=$as_save_IFS
4055
4056 fi
4057 fi
4058 CC=$ac_cv_prog_CC
4059 if test -n "$CC"; then
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4061 printf "%s\n" "$CC" >&6; }
4062 else
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 printf "%s\n" "no" >&6; }
4065 fi
4066
4067
4068 test -n "$CC" && break
4069 done
4070 fi
4071 if test -z "$CC"; then
4072 ac_ct_CC=$CC
4073 for ac_prog in cl.exe
4074 do
4075 # Extract the first word of "$ac_prog", so it can be a program name with args.
4076 set dummy $ac_prog; ac_word=$2
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 printf %s "checking for $ac_word... " >&6; }
4079 if test ${ac_cv_prog_ac_ct_CC+y}
4080 then :
4081 printf %s "(cached) " >&6
4082 else $as_nop
4083 if test -n "$ac_ct_CC"; then
4084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089 IFS=$as_save_IFS
4090 case $as_dir in #(((
4091 '') as_dir=./ ;;
4092 */) ;;
4093 *) as_dir=$as_dir/ ;;
4094 esac
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_ac_ct_CC="$ac_prog"
4098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103 IFS=$as_save_IFS
4104
4105 fi
4106 fi
4107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4108 if test -n "$ac_ct_CC"; then
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4110 printf "%s\n" "$ac_ct_CC" >&6; }
4111 else
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 printf "%s\n" "no" >&6; }
4114 fi
4115
4116
4117 test -n "$ac_ct_CC" && break
4118 done
4119
4120 if test "x$ac_ct_CC" = x; then
4121 CC=""
4122 else
4123 case $cross_compiling:$ac_tool_warned in
4124 yes:)
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4126 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4127 ac_tool_warned=yes ;;
4128 esac
4129 CC=$ac_ct_CC
4130 fi
4131 fi
4132
4133 fi
4134 if test -z "$CC"; then
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}clang; ac_word=$2
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 printf %s "checking for $ac_word... " >&6; }
4140 if test ${ac_cv_prog_CC+y}
4141 then :
4142 printf %s "(cached) " >&6
4143 else $as_nop
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 case $as_dir in #(((
4152 '') as_dir=./ ;;
4153 */) ;;
4154 *) as_dir=$as_dir/ ;;
4155 esac
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_CC="${ac_tool_prefix}clang"
4159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 printf "%s\n" "$CC" >&6; }
4172 else
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 printf "%s\n" "no" >&6; }
4175 fi
4176
4177
4178 fi
4179 if test -z "$ac_cv_prog_CC"; then
4180 ac_ct_CC=$CC
4181 # Extract the first word of "clang", so it can be a program name with args.
4182 set dummy clang; ac_word=$2
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 printf %s "checking for $ac_word... " >&6; }
4185 if test ${ac_cv_prog_ac_ct_CC+y}
4186 then :
4187 printf %s "(cached) " >&6
4188 else $as_nop
4189 if test -n "$ac_ct_CC"; then
4190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195 IFS=$as_save_IFS
4196 case $as_dir in #(((
4197 '') as_dir=./ ;;
4198 */) ;;
4199 *) as_dir=$as_dir/ ;;
4200 esac
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_ac_ct_CC="clang"
4204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207 done
4208 done
4209 IFS=$as_save_IFS
4210
4211 fi
4212 fi
4213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4214 if test -n "$ac_ct_CC"; then
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4216 printf "%s\n" "$ac_ct_CC" >&6; }
4217 else
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 printf "%s\n" "no" >&6; }
4220 fi
4221
4222 if test "x$ac_ct_CC" = x; then
4223 CC=""
4224 else
4225 case $cross_compiling:$ac_tool_warned in
4226 yes:)
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4229 ac_tool_warned=yes ;;
4230 esac
4231 CC=$ac_ct_CC
4232 fi
4233 else
4234 CC="$ac_cv_prog_CC"
4235 fi
4236
4237 fi
4238
4239
4240 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4241 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4242 as_fn_error $? "no acceptable C compiler found in \$PATH
4243 See \`config.log' for more details" "$LINENO" 5; }
4244
4245 # Provide some information about the compiler.
4246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4247 set X $ac_compile
4248 ac_compiler=$2
4249 for ac_option in --version -v -V -qversion -version; do
4250 { { ac_try="$ac_compiler $ac_option >&5"
4251 case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 printf "%s\n" "$ac_try_echo"; } >&5
4257 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4258 ac_status=$?
4259 if test -s conftest.err; then
4260 sed '10a\
4261 ... rest of stderr output deleted ...
4262 10q' conftest.err >conftest.er1
4263 cat conftest.er1 >&5
4264 fi
4265 rm -f conftest.er1 conftest.err
4266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267 test $ac_status = 0; }
4268 done
4269
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272
4273 int
4274 main (void)
4275 {
4276
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 ac_clean_files_save=$ac_clean_files
4282 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4283 # Try to create an executable without -o first, disregard a.out.
4284 # It will help us diagnose broken compilers, and finding out an intuition
4285 # of exeext.
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4287 printf %s "checking whether the C compiler works... " >&6; }
4288 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4289
4290 # The possible output files:
4291 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4292
4293 ac_rmfiles=
4294 for ac_file in $ac_files
4295 do
4296 case $ac_file in
4297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4298 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4299 esac
4300 done
4301 rm -f $ac_rmfiles
4302
4303 if { { ac_try="$ac_link_default"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 printf "%s\n" "$ac_try_echo"; } >&5
4310 (eval "$ac_link_default") 2>&5
4311 ac_status=$?
4312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; }
4314 then :
4315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4318 # so that the user can short-circuit this test for compilers unknown to
4319 # Autoconf.
4320 for ac_file in $ac_files ''
4321 do
4322 test -f "$ac_file" || continue
4323 case $ac_file in
4324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4325 ;;
4326 [ab].out )
4327 # We found the default executable, but exeext='' is most
4328 # certainly right.
4329 break;;
4330 *.* )
4331 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4332 then :; else
4333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4334 fi
4335 # We set ac_cv_exeext here because the later test for it is not
4336 # safe: cross compilers may not add the suffix if given an `-o'
4337 # argument, so we may need to know it at that point already.
4338 # Even if this section looks crufty: it has the advantage of
4339 # actually working.
4340 break;;
4341 * )
4342 break;;
4343 esac
4344 done
4345 test "$ac_cv_exeext" = no && ac_cv_exeext=
4346
4347 else $as_nop
4348 ac_file=''
4349 fi
4350 if test -z "$ac_file"
4351 then :
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 printf "%s\n" "no" >&6; }
4354 printf "%s\n" "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4356
4357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4358 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4359 as_fn_error 77 "C compiler cannot create executables
4360 See \`config.log' for more details" "$LINENO" 5; }
4361 else $as_nop
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363 printf "%s\n" "yes" >&6; }
4364 fi
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4366 printf %s "checking for C compiler default output file name... " >&6; }
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4368 printf "%s\n" "$ac_file" >&6; }
4369 ac_exeext=$ac_cv_exeext
4370
4371 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4372 ac_clean_files=$ac_clean_files_save
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4374 printf %s "checking for suffix of executables... " >&6; }
4375 if { { ac_try="$ac_link"
4376 case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 printf "%s\n" "$ac_try_echo"; } >&5
4382 (eval "$ac_link") 2>&5
4383 ac_status=$?
4384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385 test $ac_status = 0; }
4386 then :
4387 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4388 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4389 # work properly (i.e., refer to `conftest.exe'), while it won't with
4390 # `rm'.
4391 for ac_file in conftest.exe conftest conftest.*; do
4392 test -f "$ac_file" || continue
4393 case $ac_file in
4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4395 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4396 break;;
4397 * ) break;;
4398 esac
4399 done
4400 else $as_nop
4401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4404 See \`config.log' for more details" "$LINENO" 5; }
4405 fi
4406 rm -f conftest conftest$ac_cv_exeext
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4408 printf "%s\n" "$ac_cv_exeext" >&6; }
4409
4410 rm -f conftest.$ac_ext
4411 EXEEXT=$ac_cv_exeext
4412 ac_exeext=$EXEEXT
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <stdio.h>
4416 int
4417 main (void)
4418 {
4419 FILE *f = fopen ("conftest.out", "w");
4420 return ferror (f) || fclose (f) != 0;
4421
4422 ;
4423 return 0;
4424 }
4425 _ACEOF
4426 ac_clean_files="$ac_clean_files conftest.out"
4427 # Check that the compiler produces executables we can run. If not, either
4428 # the compiler is broken, or we cross compile.
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4430 printf %s "checking whether we are cross compiling... " >&6; }
4431 if test "$cross_compiling" != yes; then
4432 { { ac_try="$ac_link"
4433 case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 printf "%s\n" "$ac_try_echo"; } >&5
4439 (eval "$ac_link") 2>&5
4440 ac_status=$?
4441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; }
4443 if { ac_try='./conftest$ac_cv_exeext'
4444 { { case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 printf "%s\n" "$ac_try_echo"; } >&5
4450 (eval "$ac_try") 2>&5
4451 ac_status=$?
4452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4453 test $ac_status = 0; }; }; then
4454 cross_compiling=no
4455 else
4456 if test "$cross_compiling" = maybe; then
4457 cross_compiling=yes
4458 else
4459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4461 as_fn_error 77 "cannot run C compiled programs.
4462 If you meant to cross compile, use \`--host'.
4463 See \`config.log' for more details" "$LINENO" 5; }
4464 fi
4465 fi
4466 fi
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4468 printf "%s\n" "$cross_compiling" >&6; }
4469
4470 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4471 ac_clean_files=$ac_clean_files_save
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4473 printf %s "checking for suffix of object files... " >&6; }
4474 if test ${ac_cv_objext+y}
4475 then :
4476 printf %s "(cached) " >&6
4477 else $as_nop
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4480
4481 int
4482 main (void)
4483 {
4484
4485 ;
4486 return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.o conftest.obj
4490 if { { ac_try="$ac_compile"
4491 case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494 esac
4495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4496 printf "%s\n" "$ac_try_echo"; } >&5
4497 (eval "$ac_compile") 2>&5
4498 ac_status=$?
4499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4500 test $ac_status = 0; }
4501 then :
4502 for ac_file in conftest.o conftest.obj conftest.*; do
4503 test -f "$ac_file" || continue;
4504 case $ac_file in
4505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4506 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4507 break;;
4508 esac
4509 done
4510 else $as_nop
4511 printf "%s\n" "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error $? "cannot compute suffix of object files: cannot compile
4517 See \`config.log' for more details" "$LINENO" 5; }
4518 fi
4519 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4520 fi
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4522 printf "%s\n" "$ac_cv_objext" >&6; }
4523 OBJEXT=$ac_cv_objext
4524 ac_objext=$OBJEXT
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4526 printf %s "checking whether the compiler supports GNU C... " >&6; }
4527 if test ${ac_cv_c_compiler_gnu+y}
4528 then :
4529 printf %s "(cached) " >&6
4530 else $as_nop
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533
4534 int
4535 main (void)
4536 {
4537 #ifndef __GNUC__
4538 choke me
4539 #endif
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"
4546 then :
4547 ac_compiler_gnu=yes
4548 else $as_nop
4549 ac_compiler_gnu=no
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4553
4554 fi
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4556 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559 if test $ac_compiler_gnu = yes; then
4560 GCC=yes
4561 else
4562 GCC=
4563 fi
4564 ac_test_CFLAGS=${CFLAGS+y}
4565 ac_save_CFLAGS=$CFLAGS
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4567 printf %s "checking whether $CC accepts -g... " >&6; }
4568 if test ${ac_cv_prog_cc_g+y}
4569 then :
4570 printf %s "(cached) " >&6
4571 else $as_nop
4572 ac_save_c_werror_flag=$ac_c_werror_flag
4573 ac_c_werror_flag=yes
4574 ac_cv_prog_cc_g=no
4575 CFLAGS="-g"
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578
4579 int
4580 main (void)
4581 {
4582
4583 ;
4584 return 0;
4585 }
4586 _ACEOF
4587 if ac_fn_c_try_compile "$LINENO"
4588 then :
4589 ac_cv_prog_cc_g=yes
4590 else $as_nop
4591 CFLAGS=""
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594
4595 int
4596 main (void)
4597 {
4598
4599 ;
4600 return 0;
4601 }
4602 _ACEOF
4603 if ac_fn_c_try_compile "$LINENO"
4604 then :
4605
4606 else $as_nop
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4608 CFLAGS="-g"
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4611
4612 int
4613 main (void)
4614 {
4615
4616 ;
4617 return 0;
4618 }
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"
4621 then :
4622 ac_cv_prog_cc_g=yes
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4629 ac_c_werror_flag=$ac_save_c_werror_flag
4630 fi
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4632 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4633 if test $ac_test_CFLAGS; then
4634 CFLAGS=$ac_save_CFLAGS
4635 elif test $ac_cv_prog_cc_g = yes; then
4636 if test "$GCC" = yes; then
4637 CFLAGS="-g -O2"
4638 else
4639 CFLAGS="-g"
4640 fi
4641 else
4642 if test "$GCC" = yes; then
4643 CFLAGS="-O2"
4644 else
4645 CFLAGS=
4646 fi
4647 fi
4648 ac_prog_cc_stdc=no
4649 if test x$ac_prog_cc_stdc = xno
4650 then :
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4652 printf %s "checking for $CC option to enable C11 features... " >&6; }
4653 if test ${ac_cv_prog_cc_c11+y}
4654 then :
4655 printf %s "(cached) " >&6
4656 else $as_nop
4657 ac_cv_prog_cc_c11=no
4658 ac_save_CC=$CC
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661 $ac_c_conftest_c11_program
4662 _ACEOF
4663 for ac_arg in '' -std=gnu11
4664 do
4665 CC="$ac_save_CC $ac_arg"
4666 if ac_fn_c_try_compile "$LINENO"
4667 then :
4668 ac_cv_prog_cc_c11=$ac_arg
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.beam
4671 test "x$ac_cv_prog_cc_c11" != "xno" && break
4672 done
4673 rm -f conftest.$ac_ext
4674 CC=$ac_save_CC
4675 fi
4676
4677 if test "x$ac_cv_prog_cc_c11" = xno
4678 then :
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4680 printf "%s\n" "unsupported" >&6; }
4681 else $as_nop
4682 if test "x$ac_cv_prog_cc_c11" = x
4683 then :
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4685 printf "%s\n" "none needed" >&6; }
4686 else $as_nop
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4688 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4689 CC="$CC $ac_cv_prog_cc_c11"
4690 fi
4691 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4692 ac_prog_cc_stdc=c11
4693 fi
4694 fi
4695 if test x$ac_prog_cc_stdc = xno
4696 then :
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4698 printf %s "checking for $CC option to enable C99 features... " >&6; }
4699 if test ${ac_cv_prog_cc_c99+y}
4700 then :
4701 printf %s "(cached) " >&6
4702 else $as_nop
4703 ac_cv_prog_cc_c99=no
4704 ac_save_CC=$CC
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 $ac_c_conftest_c99_program
4708 _ACEOF
4709 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4710 do
4711 CC="$ac_save_CC $ac_arg"
4712 if ac_fn_c_try_compile "$LINENO"
4713 then :
4714 ac_cv_prog_cc_c99=$ac_arg
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.beam
4717 test "x$ac_cv_prog_cc_c99" != "xno" && break
4718 done
4719 rm -f conftest.$ac_ext
4720 CC=$ac_save_CC
4721 fi
4722
4723 if test "x$ac_cv_prog_cc_c99" = xno
4724 then :
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4726 printf "%s\n" "unsupported" >&6; }
4727 else $as_nop
4728 if test "x$ac_cv_prog_cc_c99" = x
4729 then :
4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4731 printf "%s\n" "none needed" >&6; }
4732 else $as_nop
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4734 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4735 CC="$CC $ac_cv_prog_cc_c99"
4736 fi
4737 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4738 ac_prog_cc_stdc=c99
4739 fi
4740 fi
4741 if test x$ac_prog_cc_stdc = xno
4742 then :
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4744 printf %s "checking for $CC option to enable C89 features... " >&6; }
4745 if test ${ac_cv_prog_cc_c89+y}
4746 then :
4747 printf %s "(cached) " >&6
4748 else $as_nop
4749 ac_cv_prog_cc_c89=no
4750 ac_save_CC=$CC
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 $ac_c_conftest_c89_program
4754 _ACEOF
4755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4756 do
4757 CC="$ac_save_CC $ac_arg"
4758 if ac_fn_c_try_compile "$LINENO"
4759 then :
4760 ac_cv_prog_cc_c89=$ac_arg
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.beam
4763 test "x$ac_cv_prog_cc_c89" != "xno" && break
4764 done
4765 rm -f conftest.$ac_ext
4766 CC=$ac_save_CC
4767 fi
4768
4769 if test "x$ac_cv_prog_cc_c89" = xno
4770 then :
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4772 printf "%s\n" "unsupported" >&6; }
4773 else $as_nop
4774 if test "x$ac_cv_prog_cc_c89" = x
4775 then :
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4777 printf "%s\n" "none needed" >&6; }
4778 else $as_nop
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4780 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4781 CC="$CC $ac_cv_prog_cc_c89"
4782 fi
4783 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4784 ac_prog_cc_stdc=c89
4785 fi
4786 fi
4787
4788 ac_ext=c
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794
4795 ac_ext=c
4796 ac_cpp='$CPP $CPPFLAGS'
4797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4801 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4802 if test ${am_cv_prog_cc_c_o+y}
4803 then :
4804 printf %s "(cached) " >&6
4805 else $as_nop
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808
4809 int
4810 main (void)
4811 {
4812
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 # Make sure it works both with $CC and with simple cc.
4818 # Following AC_PROG_CC_C_O, we do the test twice because some
4819 # compilers refuse to overwrite an existing .o file with -o,
4820 # though they will create one.
4821 am_cv_prog_cc_c_o=yes
4822 for am_i in 1 2; do
4823 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4824 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } \
4828 && test -f conftest2.$ac_objext; then
4829 : OK
4830 else
4831 am_cv_prog_cc_c_o=no
4832 break
4833 fi
4834 done
4835 rm -f core conftest*
4836 unset am_i
4837 fi
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4839 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4840 if test "$am_cv_prog_cc_c_o" != yes; then
4841 # Losing compiler, so override with the script.
4842 # FIXME: It is wrong to rewrite CC.
4843 # But if we don't then we get into trouble of one sort or another.
4844 # A longer-term fix would be to have automake use am__CC in this case,
4845 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4846 CC="$am_aux_dir/compile $CC"
4847 fi
4848 ac_ext=c
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
4854
4855 depcc="$CC" am_compiler_list=
4856
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4858 printf %s "checking dependency style of $depcc... " >&6; }
4859 if test ${am_cv_CC_dependencies_compiler_type+y}
4860 then :
4861 printf %s "(cached) " >&6
4862 else $as_nop
4863 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4864 # We make a subdir and do the tests there. Otherwise we can end up
4865 # making bogus files that we don't know about and never remove. For
4866 # instance it was reported that on HP-UX the gcc test will end up
4867 # making a dummy file named 'D' -- because '-MD' means "put the output
4868 # in D".
4869 rm -rf conftest.dir
4870 mkdir conftest.dir
4871 # Copy depcomp to subdir because otherwise we won't find it if we're
4872 # using a relative directory.
4873 cp "$am_depcomp" conftest.dir
4874 cd conftest.dir
4875 # We will build objects and dependencies in a subdirectory because
4876 # it helps to detect inapplicable dependency modes. For instance
4877 # both Tru64's cc and ICC support -MD to output dependencies as a
4878 # side effect of compilation, but ICC will put the dependencies in
4879 # the current directory while Tru64 will put them in the object
4880 # directory.
4881 mkdir sub
4882
4883 am_cv_CC_dependencies_compiler_type=none
4884 if test "$am_compiler_list" = ""; then
4885 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4886 fi
4887 am__universal=false
4888 case " $depcc " in #(
4889 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4890 esac
4891
4892 for depmode in $am_compiler_list; do
4893 # Setup a source with many dependencies, because some compilers
4894 # like to wrap large dependency lists on column 80 (with \), and
4895 # we should not choose a depcomp mode which is confused by this.
4896 #
4897 # We need to recreate these files for each test, as the compiler may
4898 # overwrite some of them when testing with obscure command lines.
4899 # This happens at least with the AIX C compiler.
4900 : > sub/conftest.c
4901 for i in 1 2 3 4 5 6; do
4902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4903 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4904 # Solaris 10 /bin/sh.
4905 echo '/* dummy */' > sub/conftst$i.h
4906 done
4907 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4908
4909 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4910 # mode. It turns out that the SunPro C++ compiler does not properly
4911 # handle '-M -o', and we need to detect this. Also, some Intel
4912 # versions had trouble with output in subdirs.
4913 am__obj=sub/conftest.${OBJEXT-o}
4914 am__minus_obj="-o $am__obj"
4915 case $depmode in
4916 gcc)
4917 # This depmode causes a compiler race in universal mode.
4918 test "$am__universal" = false || continue
4919 ;;
4920 nosideeffect)
4921 # After this tag, mechanisms are not by side-effect, so they'll
4922 # only be used when explicitly requested.
4923 if test "x$enable_dependency_tracking" = xyes; then
4924 continue
4925 else
4926 break
4927 fi
4928 ;;
4929 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4930 # This compiler won't grok '-c -o', but also, the minuso test has
4931 # not run yet. These depmodes are late enough in the game, and
4932 # so weak that their functioning should not be impacted.
4933 am__obj=conftest.${OBJEXT-o}
4934 am__minus_obj=
4935 ;;
4936 none) break ;;
4937 esac
4938 if depmode=$depmode \
4939 source=sub/conftest.c object=$am__obj \
4940 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4941 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4942 >/dev/null 2>conftest.err &&
4943 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4944 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4946 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4947 # icc doesn't choke on unknown options, it will just issue warnings
4948 # or remarks (even with -Werror). So we grep stderr for any message
4949 # that says an option was ignored or not supported.
4950 # When given -MP, icc 7.0 and 7.1 complain thusly:
4951 # icc: Command line warning: ignoring option '-M'; no argument required
4952 # The diagnosis changed in icc 8.0:
4953 # icc: Command line remark: option '-MP' not supported
4954 if (grep 'ignoring option' conftest.err ||
4955 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4956 am_cv_CC_dependencies_compiler_type=$depmode
4957 break
4958 fi
4959 fi
4960 done
4961
4962 cd ..
4963 rm -rf conftest.dir
4964 else
4965 am_cv_CC_dependencies_compiler_type=none
4966 fi
4967
4968 fi
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4970 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4971 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4972
4973 if
4974 test "x$enable_dependency_tracking" != xno \
4975 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4976 am__fastdepCC_TRUE=
4977 am__fastdepCC_FALSE='#'
4978 else
4979 am__fastdepCC_TRUE='#'
4980 am__fastdepCC_FALSE=
4981 fi
4982
4983
4984
4985 ac_header= ac_cache=
4986 for ac_item in $ac_header_c_list
4987 do
4988 if test $ac_cache; then
4989 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4990 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4991 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4992 fi
4993 ac_header= ac_cache=
4994 elif test $ac_header; then
4995 ac_cache=$ac_item
4996 else
4997 ac_header=$ac_item
4998 fi
4999 done
5000
5001
5002
5003
5004
5005
5006
5007
5008 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5009 then :
5010
5011 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5012
5013 fi
5014
5015
5016
5017
5018
5019
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5021 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5022 if test ${ac_cv_safe_to_define___extensions__+y}
5023 then :
5024 printf %s "(cached) " >&6
5025 else $as_nop
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028
5029 # define __EXTENSIONS__ 1
5030 $ac_includes_default
5031 int
5032 main (void)
5033 {
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 if ac_fn_c_try_compile "$LINENO"
5040 then :
5041 ac_cv_safe_to_define___extensions__=yes
5042 else $as_nop
5043 ac_cv_safe_to_define___extensions__=no
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5046 fi
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5048 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5049
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5051 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5052 if test ${ac_cv_should_define__xopen_source+y}
5053 then :
5054 printf %s "(cached) " >&6
5055 else $as_nop
5056 ac_cv_should_define__xopen_source=no
5057 if test $ac_cv_header_wchar_h = yes
5058 then :
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061
5062 #include <wchar.h>
5063 mbstate_t x;
5064 int
5065 main (void)
5066 {
5067
5068 ;
5069 return 0;
5070 }
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"
5073 then :
5074
5075 else $as_nop
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078
5079 #define _XOPEN_SOURCE 500
5080 #include <wchar.h>
5081 mbstate_t x;
5082 int
5083 main (void)
5084 {
5085
5086 ;
5087 return 0;
5088 }
5089 _ACEOF
5090 if ac_fn_c_try_compile "$LINENO"
5091 then :
5092 ac_cv_should_define__xopen_source=yes
5093 fi
5094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5097 fi
5098 fi
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5100 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5101
5102 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5103
5104 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5105
5106 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5107
5108 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5109
5110 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5111
5112 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5113
5114 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5115
5116 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5117
5118 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5119
5120 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5121
5122 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5123
5124 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5125
5126 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5127
5128 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5129
5130 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5131
5132 if test $ac_cv_header_minix_config_h = yes
5133 then :
5134 MINIX=yes
5135 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5136
5137 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5138
5139 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5140
5141 else $as_nop
5142 MINIX=
5143 fi
5144 if test $ac_cv_safe_to_define___extensions__ = yes
5145 then :
5146 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5147
5148 fi
5149 if test $ac_cv_should_define__xopen_source = yes
5150 then :
5151 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5152
5153 fi
5154
5155 # Check whether --enable-largefile was given.
5156 if test ${enable_largefile+y}
5157 then :
5158 enableval=$enable_largefile;
5159 fi
5160
5161 if test "$enable_largefile" != no; then
5162
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5164 printf %s "checking for special C compiler options needed for large files... " >&6; }
5165 if test ${ac_cv_sys_largefile_CC+y}
5166 then :
5167 printf %s "(cached) " >&6
5168 else $as_nop
5169 ac_cv_sys_largefile_CC=no
5170 if test "$GCC" != yes; then
5171 ac_save_CC=$CC
5172 while :; do
5173 # IRIX 6.2 and later do not support large files by default,
5174 # so use the C compiler's -n32 option if that helps.
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #include <sys/types.h>
5178 /* Check that off_t can represent 2**63 - 1 correctly.
5179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5180 since some C++ compilers masquerading as C compilers
5181 incorrectly reject 9223372036854775807. */
5182 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5184 && LARGE_OFF_T % 2147483647 == 1)
5185 ? 1 : -1];
5186 int
5187 main (void)
5188 {
5189
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"
5195 then :
5196 break
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext conftest.beam
5199 CC="$CC -n32"
5200 if ac_fn_c_try_compile "$LINENO"
5201 then :
5202 ac_cv_sys_largefile_CC=' -n32'; break
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext conftest.beam
5205 break
5206 done
5207 CC=$ac_save_CC
5208 rm -f conftest.$ac_ext
5209 fi
5210 fi
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5212 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5213 if test "$ac_cv_sys_largefile_CC" != no; then
5214 CC=$CC$ac_cv_sys_largefile_CC
5215 fi
5216
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5218 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5219 if test ${ac_cv_sys_file_offset_bits+y}
5220 then :
5221 printf %s "(cached) " >&6
5222 else $as_nop
5223 while :; do
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 #include <sys/types.h>
5227 /* Check that off_t can represent 2**63 - 1 correctly.
5228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5229 since some C++ compilers masquerading as C compilers
5230 incorrectly reject 9223372036854775807. */
5231 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5233 && LARGE_OFF_T % 2147483647 == 1)
5234 ? 1 : -1];
5235 int
5236 main (void)
5237 {
5238
5239 ;
5240 return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_c_try_compile "$LINENO"
5244 then :
5245 ac_cv_sys_file_offset_bits=no; break
5246 fi
5247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 #define _FILE_OFFSET_BITS 64
5251 #include <sys/types.h>
5252 /* Check that off_t can represent 2**63 - 1 correctly.
5253 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5254 since some C++ compilers masquerading as C compilers
5255 incorrectly reject 9223372036854775807. */
5256 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5257 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5258 && LARGE_OFF_T % 2147483647 == 1)
5259 ? 1 : -1];
5260 int
5261 main (void)
5262 {
5263
5264 ;
5265 return 0;
5266 }
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"
5269 then :
5270 ac_cv_sys_file_offset_bits=64; break
5271 fi
5272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5273 ac_cv_sys_file_offset_bits=unknown
5274 break
5275 done
5276 fi
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5278 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5279 case $ac_cv_sys_file_offset_bits in #(
5280 no | unknown) ;;
5281 *)
5282 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5283 ;;
5284 esac
5285 rm -rf conftest*
5286 if test $ac_cv_sys_file_offset_bits = unknown; then
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5288 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5289 if test ${ac_cv_sys_large_files+y}
5290 then :
5291 printf %s "(cached) " >&6
5292 else $as_nop
5293 while :; do
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <sys/types.h>
5297 /* Check that off_t can represent 2**63 - 1 correctly.
5298 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5299 since some C++ compilers masquerading as C compilers
5300 incorrectly reject 9223372036854775807. */
5301 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5302 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5303 && LARGE_OFF_T % 2147483647 == 1)
5304 ? 1 : -1];
5305 int
5306 main (void)
5307 {
5308
5309 ;
5310 return 0;
5311 }
5312 _ACEOF
5313 if ac_fn_c_try_compile "$LINENO"
5314 then :
5315 ac_cv_sys_large_files=no; break
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 #define _LARGE_FILES 1
5321 #include <sys/types.h>
5322 /* Check that off_t can represent 2**63 - 1 correctly.
5323 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5324 since some C++ compilers masquerading as C compilers
5325 incorrectly reject 9223372036854775807. */
5326 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5327 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5328 && LARGE_OFF_T % 2147483647 == 1)
5329 ? 1 : -1];
5330 int
5331 main (void)
5332 {
5333
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_compile "$LINENO"
5339 then :
5340 ac_cv_sys_large_files=1; break
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5343 ac_cv_sys_large_files=unknown
5344 break
5345 done
5346 fi
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5348 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5349 case $ac_cv_sys_large_files in #(
5350 no | unknown) ;;
5351 *)
5352 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5353 ;;
5354 esac
5355 rm -rf conftest*
5356 fi
5357 fi
5358
5359 for ac_prog in gawk mawk nawk awk
5360 do
5361 # Extract the first word of "$ac_prog", so it can be a program name with args.
5362 set dummy $ac_prog; ac_word=$2
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 printf %s "checking for $ac_word... " >&6; }
5365 if test ${ac_cv_prog_AWK+y}
5366 then :
5367 printf %s "(cached) " >&6
5368 else $as_nop
5369 if test -n "$AWK"; then
5370 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 case $as_dir in #(((
5377 '') as_dir=./ ;;
5378 */) ;;
5379 *) as_dir=$as_dir/ ;;
5380 esac
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_AWK="$ac_prog"
5384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5385 break 2
5386 fi
5387 done
5388 done
5389 IFS=$as_save_IFS
5390
5391 fi
5392 fi
5393 AWK=$ac_cv_prog_AWK
5394 if test -n "$AWK"; then
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5396 printf "%s\n" "$AWK" >&6; }
5397 else
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 printf "%s\n" "no" >&6; }
5400 fi
5401
5402
5403 test -n "$AWK" && break
5404 done
5405
5406 ac_ext=c
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411 if test -n "$ac_tool_prefix"; then
5412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 printf %s "checking for $ac_word... " >&6; }
5416 if test ${ac_cv_prog_CC+y}
5417 then :
5418 printf %s "(cached) " >&6
5419 else $as_nop
5420 if test -n "$CC"; then
5421 ac_cv_prog_CC="$CC" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426 IFS=$as_save_IFS
5427 case $as_dir in #(((
5428 '') as_dir=./ ;;
5429 */) ;;
5430 *) as_dir=$as_dir/ ;;
5431 esac
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5436 break 2
5437 fi
5438 done
5439 done
5440 IFS=$as_save_IFS
5441
5442 fi
5443 fi
5444 CC=$ac_cv_prog_CC
5445 if test -n "$CC"; then
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5447 printf "%s\n" "$CC" >&6; }
5448 else
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 printf "%s\n" "no" >&6; }
5451 fi
5452
5453
5454 fi
5455 if test -z "$ac_cv_prog_CC"; then
5456 ac_ct_CC=$CC
5457 # Extract the first word of "gcc", so it can be a program name with args.
5458 set dummy gcc; ac_word=$2
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 printf %s "checking for $ac_word... " >&6; }
5461 if test ${ac_cv_prog_ac_ct_CC+y}
5462 then :
5463 printf %s "(cached) " >&6
5464 else $as_nop
5465 if test -n "$ac_ct_CC"; then
5466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5467 else
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471 IFS=$as_save_IFS
5472 case $as_dir in #(((
5473 '') as_dir=./ ;;
5474 */) ;;
5475 *) as_dir=$as_dir/ ;;
5476 esac
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_ac_ct_CC="gcc"
5480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483 done
5484 done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5490 if test -n "$ac_ct_CC"; then
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5492 printf "%s\n" "$ac_ct_CC" >&6; }
5493 else
5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 printf "%s\n" "no" >&6; }
5496 fi
5497
5498 if test "x$ac_ct_CC" = x; then
5499 CC=""
5500 else
5501 case $cross_compiling:$ac_tool_warned in
5502 yes:)
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505 ac_tool_warned=yes ;;
5506 esac
5507 CC=$ac_ct_CC
5508 fi
5509 else
5510 CC="$ac_cv_prog_CC"
5511 fi
5512
5513 if test -z "$CC"; then
5514 if test -n "$ac_tool_prefix"; then
5515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5516 set dummy ${ac_tool_prefix}cc; ac_word=$2
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 printf %s "checking for $ac_word... " >&6; }
5519 if test ${ac_cv_prog_CC+y}
5520 then :
5521 printf %s "(cached) " >&6
5522 else $as_nop
5523 if test -n "$CC"; then
5524 ac_cv_prog_CC="$CC" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529 IFS=$as_save_IFS
5530 case $as_dir in #(((
5531 '') as_dir=./ ;;
5532 */) ;;
5533 *) as_dir=$as_dir/ ;;
5534 esac
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5537 ac_cv_prog_CC="${ac_tool_prefix}cc"
5538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5539 break 2
5540 fi
5541 done
5542 done
5543 IFS=$as_save_IFS
5544
5545 fi
5546 fi
5547 CC=$ac_cv_prog_CC
5548 if test -n "$CC"; then
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5550 printf "%s\n" "$CC" >&6; }
5551 else
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 printf "%s\n" "no" >&6; }
5554 fi
5555
5556
5557 fi
5558 fi
5559 if test -z "$CC"; then
5560 # Extract the first word of "cc", so it can be a program name with args.
5561 set dummy cc; ac_word=$2
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 printf %s "checking for $ac_word... " >&6; }
5564 if test ${ac_cv_prog_CC+y}
5565 then :
5566 printf %s "(cached) " >&6
5567 else $as_nop
5568 if test -n "$CC"; then
5569 ac_cv_prog_CC="$CC" # Let the user override the test.
5570 else
5571 ac_prog_rejected=no
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575 IFS=$as_save_IFS
5576 case $as_dir in #(((
5577 '') as_dir=./ ;;
5578 */) ;;
5579 *) as_dir=$as_dir/ ;;
5580 esac
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5583 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5584 ac_prog_rejected=yes
5585 continue
5586 fi
5587 ac_cv_prog_CC="cc"
5588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 if test $ac_prog_rejected = yes; then
5596 # We found a bogon in the path, so make sure we never use it.
5597 set dummy $ac_cv_prog_CC
5598 shift
5599 if test $# != 0; then
5600 # We chose a different compiler from the bogus one.
5601 # However, it has the same basename, so the bogon will be chosen
5602 # first if we set CC to just the basename; use the full file name.
5603 shift
5604 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5605 fi
5606 fi
5607 fi
5608 fi
5609 CC=$ac_cv_prog_CC
5610 if test -n "$CC"; then
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5612 printf "%s\n" "$CC" >&6; }
5613 else
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 printf "%s\n" "no" >&6; }
5616 fi
5617
5618
5619 fi
5620 if test -z "$CC"; then
5621 if test -n "$ac_tool_prefix"; then
5622 for ac_prog in cl.exe
5623 do
5624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627 printf %s "checking for $ac_word... " >&6; }
5628 if test ${ac_cv_prog_CC+y}
5629 then :
5630 printf %s "(cached) " >&6
5631 else $as_nop
5632 if test -n "$CC"; then
5633 ac_cv_prog_CC="$CC" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638 IFS=$as_save_IFS
5639 case $as_dir in #(((
5640 '') as_dir=./ ;;
5641 */) ;;
5642 *) as_dir=$as_dir/ ;;
5643 esac
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 CC=$ac_cv_prog_CC
5657 if test -n "$CC"; then
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5659 printf "%s\n" "$CC" >&6; }
5660 else
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 printf "%s\n" "no" >&6; }
5663 fi
5664
5665
5666 test -n "$CC" && break
5667 done
5668 fi
5669 if test -z "$CC"; then
5670 ac_ct_CC=$CC
5671 for ac_prog in cl.exe
5672 do
5673 # Extract the first word of "$ac_prog", so it can be a program name with args.
5674 set dummy $ac_prog; ac_word=$2
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 printf %s "checking for $ac_word... " >&6; }
5677 if test ${ac_cv_prog_ac_ct_CC+y}
5678 then :
5679 printf %s "(cached) " >&6
5680 else $as_nop
5681 if test -n "$ac_ct_CC"; then
5682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 case $as_dir in #(((
5689 '') as_dir=./ ;;
5690 */) ;;
5691 *) as_dir=$as_dir/ ;;
5692 esac
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5695 ac_cv_prog_ac_ct_CC="$ac_prog"
5696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5697 break 2
5698 fi
5699 done
5700 done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5706 if test -n "$ac_ct_CC"; then
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5708 printf "%s\n" "$ac_ct_CC" >&6; }
5709 else
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 printf "%s\n" "no" >&6; }
5712 fi
5713
5714
5715 test -n "$ac_ct_CC" && break
5716 done
5717
5718 if test "x$ac_ct_CC" = x; then
5719 CC=""
5720 else
5721 case $cross_compiling:$ac_tool_warned in
5722 yes:)
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5725 ac_tool_warned=yes ;;
5726 esac
5727 CC=$ac_ct_CC
5728 fi
5729 fi
5730
5731 fi
5732 if test -z "$CC"; then
5733 if test -n "$ac_tool_prefix"; then
5734 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5735 set dummy ${ac_tool_prefix}clang; ac_word=$2
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 printf %s "checking for $ac_word... " >&6; }
5738 if test ${ac_cv_prog_CC+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else $as_nop
5742 if test -n "$CC"; then
5743 ac_cv_prog_CC="$CC" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748 IFS=$as_save_IFS
5749 case $as_dir in #(((
5750 '') as_dir=./ ;;
5751 */) ;;
5752 *) as_dir=$as_dir/ ;;
5753 esac
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_CC="${ac_tool_prefix}clang"
5757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760 done
5761 done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 CC=$ac_cv_prog_CC
5767 if test -n "$CC"; then
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5769 printf "%s\n" "$CC" >&6; }
5770 else
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 printf "%s\n" "no" >&6; }
5773 fi
5774
5775
5776 fi
5777 if test -z "$ac_cv_prog_CC"; then
5778 ac_ct_CC=$CC
5779 # Extract the first word of "clang", so it can be a program name with args.
5780 set dummy clang; ac_word=$2
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782 printf %s "checking for $ac_word... " >&6; }
5783 if test ${ac_cv_prog_ac_ct_CC+y}
5784 then :
5785 printf %s "(cached) " >&6
5786 else $as_nop
5787 if test -n "$ac_ct_CC"; then
5788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793 IFS=$as_save_IFS
5794 case $as_dir in #(((
5795 '') as_dir=./ ;;
5796 */) ;;
5797 *) as_dir=$as_dir/ ;;
5798 esac
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_ac_ct_CC="clang"
5802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805 done
5806 done
5807 IFS=$as_save_IFS
5808
5809 fi
5810 fi
5811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5812 if test -n "$ac_ct_CC"; then
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5814 printf "%s\n" "$ac_ct_CC" >&6; }
5815 else
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 printf "%s\n" "no" >&6; }
5818 fi
5819
5820 if test "x$ac_ct_CC" = x; then
5821 CC=""
5822 else
5823 case $cross_compiling:$ac_tool_warned in
5824 yes:)
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5826 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5827 ac_tool_warned=yes ;;
5828 esac
5829 CC=$ac_ct_CC
5830 fi
5831 else
5832 CC="$ac_cv_prog_CC"
5833 fi
5834
5835 fi
5836
5837
5838 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5839 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5840 as_fn_error $? "no acceptable C compiler found in \$PATH
5841 See \`config.log' for more details" "$LINENO" 5; }
5842
5843 # Provide some information about the compiler.
5844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5845 set X $ac_compile
5846 ac_compiler=$2
5847 for ac_option in --version -v -V -qversion -version; do
5848 { { ac_try="$ac_compiler $ac_option >&5"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5854 printf "%s\n" "$ac_try_echo"; } >&5
5855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5856 ac_status=$?
5857 if test -s conftest.err; then
5858 sed '10a\
5859 ... rest of stderr output deleted ...
5860 10q' conftest.err >conftest.er1
5861 cat conftest.er1 >&5
5862 fi
5863 rm -f conftest.er1 conftest.err
5864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865 test $ac_status = 0; }
5866 done
5867
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5869 printf %s "checking whether the compiler supports GNU C... " >&6; }
5870 if test ${ac_cv_c_compiler_gnu+y}
5871 then :
5872 printf %s "(cached) " >&6
5873 else $as_nop
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876
5877 int
5878 main (void)
5879 {
5880 #ifndef __GNUC__
5881 choke me
5882 #endif
5883
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 if ac_fn_c_try_compile "$LINENO"
5889 then :
5890 ac_compiler_gnu=yes
5891 else $as_nop
5892 ac_compiler_gnu=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5896
5897 fi
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5899 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901
5902 if test $ac_compiler_gnu = yes; then
5903 GCC=yes
5904 else
5905 GCC=
5906 fi
5907 ac_test_CFLAGS=${CFLAGS+y}
5908 ac_save_CFLAGS=$CFLAGS
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5910 printf %s "checking whether $CC accepts -g... " >&6; }
5911 if test ${ac_cv_prog_cc_g+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else $as_nop
5915 ac_save_c_werror_flag=$ac_c_werror_flag
5916 ac_c_werror_flag=yes
5917 ac_cv_prog_cc_g=no
5918 CFLAGS="-g"
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921
5922 int
5923 main (void)
5924 {
5925
5926 ;
5927 return 0;
5928 }
5929 _ACEOF
5930 if ac_fn_c_try_compile "$LINENO"
5931 then :
5932 ac_cv_prog_cc_g=yes
5933 else $as_nop
5934 CFLAGS=""
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937
5938 int
5939 main (void)
5940 {
5941
5942 ;
5943 return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_compile "$LINENO"
5947 then :
5948
5949 else $as_nop
5950 ac_c_werror_flag=$ac_save_c_werror_flag
5951 CFLAGS="-g"
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954
5955 int
5956 main (void)
5957 {
5958
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_compile "$LINENO"
5964 then :
5965 ac_cv_prog_cc_g=yes
5966 fi
5967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5968 fi
5969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5970 fi
5971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5972 ac_c_werror_flag=$ac_save_c_werror_flag
5973 fi
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5975 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5976 if test $ac_test_CFLAGS; then
5977 CFLAGS=$ac_save_CFLAGS
5978 elif test $ac_cv_prog_cc_g = yes; then
5979 if test "$GCC" = yes; then
5980 CFLAGS="-g -O2"
5981 else
5982 CFLAGS="-g"
5983 fi
5984 else
5985 if test "$GCC" = yes; then
5986 CFLAGS="-O2"
5987 else
5988 CFLAGS=
5989 fi
5990 fi
5991 ac_prog_cc_stdc=no
5992 if test x$ac_prog_cc_stdc = xno
5993 then :
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5995 printf %s "checking for $CC option to enable C11 features... " >&6; }
5996 if test ${ac_cv_prog_cc_c11+y}
5997 then :
5998 printf %s "(cached) " >&6
5999 else $as_nop
6000 ac_cv_prog_cc_c11=no
6001 ac_save_CC=$CC
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 $ac_c_conftest_c11_program
6005 _ACEOF
6006 for ac_arg in '' -std=gnu11
6007 do
6008 CC="$ac_save_CC $ac_arg"
6009 if ac_fn_c_try_compile "$LINENO"
6010 then :
6011 ac_cv_prog_cc_c11=$ac_arg
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext conftest.beam
6014 test "x$ac_cv_prog_cc_c11" != "xno" && break
6015 done
6016 rm -f conftest.$ac_ext
6017 CC=$ac_save_CC
6018 fi
6019
6020 if test "x$ac_cv_prog_cc_c11" = xno
6021 then :
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6023 printf "%s\n" "unsupported" >&6; }
6024 else $as_nop
6025 if test "x$ac_cv_prog_cc_c11" = x
6026 then :
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6028 printf "%s\n" "none needed" >&6; }
6029 else $as_nop
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6031 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6032 CC="$CC $ac_cv_prog_cc_c11"
6033 fi
6034 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6035 ac_prog_cc_stdc=c11
6036 fi
6037 fi
6038 if test x$ac_prog_cc_stdc = xno
6039 then :
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6041 printf %s "checking for $CC option to enable C99 features... " >&6; }
6042 if test ${ac_cv_prog_cc_c99+y}
6043 then :
6044 printf %s "(cached) " >&6
6045 else $as_nop
6046 ac_cv_prog_cc_c99=no
6047 ac_save_CC=$CC
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 $ac_c_conftest_c99_program
6051 _ACEOF
6052 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6053 do
6054 CC="$ac_save_CC $ac_arg"
6055 if ac_fn_c_try_compile "$LINENO"
6056 then :
6057 ac_cv_prog_cc_c99=$ac_arg
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.beam
6060 test "x$ac_cv_prog_cc_c99" != "xno" && break
6061 done
6062 rm -f conftest.$ac_ext
6063 CC=$ac_save_CC
6064 fi
6065
6066 if test "x$ac_cv_prog_cc_c99" = xno
6067 then :
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6069 printf "%s\n" "unsupported" >&6; }
6070 else $as_nop
6071 if test "x$ac_cv_prog_cc_c99" = x
6072 then :
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6074 printf "%s\n" "none needed" >&6; }
6075 else $as_nop
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6077 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6078 CC="$CC $ac_cv_prog_cc_c99"
6079 fi
6080 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6081 ac_prog_cc_stdc=c99
6082 fi
6083 fi
6084 if test x$ac_prog_cc_stdc = xno
6085 then :
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6087 printf %s "checking for $CC option to enable C89 features... " >&6; }
6088 if test ${ac_cv_prog_cc_c89+y}
6089 then :
6090 printf %s "(cached) " >&6
6091 else $as_nop
6092 ac_cv_prog_cc_c89=no
6093 ac_save_CC=$CC
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 $ac_c_conftest_c89_program
6097 _ACEOF
6098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6099 do
6100 CC="$ac_save_CC $ac_arg"
6101 if ac_fn_c_try_compile "$LINENO"
6102 then :
6103 ac_cv_prog_cc_c89=$ac_arg
6104 fi
6105 rm -f core conftest.err conftest.$ac_objext conftest.beam
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6107 done
6108 rm -f conftest.$ac_ext
6109 CC=$ac_save_CC
6110 fi
6111
6112 if test "x$ac_cv_prog_cc_c89" = xno
6113 then :
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6115 printf "%s\n" "unsupported" >&6; }
6116 else $as_nop
6117 if test "x$ac_cv_prog_cc_c89" = x
6118 then :
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6120 printf "%s\n" "none needed" >&6; }
6121 else $as_nop
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6123 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6124 CC="$CC $ac_cv_prog_cc_c89"
6125 fi
6126 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6127 ac_prog_cc_stdc=c89
6128 fi
6129 fi
6130
6131 ac_ext=c
6132 ac_cpp='$CPP $CPPFLAGS'
6133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136
6137
6138 ac_ext=c
6139 ac_cpp='$CPP $CPPFLAGS'
6140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6144 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6145 if test ${am_cv_prog_cc_c_o+y}
6146 then :
6147 printf %s "(cached) " >&6
6148 else $as_nop
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151
6152 int
6153 main (void)
6154 {
6155
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 # Make sure it works both with $CC and with simple cc.
6161 # Following AC_PROG_CC_C_O, we do the test twice because some
6162 # compilers refuse to overwrite an existing .o file with -o,
6163 # though they will create one.
6164 am_cv_prog_cc_c_o=yes
6165 for am_i in 1 2; do
6166 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6167 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } \
6171 && test -f conftest2.$ac_objext; then
6172 : OK
6173 else
6174 am_cv_prog_cc_c_o=no
6175 break
6176 fi
6177 done
6178 rm -f core conftest*
6179 unset am_i
6180 fi
6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6182 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6183 if test "$am_cv_prog_cc_c_o" != yes; then
6184 # Losing compiler, so override with the script.
6185 # FIXME: It is wrong to rewrite CC.
6186 # But if we don't then we get into trouble of one sort or another.
6187 # A longer-term fix would be to have automake use am__CC in this case,
6188 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6189 CC="$am_aux_dir/compile $CC"
6190 fi
6191 ac_ext=c
6192 ac_cpp='$CPP $CPPFLAGS'
6193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196
6197
6198 depcc="$CC" am_compiler_list=
6199
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6201 printf %s "checking dependency style of $depcc... " >&6; }
6202 if test ${am_cv_CC_dependencies_compiler_type+y}
6203 then :
6204 printf %s "(cached) " >&6
6205 else $as_nop
6206 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6207 # We make a subdir and do the tests there. Otherwise we can end up
6208 # making bogus files that we don't know about and never remove. For
6209 # instance it was reported that on HP-UX the gcc test will end up
6210 # making a dummy file named 'D' -- because '-MD' means "put the output
6211 # in D".
6212 rm -rf conftest.dir
6213 mkdir conftest.dir
6214 # Copy depcomp to subdir because otherwise we won't find it if we're
6215 # using a relative directory.
6216 cp "$am_depcomp" conftest.dir
6217 cd conftest.dir
6218 # We will build objects and dependencies in a subdirectory because
6219 # it helps to detect inapplicable dependency modes. For instance
6220 # both Tru64's cc and ICC support -MD to output dependencies as a
6221 # side effect of compilation, but ICC will put the dependencies in
6222 # the current directory while Tru64 will put them in the object
6223 # directory.
6224 mkdir sub
6225
6226 am_cv_CC_dependencies_compiler_type=none
6227 if test "$am_compiler_list" = ""; then
6228 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6229 fi
6230 am__universal=false
6231 case " $depcc " in #(
6232 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6233 esac
6234
6235 for depmode in $am_compiler_list; do
6236 # Setup a source with many dependencies, because some compilers
6237 # like to wrap large dependency lists on column 80 (with \), and
6238 # we should not choose a depcomp mode which is confused by this.
6239 #
6240 # We need to recreate these files for each test, as the compiler may
6241 # overwrite some of them when testing with obscure command lines.
6242 # This happens at least with the AIX C compiler.
6243 : > sub/conftest.c
6244 for i in 1 2 3 4 5 6; do
6245 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6246 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6247 # Solaris 10 /bin/sh.
6248 echo '/* dummy */' > sub/conftst$i.h
6249 done
6250 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6251
6252 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6253 # mode. It turns out that the SunPro C++ compiler does not properly
6254 # handle '-M -o', and we need to detect this. Also, some Intel
6255 # versions had trouble with output in subdirs.
6256 am__obj=sub/conftest.${OBJEXT-o}
6257 am__minus_obj="-o $am__obj"
6258 case $depmode in
6259 gcc)
6260 # This depmode causes a compiler race in universal mode.
6261 test "$am__universal" = false || continue
6262 ;;
6263 nosideeffect)
6264 # After this tag, mechanisms are not by side-effect, so they'll
6265 # only be used when explicitly requested.
6266 if test "x$enable_dependency_tracking" = xyes; then
6267 continue
6268 else
6269 break
6270 fi
6271 ;;
6272 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6273 # This compiler won't grok '-c -o', but also, the minuso test has
6274 # not run yet. These depmodes are late enough in the game, and
6275 # so weak that their functioning should not be impacted.
6276 am__obj=conftest.${OBJEXT-o}
6277 am__minus_obj=
6278 ;;
6279 none) break ;;
6280 esac
6281 if depmode=$depmode \
6282 source=sub/conftest.c object=$am__obj \
6283 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6284 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6285 >/dev/null 2>conftest.err &&
6286 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6287 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6288 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6289 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6290 # icc doesn't choke on unknown options, it will just issue warnings
6291 # or remarks (even with -Werror). So we grep stderr for any message
6292 # that says an option was ignored or not supported.
6293 # When given -MP, icc 7.0 and 7.1 complain thusly:
6294 # icc: Command line warning: ignoring option '-M'; no argument required
6295 # The diagnosis changed in icc 8.0:
6296 # icc: Command line remark: option '-MP' not supported
6297 if (grep 'ignoring option' conftest.err ||
6298 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6299 am_cv_CC_dependencies_compiler_type=$depmode
6300 break
6301 fi
6302 fi
6303 done
6304
6305 cd ..
6306 rm -rf conftest.dir
6307 else
6308 am_cv_CC_dependencies_compiler_type=none
6309 fi
6310
6311 fi
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6313 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6314 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6315
6316 if
6317 test "x$enable_dependency_tracking" != xno \
6318 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6319 am__fastdepCC_TRUE=
6320 am__fastdepCC_FALSE='#'
6321 else
6322 am__fastdepCC_TRUE='#'
6323 am__fastdepCC_FALSE=
6324 fi
6325
6326
6327
6328 if test "$cross_compiling" = no; then
6329 if test "x$ac_cv_prog_cc_c99" = "xno" || test "x$ac_cv_prog_cc_c99" = "x"; then
6330 # We might be on RHEL5 with a git checkout and so broken
6331 # autoconf. Check if CC is gcc and if it bails when given -std=gnu99.
6332 # If not, use that. Yuck.
6333 if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
6334 CC="$CC -std=gnu99"
6335 if test "$cross_compiling" = yes
6336 then :
6337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6338 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6339 as_fn_error $? "cannot run test program while cross compiling
6340 See \`config.log' for more details" "$LINENO" 5; }
6341 else $as_nop
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344
6345 int
6346 main (void)
6347 {
6348
6349 return 0;
6350
6351 ;
6352 return 0;
6353 }
6354 _ACEOF
6355 if ac_fn_c_try_run "$LINENO"
6356 then :
6357
6358 else $as_nop
6359 as_fn_error $? "Could not find a C99 compatible compiler" "$LINENO" 5
6360 fi
6361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6362 conftest.$ac_objext conftest.beam conftest.$ac_ext
6363 fi
6364
6365 else
6366 as_fn_error $? "Could not find a C99 compatible compiler" "$LINENO" 5
6367 fi
6368 fi
6369 fi
6370
6371 ac_ext=c
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6377 printf %s "checking how to run the C preprocessor... " >&6; }
6378 # On Suns, sometimes $CPP names a directory.
6379 if test -n "$CPP" && test -d "$CPP"; then
6380 CPP=
6381 fi
6382 if test -z "$CPP"; then
6383 if test ${ac_cv_prog_CPP+y}
6384 then :
6385 printf %s "(cached) " >&6
6386 else $as_nop
6387 # Double quotes because $CC needs to be expanded
6388 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6389 do
6390 ac_preproc_ok=false
6391 for ac_c_preproc_warn_flag in '' yes
6392 do
6393 # Use a header file that comes with gcc, so configuring glibc
6394 # with a fresh cross-compiler works.
6395 # On the NeXT, cc -E runs the code through the compiler's parser,
6396 # not just through cpp. "Syntax error" is here to catch this case.
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 #include <limits.h>
6400 Syntax error
6401 _ACEOF
6402 if ac_fn_c_try_cpp "$LINENO"
6403 then :
6404
6405 else $as_nop
6406 # Broken: fails on valid input.
6407 continue
6408 fi
6409 rm -f conftest.err conftest.i conftest.$ac_ext
6410
6411 # OK, works on sane cases. Now check whether nonexistent headers
6412 # can be detected and how.
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 #include <ac_nonexistent.h>
6416 _ACEOF
6417 if ac_fn_c_try_cpp "$LINENO"
6418 then :
6419 # Broken: success on invalid input.
6420 continue
6421 else $as_nop
6422 # Passes both tests.
6423 ac_preproc_ok=:
6424 break
6425 fi
6426 rm -f conftest.err conftest.i conftest.$ac_ext
6427
6428 done
6429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6430 rm -f conftest.i conftest.err conftest.$ac_ext
6431 if $ac_preproc_ok
6432 then :
6433 break
6434 fi
6435
6436 done
6437 ac_cv_prog_CPP=$CPP
6438
6439 fi
6440 CPP=$ac_cv_prog_CPP
6441 else
6442 ac_cv_prog_CPP=$CPP
6443 fi
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6445 printf "%s\n" "$CPP" >&6; }
6446 ac_preproc_ok=false
6447 for ac_c_preproc_warn_flag in '' yes
6448 do
6449 # Use a header file that comes with gcc, so configuring glibc
6450 # with a fresh cross-compiler works.
6451 # On the NeXT, cc -E runs the code through the compiler's parser,
6452 # not just through cpp. "Syntax error" is here to catch this case.
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455 #include <limits.h>
6456 Syntax error
6457 _ACEOF
6458 if ac_fn_c_try_cpp "$LINENO"
6459 then :
6460
6461 else $as_nop
6462 # Broken: fails on valid input.
6463 continue
6464 fi
6465 rm -f conftest.err conftest.i conftest.$ac_ext
6466
6467 # OK, works on sane cases. Now check whether nonexistent headers
6468 # can be detected and how.
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 #include <ac_nonexistent.h>
6472 _ACEOF
6473 if ac_fn_c_try_cpp "$LINENO"
6474 then :
6475 # Broken: success on invalid input.
6476 continue
6477 else $as_nop
6478 # Passes both tests.
6479 ac_preproc_ok=:
6480 break
6481 fi
6482 rm -f conftest.err conftest.i conftest.$ac_ext
6483
6484 done
6485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6486 rm -f conftest.i conftest.err conftest.$ac_ext
6487 if $ac_preproc_ok
6488 then :
6489
6490 else $as_nop
6491 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6492 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6493 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6494 See \`config.log' for more details" "$LINENO" 5; }
6495 fi
6496
6497 ac_ext=c
6498 ac_cpp='$CPP $CPPFLAGS'
6499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502
6503
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6505 printf %s "checking whether ln -s works... " >&6; }
6506 LN_S=$as_ln_s
6507 if test "$LN_S" = "ln -s"; then
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6509 printf "%s\n" "yes" >&6; }
6510 else
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6512 printf "%s\n" "no, using $LN_S" >&6; }
6513 fi
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6525 if test -n "$ac_tool_prefix"; then
6526 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 printf %s "checking for $ac_word... " >&6; }
6530 if test ${ac_cv_path_PKG_CONFIG+y}
6531 then :
6532 printf %s "(cached) " >&6
6533 else $as_nop
6534 case $PKG_CONFIG in
6535 [\\/]* | ?:[\\/]*)
6536 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6537 ;;
6538 *)
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542 IFS=$as_save_IFS
6543 case $as_dir in #(((
6544 '') as_dir=./ ;;
6545 */) ;;
6546 *) as_dir=$as_dir/ ;;
6547 esac
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6550 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558 ;;
6559 esac
6560 fi
6561 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6562 if test -n "$PKG_CONFIG"; then
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6564 printf "%s\n" "$PKG_CONFIG" >&6; }
6565 else
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 printf "%s\n" "no" >&6; }
6568 fi
6569
6570
6571 fi
6572 if test -z "$ac_cv_path_PKG_CONFIG"; then
6573 ac_pt_PKG_CONFIG=$PKG_CONFIG
6574 # Extract the first word of "pkg-config", so it can be a program name with args.
6575 set dummy pkg-config; ac_word=$2
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 printf %s "checking for $ac_word... " >&6; }
6578 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6579 then :
6580 printf %s "(cached) " >&6
6581 else $as_nop
6582 case $ac_pt_PKG_CONFIG in
6583 [\\/]* | ?:[\\/]*)
6584 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6585 ;;
6586 *)
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590 IFS=$as_save_IFS
6591 case $as_dir in #(((
6592 '') as_dir=./ ;;
6593 */) ;;
6594 *) as_dir=$as_dir/ ;;
6595 esac
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6598 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606 ;;
6607 esac
6608 fi
6609 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6610 if test -n "$ac_pt_PKG_CONFIG"; then
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6612 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6613 else
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 printf "%s\n" "no" >&6; }
6616 fi
6617
6618 if test "x$ac_pt_PKG_CONFIG" = x; then
6619 PKG_CONFIG=""
6620 else
6621 case $cross_compiling:$ac_tool_warned in
6622 yes:)
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625 ac_tool_warned=yes ;;
6626 esac
6627 PKG_CONFIG=$ac_pt_PKG_CONFIG
6628 fi
6629 else
6630 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6631 fi
6632
6633 fi
6634 if test -n "$PKG_CONFIG"; then
6635 _pkg_min_version=0.9.0
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6637 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6638 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6640 printf "%s\n" "yes" >&6; }
6641 else
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 printf "%s\n" "no" >&6; }
6644 PKG_CONFIG=""
6645 fi
6646 fi
6647 if test -z "$PKG_CONFIG"
6648 then :
6649
6650 as_fn_error $? "Could not find pkg-config" "$LINENO" 5
6651 fi
6652
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6654 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6655 set x ${MAKE-make}
6656 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6657 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6658 then :
6659 printf %s "(cached) " >&6
6660 else $as_nop
6661 cat >conftest.make <<\_ACEOF
6662 SHELL = /bin/sh
6663 all:
6664 @echo '@@@%%%=$(MAKE)=@@@%%%'
6665 _ACEOF
6666 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6667 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6668 *@@@%%%=?*=@@@%%%*)
6669 eval ac_cv_prog_make_${ac_make}_set=yes;;
6670 *)
6671 eval ac_cv_prog_make_${ac_make}_set=no;;
6672 esac
6673 rm -f conftest.make
6674 fi
6675 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6677 printf "%s\n" "yes" >&6; }
6678 SET_MAKE=
6679 else
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 printf "%s\n" "no" >&6; }
6682 SET_MAKE="MAKE=${MAKE-make}"
6683 fi
6684
6685
6686
6687
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6689 printf %s "checking whether NLS is requested... " >&6; }
6690 # Check whether --enable-nls was given.
6691 if test ${enable_nls+y}
6692 then :
6693 enableval=$enable_nls; USE_NLS=$enableval
6694 else $as_nop
6695 USE_NLS=yes
6696 fi
6697
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6699 printf "%s\n" "$USE_NLS" >&6; }
6700
6701
6702
6703
6704 for ac_prog in po4a
6705 do
6706 # Extract the first word of "$ac_prog", so it can be a program name with args.
6707 set dummy $ac_prog; ac_word=$2
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 printf %s "checking for $ac_word... " >&6; }
6710 if test ${ac_cv_prog_PO4A+y}
6711 then :
6712 printf %s "(cached) " >&6
6713 else $as_nop
6714 if test -n "$PO4A"; then
6715 ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720 IFS=$as_save_IFS
6721 case $as_dir in #(((
6722 '') as_dir=./ ;;
6723 */) ;;
6724 *) as_dir=$as_dir/ ;;
6725 esac
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_PO4A="$ac_prog"
6729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 PO4A=$ac_cv_prog_PO4A
6739 if test -n "$PO4A"; then
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
6741 printf "%s\n" "$PO4A" >&6; }
6742 else
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 printf "%s\n" "no" >&6; }
6745 fi
6746
6747
6748 test -n "$PO4A" && break
6749 done
6750
6751 if test "$USE_NLS" = "yes" && test -n "$PO4A"
6752 then :
6753
6754 USE_PO4A=yes
6755
6756 else $as_nop
6757
6758 USE_PO4A=no
6759
6760 fi
6761
6762
6763
6764 # Checks for header files.
6765
6766 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6767 if test "x$ac_cv_header_sys_mkdev_h" = xyes
6768 then :
6769
6770 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6771
6772 fi
6773
6774 if test $ac_cv_header_sys_mkdev_h = no; then
6775 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6776 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
6777 then :
6778
6779 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6780
6781 fi
6782
6783 fi
6784
6785 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
6786 if test "x$ac_cv_header_arpa_inet_h" = xyes
6787 then :
6788 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
6789
6790 fi
6791 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
6792 if test "x$ac_cv_header_fcntl_h" = xyes
6793 then :
6794 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
6795
6796 fi
6797 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
6798 if test "x$ac_cv_header_float_h" = xyes
6799 then :
6800 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
6801
6802 fi
6803 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
6804 if test "x$ac_cv_header_langinfo_h" = xyes
6805 then :
6806 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
6807
6808 fi
6809 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
6810 if test "x$ac_cv_header_libintl_h" = xyes
6811 then :
6812 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
6813
6814 fi
6815 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
6816 if test "x$ac_cv_header_limits_h" = xyes
6817 then :
6818 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
6819
6820 fi
6821 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
6822 if test "x$ac_cv_header_locale_h" = xyes
6823 then :
6824 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
6825
6826 fi
6827 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6828 if test "x$ac_cv_header_stdint_h" = xyes
6829 then :
6830 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
6831
6832 fi
6833 ac_fn_c_check_header_compile "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_stdio_ext_h" = xyes
6835 then :
6836 printf "%s\n" "#define HAVE_STDIO_EXT_H 1" >>confdefs.h
6837
6838 fi
6839 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6840 if test "x$ac_cv_header_stdlib_h" = xyes
6841 then :
6842 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
6843
6844 fi
6845 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6846 if test "x$ac_cv_header_string_h" = xyes
6847 then :
6848 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
6849
6850 fi
6851 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
6852 if test "x$ac_cv_header_sys_file_h" = xyes
6853 then :
6854 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
6855
6856 fi
6857 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
6858 if test "x$ac_cv_header_sys_ioctl_h" = xyes
6859 then :
6860 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
6861
6862 fi
6863 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
6864 if test "x$ac_cv_header_sys_param_h" = xyes
6865 then :
6866 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
6867
6868 fi
6869 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6870 if test "x$ac_cv_header_sys_time_h" = xyes
6871 then :
6872 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
6873
6874 fi
6875 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
6876 if test "x$ac_cv_header_termios_h" = xyes
6877 then :
6878 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
6879
6880 fi
6881 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6882 if test "x$ac_cv_header_unistd_h" = xyes
6883 then :
6884 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
6885
6886 fi
6887 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6888 if test "x$ac_cv_header_utmp_h" = xyes
6889 then :
6890 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
6891
6892 fi
6893 ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6894 if test "x$ac_cv_header_utmpx_h" = xyes
6895 then :
6896 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
6897
6898 fi
6899 ac_fn_c_check_header_compile "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
6900 if test "x$ac_cv_header_values_h" = xyes
6901 then :
6902 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
6903
6904 fi
6905 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6906 if test "x$ac_cv_header_wchar_h" = xyes
6907 then :
6908 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
6909
6910 fi
6911 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
6912 if test "x$ac_cv_header_wctype_h" = xyes
6913 then :
6914 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
6915
6916 fi
6917
6918
6919 # Checks for typedefs, structures, and compiler characteristics.
6920 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6921 if test "x$ac_cv_type__Bool" = xyes
6922 then :
6923
6924 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
6925
6926
6927 fi
6928
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6930 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
6931 if test ${ac_cv_header_stdbool_h+y}
6932 then :
6933 printf %s "(cached) " >&6
6934 else $as_nop
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 #include <stdbool.h>
6938
6939 #ifndef __bool_true_false_are_defined
6940 #error "__bool_true_false_are_defined is not defined"
6941 #endif
6942 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
6943
6944 /* Regardless of whether this is C++ or "_Bool" is a
6945 valid type name, "true" and "false" should be usable
6946 in #if expressions and integer constant expressions,
6947 and "bool" should be a valid type name. */
6948
6949 #if !true
6950 #error "'true' is not true"
6951 #endif
6952 #if true != 1
6953 #error "'true' is not equal to 1"
6954 #endif
6955 char b[true == 1 ? 1 : -1];
6956 char c[true];
6957
6958 #if false
6959 #error "'false' is not false"
6960 #endif
6961 #if false != 0
6962 #error "'false' is not equal to 0"
6963 #endif
6964 char d[false == 0 ? 1 : -1];
6965
6966 enum { e = false, f = true, g = false * true, h = true * 256 };
6967
6968 char i[(bool) 0.5 == true ? 1 : -1];
6969 char j[(bool) 0.0 == false ? 1 : -1];
6970 char k[sizeof (bool) > 0 ? 1 : -1];
6971
6972 struct sb { bool s: 1; bool t; } s;
6973 char l[sizeof s.t > 0 ? 1 : -1];
6974
6975 /* The following fails for
6976 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6977 bool m[h];
6978 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
6979 char o[-1 - (bool) 0 < 0 ? 1 : -1];
6980 /* Catch a bug in an HP-UX C compiler. See
6981 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6982 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6983 */
6984 bool p = true;
6985 bool *pp = &p;
6986
6987 /* C 1999 specifies that bool, true, and false are to be
6988 macros, but C++ 2011 and later overrule this. */
6989 #if __cplusplus < 201103
6990 #ifndef bool
6991 #error "bool is not defined"
6992 #endif
6993 #ifndef false
6994 #error "false is not defined"
6995 #endif
6996 #ifndef true
6997 #error "true is not defined"
6998 #endif
6999 #endif
7000
7001 /* If _Bool is available, repeat with it all the tests
7002 above that used bool. */
7003 #ifdef HAVE__BOOL
7004 struct sB { _Bool s: 1; _Bool t; } t;
7005
7006 char q[(_Bool) 0.5 == true ? 1 : -1];
7007 char r[(_Bool) 0.0 == false ? 1 : -1];
7008 char u[sizeof (_Bool) > 0 ? 1 : -1];
7009 char v[sizeof t.t > 0 ? 1 : -1];
7010
7011 _Bool w[h];
7012 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
7013 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
7014 _Bool z = true;
7015 _Bool *pz = &p;
7016 #endif
7017
7018 int
7019 main (void)
7020 {
7021
7022 bool ps = &s;
7023 *pp |= p;
7024 *pp |= ! p;
7025
7026 #ifdef HAVE__BOOL
7027 _Bool pt = &t;
7028 *pz |= z;
7029 *pz |= ! z;
7030 #endif
7031
7032 /* Refer to every declared value, so they cannot be
7033 discarded as unused. */
7034 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
7035 + !l + !m + !n + !o + !p + !pp + !ps
7036 #ifdef HAVE__BOOL
7037 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
7038 #endif
7039 );
7040
7041 ;
7042 return 0;
7043 }
7044 _ACEOF
7045 if ac_fn_c_try_compile "$LINENO"
7046 then :
7047 ac_cv_header_stdbool_h=yes
7048 else $as_nop
7049 ac_cv_header_stdbool_h=no
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7052 fi
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7054 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
7055
7056
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7058 printf %s "checking for grep that handles long lines and -e... " >&6; }
7059 if test ${ac_cv_path_GREP+y}
7060 then :
7061 printf %s "(cached) " >&6
7062 else $as_nop
7063 if test -z "$GREP"; then
7064 ac_path_GREP_found=false
7065 # Loop through the user's path and test for each of PROGNAME-LIST
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7068 do
7069 IFS=$as_save_IFS
7070 case $as_dir in #(((
7071 '') as_dir=./ ;;
7072 */) ;;
7073 *) as_dir=$as_dir/ ;;
7074 esac
7075 for ac_prog in grep ggrep
7076 do
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7079 as_fn_executable_p "$ac_path_GREP" || continue
7080 # Check for GNU ac_path_GREP and select it if it is found.
7081 # Check for GNU $ac_path_GREP
7082 case `"$ac_path_GREP" --version 2>&1` in
7083 *GNU*)
7084 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7085 *)
7086 ac_count=0
7087 printf %s 0123456789 >"conftest.in"
7088 while :
7089 do
7090 cat "conftest.in" "conftest.in" >"conftest.tmp"
7091 mv "conftest.tmp" "conftest.in"
7092 cp "conftest.in" "conftest.nl"
7093 printf "%s\n" 'GREP' >> "conftest.nl"
7094 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7096 as_fn_arith $ac_count + 1 && ac_count=$as_val
7097 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7098 # Best one so far, save it but keep looking for a better one
7099 ac_cv_path_GREP="$ac_path_GREP"
7100 ac_path_GREP_max=$ac_count
7101 fi
7102 # 10*(2^10) chars as input seems more than enough
7103 test $ac_count -gt 10 && break
7104 done
7105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7106 esac
7107
7108 $ac_path_GREP_found && break 3
7109 done
7110 done
7111 done
7112 IFS=$as_save_IFS
7113 if test -z "$ac_cv_path_GREP"; then
7114 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7115 fi
7116 else
7117 ac_cv_path_GREP=$GREP
7118 fi
7119
7120 fi
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7122 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7123 GREP="$ac_cv_path_GREP"
7124
7125
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7127 printf %s "checking for egrep... " >&6; }
7128 if test ${ac_cv_path_EGREP+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else $as_nop
7132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7133 then ac_cv_path_EGREP="$GREP -E"
7134 else
7135 if test -z "$EGREP"; then
7136 ac_path_EGREP_found=false
7137 # Loop through the user's path and test for each of PROGNAME-LIST
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7140 do
7141 IFS=$as_save_IFS
7142 case $as_dir in #(((
7143 '') as_dir=./ ;;
7144 */) ;;
7145 *) as_dir=$as_dir/ ;;
7146 esac
7147 for ac_prog in egrep
7148 do
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7151 as_fn_executable_p "$ac_path_EGREP" || continue
7152 # Check for GNU ac_path_EGREP and select it if it is found.
7153 # Check for GNU $ac_path_EGREP
7154 case `"$ac_path_EGREP" --version 2>&1` in
7155 *GNU*)
7156 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7157 *)
7158 ac_count=0
7159 printf %s 0123456789 >"conftest.in"
7160 while :
7161 do
7162 cat "conftest.in" "conftest.in" >"conftest.tmp"
7163 mv "conftest.tmp" "conftest.in"
7164 cp "conftest.in" "conftest.nl"
7165 printf "%s\n" 'EGREP' >> "conftest.nl"
7166 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7168 as_fn_arith $ac_count + 1 && ac_count=$as_val
7169 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7170 # Best one so far, save it but keep looking for a better one
7171 ac_cv_path_EGREP="$ac_path_EGREP"
7172 ac_path_EGREP_max=$ac_count
7173 fi
7174 # 10*(2^10) chars as input seems more than enough
7175 test $ac_count -gt 10 && break
7176 done
7177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7178 esac
7179
7180 $ac_path_EGREP_found && break 3
7181 done
7182 done
7183 done
7184 IFS=$as_save_IFS
7185 if test -z "$ac_cv_path_EGREP"; then
7186 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7187 fi
7188 else
7189 ac_cv_path_EGREP=$EGREP
7190 fi
7191
7192 fi
7193 fi
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7195 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7196 EGREP="$ac_cv_path_EGREP"
7197
7198
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7200 printf %s "checking for uid_t in sys/types.h... " >&6; }
7201 if test ${ac_cv_type_uid_t+y}
7202 then :
7203 printf %s "(cached) " >&6
7204 else $as_nop
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 #include <sys/types.h>
7208
7209 _ACEOF
7210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7211 $EGREP "uid_t" >/dev/null 2>&1
7212 then :
7213 ac_cv_type_uid_t=yes
7214 else $as_nop
7215 ac_cv_type_uid_t=no
7216 fi
7217 rm -rf conftest*
7218
7219 fi
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7221 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
7222 if test $ac_cv_type_uid_t = no; then
7223
7224 printf "%s\n" "#define uid_t int" >>confdefs.h
7225
7226
7227 printf "%s\n" "#define gid_t int" >>confdefs.h
7228
7229 fi
7230
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7232 printf %s "checking for inline... " >&6; }
7233 if test ${ac_cv_c_inline+y}
7234 then :
7235 printf %s "(cached) " >&6
7236 else $as_nop
7237 ac_cv_c_inline=no
7238 for ac_kw in inline __inline__ __inline; do
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 #ifndef __cplusplus
7242 typedef int foo_t;
7243 static $ac_kw foo_t static_foo (void) {return 0; }
7244 $ac_kw foo_t foo (void) {return 0; }
7245 #endif
7246
7247 _ACEOF
7248 if ac_fn_c_try_compile "$LINENO"
7249 then :
7250 ac_cv_c_inline=$ac_kw
7251 fi
7252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7253 test "$ac_cv_c_inline" != no && break
7254 done
7255
7256 fi
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7258 printf "%s\n" "$ac_cv_c_inline" >&6; }
7259
7260 case $ac_cv_c_inline in
7261 inline | yes) ;;
7262 *)
7263 case $ac_cv_c_inline in
7264 no) ac_val=;;
7265 *) ac_val=$ac_cv_c_inline;;
7266 esac
7267 cat >>confdefs.h <<_ACEOF
7268 #ifndef __cplusplus
7269 #define inline $ac_val
7270 #endif
7271 _ACEOF
7272 ;;
7273 esac
7274
7275 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7276 case $ac_cv_c_int32_t in #(
7277 no|yes) ;; #(
7278 *)
7279
7280 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
7281 ;;
7282 esac
7283
7284
7285 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
7286 "
7287 if test "x$ac_cv_type_pid_t" = xyes
7288 then :
7289
7290 else $as_nop
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293
7294 #if defined _WIN64 && !defined __CYGWIN__
7295 LLP64
7296 #endif
7297
7298 int
7299 main (void)
7300 {
7301
7302 ;
7303 return 0;
7304 }
7305
7306 _ACEOF
7307 if ac_fn_c_try_compile "$LINENO"
7308 then :
7309 ac_pid_type='int'
7310 else $as_nop
7311 ac_pid_type='__int64'
7312 fi
7313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7314
7315 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7316
7317
7318 fi
7319
7320
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7322 printf %s "checking for C/C++ restrict keyword... " >&6; }
7323 if test ${ac_cv_c_restrict+y}
7324 then :
7325 printf %s "(cached) " >&6
7326 else $as_nop
7327 ac_cv_c_restrict=no
7328 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
7329 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
7330 # Put 'restrict' last, because C++ lacks it.
7331 for ac_kw in __restrict__ __restrict _Restrict restrict; do
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 typedef int *int_ptr;
7335 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7336 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7337 int bar (int ip[$ac_kw]) { return ip[0]; }
7338
7339 int
7340 main (void)
7341 {
7342 int s[1];
7343 int *$ac_kw t = s;
7344 t[0] = 0;
7345 return foo (t) + bar (t);
7346
7347 ;
7348 return 0;
7349 }
7350 _ACEOF
7351 if ac_fn_c_try_compile "$LINENO"
7352 then :
7353 ac_cv_c_restrict=$ac_kw
7354 fi
7355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 test "$ac_cv_c_restrict" != no && break
7357 done
7358
7359 fi
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7361 printf "%s\n" "$ac_cv_c_restrict" >&6; }
7362
7363 case $ac_cv_c_restrict in
7364 restrict) ;;
7365 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
7366 ;;
7367 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
7368 ;;
7369 esac
7370
7371 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7372 if test "x$ac_cv_type_size_t" = xyes
7373 then :
7374
7375 else $as_nop
7376
7377 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7378
7379 fi
7380
7381 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7382 if test "x$ac_cv_type_ssize_t" = xyes
7383 then :
7384
7385 else $as_nop
7386
7387 printf "%s\n" "#define ssize_t int" >>confdefs.h
7388
7389 fi
7390
7391 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7392 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
7393 then :
7394
7395 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
7396
7397
7398 fi
7399
7400 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_int" "ac_cv_member_siginfo_t_si_int" "#include <signal.h>
7401 "
7402 if test "x$ac_cv_member_siginfo_t_si_int" = xyes
7403 then :
7404
7405 printf "%s\n" "#define HAVE_SIGINFO_T_SI_INT 1" >>confdefs.h
7406
7407
7408 fi
7409
7410
7411 if test "x$ac_cv_header_utmpx_h" = xyes
7412 then :
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
7414 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
7415 if test ${ac_cv_c_undeclared_builtin_options+y}
7416 then :
7417 printf %s "(cached) " >&6
7418 else $as_nop
7419 ac_save_CFLAGS=$CFLAGS
7420 ac_cv_c_undeclared_builtin_options='cannot detect'
7421 for ac_arg in '' -fno-builtin; do
7422 CFLAGS="$ac_save_CFLAGS $ac_arg"
7423 # This test program should *not* compile successfully.
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426
7427 int
7428 main (void)
7429 {
7430 (void) strchr;
7431 ;
7432 return 0;
7433 }
7434 _ACEOF
7435 if ac_fn_c_try_compile "$LINENO"
7436 then :
7437
7438 else $as_nop
7439 # This test program should compile successfully.
7440 # No library function is consistently available on
7441 # freestanding implementations, so test against a dummy
7442 # declaration. Include always-available headers on the
7443 # off chance that they somehow elicit warnings.
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #include <float.h>
7447 #include <limits.h>
7448 #include <stdarg.h>
7449 #include <stddef.h>
7450 extern void ac_decl (int, char *);
7451
7452 int
7453 main (void)
7454 {
7455 (void) ac_decl (0, (char *) 0);
7456 (void) ac_decl;
7457
7458 ;
7459 return 0;
7460 }
7461 _ACEOF
7462 if ac_fn_c_try_compile "$LINENO"
7463 then :
7464 if test x"$ac_arg" = x
7465 then :
7466 ac_cv_c_undeclared_builtin_options='none needed'
7467 else $as_nop
7468 ac_cv_c_undeclared_builtin_options=$ac_arg
7469 fi
7470 break
7471 fi
7472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7475 done
7476 CFLAGS=$ac_save_CFLAGS
7477
7478 fi
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
7480 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
7481 case $ac_cv_c_undeclared_builtin_options in #(
7482 'cannot detect') :
7483 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7484 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7485 as_fn_error $? "cannot make $CC report undeclared builtins
7486 See \`config.log' for more details" "$LINENO" 5; } ;; #(
7487 'none needed') :
7488 ac_c_undeclared_builtin_options='' ;; #(
7489 *) :
7490 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
7491 esac
7492
7493 ac_fn_check_decl "$LINENO" "__UT_HOSTSIZE" "ac_cv_have_decl___UT_HOSTSIZE" "#include <utmpx.h>
7494 " "$ac_c_undeclared_builtin_options" "CFLAGS"
7495 if test "x$ac_cv_have_decl___UT_HOSTSIZE" = xyes
7496 then :
7497 ac_have_decl=1
7498 else $as_nop
7499 ac_have_decl=0
7500 fi
7501 printf "%s\n" "#define HAVE_DECL___UT_HOSTSIZE $ac_have_decl" >>confdefs.h
7502 if test $ac_have_decl = 1
7503 then :
7504
7505 printf "%s\n" "#define HAVE_UT_HOSTSIZE_IN_UTMPX 1" >>confdefs.h
7506
7507 fi
7508
7509 fi
7510
7511 case `pwd` in
7512 *\ * | *\ *)
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7514 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7515 esac
7516
7517
7518
7519 macro_version='2.4.7'
7520 macro_revision='2.4.7'
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535 ltmain=$ac_aux_dir/ltmain.sh
7536
7537
7538
7539 # Make sure we can run config.sub.
7540 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7541 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7542
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7544 printf %s "checking build system type... " >&6; }
7545 if test ${ac_cv_build+y}
7546 then :
7547 printf %s "(cached) " >&6
7548 else $as_nop
7549 ac_build_alias=$build_alias
7550 test "x$ac_build_alias" = x &&
7551 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7552 test "x$ac_build_alias" = x &&
7553 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7554 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7555 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7556
7557 fi
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7559 printf "%s\n" "$ac_cv_build" >&6; }
7560 case $ac_cv_build in
7561 *-*-*) ;;
7562 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7563 esac
7564 build=$ac_cv_build
7565 ac_save_IFS=$IFS; IFS='-'
7566 set x $ac_cv_build
7567 shift
7568 build_cpu=$1
7569 build_vendor=$2
7570 shift; shift
7571 # Remember, the first character of IFS is used to create $*,
7572 # except with old shells:
7573 build_os=$*
7574 IFS=$ac_save_IFS
7575 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7576
7577
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7579 printf %s "checking host system type... " >&6; }
7580 if test ${ac_cv_host+y}
7581 then :
7582 printf %s "(cached) " >&6
7583 else $as_nop
7584 if test "x$host_alias" = x; then
7585 ac_cv_host=$ac_cv_build
7586 else
7587 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7588 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7589 fi
7590
7591 fi
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7593 printf "%s\n" "$ac_cv_host" >&6; }
7594 case $ac_cv_host in
7595 *-*-*) ;;
7596 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7597 esac
7598 host=$ac_cv_host
7599 ac_save_IFS=$IFS; IFS='-'
7600 set x $ac_cv_host
7601 shift
7602 host_cpu=$1
7603 host_vendor=$2
7604 shift; shift
7605 # Remember, the first character of IFS is used to create $*,
7606 # except with old shells:
7607 host_os=$*
7608 IFS=$ac_save_IFS
7609 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7610
7611
7612 # Backslashify metacharacters that are still active within
7613 # double-quoted strings.
7614 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7615
7616 # Same as above, but do not quote variable references.
7617 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7618
7619 # Sed substitution to delay expansion of an escaped shell variable in a
7620 # double_quote_subst'ed string.
7621 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7622
7623 # Sed substitution to delay expansion of an escaped single quote.
7624 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7625
7626 # Sed substitution to avoid accidental globbing in evaled expressions
7627 no_glob_subst='s/\*/\\\*/g'
7628
7629 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7630 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7631 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7632
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7634 printf %s "checking how to print strings... " >&6; }
7635 # Test print first, because it will be a builtin if present.
7636 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7637 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7638 ECHO='print -r --'
7639 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7640 ECHO='printf %s\n'
7641 else
7642 # Use this function as a fallback that always works.
7643 func_fallback_echo ()
7644 {
7645 eval 'cat <<_LTECHO_EOF
7646 $1
7647 _LTECHO_EOF'
7648 }
7649 ECHO='func_fallback_echo'
7650 fi
7651
7652 # func_echo_all arg...
7653 # Invoke $ECHO with all args, space-separated.
7654 func_echo_all ()
7655 {
7656 $ECHO ""
7657 }
7658
7659 case $ECHO in
7660 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7661 printf "%s\n" "printf" >&6; } ;;
7662 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7663 printf "%s\n" "print -r" >&6; } ;;
7664 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7665 printf "%s\n" "cat" >&6; } ;;
7666 esac
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7682 printf %s "checking for a sed that does not truncate output... " >&6; }
7683 if test ${ac_cv_path_SED+y}
7684 then :
7685 printf %s "(cached) " >&6
7686 else $as_nop
7687 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7688 for ac_i in 1 2 3 4 5 6 7; do
7689 ac_script="$ac_script$as_nl$ac_script"
7690 done
7691 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7692 { ac_script=; unset ac_script;}
7693 if test -z "$SED"; then
7694 ac_path_SED_found=false
7695 # Loop through the user's path and test for each of PROGNAME-LIST
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699 IFS=$as_save_IFS
7700 case $as_dir in #(((
7701 '') as_dir=./ ;;
7702 */) ;;
7703 *) as_dir=$as_dir/ ;;
7704 esac
7705 for ac_prog in sed gsed
7706 do
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7709 as_fn_executable_p "$ac_path_SED" || continue
7710 # Check for GNU ac_path_SED and select it if it is found.
7711 # Check for GNU $ac_path_SED
7712 case `"$ac_path_SED" --version 2>&1` in
7713 *GNU*)
7714 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7715 *)
7716 ac_count=0
7717 printf %s 0123456789 >"conftest.in"
7718 while :
7719 do
7720 cat "conftest.in" "conftest.in" >"conftest.tmp"
7721 mv "conftest.tmp" "conftest.in"
7722 cp "conftest.in" "conftest.nl"
7723 printf "%s\n" '' >> "conftest.nl"
7724 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7726 as_fn_arith $ac_count + 1 && ac_count=$as_val
7727 if test $ac_count -gt ${ac_path_SED_max-0}; then
7728 # Best one so far, save it but keep looking for a better one
7729 ac_cv_path_SED="$ac_path_SED"
7730 ac_path_SED_max=$ac_count
7731 fi
7732 # 10*(2^10) chars as input seems more than enough
7733 test $ac_count -gt 10 && break
7734 done
7735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7736 esac
7737
7738 $ac_path_SED_found && break 3
7739 done
7740 done
7741 done
7742 IFS=$as_save_IFS
7743 if test -z "$ac_cv_path_SED"; then
7744 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7745 fi
7746 else
7747 ac_cv_path_SED=$SED
7748 fi
7749
7750 fi
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7752 printf "%s\n" "$ac_cv_path_SED" >&6; }
7753 SED="$ac_cv_path_SED"
7754 rm -f conftest.sed
7755
7756 test -z "$SED" && SED=sed
7757 Xsed="$SED -e 1s/^X//"
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7770 printf %s "checking for fgrep... " >&6; }
7771 if test ${ac_cv_path_FGREP+y}
7772 then :
7773 printf %s "(cached) " >&6
7774 else $as_nop
7775 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7776 then ac_cv_path_FGREP="$GREP -F"
7777 else
7778 if test -z "$FGREP"; then
7779 ac_path_FGREP_found=false
7780 # Loop through the user's path and test for each of PROGNAME-LIST
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7783 do
7784 IFS=$as_save_IFS
7785 case $as_dir in #(((
7786 '') as_dir=./ ;;
7787 */) ;;
7788 *) as_dir=$as_dir/ ;;
7789 esac
7790 for ac_prog in fgrep
7791 do
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7794 as_fn_executable_p "$ac_path_FGREP" || continue
7795 # Check for GNU ac_path_FGREP and select it if it is found.
7796 # Check for GNU $ac_path_FGREP
7797 case `"$ac_path_FGREP" --version 2>&1` in
7798 *GNU*)
7799 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7800 *)
7801 ac_count=0
7802 printf %s 0123456789 >"conftest.in"
7803 while :
7804 do
7805 cat "conftest.in" "conftest.in" >"conftest.tmp"
7806 mv "conftest.tmp" "conftest.in"
7807 cp "conftest.in" "conftest.nl"
7808 printf "%s\n" 'FGREP' >> "conftest.nl"
7809 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7811 as_fn_arith $ac_count + 1 && ac_count=$as_val
7812 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7813 # Best one so far, save it but keep looking for a better one
7814 ac_cv_path_FGREP="$ac_path_FGREP"
7815 ac_path_FGREP_max=$ac_count
7816 fi
7817 # 10*(2^10) chars as input seems more than enough
7818 test $ac_count -gt 10 && break
7819 done
7820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7821 esac
7822
7823 $ac_path_FGREP_found && break 3
7824 done
7825 done
7826 done
7827 IFS=$as_save_IFS
7828 if test -z "$ac_cv_path_FGREP"; then
7829 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7830 fi
7831 else
7832 ac_cv_path_FGREP=$FGREP
7833 fi
7834
7835 fi
7836 fi
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7838 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7839 FGREP="$ac_cv_path_FGREP"
7840
7841
7842 test -z "$GREP" && GREP=grep
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862 # Check whether --with-gnu-ld was given.
7863 if test ${with_gnu_ld+y}
7864 then :
7865 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7866 else $as_nop
7867 with_gnu_ld=no
7868 fi
7869
7870 ac_prog=ld
7871 if test yes = "$GCC"; then
7872 # Check if gcc -print-prog-name=ld gives a path.
7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7874 printf %s "checking for ld used by $CC... " >&6; }
7875 case $host in
7876 *-*-mingw*)
7877 # gcc leaves a trailing carriage return, which upsets mingw
7878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7879 *)
7880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7881 esac
7882 case $ac_prog in
7883 # Accept absolute paths.
7884 [\\/]* | ?:[\\/]*)
7885 re_direlt='/[^/][^/]*/\.\./'
7886 # Canonicalize the pathname of ld
7887 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7888 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7889 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7890 done
7891 test -z "$LD" && LD=$ac_prog
7892 ;;
7893 "")
7894 # If it fails, then pretend we aren't using GCC.
7895 ac_prog=ld
7896 ;;
7897 *)
7898 # If it is relative, then search for the first ld in PATH.
7899 with_gnu_ld=unknown
7900 ;;
7901 esac
7902 elif test yes = "$with_gnu_ld"; then
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7904 printf %s "checking for GNU ld... " >&6; }
7905 else
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7907 printf %s "checking for non-GNU ld... " >&6; }
7908 fi
7909 if test ${lt_cv_path_LD+y}
7910 then :
7911 printf %s "(cached) " >&6
7912 else $as_nop
7913 if test -z "$LD"; then
7914 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7915 for ac_dir in $PATH; do
7916 IFS=$lt_save_ifs
7917 test -z "$ac_dir" && ac_dir=.
7918 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7919 lt_cv_path_LD=$ac_dir/$ac_prog
7920 # Check to see if the program is GNU ld. I'd rather use --version,
7921 # but apparently some variants of GNU ld only accept -v.
7922 # Break only if it was the GNU/non-GNU ld that we prefer.
7923 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7924 *GNU* | *'with BFD'*)
7925 test no != "$with_gnu_ld" && break
7926 ;;
7927 *)
7928 test yes != "$with_gnu_ld" && break
7929 ;;
7930 esac
7931 fi
7932 done
7933 IFS=$lt_save_ifs
7934 else
7935 lt_cv_path_LD=$LD # Let the user override the test with a path.
7936 fi
7937 fi
7938
7939 LD=$lt_cv_path_LD
7940 if test -n "$LD"; then
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7942 printf "%s\n" "$LD" >&6; }
7943 else
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 printf "%s\n" "no" >&6; }
7946 fi
7947 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7949 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7950 if test ${lt_cv_prog_gnu_ld+y}
7951 then :
7952 printf %s "(cached) " >&6
7953 else $as_nop
7954 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7955 case `$LD -v 2>&1 </dev/null` in
7956 *GNU* | *'with BFD'*)
7957 lt_cv_prog_gnu_ld=yes
7958 ;;
7959 *)
7960 lt_cv_prog_gnu_ld=no
7961 ;;
7962 esac
7963 fi
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7965 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7966 with_gnu_ld=$lt_cv_prog_gnu_ld
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7977 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7978 if test ${lt_cv_path_NM+y}
7979 then :
7980 printf %s "(cached) " >&6
7981 else $as_nop
7982 if test -n "$NM"; then
7983 # Let the user override the test.
7984 lt_cv_path_NM=$NM
7985 else
7986 lt_nm_to_check=${ac_tool_prefix}nm
7987 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7988 lt_nm_to_check="$lt_nm_to_check nm"
7989 fi
7990 for lt_tmp_nm in $lt_nm_to_check; do
7991 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7992 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7993 IFS=$lt_save_ifs
7994 test -z "$ac_dir" && ac_dir=.
7995 tmp_nm=$ac_dir/$lt_tmp_nm
7996 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7997 # Check to see if the nm accepts a BSD-compat flag.
7998 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7999 # nm: unknown option "B" ignored
8000 # Tru64's nm complains that /dev/null is an invalid object file
8001 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8002 case $build_os in
8003 mingw*) lt_bad_file=conftest.nm/nofile ;;
8004 *) lt_bad_file=/dev/null ;;
8005 esac
8006 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8007 *$lt_bad_file* | *'Invalid file or object type'*)
8008 lt_cv_path_NM="$tmp_nm -B"
8009 break 2
8010 ;;
8011 *)
8012 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8013 */dev/null*)
8014 lt_cv_path_NM="$tmp_nm -p"
8015 break 2
8016 ;;
8017 *)
8018 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8019 continue # so that we can try to find one that supports BSD flags
8020 ;;
8021 esac
8022 ;;
8023 esac
8024 fi
8025 done
8026 IFS=$lt_save_ifs
8027 done
8028 : ${lt_cv_path_NM=no}
8029 fi
8030 fi
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8032 printf "%s\n" "$lt_cv_path_NM" >&6; }
8033 if test no != "$lt_cv_path_NM"; then
8034 NM=$lt_cv_path_NM
8035 else
8036 # Didn't find any BSD compatible name lister, look for dumpbin.
8037 if test -n "$DUMPBIN"; then :
8038 # Let the user override the test.
8039 else
8040 if test -n "$ac_tool_prefix"; then
8041 for ac_prog in dumpbin "link -dump"
8042 do
8043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8046 printf %s "checking for $ac_word... " >&6; }
8047 if test ${ac_cv_prog_DUMPBIN+y}
8048 then :
8049 printf %s "(cached) " >&6
8050 else $as_nop
8051 if test -n "$DUMPBIN"; then
8052 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057 IFS=$as_save_IFS
8058 case $as_dir in #(((
8059 '') as_dir=./ ;;
8060 */) ;;
8061 *) as_dir=$as_dir/ ;;
8062 esac
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8065 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8069 done
8070 done
8071 IFS=$as_save_IFS
8072
8073 fi
8074 fi
8075 DUMPBIN=$ac_cv_prog_DUMPBIN
8076 if test -n "$DUMPBIN"; then
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8078 printf "%s\n" "$DUMPBIN" >&6; }
8079 else
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 printf "%s\n" "no" >&6; }
8082 fi
8083
8084
8085 test -n "$DUMPBIN" && break
8086 done
8087 fi
8088 if test -z "$DUMPBIN"; then
8089 ac_ct_DUMPBIN=$DUMPBIN
8090 for ac_prog in dumpbin "link -dump"
8091 do
8092 # Extract the first word of "$ac_prog", so it can be a program name with args.
8093 set dummy $ac_prog; ac_word=$2
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 printf %s "checking for $ac_word... " >&6; }
8096 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8097 then :
8098 printf %s "(cached) " >&6
8099 else $as_nop
8100 if test -n "$ac_ct_DUMPBIN"; then
8101 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106 IFS=$as_save_IFS
8107 case $as_dir in #(((
8108 '') as_dir=./ ;;
8109 */) ;;
8110 *) as_dir=$as_dir/ ;;
8111 esac
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118 done
8119 done
8120 IFS=$as_save_IFS
8121
8122 fi
8123 fi
8124 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8125 if test -n "$ac_ct_DUMPBIN"; then
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8127 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8128 else
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 printf "%s\n" "no" >&6; }
8131 fi
8132
8133
8134 test -n "$ac_ct_DUMPBIN" && break
8135 done
8136
8137 if test "x$ac_ct_DUMPBIN" = x; then
8138 DUMPBIN=":"
8139 else
8140 case $cross_compiling:$ac_tool_warned in
8141 yes:)
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8143 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8144 ac_tool_warned=yes ;;
8145 esac
8146 DUMPBIN=$ac_ct_DUMPBIN
8147 fi
8148 fi
8149
8150 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
8151 *COFF*)
8152 DUMPBIN="$DUMPBIN -symbols -headers"
8153 ;;
8154 *)
8155 DUMPBIN=:
8156 ;;
8157 esac
8158 fi
8159
8160 if test : != "$DUMPBIN"; then
8161 NM=$DUMPBIN
8162 fi
8163 fi
8164 test -z "$NM" && NM=nm
8165
8166
8167
8168
8169
8170
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8172 printf %s "checking the name lister ($NM) interface... " >&6; }
8173 if test ${lt_cv_nm_interface+y}
8174 then :
8175 printf %s "(cached) " >&6
8176 else $as_nop
8177 lt_cv_nm_interface="BSD nm"
8178 echo "int some_variable = 0;" > conftest.$ac_ext
8179 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8180 (eval "$ac_compile" 2>conftest.err)
8181 cat conftest.err >&5
8182 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8183 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8184 cat conftest.err >&5
8185 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8186 cat conftest.out >&5
8187 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8188 lt_cv_nm_interface="MS dumpbin"
8189 fi
8190 rm -f conftest*
8191 fi
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8193 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8194
8195 # find the maximum length of command line arguments
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8197 printf %s "checking the maximum length of command line arguments... " >&6; }
8198 if test ${lt_cv_sys_max_cmd_len+y}
8199 then :
8200 printf %s "(cached) " >&6
8201 else $as_nop
8202 i=0
8203 teststring=ABCD
8204
8205 case $build_os in
8206 msdosdjgpp*)
8207 # On DJGPP, this test can blow up pretty badly due to problems in libc
8208 # (any single argument exceeding 2000 bytes causes a buffer overrun
8209 # during glob expansion). Even if it were fixed, the result of this
8210 # check would be larger than it should be.
8211 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8212 ;;
8213
8214 gnu*)
8215 # Under GNU Hurd, this test is not required because there is
8216 # no limit to the length of command line arguments.
8217 # Libtool will interpret -1 as no limit whatsoever
8218 lt_cv_sys_max_cmd_len=-1;
8219 ;;
8220
8221 cygwin* | mingw* | cegcc*)
8222 # On Win9x/ME, this test blows up -- it succeeds, but takes
8223 # about 5 minutes as the teststring grows exponentially.
8224 # Worse, since 9x/ME are not pre-emptively multitasking,
8225 # you end up with a "frozen" computer, even though with patience
8226 # the test eventually succeeds (with a max line length of 256k).
8227 # Instead, let's just punt: use the minimum linelength reported by
8228 # all of the supported platforms: 8192 (on NT/2K/XP).
8229 lt_cv_sys_max_cmd_len=8192;
8230 ;;
8231
8232 mint*)
8233 # On MiNT this can take a long time and run out of memory.
8234 lt_cv_sys_max_cmd_len=8192;
8235 ;;
8236
8237 amigaos*)
8238 # On AmigaOS with pdksh, this test takes hours, literally.
8239 # So we just punt and use a minimum line length of 8192.
8240 lt_cv_sys_max_cmd_len=8192;
8241 ;;
8242
8243 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
8244 # This has been around since 386BSD, at least. Likely further.
8245 if test -x /sbin/sysctl; then
8246 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8247 elif test -x /usr/sbin/sysctl; then
8248 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8249 else
8250 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8251 fi
8252 # And add a safety zone
8253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8255 ;;
8256
8257 interix*)
8258 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8259 lt_cv_sys_max_cmd_len=196608
8260 ;;
8261
8262 os2*)
8263 # The test takes a long time on OS/2.
8264 lt_cv_sys_max_cmd_len=8192
8265 ;;
8266
8267 osf*)
8268 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8269 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8270 # nice to cause kernel panics so lets avoid the loop below.
8271 # First set a reasonable default.
8272 lt_cv_sys_max_cmd_len=16384
8273 #
8274 if test -x /sbin/sysconfig; then
8275 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8276 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8277 esac
8278 fi
8279 ;;
8280 sco3.2v5*)
8281 lt_cv_sys_max_cmd_len=102400
8282 ;;
8283 sysv5* | sco5v6* | sysv4.2uw2*)
8284 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8285 if test -n "$kargmax"; then
8286 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8287 else
8288 lt_cv_sys_max_cmd_len=32768
8289 fi
8290 ;;
8291 *)
8292 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8293 if test -n "$lt_cv_sys_max_cmd_len" && \
8294 test undefined != "$lt_cv_sys_max_cmd_len"; then
8295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8297 else
8298 # Make teststring a little bigger before we do anything with it.
8299 # a 1K string should be a reasonable start.
8300 for i in 1 2 3 4 5 6 7 8; do
8301 teststring=$teststring$teststring
8302 done
8303 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8304 # If test is not a shell built-in, we'll probably end up computing a
8305 # maximum length that is only half of the actual maximum length, but
8306 # we can't tell.
8307 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8308 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8309 test 17 != "$i" # 1/2 MB should be enough
8310 do
8311 i=`expr $i + 1`
8312 teststring=$teststring$teststring
8313 done
8314 # Only check the string length outside the loop.
8315 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8316 teststring=
8317 # Add a significant safety factor because C++ compilers can tack on
8318 # massive amounts of additional arguments before passing them to the
8319 # linker. It appears as though 1/2 is a usable value.
8320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8321 fi
8322 ;;
8323 esac
8324
8325 fi
8326
8327 if test -n "$lt_cv_sys_max_cmd_len"; then
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8329 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8330 else
8331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8332 printf "%s\n" "none" >&6; }
8333 fi
8334 max_cmd_len=$lt_cv_sys_max_cmd_len
8335
8336
8337
8338
8339
8340
8341 : ${CP="cp -f"}
8342 : ${MV="mv -f"}
8343 : ${RM="rm -f"}
8344
8345 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8346 lt_unset=unset
8347 else
8348 lt_unset=false
8349 fi
8350
8351
8352
8353
8354
8355 # test EBCDIC or ASCII
8356 case `echo X|tr X '\101'` in
8357 A) # ASCII based system
8358 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8359 lt_SP2NL='tr \040 \012'
8360 lt_NL2SP='tr \015\012 \040\040'
8361 ;;
8362 *) # EBCDIC based system
8363 lt_SP2NL='tr \100 \n'
8364 lt_NL2SP='tr \r\n \100\100'
8365 ;;
8366 esac
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8377 printf %s "checking how to convert $build file names to $host format... " >&6; }
8378 if test ${lt_cv_to_host_file_cmd+y}
8379 then :
8380 printf %s "(cached) " >&6
8381 else $as_nop
8382 case $host in
8383 *-*-mingw* )
8384 case $build in
8385 *-*-mingw* ) # actually msys
8386 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8387 ;;
8388 *-*-cygwin* )
8389 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8390 ;;
8391 * ) # otherwise, assume *nix
8392 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8393 ;;
8394 esac
8395 ;;
8396 *-*-cygwin* )
8397 case $build in
8398 *-*-mingw* ) # actually msys
8399 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8400 ;;
8401 *-*-cygwin* )
8402 lt_cv_to_host_file_cmd=func_convert_file_noop
8403 ;;
8404 * ) # otherwise, assume *nix
8405 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8406 ;;
8407 esac
8408 ;;
8409 * ) # unhandled hosts (and "normal" native builds)
8410 lt_cv_to_host_file_cmd=func_convert_file_noop
8411 ;;
8412 esac
8413
8414 fi
8415
8416 to_host_file_cmd=$lt_cv_to_host_file_cmd
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8418 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8419
8420
8421
8422
8423
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8425 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8426 if test ${lt_cv_to_tool_file_cmd+y}
8427 then :
8428 printf %s "(cached) " >&6
8429 else $as_nop
8430 #assume ordinary cross tools, or native build.
8431 lt_cv_to_tool_file_cmd=func_convert_file_noop
8432 case $host in
8433 *-*-mingw* )
8434 case $build in
8435 *-*-mingw* ) # actually msys
8436 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8437 ;;
8438 esac
8439 ;;
8440 esac
8441
8442 fi
8443
8444 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8446 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8447
8448
8449
8450
8451
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8453 printf %s "checking for $LD option to reload object files... " >&6; }
8454 if test ${lt_cv_ld_reload_flag+y}
8455 then :
8456 printf %s "(cached) " >&6
8457 else $as_nop
8458 lt_cv_ld_reload_flag='-r'
8459 fi
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8461 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8462 reload_flag=$lt_cv_ld_reload_flag
8463 case $reload_flag in
8464 "" | " "*) ;;
8465 *) reload_flag=" $reload_flag" ;;
8466 esac
8467 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8468 case $host_os in
8469 cygwin* | mingw* | pw32* | cegcc*)
8470 if test yes != "$GCC"; then
8471 reload_cmds=false
8472 fi
8473 ;;
8474 darwin*)
8475 if test yes = "$GCC"; then
8476 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8477 else
8478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8479 fi
8480 ;;
8481 esac
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491 if test -n "$ac_tool_prefix"; then
8492 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
8493 set dummy ${ac_tool_prefix}file; ac_word=$2
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 printf %s "checking for $ac_word... " >&6; }
8496 if test ${ac_cv_prog_FILECMD+y}
8497 then :
8498 printf %s "(cached) " >&6
8499 else $as_nop
8500 if test -n "$FILECMD"; then
8501 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8505 do
8506 IFS=$as_save_IFS
8507 case $as_dir in #(((
8508 '') as_dir=./ ;;
8509 */) ;;
8510 *) as_dir=$as_dir/ ;;
8511 esac
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
8515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518 done
8519 done
8520 IFS=$as_save_IFS
8521
8522 fi
8523 fi
8524 FILECMD=$ac_cv_prog_FILECMD
8525 if test -n "$FILECMD"; then
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8527 printf "%s\n" "$FILECMD" >&6; }
8528 else
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 printf "%s\n" "no" >&6; }
8531 fi
8532
8533
8534 fi
8535 if test -z "$ac_cv_prog_FILECMD"; then
8536 ac_ct_FILECMD=$FILECMD
8537 # Extract the first word of "file", so it can be a program name with args.
8538 set dummy file; ac_word=$2
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 printf %s "checking for $ac_word... " >&6; }
8541 if test ${ac_cv_prog_ac_ct_FILECMD+y}
8542 then :
8543 printf %s "(cached) " >&6
8544 else $as_nop
8545 if test -n "$ac_ct_FILECMD"; then
8546 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8550 do
8551 IFS=$as_save_IFS
8552 case $as_dir in #(((
8553 '') as_dir=./ ;;
8554 */) ;;
8555 *) as_dir=$as_dir/ ;;
8556 esac
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8559 ac_cv_prog_ac_ct_FILECMD="file"
8560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8561 break 2
8562 fi
8563 done
8564 done
8565 IFS=$as_save_IFS
8566
8567 fi
8568 fi
8569 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
8570 if test -n "$ac_ct_FILECMD"; then
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
8572 printf "%s\n" "$ac_ct_FILECMD" >&6; }
8573 else
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 printf "%s\n" "no" >&6; }
8576 fi
8577
8578 if test "x$ac_ct_FILECMD" = x; then
8579 FILECMD=":"
8580 else
8581 case $cross_compiling:$ac_tool_warned in
8582 yes:)
8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8585 ac_tool_warned=yes ;;
8586 esac
8587 FILECMD=$ac_ct_FILECMD
8588 fi
8589 else
8590 FILECMD="$ac_cv_prog_FILECMD"
8591 fi
8592
8593
8594
8595
8596
8597
8598
8599 if test -n "$ac_tool_prefix"; then
8600 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8601 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 printf %s "checking for $ac_word... " >&6; }
8604 if test ${ac_cv_prog_OBJDUMP+y}
8605 then :
8606 printf %s "(cached) " >&6
8607 else $as_nop
8608 if test -n "$OBJDUMP"; then
8609 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614 IFS=$as_save_IFS
8615 case $as_dir in #(((
8616 '') as_dir=./ ;;
8617 */) ;;
8618 *) as_dir=$as_dir/ ;;
8619 esac
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8622 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8624 break 2
8625 fi
8626 done
8627 done
8628 IFS=$as_save_IFS
8629
8630 fi
8631 fi
8632 OBJDUMP=$ac_cv_prog_OBJDUMP
8633 if test -n "$OBJDUMP"; then
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8635 printf "%s\n" "$OBJDUMP" >&6; }
8636 else
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 printf "%s\n" "no" >&6; }
8639 fi
8640
8641
8642 fi
8643 if test -z "$ac_cv_prog_OBJDUMP"; then
8644 ac_ct_OBJDUMP=$OBJDUMP
8645 # Extract the first word of "objdump", so it can be a program name with args.
8646 set dummy objdump; ac_word=$2
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 printf %s "checking for $ac_word... " >&6; }
8649 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8650 then :
8651 printf %s "(cached) " >&6
8652 else $as_nop
8653 if test -n "$ac_ct_OBJDUMP"; then
8654 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8655 else
8656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 for as_dir in $PATH
8658 do
8659 IFS=$as_save_IFS
8660 case $as_dir in #(((
8661 '') as_dir=./ ;;
8662 */) ;;
8663 *) as_dir=$as_dir/ ;;
8664 esac
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8667 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8669 break 2
8670 fi
8671 done
8672 done
8673 IFS=$as_save_IFS
8674
8675 fi
8676 fi
8677 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8678 if test -n "$ac_ct_OBJDUMP"; then
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8680 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8681 else
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 printf "%s\n" "no" >&6; }
8684 fi
8685
8686 if test "x$ac_ct_OBJDUMP" = x; then
8687 OBJDUMP="false"
8688 else
8689 case $cross_compiling:$ac_tool_warned in
8690 yes:)
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8692 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8693 ac_tool_warned=yes ;;
8694 esac
8695 OBJDUMP=$ac_ct_OBJDUMP
8696 fi
8697 else
8698 OBJDUMP="$ac_cv_prog_OBJDUMP"
8699 fi
8700
8701 test -z "$OBJDUMP" && OBJDUMP=objdump
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8712 printf %s "checking how to recognize dependent libraries... " >&6; }
8713 if test ${lt_cv_deplibs_check_method+y}
8714 then :
8715 printf %s "(cached) " >&6
8716 else $as_nop
8717 lt_cv_file_magic_cmd='$MAGIC_CMD'
8718 lt_cv_file_magic_test_file=
8719 lt_cv_deplibs_check_method='unknown'
8720 # Need to set the preceding variable on all platforms that support
8721 # interlibrary dependencies.
8722 # 'none' -- dependencies not supported.
8723 # 'unknown' -- same as none, but documents that we really don't know.
8724 # 'pass_all' -- all dependencies passed with no checks.
8725 # 'test_compile' -- check by making test program.
8726 # 'file_magic [[regex]]' -- check by looking for files in library path
8727 # that responds to the $file_magic_cmd with a given extended regex.
8728 # If you have 'file' or equivalent on your system and you're not sure
8729 # whether 'pass_all' will *always* work, you probably want this one.
8730
8731 case $host_os in
8732 aix[4-9]*)
8733 lt_cv_deplibs_check_method=pass_all
8734 ;;
8735
8736 beos*)
8737 lt_cv_deplibs_check_method=pass_all
8738 ;;
8739
8740 bsdi[45]*)
8741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8742 lt_cv_file_magic_cmd='$FILECMD -L'
8743 lt_cv_file_magic_test_file=/shlib/libc.so
8744 ;;
8745
8746 cygwin*)
8747 # func_win32_libid is a shell function defined in ltmain.sh
8748 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8749 lt_cv_file_magic_cmd='func_win32_libid'
8750 ;;
8751
8752 mingw* | pw32*)
8753 # Base MSYS/MinGW do not provide the 'file' command needed by
8754 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8755 # unless we find 'file', for example because we are cross-compiling.
8756 if ( file / ) >/dev/null 2>&1; then
8757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8758 lt_cv_file_magic_cmd='func_win32_libid'
8759 else
8760 # Keep this pattern in sync with the one in func_win32_libid.
8761 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8762 lt_cv_file_magic_cmd='$OBJDUMP -f'
8763 fi
8764 ;;
8765
8766 cegcc*)
8767 # use the weaker test based on 'objdump'. See mingw*.
8768 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8769 lt_cv_file_magic_cmd='$OBJDUMP -f'
8770 ;;
8771
8772 darwin* | rhapsody*)
8773 lt_cv_deplibs_check_method=pass_all
8774 ;;
8775
8776 freebsd* | dragonfly* | midnightbsd*)
8777 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8778 case $host_cpu in
8779 i*86 )
8780 # Not sure whether the presence of OpenBSD here was a mistake.
8781 # Let's accept both of them until this is cleared up.
8782 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8783 lt_cv_file_magic_cmd=$FILECMD
8784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8785 ;;
8786 esac
8787 else
8788 lt_cv_deplibs_check_method=pass_all
8789 fi
8790 ;;
8791
8792 haiku*)
8793 lt_cv_deplibs_check_method=pass_all
8794 ;;
8795
8796 hpux10.20* | hpux11*)
8797 lt_cv_file_magic_cmd=$FILECMD
8798 case $host_cpu in
8799 ia64*)
8800 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8801 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8802 ;;
8803 hppa*64*)
8804 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]'
8805 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8806 ;;
8807 *)
8808 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8809 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8810 ;;
8811 esac
8812 ;;
8813
8814 interix[3-9]*)
8815 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8817 ;;
8818
8819 irix5* | irix6* | nonstopux*)
8820 case $LD in
8821 *-32|*"-32 ") libmagic=32-bit;;
8822 *-n32|*"-n32 ") libmagic=N32;;
8823 *-64|*"-64 ") libmagic=64-bit;;
8824 *) libmagic=never-match;;
8825 esac
8826 lt_cv_deplibs_check_method=pass_all
8827 ;;
8828
8829 # This must be glibc/ELF.
8830 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8831 lt_cv_deplibs_check_method=pass_all
8832 ;;
8833
8834 netbsd* | netbsdelf*-gnu)
8835 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8837 else
8838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8839 fi
8840 ;;
8841
8842 newos6*)
8843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8844 lt_cv_file_magic_cmd=$FILECMD
8845 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8846 ;;
8847
8848 *nto* | *qnx*)
8849 lt_cv_deplibs_check_method=pass_all
8850 ;;
8851
8852 openbsd* | bitrig*)
8853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8855 else
8856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8857 fi
8858 ;;
8859
8860 osf3* | osf4* | osf5*)
8861 lt_cv_deplibs_check_method=pass_all
8862 ;;
8863
8864 rdos*)
8865 lt_cv_deplibs_check_method=pass_all
8866 ;;
8867
8868 solaris*)
8869 lt_cv_deplibs_check_method=pass_all
8870 ;;
8871
8872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8873 lt_cv_deplibs_check_method=pass_all
8874 ;;
8875
8876 sysv4 | sysv4.3*)
8877 case $host_vendor in
8878 motorola)
8879 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]'
8880 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8881 ;;
8882 ncr)
8883 lt_cv_deplibs_check_method=pass_all
8884 ;;
8885 sequent)
8886 lt_cv_file_magic_cmd='/bin/file'
8887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8888 ;;
8889 sni)
8890 lt_cv_file_magic_cmd='/bin/file'
8891 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8892 lt_cv_file_magic_test_file=/lib/libc.so
8893 ;;
8894 siemens)
8895 lt_cv_deplibs_check_method=pass_all
8896 ;;
8897 pc)
8898 lt_cv_deplibs_check_method=pass_all
8899 ;;
8900 esac
8901 ;;
8902
8903 tpf*)
8904 lt_cv_deplibs_check_method=pass_all
8905 ;;
8906 os2*)
8907 lt_cv_deplibs_check_method=pass_all
8908 ;;
8909 esac
8910
8911 fi
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8913 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8914
8915 file_magic_glob=
8916 want_nocaseglob=no
8917 if test "$build" = "$host"; then
8918 case $host_os in
8919 mingw* | pw32*)
8920 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8921 want_nocaseglob=yes
8922 else
8923 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8924 fi
8925 ;;
8926 esac
8927 fi
8928
8929 file_magic_cmd=$lt_cv_file_magic_cmd
8930 deplibs_check_method=$lt_cv_deplibs_check_method
8931 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954 if test -n "$ac_tool_prefix"; then
8955 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8956 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958 printf %s "checking for $ac_word... " >&6; }
8959 if test ${ac_cv_prog_DLLTOOL+y}
8960 then :
8961 printf %s "(cached) " >&6
8962 else $as_nop
8963 if test -n "$DLLTOOL"; then
8964 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8965 else
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 for as_dir in $PATH
8968 do
8969 IFS=$as_save_IFS
8970 case $as_dir in #(((
8971 '') as_dir=./ ;;
8972 */) ;;
8973 *) as_dir=$as_dir/ ;;
8974 esac
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8977 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8979 break 2
8980 fi
8981 done
8982 done
8983 IFS=$as_save_IFS
8984
8985 fi
8986 fi
8987 DLLTOOL=$ac_cv_prog_DLLTOOL
8988 if test -n "$DLLTOOL"; then
8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8990 printf "%s\n" "$DLLTOOL" >&6; }
8991 else
8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 printf "%s\n" "no" >&6; }
8994 fi
8995
8996
8997 fi
8998 if test -z "$ac_cv_prog_DLLTOOL"; then
8999 ac_ct_DLLTOOL=$DLLTOOL
9000 # Extract the first word of "dlltool", so it can be a program name with args.
9001 set dummy dlltool; ac_word=$2
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 printf %s "checking for $ac_word... " >&6; }
9004 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9005 then :
9006 printf %s "(cached) " >&6
9007 else $as_nop
9008 if test -n "$ac_ct_DLLTOOL"; then
9009 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9010 else
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 for as_dir in $PATH
9013 do
9014 IFS=$as_save_IFS
9015 case $as_dir in #(((
9016 '') as_dir=./ ;;
9017 */) ;;
9018 *) as_dir=$as_dir/ ;;
9019 esac
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9022 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9024 break 2
9025 fi
9026 done
9027 done
9028 IFS=$as_save_IFS
9029
9030 fi
9031 fi
9032 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9033 if test -n "$ac_ct_DLLTOOL"; then
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9035 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9036 else
9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 printf "%s\n" "no" >&6; }
9039 fi
9040
9041 if test "x$ac_ct_DLLTOOL" = x; then
9042 DLLTOOL="false"
9043 else
9044 case $cross_compiling:$ac_tool_warned in
9045 yes:)
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9047 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9048 ac_tool_warned=yes ;;
9049 esac
9050 DLLTOOL=$ac_ct_DLLTOOL
9051 fi
9052 else
9053 DLLTOOL="$ac_cv_prog_DLLTOOL"
9054 fi
9055
9056 test -z "$DLLTOOL" && DLLTOOL=dlltool
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9068 printf %s "checking how to associate runtime and link libraries... " >&6; }
9069 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9070 then :
9071 printf %s "(cached) " >&6
9072 else $as_nop
9073 lt_cv_sharedlib_from_linklib_cmd='unknown'
9074
9075 case $host_os in
9076 cygwin* | mingw* | pw32* | cegcc*)
9077 # two different shell functions defined in ltmain.sh;
9078 # decide which one to use based on capabilities of $DLLTOOL
9079 case `$DLLTOOL --help 2>&1` in
9080 *--identify-strict*)
9081 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9082 ;;
9083 *)
9084 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9085 ;;
9086 esac
9087 ;;
9088 *)
9089 # fallback: assume linklib IS sharedlib
9090 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9091 ;;
9092 esac
9093
9094 fi
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9096 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9097 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9098 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9099
9100
9101
9102
9103
9104
9105
9106 if test -n "$ac_tool_prefix"; then
9107 for ac_prog in ar
9108 do
9109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 printf %s "checking for $ac_word... " >&6; }
9113 if test ${ac_cv_prog_AR+y}
9114 then :
9115 printf %s "(cached) " >&6
9116 else $as_nop
9117 if test -n "$AR"; then
9118 ac_cv_prog_AR="$AR" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9122 do
9123 IFS=$as_save_IFS
9124 case $as_dir in #(((
9125 '') as_dir=./ ;;
9126 */) ;;
9127 *) as_dir=$as_dir/ ;;
9128 esac
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9131 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9133 break 2
9134 fi
9135 done
9136 done
9137 IFS=$as_save_IFS
9138
9139 fi
9140 fi
9141 AR=$ac_cv_prog_AR
9142 if test -n "$AR"; then
9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9144 printf "%s\n" "$AR" >&6; }
9145 else
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 printf "%s\n" "no" >&6; }
9148 fi
9149
9150
9151 test -n "$AR" && break
9152 done
9153 fi
9154 if test -z "$AR"; then
9155 ac_ct_AR=$AR
9156 for ac_prog in ar
9157 do
9158 # Extract the first word of "$ac_prog", so it can be a program name with args.
9159 set dummy $ac_prog; ac_word=$2
9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 printf %s "checking for $ac_word... " >&6; }
9162 if test ${ac_cv_prog_ac_ct_AR+y}
9163 then :
9164 printf %s "(cached) " >&6
9165 else $as_nop
9166 if test -n "$ac_ct_AR"; then
9167 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9171 do
9172 IFS=$as_save_IFS
9173 case $as_dir in #(((
9174 '') as_dir=./ ;;
9175 */) ;;
9176 *) as_dir=$as_dir/ ;;
9177 esac
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9180 ac_cv_prog_ac_ct_AR="$ac_prog"
9181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9182 break 2
9183 fi
9184 done
9185 done
9186 IFS=$as_save_IFS
9187
9188 fi
9189 fi
9190 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9191 if test -n "$ac_ct_AR"; then
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9193 printf "%s\n" "$ac_ct_AR" >&6; }
9194 else
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 printf "%s\n" "no" >&6; }
9197 fi
9198
9199
9200 test -n "$ac_ct_AR" && break
9201 done
9202
9203 if test "x$ac_ct_AR" = x; then
9204 AR="false"
9205 else
9206 case $cross_compiling:$ac_tool_warned in
9207 yes:)
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9210 ac_tool_warned=yes ;;
9211 esac
9212 AR=$ac_ct_AR
9213 fi
9214 fi
9215
9216 : ${AR=ar}
9217
9218
9219
9220
9221
9222
9223 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9224 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9225 # higher priority because thats what people were doing historically (setting
9226 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9227 # variable obsoleted/removed.
9228
9229 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9230 lt_ar_flags=$AR_FLAGS
9231
9232
9233
9234
9235
9236
9237 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9238 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9239
9240
9241
9242
9243
9244
9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9246 printf %s "checking for archiver @FILE support... " >&6; }
9247 if test ${lt_cv_ar_at_file+y}
9248 then :
9249 printf %s "(cached) " >&6
9250 else $as_nop
9251 lt_cv_ar_at_file=no
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254
9255 int
9256 main (void)
9257 {
9258
9259 ;
9260 return 0;
9261 }
9262 _ACEOF
9263 if ac_fn_c_try_compile "$LINENO"
9264 then :
9265 echo conftest.$ac_objext > conftest.lst
9266 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9268 (eval $lt_ar_try) 2>&5
9269 ac_status=$?
9270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9271 test $ac_status = 0; }
9272 if test 0 -eq "$ac_status"; then
9273 # Ensure the archiver fails upon bogus file names.
9274 rm -f conftest.$ac_objext libconftest.a
9275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9276 (eval $lt_ar_try) 2>&5
9277 ac_status=$?
9278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9279 test $ac_status = 0; }
9280 if test 0 -ne "$ac_status"; then
9281 lt_cv_ar_at_file=@
9282 fi
9283 fi
9284 rm -f conftest.* libconftest.a
9285
9286 fi
9287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9288
9289 fi
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9291 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9292
9293 if test no = "$lt_cv_ar_at_file"; then
9294 archiver_list_spec=
9295 else
9296 archiver_list_spec=$lt_cv_ar_at_file
9297 fi
9298
9299
9300
9301
9302
9303
9304
9305 if test -n "$ac_tool_prefix"; then
9306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9307 set dummy ${ac_tool_prefix}strip; ac_word=$2
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 printf %s "checking for $ac_word... " >&6; }
9310 if test ${ac_cv_prog_STRIP+y}
9311 then :
9312 printf %s "(cached) " >&6
9313 else $as_nop
9314 if test -n "$STRIP"; then
9315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9316 else
9317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9318 for as_dir in $PATH
9319 do
9320 IFS=$as_save_IFS
9321 case $as_dir in #(((
9322 '') as_dir=./ ;;
9323 */) ;;
9324 *) as_dir=$as_dir/ ;;
9325 esac
9326 for ac_exec_ext in '' $ac_executable_extensions; do
9327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9330 break 2
9331 fi
9332 done
9333 done
9334 IFS=$as_save_IFS
9335
9336 fi
9337 fi
9338 STRIP=$ac_cv_prog_STRIP
9339 if test -n "$STRIP"; then
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9341 printf "%s\n" "$STRIP" >&6; }
9342 else
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9344 printf "%s\n" "no" >&6; }
9345 fi
9346
9347
9348 fi
9349 if test -z "$ac_cv_prog_STRIP"; then
9350 ac_ct_STRIP=$STRIP
9351 # Extract the first word of "strip", so it can be a program name with args.
9352 set dummy strip; ac_word=$2
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9354 printf %s "checking for $ac_word... " >&6; }
9355 if test ${ac_cv_prog_ac_ct_STRIP+y}
9356 then :
9357 printf %s "(cached) " >&6
9358 else $as_nop
9359 if test -n "$ac_ct_STRIP"; then
9360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9361 else
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363 for as_dir in $PATH
9364 do
9365 IFS=$as_save_IFS
9366 case $as_dir in #(((
9367 '') as_dir=./ ;;
9368 */) ;;
9369 *) as_dir=$as_dir/ ;;
9370 esac
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9373 ac_cv_prog_ac_ct_STRIP="strip"
9374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9375 break 2
9376 fi
9377 done
9378 done
9379 IFS=$as_save_IFS
9380
9381 fi
9382 fi
9383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9384 if test -n "$ac_ct_STRIP"; then
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9386 printf "%s\n" "$ac_ct_STRIP" >&6; }
9387 else
9388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 printf "%s\n" "no" >&6; }
9390 fi
9391
9392 if test "x$ac_ct_STRIP" = x; then
9393 STRIP=":"
9394 else
9395 case $cross_compiling:$ac_tool_warned in
9396 yes:)
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9399 ac_tool_warned=yes ;;
9400 esac
9401 STRIP=$ac_ct_STRIP
9402 fi
9403 else
9404 STRIP="$ac_cv_prog_STRIP"
9405 fi
9406
9407 test -z "$STRIP" && STRIP=:
9408
9409
9410
9411
9412
9413
9414 if test -n "$ac_tool_prefix"; then
9415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418 printf %s "checking for $ac_word... " >&6; }
9419 if test ${ac_cv_prog_RANLIB+y}
9420 then :
9421 printf %s "(cached) " >&6
9422 else $as_nop
9423 if test -n "$RANLIB"; then
9424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9428 do
9429 IFS=$as_save_IFS
9430 case $as_dir in #(((
9431 '') as_dir=./ ;;
9432 */) ;;
9433 *) as_dir=$as_dir/ ;;
9434 esac
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9439 break 2
9440 fi
9441 done
9442 done
9443 IFS=$as_save_IFS
9444
9445 fi
9446 fi
9447 RANLIB=$ac_cv_prog_RANLIB
9448 if test -n "$RANLIB"; then
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9450 printf "%s\n" "$RANLIB" >&6; }
9451 else
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 printf "%s\n" "no" >&6; }
9454 fi
9455
9456
9457 fi
9458 if test -z "$ac_cv_prog_RANLIB"; then
9459 ac_ct_RANLIB=$RANLIB
9460 # Extract the first word of "ranlib", so it can be a program name with args.
9461 set dummy ranlib; ac_word=$2
9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 printf %s "checking for $ac_word... " >&6; }
9464 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9465 then :
9466 printf %s "(cached) " >&6
9467 else $as_nop
9468 if test -n "$ac_ct_RANLIB"; then
9469 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9470 else
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9473 do
9474 IFS=$as_save_IFS
9475 case $as_dir in #(((
9476 '') as_dir=./ ;;
9477 */) ;;
9478 *) as_dir=$as_dir/ ;;
9479 esac
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9482 ac_cv_prog_ac_ct_RANLIB="ranlib"
9483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9484 break 2
9485 fi
9486 done
9487 done
9488 IFS=$as_save_IFS
9489
9490 fi
9491 fi
9492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9493 if test -n "$ac_ct_RANLIB"; then
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9495 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9496 else
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9498 printf "%s\n" "no" >&6; }
9499 fi
9500
9501 if test "x$ac_ct_RANLIB" = x; then
9502 RANLIB=":"
9503 else
9504 case $cross_compiling:$ac_tool_warned in
9505 yes:)
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9507 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9508 ac_tool_warned=yes ;;
9509 esac
9510 RANLIB=$ac_ct_RANLIB
9511 fi
9512 else
9513 RANLIB="$ac_cv_prog_RANLIB"
9514 fi
9515
9516 test -z "$RANLIB" && RANLIB=:
9517
9518
9519
9520
9521
9522
9523 # Determine commands to create old-style static archives.
9524 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9525 old_postinstall_cmds='chmod 644 $oldlib'
9526 old_postuninstall_cmds=
9527
9528 if test -n "$RANLIB"; then
9529 case $host_os in
9530 bitrig* | openbsd*)
9531 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9532 ;;
9533 *)
9534 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9535 ;;
9536 esac
9537 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9538 fi
9539
9540 case $host_os in
9541 darwin*)
9542 lock_old_archive_extraction=yes ;;
9543 *)
9544 lock_old_archive_extraction=no ;;
9545 esac
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585 # If no C compiler was specified, use CC.
9586 LTCC=${LTCC-"$CC"}
9587
9588 # If no C compiler flags were specified, use CFLAGS.
9589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9590
9591 # Allow CC to be a program name with arguments.
9592 compiler=$CC
9593
9594
9595 # Check for command to grab the raw symbol name followed by C symbol from nm.
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9597 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9598 if test ${lt_cv_sys_global_symbol_pipe+y}
9599 then :
9600 printf %s "(cached) " >&6
9601 else $as_nop
9602
9603 # These are sane defaults that work on at least a few old systems.
9604 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9605
9606 # Character class describing NM global symbol codes.
9607 symcode='[BCDEGRST]'
9608
9609 # Regexp to match symbols that can be accessed directly from C.
9610 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9611
9612 # Define system-specific variables.
9613 case $host_os in
9614 aix*)
9615 symcode='[BCDT]'
9616 ;;
9617 cygwin* | mingw* | pw32* | cegcc*)
9618 symcode='[ABCDGISTW]'
9619 ;;
9620 hpux*)
9621 if test ia64 = "$host_cpu"; then
9622 symcode='[ABCDEGRST]'
9623 fi
9624 ;;
9625 irix* | nonstopux*)
9626 symcode='[BCDEGRST]'
9627 ;;
9628 osf*)
9629 symcode='[BCDEGQRST]'
9630 ;;
9631 solaris*)
9632 symcode='[BDRT]'
9633 ;;
9634 sco3.2v5*)
9635 symcode='[DT]'
9636 ;;
9637 sysv4.2uw2*)
9638 symcode='[DT]'
9639 ;;
9640 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9641 symcode='[ABDT]'
9642 ;;
9643 sysv4)
9644 symcode='[DFNSTU]'
9645 ;;
9646 esac
9647
9648 # If we're using GNU nm, then use its standard symbol codes.
9649 case `$NM -V 2>&1` in
9650 *GNU* | *'with BFD'*)
9651 symcode='[ABCDGIRSTW]' ;;
9652 esac
9653
9654 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9655 # Gets list of data symbols to import.
9656 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9657 # Adjust the below global symbol transforms to fixup imported variables.
9658 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9659 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9660 lt_c_name_lib_hook="\
9661 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9662 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9663 else
9664 # Disable hooks by default.
9665 lt_cv_sys_global_symbol_to_import=
9666 lt_cdecl_hook=
9667 lt_c_name_hook=
9668 lt_c_name_lib_hook=
9669 fi
9670
9671 # Transform an extracted symbol line into a proper C declaration.
9672 # Some systems (esp. on ia64) link data and code symbols differently,
9673 # so use this general approach.
9674 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9675 $lt_cdecl_hook\
9676 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9677 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9678
9679 # Transform an extracted symbol line into symbol name and symbol address
9680 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9681 $lt_c_name_hook\
9682 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9683 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9684
9685 # Transform an extracted symbol line into symbol name with lib prefix and
9686 # symbol address.
9687 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9688 $lt_c_name_lib_hook\
9689 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9690 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9691 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9692
9693 # Handle CRLF in mingw tool chain
9694 opt_cr=
9695 case $build_os in
9696 mingw*)
9697 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9698 ;;
9699 esac
9700
9701 # Try without a prefix underscore, then with it.
9702 for ac_symprfx in "" "_"; do
9703
9704 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9705 symxfrm="\\1 $ac_symprfx\\2 \\2"
9706
9707 # Write the raw and C identifiers.
9708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9709 # Fake it for dumpbin and say T for any non-static function,
9710 # D for any global variable and I for any imported variable.
9711 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9712 # which start with @ or ?.
9713 lt_cv_sys_global_symbol_pipe="$AWK '"\
9714 " {last_section=section; section=\$ 3};"\
9715 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9716 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9717 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9718 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9719 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9720 " \$ 0!~/External *\|/{next};"\
9721 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9722 " {if(hide[section]) next};"\
9723 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9724 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9725 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9726 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9727 " ' prfx=^$ac_symprfx"
9728 else
9729 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9730 fi
9731 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9732
9733 # Check to see that the pipe works correctly.
9734 pipe_works=no
9735
9736 rm -f conftest*
9737 cat > conftest.$ac_ext <<_LT_EOF
9738 #ifdef __cplusplus
9739 extern "C" {
9740 #endif
9741 char nm_test_var;
9742 void nm_test_func(void);
9743 void nm_test_func(void){}
9744 #ifdef __cplusplus
9745 }
9746 #endif
9747 int main(){nm_test_var='a';nm_test_func();return(0);}
9748 _LT_EOF
9749
9750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9751 (eval $ac_compile) 2>&5
9752 ac_status=$?
9753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9754 test $ac_status = 0; }; then
9755 # Now try to grab the symbols.
9756 nlist=conftest.nm
9757 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9758 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9759 # Try sorting and uniquifying the output.
9760 if sort "$nlist" | uniq > "$nlist"T; then
9761 mv -f "$nlist"T "$nlist"
9762 else
9763 rm -f "$nlist"T
9764 fi
9765
9766 # Make sure that we snagged all the symbols we need.
9767 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9768 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9769 cat <<_LT_EOF > conftest.$ac_ext
9770 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9771 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9772 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9773 relocations are performed -- see ld's documentation on pseudo-relocs. */
9774 # define LT_DLSYM_CONST
9775 #elif defined __osf__
9776 /* This system does not cope well with relocations in const data. */
9777 # define LT_DLSYM_CONST
9778 #else
9779 # define LT_DLSYM_CONST const
9780 #endif
9781
9782 #ifdef __cplusplus
9783 extern "C" {
9784 #endif
9785
9786 _LT_EOF
9787 # Now generate the symbol file.
9788 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9789
9790 cat <<_LT_EOF >> conftest.$ac_ext
9791
9792 /* The mapping between symbol names and symbols. */
9793 LT_DLSYM_CONST struct {
9794 const char *name;
9795 void *address;
9796 }
9797 lt__PROGRAM__LTX_preloaded_symbols[] =
9798 {
9799 { "@PROGRAM@", (void *) 0 },
9800 _LT_EOF
9801 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9802 cat <<\_LT_EOF >> conftest.$ac_ext
9803 {0, (void *) 0}
9804 };
9805
9806 /* This works around a problem in FreeBSD linker */
9807 #ifdef FREEBSD_WORKAROUND
9808 static const void *lt_preloaded_setup() {
9809 return lt__PROGRAM__LTX_preloaded_symbols;
9810 }
9811 #endif
9812
9813 #ifdef __cplusplus
9814 }
9815 #endif
9816 _LT_EOF
9817 # Now try linking the two files.
9818 mv conftest.$ac_objext conftstm.$ac_objext
9819 lt_globsym_save_LIBS=$LIBS
9820 lt_globsym_save_CFLAGS=$CFLAGS
9821 LIBS=conftstm.$ac_objext
9822 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9824 (eval $ac_link) 2>&5
9825 ac_status=$?
9826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9827 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9828 pipe_works=yes
9829 fi
9830 LIBS=$lt_globsym_save_LIBS
9831 CFLAGS=$lt_globsym_save_CFLAGS
9832 else
9833 echo "cannot find nm_test_func in $nlist" >&5
9834 fi
9835 else
9836 echo "cannot find nm_test_var in $nlist" >&5
9837 fi
9838 else
9839 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9840 fi
9841 else
9842 echo "$progname: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 fi
9845 rm -rf conftest* conftst*
9846
9847 # Do not use the global_symbol_pipe unless it works.
9848 if test yes = "$pipe_works"; then
9849 break
9850 else
9851 lt_cv_sys_global_symbol_pipe=
9852 fi
9853 done
9854
9855 fi
9856
9857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9858 lt_cv_sys_global_symbol_to_cdecl=
9859 fi
9860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9862 printf "%s\n" "failed" >&6; }
9863 else
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9865 printf "%s\n" "ok" >&6; }
9866 fi
9867
9868 # Response file support.
9869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9870 nm_file_list_spec='@'
9871 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9872 nm_file_list_spec='@'
9873 fi
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9912 printf %s "checking for sysroot... " >&6; }
9913
9914 # Check whether --with-sysroot was given.
9915 if test ${with_sysroot+y}
9916 then :
9917 withval=$with_sysroot;
9918 else $as_nop
9919 with_sysroot=no
9920 fi
9921
9922
9923 lt_sysroot=
9924 case $with_sysroot in #(
9925 yes)
9926 if test yes = "$GCC"; then
9927 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9928 fi
9929 ;; #(
9930 /*)
9931 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9932 ;; #(
9933 no|'')
9934 ;; #(
9935 *)
9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9937 printf "%s\n" "$with_sysroot" >&6; }
9938 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9939 ;;
9940 esac
9941
9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9943 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9944
9945
9946
9947
9948
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9950 printf %s "checking for a working dd... " >&6; }
9951 if test ${ac_cv_path_lt_DD+y}
9952 then :
9953 printf %s "(cached) " >&6
9954 else $as_nop
9955 printf 0123456789abcdef0123456789abcdef >conftest.i
9956 cat conftest.i conftest.i >conftest2.i
9957 : ${lt_DD:=$DD}
9958 if test -z "$lt_DD"; then
9959 ac_path_lt_DD_found=false
9960 # Loop through the user's path and test for each of PROGNAME-LIST
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9963 do
9964 IFS=$as_save_IFS
9965 case $as_dir in #(((
9966 '') as_dir=./ ;;
9967 */) ;;
9968 *) as_dir=$as_dir/ ;;
9969 esac
9970 for ac_prog in dd
9971 do
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9974 as_fn_executable_p "$ac_path_lt_DD" || continue
9975 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9976 cmp -s conftest.i conftest.out \
9977 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9978 fi
9979 $ac_path_lt_DD_found && break 3
9980 done
9981 done
9982 done
9983 IFS=$as_save_IFS
9984 if test -z "$ac_cv_path_lt_DD"; then
9985 :
9986 fi
9987 else
9988 ac_cv_path_lt_DD=$lt_DD
9989 fi
9990
9991 rm -f conftest.i conftest2.i conftest.out
9992 fi
9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9994 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9995
9996
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9998 printf %s "checking how to truncate binary pipes... " >&6; }
9999 if test ${lt_cv_truncate_bin+y}
10000 then :
10001 printf %s "(cached) " >&6
10002 else $as_nop
10003 printf 0123456789abcdef0123456789abcdef >conftest.i
10004 cat conftest.i conftest.i >conftest2.i
10005 lt_cv_truncate_bin=
10006 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10007 cmp -s conftest.i conftest.out \
10008 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10009 fi
10010 rm -f conftest.i conftest2.i conftest.out
10011 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10012 fi
10013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10014 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10015
10016
10017
10018
10019
10020
10021
10022 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10023 func_cc_basename ()
10024 {
10025 for cc_temp in $*""; do
10026 case $cc_temp in
10027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10029 \-*) ;;
10030 *) break;;
10031 esac
10032 done
10033 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10034 }
10035
10036 # Check whether --enable-libtool-lock was given.
10037 if test ${enable_libtool_lock+y}
10038 then :
10039 enableval=$enable_libtool_lock;
10040 fi
10041
10042 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10043
10044 # Some flags need to be propagated to the compiler or linker for good
10045 # libtool support.
10046 case $host in
10047 ia64-*-hpux*)
10048 # Find out what ABI is being produced by ac_compile, and set mode
10049 # options accordingly.
10050 echo 'int i;' > conftest.$ac_ext
10051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10052 (eval $ac_compile) 2>&5
10053 ac_status=$?
10054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10055 test $ac_status = 0; }; then
10056 case `$FILECMD conftest.$ac_objext` in
10057 *ELF-32*)
10058 HPUX_IA64_MODE=32
10059 ;;
10060 *ELF-64*)
10061 HPUX_IA64_MODE=64
10062 ;;
10063 esac
10064 fi
10065 rm -rf conftest*
10066 ;;
10067 *-*-irix6*)
10068 # Find out what ABI is being produced by ac_compile, and set linker
10069 # options accordingly.
10070 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10072 (eval $ac_compile) 2>&5
10073 ac_status=$?
10074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10075 test $ac_status = 0; }; then
10076 if test yes = "$lt_cv_prog_gnu_ld"; then
10077 case `$FILECMD conftest.$ac_objext` in
10078 *32-bit*)
10079 LD="${LD-ld} -melf32bsmip"
10080 ;;
10081 *N32*)
10082 LD="${LD-ld} -melf32bmipn32"
10083 ;;
10084 *64-bit*)
10085 LD="${LD-ld} -melf64bmip"
10086 ;;
10087 esac
10088 else
10089 case `$FILECMD conftest.$ac_objext` in
10090 *32-bit*)
10091 LD="${LD-ld} -32"
10092 ;;
10093 *N32*)
10094 LD="${LD-ld} -n32"
10095 ;;
10096 *64-bit*)
10097 LD="${LD-ld} -64"
10098 ;;
10099 esac
10100 fi
10101 fi
10102 rm -rf conftest*
10103 ;;
10104
10105 mips64*-*linux*)
10106 # Find out what ABI is being produced by ac_compile, and set linker
10107 # options accordingly.
10108 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10110 (eval $ac_compile) 2>&5
10111 ac_status=$?
10112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10113 test $ac_status = 0; }; then
10114 emul=elf
10115 case `$FILECMD conftest.$ac_objext` in
10116 *32-bit*)
10117 emul="${emul}32"
10118 ;;
10119 *64-bit*)
10120 emul="${emul}64"
10121 ;;
10122 esac
10123 case `$FILECMD conftest.$ac_objext` in
10124 *MSB*)
10125 emul="${emul}btsmip"
10126 ;;
10127 *LSB*)
10128 emul="${emul}ltsmip"
10129 ;;
10130 esac
10131 case `$FILECMD conftest.$ac_objext` in
10132 *N32*)
10133 emul="${emul}n32"
10134 ;;
10135 esac
10136 LD="${LD-ld} -m $emul"
10137 fi
10138 rm -rf conftest*
10139 ;;
10140
10141 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10142 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10143 # Find out what ABI is being produced by ac_compile, and set linker
10144 # options accordingly. Note that the listed cases only cover the
10145 # situations where additional linker options are needed (such as when
10146 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10147 # vice versa); the common cases where no linker options are needed do
10148 # not appear in the list.
10149 echo 'int i;' > conftest.$ac_ext
10150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10151 (eval $ac_compile) 2>&5
10152 ac_status=$?
10153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10154 test $ac_status = 0; }; then
10155 case `$FILECMD conftest.o` in
10156 *32-bit*)
10157 case $host in
10158 x86_64-*kfreebsd*-gnu)
10159 LD="${LD-ld} -m elf_i386_fbsd"
10160 ;;
10161 x86_64-*linux*)
10162 case `$FILECMD conftest.o` in
10163 *x86-64*)
10164 LD="${LD-ld} -m elf32_x86_64"
10165 ;;
10166 *)
10167 LD="${LD-ld} -m elf_i386"
10168 ;;
10169 esac
10170 ;;
10171 powerpc64le-*linux*)
10172 LD="${LD-ld} -m elf32lppclinux"
10173 ;;
10174 powerpc64-*linux*)
10175 LD="${LD-ld} -m elf32ppclinux"
10176 ;;
10177 s390x-*linux*)
10178 LD="${LD-ld} -m elf_s390"
10179 ;;
10180 sparc64-*linux*)
10181 LD="${LD-ld} -m elf32_sparc"
10182 ;;
10183 esac
10184 ;;
10185 *64-bit*)
10186 case $host in
10187 x86_64-*kfreebsd*-gnu)
10188 LD="${LD-ld} -m elf_x86_64_fbsd"
10189 ;;
10190 x86_64-*linux*)
10191 LD="${LD-ld} -m elf_x86_64"
10192 ;;
10193 powerpcle-*linux*)
10194 LD="${LD-ld} -m elf64lppc"
10195 ;;
10196 powerpc-*linux*)
10197 LD="${LD-ld} -m elf64ppc"
10198 ;;
10199 s390*-*linux*|s390*-*tpf*)
10200 LD="${LD-ld} -m elf64_s390"
10201 ;;
10202 sparc*-*linux*)
10203 LD="${LD-ld} -m elf64_sparc"
10204 ;;
10205 esac
10206 ;;
10207 esac
10208 fi
10209 rm -rf conftest*
10210 ;;
10211
10212 *-*-sco3.2v5*)
10213 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10214 SAVE_CFLAGS=$CFLAGS
10215 CFLAGS="$CFLAGS -belf"
10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10217 printf %s "checking whether the C compiler needs -belf... " >&6; }
10218 if test ${lt_cv_cc_needs_belf+y}
10219 then :
10220 printf %s "(cached) " >&6
10221 else $as_nop
10222 ac_ext=c
10223 ac_cpp='$CPP $CPPFLAGS'
10224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10227
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10230
10231 int
10232 main (void)
10233 {
10234
10235 ;
10236 return 0;
10237 }
10238 _ACEOF
10239 if ac_fn_c_try_link "$LINENO"
10240 then :
10241 lt_cv_cc_needs_belf=yes
10242 else $as_nop
10243 lt_cv_cc_needs_belf=no
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10246 conftest$ac_exeext conftest.$ac_ext
10247 ac_ext=c
10248 ac_cpp='$CPP $CPPFLAGS'
10249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10252
10253 fi
10254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10255 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10256 if test yes != "$lt_cv_cc_needs_belf"; then
10257 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10258 CFLAGS=$SAVE_CFLAGS
10259 fi
10260 ;;
10261 *-*solaris*)
10262 # Find out what ABI is being produced by ac_compile, and set linker
10263 # options accordingly.
10264 echo 'int i;' > conftest.$ac_ext
10265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10266 (eval $ac_compile) 2>&5
10267 ac_status=$?
10268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10269 test $ac_status = 0; }; then
10270 case `$FILECMD conftest.o` in
10271 *64-bit*)
10272 case $lt_cv_prog_gnu_ld in
10273 yes*)
10274 case $host in
10275 i?86-*-solaris*|x86_64-*-solaris*)
10276 LD="${LD-ld} -m elf_x86_64"
10277 ;;
10278 sparc*-*-solaris*)
10279 LD="${LD-ld} -m elf64_sparc"
10280 ;;
10281 esac
10282 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10283 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10284 LD=${LD-ld}_sol2
10285 fi
10286 ;;
10287 *)
10288 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10289 LD="${LD-ld} -64"
10290 fi
10291 ;;
10292 esac
10293 ;;
10294 esac
10295 fi
10296 rm -rf conftest*
10297 ;;
10298 esac
10299
10300 need_locks=$enable_libtool_lock
10301
10302 if test -n "$ac_tool_prefix"; then
10303 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10304 set dummy ${ac_tool_prefix}mt; ac_word=$2
10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 printf %s "checking for $ac_word... " >&6; }
10307 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10308 then :
10309 printf %s "(cached) " >&6
10310 else $as_nop
10311 if test -n "$MANIFEST_TOOL"; then
10312 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10313 else
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10316 do
10317 IFS=$as_save_IFS
10318 case $as_dir in #(((
10319 '') as_dir=./ ;;
10320 */) ;;
10321 *) as_dir=$as_dir/ ;;
10322 esac
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10325 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10327 break 2
10328 fi
10329 done
10330 done
10331 IFS=$as_save_IFS
10332
10333 fi
10334 fi
10335 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10336 if test -n "$MANIFEST_TOOL"; then
10337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10338 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10339 else
10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 printf "%s\n" "no" >&6; }
10342 fi
10343
10344
10345 fi
10346 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10347 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10348 # Extract the first word of "mt", so it can be a program name with args.
10349 set dummy mt; ac_word=$2
10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 printf %s "checking for $ac_word... " >&6; }
10352 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10353 then :
10354 printf %s "(cached) " >&6
10355 else $as_nop
10356 if test -n "$ac_ct_MANIFEST_TOOL"; then
10357 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10358 else
10359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360 for as_dir in $PATH
10361 do
10362 IFS=$as_save_IFS
10363 case $as_dir in #(((
10364 '') as_dir=./ ;;
10365 */) ;;
10366 *) as_dir=$as_dir/ ;;
10367 esac
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10370 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374 done
10375 done
10376 IFS=$as_save_IFS
10377
10378 fi
10379 fi
10380 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10381 if test -n "$ac_ct_MANIFEST_TOOL"; then
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10383 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10384 else
10385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 printf "%s\n" "no" >&6; }
10387 fi
10388
10389 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10390 MANIFEST_TOOL=":"
10391 else
10392 case $cross_compiling:$ac_tool_warned in
10393 yes:)
10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10395 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10396 ac_tool_warned=yes ;;
10397 esac
10398 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10399 fi
10400 else
10401 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10402 fi
10403
10404 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10406 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10407 if test ${lt_cv_path_mainfest_tool+y}
10408 then :
10409 printf %s "(cached) " >&6
10410 else $as_nop
10411 lt_cv_path_mainfest_tool=no
10412 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10413 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10414 cat conftest.err >&5
10415 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10416 lt_cv_path_mainfest_tool=yes
10417 fi
10418 rm -f conftest*
10419 fi
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10421 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10422 if test yes != "$lt_cv_path_mainfest_tool"; then
10423 MANIFEST_TOOL=:
10424 fi
10425
10426
10427
10428
10429
10430
10431 case $host_os in
10432 rhapsody* | darwin*)
10433 if test -n "$ac_tool_prefix"; then
10434 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10435 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437 printf %s "checking for $ac_word... " >&6; }
10438 if test ${ac_cv_prog_DSYMUTIL+y}
10439 then :
10440 printf %s "(cached) " >&6
10441 else $as_nop
10442 if test -n "$DSYMUTIL"; then
10443 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10444 else
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10447 do
10448 IFS=$as_save_IFS
10449 case $as_dir in #(((
10450 '') as_dir=./ ;;
10451 */) ;;
10452 *) as_dir=$as_dir/ ;;
10453 esac
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10456 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10458 break 2
10459 fi
10460 done
10461 done
10462 IFS=$as_save_IFS
10463
10464 fi
10465 fi
10466 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10467 if test -n "$DSYMUTIL"; then
10468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10469 printf "%s\n" "$DSYMUTIL" >&6; }
10470 else
10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 printf "%s\n" "no" >&6; }
10473 fi
10474
10475
10476 fi
10477 if test -z "$ac_cv_prog_DSYMUTIL"; then
10478 ac_ct_DSYMUTIL=$DSYMUTIL
10479 # Extract the first word of "dsymutil", so it can be a program name with args.
10480 set dummy dsymutil; ac_word=$2
10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482 printf %s "checking for $ac_word... " >&6; }
10483 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10484 then :
10485 printf %s "(cached) " >&6
10486 else $as_nop
10487 if test -n "$ac_ct_DSYMUTIL"; then
10488 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10489 else
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10492 do
10493 IFS=$as_save_IFS
10494 case $as_dir in #(((
10495 '') as_dir=./ ;;
10496 */) ;;
10497 *) as_dir=$as_dir/ ;;
10498 esac
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10501 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10503 break 2
10504 fi
10505 done
10506 done
10507 IFS=$as_save_IFS
10508
10509 fi
10510 fi
10511 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10512 if test -n "$ac_ct_DSYMUTIL"; then
10513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10514 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10515 else
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 printf "%s\n" "no" >&6; }
10518 fi
10519
10520 if test "x$ac_ct_DSYMUTIL" = x; then
10521 DSYMUTIL=":"
10522 else
10523 case $cross_compiling:$ac_tool_warned in
10524 yes:)
10525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10526 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10527 ac_tool_warned=yes ;;
10528 esac
10529 DSYMUTIL=$ac_ct_DSYMUTIL
10530 fi
10531 else
10532 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10533 fi
10534
10535 if test -n "$ac_tool_prefix"; then
10536 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10537 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 printf %s "checking for $ac_word... " >&6; }
10540 if test ${ac_cv_prog_NMEDIT+y}
10541 then :
10542 printf %s "(cached) " >&6
10543 else $as_nop
10544 if test -n "$NMEDIT"; then
10545 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10546 else
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10549 do
10550 IFS=$as_save_IFS
10551 case $as_dir in #(((
10552 '') as_dir=./ ;;
10553 */) ;;
10554 *) as_dir=$as_dir/ ;;
10555 esac
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10558 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10560 break 2
10561 fi
10562 done
10563 done
10564 IFS=$as_save_IFS
10565
10566 fi
10567 fi
10568 NMEDIT=$ac_cv_prog_NMEDIT
10569 if test -n "$NMEDIT"; then
10570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10571 printf "%s\n" "$NMEDIT" >&6; }
10572 else
10573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 printf "%s\n" "no" >&6; }
10575 fi
10576
10577
10578 fi
10579 if test -z "$ac_cv_prog_NMEDIT"; then
10580 ac_ct_NMEDIT=$NMEDIT
10581 # Extract the first word of "nmedit", so it can be a program name with args.
10582 set dummy nmedit; ac_word=$2
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584 printf %s "checking for $ac_word... " >&6; }
10585 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10586 then :
10587 printf %s "(cached) " >&6
10588 else $as_nop
10589 if test -n "$ac_ct_NMEDIT"; then
10590 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10591 else
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10594 do
10595 IFS=$as_save_IFS
10596 case $as_dir in #(((
10597 '') as_dir=./ ;;
10598 */) ;;
10599 *) as_dir=$as_dir/ ;;
10600 esac
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10603 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10605 break 2
10606 fi
10607 done
10608 done
10609 IFS=$as_save_IFS
10610
10611 fi
10612 fi
10613 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10614 if test -n "$ac_ct_NMEDIT"; then
10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10616 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10617 else
10618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 printf "%s\n" "no" >&6; }
10620 fi
10621
10622 if test "x$ac_ct_NMEDIT" = x; then
10623 NMEDIT=":"
10624 else
10625 case $cross_compiling:$ac_tool_warned in
10626 yes:)
10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10628 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10629 ac_tool_warned=yes ;;
10630 esac
10631 NMEDIT=$ac_ct_NMEDIT
10632 fi
10633 else
10634 NMEDIT="$ac_cv_prog_NMEDIT"
10635 fi
10636
10637 if test -n "$ac_tool_prefix"; then
10638 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10639 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641 printf %s "checking for $ac_word... " >&6; }
10642 if test ${ac_cv_prog_LIPO+y}
10643 then :
10644 printf %s "(cached) " >&6
10645 else $as_nop
10646 if test -n "$LIPO"; then
10647 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10648 else
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10651 do
10652 IFS=$as_save_IFS
10653 case $as_dir in #(((
10654 '') as_dir=./ ;;
10655 */) ;;
10656 *) as_dir=$as_dir/ ;;
10657 esac
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10660 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10662 break 2
10663 fi
10664 done
10665 done
10666 IFS=$as_save_IFS
10667
10668 fi
10669 fi
10670 LIPO=$ac_cv_prog_LIPO
10671 if test -n "$LIPO"; then
10672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10673 printf "%s\n" "$LIPO" >&6; }
10674 else
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 printf "%s\n" "no" >&6; }
10677 fi
10678
10679
10680 fi
10681 if test -z "$ac_cv_prog_LIPO"; then
10682 ac_ct_LIPO=$LIPO
10683 # Extract the first word of "lipo", so it can be a program name with args.
10684 set dummy lipo; ac_word=$2
10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10686 printf %s "checking for $ac_word... " >&6; }
10687 if test ${ac_cv_prog_ac_ct_LIPO+y}
10688 then :
10689 printf %s "(cached) " >&6
10690 else $as_nop
10691 if test -n "$ac_ct_LIPO"; then
10692 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10693 else
10694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10695 for as_dir in $PATH
10696 do
10697 IFS=$as_save_IFS
10698 case $as_dir in #(((
10699 '') as_dir=./ ;;
10700 */) ;;
10701 *) as_dir=$as_dir/ ;;
10702 esac
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10705 ac_cv_prog_ac_ct_LIPO="lipo"
10706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10707 break 2
10708 fi
10709 done
10710 done
10711 IFS=$as_save_IFS
10712
10713 fi
10714 fi
10715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10716 if test -n "$ac_ct_LIPO"; then
10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10718 printf "%s\n" "$ac_ct_LIPO" >&6; }
10719 else
10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 printf "%s\n" "no" >&6; }
10722 fi
10723
10724 if test "x$ac_ct_LIPO" = x; then
10725 LIPO=":"
10726 else
10727 case $cross_compiling:$ac_tool_warned in
10728 yes:)
10729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10730 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10731 ac_tool_warned=yes ;;
10732 esac
10733 LIPO=$ac_ct_LIPO
10734 fi
10735 else
10736 LIPO="$ac_cv_prog_LIPO"
10737 fi
10738
10739 if test -n "$ac_tool_prefix"; then
10740 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10741 set dummy ${ac_tool_prefix}otool; ac_word=$2
10742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743 printf %s "checking for $ac_word... " >&6; }
10744 if test ${ac_cv_prog_OTOOL+y}
10745 then :
10746 printf %s "(cached) " >&6
10747 else $as_nop
10748 if test -n "$OTOOL"; then
10749 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10750 else
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10753 do
10754 IFS=$as_save_IFS
10755 case $as_dir in #(((
10756 '') as_dir=./ ;;
10757 */) ;;
10758 *) as_dir=$as_dir/ ;;
10759 esac
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10762 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10764 break 2
10765 fi
10766 done
10767 done
10768 IFS=$as_save_IFS
10769
10770 fi
10771 fi
10772 OTOOL=$ac_cv_prog_OTOOL
10773 if test -n "$OTOOL"; then
10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10775 printf "%s\n" "$OTOOL" >&6; }
10776 else
10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 printf "%s\n" "no" >&6; }
10779 fi
10780
10781
10782 fi
10783 if test -z "$ac_cv_prog_OTOOL"; then
10784 ac_ct_OTOOL=$OTOOL
10785 # Extract the first word of "otool", so it can be a program name with args.
10786 set dummy otool; ac_word=$2
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788 printf %s "checking for $ac_word... " >&6; }
10789 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10790 then :
10791 printf %s "(cached) " >&6
10792 else $as_nop
10793 if test -n "$ac_ct_OTOOL"; then
10794 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10795 else
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10798 do
10799 IFS=$as_save_IFS
10800 case $as_dir in #(((
10801 '') as_dir=./ ;;
10802 */) ;;
10803 *) as_dir=$as_dir/ ;;
10804 esac
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10807 ac_cv_prog_ac_ct_OTOOL="otool"
10808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811 done
10812 done
10813 IFS=$as_save_IFS
10814
10815 fi
10816 fi
10817 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10818 if test -n "$ac_ct_OTOOL"; then
10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10820 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10821 else
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 printf "%s\n" "no" >&6; }
10824 fi
10825
10826 if test "x$ac_ct_OTOOL" = x; then
10827 OTOOL=":"
10828 else
10829 case $cross_compiling:$ac_tool_warned in
10830 yes:)
10831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10832 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10833 ac_tool_warned=yes ;;
10834 esac
10835 OTOOL=$ac_ct_OTOOL
10836 fi
10837 else
10838 OTOOL="$ac_cv_prog_OTOOL"
10839 fi
10840
10841 if test -n "$ac_tool_prefix"; then
10842 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10843 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 printf %s "checking for $ac_word... " >&6; }
10846 if test ${ac_cv_prog_OTOOL64+y}
10847 then :
10848 printf %s "(cached) " >&6
10849 else $as_nop
10850 if test -n "$OTOOL64"; then
10851 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10852 else
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in $PATH
10855 do
10856 IFS=$as_save_IFS
10857 case $as_dir in #(((
10858 '') as_dir=./ ;;
10859 */) ;;
10860 *) as_dir=$as_dir/ ;;
10861 esac
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10864 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10866 break 2
10867 fi
10868 done
10869 done
10870 IFS=$as_save_IFS
10871
10872 fi
10873 fi
10874 OTOOL64=$ac_cv_prog_OTOOL64
10875 if test -n "$OTOOL64"; then
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10877 printf "%s\n" "$OTOOL64" >&6; }
10878 else
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880 printf "%s\n" "no" >&6; }
10881 fi
10882
10883
10884 fi
10885 if test -z "$ac_cv_prog_OTOOL64"; then
10886 ac_ct_OTOOL64=$OTOOL64
10887 # Extract the first word of "otool64", so it can be a program name with args.
10888 set dummy otool64; ac_word=$2
10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10890 printf %s "checking for $ac_word... " >&6; }
10891 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10892 then :
10893 printf %s "(cached) " >&6
10894 else $as_nop
10895 if test -n "$ac_ct_OTOOL64"; then
10896 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10897 else
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10900 do
10901 IFS=$as_save_IFS
10902 case $as_dir in #(((
10903 '') as_dir=./ ;;
10904 */) ;;
10905 *) as_dir=$as_dir/ ;;
10906 esac
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10909 ac_cv_prog_ac_ct_OTOOL64="otool64"
10910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10911 break 2
10912 fi
10913 done
10914 done
10915 IFS=$as_save_IFS
10916
10917 fi
10918 fi
10919 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10920 if test -n "$ac_ct_OTOOL64"; then
10921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10922 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10923 else
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 printf "%s\n" "no" >&6; }
10926 fi
10927
10928 if test "x$ac_ct_OTOOL64" = x; then
10929 OTOOL64=":"
10930 else
10931 case $cross_compiling:$ac_tool_warned in
10932 yes:)
10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10935 ac_tool_warned=yes ;;
10936 esac
10937 OTOOL64=$ac_ct_OTOOL64
10938 fi
10939 else
10940 OTOOL64="$ac_cv_prog_OTOOL64"
10941 fi
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10970 printf %s "checking for -single_module linker flag... " >&6; }
10971 if test ${lt_cv_apple_cc_single_mod+y}
10972 then :
10973 printf %s "(cached) " >&6
10974 else $as_nop
10975 lt_cv_apple_cc_single_mod=no
10976 if test -z "$LT_MULTI_MODULE"; then
10977 # By default we will add the -single_module flag. You can override
10978 # by either setting the environment variable LT_MULTI_MODULE
10979 # non-empty at configure time, or by adding -multi_module to the
10980 # link flags.
10981 rm -rf libconftest.dylib*
10982 echo "int foo(void){return 1;}" > conftest.c
10983 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10984 -dynamiclib -Wl,-single_module conftest.c" >&5
10985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10987 _lt_result=$?
10988 # If there is a non-empty error log, and "single_module"
10989 # appears in it, assume the flag caused a linker warning
10990 if test -s conftest.err && $GREP single_module conftest.err; then
10991 cat conftest.err >&5
10992 # Otherwise, if the output was created with a 0 exit code from
10993 # the compiler, it worked.
10994 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10995 lt_cv_apple_cc_single_mod=yes
10996 else
10997 cat conftest.err >&5
10998 fi
10999 rm -rf libconftest.dylib*
11000 rm -f conftest.*
11001 fi
11002 fi
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11004 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11005
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11007 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11008 if test ${lt_cv_ld_exported_symbols_list+y}
11009 then :
11010 printf %s "(cached) " >&6
11011 else $as_nop
11012 lt_cv_ld_exported_symbols_list=no
11013 save_LDFLAGS=$LDFLAGS
11014 echo "_main" > conftest.sym
11015 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11018
11019 int
11020 main (void)
11021 {
11022
11023 ;
11024 return 0;
11025 }
11026 _ACEOF
11027 if ac_fn_c_try_link "$LINENO"
11028 then :
11029 lt_cv_ld_exported_symbols_list=yes
11030 else $as_nop
11031 lt_cv_ld_exported_symbols_list=no
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11034 conftest$ac_exeext conftest.$ac_ext
11035 LDFLAGS=$save_LDFLAGS
11036
11037 fi
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11039 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11040
11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11042 printf %s "checking for -force_load linker flag... " >&6; }
11043 if test ${lt_cv_ld_force_load+y}
11044 then :
11045 printf %s "(cached) " >&6
11046 else $as_nop
11047 lt_cv_ld_force_load=no
11048 cat > conftest.c << _LT_EOF
11049 int forced_loaded() { return 2;}
11050 _LT_EOF
11051 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11052 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11053 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11054 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11055 echo "$RANLIB libconftest.a" >&5
11056 $RANLIB libconftest.a 2>&5
11057 cat > conftest.c << _LT_EOF
11058 int main() { return 0;}
11059 _LT_EOF
11060 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11061 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11062 _lt_result=$?
11063 if test -s conftest.err && $GREP force_load conftest.err; then
11064 cat conftest.err >&5
11065 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11066 lt_cv_ld_force_load=yes
11067 else
11068 cat conftest.err >&5
11069 fi
11070 rm -f conftest.err libconftest.a conftest conftest.c
11071 rm -rf conftest.dSYM
11072
11073 fi
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11075 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11076 case $host_os in
11077 rhapsody* | darwin1.[012])
11078 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11079 darwin1.*)
11080 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11081 darwin*)
11082 case $MACOSX_DEPLOYMENT_TARGET,$host in
11083 10.[012],*|,*powerpc*-darwin[5-8]*)
11084 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11085 *)
11086 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11087 esac
11088 ;;
11089 esac
11090 if test yes = "$lt_cv_apple_cc_single_mod"; then
11091 _lt_dar_single_mod='$single_module'
11092 fi
11093 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11094 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11095 else
11096 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11097 fi
11098 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11099 _lt_dsymutil='~$DSYMUTIL $lib || :'
11100 else
11101 _lt_dsymutil=
11102 fi
11103 ;;
11104 esac
11105
11106 # func_munge_path_list VARIABLE PATH
11107 # -----------------------------------
11108 # VARIABLE is name of variable containing _space_ separated list of
11109 # directories to be munged by the contents of PATH, which is string
11110 # having a format:
11111 # "DIR[:DIR]:"
11112 # string "DIR[ DIR]" will be prepended to VARIABLE
11113 # ":DIR[:DIR]"
11114 # string "DIR[ DIR]" will be appended to VARIABLE
11115 # "DIRP[:DIRP]::[DIRA:]DIRA"
11116 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11117 # "DIRA[ DIRA]" will be appended to VARIABLE
11118 # "DIR[:DIR]"
11119 # VARIABLE will be replaced by "DIR[ DIR]"
11120 func_munge_path_list ()
11121 {
11122 case x$2 in
11123 x)
11124 ;;
11125 *:)
11126 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11127 ;;
11128 x:*)
11129 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11130 ;;
11131 *::*)
11132 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11133 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11134 ;;
11135 *)
11136 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11137 ;;
11138 esac
11139 }
11140
11141 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11142 "
11143 if test "x$ac_cv_header_dlfcn_h" = xyes
11144 then :
11145 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11146
11147 fi
11148
11149
11150
11151
11152
11153 # Set options
11154
11155
11156
11157 enable_dlopen=no
11158
11159
11160 enable_win32_dll=no
11161
11162
11163 # Check whether --enable-shared was given.
11164 if test ${enable_shared+y}
11165 then :
11166 enableval=$enable_shared; p=${PACKAGE-default}
11167 case $enableval in
11168 yes) enable_shared=yes ;;
11169 no) enable_shared=no ;;
11170 *)
11171 enable_shared=no
11172 # Look at the argument we got. We use all the common list separators.
11173 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11174 for pkg in $enableval; do
11175 IFS=$lt_save_ifs
11176 if test "X$pkg" = "X$p"; then
11177 enable_shared=yes
11178 fi
11179 done
11180 IFS=$lt_save_ifs
11181 ;;
11182 esac
11183 else $as_nop
11184 enable_shared=yes
11185 fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195 # Check whether --enable-static was given.
11196 if test ${enable_static+y}
11197 then :
11198 enableval=$enable_static; p=${PACKAGE-default}
11199 case $enableval in
11200 yes) enable_static=yes ;;
11201 no) enable_static=no ;;
11202 *)
11203 enable_static=no
11204 # Look at the argument we got. We use all the common list separators.
11205 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11206 for pkg in $enableval; do
11207 IFS=$lt_save_ifs
11208 if test "X$pkg" = "X$p"; then
11209 enable_static=yes
11210 fi
11211 done
11212 IFS=$lt_save_ifs
11213 ;;
11214 esac
11215 else $as_nop
11216 enable_static=yes
11217 fi
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228 # Check whether --with-pic was given.
11229 if test ${with_pic+y}
11230 then :
11231 withval=$with_pic; lt_p=${PACKAGE-default}
11232 case $withval in
11233 yes|no) pic_mode=$withval ;;
11234 *)
11235 pic_mode=default
11236 # Look at the argument we got. We use all the common list separators.
11237 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11238 for lt_pkg in $withval; do
11239 IFS=$lt_save_ifs
11240 if test "X$lt_pkg" = "X$lt_p"; then
11241 pic_mode=yes
11242 fi
11243 done
11244 IFS=$lt_save_ifs
11245 ;;
11246 esac
11247 else $as_nop
11248 pic_mode=default
11249 fi
11250
11251
11252
11253
11254
11255
11256
11257
11258 # Check whether --enable-fast-install was given.
11259 if test ${enable_fast_install+y}
11260 then :
11261 enableval=$enable_fast_install; p=${PACKAGE-default}
11262 case $enableval in
11263 yes) enable_fast_install=yes ;;
11264 no) enable_fast_install=no ;;
11265 *)
11266 enable_fast_install=no
11267 # Look at the argument we got. We use all the common list separators.
11268 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11269 for pkg in $enableval; do
11270 IFS=$lt_save_ifs
11271 if test "X$pkg" = "X$p"; then
11272 enable_fast_install=yes
11273 fi
11274 done
11275 IFS=$lt_save_ifs
11276 ;;
11277 esac
11278 else $as_nop
11279 enable_fast_install=yes
11280 fi
11281
11282
11283
11284
11285
11286
11287
11288
11289 shared_archive_member_spec=
11290 case $host,$enable_shared in
11291 power*-*-aix[5-9]*,yes)
11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11293 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11294
11295 # Check whether --with-aix-soname was given.
11296 if test ${with_aix_soname+y}
11297 then :
11298 withval=$with_aix_soname; case $withval in
11299 aix|svr4|both)
11300 ;;
11301 *)
11302 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11303 ;;
11304 esac
11305 lt_cv_with_aix_soname=$with_aix_soname
11306 else $as_nop
11307 if test ${lt_cv_with_aix_soname+y}
11308 then :
11309 printf %s "(cached) " >&6
11310 else $as_nop
11311 lt_cv_with_aix_soname=aix
11312 fi
11313
11314 with_aix_soname=$lt_cv_with_aix_soname
11315 fi
11316
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11318 printf "%s\n" "$with_aix_soname" >&6; }
11319 if test aix != "$with_aix_soname"; then
11320 # For the AIX way of multilib, we name the shared archive member
11321 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11322 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11323 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11324 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11325 if test 64 = "${OBJECT_MODE-32}"; then
11326 shared_archive_member_spec=shr_64
11327 else
11328 shared_archive_member_spec=shr
11329 fi
11330 fi
11331 ;;
11332 *)
11333 with_aix_soname=aix
11334 ;;
11335 esac
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346 # This can be used to rebuild libtool when needed
11347 LIBTOOL_DEPS=$ltmain
11348
11349 # Always use our own libtool.
11350 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381 test -z "$LN_S" && LN_S="ln -s"
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396 if test -n "${ZSH_VERSION+set}"; then
11397 setopt NO_GLOB_SUBST
11398 fi
11399
11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11401 printf %s "checking for objdir... " >&6; }
11402 if test ${lt_cv_objdir+y}
11403 then :
11404 printf %s "(cached) " >&6
11405 else $as_nop
11406 rm -f .libs 2>/dev/null
11407 mkdir .libs 2>/dev/null
11408 if test -d .libs; then
11409 lt_cv_objdir=.libs
11410 else
11411 # MS-DOS does not allow filenames that begin with a dot.
11412 lt_cv_objdir=_libs
11413 fi
11414 rmdir .libs 2>/dev/null
11415 fi
11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11417 printf "%s\n" "$lt_cv_objdir" >&6; }
11418 objdir=$lt_cv_objdir
11419
11420
11421
11422
11423
11424 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11425
11426
11427
11428
11429 case $host_os in
11430 aix3*)
11431 # AIX sometimes has problems with the GCC collect2 program. For some
11432 # reason, if we set the COLLECT_NAMES environment variable, the problems
11433 # vanish in a puff of smoke.
11434 if test set != "${COLLECT_NAMES+set}"; then
11435 COLLECT_NAMES=
11436 export COLLECT_NAMES
11437 fi
11438 ;;
11439 esac
11440
11441 # Global variables:
11442 ofile=libtool
11443 can_build_shared=yes
11444
11445 # All known linkers require a '.a' archive for static linking (except MSVC and
11446 # ICC, which need '.lib').
11447 libext=a
11448
11449 with_gnu_ld=$lt_cv_prog_gnu_ld
11450
11451 old_CC=$CC
11452 old_CFLAGS=$CFLAGS
11453
11454 # Set sane defaults for various variables
11455 test -z "$CC" && CC=cc
11456 test -z "$LTCC" && LTCC=$CC
11457 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11458 test -z "$LD" && LD=ld
11459 test -z "$ac_objext" && ac_objext=o
11460
11461 func_cc_basename $compiler
11462 cc_basename=$func_cc_basename_result
11463
11464
11465 # Only perform the check for file, if the check method requires it
11466 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11467 case $deplibs_check_method in
11468 file_magic*)
11469 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11471 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11472 if test ${lt_cv_path_MAGIC_CMD+y}
11473 then :
11474 printf %s "(cached) " >&6
11475 else $as_nop
11476 case $MAGIC_CMD in
11477 [\\/*] | ?:[\\/]*)
11478 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11479 ;;
11480 *)
11481 lt_save_MAGIC_CMD=$MAGIC_CMD
11482 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11484 for ac_dir in $ac_dummy; do
11485 IFS=$lt_save_ifs
11486 test -z "$ac_dir" && ac_dir=.
11487 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11488 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11489 if test -n "$file_magic_test_file"; then
11490 case $deplibs_check_method in
11491 "file_magic "*)
11492 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11493 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11495 $EGREP "$file_magic_regex" > /dev/null; then
11496 :
11497 else
11498 cat <<_LT_EOF 1>&2
11499
11500 *** Warning: the command libtool uses to detect shared libraries,
11501 *** $file_magic_cmd, produces output that libtool cannot recognize.
11502 *** The result is that libtool may fail to recognize shared libraries
11503 *** as such. This will affect the creation of libtool libraries that
11504 *** depend on shared libraries, but programs linked with such libtool
11505 *** libraries will work regardless of this problem. Nevertheless, you
11506 *** may want to report the problem to your system manager and/or to
11507 *** [email protected]
11508
11509 _LT_EOF
11510 fi ;;
11511 esac
11512 fi
11513 break
11514 fi
11515 done
11516 IFS=$lt_save_ifs
11517 MAGIC_CMD=$lt_save_MAGIC_CMD
11518 ;;
11519 esac
11520 fi
11521
11522 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11523 if test -n "$MAGIC_CMD"; then
11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11525 printf "%s\n" "$MAGIC_CMD" >&6; }
11526 else
11527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 printf "%s\n" "no" >&6; }
11529 fi
11530
11531
11532
11533
11534
11535 if test -z "$lt_cv_path_MAGIC_CMD"; then
11536 if test -n "$ac_tool_prefix"; then
11537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11538 printf %s "checking for file... " >&6; }
11539 if test ${lt_cv_path_MAGIC_CMD+y}
11540 then :
11541 printf %s "(cached) " >&6
11542 else $as_nop
11543 case $MAGIC_CMD in
11544 [\\/*] | ?:[\\/]*)
11545 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11546 ;;
11547 *)
11548 lt_save_MAGIC_CMD=$MAGIC_CMD
11549 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11550 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11551 for ac_dir in $ac_dummy; do
11552 IFS=$lt_save_ifs
11553 test -z "$ac_dir" && ac_dir=.
11554 if test -f "$ac_dir/file"; then
11555 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11556 if test -n "$file_magic_test_file"; then
11557 case $deplibs_check_method in
11558 "file_magic "*)
11559 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11560 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11561 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11562 $EGREP "$file_magic_regex" > /dev/null; then
11563 :
11564 else
11565 cat <<_LT_EOF 1>&2
11566
11567 *** Warning: the command libtool uses to detect shared libraries,
11568 *** $file_magic_cmd, produces output that libtool cannot recognize.
11569 *** The result is that libtool may fail to recognize shared libraries
11570 *** as such. This will affect the creation of libtool libraries that
11571 *** depend on shared libraries, but programs linked with such libtool
11572 *** libraries will work regardless of this problem. Nevertheless, you
11573 *** may want to report the problem to your system manager and/or to
11574 *** [email protected]
11575
11576 _LT_EOF
11577 fi ;;
11578 esac
11579 fi
11580 break
11581 fi
11582 done
11583 IFS=$lt_save_ifs
11584 MAGIC_CMD=$lt_save_MAGIC_CMD
11585 ;;
11586 esac
11587 fi
11588
11589 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11590 if test -n "$MAGIC_CMD"; then
11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11592 printf "%s\n" "$MAGIC_CMD" >&6; }
11593 else
11594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 printf "%s\n" "no" >&6; }
11596 fi
11597
11598
11599 else
11600 MAGIC_CMD=:
11601 fi
11602 fi
11603
11604 fi
11605 ;;
11606 esac
11607
11608 # Use C for the default configuration in the libtool script
11609
11610 lt_save_CC=$CC
11611 ac_ext=c
11612 ac_cpp='$CPP $CPPFLAGS'
11613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11616
11617
11618 # Source file extension for C test sources.
11619 ac_ext=c
11620
11621 # Object file extension for compiled C test sources.
11622 objext=o
11623 objext=$objext
11624
11625 # Code to be used in simple compile tests
11626 lt_simple_compile_test_code="int some_variable = 0;"
11627
11628 # Code to be used in simple link tests
11629 lt_simple_link_test_code='int main(){return(0);}'
11630
11631
11632
11633
11634
11635
11636
11637 # If no C compiler was specified, use CC.
11638 LTCC=${LTCC-"$CC"}
11639
11640 # If no C compiler flags were specified, use CFLAGS.
11641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11642
11643 # Allow CC to be a program name with arguments.
11644 compiler=$CC
11645
11646 # Save the default compiler, since it gets overwritten when the other
11647 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11648 compiler_DEFAULT=$CC
11649
11650 # save warnings/boilerplate of simple test code
11651 ac_outfile=conftest.$ac_objext
11652 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11654 _lt_compiler_boilerplate=`cat conftest.err`
11655 $RM conftest*
11656
11657 ac_outfile=conftest.$ac_objext
11658 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11660 _lt_linker_boilerplate=`cat conftest.err`
11661 $RM -r conftest*
11662
11663
11664 ## CAVEAT EMPTOR:
11665 ## There is no encapsulation within the following macros, do not change
11666 ## the running order or otherwise move them around unless you know exactly
11667 ## what you are doing...
11668 if test -n "$compiler"; then
11669
11670 lt_prog_compiler_no_builtin_flag=
11671
11672 if test yes = "$GCC"; then
11673 case $cc_basename in
11674 nvcc*)
11675 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11676 *)
11677 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11678 esac
11679
11680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11681 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11682 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11683 then :
11684 printf %s "(cached) " >&6
11685 else $as_nop
11686 lt_cv_prog_compiler_rtti_exceptions=no
11687 ac_outfile=conftest.$ac_objext
11688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11689 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11690 # Insert the option either (1) after the last *FLAGS variable, or
11691 # (2) before a word containing "conftest.", or (3) at the end.
11692 # Note that $ac_compile itself does not contain backslashes and begins
11693 # with a dollar sign (not a hyphen), so the echo should work correctly.
11694 # The option is referenced via a variable to avoid confusing sed.
11695 lt_compile=`echo "$ac_compile" | $SED \
11696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11698 -e 's:$: $lt_compiler_flag:'`
11699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11700 (eval "$lt_compile" 2>conftest.err)
11701 ac_status=$?
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 if (exit $ac_status) && test -s "$ac_outfile"; then
11705 # The compiler can only warn and ignore the option if not recognized
11706 # So say no if there are warnings other than the usual output.
11707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11710 lt_cv_prog_compiler_rtti_exceptions=yes
11711 fi
11712 fi
11713 $RM conftest*
11714
11715 fi
11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11717 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11718
11719 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11720 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11721 else
11722 :
11723 fi
11724
11725 fi
11726
11727
11728
11729
11730
11731
11732 lt_prog_compiler_wl=
11733 lt_prog_compiler_pic=
11734 lt_prog_compiler_static=
11735
11736
11737 if test yes = "$GCC"; then
11738 lt_prog_compiler_wl='-Wl,'
11739 lt_prog_compiler_static='-static'
11740
11741 case $host_os in
11742 aix*)
11743 # All AIX code is PIC.
11744 if test ia64 = "$host_cpu"; then
11745 # AIX 5 now supports IA64 processor
11746 lt_prog_compiler_static='-Bstatic'
11747 fi
11748 lt_prog_compiler_pic='-fPIC'
11749 ;;
11750
11751 amigaos*)
11752 case $host_cpu in
11753 powerpc)
11754 # see comment about AmigaOS4 .so support
11755 lt_prog_compiler_pic='-fPIC'
11756 ;;
11757 m68k)
11758 # FIXME: we need at least 68020 code to build shared libraries, but
11759 # adding the '-m68020' flag to GCC prevents building anything better,
11760 # like '-m68040'.
11761 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11762 ;;
11763 esac
11764 ;;
11765
11766 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11767 # PIC is the default for these OSes.
11768 ;;
11769
11770 mingw* | cygwin* | pw32* | os2* | cegcc*)
11771 # This hack is so that the source file can tell whether it is being
11772 # built for inclusion in a dll (and should export symbols for example).
11773 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11774 # (--disable-auto-import) libraries
11775 lt_prog_compiler_pic='-DDLL_EXPORT'
11776 case $host_os in
11777 os2*)
11778 lt_prog_compiler_static='$wl-static'
11779 ;;
11780 esac
11781 ;;
11782
11783 darwin* | rhapsody*)
11784 # PIC is the default on this platform
11785 # Common symbols not allowed in MH_DYLIB files
11786 lt_prog_compiler_pic='-fno-common'
11787 ;;
11788
11789 haiku*)
11790 # PIC is the default for Haiku.
11791 # The "-static" flag exists, but is broken.
11792 lt_prog_compiler_static=
11793 ;;
11794
11795 hpux*)
11796 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11797 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11798 # sets the default TLS model and affects inlining.
11799 case $host_cpu in
11800 hppa*64*)
11801 # +Z the default
11802 ;;
11803 *)
11804 lt_prog_compiler_pic='-fPIC'
11805 ;;
11806 esac
11807 ;;
11808
11809 interix[3-9]*)
11810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11811 # Instead, we relocate shared libraries at runtime.
11812 ;;
11813
11814 msdosdjgpp*)
11815 # Just because we use GCC doesn't mean we suddenly get shared libraries
11816 # on systems that don't support them.
11817 lt_prog_compiler_can_build_shared=no
11818 enable_shared=no
11819 ;;
11820
11821 *nto* | *qnx*)
11822 # QNX uses GNU C++, but need to define -shared option too, otherwise
11823 # it will coredump.
11824 lt_prog_compiler_pic='-fPIC -shared'
11825 ;;
11826
11827 sysv4*MP*)
11828 if test -d /usr/nec; then
11829 lt_prog_compiler_pic=-Kconform_pic
11830 fi
11831 ;;
11832
11833 *)
11834 lt_prog_compiler_pic='-fPIC'
11835 ;;
11836 esac
11837
11838 case $cc_basename in
11839 nvcc*) # Cuda Compiler Driver 2.2
11840 lt_prog_compiler_wl='-Xlinker '
11841 if test -n "$lt_prog_compiler_pic"; then
11842 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11843 fi
11844 ;;
11845 esac
11846 else
11847 # PORTME Check for flag to pass linker flags through the system compiler.
11848 case $host_os in
11849 aix*)
11850 lt_prog_compiler_wl='-Wl,'
11851 if test ia64 = "$host_cpu"; then
11852 # AIX 5 now supports IA64 processor
11853 lt_prog_compiler_static='-Bstatic'
11854 else
11855 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11856 fi
11857 ;;
11858
11859 darwin* | rhapsody*)
11860 # PIC is the default on this platform
11861 # Common symbols not allowed in MH_DYLIB files
11862 lt_prog_compiler_pic='-fno-common'
11863 case $cc_basename in
11864 nagfor*)
11865 # NAG Fortran compiler
11866 lt_prog_compiler_wl='-Wl,-Wl,,'
11867 lt_prog_compiler_pic='-PIC'
11868 lt_prog_compiler_static='-Bstatic'
11869 ;;
11870 esac
11871 ;;
11872
11873 mingw* | cygwin* | pw32* | os2* | cegcc*)
11874 # This hack is so that the source file can tell whether it is being
11875 # built for inclusion in a dll (and should export symbols for example).
11876 lt_prog_compiler_pic='-DDLL_EXPORT'
11877 case $host_os in
11878 os2*)
11879 lt_prog_compiler_static='$wl-static'
11880 ;;
11881 esac
11882 ;;
11883
11884 hpux9* | hpux10* | hpux11*)
11885 lt_prog_compiler_wl='-Wl,'
11886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11887 # not for PA HP-UX.
11888 case $host_cpu in
11889 hppa*64*|ia64*)
11890 # +Z the default
11891 ;;
11892 *)
11893 lt_prog_compiler_pic='+Z'
11894 ;;
11895 esac
11896 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11897 lt_prog_compiler_static='$wl-a ${wl}archive'
11898 ;;
11899
11900 irix5* | irix6* | nonstopux*)
11901 lt_prog_compiler_wl='-Wl,'
11902 # PIC (with -KPIC) is the default.
11903 lt_prog_compiler_static='-non_shared'
11904 ;;
11905
11906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11907 case $cc_basename in
11908 # old Intel for x86_64, which still supported -KPIC.
11909 ecc*)
11910 lt_prog_compiler_wl='-Wl,'
11911 lt_prog_compiler_pic='-KPIC'
11912 lt_prog_compiler_static='-static'
11913 ;;
11914 # flang / f18. f95 an alias for gfortran or flang on Debian
11915 flang* | f18* | f95*)
11916 lt_prog_compiler_wl='-Wl,'
11917 lt_prog_compiler_pic='-fPIC'
11918 lt_prog_compiler_static='-static'
11919 ;;
11920 # icc used to be incompatible with GCC.
11921 # ICC 10 doesn't accept -KPIC any more.
11922 icc* | ifort*)
11923 lt_prog_compiler_wl='-Wl,'
11924 lt_prog_compiler_pic='-fPIC'
11925 lt_prog_compiler_static='-static'
11926 ;;
11927 # Lahey Fortran 8.1.
11928 lf95*)
11929 lt_prog_compiler_wl='-Wl,'
11930 lt_prog_compiler_pic='--shared'
11931 lt_prog_compiler_static='--static'
11932 ;;
11933 nagfor*)
11934 # NAG Fortran compiler
11935 lt_prog_compiler_wl='-Wl,-Wl,,'
11936 lt_prog_compiler_pic='-PIC'
11937 lt_prog_compiler_static='-Bstatic'
11938 ;;
11939 tcc*)
11940 # Fabrice Bellard et al's Tiny C Compiler
11941 lt_prog_compiler_wl='-Wl,'
11942 lt_prog_compiler_pic='-fPIC'
11943 lt_prog_compiler_static='-static'
11944 ;;
11945 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11946 # Portland Group compilers (*not* the Pentium gcc compiler,
11947 # which looks to be a dead project)
11948 lt_prog_compiler_wl='-Wl,'
11949 lt_prog_compiler_pic='-fpic'
11950 lt_prog_compiler_static='-Bstatic'
11951 ;;
11952 ccc*)
11953 lt_prog_compiler_wl='-Wl,'
11954 # All Alpha code is PIC.
11955 lt_prog_compiler_static='-non_shared'
11956 ;;
11957 xl* | bgxl* | bgf* | mpixl*)
11958 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11959 lt_prog_compiler_wl='-Wl,'
11960 lt_prog_compiler_pic='-qpic'
11961 lt_prog_compiler_static='-qstaticlink'
11962 ;;
11963 *)
11964 case `$CC -V 2>&1 | $SED 5q` in
11965 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11966 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11967 lt_prog_compiler_pic='-KPIC'
11968 lt_prog_compiler_static='-Bstatic'
11969 lt_prog_compiler_wl=''
11970 ;;
11971 *Sun\ F* | *Sun*Fortran*)
11972 lt_prog_compiler_pic='-KPIC'
11973 lt_prog_compiler_static='-Bstatic'
11974 lt_prog_compiler_wl='-Qoption ld '
11975 ;;
11976 *Sun\ C*)
11977 # Sun C 5.9
11978 lt_prog_compiler_pic='-KPIC'
11979 lt_prog_compiler_static='-Bstatic'
11980 lt_prog_compiler_wl='-Wl,'
11981 ;;
11982 *Intel*\ [CF]*Compiler*)
11983 lt_prog_compiler_wl='-Wl,'
11984 lt_prog_compiler_pic='-fPIC'
11985 lt_prog_compiler_static='-static'
11986 ;;
11987 *Portland\ Group*)
11988 lt_prog_compiler_wl='-Wl,'
11989 lt_prog_compiler_pic='-fpic'
11990 lt_prog_compiler_static='-Bstatic'
11991 ;;
11992 esac
11993 ;;
11994 esac
11995 ;;
11996
11997 newsos6)
11998 lt_prog_compiler_pic='-KPIC'
11999 lt_prog_compiler_static='-Bstatic'
12000 ;;
12001
12002 *nto* | *qnx*)
12003 # QNX uses GNU C++, but need to define -shared option too, otherwise
12004 # it will coredump.
12005 lt_prog_compiler_pic='-fPIC -shared'
12006 ;;
12007
12008 osf3* | osf4* | osf5*)
12009 lt_prog_compiler_wl='-Wl,'
12010 # All OSF/1 code is PIC.
12011 lt_prog_compiler_static='-non_shared'
12012 ;;
12013
12014 rdos*)
12015 lt_prog_compiler_static='-non_shared'
12016 ;;
12017
12018 solaris*)
12019 lt_prog_compiler_pic='-KPIC'
12020 lt_prog_compiler_static='-Bstatic'
12021 case $cc_basename in
12022 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12023 lt_prog_compiler_wl='-Qoption ld ';;
12024 *)
12025 lt_prog_compiler_wl='-Wl,';;
12026 esac
12027 ;;
12028
12029 sunos4*)
12030 lt_prog_compiler_wl='-Qoption ld '
12031 lt_prog_compiler_pic='-PIC'
12032 lt_prog_compiler_static='-Bstatic'
12033 ;;
12034
12035 sysv4 | sysv4.2uw2* | sysv4.3*)
12036 lt_prog_compiler_wl='-Wl,'
12037 lt_prog_compiler_pic='-KPIC'
12038 lt_prog_compiler_static='-Bstatic'
12039 ;;
12040
12041 sysv4*MP*)
12042 if test -d /usr/nec; then
12043 lt_prog_compiler_pic='-Kconform_pic'
12044 lt_prog_compiler_static='-Bstatic'
12045 fi
12046 ;;
12047
12048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12049 lt_prog_compiler_wl='-Wl,'
12050 lt_prog_compiler_pic='-KPIC'
12051 lt_prog_compiler_static='-Bstatic'
12052 ;;
12053
12054 unicos*)
12055 lt_prog_compiler_wl='-Wl,'
12056 lt_prog_compiler_can_build_shared=no
12057 ;;
12058
12059 uts4*)
12060 lt_prog_compiler_pic='-pic'
12061 lt_prog_compiler_static='-Bstatic'
12062 ;;
12063
12064 *)
12065 lt_prog_compiler_can_build_shared=no
12066 ;;
12067 esac
12068 fi
12069
12070 case $host_os in
12071 # For platforms that do not support PIC, -DPIC is meaningless:
12072 *djgpp*)
12073 lt_prog_compiler_pic=
12074 ;;
12075 *)
12076 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12077 ;;
12078 esac
12079
12080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12081 printf %s "checking for $compiler option to produce PIC... " >&6; }
12082 if test ${lt_cv_prog_compiler_pic+y}
12083 then :
12084 printf %s "(cached) " >&6
12085 else $as_nop
12086 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12087 fi
12088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12089 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12090 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12091
12092 #
12093 # Check to make sure the PIC flag actually works.
12094 #
12095 if test -n "$lt_prog_compiler_pic"; then
12096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12097 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12098 if test ${lt_cv_prog_compiler_pic_works+y}
12099 then :
12100 printf %s "(cached) " >&6
12101 else $as_nop
12102 lt_cv_prog_compiler_pic_works=no
12103 ac_outfile=conftest.$ac_objext
12104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12105 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12106 # Insert the option either (1) after the last *FLAGS variable, or
12107 # (2) before a word containing "conftest.", or (3) at the end.
12108 # Note that $ac_compile itself does not contain backslashes and begins
12109 # with a dollar sign (not a hyphen), so the echo should work correctly.
12110 # The option is referenced via a variable to avoid confusing sed.
12111 lt_compile=`echo "$ac_compile" | $SED \
12112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12114 -e 's:$: $lt_compiler_flag:'`
12115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12116 (eval "$lt_compile" 2>conftest.err)
12117 ac_status=$?
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 if (exit $ac_status) && test -s "$ac_outfile"; then
12121 # The compiler can only warn and ignore the option if not recognized
12122 # So say no if there are warnings other than the usual output.
12123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12126 lt_cv_prog_compiler_pic_works=yes
12127 fi
12128 fi
12129 $RM conftest*
12130
12131 fi
12132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12133 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12134
12135 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12136 case $lt_prog_compiler_pic in
12137 "" | " "*) ;;
12138 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12139 esac
12140 else
12141 lt_prog_compiler_pic=
12142 lt_prog_compiler_can_build_shared=no
12143 fi
12144
12145 fi
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157 #
12158 # Check to make sure the static flag actually works.
12159 #
12160 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12162 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12163 if test ${lt_cv_prog_compiler_static_works+y}
12164 then :
12165 printf %s "(cached) " >&6
12166 else $as_nop
12167 lt_cv_prog_compiler_static_works=no
12168 save_LDFLAGS=$LDFLAGS
12169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12172 # The linker can only warn and ignore the option if not recognized
12173 # So say no if there are warnings
12174 if test -s conftest.err; then
12175 # Append any errors to the config.log.
12176 cat conftest.err 1>&5
12177 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12179 if diff conftest.exp conftest.er2 >/dev/null; then
12180 lt_cv_prog_compiler_static_works=yes
12181 fi
12182 else
12183 lt_cv_prog_compiler_static_works=yes
12184 fi
12185 fi
12186 $RM -r conftest*
12187 LDFLAGS=$save_LDFLAGS
12188
12189 fi
12190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12191 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12192
12193 if test yes = "$lt_cv_prog_compiler_static_works"; then
12194 :
12195 else
12196 lt_prog_compiler_static=
12197 fi
12198
12199
12200
12201
12202
12203
12204
12205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12206 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12207 if test ${lt_cv_prog_compiler_c_o+y}
12208 then :
12209 printf %s "(cached) " >&6
12210 else $as_nop
12211 lt_cv_prog_compiler_c_o=no
12212 $RM -r conftest 2>/dev/null
12213 mkdir conftest
12214 cd conftest
12215 mkdir out
12216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12217
12218 lt_compiler_flag="-o out/conftest2.$ac_objext"
12219 # Insert the option either (1) after the last *FLAGS variable, or
12220 # (2) before a word containing "conftest.", or (3) at the end.
12221 # Note that $ac_compile itself does not contain backslashes and begins
12222 # with a dollar sign (not a hyphen), so the echo should work correctly.
12223 lt_compile=`echo "$ac_compile" | $SED \
12224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12226 -e 's:$: $lt_compiler_flag:'`
12227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12228 (eval "$lt_compile" 2>out/conftest.err)
12229 ac_status=$?
12230 cat out/conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12233 then
12234 # The compiler can only warn and ignore the option if not recognized
12235 # So say no if there are warnings
12236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12239 lt_cv_prog_compiler_c_o=yes
12240 fi
12241 fi
12242 chmod u+w . 2>&5
12243 $RM conftest*
12244 # SGI C++ compiler will create directory out/ii_files/ for
12245 # template instantiation
12246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12247 $RM out/* && rmdir out
12248 cd ..
12249 $RM -r conftest
12250 $RM conftest*
12251
12252 fi
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12254 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12255
12256
12257
12258
12259
12260
12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12262 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12263 if test ${lt_cv_prog_compiler_c_o+y}
12264 then :
12265 printf %s "(cached) " >&6
12266 else $as_nop
12267 lt_cv_prog_compiler_c_o=no
12268 $RM -r conftest 2>/dev/null
12269 mkdir conftest
12270 cd conftest
12271 mkdir out
12272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12273
12274 lt_compiler_flag="-o out/conftest2.$ac_objext"
12275 # Insert the option either (1) after the last *FLAGS variable, or
12276 # (2) before a word containing "conftest.", or (3) at the end.
12277 # Note that $ac_compile itself does not contain backslashes and begins
12278 # with a dollar sign (not a hyphen), so the echo should work correctly.
12279 lt_compile=`echo "$ac_compile" | $SED \
12280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12282 -e 's:$: $lt_compiler_flag:'`
12283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12284 (eval "$lt_compile" 2>out/conftest.err)
12285 ac_status=$?
12286 cat out/conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12289 then
12290 # The compiler can only warn and ignore the option if not recognized
12291 # So say no if there are warnings
12292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12295 lt_cv_prog_compiler_c_o=yes
12296 fi
12297 fi
12298 chmod u+w . 2>&5
12299 $RM conftest*
12300 # SGI C++ compiler will create directory out/ii_files/ for
12301 # template instantiation
12302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12303 $RM out/* && rmdir out
12304 cd ..
12305 $RM -r conftest
12306 $RM conftest*
12307
12308 fi
12309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12310 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12311
12312
12313
12314
12315 hard_links=nottested
12316 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12317 # do not overwrite the value of need_locks provided by the user
12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12319 printf %s "checking if we can lock with hard links... " >&6; }
12320 hard_links=yes
12321 $RM conftest*
12322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12323 touch conftest.a
12324 ln conftest.a conftest.b 2>&5 || hard_links=no
12325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12327 printf "%s\n" "$hard_links" >&6; }
12328 if test no = "$hard_links"; then
12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12330 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12331 need_locks=warn
12332 fi
12333 else
12334 need_locks=no
12335 fi
12336
12337
12338
12339
12340
12341
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12343 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12344
12345 runpath_var=
12346 allow_undefined_flag=
12347 always_export_symbols=no
12348 archive_cmds=
12349 archive_expsym_cmds=
12350 compiler_needs_object=no
12351 enable_shared_with_static_runtimes=no
12352 export_dynamic_flag_spec=
12353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12354 hardcode_automatic=no
12355 hardcode_direct=no
12356 hardcode_direct_absolute=no
12357 hardcode_libdir_flag_spec=
12358 hardcode_libdir_separator=
12359 hardcode_minus_L=no
12360 hardcode_shlibpath_var=unsupported
12361 inherit_rpath=no
12362 link_all_deplibs=unknown
12363 module_cmds=
12364 module_expsym_cmds=
12365 old_archive_from_new_cmds=
12366 old_archive_from_expsyms_cmds=
12367 thread_safe_flag_spec=
12368 whole_archive_flag_spec=
12369 # include_expsyms should be a list of space-separated symbols to be *always*
12370 # included in the symbol list
12371 include_expsyms=
12372 # exclude_expsyms can be an extended regexp of symbols to exclude
12373 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12374 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12375 # as well as any symbol that contains 'd'.
12376 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12377 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12378 # platforms (ab)use it in PIC code, but their linkers get confused if
12379 # the symbol is explicitly referenced. Since portable code cannot
12380 # rely on this symbol name, it's probably fine to never include it in
12381 # preloaded symbol tables.
12382 # Exclude shared library initialization/finalization symbols.
12383 extract_expsyms_cmds=
12384
12385 case $host_os in
12386 cygwin* | mingw* | pw32* | cegcc*)
12387 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12388 # When not using gcc, we currently assume that we are using
12389 # Microsoft Visual C++ or Intel C++ Compiler.
12390 if test yes != "$GCC"; then
12391 with_gnu_ld=no
12392 fi
12393 ;;
12394 interix*)
12395 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12396 with_gnu_ld=yes
12397 ;;
12398 openbsd* | bitrig*)
12399 with_gnu_ld=no
12400 ;;
12401 linux* | k*bsd*-gnu | gnu*)
12402 link_all_deplibs=no
12403 ;;
12404 esac
12405
12406 ld_shlibs=yes
12407
12408 # On some targets, GNU ld is compatible enough with the native linker
12409 # that we're better off using the native interface for both.
12410 lt_use_gnu_ld_interface=no
12411 if test yes = "$with_gnu_ld"; then
12412 case $host_os in
12413 aix*)
12414 # The AIX port of GNU ld has always aspired to compatibility
12415 # with the native linker. However, as the warning in the GNU ld
12416 # block says, versions before 2.19.5* couldn't really create working
12417 # shared libraries, regardless of the interface used.
12418 case `$LD -v 2>&1` in
12419 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12420 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12421 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12422 *)
12423 lt_use_gnu_ld_interface=yes
12424 ;;
12425 esac
12426 ;;
12427 *)
12428 lt_use_gnu_ld_interface=yes
12429 ;;
12430 esac
12431 fi
12432
12433 if test yes = "$lt_use_gnu_ld_interface"; then
12434 # If archive_cmds runs LD, not CC, wlarc should be empty
12435 wlarc='$wl'
12436
12437 # Set some defaults for GNU ld with shared library support. These
12438 # are reset later if shared libraries are not supported. Putting them
12439 # here allows them to be overridden if necessary.
12440 runpath_var=LD_RUN_PATH
12441 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12442 export_dynamic_flag_spec='$wl--export-dynamic'
12443 # ancient GNU ld didn't support --whole-archive et. al.
12444 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12445 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12446 else
12447 whole_archive_flag_spec=
12448 fi
12449 supports_anon_versioning=no
12450 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12451 *GNU\ gold*) supports_anon_versioning=yes ;;
12452 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12453 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12454 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12455 *\ 2.11.*) ;; # other 2.11 versions
12456 *) supports_anon_versioning=yes ;;
12457 esac
12458
12459 # See if GNU ld supports shared libraries.
12460 case $host_os in
12461 aix[3-9]*)
12462 # On AIX/PPC, the GNU linker is very broken
12463 if test ia64 != "$host_cpu"; then
12464 ld_shlibs=no
12465 cat <<_LT_EOF 1>&2
12466
12467 *** Warning: the GNU linker, at least up to release 2.19, is reported
12468 *** to be unable to reliably create shared libraries on AIX.
12469 *** Therefore, libtool is disabling shared libraries support. If you
12470 *** really care for shared libraries, you may want to install binutils
12471 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12472 *** You will then need to restart the configuration process.
12473
12474 _LT_EOF
12475 fi
12476 ;;
12477
12478 amigaos*)
12479 case $host_cpu in
12480 powerpc)
12481 # see comment about AmigaOS4 .so support
12482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12483 archive_expsym_cmds=''
12484 ;;
12485 m68k)
12486 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)'
12487 hardcode_libdir_flag_spec='-L$libdir'
12488 hardcode_minus_L=yes
12489 ;;
12490 esac
12491 ;;
12492
12493 beos*)
12494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12495 allow_undefined_flag=unsupported
12496 # Joseph Beckenbach <[email protected]> says some releases of gcc
12497 # support --undefined. This deserves some investigation. FIXME
12498 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12499 else
12500 ld_shlibs=no
12501 fi
12502 ;;
12503
12504 cygwin* | mingw* | pw32* | cegcc*)
12505 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12506 # as there is no search path for DLLs.
12507 hardcode_libdir_flag_spec='-L$libdir'
12508 export_dynamic_flag_spec='$wl--export-all-symbols'
12509 allow_undefined_flag=unsupported
12510 always_export_symbols=no
12511 enable_shared_with_static_runtimes=yes
12512 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'
12513 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12514
12515 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12517 # If the export-symbols file already is a .def file, use it as
12518 # is; otherwise, prepend EXPORTS...
12519 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12520 cp $export_symbols $output_objdir/$soname.def;
12521 else
12522 echo EXPORTS > $output_objdir/$soname.def;
12523 cat $export_symbols >> $output_objdir/$soname.def;
12524 fi~
12525 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12526 else
12527 ld_shlibs=no
12528 fi
12529 ;;
12530
12531 haiku*)
12532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12533 link_all_deplibs=yes
12534 ;;
12535
12536 os2*)
12537 hardcode_libdir_flag_spec='-L$libdir'
12538 hardcode_minus_L=yes
12539 allow_undefined_flag=unsupported
12540 shrext_cmds=.dll
12541 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12542 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12543 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12544 $ECHO EXPORTS >> $output_objdir/$libname.def~
12545 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12546 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12547 emximp -o $lib $output_objdir/$libname.def'
12548 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12549 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12550 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12551 $ECHO EXPORTS >> $output_objdir/$libname.def~
12552 prefix_cmds="$SED"~
12553 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12554 prefix_cmds="$prefix_cmds -e 1d";
12555 fi~
12556 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12557 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12558 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12559 emximp -o $lib $output_objdir/$libname.def'
12560 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12561 enable_shared_with_static_runtimes=yes
12562 file_list_spec='@'
12563 ;;
12564
12565 interix[3-9]*)
12566 hardcode_direct=no
12567 hardcode_shlibpath_var=no
12568 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12569 export_dynamic_flag_spec='$wl-E'
12570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12571 # Instead, shared libraries are loaded at an image base (0x10000000 by
12572 # default) and relocated if they conflict, which is a slow very memory
12573 # consuming and fragmenting process. To avoid this, we pick a random,
12574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12577 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'
12578 ;;
12579
12580 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12581 tmp_diet=no
12582 if test linux-dietlibc = "$host_os"; then
12583 case $cc_basename in
12584 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12585 esac
12586 fi
12587 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12588 && test no = "$tmp_diet"
12589 then
12590 tmp_addflag=' $pic_flag'
12591 tmp_sharedflag='-shared'
12592 case $cc_basename,$host_cpu in
12593 pgcc*) # Portland Group C compiler
12594 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'
12595 tmp_addflag=' $pic_flag'
12596 ;;
12597 pgf77* | pgf90* | pgf95* | pgfortran*)
12598 # Portland Group f77 and f90 compilers
12599 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'
12600 tmp_addflag=' $pic_flag -Mnomain' ;;
12601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12602 tmp_addflag=' -i_dynamic' ;;
12603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12604 tmp_addflag=' -i_dynamic -nofor_main' ;;
12605 ifc* | ifort*) # Intel Fortran compiler
12606 tmp_addflag=' -nofor_main' ;;
12607 lf95*) # Lahey Fortran 8.1
12608 whole_archive_flag_spec=
12609 tmp_sharedflag='--shared' ;;
12610 nagfor*) # NAGFOR 5.3
12611 tmp_sharedflag='-Wl,-shared' ;;
12612 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12613 tmp_sharedflag='-qmkshrobj'
12614 tmp_addflag= ;;
12615 nvcc*) # Cuda Compiler Driver 2.2
12616 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'
12617 compiler_needs_object=yes
12618 ;;
12619 esac
12620 case `$CC -V 2>&1 | $SED 5q` in
12621 *Sun\ C*) # Sun C 5.9
12622 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'
12623 compiler_needs_object=yes
12624 tmp_sharedflag='-G' ;;
12625 *Sun\ F*) # Sun Fortran 8.3
12626 tmp_sharedflag='-G' ;;
12627 esac
12628 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12629
12630 if test yes = "$supports_anon_versioning"; then
12631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12632 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12633 echo "local: *; };" >> $output_objdir/$libname.ver~
12634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12635 fi
12636
12637 case $cc_basename in
12638 tcc*)
12639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12640 export_dynamic_flag_spec='-rdynamic'
12641 ;;
12642 xlf* | bgf* | bgxlf* | mpixlf*)
12643 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12644 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12645 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12646 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12647 if test yes = "$supports_anon_versioning"; then
12648 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12649 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12650 echo "local: *; };" >> $output_objdir/$libname.ver~
12651 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12652 fi
12653 ;;
12654 esac
12655 else
12656 ld_shlibs=no
12657 fi
12658 ;;
12659
12660 netbsd* | netbsdelf*-gnu)
12661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12662 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12663 wlarc=
12664 else
12665 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12666 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12667 fi
12668 ;;
12669
12670 solaris*)
12671 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12672 ld_shlibs=no
12673 cat <<_LT_EOF 1>&2
12674
12675 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12676 *** create shared libraries on Solaris systems. Therefore, libtool
12677 *** is disabling shared libraries support. We urge you to upgrade GNU
12678 *** binutils to release 2.9.1 or newer. Another option is to modify
12679 *** your PATH or compiler configuration so that the native linker is
12680 *** used, and then restart.
12681
12682 _LT_EOF
12683 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12686 else
12687 ld_shlibs=no
12688 fi
12689 ;;
12690
12691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12692 case `$LD -v 2>&1` in
12693 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12694 ld_shlibs=no
12695 cat <<_LT_EOF 1>&2
12696
12697 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12698 *** reliably create shared libraries on SCO systems. Therefore, libtool
12699 *** is disabling shared libraries support. We urge you to upgrade GNU
12700 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12701 *** your PATH or compiler configuration so that the native linker is
12702 *** used, and then restart.
12703
12704 _LT_EOF
12705 ;;
12706 *)
12707 # For security reasons, it is highly recommended that you always
12708 # use absolute paths for naming shared libraries, and exclude the
12709 # DT_RUNPATH tag from executables and libraries. But doing so
12710 # requires that you compile everything twice, which is a pain.
12711 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12712 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12715 else
12716 ld_shlibs=no
12717 fi
12718 ;;
12719 esac
12720 ;;
12721
12722 sunos4*)
12723 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12724 wlarc=
12725 hardcode_direct=yes
12726 hardcode_shlibpath_var=no
12727 ;;
12728
12729 *)
12730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12731 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12732 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12733 else
12734 ld_shlibs=no
12735 fi
12736 ;;
12737 esac
12738
12739 if test no = "$ld_shlibs"; then
12740 runpath_var=
12741 hardcode_libdir_flag_spec=
12742 export_dynamic_flag_spec=
12743 whole_archive_flag_spec=
12744 fi
12745 else
12746 # PORTME fill in a description of your system's linker (not GNU ld)
12747 case $host_os in
12748 aix3*)
12749 allow_undefined_flag=unsupported
12750 always_export_symbols=yes
12751 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'
12752 # Note: this linker hardcodes the directories in LIBPATH if there
12753 # are no directories specified by -L.
12754 hardcode_minus_L=yes
12755 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12756 # Neither direct hardcoding nor static linking is supported with a
12757 # broken collect2.
12758 hardcode_direct=unsupported
12759 fi
12760 ;;
12761
12762 aix[4-9]*)
12763 if test ia64 = "$host_cpu"; then
12764 # On IA64, the linker does run time linking by default, so we don't
12765 # have to do anything special.
12766 aix_use_runtimelinking=no
12767 exp_sym_flag='-Bexport'
12768 no_entry_flag=
12769 else
12770 # If we're using GNU nm, then we don't want the "-C" option.
12771 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12772 # Without the "-l" option, or with the "-B" option, AIX nm treats
12773 # weak defined symbols like other global defined symbols, whereas
12774 # GNU nm marks them as "W".
12775 # While the 'weak' keyword is ignored in the Export File, we need
12776 # it in the Import File for the 'aix-soname' feature, so we have
12777 # to replace the "-B" option with "-P" for AIX nm.
12778 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12779 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'
12780 else
12781 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'
12782 fi
12783 aix_use_runtimelinking=no
12784
12785 # Test if we are trying to use run time linking or normal
12786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12787 # have runtime linking enabled, and use it for executables.
12788 # For shared libraries, we enable/disable runtime linking
12789 # depending on the kind of the shared library created -
12790 # when "with_aix_soname,aix_use_runtimelinking" is:
12791 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12792 # "aix,yes" lib.so shared, rtl:yes, for executables
12793 # lib.a static archive
12794 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12795 # lib.a(lib.so.V) shared, rtl:no, for executables
12796 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12797 # lib.a(lib.so.V) shared, rtl:no
12798 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12799 # lib.a static archive
12800 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12801 for ld_flag in $LDFLAGS; do
12802 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12803 aix_use_runtimelinking=yes
12804 break
12805 fi
12806 done
12807 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12808 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12809 # so we don't have lib.a shared libs to link our executables.
12810 # We have to force runtime linking in this case.
12811 aix_use_runtimelinking=yes
12812 LDFLAGS="$LDFLAGS -Wl,-brtl"
12813 fi
12814 ;;
12815 esac
12816
12817 exp_sym_flag='-bexport'
12818 no_entry_flag='-bnoentry'
12819 fi
12820
12821 # When large executables or shared objects are built, AIX ld can
12822 # have problems creating the table of contents. If linking a library
12823 # or program results in "error TOC overflow" add -mminimal-toc to
12824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12826
12827 archive_cmds=''
12828 hardcode_direct=yes
12829 hardcode_direct_absolute=yes
12830 hardcode_libdir_separator=':'
12831 link_all_deplibs=yes
12832 file_list_spec='$wl-f,'
12833 case $with_aix_soname,$aix_use_runtimelinking in
12834 aix,*) ;; # traditional, no import file
12835 svr4,* | *,yes) # use import file
12836 # The Import File defines what to hardcode.
12837 hardcode_direct=no
12838 hardcode_direct_absolute=no
12839 ;;
12840 esac
12841
12842 if test yes = "$GCC"; then
12843 case $host_os in aix4.[012]|aix4.[012].*)
12844 # We only want to do this on AIX 4.2 and lower, the check
12845 # below for broken collect2 doesn't work under 4.3+
12846 collect2name=`$CC -print-prog-name=collect2`
12847 if test -f "$collect2name" &&
12848 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12849 then
12850 # We have reworked collect2
12851 :
12852 else
12853 # We have old collect2
12854 hardcode_direct=unsupported
12855 # It fails to find uninstalled libraries when the uninstalled
12856 # path is not listed in the libpath. Setting hardcode_minus_L
12857 # to unsupported forces relinking
12858 hardcode_minus_L=yes
12859 hardcode_libdir_flag_spec='-L$libdir'
12860 hardcode_libdir_separator=
12861 fi
12862 ;;
12863 esac
12864 shared_flag='-shared'
12865 if test yes = "$aix_use_runtimelinking"; then
12866 shared_flag="$shared_flag "'$wl-G'
12867 fi
12868 # Need to ensure runtime linking is disabled for the traditional
12869 # shared library, or the linker may eventually find shared libraries
12870 # /with/ Import File - we do not want to mix them.
12871 shared_flag_aix='-shared'
12872 shared_flag_svr4='-shared $wl-G'
12873 else
12874 # not using gcc
12875 if test ia64 = "$host_cpu"; then
12876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12877 # chokes on -Wl,-G. The following line is correct:
12878 shared_flag='-G'
12879 else
12880 if test yes = "$aix_use_runtimelinking"; then
12881 shared_flag='$wl-G'
12882 else
12883 shared_flag='$wl-bM:SRE'
12884 fi
12885 shared_flag_aix='$wl-bM:SRE'
12886 shared_flag_svr4='$wl-G'
12887 fi
12888 fi
12889
12890 export_dynamic_flag_spec='$wl-bexpall'
12891 # It seems that -bexpall does not export symbols beginning with
12892 # underscore (_), so it is better to generate a list of symbols to export.
12893 always_export_symbols=yes
12894 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12895 # Warning - without using the other runtime loading flags (-brtl),
12896 # -berok will link without error, but may produce a broken library.
12897 allow_undefined_flag='-berok'
12898 # Determine the default libpath from the value encoded in an
12899 # empty executable.
12900 if test set = "${lt_cv_aix_libpath+set}"; then
12901 aix_libpath=$lt_cv_aix_libpath
12902 else
12903 if test ${lt_cv_aix_libpath_+y}
12904 then :
12905 printf %s "(cached) " >&6
12906 else $as_nop
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909
12910 int
12911 main (void)
12912 {
12913
12914 ;
12915 return 0;
12916 }
12917 _ACEOF
12918 if ac_fn_c_try_link "$LINENO"
12919 then :
12920
12921 lt_aix_libpath_sed='
12922 /Import File Strings/,/^$/ {
12923 /^0/ {
12924 s/^0 *\([^ ]*\) *$/\1/
12925 p
12926 }
12927 }'
12928 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12929 # Check for a 64-bit object if we didn't find anything.
12930 if test -z "$lt_cv_aix_libpath_"; then
12931 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12932 fi
12933 fi
12934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12935 conftest$ac_exeext conftest.$ac_ext
12936 if test -z "$lt_cv_aix_libpath_"; then
12937 lt_cv_aix_libpath_=/usr/lib:/lib
12938 fi
12939
12940 fi
12941
12942 aix_libpath=$lt_cv_aix_libpath_
12943 fi
12944
12945 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12946 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
12947 else
12948 if test ia64 = "$host_cpu"; then
12949 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12950 allow_undefined_flag="-z nodefs"
12951 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"
12952 else
12953 # Determine the default libpath from the value encoded in an
12954 # empty executable.
12955 if test set = "${lt_cv_aix_libpath+set}"; then
12956 aix_libpath=$lt_cv_aix_libpath
12957 else
12958 if test ${lt_cv_aix_libpath_+y}
12959 then :
12960 printf %s "(cached) " >&6
12961 else $as_nop
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964
12965 int
12966 main (void)
12967 {
12968
12969 ;
12970 return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"
12974 then :
12975
12976 lt_aix_libpath_sed='
12977 /Import File Strings/,/^$/ {
12978 /^0/ {
12979 s/^0 *\([^ ]*\) *$/\1/
12980 p
12981 }
12982 }'
12983 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12984 # Check for a 64-bit object if we didn't find anything.
12985 if test -z "$lt_cv_aix_libpath_"; then
12986 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12987 fi
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12990 conftest$ac_exeext conftest.$ac_ext
12991 if test -z "$lt_cv_aix_libpath_"; then
12992 lt_cv_aix_libpath_=/usr/lib:/lib
12993 fi
12994
12995 fi
12996
12997 aix_libpath=$lt_cv_aix_libpath_
12998 fi
12999
13000 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13001 # Warning - without using the other run time loading flags,
13002 # -berok will link without error, but may produce a broken library.
13003 no_undefined_flag=' $wl-bernotok'
13004 allow_undefined_flag=' $wl-berok'
13005 if test yes = "$with_gnu_ld"; then
13006 # We only use this code for GNU lds that support --whole-archive.
13007 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13008 else
13009 # Exported symbols can be pulled into shared objects from archives
13010 whole_archive_flag_spec='$convenience'
13011 fi
13012 archive_cmds_need_lc=yes
13013 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13014 # -brtl affects multiple linker settings, -berok does not and is overridden later
13015 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13016 if test svr4 != "$with_aix_soname"; then
13017 # This is similar to how AIX traditionally builds its shared libraries.
13018 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'
13019 fi
13020 if test aix != "$with_aix_soname"; then
13021 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'
13022 else
13023 # used by -dlpreopen to get the symbols
13024 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13025 fi
13026 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13027 fi
13028 fi
13029 ;;
13030
13031 amigaos*)
13032 case $host_cpu in
13033 powerpc)
13034 # see comment about AmigaOS4 .so support
13035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13036 archive_expsym_cmds=''
13037 ;;
13038 m68k)
13039 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)'
13040 hardcode_libdir_flag_spec='-L$libdir'
13041 hardcode_minus_L=yes
13042 ;;
13043 esac
13044 ;;
13045
13046 bsdi[45]*)
13047 export_dynamic_flag_spec=-rdynamic
13048 ;;
13049
13050 cygwin* | mingw* | pw32* | cegcc*)
13051 # When not using gcc, we currently assume that we are using
13052 # Microsoft Visual C++ or Intel C++ Compiler.
13053 # hardcode_libdir_flag_spec is actually meaningless, as there is
13054 # no search path for DLLs.
13055 case $cc_basename in
13056 cl* | icl*)
13057 # Native MSVC or ICC
13058 hardcode_libdir_flag_spec=' '
13059 allow_undefined_flag=unsupported
13060 always_export_symbols=yes
13061 file_list_spec='@'
13062 # Tell ltmain to make .lib files, not .a files.
13063 libext=lib
13064 # Tell ltmain to make .dll files, not .so files.
13065 shrext_cmds=.dll
13066 # FIXME: Setting linknames here is a bad hack.
13067 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13068 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13069 cp "$export_symbols" "$output_objdir/$soname.def";
13070 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13071 else
13072 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13073 fi~
13074 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13075 linknames='
13076 # The linker will not automatically build a static lib if we build a DLL.
13077 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13078 enable_shared_with_static_runtimes=yes
13079 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13081 # Don't use ranlib
13082 old_postinstall_cmds='chmod 644 $oldlib'
13083 postlink_cmds='lt_outputfile="@OUTPUT@"~
13084 lt_tool_outputfile="@TOOL_OUTPUT@"~
13085 case $lt_outputfile in
13086 *.exe|*.EXE) ;;
13087 *)
13088 lt_outputfile=$lt_outputfile.exe
13089 lt_tool_outputfile=$lt_tool_outputfile.exe
13090 ;;
13091 esac~
13092 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13093 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13094 $RM "$lt_outputfile.manifest";
13095 fi'
13096 ;;
13097 *)
13098 # Assume MSVC and ICC wrapper
13099 hardcode_libdir_flag_spec=' '
13100 allow_undefined_flag=unsupported
13101 # Tell ltmain to make .lib files, not .a files.
13102 libext=lib
13103 # Tell ltmain to make .dll files, not .so files.
13104 shrext_cmds=.dll
13105 # FIXME: Setting linknames here is a bad hack.
13106 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13107 # The linker will automatically build a .lib file if we build a DLL.
13108 old_archive_from_new_cmds='true'
13109 # FIXME: Should let the user specify the lib program.
13110 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13111 enable_shared_with_static_runtimes=yes
13112 ;;
13113 esac
13114 ;;
13115
13116 darwin* | rhapsody*)
13117
13118
13119 archive_cmds_need_lc=no
13120 hardcode_direct=no
13121 hardcode_automatic=yes
13122 hardcode_shlibpath_var=unsupported
13123 if test yes = "$lt_cv_ld_force_load"; then
13124 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\"`'
13125
13126 else
13127 whole_archive_flag_spec=''
13128 fi
13129 link_all_deplibs=yes
13130 allow_undefined_flag=$_lt_dar_allow_undefined
13131 case $cc_basename in
13132 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13133 *) _lt_dar_can_shared=$GCC ;;
13134 esac
13135 if test yes = "$_lt_dar_can_shared"; then
13136 output_verbose_link_cmd=func_echo_all
13137 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13138 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13139 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"
13140 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"
13141
13142 else
13143 ld_shlibs=no
13144 fi
13145
13146 ;;
13147
13148 dgux*)
13149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13150 hardcode_libdir_flag_spec='-L$libdir'
13151 hardcode_shlibpath_var=no
13152 ;;
13153
13154 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13155 # support. Future versions do this automatically, but an explicit c++rt0.o
13156 # does not break anything, and helps significantly (at the cost of a little
13157 # extra space).
13158 freebsd2.2*)
13159 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13160 hardcode_libdir_flag_spec='-R$libdir'
13161 hardcode_direct=yes
13162 hardcode_shlibpath_var=no
13163 ;;
13164
13165 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13166 freebsd2.*)
13167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13168 hardcode_direct=yes
13169 hardcode_minus_L=yes
13170 hardcode_shlibpath_var=no
13171 ;;
13172
13173 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13174 freebsd* | dragonfly* | midnightbsd*)
13175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13176 hardcode_libdir_flag_spec='-R$libdir'
13177 hardcode_direct=yes
13178 hardcode_shlibpath_var=no
13179 ;;
13180
13181 hpux9*)
13182 if test yes = "$GCC"; then
13183 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'
13184 else
13185 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'
13186 fi
13187 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13188 hardcode_libdir_separator=:
13189 hardcode_direct=yes
13190
13191 # hardcode_minus_L: Not really in the search PATH,
13192 # but as the default location of the library.
13193 hardcode_minus_L=yes
13194 export_dynamic_flag_spec='$wl-E'
13195 ;;
13196
13197 hpux10*)
13198 if test yes,no = "$GCC,$with_gnu_ld"; then
13199 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13200 else
13201 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13202 fi
13203 if test no = "$with_gnu_ld"; then
13204 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13205 hardcode_libdir_separator=:
13206 hardcode_direct=yes
13207 hardcode_direct_absolute=yes
13208 export_dynamic_flag_spec='$wl-E'
13209 # hardcode_minus_L: Not really in the search PATH,
13210 # but as the default location of the library.
13211 hardcode_minus_L=yes
13212 fi
13213 ;;
13214
13215 hpux11*)
13216 if test yes,no = "$GCC,$with_gnu_ld"; then
13217 case $host_cpu in
13218 hppa*64*)
13219 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13220 ;;
13221 ia64*)
13222 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13223 ;;
13224 *)
13225 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13226 ;;
13227 esac
13228 else
13229 case $host_cpu in
13230 hppa*64*)
13231 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13232 ;;
13233 ia64*)
13234 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13235 ;;
13236 *)
13237
13238 # Older versions of the 11.00 compiler do not understand -b yet
13239 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13241 printf %s "checking if $CC understands -b... " >&6; }
13242 if test ${lt_cv_prog_compiler__b+y}
13243 then :
13244 printf %s "(cached) " >&6
13245 else $as_nop
13246 lt_cv_prog_compiler__b=no
13247 save_LDFLAGS=$LDFLAGS
13248 LDFLAGS="$LDFLAGS -b"
13249 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13251 # The linker can only warn and ignore the option if not recognized
13252 # So say no if there are warnings
13253 if test -s conftest.err; then
13254 # Append any errors to the config.log.
13255 cat conftest.err 1>&5
13256 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13258 if diff conftest.exp conftest.er2 >/dev/null; then
13259 lt_cv_prog_compiler__b=yes
13260 fi
13261 else
13262 lt_cv_prog_compiler__b=yes
13263 fi
13264 fi
13265 $RM -r conftest*
13266 LDFLAGS=$save_LDFLAGS
13267
13268 fi
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13270 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13271
13272 if test yes = "$lt_cv_prog_compiler__b"; then
13273 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13274 else
13275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13276 fi
13277
13278 ;;
13279 esac
13280 fi
13281 if test no = "$with_gnu_ld"; then
13282 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13283 hardcode_libdir_separator=:
13284
13285 case $host_cpu in
13286 hppa*64*|ia64*)
13287 hardcode_direct=no
13288 hardcode_shlibpath_var=no
13289 ;;
13290 *)
13291 hardcode_direct=yes
13292 hardcode_direct_absolute=yes
13293 export_dynamic_flag_spec='$wl-E'
13294
13295 # hardcode_minus_L: Not really in the search PATH,
13296 # but as the default location of the library.
13297 hardcode_minus_L=yes
13298 ;;
13299 esac
13300 fi
13301 ;;
13302
13303 irix5* | irix6* | nonstopux*)
13304 if test yes = "$GCC"; then
13305 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'
13306 # Try to use the -exported_symbol ld option, if it does not
13307 # work, assume that -exports_file does not work either and
13308 # implicitly export all symbols.
13309 # This should be the same for all languages, so no per-tag cache variable.
13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13311 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13312 if test ${lt_cv_irix_exported_symbol+y}
13313 then :
13314 printf %s "(cached) " >&6
13315 else $as_nop
13316 save_LDFLAGS=$LDFLAGS
13317 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 int foo (void) { return 0; }
13321 _ACEOF
13322 if ac_fn_c_try_link "$LINENO"
13323 then :
13324 lt_cv_irix_exported_symbol=yes
13325 else $as_nop
13326 lt_cv_irix_exported_symbol=no
13327 fi
13328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LDFLAGS=$save_LDFLAGS
13331 fi
13332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13333 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13334 if test yes = "$lt_cv_irix_exported_symbol"; then
13335 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'
13336 fi
13337 link_all_deplibs=no
13338 else
13339 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'
13340 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'
13341 fi
13342 archive_cmds_need_lc='no'
13343 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13344 hardcode_libdir_separator=:
13345 inherit_rpath=yes
13346 link_all_deplibs=yes
13347 ;;
13348
13349 linux*)
13350 case $cc_basename in
13351 tcc*)
13352 # Fabrice Bellard et al's Tiny C Compiler
13353 ld_shlibs=yes
13354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13356 ;;
13357 esac
13358 ;;
13359
13360 netbsd* | netbsdelf*-gnu)
13361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13363 else
13364 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13365 fi
13366 hardcode_libdir_flag_spec='-R$libdir'
13367 hardcode_direct=yes
13368 hardcode_shlibpath_var=no
13369 ;;
13370
13371 newsos6)
13372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13373 hardcode_direct=yes
13374 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13375 hardcode_libdir_separator=:
13376 hardcode_shlibpath_var=no
13377 ;;
13378
13379 *nto* | *qnx*)
13380 ;;
13381
13382 openbsd* | bitrig*)
13383 if test -f /usr/libexec/ld.so; then
13384 hardcode_direct=yes
13385 hardcode_shlibpath_var=no
13386 hardcode_direct_absolute=yes
13387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13389 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13390 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13391 export_dynamic_flag_spec='$wl-E'
13392 else
13393 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13394 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13395 fi
13396 else
13397 ld_shlibs=no
13398 fi
13399 ;;
13400
13401 os2*)
13402 hardcode_libdir_flag_spec='-L$libdir'
13403 hardcode_minus_L=yes
13404 allow_undefined_flag=unsupported
13405 shrext_cmds=.dll
13406 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13407 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13408 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13409 $ECHO EXPORTS >> $output_objdir/$libname.def~
13410 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13411 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13412 emximp -o $lib $output_objdir/$libname.def'
13413 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13414 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13415 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13416 $ECHO EXPORTS >> $output_objdir/$libname.def~
13417 prefix_cmds="$SED"~
13418 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13419 prefix_cmds="$prefix_cmds -e 1d";
13420 fi~
13421 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13422 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13423 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13424 emximp -o $lib $output_objdir/$libname.def'
13425 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13426 enable_shared_with_static_runtimes=yes
13427 file_list_spec='@'
13428 ;;
13429
13430 osf3*)
13431 if test yes = "$GCC"; then
13432 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13433 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'
13434 else
13435 allow_undefined_flag=' -expect_unresolved \*'
13436 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'
13437 fi
13438 archive_cmds_need_lc='no'
13439 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13440 hardcode_libdir_separator=:
13441 ;;
13442
13443 osf4* | osf5*) # as osf3* with the addition of -msym flag
13444 if test yes = "$GCC"; then
13445 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13446 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'
13447 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13448 else
13449 allow_undefined_flag=' -expect_unresolved \*'
13450 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'
13451 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~
13452 $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'
13453
13454 # Both c and cxx compiler support -rpath directly
13455 hardcode_libdir_flag_spec='-rpath $libdir'
13456 fi
13457 archive_cmds_need_lc='no'
13458 hardcode_libdir_separator=:
13459 ;;
13460
13461 solaris*)
13462 no_undefined_flag=' -z defs'
13463 if test yes = "$GCC"; then
13464 wlarc='$wl'
13465 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13467 $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'
13468 else
13469 case `$CC -V 2>&1` in
13470 *"Compilers 5.0"*)
13471 wlarc=''
13472 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13473 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13474 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13475 ;;
13476 *)
13477 wlarc='$wl'
13478 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13479 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13480 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13481 ;;
13482 esac
13483 fi
13484 hardcode_libdir_flag_spec='-R$libdir'
13485 hardcode_shlibpath_var=no
13486 case $host_os in
13487 solaris2.[0-5] | solaris2.[0-5].*) ;;
13488 *)
13489 # The compiler driver will combine and reorder linker options,
13490 # but understands '-z linker_flag'. GCC discards it without '$wl',
13491 # but is careful enough not to reorder.
13492 # Supported since Solaris 2.6 (maybe 2.5.1?)
13493 if test yes = "$GCC"; then
13494 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13495 else
13496 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13497 fi
13498 ;;
13499 esac
13500 link_all_deplibs=yes
13501 ;;
13502
13503 sunos4*)
13504 if test sequent = "$host_vendor"; then
13505 # Use $CC to link under sequent, because it throws in some extra .o
13506 # files that make .init and .fini sections work.
13507 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13508 else
13509 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13510 fi
13511 hardcode_libdir_flag_spec='-L$libdir'
13512 hardcode_direct=yes
13513 hardcode_minus_L=yes
13514 hardcode_shlibpath_var=no
13515 ;;
13516
13517 sysv4)
13518 case $host_vendor in
13519 sni)
13520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13521 hardcode_direct=yes # is this really true???
13522 ;;
13523 siemens)
13524 ## LD is ld it makes a PLAMLIB
13525 ## CC just makes a GrossModule.
13526 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13527 reload_cmds='$CC -r -o $output$reload_objs'
13528 hardcode_direct=no
13529 ;;
13530 motorola)
13531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13533 ;;
13534 esac
13535 runpath_var='LD_RUN_PATH'
13536 hardcode_shlibpath_var=no
13537 ;;
13538
13539 sysv4.3*)
13540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13541 hardcode_shlibpath_var=no
13542 export_dynamic_flag_spec='-Bexport'
13543 ;;
13544
13545 sysv4*MP*)
13546 if test -d /usr/nec; then
13547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 hardcode_shlibpath_var=no
13549 runpath_var=LD_RUN_PATH
13550 hardcode_runpath_var=yes
13551 ld_shlibs=yes
13552 fi
13553 ;;
13554
13555 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13556 no_undefined_flag='$wl-z,text'
13557 archive_cmds_need_lc=no
13558 hardcode_shlibpath_var=no
13559 runpath_var='LD_RUN_PATH'
13560
13561 if test yes = "$GCC"; then
13562 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13563 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13564 else
13565 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13566 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13567 fi
13568 ;;
13569
13570 sysv5* | sco3.2v5* | sco5v6*)
13571 # Note: We CANNOT use -z defs as we might desire, because we do not
13572 # link with -lc, and that would cause any symbols used from libc to
13573 # always be unresolved, which means just about no library would
13574 # ever link correctly. If we're not using GNU ld we use -z text
13575 # though, which does catch some bad symbols but isn't as heavy-handed
13576 # as -z defs.
13577 no_undefined_flag='$wl-z,text'
13578 allow_undefined_flag='$wl-z,nodefs'
13579 archive_cmds_need_lc=no
13580 hardcode_shlibpath_var=no
13581 hardcode_libdir_flag_spec='$wl-R,$libdir'
13582 hardcode_libdir_separator=':'
13583 link_all_deplibs=yes
13584 export_dynamic_flag_spec='$wl-Bexport'
13585 runpath_var='LD_RUN_PATH'
13586
13587 if test yes = "$GCC"; then
13588 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13590 else
13591 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13592 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13593 fi
13594 ;;
13595
13596 uts4*)
13597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13598 hardcode_libdir_flag_spec='-L$libdir'
13599 hardcode_shlibpath_var=no
13600 ;;
13601
13602 *)
13603 ld_shlibs=no
13604 ;;
13605 esac
13606
13607 if test sni = "$host_vendor"; then
13608 case $host in
13609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13610 export_dynamic_flag_spec='$wl-Blargedynsym'
13611 ;;
13612 esac
13613 fi
13614 fi
13615
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13617 printf "%s\n" "$ld_shlibs" >&6; }
13618 test no = "$ld_shlibs" && can_build_shared=no
13619
13620 with_gnu_ld=$with_gnu_ld
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636 #
13637 # Do we need to explicitly link libc?
13638 #
13639 case "x$archive_cmds_need_lc" in
13640 x|xyes)
13641 # Assume -lc should be added
13642 archive_cmds_need_lc=yes
13643
13644 if test yes,yes = "$GCC,$enable_shared"; then
13645 case $archive_cmds in
13646 *'~'*)
13647 # FIXME: we may have to deal with multi-command sequences.
13648 ;;
13649 '$CC '*)
13650 # Test whether the compiler implicitly links with -lc since on some
13651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13652 # to ld, don't add -lc before -lgcc.
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13654 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13655 if test ${lt_cv_archive_cmds_need_lc+y}
13656 then :
13657 printf %s "(cached) " >&6
13658 else $as_nop
13659 $RM conftest*
13660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13661
13662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13663 (eval $ac_compile) 2>&5
13664 ac_status=$?
13665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13666 test $ac_status = 0; } 2>conftest.err; then
13667 soname=conftest
13668 lib=conftest
13669 libobjs=conftest.$ac_objext
13670 deplibs=
13671 wl=$lt_prog_compiler_wl
13672 pic_flag=$lt_prog_compiler_pic
13673 compiler_flags=-v
13674 linker_flags=-v
13675 verstring=
13676 output_objdir=.
13677 libname=conftest
13678 lt_save_allow_undefined_flag=$allow_undefined_flag
13679 allow_undefined_flag=
13680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13681 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13682 ac_status=$?
13683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13684 test $ac_status = 0; }
13685 then
13686 lt_cv_archive_cmds_need_lc=no
13687 else
13688 lt_cv_archive_cmds_need_lc=yes
13689 fi
13690 allow_undefined_flag=$lt_save_allow_undefined_flag
13691 else
13692 cat conftest.err 1>&5
13693 fi
13694 $RM conftest*
13695
13696 fi
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13698 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13699 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13700 ;;
13701 esac
13702 fi
13703 ;;
13704 esac
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13858 printf %s "checking dynamic linker characteristics... " >&6; }
13859
13860 if test yes = "$GCC"; then
13861 case $host_os in
13862 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13863 *) lt_awk_arg='/^libraries:/' ;;
13864 esac
13865 case $host_os in
13866 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13867 *) lt_sed_strip_eq='s|=/|/|g' ;;
13868 esac
13869 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13870 case $lt_search_path_spec in
13871 *\;*)
13872 # if the path contains ";" then we assume it to be the separator
13873 # otherwise default to the standard path separator (i.e. ":") - it is
13874 # assumed that no part of a normal pathname contains ";" but that should
13875 # okay in the real world where ";" in dirpaths is itself problematic.
13876 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13877 ;;
13878 *)
13879 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13880 ;;
13881 esac
13882 # Ok, now we have the path, separated by spaces, we can step through it
13883 # and add multilib dir if necessary...
13884 lt_tmp_lt_search_path_spec=
13885 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13886 # ...but if some path component already ends with the multilib dir we assume
13887 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13888 case "$lt_multi_os_dir; $lt_search_path_spec " in
13889 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13890 lt_multi_os_dir=
13891 ;;
13892 esac
13893 for lt_sys_path in $lt_search_path_spec; do
13894 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13896 elif test -n "$lt_multi_os_dir"; then
13897 test -d "$lt_sys_path" && \
13898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13899 fi
13900 done
13901 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13902 BEGIN {RS = " "; FS = "/|\n";} {
13903 lt_foo = "";
13904 lt_count = 0;
13905 for (lt_i = NF; lt_i > 0; lt_i--) {
13906 if ($lt_i != "" && $lt_i != ".") {
13907 if ($lt_i == "..") {
13908 lt_count++;
13909 } else {
13910 if (lt_count == 0) {
13911 lt_foo = "/" $lt_i lt_foo;
13912 } else {
13913 lt_count--;
13914 }
13915 }
13916 }
13917 }
13918 if (lt_foo != "") { lt_freq[lt_foo]++; }
13919 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13920 }'`
13921 # AWK program above erroneously prepends '/' to C:/dos/paths
13922 # for these hosts.
13923 case $host_os in
13924 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13925 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13926 esac
13927 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13928 else
13929 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13930 fi
13931 library_names_spec=
13932 libname_spec='lib$name'
13933 soname_spec=
13934 shrext_cmds=.so
13935 postinstall_cmds=
13936 postuninstall_cmds=
13937 finish_cmds=
13938 finish_eval=
13939 shlibpath_var=
13940 shlibpath_overrides_runpath=unknown
13941 version_type=none
13942 dynamic_linker="$host_os ld.so"
13943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13944 need_lib_prefix=unknown
13945 hardcode_into_libs=no
13946
13947 # when you set need_version to no, make sure it does not cause -set_version
13948 # flags to be left without arguments
13949 need_version=unknown
13950
13951
13952
13953 case $host_os in
13954 aix3*)
13955 version_type=linux # correct to gnu/linux during the next big refactor
13956 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13957 shlibpath_var=LIBPATH
13958
13959 # AIX 3 has no versioning support, so we append a major version to the name.
13960 soname_spec='$libname$release$shared_ext$major'
13961 ;;
13962
13963 aix[4-9]*)
13964 version_type=linux # correct to gnu/linux during the next big refactor
13965 need_lib_prefix=no
13966 need_version=no
13967 hardcode_into_libs=yes
13968 if test ia64 = "$host_cpu"; then
13969 # AIX 5 supports IA64
13970 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13971 shlibpath_var=LD_LIBRARY_PATH
13972 else
13973 # With GCC up to 2.95.x, collect2 would create an import file
13974 # for dependence libraries. The import file would start with
13975 # the line '#! .'. This would cause the generated library to
13976 # depend on '.', always an invalid library. This was fixed in
13977 # development snapshots of GCC prior to 3.0.
13978 case $host_os in
13979 aix4 | aix4.[01] | aix4.[01].*)
13980 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13981 echo ' yes '
13982 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13983 :
13984 else
13985 can_build_shared=no
13986 fi
13987 ;;
13988 esac
13989 # Using Import Files as archive members, it is possible to support
13990 # filename-based versioning of shared library archives on AIX. While
13991 # this would work for both with and without runtime linking, it will
13992 # prevent static linking of such archives. So we do filename-based
13993 # shared library versioning with .so extension only, which is used
13994 # when both runtime linking and shared linking is enabled.
13995 # Unfortunately, runtime linking may impact performance, so we do
13996 # not want this to be the default eventually. Also, we use the
13997 # versioned .so libs for executables only if there is the -brtl
13998 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13999 # To allow for filename-based versioning support, we need to create
14000 # libNAME.so.V as an archive file, containing:
14001 # *) an Import File, referring to the versioned filename of the
14002 # archive as well as the shared archive member, telling the
14003 # bitwidth (32 or 64) of that shared object, and providing the
14004 # list of exported symbols of that shared object, eventually
14005 # decorated with the 'weak' keyword
14006 # *) the shared object with the F_LOADONLY flag set, to really avoid
14007 # it being seen by the linker.
14008 # At run time we better use the real file rather than another symlink,
14009 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14010
14011 case $with_aix_soname,$aix_use_runtimelinking in
14012 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14013 # soname into executable. Probably we can add versioning support to
14014 # collect2, so additional links can be useful in future.
14015 aix,yes) # traditional libtool
14016 dynamic_linker='AIX unversionable lib.so'
14017 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14018 # instead of lib<name>.a to let people know that these are not
14019 # typical AIX shared libraries.
14020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14021 ;;
14022 aix,no) # traditional AIX only
14023 dynamic_linker='AIX lib.a(lib.so.V)'
14024 # We preserve .a as extension for shared libraries through AIX4.2
14025 # and later when we are not doing run time linking.
14026 library_names_spec='$libname$release.a $libname.a'
14027 soname_spec='$libname$release$shared_ext$major'
14028 ;;
14029 svr4,*) # full svr4 only
14030 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14031 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14032 # We do not specify a path in Import Files, so LIBPATH fires.
14033 shlibpath_overrides_runpath=yes
14034 ;;
14035 *,yes) # both, prefer svr4
14036 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14037 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14038 # unpreferred sharedlib libNAME.a needs extra handling
14039 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"'
14040 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"'
14041 # We do not specify a path in Import Files, so LIBPATH fires.
14042 shlibpath_overrides_runpath=yes
14043 ;;
14044 *,no) # both, prefer aix
14045 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14046 library_names_spec='$libname$release.a $libname.a'
14047 soname_spec='$libname$release$shared_ext$major'
14048 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14049 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)'
14050 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"'
14051 ;;
14052 esac
14053 shlibpath_var=LIBPATH
14054 fi
14055 ;;
14056
14057 amigaos*)
14058 case $host_cpu in
14059 powerpc)
14060 # Since July 2007 AmigaOS4 officially supports .so libraries.
14061 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14063 ;;
14064 m68k)
14065 library_names_spec='$libname.ixlibrary $libname.a'
14066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14067 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'
14068 ;;
14069 esac
14070 ;;
14071
14072 beos*)
14073 library_names_spec='$libname$shared_ext'
14074 dynamic_linker="$host_os ld.so"
14075 shlibpath_var=LIBRARY_PATH
14076 ;;
14077
14078 bsdi[45]*)
14079 version_type=linux # correct to gnu/linux during the next big refactor
14080 need_version=no
14081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14082 soname_spec='$libname$release$shared_ext$major'
14083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14084 shlibpath_var=LD_LIBRARY_PATH
14085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14087 # the default ld.so.conf also contains /usr/contrib/lib and
14088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14089 # libtool to hard-code these into programs
14090 ;;
14091
14092 cygwin* | mingw* | pw32* | cegcc*)
14093 version_type=windows
14094 shrext_cmds=.dll
14095 need_version=no
14096 need_lib_prefix=no
14097
14098 case $GCC,$cc_basename in
14099 yes,*)
14100 # gcc
14101 library_names_spec='$libname.dll.a'
14102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14103 postinstall_cmds='base_file=`basename \$file`~
14104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14105 dldir=$destdir/`dirname \$dlpath`~
14106 test -d \$dldir || mkdir -p \$dldir~
14107 $install_prog $dir/$dlname \$dldir/$dlname~
14108 chmod a+x \$dldir/$dlname~
14109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14111 fi'
14112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14113 dlpath=$dir/\$dldll~
14114 $RM \$dlpath'
14115 shlibpath_overrides_runpath=yes
14116
14117 case $host_os in
14118 cygwin*)
14119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14120 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14121
14122 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14123 ;;
14124 mingw* | cegcc*)
14125 # MinGW DLLs use traditional 'lib' prefix
14126 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14127 ;;
14128 pw32*)
14129 # pw32 DLLs use 'pw' prefix rather than 'lib'
14130 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14131 ;;
14132 esac
14133 dynamic_linker='Win32 ld.exe'
14134 ;;
14135
14136 *,cl* | *,icl*)
14137 # Native MSVC or ICC
14138 libname_spec='$name'
14139 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14140 library_names_spec='$libname.dll.lib'
14141
14142 case $build_os in
14143 mingw*)
14144 sys_lib_search_path_spec=
14145 lt_save_ifs=$IFS
14146 IFS=';'
14147 for lt_path in $LIB
14148 do
14149 IFS=$lt_save_ifs
14150 # Let DOS variable expansion print the short 8.3 style file name.
14151 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14152 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14153 done
14154 IFS=$lt_save_ifs
14155 # Convert to MSYS style.
14156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14157 ;;
14158 cygwin*)
14159 # Convert to unix form, then to dos form, then back to unix form
14160 # but this time dos style (no spaces!) so that the unix form looks
14161 # like /cygdrive/c/PROGRA~1:/cygdr...
14162 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14163 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14164 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14165 ;;
14166 *)
14167 sys_lib_search_path_spec=$LIB
14168 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14169 # It is most probably a Windows format PATH.
14170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14171 else
14172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14173 fi
14174 # FIXME: find the short name or the path components, as spaces are
14175 # common. (e.g. "Program Files" -> "PROGRA~1")
14176 ;;
14177 esac
14178
14179 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14180 postinstall_cmds='base_file=`basename \$file`~
14181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14182 dldir=$destdir/`dirname \$dlpath`~
14183 test -d \$dldir || mkdir -p \$dldir~
14184 $install_prog $dir/$dlname \$dldir/$dlname'
14185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14186 dlpath=$dir/\$dldll~
14187 $RM \$dlpath'
14188 shlibpath_overrides_runpath=yes
14189 dynamic_linker='Win32 link.exe'
14190 ;;
14191
14192 *)
14193 # Assume MSVC and ICC wrapper
14194 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14195 dynamic_linker='Win32 ld.exe'
14196 ;;
14197 esac
14198 # FIXME: first we should search . and the directory the executable is in
14199 shlibpath_var=PATH
14200 ;;
14201
14202 darwin* | rhapsody*)
14203 dynamic_linker="$host_os dyld"
14204 version_type=darwin
14205 need_lib_prefix=no
14206 need_version=no
14207 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14208 soname_spec='$libname$release$major$shared_ext'
14209 shlibpath_overrides_runpath=yes
14210 shlibpath_var=DYLD_LIBRARY_PATH
14211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14212
14213 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14215 ;;
14216
14217 dgux*)
14218 version_type=linux # correct to gnu/linux during the next big refactor
14219 need_lib_prefix=no
14220 need_version=no
14221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14222 soname_spec='$libname$release$shared_ext$major'
14223 shlibpath_var=LD_LIBRARY_PATH
14224 ;;
14225
14226 freebsd* | dragonfly* | midnightbsd*)
14227 # DragonFly does not have aout. When/if they implement a new
14228 # versioning mechanism, adjust this.
14229 if test -x /usr/bin/objformat; then
14230 objformat=`/usr/bin/objformat`
14231 else
14232 case $host_os in
14233 freebsd[23].*) objformat=aout ;;
14234 *) objformat=elf ;;
14235 esac
14236 fi
14237 version_type=freebsd-$objformat
14238 case $version_type in
14239 freebsd-elf*)
14240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14241 soname_spec='$libname$release$shared_ext$major'
14242 need_version=no
14243 need_lib_prefix=no
14244 ;;
14245 freebsd-*)
14246 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14247 need_version=yes
14248 ;;
14249 esac
14250 shlibpath_var=LD_LIBRARY_PATH
14251 case $host_os in
14252 freebsd2.*)
14253 shlibpath_overrides_runpath=yes
14254 ;;
14255 freebsd3.[01]* | freebsdelf3.[01]*)
14256 shlibpath_overrides_runpath=yes
14257 hardcode_into_libs=yes
14258 ;;
14259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14261 shlibpath_overrides_runpath=no
14262 hardcode_into_libs=yes
14263 ;;
14264 *) # from 4.6 on, and DragonFly
14265 shlibpath_overrides_runpath=yes
14266 hardcode_into_libs=yes
14267 ;;
14268 esac
14269 ;;
14270
14271 haiku*)
14272 version_type=linux # correct to gnu/linux during the next big refactor
14273 need_lib_prefix=no
14274 need_version=no
14275 dynamic_linker="$host_os runtime_loader"
14276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14277 soname_spec='$libname$release$shared_ext$major'
14278 shlibpath_var=LIBRARY_PATH
14279 shlibpath_overrides_runpath=no
14280 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14281 hardcode_into_libs=yes
14282 ;;
14283
14284 hpux9* | hpux10* | hpux11*)
14285 # Give a soname corresponding to the major version so that dld.sl refuses to
14286 # link against other versions.
14287 version_type=sunos
14288 need_lib_prefix=no
14289 need_version=no
14290 case $host_cpu in
14291 ia64*)
14292 shrext_cmds='.so'
14293 hardcode_into_libs=yes
14294 dynamic_linker="$host_os dld.so"
14295 shlibpath_var=LD_LIBRARY_PATH
14296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14298 soname_spec='$libname$release$shared_ext$major'
14299 if test 32 = "$HPUX_IA64_MODE"; then
14300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14301 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14302 else
14303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14304 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14305 fi
14306 ;;
14307 hppa*64*)
14308 shrext_cmds='.sl'
14309 hardcode_into_libs=yes
14310 dynamic_linker="$host_os dld.sl"
14311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14314 soname_spec='$libname$release$shared_ext$major'
14315 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14317 ;;
14318 *)
14319 shrext_cmds='.sl'
14320 dynamic_linker="$host_os dld.sl"
14321 shlibpath_var=SHLIB_PATH
14322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14324 soname_spec='$libname$release$shared_ext$major'
14325 ;;
14326 esac
14327 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14328 postinstall_cmds='chmod 555 $lib'
14329 # or fails outright, so override atomically:
14330 install_override_mode=555
14331 ;;
14332
14333 interix[3-9]*)
14334 version_type=linux # correct to gnu/linux during the next big refactor
14335 need_lib_prefix=no
14336 need_version=no
14337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14338 soname_spec='$libname$release$shared_ext$major'
14339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14340 shlibpath_var=LD_LIBRARY_PATH
14341 shlibpath_overrides_runpath=no
14342 hardcode_into_libs=yes
14343 ;;
14344
14345 irix5* | irix6* | nonstopux*)
14346 case $host_os in
14347 nonstopux*) version_type=nonstopux ;;
14348 *)
14349 if test yes = "$lt_cv_prog_gnu_ld"; then
14350 version_type=linux # correct to gnu/linux during the next big refactor
14351 else
14352 version_type=irix
14353 fi ;;
14354 esac
14355 need_lib_prefix=no
14356 need_version=no
14357 soname_spec='$libname$release$shared_ext$major'
14358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14359 case $host_os in
14360 irix5* | nonstopux*)
14361 libsuff= shlibsuff=
14362 ;;
14363 *)
14364 case $LD in # libtool.m4 will add one of these switches to LD
14365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14366 libsuff= shlibsuff= libmagic=32-bit;;
14367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14368 libsuff=32 shlibsuff=N32 libmagic=N32;;
14369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14371 *) libsuff= shlibsuff= libmagic=never-match;;
14372 esac
14373 ;;
14374 esac
14375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14376 shlibpath_overrides_runpath=no
14377 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14378 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14379 hardcode_into_libs=yes
14380 ;;
14381
14382 # No shared lib support for Linux oldld, aout, or coff.
14383 linux*oldld* | linux*aout* | linux*coff*)
14384 dynamic_linker=no
14385 ;;
14386
14387 linux*android*)
14388 version_type=none # Android doesn't support versioned libraries.
14389 need_lib_prefix=no
14390 need_version=no
14391 library_names_spec='$libname$release$shared_ext'
14392 soname_spec='$libname$release$shared_ext'
14393 finish_cmds=
14394 shlibpath_var=LD_LIBRARY_PATH
14395 shlibpath_overrides_runpath=yes
14396
14397 # This implies no fast_install, which is unacceptable.
14398 # Some rework will be needed to allow for fast_install
14399 # before this can be enabled.
14400 hardcode_into_libs=yes
14401
14402 dynamic_linker='Android linker'
14403 # Don't embed -rpath directories since the linker doesn't support them.
14404 hardcode_libdir_flag_spec='-L$libdir'
14405 ;;
14406
14407 # This must be glibc/ELF.
14408 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14409 version_type=linux # correct to gnu/linux during the next big refactor
14410 need_lib_prefix=no
14411 need_version=no
14412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14413 soname_spec='$libname$release$shared_ext$major'
14414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14415 shlibpath_var=LD_LIBRARY_PATH
14416 shlibpath_overrides_runpath=no
14417
14418 # Some binutils ld are patched to set DT_RUNPATH
14419 if test ${lt_cv_shlibpath_overrides_runpath+y}
14420 then :
14421 printf %s "(cached) " >&6
14422 else $as_nop
14423 lt_cv_shlibpath_overrides_runpath=no
14424 save_LDFLAGS=$LDFLAGS
14425 save_libdir=$libdir
14426 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14427 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430
14431 int
14432 main (void)
14433 {
14434
14435 ;
14436 return 0;
14437 }
14438 _ACEOF
14439 if ac_fn_c_try_link "$LINENO"
14440 then :
14441 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14442 then :
14443 lt_cv_shlibpath_overrides_runpath=yes
14444 fi
14445 fi
14446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14447 conftest$ac_exeext conftest.$ac_ext
14448 LDFLAGS=$save_LDFLAGS
14449 libdir=$save_libdir
14450
14451 fi
14452
14453 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14454
14455 # This implies no fast_install, which is unacceptable.
14456 # Some rework will be needed to allow for fast_install
14457 # before this can be enabled.
14458 hardcode_into_libs=yes
14459
14460 # Ideally, we could use ldconfig to report *all* directores which are
14461 # searched for libraries, however this is still not possible. Aside from not
14462 # being certain /sbin/ldconfig is available, command
14463 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14464 # even though it is searched at run-time. Try to do the best guess by
14465 # appending ld.so.conf contents (and includes) to the search path.
14466 if test -f /etc/ld.so.conf; then
14467 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' ' '`
14468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14469 fi
14470
14471 # We used to test for /lib/ld.so.1 and disable shared libraries on
14472 # powerpc, because MkLinux only supported shared libraries with the
14473 # GNU dynamic linker. Since this was broken with cross compilers,
14474 # most powerpc-linux boxes support dynamic linking these days and
14475 # people can always --disable-shared, the test was removed, and we
14476 # assume the GNU/Linux dynamic linker is in use.
14477 dynamic_linker='GNU/Linux ld.so'
14478 ;;
14479
14480 netbsdelf*-gnu)
14481 version_type=linux
14482 need_lib_prefix=no
14483 need_version=no
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=no
14488 hardcode_into_libs=yes
14489 dynamic_linker='NetBSD ld.elf_so'
14490 ;;
14491
14492 netbsd*)
14493 version_type=sunos
14494 need_lib_prefix=no
14495 need_version=no
14496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14497 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14499 dynamic_linker='NetBSD (a.out) ld.so'
14500 else
14501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14502 soname_spec='$libname$release$shared_ext$major'
14503 dynamic_linker='NetBSD ld.elf_so'
14504 fi
14505 shlibpath_var=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath=yes
14507 hardcode_into_libs=yes
14508 ;;
14509
14510 newsos6)
14511 version_type=linux # correct to gnu/linux during the next big refactor
14512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 shlibpath_overrides_runpath=yes
14515 ;;
14516
14517 *nto* | *qnx*)
14518 version_type=qnx
14519 need_lib_prefix=no
14520 need_version=no
14521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14522 soname_spec='$libname$release$shared_ext$major'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 shlibpath_overrides_runpath=no
14525 hardcode_into_libs=yes
14526 dynamic_linker='ldqnx.so'
14527 ;;
14528
14529 openbsd* | bitrig*)
14530 version_type=sunos
14531 sys_lib_dlsearch_path_spec=/usr/lib
14532 need_lib_prefix=no
14533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14534 need_version=no
14535 else
14536 need_version=yes
14537 fi
14538 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 shlibpath_overrides_runpath=yes
14542 ;;
14543
14544 os2*)
14545 libname_spec='$name'
14546 version_type=windows
14547 shrext_cmds=.dll
14548 need_version=no
14549 need_lib_prefix=no
14550 # OS/2 can only load a DLL with a base name of 8 characters or less.
14551 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14552 v=$($ECHO $release$versuffix | tr -d .-);
14553 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14554 $ECHO $n$v`$shared_ext'
14555 library_names_spec='${libname}_dll.$libext'
14556 dynamic_linker='OS/2 ld.exe'
14557 shlibpath_var=BEGINLIBPATH
14558 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14560 postinstall_cmds='base_file=`basename \$file`~
14561 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14562 dldir=$destdir/`dirname \$dlpath`~
14563 test -d \$dldir || mkdir -p \$dldir~
14564 $install_prog $dir/$dlname \$dldir/$dlname~
14565 chmod a+x \$dldir/$dlname~
14566 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14567 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14568 fi'
14569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14570 dlpath=$dir/\$dldll~
14571 $RM \$dlpath'
14572 ;;
14573
14574 osf3* | osf4* | osf5*)
14575 version_type=osf
14576 need_lib_prefix=no
14577 need_version=no
14578 soname_spec='$libname$release$shared_ext$major'
14579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14580 shlibpath_var=LD_LIBRARY_PATH
14581 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14583 ;;
14584
14585 rdos*)
14586 dynamic_linker=no
14587 ;;
14588
14589 solaris*)
14590 version_type=linux # correct to gnu/linux during the next big refactor
14591 need_lib_prefix=no
14592 need_version=no
14593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14594 soname_spec='$libname$release$shared_ext$major'
14595 shlibpath_var=LD_LIBRARY_PATH
14596 shlibpath_overrides_runpath=yes
14597 hardcode_into_libs=yes
14598 # ldd complains unless libraries are executable
14599 postinstall_cmds='chmod +x $lib'
14600 ;;
14601
14602 sunos4*)
14603 version_type=sunos
14604 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14605 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14606 shlibpath_var=LD_LIBRARY_PATH
14607 shlibpath_overrides_runpath=yes
14608 if test yes = "$with_gnu_ld"; then
14609 need_lib_prefix=no
14610 fi
14611 need_version=yes
14612 ;;
14613
14614 sysv4 | sysv4.3*)
14615 version_type=linux # correct to gnu/linux during the next big refactor
14616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14617 soname_spec='$libname$release$shared_ext$major'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 case $host_vendor in
14620 sni)
14621 shlibpath_overrides_runpath=no
14622 need_lib_prefix=no
14623 runpath_var=LD_RUN_PATH
14624 ;;
14625 siemens)
14626 need_lib_prefix=no
14627 ;;
14628 motorola)
14629 need_lib_prefix=no
14630 need_version=no
14631 shlibpath_overrides_runpath=no
14632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14633 ;;
14634 esac
14635 ;;
14636
14637 sysv4*MP*)
14638 if test -d /usr/nec; then
14639 version_type=linux # correct to gnu/linux during the next big refactor
14640 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14641 soname_spec='$libname$shared_ext.$major'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 fi
14644 ;;
14645
14646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14647 version_type=sco
14648 need_lib_prefix=no
14649 need_version=no
14650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14651 soname_spec='$libname$release$shared_ext$major'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14654 hardcode_into_libs=yes
14655 if test yes = "$with_gnu_ld"; then
14656 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14657 else
14658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14659 case $host_os in
14660 sco3.2v5*)
14661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14662 ;;
14663 esac
14664 fi
14665 sys_lib_dlsearch_path_spec='/usr/lib'
14666 ;;
14667
14668 tpf*)
14669 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14670 version_type=linux # correct to gnu/linux during the next big refactor
14671 need_lib_prefix=no
14672 need_version=no
14673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 shlibpath_overrides_runpath=no
14676 hardcode_into_libs=yes
14677 ;;
14678
14679 uts4*)
14680 version_type=linux # correct to gnu/linux during the next big refactor
14681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14682 soname_spec='$libname$release$shared_ext$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 ;;
14685
14686 *)
14687 dynamic_linker=no
14688 ;;
14689 esac
14690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14691 printf "%s\n" "$dynamic_linker" >&6; }
14692 test no = "$dynamic_linker" && can_build_shared=no
14693
14694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14695 if test yes = "$GCC"; then
14696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14697 fi
14698
14699 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14700 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14701 fi
14702
14703 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14704 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14705 fi
14706
14707 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14708 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14709
14710 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14711 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14712
14713 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14714 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14813 printf %s "checking how to hardcode library paths into programs... " >&6; }
14814 hardcode_action=
14815 if test -n "$hardcode_libdir_flag_spec" ||
14816 test -n "$runpath_var" ||
14817 test yes = "$hardcode_automatic"; then
14818
14819 # We can hardcode non-existent directories.
14820 if test no != "$hardcode_direct" &&
14821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14822 # have to relink, otherwise we might link with an installed library
14823 # when we should be linking with a yet-to-be-installed one
14824 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14825 test no != "$hardcode_minus_L"; then
14826 # Linking always hardcodes the temporary library directory.
14827 hardcode_action=relink
14828 else
14829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14830 hardcode_action=immediate
14831 fi
14832 else
14833 # We cannot hardcode anything, or else we can only hardcode existing
14834 # directories.
14835 hardcode_action=unsupported
14836 fi
14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14838 printf "%s\n" "$hardcode_action" >&6; }
14839
14840 if test relink = "$hardcode_action" ||
14841 test yes = "$inherit_rpath"; then
14842 # Fast installation is not supported
14843 enable_fast_install=no
14844 elif test yes = "$shlibpath_overrides_runpath" ||
14845 test no = "$enable_shared"; then
14846 # Fast installation is not necessary
14847 enable_fast_install=needless
14848 fi
14849
14850
14851
14852
14853
14854
14855 if test yes != "$enable_dlopen"; then
14856 enable_dlopen=unknown
14857 enable_dlopen_self=unknown
14858 enable_dlopen_self_static=unknown
14859 else
14860 lt_cv_dlopen=no
14861 lt_cv_dlopen_libs=
14862
14863 case $host_os in
14864 beos*)
14865 lt_cv_dlopen=load_add_on
14866 lt_cv_dlopen_libs=
14867 lt_cv_dlopen_self=yes
14868 ;;
14869
14870 mingw* | pw32* | cegcc*)
14871 lt_cv_dlopen=LoadLibrary
14872 lt_cv_dlopen_libs=
14873 ;;
14874
14875 cygwin*)
14876 lt_cv_dlopen=dlopen
14877 lt_cv_dlopen_libs=
14878 ;;
14879
14880 darwin*)
14881 # if libdl is installed we need to link against it
14882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14883 printf %s "checking for dlopen in -ldl... " >&6; }
14884 if test ${ac_cv_lib_dl_dlopen+y}
14885 then :
14886 printf %s "(cached) " >&6
14887 else $as_nop
14888 ac_check_lib_save_LIBS=$LIBS
14889 LIBS="-ldl $LIBS"
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892
14893 /* Override any GCC internal prototype to avoid an error.
14894 Use char because int might match the return type of a GCC
14895 builtin and then its argument prototype would still apply. */
14896 char dlopen ();
14897 int
14898 main (void)
14899 {
14900 return dlopen ();
14901 ;
14902 return 0;
14903 }
14904 _ACEOF
14905 if ac_fn_c_try_link "$LINENO"
14906 then :
14907 ac_cv_lib_dl_dlopen=yes
14908 else $as_nop
14909 ac_cv_lib_dl_dlopen=no
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14912 conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14914 fi
14915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14916 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14917 if test "x$ac_cv_lib_dl_dlopen" = xyes
14918 then :
14919 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14920 else $as_nop
14921
14922 lt_cv_dlopen=dyld
14923 lt_cv_dlopen_libs=
14924 lt_cv_dlopen_self=yes
14925
14926 fi
14927
14928 ;;
14929
14930 tpf*)
14931 # Don't try to run any link tests for TPF. We know it's impossible
14932 # because TPF is a cross-compiler, and we know how we open DSOs.
14933 lt_cv_dlopen=dlopen
14934 lt_cv_dlopen_libs=
14935 lt_cv_dlopen_self=no
14936 ;;
14937
14938 *)
14939 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14940 if test "x$ac_cv_func_shl_load" = xyes
14941 then :
14942 lt_cv_dlopen=shl_load
14943 else $as_nop
14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14945 printf %s "checking for shl_load in -ldld... " >&6; }
14946 if test ${ac_cv_lib_dld_shl_load+y}
14947 then :
14948 printf %s "(cached) " >&6
14949 else $as_nop
14950 ac_check_lib_save_LIBS=$LIBS
14951 LIBS="-ldld $LIBS"
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14954
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14958 char shl_load ();
14959 int
14960 main (void)
14961 {
14962 return shl_load ();
14963 ;
14964 return 0;
14965 }
14966 _ACEOF
14967 if ac_fn_c_try_link "$LINENO"
14968 then :
14969 ac_cv_lib_dld_shl_load=yes
14970 else $as_nop
14971 ac_cv_lib_dld_shl_load=no
14972 fi
14973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14974 conftest$ac_exeext conftest.$ac_ext
14975 LIBS=$ac_check_lib_save_LIBS
14976 fi
14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14978 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14979 if test "x$ac_cv_lib_dld_shl_load" = xyes
14980 then :
14981 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14982 else $as_nop
14983 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14984 if test "x$ac_cv_func_dlopen" = xyes
14985 then :
14986 lt_cv_dlopen=dlopen
14987 else $as_nop
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14989 printf %s "checking for dlopen in -ldl... " >&6; }
14990 if test ${ac_cv_lib_dl_dlopen+y}
14991 then :
14992 printf %s "(cached) " >&6
14993 else $as_nop
14994 ac_check_lib_save_LIBS=$LIBS
14995 LIBS="-ldl $LIBS"
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998
14999 /* Override any GCC internal prototype to avoid an error.
15000 Use char because int might match the return type of a GCC
15001 builtin and then its argument prototype would still apply. */
15002 char dlopen ();
15003 int
15004 main (void)
15005 {
15006 return dlopen ();
15007 ;
15008 return 0;
15009 }
15010 _ACEOF
15011 if ac_fn_c_try_link "$LINENO"
15012 then :
15013 ac_cv_lib_dl_dlopen=yes
15014 else $as_nop
15015 ac_cv_lib_dl_dlopen=no
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15018 conftest$ac_exeext conftest.$ac_ext
15019 LIBS=$ac_check_lib_save_LIBS
15020 fi
15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15022 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15023 if test "x$ac_cv_lib_dl_dlopen" = xyes
15024 then :
15025 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15026 else $as_nop
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15028 printf %s "checking for dlopen in -lsvld... " >&6; }
15029 if test ${ac_cv_lib_svld_dlopen+y}
15030 then :
15031 printf %s "(cached) " >&6
15032 else $as_nop
15033 ac_check_lib_save_LIBS=$LIBS
15034 LIBS="-lsvld $LIBS"
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037
15038 /* Override any GCC internal prototype to avoid an error.
15039 Use char because int might match the return type of a GCC
15040 builtin and then its argument prototype would still apply. */
15041 char dlopen ();
15042 int
15043 main (void)
15044 {
15045 return dlopen ();
15046 ;
15047 return 0;
15048 }
15049 _ACEOF
15050 if ac_fn_c_try_link "$LINENO"
15051 then :
15052 ac_cv_lib_svld_dlopen=yes
15053 else $as_nop
15054 ac_cv_lib_svld_dlopen=no
15055 fi
15056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15057 conftest$ac_exeext conftest.$ac_ext
15058 LIBS=$ac_check_lib_save_LIBS
15059 fi
15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15061 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15062 if test "x$ac_cv_lib_svld_dlopen" = xyes
15063 then :
15064 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15065 else $as_nop
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15067 printf %s "checking for dld_link in -ldld... " >&6; }
15068 if test ${ac_cv_lib_dld_dld_link+y}
15069 then :
15070 printf %s "(cached) " >&6
15071 else $as_nop
15072 ac_check_lib_save_LIBS=$LIBS
15073 LIBS="-ldld $LIBS"
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15076
15077 /* Override any GCC internal prototype to avoid an error.
15078 Use char because int might match the return type of a GCC
15079 builtin and then its argument prototype would still apply. */
15080 char dld_link ();
15081 int
15082 main (void)
15083 {
15084 return dld_link ();
15085 ;
15086 return 0;
15087 }
15088 _ACEOF
15089 if ac_fn_c_try_link "$LINENO"
15090 then :
15091 ac_cv_lib_dld_dld_link=yes
15092 else $as_nop
15093 ac_cv_lib_dld_dld_link=no
15094 fi
15095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15096 conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15098 fi
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15100 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15101 if test "x$ac_cv_lib_dld_dld_link" = xyes
15102 then :
15103 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15104 fi
15105
15106
15107 fi
15108
15109
15110 fi
15111
15112
15113 fi
15114
15115
15116 fi
15117
15118
15119 fi
15120
15121 ;;
15122 esac
15123
15124 if test no = "$lt_cv_dlopen"; then
15125 enable_dlopen=no
15126 else
15127 enable_dlopen=yes
15128 fi
15129
15130 case $lt_cv_dlopen in
15131 dlopen)
15132 save_CPPFLAGS=$CPPFLAGS
15133 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15134
15135 save_LDFLAGS=$LDFLAGS
15136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15137
15138 save_LIBS=$LIBS
15139 LIBS="$lt_cv_dlopen_libs $LIBS"
15140
15141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15142 printf %s "checking whether a program can dlopen itself... " >&6; }
15143 if test ${lt_cv_dlopen_self+y}
15144 then :
15145 printf %s "(cached) " >&6
15146 else $as_nop
15147 if test yes = "$cross_compiling"; then :
15148 lt_cv_dlopen_self=cross
15149 else
15150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15151 lt_status=$lt_dlunknown
15152 cat > conftest.$ac_ext <<_LT_EOF
15153 #line $LINENO "configure"
15154 #include "confdefs.h"
15155
15156 #if HAVE_DLFCN_H
15157 #include <dlfcn.h>
15158 #endif
15159
15160 #include <stdio.h>
15161
15162 #ifdef RTLD_GLOBAL
15163 # define LT_DLGLOBAL RTLD_GLOBAL
15164 #else
15165 # ifdef DL_GLOBAL
15166 # define LT_DLGLOBAL DL_GLOBAL
15167 # else
15168 # define LT_DLGLOBAL 0
15169 # endif
15170 #endif
15171
15172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15173 find out it does not work in some platform. */
15174 #ifndef LT_DLLAZY_OR_NOW
15175 # ifdef RTLD_LAZY
15176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15177 # else
15178 # ifdef DL_LAZY
15179 # define LT_DLLAZY_OR_NOW DL_LAZY
15180 # else
15181 # ifdef RTLD_NOW
15182 # define LT_DLLAZY_OR_NOW RTLD_NOW
15183 # else
15184 # ifdef DL_NOW
15185 # define LT_DLLAZY_OR_NOW DL_NOW
15186 # else
15187 # define LT_DLLAZY_OR_NOW 0
15188 # endif
15189 # endif
15190 # endif
15191 # endif
15192 #endif
15193
15194 /* When -fvisibility=hidden is used, assume the code has been annotated
15195 correspondingly for the symbols needed. */
15196 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15197 int fnord () __attribute__((visibility("default")));
15198 #endif
15199
15200 int fnord () { return 42; }
15201 int main ()
15202 {
15203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15204 int status = $lt_dlunknown;
15205
15206 if (self)
15207 {
15208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15209 else
15210 {
15211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15212 else puts (dlerror ());
15213 }
15214 /* dlclose (self); */
15215 }
15216 else
15217 puts (dlerror ());
15218
15219 return status;
15220 }
15221 _LT_EOF
15222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15223 (eval $ac_link) 2>&5
15224 ac_status=$?
15225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15226 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15227 (./conftest; exit; ) >&5 2>/dev/null
15228 lt_status=$?
15229 case x$lt_status in
15230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15232 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15233 esac
15234 else :
15235 # compilation failed
15236 lt_cv_dlopen_self=no
15237 fi
15238 fi
15239 rm -fr conftest*
15240
15241
15242 fi
15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15244 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15245
15246 if test yes = "$lt_cv_dlopen_self"; then
15247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15249 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15250 if test ${lt_cv_dlopen_self_static+y}
15251 then :
15252 printf %s "(cached) " >&6
15253 else $as_nop
15254 if test yes = "$cross_compiling"; then :
15255 lt_cv_dlopen_self_static=cross
15256 else
15257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15258 lt_status=$lt_dlunknown
15259 cat > conftest.$ac_ext <<_LT_EOF
15260 #line $LINENO "configure"
15261 #include "confdefs.h"
15262
15263 #if HAVE_DLFCN_H
15264 #include <dlfcn.h>
15265 #endif
15266
15267 #include <stdio.h>
15268
15269 #ifdef RTLD_GLOBAL
15270 # define LT_DLGLOBAL RTLD_GLOBAL
15271 #else
15272 # ifdef DL_GLOBAL
15273 # define LT_DLGLOBAL DL_GLOBAL
15274 # else
15275 # define LT_DLGLOBAL 0
15276 # endif
15277 #endif
15278
15279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15280 find out it does not work in some platform. */
15281 #ifndef LT_DLLAZY_OR_NOW
15282 # ifdef RTLD_LAZY
15283 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15284 # else
15285 # ifdef DL_LAZY
15286 # define LT_DLLAZY_OR_NOW DL_LAZY
15287 # else
15288 # ifdef RTLD_NOW
15289 # define LT_DLLAZY_OR_NOW RTLD_NOW
15290 # else
15291 # ifdef DL_NOW
15292 # define LT_DLLAZY_OR_NOW DL_NOW
15293 # else
15294 # define LT_DLLAZY_OR_NOW 0
15295 # endif
15296 # endif
15297 # endif
15298 # endif
15299 #endif
15300
15301 /* When -fvisibility=hidden is used, assume the code has been annotated
15302 correspondingly for the symbols needed. */
15303 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15304 int fnord () __attribute__((visibility("default")));
15305 #endif
15306
15307 int fnord () { return 42; }
15308 int main ()
15309 {
15310 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15311 int status = $lt_dlunknown;
15312
15313 if (self)
15314 {
15315 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15316 else
15317 {
15318 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15319 else puts (dlerror ());
15320 }
15321 /* dlclose (self); */
15322 }
15323 else
15324 puts (dlerror ());
15325
15326 return status;
15327 }
15328 _LT_EOF
15329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15330 (eval $ac_link) 2>&5
15331 ac_status=$?
15332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15333 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15334 (./conftest; exit; ) >&5 2>/dev/null
15335 lt_status=$?
15336 case x$lt_status in
15337 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15338 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15339 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15340 esac
15341 else :
15342 # compilation failed
15343 lt_cv_dlopen_self_static=no
15344 fi
15345 fi
15346 rm -fr conftest*
15347
15348
15349 fi
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15351 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15352 fi
15353
15354 CPPFLAGS=$save_CPPFLAGS
15355 LDFLAGS=$save_LDFLAGS
15356 LIBS=$save_LIBS
15357 ;;
15358 esac
15359
15360 case $lt_cv_dlopen_self in
15361 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15362 *) enable_dlopen_self=unknown ;;
15363 esac
15364
15365 case $lt_cv_dlopen_self_static in
15366 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15367 *) enable_dlopen_self_static=unknown ;;
15368 esac
15369 fi
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387 striplib=
15388 old_striplib=
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15390 printf %s "checking whether stripping libraries is possible... " >&6; }
15391 if test -z "$STRIP"; then
15392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15393 printf "%s\n" "no" >&6; }
15394 else
15395 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15396 old_striplib="$STRIP --strip-debug"
15397 striplib="$STRIP --strip-unneeded"
15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15399 printf "%s\n" "yes" >&6; }
15400 else
15401 case $host_os in
15402 darwin*)
15403 # FIXME - insert some real tests, host_os isn't really good enough
15404 striplib="$STRIP -x"
15405 old_striplib="$STRIP -S"
15406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15407 printf "%s\n" "yes" >&6; }
15408 ;;
15409 freebsd*)
15410 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15411 old_striplib="$STRIP --strip-debug"
15412 striplib="$STRIP --strip-unneeded"
15413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15414 printf "%s\n" "yes" >&6; }
15415 else
15416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417 printf "%s\n" "no" >&6; }
15418 fi
15419 ;;
15420 *)
15421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15422 printf "%s\n" "no" >&6; }
15423 ;;
15424 esac
15425 fi
15426 fi
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439 # Report what library types will actually be built
15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15441 printf %s "checking if libtool supports shared libraries... " >&6; }
15442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15443 printf "%s\n" "$can_build_shared" >&6; }
15444
15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15446 printf %s "checking whether to build shared libraries... " >&6; }
15447 test no = "$can_build_shared" && enable_shared=no
15448
15449 # On AIX, shared libraries and static libraries use the same namespace, and
15450 # are all built from PIC.
15451 case $host_os in
15452 aix3*)
15453 test yes = "$enable_shared" && enable_static=no
15454 if test -n "$RANLIB"; then
15455 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15456 postinstall_cmds='$RANLIB $lib'
15457 fi
15458 ;;
15459
15460 aix[4-9]*)
15461 if test ia64 != "$host_cpu"; then
15462 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15463 yes,aix,yes) ;; # shared object as lib.so file only
15464 yes,svr4,*) ;; # shared object as lib.so archive member only
15465 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15466 esac
15467 fi
15468 ;;
15469 esac
15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15471 printf "%s\n" "$enable_shared" >&6; }
15472
15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15474 printf %s "checking whether to build static libraries... " >&6; }
15475 # Make sure either enable_shared or enable_static is yes.
15476 test yes = "$enable_shared" || enable_static=yes
15477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15478 printf "%s\n" "$enable_static" >&6; }
15479
15480
15481
15482
15483 fi
15484 ac_ext=c
15485 ac_cpp='$CPP $CPPFLAGS'
15486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15489
15490 CC=$lt_save_CC
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506 ac_config_commands="$ac_config_commands libtool"
15507
15508
15509
15510
15511 # Only expand once:
15512
15513
15514
15515 # Checks for library functions.
15516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15517 printf %s "checking for error_at_line... " >&6; }
15518 if test ${ac_cv_lib_error_at_line+y}
15519 then :
15520 printf %s "(cached) " >&6
15521 else $as_nop
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15524 #include <error.h>
15525 int
15526 main (void)
15527 {
15528 error_at_line (0, 0, "", 0, "an error occurred");
15529 ;
15530 return 0;
15531 }
15532 _ACEOF
15533 if ac_fn_c_try_link "$LINENO"
15534 then :
15535 ac_cv_lib_error_at_line=yes
15536 else $as_nop
15537 ac_cv_lib_error_at_line=no
15538 fi
15539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15540 conftest$ac_exeext conftest.$ac_ext
15541 fi
15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15543 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
15544 if test $ac_cv_lib_error_at_line = no; then
15545 case " $LIBOBJS " in
15546 *" error.$ac_objext "* ) ;;
15547 *) LIBOBJS="$LIBOBJS error.$ac_objext"
15548 ;;
15549 esac
15550
15551 fi
15552
15553
15554 ac_func=
15555 for ac_item in $ac_func_c_list
15556 do
15557 if test $ac_func; then
15558 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
15559 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
15560 echo "#define $ac_item 1" >> confdefs.h
15561 fi
15562 ac_func=
15563 else
15564 ac_func=$ac_item
15565 fi
15566 done
15567
15568
15569
15570 if test "x$ac_cv_func_fork" = xyes; then
15571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15572 printf %s "checking for working fork... " >&6; }
15573 if test ${ac_cv_func_fork_works+y}
15574 then :
15575 printf %s "(cached) " >&6
15576 else $as_nop
15577 if test "$cross_compiling" = yes
15578 then :
15579 ac_cv_func_fork_works=cross
15580 else $as_nop
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583 $ac_includes_default
15584 int
15585 main (void)
15586 {
15587
15588 /* By Ruediger Kuhlmann. */
15589 return fork () < 0;
15590
15591 ;
15592 return 0;
15593 }
15594 _ACEOF
15595 if ac_fn_c_try_run "$LINENO"
15596 then :
15597 ac_cv_func_fork_works=yes
15598 else $as_nop
15599 ac_cv_func_fork_works=no
15600 fi
15601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15602 conftest.$ac_objext conftest.beam conftest.$ac_ext
15603 fi
15604
15605 fi
15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15607 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
15608
15609 else
15610 ac_cv_func_fork_works=$ac_cv_func_fork
15611 fi
15612 if test "x$ac_cv_func_fork_works" = xcross; then
15613 case $host in
15614 *-*-amigaos* | *-*-msdosdjgpp*)
15615 # Override, as these systems have only a dummy fork() stub
15616 ac_cv_func_fork_works=no
15617 ;;
15618 *)
15619 ac_cv_func_fork_works=yes
15620 ;;
15621 esac
15622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15623 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15624 fi
15625 ac_cv_func_vfork_works=$ac_cv_func_vfork
15626 if test "x$ac_cv_func_vfork" = xyes; then
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15628 printf %s "checking for working vfork... " >&6; }
15629 if test ${ac_cv_func_vfork_works+y}
15630 then :
15631 printf %s "(cached) " >&6
15632 else $as_nop
15633 if test "$cross_compiling" = yes
15634 then :
15635 ac_cv_func_vfork_works=cross
15636 else $as_nop
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639 /* Thanks to Paul Eggert for this test. */
15640 $ac_includes_default
15641 #include <signal.h>
15642 #include <sys/wait.h>
15643 #ifdef HAVE_VFORK_H
15644 # include <vfork.h>
15645 #endif
15646
15647 static void
15648 do_nothing (int sig)
15649 {
15650 (void) sig;
15651 }
15652
15653 /* On some sparc systems, changes by the child to local and incoming
15654 argument registers are propagated back to the parent. The compiler
15655 is told about this with #include <vfork.h>, but some compilers
15656 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15657 static variable whose address is put into a register that is
15658 clobbered by the vfork. */
15659 static void
15660 sparc_address_test (int arg)
15661 {
15662 static pid_t child;
15663 if (!child) {
15664 child = vfork ();
15665 if (child < 0) {
15666 perror ("vfork");
15667 _exit(2);
15668 }
15669 if (!child) {
15670 arg = getpid();
15671 write(-1, "", 0);
15672 _exit (arg);
15673 }
15674 }
15675 }
15676
15677 int
15678 main (void)
15679 {
15680 pid_t parent = getpid ();
15681 pid_t child;
15682
15683 sparc_address_test (0);
15684
15685 /* On Solaris 2.4, changes by the child to the signal handler
15686 also munge signal handlers in the parent. To detect this,
15687 start by putting the parent's handler in a known state. */
15688 signal (SIGTERM, SIG_DFL);
15689
15690 child = vfork ();
15691
15692 if (child == 0) {
15693 /* Here is another test for sparc vfork register problems. This
15694 test uses lots of local variables, at least as many local
15695 variables as main has allocated so far including compiler
15696 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15697 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15698 reuse the register of parent for one of the local variables,
15699 since it will think that parent can't possibly be used any more
15700 in this routine. Assigning to the local variable will thus
15701 munge parent in the parent process. */
15702 pid_t
15703 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15704 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15705 /* Convince the compiler that p..p7 are live; otherwise, it might
15706 use the same hardware register for all 8 local variables. */
15707 if (p != p1 || p != p2 || p != p3 || p != p4
15708 || p != p5 || p != p6 || p != p7)
15709 _exit(1);
15710
15711 /* Alter the child's signal handler. */
15712 if (signal (SIGTERM, do_nothing) != SIG_DFL)
15713 _exit(1);
15714
15715 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15716 from child file descriptors. If the child closes a descriptor
15717 before it execs or exits, this munges the parent's descriptor
15718 as well. Test for this by closing stdout in the child. */
15719 _exit(close(fileno(stdout)) != 0);
15720 } else {
15721 int status;
15722 struct stat st;
15723
15724 while (wait(&status) != child)
15725 ;
15726 return (
15727 /* Was there some problem with vforking? */
15728 child < 0
15729
15730 /* Did the child munge the parent's signal handler? */
15731 || signal (SIGTERM, SIG_DFL) != SIG_DFL
15732
15733 /* Did the child fail? (This shouldn't happen.) */
15734 || status
15735
15736 /* Did the vfork/compiler bug occur? */
15737 || parent != getpid()
15738
15739 /* Did the file descriptor bug occur? */
15740 || fstat(fileno(stdout), &st) != 0
15741 );
15742 }
15743 }
15744 _ACEOF
15745 if ac_fn_c_try_run "$LINENO"
15746 then :
15747 ac_cv_func_vfork_works=yes
15748 else $as_nop
15749 ac_cv_func_vfork_works=no
15750 fi
15751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752 conftest.$ac_objext conftest.beam conftest.$ac_ext
15753 fi
15754
15755 fi
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15757 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
15758
15759 fi;
15760 if test "x$ac_cv_func_fork_works" = xcross; then
15761 ac_cv_func_vfork_works=$ac_cv_func_vfork
15762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15763 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15764 fi
15765
15766 if test "x$ac_cv_func_vfork_works" = xyes; then
15767
15768 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15769
15770 else
15771
15772 printf "%s\n" "#define vfork fork" >>confdefs.h
15773
15774 fi
15775 if test "x$ac_cv_func_fork_works" = xyes; then
15776
15777 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
15778
15779 fi
15780
15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15782 printf %s "checking for GNU libc compatible malloc... " >&6; }
15783 if test ${ac_cv_func_malloc_0_nonnull+y}
15784 then :
15785 printf %s "(cached) " >&6
15786 else $as_nop
15787 if test "$cross_compiling" = yes
15788 then :
15789 case "$host_os" in # ((
15790 # Guess yes on platforms where we know the result.
15791 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
15792 | hpux* | solaris* | cygwin* | mingw* | msys* )
15793 ac_cv_func_malloc_0_nonnull=yes ;;
15794 # If we don't know, assume the worst.
15795 *) ac_cv_func_malloc_0_nonnull=no ;;
15796 esac
15797 else $as_nop
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800 #include <stdlib.h>
15801
15802 int
15803 main (void)
15804 {
15805 void *p = malloc (0);
15806 int result = !p;
15807 free (p);
15808 return result;
15809 ;
15810 return 0;
15811 }
15812 _ACEOF
15813 if ac_fn_c_try_run "$LINENO"
15814 then :
15815 ac_cv_func_malloc_0_nonnull=yes
15816 else $as_nop
15817 ac_cv_func_malloc_0_nonnull=no
15818 fi
15819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15820 conftest.$ac_objext conftest.beam conftest.$ac_ext
15821 fi
15822
15823 fi
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15825 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
15826 if test $ac_cv_func_malloc_0_nonnull = yes
15827 then :
15828
15829 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
15830
15831 else $as_nop
15832 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
15833
15834 case " $LIBOBJS " in
15835 *" malloc.$ac_objext "* ) ;;
15836 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15837 ;;
15838 esac
15839
15840
15841 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
15842
15843 fi
15844
15845
15846
15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
15848 printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
15849 if test ${ac_cv_func_mbrtowc+y}
15850 then :
15851 printf %s "(cached) " >&6
15852 else $as_nop
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 #include <wchar.h>
15856 int
15857 main (void)
15858 {
15859 wchar_t wc;
15860 char const s[] = "";
15861 size_t n = 1;
15862 mbstate_t state;
15863 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15864 ;
15865 return 0;
15866 }
15867 _ACEOF
15868 if ac_fn_c_try_link "$LINENO"
15869 then :
15870 ac_cv_func_mbrtowc=yes
15871 else $as_nop
15872 ac_cv_func_mbrtowc=no
15873 fi
15874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15875 conftest$ac_exeext conftest.$ac_ext
15876 fi
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
15878 printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
15879 if test $ac_cv_func_mbrtowc = yes; then
15880
15881 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
15882
15883 fi
15884
15885
15886
15887
15888
15889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15890 printf %s "checking for working mmap... " >&6; }
15891 if test ${ac_cv_func_mmap_fixed_mapped+y}
15892 then :
15893 printf %s "(cached) " >&6
15894 else $as_nop
15895 if test "$cross_compiling" = yes
15896 then :
15897 case "$host_os" in # ((
15898 # Guess yes on platforms where we know the result.
15899 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
15900 # If we don't know, assume the worst.
15901 *) ac_cv_func_mmap_fixed_mapped=no ;;
15902 esac
15903 else $as_nop
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 $ac_includes_default
15907 /* malloc might have been renamed as rpl_malloc. */
15908 #undef malloc
15909
15910 /* Thanks to Mike Haertel and Jim Avera for this test.
15911 Here is a matrix of mmap possibilities:
15912 mmap private not fixed
15913 mmap private fixed at somewhere currently unmapped
15914 mmap private fixed at somewhere already mapped
15915 mmap shared not fixed
15916 mmap shared fixed at somewhere currently unmapped
15917 mmap shared fixed at somewhere already mapped
15918 For private mappings, we should verify that changes cannot be read()
15919 back from the file, nor mmap's back from the file at a different
15920 address. (There have been systems where private was not correctly
15921 implemented like the infamous i386 svr4.0, and systems where the
15922 VM page cache was not coherent with the file system buffer cache
15923 like early versions of FreeBSD and possibly contemporary NetBSD.)
15924 For shared mappings, we should conversely verify that changes get
15925 propagated back to all the places they're supposed to be.
15926
15927 Grep wants private fixed already mapped.
15928 The main things grep needs to know about mmap are:
15929 * does it exist and is it safe to write into the mmap'd area
15930 * how to use it (BSD variants) */
15931
15932 #include <fcntl.h>
15933 #include <sys/mman.h>
15934
15935 /* This mess was copied from the GNU getpagesize.h. */
15936 #ifndef HAVE_GETPAGESIZE
15937 # ifdef _SC_PAGESIZE
15938 # define getpagesize() sysconf(_SC_PAGESIZE)
15939 # else /* no _SC_PAGESIZE */
15940 # ifdef HAVE_SYS_PARAM_H
15941 # include <sys/param.h>
15942 # ifdef EXEC_PAGESIZE
15943 # define getpagesize() EXEC_PAGESIZE
15944 # else /* no EXEC_PAGESIZE */
15945 # ifdef NBPG
15946 # define getpagesize() NBPG * CLSIZE
15947 # ifndef CLSIZE
15948 # define CLSIZE 1
15949 # endif /* no CLSIZE */
15950 # else /* no NBPG */
15951 # ifdef NBPC
15952 # define getpagesize() NBPC
15953 # else /* no NBPC */
15954 # ifdef PAGESIZE
15955 # define getpagesize() PAGESIZE
15956 # endif /* PAGESIZE */
15957 # endif /* no NBPC */
15958 # endif /* no NBPG */
15959 # endif /* no EXEC_PAGESIZE */
15960 # else /* no HAVE_SYS_PARAM_H */
15961 # define getpagesize() 8192 /* punt totally */
15962 # endif /* no HAVE_SYS_PARAM_H */
15963 # endif /* no _SC_PAGESIZE */
15964
15965 #endif /* no HAVE_GETPAGESIZE */
15966
15967 int
15968 main (void)
15969 {
15970 char *data, *data2, *data3;
15971 const char *cdata2;
15972 int i, pagesize;
15973 int fd, fd2;
15974
15975 pagesize = getpagesize ();
15976
15977 /* First, make a file with some known garbage in it. */
15978 data = (char *) malloc (pagesize);
15979 if (!data)
15980 return 1;
15981 for (i = 0; i < pagesize; ++i)
15982 *(data + i) = rand ();
15983 umask (0);
15984 fd = creat ("conftest.mmap", 0600);
15985 if (fd < 0)
15986 return 2;
15987 if (write (fd, data, pagesize) != pagesize)
15988 return 3;
15989 close (fd);
15990
15991 /* Next, check that the tail of a page is zero-filled. File must have
15992 non-zero length, otherwise we risk SIGBUS for entire page. */
15993 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15994 if (fd2 < 0)
15995 return 4;
15996 cdata2 = "";
15997 if (write (fd2, cdata2, 1) != 1)
15998 return 5;
15999 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16000 if (data2 == MAP_FAILED)
16001 return 6;
16002 for (i = 0; i < pagesize; ++i)
16003 if (*(data2 + i))
16004 return 7;
16005 close (fd2);
16006 if (munmap (data2, pagesize))
16007 return 8;
16008
16009 /* Next, try to mmap the file at a fixed address which already has
16010 something else allocated at it. If we can, also make sure that
16011 we see the same garbage. */
16012 fd = open ("conftest.mmap", O_RDWR);
16013 if (fd < 0)
16014 return 9;
16015 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16016 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16017 return 10;
16018 for (i = 0; i < pagesize; ++i)
16019 if (*(data + i) != *(data2 + i))
16020 return 11;
16021
16022 /* Finally, make sure that changes to the mapped area do not
16023 percolate back to the file as seen by read(). (This is a bug on
16024 some variants of i386 svr4.0.) */
16025 for (i = 0; i < pagesize; ++i)
16026 *(data2 + i) = *(data2 + i) + 1;
16027 data3 = (char *) malloc (pagesize);
16028 if (!data3)
16029 return 12;
16030 if (read (fd, data3, pagesize) != pagesize)
16031 return 13;
16032 for (i = 0; i < pagesize; ++i)
16033 if (*(data + i) != *(data3 + i))
16034 return 14;
16035 close (fd);
16036 free (data);
16037 free (data3);
16038 return 0;
16039 }
16040 _ACEOF
16041 if ac_fn_c_try_run "$LINENO"
16042 then :
16043 ac_cv_func_mmap_fixed_mapped=yes
16044 else $as_nop
16045 ac_cv_func_mmap_fixed_mapped=no
16046 fi
16047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16048 conftest.$ac_objext conftest.beam conftest.$ac_ext
16049 fi
16050
16051 fi
16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16053 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
16054 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16055
16056 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
16057
16058 fi
16059 rm -f conftest.mmap conftest.txt
16060
16061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16062 printf %s "checking for GNU libc compatible realloc... " >&6; }
16063 if test ${ac_cv_func_realloc_0_nonnull+y}
16064 then :
16065 printf %s "(cached) " >&6
16066 else $as_nop
16067 if test "$cross_compiling" = yes
16068 then :
16069 case "$host_os" in # ((
16070 # Guess yes on platforms where we know the result.
16071 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
16072 | hpux* | solaris* | cygwin* | mingw* | msys* )
16073 ac_cv_func_realloc_0_nonnull=yes ;;
16074 # If we don't know, assume the worst.
16075 *) ac_cv_func_realloc_0_nonnull=no ;;
16076 esac
16077 else $as_nop
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16080 #include <stdlib.h>
16081
16082 int
16083 main (void)
16084 {
16085 void *p = realloc (0, 0);
16086 int result = !p;
16087 free (p);
16088 return result;
16089 ;
16090 return 0;
16091 }
16092 _ACEOF
16093 if ac_fn_c_try_run "$LINENO"
16094 then :
16095 ac_cv_func_realloc_0_nonnull=yes
16096 else $as_nop
16097 ac_cv_func_realloc_0_nonnull=no
16098 fi
16099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16100 conftest.$ac_objext conftest.beam conftest.$ac_ext
16101 fi
16102
16103 fi
16104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16105 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
16106 if test $ac_cv_func_realloc_0_nonnull = yes
16107 then :
16108
16109 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
16110
16111 else $as_nop
16112 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
16113
16114 case " $LIBOBJS " in
16115 *" realloc.$ac_objext "* ) ;;
16116 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16117 ;;
16118 esac
16119
16120
16121 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
16122
16123 fi
16124
16125
16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
16127 printf %s "checking for working strcoll... " >&6; }
16128 if test ${ac_cv_func_strcoll_works+y}
16129 then :
16130 printf %s "(cached) " >&6
16131 else $as_nop
16132 if test "$cross_compiling" = yes
16133 then :
16134 case "$host_os" in # ((
16135 # Guess yes on glibc systems.
16136 *-gnu*) ac_cv_func_strcoll_works=yes ;;
16137 # If we don't know, assume the worst.
16138 *) ac_cv_func_strcoll_works=no ;;
16139 esac
16140 else $as_nop
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16143 $ac_includes_default
16144 int
16145 main (void)
16146 {
16147 return (strcoll ("abc", "def") >= 0 ||
16148 strcoll ("ABC", "DEF") >= 0 ||
16149 strcoll ("123", "456") >= 0)
16150 ;
16151 return 0;
16152 }
16153 _ACEOF
16154 if ac_fn_c_try_run "$LINENO"
16155 then :
16156 ac_cv_func_strcoll_works=yes
16157 else $as_nop
16158 ac_cv_func_strcoll_works=no
16159 fi
16160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16161 conftest.$ac_objext conftest.beam conftest.$ac_ext
16162 fi
16163
16164 fi
16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
16166 printf "%s\n" "$ac_cv_func_strcoll_works" >&6; }
16167 if test $ac_cv_func_strcoll_works = yes; then
16168
16169 printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
16170
16171 fi
16172
16173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16174 printf %s "checking for working strtod... " >&6; }
16175 if test ${ac_cv_func_strtod+y}
16176 then :
16177 printf %s "(cached) " >&6
16178 else $as_nop
16179 if test "$cross_compiling" = yes
16180 then :
16181 ac_cv_func_strtod=no
16182 else $as_nop
16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185
16186 $ac_includes_default
16187 #ifndef strtod
16188 double strtod ();
16189 #endif
16190 int
16191 main (void)
16192 {
16193 {
16194 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16195 char *string = " +69";
16196 char *term;
16197 double value;
16198 value = strtod (string, &term);
16199 if (value != 69 || term != (string + 4))
16200 return 1;
16201 }
16202
16203 {
16204 /* Under Solaris 2.4, strtod returns the wrong value for the
16205 terminating character under some conditions. */
16206 char *string = "NaN";
16207 char *term;
16208 strtod (string, &term);
16209 if (term != string && *(term - 1) == 0)
16210 return 1;
16211 }
16212 return 0;
16213 }
16214
16215 _ACEOF
16216 if ac_fn_c_try_run "$LINENO"
16217 then :
16218 ac_cv_func_strtod=yes
16219 else $as_nop
16220 ac_cv_func_strtod=no
16221 fi
16222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16223 conftest.$ac_objext conftest.beam conftest.$ac_ext
16224 fi
16225
16226 fi
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16228 printf "%s\n" "$ac_cv_func_strtod" >&6; }
16229 if test $ac_cv_func_strtod = no; then
16230 case " $LIBOBJS " in
16231 *" strtod.$ac_objext "* ) ;;
16232 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16233 ;;
16234 esac
16235
16236 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16237 if test "x$ac_cv_func_pow" = xyes
16238 then :
16239
16240 fi
16241
16242 if test $ac_cv_func_pow = no; then
16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16244 printf %s "checking for pow in -lm... " >&6; }
16245 if test ${ac_cv_lib_m_pow+y}
16246 then :
16247 printf %s "(cached) " >&6
16248 else $as_nop
16249 ac_check_lib_save_LIBS=$LIBS
16250 LIBS="-lm $LIBS"
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253
16254 /* Override any GCC internal prototype to avoid an error.
16255 Use char because int might match the return type of a GCC
16256 builtin and then its argument prototype would still apply. */
16257 char pow ();
16258 int
16259 main (void)
16260 {
16261 return pow ();
16262 ;
16263 return 0;
16264 }
16265 _ACEOF
16266 if ac_fn_c_try_link "$LINENO"
16267 then :
16268 ac_cv_lib_m_pow=yes
16269 else $as_nop
16270 ac_cv_lib_m_pow=no
16271 fi
16272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16273 conftest$ac_exeext conftest.$ac_ext
16274 LIBS=$ac_check_lib_save_LIBS
16275 fi
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16277 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
16278 if test "x$ac_cv_lib_m_pow" = xyes
16279 then :
16280 POW_LIB=-lm
16281 else $as_nop
16282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
16283 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16284 fi
16285
16286 fi
16287
16288 fi
16289
16290
16291 usrbin_execdir='${exec_prefix}/bin'
16292
16293
16294 if test "x$host_os" = xcygwin
16295 then
16296 prefix=/usr
16297 sysconfdir='${prefix}/etc'
16298 libexecdir='${prefix}/lib'
16299 localstatedir='${prefix}/var'
16300 datadir='${prefix}/share'
16301 mandir='${prefix}/share/man'
16302 infodir='${prefix}/share/info'
16303
16304
16305
16306
16307
16308
16309
16310
16311 printf "%s\n" "#define USE_PROC_CTTY 1" >>confdefs.h
16312
16313 else
16314
16315 printf "%s\n" "#define USE_PROC_CTTY 0" >>confdefs.h
16316
16317 fi
16318
16319
16320
16321 MKINSTALLDIRS=
16322 if test -n "$ac_aux_dir"; then
16323 case "$ac_aux_dir" in
16324 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16325 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16326 esac
16327 fi
16328 if test -z "$MKINSTALLDIRS"; then
16329 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16330 fi
16331
16332
16333
16334
16335
16336
16337 # Prepare PATH_SEPARATOR.
16338 # The user is always right.
16339 if test "${PATH_SEPARATOR+set}" != set; then
16340 echo "#! /bin/sh" >conf$$.sh
16341 echo "exit 0" >>conf$$.sh
16342 chmod +x conf$$.sh
16343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16344 PATH_SEPARATOR=';'
16345 else
16346 PATH_SEPARATOR=:
16347 fi
16348 rm -f conf$$.sh
16349 fi
16350
16351 # Find out how to test for executable files. Don't use a zero-byte file,
16352 # as systems may use methods other than mode bits to determine executability.
16353 cat >conf$$.file <<_ASEOF
16354 #! /bin/sh
16355 exit 0
16356 _ASEOF
16357 chmod +x conf$$.file
16358 if test -x conf$$.file >/dev/null 2>&1; then
16359 ac_executable_p="test -x"
16360 else
16361 ac_executable_p="test -f"
16362 fi
16363 rm -f conf$$.file
16364
16365 # Extract the first word of "msgfmt", so it can be a program name with args.
16366 set dummy msgfmt; ac_word=$2
16367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16368 printf %s "checking for $ac_word... " >&6; }
16369 if test ${ac_cv_path_MSGFMT+y}
16370 then :
16371 printf %s "(cached) " >&6
16372 else $as_nop
16373 case "$MSGFMT" in
16374 [\\/]* | ?:[\\/]*)
16375 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16376 ;;
16377 *)
16378 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16379 for ac_dir in $PATH; do
16380 IFS="$ac_save_IFS"
16381 test -z "$ac_dir" && ac_dir=.
16382 for ac_exec_ext in '' $ac_executable_extensions; do
16383 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16384 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16385 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16386 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16387 break 2
16388 fi
16389 fi
16390 done
16391 done
16392 IFS="$ac_save_IFS"
16393 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16394 ;;
16395 esac
16396 fi
16397 MSGFMT="$ac_cv_path_MSGFMT"
16398 if test "$MSGFMT" != ":"; then
16399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16400 printf "%s\n" "$MSGFMT" >&6; }
16401 else
16402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403 printf "%s\n" "no" >&6; }
16404 fi
16405
16406 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16407 set dummy gmsgfmt; ac_word=$2
16408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16409 printf %s "checking for $ac_word... " >&6; }
16410 if test ${ac_cv_path_GMSGFMT+y}
16411 then :
16412 printf %s "(cached) " >&6
16413 else $as_nop
16414 case $GMSGFMT in
16415 [\\/]* | ?:[\\/]*)
16416 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16417 ;;
16418 *)
16419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16420 for as_dir in $PATH
16421 do
16422 IFS=$as_save_IFS
16423 case $as_dir in #(((
16424 '') as_dir=./ ;;
16425 */) ;;
16426 *) as_dir=$as_dir/ ;;
16427 esac
16428 for ac_exec_ext in '' $ac_executable_extensions; do
16429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16430 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
16431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16432 break 2
16433 fi
16434 done
16435 done
16436 IFS=$as_save_IFS
16437
16438 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16439 ;;
16440 esac
16441 fi
16442 GMSGFMT=$ac_cv_path_GMSGFMT
16443 if test -n "$GMSGFMT"; then
16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16445 printf "%s\n" "$GMSGFMT" >&6; }
16446 else
16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448 printf "%s\n" "no" >&6; }
16449 fi
16450
16451
16452
16453
16454 # Prepare PATH_SEPARATOR.
16455 # The user is always right.
16456 if test "${PATH_SEPARATOR+set}" != set; then
16457 echo "#! /bin/sh" >conf$$.sh
16458 echo "exit 0" >>conf$$.sh
16459 chmod +x conf$$.sh
16460 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16461 PATH_SEPARATOR=';'
16462 else
16463 PATH_SEPARATOR=:
16464 fi
16465 rm -f conf$$.sh
16466 fi
16467
16468 # Find out how to test for executable files. Don't use a zero-byte file,
16469 # as systems may use methods other than mode bits to determine executability.
16470 cat >conf$$.file <<_ASEOF
16471 #! /bin/sh
16472 exit 0
16473 _ASEOF
16474 chmod +x conf$$.file
16475 if test -x conf$$.file >/dev/null 2>&1; then
16476 ac_executable_p="test -x"
16477 else
16478 ac_executable_p="test -f"
16479 fi
16480 rm -f conf$$.file
16481
16482 # Extract the first word of "xgettext", so it can be a program name with args.
16483 set dummy xgettext; ac_word=$2
16484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16485 printf %s "checking for $ac_word... " >&6; }
16486 if test ${ac_cv_path_XGETTEXT+y}
16487 then :
16488 printf %s "(cached) " >&6
16489 else $as_nop
16490 case "$XGETTEXT" in
16491 [\\/]* | ?:[\\/]*)
16492 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16493 ;;
16494 *)
16495 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16496 for ac_dir in $PATH; do
16497 IFS="$ac_save_IFS"
16498 test -z "$ac_dir" && ac_dir=.
16499 for ac_exec_ext in '' $ac_executable_extensions; do
16500 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16501 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16502 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16503 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16504 break 2
16505 fi
16506 fi
16507 done
16508 done
16509 IFS="$ac_save_IFS"
16510 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16511 ;;
16512 esac
16513 fi
16514 XGETTEXT="$ac_cv_path_XGETTEXT"
16515 if test "$XGETTEXT" != ":"; then
16516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16517 printf "%s\n" "$XGETTEXT" >&6; }
16518 else
16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16520 printf "%s\n" "no" >&6; }
16521 fi
16522
16523 rm -f messages.po
16524
16525
16526 # Prepare PATH_SEPARATOR.
16527 # The user is always right.
16528 if test "${PATH_SEPARATOR+set}" != set; then
16529 echo "#! /bin/sh" >conf$$.sh
16530 echo "exit 0" >>conf$$.sh
16531 chmod +x conf$$.sh
16532 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16533 PATH_SEPARATOR=';'
16534 else
16535 PATH_SEPARATOR=:
16536 fi
16537 rm -f conf$$.sh
16538 fi
16539
16540 # Find out how to test for executable files. Don't use a zero-byte file,
16541 # as systems may use methods other than mode bits to determine executability.
16542 cat >conf$$.file <<_ASEOF
16543 #! /bin/sh
16544 exit 0
16545 _ASEOF
16546 chmod +x conf$$.file
16547 if test -x conf$$.file >/dev/null 2>&1; then
16548 ac_executable_p="test -x"
16549 else
16550 ac_executable_p="test -f"
16551 fi
16552 rm -f conf$$.file
16553
16554 # Extract the first word of "msgmerge", so it can be a program name with args.
16555 set dummy msgmerge; ac_word=$2
16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16557 printf %s "checking for $ac_word... " >&6; }
16558 if test ${ac_cv_path_MSGMERGE+y}
16559 then :
16560 printf %s "(cached) " >&6
16561 else $as_nop
16562 case "$MSGMERGE" in
16563 [\\/]* | ?:[\\/]*)
16564 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16565 ;;
16566 *)
16567 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16568 for ac_dir in $PATH; do
16569 IFS="$ac_save_IFS"
16570 test -z "$ac_dir" && ac_dir=.
16571 for ac_exec_ext in '' $ac_executable_extensions; do
16572 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16573 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16574 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16575 break 2
16576 fi
16577 fi
16578 done
16579 done
16580 IFS="$ac_save_IFS"
16581 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16582 ;;
16583 esac
16584 fi
16585 MSGMERGE="$ac_cv_path_MSGMERGE"
16586 if test "$MSGMERGE" != ":"; then
16587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16588 printf "%s\n" "$MSGMERGE" >&6; }
16589 else
16590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16591 printf "%s\n" "no" >&6; }
16592 fi
16593
16594
16595 if test "$GMSGFMT" != ":"; then
16596 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16597 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16598 : ;
16599 else
16600 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16602 printf "%s\n" "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16603 GMSGFMT=":"
16604 fi
16605 fi
16606
16607 if test "$XGETTEXT" != ":"; then
16608 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16609 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16610 : ;
16611 else
16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16613 printf "%s\n" "found xgettext program is not GNU xgettext; ignore it" >&6; }
16614 XGETTEXT=":"
16615 fi
16616 rm -f messages.po
16617 fi
16618
16619 ac_config_commands="$ac_config_commands default-1"
16620
16621
16622
16623 if test "X$prefix" = "XNONE"; then
16624 acl_final_prefix="$ac_default_prefix"
16625 else
16626 acl_final_prefix="$prefix"
16627 fi
16628 if test "X$exec_prefix" = "XNONE"; then
16629 acl_final_exec_prefix='${prefix}'
16630 else
16631 acl_final_exec_prefix="$exec_prefix"
16632 fi
16633 acl_save_prefix="$prefix"
16634 prefix="$acl_final_prefix"
16635 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16636 prefix="$acl_save_prefix"
16637
16638
16639 # Check whether --with-gnu-ld was given.
16640 if test ${with_gnu_ld+y}
16641 then :
16642 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16643 else $as_nop
16644 with_gnu_ld=no
16645 fi
16646
16647 # Prepare PATH_SEPARATOR.
16648 # The user is always right.
16649 if test "${PATH_SEPARATOR+set}" != set; then
16650 echo "#! /bin/sh" >conf$$.sh
16651 echo "exit 0" >>conf$$.sh
16652 chmod +x conf$$.sh
16653 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16654 PATH_SEPARATOR=';'
16655 else
16656 PATH_SEPARATOR=:
16657 fi
16658 rm -f conf$$.sh
16659 fi
16660 ac_prog=ld
16661 if test "$GCC" = yes; then
16662 # Check if gcc -print-prog-name=ld gives a path.
16663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16664 printf %s "checking for ld used by GCC... " >&6; }
16665 case $host in
16666 *-*-mingw*)
16667 # gcc leaves a trailing carriage return which upsets mingw
16668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16669 *)
16670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16671 esac
16672 case $ac_prog in
16673 # Accept absolute paths.
16674 [\\/]* | [A-Za-z]:[\\/]*)
16675 re_direlt='/[^/][^/]*/\.\./'
16676 # Canonicalize the path of ld
16677 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16678 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16679 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16680 done
16681 test -z "$LD" && LD="$ac_prog"
16682 ;;
16683 "")
16684 # If it fails, then pretend we aren't using GCC.
16685 ac_prog=ld
16686 ;;
16687 *)
16688 # If it is relative, then search for the first ld in PATH.
16689 with_gnu_ld=unknown
16690 ;;
16691 esac
16692 elif test "$with_gnu_ld" = yes; then
16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16694 printf %s "checking for GNU ld... " >&6; }
16695 else
16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16697 printf %s "checking for non-GNU ld... " >&6; }
16698 fi
16699 if test ${acl_cv_path_LD+y}
16700 then :
16701 printf %s "(cached) " >&6
16702 else $as_nop
16703 if test -z "$LD"; then
16704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16705 for ac_dir in $PATH; do
16706 test -z "$ac_dir" && ac_dir=.
16707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16708 acl_cv_path_LD="$ac_dir/$ac_prog"
16709 # Check to see if the program is GNU ld. I'd rather use --version,
16710 # but apparently some GNU ld's only accept -v.
16711 # Break only if it was the GNU/non-GNU ld that we prefer.
16712 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16713 *GNU* | *'with BFD'*)
16714 test "$with_gnu_ld" != no && break ;;
16715 *)
16716 test "$with_gnu_ld" != yes && break ;;
16717 esac
16718 fi
16719 done
16720 IFS="$ac_save_ifs"
16721 else
16722 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16723 fi
16724 fi
16725
16726 LD="$acl_cv_path_LD"
16727 if test -n "$LD"; then
16728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16729 printf "%s\n" "$LD" >&6; }
16730 else
16731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16732 printf "%s\n" "no" >&6; }
16733 fi
16734 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16736 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16737 if test ${acl_cv_prog_gnu_ld+y}
16738 then :
16739 printf %s "(cached) " >&6
16740 else $as_nop
16741 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16742 case `$LD -v 2>&1 </dev/null` in
16743 *GNU* | *'with BFD'*)
16744 acl_cv_prog_gnu_ld=yes ;;
16745 *)
16746 acl_cv_prog_gnu_ld=no ;;
16747 esac
16748 fi
16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16750 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
16751 with_gnu_ld=$acl_cv_prog_gnu_ld
16752
16753
16754
16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16756 printf %s "checking for shared library run path origin... " >&6; }
16757 if test ${acl_cv_rpath+y}
16758 then :
16759 printf %s "(cached) " >&6
16760 else $as_nop
16761
16762 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16763 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16764 . ./conftest.sh
16765 rm -f ./conftest.sh
16766 acl_cv_rpath=done
16767
16768 fi
16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16770 printf "%s\n" "$acl_cv_rpath" >&6; }
16771 wl="$acl_cv_wl"
16772 libext="$acl_cv_libext"
16773 shlibext="$acl_cv_shlibext"
16774 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16775 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16776 hardcode_direct="$acl_cv_hardcode_direct"
16777 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16778 # Check whether --enable-rpath was given.
16779 if test ${enable_rpath+y}
16780 then :
16781 enableval=$enable_rpath; :
16782 else $as_nop
16783 enable_rpath=yes
16784 fi
16785
16786
16787
16788
16789
16790
16791
16792
16793 use_additional=yes
16794
16795 acl_save_prefix="$prefix"
16796 prefix="$acl_final_prefix"
16797 acl_save_exec_prefix="$exec_prefix"
16798 exec_prefix="$acl_final_exec_prefix"
16799
16800 eval additional_includedir=\"$includedir\"
16801 eval additional_libdir=\"$libdir\"
16802
16803 exec_prefix="$acl_save_exec_prefix"
16804 prefix="$acl_save_prefix"
16805
16806
16807 # Check whether --with-libiconv-prefix was given.
16808 if test ${with_libiconv_prefix+y}
16809 then :
16810 withval=$with_libiconv_prefix;
16811 if test "X$withval" = "Xno"; then
16812 use_additional=no
16813 else
16814 if test "X$withval" = "X"; then
16815
16816 acl_save_prefix="$prefix"
16817 prefix="$acl_final_prefix"
16818 acl_save_exec_prefix="$exec_prefix"
16819 exec_prefix="$acl_final_exec_prefix"
16820
16821 eval additional_includedir=\"$includedir\"
16822 eval additional_libdir=\"$libdir\"
16823
16824 exec_prefix="$acl_save_exec_prefix"
16825 prefix="$acl_save_prefix"
16826
16827 else
16828 additional_includedir="$withval/include"
16829 additional_libdir="$withval/lib"
16830 fi
16831 fi
16832
16833 fi
16834
16835 LIBICONV=
16836 LTLIBICONV=
16837 INCICONV=
16838 rpathdirs=
16839 ltrpathdirs=
16840 names_already_handled=
16841 names_next_round='iconv '
16842 while test -n "$names_next_round"; do
16843 names_this_round="$names_next_round"
16844 names_next_round=
16845 for name in $names_this_round; do
16846 already_handled=
16847 for n in $names_already_handled; do
16848 if test "$n" = "$name"; then
16849 already_handled=yes
16850 break
16851 fi
16852 done
16853 if test -z "$already_handled"; then
16854 names_already_handled="$names_already_handled $name"
16855 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16856 eval value=\"\$HAVE_LIB$uppername\"
16857 if test -n "$value"; then
16858 if test "$value" = yes; then
16859 eval value=\"\$LIB$uppername\"
16860 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16861 eval value=\"\$LTLIB$uppername\"
16862 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16863 else
16864 :
16865 fi
16866 else
16867 found_dir=
16868 found_la=
16869 found_so=
16870 found_a=
16871 if test $use_additional = yes; then
16872 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16873 found_dir="$additional_libdir"
16874 found_so="$additional_libdir/lib$name.$shlibext"
16875 if test -f "$additional_libdir/lib$name.la"; then
16876 found_la="$additional_libdir/lib$name.la"
16877 fi
16878 else
16879 if test -f "$additional_libdir/lib$name.$libext"; then
16880 found_dir="$additional_libdir"
16881 found_a="$additional_libdir/lib$name.$libext"
16882 if test -f "$additional_libdir/lib$name.la"; then
16883 found_la="$additional_libdir/lib$name.la"
16884 fi
16885 fi
16886 fi
16887 fi
16888 if test "X$found_dir" = "X"; then
16889 for x in $LDFLAGS $LTLIBICONV; do
16890
16891 acl_save_prefix="$prefix"
16892 prefix="$acl_final_prefix"
16893 acl_save_exec_prefix="$exec_prefix"
16894 exec_prefix="$acl_final_exec_prefix"
16895 eval x=\"$x\"
16896 exec_prefix="$acl_save_exec_prefix"
16897 prefix="$acl_save_prefix"
16898
16899 case "$x" in
16900 -L*)
16901 dir=`echo "X$x" | sed -e 's/^X-L//'`
16902 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16903 found_dir="$dir"
16904 found_so="$dir/lib$name.$shlibext"
16905 if test -f "$dir/lib$name.la"; then
16906 found_la="$dir/lib$name.la"
16907 fi
16908 else
16909 if test -f "$dir/lib$name.$libext"; then
16910 found_dir="$dir"
16911 found_a="$dir/lib$name.$libext"
16912 if test -f "$dir/lib$name.la"; then
16913 found_la="$dir/lib$name.la"
16914 fi
16915 fi
16916 fi
16917 ;;
16918 esac
16919 if test "X$found_dir" != "X"; then
16920 break
16921 fi
16922 done
16923 fi
16924 if test "X$found_dir" != "X"; then
16925 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16926 if test "X$found_so" != "X"; then
16927 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16929 else
16930 haveit=
16931 for x in $ltrpathdirs; do
16932 if test "X$x" = "X$found_dir"; then
16933 haveit=yes
16934 break
16935 fi
16936 done
16937 if test -z "$haveit"; then
16938 ltrpathdirs="$ltrpathdirs $found_dir"
16939 fi
16940 if test "$hardcode_direct" = yes; then
16941 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16942 else
16943 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16944 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16945 haveit=
16946 for x in $rpathdirs; do
16947 if test "X$x" = "X$found_dir"; then
16948 haveit=yes
16949 break
16950 fi
16951 done
16952 if test -z "$haveit"; then
16953 rpathdirs="$rpathdirs $found_dir"
16954 fi
16955 else
16956 haveit=
16957 for x in $LDFLAGS $LIBICONV; do
16958
16959 acl_save_prefix="$prefix"
16960 prefix="$acl_final_prefix"
16961 acl_save_exec_prefix="$exec_prefix"
16962 exec_prefix="$acl_final_exec_prefix"
16963 eval x=\"$x\"
16964 exec_prefix="$acl_save_exec_prefix"
16965 prefix="$acl_save_prefix"
16966
16967 if test "X$x" = "X-L$found_dir"; then
16968 haveit=yes
16969 break
16970 fi
16971 done
16972 if test -z "$haveit"; then
16973 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16974 fi
16975 if test "$hardcode_minus_L" != no; then
16976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16977 else
16978 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16979 fi
16980 fi
16981 fi
16982 fi
16983 else
16984 if test "X$found_a" != "X"; then
16985 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16986 else
16987 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16988 fi
16989 fi
16990 additional_includedir=
16991 case "$found_dir" in
16992 */lib | */lib/)
16993 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16994 additional_includedir="$basedir/include"
16995 ;;
16996 esac
16997 if test "X$additional_includedir" != "X"; then
16998 if test "X$additional_includedir" != "X/usr/include"; then
16999 haveit=
17000 if test "X$additional_includedir" = "X/usr/local/include"; then
17001 if test -n "$GCC"; then
17002 case $host_os in
17003 linux*) haveit=yes;;
17004 esac
17005 fi
17006 fi
17007 if test -z "$haveit"; then
17008 for x in $CPPFLAGS $INCICONV; do
17009
17010 acl_save_prefix="$prefix"
17011 prefix="$acl_final_prefix"
17012 acl_save_exec_prefix="$exec_prefix"
17013 exec_prefix="$acl_final_exec_prefix"
17014 eval x=\"$x\"
17015 exec_prefix="$acl_save_exec_prefix"
17016 prefix="$acl_save_prefix"
17017
17018 if test "X$x" = "X-I$additional_includedir"; then
17019 haveit=yes
17020 break
17021 fi
17022 done
17023 if test -z "$haveit"; then
17024 if test -d "$additional_includedir"; then
17025 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17026 fi
17027 fi
17028 fi
17029 fi
17030 fi
17031 if test -n "$found_la"; then
17032 save_libdir="$libdir"
17033 case "$found_la" in
17034 */* | *\\*) . "$found_la" ;;
17035 *) . "./$found_la" ;;
17036 esac
17037 libdir="$save_libdir"
17038 for dep in $dependency_libs; do
17039 case "$dep" in
17040 -L*)
17041 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17042 if test "X$additional_libdir" != "X/usr/lib"; then
17043 haveit=
17044 if test "X$additional_libdir" = "X/usr/local/lib"; then
17045 if test -n "$GCC"; then
17046 case $host_os in
17047 linux*) haveit=yes;;
17048 esac
17049 fi
17050 fi
17051 if test -z "$haveit"; then
17052 haveit=
17053 for x in $LDFLAGS $LIBICONV; do
17054
17055 acl_save_prefix="$prefix"
17056 prefix="$acl_final_prefix"
17057 acl_save_exec_prefix="$exec_prefix"
17058 exec_prefix="$acl_final_exec_prefix"
17059 eval x=\"$x\"
17060 exec_prefix="$acl_save_exec_prefix"
17061 prefix="$acl_save_prefix"
17062
17063 if test "X$x" = "X-L$additional_libdir"; then
17064 haveit=yes
17065 break
17066 fi
17067 done
17068 if test -z "$haveit"; then
17069 if test -d "$additional_libdir"; then
17070 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17071 fi
17072 fi
17073 haveit=
17074 for x in $LDFLAGS $LTLIBICONV; do
17075
17076 acl_save_prefix="$prefix"
17077 prefix="$acl_final_prefix"
17078 acl_save_exec_prefix="$exec_prefix"
17079 exec_prefix="$acl_final_exec_prefix"
17080 eval x=\"$x\"
17081 exec_prefix="$acl_save_exec_prefix"
17082 prefix="$acl_save_prefix"
17083
17084 if test "X$x" = "X-L$additional_libdir"; then
17085 haveit=yes
17086 break
17087 fi
17088 done
17089 if test -z "$haveit"; then
17090 if test -d "$additional_libdir"; then
17091 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17092 fi
17093 fi
17094 fi
17095 fi
17096 ;;
17097 -R*)
17098 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17099 if test "$enable_rpath" != no; then
17100 haveit=
17101 for x in $rpathdirs; do
17102 if test "X$x" = "X$dir"; then
17103 haveit=yes
17104 break
17105 fi
17106 done
17107 if test -z "$haveit"; then
17108 rpathdirs="$rpathdirs $dir"
17109 fi
17110 haveit=
17111 for x in $ltrpathdirs; do
17112 if test "X$x" = "X$dir"; then
17113 haveit=yes
17114 break
17115 fi
17116 done
17117 if test -z "$haveit"; then
17118 ltrpathdirs="$ltrpathdirs $dir"
17119 fi
17120 fi
17121 ;;
17122 -l*)
17123 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17124 ;;
17125 *.la)
17126 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17127 ;;
17128 *)
17129 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17130 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17131 ;;
17132 esac
17133 done
17134 fi
17135 else
17136 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17138 fi
17139 fi
17140 fi
17141 done
17142 done
17143 if test "X$rpathdirs" != "X"; then
17144 if test -n "$hardcode_libdir_separator"; then
17145 alldirs=
17146 for found_dir in $rpathdirs; do
17147 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17148 done
17149 acl_save_libdir="$libdir"
17150 libdir="$alldirs"
17151 eval flag=\"$hardcode_libdir_flag_spec\"
17152 libdir="$acl_save_libdir"
17153 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17154 else
17155 for found_dir in $rpathdirs; do
17156 acl_save_libdir="$libdir"
17157 libdir="$found_dir"
17158 eval flag=\"$hardcode_libdir_flag_spec\"
17159 libdir="$acl_save_libdir"
17160 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17161 done
17162 fi
17163 fi
17164 if test "X$ltrpathdirs" != "X"; then
17165 for found_dir in $ltrpathdirs; do
17166 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17167 done
17168 fi
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17188 printf %s "checking whether NLS is requested... " >&6; }
17189 # Check whether --enable-nls was given.
17190 if test ${enable_nls+y}
17191 then :
17192 enableval=$enable_nls; USE_NLS=$enableval
17193 else $as_nop
17194 USE_NLS=yes
17195 fi
17196
17197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17198 printf "%s\n" "$USE_NLS" >&6; }
17199
17200
17201
17202
17203 LIBINTL=
17204 LTLIBINTL=
17205 POSUB=
17206
17207 if test "$USE_NLS" = "yes"; then
17208 gt_use_preinstalled_gnugettext=no
17209
17210
17211
17212
17213
17214
17215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17216 printf %s "checking for GNU gettext in libc... " >&6; }
17217 if test ${gt_cv_func_gnugettext1_libc+y}
17218 then :
17219 printf %s "(cached) " >&6
17220 else $as_nop
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h. */
17223 #include <libintl.h>
17224 extern int _nl_msg_cat_cntr;
17225 extern int *_nl_domain_bindings;
17226 int
17227 main (void)
17228 {
17229 bindtextdomain ("", "");
17230 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_link "$LINENO"
17236 then :
17237 gt_cv_func_gnugettext1_libc=yes
17238 else $as_nop
17239 gt_cv_func_gnugettext1_libc=no
17240 fi
17241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17242 conftest$ac_exeext conftest.$ac_ext
17243 fi
17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17245 printf "%s\n" "$gt_cv_func_gnugettext1_libc" >&6; }
17246
17247 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17248
17249
17250
17251
17252
17253 am_save_CPPFLAGS="$CPPFLAGS"
17254
17255 for element in $INCICONV; do
17256 haveit=
17257 for x in $CPPFLAGS; do
17258
17259 acl_save_prefix="$prefix"
17260 prefix="$acl_final_prefix"
17261 acl_save_exec_prefix="$exec_prefix"
17262 exec_prefix="$acl_final_exec_prefix"
17263 eval x=\"$x\"
17264 exec_prefix="$acl_save_exec_prefix"
17265 prefix="$acl_save_prefix"
17266
17267 if test "X$x" = "X$element"; then
17268 haveit=yes
17269 break
17270 fi
17271 done
17272 if test -z "$haveit"; then
17273 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17274 fi
17275 done
17276
17277
17278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17279 printf %s "checking for iconv... " >&6; }
17280 if test ${am_cv_func_iconv+y}
17281 then :
17282 printf %s "(cached) " >&6
17283 else $as_nop
17284
17285 am_cv_func_iconv="no, consider installing GNU libiconv"
17286 am_cv_lib_iconv=no
17287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288 /* end confdefs.h. */
17289 #include <stdlib.h>
17290 #include <iconv.h>
17291 int
17292 main (void)
17293 {
17294 iconv_t cd = iconv_open("","");
17295 iconv(cd,NULL,NULL,NULL,NULL);
17296 iconv_close(cd);
17297 ;
17298 return 0;
17299 }
17300 _ACEOF
17301 if ac_fn_c_try_link "$LINENO"
17302 then :
17303 am_cv_func_iconv=yes
17304 fi
17305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17306 conftest$ac_exeext conftest.$ac_ext
17307 if test "$am_cv_func_iconv" != yes; then
17308 am_save_LIBS="$LIBS"
17309 LIBS="$LIBS $LIBICONV"
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17312 #include <stdlib.h>
17313 #include <iconv.h>
17314 int
17315 main (void)
17316 {
17317 iconv_t cd = iconv_open("","");
17318 iconv(cd,NULL,NULL,NULL,NULL);
17319 iconv_close(cd);
17320 ;
17321 return 0;
17322 }
17323 _ACEOF
17324 if ac_fn_c_try_link "$LINENO"
17325 then :
17326 am_cv_lib_iconv=yes
17327 am_cv_func_iconv=yes
17328 fi
17329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17330 conftest$ac_exeext conftest.$ac_ext
17331 LIBS="$am_save_LIBS"
17332 fi
17333
17334 fi
17335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17336 printf "%s\n" "$am_cv_func_iconv" >&6; }
17337 if test "$am_cv_func_iconv" = yes; then
17338
17339 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
17340
17341 fi
17342 if test "$am_cv_lib_iconv" = yes; then
17343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17344 printf %s "checking how to link with libiconv... " >&6; }
17345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17346 printf "%s\n" "$LIBICONV" >&6; }
17347 else
17348 CPPFLAGS="$am_save_CPPFLAGS"
17349 LIBICONV=
17350 LTLIBICONV=
17351 fi
17352
17353
17354
17355
17356
17357
17358 use_additional=yes
17359
17360 acl_save_prefix="$prefix"
17361 prefix="$acl_final_prefix"
17362 acl_save_exec_prefix="$exec_prefix"
17363 exec_prefix="$acl_final_exec_prefix"
17364
17365 eval additional_includedir=\"$includedir\"
17366 eval additional_libdir=\"$libdir\"
17367
17368 exec_prefix="$acl_save_exec_prefix"
17369 prefix="$acl_save_prefix"
17370
17371
17372 # Check whether --with-libintl-prefix was given.
17373 if test ${with_libintl_prefix+y}
17374 then :
17375 withval=$with_libintl_prefix;
17376 if test "X$withval" = "Xno"; then
17377 use_additional=no
17378 else
17379 if test "X$withval" = "X"; then
17380
17381 acl_save_prefix="$prefix"
17382 prefix="$acl_final_prefix"
17383 acl_save_exec_prefix="$exec_prefix"
17384 exec_prefix="$acl_final_exec_prefix"
17385
17386 eval additional_includedir=\"$includedir\"
17387 eval additional_libdir=\"$libdir\"
17388
17389 exec_prefix="$acl_save_exec_prefix"
17390 prefix="$acl_save_prefix"
17391
17392 else
17393 additional_includedir="$withval/include"
17394 additional_libdir="$withval/lib"
17395 fi
17396 fi
17397
17398 fi
17399
17400 LIBINTL=
17401 LTLIBINTL=
17402 INCINTL=
17403 rpathdirs=
17404 ltrpathdirs=
17405 names_already_handled=
17406 names_next_round='intl '
17407 while test -n "$names_next_round"; do
17408 names_this_round="$names_next_round"
17409 names_next_round=
17410 for name in $names_this_round; do
17411 already_handled=
17412 for n in $names_already_handled; do
17413 if test "$n" = "$name"; then
17414 already_handled=yes
17415 break
17416 fi
17417 done
17418 if test -z "$already_handled"; then
17419 names_already_handled="$names_already_handled $name"
17420 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17421 eval value=\"\$HAVE_LIB$uppername\"
17422 if test -n "$value"; then
17423 if test "$value" = yes; then
17424 eval value=\"\$LIB$uppername\"
17425 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17426 eval value=\"\$LTLIB$uppername\"
17427 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17428 else
17429 :
17430 fi
17431 else
17432 found_dir=
17433 found_la=
17434 found_so=
17435 found_a=
17436 if test $use_additional = yes; then
17437 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17438 found_dir="$additional_libdir"
17439 found_so="$additional_libdir/lib$name.$shlibext"
17440 if test -f "$additional_libdir/lib$name.la"; then
17441 found_la="$additional_libdir/lib$name.la"
17442 fi
17443 else
17444 if test -f "$additional_libdir/lib$name.$libext"; then
17445 found_dir="$additional_libdir"
17446 found_a="$additional_libdir/lib$name.$libext"
17447 if test -f "$additional_libdir/lib$name.la"; then
17448 found_la="$additional_libdir/lib$name.la"
17449 fi
17450 fi
17451 fi
17452 fi
17453 if test "X$found_dir" = "X"; then
17454 for x in $LDFLAGS $LTLIBINTL; do
17455
17456 acl_save_prefix="$prefix"
17457 prefix="$acl_final_prefix"
17458 acl_save_exec_prefix="$exec_prefix"
17459 exec_prefix="$acl_final_exec_prefix"
17460 eval x=\"$x\"
17461 exec_prefix="$acl_save_exec_prefix"
17462 prefix="$acl_save_prefix"
17463
17464 case "$x" in
17465 -L*)
17466 dir=`echo "X$x" | sed -e 's/^X-L//'`
17467 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17468 found_dir="$dir"
17469 found_so="$dir/lib$name.$shlibext"
17470 if test -f "$dir/lib$name.la"; then
17471 found_la="$dir/lib$name.la"
17472 fi
17473 else
17474 if test -f "$dir/lib$name.$libext"; then
17475 found_dir="$dir"
17476 found_a="$dir/lib$name.$libext"
17477 if test -f "$dir/lib$name.la"; then
17478 found_la="$dir/lib$name.la"
17479 fi
17480 fi
17481 fi
17482 ;;
17483 esac
17484 if test "X$found_dir" != "X"; then
17485 break
17486 fi
17487 done
17488 fi
17489 if test "X$found_dir" != "X"; then
17490 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17491 if test "X$found_so" != "X"; then
17492 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17493 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17494 else
17495 haveit=
17496 for x in $ltrpathdirs; do
17497 if test "X$x" = "X$found_dir"; then
17498 haveit=yes
17499 break
17500 fi
17501 done
17502 if test -z "$haveit"; then
17503 ltrpathdirs="$ltrpathdirs $found_dir"
17504 fi
17505 if test "$hardcode_direct" = yes; then
17506 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17507 else
17508 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17510 haveit=
17511 for x in $rpathdirs; do
17512 if test "X$x" = "X$found_dir"; then
17513 haveit=yes
17514 break
17515 fi
17516 done
17517 if test -z "$haveit"; then
17518 rpathdirs="$rpathdirs $found_dir"
17519 fi
17520 else
17521 haveit=
17522 for x in $LDFLAGS $LIBINTL; do
17523
17524 acl_save_prefix="$prefix"
17525 prefix="$acl_final_prefix"
17526 acl_save_exec_prefix="$exec_prefix"
17527 exec_prefix="$acl_final_exec_prefix"
17528 eval x=\"$x\"
17529 exec_prefix="$acl_save_exec_prefix"
17530 prefix="$acl_save_prefix"
17531
17532 if test "X$x" = "X-L$found_dir"; then
17533 haveit=yes
17534 break
17535 fi
17536 done
17537 if test -z "$haveit"; then
17538 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17539 fi
17540 if test "$hardcode_minus_L" != no; then
17541 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17542 else
17543 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17544 fi
17545 fi
17546 fi
17547 fi
17548 else
17549 if test "X$found_a" != "X"; then
17550 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17551 else
17552 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17553 fi
17554 fi
17555 additional_includedir=
17556 case "$found_dir" in
17557 */lib | */lib/)
17558 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17559 additional_includedir="$basedir/include"
17560 ;;
17561 esac
17562 if test "X$additional_includedir" != "X"; then
17563 if test "X$additional_includedir" != "X/usr/include"; then
17564 haveit=
17565 if test "X$additional_includedir" = "X/usr/local/include"; then
17566 if test -n "$GCC"; then
17567 case $host_os in
17568 linux*) haveit=yes;;
17569 esac
17570 fi
17571 fi
17572 if test -z "$haveit"; then
17573 for x in $CPPFLAGS $INCINTL; do
17574
17575 acl_save_prefix="$prefix"
17576 prefix="$acl_final_prefix"
17577 acl_save_exec_prefix="$exec_prefix"
17578 exec_prefix="$acl_final_exec_prefix"
17579 eval x=\"$x\"
17580 exec_prefix="$acl_save_exec_prefix"
17581 prefix="$acl_save_prefix"
17582
17583 if test "X$x" = "X-I$additional_includedir"; then
17584 haveit=yes
17585 break
17586 fi
17587 done
17588 if test -z "$haveit"; then
17589 if test -d "$additional_includedir"; then
17590 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17591 fi
17592 fi
17593 fi
17594 fi
17595 fi
17596 if test -n "$found_la"; then
17597 save_libdir="$libdir"
17598 case "$found_la" in
17599 */* | *\\*) . "$found_la" ;;
17600 *) . "./$found_la" ;;
17601 esac
17602 libdir="$save_libdir"
17603 for dep in $dependency_libs; do
17604 case "$dep" in
17605 -L*)
17606 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17607 if test "X$additional_libdir" != "X/usr/lib"; then
17608 haveit=
17609 if test "X$additional_libdir" = "X/usr/local/lib"; then
17610 if test -n "$GCC"; then
17611 case $host_os in
17612 linux*) haveit=yes;;
17613 esac
17614 fi
17615 fi
17616 if test -z "$haveit"; then
17617 haveit=
17618 for x in $LDFLAGS $LIBINTL; do
17619
17620 acl_save_prefix="$prefix"
17621 prefix="$acl_final_prefix"
17622 acl_save_exec_prefix="$exec_prefix"
17623 exec_prefix="$acl_final_exec_prefix"
17624 eval x=\"$x\"
17625 exec_prefix="$acl_save_exec_prefix"
17626 prefix="$acl_save_prefix"
17627
17628 if test "X$x" = "X-L$additional_libdir"; then
17629 haveit=yes
17630 break
17631 fi
17632 done
17633 if test -z "$haveit"; then
17634 if test -d "$additional_libdir"; then
17635 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17636 fi
17637 fi
17638 haveit=
17639 for x in $LDFLAGS $LTLIBINTL; do
17640
17641 acl_save_prefix="$prefix"
17642 prefix="$acl_final_prefix"
17643 acl_save_exec_prefix="$exec_prefix"
17644 exec_prefix="$acl_final_exec_prefix"
17645 eval x=\"$x\"
17646 exec_prefix="$acl_save_exec_prefix"
17647 prefix="$acl_save_prefix"
17648
17649 if test "X$x" = "X-L$additional_libdir"; then
17650 haveit=yes
17651 break
17652 fi
17653 done
17654 if test -z "$haveit"; then
17655 if test -d "$additional_libdir"; then
17656 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17657 fi
17658 fi
17659 fi
17660 fi
17661 ;;
17662 -R*)
17663 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17664 if test "$enable_rpath" != no; then
17665 haveit=
17666 for x in $rpathdirs; do
17667 if test "X$x" = "X$dir"; then
17668 haveit=yes
17669 break
17670 fi
17671 done
17672 if test -z "$haveit"; then
17673 rpathdirs="$rpathdirs $dir"
17674 fi
17675 haveit=
17676 for x in $ltrpathdirs; do
17677 if test "X$x" = "X$dir"; then
17678 haveit=yes
17679 break
17680 fi
17681 done
17682 if test -z "$haveit"; then
17683 ltrpathdirs="$ltrpathdirs $dir"
17684 fi
17685 fi
17686 ;;
17687 -l*)
17688 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17689 ;;
17690 *.la)
17691 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17692 ;;
17693 *)
17694 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17695 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17696 ;;
17697 esac
17698 done
17699 fi
17700 else
17701 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17702 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17703 fi
17704 fi
17705 fi
17706 done
17707 done
17708 if test "X$rpathdirs" != "X"; then
17709 if test -n "$hardcode_libdir_separator"; then
17710 alldirs=
17711 for found_dir in $rpathdirs; do
17712 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17713 done
17714 acl_save_libdir="$libdir"
17715 libdir="$alldirs"
17716 eval flag=\"$hardcode_libdir_flag_spec\"
17717 libdir="$acl_save_libdir"
17718 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17719 else
17720 for found_dir in $rpathdirs; do
17721 acl_save_libdir="$libdir"
17722 libdir="$found_dir"
17723 eval flag=\"$hardcode_libdir_flag_spec\"
17724 libdir="$acl_save_libdir"
17725 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17726 done
17727 fi
17728 fi
17729 if test "X$ltrpathdirs" != "X"; then
17730 for found_dir in $ltrpathdirs; do
17731 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17732 done
17733 fi
17734
17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17736 printf %s "checking for GNU gettext in libintl... " >&6; }
17737 if test ${gt_cv_func_gnugettext1_libintl+y}
17738 then :
17739 printf %s "(cached) " >&6
17740 else $as_nop
17741 gt_save_CPPFLAGS="$CPPFLAGS"
17742 CPPFLAGS="$CPPFLAGS $INCINTL"
17743 gt_save_LIBS="$LIBS"
17744 LIBS="$LIBS $LIBINTL"
17745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17747 #include <libintl.h>
17748 extern int _nl_msg_cat_cntr;
17749 extern
17750 #ifdef __cplusplus
17751 "C"
17752 #endif
17753 const char *_nl_expand_alias ();
17754 int
17755 main (void)
17756 {
17757 bindtextdomain ("", "");
17758 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17759 ;
17760 return 0;
17761 }
17762 _ACEOF
17763 if ac_fn_c_try_link "$LINENO"
17764 then :
17765 gt_cv_func_gnugettext1_libintl=yes
17766 else $as_nop
17767 gt_cv_func_gnugettext1_libintl=no
17768 fi
17769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17770 conftest$ac_exeext conftest.$ac_ext
17771 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17772 LIBS="$LIBS $LIBICONV"
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17775 #include <libintl.h>
17776 extern int _nl_msg_cat_cntr;
17777 extern
17778 #ifdef __cplusplus
17779 "C"
17780 #endif
17781 const char *_nl_expand_alias ();
17782 int
17783 main (void)
17784 {
17785 bindtextdomain ("", "");
17786 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17787 ;
17788 return 0;
17789 }
17790 _ACEOF
17791 if ac_fn_c_try_link "$LINENO"
17792 then :
17793 LIBINTL="$LIBINTL $LIBICONV"
17794 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17795 gt_cv_func_gnugettext1_libintl=yes
17796
17797 fi
17798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17799 conftest$ac_exeext conftest.$ac_ext
17800 fi
17801 CPPFLAGS="$gt_save_CPPFLAGS"
17802 LIBS="$gt_save_LIBS"
17803 fi
17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17805 printf "%s\n" "$gt_cv_func_gnugettext1_libintl" >&6; }
17806 fi
17807
17808 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17809 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17810 && test "$PACKAGE" != gettext-runtime \
17811 && test "$PACKAGE" != gettext-tools; }; then
17812 gt_use_preinstalled_gnugettext=yes
17813 else
17814 LIBINTL=
17815 LTLIBINTL=
17816 INCINTL=
17817 fi
17818
17819
17820
17821 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17822 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17823
17824 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
17825
17826 else
17827 USE_NLS=no
17828 fi
17829 fi
17830
17831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17832 printf %s "checking whether to use NLS... " >&6; }
17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17834 printf "%s\n" "$USE_NLS" >&6; }
17835 if test "$USE_NLS" = "yes"; then
17836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17837 printf %s "checking where the gettext function comes from... " >&6; }
17838 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17839 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17840 gt_source="external libintl"
17841 else
17842 gt_source="libc"
17843 fi
17844 else
17845 gt_source="included intl directory"
17846 fi
17847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17848 printf "%s\n" "$gt_source" >&6; }
17849 fi
17850
17851 if test "$USE_NLS" = "yes"; then
17852
17853 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17854 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17856 printf %s "checking how to link with libintl... " >&6; }
17857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17858 printf "%s\n" "$LIBINTL" >&6; }
17859
17860 for element in $INCINTL; do
17861 haveit=
17862 for x in $CPPFLAGS; do
17863
17864 acl_save_prefix="$prefix"
17865 prefix="$acl_final_prefix"
17866 acl_save_exec_prefix="$exec_prefix"
17867 exec_prefix="$acl_final_exec_prefix"
17868 eval x=\"$x\"
17869 exec_prefix="$acl_save_exec_prefix"
17870 prefix="$acl_save_prefix"
17871
17872 if test "X$x" = "X$element"; then
17873 haveit=yes
17874 break
17875 fi
17876 done
17877 if test -z "$haveit"; then
17878 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17879 fi
17880 done
17881
17882 fi
17883
17884
17885 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
17886
17887
17888 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
17889
17890 fi
17891
17892 POSUB=po
17893 fi
17894
17895
17896
17897 INTLLIBS="$LIBINTL"
17898
17899
17900
17901
17902
17903
17904 if test -d "$srcdir/po"
17905 then
17906 ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
17907 else
17908 ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn no nso or pa pl pt_BR pt ro ru si sk sl sq sr@Latn sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
17909 fi
17910
17911 ac_fn_c_check_header_compile "$LINENO" "error.h" "ac_cv_header_error_h" "$ac_includes_default
17912 "
17913 if test "x$ac_cv_header_error_h" = xyes
17914 then :
17915 printf "%s\n" "#define HAVE_ERROR_H 1" >>confdefs.h
17916
17917 fi
17918
17919
17920 ac_fn_c_check_header_compile "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default
17921 "
17922 if test "x$ac_cv_header_stdio_ext_h" = xyes
17923 then :
17924 printf "%s\n" "#define HAVE_STDIO_EXT_H 1" >>confdefs.h
17925
17926 fi
17927
17928
17929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17930 printf %s "checking for __progname... " >&6; }
17931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h. */
17933
17934 #include <stdio.h>
17935 #include <stdlib.h>
17936 extern char *__progname;
17937 int main(void) {
17938 const char *cp = __progname;
17939 printf("%s\n", cp);
17940 exit(0);
17941 }
17942
17943 _ACEOF
17944 if ac_fn_c_try_link "$LINENO"
17945 then :
17946
17947 printf "%s\n" "#define HAVE___PROGNAME 1" >>confdefs.h
17948
17949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17950 printf "%s\n" "yes" >&6; }
17951 else $as_nop
17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953 printf "%s\n" "no" >&6; }
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17956 conftest$ac_exeext conftest.$ac_ext
17957
17958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
17959 printf %s "checking whether program_invocation_name is defined... " >&6; }
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962 #include <errno.h>
17963 int
17964 main (void)
17965 {
17966 program_invocation_name = "test";
17967 ;
17968 return 0;
17969 }
17970 _ACEOF
17971 if ac_fn_c_try_compile "$LINENO"
17972 then :
17973
17974 printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17975
17976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17977 printf "%s\n" "yes" >&6; }
17978 else $as_nop
17979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17980 printf "%s\n" "no" >&6; }
17981 fi
17982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17983
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
17985 printf %s "checking whether program_invocation_short_name is defined... " >&6; }
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17988 #include <errno.h>
17989 int
17990 main (void)
17991 {
17992 program_invocation_short_name = "test";
17993 ;
17994 return 0;
17995 }
17996 _ACEOF
17997 if ac_fn_c_try_compile "$LINENO"
17998 then :
17999
18000 printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
18001
18002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18003 printf "%s\n" "yes" >&6; }
18004 else $as_nop
18005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18006 printf "%s\n" "no" >&6; }
18007 fi
18008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18009
18010 ac_fn_c_check_func "$LINENO" "pidfd_open" "ac_cv_func_pidfd_open"
18011 if test "x$ac_cv_func_pidfd_open" = xyes
18012 then :
18013 enable_pidwait=yes
18014 else $as_nop
18015
18016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __NR_pidfd_open" >&5
18017 printf %s "checking for __NR_pidfd_open... " >&6; }
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020
18021 #include <sys/syscall.h>
18022 #ifndef __NR_pidfd_open
18023 #error __NR_pidfd_open not defined
18024 #endif
18025
18026 _ACEOF
18027 if ac_fn_c_try_compile "$LINENO"
18028 then :
18029 enable_pidwait=yes
18030 else $as_nop
18031 enable_pidwait=no
18032 fi
18033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pidwait" >&5
18035 printf "%s\n" "$enable_pidwait" >&6; }
18036
18037 fi
18038
18039 if test "$enable_pidwait" = yes; then
18040
18041 printf "%s\n" "#define ENABLE_PIDWAIT 1" >>confdefs.h
18042
18043 fi
18044 if test x$enable_pidwait = xyes; then
18045 BUILD_PIDWAIT_TRUE=
18046 BUILD_PIDWAIT_FALSE='#'
18047 else
18048 BUILD_PIDWAIT_TRUE='#'
18049 BUILD_PIDWAIT_FALSE=
18050 fi
18051
18052
18053
18054 # Check whether --enable-watch8bit was given.
18055 if test ${enable_watch8bit+y}
18056 then :
18057 enableval=$enable_watch8bit;
18058 else $as_nop
18059 enable_watch8bit=no
18060
18061 fi
18062
18063 if test "$enable_watch8bit" = "yes"; then
18064
18065 printf "%s\n" "#define WITH_WATCH8BIT 1" >>confdefs.h
18066
18067 fi
18068
18069
18070 # Check whether --enable-colorwatch was given.
18071 if test ${enable_colorwatch+y}
18072 then :
18073 enableval=$enable_colorwatch;
18074 else $as_nop
18075 enable_colorwatch=no
18076
18077 fi
18078
18079 if test "$enable_colorwatch" = "yes"; then
18080
18081 printf "%s\n" "#define WITH_COLORWATCH 1" >>confdefs.h
18082
18083 fi
18084
18085
18086
18087 # Check whether --enable-libselinux was given.
18088 if test ${enable_libselinux+y}
18089 then :
18090 enableval=$enable_libselinux;
18091 else $as_nop
18092 enable_libselinux=no
18093
18094 fi
18095
18096 if test "$enable_libselinux" = "yes"; then
18097
18098 printf "%s\n" "#define ENABLE_LIBSELINUX 1" >>confdefs.h
18099
18100 fi
18101
18102 # Enable hardened compile and link flags
18103 # Check whether --enable-harden_flags was given.
18104 if test ${enable_harden_flags+y}
18105 then :
18106 enableval=$enable_harden_flags; enable_harden_flags=$enableval
18107 else $as_nop
18108 enable_harden_flags="no"
18109 fi
18110
18111
18112 # Check that harden CFLAGS and LDFLAGS will compile
18113 if test "$enable_harden_flags" = "yes"
18114 then :
18115 HARDEN_CFLAGS="-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security"
18116 HARDEN_LDFLAGS="-fPIE -pie -Wl,-z,relro -Wl,-z,now"
18117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler supports harden flags" >&5
18118 printf %s "checking compiler supports harden flags... " >&6; }
18119 save_harden_cflags="$CFLAGS"
18120 CFLAGS="$CFLAGS $HARDEN_CFLAGS"
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18123
18124 int
18125 main (void)
18126 {
18127
18128 ;
18129 return 0;
18130 }
18131 _ACEOF
18132 if ac_fn_c_try_compile "$LINENO"
18133 then :
18134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18135 printf "%s\n" "yes" >&6; }
18136 else $as_nop
18137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138 printf "%s\n" "no" >&6; }; HARDEN_CFLAGS=''
18139
18140 fi
18141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18142 CFLAGS="$save_harden_cflags"
18143 else $as_nop
18144 HARDEN_CFLAGS=""
18145 HARDEN_LDFLAGS=""
18146 fi
18147
18148
18149
18150 # Optional packages - AC_ARG_WITH
18151
18152 # Check whether --with-ncurses was given.
18153 if test ${with_ncurses+y}
18154 then :
18155 withval=$with_ncurses;
18156 else $as_nop
18157 with_ncurses=yes
18158
18159 fi
18160
18161 if test "x$with_ncurses" = xno; then
18162 if false; then
18163 WITH_NCURSES_TRUE=
18164 WITH_NCURSES_FALSE='#'
18165 else
18166 WITH_NCURSES_TRUE='#'
18167 WITH_NCURSES_FALSE=
18168 fi
18169
18170 if test "x$enable_watch8bit" = "xyes"
18171 then :
18172 as_fn_error $? "Cannot have both --enable-watch8bit and --without-ncurses" "$LINENO" 5
18173 fi
18174 else
18175 if true; then
18176 WITH_NCURSES_TRUE=
18177 WITH_NCURSES_FALSE='#'
18178 else
18179 WITH_NCURSES_TRUE='#'
18180 WITH_NCURSES_FALSE=
18181 fi
18182
18183
18184 pkg_failed=no
18185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
18186 printf %s "checking for ncursesw... " >&6; }
18187
18188 if test -n "$NCURSES_CFLAGS"; then
18189 pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
18190 elif test -n "$PKG_CONFIG"; then
18191 if test -n "$PKG_CONFIG" && \
18192 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
18193 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
18194 ac_status=$?
18195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18196 test $ac_status = 0; }; then
18197 pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
18198 test "x$?" != "x0" && pkg_failed=yes
18199 else
18200 pkg_failed=yes
18201 fi
18202 else
18203 pkg_failed=untried
18204 fi
18205 if test -n "$NCURSES_LIBS"; then
18206 pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
18207 elif test -n "$PKG_CONFIG"; then
18208 if test -n "$PKG_CONFIG" && \
18209 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
18210 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
18211 ac_status=$?
18212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18213 test $ac_status = 0; }; then
18214 pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
18215 test "x$?" != "x0" && pkg_failed=yes
18216 else
18217 pkg_failed=yes
18218 fi
18219 else
18220 pkg_failed=untried
18221 fi
18222
18223
18224
18225 if test $pkg_failed = yes; then
18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227 printf "%s\n" "no" >&6; }
18228
18229 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18230 _pkg_short_errors_supported=yes
18231 else
18232 _pkg_short_errors_supported=no
18233 fi
18234 if test $_pkg_short_errors_supported = yes; then
18235 NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
18236 else
18237 NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
18238 fi
18239 # Put the nasty error message in config.log where it belongs
18240 echo "$NCURSES_PKG_ERRORS" >&5
18241
18242
18243 if test "x$enable_watch8bit" = "xyes"
18244 then :
18245 as_fn_error $? "Cannot find ncurses wide library ncursesw with --enable-watch8bit" "$LINENO" 5
18246 fi
18247
18248 pkg_failed=no
18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
18250 printf %s "checking for ncurses... " >&6; }
18251
18252 if test -n "$NCURSES_CFLAGS"; then
18253 pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
18254 elif test -n "$PKG_CONFIG"; then
18255 if test -n "$PKG_CONFIG" && \
18256 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
18257 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
18258 ac_status=$?
18259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18260 test $ac_status = 0; }; then
18261 pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
18262 test "x$?" != "x0" && pkg_failed=yes
18263 else
18264 pkg_failed=yes
18265 fi
18266 else
18267 pkg_failed=untried
18268 fi
18269 if test -n "$NCURSES_LIBS"; then
18270 pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
18271 elif test -n "$PKG_CONFIG"; then
18272 if test -n "$PKG_CONFIG" && \
18273 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
18274 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
18275 ac_status=$?
18276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18277 test $ac_status = 0; }; then
18278 pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
18279 test "x$?" != "x0" && pkg_failed=yes
18280 else
18281 pkg_failed=yes
18282 fi
18283 else
18284 pkg_failed=untried
18285 fi
18286
18287
18288
18289 if test $pkg_failed = yes; then
18290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18291 printf "%s\n" "no" >&6; }
18292
18293 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18294 _pkg_short_errors_supported=yes
18295 else
18296 _pkg_short_errors_supported=no
18297 fi
18298 if test $_pkg_short_errors_supported = yes; then
18299 NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
18300 else
18301 NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
18302 fi
18303 # Put the nasty error message in config.log where it belongs
18304 echo "$NCURSES_PKG_ERRORS" >&5
18305
18306 as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
18307
18308 elif test $pkg_failed = untried; then
18309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 printf "%s\n" "no" >&6; }
18311 as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
18312
18313 else
18314 NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
18315 NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
18316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18317 printf "%s\n" "yes" >&6; }
18318
18319 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
18320
18321 fi
18322
18323
18324 elif test $pkg_failed = untried; then
18325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18326 printf "%s\n" "no" >&6; }
18327
18328 if test "x$enable_watch8bit" = "xyes"
18329 then :
18330 as_fn_error $? "Cannot find ncurses wide library ncursesw with --enable-watch8bit" "$LINENO" 5
18331 fi
18332
18333 pkg_failed=no
18334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
18335 printf %s "checking for ncurses... " >&6; }
18336
18337 if test -n "$NCURSES_CFLAGS"; then
18338 pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
18339 elif test -n "$PKG_CONFIG"; then
18340 if test -n "$PKG_CONFIG" && \
18341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
18342 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
18343 ac_status=$?
18344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18345 test $ac_status = 0; }; then
18346 pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
18347 test "x$?" != "x0" && pkg_failed=yes
18348 else
18349 pkg_failed=yes
18350 fi
18351 else
18352 pkg_failed=untried
18353 fi
18354 if test -n "$NCURSES_LIBS"; then
18355 pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
18356 elif test -n "$PKG_CONFIG"; then
18357 if test -n "$PKG_CONFIG" && \
18358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
18359 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
18360 ac_status=$?
18361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18362 test $ac_status = 0; }; then
18363 pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
18364 test "x$?" != "x0" && pkg_failed=yes
18365 else
18366 pkg_failed=yes
18367 fi
18368 else
18369 pkg_failed=untried
18370 fi
18371
18372
18373
18374 if test $pkg_failed = yes; then
18375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18376 printf "%s\n" "no" >&6; }
18377
18378 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18379 _pkg_short_errors_supported=yes
18380 else
18381 _pkg_short_errors_supported=no
18382 fi
18383 if test $_pkg_short_errors_supported = yes; then
18384 NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
18385 else
18386 NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
18387 fi
18388 # Put the nasty error message in config.log where it belongs
18389 echo "$NCURSES_PKG_ERRORS" >&5
18390
18391 as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
18392
18393 elif test $pkg_failed = untried; then
18394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18395 printf "%s\n" "no" >&6; }
18396 as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
18397
18398 else
18399 NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
18400 NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
18401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18402 printf "%s\n" "yes" >&6; }
18403
18404 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
18405
18406 fi
18407
18408
18409 else
18410 NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
18411 NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
18412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18413 printf "%s\n" "yes" >&6; }
18414
18415 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
18416
18417 fi
18418 fi
18419 # PKG_CHECK_MODULES([NCURSES], [ncurses], [], [
18420 # AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
18421 # AC_CHECK_HEADERS(curses.h ncurses.h term.h, [], [have_ncurses=no], AC_INCLUDES_DEFAULT)
18422 # if test "x$have_ncurses" = xno; then
18423 # AC_MSG_ERROR([ncurses support missing/incomplete (for partial build use --without-ncurses)])
18424 # fi
18425 # NCURSES_LIBS="-lncurses"
18426 # ])
18427 # AM_CONDITIONAL(WITH_NCURSES, true)
18428 # if test "$enable_watch8bit" = yes; then
18429 # PKG_CHECK_MODULES([NCURSESW], [ncursesw], [WATCH_NCURSES_LIBS="$NCURSESW_LIBS"], [
18430 # AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw], [
18431 # AC_CHECK_LIB([ncurses], [addwstr], [WATCH_NCURSES_LIBS=-lncurses], [
18432 # AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit])
18433 # ])
18434 # ])
18435 # ])
18436 # else
18437 # WATCH_NCURSES_LIBS="$NCURSES_LIBS"
18438 # fi
18439
18440
18441 # Check whether --with-systemd was given.
18442 if test ${with_systemd+y}
18443 then :
18444 withval=$with_systemd;
18445 else $as_nop
18446 with_systemd=no
18447
18448 fi
18449
18450 if test "x$with_systemd" != "xno"
18451 then :
18452
18453
18454 pkg_failed=no
18455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
18456 printf %s "checking for libsystemd... " >&6; }
18457
18458 if test -n "$SYSTEMD_CFLAGS"; then
18459 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
18460 elif test -n "$PKG_CONFIG"; then
18461 if test -n "$PKG_CONFIG" && \
18462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18463 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18464 ac_status=$?
18465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18466 test $ac_status = 0; }; then
18467 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
18468 test "x$?" != "x0" && pkg_failed=yes
18469 else
18470 pkg_failed=yes
18471 fi
18472 else
18473 pkg_failed=untried
18474 fi
18475 if test -n "$SYSTEMD_LIBS"; then
18476 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
18477 elif test -n "$PKG_CONFIG"; then
18478 if test -n "$PKG_CONFIG" && \
18479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18480 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18481 ac_status=$?
18482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18483 test $ac_status = 0; }; then
18484 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
18485 test "x$?" != "x0" && pkg_failed=yes
18486 else
18487 pkg_failed=yes
18488 fi
18489 else
18490 pkg_failed=untried
18491 fi
18492
18493
18494
18495 if test $pkg_failed = yes; then
18496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18497 printf "%s\n" "no" >&6; }
18498
18499 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18500 _pkg_short_errors_supported=yes
18501 else
18502 _pkg_short_errors_supported=no
18503 fi
18504 if test $_pkg_short_errors_supported = yes; then
18505 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
18506 else
18507 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
18508 fi
18509 # Put the nasty error message in config.log where it belongs
18510 echo "$SYSTEMD_PKG_ERRORS" >&5
18511
18512
18513 pkg_failed=no
18514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-login" >&5
18515 printf %s "checking for libsystemd-login... " >&6; }
18516
18517 if test -n "$SYSTEMD_CFLAGS"; then
18518 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
18519 elif test -n "$PKG_CONFIG"; then
18520 if test -n "$PKG_CONFIG" && \
18521 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login\""; } >&5
18522 ($PKG_CONFIG --exists --print-errors "libsystemd-login") 2>&5
18523 ac_status=$?
18524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18525 test $ac_status = 0; }; then
18526 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-login" 2>/dev/null`
18527 test "x$?" != "x0" && pkg_failed=yes
18528 else
18529 pkg_failed=yes
18530 fi
18531 else
18532 pkg_failed=untried
18533 fi
18534 if test -n "$SYSTEMD_LIBS"; then
18535 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
18536 elif test -n "$PKG_CONFIG"; then
18537 if test -n "$PKG_CONFIG" && \
18538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login\""; } >&5
18539 ($PKG_CONFIG --exists --print-errors "libsystemd-login") 2>&5
18540 ac_status=$?
18541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18542 test $ac_status = 0; }; then
18543 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-login" 2>/dev/null`
18544 test "x$?" != "x0" && pkg_failed=yes
18545 else
18546 pkg_failed=yes
18547 fi
18548 else
18549 pkg_failed=untried
18550 fi
18551
18552
18553
18554 if test $pkg_failed = yes; then
18555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18556 printf "%s\n" "no" >&6; }
18557
18558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18559 _pkg_short_errors_supported=yes
18560 else
18561 _pkg_short_errors_supported=no
18562 fi
18563 if test $_pkg_short_errors_supported = yes; then
18564 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-login" 2>&1`
18565 else
18566 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-login" 2>&1`
18567 fi
18568 # Put the nasty error message in config.log where it belongs
18569 echo "$SYSTEMD_PKG_ERRORS" >&5
18570
18571 as_fn_error $? "Package requirements (libsystemd-login) were not met:
18572
18573 $SYSTEMD_PKG_ERRORS
18574
18575 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18576 installed software in a non-standard prefix.
18577
18578 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
18579 and SYSTEMD_LIBS to avoid the need to call pkg-config.
18580 See the pkg-config man page for more details." "$LINENO" 5
18581 elif test $pkg_failed = untried; then
18582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18583 printf "%s\n" "no" >&6; }
18584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18585 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18586 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18587 is in your PATH or set the PKG_CONFIG environment variable to the full
18588 path to pkg-config.
18589
18590 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
18591 and SYSTEMD_LIBS to avoid the need to call pkg-config.
18592 See the pkg-config man page for more details.
18593
18594 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18595 See \`config.log' for more details" "$LINENO" 5; }
18596 else
18597 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
18598 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
18599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18600 printf "%s\n" "yes" >&6; }
18601
18602 fi
18603
18604 elif test $pkg_failed = untried; then
18605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606 printf "%s\n" "no" >&6; }
18607
18608 pkg_failed=no
18609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-login" >&5
18610 printf %s "checking for libsystemd-login... " >&6; }
18611
18612 if test -n "$SYSTEMD_CFLAGS"; then
18613 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
18614 elif test -n "$PKG_CONFIG"; then
18615 if test -n "$PKG_CONFIG" && \
18616 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login\""; } >&5
18617 ($PKG_CONFIG --exists --print-errors "libsystemd-login") 2>&5
18618 ac_status=$?
18619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18620 test $ac_status = 0; }; then
18621 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-login" 2>/dev/null`
18622 test "x$?" != "x0" && pkg_failed=yes
18623 else
18624 pkg_failed=yes
18625 fi
18626 else
18627 pkg_failed=untried
18628 fi
18629 if test -n "$SYSTEMD_LIBS"; then
18630 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
18631 elif test -n "$PKG_CONFIG"; then
18632 if test -n "$PKG_CONFIG" && \
18633 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login\""; } >&5
18634 ($PKG_CONFIG --exists --print-errors "libsystemd-login") 2>&5
18635 ac_status=$?
18636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18637 test $ac_status = 0; }; then
18638 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-login" 2>/dev/null`
18639 test "x$?" != "x0" && pkg_failed=yes
18640 else
18641 pkg_failed=yes
18642 fi
18643 else
18644 pkg_failed=untried
18645 fi
18646
18647
18648
18649 if test $pkg_failed = yes; then
18650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651 printf "%s\n" "no" >&6; }
18652
18653 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18654 _pkg_short_errors_supported=yes
18655 else
18656 _pkg_short_errors_supported=no
18657 fi
18658 if test $_pkg_short_errors_supported = yes; then
18659 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-login" 2>&1`
18660 else
18661 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-login" 2>&1`
18662 fi
18663 # Put the nasty error message in config.log where it belongs
18664 echo "$SYSTEMD_PKG_ERRORS" >&5
18665
18666 as_fn_error $? "Package requirements (libsystemd-login) were not met:
18667
18668 $SYSTEMD_PKG_ERRORS
18669
18670 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18671 installed software in a non-standard prefix.
18672
18673 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
18674 and SYSTEMD_LIBS to avoid the need to call pkg-config.
18675 See the pkg-config man page for more details." "$LINENO" 5
18676 elif test $pkg_failed = untried; then
18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18678 printf "%s\n" "no" >&6; }
18679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18680 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18681 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18682 is in your PATH or set the PKG_CONFIG environment variable to the full
18683 path to pkg-config.
18684
18685 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
18686 and SYSTEMD_LIBS to avoid the need to call pkg-config.
18687 See the pkg-config man page for more details.
18688
18689 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18690 See \`config.log' for more details" "$LINENO" 5; }
18691 else
18692 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
18693 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18695 printf "%s\n" "yes" >&6; }
18696
18697 fi
18698
18699 else
18700 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
18701 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
18702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18703 printf "%s\n" "yes" >&6; }
18704
18705 fi
18706
18707 printf "%s\n" "#define WITH_SYSTEMD 1" >>confdefs.h
18708
18709
18710 # The functions needed to replace utmp with logind are only available
18711 # with systemd v254 or later.
18712 old_LIBS="$LIBS"
18713 LIBS="$LIBS $SYSTEMD_LIBS"
18714 ac_fn_c_check_func "$LINENO" "sd_session_get_leader" "ac_cv_func_sd_session_get_leader"
18715 if test "x$ac_cv_func_sd_session_get_leader" = xyes
18716 then :
18717 printf "%s\n" "#define HAVE_SD_SESSION_GET_LEADER 1" >>confdefs.h
18718
18719 fi
18720
18721 LIBS="$old_LIBS"
18722
18723 fi
18724 if test x$with_systemd != xno; then
18725 WITH_SYSTEMD_TRUE=
18726 WITH_SYSTEMD_FALSE='#'
18727 else
18728 WITH_SYSTEMD_TRUE='#'
18729 WITH_SYSTEMD_FALSE=
18730 fi
18731
18732
18733
18734 # Check whether --with-elogind was given.
18735 if test ${with_elogind+y}
18736 then :
18737 withval=$with_elogind;
18738 else $as_nop
18739 with_elogind=no
18740
18741 fi
18742
18743 # Do not allow elogind if systemd is wanted and found
18744 if test "x$with_systemd" != "xno"
18745 then :
18746 with_elogind=no
18747 fi
18748
18749 if test "x$with_elogind" != "xno"
18750 then :
18751
18752
18753 pkg_failed=no
18754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libelogind" >&5
18755 printf %s "checking for libelogind... " >&6; }
18756
18757 if test -n "$ELOGIND_CFLAGS"; then
18758 pkg_cv_ELOGIND_CFLAGS="$ELOGIND_CFLAGS"
18759 elif test -n "$PKG_CONFIG"; then
18760 if test -n "$PKG_CONFIG" && \
18761 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5
18762 ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5
18763 ac_status=$?
18764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18765 test $ac_status = 0; }; then
18766 pkg_cv_ELOGIND_CFLAGS=`$PKG_CONFIG --cflags "libelogind" 2>/dev/null`
18767 test "x$?" != "x0" && pkg_failed=yes
18768 else
18769 pkg_failed=yes
18770 fi
18771 else
18772 pkg_failed=untried
18773 fi
18774 if test -n "$ELOGIND_LIBS"; then
18775 pkg_cv_ELOGIND_LIBS="$ELOGIND_LIBS"
18776 elif test -n "$PKG_CONFIG"; then
18777 if test -n "$PKG_CONFIG" && \
18778 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5
18779 ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5
18780 ac_status=$?
18781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18782 test $ac_status = 0; }; then
18783 pkg_cv_ELOGIND_LIBS=`$PKG_CONFIG --libs "libelogind" 2>/dev/null`
18784 test "x$?" != "x0" && pkg_failed=yes
18785 else
18786 pkg_failed=yes
18787 fi
18788 else
18789 pkg_failed=untried
18790 fi
18791
18792
18793
18794 if test $pkg_failed = yes; then
18795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18796 printf "%s\n" "no" >&6; }
18797
18798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18799 _pkg_short_errors_supported=yes
18800 else
18801 _pkg_short_errors_supported=no
18802 fi
18803 if test $_pkg_short_errors_supported = yes; then
18804 ELOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelogind" 2>&1`
18805 else
18806 ELOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelogind" 2>&1`
18807 fi
18808 # Put the nasty error message in config.log where it belongs
18809 echo "$ELOGIND_PKG_ERRORS" >&5
18810
18811 as_fn_error $? "Package requirements (libelogind) were not met:
18812
18813 $ELOGIND_PKG_ERRORS
18814
18815 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18816 installed software in a non-standard prefix.
18817
18818 Alternatively, you may set the environment variables ELOGIND_CFLAGS
18819 and ELOGIND_LIBS to avoid the need to call pkg-config.
18820 See the pkg-config man page for more details." "$LINENO" 5
18821 elif test $pkg_failed = untried; then
18822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18823 printf "%s\n" "no" >&6; }
18824 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18825 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18826 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18827 is in your PATH or set the PKG_CONFIG environment variable to the full
18828 path to pkg-config.
18829
18830 Alternatively, you may set the environment variables ELOGIND_CFLAGS
18831 and ELOGIND_LIBS to avoid the need to call pkg-config.
18832 See the pkg-config man page for more details.
18833
18834 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18835 See \`config.log' for more details" "$LINENO" 5; }
18836 else
18837 ELOGIND_CFLAGS=$pkg_cv_ELOGIND_CFLAGS
18838 ELOGIND_LIBS=$pkg_cv_ELOGIND_LIBS
18839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18840 printf "%s\n" "yes" >&6; }
18841
18842 fi
18843
18844 printf "%s\n" "#define WITH_ELOGIND 1" >>confdefs.h
18845
18846
18847 fi
18848 if test x$with_elogind != xno; then
18849 WITH_ELOGIND_TRUE=
18850 WITH_ELOGIND_FALSE='#'
18851 else
18852 WITH_ELOGIND_TRUE='#'
18853 WITH_ELOGIND_FALSE=
18854 fi
18855
18856
18857 # AC_ARG_ENABLEs
18858 # Check whether --enable-pidof was given.
18859 if test ${enable_pidof+y}
18860 then :
18861 enableval=$enable_pidof;
18862 else $as_nop
18863 enable_pidof=yes
18864
18865 fi
18866
18867 if test "x$enable_pidof" = xyes; then
18868 BUILD_PIDOF_TRUE=
18869 BUILD_PIDOF_FALSE='#'
18870 else
18871 BUILD_PIDOF_TRUE='#'
18872 BUILD_PIDOF_FALSE=
18873 fi
18874
18875
18876 # Check whether --enable-kill was given.
18877 if test ${enable_kill+y}
18878 then :
18879 enableval=$enable_kill;
18880 else $as_nop
18881 enable_kill=yes
18882
18883 fi
18884
18885 if test "x$enable_kill" = xyes; then
18886 BUILD_KILL_TRUE=
18887 BUILD_KILL_FALSE='#'
18888 else
18889 BUILD_KILL_TRUE='#'
18890 BUILD_KILL_FALSE=
18891 fi
18892
18893 # Check whether --enable-w was given.
18894 if test ${enable_w+y}
18895 then :
18896 enableval=$enable_w;
18897 else $as_nop
18898 enable_w=yes
18899
18900 fi
18901
18902 if test "x$enable_w" = xyes; then
18903 BUILD_W_TRUE=
18904 BUILD_W_FALSE='#'
18905 else
18906 BUILD_W_TRUE='#'
18907 BUILD_W_FALSE=
18908 fi
18909
18910
18911 if test "x$host_os" = xlinux-gnu; then
18912 LINUX_TRUE=
18913 LINUX_FALSE='#'
18914 else
18915 LINUX_TRUE='#'
18916 LINUX_FALSE=
18917 fi
18918
18919 if test "x$host_os" = xcygwin; then
18920 CYGWIN_TRUE=
18921 CYGWIN_FALSE='#'
18922 else
18923 CYGWIN_TRUE='#'
18924 CYGWIN_FALSE=
18925 fi
18926
18927
18928 # Check whether --enable-skill was given.
18929 if test ${enable_skill+y}
18930 then :
18931 enableval=$enable_skill;
18932 else $as_nop
18933 enable_skill=no
18934
18935 fi
18936
18937 if test "x$enable_skill" = xyes; then
18938 BUILD_SKILL_TRUE=
18939 BUILD_SKILL_FALSE='#'
18940 else
18941 BUILD_SKILL_TRUE='#'
18942 BUILD_SKILL_FALSE=
18943 fi
18944
18945
18946 # Check whether --enable-examples was given.
18947 if test ${enable_examples+y}
18948 then :
18949 enableval=$enable_examples;
18950 else $as_nop
18951 enable_examples=no
18952
18953 fi
18954
18955 if test "x$enable_examples" = xyes; then
18956 EXAMPLE_FILES_TRUE=
18957 EXAMPLE_FILES_FALSE='#'
18958 else
18959 EXAMPLE_FILES_TRUE='#'
18960 EXAMPLE_FILES_FALSE=
18961 fi
18962
18963
18964 # Check whether --enable-sigwinch was given.
18965 if test ${enable_sigwinch+y}
18966 then :
18967 enableval=$enable_sigwinch;
18968 else $as_nop
18969 enable_sigwinch=no
18970
18971 fi
18972
18973 if test "x$enable_sigwinch" = xyes; then
18974
18975 printf "%s\n" "#define SIGNALS_LESS 1" >>confdefs.h
18976
18977 fi
18978
18979 # Check whether --enable-wide-percent was given.
18980 if test ${enable_wide_percent+y}
18981 then :
18982 enableval=$enable_wide_percent;
18983 else $as_nop
18984 enable_wide_percent=no
18985
18986 fi
18987
18988 if test "x$enable_wide_percent" = xyes; then
18989
18990 printf "%s\n" "#define BOOST_PERCNT 1" >>confdefs.h
18991
18992 fi
18993
18994 # Check whether --enable-wide-memory was given.
18995 if test ${enable_wide_memory+y}
18996 then :
18997 enableval=$enable_wide_memory;
18998 else $as_nop
18999 enable_wide_memory=no
19000
19001 fi
19002
19003 if test "x$enable_wide_memory" = xyes; then
19004
19005 printf "%s\n" "#define BOOST_MEMORY 1" >>confdefs.h
19006
19007 fi
19008
19009 # Check whether --enable-modern-top was given.
19010 if test ${enable_modern_top+y}
19011 then :
19012 enableval=$enable_modern_top;
19013 else $as_nop
19014 enable_modern_top=yes
19015
19016 fi
19017
19018 if test "x$enable_modern_top" = xno; then
19019
19020 printf "%s\n" "#define ORIG_TOPDEFS 1" >>confdefs.h
19021
19022 fi
19023
19024 DL_LIB=
19025 # Check whether --enable-numa was given.
19026 if test ${enable_numa+y}
19027 then :
19028 enableval=$enable_numa;
19029 else $as_nop
19030 enable_numa=yes
19031
19032 fi
19033
19034 if test "x$enable_numa" = xno; then
19035
19036 printf "%s\n" "#define NUMA_DISABLE 1" >>confdefs.h
19037
19038 else
19039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19040 printf %s "checking for library containing dlopen... " >&6; }
19041 if test ${ac_cv_search_dlopen+y}
19042 then :
19043 printf %s "(cached) " >&6
19044 else $as_nop
19045 ac_func_search_save_LIBS=$LIBS
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19048
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19052 char dlopen ();
19053 int
19054 main (void)
19055 {
19056 return dlopen ();
19057 ;
19058 return 0;
19059 }
19060 _ACEOF
19061 for ac_lib in '' dl
19062 do
19063 if test -z "$ac_lib"; then
19064 ac_res="none required"
19065 else
19066 ac_res=-l$ac_lib
19067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19068 fi
19069 if ac_fn_c_try_link "$LINENO"
19070 then :
19071 ac_cv_search_dlopen=$ac_res
19072 fi
19073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19074 conftest$ac_exeext
19075 if test ${ac_cv_search_dlopen+y}
19076 then :
19077 break
19078 fi
19079 done
19080 if test ${ac_cv_search_dlopen+y}
19081 then :
19082
19083 else $as_nop
19084 ac_cv_search_dlopen=no
19085 fi
19086 rm conftest.$ac_ext
19087 LIBS=$ac_func_search_save_LIBS
19088 fi
19089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19090 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
19091 ac_res=$ac_cv_search_dlopen
19092 if test "$ac_res" != no
19093 then :
19094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19095
19096 else $as_nop
19097 as_fn_error $? "dynamic linking unavailable, circumvent with --disable-numa" "$LINENO" 5
19098 fi
19099
19100 if test "x$ac_cv_search_dlopen" != "xnone required"; then
19101 DL_LIB="$ac_cv_search_dlopen"
19102 fi
19103 fi
19104
19105
19106 # Check whether --enable-w-from was given.
19107 if test ${enable_w_from+y}
19108 then :
19109 enableval=$enable_w_from;
19110 else $as_nop
19111 enable_w_from=no
19112
19113 fi
19114
19115 if test "x$enable_w_from" = xyes; then
19116
19117 printf "%s\n" "#define W_SHOWFROM 1" >>confdefs.h
19118
19119 fi
19120
19121 # Check whether --enable-whining was given.
19122 if test ${enable_whining+y}
19123 then :
19124 enableval=$enable_whining;
19125 else $as_nop
19126 enable_whining=yes
19127
19128 fi
19129
19130 if test "x$enable_whining" = xyes; then
19131
19132 printf "%s\n" "#define BUILD_WITH_WHINE 1" >>confdefs.h
19133
19134 fi
19135
19136 if test x"$DEJAGNU" = x
19137 then
19138 DEJAGNU="/dev/null"
19139 fi
19140
19141
19142 ac_fn_c_check_func "$LINENO" "__fpending" "ac_cv_func___fpending"
19143 if test "x$ac_cv_func___fpending" = xyes
19144 then :
19145 printf "%s\n" "#define HAVE___FPENDING 1" >>confdefs.h
19146
19147 fi
19148 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
19149 if test "x$ac_cv_func_alarm" = xyes
19150 then :
19151 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
19152
19153 fi
19154 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
19155 if test "x$ac_cv_func_atexit" = xyes
19156 then :
19157 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
19158
19159 fi
19160 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
19161 if test "x$ac_cv_func_dup2" = xyes
19162 then :
19163 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
19164
19165 fi
19166 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
19167 if test "x$ac_cv_func_gethostname" = xyes
19168 then :
19169 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
19170
19171 fi
19172 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19173 if test "x$ac_cv_func_getpagesize" = xyes
19174 then :
19175 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
19176
19177 fi
19178 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19179 if test "x$ac_cv_func_gettimeofday" = xyes
19180 then :
19181 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
19182
19183 fi
19184 ac_fn_c_check_func "$LINENO" "iswprint" "ac_cv_func_iswprint"
19185 if test "x$ac_cv_func_iswprint" = xyes
19186 then :
19187 printf "%s\n" "#define HAVE_ISWPRINT 1" >>confdefs.h
19188
19189 fi
19190 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
19191 if test "x$ac_cv_func_memchr" = xyes
19192 then :
19193 printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
19194
19195 fi
19196 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19197 if test "x$ac_cv_func_memmove" = xyes
19198 then :
19199 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
19200
19201 fi
19202 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
19203 if test "x$ac_cv_func_memset" = xyes
19204 then :
19205 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
19206
19207 fi
19208 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
19209 if test "x$ac_cv_func_mkdir" = xyes
19210 then :
19211 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
19212
19213 fi
19214 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
19215 if test "x$ac_cv_func_nl_langinfo" = xyes
19216 then :
19217 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
19218
19219 fi
19220 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
19221 if test "x$ac_cv_func_putenv" = xyes
19222 then :
19223 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
19224
19225 fi
19226 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
19227 if test "x$ac_cv_func_regcomp" = xyes
19228 then :
19229 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
19230
19231 fi
19232 ac_fn_c_check_func "$LINENO" "rpmatch" "ac_cv_func_rpmatch"
19233 if test "x$ac_cv_func_rpmatch" = xyes
19234 then :
19235 printf "%s\n" "#define HAVE_RPMATCH 1" >>confdefs.h
19236
19237 fi
19238 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
19239 if test "x$ac_cv_func_select" = xyes
19240 then :
19241 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
19242
19243 fi
19244 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
19245 if test "x$ac_cv_func_setlocale" = xyes
19246 then :
19247 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
19248
19249 fi
19250 ac_fn_c_check_func "$LINENO" "sigabbrev_np" "ac_cv_func_sigabbrev_np"
19251 if test "x$ac_cv_func_sigabbrev_np" = xyes
19252 then :
19253 printf "%s\n" "#define HAVE_SIGABBREV_NP 1" >>confdefs.h
19254
19255 fi
19256 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19257 if test "x$ac_cv_func_strcasecmp" = xyes
19258 then :
19259 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
19260
19261 fi
19262 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
19263 if test "x$ac_cv_func_strchr" = xyes
19264 then :
19265 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
19266
19267 fi
19268 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
19269 if test "x$ac_cv_func_strcspn" = xyes
19270 then :
19271 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
19272
19273 fi
19274 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
19275 if test "x$ac_cv_func_strdup" = xyes
19276 then :
19277 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
19278
19279 fi
19280 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
19281 if test "x$ac_cv_func_strerror" = xyes
19282 then :
19283 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
19284
19285 fi
19286 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
19287 if test "x$ac_cv_func_strncasecmp" = xyes
19288 then :
19289 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
19290
19291 fi
19292 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
19293 if test "x$ac_cv_func_strndup" = xyes
19294 then :
19295 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
19296
19297 fi
19298 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
19299 if test "x$ac_cv_func_strpbrk" = xyes
19300 then :
19301 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
19302
19303 fi
19304 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
19305 if test "x$ac_cv_func_strrchr" = xyes
19306 then :
19307 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
19308
19309 fi
19310 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
19311 if test "x$ac_cv_func_strspn" = xyes
19312 then :
19313 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
19314
19315 fi
19316 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
19317 if test "x$ac_cv_func_strstr" = xyes
19318 then :
19319 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
19320
19321 fi
19322 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
19323 if test "x$ac_cv_func_strtol" = xyes
19324 then :
19325 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
19326
19327 fi
19328 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
19329 if test "x$ac_cv_func_strtoul" = xyes
19330 then :
19331 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
19332
19333 fi
19334 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
19335 if test "x$ac_cv_func_strverscmp" = xyes
19336 then :
19337 printf "%s\n" "#define HAVE_STRVERSCMP 1" >>confdefs.h
19338
19339 fi
19340 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
19341 if test "x$ac_cv_func_utmpname" = xyes
19342 then :
19343 printf "%s\n" "#define HAVE_UTMPNAME 1" >>confdefs.h
19344
19345 fi
19346 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
19347 if test "x$ac_cv_func_wcwidth" = xyes
19348 then :
19349 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
19350
19351 fi
19352
19353
19354 ac_config_files="$ac_config_files Makefile local/Makefile po-man/Makefile po/Makefile.in library/libproc2.pc testsuite/Makefile"
19355
19356 cat >confcache <<\_ACEOF
19357 # This file is a shell script that caches the results of configure
19358 # tests run on this system so they can be shared between configure
19359 # scripts and configure runs, see configure's option --config-cache.
19360 # It is not useful on other systems. If it contains results you don't
19361 # want to keep, you may remove or edit it.
19362 #
19363 # config.status only pays attention to the cache file if you give it
19364 # the --recheck option to rerun configure.
19365 #
19366 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19367 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19368 # following values.
19369
19370 _ACEOF
19371
19372 # The following way of writing the cache mishandles newlines in values,
19373 # but we know of no workaround that is simple, portable, and efficient.
19374 # So, we kill variables containing newlines.
19375 # Ultrix sh set writes to stderr and can't be redirected directly,
19376 # and sets the high bit in the cache file unless we assign to the vars.
19377 (
19378 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19379 eval ac_val=\$$ac_var
19380 case $ac_val in #(
19381 *${as_nl}*)
19382 case $ac_var in #(
19383 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19384 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19385 esac
19386 case $ac_var in #(
19387 _ | IFS | as_nl) ;; #(
19388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19389 *) { eval $ac_var=; unset $ac_var;} ;;
19390 esac ;;
19391 esac
19392 done
19393
19394 (set) 2>&1 |
19395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19396 *${as_nl}ac_space=\ *)
19397 # `set' does not quote correctly, so add quotes: double-quote
19398 # substitution turns \\\\ into \\, and sed turns \\ into \.
19399 sed -n \
19400 "s/'/'\\\\''/g;
19401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19402 ;; #(
19403 *)
19404 # `set' quotes correctly as required by POSIX, so do not add quotes.
19405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19406 ;;
19407 esac |
19408 sort
19409 ) |
19410 sed '
19411 /^ac_cv_env_/b end
19412 t clear
19413 :clear
19414 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19415 t end
19416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19417 :end' >>confcache
19418 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19419 if test -w "$cache_file"; then
19420 if test "x$cache_file" != "x/dev/null"; then
19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19422 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19423 if test ! -f "$cache_file" || test -h "$cache_file"; then
19424 cat confcache >"$cache_file"
19425 else
19426 case $cache_file in #(
19427 */* | ?:*)
19428 mv -f confcache "$cache_file"$$ &&
19429 mv -f "$cache_file"$$ "$cache_file" ;; #(
19430 *)
19431 mv -f confcache "$cache_file" ;;
19432 esac
19433 fi
19434 fi
19435 else
19436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19437 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19438 fi
19439 fi
19440 rm -f confcache
19441
19442 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19443 # Let make expand exec_prefix.
19444 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19445
19446 DEFS=-DHAVE_CONFIG_H
19447
19448 ac_libobjs=
19449 ac_ltlibobjs=
19450 U=
19451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19452 # 1. Remove the extension, and $U if already installed.
19453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19454 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19456 # will be set to the directory where LIBOBJS objects are built.
19457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19459 done
19460 LIBOBJS=$ac_libobjs
19461
19462 LTLIBOBJS=$ac_ltlibobjs
19463
19464
19465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19466 printf %s "checking that generated files are newer than configure... " >&6; }
19467 if test -n "$am_sleep_pid"; then
19468 # Hide warnings about reused PIDs.
19469 wait $am_sleep_pid 2>/dev/null
19470 fi
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19472 printf "%s\n" "done" >&6; }
19473 if test -n "$EXEEXT"; then
19474 am__EXEEXT_TRUE=
19475 am__EXEEXT_FALSE='#'
19476 else
19477 am__EXEEXT_TRUE='#'
19478 am__EXEEXT_FALSE=
19479 fi
19480
19481 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19482 as_fn_error $? "conditional \"AMDEP\" was never defined.
19483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19484 fi
19485 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19486 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19488 fi
19489 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19490 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19492 fi
19493 if test -z "${BUILD_PIDWAIT_TRUE}" && test -z "${BUILD_PIDWAIT_FALSE}"; then
19494 as_fn_error $? "conditional \"BUILD_PIDWAIT\" was never defined.
19495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19496 fi
19497 if test -z "${WITH_NCURSES_TRUE}" && test -z "${WITH_NCURSES_FALSE}"; then
19498 as_fn_error $? "conditional \"WITH_NCURSES\" was never defined.
19499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19500 fi
19501 if test -z "${WITH_NCURSES_TRUE}" && test -z "${WITH_NCURSES_FALSE}"; then
19502 as_fn_error $? "conditional \"WITH_NCURSES\" was never defined.
19503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19504 fi
19505 if test -z "${WITH_SYSTEMD_TRUE}" && test -z "${WITH_SYSTEMD_FALSE}"; then
19506 as_fn_error $? "conditional \"WITH_SYSTEMD\" was never defined.
19507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19508 fi
19509 if test -z "${WITH_ELOGIND_TRUE}" && test -z "${WITH_ELOGIND_FALSE}"; then
19510 as_fn_error $? "conditional \"WITH_ELOGIND\" was never defined.
19511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19512 fi
19513 if test -z "${BUILD_PIDOF_TRUE}" && test -z "${BUILD_PIDOF_FALSE}"; then
19514 as_fn_error $? "conditional \"BUILD_PIDOF\" was never defined.
19515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19516 fi
19517 if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then
19518 as_fn_error $? "conditional \"BUILD_KILL\" was never defined.
19519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19520 fi
19521 if test -z "${BUILD_W_TRUE}" && test -z "${BUILD_W_FALSE}"; then
19522 as_fn_error $? "conditional \"BUILD_W\" was never defined.
19523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19524 fi
19525 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
19526 as_fn_error $? "conditional \"LINUX\" was never defined.
19527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19528 fi
19529 if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
19530 as_fn_error $? "conditional \"CYGWIN\" was never defined.
19531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19532 fi
19533 if test -z "${BUILD_SKILL_TRUE}" && test -z "${BUILD_SKILL_FALSE}"; then
19534 as_fn_error $? "conditional \"BUILD_SKILL\" was never defined.
19535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19536 fi
19537 if test -z "${EXAMPLE_FILES_TRUE}" && test -z "${EXAMPLE_FILES_FALSE}"; then
19538 as_fn_error $? "conditional \"EXAMPLE_FILES\" was never defined.
19539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19540 fi
19541
19542 : "${CONFIG_STATUS=./config.status}"
19543 ac_write_fail=0
19544 ac_clean_files_save=$ac_clean_files
19545 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19547 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19548 as_write_fail=0
19549 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19550 #! $SHELL
19551 # Generated by $as_me.
19552 # Run this file to recreate the current configuration.
19553 # Compiler output produced by configure, useful for debugging
19554 # configure, is in config.log if it exists.
19555
19556 debug=false
19557 ac_cs_recheck=false
19558 ac_cs_silent=false
19559
19560 SHELL=\${CONFIG_SHELL-$SHELL}
19561 export SHELL
19562 _ASEOF
19563 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19564 ## -------------------- ##
19565 ## M4sh Initialization. ##
19566 ## -------------------- ##
19567
19568 # Be more Bourne compatible
19569 DUALCASE=1; export DUALCASE # for MKS sh
19570 as_nop=:
19571 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19572 then :
19573 emulate sh
19574 NULLCMD=:
19575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19576 # is contrary to our usage. Disable this feature.
19577 alias -g '${1+"$@"}'='"$@"'
19578 setopt NO_GLOB_SUBST
19579 else $as_nop
19580 case `(set -o) 2>/dev/null` in #(
19581 *posix*) :
19582 set -o posix ;; #(
19583 *) :
19584 ;;
19585 esac
19586 fi
19587
19588
19589
19590 # Reset variables that may have inherited troublesome values from
19591 # the environment.
19592
19593 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19594 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19595 # side effect of setting IFS to empty, thus disabling word splitting.)
19596 # Quoting is to prevent editors from complaining about space-tab.
19597 as_nl='
19598 '
19599 export as_nl
19600 IFS=" "" $as_nl"
19601
19602 PS1='$ '
19603 PS2='> '
19604 PS4='+ '
19605
19606 # Ensure predictable behavior from utilities with locale-dependent output.
19607 LC_ALL=C
19608 export LC_ALL
19609 LANGUAGE=C
19610 export LANGUAGE
19611
19612 # We cannot yet rely on "unset" to work, but we need these variables
19613 # to be unset--not just set to an empty or harmless value--now, to
19614 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19615 # also avoids known problems related to "unset" and subshell syntax
19616 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19617 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19618 do eval test \${$as_var+y} \
19619 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19620 done
19621
19622 # Ensure that fds 0, 1, and 2 are open.
19623 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19624 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19625 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19626
19627 # The user is always right.
19628 if ${PATH_SEPARATOR+false} :; then
19629 PATH_SEPARATOR=:
19630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19632 PATH_SEPARATOR=';'
19633 }
19634 fi
19635
19636
19637 # Find who we are. Look in the path if we contain no directory separator.
19638 as_myself=
19639 case $0 in #((
19640 *[\\/]* ) as_myself=$0 ;;
19641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19642 for as_dir in $PATH
19643 do
19644 IFS=$as_save_IFS
19645 case $as_dir in #(((
19646 '') as_dir=./ ;;
19647 */) ;;
19648 *) as_dir=$as_dir/ ;;
19649 esac
19650 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19651 done
19652 IFS=$as_save_IFS
19653
19654 ;;
19655 esac
19656 # We did not find ourselves, most probably we were run as `sh COMMAND'
19657 # in which case we are not to be found in the path.
19658 if test "x$as_myself" = x; then
19659 as_myself=$0
19660 fi
19661 if test ! -f "$as_myself"; then
19662 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19663 exit 1
19664 fi
19665
19666
19667
19668 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19669 # ----------------------------------------
19670 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19671 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19672 # script with STATUS, using 1 if that was 0.
19673 as_fn_error ()
19674 {
19675 as_status=$1; test $as_status -eq 0 && as_status=1
19676 if test "$4"; then
19677 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19679 fi
19680 printf "%s\n" "$as_me: error: $2" >&2
19681 as_fn_exit $as_status
19682 } # as_fn_error
19683
19684
19685
19686 # as_fn_set_status STATUS
19687 # -----------------------
19688 # Set $? to STATUS, without forking.
19689 as_fn_set_status ()
19690 {
19691 return $1
19692 } # as_fn_set_status
19693
19694 # as_fn_exit STATUS
19695 # -----------------
19696 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19697 as_fn_exit ()
19698 {
19699 set +e
19700 as_fn_set_status $1
19701 exit $1
19702 } # as_fn_exit
19703
19704 # as_fn_unset VAR
19705 # ---------------
19706 # Portably unset VAR.
19707 as_fn_unset ()
19708 {
19709 { eval $1=; unset $1;}
19710 }
19711 as_unset=as_fn_unset
19712
19713 # as_fn_append VAR VALUE
19714 # ----------------------
19715 # Append the text in VALUE to the end of the definition contained in VAR. Take
19716 # advantage of any shell optimizations that allow amortized linear growth over
19717 # repeated appends, instead of the typical quadratic growth present in naive
19718 # implementations.
19719 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19720 then :
19721 eval 'as_fn_append ()
19722 {
19723 eval $1+=\$2
19724 }'
19725 else $as_nop
19726 as_fn_append ()
19727 {
19728 eval $1=\$$1\$2
19729 }
19730 fi # as_fn_append
19731
19732 # as_fn_arith ARG...
19733 # ------------------
19734 # Perform arithmetic evaluation on the ARGs, and store the result in the
19735 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19736 # must be portable across $(()) and expr.
19737 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19738 then :
19739 eval 'as_fn_arith ()
19740 {
19741 as_val=$(( $* ))
19742 }'
19743 else $as_nop
19744 as_fn_arith ()
19745 {
19746 as_val=`expr "$@" || test $? -eq 1`
19747 }
19748 fi # as_fn_arith
19749
19750
19751 if expr a : '\(a\)' >/dev/null 2>&1 &&
19752 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19753 as_expr=expr
19754 else
19755 as_expr=false
19756 fi
19757
19758 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19759 as_basename=basename
19760 else
19761 as_basename=false
19762 fi
19763
19764 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19765 as_dirname=dirname
19766 else
19767 as_dirname=false
19768 fi
19769
19770 as_me=`$as_basename -- "$0" ||
19771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19772 X"$0" : 'X\(//\)$' \| \
19773 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19774 printf "%s\n" X/"$0" |
19775 sed '/^.*\/\([^/][^/]*\)\/*$/{
19776 s//\1/
19777 q
19778 }
19779 /^X\/\(\/\/\)$/{
19780 s//\1/
19781 q
19782 }
19783 /^X\/\(\/\).*/{
19784 s//\1/
19785 q
19786 }
19787 s/.*/./; q'`
19788
19789 # Avoid depending upon Character Ranges.
19790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19793 as_cr_digits='0123456789'
19794 as_cr_alnum=$as_cr_Letters$as_cr_digits
19795
19796
19797 # Determine whether it's possible to make 'echo' print without a newline.
19798 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19799 # for compatibility with existing Makefiles.
19800 ECHO_C= ECHO_N= ECHO_T=
19801 case `echo -n x` in #(((((
19802 -n*)
19803 case `echo 'xy\c'` in
19804 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19805 xy) ECHO_C='\c';;
19806 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19807 ECHO_T=' ';;
19808 esac;;
19809 *)
19810 ECHO_N='-n';;
19811 esac
19812
19813 # For backward compatibility with old third-party macros, we provide
19814 # the shell variables $as_echo and $as_echo_n. New code should use
19815 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19816 as_echo='printf %s\n'
19817 as_echo_n='printf %s'
19818
19819 rm -f conf$$ conf$$.exe conf$$.file
19820 if test -d conf$$.dir; then
19821 rm -f conf$$.dir/conf$$.file
19822 else
19823 rm -f conf$$.dir
19824 mkdir conf$$.dir 2>/dev/null
19825 fi
19826 if (echo >conf$$.file) 2>/dev/null; then
19827 if ln -s conf$$.file conf$$ 2>/dev/null; then
19828 as_ln_s='ln -s'
19829 # ... but there are two gotchas:
19830 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19831 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19832 # In both cases, we have to default to `cp -pR'.
19833 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19834 as_ln_s='cp -pR'
19835 elif ln conf$$.file conf$$ 2>/dev/null; then
19836 as_ln_s=ln
19837 else
19838 as_ln_s='cp -pR'
19839 fi
19840 else
19841 as_ln_s='cp -pR'
19842 fi
19843 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19844 rmdir conf$$.dir 2>/dev/null
19845
19846
19847 # as_fn_mkdir_p
19848 # -------------
19849 # Create "$as_dir" as a directory, including parents if necessary.
19850 as_fn_mkdir_p ()
19851 {
19852
19853 case $as_dir in #(
19854 -*) as_dir=./$as_dir;;
19855 esac
19856 test -d "$as_dir" || eval $as_mkdir_p || {
19857 as_dirs=
19858 while :; do
19859 case $as_dir in #(
19860 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19861 *) as_qdir=$as_dir;;
19862 esac
19863 as_dirs="'$as_qdir' $as_dirs"
19864 as_dir=`$as_dirname -- "$as_dir" ||
19865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19866 X"$as_dir" : 'X\(//\)[^/]' \| \
19867 X"$as_dir" : 'X\(//\)$' \| \
19868 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19869 printf "%s\n" X"$as_dir" |
19870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19871 s//\1/
19872 q
19873 }
19874 /^X\(\/\/\)[^/].*/{
19875 s//\1/
19876 q
19877 }
19878 /^X\(\/\/\)$/{
19879 s//\1/
19880 q
19881 }
19882 /^X\(\/\).*/{
19883 s//\1/
19884 q
19885 }
19886 s/.*/./; q'`
19887 test -d "$as_dir" && break
19888 done
19889 test -z "$as_dirs" || eval "mkdir $as_dirs"
19890 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19891
19892
19893 } # as_fn_mkdir_p
19894 if mkdir -p . 2>/dev/null; then
19895 as_mkdir_p='mkdir -p "$as_dir"'
19896 else
19897 test -d ./-p && rmdir ./-p
19898 as_mkdir_p=false
19899 fi
19900
19901
19902 # as_fn_executable_p FILE
19903 # -----------------------
19904 # Test if FILE is an executable regular file.
19905 as_fn_executable_p ()
19906 {
19907 test -f "$1" && test -x "$1"
19908 } # as_fn_executable_p
19909 as_test_x='test -x'
19910 as_executable_p=as_fn_executable_p
19911
19912 # Sed expression to map a string onto a valid CPP name.
19913 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19914
19915 # Sed expression to map a string onto a valid variable name.
19916 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19917
19918
19919 exec 6>&1
19920 ## ----------------------------------- ##
19921 ## Main body of $CONFIG_STATUS script. ##
19922 ## ----------------------------------- ##
19923 _ASEOF
19924 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19925
19926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19927 # Save the log message, to keep $0 and so on meaningful, and to
19928 # report actual input values of CONFIG_FILES etc. instead of their
19929 # values after options handling.
19930 ac_log="
19931 This file was extended by procps-ng $as_me 4.0.4, which was
19932 generated by GNU Autoconf 2.71. Invocation command line was
19933
19934 CONFIG_FILES = $CONFIG_FILES
19935 CONFIG_HEADERS = $CONFIG_HEADERS
19936 CONFIG_LINKS = $CONFIG_LINKS
19937 CONFIG_COMMANDS = $CONFIG_COMMANDS
19938 $ $0 $@
19939
19940 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19941 "
19942
19943 _ACEOF
19944
19945 case $ac_config_files in *"
19946 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19947 esac
19948
19949 case $ac_config_headers in *"
19950 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19951 esac
19952
19953
19954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19955 # Files that config.status was made for.
19956 config_files="$ac_config_files"
19957 config_headers="$ac_config_headers"
19958 config_commands="$ac_config_commands"
19959
19960 _ACEOF
19961
19962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19963 ac_cs_usage="\
19964 \`$as_me' instantiates files and other configuration actions
19965 from templates according to the current configuration. Unless the files
19966 and actions are specified as TAGs, all are instantiated by default.
19967
19968 Usage: $0 [OPTION]... [TAG]...
19969
19970 -h, --help print this help, then exit
19971 -V, --version print version number and configuration settings, then exit
19972 --config print configuration, then exit
19973 -q, --quiet, --silent
19974 do not print progress messages
19975 -d, --debug don't remove temporary files
19976 --recheck update $as_me by reconfiguring in the same conditions
19977 --file=FILE[:TEMPLATE]
19978 instantiate the configuration file FILE
19979 --header=FILE[:TEMPLATE]
19980 instantiate the configuration header FILE
19981
19982 Configuration files:
19983 $config_files
19984
19985 Configuration headers:
19986 $config_headers
19987
19988 Configuration commands:
19989 $config_commands
19990
19991 Report bugs to <[email protected]>.
19992 procps-ng home page: <https://gitlab.com/procps-ng/procps>."
19993
19994 _ACEOF
19995 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19996 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19998 ac_cs_config='$ac_cs_config_escaped'
19999 ac_cs_version="\\
20000 procps-ng config.status 4.0.4
20001 configured by $0, generated by GNU Autoconf 2.71,
20002 with options \\"\$ac_cs_config\\"
20003
20004 Copyright (C) 2021 Free Software Foundation, Inc.
20005 This config.status script is free software; the Free Software Foundation
20006 gives unlimited permission to copy, distribute and modify it."
20007
20008 ac_pwd='$ac_pwd'
20009 srcdir='$srcdir'
20010 INSTALL='$INSTALL'
20011 MKDIR_P='$MKDIR_P'
20012 AWK='$AWK'
20013 test -n "\$AWK" || AWK=awk
20014 _ACEOF
20015
20016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20017 # The default lists apply if the user does not specify any file.
20018 ac_need_defaults=:
20019 while test $# != 0
20020 do
20021 case $1 in
20022 --*=?*)
20023 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20024 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20025 ac_shift=:
20026 ;;
20027 --*=)
20028 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20029 ac_optarg=
20030 ac_shift=:
20031 ;;
20032 *)
20033 ac_option=$1
20034 ac_optarg=$2
20035 ac_shift=shift
20036 ;;
20037 esac
20038
20039 case $ac_option in
20040 # Handling of the options.
20041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20042 ac_cs_recheck=: ;;
20043 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20044 printf "%s\n" "$ac_cs_version"; exit ;;
20045 --config | --confi | --conf | --con | --co | --c )
20046 printf "%s\n" "$ac_cs_config"; exit ;;
20047 --debug | --debu | --deb | --de | --d | -d )
20048 debug=: ;;
20049 --file | --fil | --fi | --f )
20050 $ac_shift
20051 case $ac_optarg in
20052 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20053 '') as_fn_error $? "missing file argument" ;;
20054 esac
20055 as_fn_append CONFIG_FILES " '$ac_optarg'"
20056 ac_need_defaults=false;;
20057 --header | --heade | --head | --hea )
20058 $ac_shift
20059 case $ac_optarg in
20060 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20061 esac
20062 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20063 ac_need_defaults=false;;
20064 --he | --h)
20065 # Conflict between --help and --header
20066 as_fn_error $? "ambiguous option: \`$1'
20067 Try \`$0 --help' for more information.";;
20068 --help | --hel | -h )
20069 printf "%s\n" "$ac_cs_usage"; exit ;;
20070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20071 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20072 ac_cs_silent=: ;;
20073
20074 # This is an error.
20075 -*) as_fn_error $? "unrecognized option: \`$1'
20076 Try \`$0 --help' for more information." ;;
20077
20078 *) as_fn_append ac_config_targets " $1"
20079 ac_need_defaults=false ;;
20080
20081 esac
20082 shift
20083 done
20084
20085 ac_configure_extra_args=
20086
20087 if $ac_cs_silent; then
20088 exec 6>/dev/null
20089 ac_configure_extra_args="$ac_configure_extra_args --silent"
20090 fi
20091
20092 _ACEOF
20093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20094 if \$ac_cs_recheck; then
20095 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20096 shift
20097 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20098 CONFIG_SHELL='$SHELL'
20099 export CONFIG_SHELL
20100 exec "\$@"
20101 fi
20102
20103 _ACEOF
20104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20105 exec 5>>config.log
20106 {
20107 echo
20108 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20109 ## Running $as_me. ##
20110 _ASBOX
20111 printf "%s\n" "$ac_log"
20112 } >&5
20113
20114 _ACEOF
20115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20116 #
20117 # INIT-COMMANDS
20118 #
20119 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20120
20121
20122 # The HP-UX ksh and POSIX shell print the target directory to stdout
20123 # if CDPATH is set.
20124 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20125
20126 sed_quote_subst='$sed_quote_subst'
20127 double_quote_subst='$double_quote_subst'
20128 delay_variable_subst='$delay_variable_subst'
20129 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20130 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20131 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20132 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20133 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20134 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20135 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20136 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20137 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20138 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20139 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20140 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20141 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20142 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20143 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20144 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20145 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20146 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20147 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20148 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20149 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20150 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20151 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20152 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20153 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20154 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20155 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20156 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20157 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20158 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20159 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20160 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20161 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20162 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20163 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20164 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20165 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20166 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20167 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20168 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20169 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20170 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20171 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20172 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20173 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20174 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20175 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20176 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20177 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20178 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20179 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20180 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20181 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20182 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20183 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20184 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20185 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20186 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20187 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20188 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20189 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"`'
20190 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20191 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20192 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20193 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20194 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20195 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20196 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20197 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20198 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20199 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20200 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20201 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20202 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20203 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20204 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20205 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20206 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20207 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20208 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20209 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20210 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20211 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20212 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20213 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20214 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20215 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20216 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20217 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20218 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20219 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20220 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20221 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20222 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20223 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20224 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20225 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20226 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20227 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20228 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20229 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20230 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20231 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20232 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20233 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20234 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20235 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20236 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20237 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20238 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20239 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20240 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20241 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20242 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20243 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20244 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20245 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20246 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20247 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20248 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20249 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20250 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20251 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20252 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20253 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20254 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20255 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20256 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20257 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20258 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20259 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20260 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20261 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20262 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20263 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20264 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20265 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20266
20267 LTCC='$LTCC'
20268 LTCFLAGS='$LTCFLAGS'
20269 compiler='$compiler_DEFAULT'
20270
20271 # A function that is used when there is no print builtin or printf.
20272 func_fallback_echo ()
20273 {
20274 eval 'cat <<_LTECHO_EOF
20275 \$1
20276 _LTECHO_EOF'
20277 }
20278
20279 # Quote evaled strings.
20280 for var in SHELL \
20281 ECHO \
20282 PATH_SEPARATOR \
20283 SED \
20284 GREP \
20285 EGREP \
20286 FGREP \
20287 LD \
20288 NM \
20289 LN_S \
20290 lt_SP2NL \
20291 lt_NL2SP \
20292 reload_flag \
20293 FILECMD \
20294 OBJDUMP \
20295 deplibs_check_method \
20296 file_magic_cmd \
20297 file_magic_glob \
20298 want_nocaseglob \
20299 DLLTOOL \
20300 sharedlib_from_linklib_cmd \
20301 AR \
20302 archiver_list_spec \
20303 STRIP \
20304 RANLIB \
20305 CC \
20306 CFLAGS \
20307 compiler \
20308 lt_cv_sys_global_symbol_pipe \
20309 lt_cv_sys_global_symbol_to_cdecl \
20310 lt_cv_sys_global_symbol_to_import \
20311 lt_cv_sys_global_symbol_to_c_name_address \
20312 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20313 lt_cv_nm_interface \
20314 nm_file_list_spec \
20315 lt_cv_truncate_bin \
20316 lt_prog_compiler_no_builtin_flag \
20317 lt_prog_compiler_pic \
20318 lt_prog_compiler_wl \
20319 lt_prog_compiler_static \
20320 lt_cv_prog_compiler_c_o \
20321 need_locks \
20322 MANIFEST_TOOL \
20323 DSYMUTIL \
20324 NMEDIT \
20325 LIPO \
20326 OTOOL \
20327 OTOOL64 \
20328 shrext_cmds \
20329 export_dynamic_flag_spec \
20330 whole_archive_flag_spec \
20331 compiler_needs_object \
20332 with_gnu_ld \
20333 allow_undefined_flag \
20334 no_undefined_flag \
20335 hardcode_libdir_flag_spec \
20336 hardcode_libdir_separator \
20337 exclude_expsyms \
20338 include_expsyms \
20339 file_list_spec \
20340 variables_saved_for_relink \
20341 libname_spec \
20342 library_names_spec \
20343 soname_spec \
20344 install_override_mode \
20345 finish_eval \
20346 old_striplib \
20347 striplib; do
20348 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20349 *[\\\\\\\`\\"\\\$]*)
20350 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20351 ;;
20352 *)
20353 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20354 ;;
20355 esac
20356 done
20357
20358 # Double-quote double-evaled strings.
20359 for var in reload_cmds \
20360 old_postinstall_cmds \
20361 old_postuninstall_cmds \
20362 old_archive_cmds \
20363 extract_expsyms_cmds \
20364 old_archive_from_new_cmds \
20365 old_archive_from_expsyms_cmds \
20366 archive_cmds \
20367 archive_expsym_cmds \
20368 module_cmds \
20369 module_expsym_cmds \
20370 export_symbols_cmds \
20371 prelink_cmds \
20372 postlink_cmds \
20373 postinstall_cmds \
20374 postuninstall_cmds \
20375 finish_cmds \
20376 sys_lib_search_path_spec \
20377 configure_time_dlsearch_path \
20378 configure_time_lt_sys_library_path; do
20379 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20380 *[\\\\\\\`\\"\\\$]*)
20381 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20382 ;;
20383 *)
20384 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20385 ;;
20386 esac
20387 done
20388
20389 ac_aux_dir='$ac_aux_dir'
20390
20391 # See if we are running on zsh, and set the options that allow our
20392 # commands through without removal of \ escapes INIT.
20393 if test -n "\${ZSH_VERSION+set}"; then
20394 setopt NO_GLOB_SUBST
20395 fi
20396
20397
20398 PACKAGE='$PACKAGE'
20399 VERSION='$VERSION'
20400 RM='$RM'
20401 ofile='$ofile'
20402
20403
20404
20405 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20406 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20407 # from automake.
20408 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20409 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20410 LINGUAS="${LINGUAS-%UNSET%}"
20411
20412
20413 _ACEOF
20414
20415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20416
20417 # Handling of arguments.
20418 for ac_config_target in $ac_config_targets
20419 do
20420 case $ac_config_target in
20421 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20422 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20423 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20424 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20425 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20426 "local/Makefile") CONFIG_FILES="$CONFIG_FILES local/Makefile" ;;
20427 "po-man/Makefile") CONFIG_FILES="$CONFIG_FILES po-man/Makefile" ;;
20428 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20429 "library/libproc2.pc") CONFIG_FILES="$CONFIG_FILES library/libproc2.pc" ;;
20430 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20431
20432 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20433 esac
20434 done
20435
20436
20437 # If the user did not use the arguments to specify the items to instantiate,
20438 # then the envvar interface is used. Set only those that are not.
20439 # We use the long form for the default assignment because of an extremely
20440 # bizarre bug on SunOS 4.1.3.
20441 if $ac_need_defaults; then
20442 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20443 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20444 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20445 fi
20446
20447 # Have a temporary directory for convenience. Make it in the build tree
20448 # simply because there is no reason against having it here, and in addition,
20449 # creating and moving files from /tmp can sometimes cause problems.
20450 # Hook for its removal unless debugging.
20451 # Note that there is a small window in which the directory will not be cleaned:
20452 # after its creation but before its name has been assigned to `$tmp'.
20453 $debug ||
20454 {
20455 tmp= ac_tmp=
20456 trap 'exit_status=$?
20457 : "${ac_tmp:=$tmp}"
20458 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20459 ' 0
20460 trap 'as_fn_exit 1' 1 2 13 15
20461 }
20462 # Create a (secure) tmp directory for tmp files.
20463
20464 {
20465 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20466 test -d "$tmp"
20467 } ||
20468 {
20469 tmp=./conf$$-$RANDOM
20470 (umask 077 && mkdir "$tmp")
20471 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20472 ac_tmp=$tmp
20473
20474 # Set up the scripts for CONFIG_FILES section.
20475 # No need to generate them if there are no CONFIG_FILES.
20476 # This happens for instance with `./config.status config.h'.
20477 if test -n "$CONFIG_FILES"; then
20478
20479
20480 ac_cr=`echo X | tr X '\015'`
20481 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20482 # But we know of no other shell where ac_cr would be empty at this
20483 # point, so we can use a bashism as a fallback.
20484 if test "x$ac_cr" = x; then
20485 eval ac_cr=\$\'\\r\'
20486 fi
20487 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20488 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20489 ac_cs_awk_cr='\\r'
20490 else
20491 ac_cs_awk_cr=$ac_cr
20492 fi
20493
20494 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20495 _ACEOF
20496
20497
20498 {
20499 echo "cat >conf$$subs.awk <<_ACEOF" &&
20500 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20501 echo "_ACEOF"
20502 } >conf$$subs.sh ||
20503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20504 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20505 ac_delim='%!_!# '
20506 for ac_last_try in false false false false false :; do
20507 . ./conf$$subs.sh ||
20508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20509
20510 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20511 if test $ac_delim_n = $ac_delim_num; then
20512 break
20513 elif $ac_last_try; then
20514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20515 else
20516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20517 fi
20518 done
20519 rm -f conf$$subs.sh
20520
20521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20522 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20523 _ACEOF
20524 sed -n '
20525 h
20526 s/^/S["/; s/!.*/"]=/
20527 p
20528 g
20529 s/^[^!]*!//
20530 :repl
20531 t repl
20532 s/'"$ac_delim"'$//
20533 t delim
20534 :nl
20535 h
20536 s/\(.\{148\}\)..*/\1/
20537 t more1
20538 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20539 p
20540 n
20541 b repl
20542 :more1
20543 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20544 p
20545 g
20546 s/.\{148\}//
20547 t nl
20548 :delim
20549 h
20550 s/\(.\{148\}\)..*/\1/
20551 t more2
20552 s/["\\]/\\&/g; s/^/"/; s/$/"/
20553 p
20554 b
20555 :more2
20556 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20557 p
20558 g
20559 s/.\{148\}//
20560 t delim
20561 ' <conf$$subs.awk | sed '
20562 /^[^""]/{
20563 N
20564 s/\n//
20565 }
20566 ' >>$CONFIG_STATUS || ac_write_fail=1
20567 rm -f conf$$subs.awk
20568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20569 _ACAWK
20570 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20571 for (key in S) S_is_set[key] = 1
20572 FS = ""
20573
20574 }
20575 {
20576 line = $ 0
20577 nfields = split(line, field, "@")
20578 substed = 0
20579 len = length(field[1])
20580 for (i = 2; i < nfields; i++) {
20581 key = field[i]
20582 keylen = length(key)
20583 if (S_is_set[key]) {
20584 value = S[key]
20585 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20586 len += length(value) + length(field[++i])
20587 substed = 1
20588 } else
20589 len += 1 + keylen
20590 }
20591
20592 print line
20593 }
20594
20595 _ACAWK
20596 _ACEOF
20597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20598 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20599 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20600 else
20601 cat
20602 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20603 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20604 _ACEOF
20605
20606 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20607 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20608 # trailing colons and then remove the whole line if VPATH becomes empty
20609 # (actually we leave an empty line to preserve line numbers).
20610 if test "x$srcdir" = x.; then
20611 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20612 h
20613 s///
20614 s/^/:/
20615 s/[ ]*$/:/
20616 s/:\$(srcdir):/:/g
20617 s/:\${srcdir}:/:/g
20618 s/:@srcdir@:/:/g
20619 s/^:*//
20620 s/:*$//
20621 x
20622 s/\(=[ ]*\).*/\1/
20623 G
20624 s/\n//
20625 s/^[^=]*=[ ]*$//
20626 }'
20627 fi
20628
20629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20630 fi # test -n "$CONFIG_FILES"
20631
20632 # Set up the scripts for CONFIG_HEADERS section.
20633 # No need to generate them if there are no CONFIG_HEADERS.
20634 # This happens for instance with `./config.status Makefile'.
20635 if test -n "$CONFIG_HEADERS"; then
20636 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20637 BEGIN {
20638 _ACEOF
20639
20640 # Transform confdefs.h into an awk script `defines.awk', embedded as
20641 # here-document in config.status, that substitutes the proper values into
20642 # config.h.in to produce config.h.
20643
20644 # Create a delimiter string that does not exist in confdefs.h, to ease
20645 # handling of long lines.
20646 ac_delim='%!_!# '
20647 for ac_last_try in false false :; do
20648 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20649 if test -z "$ac_tt"; then
20650 break
20651 elif $ac_last_try; then
20652 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20653 else
20654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20655 fi
20656 done
20657
20658 # For the awk script, D is an array of macro values keyed by name,
20659 # likewise P contains macro parameters if any. Preserve backslash
20660 # newline sequences.
20661
20662 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20663 sed -n '
20664 s/.\{148\}/&'"$ac_delim"'/g
20665 t rset
20666 :rset
20667 s/^[ ]*#[ ]*define[ ][ ]*/ /
20668 t def
20669 d
20670 :def
20671 s/\\$//
20672 t bsnl
20673 s/["\\]/\\&/g
20674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20675 D["\1"]=" \3"/p
20676 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20677 d
20678 :bsnl
20679 s/["\\]/\\&/g
20680 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20681 D["\1"]=" \3\\\\\\n"\\/p
20682 t cont
20683 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20684 t cont
20685 d
20686 :cont
20687 n
20688 s/.\{148\}/&'"$ac_delim"'/g
20689 t clear
20690 :clear
20691 s/\\$//
20692 t bsnlc
20693 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20694 d
20695 :bsnlc
20696 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20697 b cont
20698 ' <confdefs.h | sed '
20699 s/'"$ac_delim"'/"\\\
20700 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20701
20702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20703 for (key in D) D_is_set[key] = 1
20704 FS = ""
20705 }
20706 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20707 line = \$ 0
20708 split(line, arg, " ")
20709 if (arg[1] == "#") {
20710 defundef = arg[2]
20711 mac1 = arg[3]
20712 } else {
20713 defundef = substr(arg[1], 2)
20714 mac1 = arg[2]
20715 }
20716 split(mac1, mac2, "(") #)
20717 macro = mac2[1]
20718 prefix = substr(line, 1, index(line, defundef) - 1)
20719 if (D_is_set[macro]) {
20720 # Preserve the white space surrounding the "#".
20721 print prefix "define", macro P[macro] D[macro]
20722 next
20723 } else {
20724 # Replace #undef with comments. This is necessary, for example,
20725 # in the case of _POSIX_SOURCE, which is predefined and required
20726 # on some systems where configure will not decide to define it.
20727 if (defundef == "undef") {
20728 print "/*", prefix defundef, macro, "*/"
20729 next
20730 }
20731 }
20732 }
20733 { print }
20734 _ACAWK
20735 _ACEOF
20736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20737 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20738 fi # test -n "$CONFIG_HEADERS"
20739
20740
20741 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20742 shift
20743 for ac_tag
20744 do
20745 case $ac_tag in
20746 :[FHLC]) ac_mode=$ac_tag; continue;;
20747 esac
20748 case $ac_mode$ac_tag in
20749 :[FHL]*:*);;
20750 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20751 :[FH]-) ac_tag=-:-;;
20752 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20753 esac
20754 ac_save_IFS=$IFS
20755 IFS=:
20756 set x $ac_tag
20757 IFS=$ac_save_IFS
20758 shift
20759 ac_file=$1
20760 shift
20761
20762 case $ac_mode in
20763 :L) ac_source=$1;;
20764 :[FH])
20765 ac_file_inputs=
20766 for ac_f
20767 do
20768 case $ac_f in
20769 -) ac_f="$ac_tmp/stdin";;
20770 *) # Look for the file first in the build tree, then in the source tree
20771 # (if the path is not absolute). The absolute path cannot be DOS-style,
20772 # because $ac_f cannot contain `:'.
20773 test -f "$ac_f" ||
20774 case $ac_f in
20775 [\\/$]*) false;;
20776 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20777 esac ||
20778 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20779 esac
20780 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20781 as_fn_append ac_file_inputs " '$ac_f'"
20782 done
20783
20784 # Let's still pretend it is `configure' which instantiates (i.e., don't
20785 # use $as_me), people would be surprised to read:
20786 # /* config.h. Generated by config.status. */
20787 configure_input='Generated from '`
20788 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20789 `' by configure.'
20790 if test x"$ac_file" != x-; then
20791 configure_input="$ac_file. $configure_input"
20792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20793 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20794 fi
20795 # Neutralize special characters interpreted by sed in replacement strings.
20796 case $configure_input in #(
20797 *\&* | *\|* | *\\* )
20798 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20800 *) ac_sed_conf_input=$configure_input;;
20801 esac
20802
20803 case $ac_tag in
20804 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20806 esac
20807 ;;
20808 esac
20809
20810 ac_dir=`$as_dirname -- "$ac_file" ||
20811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20812 X"$ac_file" : 'X\(//\)[^/]' \| \
20813 X"$ac_file" : 'X\(//\)$' \| \
20814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20815 printf "%s\n" X"$ac_file" |
20816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20817 s//\1/
20818 q
20819 }
20820 /^X\(\/\/\)[^/].*/{
20821 s//\1/
20822 q
20823 }
20824 /^X\(\/\/\)$/{
20825 s//\1/
20826 q
20827 }
20828 /^X\(\/\).*/{
20829 s//\1/
20830 q
20831 }
20832 s/.*/./; q'`
20833 as_dir="$ac_dir"; as_fn_mkdir_p
20834 ac_builddir=.
20835
20836 case "$ac_dir" in
20837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20838 *)
20839 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20840 # A ".." for each directory in $ac_dir_suffix.
20841 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20842 case $ac_top_builddir_sub in
20843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20845 esac ;;
20846 esac
20847 ac_abs_top_builddir=$ac_pwd
20848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20849 # for backward compatibility:
20850 ac_top_builddir=$ac_top_build_prefix
20851
20852 case $srcdir in
20853 .) # We are building in place.
20854 ac_srcdir=.
20855 ac_top_srcdir=$ac_top_builddir_sub
20856 ac_abs_top_srcdir=$ac_pwd ;;
20857 [\\/]* | ?:[\\/]* ) # Absolute name.
20858 ac_srcdir=$srcdir$ac_dir_suffix;
20859 ac_top_srcdir=$srcdir
20860 ac_abs_top_srcdir=$srcdir ;;
20861 *) # Relative name.
20862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20863 ac_top_srcdir=$ac_top_build_prefix$srcdir
20864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20865 esac
20866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20867
20868
20869 case $ac_mode in
20870 :F)
20871 #
20872 # CONFIG_FILE
20873 #
20874
20875 case $INSTALL in
20876 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20877 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20878 esac
20879 ac_MKDIR_P=$MKDIR_P
20880 case $MKDIR_P in
20881 [\\/$]* | ?:[\\/]* ) ;;
20882 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20883 esac
20884 _ACEOF
20885
20886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20887 # If the template does not know about datarootdir, expand it.
20888 # FIXME: This hack should be removed a few years after 2.60.
20889 ac_datarootdir_hack=; ac_datarootdir_seen=
20890 ac_sed_dataroot='
20891 /datarootdir/ {
20892 p
20893 q
20894 }
20895 /@datadir@/p
20896 /@docdir@/p
20897 /@infodir@/p
20898 /@localedir@/p
20899 /@mandir@/p'
20900 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20901 *datarootdir*) ac_datarootdir_seen=yes;;
20902 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20904 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20905 _ACEOF
20906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20907 ac_datarootdir_hack='
20908 s&@datadir@&$datadir&g
20909 s&@docdir@&$docdir&g
20910 s&@infodir@&$infodir&g
20911 s&@localedir@&$localedir&g
20912 s&@mandir@&$mandir&g
20913 s&\\\${datarootdir}&$datarootdir&g' ;;
20914 esac
20915 _ACEOF
20916
20917 # Neutralize VPATH when `$srcdir' = `.'.
20918 # Shell code in configure.ac might set extrasub.
20919 # FIXME: do we really want to maintain this feature?
20920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20921 ac_sed_extra="$ac_vpsub
20922 $extrasub
20923 _ACEOF
20924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20925 :t
20926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20927 s|@configure_input@|$ac_sed_conf_input|;t t
20928 s&@top_builddir@&$ac_top_builddir_sub&;t t
20929 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20930 s&@srcdir@&$ac_srcdir&;t t
20931 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20932 s&@top_srcdir@&$ac_top_srcdir&;t t
20933 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20934 s&@builddir@&$ac_builddir&;t t
20935 s&@abs_builddir@&$ac_abs_builddir&;t t
20936 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20937 s&@INSTALL@&$ac_INSTALL&;t t
20938 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20939 $ac_datarootdir_hack
20940 "
20941 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20942 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20943
20944 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20945 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20946 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20947 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20949 which seems to be undefined. Please make sure it is defined" >&5
20950 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20951 which seems to be undefined. Please make sure it is defined" >&2;}
20952
20953 rm -f "$ac_tmp/stdin"
20954 case $ac_file in
20955 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20956 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20957 esac \
20958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20959 ;;
20960 :H)
20961 #
20962 # CONFIG_HEADER
20963 #
20964 if test x"$ac_file" != x-; then
20965 {
20966 printf "%s\n" "/* $configure_input */" >&1 \
20967 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20968 } >"$ac_tmp/config.h" \
20969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20970 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20972 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20973 else
20974 rm -f "$ac_file"
20975 mv "$ac_tmp/config.h" "$ac_file" \
20976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20977 fi
20978 else
20979 printf "%s\n" "/* $configure_input */" >&1 \
20980 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20981 || as_fn_error $? "could not create -" "$LINENO" 5
20982 fi
20983 # Compute "$ac_file"'s index in $config_headers.
20984 _am_arg="$ac_file"
20985 _am_stamp_count=1
20986 for _am_header in $config_headers :; do
20987 case $_am_header in
20988 $_am_arg | $_am_arg:* )
20989 break ;;
20990 * )
20991 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20992 esac
20993 done
20994 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20995 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$_am_arg" : 'X\(//\)[^/]' \| \
20997 X"$_am_arg" : 'X\(//\)$' \| \
20998 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20999 printf "%s\n" X"$_am_arg" |
21000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21001 s//\1/
21002 q
21003 }
21004 /^X\(\/\/\)[^/].*/{
21005 s//\1/
21006 q
21007 }
21008 /^X\(\/\/\)$/{
21009 s//\1/
21010 q
21011 }
21012 /^X\(\/\).*/{
21013 s//\1/
21014 q
21015 }
21016 s/.*/./; q'`/stamp-h$_am_stamp_count
21017 ;;
21018
21019 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21020 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21021 ;;
21022 esac
21023
21024
21025 case $ac_file$ac_mode in
21026 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21027 # Older Autoconf quotes --file arguments for eval, but not when files
21028 # are listed without --file. Let's play safe and only enable the eval
21029 # if we detect the quoting.
21030 # TODO: see whether this extra hack can be removed once we start
21031 # requiring Autoconf 2.70 or later.
21032 case $CONFIG_FILES in #(
21033 *\'*) :
21034 eval set x "$CONFIG_FILES" ;; #(
21035 *) :
21036 set x $CONFIG_FILES ;; #(
21037 *) :
21038 ;;
21039 esac
21040 shift
21041 # Used to flag and report bootstrapping failures.
21042 am_rc=0
21043 for am_mf
21044 do
21045 # Strip MF so we end up with the name of the file.
21046 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21047 # Check whether this is an Automake generated Makefile which includes
21048 # dependency-tracking related rules and includes.
21049 # Grep'ing the whole file directly is not great: AIX grep has a line
21050 # limit of 2048, but all sed's we know have understand at least 4000.
21051 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21052 || continue
21053 am_dirpart=`$as_dirname -- "$am_mf" ||
21054 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21055 X"$am_mf" : 'X\(//\)[^/]' \| \
21056 X"$am_mf" : 'X\(//\)$' \| \
21057 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21058 printf "%s\n" X"$am_mf" |
21059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21060 s//\1/
21061 q
21062 }
21063 /^X\(\/\/\)[^/].*/{
21064 s//\1/
21065 q
21066 }
21067 /^X\(\/\/\)$/{
21068 s//\1/
21069 q
21070 }
21071 /^X\(\/\).*/{
21072 s//\1/
21073 q
21074 }
21075 s/.*/./; q'`
21076 am_filepart=`$as_basename -- "$am_mf" ||
21077 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21078 X"$am_mf" : 'X\(//\)$' \| \
21079 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21080 printf "%s\n" X/"$am_mf" |
21081 sed '/^.*\/\([^/][^/]*\)\/*$/{
21082 s//\1/
21083 q
21084 }
21085 /^X\/\(\/\/\)$/{
21086 s//\1/
21087 q
21088 }
21089 /^X\/\(\/\).*/{
21090 s//\1/
21091 q
21092 }
21093 s/.*/./; q'`
21094 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21095 && sed -e '/# am--include-marker/d' "$am_filepart" \
21096 | $MAKE -f - am--depfiles" >&5
21097 (cd "$am_dirpart" \
21098 && sed -e '/# am--include-marker/d' "$am_filepart" \
21099 | $MAKE -f - am--depfiles) >&5 2>&5
21100 ac_status=$?
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } || am_rc=$?
21103 done
21104 if test $am_rc -ne 0; then
21105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21106 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21107 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21108 for automatic dependency tracking. If GNU make was not used, consider
21109 re-running the configure script with MAKE=\"gmake\" (or whatever is
21110 necessary). You can also try re-running configure with the
21111 '--disable-dependency-tracking' option to at least be able to build
21112 the package (albeit without support for automatic dependency tracking).
21113 See \`config.log' for more details" "$LINENO" 5; }
21114 fi
21115 { am_dirpart=; unset am_dirpart;}
21116 { am_filepart=; unset am_filepart;}
21117 { am_mf=; unset am_mf;}
21118 { am_rc=; unset am_rc;}
21119 rm -f conftest-deps.mk
21120 }
21121 ;;
21122 "libtool":C)
21123
21124 # See if we are running on zsh, and set the options that allow our
21125 # commands through without removal of \ escapes.
21126 if test -n "${ZSH_VERSION+set}"; then
21127 setopt NO_GLOB_SUBST
21128 fi
21129
21130 cfgfile=${ofile}T
21131 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21132 $RM "$cfgfile"
21133
21134 cat <<_LT_EOF >> "$cfgfile"
21135 #! $SHELL
21136 # Generated automatically by $as_me ($PACKAGE) $VERSION
21137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21138
21139 # Provide generalized library-building support services.
21140 # Written by Gordon Matzigkeit, 1996
21141
21142 # Copyright (C) 2014 Free Software Foundation, Inc.
21143 # This is free software; see the source for copying conditions. There is NO
21144 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21145
21146 # GNU Libtool is free software; you can redistribute it and/or modify
21147 # it under the terms of the GNU General Public License as published by
21148 # the Free Software Foundation; either version 2 of of the License, or
21149 # (at your option) any later version.
21150 #
21151 # As a special exception to the GNU General Public License, if you
21152 # distribute this file as part of a program or library that is built
21153 # using GNU Libtool, you may include this file under the same
21154 # distribution terms that you use for the rest of that program.
21155 #
21156 # GNU Libtool is distributed in the hope that it will be useful, but
21157 # WITHOUT ANY WARRANTY; without even the implied warranty of
21158 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21159 # GNU General Public License for more details.
21160 #
21161 # You should have received a copy of the GNU General Public License
21162 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21163
21164
21165 # The names of the tagged configurations supported by this script.
21166 available_tags=''
21167
21168 # Configured defaults for sys_lib_dlsearch_path munging.
21169 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21170
21171 # ### BEGIN LIBTOOL CONFIG
21172
21173 # Which release of libtool.m4 was used?
21174 macro_version=$macro_version
21175 macro_revision=$macro_revision
21176
21177 # Whether or not to build shared libraries.
21178 build_libtool_libs=$enable_shared
21179
21180 # Whether or not to build static libraries.
21181 build_old_libs=$enable_static
21182
21183 # What type of objects to build.
21184 pic_mode=$pic_mode
21185
21186 # Whether or not to optimize for fast installation.
21187 fast_install=$enable_fast_install
21188
21189 # Shared archive member basename,for filename based shared library versioning on AIX.
21190 shared_archive_member_spec=$shared_archive_member_spec
21191
21192 # Shell to use when invoking shell scripts.
21193 SHELL=$lt_SHELL
21194
21195 # An echo program that protects backslashes.
21196 ECHO=$lt_ECHO
21197
21198 # The PATH separator for the build system.
21199 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21200
21201 # The host system.
21202 host_alias=$host_alias
21203 host=$host
21204 host_os=$host_os
21205
21206 # The build system.
21207 build_alias=$build_alias
21208 build=$build
21209 build_os=$build_os
21210
21211 # A sed program that does not truncate output.
21212 SED=$lt_SED
21213
21214 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21215 Xsed="\$SED -e 1s/^X//"
21216
21217 # A grep program that handles long lines.
21218 GREP=$lt_GREP
21219
21220 # An ERE matcher.
21221 EGREP=$lt_EGREP
21222
21223 # A literal string matcher.
21224 FGREP=$lt_FGREP
21225
21226 # A BSD- or MS-compatible name lister.
21227 NM=$lt_NM
21228
21229 # Whether we need soft or hard links.
21230 LN_S=$lt_LN_S
21231
21232 # What is the maximum length of a command?
21233 max_cmd_len=$max_cmd_len
21234
21235 # Object file suffix (normally "o").
21236 objext=$ac_objext
21237
21238 # Executable file suffix (normally "").
21239 exeext=$exeext
21240
21241 # whether the shell understands "unset".
21242 lt_unset=$lt_unset
21243
21244 # turn spaces into newlines.
21245 SP2NL=$lt_lt_SP2NL
21246
21247 # turn newlines into spaces.
21248 NL2SP=$lt_lt_NL2SP
21249
21250 # convert \$build file names to \$host format.
21251 to_host_file_cmd=$lt_cv_to_host_file_cmd
21252
21253 # convert \$build files to toolchain format.
21254 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21255
21256 # A file(cmd) program that detects file types.
21257 FILECMD=$lt_FILECMD
21258
21259 # An object symbol dumper.
21260 OBJDUMP=$lt_OBJDUMP
21261
21262 # Method to check whether dependent libraries are shared objects.
21263 deplibs_check_method=$lt_deplibs_check_method
21264
21265 # Command to use when deplibs_check_method = "file_magic".
21266 file_magic_cmd=$lt_file_magic_cmd
21267
21268 # How to find potential files when deplibs_check_method = "file_magic".
21269 file_magic_glob=$lt_file_magic_glob
21270
21271 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21272 want_nocaseglob=$lt_want_nocaseglob
21273
21274 # DLL creation program.
21275 DLLTOOL=$lt_DLLTOOL
21276
21277 # Command to associate shared and link libraries.
21278 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21279
21280 # The archiver.
21281 AR=$lt_AR
21282
21283 # Flags to create an archive (by configure).
21284 lt_ar_flags=$lt_ar_flags
21285
21286 # Flags to create an archive.
21287 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21288
21289 # How to feed a file listing to the archiver.
21290 archiver_list_spec=$lt_archiver_list_spec
21291
21292 # A symbol stripping program.
21293 STRIP=$lt_STRIP
21294
21295 # Commands used to install an old-style archive.
21296 RANLIB=$lt_RANLIB
21297 old_postinstall_cmds=$lt_old_postinstall_cmds
21298 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21299
21300 # Whether to use a lock for old archive extraction.
21301 lock_old_archive_extraction=$lock_old_archive_extraction
21302
21303 # A C compiler.
21304 LTCC=$lt_CC
21305
21306 # LTCC compiler flags.
21307 LTCFLAGS=$lt_CFLAGS
21308
21309 # Take the output of nm and produce a listing of raw symbols and C names.
21310 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21311
21312 # Transform the output of nm in a proper C declaration.
21313 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21314
21315 # Transform the output of nm into a list of symbols to manually relocate.
21316 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21317
21318 # Transform the output of nm in a C name address pair.
21319 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21320
21321 # Transform the output of nm in a C name address pair when lib prefix is needed.
21322 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21323
21324 # The name lister interface.
21325 nm_interface=$lt_lt_cv_nm_interface
21326
21327 # Specify filename containing input files for \$NM.
21328 nm_file_list_spec=$lt_nm_file_list_spec
21329
21330 # The root where to search for dependent libraries,and where our libraries should be installed.
21331 lt_sysroot=$lt_sysroot
21332
21333 # Command to truncate a binary pipe.
21334 lt_truncate_bin=$lt_lt_cv_truncate_bin
21335
21336 # The name of the directory that contains temporary libtool files.
21337 objdir=$objdir
21338
21339 # Used to examine libraries when file_magic_cmd begins with "file".
21340 MAGIC_CMD=$MAGIC_CMD
21341
21342 # Must we lock files when doing compilation?
21343 need_locks=$lt_need_locks
21344
21345 # Manifest tool.
21346 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21347
21348 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21349 DSYMUTIL=$lt_DSYMUTIL
21350
21351 # Tool to change global to local symbols on Mac OS X.
21352 NMEDIT=$lt_NMEDIT
21353
21354 # Tool to manipulate fat objects and archives on Mac OS X.
21355 LIPO=$lt_LIPO
21356
21357 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21358 OTOOL=$lt_OTOOL
21359
21360 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21361 OTOOL64=$lt_OTOOL64
21362
21363 # Old archive suffix (normally "a").
21364 libext=$libext
21365
21366 # Shared library suffix (normally ".so").
21367 shrext_cmds=$lt_shrext_cmds
21368
21369 # The commands to extract the exported symbol list from a shared archive.
21370 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21371
21372 # Variables whose values should be saved in libtool wrapper scripts and
21373 # restored at link time.
21374 variables_saved_for_relink=$lt_variables_saved_for_relink
21375
21376 # Do we need the "lib" prefix for modules?
21377 need_lib_prefix=$need_lib_prefix
21378
21379 # Do we need a version for libraries?
21380 need_version=$need_version
21381
21382 # Library versioning type.
21383 version_type=$version_type
21384
21385 # Shared library runtime path variable.
21386 runpath_var=$runpath_var
21387
21388 # Shared library path variable.
21389 shlibpath_var=$shlibpath_var
21390
21391 # Is shlibpath searched before the hard-coded library search path?
21392 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21393
21394 # Format of library name prefix.
21395 libname_spec=$lt_libname_spec
21396
21397 # List of archive names. First name is the real one, the rest are links.
21398 # The last name is the one that the linker finds with -lNAME
21399 library_names_spec=$lt_library_names_spec
21400
21401 # The coded name of the library, if different from the real name.
21402 soname_spec=$lt_soname_spec
21403
21404 # Permission mode override for installation of shared libraries.
21405 install_override_mode=$lt_install_override_mode
21406
21407 # Command to use after installation of a shared archive.
21408 postinstall_cmds=$lt_postinstall_cmds
21409
21410 # Command to use after uninstallation of a shared archive.
21411 postuninstall_cmds=$lt_postuninstall_cmds
21412
21413 # Commands used to finish a libtool library installation in a directory.
21414 finish_cmds=$lt_finish_cmds
21415
21416 # As "finish_cmds", except a single script fragment to be evaled but
21417 # not shown.
21418 finish_eval=$lt_finish_eval
21419
21420 # Whether we should hardcode library paths into libraries.
21421 hardcode_into_libs=$hardcode_into_libs
21422
21423 # Compile-time system search path for libraries.
21424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21425
21426 # Detected run-time system search path for libraries.
21427 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21428
21429 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21430 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21431
21432 # Whether dlopen is supported.
21433 dlopen_support=$enable_dlopen
21434
21435 # Whether dlopen of programs is supported.
21436 dlopen_self=$enable_dlopen_self
21437
21438 # Whether dlopen of statically linked programs is supported.
21439 dlopen_self_static=$enable_dlopen_self_static
21440
21441 # Commands to strip libraries.
21442 old_striplib=$lt_old_striplib
21443 striplib=$lt_striplib
21444
21445
21446 # The linker used to build libraries.
21447 LD=$lt_LD
21448
21449 # How to create reloadable object files.
21450 reload_flag=$lt_reload_flag
21451 reload_cmds=$lt_reload_cmds
21452
21453 # Commands used to build an old-style archive.
21454 old_archive_cmds=$lt_old_archive_cmds
21455
21456 # A language specific compiler.
21457 CC=$lt_compiler
21458
21459 # Is the compiler the GNU compiler?
21460 with_gcc=$GCC
21461
21462 # Compiler flag to turn off builtin functions.
21463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21464
21465 # Additional compiler flags for building library objects.
21466 pic_flag=$lt_lt_prog_compiler_pic
21467
21468 # How to pass a linker flag through the compiler.
21469 wl=$lt_lt_prog_compiler_wl
21470
21471 # Compiler flag to prevent dynamic linking.
21472 link_static_flag=$lt_lt_prog_compiler_static
21473
21474 # Does compiler simultaneously support -c and -o options?
21475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21476
21477 # Whether or not to add -lc for building shared libraries.
21478 build_libtool_need_lc=$archive_cmds_need_lc
21479
21480 # Whether or not to disallow shared libs when runtime libs are static.
21481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21482
21483 # Compiler flag to allow reflexive dlopens.
21484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21485
21486 # Compiler flag to generate shared objects directly from archives.
21487 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21488
21489 # Whether the compiler copes with passing no objects directly.
21490 compiler_needs_object=$lt_compiler_needs_object
21491
21492 # Create an old-style archive from a shared archive.
21493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21494
21495 # Create a temporary old-style archive to link instead of a shared archive.
21496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21497
21498 # Commands used to build a shared archive.
21499 archive_cmds=$lt_archive_cmds
21500 archive_expsym_cmds=$lt_archive_expsym_cmds
21501
21502 # Commands used to build a loadable module if different from building
21503 # a shared archive.
21504 module_cmds=$lt_module_cmds
21505 module_expsym_cmds=$lt_module_expsym_cmds
21506
21507 # Whether we are building with GNU ld or not.
21508 with_gnu_ld=$lt_with_gnu_ld
21509
21510 # Flag that allows shared libraries with undefined symbols to be built.
21511 allow_undefined_flag=$lt_allow_undefined_flag
21512
21513 # Flag that enforces no undefined symbols.
21514 no_undefined_flag=$lt_no_undefined_flag
21515
21516 # Flag to hardcode \$libdir into a binary during linking.
21517 # This must work even if \$libdir does not exist
21518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21519
21520 # Whether we need a single "-rpath" flag with a separated argument.
21521 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21522
21523 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21524 # DIR into the resulting binary.
21525 hardcode_direct=$hardcode_direct
21526
21527 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21528 # DIR into the resulting binary and the resulting library dependency is
21529 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21530 # library is relocated.
21531 hardcode_direct_absolute=$hardcode_direct_absolute
21532
21533 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21534 # into the resulting binary.
21535 hardcode_minus_L=$hardcode_minus_L
21536
21537 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21538 # into the resulting binary.
21539 hardcode_shlibpath_var=$hardcode_shlibpath_var
21540
21541 # Set to "yes" if building a shared library automatically hardcodes DIR
21542 # into the library and all subsequent libraries and executables linked
21543 # against it.
21544 hardcode_automatic=$hardcode_automatic
21545
21546 # Set to yes if linker adds runtime paths of dependent libraries
21547 # to runtime path list.
21548 inherit_rpath=$inherit_rpath
21549
21550 # Whether libtool must link a program against all its dependency libraries.
21551 link_all_deplibs=$link_all_deplibs
21552
21553 # Set to "yes" if exported symbols are required.
21554 always_export_symbols=$always_export_symbols
21555
21556 # The commands to list exported symbols.
21557 export_symbols_cmds=$lt_export_symbols_cmds
21558
21559 # Symbols that should not be listed in the preloaded symbols.
21560 exclude_expsyms=$lt_exclude_expsyms
21561
21562 # Symbols that must always be exported.
21563 include_expsyms=$lt_include_expsyms
21564
21565 # Commands necessary for linking programs (against libraries) with templates.
21566 prelink_cmds=$lt_prelink_cmds
21567
21568 # Commands necessary for finishing linking programs.
21569 postlink_cmds=$lt_postlink_cmds
21570
21571 # Specify filename containing input files.
21572 file_list_spec=$lt_file_list_spec
21573
21574 # How to hardcode a shared library path into an executable.
21575 hardcode_action=$hardcode_action
21576
21577 # ### END LIBTOOL CONFIG
21578
21579 _LT_EOF
21580
21581 cat <<'_LT_EOF' >> "$cfgfile"
21582
21583 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21584
21585 # func_munge_path_list VARIABLE PATH
21586 # -----------------------------------
21587 # VARIABLE is name of variable containing _space_ separated list of
21588 # directories to be munged by the contents of PATH, which is string
21589 # having a format:
21590 # "DIR[:DIR]:"
21591 # string "DIR[ DIR]" will be prepended to VARIABLE
21592 # ":DIR[:DIR]"
21593 # string "DIR[ DIR]" will be appended to VARIABLE
21594 # "DIRP[:DIRP]::[DIRA:]DIRA"
21595 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21596 # "DIRA[ DIRA]" will be appended to VARIABLE
21597 # "DIR[:DIR]"
21598 # VARIABLE will be replaced by "DIR[ DIR]"
21599 func_munge_path_list ()
21600 {
21601 case x$2 in
21602 x)
21603 ;;
21604 *:)
21605 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21606 ;;
21607 x:*)
21608 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21609 ;;
21610 *::*)
21611 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21612 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21613 ;;
21614 *)
21615 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21616 ;;
21617 esac
21618 }
21619
21620
21621 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21622 func_cc_basename ()
21623 {
21624 for cc_temp in $*""; do
21625 case $cc_temp in
21626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21628 \-*) ;;
21629 *) break;;
21630 esac
21631 done
21632 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21633 }
21634
21635
21636 # ### END FUNCTIONS SHARED WITH CONFIGURE
21637
21638 _LT_EOF
21639
21640 case $host_os in
21641 aix3*)
21642 cat <<\_LT_EOF >> "$cfgfile"
21643 # AIX sometimes has problems with the GCC collect2 program. For some
21644 # reason, if we set the COLLECT_NAMES environment variable, the problems
21645 # vanish in a puff of smoke.
21646 if test set != "${COLLECT_NAMES+set}"; then
21647 COLLECT_NAMES=
21648 export COLLECT_NAMES
21649 fi
21650 _LT_EOF
21651 ;;
21652 esac
21653
21654
21655
21656 ltmain=$ac_aux_dir/ltmain.sh
21657
21658
21659 # We use sed instead of cat because bash on DJGPP gets confused if
21660 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21661 # text mode, it properly converts lines to CR/LF. This bash problem
21662 # is reportedly fixed, but why not run on old versions too?
21663 $SED '$q' "$ltmain" >> "$cfgfile" \
21664 || (rm -f "$cfgfile"; exit 1)
21665
21666 mv -f "$cfgfile" "$ofile" ||
21667 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21668 chmod +x "$ofile"
21669
21670 ;;
21671 "default-1":C)
21672 for ac_file in $CONFIG_FILES; do
21673 # Support "outfile[:infile[:infile...]]"
21674 case "$ac_file" in
21675 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21676 esac
21677 # PO directories have a Makefile.in generated from Makefile.in.in.
21678 case "$ac_file" in */Makefile.in)
21679 # Adjust a relative srcdir.
21680 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21681 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21682 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21683 # In autoconf-2.13 it is called $ac_given_srcdir.
21684 # In autoconf-2.50 it is called $srcdir.
21685 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21686 case "$ac_given_srcdir" in
21687 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21688 /*) top_srcdir="$ac_given_srcdir" ;;
21689 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21690 esac
21691 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21692 rm -f "$ac_dir/POTFILES"
21693 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21694 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21695 POMAKEFILEDEPS="POTFILES.in"
21696 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21697 # on $ac_dir but don't depend on user-specified configuration
21698 # parameters.
21699 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21700 # The LINGUAS file contains the set of available languages.
21701 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21702 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21703 fi
21704 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21705 # Hide the ALL_LINGUAS assigment from automake.
21706 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21707 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21708 else
21709 # The set of available languages was given in configure.in.
21710 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21711 fi
21712 # Compute POFILES
21713 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21714 # Compute UPDATEPOFILES
21715 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21716 # Compute DUMMYPOFILES
21717 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21718 # Compute GMOFILES
21719 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21720 case "$ac_given_srcdir" in
21721 .) srcdirpre= ;;
21722 *) srcdirpre='$(srcdir)/' ;;
21723 esac
21724 POFILES=
21725 UPDATEPOFILES=
21726 DUMMYPOFILES=
21727 GMOFILES=
21728 for lang in $ALL_LINGUAS; do
21729 POFILES="$POFILES $srcdirpre$lang.po"
21730 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21731 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21732 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21733 done
21734 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21735 # environment variable.
21736 INST_LINGUAS=
21737 if test -n "$ALL_LINGUAS"; then
21738 for presentlang in $ALL_LINGUAS; do
21739 useit=no
21740 if test "%UNSET%" != "$LINGUAS"; then
21741 desiredlanguages="$LINGUAS"
21742 else
21743 desiredlanguages="$ALL_LINGUAS"
21744 fi
21745 for desiredlang in $desiredlanguages; do
21746 # Use the presentlang catalog if desiredlang is
21747 # a. equal to presentlang, or
21748 # b. a variant of presentlang (because in this case,
21749 # presentlang can be used as a fallback for messages
21750 # which are not translated in the desiredlang catalog).
21751 case "$desiredlang" in
21752 "$presentlang"*) useit=yes;;
21753 esac
21754 done
21755 if test $useit = yes; then
21756 INST_LINGUAS="$INST_LINGUAS $presentlang"
21757 fi
21758 done
21759 fi
21760 CATALOGS=
21761 if test -n "$INST_LINGUAS"; then
21762 for lang in $INST_LINGUAS; do
21763 CATALOGS="$CATALOGS $lang.gmo"
21764 done
21765 fi
21766 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21767 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21768 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21769 if test -f "$f"; then
21770 case "$f" in
21771 *.orig | *.bak | *~) ;;
21772 *) cat "$f" >> "$ac_dir/Makefile" ;;
21773 esac
21774 fi
21775 done
21776 fi
21777 ;;
21778 esac
21779 done ;;
21780
21781 esac
21782 done # for ac_tag
21783
21784
21785 as_fn_exit 0
21786 _ACEOF
21787 ac_clean_files=$ac_clean_files_save
21788
21789 test $ac_write_fail = 0 ||
21790 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21791
21792
21793 # configure is writing to config.log, and then calls config.status.
21794 # config.status does its own redirection, appending to config.log.
21795 # Unfortunately, on DOS this fails, as config.log is still kept open
21796 # by configure, so config.status won't be able to write to it; its
21797 # output is simply discarded. So we exec the FD to /dev/null,
21798 # effectively closing config.log, so it can be properly (re)opened and
21799 # appended to by config.status. When coming back to configure, we
21800 # need to make the FD available again.
21801 if test "$no_create" != yes; then
21802 ac_cs_success=:
21803 ac_config_status_args=
21804 test "$silent" = yes &&
21805 ac_config_status_args="$ac_config_status_args --quiet"
21806 exec 5>/dev/null
21807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21808 exec 5>>config.log
21809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21810 # would make configure fail if this is the last instruction.
21811 $ac_cs_success || as_fn_exit 1
21812 fi
21813 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21815 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21816 fi
21817
21818