Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for procps-ng 4.0.7.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || 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 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system, including any
283 $0: error possibly output before this message. Then install
284 $0: a modern shell, or manually run the script under such a
285 $0: shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='procps-ng'
616 PACKAGE_TARNAME='procps-ng'
617 PACKAGE_VERSION='4.0.7'
618 PACKAGE_STRING='procps-ng 4.0.7'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL='https://gitlab.com/procps-ng/procps'
621
622 ac_unique_file="src/free.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 ac_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 DEJAGNU
661 DL_LIB
662 EXAMPLE_FILES_FALSE
663 EXAMPLE_FILES_TRUE
664 BUILD_SKILL_FALSE
665 BUILD_SKILL_TRUE
666 CYGWIN_FALSE
667 CYGWIN_TRUE
668 LINUX_FALSE
669 LINUX_TRUE
670 BUILD_W_FALSE
671 BUILD_W_TRUE
672 BUILD_KILL_FALSE
673 BUILD_KILL_TRUE
674 BUILD_PIDWAIT_FALSE
675 BUILD_PIDWAIT_TRUE
676 BUILD_PIDOF_FALSE
677 BUILD_PIDOF_TRUE
678 WITH_ELOGIND_FALSE
679 WITH_ELOGIND_TRUE
680 ELOGIND_LIBS
681 ELOGIND_CFLAGS
682 WITH_SYSTEMD_FALSE
683 WITH_SYSTEMD_TRUE
684 SYSTEMD_LIBS
685 SYSTEMD_CFLAGS
686 NCURSES_LIBS
687 NCURSES_CFLAGS
688 WITH_NCURSES_FALSE
689 WITH_NCURSES_TRUE
690 HARDEN_LDFLAGS
691 HARDEN_CFLAGS
692 WITH_COLORWATCH
693 WITH_WATCH8BIT
694 POSUB
695 LTLIBINTL
696 LIBINTL
697 INTLLIBS
698 LTLIBICONV
699 LIBICONV
700 MSGMERGE
701 XGETTEXT
702 GMSGFMT
703 MSGFMT
704 MKINSTALLDIRS
705 usrbin_execdir
706 POW_LIB
707 LIBOBJS
708 LT_SYS_LIBRARY_PATH
709 OTOOL64
710 OTOOL
711 LIPO
712 NMEDIT
713 DSYMUTIL
714 MANIFEST_TOOL
715 RANLIB
716 ac_ct_AR
717 AR
718 DLLTOOL
719 OBJDUMP
720 FILECMD
721 NM
722 ac_ct_DUMPBIN
723 DUMPBIN
724 LD
725 FGREP
726 EGREP
727 GREP
728 SED
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 LIBTOOL
738 USE_PO4A
739 PO4A
740 USE_NLS
741 PKG_CONFIG_LIBDIR
742 PKG_CONFIG_PATH
743 PKG_CONFIG
744 LN_S
745 CPP
746 am__fastdepCC_FALSE
747 am__fastdepCC_TRUE
748 CCDEPMODE
749 am__nodep
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__include
754 DEPDIR
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 am__xargs_n
763 am__rm_f_notfound
764 AM_BACKSLASH
765 AM_DEFAULT_VERBOSITY
766 AM_DEFAULT_V
767 AM_V
768 CSCOPE
769 ETAGS
770 CTAGS
771 am__untar
772 am__tar
773 AMTAR
774 am__leading_dot
775 SET_MAKE
776 AWK
777 mkdir_p
778 MKDIR_P
779 INSTALL_STRIP_PROGRAM
780 STRIP
781 install_sh
782 MAKEINFO
783 AUTOHEADER
784 AUTOMAKE
785 AUTOCONF
786 ACLOCAL
787 VERSION
788 PACKAGE
789 CYGPATH_W
790 am__isrc
791 INSTALL_DATA
792 INSTALL_SCRIPT
793 INSTALL_PROGRAM
794 target_alias
795 host_alias
796 build_alias
797 LIBS
798 ECHO_T
799 ECHO_N
800 ECHO_C
801 DEFS
802 mandir
803 localedir
804 libdir
805 psdir
806 pdfdir
807 dvidir
808 htmldir
809 infodir
810 docdir
811 oldincludedir
812 includedir
813 runstatedir
814 localstatedir
815 sharedstatedir
816 sysconfdir
817 datadir
818 datarootdir
819 libexecdir
820 sbindir
821 bindir
822 program_transform_name
823 prefix
824 exec_prefix
825 PACKAGE_URL
826 PACKAGE_BUGREPORT
827 PACKAGE_STRING
828 PACKAGE_VERSION
829 PACKAGE_TARNAME
830 PACKAGE_NAME
831 PATH_SEPARATOR
832 SHELL
833 am__quote'
834 ac_subst_files=''
835 ac_user_opts='
836 enable_option_checking
837 enable_silent_rules
838 enable_dependency_tracking
839 enable_largefile
840 enable_nls
841 enable_assert
842 enable_shared
843 enable_static
844 enable_pic
845 with_pic
846 enable_fast_install
847 enable_aix_soname
848 with_aix_soname
849 with_gnu_ld
850 with_sysroot
851 enable_libtool_lock
852 enable_rpath
853 with_libiconv_prefix
854 with_libintl_prefix
855 enable_watch8bit
856 enable_colorwatch
857 enable_libselinux
858 enable_harden_flags
859 with_ncurses
860 with_systemd
861 with_elogind
862 enable_pidof
863 enable_pidwait
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 enable_year2038
876 '
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CPP
886 PKG_CONFIG
887 PKG_CONFIG_PATH
888 PKG_CONFIG_LIBDIR
889 LT_SYS_LIBRARY_PATH
890 NCURSES_CFLAGS
891 NCURSES_LIBS
892 SYSTEMD_CFLAGS
893 SYSTEMD_LIBS
894 ELOGIND_CFLAGS
895 ELOGIND_LIBS'
896
897
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 ac_unrecognized_opts=
902 ac_unrecognized_sep=
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
905 cache_file=/dev/null
906 exec_prefix=NONE
907 no_create=
908 no_recursion=
909 prefix=NONE
910 program_prefix=NONE
911 program_suffix=NONE
912 program_transform_name=s,x,x,
913 silent=
914 site=
915 srcdir=
916 verbose=
917 x_includes=NONE
918 x_libraries=NONE
919
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 runstatedir='${localstatedir}/run'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
956 fi
957
958 case $ac_option in
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 case $ac_dashdash$ac_option in
965 --)
966 ac_dashdash=yes ;;
967
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 bindir=$ac_optarg ;;
972
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
977
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
984
985 --config-cache | -C)
986 cache_file=config.cache ;;
987
988 -datadir | --datadir | --datadi | --datad)
989 ac_prev=datadir ;;
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
992
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
999
1000 -disable-* | --disable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: '$ac_useropt'"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1008 *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=no ;;
1015
1016 -docdir | --docdir | --docdi | --doc | --do)
1017 ac_prev=docdir ;;
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1020
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022 ac_prev=dvidir ;;
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1025
1026 -enable-* | --enable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: '$ac_useropt'"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1050
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1054
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1061
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1066
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1072
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1079
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1084
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1089
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1096
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1101
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1108
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1113
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1117
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1120 no_create=yes ;;
1121
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1125
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1134
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1139
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1146
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1153
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1170
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1175
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1180
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1184
1185 -runstatedir | --runstatedir | --runstatedi | --runstated \
1186 | --runstate | --runstat | --runsta | --runst | --runs \
1187 | --run | --ru | --r)
1188 ac_prev=runstatedir ;;
1189 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1190 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1191 | --run=* | --ru=* | --r=*)
1192 runstatedir=$ac_optarg ;;
1193
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
1198 sbindir=$ac_optarg ;;
1199
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
1209 sharedstatedir=$ac_optarg ;;
1210
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
1214 site=$ac_optarg ;;
1215
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1220
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1227
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1232
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1235
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1238
1239 -with-* | --with-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: '$ac_useropt'"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=\$ac_optarg ;;
1254
1255 -without-* | --without-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: '$ac_useropt'"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264 "with_$ac_useropt"
1265 "*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=no ;;
1270
1271 --x)
1272 # Obsolete; use --with-x.
1273 with_x=yes ;;
1274
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280 x_includes=$ac_optarg ;;
1281
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287 x_libraries=$ac_optarg ;;
1288
1289 -*) as_fn_error $? "unrecognized option: '$ac_option'
1290 Try '$0 --help' for more information"
1291 ;;
1292
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
1298 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1299 esac
1300 eval $ac_envvar=\$ac_optarg
1301 export $ac_envvar ;;
1302
1303 *)
1304 # FIXME: should be removed in autoconf 3.0.
1305 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309 ;;
1310
1311 esac
1312 done
1313
1314 if test -n "$ac_prev"; then
1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316 as_fn_error $? "missing argument to $ac_option"
1317 fi
1318
1319 if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
1322 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1323 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 esac
1325 fi
1326
1327 # Check all directory arguments for consistency.
1328 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir runstatedir
1332 do
1333 eval ac_val=\$$ac_var
1334 # Remove trailing slashes.
1335 case $ac_val in
1336 */ )
1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\$ac_val;;
1339 esac
1340 # Be sure to have absolute directory names.
1341 case $ac_val in
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344 esac
1345 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1346 done
1347
1348 # There might be people who depend on the old broken behavior: '$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1354
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1361 fi
1362 fi
1363
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367 test "$silent" = yes && exec 6>/dev/null
1368
1369
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 as_fn_error $? "working directory cannot be determined"
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 as_fn_error $? "pwd does not report name of working directory"
1376
1377
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
1381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir=`$as_dirname -- "$as_myself" ||
1383 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387 printf "%s\n" X"$as_myself" |
1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\/\)[^/].*/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\).*/{
1401 s//\1/
1402 q
1403 }
1404 s/.*/./; q'`
1405 srcdir=$ac_confdir
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 srcdir=..
1408 fi
1409 else
1410 ac_srcdir_defaulted=no
1411 fi
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415 fi
1416 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1417 ac_abs_confdir=`(
1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419 pwd)`
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 srcdir=.
1423 fi
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1427 case $srcdir in
1428 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 esac
1430 for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 done
1436
1437 #
1438 # Report the --help message.
1439 #
1440 if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1443 cat <<_ACEOF
1444 'configure' configures procps-ng 4.0.7 to adapt to many kinds of systems.
1445
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE. See below for descriptions of some of the useful variables.
1450
1451 Defaults for the options are specified in brackets.
1452
1453 Configuration:
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
1458 -q, --quiet, --silent do not print 'checking ...' messages
1459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for '--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or '..']
1463
1464 Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
1466 [$ac_default_prefix]
1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 [PREFIX]
1469
1470 By default, 'make install' will install all the files in
1471 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1472 an installation prefix other than '$ac_default_prefix' using '--prefix',
1473 for instance '--prefix=\$HOME'.
1474
1475 For better control, use the options below.
1476
1477 Fine tuning of the installation directories:
1478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/procps-ng]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498 _ACEOF
1499
1500 cat <<\_ACEOF
1501
1502 Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506
1507 System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of procps-ng 4.0.7:";;
1516 esac
1517 cat <<\_ACEOF
1518
1519 Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-silent-rules less verbose build output (undo: "make V=1")
1524 --disable-silent-rules verbose build output (undo: "make V=0")
1525 --enable-dependency-tracking
1526 do not reject slow dependency extractors
1527 --disable-dependency-tracking
1528 speeds up one-time build
1529 --disable-largefile omit support for large files
1530 --disable-nls do not use Native Language Support
1531 --disable-assert turn off assertions
1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-static[=PKGS] build static libraries [default=yes]
1534 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1535 both]
1536 --enable-fast-install[=PKGS]
1537 optimize for fast installation [default=yes]
1538 --enable-aix-soname=aix|svr4|both
1539 shared library versioning (aka "SONAME") variant to
1540 provide on AIX, [default=aix].
1541 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --disable-rpath do not hardcode runtime library paths
1543 --enable-watch8bit enable watch to be 8bit clean (requires ncursesw)
1544 --enable-colorwatch enable watch to use color by default
1545 --enable-libselinux enable libselinux
1546 --enable-harden-flags enable hardened compilier and linker flags
1547 --disable-pidof do not build pidof
1548 --disable-pidwait do not build pidwait
1549 --disable-kill do not build kill
1550 --disable-w do not build w
1551 --enable-skill build skill and snice
1552 --enable-examples add example files to installation
1553 --enable-sigwinch reduce impact of x-windows resize operations on top
1554 --enable-wide-percent provide extra precision under %CPU and %MEM for top
1555 --enable-wide-memory provide extra precision under memory fields for top
1556 --disable-modern-top disable new startup defaults, return to original top
1557 --disable-numa disable NUMA/Node support in top
1558 --enable-w-from enable w from field by default
1559 --disable-whining do not print unnecessary warnings (slackware-ism)
1560 --enable-year2038 support timestamps after 2038
1561
1562 Optional Packages:
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1566 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1567 compiler's sysroot if not specified).
1568 --with-gnu-ld assume the C compiler uses GNU ld default=no
1569 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1570 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1571 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1572 --without-libintl-prefix don't search for libintl in includedir and libdir
1573 --without-ncurses build only applications not needing ncurses
1574 --with-systemd enable systemd support
1575 --with-elogind enable elogind support
1576
1577 Some influential environment variables:
1578 CC C compiler command
1579 CFLAGS C compiler flags
1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1581 nonstandard directory <lib dir>
1582 LIBS libraries to pass to the linker, e.g. -l<library>
1583 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1584 you have headers in a nonstandard directory <include dir>
1585 CPP C preprocessor
1586 PKG_CONFIG path to pkg-config utility
1587 PKG_CONFIG_PATH
1588 directories to add to pkg-config's search path
1589 PKG_CONFIG_LIBDIR
1590 path overriding pkg-config's built-in search path
1591 LT_SYS_LIBRARY_PATH
1592 User-defined run-time library search path.
1593 NCURSES_CFLAGS
1594 C compiler flags for NCURSES, overriding pkg-config
1595 NCURSES_LIBS
1596 linker flags for NCURSES, overriding pkg-config
1597 SYSTEMD_CFLAGS
1598 C compiler flags for SYSTEMD, overriding pkg-config
1599 SYSTEMD_LIBS
1600 linker flags for SYSTEMD, overriding pkg-config
1601 ELOGIND_CFLAGS
1602 C compiler flags for ELOGIND, overriding pkg-config
1603 ELOGIND_LIBS
1604 linker flags for ELOGIND, overriding pkg-config
1605
1606 Use these variables to override the choices made by 'configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1608
1609 Report bugs to <[email protected]>.
1610 procps-ng home page: <https://gitlab.com/procps-ng/procps>.
1611 _ACEOF
1612 ac_status=$?
1613 fi
1614
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
1621 ac_builddir=.
1622
1623 case "$ac_dir" in
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *)
1626 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633 esac
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1638
1639 case $srcdir in
1640 .) # We are building in place.
1641 ac_srcdir=.
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
1645 ac_srcdir=$srcdir$ac_dir_suffix;
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 esac
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for configure.gnu first; this name is used for a wrapper for
1657 # Metaconfig's "Configure" on case-insensitive file systems.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1664 else
1665 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1668 done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673 cat <<\_ACEOF
1674 procps-ng configure 4.0.7
1675 generated by GNU Autoconf 2.72
1676
1677 Copyright (C) 2023 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681 exit
1682 fi
1683
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest.beam
1695 if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 printf "%s\n" "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext
1714 then :
1715 ac_retval=0
1716 else case e in #(
1717 e) printf "%s\n" "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1 ;;
1721 esac
1722 fi
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_compile
1727
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 printf %s "checking for $2... " >&6; }
1737 if eval test \${$3+y}
1738 then :
1739 printf %s "(cached) " >&6
1740 else case e in #(
1741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 $4
1744 #include <$2>
1745 _ACEOF
1746 if ac_fn_c_try_compile "$LINENO"
1747 then :
1748 eval "$3=yes"
1749 else case e in #(
1750 e) eval "$3=no" ;;
1751 esac
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1754 esac
1755 fi
1756 eval ac_res=\$$3
1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 printf "%s\n" "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761 } # ac_fn_c_check_header_compile
1762
1763 # ac_fn_c_try_run LINENO
1764 # ----------------------
1765 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1766 # executables *can* be run.
1767 ac_fn_c_try_run ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 printf "%s\n" "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1778 ac_status=$?
1779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 printf "%s\n" "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1788 ac_status=$?
1789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }
1791 then :
1792 ac_retval=0
1793 else case e in #(
1794 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1795 printf "%s\n" "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 ac_retval=$ac_status ;;
1799 esac
1800 fi
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_run
1806
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_cpp ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 printf "%s\n" "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } > conftest.i && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 }
1832 then :
1833 ac_retval=0
1834 else case e in #(
1835 e) printf "%s\n" "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1 ;;
1839 esac
1840 fi
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1843
1844 } # ac_fn_c_try_cpp
1845
1846 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1847 # -------------------------------------------
1848 # Tests whether TYPE exists after having included INCLUDES, setting cache
1849 # variable VAR accordingly.
1850 ac_fn_c_check_type ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 printf %s "checking for $2... " >&6; }
1855 if eval test \${$3+y}
1856 then :
1857 printf %s "(cached) " >&6
1858 else case e in #(
1859 e) eval "$3=no"
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 int
1864 main (void)
1865 {
1866 if (sizeof ($2))
1867 return 0;
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"
1873 then :
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $4
1877 int
1878 main (void)
1879 {
1880 if (sizeof (($2)))
1881 return 0;
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"
1887 then :
1888
1889 else case e in #(
1890 e) eval "$3=yes" ;;
1891 esac
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1896 esac
1897 fi
1898 eval ac_res=\$$3
1899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 printf "%s\n" "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_type
1904
1905 # ac_fn_c_find_intX_t LINENO BITS VAR
1906 # -----------------------------------
1907 # Finds a signed integer type with width BITS, setting cache variable VAR
1908 # accordingly.
1909 ac_fn_c_find_intX_t ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1913 printf %s "checking for int$2_t... " >&6; }
1914 if eval test \${$3+y}
1915 then :
1916 printf %s "(cached) " >&6
1917 else case e in #(
1918 e) eval "$3=no"
1919 # Order is important - never check a type that is potentially smaller
1920 # than half of the expected target width.
1921 for ac_type in int$2_t 'int' 'long int' \
1922 'long long int' 'short int' 'signed char'; do
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $ac_includes_default
1926 enum { N = $2 / 2 - 1 };
1927 int
1928 main (void)
1929 {
1930 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1931 test_array [0] = 0;
1932 return test_array [0];
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"
1939 then :
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $ac_includes_default
1943 enum { N = $2 / 2 - 1 };
1944 int
1945 main (void)
1946 {
1947 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1948 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1949 test_array [0] = 0;
1950 return test_array [0];
1951
1952 ;
1953 return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"
1957 then :
1958
1959 else case e in #(
1960 e) case $ac_type in #(
1961 int$2_t) :
1962 eval "$3=yes" ;; #(
1963 *) :
1964 eval "$3=\$ac_type" ;;
1965 esac ;;
1966 esac
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1971 if eval test \"x\$"$3"\" = x"no"
1972 then :
1973
1974 else case e in #(
1975 e) break ;;
1976 esac
1977 fi
1978 done ;;
1979 esac
1980 fi
1981 eval ac_res=\$$3
1982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 printf "%s\n" "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_find_intX_t
1987
1988 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989 # ----------------------------------------------------
1990 # Tries to find if the field MEMBER exists in type AGGR, after including
1991 # INCLUDES, setting cache variable VAR accordingly.
1992 ac_fn_c_check_member ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996 printf %s "checking for $2.$3... " >&6; }
1997 if eval test \${$4+y}
1998 then :
1999 printf %s "(cached) " >&6
2000 else case e in #(
2001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $5
2004 int
2005 main (void)
2006 {
2007 static $2 ac_aggr;
2008 if (ac_aggr.$3)
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"
2015 then :
2016 eval "$4=yes"
2017 else case e in #(
2018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $5
2021 int
2022 main (void)
2023 {
2024 static $2 ac_aggr;
2025 if (sizeof ac_aggr.$3)
2026 return 0;
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"
2032 then :
2033 eval "$4=yes"
2034 else case e in #(
2035 e) eval "$4=no" ;;
2036 esac
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2039 esac
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2042 esac
2043 fi
2044 eval ac_res=\$$4
2045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 printf "%s\n" "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_member
2050
2051 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2052 # ------------------------------------------------------------------
2053 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2054 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2055 ac_fn_check_decl ()
2056 {
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 as_decl_name=`echo $2|sed 's/ *(.*//'`
2059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2060 printf %s "checking whether $as_decl_name is declared... " >&6; }
2061 if eval test \${$3+y}
2062 then :
2063 printf %s "(cached) " >&6
2064 else case e in #(
2065 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2066 eval ac_save_FLAGS=\$$6
2067 as_fn_append $6 " $5"
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 $4
2071 int
2072 main (void)
2073 {
2074 #ifndef $as_decl_name
2075 #ifdef __cplusplus
2076 (void) $as_decl_use;
2077 #else
2078 (void) $as_decl_name;
2079 #endif
2080 #endif
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"
2087 then :
2088 eval "$3=yes"
2089 else case e in #(
2090 e) eval "$3=no" ;;
2091 esac
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2094 eval $6=\$ac_save_FLAGS
2095 ;;
2096 esac
2097 fi
2098 eval ac_res=\$$3
2099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 printf "%s\n" "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102
2103 } # ac_fn_check_decl
2104
2105 # ac_fn_c_try_link LINENO
2106 # -----------------------
2107 # Try to link conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_c_try_link ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2112 if { { ac_try="$ac_link"
2113 case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 printf "%s\n" "$ac_try_echo"; } >&5
2119 (eval "$ac_link") 2>conftest.err
2120 ac_status=$?
2121 if test -s conftest.err; then
2122 grep -v '^ *+' conftest.err >conftest.er1
2123 cat conftest.er1 >&5
2124 mv -f conftest.er1 conftest.err
2125 fi
2126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && {
2128 test -z "$ac_c_werror_flag" ||
2129 test ! -s conftest.err
2130 } && test -s conftest$ac_exeext && {
2131 test "$cross_compiling" = yes ||
2132 test -x conftest$ac_exeext
2133 }
2134 then :
2135 ac_retval=0
2136 else case e in #(
2137 e) printf "%s\n" "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2139
2140 ac_retval=1 ;;
2141 esac
2142 fi
2143 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2144 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2145 # interfere with the next link command; also delete a directory that is
2146 # left behind by Apple's compiler. We do this before executing the actions.
2147 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 as_fn_set_status $ac_retval
2150
2151 } # ac_fn_c_try_link
2152
2153 # ac_fn_c_check_func LINENO FUNC VAR
2154 # ----------------------------------
2155 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2156 ac_fn_c_check_func ()
2157 {
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 printf %s "checking for $2... " >&6; }
2161 if eval test \${$3+y}
2162 then :
2163 printf %s "(cached) " >&6
2164 else case e in #(
2165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2169 #define $2 innocuous_$2
2170
2171 /* System header to define __stub macros and hopefully few prototypes,
2172 which can conflict with char $2 (void); below. */
2173
2174 #include <limits.h>
2175 #undef $2
2176
2177 /* Override any GCC internal prototype to avoid an error.
2178 Use char because int might match the return type of a GCC
2179 builtin and then its argument prototype would still apply. */
2180 #ifdef __cplusplus
2181 extern "C"
2182 #endif
2183 char $2 (void);
2184 /* The GNU C library defines this for functions which it implements
2185 to always fail with ENOSYS. Some functions are actually named
2186 something starting with __ and the normal name is an alias. */
2187 #if defined __stub_$2 || defined __stub___$2
2188 choke me
2189 #endif
2190
2191 int
2192 main (void)
2193 {
2194 return $2 ();
2195 ;
2196 return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_link "$LINENO"
2200 then :
2201 eval "$3=yes"
2202 else case e in #(
2203 e) eval "$3=no" ;;
2204 esac
2205 fi
2206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2207 conftest$ac_exeext conftest.$ac_ext ;;
2208 esac
2209 fi
2210 eval ac_res=\$$3
2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 printf "%s\n" "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215 } # ac_fn_c_check_func
2216 ac_configure_args_raw=
2217 for ac_arg
2218 do
2219 case $ac_arg in
2220 *\'*)
2221 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2222 esac
2223 as_fn_append ac_configure_args_raw " '$ac_arg'"
2224 done
2225
2226 case $ac_configure_args_raw in
2227 *$as_nl*)
2228 ac_safe_unquote= ;;
2229 *)
2230 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2231 ac_unsafe_a="$ac_unsafe_z#~"
2232 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2233 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2234 esac
2235
2236 cat >config.log <<_ACEOF
2237 This file contains any messages produced by compilers while
2238 running configure, to aid debugging if configure makes a mistake.
2239
2240 It was created by procps-ng $as_me 4.0.7, which was
2241 generated by GNU Autoconf 2.72. Invocation command line was
2242
2243 $ $0$ac_configure_args_raw
2244
2245 _ACEOF
2246 exec 5>>config.log
2247 {
2248 cat <<_ASUNAME
2249 ## --------- ##
2250 ## Platform. ##
2251 ## --------- ##
2252
2253 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2254 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2255 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2256 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2257 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2258
2259 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2260 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2261
2262 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2263 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2264 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2265 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2266 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2267 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2268 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2269
2270 _ASUNAME
2271
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275 IFS=$as_save_IFS
2276 case $as_dir in #(((
2277 '') as_dir=./ ;;
2278 */) ;;
2279 *) as_dir=$as_dir/ ;;
2280 esac
2281 printf "%s\n" "PATH: $as_dir"
2282 done
2283 IFS=$as_save_IFS
2284
2285 } >&5
2286
2287 cat >&5 <<_ACEOF
2288
2289
2290 ## ----------- ##
2291 ## Core tests. ##
2292 ## ----------- ##
2293
2294 _ACEOF
2295
2296
2297 # Keep a trace of the command line.
2298 # Strip out --no-create and --no-recursion so they do not pile up.
2299 # Strip out --silent because we don't want to record it for future runs.
2300 # Also quote any args containing shell meta-characters.
2301 # Make two passes to allow for proper duplicate-argument suppression.
2302 ac_configure_args=
2303 ac_configure_args0=
2304 ac_configure_args1=
2305 ac_must_keep_next=false
2306 for ac_pass in 1 2
2307 do
2308 for ac_arg
2309 do
2310 case $ac_arg in
2311 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313 | -silent | --silent | --silen | --sile | --sil)
2314 continue ;;
2315 *\'*)
2316 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2317 esac
2318 case $ac_pass in
2319 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320 2)
2321 as_fn_append ac_configure_args1 " '$ac_arg'"
2322 if test $ac_must_keep_next = true; then
2323 ac_must_keep_next=false # Got value, back to normal.
2324 else
2325 case $ac_arg in
2326 *=* | --config-cache | -C | -disable-* | --disable-* \
2327 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329 | -with-* | --with-* | -without-* | --without-* | --x)
2330 case "$ac_configure_args0 " in
2331 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2332 esac
2333 ;;
2334 -* ) ac_must_keep_next=true ;;
2335 esac
2336 fi
2337 as_fn_append ac_configure_args " '$ac_arg'"
2338 ;;
2339 esac
2340 done
2341 done
2342 { ac_configure_args0=; unset ac_configure_args0;}
2343 { ac_configure_args1=; unset ac_configure_args1;}
2344
2345 # When interrupted or exit'd, cleanup temporary files, and complete
2346 # config.log. We remove comments because anyway the quotes in there
2347 # would cause problems or look ugly.
2348 # WARNING: Use '\'' to represent an apostrophe within the trap.
2349 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350 trap 'exit_status=$?
2351 # Sanitize IFS.
2352 IFS=" "" $as_nl"
2353 # Save into config.log some information that might help in debugging.
2354 {
2355 echo
2356
2357 printf "%s\n" "## ---------------- ##
2358 ## Cache variables. ##
2359 ## ---------------- ##"
2360 echo
2361 # The following way of writing the cache mishandles newlines in values,
2362 (
2363 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2364 eval ac_val=\$$ac_var
2365 case $ac_val in #(
2366 *${as_nl}*)
2367 case $ac_var in #(
2368 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2369 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2370 esac
2371 case $ac_var in #(
2372 _ | IFS | as_nl) ;; #(
2373 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2374 *) { eval $ac_var=; unset $ac_var;} ;;
2375 esac ;;
2376 esac
2377 done
2378 (set) 2>&1 |
2379 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2380 *${as_nl}ac_space=\ *)
2381 sed -n \
2382 "s/'\''/'\''\\\\'\'''\''/g;
2383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2384 ;; #(
2385 *)
2386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2387 ;;
2388 esac |
2389 sort
2390 )
2391 echo
2392
2393 printf "%s\n" "## ----------------- ##
2394 ## Output variables. ##
2395 ## ----------------- ##"
2396 echo
2397 for ac_var in $ac_subst_vars
2398 do
2399 eval ac_val=\$$ac_var
2400 case $ac_val in
2401 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402 esac
2403 printf "%s\n" "$ac_var='\''$ac_val'\''"
2404 done | sort
2405 echo
2406
2407 if test -n "$ac_subst_files"; then
2408 printf "%s\n" "## ------------------- ##
2409 ## File substitutions. ##
2410 ## ------------------- ##"
2411 echo
2412 for ac_var in $ac_subst_files
2413 do
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 printf "%s\n" "$ac_var='\''$ac_val'\''"
2419 done | sort
2420 echo
2421 fi
2422
2423 if test -s confdefs.h; then
2424 printf "%s\n" "## ----------- ##
2425 ## confdefs.h. ##
2426 ## ----------- ##"
2427 echo
2428 cat confdefs.h
2429 echo
2430 fi
2431 test "$ac_signal" != 0 &&
2432 printf "%s\n" "$as_me: caught signal $ac_signal"
2433 printf "%s\n" "$as_me: exit $exit_status"
2434 } >&5
2435 rm -f core *.core core.conftest.* &&
2436 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2437 exit $exit_status
2438 ' 0
2439 for ac_signal in 1 2 13 15; do
2440 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2441 done
2442 ac_signal=0
2443
2444 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2445 rm -f -r conftest* confdefs.h
2446
2447 printf "%s\n" "/* confdefs.h */" > confdefs.h
2448
2449 # Predefined preprocessor variables.
2450
2451 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2452
2453 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2454
2455 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2456
2457 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2458
2459 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2460
2461 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2462
2463
2464 # Let the site file select an alternate cache file if it wants to.
2465 # Prefer an explicitly selected file to automatically selected ones.
2466 if test -n "$CONFIG_SITE"; then
2467 ac_site_files="$CONFIG_SITE"
2468 elif test "x$prefix" != xNONE; then
2469 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2470 else
2471 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2472 fi
2473
2474 for ac_site_file in $ac_site_files
2475 do
2476 case $ac_site_file in #(
2477 */*) :
2478 ;; #(
2479 *) :
2480 ac_site_file=./$ac_site_file ;;
2481 esac
2482 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2484 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2485 sed 's/^/| /' "$ac_site_file" >&5
2486 . "$ac_site_file" \
2487 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2488 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2489 as_fn_error $? "failed to load site script $ac_site_file
2490 See 'config.log' for more details" "$LINENO" 5; }
2491 fi
2492 done
2493
2494 if test -r "$cache_file"; then
2495 # Some versions of bash will fail to source /dev/null (special files
2496 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2497 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2499 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2500 case $cache_file in
2501 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2502 *) . "./$cache_file";;
2503 esac
2504 fi
2505 else
2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2507 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2508 >$cache_file
2509 fi
2510
2511 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2512 # Test code for whether the C compiler supports C89 (global declarations)
2513 ac_c_conftest_c89_globals='
2514 /* Does the compiler advertise C89 conformance?
2515 Do not test the value of __STDC__, because some compilers set it to 0
2516 while being otherwise adequately conformant. */
2517 #if !defined __STDC__
2518 # error "Compiler does not advertise C89 conformance"
2519 #endif
2520
2521 #include <stddef.h>
2522 #include <stdarg.h>
2523 struct stat;
2524 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2525 struct buf { int x; };
2526 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2527 static char *e (char **p, int i)
2528 {
2529 return p[i];
2530 }
2531 static char *f (char * (*g) (char **, int), char **p, ...)
2532 {
2533 char *s;
2534 va_list v;
2535 va_start (v,p);
2536 s = g (p, va_arg (v,int));
2537 va_end (v);
2538 return s;
2539 }
2540
2541 /* C89 style stringification. */
2542 #define noexpand_stringify(a) #a
2543 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2544
2545 /* C89 style token pasting. Exercises some of the corner cases that
2546 e.g. old MSVC gets wrong, but not very hard. */
2547 #define noexpand_concat(a,b) a##b
2548 #define expand_concat(a,b) noexpand_concat(a,b)
2549 extern int vA;
2550 extern int vbee;
2551 #define aye A
2552 #define bee B
2553 int *pvA = &expand_concat(v,aye);
2554 int *pvbee = &noexpand_concat(v,bee);
2555
2556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2557 function prototypes and stuff, but not \xHH hex character constants.
2558 These do not provoke an error unfortunately, instead are silently treated
2559 as an "x". The following induces an error, until -std is added to get
2560 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2561 array size at least. It is necessary to write \x00 == 0 to get something
2562 that is true only with -std. */
2563 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2564
2565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2566 inside strings and character constants. */
2567 #define FOO(x) '\''x'\''
2568 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2569
2570 int test (int i, double x);
2571 struct s1 {int (*f) (int a);};
2572 struct s2 {int (*f) (double a);};
2573 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2574 int, int);'
2575
2576 # Test code for whether the C compiler supports C89 (body of main).
2577 ac_c_conftest_c89_main='
2578 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2579 '
2580
2581 # Test code for whether the C compiler supports C99 (global declarations)
2582 ac_c_conftest_c99_globals='
2583 /* Does the compiler advertise C99 conformance? */
2584 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2585 # error "Compiler does not advertise C99 conformance"
2586 #endif
2587
2588 // See if C++-style comments work.
2589
2590 #include <stdbool.h>
2591 extern int puts (const char *);
2592 extern int printf (const char *, ...);
2593 extern int dprintf (int, const char *, ...);
2594 extern void *malloc (size_t);
2595 extern void free (void *);
2596
2597 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2598 // dprintf is used instead of fprintf to avoid needing to declare
2599 // FILE and stderr.
2600 #define debug(...) dprintf (2, __VA_ARGS__)
2601 #define showlist(...) puts (#__VA_ARGS__)
2602 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2603 static void
2604 test_varargs_macros (void)
2605 {
2606 int x = 1234;
2607 int y = 5678;
2608 debug ("Flag");
2609 debug ("X = %d\n", x);
2610 showlist (The first, second, and third items.);
2611 report (x>y, "x is %d but y is %d", x, y);
2612 }
2613
2614 // Check long long types.
2615 #define BIG64 18446744073709551615ull
2616 #define BIG32 4294967295ul
2617 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2618 #if !BIG_OK
2619 #error "your preprocessor is broken"
2620 #endif
2621 #if BIG_OK
2622 #else
2623 #error "your preprocessor is broken"
2624 #endif
2625 static long long int bignum = -9223372036854775807LL;
2626 static unsigned long long int ubignum = BIG64;
2627
2628 struct incomplete_array
2629 {
2630 int datasize;
2631 double data[];
2632 };
2633
2634 struct named_init {
2635 int number;
2636 const wchar_t *name;
2637 double average;
2638 };
2639
2640 typedef const char *ccp;
2641
2642 static inline int
2643 test_restrict (ccp restrict text)
2644 {
2645 // Iterate through items via the restricted pointer.
2646 // Also check for declarations in for loops.
2647 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2648 continue;
2649 return 0;
2650 }
2651
2652 // Check varargs and va_copy.
2653 static bool
2654 test_varargs (const char *format, ...)
2655 {
2656 va_list args;
2657 va_start (args, format);
2658 va_list args_copy;
2659 va_copy (args_copy, args);
2660
2661 const char *str = "";
2662 int number = 0;
2663 float fnumber = 0;
2664
2665 while (*format)
2666 {
2667 switch (*format++)
2668 {
2669 case '\''s'\'': // string
2670 str = va_arg (args_copy, const char *);
2671 break;
2672 case '\''d'\'': // int
2673 number = va_arg (args_copy, int);
2674 break;
2675 case '\''f'\'': // float
2676 fnumber = va_arg (args_copy, double);
2677 break;
2678 default:
2679 break;
2680 }
2681 }
2682 va_end (args_copy);
2683 va_end (args);
2684
2685 return *str && number && fnumber;
2686 }
2687 '
2688
2689 # Test code for whether the C compiler supports C99 (body of main).
2690 ac_c_conftest_c99_main='
2691 // Check bool.
2692 _Bool success = false;
2693 success |= (argc != 0);
2694
2695 // Check restrict.
2696 if (test_restrict ("String literal") == 0)
2697 success = true;
2698 char *restrict newvar = "Another string";
2699
2700 // Check varargs.
2701 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2702 test_varargs_macros ();
2703
2704 // Check flexible array members.
2705 struct incomplete_array *ia =
2706 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2707 ia->datasize = 10;
2708 for (int i = 0; i < ia->datasize; ++i)
2709 ia->data[i] = i * 1.234;
2710 // Work around memory leak warnings.
2711 free (ia);
2712
2713 // Check named initializers.
2714 struct named_init ni = {
2715 .number = 34,
2716 .name = L"Test wide string",
2717 .average = 543.34343,
2718 };
2719
2720 ni.number = 58;
2721
2722 int dynamic_array[ni.number];
2723 dynamic_array[0] = argv[0][0];
2724 dynamic_array[ni.number - 1] = 543;
2725
2726 // work around unused variable warnings
2727 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2728 || dynamic_array[ni.number - 1] != 543);
2729 '
2730
2731 # Test code for whether the C compiler supports C11 (global declarations)
2732 ac_c_conftest_c11_globals='
2733 /* Does the compiler advertise C11 conformance? */
2734 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2735 # error "Compiler does not advertise C11 conformance"
2736 #endif
2737
2738 // Check _Alignas.
2739 char _Alignas (double) aligned_as_double;
2740 char _Alignas (0) no_special_alignment;
2741 extern char aligned_as_int;
2742 char _Alignas (0) _Alignas (int) aligned_as_int;
2743
2744 // Check _Alignof.
2745 enum
2746 {
2747 int_alignment = _Alignof (int),
2748 int_array_alignment = _Alignof (int[100]),
2749 char_alignment = _Alignof (char)
2750 };
2751 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2752
2753 // Check _Noreturn.
2754 int _Noreturn does_not_return (void) { for (;;) continue; }
2755
2756 // Check _Static_assert.
2757 struct test_static_assert
2758 {
2759 int x;
2760 _Static_assert (sizeof (int) <= sizeof (long int),
2761 "_Static_assert does not work in struct");
2762 long int y;
2763 };
2764
2765 // Check UTF-8 literals.
2766 #define u8 syntax error!
2767 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2768
2769 // Check duplicate typedefs.
2770 typedef long *long_ptr;
2771 typedef long int *long_ptr;
2772 typedef long_ptr long_ptr;
2773
2774 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2775 struct anonymous
2776 {
2777 union {
2778 struct { int i; int j; };
2779 struct { int k; long int l; } w;
2780 };
2781 int m;
2782 } v1;
2783 '
2784
2785 # Test code for whether the C compiler supports C11 (body of main).
2786 ac_c_conftest_c11_main='
2787 _Static_assert ((offsetof (struct anonymous, i)
2788 == offsetof (struct anonymous, w.k)),
2789 "Anonymous union alignment botch");
2790 v1.i = 2;
2791 v1.w.k = 5;
2792 ok |= v1.i != 5;
2793 '
2794
2795 # Test code for whether the C compiler supports C11 (complete).
2796 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2797 ${ac_c_conftest_c99_globals}
2798 ${ac_c_conftest_c11_globals}
2799
2800 int
2801 main (int argc, char **argv)
2802 {
2803 int ok = 0;
2804 ${ac_c_conftest_c89_main}
2805 ${ac_c_conftest_c99_main}
2806 ${ac_c_conftest_c11_main}
2807 return ok;
2808 }
2809 "
2810
2811 # Test code for whether the C compiler supports C99 (complete).
2812 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2813 ${ac_c_conftest_c99_globals}
2814
2815 int
2816 main (int argc, char **argv)
2817 {
2818 int ok = 0;
2819 ${ac_c_conftest_c89_main}
2820 ${ac_c_conftest_c99_main}
2821 return ok;
2822 }
2823 "
2824
2825 # Test code for whether the C compiler supports C89 (complete).
2826 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2827
2828 int
2829 main (int argc, char **argv)
2830 {
2831 int ok = 0;
2832 ${ac_c_conftest_c89_main}
2833 return ok;
2834 }
2835 "
2836
2837 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2838 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2839 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2840 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2841 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2842 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2843 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2844 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2845 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2846 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2847 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2848 as_fn_append ac_func_c_list " fork HAVE_FORK"
2849 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2850 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2851 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2852
2853 # Auxiliary files required by this configure script.
2854 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2855
2856 # Locations in which to look for auxiliary files.
2857 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2858
2859 # Search for a directory containing all of the required auxiliary files,
2860 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2861 # If we don't find one directory that contains all the files we need,
2862 # we report the set of missing files from the *first* directory in
2863 # $ac_aux_dir_candidates and give up.
2864 ac_missing_aux_files=""
2865 ac_first_candidate=:
2866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 as_found=false
2869 for as_dir in $ac_aux_dir_candidates
2870 do
2871 IFS=$as_save_IFS
2872 case $as_dir in #(((
2873 '') as_dir=./ ;;
2874 */) ;;
2875 *) as_dir=$as_dir/ ;;
2876 esac
2877 as_found=:
2878
2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2880 ac_aux_dir_found=yes
2881 ac_install_sh=
2882 for ac_aux in $ac_aux_files
2883 do
2884 # As a special case, if "install-sh" is required, that requirement
2885 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2886 # and $ac_install_sh is set appropriately for whichever one is found.
2887 if test x"$ac_aux" = x"install-sh"
2888 then
2889 if test -f "${as_dir}install-sh"; then
2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2891 ac_install_sh="${as_dir}install-sh -c"
2892 elif test -f "${as_dir}install.sh"; then
2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2894 ac_install_sh="${as_dir}install.sh -c"
2895 elif test -f "${as_dir}shtool"; then
2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2897 ac_install_sh="${as_dir}shtool install -c"
2898 else
2899 ac_aux_dir_found=no
2900 if $ac_first_candidate; then
2901 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2902 else
2903 break
2904 fi
2905 fi
2906 else
2907 if test -f "${as_dir}${ac_aux}"; then
2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2909 else
2910 ac_aux_dir_found=no
2911 if $ac_first_candidate; then
2912 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2913 else
2914 break
2915 fi
2916 fi
2917 fi
2918 done
2919 if test "$ac_aux_dir_found" = yes; then
2920 ac_aux_dir="$as_dir"
2921 break
2922 fi
2923 ac_first_candidate=false
2924
2925 as_found=false
2926 done
2927 IFS=$as_save_IFS
2928 if $as_found
2929 then :
2930
2931 else case e in #(
2932 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2933 esac
2934 fi
2935
2936
2937 # These three variables are undocumented and unsupported,
2938 # and are intended to be withdrawn in a future Autoconf release.
2939 # They can cause serious problems if a builder's source tree is in a directory
2940 # whose full name contains unusual characters.
2941 if test -f "${ac_aux_dir}config.guess"; then
2942 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2943 fi
2944 if test -f "${ac_aux_dir}config.sub"; then
2945 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2946 fi
2947 if test -f "$ac_aux_dir/configure"; then
2948 ac_configure="$SHELL ${ac_aux_dir}configure"
2949 fi
2950
2951 # Check that the precious variables saved in the cache have kept the same
2952 # value.
2953 ac_cache_corrupted=false
2954 for ac_var in $ac_precious_vars; do
2955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2956 eval ac_new_set=\$ac_env_${ac_var}_set
2957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2958 eval ac_new_val=\$ac_env_${ac_var}_value
2959 case $ac_old_set,$ac_new_set in
2960 set,)
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2962 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2964 ,set)
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2966 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2968 ,);;
2969 *)
2970 if test "x$ac_old_val" != "x$ac_new_val"; then
2971 # differences in whitespace do not lead to failure.
2972 ac_old_val_w=`echo x $ac_old_val`
2973 ac_new_val_w=`echo x $ac_new_val`
2974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2976 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2977 ac_cache_corrupted=:
2978 else
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2980 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2981 eval $ac_var=\$ac_old_val
2982 fi
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2984 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2986 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2987 fi;;
2988 esac
2989 # Pass precious variables to config.status.
2990 if test "$ac_new_set" = set; then
2991 case $ac_new_val in
2992 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2993 *) ac_arg=$ac_var=$ac_new_val ;;
2994 esac
2995 case " $ac_configure_args " in
2996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2997 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2998 esac
2999 fi
3000 done
3001 if $ac_cache_corrupted; then
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3003 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3005 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3006 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3007 and start over" "$LINENO" 5
3008 fi
3009 ## -------------------- ##
3010 ## Main body of script. ##
3011 ## -------------------- ##
3012
3013 ac_ext=c
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018
3019
3020 am__api_version='1.17'
3021
3022
3023
3024 # Find a good install program. We prefer a C program (faster),
3025 # so one script is as good as another. But avoid the broken or
3026 # incompatible versions:
3027 # SysV /etc/install, /usr/sbin/install
3028 # SunOS /usr/etc/install
3029 # IRIX /sbin/install
3030 # AIX /bin/install
3031 # AmigaOS /C/install, which installs bootblocks on floppy discs
3032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3035 # OS/2's system install, which has a completely different semantic
3036 # ./install, which can be erroneously created by make from ./install.sh.
3037 # Reject install programs that cannot install multiple files.
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3039 printf %s "checking for a BSD-compatible install... " >&6; }
3040 if test -z "$INSTALL"; then
3041 if test ${ac_cv_path_install+y}
3042 then :
3043 printf %s "(cached) " >&6
3044 else case e in #(
3045 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048 IFS=$as_save_IFS
3049 case $as_dir in #(((
3050 '') as_dir=./ ;;
3051 */) ;;
3052 *) as_dir=$as_dir/ ;;
3053 esac
3054 # Account for fact that we put trailing slashes in our PATH walk.
3055 case $as_dir in #((
3056 ./ | /[cC]/* | \
3057 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3058 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3059 /usr/ucb/* ) ;;
3060 *)
3061 # OSF1 and SCO ODT 3.0 have their own names for install.
3062 # Don't use installbsd from OSF since it installs stuff as root
3063 # by default.
3064 for ac_prog in ginstall scoinst install; do
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3067 if test $ac_prog = install &&
3068 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3069 # AIX install. It has an incompatible calling convention.
3070 :
3071 elif test $ac_prog = install &&
3072 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3073 # program-specific install script used by HP pwplus--don't use.
3074 :
3075 else
3076 rm -rf conftest.one conftest.two conftest.dir
3077 echo one > conftest.one
3078 echo two > conftest.two
3079 mkdir conftest.dir
3080 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3081 test -s conftest.one && test -s conftest.two &&
3082 test -s conftest.dir/conftest.one &&
3083 test -s conftest.dir/conftest.two
3084 then
3085 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3086 break 3
3087 fi
3088 fi
3089 fi
3090 done
3091 done
3092 ;;
3093 esac
3094
3095 done
3096 IFS=$as_save_IFS
3097
3098 rm -rf conftest.one conftest.two conftest.dir
3099 ;;
3100 esac
3101 fi
3102 if test ${ac_cv_path_install+y}; then
3103 INSTALL=$ac_cv_path_install
3104 else
3105 # As a last resort, use the slow shell script. Don't cache a
3106 # value for INSTALL within a source directory, because that will
3107 # break other packages using the cache if that directory is
3108 # removed, or if the value is a relative name.
3109 INSTALL=$ac_install_sh
3110 fi
3111 fi
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3113 printf "%s\n" "$INSTALL" >&6; }
3114
3115 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3116 # It thinks the first close brace ends the variable substitution.
3117 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3118
3119 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3120
3121 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3122
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3124 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3125 if test ${am_cv_sleep_fractional_seconds+y}
3126 then :
3127 printf %s "(cached) " >&6
3128 else case e in #(
3129 e) if sleep 0.001 2>/dev/null
3130 then :
3131 am_cv_sleep_fractional_seconds=yes
3132 else case e in #(
3133 e) am_cv_sleep_fractional_seconds=no ;;
3134 esac
3135 fi
3136 ;;
3137 esac
3138 fi
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3140 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3141
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3143 printf %s "checking filesystem timestamp resolution... " >&6; }
3144 if test ${am_cv_filesystem_timestamp_resolution+y}
3145 then :
3146 printf %s "(cached) " >&6
3147 else case e in #(
3148 e) # Default to the worst case.
3149 am_cv_filesystem_timestamp_resolution=2
3150
3151 # Only try to go finer than 1 sec if sleep can do it.
3152 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3153 # - 1 sec is not much of a win compared to 2 sec, and
3154 # - it takes 2 seconds to perform the test whether 1 sec works.
3155 #
3156 # Instead, just use the default 2s on platforms that have 1s resolution,
3157 # accept the extra 1s delay when using $sleep in the Automake tests, in
3158 # exchange for not incurring the 2s delay for running the test for all
3159 # packages.
3160 #
3161 am_try_resolutions=
3162 if test "$am_cv_sleep_fractional_seconds" = yes; then
3163 # Even a millisecond often causes a bunch of false positives,
3164 # so just try a hundredth of a second. The time saved between .001 and
3165 # .01 is not terribly consequential.
3166 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3167 fi
3168
3169 # In order to catch current-generation FAT out, we must *modify* files
3170 # that already exist; the *creation* timestamp is finer. Use names
3171 # that make ls -t sort them differently when they have equal
3172 # timestamps than when they have distinct timestamps, keeping
3173 # in mind that ls -t prints the *newest* file first.
3174 rm -f conftest.ts?
3175 : > conftest.ts1
3176 : > conftest.ts2
3177 : > conftest.ts3
3178
3179 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3180 # clobber the current shell's arguments. (Outer-level square brackets
3181 # are removed by m4; they're present so that m4 does not expand
3182 # <dollar><star>; be careful, easy to get confused.)
3183 if (
3184 set X `ls -t conftest.ts[12]` &&
3185 {
3186 test "$*" != "X conftest.ts1 conftest.ts2" ||
3187 test "$*" != "X conftest.ts2 conftest.ts1";
3188 }
3189 ); then :; else
3190 # If neither matched, then we have a broken ls. This can happen
3191 # if, for instance, CONFIG_SHELL is bash and it inherits a
3192 # broken ls alias from the environment. This has actually
3193 # happened. Such a system could not be considered "sane".
3194 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3196 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3197 as_fn_error $? "ls -t produces unexpected output.
3198 Make sure there is not a broken ls alias in your environment.
3199 See 'config.log' for more details" "$LINENO" 5; }
3200 fi
3201
3202 for am_try_res in $am_try_resolutions; do
3203 # Any one fine-grained sleep might happen to cross the boundary
3204 # between two values of a coarser actual resolution, but if we do
3205 # two fine-grained sleeps in a row, at least one of them will fall
3206 # entirely within a coarse interval.
3207 echo alpha > conftest.ts1
3208 sleep $am_try_res
3209 echo beta > conftest.ts2
3210 sleep $am_try_res
3211 echo gamma > conftest.ts3
3212
3213 # We assume that 'ls -t' will make use of high-resolution
3214 # timestamps if the operating system supports them at all.
3215 if (set X `ls -t conftest.ts?` &&
3216 test "$2" = conftest.ts3 &&
3217 test "$3" = conftest.ts2 &&
3218 test "$4" = conftest.ts1); then
3219 #
3220 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3221 # because we don't need to test make.
3222 make_ok=true
3223 if test $am_try_res != 1; then
3224 # But if we've succeeded so far with a subsecond resolution, we
3225 # have one more thing to check: make. It can happen that
3226 # everything else supports the subsecond mtimes, but make doesn't;
3227 # notably on macOS, which ships make 3.81 from 2006 (the last one
3228 # released under GPLv2). https://bugs.gnu.org/68808
3229 #
3230 # We test $MAKE if it is defined in the environment, else "make".
3231 # It might get overridden later, but our hope is that in practice
3232 # it does not matter: it is the system "make" which is (by far)
3233 # the most likely to be broken, whereas if the user overrides it,
3234 # probably they did so with a better, or at least not worse, make.
3235 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3236 #
3237 # Create a Makefile (real tab character here):
3238 rm -f conftest.mk
3239 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3240 echo ' touch conftest.ts2' >>conftest.mk
3241 #
3242 # Now, running
3243 # touch conftest.ts1; touch conftest.ts2; make
3244 # should touch ts1 because ts2 is newer. This could happen by luck,
3245 # but most often, it will fail if make's support is insufficient. So
3246 # test for several consecutive successes.
3247 #
3248 # (We reuse conftest.ts[12] because we still want to modify existing
3249 # files, not create new ones, per above.)
3250 n=0
3251 make=${MAKE-make}
3252 until test $n -eq 3; do
3253 echo one > conftest.ts1
3254 sleep $am_try_res
3255 echo two > conftest.ts2 # ts2 should now be newer than ts1
3256 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3257 make_ok=false
3258 break # out of $n loop
3259 fi
3260 n=`expr $n + 1`
3261 done
3262 fi
3263 #
3264 if $make_ok; then
3265 # Everything we know to check worked out, so call this resolution good.
3266 am_cv_filesystem_timestamp_resolution=$am_try_res
3267 break # out of $am_try_res loop
3268 fi
3269 # Otherwise, we'll go on to check the next resolution.
3270 fi
3271 done
3272 rm -f conftest.ts?
3273 # (end _am_filesystem_timestamp_resolution)
3274 ;;
3275 esac
3276 fi
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3278 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3279
3280 # This check should not be cached, as it may vary across builds of
3281 # different projects.
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3283 printf %s "checking whether build environment is sane... " >&6; }
3284 # Reject unsafe characters in $srcdir or the absolute working directory
3285 # name. Accept space and tab only in the latter.
3286 am_lf='
3287 '
3288 case `pwd` in
3289 *[\\\"\#\$\&\'\`$am_lf]*)
3290 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3291 esac
3292 case $srcdir in
3293 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3294 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3295 esac
3296
3297 # Do 'set' in a subshell so we don't clobber the current shell's
3298 # arguments. Must try -L first in case configure is actually a
3299 # symlink; some systems play weird games with the mod time of symlinks
3300 # (eg FreeBSD returns the mod time of the symlink's containing
3301 # directory).
3302 am_build_env_is_sane=no
3303 am_has_slept=no
3304 rm -f conftest.file
3305 for am_try in 1 2; do
3306 echo "timestamp, slept: $am_has_slept" > conftest.file
3307 if (
3308 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3309 if test "$*" = "X"; then
3310 # -L didn't work.
3311 set X `ls -t "$srcdir/configure" conftest.file`
3312 fi
3313 test "$2" = conftest.file
3314 ); then
3315 am_build_env_is_sane=yes
3316 break
3317 fi
3318 # Just in case.
3319 sleep "$am_cv_filesystem_timestamp_resolution"
3320 am_has_slept=yes
3321 done
3322
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3324 printf "%s\n" "$am_build_env_is_sane" >&6; }
3325 if test "$am_build_env_is_sane" = no; then
3326 as_fn_error $? "newly created file is older than distributed files!
3327 Check your system clock" "$LINENO" 5
3328 fi
3329
3330 # If we didn't sleep, we still need to ensure time stamps of config.status and
3331 # generated files are strictly newer.
3332 am_sleep_pid=
3333 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3334 then :
3335
3336 else case e in #(
3337 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3338 am_sleep_pid=$!
3339 ;;
3340 esac
3341 fi
3342
3343 rm -f conftest.file
3344
3345 test "$program_prefix" != NONE &&
3346 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3347 # Use a double $ so make ignores it.
3348 test "$program_suffix" != NONE &&
3349 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3350 # Double any \ or $.
3351 # By default was 's,x,x', remove it if useless.
3352 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3353 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3354
3355
3356 # Expand $ac_aux_dir to an absolute path.
3357 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3358
3359
3360 if test x"${MISSING+set}" != xset; then
3361 MISSING="\${SHELL} '$am_aux_dir/missing'"
3362 fi
3363 # Use eval to expand $SHELL
3364 if eval "$MISSING --is-lightweight"; then
3365 am_missing_run="$MISSING "
3366 else
3367 am_missing_run=
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3369 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3370 fi
3371
3372 if test x"${install_sh+set}" != xset; then
3373 case $am_aux_dir in
3374 *\ * | *\ *)
3375 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3376 *)
3377 install_sh="\${SHELL} $am_aux_dir/install-sh"
3378 esac
3379 fi
3380
3381 # Installed binaries are usually stripped using 'strip' when the user
3382 # run "make install-strip". However 'strip' might not be the right
3383 # tool to use in cross-compilation environments, therefore Automake
3384 # will honor the 'STRIP' environment variable to overrule this program.
3385 if test "$cross_compiling" != no; then
3386 if test -n "$ac_tool_prefix"; then
3387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3388 set dummy ${ac_tool_prefix}strip; ac_word=$2
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 printf %s "checking for $ac_word... " >&6; }
3391 if test ${ac_cv_prog_STRIP+y}
3392 then :
3393 printf %s "(cached) " >&6
3394 else case e in #(
3395 e) if test -n "$STRIP"; then
3396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 case $as_dir in #(((
3403 '') as_dir=./ ;;
3404 */) ;;
3405 *) as_dir=$as_dir/ ;;
3406 esac
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 fi ;;
3418 esac
3419 fi
3420 STRIP=$ac_cv_prog_STRIP
3421 if test -n "$STRIP"; then
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3423 printf "%s\n" "$STRIP" >&6; }
3424 else
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 printf "%s\n" "no" >&6; }
3427 fi
3428
3429
3430 fi
3431 if test -z "$ac_cv_prog_STRIP"; then
3432 ac_ct_STRIP=$STRIP
3433 # Extract the first word of "strip", so it can be a program name with args.
3434 set dummy strip; ac_word=$2
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 printf %s "checking for $ac_word... " >&6; }
3437 if test ${ac_cv_prog_ac_ct_STRIP+y}
3438 then :
3439 printf %s "(cached) " >&6
3440 else case e in #(
3441 e) if test -n "$ac_ct_STRIP"; then
3442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447 IFS=$as_save_IFS
3448 case $as_dir in #(((
3449 '') as_dir=./ ;;
3450 */) ;;
3451 *) as_dir=$as_dir/ ;;
3452 esac
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_ac_ct_STRIP="strip"
3456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3462
3463 fi ;;
3464 esac
3465 fi
3466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3467 if test -n "$ac_ct_STRIP"; then
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3469 printf "%s\n" "$ac_ct_STRIP" >&6; }
3470 else
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 printf "%s\n" "no" >&6; }
3473 fi
3474
3475 if test "x$ac_ct_STRIP" = x; then
3476 STRIP=":"
3477 else
3478 case $cross_compiling:$ac_tool_warned in
3479 yes:)
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482 ac_tool_warned=yes ;;
3483 esac
3484 STRIP=$ac_ct_STRIP
3485 fi
3486 else
3487 STRIP="$ac_cv_prog_STRIP"
3488 fi
3489
3490 fi
3491 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3492
3493
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3495 printf %s "checking for a race-free mkdir -p... " >&6; }
3496 if test -z "$MKDIR_P"; then
3497 if test ${ac_cv_path_mkdir+y}
3498 then :
3499 printf %s "(cached) " >&6
3500 else case e in #(
3501 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3503 do
3504 IFS=$as_save_IFS
3505 case $as_dir in #(((
3506 '') as_dir=./ ;;
3507 */) ;;
3508 *) as_dir=$as_dir/ ;;
3509 esac
3510 for ac_prog in mkdir gmkdir; do
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3513 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3514 'mkdir ('*'coreutils) '* | \
3515 *'BusyBox '* | \
3516 'mkdir (fileutils) '4.1*)
3517 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3518 break 3;;
3519 esac
3520 done
3521 done
3522 done
3523 IFS=$as_save_IFS
3524 ;;
3525 esac
3526 fi
3527
3528 test -d ./--version && rmdir ./--version
3529 if test ${ac_cv_path_mkdir+y}; then
3530 MKDIR_P="$ac_cv_path_mkdir -p"
3531 else
3532 # As a last resort, use plain mkdir -p,
3533 # in the hope it doesn't have the bugs of ancient mkdir.
3534 MKDIR_P='mkdir -p'
3535 fi
3536 fi
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3538 printf "%s\n" "$MKDIR_P" >&6; }
3539
3540 for ac_prog in gawk mawk nawk awk
3541 do
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy $ac_prog; ac_word=$2
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 printf %s "checking for $ac_word... " >&6; }
3546 if test ${ac_cv_prog_AWK+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else case e in #(
3550 e) if test -n "$AWK"; then
3551 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_AWK="$ac_prog"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi ;;
3573 esac
3574 fi
3575 AWK=$ac_cv_prog_AWK
3576 if test -n "$AWK"; then
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3578 printf "%s\n" "$AWK" >&6; }
3579 else
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 printf "%s\n" "no" >&6; }
3582 fi
3583
3584
3585 test -n "$AWK" && break
3586 done
3587
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3589 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3590 set x ${MAKE-make}
3591 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3592 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3593 then :
3594 printf %s "(cached) " >&6
3595 else case e in #(
3596 e) cat >conftest.make <<\_ACEOF
3597 SHELL = /bin/sh
3598 all:
3599 @echo '@@@%%%=$(MAKE)=@@@%%%'
3600 _ACEOF
3601 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3602 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3603 *@@@%%%=?*=@@@%%%*)
3604 eval ac_cv_prog_make_${ac_make}_set=yes;;
3605 *)
3606 eval ac_cv_prog_make_${ac_make}_set=no;;
3607 esac
3608 rm -f conftest.make ;;
3609 esac
3610 fi
3611 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613 printf "%s\n" "yes" >&6; }
3614 SET_MAKE=
3615 else
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 printf "%s\n" "no" >&6; }
3618 SET_MAKE="MAKE=${MAKE-make}"
3619 fi
3620
3621 rm -rf .tst 2>/dev/null
3622 mkdir .tst 2>/dev/null
3623 if test -d .tst; then
3624 am__leading_dot=.
3625 else
3626 am__leading_dot=_
3627 fi
3628 rmdir .tst 2>/dev/null
3629
3630 AM_DEFAULT_VERBOSITY=1
3631 # Check whether --enable-silent-rules was given.
3632 if test ${enable_silent_rules+y}
3633 then :
3634 enableval=$enable_silent_rules;
3635 fi
3636
3637 am_make=${MAKE-make}
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3639 printf %s "checking whether $am_make supports nested variables... " >&6; }
3640 if test ${am_cv_make_support_nested_variables+y}
3641 then :
3642 printf %s "(cached) " >&6
3643 else case e in #(
3644 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3645 BAR0=false
3646 BAR1=true
3647 V=1
3648 am__doit:
3649 @$(TRUE)
3650 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3651 am_cv_make_support_nested_variables=yes
3652 else
3653 am_cv_make_support_nested_variables=no
3654 fi ;;
3655 esac
3656 fi
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3658 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3659 AM_BACKSLASH='\'
3660
3661 am__rm_f_notfound=
3662 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3663 then :
3664
3665 else case e in #(
3666 e) am__rm_f_notfound='""' ;;
3667 esac
3668 fi
3669
3670
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3672 printf %s "checking xargs -n works... " >&6; }
3673 if test ${am_cv_xargs_n_works+y}
3674 then :
3675 printf %s "(cached) " >&6
3676 else case e in #(
3677 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3678 3"
3679 then :
3680 am_cv_xargs_n_works=yes
3681 else case e in #(
3682 e) am_cv_xargs_n_works=no ;;
3683 esac
3684 fi ;;
3685 esac
3686 fi
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3688 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3689 if test "$am_cv_xargs_n_works" = yes
3690 then :
3691 am__xargs_n='xargs -n'
3692 else case e in #(
3693 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3694 ;;
3695 esac
3696 fi
3697
3698 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3699 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3700 # is not polluted with repeated "-I."
3701 am__isrc=' -I$(srcdir)'
3702 # test to see if srcdir already configured
3703 if test -f $srcdir/config.status; then
3704 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3705 fi
3706 fi
3707
3708 # test whether we have cygpath
3709 if test -z "$CYGPATH_W"; then
3710 if (cygpath --version) >/dev/null 2>/dev/null; then
3711 CYGPATH_W='cygpath -w'
3712 else
3713 CYGPATH_W=echo
3714 fi
3715 fi
3716
3717
3718 # Define the identity of the package.
3719 PACKAGE='procps-ng'
3720 VERSION='4.0.7'
3721
3722
3723 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3724
3725
3726 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3727
3728 # Some tools Automake needs.
3729
3730 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3731
3732
3733 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3734
3735
3736 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3737
3738
3739 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3740
3741
3742 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3743
3744 # For better backward compatibility. To be removed once Automake 1.9.x
3745 # dies out for good. For more background, see:
3746 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3747 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3748 mkdir_p='$(MKDIR_P)'
3749
3750 # We need awk for the "check" target (and possibly the TAP driver). The
3751 # system "awk" is bad on some platforms.
3752 # Always define AMTAR for backward compatibility. Yes, it's still used
3753 # in the wild :-( We should find a proper way to deprecate it ...
3754 AMTAR='$${TAR-tar}'
3755
3756
3757 # We'll loop over all known methods to create a tar archive until one works.
3758 _am_tools='gnutar pax cpio none'
3759
3760
3761
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3763 printf %s "checking how to create a pax tar archive... " >&6; }
3764
3765 # Go ahead even if we have the value already cached. We do so because we
3766 # need to set the values for the 'am__tar' and 'am__untar' variables.
3767 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3768
3769 for _am_tool in $_am_tools; do
3770 case $_am_tool in
3771 gnutar)
3772 for _am_tar in tar gnutar gtar; do
3773 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3774 ($_am_tar --version) >&5 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } && break
3778 done
3779 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3780 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3781 am__untar="$_am_tar -xf -"
3782 ;;
3783 plaintar)
3784 # Must skip GNU tar: if it does not support --format= it doesn't create
3785 # ustar tarball either.
3786 (tar --version) >/dev/null 2>&1 && continue
3787 am__tar='tar chf - "$$tardir"'
3788 am__tar_='tar chf - "$tardir"'
3789 am__untar='tar xf -'
3790 ;;
3791 pax)
3792 am__tar='pax -L -x pax -w "$$tardir"'
3793 am__tar_='pax -L -x pax -w "$tardir"'
3794 am__untar='pax -r'
3795 ;;
3796 cpio)
3797 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3798 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3799 am__untar='cpio -i -H pax -d'
3800 ;;
3801 none)
3802 am__tar=false
3803 am__tar_=false
3804 am__untar=false
3805 ;;
3806 esac
3807
3808 # If the value was cached, stop now. We just wanted to have am__tar
3809 # and am__untar set.
3810 test -n "${am_cv_prog_tar_pax}" && break
3811
3812 # tar/untar a dummy directory, and stop if the command works.
3813 rm -rf conftest.dir
3814 mkdir conftest.dir
3815 echo GrepMe > conftest.dir/file
3816 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3817 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }
3821 rm -rf conftest.dir
3822 if test -s conftest.tar; then
3823 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3824 ($am__untar <conftest.tar) >&5 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }
3828 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3829 (cat conftest.dir/file) >&5 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }
3833 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3834 fi
3835 done
3836 rm -rf conftest.dir
3837
3838 if test ${am_cv_prog_tar_pax+y}
3839 then :
3840 printf %s "(cached) " >&6
3841 else case e in #(
3842 e) am_cv_prog_tar_pax=$_am_tool ;;
3843 esac
3844 fi
3845
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3847 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3848
3849
3850
3851
3852
3853 # Variables for tags utilities; see am/tags.am
3854 if test -z "$CTAGS"; then
3855 CTAGS=ctags
3856 fi
3857
3858 if test -z "$ETAGS"; then
3859 ETAGS=etags
3860 fi
3861
3862 if test -z "$CSCOPE"; then
3863 CSCOPE=cscope
3864 fi
3865
3866
3867
3868
3869
3870
3871
3872
3873 AM_DEFAULT_VERBOSITY=0
3874
3875 ac_config_headers="$ac_config_headers config.h"
3876
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883
3884 # Checks for programs.
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894 DEPDIR="${am__leading_dot}deps"
3895
3896 ac_config_commands="$ac_config_commands depfiles"
3897
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3899 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3900 cat > confinc.mk << 'END'
3901 am__doit:
3902 @echo this is the am__doit target >confinc.out
3903 .PHONY: am__doit
3904 END
3905 am__include="#"
3906 am__quote=
3907 # BSD make does it like this.
3908 echo '.include "confinc.mk" # ignored' > confmf.BSD
3909 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3910 echo 'include confinc.mk # ignored' > confmf.GNU
3911 _am_result=no
3912 for s in GNU BSD; do
3913 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3914 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }
3918 case $?:`cat confinc.out 2>/dev/null` in #(
3919 '0:this is the am__doit target') :
3920 case $s in #(
3921 BSD) :
3922 am__include='.include' am__quote='"' ;; #(
3923 *) :
3924 am__include='include' am__quote='' ;;
3925 esac ;; #(
3926 *) :
3927 ;;
3928 esac
3929 if test "$am__include" != "#"; then
3930 _am_result="yes ($s style)"
3931 break
3932 fi
3933 done
3934 rm -f confinc.* confmf.*
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3936 printf "%s\n" "${_am_result}" >&6; }
3937
3938 # Check whether --enable-dependency-tracking was given.
3939 if test ${enable_dependency_tracking+y}
3940 then :
3941 enableval=$enable_dependency_tracking;
3942 fi
3943
3944 if test "x$enable_dependency_tracking" != xno; then
3945 am_depcomp="$ac_aux_dir/depcomp"
3946 AMDEPBACKSLASH='\'
3947 am__nodep='_no'
3948 fi
3949 if test "x$enable_dependency_tracking" != xno; then
3950 AMDEP_TRUE=
3951 AMDEP_FALSE='#'
3952 else
3953 AMDEP_TRUE='#'
3954 AMDEP_FALSE=
3955 fi
3956
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 printf %s "checking for $ac_word... " >&6; }
3968 if test ${ac_cv_prog_CC+y}
3969 then :
3970 printf %s "(cached) " >&6
3971 else case e in #(
3972 e) if test -n "$CC"; then
3973 ac_cv_prog_CC="$CC" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978 IFS=$as_save_IFS
3979 case $as_dir in #(((
3980 '') as_dir=./ ;;
3981 */) ;;
3982 *) as_dir=$as_dir/ ;;
3983 esac
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3986 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3988 break 2
3989 fi
3990 done
3991 done
3992 IFS=$as_save_IFS
3993
3994 fi ;;
3995 esac
3996 fi
3997 CC=$ac_cv_prog_CC
3998 if test -n "$CC"; then
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000 printf "%s\n" "$CC" >&6; }
4001 else
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 printf "%s\n" "no" >&6; }
4004 fi
4005
4006
4007 fi
4008 if test -z "$ac_cv_prog_CC"; then
4009 ac_ct_CC=$CC
4010 # Extract the first word of "gcc", so it can be a program name with args.
4011 set dummy gcc; ac_word=$2
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 printf %s "checking for $ac_word... " >&6; }
4014 if test ${ac_cv_prog_ac_ct_CC+y}
4015 then :
4016 printf %s "(cached) " >&6
4017 else case e in #(
4018 e) if test -n "$ac_ct_CC"; then
4019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024 IFS=$as_save_IFS
4025 case $as_dir in #(((
4026 '') as_dir=./ ;;
4027 */) ;;
4028 *) as_dir=$as_dir/ ;;
4029 esac
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_ac_ct_CC="gcc"
4033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4034 break 2
4035 fi
4036 done
4037 done
4038 IFS=$as_save_IFS
4039
4040 fi ;;
4041 esac
4042 fi
4043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4044 if test -n "$ac_ct_CC"; then
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4046 printf "%s\n" "$ac_ct_CC" >&6; }
4047 else
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 printf "%s\n" "no" >&6; }
4050 fi
4051
4052 if test "x$ac_ct_CC" = x; then
4053 CC=""
4054 else
4055 case $cross_compiling:$ac_tool_warned in
4056 yes:)
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4060 esac
4061 CC=$ac_ct_CC
4062 fi
4063 else
4064 CC="$ac_cv_prog_CC"
4065 fi
4066
4067 if test -z "$CC"; then
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4070 set dummy ${ac_tool_prefix}cc; ac_word=$2
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 printf %s "checking for $ac_word... " >&6; }
4073 if test ${ac_cv_prog_CC+y}
4074 then :
4075 printf %s "(cached) " >&6
4076 else case e in #(
4077 e) if test -n "$CC"; then
4078 ac_cv_prog_CC="$CC" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083 IFS=$as_save_IFS
4084 case $as_dir in #(((
4085 '') as_dir=./ ;;
4086 */) ;;
4087 *) as_dir=$as_dir/ ;;
4088 esac
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4091 ac_cv_prog_CC="${ac_tool_prefix}cc"
4092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4093 break 2
4094 fi
4095 done
4096 done
4097 IFS=$as_save_IFS
4098
4099 fi ;;
4100 esac
4101 fi
4102 CC=$ac_cv_prog_CC
4103 if test -n "$CC"; then
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4105 printf "%s\n" "$CC" >&6; }
4106 else
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 printf "%s\n" "no" >&6; }
4109 fi
4110
4111
4112 fi
4113 fi
4114 if test -z "$CC"; then
4115 # Extract the first word of "cc", so it can be a program name with args.
4116 set dummy cc; ac_word=$2
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 printf %s "checking for $ac_word... " >&6; }
4119 if test ${ac_cv_prog_CC+y}
4120 then :
4121 printf %s "(cached) " >&6
4122 else case e in #(
4123 e) if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4125 else
4126 ac_prog_rejected=no
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 case $as_dir in #(((
4132 '') as_dir=./ ;;
4133 */) ;;
4134 *) as_dir=$as_dir/ ;;
4135 esac
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4138 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4139 ac_prog_rejected=yes
4140 continue
4141 fi
4142 ac_cv_prog_CC="cc"
4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150 if test $ac_prog_rejected = yes; then
4151 # We found a bogon in the path, so make sure we never use it.
4152 set dummy $ac_cv_prog_CC
4153 shift
4154 if test $# != 0; then
4155 # We chose a different compiler from the bogus one.
4156 # However, it has the same basename, so the bogon will be chosen
4157 # first if we set CC to just the basename; use the full file name.
4158 shift
4159 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4160 fi
4161 fi
4162 fi ;;
4163 esac
4164 fi
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 printf "%s\n" "$CC" >&6; }
4169 else
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 printf "%s\n" "no" >&6; }
4172 fi
4173
4174
4175 fi
4176 if test -z "$CC"; then
4177 if test -n "$ac_tool_prefix"; then
4178 for ac_prog in cl.exe
4179 do
4180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 printf %s "checking for $ac_word... " >&6; }
4184 if test ${ac_cv_prog_CC+y}
4185 then :
4186 printf %s "(cached) " >&6
4187 else case e in #(
4188 e) if test -n "$CC"; then
4189 ac_cv_prog_CC="$CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 case $as_dir in #(((
4196 '') as_dir=./ ;;
4197 */) ;;
4198 *) as_dir=$as_dir/ ;;
4199 esac
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi ;;
4211 esac
4212 fi
4213 CC=$ac_cv_prog_CC
4214 if test -n "$CC"; then
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 printf "%s\n" "$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
4223 test -n "$CC" && break
4224 done
4225 fi
4226 if test -z "$CC"; then
4227 ac_ct_CC=$CC
4228 for ac_prog in cl.exe
4229 do
4230 # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 printf %s "checking for $ac_word... " >&6; }
4234 if test ${ac_cv_prog_ac_ct_CC+y}
4235 then :
4236 printf %s "(cached) " >&6
4237 else case e in #(
4238 e) if test -n "$ac_ct_CC"; then
4239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 case $as_dir in #(((
4246 '') as_dir=./ ;;
4247 */) ;;
4248 *) as_dir=$as_dir/ ;;
4249 esac
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_ac_ct_CC="$ac_prog"
4253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4254 break 2
4255 fi
4256 done
4257 done
4258 IFS=$as_save_IFS
4259
4260 fi ;;
4261 esac
4262 fi
4263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4264 if test -n "$ac_ct_CC"; then
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4266 printf "%s\n" "$ac_ct_CC" >&6; }
4267 else
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 printf "%s\n" "no" >&6; }
4270 fi
4271
4272
4273 test -n "$ac_ct_CC" && break
4274 done
4275
4276 if test "x$ac_ct_CC" = x; then
4277 CC=""
4278 else
4279 case $cross_compiling:$ac_tool_warned in
4280 yes:)
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283 ac_tool_warned=yes ;;
4284 esac
4285 CC=$ac_ct_CC
4286 fi
4287 fi
4288
4289 fi
4290 if test -z "$CC"; then
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4293 set dummy ${ac_tool_prefix}clang; ac_word=$2
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 printf %s "checking for $ac_word... " >&6; }
4296 if test ${ac_cv_prog_CC+y}
4297 then :
4298 printf %s "(cached) " >&6
4299 else case e in #(
4300 e) if test -n "$CC"; then
4301 ac_cv_prog_CC="$CC" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306 IFS=$as_save_IFS
4307 case $as_dir in #(((
4308 '') as_dir=./ ;;
4309 */) ;;
4310 *) as_dir=$as_dir/ ;;
4311 esac
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4314 ac_cv_prog_CC="${ac_tool_prefix}clang"
4315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318 done
4319 done
4320 IFS=$as_save_IFS
4321
4322 fi ;;
4323 esac
4324 fi
4325 CC=$ac_cv_prog_CC
4326 if test -n "$CC"; then
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4328 printf "%s\n" "$CC" >&6; }
4329 else
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 printf "%s\n" "no" >&6; }
4332 fi
4333
4334
4335 fi
4336 if test -z "$ac_cv_prog_CC"; then
4337 ac_ct_CC=$CC
4338 # Extract the first word of "clang", so it can be a program name with args.
4339 set dummy clang; ac_word=$2
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 printf %s "checking for $ac_word... " >&6; }
4342 if test ${ac_cv_prog_ac_ct_CC+y}
4343 then :
4344 printf %s "(cached) " >&6
4345 else case e in #(
4346 e) if test -n "$ac_ct_CC"; then
4347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 case $as_dir in #(((
4354 '') as_dir=./ ;;
4355 */) ;;
4356 *) as_dir=$as_dir/ ;;
4357 esac
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_ac_ct_CC="clang"
4361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 fi ;;
4369 esac
4370 fi
4371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4372 if test -n "$ac_ct_CC"; then
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4374 printf "%s\n" "$ac_ct_CC" >&6; }
4375 else
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 printf "%s\n" "no" >&6; }
4378 fi
4379
4380 if test "x$ac_ct_CC" = x; then
4381 CC=""
4382 else
4383 case $cross_compiling:$ac_tool_warned in
4384 yes:)
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4386 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4387 ac_tool_warned=yes ;;
4388 esac
4389 CC=$ac_ct_CC
4390 fi
4391 else
4392 CC="$ac_cv_prog_CC"
4393 fi
4394
4395 fi
4396
4397
4398 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4399 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4400 as_fn_error $? "no acceptable C compiler found in \$PATH
4401 See 'config.log' for more details" "$LINENO" 5; }
4402
4403 # Provide some information about the compiler.
4404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4405 set X $ac_compile
4406 ac_compiler=$2
4407 for ac_option in --version -v -V -qversion -version; do
4408 { { ac_try="$ac_compiler $ac_option >&5"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 printf "%s\n" "$ac_try_echo"; } >&5
4415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4416 ac_status=$?
4417 if test -s conftest.err; then
4418 sed '10a\
4419 ... rest of stderr output deleted ...
4420 10q' conftest.err >conftest.er1
4421 cat conftest.er1 >&5
4422 fi
4423 rm -f conftest.er1 conftest.err
4424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; }
4426 done
4427
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430
4431 int
4432 main (void)
4433 {
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 ac_clean_files_save=$ac_clean_files
4440 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4441 # Try to create an executable without -o first, disregard a.out.
4442 # It will help us diagnose broken compilers, and finding out an intuition
4443 # of exeext.
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4445 printf %s "checking whether the C compiler works... " >&6; }
4446 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4447
4448 # The possible output files:
4449 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4450
4451 ac_rmfiles=
4452 for ac_file in $ac_files
4453 do
4454 case $ac_file in
4455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4456 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4457 esac
4458 done
4459 rm -f $ac_rmfiles
4460
4461 if { { ac_try="$ac_link_default"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 printf "%s\n" "$ac_try_echo"; } >&5
4468 (eval "$ac_link_default") 2>&5
4469 ac_status=$?
4470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }
4472 then :
4473 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4474 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4475 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4476 # so that the user can short-circuit this test for compilers unknown to
4477 # Autoconf.
4478 for ac_file in $ac_files ''
4479 do
4480 test -f "$ac_file" || continue
4481 case $ac_file in
4482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4483 ;;
4484 [ab].out )
4485 # We found the default executable, but exeext='' is most
4486 # certainly right.
4487 break;;
4488 *.* )
4489 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4490 then :; else
4491 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4492 fi
4493 # We set ac_cv_exeext here because the later test for it is not
4494 # safe: cross compilers may not add the suffix if given an '-o'
4495 # argument, so we may need to know it at that point already.
4496 # Even if this section looks crufty: it has the advantage of
4497 # actually working.
4498 break;;
4499 * )
4500 break;;
4501 esac
4502 done
4503 test "$ac_cv_exeext" = no && ac_cv_exeext=
4504
4505 else case e in #(
4506 e) ac_file='' ;;
4507 esac
4508 fi
4509 if test -z "$ac_file"
4510 then :
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512 printf "%s\n" "no" >&6; }
4513 printf "%s\n" "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4517 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4518 as_fn_error 77 "C compiler cannot create executables
4519 See 'config.log' for more details" "$LINENO" 5; }
4520 else case e in #(
4521 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522 printf "%s\n" "yes" >&6; } ;;
4523 esac
4524 fi
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4526 printf %s "checking for C compiler default output file name... " >&6; }
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4528 printf "%s\n" "$ac_file" >&6; }
4529 ac_exeext=$ac_cv_exeext
4530
4531 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4532 ac_clean_files=$ac_clean_files_save
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4534 printf %s "checking for suffix of executables... " >&6; }
4535 if { { ac_try="$ac_link"
4536 case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541 printf "%s\n" "$ac_try_echo"; } >&5
4542 (eval "$ac_link") 2>&5
4543 ac_status=$?
4544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }
4546 then :
4547 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4548 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4549 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4550 # 'rm'.
4551 for ac_file in conftest.exe conftest conftest.*; do
4552 test -f "$ac_file" || continue
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556 break;;
4557 * ) break;;
4558 esac
4559 done
4560 else case e in #(
4561 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4562 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4563 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4564 See 'config.log' for more details" "$LINENO" 5; } ;;
4565 esac
4566 fi
4567 rm -f conftest conftest$ac_cv_exeext
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4569 printf "%s\n" "$ac_cv_exeext" >&6; }
4570
4571 rm -f conftest.$ac_ext
4572 EXEEXT=$ac_cv_exeext
4573 ac_exeext=$EXEEXT
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <stdio.h>
4577 int
4578 main (void)
4579 {
4580 FILE *f = fopen ("conftest.out", "w");
4581 if (!f)
4582 return 1;
4583 return ferror (f) || fclose (f) != 0;
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 ac_clean_files="$ac_clean_files conftest.out"
4590 # Check that the compiler produces executables we can run. If not, either
4591 # the compiler is broken, or we cross compile.
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4593 printf %s "checking whether we are cross compiling... " >&6; }
4594 if test "$cross_compiling" != yes; then
4595 { { ac_try="$ac_link"
4596 case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599 esac
4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601 printf "%s\n" "$ac_try_echo"; } >&5
4602 (eval "$ac_link") 2>&5
4603 ac_status=$?
4604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4605 test $ac_status = 0; }
4606 if { ac_try='./conftest$ac_cv_exeext'
4607 { { case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610 esac
4611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4612 printf "%s\n" "$ac_try_echo"; } >&5
4613 (eval "$ac_try") 2>&5
4614 ac_status=$?
4615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4616 test $ac_status = 0; }; }; then
4617 cross_compiling=no
4618 else
4619 if test "$cross_compiling" = maybe; then
4620 cross_compiling=yes
4621 else
4622 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4623 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4624 as_fn_error 77 "cannot run C compiled programs.
4625 If you meant to cross compile, use '--host'.
4626 See 'config.log' for more details" "$LINENO" 5; }
4627 fi
4628 fi
4629 fi
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4631 printf "%s\n" "$cross_compiling" >&6; }
4632
4633 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4634 conftest.o conftest.obj conftest.out
4635 ac_clean_files=$ac_clean_files_save
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4637 printf %s "checking for suffix of object files... " >&6; }
4638 if test ${ac_cv_objext+y}
4639 then :
4640 printf %s "(cached) " >&6
4641 else case e in #(
4642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644
4645 int
4646 main (void)
4647 {
4648
4649 ;
4650 return 0;
4651 }
4652 _ACEOF
4653 rm -f conftest.o conftest.obj
4654 if { { ac_try="$ac_compile"
4655 case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658 esac
4659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660 printf "%s\n" "$ac_try_echo"; } >&5
4661 (eval "$ac_compile") 2>&5
4662 ac_status=$?
4663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4664 test $ac_status = 0; }
4665 then :
4666 for ac_file in conftest.o conftest.obj conftest.*; do
4667 test -f "$ac_file" || continue;
4668 case $ac_file in
4669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4670 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4671 break;;
4672 esac
4673 done
4674 else case e in #(
4675 e) printf "%s\n" "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4679 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4680 as_fn_error $? "cannot compute suffix of object files: cannot compile
4681 See 'config.log' for more details" "$LINENO" 5; } ;;
4682 esac
4683 fi
4684 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4685 esac
4686 fi
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4688 printf "%s\n" "$ac_cv_objext" >&6; }
4689 OBJEXT=$ac_cv_objext
4690 ac_objext=$OBJEXT
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4692 printf %s "checking whether the compiler supports GNU C... " >&6; }
4693 if test ${ac_cv_c_compiler_gnu+y}
4694 then :
4695 printf %s "(cached) " >&6
4696 else case e in #(
4697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699
4700 int
4701 main (void)
4702 {
4703 #ifndef __GNUC__
4704 choke me
4705 #endif
4706
4707 ;
4708 return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"
4712 then :
4713 ac_compiler_gnu=yes
4714 else case e in #(
4715 e) ac_compiler_gnu=no ;;
4716 esac
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4719 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4720 ;;
4721 esac
4722 fi
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4724 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726
4727 if test $ac_compiler_gnu = yes; then
4728 GCC=yes
4729 else
4730 GCC=
4731 fi
4732 ac_test_CFLAGS=${CFLAGS+y}
4733 ac_save_CFLAGS=$CFLAGS
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4735 printf %s "checking whether $CC accepts -g... " >&6; }
4736 if test ${ac_cv_prog_cc_g+y}
4737 then :
4738 printf %s "(cached) " >&6
4739 else case e in #(
4740 e) ac_save_c_werror_flag=$ac_c_werror_flag
4741 ac_c_werror_flag=yes
4742 ac_cv_prog_cc_g=no
4743 CFLAGS="-g"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746
4747 int
4748 main (void)
4749 {
4750
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"
4756 then :
4757 ac_cv_prog_cc_g=yes
4758 else case e in #(
4759 e) CFLAGS=""
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762
4763 int
4764 main (void)
4765 {
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"
4772 then :
4773
4774 else case e in #(
4775 e) ac_c_werror_flag=$ac_save_c_werror_flag
4776 CFLAGS="-g"
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779
4780 int
4781 main (void)
4782 {
4783
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"
4789 then :
4790 ac_cv_prog_cc_g=yes
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4793 esac
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4796 esac
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4799 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4800 esac
4801 fi
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4803 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4804 if test $ac_test_CFLAGS; then
4805 CFLAGS=$ac_save_CFLAGS
4806 elif test $ac_cv_prog_cc_g = yes; then
4807 if test "$GCC" = yes; then
4808 CFLAGS="-g -O2"
4809 else
4810 CFLAGS="-g"
4811 fi
4812 else
4813 if test "$GCC" = yes; then
4814 CFLAGS="-O2"
4815 else
4816 CFLAGS=
4817 fi
4818 fi
4819 ac_prog_cc_stdc=no
4820 if test x$ac_prog_cc_stdc = xno
4821 then :
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4823 printf %s "checking for $CC option to enable C11 features... " >&6; }
4824 if test ${ac_cv_prog_cc_c11+y}
4825 then :
4826 printf %s "(cached) " >&6
4827 else case e in #(
4828 e) ac_cv_prog_cc_c11=no
4829 ac_save_CC=$CC
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 $ac_c_conftest_c11_program
4833 _ACEOF
4834 for ac_arg in '' -std=gnu11
4835 do
4836 CC="$ac_save_CC $ac_arg"
4837 if ac_fn_c_try_compile "$LINENO"
4838 then :
4839 ac_cv_prog_cc_c11=$ac_arg
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.beam
4842 test "x$ac_cv_prog_cc_c11" != "xno" && break
4843 done
4844 rm -f conftest.$ac_ext
4845 CC=$ac_save_CC ;;
4846 esac
4847 fi
4848
4849 if test "x$ac_cv_prog_cc_c11" = xno
4850 then :
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4852 printf "%s\n" "unsupported" >&6; }
4853 else case e in #(
4854 e) if test "x$ac_cv_prog_cc_c11" = x
4855 then :
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4857 printf "%s\n" "none needed" >&6; }
4858 else case e in #(
4859 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4860 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4861 CC="$CC $ac_cv_prog_cc_c11" ;;
4862 esac
4863 fi
4864 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4865 ac_prog_cc_stdc=c11 ;;
4866 esac
4867 fi
4868 fi
4869 if test x$ac_prog_cc_stdc = xno
4870 then :
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4872 printf %s "checking for $CC option to enable C99 features... " >&6; }
4873 if test ${ac_cv_prog_cc_c99+y}
4874 then :
4875 printf %s "(cached) " >&6
4876 else case e in #(
4877 e) ac_cv_prog_cc_c99=no
4878 ac_save_CC=$CC
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 $ac_c_conftest_c99_program
4882 _ACEOF
4883 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4884 do
4885 CC="$ac_save_CC $ac_arg"
4886 if ac_fn_c_try_compile "$LINENO"
4887 then :
4888 ac_cv_prog_cc_c99=$ac_arg
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.beam
4891 test "x$ac_cv_prog_cc_c99" != "xno" && break
4892 done
4893 rm -f conftest.$ac_ext
4894 CC=$ac_save_CC ;;
4895 esac
4896 fi
4897
4898 if test "x$ac_cv_prog_cc_c99" = xno
4899 then :
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4901 printf "%s\n" "unsupported" >&6; }
4902 else case e in #(
4903 e) if test "x$ac_cv_prog_cc_c99" = x
4904 then :
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4906 printf "%s\n" "none needed" >&6; }
4907 else case e in #(
4908 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4909 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4910 CC="$CC $ac_cv_prog_cc_c99" ;;
4911 esac
4912 fi
4913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4914 ac_prog_cc_stdc=c99 ;;
4915 esac
4916 fi
4917 fi
4918 if test x$ac_prog_cc_stdc = xno
4919 then :
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4921 printf %s "checking for $CC option to enable C89 features... " >&6; }
4922 if test ${ac_cv_prog_cc_c89+y}
4923 then :
4924 printf %s "(cached) " >&6
4925 else case e in #(
4926 e) ac_cv_prog_cc_c89=no
4927 ac_save_CC=$CC
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 $ac_c_conftest_c89_program
4931 _ACEOF
4932 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4933 do
4934 CC="$ac_save_CC $ac_arg"
4935 if ac_fn_c_try_compile "$LINENO"
4936 then :
4937 ac_cv_prog_cc_c89=$ac_arg
4938 fi
4939 rm -f core conftest.err conftest.$ac_objext conftest.beam
4940 test "x$ac_cv_prog_cc_c89" != "xno" && break
4941 done
4942 rm -f conftest.$ac_ext
4943 CC=$ac_save_CC ;;
4944 esac
4945 fi
4946
4947 if test "x$ac_cv_prog_cc_c89" = xno
4948 then :
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4950 printf "%s\n" "unsupported" >&6; }
4951 else case e in #(
4952 e) if test "x$ac_cv_prog_cc_c89" = x
4953 then :
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4955 printf "%s\n" "none needed" >&6; }
4956 else case e in #(
4957 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4958 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4959 CC="$CC $ac_cv_prog_cc_c89" ;;
4960 esac
4961 fi
4962 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4963 ac_prog_cc_stdc=c89 ;;
4964 esac
4965 fi
4966 fi
4967
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973
4974
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4981 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4982 if test ${am_cv_prog_cc_c_o+y}
4983 then :
4984 printf %s "(cached) " >&6
4985 else case e in #(
4986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988
4989 int
4990 main (void)
4991 {
4992
4993 ;
4994 return 0;
4995 }
4996 _ACEOF
4997 # Make sure it works both with $CC and with simple cc.
4998 # Following AC_PROG_CC_C_O, we do the test twice because some
4999 # compilers refuse to overwrite an existing .o file with -o,
5000 # though they will create one.
5001 am_cv_prog_cc_c_o=yes
5002 for am_i in 1 2; do
5003 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5004 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } \
5008 && test -f conftest2.$ac_objext; then
5009 : OK
5010 else
5011 am_cv_prog_cc_c_o=no
5012 break
5013 fi
5014 done
5015 rm -f core conftest*
5016 unset am_i ;;
5017 esac
5018 fi
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5020 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5021 if test "$am_cv_prog_cc_c_o" != yes; then
5022 # Losing compiler, so override with the script.
5023 # FIXME: It is wrong to rewrite CC.
5024 # But if we don't then we get into trouble of one sort or another.
5025 # A longer-term fix would be to have automake use am__CC in this case,
5026 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5027 CC="$am_aux_dir/compile $CC"
5028 fi
5029 ac_ext=c
5030 ac_cpp='$CPP $CPPFLAGS'
5031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035
5036 depcc="$CC" am_compiler_list=
5037
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5039 printf %s "checking dependency style of $depcc... " >&6; }
5040 if test ${am_cv_CC_dependencies_compiler_type+y}
5041 then :
5042 printf %s "(cached) " >&6
5043 else case e in #(
5044 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5045 # We make a subdir and do the tests there. Otherwise we can end up
5046 # making bogus files that we don't know about and never remove. For
5047 # instance it was reported that on HP-UX the gcc test will end up
5048 # making a dummy file named 'D' -- because '-MD' means "put the output
5049 # in D".
5050 rm -rf conftest.dir
5051 mkdir conftest.dir
5052 # Copy depcomp to subdir because otherwise we won't find it if we're
5053 # using a relative directory.
5054 cp "$am_depcomp" conftest.dir
5055 cd conftest.dir
5056 # We will build objects and dependencies in a subdirectory because
5057 # it helps to detect inapplicable dependency modes. For instance
5058 # both Tru64's cc and ICC support -MD to output dependencies as a
5059 # side effect of compilation, but ICC will put the dependencies in
5060 # the current directory while Tru64 will put them in the object
5061 # directory.
5062 mkdir sub
5063
5064 am_cv_CC_dependencies_compiler_type=none
5065 if test "$am_compiler_list" = ""; then
5066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5067 fi
5068 am__universal=false
5069 case " $depcc " in #(
5070 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5071 esac
5072
5073 for depmode in $am_compiler_list; do
5074 # Setup a source with many dependencies, because some compilers
5075 # like to wrap large dependency lists on column 80 (with \), and
5076 # we should not choose a depcomp mode which is confused by this.
5077 #
5078 # We need to recreate these files for each test, as the compiler may
5079 # overwrite some of them when testing with obscure command lines.
5080 # This happens at least with the AIX C compiler.
5081 : > sub/conftest.c
5082 for i in 1 2 3 4 5 6; do
5083 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5084 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5085 # Solaris 10 /bin/sh.
5086 echo '/* dummy */' > sub/conftst$i.h
5087 done
5088 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5089
5090 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5091 # mode. It turns out that the SunPro C++ compiler does not properly
5092 # handle '-M -o', and we need to detect this. Also, some Intel
5093 # versions had trouble with output in subdirs.
5094 am__obj=sub/conftest.${OBJEXT-o}
5095 am__minus_obj="-o $am__obj"
5096 case $depmode in
5097 gcc)
5098 # This depmode causes a compiler race in universal mode.
5099 test "$am__universal" = false || continue
5100 ;;
5101 nosideeffect)
5102 # After this tag, mechanisms are not by side-effect, so they'll
5103 # only be used when explicitly requested.
5104 if test "x$enable_dependency_tracking" = xyes; then
5105 continue
5106 else
5107 break
5108 fi
5109 ;;
5110 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5111 # This compiler won't grok '-c -o', but also, the minuso test has
5112 # not run yet. These depmodes are late enough in the game, and
5113 # so weak that their functioning should not be impacted.
5114 am__obj=conftest.${OBJEXT-o}
5115 am__minus_obj=
5116 ;;
5117 none) break ;;
5118 esac
5119 if depmode=$depmode \
5120 source=sub/conftest.c object=$am__obj \
5121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5122 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5123 >/dev/null 2>conftest.err &&
5124 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5125 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5126 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5127 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5128 # icc doesn't choke on unknown options, it will just issue warnings
5129 # or remarks (even with -Werror). So we grep stderr for any message
5130 # that says an option was ignored or not supported.
5131 # When given -MP, icc 7.0 and 7.1 complain thus:
5132 # icc: Command line warning: ignoring option '-M'; no argument required
5133 # The diagnosis changed in icc 8.0:
5134 # icc: Command line remark: option '-MP' not supported
5135 if (grep 'ignoring option' conftest.err ||
5136 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5137 am_cv_CC_dependencies_compiler_type=$depmode
5138 break
5139 fi
5140 fi
5141 done
5142
5143 cd ..
5144 rm -rf conftest.dir
5145 else
5146 am_cv_CC_dependencies_compiler_type=none
5147 fi
5148 ;;
5149 esac
5150 fi
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5152 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5153 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5154
5155 if
5156 test "x$enable_dependency_tracking" != xno \
5157 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5158 am__fastdepCC_TRUE=
5159 am__fastdepCC_FALSE='#'
5160 else
5161 am__fastdepCC_TRUE='#'
5162 am__fastdepCC_FALSE=
5163 fi
5164
5165
5166
5167 ac_header= ac_cache=
5168 for ac_item in $ac_header_c_list
5169 do
5170 if test $ac_cache; then
5171 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5172 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5173 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5174 fi
5175 ac_header= ac_cache=
5176 elif test $ac_header; then
5177 ac_cache=$ac_item
5178 else
5179 ac_header=$ac_item
5180 fi
5181 done
5182
5183
5184
5185
5186
5187
5188
5189
5190 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5191 then :
5192
5193 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5194
5195 fi
5196
5197
5198
5199
5200
5201
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5203 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5204 if test ${ac_cv_safe_to_define___extensions__+y}
5205 then :
5206 printf %s "(cached) " >&6
5207 else case e in #(
5208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5210
5211 # define __EXTENSIONS__ 1
5212 $ac_includes_default
5213 int
5214 main (void)
5215 {
5216
5217 ;
5218 return 0;
5219 }
5220 _ACEOF
5221 if ac_fn_c_try_compile "$LINENO"
5222 then :
5223 ac_cv_safe_to_define___extensions__=yes
5224 else case e in #(
5225 e) ac_cv_safe_to_define___extensions__=no ;;
5226 esac
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5229 esac
5230 fi
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5232 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5233
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5235 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5236 if test ${ac_cv_should_define__xopen_source+y}
5237 then :
5238 printf %s "(cached) " >&6
5239 else case e in #(
5240 e) ac_cv_should_define__xopen_source=no
5241 if test $ac_cv_header_wchar_h = yes
5242 then :
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245
5246 #include <wchar.h>
5247 mbstate_t x;
5248 int
5249 main (void)
5250 {
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"
5257 then :
5258
5259 else case e in #(
5260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262
5263 #define _XOPEN_SOURCE 500
5264 #include <wchar.h>
5265 mbstate_t x;
5266 int
5267 main (void)
5268 {
5269
5270 ;
5271 return 0;
5272 }
5273 _ACEOF
5274 if ac_fn_c_try_compile "$LINENO"
5275 then :
5276 ac_cv_should_define__xopen_source=yes
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5279 esac
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5282 fi ;;
5283 esac
5284 fi
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5286 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5287
5288 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5289
5290 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5291
5292 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5293
5294 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5295
5296 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5297
5298 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5299
5300 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5301
5302 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5303
5304 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5305
5306 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5307
5308 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5309
5310 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5311
5312 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5313
5314 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5315
5316 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5317
5318 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5319
5320 if test $ac_cv_header_minix_config_h = yes
5321 then :
5322 MINIX=yes
5323 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5324
5325 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5326
5327 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5328
5329 else case e in #(
5330 e) MINIX= ;;
5331 esac
5332 fi
5333 if test $ac_cv_safe_to_define___extensions__ = yes
5334 then :
5335 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5336
5337 fi
5338 if test $ac_cv_should_define__xopen_source = yes
5339 then :
5340 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5341
5342 fi
5343
5344 # Check whether --enable-largefile was given.
5345 if test ${enable_largefile+y}
5346 then :
5347 enableval=$enable_largefile;
5348 fi
5349 if test "$enable_largefile,$enable_year2038" != no,no
5350 then :
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
5352 printf %s "checking for $CPPFLAGS option for large files... " >&6; }
5353 if test ${ac_cv_sys_largefile_opts+y}
5354 then :
5355 printf %s "(cached) " >&6
5356 else case e in #(
5357 e) ac_save_CPPFLAGS=$CPPFLAGS
5358 ac_opt_found=no
5359 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
5360 if test x"$ac_opt" != x"none needed"
5361 then :
5362 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
5363 fi
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 #include <sys/types.h>
5367 #ifndef FTYPE
5368 # define FTYPE off_t
5369 #endif
5370 /* Check that FTYPE can represent 2**63 - 1 correctly.
5371 We can't simply define LARGE_FTYPE to be 9223372036854775807,
5372 since some C++ compilers masquerading as C compilers
5373 incorrectly reject 9223372036854775807. */
5374 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
5375 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
5376 && LARGE_FTYPE % 2147483647 == 1)
5377 ? 1 : -1];
5378 int
5379 main (void)
5380 {
5381
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"
5387 then :
5388 if test x"$ac_opt" = x"none needed"
5389 then :
5390 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
5391 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
5392 if ac_fn_c_try_compile "$LINENO"
5393 then :
5394
5395 else case e in #(
5396 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
5397 if ac_fn_c_try_compile "$LINENO"
5398 then :
5399 ac_opt='-D_FILE_OFFSET_BITS=64'
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
5402 esac
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.beam
5405 fi
5406 ac_cv_sys_largefile_opts=$ac_opt
5407 ac_opt_found=yes
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5410 test $ac_opt_found = no || break
5411 done
5412 CPPFLAGS=$ac_save_CPPFLAGS
5413
5414 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
5415 esac
5416 fi
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
5418 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
5419
5420 ac_have_largefile=yes
5421 case $ac_cv_sys_largefile_opts in #(
5422 "none needed") :
5423 ;; #(
5424 "supported through gnulib") :
5425 ;; #(
5426 "support not detected") :
5427 ac_have_largefile=no ;; #(
5428 "-D_FILE_OFFSET_BITS=64") :
5429
5430 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
5431 ;; #(
5432 "-D_LARGE_FILES=1") :
5433
5434 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
5435 ;; #(
5436 *) :
5437 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
5438 esac
5439
5440 if test "$enable_year2038" != no
5441 then :
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
5443 printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
5444 if test ${ac_cv_sys_year2038_opts+y}
5445 then :
5446 printf %s "(cached) " >&6
5447 else case e in #(
5448 e) ac_save_CPPFLAGS="$CPPFLAGS"
5449 ac_opt_found=no
5450 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
5451 if test x"$ac_opt" != x"none needed"
5452 then :
5453 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
5454 fi
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457
5458 #include <time.h>
5459 /* Check that time_t can represent 2**32 - 1 correctly. */
5460 #define LARGE_TIME_T \\
5461 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
5462 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
5463 && LARGE_TIME_T % 65537 == 0)
5464 ? 1 : -1];
5465
5466 int
5467 main (void)
5468 {
5469
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"
5475 then :
5476 ac_cv_sys_year2038_opts="$ac_opt"
5477 ac_opt_found=yes
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5480 test $ac_opt_found = no || break
5481 done
5482 CPPFLAGS="$ac_save_CPPFLAGS"
5483 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
5484 esac
5485 fi
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
5487 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
5488
5489 ac_have_year2038=yes
5490 case $ac_cv_sys_year2038_opts in #(
5491 "none needed") :
5492 ;; #(
5493 "support not detected") :
5494 ac_have_year2038=no ;; #(
5495 "-D_TIME_BITS=64") :
5496
5497 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
5498 ;; #(
5499 "-D__MINGW_USE_VC2005_COMPAT") :
5500
5501 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
5502 ;; #(
5503 "-U_USE_32_BIT_TIME_T"*) :
5504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5505 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5506 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
5507 will stop working after mid-January 2038. Remove
5508 _USE_32BIT_TIME_T from the compiler flags.
5509 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5510 *) :
5511 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
5512 esac
5513
5514 fi
5515
5516 fi
5517 for ac_prog in gawk mawk nawk awk
5518 do
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 printf %s "checking for $ac_word... " >&6; }
5523 if test ${ac_cv_prog_AWK+y}
5524 then :
5525 printf %s "(cached) " >&6
5526 else case e in #(
5527 e) if test -n "$AWK"; then
5528 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5529 else
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533 IFS=$as_save_IFS
5534 case $as_dir in #(((
5535 '') as_dir=./ ;;
5536 */) ;;
5537 *) as_dir=$as_dir/ ;;
5538 esac
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_AWK="$ac_prog"
5542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545 done
5546 done
5547 IFS=$as_save_IFS
5548
5549 fi ;;
5550 esac
5551 fi
5552 AWK=$ac_cv_prog_AWK
5553 if test -n "$AWK"; then
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5555 printf "%s\n" "$AWK" >&6; }
5556 else
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 printf "%s\n" "no" >&6; }
5559 fi
5560
5561
5562 test -n "$AWK" && break
5563 done
5564
5565 ac_ext=c
5566 ac_cpp='$CPP $CPPFLAGS'
5567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570 if test -n "$ac_tool_prefix"; then
5571 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 printf %s "checking for $ac_word... " >&6; }
5575 if test ${ac_cv_prog_CC+y}
5576 then :
5577 printf %s "(cached) " >&6
5578 else case e in #(
5579 e) if test -n "$CC"; then
5580 ac_cv_prog_CC="$CC" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585 IFS=$as_save_IFS
5586 case $as_dir in #(((
5587 '') as_dir=./ ;;
5588 */) ;;
5589 *) as_dir=$as_dir/ ;;
5590 esac
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597 done
5598 done
5599 IFS=$as_save_IFS
5600
5601 fi ;;
5602 esac
5603 fi
5604 CC=$ac_cv_prog_CC
5605 if test -n "$CC"; then
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5607 printf "%s\n" "$CC" >&6; }
5608 else
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 printf "%s\n" "no" >&6; }
5611 fi
5612
5613
5614 fi
5615 if test -z "$ac_cv_prog_CC"; then
5616 ac_ct_CC=$CC
5617 # Extract the first word of "gcc", so it can be a program name with args.
5618 set dummy gcc; ac_word=$2
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 printf %s "checking for $ac_word... " >&6; }
5621 if test ${ac_cv_prog_ac_ct_CC+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else case e in #(
5625 e) if test -n "$ac_ct_CC"; then
5626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631 IFS=$as_save_IFS
5632 case $as_dir in #(((
5633 '') as_dir=./ ;;
5634 */) ;;
5635 *) as_dir=$as_dir/ ;;
5636 esac
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_ac_ct_CC="gcc"
5640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643 done
5644 done
5645 IFS=$as_save_IFS
5646
5647 fi ;;
5648 esac
5649 fi
5650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5651 if test -n "$ac_ct_CC"; then
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5653 printf "%s\n" "$ac_ct_CC" >&6; }
5654 else
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 printf "%s\n" "no" >&6; }
5657 fi
5658
5659 if test "x$ac_ct_CC" = x; then
5660 CC=""
5661 else
5662 case $cross_compiling:$ac_tool_warned in
5663 yes:)
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned=yes ;;
5667 esac
5668 CC=$ac_ct_CC
5669 fi
5670 else
5671 CC="$ac_cv_prog_CC"
5672 fi
5673
5674 if test -z "$CC"; then
5675 if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}cc; ac_word=$2
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 printf %s "checking for $ac_word... " >&6; }
5680 if test ${ac_cv_prog_CC+y}
5681 then :
5682 printf %s "(cached) " >&6
5683 else case e in #(
5684 e) if test -n "$CC"; then
5685 ac_cv_prog_CC="$CC" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690 IFS=$as_save_IFS
5691 case $as_dir in #(((
5692 '') as_dir=./ ;;
5693 */) ;;
5694 *) as_dir=$as_dir/ ;;
5695 esac
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_CC="${ac_tool_prefix}cc"
5699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5700 break 2
5701 fi
5702 done
5703 done
5704 IFS=$as_save_IFS
5705
5706 fi ;;
5707 esac
5708 fi
5709 CC=$ac_cv_prog_CC
5710 if test -n "$CC"; then
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5712 printf "%s\n" "$CC" >&6; }
5713 else
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 printf "%s\n" "no" >&6; }
5716 fi
5717
5718
5719 fi
5720 fi
5721 if test -z "$CC"; then
5722 # Extract the first word of "cc", so it can be a program name with args.
5723 set dummy cc; ac_word=$2
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 printf %s "checking for $ac_word... " >&6; }
5726 if test ${ac_cv_prog_CC+y}
5727 then :
5728 printf %s "(cached) " >&6
5729 else case e in #(
5730 e) if test -n "$CC"; then
5731 ac_cv_prog_CC="$CC" # Let the user override the test.
5732 else
5733 ac_prog_rejected=no
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 case $as_dir in #(((
5739 '') as_dir=./ ;;
5740 */) ;;
5741 *) as_dir=$as_dir/ ;;
5742 esac
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5745 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5746 ac_prog_rejected=yes
5747 continue
5748 fi
5749 ac_cv_prog_CC="cc"
5750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753 done
5754 done
5755 IFS=$as_save_IFS
5756
5757 if test $ac_prog_rejected = yes; then
5758 # We found a bogon in the path, so make sure we never use it.
5759 set dummy $ac_cv_prog_CC
5760 shift
5761 if test $# != 0; then
5762 # We chose a different compiler from the bogus one.
5763 # However, it has the same basename, so the bogon will be chosen
5764 # first if we set CC to just the basename; use the full file name.
5765 shift
5766 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5767 fi
5768 fi
5769 fi ;;
5770 esac
5771 fi
5772 CC=$ac_cv_prog_CC
5773 if test -n "$CC"; then
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5775 printf "%s\n" "$CC" >&6; }
5776 else
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 printf "%s\n" "no" >&6; }
5779 fi
5780
5781
5782 fi
5783 if test -z "$CC"; then
5784 if test -n "$ac_tool_prefix"; then
5785 for ac_prog in cl.exe
5786 do
5787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 printf %s "checking for $ac_word... " >&6; }
5791 if test ${ac_cv_prog_CC+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else case e in #(
5795 e) if test -n "$CC"; then
5796 ac_cv_prog_CC="$CC" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801 IFS=$as_save_IFS
5802 case $as_dir in #(((
5803 '') as_dir=./ ;;
5804 */) ;;
5805 *) as_dir=$as_dir/ ;;
5806 esac
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi ;;
5818 esac
5819 fi
5820 CC=$ac_cv_prog_CC
5821 if test -n "$CC"; then
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5823 printf "%s\n" "$CC" >&6; }
5824 else
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 printf "%s\n" "no" >&6; }
5827 fi
5828
5829
5830 test -n "$CC" && break
5831 done
5832 fi
5833 if test -z "$CC"; then
5834 ac_ct_CC=$CC
5835 for ac_prog in cl.exe
5836 do
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 printf %s "checking for $ac_word... " >&6; }
5841 if test ${ac_cv_prog_ac_ct_CC+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else case e in #(
5845 e) if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 case $as_dir in #(((
5853 '') as_dir=./ ;;
5854 */) ;;
5855 *) as_dir=$as_dir/ ;;
5856 esac
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_ac_ct_CC="$ac_prog"
5860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863 done
5864 done
5865 IFS=$as_save_IFS
5866
5867 fi ;;
5868 esac
5869 fi
5870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5871 if test -n "$ac_ct_CC"; then
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5873 printf "%s\n" "$ac_ct_CC" >&6; }
5874 else
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 printf "%s\n" "no" >&6; }
5877 fi
5878
5879
5880 test -n "$ac_ct_CC" && break
5881 done
5882
5883 if test "x$ac_ct_CC" = x; then
5884 CC=""
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892 CC=$ac_ct_CC
5893 fi
5894 fi
5895
5896 fi
5897 if test -z "$CC"; then
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}clang; ac_word=$2
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 printf %s "checking for $ac_word... " >&6; }
5903 if test ${ac_cv_prog_CC+y}
5904 then :
5905 printf %s "(cached) " >&6
5906 else case e in #(
5907 e) if test -n "$CC"; then
5908 ac_cv_prog_CC="$CC" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913 IFS=$as_save_IFS
5914 case $as_dir in #(((
5915 '') as_dir=./ ;;
5916 */) ;;
5917 *) as_dir=$as_dir/ ;;
5918 esac
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_CC="${ac_tool_prefix}clang"
5922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi ;;
5930 esac
5931 fi
5932 CC=$ac_cv_prog_CC
5933 if test -n "$CC"; then
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5935 printf "%s\n" "$CC" >&6; }
5936 else
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 printf "%s\n" "no" >&6; }
5939 fi
5940
5941
5942 fi
5943 if test -z "$ac_cv_prog_CC"; then
5944 ac_ct_CC=$CC
5945 # Extract the first word of "clang", so it can be a program name with args.
5946 set dummy clang; ac_word=$2
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 printf %s "checking for $ac_word... " >&6; }
5949 if test ${ac_cv_prog_ac_ct_CC+y}
5950 then :
5951 printf %s "(cached) " >&6
5952 else case e in #(
5953 e) if test -n "$ac_ct_CC"; then
5954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 case $as_dir in #(((
5961 '') as_dir=./ ;;
5962 */) ;;
5963 *) as_dir=$as_dir/ ;;
5964 esac
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_ac_ct_CC="clang"
5968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi ;;
5976 esac
5977 fi
5978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5979 if test -n "$ac_ct_CC"; then
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5981 printf "%s\n" "$ac_ct_CC" >&6; }
5982 else
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 printf "%s\n" "no" >&6; }
5985 fi
5986
5987 if test "x$ac_ct_CC" = x; then
5988 CC=""
5989 else
5990 case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996 CC=$ac_ct_CC
5997 fi
5998 else
5999 CC="$ac_cv_prog_CC"
6000 fi
6001
6002 fi
6003
6004
6005 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6006 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6007 as_fn_error $? "no acceptable C compiler found in \$PATH
6008 See 'config.log' for more details" "$LINENO" 5; }
6009
6010 # Provide some information about the compiler.
6011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6012 set X $ac_compile
6013 ac_compiler=$2
6014 for ac_option in --version -v -V -qversion -version; do
6015 { { ac_try="$ac_compiler $ac_option >&5"
6016 case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019 esac
6020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6021 printf "%s\n" "$ac_try_echo"; } >&5
6022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6023 ac_status=$?
6024 if test -s conftest.err; then
6025 sed '10a\
6026 ... rest of stderr output deleted ...
6027 10q' conftest.err >conftest.er1
6028 cat conftest.er1 >&5
6029 fi
6030 rm -f conftest.er1 conftest.err
6031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032 test $ac_status = 0; }
6033 done
6034
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6036 printf %s "checking whether the compiler supports GNU C... " >&6; }
6037 if test ${ac_cv_c_compiler_gnu+y}
6038 then :
6039 printf %s "(cached) " >&6
6040 else case e in #(
6041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043
6044 int
6045 main (void)
6046 {
6047 #ifndef __GNUC__
6048 choke me
6049 #endif
6050
6051 ;
6052 return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"
6056 then :
6057 ac_compiler_gnu=yes
6058 else case e in #(
6059 e) ac_compiler_gnu=no ;;
6060 esac
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6064 ;;
6065 esac
6066 fi
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6068 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070
6071 if test $ac_compiler_gnu = yes; then
6072 GCC=yes
6073 else
6074 GCC=
6075 fi
6076 ac_test_CFLAGS=${CFLAGS+y}
6077 ac_save_CFLAGS=$CFLAGS
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6079 printf %s "checking whether $CC accepts -g... " >&6; }
6080 if test ${ac_cv_prog_cc_g+y}
6081 then :
6082 printf %s "(cached) " >&6
6083 else case e in #(
6084 e) ac_save_c_werror_flag=$ac_c_werror_flag
6085 ac_c_werror_flag=yes
6086 ac_cv_prog_cc_g=no
6087 CFLAGS="-g"
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090
6091 int
6092 main (void)
6093 {
6094
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 if ac_fn_c_try_compile "$LINENO"
6100 then :
6101 ac_cv_prog_cc_g=yes
6102 else case e in #(
6103 e) CFLAGS=""
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106
6107 int
6108 main (void)
6109 {
6110
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 if ac_fn_c_try_compile "$LINENO"
6116 then :
6117
6118 else case e in #(
6119 e) ac_c_werror_flag=$ac_save_c_werror_flag
6120 CFLAGS="-g"
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123
6124 int
6125 main (void)
6126 {
6127
6128 ;
6129 return 0;
6130 }
6131 _ACEOF
6132 if ac_fn_c_try_compile "$LINENO"
6133 then :
6134 ac_cv_prog_cc_g=yes
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6137 esac
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6140 esac
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6144 esac
6145 fi
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6147 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6148 if test $ac_test_CFLAGS; then
6149 CFLAGS=$ac_save_CFLAGS
6150 elif test $ac_cv_prog_cc_g = yes; then
6151 if test "$GCC" = yes; then
6152 CFLAGS="-g -O2"
6153 else
6154 CFLAGS="-g"
6155 fi
6156 else
6157 if test "$GCC" = yes; then
6158 CFLAGS="-O2"
6159 else
6160 CFLAGS=
6161 fi
6162 fi
6163 ac_prog_cc_stdc=no
6164 if test x$ac_prog_cc_stdc = xno
6165 then :
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6167 printf %s "checking for $CC option to enable C11 features... " >&6; }
6168 if test ${ac_cv_prog_cc_c11+y}
6169 then :
6170 printf %s "(cached) " >&6
6171 else case e in #(
6172 e) ac_cv_prog_cc_c11=no
6173 ac_save_CC=$CC
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6176 $ac_c_conftest_c11_program
6177 _ACEOF
6178 for ac_arg in '' -std=gnu11
6179 do
6180 CC="$ac_save_CC $ac_arg"
6181 if ac_fn_c_try_compile "$LINENO"
6182 then :
6183 ac_cv_prog_cc_c11=$ac_arg
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext conftest.beam
6186 test "x$ac_cv_prog_cc_c11" != "xno" && break
6187 done
6188 rm -f conftest.$ac_ext
6189 CC=$ac_save_CC ;;
6190 esac
6191 fi
6192
6193 if test "x$ac_cv_prog_cc_c11" = xno
6194 then :
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6196 printf "%s\n" "unsupported" >&6; }
6197 else case e in #(
6198 e) if test "x$ac_cv_prog_cc_c11" = x
6199 then :
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6201 printf "%s\n" "none needed" >&6; }
6202 else case e in #(
6203 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6204 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6205 CC="$CC $ac_cv_prog_cc_c11" ;;
6206 esac
6207 fi
6208 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6209 ac_prog_cc_stdc=c11 ;;
6210 esac
6211 fi
6212 fi
6213 if test x$ac_prog_cc_stdc = xno
6214 then :
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6216 printf %s "checking for $CC option to enable C99 features... " >&6; }
6217 if test ${ac_cv_prog_cc_c99+y}
6218 then :
6219 printf %s "(cached) " >&6
6220 else case e in #(
6221 e) ac_cv_prog_cc_c99=no
6222 ac_save_CC=$CC
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 $ac_c_conftest_c99_program
6226 _ACEOF
6227 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6228 do
6229 CC="$ac_save_CC $ac_arg"
6230 if ac_fn_c_try_compile "$LINENO"
6231 then :
6232 ac_cv_prog_cc_c99=$ac_arg
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.beam
6235 test "x$ac_cv_prog_cc_c99" != "xno" && break
6236 done
6237 rm -f conftest.$ac_ext
6238 CC=$ac_save_CC ;;
6239 esac
6240 fi
6241
6242 if test "x$ac_cv_prog_cc_c99" = xno
6243 then :
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6245 printf "%s\n" "unsupported" >&6; }
6246 else case e in #(
6247 e) if test "x$ac_cv_prog_cc_c99" = x
6248 then :
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6250 printf "%s\n" "none needed" >&6; }
6251 else case e in #(
6252 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6253 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6254 CC="$CC $ac_cv_prog_cc_c99" ;;
6255 esac
6256 fi
6257 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6258 ac_prog_cc_stdc=c99 ;;
6259 esac
6260 fi
6261 fi
6262 if test x$ac_prog_cc_stdc = xno
6263 then :
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6265 printf %s "checking for $CC option to enable C89 features... " >&6; }
6266 if test ${ac_cv_prog_cc_c89+y}
6267 then :
6268 printf %s "(cached) " >&6
6269 else case e in #(
6270 e) ac_cv_prog_cc_c89=no
6271 ac_save_CC=$CC
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 $ac_c_conftest_c89_program
6275 _ACEOF
6276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6277 do
6278 CC="$ac_save_CC $ac_arg"
6279 if ac_fn_c_try_compile "$LINENO"
6280 then :
6281 ac_cv_prog_cc_c89=$ac_arg
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.beam
6284 test "x$ac_cv_prog_cc_c89" != "xno" && break
6285 done
6286 rm -f conftest.$ac_ext
6287 CC=$ac_save_CC ;;
6288 esac
6289 fi
6290
6291 if test "x$ac_cv_prog_cc_c89" = xno
6292 then :
6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6294 printf "%s\n" "unsupported" >&6; }
6295 else case e in #(
6296 e) if test "x$ac_cv_prog_cc_c89" = x
6297 then :
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6299 printf "%s\n" "none needed" >&6; }
6300 else case e in #(
6301 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6302 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6303 CC="$CC $ac_cv_prog_cc_c89" ;;
6304 esac
6305 fi
6306 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6307 ac_prog_cc_stdc=c89 ;;
6308 esac
6309 fi
6310 fi
6311
6312 ac_ext=c
6313 ac_cpp='$CPP $CPPFLAGS'
6314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6317
6318
6319 ac_ext=c
6320 ac_cpp='$CPP $CPPFLAGS'
6321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6325 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6326 if test ${am_cv_prog_cc_c_o+y}
6327 then :
6328 printf %s "(cached) " >&6
6329 else case e in #(
6330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332
6333 int
6334 main (void)
6335 {
6336
6337 ;
6338 return 0;
6339 }
6340 _ACEOF
6341 # Make sure it works both with $CC and with simple cc.
6342 # Following AC_PROG_CC_C_O, we do the test twice because some
6343 # compilers refuse to overwrite an existing .o file with -o,
6344 # though they will create one.
6345 am_cv_prog_cc_c_o=yes
6346 for am_i in 1 2; do
6347 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6348 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } \
6352 && test -f conftest2.$ac_objext; then
6353 : OK
6354 else
6355 am_cv_prog_cc_c_o=no
6356 break
6357 fi
6358 done
6359 rm -f core conftest*
6360 unset am_i ;;
6361 esac
6362 fi
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6364 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6365 if test "$am_cv_prog_cc_c_o" != yes; then
6366 # Losing compiler, so override with the script.
6367 # FIXME: It is wrong to rewrite CC.
6368 # But if we don't then we get into trouble of one sort or another.
6369 # A longer-term fix would be to have automake use am__CC in this case,
6370 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6371 CC="$am_aux_dir/compile $CC"
6372 fi
6373 ac_ext=c
6374 ac_cpp='$CPP $CPPFLAGS'
6375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378
6379
6380 depcc="$CC" am_compiler_list=
6381
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6383 printf %s "checking dependency style of $depcc... " >&6; }
6384 if test ${am_cv_CC_dependencies_compiler_type+y}
6385 then :
6386 printf %s "(cached) " >&6
6387 else case e in #(
6388 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6389 # We make a subdir and do the tests there. Otherwise we can end up
6390 # making bogus files that we don't know about and never remove. For
6391 # instance it was reported that on HP-UX the gcc test will end up
6392 # making a dummy file named 'D' -- because '-MD' means "put the output
6393 # in D".
6394 rm -rf conftest.dir
6395 mkdir conftest.dir
6396 # Copy depcomp to subdir because otherwise we won't find it if we're
6397 # using a relative directory.
6398 cp "$am_depcomp" conftest.dir
6399 cd conftest.dir
6400 # We will build objects and dependencies in a subdirectory because
6401 # it helps to detect inapplicable dependency modes. For instance
6402 # both Tru64's cc and ICC support -MD to output dependencies as a
6403 # side effect of compilation, but ICC will put the dependencies in
6404 # the current directory while Tru64 will put them in the object
6405 # directory.
6406 mkdir sub
6407
6408 am_cv_CC_dependencies_compiler_type=none
6409 if test "$am_compiler_list" = ""; then
6410 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6411 fi
6412 am__universal=false
6413 case " $depcc " in #(
6414 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6415 esac
6416
6417 for depmode in $am_compiler_list; do
6418 # Setup a source with many dependencies, because some compilers
6419 # like to wrap large dependency lists on column 80 (with \), and
6420 # we should not choose a depcomp mode which is confused by this.
6421 #
6422 # We need to recreate these files for each test, as the compiler may
6423 # overwrite some of them when testing with obscure command lines.
6424 # This happens at least with the AIX C compiler.
6425 : > sub/conftest.c
6426 for i in 1 2 3 4 5 6; do
6427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6428 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6429 # Solaris 10 /bin/sh.
6430 echo '/* dummy */' > sub/conftst$i.h
6431 done
6432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6433
6434 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6435 # mode. It turns out that the SunPro C++ compiler does not properly
6436 # handle '-M -o', and we need to detect this. Also, some Intel
6437 # versions had trouble with output in subdirs.
6438 am__obj=sub/conftest.${OBJEXT-o}
6439 am__minus_obj="-o $am__obj"
6440 case $depmode in
6441 gcc)
6442 # This depmode causes a compiler race in universal mode.
6443 test "$am__universal" = false || continue
6444 ;;
6445 nosideeffect)
6446 # After this tag, mechanisms are not by side-effect, so they'll
6447 # only be used when explicitly requested.
6448 if test "x$enable_dependency_tracking" = xyes; then
6449 continue
6450 else
6451 break
6452 fi
6453 ;;
6454 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6455 # This compiler won't grok '-c -o', but also, the minuso test has
6456 # not run yet. These depmodes are late enough in the game, and
6457 # so weak that their functioning should not be impacted.
6458 am__obj=conftest.${OBJEXT-o}
6459 am__minus_obj=
6460 ;;
6461 none) break ;;
6462 esac
6463 if depmode=$depmode \
6464 source=sub/conftest.c object=$am__obj \
6465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6466 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6467 >/dev/null 2>conftest.err &&
6468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6470 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6472 # icc doesn't choke on unknown options, it will just issue warnings
6473 # or remarks (even with -Werror). So we grep stderr for any message
6474 # that says an option was ignored or not supported.
6475 # When given -MP, icc 7.0 and 7.1 complain thus:
6476 # icc: Command line warning: ignoring option '-M'; no argument required
6477 # The diagnosis changed in icc 8.0:
6478 # icc: Command line remark: option '-MP' not supported
6479 if (grep 'ignoring option' conftest.err ||
6480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6481 am_cv_CC_dependencies_compiler_type=$depmode
6482 break
6483 fi
6484 fi
6485 done
6486
6487 cd ..
6488 rm -rf conftest.dir
6489 else
6490 am_cv_CC_dependencies_compiler_type=none
6491 fi
6492 ;;
6493 esac
6494 fi
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6496 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6497 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6498
6499 if
6500 test "x$enable_dependency_tracking" != xno \
6501 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6502 am__fastdepCC_TRUE=
6503 am__fastdepCC_FALSE='#'
6504 else
6505 am__fastdepCC_TRUE='#'
6506 am__fastdepCC_FALSE=
6507 fi
6508
6509
6510
6511 if test "$cross_compiling" = no; then
6512 if test "x$ac_cv_prog_cc_c99" = "xno" || test "x$ac_cv_prog_cc_c99" = "x"; then
6513 # We might be on RHEL5 with a git checkout and so broken
6514 # autoconf. Check if CC is gcc and if it bails when given -std=gnu99.
6515 # If not, use that. Yuck.
6516 if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
6517 CC="$CC -std=gnu99"
6518 if test "$cross_compiling" = yes
6519 then :
6520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6521 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6522 as_fn_error $? "cannot run test program while cross compiling
6523 See 'config.log' for more details" "$LINENO" 5; }
6524 else case e in #(
6525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527
6528 int
6529 main (void)
6530 {
6531
6532 return 0;
6533
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_run "$LINENO"
6539 then :
6540
6541 else case e in #(
6542 e) as_fn_error $? "Could not find a C99 compatible compiler" "$LINENO" 5 ;;
6543 esac
6544 fi
6545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6546 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6547 esac
6548 fi
6549
6550 else
6551 as_fn_error $? "Could not find a C99 compatible compiler" "$LINENO" 5
6552 fi
6553 fi
6554 fi
6555
6556 ac_ext=c
6557 ac_cpp='$CPP $CPPFLAGS'
6558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6562 printf %s "checking how to run the C preprocessor... " >&6; }
6563 # On Suns, sometimes $CPP names a directory.
6564 if test -n "$CPP" && test -d "$CPP"; then
6565 CPP=
6566 fi
6567 if test -z "$CPP"; then
6568 if test ${ac_cv_prog_CPP+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else case e in #(
6572 e) # Double quotes because $CC needs to be expanded
6573 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6574 do
6575 ac_preproc_ok=false
6576 for ac_c_preproc_warn_flag in '' yes
6577 do
6578 # Use a header file that comes with gcc, so configuring glibc
6579 # with a fresh cross-compiler works.
6580 # On the NeXT, cc -E runs the code through the compiler's parser,
6581 # not just through cpp. "Syntax error" is here to catch this case.
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 #include <limits.h>
6585 Syntax error
6586 _ACEOF
6587 if ac_fn_c_try_cpp "$LINENO"
6588 then :
6589
6590 else case e in #(
6591 e) # Broken: fails on valid input.
6592 continue ;;
6593 esac
6594 fi
6595 rm -f conftest.err conftest.i conftest.$ac_ext
6596
6597 # OK, works on sane cases. Now check whether nonexistent headers
6598 # can be detected and how.
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 #include <ac_nonexistent.h>
6602 _ACEOF
6603 if ac_fn_c_try_cpp "$LINENO"
6604 then :
6605 # Broken: success on invalid input.
6606 continue
6607 else case e in #(
6608 e) # Passes both tests.
6609 ac_preproc_ok=:
6610 break ;;
6611 esac
6612 fi
6613 rm -f conftest.err conftest.i conftest.$ac_ext
6614
6615 done
6616 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6617 rm -f conftest.i conftest.err conftest.$ac_ext
6618 if $ac_preproc_ok
6619 then :
6620 break
6621 fi
6622
6623 done
6624 ac_cv_prog_CPP=$CPP
6625 ;;
6626 esac
6627 fi
6628 CPP=$ac_cv_prog_CPP
6629 else
6630 ac_cv_prog_CPP=$CPP
6631 fi
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6633 printf "%s\n" "$CPP" >&6; }
6634 ac_preproc_ok=false
6635 for ac_c_preproc_warn_flag in '' yes
6636 do
6637 # Use a header file that comes with gcc, so configuring glibc
6638 # with a fresh cross-compiler works.
6639 # On the NeXT, cc -E runs the code through the compiler's parser,
6640 # not just through cpp. "Syntax error" is here to catch this case.
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #include <limits.h>
6644 Syntax error
6645 _ACEOF
6646 if ac_fn_c_try_cpp "$LINENO"
6647 then :
6648
6649 else case e in #(
6650 e) # Broken: fails on valid input.
6651 continue ;;
6652 esac
6653 fi
6654 rm -f conftest.err conftest.i conftest.$ac_ext
6655
6656 # OK, works on sane cases. Now check whether nonexistent headers
6657 # can be detected and how.
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 #include <ac_nonexistent.h>
6661 _ACEOF
6662 if ac_fn_c_try_cpp "$LINENO"
6663 then :
6664 # Broken: success on invalid input.
6665 continue
6666 else case e in #(
6667 e) # Passes both tests.
6668 ac_preproc_ok=:
6669 break ;;
6670 esac
6671 fi
6672 rm -f conftest.err conftest.i conftest.$ac_ext
6673
6674 done
6675 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6676 rm -f conftest.i conftest.err conftest.$ac_ext
6677 if $ac_preproc_ok
6678 then :
6679
6680 else case e in #(
6681 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6682 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6683 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6684 See 'config.log' for more details" "$LINENO" 5; } ;;
6685 esac
6686 fi
6687
6688 ac_ext=c
6689 ac_cpp='$CPP $CPPFLAGS'
6690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6693
6694
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6696 printf %s "checking whether ln -s works... " >&6; }
6697 LN_S=$as_ln_s
6698 if test "$LN_S" = "ln -s"; then
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6700 printf "%s\n" "yes" >&6; }
6701 else
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6703 printf "%s\n" "no, using $LN_S" >&6; }
6704 fi
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 printf %s "checking for $ac_word... " >&6; }
6721 if test ${ac_cv_path_PKG_CONFIG+y}
6722 then :
6723 printf %s "(cached) " >&6
6724 else case e in #(
6725 e) case $PKG_CONFIG in
6726 [\\/]* | ?:[\\/]*)
6727 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6728 ;;
6729 *)
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733 IFS=$as_save_IFS
6734 case $as_dir in #(((
6735 '') as_dir=./ ;;
6736 */) ;;
6737 *) as_dir=$as_dir/ ;;
6738 esac
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6741 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749 ;;
6750 esac ;;
6751 esac
6752 fi
6753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6754 if test -n "$PKG_CONFIG"; then
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6756 printf "%s\n" "$PKG_CONFIG" >&6; }
6757 else
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 printf "%s\n" "no" >&6; }
6760 fi
6761
6762
6763 fi
6764 if test -z "$ac_cv_path_PKG_CONFIG"; then
6765 ac_pt_PKG_CONFIG=$PKG_CONFIG
6766 # Extract the first word of "pkg-config", so it can be a program name with args.
6767 set dummy pkg-config; ac_word=$2
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 printf %s "checking for $ac_word... " >&6; }
6770 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6771 then :
6772 printf %s "(cached) " >&6
6773 else case e in #(
6774 e) case $ac_pt_PKG_CONFIG in
6775 [\\/]* | ?:[\\/]*)
6776 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6777 ;;
6778 *)
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 case $as_dir in #(((
6784 '') as_dir=./ ;;
6785 */) ;;
6786 *) as_dir=$as_dir/ ;;
6787 esac
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6790 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 ;;
6799 esac ;;
6800 esac
6801 fi
6802 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6803 if test -n "$ac_pt_PKG_CONFIG"; then
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6805 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6806 else
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 printf "%s\n" "no" >&6; }
6809 fi
6810
6811 if test "x$ac_pt_PKG_CONFIG" = x; then
6812 PKG_CONFIG=""
6813 else
6814 case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818 ac_tool_warned=yes ;;
6819 esac
6820 PKG_CONFIG=$ac_pt_PKG_CONFIG
6821 fi
6822 else
6823 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6824 fi
6825
6826 fi
6827 if test -n "$PKG_CONFIG"; then
6828 _pkg_min_version=0.9.0
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6830 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6831 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6833 printf "%s\n" "yes" >&6; }
6834 else
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 printf "%s\n" "no" >&6; }
6837 PKG_CONFIG=""
6838 fi
6839 fi
6840 if test -z "$PKG_CONFIG"
6841 then :
6842
6843 as_fn_error $? "Could not find pkg-config" "$LINENO" 5
6844 fi
6845
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6847 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6848 set x ${MAKE-make}
6849 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6850 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6851 then :
6852 printf %s "(cached) " >&6
6853 else case e in #(
6854 e) cat >conftest.make <<\_ACEOF
6855 SHELL = /bin/sh
6856 all:
6857 @echo '@@@%%%=$(MAKE)=@@@%%%'
6858 _ACEOF
6859 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6860 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6861 *@@@%%%=?*=@@@%%%*)
6862 eval ac_cv_prog_make_${ac_make}_set=yes;;
6863 *)
6864 eval ac_cv_prog_make_${ac_make}_set=no;;
6865 esac
6866 rm -f conftest.make ;;
6867 esac
6868 fi
6869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6871 printf "%s\n" "yes" >&6; }
6872 SET_MAKE=
6873 else
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 printf "%s\n" "no" >&6; }
6876 SET_MAKE="MAKE=${MAKE-make}"
6877 fi
6878
6879
6880
6881
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6883 printf %s "checking whether NLS is requested... " >&6; }
6884 # Check whether --enable-nls was given.
6885 if test ${enable_nls+y}
6886 then :
6887 enableval=$enable_nls; USE_NLS=$enableval
6888 else case e in #(
6889 e) USE_NLS=yes ;;
6890 esac
6891 fi
6892
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6894 printf "%s\n" "$USE_NLS" >&6; }
6895
6896
6897
6898
6899 for ac_prog in po4a
6900 do
6901 # Extract the first word of "$ac_prog", so it can be a program name with args.
6902 set dummy $ac_prog; ac_word=$2
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 printf %s "checking for $ac_word... " >&6; }
6905 if test ${ac_cv_prog_PO4A+y}
6906 then :
6907 printf %s "(cached) " >&6
6908 else case e in #(
6909 e) if test -n "$PO4A"; then
6910 ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 case $as_dir in #(((
6917 '') as_dir=./ ;;
6918 */) ;;
6919 *) as_dir=$as_dir/ ;;
6920 esac
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_PO4A="$ac_prog"
6924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi ;;
6932 esac
6933 fi
6934 PO4A=$ac_cv_prog_PO4A
6935 if test -n "$PO4A"; then
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
6937 printf "%s\n" "$PO4A" >&6; }
6938 else
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 printf "%s\n" "no" >&6; }
6941 fi
6942
6943
6944 test -n "$PO4A" && break
6945 done
6946
6947 if test "$USE_NLS" = "yes" && test -n "$PO4A"
6948 then :
6949
6950 USE_PO4A=yes
6951
6952 else case e in #(
6953 e)
6954 USE_PO4A=no
6955 ;;
6956 esac
6957 fi
6958
6959
6960
6961 # Checks for header files.
6962
6963 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6964 if test "x$ac_cv_header_sys_mkdev_h" = xyes
6965 then :
6966
6967 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6968
6969 fi
6970
6971 if test $ac_cv_header_sys_mkdev_h = no; then
6972 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6973 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
6974 then :
6975
6976 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6977
6978 fi
6979
6980 fi
6981
6982
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
6984 printf %s "checking whether to enable assertions... " >&6; }
6985 # Check whether --enable-assert was given.
6986 if test ${enable_assert+y}
6987 then :
6988 enableval=$enable_assert; ac_enable_assert=$enableval
6989 if test "x$enableval" = xno
6990 then :
6991
6992 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
6993
6994 elif test "x$enableval" != xyes
6995 then :
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
6997 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
6998 ac_enable_assert=yes
6999 fi
7000 else case e in #(
7001 e) ac_enable_assert=yes ;;
7002 esac
7003 fi
7004
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
7006 printf "%s\n" "$ac_enable_assert" >&6; }
7007
7008 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
7009 if test "x$ac_cv_header_arpa_inet_h" = xyes
7010 then :
7011 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
7012
7013 fi
7014 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
7015 if test "x$ac_cv_header_err_h" = xyes
7016 then :
7017 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
7018
7019 fi
7020 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
7021 if test "x$ac_cv_header_fcntl_h" = xyes
7022 then :
7023 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
7024
7025 fi
7026 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
7027 if test "x$ac_cv_header_float_h" = xyes
7028 then :
7029 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
7030
7031 fi
7032 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
7033 if test "x$ac_cv_header_langinfo_h" = xyes
7034 then :
7035 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
7036
7037 fi
7038 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
7039 if test "x$ac_cv_header_libintl_h" = xyes
7040 then :
7041 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
7042
7043 fi
7044 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
7045 if test "x$ac_cv_header_limits_h" = xyes
7046 then :
7047 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
7048
7049 fi
7050 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
7051 if test "x$ac_cv_header_locale_h" = xyes
7052 then :
7053 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
7054
7055 fi
7056 ac_fn_c_check_header_compile "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
7057 if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes
7058 then :
7059 printf "%s\n" "#define HAVE_NCURSESW_NCURSES_H 1" >>confdefs.h
7060
7061 fi
7062 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7063 if test "x$ac_cv_header_stdint_h" = xyes
7064 then :
7065 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
7066
7067 fi
7068 ac_fn_c_check_header_compile "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
7069 if test "x$ac_cv_header_stdio_ext_h" = xyes
7070 then :
7071 printf "%s\n" "#define HAVE_STDIO_EXT_H 1" >>confdefs.h
7072
7073 fi
7074 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7075 if test "x$ac_cv_header_stdlib_h" = xyes
7076 then :
7077 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
7078
7079 fi
7080 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
7081 if test "x$ac_cv_header_string_h" = xyes
7082 then :
7083 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
7084
7085 fi
7086 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
7087 if test "x$ac_cv_header_sys_file_h" = xyes
7088 then :
7089 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
7090
7091 fi
7092 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
7093 if test "x$ac_cv_header_sys_ioctl_h" = xyes
7094 then :
7095 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
7096
7097 fi
7098 ac_fn_c_check_header_compile "$LINENO" "sys/pidfd.h" "ac_cv_header_sys_pidfd_h" "$ac_includes_default"
7099 if test "x$ac_cv_header_sys_pidfd_h" = xyes
7100 then :
7101 printf "%s\n" "#define HAVE_SYS_PIDFD_H 1" >>confdefs.h
7102
7103 fi
7104 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
7105 if test "x$ac_cv_header_sys_param_h" = xyes
7106 then :
7107 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
7108
7109 fi
7110 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
7111 if test "x$ac_cv_header_sys_time_h" = xyes
7112 then :
7113 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
7114
7115 fi
7116 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
7117 if test "x$ac_cv_header_termios_h" = xyes
7118 then :
7119 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
7120
7121 fi
7122 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7123 if test "x$ac_cv_header_unistd_h" = xyes
7124 then :
7125 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
7126
7127 fi
7128 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
7129 if test "x$ac_cv_header_utmp_h" = xyes
7130 then :
7131 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
7132
7133 fi
7134 ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
7135 if test "x$ac_cv_header_utmpx_h" = xyes
7136 then :
7137 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
7138
7139 fi
7140 ac_fn_c_check_header_compile "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
7141 if test "x$ac_cv_header_values_h" = xyes
7142 then :
7143 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
7144
7145 fi
7146 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7147 if test "x$ac_cv_header_wchar_h" = xyes
7148 then :
7149 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
7150
7151 fi
7152 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
7153 if test "x$ac_cv_header_wctype_h" = xyes
7154 then :
7155 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
7156
7157 fi
7158
7159
7160 # Checks for typedefs, structures, and compiler characteristics.
7161 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7162 if test "x$ac_cv_type__Bool" = xyes
7163 then :
7164
7165 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
7166
7167
7168 fi
7169
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
7171 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
7172 if test ${ac_cv_header_stdbool_h+y}
7173 then :
7174 printf %s "(cached) " >&6
7175 else case e in #(
7176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 #include <stdbool.h>
7179
7180 /* "true" and "false" should be usable in #if expressions and
7181 integer constant expressions, and "bool" should be a valid
7182 type name.
7183
7184 Although C99 requires bool, true, and false to be macros,
7185 C23 and C++11 overrule that, so do not test for that.
7186 Although C99 requires __bool_true_false_are_defined and
7187 _Bool, C23 says they are obsolescent, so do not require
7188 them. */
7189
7190 #if !true
7191 #error "'true' is not true"
7192 #endif
7193 #if true != 1
7194 #error "'true' is not equal to 1"
7195 #endif
7196 char b[true == 1 ? 1 : -1];
7197 char c[true];
7198
7199 #if false
7200 #error "'false' is not false"
7201 #endif
7202 #if false != 0
7203 #error "'false' is not equal to 0"
7204 #endif
7205 char d[false == 0 ? 1 : -1];
7206
7207 enum { e = false, f = true, g = false * true, h = true * 256 };
7208
7209 char i[(bool) 0.5 == true ? 1 : -1];
7210 char j[(bool) 0.0 == false ? 1 : -1];
7211 char k[sizeof (bool) > 0 ? 1 : -1];
7212
7213 struct sb { bool s: 1; bool t; } s;
7214 char l[sizeof s.t > 0 ? 1 : -1];
7215
7216 /* The following fails for
7217 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7218 bool m[h];
7219 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
7220 char o[-1 - (bool) 0 < 0 ? 1 : -1];
7221 /* Catch a bug in an HP-UX C compiler. See
7222 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7223 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
7224 */
7225 bool p = true;
7226 bool *pp = &p;
7227
7228 int
7229 main (void)
7230 {
7231
7232 bool ps = &s;
7233 *pp |= p;
7234 *pp |= ! p;
7235
7236 /* Refer to every declared value, so they cannot be
7237 discarded as unused. */
7238 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
7239 + !l + !m + !n + !o + !p + !pp + !ps);
7240
7241 ;
7242 return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_compile "$LINENO"
7246 then :
7247 ac_cv_header_stdbool_h=yes
7248 else case e in #(
7249 e) ac_cv_header_stdbool_h=no ;;
7250 esac
7251 fi
7252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7253 esac
7254 fi
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7256 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
7257
7258 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
7259 if test "x$ac_cv_type_uid_t" = xyes
7260 then :
7261
7262 else case e in #(
7263 e)
7264 printf "%s\n" "#define uid_t int" >>confdefs.h
7265 ;;
7266 esac
7267 fi
7268
7269 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
7270 if test "x$ac_cv_type_gid_t" = xyes
7271 then :
7272
7273 else case e in #(
7274 e)
7275 printf "%s\n" "#define gid_t int" >>confdefs.h
7276 ;;
7277 esac
7278 fi
7279
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7281 printf %s "checking for inline... " >&6; }
7282 if test ${ac_cv_c_inline+y}
7283 then :
7284 printf %s "(cached) " >&6
7285 else case e in #(
7286 e) ac_cv_c_inline=no
7287 for ac_kw in inline __inline__ __inline; do
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 #ifndef __cplusplus
7291 typedef int foo_t;
7292 static $ac_kw foo_t static_foo (void) {return 0; }
7293 $ac_kw foo_t foo (void) {return 0; }
7294 #endif
7295
7296 _ACEOF
7297 if ac_fn_c_try_compile "$LINENO"
7298 then :
7299 ac_cv_c_inline=$ac_kw
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7302 test "$ac_cv_c_inline" != no && break
7303 done
7304 ;;
7305 esac
7306 fi
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7308 printf "%s\n" "$ac_cv_c_inline" >&6; }
7309
7310 case $ac_cv_c_inline in
7311 inline | yes) ;;
7312 *)
7313 case $ac_cv_c_inline in
7314 no) ac_val=;;
7315 *) ac_val=$ac_cv_c_inline;;
7316 esac
7317 cat >>confdefs.h <<_ACEOF
7318 #ifndef __cplusplus
7319 #define inline $ac_val
7320 #endif
7321 _ACEOF
7322 ;;
7323 esac
7324
7325 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7326 case $ac_cv_c_int32_t in #(
7327 no|yes) ;; #(
7328 *)
7329
7330 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
7331 ;;
7332 esac
7333
7334
7335 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
7336 "
7337 if test "x$ac_cv_type_pid_t" = xyes
7338 then :
7339
7340 else case e in #(
7341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343
7344 #if defined _WIN64 && !defined __CYGWIN__
7345 LLP64
7346 #endif
7347
7348 int
7349 main (void)
7350 {
7351
7352 ;
7353 return 0;
7354 }
7355
7356 _ACEOF
7357 if ac_fn_c_try_compile "$LINENO"
7358 then :
7359 ac_pid_type='int'
7360 else case e in #(
7361 e) ac_pid_type='__int64' ;;
7362 esac
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7365
7366 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7367
7368 ;;
7369 esac
7370 fi
7371
7372
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7374 printf %s "checking for C/C++ restrict keyword... " >&6; }
7375 if test ${ac_cv_c_restrict+y}
7376 then :
7377 printf %s "(cached) " >&6
7378 else case e in #(
7379 e) ac_cv_c_restrict=no
7380 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
7381 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
7382 # Put 'restrict' last, because C++ lacks it.
7383 for ac_kw in __restrict__ __restrict _Restrict restrict; do
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 typedef int *int_ptr;
7387 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7388 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7389 int bar (int ip[$ac_kw]) { return ip[0]; }
7390
7391 int
7392 main (void)
7393 {
7394 int s[1];
7395 int *$ac_kw t = s;
7396 t[0] = 0;
7397 return foo (t) + bar (t);
7398
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_compile "$LINENO"
7404 then :
7405 ac_cv_c_restrict=$ac_kw
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7408 test "$ac_cv_c_restrict" != no && break
7409 done
7410 ;;
7411 esac
7412 fi
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7414 printf "%s\n" "$ac_cv_c_restrict" >&6; }
7415
7416 case $ac_cv_c_restrict in
7417 restrict) ;;
7418 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
7419 ;;
7420 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
7421 ;;
7422 esac
7423
7424 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7425 if test "x$ac_cv_type_size_t" = xyes
7426 then :
7427
7428 else case e in #(
7429 e)
7430 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7431 ;;
7432 esac
7433 fi
7434
7435 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7436 if test "x$ac_cv_type_ssize_t" = xyes
7437 then :
7438
7439 else case e in #(
7440 e)
7441 printf "%s\n" "#define ssize_t int" >>confdefs.h
7442 ;;
7443 esac
7444 fi
7445
7446 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7447 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
7448 then :
7449
7450 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
7451
7452
7453 fi
7454
7455 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_int" "ac_cv_member_siginfo_t_si_int" "#include <signal.h>
7456 "
7457 if test "x$ac_cv_member_siginfo_t_si_int" = xyes
7458 then :
7459
7460 printf "%s\n" "#define HAVE_SIGINFO_T_SI_INT 1" >>confdefs.h
7461
7462
7463 fi
7464
7465
7466 if test "x$ac_cv_header_utmpx_h" = xyes
7467 then :
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
7469 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
7470 if test ${ac_cv_c_undeclared_builtin_options+y}
7471 then :
7472 printf %s "(cached) " >&6
7473 else case e in #(
7474 e) ac_save_CFLAGS=$CFLAGS
7475 ac_cv_c_undeclared_builtin_options='cannot detect'
7476 for ac_arg in '' -fno-builtin; do
7477 CFLAGS="$ac_save_CFLAGS $ac_arg"
7478 # This test program should *not* compile successfully.
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481
7482 int
7483 main (void)
7484 {
7485 (void) strchr;
7486 ;
7487 return 0;
7488 }
7489 _ACEOF
7490 if ac_fn_c_try_compile "$LINENO"
7491 then :
7492
7493 else case e in #(
7494 e) # This test program should compile successfully.
7495 # No library function is consistently available on
7496 # freestanding implementations, so test against a dummy
7497 # declaration. Include always-available headers on the
7498 # off chance that they somehow elicit warnings.
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501 #include <float.h>
7502 #include <limits.h>
7503 #include <stdarg.h>
7504 #include <stddef.h>
7505 extern void ac_decl (int, char *);
7506
7507 int
7508 main (void)
7509 {
7510 (void) ac_decl (0, (char *) 0);
7511 (void) ac_decl;
7512
7513 ;
7514 return 0;
7515 }
7516 _ACEOF
7517 if ac_fn_c_try_compile "$LINENO"
7518 then :
7519 if test x"$ac_arg" = x
7520 then :
7521 ac_cv_c_undeclared_builtin_options='none needed'
7522 else case e in #(
7523 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
7524 esac
7525 fi
7526 break
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7529 esac
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7532 done
7533 CFLAGS=$ac_save_CFLAGS
7534 ;;
7535 esac
7536 fi
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
7538 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
7539 case $ac_cv_c_undeclared_builtin_options in #(
7540 'cannot detect') :
7541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7542 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7543 as_fn_error $? "cannot make $CC report undeclared builtins
7544 See 'config.log' for more details" "$LINENO" 5; } ;; #(
7545 'none needed') :
7546 ac_c_undeclared_builtin_options='' ;; #(
7547 *) :
7548 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
7549 esac
7550
7551 ac_fn_check_decl "$LINENO" "__UT_HOSTSIZE" "ac_cv_have_decl___UT_HOSTSIZE" "#include <utmpx.h>
7552 " "$ac_c_undeclared_builtin_options" "CFLAGS"
7553 if test "x$ac_cv_have_decl___UT_HOSTSIZE" = xyes
7554 then :
7555 ac_have_decl=1
7556 else case e in #(
7557 e) ac_have_decl=0 ;;
7558 esac
7559 fi
7560 printf "%s\n" "#define HAVE_DECL___UT_HOSTSIZE $ac_have_decl" >>confdefs.h
7561 if test $ac_have_decl = 1
7562 then :
7563
7564 printf "%s\n" "#define HAVE_UT_HOSTSIZE_IN_UTMPX 1" >>confdefs.h
7565
7566 fi
7567
7568 fi
7569
7570 case `pwd` in
7571 *\ * | *\ *)
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7573 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7574 esac
7575
7576
7577
7578 macro_version='2.5.4'
7579 macro_revision='2.5.4'
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594 ltmain=$ac_aux_dir/ltmain.sh
7595
7596
7597
7598 # Make sure we can run config.sub.
7599 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7600 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7601
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7603 printf %s "checking build system type... " >&6; }
7604 if test ${ac_cv_build+y}
7605 then :
7606 printf %s "(cached) " >&6
7607 else case e in #(
7608 e) ac_build_alias=$build_alias
7609 test "x$ac_build_alias" = x &&
7610 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7611 test "x$ac_build_alias" = x &&
7612 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7613 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7614 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7615 ;;
7616 esac
7617 fi
7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7619 printf "%s\n" "$ac_cv_build" >&6; }
7620 case $ac_cv_build in
7621 *-*-*) ;;
7622 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7623 esac
7624 build=$ac_cv_build
7625 ac_save_IFS=$IFS; IFS='-'
7626 set x $ac_cv_build
7627 shift
7628 build_cpu=$1
7629 build_vendor=$2
7630 shift; shift
7631 # Remember, the first character of IFS is used to create $*,
7632 # except with old shells:
7633 build_os=$*
7634 IFS=$ac_save_IFS
7635 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7636
7637
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7639 printf %s "checking host system type... " >&6; }
7640 if test ${ac_cv_host+y}
7641 then :
7642 printf %s "(cached) " >&6
7643 else case e in #(
7644 e) if test "x$host_alias" = x; then
7645 ac_cv_host=$ac_cv_build
7646 else
7647 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7648 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7649 fi
7650 ;;
7651 esac
7652 fi
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7654 printf "%s\n" "$ac_cv_host" >&6; }
7655 case $ac_cv_host in
7656 *-*-*) ;;
7657 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7658 esac
7659 host=$ac_cv_host
7660 ac_save_IFS=$IFS; IFS='-'
7661 set x $ac_cv_host
7662 shift
7663 host_cpu=$1
7664 host_vendor=$2
7665 shift; shift
7666 # Remember, the first character of IFS is used to create $*,
7667 # except with old shells:
7668 host_os=$*
7669 IFS=$ac_save_IFS
7670 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7671
7672
7673 # Backslashify metacharacters that are still active within
7674 # double-quoted strings.
7675 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7676
7677 # Same as above, but do not quote variable references.
7678 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7679
7680 # Sed substitution to delay expansion of an escaped shell variable in a
7681 # double_quote_subst'ed string.
7682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7683
7684 # Sed substitution to delay expansion of an escaped single quote.
7685 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7686
7687 # Sed substitution to avoid accidental globbing in evaled expressions
7688 no_glob_subst='s/\*/\\\*/g'
7689
7690 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7691 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7692 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7693
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7695 printf %s "checking how to print strings... " >&6; }
7696 # Test print first, because it will be a builtin if present.
7697 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7698 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7699 ECHO='print -r --'
7700 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7701 ECHO='printf %s\n'
7702 else
7703 # Use this function as a fallback that always works.
7704 func_fallback_echo ()
7705 {
7706 eval 'cat <<_LTECHO_EOF
7707 $1
7708 _LTECHO_EOF'
7709 }
7710 ECHO='func_fallback_echo'
7711 fi
7712
7713 # func_echo_all arg...
7714 # Invoke $ECHO with all args, space-separated.
7715 func_echo_all ()
7716 {
7717 $ECHO ""
7718 }
7719
7720 case $ECHO in
7721 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7722 printf "%s\n" "printf" >&6; } ;;
7723 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7724 printf "%s\n" "print -r" >&6; } ;;
7725 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7726 printf "%s\n" "cat" >&6; } ;;
7727 esac
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7743 printf %s "checking for a sed that does not truncate output... " >&6; }
7744 if test ${ac_cv_path_SED+y}
7745 then :
7746 printf %s "(cached) " >&6
7747 else case e in #(
7748 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7749 for ac_i in 1 2 3 4 5 6 7; do
7750 ac_script="$ac_script$as_nl$ac_script"
7751 done
7752 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7753 { ac_script=; unset ac_script;}
7754 if test -z "$SED"; then
7755 ac_path_SED_found=false
7756 # Loop through the user's path and test for each of PROGNAME-LIST
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760 IFS=$as_save_IFS
7761 case $as_dir in #(((
7762 '') as_dir=./ ;;
7763 */) ;;
7764 *) as_dir=$as_dir/ ;;
7765 esac
7766 for ac_prog in sed gsed
7767 do
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7770 as_fn_executable_p "$ac_path_SED" || continue
7771 # Check for GNU ac_path_SED and select it if it is found.
7772 # Check for GNU $ac_path_SED
7773 case `"$ac_path_SED" --version 2>&1` in #(
7774 *GNU*)
7775 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7776 #(
7777 *)
7778 ac_count=0
7779 printf %s 0123456789 >"conftest.in"
7780 while :
7781 do
7782 cat "conftest.in" "conftest.in" >"conftest.tmp"
7783 mv "conftest.tmp" "conftest.in"
7784 cp "conftest.in" "conftest.nl"
7785 printf "%s\n" '' >> "conftest.nl"
7786 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7788 as_fn_arith $ac_count + 1 && ac_count=$as_val
7789 if test $ac_count -gt ${ac_path_SED_max-0}; then
7790 # Best one so far, save it but keep looking for a better one
7791 ac_cv_path_SED="$ac_path_SED"
7792 ac_path_SED_max=$ac_count
7793 fi
7794 # 10*(2^10) chars as input seems more than enough
7795 test $ac_count -gt 10 && break
7796 done
7797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7798 esac
7799
7800 $ac_path_SED_found && break 3
7801 done
7802 done
7803 done
7804 IFS=$as_save_IFS
7805 if test -z "$ac_cv_path_SED"; then
7806 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7807 fi
7808 else
7809 ac_cv_path_SED=$SED
7810 fi
7811 ;;
7812 esac
7813 fi
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7815 printf "%s\n" "$ac_cv_path_SED" >&6; }
7816 SED="$ac_cv_path_SED"
7817 rm -f conftest.sed
7818
7819 test -z "$SED" && SED=sed
7820 Xsed="$SED -e 1s/^X//"
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7833 printf %s "checking for grep that handles long lines and -e... " >&6; }
7834 if test ${ac_cv_path_GREP+y}
7835 then :
7836 printf %s "(cached) " >&6
7837 else case e in #(
7838 e) if test -z "$GREP"; then
7839 ac_path_GREP_found=false
7840 # Loop through the user's path and test for each of PROGNAME-LIST
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7843 do
7844 IFS=$as_save_IFS
7845 case $as_dir in #(((
7846 '') as_dir=./ ;;
7847 */) ;;
7848 *) as_dir=$as_dir/ ;;
7849 esac
7850 for ac_prog in grep ggrep
7851 do
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7854 as_fn_executable_p "$ac_path_GREP" || continue
7855 # Check for GNU ac_path_GREP and select it if it is found.
7856 # Check for GNU $ac_path_GREP
7857 case `"$ac_path_GREP" --version 2>&1` in #(
7858 *GNU*)
7859 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7860 #(
7861 *)
7862 ac_count=0
7863 printf %s 0123456789 >"conftest.in"
7864 while :
7865 do
7866 cat "conftest.in" "conftest.in" >"conftest.tmp"
7867 mv "conftest.tmp" "conftest.in"
7868 cp "conftest.in" "conftest.nl"
7869 printf "%s\n" 'GREP' >> "conftest.nl"
7870 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7872 as_fn_arith $ac_count + 1 && ac_count=$as_val
7873 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7874 # Best one so far, save it but keep looking for a better one
7875 ac_cv_path_GREP="$ac_path_GREP"
7876 ac_path_GREP_max=$ac_count
7877 fi
7878 # 10*(2^10) chars as input seems more than enough
7879 test $ac_count -gt 10 && break
7880 done
7881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7882 esac
7883
7884 $ac_path_GREP_found && break 3
7885 done
7886 done
7887 done
7888 IFS=$as_save_IFS
7889 if test -z "$ac_cv_path_GREP"; then
7890 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7891 fi
7892 else
7893 ac_cv_path_GREP=$GREP
7894 fi
7895 ;;
7896 esac
7897 fi
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7899 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7900 GREP="$ac_cv_path_GREP"
7901
7902
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7904 printf %s "checking for egrep... " >&6; }
7905 if test ${ac_cv_path_EGREP+y}
7906 then :
7907 printf %s "(cached) " >&6
7908 else case e in #(
7909 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7910 then ac_cv_path_EGREP="$GREP -E"
7911 else
7912 if test -z "$EGREP"; then
7913 ac_path_EGREP_found=false
7914 # Loop through the user's path and test for each of PROGNAME-LIST
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7917 do
7918 IFS=$as_save_IFS
7919 case $as_dir in #(((
7920 '') as_dir=./ ;;
7921 */) ;;
7922 *) as_dir=$as_dir/ ;;
7923 esac
7924 for ac_prog in egrep
7925 do
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7928 as_fn_executable_p "$ac_path_EGREP" || continue
7929 # Check for GNU ac_path_EGREP and select it if it is found.
7930 # Check for GNU $ac_path_EGREP
7931 case `"$ac_path_EGREP" --version 2>&1` in #(
7932 *GNU*)
7933 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7934 #(
7935 *)
7936 ac_count=0
7937 printf %s 0123456789 >"conftest.in"
7938 while :
7939 do
7940 cat "conftest.in" "conftest.in" >"conftest.tmp"
7941 mv "conftest.tmp" "conftest.in"
7942 cp "conftest.in" "conftest.nl"
7943 printf "%s\n" 'EGREP' >> "conftest.nl"
7944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7946 as_fn_arith $ac_count + 1 && ac_count=$as_val
7947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7948 # Best one so far, save it but keep looking for a better one
7949 ac_cv_path_EGREP="$ac_path_EGREP"
7950 ac_path_EGREP_max=$ac_count
7951 fi
7952 # 10*(2^10) chars as input seems more than enough
7953 test $ac_count -gt 10 && break
7954 done
7955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7956 esac
7957
7958 $ac_path_EGREP_found && break 3
7959 done
7960 done
7961 done
7962 IFS=$as_save_IFS
7963 if test -z "$ac_cv_path_EGREP"; then
7964 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7965 fi
7966 else
7967 ac_cv_path_EGREP=$EGREP
7968 fi
7969
7970 fi ;;
7971 esac
7972 fi
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7974 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7975 EGREP="$ac_cv_path_EGREP"
7976
7977 EGREP_TRADITIONAL=$EGREP
7978 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7979
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7981 printf %s "checking for fgrep... " >&6; }
7982 if test ${ac_cv_path_FGREP+y}
7983 then :
7984 printf %s "(cached) " >&6
7985 else case e in #(
7986 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7987 then ac_cv_path_FGREP="$GREP -F"
7988 else
7989 if test -z "$FGREP"; then
7990 ac_path_FGREP_found=false
7991 # Loop through the user's path and test for each of PROGNAME-LIST
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7994 do
7995 IFS=$as_save_IFS
7996 case $as_dir in #(((
7997 '') as_dir=./ ;;
7998 */) ;;
7999 *) as_dir=$as_dir/ ;;
8000 esac
8001 for ac_prog in fgrep
8002 do
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8005 as_fn_executable_p "$ac_path_FGREP" || continue
8006 # Check for GNU ac_path_FGREP and select it if it is found.
8007 # Check for GNU $ac_path_FGREP
8008 case `"$ac_path_FGREP" --version 2>&1` in #(
8009 *GNU*)
8010 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8011 #(
8012 *)
8013 ac_count=0
8014 printf %s 0123456789 >"conftest.in"
8015 while :
8016 do
8017 cat "conftest.in" "conftest.in" >"conftest.tmp"
8018 mv "conftest.tmp" "conftest.in"
8019 cp "conftest.in" "conftest.nl"
8020 printf "%s\n" 'FGREP' >> "conftest.nl"
8021 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8023 as_fn_arith $ac_count + 1 && ac_count=$as_val
8024 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8025 # Best one so far, save it but keep looking for a better one
8026 ac_cv_path_FGREP="$ac_path_FGREP"
8027 ac_path_FGREP_max=$ac_count
8028 fi
8029 # 10*(2^10) chars as input seems more than enough
8030 test $ac_count -gt 10 && break
8031 done
8032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8033 esac
8034
8035 $ac_path_FGREP_found && break 3
8036 done
8037 done
8038 done
8039 IFS=$as_save_IFS
8040 if test -z "$ac_cv_path_FGREP"; then
8041 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8042 fi
8043 else
8044 ac_cv_path_FGREP=$FGREP
8045 fi
8046
8047 fi ;;
8048 esac
8049 fi
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8051 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8052 FGREP="$ac_cv_path_FGREP"
8053
8054
8055 test -z "$GREP" && GREP=grep
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075 # Check whether --with-gnu-ld was given.
8076 if test ${with_gnu_ld+y}
8077 then :
8078 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8079 else case e in #(
8080 e) with_gnu_ld=no ;;
8081 esac
8082 fi
8083
8084 ac_prog=ld
8085 if test yes = "$GCC"; then
8086 # Check if gcc -print-prog-name=ld gives a path.
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8088 printf %s "checking for ld used by $CC... " >&6; }
8089 case $host in
8090 *-*-mingw* | *-*-windows*)
8091 # gcc leaves a trailing carriage return, which upsets mingw
8092 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8093 *)
8094 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8095 esac
8096 case $ac_prog in
8097 # Accept absolute paths.
8098 [\\/]* | ?:[\\/]*)
8099 re_direlt='/[^/][^/]*/\.\./'
8100 # Canonicalize the pathname of ld
8101 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8102 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8103 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8104 done
8105 test -z "$LD" && LD=$ac_prog
8106 ;;
8107 "")
8108 # If it fails, then pretend we aren't using GCC.
8109 ac_prog=ld
8110 ;;
8111 *)
8112 # If it is relative, then search for the first ld in PATH.
8113 with_gnu_ld=unknown
8114 ;;
8115 esac
8116 elif test yes = "$with_gnu_ld"; then
8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8118 printf %s "checking for GNU ld... " >&6; }
8119 else
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8121 printf %s "checking for non-GNU ld... " >&6; }
8122 fi
8123 if test ${lt_cv_path_LD+y}
8124 then :
8125 printf %s "(cached) " >&6
8126 else case e in #(
8127 e) if test -z "$LD"; then
8128 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8129 for ac_dir in $PATH; do
8130 IFS=$lt_save_ifs
8131 test -z "$ac_dir" && ac_dir=.
8132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8133 lt_cv_path_LD=$ac_dir/$ac_prog
8134 # Check to see if the program is GNU ld. I'd rather use --version,
8135 # but apparently some variants of GNU ld only accept -v.
8136 # Break only if it was the GNU/non-GNU ld that we prefer.
8137 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8138 *GNU* | *'with BFD'*)
8139 test no != "$with_gnu_ld" && break
8140 ;;
8141 *)
8142 test yes != "$with_gnu_ld" && break
8143 ;;
8144 esac
8145 fi
8146 done
8147 IFS=$lt_save_ifs
8148 else
8149 lt_cv_path_LD=$LD # Let the user override the test with a path.
8150 fi ;;
8151 esac
8152 fi
8153
8154 LD=$lt_cv_path_LD
8155 if test -n "$LD"; then
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8157 printf "%s\n" "$LD" >&6; }
8158 else
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 printf "%s\n" "no" >&6; }
8161 fi
8162 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8164 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8165 if test ${lt_cv_prog_gnu_ld+y}
8166 then :
8167 printf %s "(cached) " >&6
8168 else case e in #(
8169 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
8170 case `$LD -v 2>&1 </dev/null` in
8171 *GNU* | *'with BFD'*)
8172 lt_cv_prog_gnu_ld=yes
8173 ;;
8174 *)
8175 lt_cv_prog_gnu_ld=no
8176 ;;
8177 esac ;;
8178 esac
8179 fi
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8181 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8182 with_gnu_ld=$lt_cv_prog_gnu_ld
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8193 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8194 if test ${lt_cv_path_NM+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else case e in #(
8198 e) if test -n "$NM"; then
8199 # Let the user override the test.
8200 lt_cv_path_NM=$NM
8201 else
8202 lt_nm_to_check=${ac_tool_prefix}nm
8203 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8204 lt_nm_to_check="$lt_nm_to_check nm"
8205 fi
8206 for lt_tmp_nm in $lt_nm_to_check; do
8207 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8208 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8209 IFS=$lt_save_ifs
8210 test -z "$ac_dir" && ac_dir=.
8211 tmp_nm=$ac_dir/$lt_tmp_nm
8212 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8213 # Check to see if the nm accepts a BSD-compat flag.
8214 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8215 # nm: unknown option "B" ignored
8216 # Tru64's nm complains that /dev/null is an invalid object file
8217 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8218 case $build_os in
8219 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
8220 *) lt_bad_file=/dev/null ;;
8221 esac
8222 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8223 *$lt_bad_file* | *'Invalid file or object type'*)
8224 lt_cv_path_NM="$tmp_nm -B"
8225 break 2
8226 ;;
8227 *)
8228 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8229 */dev/null*)
8230 lt_cv_path_NM="$tmp_nm -p"
8231 break 2
8232 ;;
8233 *)
8234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8235 continue # so that we can try to find one that supports BSD flags
8236 ;;
8237 esac
8238 ;;
8239 esac
8240 fi
8241 done
8242 IFS=$lt_save_ifs
8243 done
8244 : ${lt_cv_path_NM=no}
8245 fi ;;
8246 esac
8247 fi
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8249 printf "%s\n" "$lt_cv_path_NM" >&6; }
8250 if test no != "$lt_cv_path_NM"; then
8251 NM=$lt_cv_path_NM
8252 else
8253 # Didn't find any BSD compatible name lister, look for dumpbin.
8254 if test -n "$DUMPBIN"; then :
8255 # Let the user override the test.
8256 else
8257 if test -n "$ac_tool_prefix"; then
8258 for ac_prog in dumpbin "link -dump"
8259 do
8260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 printf %s "checking for $ac_word... " >&6; }
8264 if test ${ac_cv_prog_DUMPBIN+y}
8265 then :
8266 printf %s "(cached) " >&6
8267 else case e in #(
8268 e) if test -n "$DUMPBIN"; then
8269 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274 IFS=$as_save_IFS
8275 case $as_dir in #(((
8276 '') as_dir=./ ;;
8277 */) ;;
8278 *) as_dir=$as_dir/ ;;
8279 esac
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8282 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8284 break 2
8285 fi
8286 done
8287 done
8288 IFS=$as_save_IFS
8289
8290 fi ;;
8291 esac
8292 fi
8293 DUMPBIN=$ac_cv_prog_DUMPBIN
8294 if test -n "$DUMPBIN"; then
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8296 printf "%s\n" "$DUMPBIN" >&6; }
8297 else
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 printf "%s\n" "no" >&6; }
8300 fi
8301
8302
8303 test -n "$DUMPBIN" && break
8304 done
8305 fi
8306 if test -z "$DUMPBIN"; then
8307 ac_ct_DUMPBIN=$DUMPBIN
8308 for ac_prog in dumpbin "link -dump"
8309 do
8310 # Extract the first word of "$ac_prog", so it can be a program name with args.
8311 set dummy $ac_prog; ac_word=$2
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 printf %s "checking for $ac_word... " >&6; }
8314 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8315 then :
8316 printf %s "(cached) " >&6
8317 else case e in #(
8318 e) if test -n "$ac_ct_DUMPBIN"; then
8319 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324 IFS=$as_save_IFS
8325 case $as_dir in #(((
8326 '') as_dir=./ ;;
8327 */) ;;
8328 *) as_dir=$as_dir/ ;;
8329 esac
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8332 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336 done
8337 done
8338 IFS=$as_save_IFS
8339
8340 fi ;;
8341 esac
8342 fi
8343 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8344 if test -n "$ac_ct_DUMPBIN"; then
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8346 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8347 else
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 printf "%s\n" "no" >&6; }
8350 fi
8351
8352
8353 test -n "$ac_ct_DUMPBIN" && break
8354 done
8355
8356 if test "x$ac_ct_DUMPBIN" = x; then
8357 DUMPBIN=":"
8358 else
8359 case $cross_compiling:$ac_tool_warned in
8360 yes:)
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8363 ac_tool_warned=yes ;;
8364 esac
8365 DUMPBIN=$ac_ct_DUMPBIN
8366 fi
8367 fi
8368
8369 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
8370 *COFF*)
8371 DUMPBIN="$DUMPBIN -symbols -headers"
8372 ;;
8373 *)
8374 DUMPBIN=:
8375 ;;
8376 esac
8377 fi
8378
8379 if test : != "$DUMPBIN"; then
8380 NM=$DUMPBIN
8381 fi
8382 fi
8383 test -z "$NM" && NM=nm
8384
8385
8386
8387
8388
8389
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8391 printf %s "checking the name lister ($NM) interface... " >&6; }
8392 if test ${lt_cv_nm_interface+y}
8393 then :
8394 printf %s "(cached) " >&6
8395 else case e in #(
8396 e) lt_cv_nm_interface="BSD nm"
8397 echo "int some_variable = 0;" > conftest.$ac_ext
8398 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8399 (eval "$ac_compile" 2>conftest.err)
8400 cat conftest.err >&5
8401 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8402 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8403 cat conftest.err >&5
8404 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8405 cat conftest.out >&5
8406 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8407 lt_cv_nm_interface="MS dumpbin"
8408 fi
8409 rm -f conftest* ;;
8410 esac
8411 fi
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8413 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8414
8415 # find the maximum length of command line arguments
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8417 printf %s "checking the maximum length of command line arguments... " >&6; }
8418 if test ${lt_cv_sys_max_cmd_len+y}
8419 then :
8420 printf %s "(cached) " >&6
8421 else case e in #(
8422 e) i=0
8423 teststring=ABCD
8424
8425 case $build_os in
8426 msdosdjgpp*)
8427 # On DJGPP, this test can blow up pretty badly due to problems in libc
8428 # (any single argument exceeding 2000 bytes causes a buffer overrun
8429 # during glob expansion). Even if it were fixed, the result of this
8430 # check would be larger than it should be.
8431 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8432 ;;
8433
8434 gnu* | ironclad*)
8435 # Under GNU Hurd and Ironclad, this test is not required because there
8436 # is no limit to the length of command line arguments.
8437 # Libtool will interpret -1 as no limit whatsoever
8438 lt_cv_sys_max_cmd_len=-1;
8439 ;;
8440
8441 cygwin* | mingw* | windows* | cegcc*)
8442 # On Win9x/ME, this test blows up -- it succeeds, but takes
8443 # about 5 minutes as the teststring grows exponentially.
8444 # Worse, since 9x/ME are not pre-emptively multitasking,
8445 # you end up with a "frozen" computer, even though with patience
8446 # the test eventually succeeds (with a max line length of 256k).
8447 # Instead, let's just punt: use the minimum linelength reported by
8448 # all of the supported platforms: 8192 (on NT/2K/XP).
8449 lt_cv_sys_max_cmd_len=8192;
8450 ;;
8451
8452 mint*)
8453 # On MiNT this can take a long time and run out of memory.
8454 lt_cv_sys_max_cmd_len=8192;
8455 ;;
8456
8457 amigaos*)
8458 # On AmigaOS with pdksh, this test takes hours, literally.
8459 # So we just punt and use a minimum line length of 8192.
8460 lt_cv_sys_max_cmd_len=8192;
8461 ;;
8462
8463 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
8464 # This has been around since 386BSD, at least. Likely further.
8465 if test -x /sbin/sysctl; then
8466 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8467 elif test -x /usr/sbin/sysctl; then
8468 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8469 else
8470 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8471 fi
8472 # And add a safety zone
8473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8475 ;;
8476
8477 interix*)
8478 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8479 lt_cv_sys_max_cmd_len=196608
8480 ;;
8481
8482 os2*)
8483 # The test takes a long time on OS/2.
8484 lt_cv_sys_max_cmd_len=8192
8485 ;;
8486
8487 osf*)
8488 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8489 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8490 # nice to cause kernel panics so lets avoid the loop below.
8491 # First set a reasonable default.
8492 lt_cv_sys_max_cmd_len=16384
8493 #
8494 if test -x /sbin/sysconfig; then
8495 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8496 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8497 esac
8498 fi
8499 ;;
8500 sco3.2v5*)
8501 lt_cv_sys_max_cmd_len=102400
8502 ;;
8503 sysv5* | sco5v6* | sysv4.2uw2*)
8504 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8505 if test -n "$kargmax"; then
8506 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8507 else
8508 lt_cv_sys_max_cmd_len=32768
8509 fi
8510 ;;
8511 *)
8512 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8513 if test -n "$lt_cv_sys_max_cmd_len" && \
8514 test undefined != "$lt_cv_sys_max_cmd_len"; then
8515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8517 else
8518 # Make teststring a little bigger before we do anything with it.
8519 # a 1K string should be a reasonable start.
8520 for i in 1 2 3 4 5 6 7 8; do
8521 teststring=$teststring$teststring
8522 done
8523 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8524 # If test is not a shell built-in, we'll probably end up computing a
8525 # maximum length that is only half of the actual maximum length, but
8526 # we can't tell.
8527 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8528 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8529 test 17 != "$i" # 1/2 MB should be enough
8530 do
8531 i=`expr $i + 1`
8532 teststring=$teststring$teststring
8533 done
8534 # Only check the string length outside the loop.
8535 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8536 teststring=
8537 # Add a significant safety factor because C++ compilers can tack on
8538 # massive amounts of additional arguments before passing them to the
8539 # linker. It appears as though 1/2 is a usable value.
8540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8541 fi
8542 ;;
8543 esac
8544 ;;
8545 esac
8546 fi
8547
8548 if test -n "$lt_cv_sys_max_cmd_len"; then
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8550 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8551 else
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8553 printf "%s\n" "none" >&6; }
8554 fi
8555 max_cmd_len=$lt_cv_sys_max_cmd_len
8556
8557
8558
8559
8560
8561
8562 : ${CP="cp -f"}
8563 : ${MV="mv -f"}
8564 : ${RM="rm -f"}
8565
8566 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8567 lt_unset=unset
8568 else
8569 lt_unset=false
8570 fi
8571
8572
8573
8574
8575
8576 # test EBCDIC or ASCII
8577 case `echo X|tr X '\101'` in
8578 A) # ASCII based system
8579 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8580 lt_SP2NL='tr \040 \012'
8581 lt_NL2SP='tr \015\012 \040\040'
8582 ;;
8583 *) # EBCDIC based system
8584 lt_SP2NL='tr \100 \n'
8585 lt_NL2SP='tr \r\n \100\100'
8586 ;;
8587 esac
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8598 printf %s "checking how to convert $build file names to $host format... " >&6; }
8599 if test ${lt_cv_to_host_file_cmd+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else case e in #(
8603 e) case $host in
8604 *-*-mingw* )
8605 case $build in
8606 *-*-mingw* | *-*-windows* ) # actually msys
8607 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8608 ;;
8609 *-*-cygwin* )
8610 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8611 ;;
8612 * ) # otherwise, assume *nix
8613 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8614 ;;
8615 esac
8616 ;;
8617 *-*-cygwin* )
8618 case $build in
8619 *-*-mingw* | *-*-windows* ) # actually msys
8620 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8621 ;;
8622 *-*-cygwin* )
8623 lt_cv_to_host_file_cmd=func_convert_file_noop
8624 ;;
8625 * ) # otherwise, assume *nix
8626 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8627 ;;
8628 esac
8629 ;;
8630 * ) # unhandled hosts (and "normal" native builds)
8631 lt_cv_to_host_file_cmd=func_convert_file_noop
8632 ;;
8633 esac
8634 ;;
8635 esac
8636 fi
8637
8638 to_host_file_cmd=$lt_cv_to_host_file_cmd
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8640 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8641
8642
8643
8644
8645
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8647 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8648 if test ${lt_cv_to_tool_file_cmd+y}
8649 then :
8650 printf %s "(cached) " >&6
8651 else case e in #(
8652 e) #assume ordinary cross tools, or native build.
8653 lt_cv_to_tool_file_cmd=func_convert_file_noop
8654 case $host in
8655 *-*-mingw* | *-*-windows* )
8656 case $build in
8657 *-*-mingw* | *-*-windows* ) # actually msys
8658 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8659 ;;
8660 esac
8661 ;;
8662 esac
8663 ;;
8664 esac
8665 fi
8666
8667 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8669 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8670
8671
8672
8673
8674
8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8676 printf %s "checking for $LD option to reload object files... " >&6; }
8677 if test ${lt_cv_ld_reload_flag+y}
8678 then :
8679 printf %s "(cached) " >&6
8680 else case e in #(
8681 e) lt_cv_ld_reload_flag='-r' ;;
8682 esac
8683 fi
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8685 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8686 reload_flag=$lt_cv_ld_reload_flag
8687 case $reload_flag in
8688 "" | " "*) ;;
8689 *) reload_flag=" $reload_flag" ;;
8690 esac
8691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8692 case $host_os in
8693 cygwin* | mingw* | windows* | pw32* | cegcc*)
8694 if test yes != "$GCC"; then
8695 reload_cmds=false
8696 fi
8697 ;;
8698 darwin*)
8699 if test yes = "$GCC"; then
8700 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8701 else
8702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8703 fi
8704 ;;
8705 esac
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715 # Extract the first word of "file", so it can be a program name with args.
8716 set dummy file; ac_word=$2
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 printf %s "checking for $ac_word... " >&6; }
8719 if test ${ac_cv_prog_FILECMD+y}
8720 then :
8721 printf %s "(cached) " >&6
8722 else case e in #(
8723 e) if test -n "$FILECMD"; then
8724 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 case $as_dir in #(((
8731 '') as_dir=./ ;;
8732 */) ;;
8733 *) as_dir=$as_dir/ ;;
8734 esac
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8737 ac_cv_prog_FILECMD="file"
8738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8739 break 2
8740 fi
8741 done
8742 done
8743 IFS=$as_save_IFS
8744
8745 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
8746 fi ;;
8747 esac
8748 fi
8749 FILECMD=$ac_cv_prog_FILECMD
8750 if test -n "$FILECMD"; then
8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8752 printf "%s\n" "$FILECMD" >&6; }
8753 else
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 printf "%s\n" "no" >&6; }
8756 fi
8757
8758
8759
8760
8761
8762
8763
8764
8765 if test -n "$ac_tool_prefix"; then
8766 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 printf %s "checking for $ac_word... " >&6; }
8770 if test ${ac_cv_prog_OBJDUMP+y}
8771 then :
8772 printf %s "(cached) " >&6
8773 else case e in #(
8774 e) if test -n "$OBJDUMP"; then
8775 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8776 else
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778 for as_dir in $PATH
8779 do
8780 IFS=$as_save_IFS
8781 case $as_dir in #(((
8782 '') as_dir=./ ;;
8783 */) ;;
8784 *) as_dir=$as_dir/ ;;
8785 esac
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8788 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8790 break 2
8791 fi
8792 done
8793 done
8794 IFS=$as_save_IFS
8795
8796 fi ;;
8797 esac
8798 fi
8799 OBJDUMP=$ac_cv_prog_OBJDUMP
8800 if test -n "$OBJDUMP"; then
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8802 printf "%s\n" "$OBJDUMP" >&6; }
8803 else
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 printf "%s\n" "no" >&6; }
8806 fi
8807
8808
8809 fi
8810 if test -z "$ac_cv_prog_OBJDUMP"; then
8811 ac_ct_OBJDUMP=$OBJDUMP
8812 # Extract the first word of "objdump", so it can be a program name with args.
8813 set dummy objdump; ac_word=$2
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815 printf %s "checking for $ac_word... " >&6; }
8816 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8817 then :
8818 printf %s "(cached) " >&6
8819 else case e in #(
8820 e) if test -n "$ac_ct_OBJDUMP"; then
8821 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8822 else
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826 IFS=$as_save_IFS
8827 case $as_dir in #(((
8828 '') as_dir=./ ;;
8829 */) ;;
8830 *) as_dir=$as_dir/ ;;
8831 esac
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8836 break 2
8837 fi
8838 done
8839 done
8840 IFS=$as_save_IFS
8841
8842 fi ;;
8843 esac
8844 fi
8845 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8846 if test -n "$ac_ct_OBJDUMP"; then
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8848 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8849 else
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 printf "%s\n" "no" >&6; }
8852 fi
8853
8854 if test "x$ac_ct_OBJDUMP" = x; then
8855 OBJDUMP="false"
8856 else
8857 case $cross_compiling:$ac_tool_warned in
8858 yes:)
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8862 esac
8863 OBJDUMP=$ac_ct_OBJDUMP
8864 fi
8865 else
8866 OBJDUMP="$ac_cv_prog_OBJDUMP"
8867 fi
8868
8869 test -z "$OBJDUMP" && OBJDUMP=objdump
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8880 printf %s "checking how to recognize dependent libraries... " >&6; }
8881 if test ${lt_cv_deplibs_check_method+y}
8882 then :
8883 printf %s "(cached) " >&6
8884 else case e in #(
8885 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8886 lt_cv_file_magic_test_file=
8887 lt_cv_deplibs_check_method='unknown'
8888 # Need to set the preceding variable on all platforms that support
8889 # interlibrary dependencies.
8890 # 'none' -- dependencies not supported.
8891 # 'unknown' -- same as none, but documents that we really don't know.
8892 # 'pass_all' -- all dependencies passed with no checks.
8893 # 'file_magic [[regex]]' -- check by looking for files in library path
8894 # that responds to the $file_magic_cmd with a given extended regex.
8895 # If you have 'file' or equivalent on your system and you're not sure
8896 # whether 'pass_all' will *always* work, you probably want this one.
8897
8898 case $host_os in
8899 aix[4-9]*)
8900 lt_cv_deplibs_check_method=pass_all
8901 ;;
8902
8903 beos*)
8904 lt_cv_deplibs_check_method=pass_all
8905 ;;
8906
8907 bsdi[45]*)
8908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8909 lt_cv_file_magic_cmd='$FILECMD -L'
8910 lt_cv_file_magic_test_file=/shlib/libc.so
8911 ;;
8912
8913 cygwin*)
8914 # func_win32_libid is a shell function defined in ltmain.sh
8915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8916 lt_cv_file_magic_cmd='func_win32_libid'
8917 ;;
8918
8919 mingw* | windows* | pw32*)
8920 # Base MSYS/MinGW do not provide the 'file' command needed by
8921 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8922 # unless we find 'file', for example because we are cross-compiling.
8923 if ( file / ) >/dev/null 2>&1; then
8924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8925 lt_cv_file_magic_cmd='func_win32_libid'
8926 else
8927 # Keep this pattern in sync with the one in func_win32_libid.
8928 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8929 lt_cv_file_magic_cmd='$OBJDUMP -f'
8930 fi
8931 ;;
8932
8933 cegcc*)
8934 # use the weaker test based on 'objdump'. See mingw*.
8935 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8936 lt_cv_file_magic_cmd='$OBJDUMP -f'
8937 ;;
8938
8939 darwin* | rhapsody*)
8940 lt_cv_deplibs_check_method=pass_all
8941 ;;
8942
8943 freebsd* | dragonfly* | midnightbsd*)
8944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8945 case $host_cpu in
8946 i*86 )
8947 # Not sure whether the presence of OpenBSD here was a mistake.
8948 # Let's accept both of them until this is cleared up.
8949 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8950 lt_cv_file_magic_cmd=$FILECMD
8951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8952 ;;
8953 esac
8954 else
8955 lt_cv_deplibs_check_method=pass_all
8956 fi
8957 ;;
8958
8959 haiku*)
8960 lt_cv_deplibs_check_method=pass_all
8961 ;;
8962
8963 hpux10.20* | hpux11*)
8964 lt_cv_file_magic_cmd=$FILECMD
8965 case $host_cpu in
8966 ia64*)
8967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8969 ;;
8970 hppa*64*)
8971 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]'
8972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8973 ;;
8974 *)
8975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8976 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8977 ;;
8978 esac
8979 ;;
8980
8981 interix[3-9]*)
8982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8984 ;;
8985
8986 irix5* | irix6* | nonstopux*)
8987 case $LD in
8988 *-32|*"-32 ") libmagic=32-bit;;
8989 *-n32|*"-n32 ") libmagic=N32;;
8990 *-64|*"-64 ") libmagic=64-bit;;
8991 *) libmagic=never-match;;
8992 esac
8993 lt_cv_deplibs_check_method=pass_all
8994 ;;
8995
8996 # This must be glibc/ELF.
8997 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8998 lt_cv_deplibs_check_method=pass_all
8999 ;;
9000
9001 *-mlibc)
9002 lt_cv_deplibs_check_method=pass_all
9003 ;;
9004
9005 netbsd* | netbsdelf*-gnu)
9006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9008 else
9009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9010 fi
9011 ;;
9012
9013 newos6*)
9014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9015 lt_cv_file_magic_cmd=$FILECMD
9016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9017 ;;
9018
9019 *nto* | *qnx*)
9020 lt_cv_deplibs_check_method=pass_all
9021 ;;
9022
9023 openbsd*)
9024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9026 else
9027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9028 fi
9029 ;;
9030
9031 osf3* | osf4* | osf5*)
9032 lt_cv_deplibs_check_method=pass_all
9033 ;;
9034
9035 rdos*)
9036 lt_cv_deplibs_check_method=pass_all
9037 ;;
9038
9039 serenity*)
9040 lt_cv_deplibs_check_method=pass_all
9041 ;;
9042
9043 solaris*)
9044 lt_cv_deplibs_check_method=pass_all
9045 ;;
9046
9047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9048 lt_cv_deplibs_check_method=pass_all
9049 ;;
9050
9051 sysv4 | sysv4.3*)
9052 case $host_vendor in
9053 motorola)
9054 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]'
9055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9056 ;;
9057 ncr)
9058 lt_cv_deplibs_check_method=pass_all
9059 ;;
9060 sequent)
9061 lt_cv_file_magic_cmd='/bin/file'
9062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9063 ;;
9064 sni)
9065 lt_cv_file_magic_cmd='/bin/file'
9066 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9067 lt_cv_file_magic_test_file=/lib/libc.so
9068 ;;
9069 siemens)
9070 lt_cv_deplibs_check_method=pass_all
9071 ;;
9072 pc)
9073 lt_cv_deplibs_check_method=pass_all
9074 ;;
9075 esac
9076 ;;
9077
9078 tpf*)
9079 lt_cv_deplibs_check_method=pass_all
9080 ;;
9081 os2*)
9082 lt_cv_deplibs_check_method=pass_all
9083 ;;
9084 esac
9085 ;;
9086 esac
9087 fi
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9089 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9090
9091 file_magic_glob=
9092 want_nocaseglob=no
9093 if test "$build" = "$host"; then
9094 case $host_os in
9095 mingw* | windows* | pw32*)
9096 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9097 want_nocaseglob=yes
9098 else
9099 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9100 fi
9101 ;;
9102 esac
9103 fi
9104
9105 file_magic_cmd=$lt_cv_file_magic_cmd
9106 deplibs_check_method=$lt_cv_deplibs_check_method
9107 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130 if test -n "$ac_tool_prefix"; then
9131 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9132 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 printf %s "checking for $ac_word... " >&6; }
9135 if test ${ac_cv_prog_DLLTOOL+y}
9136 then :
9137 printf %s "(cached) " >&6
9138 else case e in #(
9139 e) if test -n "$DLLTOOL"; then
9140 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9141 else
9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143 for as_dir in $PATH
9144 do
9145 IFS=$as_save_IFS
9146 case $as_dir in #(((
9147 '') as_dir=./ ;;
9148 */) ;;
9149 *) as_dir=$as_dir/ ;;
9150 esac
9151 for ac_exec_ext in '' $ac_executable_extensions; do
9152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9153 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9155 break 2
9156 fi
9157 done
9158 done
9159 IFS=$as_save_IFS
9160
9161 fi ;;
9162 esac
9163 fi
9164 DLLTOOL=$ac_cv_prog_DLLTOOL
9165 if test -n "$DLLTOOL"; then
9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9167 printf "%s\n" "$DLLTOOL" >&6; }
9168 else
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 printf "%s\n" "no" >&6; }
9171 fi
9172
9173
9174 fi
9175 if test -z "$ac_cv_prog_DLLTOOL"; then
9176 ac_ct_DLLTOOL=$DLLTOOL
9177 # Extract the first word of "dlltool", so it can be a program name with args.
9178 set dummy dlltool; ac_word=$2
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 printf %s "checking for $ac_word... " >&6; }
9181 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9182 then :
9183 printf %s "(cached) " >&6
9184 else case e in #(
9185 e) if test -n "$ac_ct_DLLTOOL"; then
9186 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191 IFS=$as_save_IFS
9192 case $as_dir in #(((
9193 '') as_dir=./ ;;
9194 */) ;;
9195 *) as_dir=$as_dir/ ;;
9196 esac
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9199 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9201 break 2
9202 fi
9203 done
9204 done
9205 IFS=$as_save_IFS
9206
9207 fi ;;
9208 esac
9209 fi
9210 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9211 if test -n "$ac_ct_DLLTOOL"; then
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9213 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9214 else
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 printf "%s\n" "no" >&6; }
9217 fi
9218
9219 if test "x$ac_ct_DLLTOOL" = x; then
9220 DLLTOOL="false"
9221 else
9222 case $cross_compiling:$ac_tool_warned in
9223 yes:)
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9225 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9226 ac_tool_warned=yes ;;
9227 esac
9228 DLLTOOL=$ac_ct_DLLTOOL
9229 fi
9230 else
9231 DLLTOOL="$ac_cv_prog_DLLTOOL"
9232 fi
9233
9234 test -z "$DLLTOOL" && DLLTOOL=dlltool
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9246 printf %s "checking how to associate runtime and link libraries... " >&6; }
9247 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9248 then :
9249 printf %s "(cached) " >&6
9250 else case e in #(
9251 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
9252
9253 case $host_os in
9254 cygwin* | mingw* | windows* | pw32* | cegcc*)
9255 # two different shell functions defined in ltmain.sh;
9256 # decide which one to use based on capabilities of $DLLTOOL
9257 case `$DLLTOOL --help 2>&1` in
9258 *--identify-strict*)
9259 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9260 ;;
9261 *)
9262 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9263 ;;
9264 esac
9265 ;;
9266 *)
9267 # fallback: assume linklib IS sharedlib
9268 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9269 ;;
9270 esac
9271 ;;
9272 esac
9273 fi
9274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9275 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9276 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9277 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9278
9279
9280
9281
9282
9283
9284
9285 if test -n "$ac_tool_prefix"; then
9286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 printf %s "checking for $ac_word... " >&6; }
9290 if test ${ac_cv_prog_RANLIB+y}
9291 then :
9292 printf %s "(cached) " >&6
9293 else case e in #(
9294 e) if test -n "$RANLIB"; then
9295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9299 do
9300 IFS=$as_save_IFS
9301 case $as_dir in #(((
9302 '') as_dir=./ ;;
9303 */) ;;
9304 *) as_dir=$as_dir/ ;;
9305 esac
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312 done
9313 done
9314 IFS=$as_save_IFS
9315
9316 fi ;;
9317 esac
9318 fi
9319 RANLIB=$ac_cv_prog_RANLIB
9320 if test -n "$RANLIB"; then
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9322 printf "%s\n" "$RANLIB" >&6; }
9323 else
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 printf "%s\n" "no" >&6; }
9326 fi
9327
9328
9329 fi
9330 if test -z "$ac_cv_prog_RANLIB"; then
9331 ac_ct_RANLIB=$RANLIB
9332 # Extract the first word of "ranlib", so it can be a program name with args.
9333 set dummy ranlib; ac_word=$2
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 printf %s "checking for $ac_word... " >&6; }
9336 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9337 then :
9338 printf %s "(cached) " >&6
9339 else case e in #(
9340 e) if test -n "$ac_ct_RANLIB"; then
9341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9342 else
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9345 do
9346 IFS=$as_save_IFS
9347 case $as_dir in #(((
9348 '') as_dir=./ ;;
9349 */) ;;
9350 *) as_dir=$as_dir/ ;;
9351 esac
9352 for ac_exec_ext in '' $ac_executable_extensions; do
9353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9354 ac_cv_prog_ac_ct_RANLIB="ranlib"
9355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9356 break 2
9357 fi
9358 done
9359 done
9360 IFS=$as_save_IFS
9361
9362 fi ;;
9363 esac
9364 fi
9365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9366 if test -n "$ac_ct_RANLIB"; then
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9368 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9369 else
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371 printf "%s\n" "no" >&6; }
9372 fi
9373
9374 if test "x$ac_ct_RANLIB" = x; then
9375 RANLIB=":"
9376 else
9377 case $cross_compiling:$ac_tool_warned in
9378 yes:)
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9381 ac_tool_warned=yes ;;
9382 esac
9383 RANLIB=$ac_ct_RANLIB
9384 fi
9385 else
9386 RANLIB="$ac_cv_prog_RANLIB"
9387 fi
9388
9389 if test -n "$ac_tool_prefix"; then
9390 for ac_prog in ar
9391 do
9392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 printf %s "checking for $ac_word... " >&6; }
9396 if test ${ac_cv_prog_AR+y}
9397 then :
9398 printf %s "(cached) " >&6
9399 else case e in #(
9400 e) if test -n "$AR"; then
9401 ac_cv_prog_AR="$AR" # Let the user override the test.
9402 else
9403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404 for as_dir in $PATH
9405 do
9406 IFS=$as_save_IFS
9407 case $as_dir in #(((
9408 '') as_dir=./ ;;
9409 */) ;;
9410 *) as_dir=$as_dir/ ;;
9411 esac
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9414 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9416 break 2
9417 fi
9418 done
9419 done
9420 IFS=$as_save_IFS
9421
9422 fi ;;
9423 esac
9424 fi
9425 AR=$ac_cv_prog_AR
9426 if test -n "$AR"; then
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9428 printf "%s\n" "$AR" >&6; }
9429 else
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 printf "%s\n" "no" >&6; }
9432 fi
9433
9434
9435 test -n "$AR" && break
9436 done
9437 fi
9438 if test -z "$AR"; then
9439 ac_ct_AR=$AR
9440 for ac_prog in ar
9441 do
9442 # Extract the first word of "$ac_prog", so it can be a program name with args.
9443 set dummy $ac_prog; ac_word=$2
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 printf %s "checking for $ac_word... " >&6; }
9446 if test ${ac_cv_prog_ac_ct_AR+y}
9447 then :
9448 printf %s "(cached) " >&6
9449 else case e in #(
9450 e) if test -n "$ac_ct_AR"; then
9451 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9452 else
9453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454 for as_dir in $PATH
9455 do
9456 IFS=$as_save_IFS
9457 case $as_dir in #(((
9458 '') as_dir=./ ;;
9459 */) ;;
9460 *) as_dir=$as_dir/ ;;
9461 esac
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9464 ac_cv_prog_ac_ct_AR="$ac_prog"
9465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9466 break 2
9467 fi
9468 done
9469 done
9470 IFS=$as_save_IFS
9471
9472 fi ;;
9473 esac
9474 fi
9475 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9476 if test -n "$ac_ct_AR"; then
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9478 printf "%s\n" "$ac_ct_AR" >&6; }
9479 else
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 printf "%s\n" "no" >&6; }
9482 fi
9483
9484
9485 test -n "$ac_ct_AR" && break
9486 done
9487
9488 if test "x$ac_ct_AR" = x; then
9489 AR="false"
9490 else
9491 case $cross_compiling:$ac_tool_warned in
9492 yes:)
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9494 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9495 ac_tool_warned=yes ;;
9496 esac
9497 AR=$ac_ct_AR
9498 fi
9499 fi
9500
9501 : ${AR=ar}
9502
9503
9504
9505
9506
9507
9508 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9509 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9510 # higher priority because that's what people were doing historically (setting
9511 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9512 # variable obsoleted/removed.
9513
9514 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9515 lt_ar_flags=$AR_FLAGS
9516
9517
9518
9519
9520
9521
9522 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9523 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9524
9525
9526
9527
9528
9529
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9531 printf %s "checking for archiver @FILE support... " >&6; }
9532 if test ${lt_cv_ar_at_file+y}
9533 then :
9534 printf %s "(cached) " >&6
9535 else case e in #(
9536 e) lt_cv_ar_at_file=no
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9539
9540 int
9541 main (void)
9542 {
9543
9544 ;
9545 return 0;
9546 }
9547 _ACEOF
9548 if ac_fn_c_try_compile "$LINENO"
9549 then :
9550 echo conftest.$ac_objext > conftest.lst
9551 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9553 (eval $lt_ar_try) 2>&5
9554 ac_status=$?
9555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9556 test $ac_status = 0; }
9557 if test 0 -eq "$ac_status"; then
9558 # Ensure the archiver fails upon bogus file names.
9559 rm -f conftest.$ac_objext libconftest.a
9560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9561 (eval $lt_ar_try) 2>&5
9562 ac_status=$?
9563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9564 test $ac_status = 0; }
9565 if test 0 -ne "$ac_status"; then
9566 lt_cv_ar_at_file=@
9567 fi
9568 fi
9569 rm -f conftest.* libconftest.a
9570
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9573 ;;
9574 esac
9575 fi
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9577 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9578
9579 if test no = "$lt_cv_ar_at_file"; then
9580 archiver_list_spec=
9581 else
9582 archiver_list_spec=$lt_cv_ar_at_file
9583 fi
9584
9585
9586
9587
9588
9589
9590
9591 if test -n "$ac_tool_prefix"; then
9592 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9593 set dummy ${ac_tool_prefix}strip; ac_word=$2
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 printf %s "checking for $ac_word... " >&6; }
9596 if test ${ac_cv_prog_STRIP+y}
9597 then :
9598 printf %s "(cached) " >&6
9599 else case e in #(
9600 e) if test -n "$STRIP"; then
9601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9602 else
9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604 for as_dir in $PATH
9605 do
9606 IFS=$as_save_IFS
9607 case $as_dir in #(((
9608 '') as_dir=./ ;;
9609 */) ;;
9610 *) as_dir=$as_dir/ ;;
9611 esac
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9614 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9616 break 2
9617 fi
9618 done
9619 done
9620 IFS=$as_save_IFS
9621
9622 fi ;;
9623 esac
9624 fi
9625 STRIP=$ac_cv_prog_STRIP
9626 if test -n "$STRIP"; then
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9628 printf "%s\n" "$STRIP" >&6; }
9629 else
9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 printf "%s\n" "no" >&6; }
9632 fi
9633
9634
9635 fi
9636 if test -z "$ac_cv_prog_STRIP"; then
9637 ac_ct_STRIP=$STRIP
9638 # Extract the first word of "strip", so it can be a program name with args.
9639 set dummy strip; ac_word=$2
9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 printf %s "checking for $ac_word... " >&6; }
9642 if test ${ac_cv_prog_ac_ct_STRIP+y}
9643 then :
9644 printf %s "(cached) " >&6
9645 else case e in #(
9646 e) if test -n "$ac_ct_STRIP"; then
9647 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9648 else
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9651 do
9652 IFS=$as_save_IFS
9653 case $as_dir in #(((
9654 '') as_dir=./ ;;
9655 */) ;;
9656 *) as_dir=$as_dir/ ;;
9657 esac
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9660 ac_cv_prog_ac_ct_STRIP="strip"
9661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9662 break 2
9663 fi
9664 done
9665 done
9666 IFS=$as_save_IFS
9667
9668 fi ;;
9669 esac
9670 fi
9671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9672 if test -n "$ac_ct_STRIP"; then
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9674 printf "%s\n" "$ac_ct_STRIP" >&6; }
9675 else
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 printf "%s\n" "no" >&6; }
9678 fi
9679
9680 if test "x$ac_ct_STRIP" = x; then
9681 STRIP=":"
9682 else
9683 case $cross_compiling:$ac_tool_warned in
9684 yes:)
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9686 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9687 ac_tool_warned=yes ;;
9688 esac
9689 STRIP=$ac_ct_STRIP
9690 fi
9691 else
9692 STRIP="$ac_cv_prog_STRIP"
9693 fi
9694
9695 test -z "$STRIP" && STRIP=:
9696
9697
9698
9699
9700
9701
9702
9703 test -z "$RANLIB" && RANLIB=:
9704
9705
9706
9707
9708
9709
9710 # Determine commands to create old-style static archives.
9711 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9712 old_postinstall_cmds='chmod 644 $oldlib'
9713 old_postuninstall_cmds=
9714
9715 if test -n "$RANLIB"; then
9716 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9718 fi
9719
9720 case $host_os in
9721 darwin*)
9722 lock_old_archive_extraction=yes ;;
9723 *)
9724 lock_old_archive_extraction=no ;;
9725 esac
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765 # If no C compiler was specified, use CC.
9766 LTCC=${LTCC-"$CC"}
9767
9768 # If no C compiler flags were specified, use CFLAGS.
9769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9770
9771 # Allow CC to be a program name with arguments.
9772 compiler=$CC
9773
9774
9775 # Check for command to grab the raw symbol name followed by C symbol from nm.
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9777 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9778 if test ${lt_cv_sys_global_symbol_pipe+y}
9779 then :
9780 printf %s "(cached) " >&6
9781 else case e in #(
9782 e)
9783 # These are sane defaults that work on at least a few old systems.
9784 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9785
9786 # Character class describing NM global symbol codes.
9787 symcode='[BCDEGRST]'
9788
9789 # Regexp to match symbols that can be accessed directly from C.
9790 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9791
9792 # Define system-specific variables.
9793 case $host_os in
9794 aix*)
9795 symcode='[BCDT]'
9796 ;;
9797 cygwin* | mingw* | windows* | pw32* | cegcc*)
9798 symcode='[ABCDGISTW]'
9799 ;;
9800 hpux*)
9801 if test ia64 = "$host_cpu"; then
9802 symcode='[ABCDEGRST]'
9803 fi
9804 ;;
9805 irix* | nonstopux*)
9806 symcode='[BCDEGRST]'
9807 ;;
9808 osf*)
9809 symcode='[BCDEGQRST]'
9810 ;;
9811 solaris*)
9812 symcode='[BCDRT]'
9813 ;;
9814 sco3.2v5*)
9815 symcode='[DT]'
9816 ;;
9817 sysv4.2uw2*)
9818 symcode='[DT]'
9819 ;;
9820 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9821 symcode='[ABDT]'
9822 ;;
9823 sysv4)
9824 symcode='[DFNSTU]'
9825 ;;
9826 esac
9827
9828 # If we're using GNU nm, then use its standard symbol codes.
9829 case `$NM -V 2>&1` in
9830 *GNU* | *'with BFD'*)
9831 symcode='[ABCDGIRSTW]' ;;
9832 esac
9833
9834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9835 # Gets list of data symbols to import.
9836 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9837 # Adjust the below global symbol transforms to fixup imported variables.
9838 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9839 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9840 lt_c_name_lib_hook="\
9841 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9842 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9843 else
9844 # Disable hooks by default.
9845 lt_cv_sys_global_symbol_to_import=
9846 lt_cdecl_hook=
9847 lt_c_name_hook=
9848 lt_c_name_lib_hook=
9849 fi
9850
9851 # Transform an extracted symbol line into a proper C declaration.
9852 # Some systems (esp. on ia64) link data and code symbols differently,
9853 # so use this general approach.
9854 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9855 $lt_cdecl_hook\
9856 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9857 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9858
9859 # Transform an extracted symbol line into symbol name and symbol address
9860 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9861 $lt_c_name_hook\
9862 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9863 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9864
9865 # Transform an extracted symbol line into symbol name with lib prefix and
9866 # symbol address.
9867 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9868 $lt_c_name_lib_hook\
9869 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9870 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9871 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9872
9873 # Handle CRLF in mingw tool chain
9874 opt_cr=
9875 case $build_os in
9876 mingw* | windows*)
9877 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9878 ;;
9879 esac
9880
9881 # Try without a prefix underscore, then with it.
9882 for ac_symprfx in "" "_"; do
9883
9884 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9885 symxfrm="\\1 $ac_symprfx\\2 \\2"
9886
9887 # Write the raw and C identifiers.
9888 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9889 # Fake it for dumpbin and say T for any non-static function,
9890 # D for any global variable and I for any imported variable.
9891 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9892 # which start with @ or ?.
9893 lt_cv_sys_global_symbol_pipe="$AWK '"\
9894 " {last_section=section; section=\$ 3};"\
9895 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9896 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9897 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9898 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9899 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9900 " \$ 0!~/External *\|/{next};"\
9901 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9902 " {if(hide[section]) next};"\
9903 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9904 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9905 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9906 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9907 " ' prfx=^$ac_symprfx"
9908 else
9909 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9910 fi
9911 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9912
9913 # Check to see that the pipe works correctly.
9914 pipe_works=no
9915
9916 rm -f conftest*
9917 cat > conftest.$ac_ext <<_LT_EOF
9918 #ifdef __cplusplus
9919 extern "C" {
9920 #endif
9921 char nm_test_var;
9922 void nm_test_func(void);
9923 void nm_test_func(void){}
9924 #ifdef __cplusplus
9925 }
9926 #endif
9927 int main(void){nm_test_var='a';nm_test_func();return(0);}
9928 _LT_EOF
9929
9930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9931 (eval $ac_compile) 2>&5
9932 ac_status=$?
9933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9934 test $ac_status = 0; }; then
9935 # Now try to grab the symbols.
9936 nlist=conftest.nm
9937 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9938 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9939 # Try sorting and uniquifying the output.
9940 if sort "$nlist" | uniq > "$nlist"T; then
9941 mv -f "$nlist"T "$nlist"
9942 else
9943 rm -f "$nlist"T
9944 fi
9945
9946 # Make sure that we snagged all the symbols we need.
9947 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9948 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9949 cat <<_LT_EOF > conftest.$ac_ext
9950 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9951 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9952 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9953 relocations are performed -- see ld's documentation on pseudo-relocs. */
9954 # define LT_DLSYM_CONST
9955 #elif defined __osf__
9956 /* This system does not cope well with relocations in const data. */
9957 # define LT_DLSYM_CONST
9958 #else
9959 # define LT_DLSYM_CONST const
9960 #endif
9961
9962 #ifdef __cplusplus
9963 extern "C" {
9964 #endif
9965
9966 _LT_EOF
9967 # Now generate the symbol file.
9968 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9969
9970 cat <<_LT_EOF >> conftest.$ac_ext
9971
9972 /* The mapping between symbol names and symbols. */
9973 LT_DLSYM_CONST struct {
9974 const char *name;
9975 void *address;
9976 }
9977 lt__PROGRAM__LTX_preloaded_symbols[] =
9978 {
9979 { "@PROGRAM@", (void *) 0 },
9980 _LT_EOF
9981 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9982 cat <<\_LT_EOF >> conftest.$ac_ext
9983 {0, (void *) 0}
9984 };
9985
9986 /* This works around a problem in FreeBSD linker */
9987 #ifdef FREEBSD_WORKAROUND
9988 static const void *lt_preloaded_setup() {
9989 return lt__PROGRAM__LTX_preloaded_symbols;
9990 }
9991 #endif
9992
9993 #ifdef __cplusplus
9994 }
9995 #endif
9996 _LT_EOF
9997 # Now try linking the two files.
9998 mv conftest.$ac_objext conftstm.$ac_objext
9999 lt_globsym_save_LIBS=$LIBS
10000 lt_globsym_save_CFLAGS=$CFLAGS
10001 LIBS=conftstm.$ac_objext
10002 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10004 (eval $ac_link) 2>&5
10005 ac_status=$?
10006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10007 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10008 pipe_works=yes
10009 fi
10010 LIBS=$lt_globsym_save_LIBS
10011 CFLAGS=$lt_globsym_save_CFLAGS
10012 else
10013 echo "cannot find nm_test_func in $nlist" >&5
10014 fi
10015 else
10016 echo "cannot find nm_test_var in $nlist" >&5
10017 fi
10018 else
10019 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10020 fi
10021 else
10022 echo "$progname: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024 fi
10025 rm -rf conftest* conftst*
10026
10027 # Do not use the global_symbol_pipe unless it works.
10028 if test yes = "$pipe_works"; then
10029 break
10030 else
10031 lt_cv_sys_global_symbol_pipe=
10032 fi
10033 done
10034 ;;
10035 esac
10036 fi
10037
10038 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10039 lt_cv_sys_global_symbol_to_cdecl=
10040 fi
10041 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10043 printf "%s\n" "failed" >&6; }
10044 else
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10046 printf "%s\n" "ok" >&6; }
10047 fi
10048
10049 # Response file support.
10050 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10051 nm_file_list_spec='@'
10052 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10053 nm_file_list_spec='@'
10054 fi
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10093 printf %s "checking for sysroot... " >&6; }
10094
10095 # Check whether --with-sysroot was given.
10096 if test ${with_sysroot+y}
10097 then :
10098 withval=$with_sysroot;
10099 else case e in #(
10100 e) with_sysroot=no ;;
10101 esac
10102 fi
10103
10104
10105 lt_sysroot=
10106 case $with_sysroot in #(
10107 yes)
10108 if test yes = "$GCC"; then
10109 # Trim trailing / since we'll always append absolute paths and we want
10110 # to avoid //, if only for less confusing output for the user.
10111 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
10112 fi
10113 ;; #(
10114 /*)
10115 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10116 ;; #(
10117 no|'')
10118 ;; #(
10119 *)
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10121 printf "%s\n" "$with_sysroot" >&6; }
10122 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10123 ;;
10124 esac
10125
10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10127 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10128
10129
10130
10131
10132
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10134 printf %s "checking for a working dd... " >&6; }
10135 if test ${ac_cv_path_lt_DD+y}
10136 then :
10137 printf %s "(cached) " >&6
10138 else case e in #(
10139 e) printf 0123456789abcdef0123456789abcdef >conftest.i
10140 cat conftest.i conftest.i >conftest2.i
10141 : ${lt_DD:=$DD}
10142 if test -z "$lt_DD"; then
10143 ac_path_lt_DD_found=false
10144 # Loop through the user's path and test for each of PROGNAME-LIST
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10147 do
10148 IFS=$as_save_IFS
10149 case $as_dir in #(((
10150 '') as_dir=./ ;;
10151 */) ;;
10152 *) as_dir=$as_dir/ ;;
10153 esac
10154 for ac_prog in dd
10155 do
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10158 as_fn_executable_p "$ac_path_lt_DD" || continue
10159 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10160 cmp -s conftest.i conftest.out \
10161 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10162 fi
10163 $ac_path_lt_DD_found && break 3
10164 done
10165 done
10166 done
10167 IFS=$as_save_IFS
10168 if test -z "$ac_cv_path_lt_DD"; then
10169 :
10170 fi
10171 else
10172 ac_cv_path_lt_DD=$lt_DD
10173 fi
10174
10175 rm -f conftest.i conftest2.i conftest.out ;;
10176 esac
10177 fi
10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10179 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10180
10181
10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10183 printf %s "checking how to truncate binary pipes... " >&6; }
10184 if test ${lt_cv_truncate_bin+y}
10185 then :
10186 printf %s "(cached) " >&6
10187 else case e in #(
10188 e) printf 0123456789abcdef0123456789abcdef >conftest.i
10189 cat conftest.i conftest.i >conftest2.i
10190 lt_cv_truncate_bin=
10191 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10192 cmp -s conftest.i conftest.out \
10193 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10194 fi
10195 rm -f conftest.i conftest2.i conftest.out
10196 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
10197 esac
10198 fi
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10200 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10201
10202
10203
10204
10205
10206
10207
10208 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10209 func_cc_basename ()
10210 {
10211 for cc_temp in $*""; do
10212 case $cc_temp in
10213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10215 \-*) ;;
10216 *) break;;
10217 esac
10218 done
10219 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10220 }
10221
10222 # Check whether --enable-libtool-lock was given.
10223 if test ${enable_libtool_lock+y}
10224 then :
10225 enableval=$enable_libtool_lock;
10226 fi
10227
10228 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10229
10230 # Some flags need to be propagated to the compiler or linker for good
10231 # libtool support.
10232 case $host in
10233 ia64-*-hpux*)
10234 # Find out what ABI is being produced by ac_compile, and set mode
10235 # options accordingly.
10236 echo 'int i;' > conftest.$ac_ext
10237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10238 (eval $ac_compile) 2>&5
10239 ac_status=$?
10240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10241 test $ac_status = 0; }; then
10242 case `$FILECMD conftest.$ac_objext` in
10243 *ELF-32*)
10244 HPUX_IA64_MODE=32
10245 ;;
10246 *ELF-64*)
10247 HPUX_IA64_MODE=64
10248 ;;
10249 esac
10250 fi
10251 rm -rf conftest*
10252 ;;
10253 *-*-irix6*)
10254 # Find out what ABI is being produced by ac_compile, and set linker
10255 # options accordingly.
10256 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10258 (eval $ac_compile) 2>&5
10259 ac_status=$?
10260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10261 test $ac_status = 0; }; then
10262 if test yes = "$lt_cv_prog_gnu_ld"; then
10263 case `$FILECMD conftest.$ac_objext` in
10264 *32-bit*)
10265 LD="${LD-ld} -melf32bsmip"
10266 ;;
10267 *N32*)
10268 LD="${LD-ld} -melf32bmipn32"
10269 ;;
10270 *64-bit*)
10271 LD="${LD-ld} -melf64bmip"
10272 ;;
10273 esac
10274 else
10275 case `$FILECMD conftest.$ac_objext` in
10276 *32-bit*)
10277 LD="${LD-ld} -32"
10278 ;;
10279 *N32*)
10280 LD="${LD-ld} -n32"
10281 ;;
10282 *64-bit*)
10283 LD="${LD-ld} -64"
10284 ;;
10285 esac
10286 fi
10287 fi
10288 rm -rf conftest*
10289 ;;
10290
10291 mips64*-*linux*)
10292 # Find out what ABI is being produced by ac_compile, and set linker
10293 # options accordingly.
10294 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10296 (eval $ac_compile) 2>&5
10297 ac_status=$?
10298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10299 test $ac_status = 0; }; then
10300 emul=elf
10301 case `$FILECMD conftest.$ac_objext` in
10302 *32-bit*)
10303 emul="${emul}32"
10304 ;;
10305 *64-bit*)
10306 emul="${emul}64"
10307 ;;
10308 esac
10309 case `$FILECMD conftest.$ac_objext` in
10310 *MSB*)
10311 emul="${emul}btsmip"
10312 ;;
10313 *LSB*)
10314 emul="${emul}ltsmip"
10315 ;;
10316 esac
10317 case `$FILECMD conftest.$ac_objext` in
10318 *N32*)
10319 emul="${emul}n32"
10320 ;;
10321 esac
10322 LD="${LD-ld} -m $emul"
10323 fi
10324 rm -rf conftest*
10325 ;;
10326
10327 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10328 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
10329 # Find out what ABI is being produced by ac_compile, and set linker
10330 # options accordingly. Note that the listed cases only cover the
10331 # situations where additional linker options are needed (such as when
10332 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10333 # vice versa); the common cases where no linker options are needed do
10334 # not appear in the list.
10335 echo 'int i;' > conftest.$ac_ext
10336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10337 (eval $ac_compile) 2>&5
10338 ac_status=$?
10339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10340 test $ac_status = 0; }; then
10341 case `$FILECMD conftest.o` in
10342 *32-bit*)
10343 case $host in
10344 x86_64-*kfreebsd*-gnu)
10345 LD="${LD-ld} -m elf_i386_fbsd"
10346 ;;
10347 x86_64-*linux*|x86_64-gnu*)
10348 case `$FILECMD conftest.o` in
10349 *x86-64*)
10350 LD="${LD-ld} -m elf32_x86_64"
10351 ;;
10352 *)
10353 LD="${LD-ld} -m elf_i386"
10354 ;;
10355 esac
10356 ;;
10357 powerpc64le-*linux*)
10358 LD="${LD-ld} -m elf32lppclinux"
10359 ;;
10360 powerpc64-*linux*)
10361 LD="${LD-ld} -m elf32ppclinux"
10362 ;;
10363 s390x-*linux*)
10364 LD="${LD-ld} -m elf_s390"
10365 ;;
10366 sparc64-*linux*)
10367 LD="${LD-ld} -m elf32_sparc"
10368 ;;
10369 esac
10370 ;;
10371 *64-bit*)
10372 case $host in
10373 x86_64-*kfreebsd*-gnu)
10374 LD="${LD-ld} -m elf_x86_64_fbsd"
10375 ;;
10376 x86_64-*linux*|x86_64-gnu*)
10377 LD="${LD-ld} -m elf_x86_64"
10378 ;;
10379 powerpcle-*linux*)
10380 LD="${LD-ld} -m elf64lppc"
10381 ;;
10382 powerpc-*linux*)
10383 LD="${LD-ld} -m elf64ppc"
10384 ;;
10385 s390*-*linux*|s390*-*tpf*)
10386 LD="${LD-ld} -m elf64_s390"
10387 ;;
10388 sparc*-*linux*)
10389 LD="${LD-ld} -m elf64_sparc"
10390 ;;
10391 esac
10392 ;;
10393 esac
10394 fi
10395 rm -rf conftest*
10396 ;;
10397
10398 *-*-sco3.2v5*)
10399 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10400 SAVE_CFLAGS=$CFLAGS
10401 CFLAGS="$CFLAGS -belf"
10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10403 printf %s "checking whether the C compiler needs -belf... " >&6; }
10404 if test ${lt_cv_cc_needs_belf+y}
10405 then :
10406 printf %s "(cached) " >&6
10407 else case e in #(
10408 e) ac_ext=c
10409 ac_cpp='$CPP $CPPFLAGS'
10410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10413
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416
10417 int
10418 main (void)
10419 {
10420
10421 ;
10422 return 0;
10423 }
10424 _ACEOF
10425 if ac_fn_c_try_link "$LINENO"
10426 then :
10427 lt_cv_cc_needs_belf=yes
10428 else case e in #(
10429 e) lt_cv_cc_needs_belf=no ;;
10430 esac
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10433 conftest$ac_exeext conftest.$ac_ext
10434 ac_ext=c
10435 ac_cpp='$CPP $CPPFLAGS'
10436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10439 ;;
10440 esac
10441 fi
10442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10443 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10444 if test yes != "$lt_cv_cc_needs_belf"; then
10445 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10446 CFLAGS=$SAVE_CFLAGS
10447 fi
10448 ;;
10449 *-*solaris*)
10450 # Find out what ABI is being produced by ac_compile, and set linker
10451 # options accordingly.
10452 echo 'int i;' > conftest.$ac_ext
10453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10454 (eval $ac_compile) 2>&5
10455 ac_status=$?
10456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10457 test $ac_status = 0; }; then
10458 case `$FILECMD conftest.o` in
10459 *64-bit*)
10460 case $lt_cv_prog_gnu_ld in
10461 yes*)
10462 case $host in
10463 i?86-*-solaris*|x86_64-*-solaris*)
10464 LD="${LD-ld} -m elf_x86_64"
10465 ;;
10466 sparc*-*-solaris*)
10467 LD="${LD-ld} -m elf64_sparc"
10468 ;;
10469 esac
10470 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10471 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10472 LD=${LD-ld}_sol2
10473 fi
10474 ;;
10475 *)
10476 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10477 LD="${LD-ld} -64"
10478 fi
10479 ;;
10480 esac
10481 ;;
10482 esac
10483 fi
10484 rm -rf conftest*
10485 ;;
10486 esac
10487
10488 need_locks=$enable_libtool_lock
10489
10490 if test -n "$ac_tool_prefix"; then
10491 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10492 set dummy ${ac_tool_prefix}mt; ac_word=$2
10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494 printf %s "checking for $ac_word... " >&6; }
10495 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10496 then :
10497 printf %s "(cached) " >&6
10498 else case e in #(
10499 e) if test -n "$MANIFEST_TOOL"; then
10500 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10501 else
10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10504 do
10505 IFS=$as_save_IFS
10506 case $as_dir in #(((
10507 '') as_dir=./ ;;
10508 */) ;;
10509 *) as_dir=$as_dir/ ;;
10510 esac
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10513 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10515 break 2
10516 fi
10517 done
10518 done
10519 IFS=$as_save_IFS
10520
10521 fi ;;
10522 esac
10523 fi
10524 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10525 if test -n "$MANIFEST_TOOL"; then
10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10527 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10528 else
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 printf "%s\n" "no" >&6; }
10531 fi
10532
10533
10534 fi
10535 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10536 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10537 # Extract the first word of "mt", so it can be a program name with args.
10538 set dummy mt; ac_word=$2
10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 printf %s "checking for $ac_word... " >&6; }
10541 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10542 then :
10543 printf %s "(cached) " >&6
10544 else case e in #(
10545 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
10546 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10547 else
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10550 do
10551 IFS=$as_save_IFS
10552 case $as_dir in #(((
10553 '') as_dir=./ ;;
10554 */) ;;
10555 *) as_dir=$as_dir/ ;;
10556 esac
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10559 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10561 break 2
10562 fi
10563 done
10564 done
10565 IFS=$as_save_IFS
10566
10567 fi ;;
10568 esac
10569 fi
10570 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10571 if test -n "$ac_ct_MANIFEST_TOOL"; then
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10573 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10574 else
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 printf "%s\n" "no" >&6; }
10577 fi
10578
10579 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10580 MANIFEST_TOOL=":"
10581 else
10582 case $cross_compiling:$ac_tool_warned in
10583 yes:)
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10585 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10586 ac_tool_warned=yes ;;
10587 esac
10588 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10589 fi
10590 else
10591 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10592 fi
10593
10594 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10596 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10597 if test ${lt_cv_path_manifest_tool+y}
10598 then :
10599 printf %s "(cached) " >&6
10600 else case e in #(
10601 e) lt_cv_path_manifest_tool=no
10602 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10603 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10604 cat conftest.err >&5
10605 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10606 lt_cv_path_manifest_tool=yes
10607 fi
10608 rm -f conftest* ;;
10609 esac
10610 fi
10611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
10612 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
10613 if test yes != "$lt_cv_path_manifest_tool"; then
10614 MANIFEST_TOOL=:
10615 fi
10616
10617
10618
10619
10620
10621
10622 case $host_os in
10623 rhapsody* | darwin*)
10624 if test -n "$ac_tool_prefix"; then
10625 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10626 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10628 printf %s "checking for $ac_word... " >&6; }
10629 if test ${ac_cv_prog_DSYMUTIL+y}
10630 then :
10631 printf %s "(cached) " >&6
10632 else case e in #(
10633 e) if test -n "$DSYMUTIL"; then
10634 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10635 else
10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637 for as_dir in $PATH
10638 do
10639 IFS=$as_save_IFS
10640 case $as_dir in #(((
10641 '') as_dir=./ ;;
10642 */) ;;
10643 *) as_dir=$as_dir/ ;;
10644 esac
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10647 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10649 break 2
10650 fi
10651 done
10652 done
10653 IFS=$as_save_IFS
10654
10655 fi ;;
10656 esac
10657 fi
10658 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10659 if test -n "$DSYMUTIL"; then
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10661 printf "%s\n" "$DSYMUTIL" >&6; }
10662 else
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 printf "%s\n" "no" >&6; }
10665 fi
10666
10667
10668 fi
10669 if test -z "$ac_cv_prog_DSYMUTIL"; then
10670 ac_ct_DSYMUTIL=$DSYMUTIL
10671 # Extract the first word of "dsymutil", so it can be a program name with args.
10672 set dummy dsymutil; ac_word=$2
10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 printf %s "checking for $ac_word... " >&6; }
10675 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10676 then :
10677 printf %s "(cached) " >&6
10678 else case e in #(
10679 e) if test -n "$ac_ct_DSYMUTIL"; then
10680 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10681 else
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10684 do
10685 IFS=$as_save_IFS
10686 case $as_dir in #(((
10687 '') as_dir=./ ;;
10688 */) ;;
10689 *) as_dir=$as_dir/ ;;
10690 esac
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10693 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10695 break 2
10696 fi
10697 done
10698 done
10699 IFS=$as_save_IFS
10700
10701 fi ;;
10702 esac
10703 fi
10704 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10705 if test -n "$ac_ct_DSYMUTIL"; then
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10707 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10708 else
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 printf "%s\n" "no" >&6; }
10711 fi
10712
10713 if test "x$ac_ct_DSYMUTIL" = x; then
10714 DSYMUTIL=":"
10715 else
10716 case $cross_compiling:$ac_tool_warned in
10717 yes:)
10718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10720 ac_tool_warned=yes ;;
10721 esac
10722 DSYMUTIL=$ac_ct_DSYMUTIL
10723 fi
10724 else
10725 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10726 fi
10727
10728 if test -n "$ac_tool_prefix"; then
10729 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10730 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732 printf %s "checking for $ac_word... " >&6; }
10733 if test ${ac_cv_prog_NMEDIT+y}
10734 then :
10735 printf %s "(cached) " >&6
10736 else case e in #(
10737 e) if test -n "$NMEDIT"; then
10738 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10739 else
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10742 do
10743 IFS=$as_save_IFS
10744 case $as_dir in #(((
10745 '') as_dir=./ ;;
10746 */) ;;
10747 *) as_dir=$as_dir/ ;;
10748 esac
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10751 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10753 break 2
10754 fi
10755 done
10756 done
10757 IFS=$as_save_IFS
10758
10759 fi ;;
10760 esac
10761 fi
10762 NMEDIT=$ac_cv_prog_NMEDIT
10763 if test -n "$NMEDIT"; then
10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10765 printf "%s\n" "$NMEDIT" >&6; }
10766 else
10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 printf "%s\n" "no" >&6; }
10769 fi
10770
10771
10772 fi
10773 if test -z "$ac_cv_prog_NMEDIT"; then
10774 ac_ct_NMEDIT=$NMEDIT
10775 # Extract the first word of "nmedit", so it can be a program name with args.
10776 set dummy nmedit; ac_word=$2
10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778 printf %s "checking for $ac_word... " >&6; }
10779 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10780 then :
10781 printf %s "(cached) " >&6
10782 else case e in #(
10783 e) if test -n "$ac_ct_NMEDIT"; then
10784 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10785 else
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in $PATH
10788 do
10789 IFS=$as_save_IFS
10790 case $as_dir in #(((
10791 '') as_dir=./ ;;
10792 */) ;;
10793 *) as_dir=$as_dir/ ;;
10794 esac
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10797 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10799 break 2
10800 fi
10801 done
10802 done
10803 IFS=$as_save_IFS
10804
10805 fi ;;
10806 esac
10807 fi
10808 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10809 if test -n "$ac_ct_NMEDIT"; then
10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10811 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10812 else
10813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 printf "%s\n" "no" >&6; }
10815 fi
10816
10817 if test "x$ac_ct_NMEDIT" = x; then
10818 NMEDIT=":"
10819 else
10820 case $cross_compiling:$ac_tool_warned in
10821 yes:)
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10823 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10824 ac_tool_warned=yes ;;
10825 esac
10826 NMEDIT=$ac_ct_NMEDIT
10827 fi
10828 else
10829 NMEDIT="$ac_cv_prog_NMEDIT"
10830 fi
10831
10832 if test -n "$ac_tool_prefix"; then
10833 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10834 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 printf %s "checking for $ac_word... " >&6; }
10837 if test ${ac_cv_prog_LIPO+y}
10838 then :
10839 printf %s "(cached) " >&6
10840 else case e in #(
10841 e) if test -n "$LIPO"; then
10842 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10843 else
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH
10846 do
10847 IFS=$as_save_IFS
10848 case $as_dir in #(((
10849 '') as_dir=./ ;;
10850 */) ;;
10851 *) as_dir=$as_dir/ ;;
10852 esac
10853 for ac_exec_ext in '' $ac_executable_extensions; do
10854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10855 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10857 break 2
10858 fi
10859 done
10860 done
10861 IFS=$as_save_IFS
10862
10863 fi ;;
10864 esac
10865 fi
10866 LIPO=$ac_cv_prog_LIPO
10867 if test -n "$LIPO"; then
10868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10869 printf "%s\n" "$LIPO" >&6; }
10870 else
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 printf "%s\n" "no" >&6; }
10873 fi
10874
10875
10876 fi
10877 if test -z "$ac_cv_prog_LIPO"; then
10878 ac_ct_LIPO=$LIPO
10879 # Extract the first word of "lipo", so it can be a program name with args.
10880 set dummy lipo; ac_word=$2
10881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 printf %s "checking for $ac_word... " >&6; }
10883 if test ${ac_cv_prog_ac_ct_LIPO+y}
10884 then :
10885 printf %s "(cached) " >&6
10886 else case e in #(
10887 e) if test -n "$ac_ct_LIPO"; then
10888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10889 else
10890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10891 for as_dir in $PATH
10892 do
10893 IFS=$as_save_IFS
10894 case $as_dir in #(((
10895 '') as_dir=./ ;;
10896 */) ;;
10897 *) as_dir=$as_dir/ ;;
10898 esac
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10901 ac_cv_prog_ac_ct_LIPO="lipo"
10902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10903 break 2
10904 fi
10905 done
10906 done
10907 IFS=$as_save_IFS
10908
10909 fi ;;
10910 esac
10911 fi
10912 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10913 if test -n "$ac_ct_LIPO"; then
10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10915 printf "%s\n" "$ac_ct_LIPO" >&6; }
10916 else
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 printf "%s\n" "no" >&6; }
10919 fi
10920
10921 if test "x$ac_ct_LIPO" = x; then
10922 LIPO=":"
10923 else
10924 case $cross_compiling:$ac_tool_warned in
10925 yes:)
10926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10928 ac_tool_warned=yes ;;
10929 esac
10930 LIPO=$ac_ct_LIPO
10931 fi
10932 else
10933 LIPO="$ac_cv_prog_LIPO"
10934 fi
10935
10936 if test -n "$ac_tool_prefix"; then
10937 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10938 set dummy ${ac_tool_prefix}otool; ac_word=$2
10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 printf %s "checking for $ac_word... " >&6; }
10941 if test ${ac_cv_prog_OTOOL+y}
10942 then :
10943 printf %s "(cached) " >&6
10944 else case e in #(
10945 e) if test -n "$OTOOL"; then
10946 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10947 else
10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10950 do
10951 IFS=$as_save_IFS
10952 case $as_dir in #(((
10953 '') as_dir=./ ;;
10954 */) ;;
10955 *) as_dir=$as_dir/ ;;
10956 esac
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10959 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963 done
10964 done
10965 IFS=$as_save_IFS
10966
10967 fi ;;
10968 esac
10969 fi
10970 OTOOL=$ac_cv_prog_OTOOL
10971 if test -n "$OTOOL"; then
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10973 printf "%s\n" "$OTOOL" >&6; }
10974 else
10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 printf "%s\n" "no" >&6; }
10977 fi
10978
10979
10980 fi
10981 if test -z "$ac_cv_prog_OTOOL"; then
10982 ac_ct_OTOOL=$OTOOL
10983 # Extract the first word of "otool", so it can be a program name with args.
10984 set dummy otool; ac_word=$2
10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 printf %s "checking for $ac_word... " >&6; }
10987 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10988 then :
10989 printf %s "(cached) " >&6
10990 else case e in #(
10991 e) if test -n "$ac_ct_OTOOL"; then
10992 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10993 else
10994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995 for as_dir in $PATH
10996 do
10997 IFS=$as_save_IFS
10998 case $as_dir in #(((
10999 '') as_dir=./ ;;
11000 */) ;;
11001 *) as_dir=$as_dir/ ;;
11002 esac
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_OTOOL="otool"
11006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009 done
11010 done
11011 IFS=$as_save_IFS
11012
11013 fi ;;
11014 esac
11015 fi
11016 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11017 if test -n "$ac_ct_OTOOL"; then
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11019 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11020 else
11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 printf "%s\n" "no" >&6; }
11023 fi
11024
11025 if test "x$ac_ct_OTOOL" = x; then
11026 OTOOL=":"
11027 else
11028 case $cross_compiling:$ac_tool_warned in
11029 yes:)
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11032 ac_tool_warned=yes ;;
11033 esac
11034 OTOOL=$ac_ct_OTOOL
11035 fi
11036 else
11037 OTOOL="$ac_cv_prog_OTOOL"
11038 fi
11039
11040 if test -n "$ac_tool_prefix"; then
11041 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11042 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11044 printf %s "checking for $ac_word... " >&6; }
11045 if test ${ac_cv_prog_OTOOL64+y}
11046 then :
11047 printf %s "(cached) " >&6
11048 else case e in #(
11049 e) if test -n "$OTOOL64"; then
11050 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11051 else
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11054 do
11055 IFS=$as_save_IFS
11056 case $as_dir in #(((
11057 '') as_dir=./ ;;
11058 */) ;;
11059 *) as_dir=$as_dir/ ;;
11060 esac
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11063 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11065 break 2
11066 fi
11067 done
11068 done
11069 IFS=$as_save_IFS
11070
11071 fi ;;
11072 esac
11073 fi
11074 OTOOL64=$ac_cv_prog_OTOOL64
11075 if test -n "$OTOOL64"; then
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11077 printf "%s\n" "$OTOOL64" >&6; }
11078 else
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 printf "%s\n" "no" >&6; }
11081 fi
11082
11083
11084 fi
11085 if test -z "$ac_cv_prog_OTOOL64"; then
11086 ac_ct_OTOOL64=$OTOOL64
11087 # Extract the first word of "otool64", so it can be a program name with args.
11088 set dummy otool64; ac_word=$2
11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 printf %s "checking for $ac_word... " >&6; }
11091 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11092 then :
11093 printf %s "(cached) " >&6
11094 else case e in #(
11095 e) if test -n "$ac_ct_OTOOL64"; then
11096 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11097 else
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $PATH
11100 do
11101 IFS=$as_save_IFS
11102 case $as_dir in #(((
11103 '') as_dir=./ ;;
11104 */) ;;
11105 *) as_dir=$as_dir/ ;;
11106 esac
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11109 ac_cv_prog_ac_ct_OTOOL64="otool64"
11110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11111 break 2
11112 fi
11113 done
11114 done
11115 IFS=$as_save_IFS
11116
11117 fi ;;
11118 esac
11119 fi
11120 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11121 if test -n "$ac_ct_OTOOL64"; then
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11123 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11124 else
11125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 printf "%s\n" "no" >&6; }
11127 fi
11128
11129 if test "x$ac_ct_OTOOL64" = x; then
11130 OTOOL64=":"
11131 else
11132 case $cross_compiling:$ac_tool_warned in
11133 yes:)
11134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11135 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11136 ac_tool_warned=yes ;;
11137 esac
11138 OTOOL64=$ac_ct_OTOOL64
11139 fi
11140 else
11141 OTOOL64="$ac_cv_prog_OTOOL64"
11142 fi
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11171 printf %s "checking for -single_module linker flag... " >&6; }
11172 if test ${lt_cv_apple_cc_single_mod+y}
11173 then :
11174 printf %s "(cached) " >&6
11175 else case e in #(
11176 e) lt_cv_apple_cc_single_mod=no
11177 if test -z "$LT_MULTI_MODULE"; then
11178 # By default we will add the -single_module flag. You can override
11179 # by either setting the environment variable LT_MULTI_MODULE
11180 # non-empty at configure time, or by adding -multi_module to the
11181 # link flags.
11182 rm -rf libconftest.dylib*
11183 echo "int foo(void){return 1;}" > conftest.c
11184 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11185 -dynamiclib -Wl,-single_module conftest.c" >&5
11186 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11187 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11188 _lt_result=$?
11189 # If there is a non-empty error log, and "single_module"
11190 # appears in it, assume the flag caused a linker warning
11191 if test -s conftest.err && $GREP single_module conftest.err; then
11192 cat conftest.err >&5
11193 # Otherwise, if the output was created with a 0 exit code from
11194 # the compiler, it worked.
11195 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11196 lt_cv_apple_cc_single_mod=yes
11197 else
11198 cat conftest.err >&5
11199 fi
11200 rm -rf libconftest.dylib*
11201 rm -f conftest.*
11202 fi ;;
11203 esac
11204 fi
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11206 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11207
11208 # Feature test to disable chained fixups since it is not
11209 # compatible with '-undefined dynamic_lookup'
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
11211 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
11212 if test ${lt_cv_support_no_fixup_chains+y}
11213 then :
11214 printf %s "(cached) " >&6
11215 else case e in #(
11216 e) save_LDFLAGS=$LDFLAGS
11217 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11220
11221 int
11222 main (void)
11223 {
11224
11225 ;
11226 return 0;
11227 }
11228 _ACEOF
11229 if ac_fn_c_try_link "$LINENO"
11230 then :
11231 lt_cv_support_no_fixup_chains=yes
11232 else case e in #(
11233 e) lt_cv_support_no_fixup_chains=no
11234 ;;
11235 esac
11236 fi
11237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11238 conftest$ac_exeext conftest.$ac_ext
11239 LDFLAGS=$save_LDFLAGS
11240
11241 ;;
11242 esac
11243 fi
11244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
11245 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
11246
11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11248 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11249 if test ${lt_cv_ld_exported_symbols_list+y}
11250 then :
11251 printf %s "(cached) " >&6
11252 else case e in #(
11253 e) lt_cv_ld_exported_symbols_list=no
11254 save_LDFLAGS=$LDFLAGS
11255 echo "_main" > conftest.sym
11256 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11259
11260 int
11261 main (void)
11262 {
11263
11264 ;
11265 return 0;
11266 }
11267 _ACEOF
11268 if ac_fn_c_try_link "$LINENO"
11269 then :
11270 lt_cv_ld_exported_symbols_list=yes
11271 else case e in #(
11272 e) lt_cv_ld_exported_symbols_list=no ;;
11273 esac
11274 fi
11275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11276 conftest$ac_exeext conftest.$ac_ext
11277 LDFLAGS=$save_LDFLAGS
11278 ;;
11279 esac
11280 fi
11281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11282 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11283
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11285 printf %s "checking for -force_load linker flag... " >&6; }
11286 if test ${lt_cv_ld_force_load+y}
11287 then :
11288 printf %s "(cached) " >&6
11289 else case e in #(
11290 e) lt_cv_ld_force_load=no
11291 cat > conftest.c << _LT_EOF
11292 int forced_loaded() { return 2;}
11293 _LT_EOF
11294 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11295 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11296 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11297 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11298 echo "$RANLIB libconftest.a" >&5
11299 $RANLIB libconftest.a 2>&5
11300 cat > conftest.c << _LT_EOF
11301 int main(void) { return 0;}
11302 _LT_EOF
11303 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11304 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11305 _lt_result=$?
11306 if test -s conftest.err && $GREP force_load conftest.err; then
11307 cat conftest.err >&5
11308 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11309 lt_cv_ld_force_load=yes
11310 else
11311 cat conftest.err >&5
11312 fi
11313 rm -f conftest.err libconftest.a conftest conftest.c
11314 rm -rf conftest.dSYM
11315 ;;
11316 esac
11317 fi
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11319 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11320 case $host_os in
11321 rhapsody* | darwin1.[012])
11322 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11323 darwin1.*)
11324 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11325 darwin*)
11326 case $MACOSX_DEPLOYMENT_TARGET,$host in
11327 10.[012],*|,*powerpc*-darwin[5-8]*)
11328 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11329 *)
11330 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
11331 if test yes = "$lt_cv_support_no_fixup_chains"; then
11332 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
11333 fi
11334 ;;
11335 esac
11336 ;;
11337 esac
11338 if test yes = "$lt_cv_apple_cc_single_mod"; then
11339 _lt_dar_single_mod='$single_module'
11340 fi
11341 _lt_dar_needs_single_mod=no
11342 case $host_os in
11343 rhapsody* | darwin1.*)
11344 _lt_dar_needs_single_mod=yes ;;
11345 darwin*)
11346 # When targeting Mac OS X 10.4 (darwin 8) or later,
11347 # -single_module is the default and -multi_module is unsupported.
11348 # The toolchain on macOS 10.14 (darwin 18) and later cannot
11349 # target any OS version that needs -single_module.
11350 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11351 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
11352 _lt_dar_needs_single_mod=yes ;;
11353 esac
11354 ;;
11355 esac
11356 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11357 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11358 else
11359 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11360 fi
11361 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11362 _lt_dsymutil='~$DSYMUTIL $lib || :'
11363 else
11364 _lt_dsymutil=
11365 fi
11366 ;;
11367 esac
11368
11369 # func_munge_path_list VARIABLE PATH
11370 # -----------------------------------
11371 # VARIABLE is name of variable containing _space_ separated list of
11372 # directories to be munged by the contents of PATH, which is string
11373 # having a format:
11374 # "DIR[:DIR]:"
11375 # string "DIR[ DIR]" will be prepended to VARIABLE
11376 # ":DIR[:DIR]"
11377 # string "DIR[ DIR]" will be appended to VARIABLE
11378 # "DIRP[:DIRP]::[DIRA:]DIRA"
11379 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11380 # "DIRA[ DIRA]" will be appended to VARIABLE
11381 # "DIR[:DIR]"
11382 # VARIABLE will be replaced by "DIR[ DIR]"
11383 func_munge_path_list ()
11384 {
11385 case x$2 in
11386 x)
11387 ;;
11388 *:)
11389 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11390 ;;
11391 x:*)
11392 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11393 ;;
11394 *::*)
11395 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11396 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11397 ;;
11398 *)
11399 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11400 ;;
11401 esac
11402 }
11403
11404 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11405 "
11406 if test "x$ac_cv_header_dlfcn_h" = xyes
11407 then :
11408 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11409
11410 fi
11411
11412
11413
11414
11415
11416 # Set options
11417
11418
11419
11420 enable_dlopen=no
11421
11422
11423 enable_win32_dll=no
11424
11425
11426 # Check whether --enable-shared was given.
11427 if test ${enable_shared+y}
11428 then :
11429 enableval=$enable_shared; p=${PACKAGE-default}
11430 case $enableval in
11431 yes) enable_shared=yes ;;
11432 no) enable_shared=no ;;
11433 *)
11434 enable_shared=no
11435 # Look at the argument we got. We use all the common list separators.
11436 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11437 for pkg in $enableval; do
11438 IFS=$lt_save_ifs
11439 if test "X$pkg" = "X$p"; then
11440 enable_shared=yes
11441 fi
11442 done
11443 IFS=$lt_save_ifs
11444 ;;
11445 esac
11446 else case e in #(
11447 e) enable_shared=yes ;;
11448 esac
11449 fi
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459 # Check whether --enable-static was given.
11460 if test ${enable_static+y}
11461 then :
11462 enableval=$enable_static; p=${PACKAGE-default}
11463 case $enableval in
11464 yes) enable_static=yes ;;
11465 no) enable_static=no ;;
11466 *)
11467 enable_static=no
11468 # Look at the argument we got. We use all the common list separators.
11469 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11470 for pkg in $enableval; do
11471 IFS=$lt_save_ifs
11472 if test "X$pkg" = "X$p"; then
11473 enable_static=yes
11474 fi
11475 done
11476 IFS=$lt_save_ifs
11477 ;;
11478 esac
11479 else case e in #(
11480 e) enable_static=yes ;;
11481 esac
11482 fi
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492 # Check whether --enable-pic was given.
11493 if test ${enable_pic+y}
11494 then :
11495 enableval=$enable_pic; lt_p=${PACKAGE-default}
11496 case $enableval in
11497 yes|no) pic_mode=$enableval ;;
11498 *)
11499 pic_mode=default
11500 # Look at the argument we got. We use all the common list separators.
11501 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11502 for lt_pkg in $enableval; do
11503 IFS=$lt_save_ifs
11504 if test "X$lt_pkg" = "X$lt_p"; then
11505 pic_mode=yes
11506 fi
11507 done
11508 IFS=$lt_save_ifs
11509 ;;
11510 esac
11511 else case e in #(
11512 e) # Check whether --with-pic was given.
11513 if test ${with_pic+y}
11514 then :
11515 withval=$with_pic; lt_p=${PACKAGE-default}
11516 case $withval in
11517 yes|no) pic_mode=$withval ;;
11518 *)
11519 pic_mode=default
11520 # Look at the argument we got. We use all the common list separators.
11521 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11522 for lt_pkg in $withval; do
11523 IFS=$lt_save_ifs
11524 if test "X$lt_pkg" = "X$lt_p"; then
11525 pic_mode=yes
11526 fi
11527 done
11528 IFS=$lt_save_ifs
11529 ;;
11530 esac
11531 else case e in #(
11532 e) pic_mode=default ;;
11533 esac
11534 fi
11535
11536 ;;
11537 esac
11538 fi
11539
11540
11541
11542
11543
11544
11545
11546
11547 # Check whether --enable-fast-install was given.
11548 if test ${enable_fast_install+y}
11549 then :
11550 enableval=$enable_fast_install; p=${PACKAGE-default}
11551 case $enableval in
11552 yes) enable_fast_install=yes ;;
11553 no) enable_fast_install=no ;;
11554 *)
11555 enable_fast_install=no
11556 # Look at the argument we got. We use all the common list separators.
11557 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11558 for pkg in $enableval; do
11559 IFS=$lt_save_ifs
11560 if test "X$pkg" = "X$p"; then
11561 enable_fast_install=yes
11562 fi
11563 done
11564 IFS=$lt_save_ifs
11565 ;;
11566 esac
11567 else case e in #(
11568 e) enable_fast_install=yes ;;
11569 esac
11570 fi
11571
11572
11573
11574
11575
11576
11577
11578
11579 shared_archive_member_spec=
11580 case $host,$enable_shared in
11581 power*-*-aix[5-9]*,yes)
11582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11583 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11584 # Check whether --enable-aix-soname was given.
11585 if test ${enable_aix_soname+y}
11586 then :
11587 enableval=$enable_aix_soname; case $enableval in
11588 aix|svr4|both)
11589 ;;
11590 *)
11591 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11592 ;;
11593 esac
11594 lt_cv_with_aix_soname=$enable_aix_soname
11595 else case e in #(
11596 e) # Check whether --with-aix-soname was given.
11597 if test ${with_aix_soname+y}
11598 then :
11599 withval=$with_aix_soname; case $withval in
11600 aix|svr4|both)
11601 ;;
11602 *)
11603 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11604 ;;
11605 esac
11606 lt_cv_with_aix_soname=$with_aix_soname
11607 else case e in #(
11608 e) if test ${lt_cv_with_aix_soname+y}
11609 then :
11610 printf %s "(cached) " >&6
11611 else case e in #(
11612 e) lt_cv_with_aix_soname=aix ;;
11613 esac
11614 fi
11615 ;;
11616 esac
11617 fi
11618
11619 enable_aix_soname=$lt_cv_with_aix_soname ;;
11620 esac
11621 fi
11622
11623 with_aix_soname=$enable_aix_soname
11624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11625 printf "%s\n" "$with_aix_soname" >&6; }
11626 if test aix != "$with_aix_soname"; then
11627 # For the AIX way of multilib, we name the shared archive member
11628 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11629 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11630 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11631 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11632 if test 64 = "${OBJECT_MODE-32}"; then
11633 shared_archive_member_spec=shr_64
11634 else
11635 shared_archive_member_spec=shr
11636 fi
11637 fi
11638 ;;
11639 *)
11640 with_aix_soname=aix
11641 ;;
11642 esac
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653 # This can be used to rebuild libtool when needed
11654 LIBTOOL_DEPS=$ltmain
11655
11656 # Always use our own libtool.
11657 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688 test -z "$LN_S" && LN_S="ln -s"
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703 if test -n "${ZSH_VERSION+set}"; then
11704 setopt NO_GLOB_SUBST
11705 fi
11706
11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11708 printf %s "checking for objdir... " >&6; }
11709 if test ${lt_cv_objdir+y}
11710 then :
11711 printf %s "(cached) " >&6
11712 else case e in #(
11713 e) rm -f .libs 2>/dev/null
11714 mkdir .libs 2>/dev/null
11715 if test -d .libs; then
11716 lt_cv_objdir=.libs
11717 else
11718 # MS-DOS does not allow filenames that begin with a dot.
11719 lt_cv_objdir=_libs
11720 fi
11721 rmdir .libs 2>/dev/null ;;
11722 esac
11723 fi
11724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11725 printf "%s\n" "$lt_cv_objdir" >&6; }
11726 objdir=$lt_cv_objdir
11727
11728
11729
11730
11731
11732 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11733
11734
11735
11736
11737 case $host_os in
11738 aix3*)
11739 # AIX sometimes has problems with the GCC collect2 program. For some
11740 # reason, if we set the COLLECT_NAMES environment variable, the problems
11741 # vanish in a puff of smoke.
11742 if test set != "${COLLECT_NAMES+set}"; then
11743 COLLECT_NAMES=
11744 export COLLECT_NAMES
11745 fi
11746 ;;
11747 esac
11748
11749 # Global variables:
11750 ofile=libtool
11751 can_build_shared=yes
11752
11753 # All known linkers require a '.a' archive for static linking (except MSVC and
11754 # ICC, which need '.lib').
11755 libext=a
11756
11757 with_gnu_ld=$lt_cv_prog_gnu_ld
11758
11759 old_CC=$CC
11760 old_CFLAGS=$CFLAGS
11761
11762 # Set sane defaults for various variables
11763 test -z "$CC" && CC=cc
11764 test -z "$LTCC" && LTCC=$CC
11765 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11766 test -z "$LD" && LD=ld
11767 test -z "$ac_objext" && ac_objext=o
11768
11769 func_cc_basename $compiler
11770 cc_basename=$func_cc_basename_result
11771
11772
11773 # Only perform the check for file, if the check method requires it
11774 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11775 case $deplibs_check_method in
11776 file_magic*)
11777 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11779 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11780 if test ${lt_cv_path_MAGIC_CMD+y}
11781 then :
11782 printf %s "(cached) " >&6
11783 else case e in #(
11784 e) case $MAGIC_CMD in
11785 [\\/*] | ?:[\\/]*)
11786 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11787 ;;
11788 *)
11789 lt_save_MAGIC_CMD=$MAGIC_CMD
11790 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11791 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11792 for ac_dir in $ac_dummy; do
11793 IFS=$lt_save_ifs
11794 test -z "$ac_dir" && ac_dir=.
11795 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11796 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11797 if test -n "$file_magic_test_file"; then
11798 case $deplibs_check_method in
11799 "file_magic "*)
11800 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11801 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11803 $EGREP "$file_magic_regex" > /dev/null; then
11804 :
11805 else
11806 cat <<_LT_EOF 1>&2
11807
11808 *** Warning: the command libtool uses to detect shared libraries,
11809 *** $file_magic_cmd, produces output that libtool cannot recognize.
11810 *** The result is that libtool may fail to recognize shared libraries
11811 *** as such. This will affect the creation of libtool libraries that
11812 *** depend on shared libraries, but programs linked with such libtool
11813 *** libraries will work regardless of this problem. Nevertheless, you
11814 *** may want to report the problem to your system manager and/or to
11815 *** [email protected]
11816
11817 _LT_EOF
11818 fi ;;
11819 esac
11820 fi
11821 break
11822 fi
11823 done
11824 IFS=$lt_save_ifs
11825 MAGIC_CMD=$lt_save_MAGIC_CMD
11826 ;;
11827 esac ;;
11828 esac
11829 fi
11830
11831 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11832 if test -n "$MAGIC_CMD"; then
11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11834 printf "%s\n" "$MAGIC_CMD" >&6; }
11835 else
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 printf "%s\n" "no" >&6; }
11838 fi
11839
11840
11841
11842
11843
11844 if test -z "$lt_cv_path_MAGIC_CMD"; then
11845 if test -n "$ac_tool_prefix"; then
11846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11847 printf %s "checking for file... " >&6; }
11848 if test ${lt_cv_path_MAGIC_CMD+y}
11849 then :
11850 printf %s "(cached) " >&6
11851 else case e in #(
11852 e) case $MAGIC_CMD in
11853 [\\/*] | ?:[\\/]*)
11854 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11855 ;;
11856 *)
11857 lt_save_MAGIC_CMD=$MAGIC_CMD
11858 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11859 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11860 for ac_dir in $ac_dummy; do
11861 IFS=$lt_save_ifs
11862 test -z "$ac_dir" && ac_dir=.
11863 if test -f "$ac_dir/file"; then
11864 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11865 if test -n "$file_magic_test_file"; then
11866 case $deplibs_check_method in
11867 "file_magic "*)
11868 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11869 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11870 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11871 $EGREP "$file_magic_regex" > /dev/null; then
11872 :
11873 else
11874 cat <<_LT_EOF 1>&2
11875
11876 *** Warning: the command libtool uses to detect shared libraries,
11877 *** $file_magic_cmd, produces output that libtool cannot recognize.
11878 *** The result is that libtool may fail to recognize shared libraries
11879 *** as such. This will affect the creation of libtool libraries that
11880 *** depend on shared libraries, but programs linked with such libtool
11881 *** libraries will work regardless of this problem. Nevertheless, you
11882 *** may want to report the problem to your system manager and/or to
11883 *** [email protected]
11884
11885 _LT_EOF
11886 fi ;;
11887 esac
11888 fi
11889 break
11890 fi
11891 done
11892 IFS=$lt_save_ifs
11893 MAGIC_CMD=$lt_save_MAGIC_CMD
11894 ;;
11895 esac ;;
11896 esac
11897 fi
11898
11899 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11900 if test -n "$MAGIC_CMD"; then
11901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11902 printf "%s\n" "$MAGIC_CMD" >&6; }
11903 else
11904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 printf "%s\n" "no" >&6; }
11906 fi
11907
11908
11909 else
11910 MAGIC_CMD=:
11911 fi
11912 fi
11913
11914 fi
11915 ;;
11916 esac
11917
11918 # Use C for the default configuration in the libtool script
11919
11920 lt_save_CC=$CC
11921 ac_ext=c
11922 ac_cpp='$CPP $CPPFLAGS'
11923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11926
11927
11928 # Source file extension for C test sources.
11929 ac_ext=c
11930
11931 # Object file extension for compiled C test sources.
11932 objext=o
11933 objext=$objext
11934
11935 # Code to be used in simple compile tests
11936 lt_simple_compile_test_code="int some_variable = 0;"
11937
11938 # Code to be used in simple link tests
11939 lt_simple_link_test_code='int main(void){return(0);}'
11940
11941
11942
11943
11944
11945
11946
11947 # If no C compiler was specified, use CC.
11948 LTCC=${LTCC-"$CC"}
11949
11950 # If no C compiler flags were specified, use CFLAGS.
11951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11952
11953 # Allow CC to be a program name with arguments.
11954 compiler=$CC
11955
11956 # Save the default compiler, since it gets overwritten when the other
11957 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11958 compiler_DEFAULT=$CC
11959
11960 # save warnings/boilerplate of simple test code
11961 ac_outfile=conftest.$ac_objext
11962 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11963 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11964 _lt_compiler_boilerplate=`cat conftest.err`
11965 $RM conftest*
11966
11967 ac_outfile=conftest.$ac_objext
11968 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11969 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11970 _lt_linker_boilerplate=`cat conftest.err`
11971 $RM -r conftest*
11972
11973
11974 ## CAVEAT EMPTOR:
11975 ## There is no encapsulation within the following macros, do not change
11976 ## the running order or otherwise move them around unless you know exactly
11977 ## what you are doing...
11978 if test -n "$compiler"; then
11979
11980 lt_prog_compiler_no_builtin_flag=
11981
11982 if test yes = "$GCC"; then
11983 case $cc_basename in
11984 nvcc*)
11985 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11986 *)
11987 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11988 esac
11989
11990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11991 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11992 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11993 then :
11994 printf %s "(cached) " >&6
11995 else case e in #(
11996 e) lt_cv_prog_compiler_rtti_exceptions=no
11997 ac_outfile=conftest.$ac_objext
11998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11999 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12000 # Insert the option either (1) after the last *FLAGS variable, or
12001 # (2) before a word containing "conftest.", or (3) at the end.
12002 # Note that $ac_compile itself does not contain backslashes and begins
12003 # with a dollar sign (not a hyphen), so the echo should work correctly.
12004 # The option is referenced via a variable to avoid confusing sed.
12005 lt_compile=`echo "$ac_compile" | $SED \
12006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12008 -e 's:$: $lt_compiler_flag:'`
12009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12010 (eval "$lt_compile" 2>conftest.err)
12011 ac_status=$?
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 if (exit $ac_status) && test -s "$ac_outfile"; then
12015 # The compiler can only warn and ignore the option if not recognized
12016 # So say no if there are warnings other than the usual output.
12017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12020 lt_cv_prog_compiler_rtti_exceptions=yes
12021 fi
12022 fi
12023 $RM conftest*
12024 ;;
12025 esac
12026 fi
12027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12028 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12029
12030 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12031 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12032 else
12033 :
12034 fi
12035
12036 fi
12037
12038
12039
12040
12041
12042
12043 lt_prog_compiler_wl=
12044 lt_prog_compiler_pic=
12045 lt_prog_compiler_static=
12046
12047
12048 if test yes = "$GCC"; then
12049 lt_prog_compiler_wl='-Wl,'
12050 lt_prog_compiler_static='-static'
12051
12052 case $host_os in
12053 aix*)
12054 # All AIX code is PIC.
12055 if test ia64 = "$host_cpu"; then
12056 # AIX 5 now supports IA64 processor
12057 lt_prog_compiler_static='-Bstatic'
12058 fi
12059 lt_prog_compiler_pic='-fPIC'
12060 ;;
12061
12062 amigaos*)
12063 case $host_cpu in
12064 powerpc)
12065 # see comment about AmigaOS4 .so support
12066 lt_prog_compiler_pic='-fPIC'
12067 ;;
12068 m68k)
12069 # FIXME: we need at least 68020 code to build shared libraries, but
12070 # adding the '-m68020' flag to GCC prevents building anything better,
12071 # like '-m68040'.
12072 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12073 ;;
12074 esac
12075 ;;
12076
12077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12078 # PIC is the default for these OSes.
12079 ;;
12080
12081 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12082 # This hack is so that the source file can tell whether it is being
12083 # built for inclusion in a dll (and should export symbols for example).
12084 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12085 # (--disable-auto-import) libraries
12086 lt_prog_compiler_pic='-DDLL_EXPORT'
12087 case $host_os in
12088 os2*)
12089 lt_prog_compiler_static='$wl-static'
12090 ;;
12091 esac
12092 ;;
12093
12094 darwin* | rhapsody*)
12095 # PIC is the default on this platform
12096 # Common symbols not allowed in MH_DYLIB files
12097 lt_prog_compiler_pic='-fno-common'
12098 ;;
12099
12100 haiku*)
12101 # PIC is the default for Haiku.
12102 # The "-static" flag exists, but is broken.
12103 lt_prog_compiler_static=
12104 ;;
12105
12106 hpux*)
12107 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12108 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12109 # sets the default TLS model and affects inlining.
12110 case $host_cpu in
12111 hppa*64*)
12112 # +Z the default
12113 ;;
12114 *)
12115 lt_prog_compiler_pic='-fPIC'
12116 ;;
12117 esac
12118 ;;
12119
12120 interix[3-9]*)
12121 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12122 # Instead, we relocate shared libraries at runtime.
12123 ;;
12124
12125 msdosdjgpp*)
12126 # Just because we use GCC doesn't mean we suddenly get shared libraries
12127 # on systems that don't support them.
12128 lt_prog_compiler_can_build_shared=no
12129 enable_shared=no
12130 ;;
12131
12132 *nto* | *qnx*)
12133 # QNX uses GNU C++, but need to define -shared option too, otherwise
12134 # it will coredump.
12135 lt_prog_compiler_pic='-fPIC -shared'
12136 ;;
12137
12138 sysv4*MP*)
12139 if test -d /usr/nec; then
12140 lt_prog_compiler_pic=-Kconform_pic
12141 fi
12142 ;;
12143
12144 *)
12145 lt_prog_compiler_pic='-fPIC'
12146 ;;
12147 esac
12148
12149 case $cc_basename in
12150 nvcc*) # Cuda Compiler Driver 2.2
12151 lt_prog_compiler_wl='-Xlinker '
12152 if test -n "$lt_prog_compiler_pic"; then
12153 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12154 fi
12155 ;;
12156 esac
12157 else
12158 # PORTME Check for flag to pass linker flags through the system compiler.
12159 case $host_os in
12160 aix*)
12161 lt_prog_compiler_wl='-Wl,'
12162 if test ia64 = "$host_cpu"; then
12163 # AIX 5 now supports IA64 processor
12164 lt_prog_compiler_static='-Bstatic'
12165 else
12166 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12167 fi
12168 ;;
12169
12170 darwin* | rhapsody*)
12171 # PIC is the default on this platform
12172 # Common symbols not allowed in MH_DYLIB files
12173 lt_prog_compiler_pic='-fno-common'
12174 case $cc_basename in
12175 nagfor*)
12176 # NAG Fortran compiler
12177 lt_prog_compiler_wl='-Wl,-Wl,,'
12178 lt_prog_compiler_pic='-PIC'
12179 lt_prog_compiler_static='-Bstatic'
12180 ;;
12181 esac
12182 ;;
12183
12184 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12185 # This hack is so that the source file can tell whether it is being
12186 # built for inclusion in a dll (and should export symbols for example).
12187 lt_prog_compiler_pic='-DDLL_EXPORT'
12188 case $host_os in
12189 os2*)
12190 lt_prog_compiler_static='$wl-static'
12191 ;;
12192 esac
12193 ;;
12194
12195 hpux9* | hpux10* | hpux11*)
12196 lt_prog_compiler_wl='-Wl,'
12197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12198 # not for PA HP-UX.
12199 case $host_cpu in
12200 hppa*64*|ia64*)
12201 # +Z the default
12202 ;;
12203 *)
12204 lt_prog_compiler_pic='+Z'
12205 ;;
12206 esac
12207 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12208 lt_prog_compiler_static='$wl-a ${wl}archive'
12209 ;;
12210
12211 irix5* | irix6* | nonstopux*)
12212 lt_prog_compiler_wl='-Wl,'
12213 # PIC (with -KPIC) is the default.
12214 lt_prog_compiler_static='-non_shared'
12215 ;;
12216
12217 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12218 case $cc_basename in
12219 # old Intel for x86_64, which still supported -KPIC.
12220 ecc*)
12221 lt_prog_compiler_wl='-Wl,'
12222 lt_prog_compiler_pic='-KPIC'
12223 lt_prog_compiler_static='-static'
12224 ;;
12225 *flang* | ftn | f18* | f95*)
12226 # Flang compiler.
12227 lt_prog_compiler_wl='-Wl,'
12228 lt_prog_compiler_pic='-fPIC'
12229 lt_prog_compiler_static='-static'
12230 ;;
12231 # flang / f18. f95 an alias for gfortran or flang on Debian
12232 flang* | f18* | f95*)
12233 lt_prog_compiler_wl='-Wl,'
12234 lt_prog_compiler_pic='-fPIC'
12235 lt_prog_compiler_static='-static'
12236 ;;
12237 # icc used to be incompatible with GCC.
12238 # ICC 10 doesn't accept -KPIC any more.
12239 icc* | ifort*)
12240 lt_prog_compiler_wl='-Wl,'
12241 lt_prog_compiler_pic='-fPIC'
12242 lt_prog_compiler_static='-static'
12243 ;;
12244 # Lahey Fortran 8.1.
12245 lf95*)
12246 lt_prog_compiler_wl='-Wl,'
12247 lt_prog_compiler_pic='--shared'
12248 lt_prog_compiler_static='--static'
12249 ;;
12250 nagfor*)
12251 # NAG Fortran compiler
12252 lt_prog_compiler_wl='-Wl,-Wl,,'
12253 lt_prog_compiler_pic='-PIC'
12254 lt_prog_compiler_static='-Bstatic'
12255 ;;
12256 tcc*)
12257 # Fabrice Bellard et al's Tiny C Compiler
12258 lt_prog_compiler_wl='-Wl,'
12259 lt_prog_compiler_pic='-fPIC'
12260 lt_prog_compiler_static='-static'
12261 ;;
12262 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12263 # Portland Group compilers (*not* the Pentium gcc compiler,
12264 # which looks to be a dead project)
12265 lt_prog_compiler_wl='-Wl,'
12266 lt_prog_compiler_pic='-fpic'
12267 lt_prog_compiler_static='-Bstatic'
12268 ;;
12269 ccc*)
12270 lt_prog_compiler_wl='-Wl,'
12271 # All Alpha code is PIC.
12272 lt_prog_compiler_static='-non_shared'
12273 ;;
12274 xl* | bgxl* | bgf* | mpixl*)
12275 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12276 lt_prog_compiler_wl='-Wl,'
12277 lt_prog_compiler_pic='-qpic'
12278 lt_prog_compiler_static='-qstaticlink'
12279 ;;
12280 *)
12281 case `$CC -V 2>&1 | $SED 5q` in
12282 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12283 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12284 lt_prog_compiler_pic='-KPIC'
12285 lt_prog_compiler_static='-Bstatic'
12286 lt_prog_compiler_wl=''
12287 ;;
12288 *Sun\ F* | *Sun*Fortran*)
12289 lt_prog_compiler_pic='-KPIC'
12290 lt_prog_compiler_static='-Bstatic'
12291 lt_prog_compiler_wl='-Qoption ld '
12292 ;;
12293 *Sun\ C*)
12294 # Sun C 5.9
12295 lt_prog_compiler_pic='-KPIC'
12296 lt_prog_compiler_static='-Bstatic'
12297 lt_prog_compiler_wl='-Wl,'
12298 ;;
12299 *Intel*\ [CF]*Compiler*)
12300 lt_prog_compiler_wl='-Wl,'
12301 lt_prog_compiler_pic='-fPIC'
12302 lt_prog_compiler_static='-static'
12303 ;;
12304 *Portland\ Group*)
12305 lt_prog_compiler_wl='-Wl,'
12306 lt_prog_compiler_pic='-fpic'
12307 lt_prog_compiler_static='-Bstatic'
12308 ;;
12309 esac
12310 ;;
12311 esac
12312 ;;
12313
12314 newsos6)
12315 lt_prog_compiler_pic='-KPIC'
12316 lt_prog_compiler_static='-Bstatic'
12317 ;;
12318
12319 *-mlibc)
12320 lt_prog_compiler_wl='-Wl,'
12321 lt_prog_compiler_pic='-fPIC'
12322 lt_prog_compiler_static='-static'
12323 ;;
12324
12325 *nto* | *qnx*)
12326 # QNX uses GNU C++, but need to define -shared option too, otherwise
12327 # it will coredump.
12328 lt_prog_compiler_pic='-fPIC -shared'
12329 ;;
12330
12331 osf3* | osf4* | osf5*)
12332 lt_prog_compiler_wl='-Wl,'
12333 # All OSF/1 code is PIC.
12334 lt_prog_compiler_static='-non_shared'
12335 ;;
12336
12337 rdos*)
12338 lt_prog_compiler_static='-non_shared'
12339 ;;
12340
12341 serenity*)
12342 ;;
12343
12344 solaris*)
12345 lt_prog_compiler_pic='-KPIC'
12346 lt_prog_compiler_static='-Bstatic'
12347 case $cc_basename in
12348 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12349 lt_prog_compiler_wl='-Qoption ld ';;
12350 *)
12351 lt_prog_compiler_wl='-Wl,';;
12352 esac
12353 ;;
12354
12355 sunos4*)
12356 lt_prog_compiler_wl='-Qoption ld '
12357 lt_prog_compiler_pic='-PIC'
12358 lt_prog_compiler_static='-Bstatic'
12359 ;;
12360
12361 sysv4 | sysv4.2uw2* | sysv4.3*)
12362 lt_prog_compiler_wl='-Wl,'
12363 lt_prog_compiler_pic='-KPIC'
12364 lt_prog_compiler_static='-Bstatic'
12365 ;;
12366
12367 sysv4*MP*)
12368 if test -d /usr/nec; then
12369 lt_prog_compiler_pic='-Kconform_pic'
12370 lt_prog_compiler_static='-Bstatic'
12371 fi
12372 ;;
12373
12374 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12375 lt_prog_compiler_wl='-Wl,'
12376 lt_prog_compiler_pic='-KPIC'
12377 lt_prog_compiler_static='-Bstatic'
12378 ;;
12379
12380 unicos*)
12381 lt_prog_compiler_wl='-Wl,'
12382 lt_prog_compiler_can_build_shared=no
12383 ;;
12384
12385 uts4*)
12386 lt_prog_compiler_pic='-pic'
12387 lt_prog_compiler_static='-Bstatic'
12388 ;;
12389
12390 *)
12391 lt_prog_compiler_can_build_shared=no
12392 ;;
12393 esac
12394 fi
12395
12396 case $host_os in
12397 # For platforms that do not support PIC, -DPIC is meaningless:
12398 *djgpp*)
12399 lt_prog_compiler_pic=
12400 ;;
12401 *)
12402 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12403 ;;
12404 esac
12405
12406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12407 printf %s "checking for $compiler option to produce PIC... " >&6; }
12408 if test ${lt_cv_prog_compiler_pic+y}
12409 then :
12410 printf %s "(cached) " >&6
12411 else case e in #(
12412 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12413 esac
12414 fi
12415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12416 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12417 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12418
12419 #
12420 # Check to make sure the PIC flag actually works.
12421 #
12422 if test -n "$lt_prog_compiler_pic"; then
12423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12424 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12425 if test ${lt_cv_prog_compiler_pic_works+y}
12426 then :
12427 printf %s "(cached) " >&6
12428 else case e in #(
12429 e) lt_cv_prog_compiler_pic_works=no
12430 ac_outfile=conftest.$ac_objext
12431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12432 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12433 # Insert the option either (1) after the last *FLAGS variable, or
12434 # (2) before a word containing "conftest.", or (3) at the end.
12435 # Note that $ac_compile itself does not contain backslashes and begins
12436 # with a dollar sign (not a hyphen), so the echo should work correctly.
12437 # The option is referenced via a variable to avoid confusing sed.
12438 lt_compile=`echo "$ac_compile" | $SED \
12439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12441 -e 's:$: $lt_compiler_flag:'`
12442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12443 (eval "$lt_compile" 2>conftest.err)
12444 ac_status=$?
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 if (exit $ac_status) && test -s "$ac_outfile"; then
12448 # The compiler can only warn and ignore the option if not recognized
12449 # So say no if there are warnings other than the usual output.
12450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12453 lt_cv_prog_compiler_pic_works=yes
12454 fi
12455 fi
12456 $RM conftest*
12457 ;;
12458 esac
12459 fi
12460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12461 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12462
12463 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12464 case $lt_prog_compiler_pic in
12465 "" | " "*) ;;
12466 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12467 esac
12468 else
12469 lt_prog_compiler_pic=
12470 lt_prog_compiler_can_build_shared=no
12471 fi
12472
12473 fi
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485 #
12486 # Check to make sure the static flag actually works.
12487 #
12488 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12490 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12491 if test ${lt_cv_prog_compiler_static_works+y}
12492 then :
12493 printf %s "(cached) " >&6
12494 else case e in #(
12495 e) lt_cv_prog_compiler_static_works=no
12496 save_LDFLAGS=$LDFLAGS
12497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12500 # The linker can only warn and ignore the option if not recognized
12501 # So say no if there are warnings
12502 if test -s conftest.err; then
12503 # Append any errors to the config.log.
12504 cat conftest.err 1>&5
12505 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12507 if diff conftest.exp conftest.er2 >/dev/null; then
12508 lt_cv_prog_compiler_static_works=yes
12509 fi
12510 else
12511 lt_cv_prog_compiler_static_works=yes
12512 fi
12513 fi
12514 $RM -r conftest*
12515 LDFLAGS=$save_LDFLAGS
12516 ;;
12517 esac
12518 fi
12519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12520 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12521
12522 if test yes = "$lt_cv_prog_compiler_static_works"; then
12523 :
12524 else
12525 lt_prog_compiler_static=
12526 fi
12527
12528
12529
12530
12531
12532
12533
12534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12535 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12536 if test ${lt_cv_prog_compiler_c_o+y}
12537 then :
12538 printf %s "(cached) " >&6
12539 else case e in #(
12540 e) lt_cv_prog_compiler_c_o=no
12541 $RM -r conftest 2>/dev/null
12542 mkdir conftest
12543 cd conftest
12544 mkdir out
12545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12546
12547 lt_compiler_flag="-o out/conftest2.$ac_objext"
12548 # Insert the option either (1) after the last *FLAGS variable, or
12549 # (2) before a word containing "conftest.", or (3) at the end.
12550 # Note that $ac_compile itself does not contain backslashes and begins
12551 # with a dollar sign (not a hyphen), so the echo should work correctly.
12552 lt_compile=`echo "$ac_compile" | $SED \
12553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12555 -e 's:$: $lt_compiler_flag:'`
12556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12557 (eval "$lt_compile" 2>out/conftest.err)
12558 ac_status=$?
12559 cat out/conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12562 then
12563 # The compiler can only warn and ignore the option if not recognized
12564 # So say no if there are warnings
12565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12568 lt_cv_prog_compiler_c_o=yes
12569 fi
12570 fi
12571 chmod u+w . 2>&5
12572 $RM conftest*
12573 # SGI C++ compiler will create directory out/ii_files/ for
12574 # template instantiation
12575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12576 $RM out/* && rmdir out
12577 cd ..
12578 $RM -r conftest
12579 $RM conftest*
12580 ;;
12581 esac
12582 fi
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12584 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12585
12586
12587
12588
12589
12590
12591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12592 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12593 if test ${lt_cv_prog_compiler_c_o+y}
12594 then :
12595 printf %s "(cached) " >&6
12596 else case e in #(
12597 e) lt_cv_prog_compiler_c_o=no
12598 $RM -r conftest 2>/dev/null
12599 mkdir conftest
12600 cd conftest
12601 mkdir out
12602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12603
12604 lt_compiler_flag="-o out/conftest2.$ac_objext"
12605 # Insert the option either (1) after the last *FLAGS variable, or
12606 # (2) before a word containing "conftest.", or (3) at the end.
12607 # Note that $ac_compile itself does not contain backslashes and begins
12608 # with a dollar sign (not a hyphen), so the echo should work correctly.
12609 lt_compile=`echo "$ac_compile" | $SED \
12610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12612 -e 's:$: $lt_compiler_flag:'`
12613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12614 (eval "$lt_compile" 2>out/conftest.err)
12615 ac_status=$?
12616 cat out/conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12619 then
12620 # The compiler can only warn and ignore the option if not recognized
12621 # So say no if there are warnings
12622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12623 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12624 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12625 lt_cv_prog_compiler_c_o=yes
12626 fi
12627 fi
12628 chmod u+w . 2>&5
12629 $RM conftest*
12630 # SGI C++ compiler will create directory out/ii_files/ for
12631 # template instantiation
12632 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12633 $RM out/* && rmdir out
12634 cd ..
12635 $RM -r conftest
12636 $RM conftest*
12637 ;;
12638 esac
12639 fi
12640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12641 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12642
12643
12644
12645
12646 hard_links=nottested
12647 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12648 # do not overwrite the value of need_locks provided by the user
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12650 printf %s "checking if we can lock with hard links... " >&6; }
12651 hard_links=yes
12652 $RM conftest*
12653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12654 touch conftest.a
12655 ln conftest.a conftest.b 2>&5 || hard_links=no
12656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12658 printf "%s\n" "$hard_links" >&6; }
12659 if test no = "$hard_links"; then
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12661 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12662 need_locks=warn
12663 fi
12664 else
12665 need_locks=no
12666 fi
12667
12668
12669
12670
12671
12672
12673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12674 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12675
12676 runpath_var=
12677 allow_undefined_flag=
12678 always_export_symbols=no
12679 archive_cmds=
12680 archive_expsym_cmds=
12681 compiler_needs_object=no
12682 enable_shared_with_static_runtimes=no
12683 export_dynamic_flag_spec=
12684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12685 hardcode_automatic=no
12686 hardcode_direct=no
12687 hardcode_direct_absolute=no
12688 hardcode_libdir_flag_spec=
12689 hardcode_libdir_separator=
12690 hardcode_minus_L=no
12691 hardcode_shlibpath_var=unsupported
12692 inherit_rpath=no
12693 link_all_deplibs=unknown
12694 module_cmds=
12695 module_expsym_cmds=
12696 old_archive_from_new_cmds=
12697 old_archive_from_expsyms_cmds=
12698 thread_safe_flag_spec=
12699 whole_archive_flag_spec=
12700 # include_expsyms should be a list of space-separated symbols to be *always*
12701 # included in the symbol list
12702 include_expsyms=
12703 # exclude_expsyms can be an extended regexp of symbols to exclude
12704 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12705 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12706 # as well as any symbol that contains 'd'.
12707 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12709 # platforms (ab)use it in PIC code, but their linkers get confused if
12710 # the symbol is explicitly referenced. Since portable code cannot
12711 # rely on this symbol name, it's probably fine to never include it in
12712 # preloaded symbol tables.
12713 # Exclude shared library initialization/finalization symbols.
12714 extract_expsyms_cmds=
12715
12716 case $host_os in
12717 cygwin* | mingw* | windows* | pw32* | cegcc*)
12718 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12719 # When not using gcc, we currently assume that we are using
12720 # Microsoft Visual C++ or Intel C++ Compiler.
12721 if test yes != "$GCC"; then
12722 with_gnu_ld=no
12723 fi
12724 ;;
12725 interix*)
12726 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12727 with_gnu_ld=yes
12728 ;;
12729 linux* | k*bsd*-gnu | gnu*)
12730 link_all_deplibs=no
12731 ;;
12732 esac
12733
12734 ld_shlibs=yes
12735
12736 # On some targets, GNU ld is compatible enough with the native linker
12737 # that we're better off using the native interface for both.
12738 lt_use_gnu_ld_interface=no
12739 if test yes = "$with_gnu_ld"; then
12740 case $host_os in
12741 aix*)
12742 # The AIX port of GNU ld has always aspired to compatibility
12743 # with the native linker. However, as the warning in the GNU ld
12744 # block says, versions before 2.19.5* couldn't really create working
12745 # shared libraries, regardless of the interface used.
12746 case `$LD -v 2>&1` in
12747 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12748 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12749 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12750 *)
12751 lt_use_gnu_ld_interface=yes
12752 ;;
12753 esac
12754 ;;
12755 *)
12756 lt_use_gnu_ld_interface=yes
12757 ;;
12758 esac
12759 fi
12760
12761 if test yes = "$lt_use_gnu_ld_interface"; then
12762 # If archive_cmds runs LD, not CC, wlarc should be empty
12763 wlarc='$wl'
12764
12765 # Set some defaults for GNU ld with shared library support. These
12766 # are reset later if shared libraries are not supported. Putting them
12767 # here allows them to be overridden if necessary.
12768 runpath_var=LD_RUN_PATH
12769 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12770 export_dynamic_flag_spec='$wl--export-dynamic'
12771 # ancient GNU ld didn't support --whole-archive et. al.
12772 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12773 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12774 else
12775 whole_archive_flag_spec=
12776 fi
12777 supports_anon_versioning=no
12778 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12779 *GNU\ gold*) supports_anon_versioning=yes ;;
12780 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12781 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12782 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12783 *\ 2.11.*) ;; # other 2.11 versions
12784 *) supports_anon_versioning=yes ;;
12785 esac
12786
12787 # See if GNU ld supports shared libraries.
12788 case $host_os in
12789 aix[3-9]*)
12790 # On AIX/PPC, the GNU linker is very broken
12791 if test ia64 != "$host_cpu"; then
12792 ld_shlibs=no
12793 cat <<_LT_EOF 1>&2
12794
12795 *** Warning: the GNU linker, at least up to release 2.19, is reported
12796 *** to be unable to reliably create shared libraries on AIX.
12797 *** Therefore, libtool is disabling shared libraries support. If you
12798 *** really care for shared libraries, you may want to install binutils
12799 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12800 *** You will then need to restart the configuration process.
12801
12802 _LT_EOF
12803 fi
12804 ;;
12805
12806 amigaos*)
12807 case $host_cpu in
12808 powerpc)
12809 # see comment about AmigaOS4 .so support
12810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12811 archive_expsym_cmds=''
12812 ;;
12813 m68k)
12814 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)'
12815 hardcode_libdir_flag_spec='-L$libdir'
12816 hardcode_minus_L=yes
12817 ;;
12818 esac
12819 ;;
12820
12821 beos*)
12822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12823 allow_undefined_flag=unsupported
12824 # Joseph Beckenbach <[email protected]> says some releases of gcc
12825 # support --undefined. This deserves some investigation. FIXME
12826 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12827 else
12828 ld_shlibs=no
12829 fi
12830 ;;
12831
12832 cygwin* | mingw* | windows* | pw32* | cegcc*)
12833 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12834 # as there is no search path for DLLs.
12835 hardcode_libdir_flag_spec='-L$libdir'
12836 export_dynamic_flag_spec='$wl--export-all-symbols'
12837 allow_undefined_flag=unsupported
12838 always_export_symbols=no
12839 enable_shared_with_static_runtimes=yes
12840 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'
12841 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12842 file_list_spec='@'
12843
12844 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12846 # If the export-symbols file already is a .def file, use it as
12847 # is; otherwise, prepend EXPORTS...
12848 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12849 cp $export_symbols $output_objdir/$soname.def;
12850 else
12851 echo EXPORTS > $output_objdir/$soname.def;
12852 cat $export_symbols >> $output_objdir/$soname.def;
12853 fi~
12854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12855 else
12856 ld_shlibs=no
12857 fi
12858 ;;
12859
12860 haiku*)
12861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12862 link_all_deplibs=no
12863 ;;
12864
12865 os2*)
12866 hardcode_libdir_flag_spec='-L$libdir'
12867 hardcode_minus_L=yes
12868 allow_undefined_flag=unsupported
12869 shrext_cmds=.dll
12870 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12871 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12872 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12873 $ECHO EXPORTS >> $output_objdir/$libname.def~
12874 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12875 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12876 emximp -o $lib $output_objdir/$libname.def'
12877 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12878 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12879 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12880 $ECHO EXPORTS >> $output_objdir/$libname.def~
12881 prefix_cmds="$SED"~
12882 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12883 prefix_cmds="$prefix_cmds -e 1d";
12884 fi~
12885 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12886 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12887 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12888 emximp -o $lib $output_objdir/$libname.def'
12889 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12890 enable_shared_with_static_runtimes=yes
12891 file_list_spec='@'
12892 ;;
12893
12894 interix[3-9]*)
12895 hardcode_direct=no
12896 hardcode_shlibpath_var=no
12897 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12898 export_dynamic_flag_spec='$wl-E'
12899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12900 # Instead, shared libraries are loaded at an image base (0x10000000 by
12901 # default) and relocated if they conflict, which is a slow very memory
12902 # consuming and fragmenting process. To avoid this, we pick a random,
12903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12906 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'
12907 ;;
12908
12909 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12910 tmp_diet=no
12911 if test linux-dietlibc = "$host_os"; then
12912 case $cc_basename in
12913 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12914 esac
12915 fi
12916 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12917 && test no = "$tmp_diet"
12918 then
12919 tmp_addflag=' $pic_flag'
12920 tmp_sharedflag='-shared'
12921 case $cc_basename,$host_cpu in
12922 pgcc*) # Portland Group C compiler
12923 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'
12924 tmp_addflag=' $pic_flag'
12925 ;;
12926 pgf77* | pgf90* | pgf95* | pgfortran*)
12927 # Portland Group f77 and f90 compilers
12928 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'
12929 tmp_addflag=' $pic_flag -Mnomain' ;;
12930 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12931 tmp_addflag=' -i_dynamic' ;;
12932 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12933 tmp_addflag=' -i_dynamic -nofor_main' ;;
12934 ifc* | ifort*) # Intel Fortran compiler
12935 tmp_addflag=' -nofor_main' ;;
12936 lf95*) # Lahey Fortran 8.1
12937 whole_archive_flag_spec=
12938 tmp_sharedflag='--shared' ;;
12939 nagfor*) # NAGFOR 5.3
12940 tmp_sharedflag='-Wl,-shared' ;;
12941 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12942 tmp_sharedflag='-qmkshrobj'
12943 tmp_addflag= ;;
12944 nvcc*) # Cuda Compiler Driver 2.2
12945 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'
12946 compiler_needs_object=yes
12947 ;;
12948 esac
12949 case `$CC -V 2>&1 | $SED 5q` in
12950 *Sun\ C*) # Sun C 5.9
12951 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'
12952 compiler_needs_object=yes
12953 tmp_sharedflag='-G' ;;
12954 *Sun\ F*) # Sun Fortran 8.3
12955 tmp_sharedflag='-G' ;;
12956 esac
12957 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12958
12959 if test yes = "$supports_anon_versioning"; then
12960 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12961 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12962 echo "local: *; };" >> $output_objdir/$libname.ver~
12963 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12964 fi
12965
12966 case $cc_basename in
12967 tcc*)
12968 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12969 export_dynamic_flag_spec='-rdynamic'
12970 ;;
12971 xlf* | bgf* | bgxlf* | mpixlf*)
12972 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12973 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12975 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12976 if test yes = "$supports_anon_versioning"; then
12977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12978 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12979 echo "local: *; };" >> $output_objdir/$libname.ver~
12980 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12981 fi
12982 ;;
12983 esac
12984 else
12985 ld_shlibs=no
12986 fi
12987 ;;
12988
12989 *-mlibc)
12990 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12991 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12992 ;;
12993
12994 netbsd* | netbsdelf*-gnu)
12995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12997 wlarc=
12998 else
12999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13001 fi
13002 ;;
13003
13004 solaris*)
13005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13006 ld_shlibs=no
13007 cat <<_LT_EOF 1>&2
13008
13009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13010 *** create shared libraries on Solaris systems. Therefore, libtool
13011 *** is disabling shared libraries support. We urge you to upgrade GNU
13012 *** binutils to release 2.9.1 or newer. Another option is to modify
13013 *** your PATH or compiler configuration so that the native linker is
13014 *** used, and then restart.
13015
13016 _LT_EOF
13017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13020 else
13021 ld_shlibs=no
13022 fi
13023 ;;
13024
13025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13026 case `$LD -v 2>&1` in
13027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13028 ld_shlibs=no
13029 cat <<_LT_EOF 1>&2
13030
13031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13032 *** reliably create shared libraries on SCO systems. Therefore, libtool
13033 *** is disabling shared libraries support. We urge you to upgrade GNU
13034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13035 *** your PATH or compiler configuration so that the native linker is
13036 *** used, and then restart.
13037
13038 _LT_EOF
13039 ;;
13040 *)
13041 # For security reasons, it is highly recommended that you always
13042 # use absolute paths for naming shared libraries, and exclude the
13043 # DT_RUNPATH tag from executables and libraries. But doing so
13044 # requires that you compile everything twice, which is a pain.
13045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13046 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13049 else
13050 ld_shlibs=no
13051 fi
13052 ;;
13053 esac
13054 ;;
13055
13056 sunos4*)
13057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13058 wlarc=
13059 hardcode_direct=yes
13060 hardcode_shlibpath_var=no
13061 ;;
13062
13063 *)
13064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13066 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13067 else
13068 ld_shlibs=no
13069 fi
13070 ;;
13071 esac
13072
13073 if test no = "$ld_shlibs"; then
13074 runpath_var=
13075 hardcode_libdir_flag_spec=
13076 export_dynamic_flag_spec=
13077 whole_archive_flag_spec=
13078 fi
13079 else
13080 # PORTME fill in a description of your system's linker (not GNU ld)
13081 case $host_os in
13082 aix3*)
13083 allow_undefined_flag=unsupported
13084 always_export_symbols=yes
13085 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'
13086 # Note: this linker hardcodes the directories in LIBPATH if there
13087 # are no directories specified by -L.
13088 hardcode_minus_L=yes
13089 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13090 # Neither direct hardcoding nor static linking is supported with a
13091 # broken collect2.
13092 hardcode_direct=unsupported
13093 fi
13094 ;;
13095
13096 aix[4-9]*)
13097 if test ia64 = "$host_cpu"; then
13098 # On IA64, the linker does run time linking by default, so we don't
13099 # have to do anything special.
13100 aix_use_runtimelinking=no
13101 exp_sym_flag='-Bexport'
13102 no_entry_flag=
13103 else
13104 # If we're using GNU nm, then we don't want the "-C" option.
13105 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13106 # Without the "-l" option, or with the "-B" option, AIX nm treats
13107 # weak defined symbols like other global defined symbols, whereas
13108 # GNU nm marks them as "W".
13109 # While the 'weak' keyword is ignored in the Export File, we need
13110 # it in the Import File for the 'aix-soname' feature, so we have
13111 # to replace the "-B" option with "-P" for AIX nm.
13112 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13113 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'
13114 else
13115 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'
13116 fi
13117 aix_use_runtimelinking=no
13118
13119 # Test if we are trying to use run time linking or normal
13120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13121 # have runtime linking enabled, and use it for executables.
13122 # For shared libraries, we enable/disable runtime linking
13123 # depending on the kind of the shared library created -
13124 # when "with_aix_soname,aix_use_runtimelinking" is:
13125 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13126 # "aix,yes" lib.so shared, rtl:yes, for executables
13127 # lib.a static archive
13128 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13129 # lib.a(lib.so.V) shared, rtl:no, for executables
13130 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13131 # lib.a(lib.so.V) shared, rtl:no
13132 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13133 # lib.a static archive
13134 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13135 for ld_flag in $LDFLAGS; do
13136 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13137 aix_use_runtimelinking=yes
13138 break
13139 fi
13140 done
13141 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13142 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13143 # so we don't have lib.a shared libs to link our executables.
13144 # We have to force runtime linking in this case.
13145 aix_use_runtimelinking=yes
13146 LDFLAGS="$LDFLAGS -Wl,-brtl"
13147 fi
13148 ;;
13149 esac
13150
13151 exp_sym_flag='-bexport'
13152 no_entry_flag='-bnoentry'
13153 fi
13154
13155 # When large executables or shared objects are built, AIX ld can
13156 # have problems creating the table of contents. If linking a library
13157 # or program results in "error TOC overflow" add -mminimal-toc to
13158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13160
13161 archive_cmds=''
13162 hardcode_direct=yes
13163 hardcode_direct_absolute=yes
13164 hardcode_libdir_separator=':'
13165 link_all_deplibs=yes
13166 file_list_spec='$wl-f,'
13167 case $with_aix_soname,$aix_use_runtimelinking in
13168 aix,*) ;; # traditional, no import file
13169 svr4,* | *,yes) # use import file
13170 # The Import File defines what to hardcode.
13171 hardcode_direct=no
13172 hardcode_direct_absolute=no
13173 ;;
13174 esac
13175
13176 if test yes = "$GCC"; then
13177 case $host_os in aix4.[012]|aix4.[012].*)
13178 # We only want to do this on AIX 4.2 and lower, the check
13179 # below for broken collect2 doesn't work under 4.3+
13180 collect2name=`$CC -print-prog-name=collect2`
13181 if test -f "$collect2name" &&
13182 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13183 then
13184 # We have reworked collect2
13185 :
13186 else
13187 # We have old collect2
13188 hardcode_direct=unsupported
13189 # It fails to find uninstalled libraries when the uninstalled
13190 # path is not listed in the libpath. Setting hardcode_minus_L
13191 # to unsupported forces relinking
13192 hardcode_minus_L=yes
13193 hardcode_libdir_flag_spec='-L$libdir'
13194 hardcode_libdir_separator=
13195 fi
13196 ;;
13197 esac
13198 shared_flag='-shared'
13199 if test yes = "$aix_use_runtimelinking"; then
13200 shared_flag="$shared_flag "'$wl-G'
13201 fi
13202 # Need to ensure runtime linking is disabled for the traditional
13203 # shared library, or the linker may eventually find shared libraries
13204 # /with/ Import File - we do not want to mix them.
13205 shared_flag_aix='-shared'
13206 shared_flag_svr4='-shared $wl-G'
13207 else
13208 # not using gcc
13209 if test ia64 = "$host_cpu"; then
13210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13211 # chokes on -Wl,-G. The following line is correct:
13212 shared_flag='-G'
13213 else
13214 if test yes = "$aix_use_runtimelinking"; then
13215 shared_flag='$wl-G'
13216 else
13217 shared_flag='$wl-bM:SRE'
13218 fi
13219 shared_flag_aix='$wl-bM:SRE'
13220 shared_flag_svr4='$wl-G'
13221 fi
13222 fi
13223
13224 export_dynamic_flag_spec='$wl-bexpall'
13225 # It seems that -bexpall does not export symbols beginning with
13226 # underscore (_), so it is better to generate a list of symbols to export.
13227 always_export_symbols=yes
13228 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13229 # Warning - without using the other runtime loading flags (-brtl),
13230 # -berok will link without error, but may produce a broken library.
13231 allow_undefined_flag='-berok'
13232 # Determine the default libpath from the value encoded in an
13233 # empty executable.
13234 if test set = "${lt_cv_aix_libpath+set}"; then
13235 aix_libpath=$lt_cv_aix_libpath
13236 else
13237 if test ${lt_cv_aix_libpath_+y}
13238 then :
13239 printf %s "(cached) " >&6
13240 else case e in #(
13241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13243
13244 int
13245 main (void)
13246 {
13247
13248 ;
13249 return 0;
13250 }
13251 _ACEOF
13252 if ac_fn_c_try_link "$LINENO"
13253 then :
13254
13255 lt_aix_libpath_sed='
13256 /Import File Strings/,/^$/ {
13257 /^0/ {
13258 s/^0 *\([^ ]*\) *$/\1/
13259 p
13260 }
13261 }'
13262 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13263 # Check for a 64-bit object if we didn't find anything.
13264 if test -z "$lt_cv_aix_libpath_"; then
13265 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13266 fi
13267 fi
13268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13269 conftest$ac_exeext conftest.$ac_ext
13270 if test -z "$lt_cv_aix_libpath_"; then
13271 lt_cv_aix_libpath_=/usr/lib:/lib
13272 fi
13273 ;;
13274 esac
13275 fi
13276
13277 aix_libpath=$lt_cv_aix_libpath_
13278 fi
13279
13280 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13281 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
13282 else
13283 if test ia64 = "$host_cpu"; then
13284 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13285 allow_undefined_flag="-z nodefs"
13286 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"
13287 else
13288 # Determine the default libpath from the value encoded in an
13289 # empty executable.
13290 if test set = "${lt_cv_aix_libpath+set}"; then
13291 aix_libpath=$lt_cv_aix_libpath
13292 else
13293 if test ${lt_cv_aix_libpath_+y}
13294 then :
13295 printf %s "(cached) " >&6
13296 else case e in #(
13297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13299
13300 int
13301 main (void)
13302 {
13303
13304 ;
13305 return 0;
13306 }
13307 _ACEOF
13308 if ac_fn_c_try_link "$LINENO"
13309 then :
13310
13311 lt_aix_libpath_sed='
13312 /Import File Strings/,/^$/ {
13313 /^0/ {
13314 s/^0 *\([^ ]*\) *$/\1/
13315 p
13316 }
13317 }'
13318 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13319 # Check for a 64-bit object if we didn't find anything.
13320 if test -z "$lt_cv_aix_libpath_"; then
13321 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13322 fi
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13325 conftest$ac_exeext conftest.$ac_ext
13326 if test -z "$lt_cv_aix_libpath_"; then
13327 lt_cv_aix_libpath_=/usr/lib:/lib
13328 fi
13329 ;;
13330 esac
13331 fi
13332
13333 aix_libpath=$lt_cv_aix_libpath_
13334 fi
13335
13336 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13337 # Warning - without using the other run time loading flags,
13338 # -berok will link without error, but may produce a broken library.
13339 no_undefined_flag=' $wl-bernotok'
13340 allow_undefined_flag=' $wl-berok'
13341 if test yes = "$with_gnu_ld"; then
13342 # We only use this code for GNU lds that support --whole-archive.
13343 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13344 else
13345 # Exported symbols can be pulled into shared objects from archives
13346 whole_archive_flag_spec='$convenience'
13347 fi
13348 archive_cmds_need_lc=yes
13349 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13350 # -brtl affects multiple linker settings, -berok does not and is overridden later
13351 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13352 if test svr4 != "$with_aix_soname"; then
13353 # This is similar to how AIX traditionally builds its shared libraries.
13354 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'
13355 fi
13356 if test aix != "$with_aix_soname"; then
13357 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'
13358 else
13359 # used by -dlpreopen to get the symbols
13360 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13361 fi
13362 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13363 fi
13364 fi
13365 ;;
13366
13367 amigaos*)
13368 case $host_cpu in
13369 powerpc)
13370 # see comment about AmigaOS4 .so support
13371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13372 archive_expsym_cmds=''
13373 ;;
13374 m68k)
13375 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)'
13376 hardcode_libdir_flag_spec='-L$libdir'
13377 hardcode_minus_L=yes
13378 ;;
13379 esac
13380 ;;
13381
13382 bsdi[45]*)
13383 export_dynamic_flag_spec=-rdynamic
13384 ;;
13385
13386 cygwin* | mingw* | windows* | pw32* | cegcc*)
13387 # When not using gcc, we currently assume that we are using
13388 # Microsoft Visual C++ or Intel C++ Compiler.
13389 # hardcode_libdir_flag_spec is actually meaningless, as there is
13390 # no search path for DLLs.
13391 case $cc_basename in
13392 cl* | icl*)
13393 # Native MSVC or ICC
13394 hardcode_libdir_flag_spec=' '
13395 allow_undefined_flag=unsupported
13396 always_export_symbols=yes
13397 file_list_spec='@'
13398 # Tell ltmain to make .lib files, not .a files.
13399 libext=lib
13400 # Tell ltmain to make .dll files, not .so files.
13401 shrext_cmds=.dll
13402 # FIXME: Setting linknames here is a bad hack.
13403 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13404 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13405 cp "$export_symbols" "$output_objdir/$soname.def";
13406 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13407 else
13408 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13409 fi~
13410 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13411 linknames='
13412 # The linker will not automatically build a static lib if we build a DLL.
13413 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13414 enable_shared_with_static_runtimes=yes
13415 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13416 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13417 # Don't use ranlib
13418 old_postinstall_cmds='chmod 644 $oldlib'
13419 postlink_cmds='lt_outputfile="@OUTPUT@"~
13420 lt_tool_outputfile="@TOOL_OUTPUT@"~
13421 case $lt_outputfile in
13422 *.exe|*.EXE) ;;
13423 *)
13424 lt_outputfile=$lt_outputfile.exe
13425 lt_tool_outputfile=$lt_tool_outputfile.exe
13426 ;;
13427 esac~
13428 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13429 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13430 $RM "$lt_outputfile.manifest";
13431 fi'
13432 ;;
13433 *)
13434 # Assume MSVC and ICC wrapper
13435 hardcode_libdir_flag_spec=' '
13436 allow_undefined_flag=unsupported
13437 # Tell ltmain to make .lib files, not .a files.
13438 libext=lib
13439 # Tell ltmain to make .dll files, not .so files.
13440 shrext_cmds=.dll
13441 # FIXME: Setting linknames here is a bad hack.
13442 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13443 # The linker will automatically build a .lib file if we build a DLL.
13444 old_archive_from_new_cmds='true'
13445 # FIXME: Should let the user specify the lib program.
13446 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13447 enable_shared_with_static_runtimes=yes
13448 ;;
13449 esac
13450 ;;
13451
13452 darwin* | rhapsody*)
13453
13454
13455 archive_cmds_need_lc=no
13456 hardcode_direct=no
13457 hardcode_automatic=yes
13458 hardcode_shlibpath_var=unsupported
13459 if test yes = "$lt_cv_ld_force_load"; then
13460 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\"`'
13461
13462 else
13463 whole_archive_flag_spec=''
13464 fi
13465 link_all_deplibs=yes
13466 allow_undefined_flag=$_lt_dar_allow_undefined
13467 case $cc_basename in
13468 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13469 *) _lt_dar_can_shared=$GCC ;;
13470 esac
13471 if test yes = "$_lt_dar_can_shared"; then
13472 output_verbose_link_cmd=func_echo_all
13473 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13474 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13475 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"
13476 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"
13477
13478 else
13479 ld_shlibs=no
13480 fi
13481
13482 ;;
13483
13484 dgux*)
13485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13486 hardcode_libdir_flag_spec='-L$libdir'
13487 hardcode_shlibpath_var=no
13488 ;;
13489
13490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13491 # support. Future versions do this automatically, but an explicit c++rt0.o
13492 # does not break anything, and helps significantly (at the cost of a little
13493 # extra space).
13494 freebsd2.2*)
13495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13496 hardcode_libdir_flag_spec='-R$libdir'
13497 hardcode_direct=yes
13498 hardcode_shlibpath_var=no
13499 ;;
13500
13501 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13502 freebsd2.*)
13503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_direct=yes
13505 hardcode_minus_L=yes
13506 hardcode_shlibpath_var=no
13507 ;;
13508
13509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13510 freebsd* | dragonfly* | midnightbsd*)
13511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13512 hardcode_libdir_flag_spec='-R$libdir'
13513 hardcode_direct=yes
13514 hardcode_shlibpath_var=no
13515 ;;
13516
13517 hpux9*)
13518 if test yes = "$GCC"; then
13519 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'
13520 else
13521 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'
13522 fi
13523 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13524 hardcode_libdir_separator=:
13525 hardcode_direct=yes
13526
13527 # hardcode_minus_L: Not really in the search PATH,
13528 # but as the default location of the library.
13529 hardcode_minus_L=yes
13530 export_dynamic_flag_spec='$wl-E'
13531 ;;
13532
13533 hpux10*)
13534 if test yes,no = "$GCC,$with_gnu_ld"; then
13535 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13536 else
13537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13538 fi
13539 if test no = "$with_gnu_ld"; then
13540 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13541 hardcode_libdir_separator=:
13542 hardcode_direct=yes
13543 hardcode_direct_absolute=yes
13544 export_dynamic_flag_spec='$wl-E'
13545 # hardcode_minus_L: Not really in the search PATH,
13546 # but as the default location of the library.
13547 hardcode_minus_L=yes
13548 fi
13549 ;;
13550
13551 hpux11*)
13552 if test yes,no = "$GCC,$with_gnu_ld"; then
13553 case $host_cpu in
13554 hppa*64*)
13555 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13556 ;;
13557 ia64*)
13558 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13559 ;;
13560 *)
13561 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13562 ;;
13563 esac
13564 else
13565 case $host_cpu in
13566 hppa*64*)
13567 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13568 ;;
13569 ia64*)
13570 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13571 ;;
13572 *)
13573
13574 # Older versions of the 11.00 compiler do not understand -b yet
13575 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13577 printf %s "checking if $CC understands -b... " >&6; }
13578 if test ${lt_cv_prog_compiler__b+y}
13579 then :
13580 printf %s "(cached) " >&6
13581 else case e in #(
13582 e) lt_cv_prog_compiler__b=no
13583 save_LDFLAGS=$LDFLAGS
13584 LDFLAGS="$LDFLAGS -b"
13585 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13587 # The linker can only warn and ignore the option if not recognized
13588 # So say no if there are warnings
13589 if test -s conftest.err; then
13590 # Append any errors to the config.log.
13591 cat conftest.err 1>&5
13592 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13594 if diff conftest.exp conftest.er2 >/dev/null; then
13595 lt_cv_prog_compiler__b=yes
13596 fi
13597 else
13598 lt_cv_prog_compiler__b=yes
13599 fi
13600 fi
13601 $RM -r conftest*
13602 LDFLAGS=$save_LDFLAGS
13603 ;;
13604 esac
13605 fi
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13607 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13608
13609 if test yes = "$lt_cv_prog_compiler__b"; then
13610 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13611 else
13612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13613 fi
13614
13615 ;;
13616 esac
13617 fi
13618 if test no = "$with_gnu_ld"; then
13619 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13620 hardcode_libdir_separator=:
13621
13622 case $host_cpu in
13623 hppa*64*|ia64*)
13624 hardcode_direct=no
13625 hardcode_shlibpath_var=no
13626 ;;
13627 *)
13628 hardcode_direct=yes
13629 hardcode_direct_absolute=yes
13630 export_dynamic_flag_spec='$wl-E'
13631
13632 # hardcode_minus_L: Not really in the search PATH,
13633 # but as the default location of the library.
13634 hardcode_minus_L=yes
13635 ;;
13636 esac
13637 fi
13638 ;;
13639
13640 irix5* | irix6* | nonstopux*)
13641 if test yes = "$GCC"; then
13642 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'
13643 # Try to use the -exported_symbol ld option, if it does not
13644 # work, assume that -exports_file does not work either and
13645 # implicitly export all symbols.
13646 # This should be the same for all languages, so no per-tag cache variable.
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13648 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13649 if test ${lt_cv_irix_exported_symbol+y}
13650 then :
13651 printf %s "(cached) " >&6
13652 else case e in #(
13653 e) save_LDFLAGS=$LDFLAGS
13654 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13657 int foo (void) { return 0; }
13658 _ACEOF
13659 if ac_fn_c_try_link "$LINENO"
13660 then :
13661 lt_cv_irix_exported_symbol=yes
13662 else case e in #(
13663 e) lt_cv_irix_exported_symbol=no ;;
13664 esac
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13667 conftest$ac_exeext conftest.$ac_ext
13668 LDFLAGS=$save_LDFLAGS ;;
13669 esac
13670 fi
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13672 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13673 if test yes = "$lt_cv_irix_exported_symbol"; then
13674 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'
13675 fi
13676 link_all_deplibs=no
13677 else
13678 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'
13679 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'
13680 fi
13681 archive_cmds_need_lc='no'
13682 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13683 hardcode_libdir_separator=:
13684 inherit_rpath=yes
13685 link_all_deplibs=yes
13686 ;;
13687
13688 linux*)
13689 case $cc_basename in
13690 tcc*)
13691 # Fabrice Bellard et al's Tiny C Compiler
13692 ld_shlibs=yes
13693 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13694 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13695 ;;
13696 esac
13697 ;;
13698
13699 *-mlibc)
13700 ;;
13701
13702 netbsd* | netbsdelf*-gnu)
13703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13705 else
13706 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13707 fi
13708 hardcode_libdir_flag_spec='-R$libdir'
13709 hardcode_direct=yes
13710 hardcode_shlibpath_var=no
13711 ;;
13712
13713 newsos6)
13714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13715 hardcode_direct=yes
13716 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13717 hardcode_libdir_separator=:
13718 hardcode_shlibpath_var=no
13719 ;;
13720
13721 *nto* | *qnx*)
13722 ;;
13723
13724 openbsd*)
13725 if test -f /usr/libexec/ld.so; then
13726 hardcode_direct=yes
13727 hardcode_shlibpath_var=no
13728 hardcode_direct_absolute=yes
13729 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13730 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13731 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13732 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13733 export_dynamic_flag_spec='$wl-E'
13734 else
13735 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13736 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13737 fi
13738 else
13739 ld_shlibs=no
13740 fi
13741 ;;
13742
13743 os2*)
13744 hardcode_libdir_flag_spec='-L$libdir'
13745 hardcode_minus_L=yes
13746 allow_undefined_flag=unsupported
13747 shrext_cmds=.dll
13748 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13749 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13750 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13751 $ECHO EXPORTS >> $output_objdir/$libname.def~
13752 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13753 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13754 emximp -o $lib $output_objdir/$libname.def'
13755 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13756 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13757 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13758 $ECHO EXPORTS >> $output_objdir/$libname.def~
13759 prefix_cmds="$SED"~
13760 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13761 prefix_cmds="$prefix_cmds -e 1d";
13762 fi~
13763 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13764 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13765 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13766 emximp -o $lib $output_objdir/$libname.def'
13767 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13768 enable_shared_with_static_runtimes=yes
13769 file_list_spec='@'
13770 ;;
13771
13772 osf3*)
13773 if test yes = "$GCC"; then
13774 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13775 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'
13776 else
13777 allow_undefined_flag=' -expect_unresolved \*'
13778 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'
13779 fi
13780 archive_cmds_need_lc='no'
13781 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13782 hardcode_libdir_separator=:
13783 ;;
13784
13785 osf4* | osf5*) # as osf3* with the addition of -msym flag
13786 if test yes = "$GCC"; then
13787 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13788 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'
13789 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13790 else
13791 allow_undefined_flag=' -expect_unresolved \*'
13792 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'
13793 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~
13794 $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'
13795
13796 # Both c and cxx compiler support -rpath directly
13797 hardcode_libdir_flag_spec='-rpath $libdir'
13798 fi
13799 archive_cmds_need_lc='no'
13800 hardcode_libdir_separator=:
13801 ;;
13802
13803 serenity*)
13804 ;;
13805
13806 solaris*)
13807 no_undefined_flag=' -z defs'
13808 if test yes = "$GCC"; then
13809 wlarc='$wl'
13810 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13812 $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'
13813 else
13814 case `$CC -V 2>&1` in
13815 *"Compilers 5.0"*)
13816 wlarc=''
13817 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13818 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13819 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13820 ;;
13821 *)
13822 wlarc='$wl'
13823 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13825 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13826 ;;
13827 esac
13828 fi
13829 hardcode_libdir_flag_spec='-R$libdir'
13830 hardcode_shlibpath_var=no
13831 case $host_os in
13832 solaris2.[0-5] | solaris2.[0-5].*) ;;
13833 *)
13834 # The compiler driver will combine and reorder linker options,
13835 # but understands '-z linker_flag'. GCC discards it without '$wl',
13836 # but is careful enough not to reorder.
13837 # Supported since Solaris 2.6 (maybe 2.5.1?)
13838 if test yes = "$GCC"; then
13839 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13840 else
13841 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13842 fi
13843 ;;
13844 esac
13845 link_all_deplibs=yes
13846 ;;
13847
13848 sunos4*)
13849 if test sequent = "$host_vendor"; then
13850 # Use $CC to link under sequent, because it throws in some extra .o
13851 # files that make .init and .fini sections work.
13852 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13853 else
13854 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13855 fi
13856 hardcode_libdir_flag_spec='-L$libdir'
13857 hardcode_direct=yes
13858 hardcode_minus_L=yes
13859 hardcode_shlibpath_var=no
13860 ;;
13861
13862 sysv4)
13863 case $host_vendor in
13864 sni)
13865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13866 hardcode_direct=yes # is this really true???
13867 ;;
13868 siemens)
13869 ## LD is ld it makes a PLAMLIB
13870 ## CC just makes a GrossModule.
13871 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13872 reload_cmds='$CC -r -o $output$reload_objs'
13873 hardcode_direct=no
13874 ;;
13875 motorola)
13876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13877 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13878 ;;
13879 esac
13880 runpath_var='LD_RUN_PATH'
13881 hardcode_shlibpath_var=no
13882 ;;
13883
13884 sysv4.3*)
13885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886 hardcode_shlibpath_var=no
13887 export_dynamic_flag_spec='-Bexport'
13888 ;;
13889
13890 sysv4*MP*)
13891 if test -d /usr/nec; then
13892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13893 hardcode_shlibpath_var=no
13894 runpath_var=LD_RUN_PATH
13895 hardcode_runpath_var=yes
13896 ld_shlibs=yes
13897 fi
13898 ;;
13899
13900 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13901 no_undefined_flag='$wl-z,text'
13902 archive_cmds_need_lc=no
13903 hardcode_shlibpath_var=no
13904 runpath_var='LD_RUN_PATH'
13905
13906 if test yes = "$GCC"; then
13907 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13908 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13909 else
13910 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13911 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13912 fi
13913 ;;
13914
13915 sysv5* | sco3.2v5* | sco5v6*)
13916 # Note: We CANNOT use -z defs as we might desire, because we do not
13917 # link with -lc, and that would cause any symbols used from libc to
13918 # always be unresolved, which means just about no library would
13919 # ever link correctly. If we're not using GNU ld we use -z text
13920 # though, which does catch some bad symbols but isn't as heavy-handed
13921 # as -z defs.
13922 no_undefined_flag='$wl-z,text'
13923 allow_undefined_flag='$wl-z,nodefs'
13924 archive_cmds_need_lc=no
13925 hardcode_shlibpath_var=no
13926 hardcode_libdir_flag_spec='$wl-R,$libdir'
13927 hardcode_libdir_separator=':'
13928 link_all_deplibs=yes
13929 export_dynamic_flag_spec='$wl-Bexport'
13930 runpath_var='LD_RUN_PATH'
13931
13932 if test yes = "$GCC"; then
13933 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13934 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13935 else
13936 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13937 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13938 fi
13939 ;;
13940
13941 uts4*)
13942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13943 hardcode_libdir_flag_spec='-L$libdir'
13944 hardcode_shlibpath_var=no
13945 ;;
13946
13947 *)
13948 ld_shlibs=no
13949 ;;
13950 esac
13951
13952 if test sni = "$host_vendor"; then
13953 case $host in
13954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13955 export_dynamic_flag_spec='$wl-Blargedynsym'
13956 ;;
13957 esac
13958 fi
13959 fi
13960
13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13962 printf "%s\n" "$ld_shlibs" >&6; }
13963 test no = "$ld_shlibs" && can_build_shared=no
13964
13965 with_gnu_ld=$with_gnu_ld
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981 #
13982 # Do we need to explicitly link libc?
13983 #
13984 case "x$archive_cmds_need_lc" in
13985 x|xyes)
13986 # Assume -lc should be added
13987 archive_cmds_need_lc=yes
13988
13989 if test yes,yes = "$GCC,$enable_shared"; then
13990 case $archive_cmds in
13991 *'~'*)
13992 # FIXME: we may have to deal with multi-command sequences.
13993 ;;
13994 '$CC '*)
13995 # Test whether the compiler implicitly links with -lc since on some
13996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13997 # to ld, don't add -lc before -lgcc.
13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13999 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14000 if test ${lt_cv_archive_cmds_need_lc+y}
14001 then :
14002 printf %s "(cached) " >&6
14003 else case e in #(
14004 e) $RM conftest*
14005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14006
14007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14008 (eval $ac_compile) 2>&5
14009 ac_status=$?
14010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14011 test $ac_status = 0; } 2>conftest.err; then
14012 soname=conftest
14013 lib=conftest
14014 libobjs=conftest.$ac_objext
14015 deplibs=
14016 wl=$lt_prog_compiler_wl
14017 pic_flag=$lt_prog_compiler_pic
14018 compiler_flags=-v
14019 linker_flags=-v
14020 verstring=
14021 output_objdir=.
14022 libname=conftest
14023 lt_save_allow_undefined_flag=$allow_undefined_flag
14024 allow_undefined_flag=
14025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14026 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14027 ac_status=$?
14028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029 test $ac_status = 0; }
14030 then
14031 lt_cv_archive_cmds_need_lc=no
14032 else
14033 lt_cv_archive_cmds_need_lc=yes
14034 fi
14035 allow_undefined_flag=$lt_save_allow_undefined_flag
14036 else
14037 cat conftest.err 1>&5
14038 fi
14039 $RM conftest*
14040 ;;
14041 esac
14042 fi
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14044 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14045 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14046 ;;
14047 esac
14048 fi
14049 ;;
14050 esac
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14204 printf %s "checking dynamic linker characteristics... " >&6; }
14205
14206 if test yes = "$GCC"; then
14207 case $host_os in
14208 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14209 *) lt_awk_arg='/^libraries:/' ;;
14210 esac
14211 case $host_os in
14212 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14213 *) lt_sed_strip_eq='s|=/|/|g' ;;
14214 esac
14215 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14216 case $lt_search_path_spec in
14217 *\;*)
14218 # if the path contains ";" then we assume it to be the separator
14219 # otherwise default to the standard path separator (i.e. ":") - it is
14220 # assumed that no part of a normal pathname contains ";" but that should
14221 # okay in the real world where ";" in dirpaths is itself problematic.
14222 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14223 ;;
14224 *)
14225 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14226 ;;
14227 esac
14228 # Ok, now we have the path, separated by spaces, we can step through it
14229 # and add multilib dir if necessary...
14230 lt_tmp_lt_search_path_spec=
14231 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14232 # ...but if some path component already ends with the multilib dir we assume
14233 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14234 case "$lt_multi_os_dir; $lt_search_path_spec " in
14235 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14236 lt_multi_os_dir=
14237 ;;
14238 esac
14239 for lt_sys_path in $lt_search_path_spec; do
14240 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14242 elif test -n "$lt_multi_os_dir"; then
14243 test -d "$lt_sys_path" && \
14244 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14245 fi
14246 done
14247 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14248 BEGIN {RS = " "; FS = "/|\n";} {
14249 lt_foo = "";
14250 lt_count = 0;
14251 for (lt_i = NF; lt_i > 0; lt_i--) {
14252 if ($lt_i != "" && $lt_i != ".") {
14253 if ($lt_i == "..") {
14254 lt_count++;
14255 } else {
14256 if (lt_count == 0) {
14257 lt_foo = "/" $lt_i lt_foo;
14258 } else {
14259 lt_count--;
14260 }
14261 }
14262 }
14263 }
14264 if (lt_foo != "") { lt_freq[lt_foo]++; }
14265 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14266 }'`
14267 # AWK program above erroneously prepends '/' to C:/dos/paths
14268 # for these hosts.
14269 case $host_os in
14270 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14271 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14272 esac
14273 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14274 else
14275 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14276 fi
14277 library_names_spec=
14278 libname_spec='lib$name'
14279 soname_spec=
14280 shrext_cmds=.so
14281 postinstall_cmds=
14282 postuninstall_cmds=
14283 finish_cmds=
14284 finish_eval=
14285 shlibpath_var=
14286 shlibpath_overrides_runpath=unknown
14287 version_type=none
14288 dynamic_linker="$host_os ld.so"
14289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14290 need_lib_prefix=unknown
14291 hardcode_into_libs=no
14292
14293 # when you set need_version to no, make sure it does not cause -set_version
14294 # flags to be left without arguments
14295 need_version=unknown
14296
14297
14298
14299 case $host_os in
14300 aix3*)
14301 version_type=linux # correct to gnu/linux during the next big refactor
14302 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14303 shlibpath_var=LIBPATH
14304
14305 # AIX 3 has no versioning support, so we append a major version to the name.
14306 soname_spec='$libname$release$shared_ext$major'
14307 ;;
14308
14309 aix[4-9]*)
14310 version_type=linux # correct to gnu/linux during the next big refactor
14311 need_lib_prefix=no
14312 need_version=no
14313 hardcode_into_libs=yes
14314 if test ia64 = "$host_cpu"; then
14315 # AIX 5 supports IA64
14316 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14317 shlibpath_var=LD_LIBRARY_PATH
14318 else
14319 # With GCC up to 2.95.x, collect2 would create an import file
14320 # for dependence libraries. The import file would start with
14321 # the line '#! .'. This would cause the generated library to
14322 # depend on '.', always an invalid library. This was fixed in
14323 # development snapshots of GCC prior to 3.0.
14324 case $host_os in
14325 aix4 | aix4.[01] | aix4.[01].*)
14326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14327 echo ' yes '
14328 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14329 :
14330 else
14331 can_build_shared=no
14332 fi
14333 ;;
14334 esac
14335 # Using Import Files as archive members, it is possible to support
14336 # filename-based versioning of shared library archives on AIX. While
14337 # this would work for both with and without runtime linking, it will
14338 # prevent static linking of such archives. So we do filename-based
14339 # shared library versioning with .so extension only, which is used
14340 # when both runtime linking and shared linking is enabled.
14341 # Unfortunately, runtime linking may impact performance, so we do
14342 # not want this to be the default eventually. Also, we use the
14343 # versioned .so libs for executables only if there is the -brtl
14344 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
14345 # To allow for filename-based versioning support, we need to create
14346 # libNAME.so.V as an archive file, containing:
14347 # *) an Import File, referring to the versioned filename of the
14348 # archive as well as the shared archive member, telling the
14349 # bitwidth (32 or 64) of that shared object, and providing the
14350 # list of exported symbols of that shared object, eventually
14351 # decorated with the 'weak' keyword
14352 # *) the shared object with the F_LOADONLY flag set, to really avoid
14353 # it being seen by the linker.
14354 # At run time we better use the real file rather than another symlink,
14355 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14356
14357 case $with_aix_soname,$aix_use_runtimelinking in
14358 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14359 # soname into executable. Probably we can add versioning support to
14360 # collect2, so additional links can be useful in future.
14361 aix,yes) # traditional libtool
14362 dynamic_linker='AIX unversionable lib.so'
14363 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14364 # instead of lib<name>.a to let people know that these are not
14365 # typical AIX shared libraries.
14366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14367 ;;
14368 aix,no) # traditional AIX only
14369 dynamic_linker='AIX lib.a(lib.so.V)'
14370 # We preserve .a as extension for shared libraries through AIX4.2
14371 # and later when we are not doing run time linking.
14372 library_names_spec='$libname$release.a $libname.a'
14373 soname_spec='$libname$release$shared_ext$major'
14374 ;;
14375 svr4,*) # full svr4 only
14376 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14377 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14378 # We do not specify a path in Import Files, so LIBPATH fires.
14379 shlibpath_overrides_runpath=yes
14380 ;;
14381 *,yes) # both, prefer svr4
14382 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14383 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14384 # unpreferred sharedlib libNAME.a needs extra handling
14385 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"'
14386 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"'
14387 # We do not specify a path in Import Files, so LIBPATH fires.
14388 shlibpath_overrides_runpath=yes
14389 ;;
14390 *,no) # both, prefer aix
14391 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14392 library_names_spec='$libname$release.a $libname.a'
14393 soname_spec='$libname$release$shared_ext$major'
14394 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14395 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)'
14396 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"'
14397 ;;
14398 esac
14399 shlibpath_var=LIBPATH
14400 fi
14401 ;;
14402
14403 amigaos*)
14404 case $host_cpu in
14405 powerpc)
14406 # Since July 2007 AmigaOS4 officially supports .so libraries.
14407 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14409 ;;
14410 m68k)
14411 library_names_spec='$libname.ixlibrary $libname.a'
14412 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14413 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'
14414 ;;
14415 esac
14416 ;;
14417
14418 beos*)
14419 library_names_spec='$libname$shared_ext'
14420 dynamic_linker="$host_os ld.so"
14421 shlibpath_var=LIBRARY_PATH
14422 ;;
14423
14424 bsdi[45]*)
14425 version_type=linux # correct to gnu/linux during the next big refactor
14426 need_version=no
14427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14428 soname_spec='$libname$release$shared_ext$major'
14429 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14430 shlibpath_var=LD_LIBRARY_PATH
14431 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14432 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14433 # the default ld.so.conf also contains /usr/contrib/lib and
14434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14435 # libtool to hard-code these into programs
14436 ;;
14437
14438 cygwin* | mingw* | windows* | pw32* | cegcc*)
14439 version_type=windows
14440 shrext_cmds=.dll
14441 need_version=no
14442 need_lib_prefix=no
14443
14444 case $GCC,$cc_basename in
14445 yes,*)
14446 # gcc
14447 library_names_spec='$libname.dll.a'
14448 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14449 # If user builds GCC with multilib enabled,
14450 # it should just install on $(libdir)
14451 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
14452 if test xyes = x"$multilib"; then
14453 postinstall_cmds='base_file=`basename \$file`~
14454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14455 dldir=$destdir/`dirname \$dlpath`~
14456 $install_prog $dir/$dlname $destdir/$dlname~
14457 chmod a+x $destdir/$dlname~
14458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14459 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
14460 fi'
14461 else
14462 postinstall_cmds='base_file=`basename \$file`~
14463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14464 dldir=$destdir/`dirname \$dlpath`~
14465 test -d \$dldir || mkdir -p \$dldir~
14466 $install_prog $dir/$dlname \$dldir/$dlname~
14467 chmod a+x \$dldir/$dlname~
14468 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14469 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14470 fi'
14471 fi
14472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14473 dlpath=$dir/\$dldll~
14474 $RM \$dlpath'
14475 shlibpath_overrides_runpath=yes
14476
14477 case $host_os in
14478 cygwin*)
14479 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14480 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14481
14482 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14483 ;;
14484 mingw* | windows* | cegcc*)
14485 # MinGW DLLs use traditional 'lib' prefix
14486 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14487 ;;
14488 pw32*)
14489 # pw32 DLLs use 'pw' prefix rather than 'lib'
14490 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14491 ;;
14492 esac
14493 dynamic_linker='Win32 ld.exe'
14494 ;;
14495
14496 *,cl* | *,icl*)
14497 # Native MSVC or ICC
14498 libname_spec='$name'
14499 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14500 library_names_spec='$libname.dll.lib'
14501
14502 case $build_os in
14503 mingw* | windows*)
14504 sys_lib_search_path_spec=
14505 lt_save_ifs=$IFS
14506 IFS=';'
14507 for lt_path in $LIB
14508 do
14509 IFS=$lt_save_ifs
14510 # Let DOS variable expansion print the short 8.3 style file name.
14511 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14512 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14513 done
14514 IFS=$lt_save_ifs
14515 # Convert to MSYS style.
14516 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14517 ;;
14518 cygwin*)
14519 # Convert to unix form, then to dos form, then back to unix form
14520 # but this time dos style (no spaces!) so that the unix form looks
14521 # like /cygdrive/c/PROGRA~1:/cygdr...
14522 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14523 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14524 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14525 ;;
14526 *)
14527 sys_lib_search_path_spec=$LIB
14528 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14529 # It is most probably a Windows format PATH.
14530 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14531 else
14532 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14533 fi
14534 # FIXME: find the short name or the path components, as spaces are
14535 # common. (e.g. "Program Files" -> "PROGRA~1")
14536 ;;
14537 esac
14538
14539 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14540 postinstall_cmds='base_file=`basename \$file`~
14541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14542 dldir=$destdir/`dirname \$dlpath`~
14543 test -d \$dldir || mkdir -p \$dldir~
14544 $install_prog $dir/$dlname \$dldir/$dlname'
14545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14546 dlpath=$dir/\$dldll~
14547 $RM \$dlpath'
14548 shlibpath_overrides_runpath=yes
14549 dynamic_linker='Win32 link.exe'
14550 ;;
14551
14552 *)
14553 # Assume MSVC and ICC wrapper
14554 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14555 dynamic_linker='Win32 ld.exe'
14556 ;;
14557 esac
14558 # FIXME: first we should search . and the directory the executable is in
14559 shlibpath_var=PATH
14560 ;;
14561
14562 darwin* | rhapsody*)
14563 dynamic_linker="$host_os dyld"
14564 version_type=darwin
14565 need_lib_prefix=no
14566 need_version=no
14567 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14568 soname_spec='$libname$release$major$shared_ext'
14569 shlibpath_overrides_runpath=yes
14570 shlibpath_var=DYLD_LIBRARY_PATH
14571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14572
14573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14575 ;;
14576
14577 dgux*)
14578 version_type=linux # correct to gnu/linux during the next big refactor
14579 need_lib_prefix=no
14580 need_version=no
14581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14582 soname_spec='$libname$release$shared_ext$major'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 ;;
14585
14586 freebsd* | dragonfly* | midnightbsd*)
14587 # DragonFly does not have aout. When/if they implement a new
14588 # versioning mechanism, adjust this.
14589 if test -x /usr/bin/objformat; then
14590 objformat=`/usr/bin/objformat`
14591 else
14592 case $host_os in
14593 freebsd[23].*) objformat=aout ;;
14594 *) objformat=elf ;;
14595 esac
14596 fi
14597 version_type=freebsd-$objformat
14598 case $version_type in
14599 freebsd-elf*)
14600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14601 soname_spec='$libname$release$shared_ext$major'
14602 need_version=no
14603 need_lib_prefix=no
14604 ;;
14605 freebsd-*)
14606 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14607 need_version=yes
14608 ;;
14609 esac
14610 case $host_cpu in
14611 powerpc64)
14612 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14613 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 int test_pointer_size[sizeof (void *) - 5];
14617
14618 _ACEOF
14619 if ac_fn_c_try_compile "$LINENO"
14620 then :
14621 shlibpath_var=LD_LIBRARY_PATH
14622 else case e in #(
14623 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14624 esac
14625 fi
14626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14627 ;;
14628 *)
14629 shlibpath_var=LD_LIBRARY_PATH
14630 ;;
14631 esac
14632 case $host_os in
14633 freebsd2.*)
14634 shlibpath_overrides_runpath=yes
14635 ;;
14636 freebsd3.[01]* | freebsdelf3.[01]*)
14637 shlibpath_overrides_runpath=yes
14638 hardcode_into_libs=yes
14639 ;;
14640 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14641 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14642 shlibpath_overrides_runpath=no
14643 hardcode_into_libs=yes
14644 ;;
14645 *) # from 4.6 on, and DragonFly
14646 shlibpath_overrides_runpath=yes
14647 hardcode_into_libs=yes
14648 ;;
14649 esac
14650 ;;
14651
14652 haiku*)
14653 version_type=linux # correct to gnu/linux during the next big refactor
14654 need_lib_prefix=no
14655 need_version=no
14656 dynamic_linker="$host_os runtime_loader"
14657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14658 soname_spec='$libname$release$shared_ext$major'
14659 shlibpath_var=LIBRARY_PATH
14660 shlibpath_overrides_runpath=no
14661 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14662 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14663 hardcode_into_libs=no
14664 ;;
14665
14666 hpux9* | hpux10* | hpux11*)
14667 # Give a soname corresponding to the major version so that dld.sl refuses to
14668 # link against other versions.
14669 version_type=sunos
14670 need_lib_prefix=no
14671 need_version=no
14672 case $host_cpu in
14673 ia64*)
14674 shrext_cmds='.so'
14675 hardcode_into_libs=yes
14676 dynamic_linker="$host_os dld.so"
14677 shlibpath_var=LD_LIBRARY_PATH
14678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14680 soname_spec='$libname$release$shared_ext$major'
14681 if test 32 = "$HPUX_IA64_MODE"; then
14682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14683 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14684 else
14685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14686 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14687 fi
14688 ;;
14689 hppa*64*)
14690 shrext_cmds='.sl'
14691 hardcode_into_libs=yes
14692 dynamic_linker="$host_os dld.sl"
14693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14696 soname_spec='$libname$release$shared_ext$major'
14697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14699 ;;
14700 *)
14701 shrext_cmds='.sl'
14702 dynamic_linker="$host_os dld.sl"
14703 shlibpath_var=SHLIB_PATH
14704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14706 soname_spec='$libname$release$shared_ext$major'
14707 ;;
14708 esac
14709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14710 postinstall_cmds='chmod 555 $lib'
14711 # or fails outright, so override atomically:
14712 install_override_mode=555
14713 ;;
14714
14715 interix[3-9]*)
14716 version_type=linux # correct to gnu/linux during the next big refactor
14717 need_lib_prefix=no
14718 need_version=no
14719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14720 soname_spec='$libname$release$shared_ext$major'
14721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 shlibpath_overrides_runpath=no
14724 hardcode_into_libs=yes
14725 ;;
14726
14727 irix5* | irix6* | nonstopux*)
14728 case $host_os in
14729 nonstopux*) version_type=nonstopux ;;
14730 *)
14731 if test yes = "$lt_cv_prog_gnu_ld"; then
14732 version_type=linux # correct to gnu/linux during the next big refactor
14733 else
14734 version_type=irix
14735 fi ;;
14736 esac
14737 need_lib_prefix=no
14738 need_version=no
14739 soname_spec='$libname$release$shared_ext$major'
14740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14741 case $host_os in
14742 irix5* | nonstopux*)
14743 libsuff= shlibsuff=
14744 ;;
14745 *)
14746 case $LD in # libtool.m4 will add one of these switches to LD
14747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14748 libsuff= shlibsuff= libmagic=32-bit;;
14749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14750 libsuff=32 shlibsuff=N32 libmagic=N32;;
14751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14753 *) libsuff= shlibsuff= libmagic=never-match;;
14754 esac
14755 ;;
14756 esac
14757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14758 shlibpath_overrides_runpath=no
14759 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14760 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14761 hardcode_into_libs=yes
14762 ;;
14763
14764 # No shared lib support for Linux oldld, aout, or coff.
14765 linux*oldld* | linux*aout* | linux*coff*)
14766 dynamic_linker=no
14767 ;;
14768
14769 linux*android*)
14770 version_type=none # Android doesn't support versioned libraries.
14771 need_lib_prefix=no
14772 need_version=no
14773 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14774 soname_spec='$libname$release$shared_ext'
14775 finish_cmds=
14776 shlibpath_var=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath=yes
14778
14779 # This implies no fast_install, which is unacceptable.
14780 # Some rework will be needed to allow for fast_install
14781 # before this can be enabled.
14782 hardcode_into_libs=yes
14783
14784 dynamic_linker='Android linker'
14785 # -rpath works at least for libraries that are not overridden by
14786 # libraries installed in system locations.
14787 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14788 ;;
14789
14790 # This must be glibc/ELF.
14791 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14792 version_type=linux # correct to gnu/linux during the next big refactor
14793 need_lib_prefix=no
14794 need_version=no
14795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14796 soname_spec='$libname$release$shared_ext$major'
14797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=no
14800
14801 # Some binutils ld are patched to set DT_RUNPATH
14802 if test ${lt_cv_shlibpath_overrides_runpath+y}
14803 then :
14804 printf %s "(cached) " >&6
14805 else case e in #(
14806 e) lt_cv_shlibpath_overrides_runpath=no
14807 save_LDFLAGS=$LDFLAGS
14808 save_libdir=$libdir
14809 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14810 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813
14814 int
14815 main (void)
14816 {
14817
14818 ;
14819 return 0;
14820 }
14821 _ACEOF
14822 if ac_fn_c_try_link "$LINENO"
14823 then :
14824 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14825 then :
14826 lt_cv_shlibpath_overrides_runpath=yes
14827 fi
14828 fi
14829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14830 conftest$ac_exeext conftest.$ac_ext
14831 LDFLAGS=$save_LDFLAGS
14832 libdir=$save_libdir
14833 ;;
14834 esac
14835 fi
14836
14837 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14838
14839 # This implies no fast_install, which is unacceptable.
14840 # Some rework will be needed to allow for fast_install
14841 # before this can be enabled.
14842 hardcode_into_libs=yes
14843
14844 # Ideally, we could use ldconfig to report *all* directories which are
14845 # searched for libraries, however this is still not possible. Aside from not
14846 # being certain /sbin/ldconfig is available, command
14847 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14848 # even though it is searched at run-time. Try to do the best guess by
14849 # appending ld.so.conf contents (and includes) to the search path.
14850 if test -f /etc/ld.so.conf; then
14851 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' ' '`
14852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14853 fi
14854
14855 # We used to test for /lib/ld.so.1 and disable shared libraries on
14856 # powerpc, because MkLinux only supported shared libraries with the
14857 # GNU dynamic linker. Since this was broken with cross compilers,
14858 # most powerpc-linux boxes support dynamic linking these days and
14859 # people can always --disable-shared, the test was removed, and we
14860 # assume the GNU/Linux dynamic linker is in use.
14861 dynamic_linker='GNU/Linux ld.so'
14862 ;;
14863
14864 netbsdelf*-gnu)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14869 soname_spec='$libname$release$shared_ext$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=no
14872 hardcode_into_libs=yes
14873 dynamic_linker='NetBSD ld.elf_so'
14874 ;;
14875
14876 netbsdelf*-gnu)
14877 version_type=linux
14878 need_lib_prefix=no
14879 need_version=no
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 shlibpath_overrides_runpath=no
14884 hardcode_into_libs=yes
14885 dynamic_linker='NetBSD ld.elf_so'
14886 ;;
14887
14888 netbsd*)
14889 version_type=sunos
14890 need_lib_prefix=no
14891 need_version=no
14892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14893 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14895 dynamic_linker='NetBSD (a.out) ld.so'
14896 else
14897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14898 soname_spec='$libname$release$shared_ext$major'
14899 dynamic_linker='NetBSD ld.elf_so'
14900 fi
14901 shlibpath_var=LD_LIBRARY_PATH
14902 shlibpath_overrides_runpath=yes
14903 hardcode_into_libs=yes
14904 ;;
14905
14906 *-mlibc)
14907 version_type=linux # correct to gnu/linux during the next big refactor
14908 need_lib_prefix=no
14909 need_version=no
14910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14911 soname_spec='$libname$release$shared_ext$major'
14912 dynamic_linker='mlibc ld.so'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 shlibpath_overrides_runpath=no
14915 hardcode_into_libs=yes
14916 ;;
14917
14918 newsos6)
14919 version_type=linux # correct to gnu/linux during the next big refactor
14920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes
14923 ;;
14924
14925 *nto* | *qnx*)
14926 version_type=qnx
14927 need_lib_prefix=no
14928 need_version=no
14929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14930 soname_spec='$libname$release$shared_ext$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=no
14933 hardcode_into_libs=yes
14934 dynamic_linker='ldqnx.so'
14935 ;;
14936
14937 openbsd*)
14938 version_type=sunos
14939 sys_lib_dlsearch_path_spec=/usr/lib
14940 need_lib_prefix=no
14941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14942 need_version=no
14943 else
14944 need_version=yes
14945 fi
14946 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 shlibpath_overrides_runpath=yes
14950 ;;
14951
14952 os2*)
14953 libname_spec='$name'
14954 version_type=windows
14955 shrext_cmds=.dll
14956 need_version=no
14957 need_lib_prefix=no
14958 # OS/2 can only load a DLL with a base name of 8 characters or less.
14959 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14960 v=$($ECHO $release$versuffix | tr -d .-);
14961 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14962 $ECHO $n$v`$shared_ext'
14963 library_names_spec='${libname}_dll.$libext'
14964 dynamic_linker='OS/2 ld.exe'
14965 shlibpath_var=BEGINLIBPATH
14966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14968 postinstall_cmds='base_file=`basename \$file`~
14969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14970 dldir=$destdir/`dirname \$dlpath`~
14971 test -d \$dldir || mkdir -p \$dldir~
14972 $install_prog $dir/$dlname \$dldir/$dlname~
14973 chmod a+x \$dldir/$dlname~
14974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14976 fi'
14977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14978 dlpath=$dir/\$dldll~
14979 $RM \$dlpath'
14980 ;;
14981
14982 osf3* | osf4* | osf5*)
14983 version_type=osf
14984 need_lib_prefix=no
14985 need_version=no
14986 soname_spec='$libname$release$shared_ext$major'
14987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14988 shlibpath_var=LD_LIBRARY_PATH
14989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14991 ;;
14992
14993 rdos*)
14994 dynamic_linker=no
14995 ;;
14996
14997 serenity*)
14998 version_type=linux # correct to gnu/linux during the next big refactor
14999 need_lib_prefix=no
15000 need_version=no
15001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15002 soname_spec='$libname$release$shared_ext$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=no
15005 dynamic_linker='SerenityOS LibELF'
15006 ;;
15007
15008 solaris*)
15009 version_type=linux # correct to gnu/linux during the next big refactor
15010 need_lib_prefix=no
15011 need_version=no
15012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15013 soname_spec='$libname$release$shared_ext$major'
15014 shlibpath_var=LD_LIBRARY_PATH
15015 shlibpath_overrides_runpath=yes
15016 hardcode_into_libs=yes
15017 # ldd complains unless libraries are executable
15018 postinstall_cmds='chmod +x $lib'
15019 ;;
15020
15021 sunos4*)
15022 version_type=sunos
15023 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15024 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15025 shlibpath_var=LD_LIBRARY_PATH
15026 shlibpath_overrides_runpath=yes
15027 if test yes = "$with_gnu_ld"; then
15028 need_lib_prefix=no
15029 fi
15030 need_version=yes
15031 ;;
15032
15033 sysv4 | sysv4.3*)
15034 version_type=linux # correct to gnu/linux during the next big refactor
15035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15036 soname_spec='$libname$release$shared_ext$major'
15037 shlibpath_var=LD_LIBRARY_PATH
15038 case $host_vendor in
15039 sni)
15040 shlibpath_overrides_runpath=no
15041 need_lib_prefix=no
15042 runpath_var=LD_RUN_PATH
15043 ;;
15044 siemens)
15045 need_lib_prefix=no
15046 ;;
15047 motorola)
15048 need_lib_prefix=no
15049 need_version=no
15050 shlibpath_overrides_runpath=no
15051 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15052 ;;
15053 esac
15054 ;;
15055
15056 sysv4*MP*)
15057 if test -d /usr/nec; then
15058 version_type=linux # correct to gnu/linux during the next big refactor
15059 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15060 soname_spec='$libname$shared_ext.$major'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 fi
15063 ;;
15064
15065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15066 version_type=sco
15067 need_lib_prefix=no
15068 need_version=no
15069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15070 soname_spec='$libname$release$shared_ext$major'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=yes
15073 hardcode_into_libs=yes
15074 if test yes = "$with_gnu_ld"; then
15075 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15076 else
15077 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15078 case $host_os in
15079 sco3.2v5*)
15080 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15081 ;;
15082 esac
15083 fi
15084 sys_lib_dlsearch_path_spec='/usr/lib'
15085 ;;
15086
15087 tpf*)
15088 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15089 version_type=linux # correct to gnu/linux during the next big refactor
15090 need_lib_prefix=no
15091 need_version=no
15092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15093 shlibpath_var=LD_LIBRARY_PATH
15094 shlibpath_overrides_runpath=no
15095 hardcode_into_libs=yes
15096 ;;
15097
15098 uts4*)
15099 version_type=linux # correct to gnu/linux during the next big refactor
15100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15101 soname_spec='$libname$release$shared_ext$major'
15102 shlibpath_var=LD_LIBRARY_PATH
15103 ;;
15104
15105 emscripten*)
15106 version_type=none
15107 need_lib_prefix=no
15108 need_version=no
15109 library_names_spec='$libname$release$shared_ext'
15110 soname_spec='$libname$release$shared_ext'
15111 finish_cmds=
15112 dynamic_linker="Emscripten linker"
15113 lt_prog_compiler_wl=
15114 lt_prog_compiler_pic=
15115 lt_prog_compiler_static=
15116
15117
15118 if test yes = "$GCC"; then
15119 lt_prog_compiler_wl='-Wl,'
15120 lt_prog_compiler_static='-static'
15121
15122 case $host_os in
15123 aix*)
15124 # All AIX code is PIC.
15125 if test ia64 = "$host_cpu"; then
15126 # AIX 5 now supports IA64 processor
15127 lt_prog_compiler_static='-Bstatic'
15128 fi
15129 lt_prog_compiler_pic='-fPIC'
15130 ;;
15131
15132 amigaos*)
15133 case $host_cpu in
15134 powerpc)
15135 # see comment about AmigaOS4 .so support
15136 lt_prog_compiler_pic='-fPIC'
15137 ;;
15138 m68k)
15139 # FIXME: we need at least 68020 code to build shared libraries, but
15140 # adding the '-m68020' flag to GCC prevents building anything better,
15141 # like '-m68040'.
15142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15143 ;;
15144 esac
15145 ;;
15146
15147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15148 # PIC is the default for these OSes.
15149 ;;
15150
15151 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15152 # This hack is so that the source file can tell whether it is being
15153 # built for inclusion in a dll (and should export symbols for example).
15154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15155 # (--disable-auto-import) libraries
15156 lt_prog_compiler_pic='-DDLL_EXPORT'
15157 case $host_os in
15158 os2*)
15159 lt_prog_compiler_static='$wl-static'
15160 ;;
15161 esac
15162 ;;
15163
15164 darwin* | rhapsody*)
15165 # PIC is the default on this platform
15166 # Common symbols not allowed in MH_DYLIB files
15167 lt_prog_compiler_pic='-fno-common'
15168 ;;
15169
15170 haiku*)
15171 # PIC is the default for Haiku.
15172 # The "-static" flag exists, but is broken.
15173 lt_prog_compiler_static=
15174 ;;
15175
15176 hpux*)
15177 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15178 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15179 # sets the default TLS model and affects inlining.
15180 case $host_cpu in
15181 hppa*64*)
15182 # +Z the default
15183 ;;
15184 *)
15185 lt_prog_compiler_pic='-fPIC'
15186 ;;
15187 esac
15188 ;;
15189
15190 interix[3-9]*)
15191 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15192 # Instead, we relocate shared libraries at runtime.
15193 ;;
15194
15195 msdosdjgpp*)
15196 # Just because we use GCC doesn't mean we suddenly get shared libraries
15197 # on systems that don't support them.
15198 lt_prog_compiler_can_build_shared=no
15199 enable_shared=no
15200 ;;
15201
15202 *nto* | *qnx*)
15203 # QNX uses GNU C++, but need to define -shared option too, otherwise
15204 # it will coredump.
15205 lt_prog_compiler_pic='-fPIC -shared'
15206 ;;
15207
15208 sysv4*MP*)
15209 if test -d /usr/nec; then
15210 lt_prog_compiler_pic=-Kconform_pic
15211 fi
15212 ;;
15213
15214 *)
15215 lt_prog_compiler_pic='-fPIC'
15216 ;;
15217 esac
15218
15219 case $cc_basename in
15220 nvcc*) # Cuda Compiler Driver 2.2
15221 lt_prog_compiler_wl='-Xlinker '
15222 if test -n "$lt_prog_compiler_pic"; then
15223 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15224 fi
15225 ;;
15226 esac
15227 else
15228 # PORTME Check for flag to pass linker flags through the system compiler.
15229 case $host_os in
15230 aix*)
15231 lt_prog_compiler_wl='-Wl,'
15232 if test ia64 = "$host_cpu"; then
15233 # AIX 5 now supports IA64 processor
15234 lt_prog_compiler_static='-Bstatic'
15235 else
15236 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15237 fi
15238 ;;
15239
15240 darwin* | rhapsody*)
15241 # PIC is the default on this platform
15242 # Common symbols not allowed in MH_DYLIB files
15243 lt_prog_compiler_pic='-fno-common'
15244 case $cc_basename in
15245 nagfor*)
15246 # NAG Fortran compiler
15247 lt_prog_compiler_wl='-Wl,-Wl,,'
15248 lt_prog_compiler_pic='-PIC'
15249 lt_prog_compiler_static='-Bstatic'
15250 ;;
15251 esac
15252 ;;
15253
15254 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15255 # This hack is so that the source file can tell whether it is being
15256 # built for inclusion in a dll (and should export symbols for example).
15257 lt_prog_compiler_pic='-DDLL_EXPORT'
15258 case $host_os in
15259 os2*)
15260 lt_prog_compiler_static='$wl-static'
15261 ;;
15262 esac
15263 ;;
15264
15265 hpux9* | hpux10* | hpux11*)
15266 lt_prog_compiler_wl='-Wl,'
15267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15268 # not for PA HP-UX.
15269 case $host_cpu in
15270 hppa*64*|ia64*)
15271 # +Z the default
15272 ;;
15273 *)
15274 lt_prog_compiler_pic='+Z'
15275 ;;
15276 esac
15277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15278 lt_prog_compiler_static='$wl-a ${wl}archive'
15279 ;;
15280
15281 irix5* | irix6* | nonstopux*)
15282 lt_prog_compiler_wl='-Wl,'
15283 # PIC (with -KPIC) is the default.
15284 lt_prog_compiler_static='-non_shared'
15285 ;;
15286
15287 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15288 case $cc_basename in
15289 # old Intel for x86_64, which still supported -KPIC.
15290 ecc*)
15291 lt_prog_compiler_wl='-Wl,'
15292 lt_prog_compiler_pic='-KPIC'
15293 lt_prog_compiler_static='-static'
15294 ;;
15295 *flang* | ftn | f18* | f95*)
15296 # Flang compiler.
15297 lt_prog_compiler_wl='-Wl,'
15298 lt_prog_compiler_pic='-fPIC'
15299 lt_prog_compiler_static='-static'
15300 ;;
15301 # flang / f18. f95 an alias for gfortran or flang on Debian
15302 flang* | f18* | f95*)
15303 lt_prog_compiler_wl='-Wl,'
15304 lt_prog_compiler_pic='-fPIC'
15305 lt_prog_compiler_static='-static'
15306 ;;
15307 # icc used to be incompatible with GCC.
15308 # ICC 10 doesn't accept -KPIC any more.
15309 icc* | ifort*)
15310 lt_prog_compiler_wl='-Wl,'
15311 lt_prog_compiler_pic='-fPIC'
15312 lt_prog_compiler_static='-static'
15313 ;;
15314 # Lahey Fortran 8.1.
15315 lf95*)
15316 lt_prog_compiler_wl='-Wl,'
15317 lt_prog_compiler_pic='--shared'
15318 lt_prog_compiler_static='--static'
15319 ;;
15320 nagfor*)
15321 # NAG Fortran compiler
15322 lt_prog_compiler_wl='-Wl,-Wl,,'
15323 lt_prog_compiler_pic='-PIC'
15324 lt_prog_compiler_static='-Bstatic'
15325 ;;
15326 tcc*)
15327 # Fabrice Bellard et al's Tiny C Compiler
15328 lt_prog_compiler_wl='-Wl,'
15329 lt_prog_compiler_pic='-fPIC'
15330 lt_prog_compiler_static='-static'
15331 ;;
15332 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15333 # Portland Group compilers (*not* the Pentium gcc compiler,
15334 # which looks to be a dead project)
15335 lt_prog_compiler_wl='-Wl,'
15336 lt_prog_compiler_pic='-fpic'
15337 lt_prog_compiler_static='-Bstatic'
15338 ;;
15339 ccc*)
15340 lt_prog_compiler_wl='-Wl,'
15341 # All Alpha code is PIC.
15342 lt_prog_compiler_static='-non_shared'
15343 ;;
15344 xl* | bgxl* | bgf* | mpixl*)
15345 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15346 lt_prog_compiler_wl='-Wl,'
15347 lt_prog_compiler_pic='-qpic'
15348 lt_prog_compiler_static='-qstaticlink'
15349 ;;
15350 *)
15351 case `$CC -V 2>&1 | $SED 5q` in
15352 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15353 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15354 lt_prog_compiler_pic='-KPIC'
15355 lt_prog_compiler_static='-Bstatic'
15356 lt_prog_compiler_wl=''
15357 ;;
15358 *Sun\ F* | *Sun*Fortran*)
15359 lt_prog_compiler_pic='-KPIC'
15360 lt_prog_compiler_static='-Bstatic'
15361 lt_prog_compiler_wl='-Qoption ld '
15362 ;;
15363 *Sun\ C*)
15364 # Sun C 5.9
15365 lt_prog_compiler_pic='-KPIC'
15366 lt_prog_compiler_static='-Bstatic'
15367 lt_prog_compiler_wl='-Wl,'
15368 ;;
15369 *Intel*\ [CF]*Compiler*)
15370 lt_prog_compiler_wl='-Wl,'
15371 lt_prog_compiler_pic='-fPIC'
15372 lt_prog_compiler_static='-static'
15373 ;;
15374 *Portland\ Group*)
15375 lt_prog_compiler_wl='-Wl,'
15376 lt_prog_compiler_pic='-fpic'
15377 lt_prog_compiler_static='-Bstatic'
15378 ;;
15379 esac
15380 ;;
15381 esac
15382 ;;
15383
15384 newsos6)
15385 lt_prog_compiler_pic='-KPIC'
15386 lt_prog_compiler_static='-Bstatic'
15387 ;;
15388
15389 *-mlibc)
15390 lt_prog_compiler_wl='-Wl,'
15391 lt_prog_compiler_pic='-fPIC'
15392 lt_prog_compiler_static='-static'
15393 ;;
15394
15395 *nto* | *qnx*)
15396 # QNX uses GNU C++, but need to define -shared option too, otherwise
15397 # it will coredump.
15398 lt_prog_compiler_pic='-fPIC -shared'
15399 ;;
15400
15401 osf3* | osf4* | osf5*)
15402 lt_prog_compiler_wl='-Wl,'
15403 # All OSF/1 code is PIC.
15404 lt_prog_compiler_static='-non_shared'
15405 ;;
15406
15407 rdos*)
15408 lt_prog_compiler_static='-non_shared'
15409 ;;
15410
15411 serenity*)
15412 ;;
15413
15414 solaris*)
15415 lt_prog_compiler_pic='-KPIC'
15416 lt_prog_compiler_static='-Bstatic'
15417 case $cc_basename in
15418 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15419 lt_prog_compiler_wl='-Qoption ld ';;
15420 *)
15421 lt_prog_compiler_wl='-Wl,';;
15422 esac
15423 ;;
15424
15425 sunos4*)
15426 lt_prog_compiler_wl='-Qoption ld '
15427 lt_prog_compiler_pic='-PIC'
15428 lt_prog_compiler_static='-Bstatic'
15429 ;;
15430
15431 sysv4 | sysv4.2uw2* | sysv4.3*)
15432 lt_prog_compiler_wl='-Wl,'
15433 lt_prog_compiler_pic='-KPIC'
15434 lt_prog_compiler_static='-Bstatic'
15435 ;;
15436
15437 sysv4*MP*)
15438 if test -d /usr/nec; then
15439 lt_prog_compiler_pic='-Kconform_pic'
15440 lt_prog_compiler_static='-Bstatic'
15441 fi
15442 ;;
15443
15444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15445 lt_prog_compiler_wl='-Wl,'
15446 lt_prog_compiler_pic='-KPIC'
15447 lt_prog_compiler_static='-Bstatic'
15448 ;;
15449
15450 unicos*)
15451 lt_prog_compiler_wl='-Wl,'
15452 lt_prog_compiler_can_build_shared=no
15453 ;;
15454
15455 uts4*)
15456 lt_prog_compiler_pic='-pic'
15457 lt_prog_compiler_static='-Bstatic'
15458 ;;
15459
15460 *)
15461 lt_prog_compiler_can_build_shared=no
15462 ;;
15463 esac
15464 fi
15465
15466 case $host_os in
15467 # For platforms that do not support PIC, -DPIC is meaningless:
15468 *djgpp*)
15469 lt_prog_compiler_pic=
15470 ;;
15471 *)
15472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15473 ;;
15474 esac
15475
15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15477 printf %s "checking for $compiler option to produce PIC... " >&6; }
15478 if test ${lt_cv_prog_compiler_pic+y}
15479 then :
15480 printf %s "(cached) " >&6
15481 else case e in #(
15482 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15483 esac
15484 fi
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15486 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15487 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15488
15489 #
15490 # Check to make sure the PIC flag actually works.
15491 #
15492 if test -n "$lt_prog_compiler_pic"; then
15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15494 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15495 if test ${lt_cv_prog_compiler_pic_works+y}
15496 then :
15497 printf %s "(cached) " >&6
15498 else case e in #(
15499 e) lt_cv_prog_compiler_pic_works=no
15500 ac_outfile=conftest.$ac_objext
15501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15502 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15503 # Insert the option either (1) after the last *FLAGS variable, or
15504 # (2) before a word containing "conftest.", or (3) at the end.
15505 # Note that $ac_compile itself does not contain backslashes and begins
15506 # with a dollar sign (not a hyphen), so the echo should work correctly.
15507 # The option is referenced via a variable to avoid confusing sed.
15508 lt_compile=`echo "$ac_compile" | $SED \
15509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511 -e 's:$: $lt_compiler_flag:'`
15512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15513 (eval "$lt_compile" 2>conftest.err)
15514 ac_status=$?
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 if (exit $ac_status) && test -s "$ac_outfile"; then
15518 # The compiler can only warn and ignore the option if not recognized
15519 # So say no if there are warnings other than the usual output.
15520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15523 lt_cv_prog_compiler_pic_works=yes
15524 fi
15525 fi
15526 $RM conftest*
15527 ;;
15528 esac
15529 fi
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15531 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15532
15533 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15534 case $lt_prog_compiler_pic in
15535 "" | " "*) ;;
15536 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15537 esac
15538 else
15539 lt_prog_compiler_pic=
15540 lt_prog_compiler_can_build_shared=no
15541 fi
15542
15543 fi
15544
15545
15546
15547
15548
15549 #
15550 # Check to make sure the static flag actually works.
15551 #
15552 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15554 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15555 if test ${lt_cv_prog_compiler_static_works+y}
15556 then :
15557 printf %s "(cached) " >&6
15558 else case e in #(
15559 e) lt_cv_prog_compiler_static_works=no
15560 save_LDFLAGS=$LDFLAGS
15561 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15562 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15563 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15564 # The linker can only warn and ignore the option if not recognized
15565 # So say no if there are warnings
15566 if test -s conftest.err; then
15567 # Append any errors to the config.log.
15568 cat conftest.err 1>&5
15569 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15571 if diff conftest.exp conftest.er2 >/dev/null; then
15572 lt_cv_prog_compiler_static_works=yes
15573 fi
15574 else
15575 lt_cv_prog_compiler_static_works=yes
15576 fi
15577 fi
15578 $RM -r conftest*
15579 LDFLAGS=$save_LDFLAGS
15580 ;;
15581 esac
15582 fi
15583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15584 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15585
15586 if test yes = "$lt_cv_prog_compiler_static_works"; then
15587 :
15588 else
15589 lt_prog_compiler_static=
15590 fi
15591
15592
15593
15594 ='-fPIC'
15595 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15596 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
15597 archive_cmds_need_lc=no
15598 no_undefined_flag=
15599 ;;
15600
15601 *)
15602 dynamic_linker=no
15603 ;;
15604 esac
15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15606 printf "%s\n" "$dynamic_linker" >&6; }
15607 test no = "$dynamic_linker" && can_build_shared=no
15608
15609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15610 if test yes = "$GCC"; then
15611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15612 fi
15613
15614 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15615 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15616 fi
15617
15618 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15619 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15620 fi
15621
15622 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15623 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15624
15625 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15626 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15627
15628 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15629 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15728 printf %s "checking how to hardcode library paths into programs... " >&6; }
15729 hardcode_action=
15730 if test -n "$hardcode_libdir_flag_spec" ||
15731 test -n "$runpath_var" ||
15732 test yes = "$hardcode_automatic"; then
15733
15734 # We can hardcode non-existent directories.
15735 if test no != "$hardcode_direct" &&
15736 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15737 # have to relink, otherwise we might link with an installed library
15738 # when we should be linking with a yet-to-be-installed one
15739 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15740 test no != "$hardcode_minus_L"; then
15741 # Linking always hardcodes the temporary library directory.
15742 hardcode_action=relink
15743 else
15744 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15745 hardcode_action=immediate
15746 fi
15747 else
15748 # We cannot hardcode anything, or else we can only hardcode existing
15749 # directories.
15750 hardcode_action=unsupported
15751 fi
15752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15753 printf "%s\n" "$hardcode_action" >&6; }
15754
15755 if test relink = "$hardcode_action" ||
15756 test yes = "$inherit_rpath"; then
15757 # Fast installation is not supported
15758 enable_fast_install=no
15759 elif test yes = "$shlibpath_overrides_runpath" ||
15760 test no = "$enable_shared"; then
15761 # Fast installation is not necessary
15762 enable_fast_install=needless
15763 fi
15764
15765
15766
15767
15768
15769
15770 if test yes != "$enable_dlopen"; then
15771 enable_dlopen=unknown
15772 enable_dlopen_self=unknown
15773 enable_dlopen_self_static=unknown
15774 else
15775 lt_cv_dlopen=no
15776 lt_cv_dlopen_libs=
15777
15778 case $host_os in
15779 beos*)
15780 lt_cv_dlopen=load_add_on
15781 lt_cv_dlopen_libs=
15782 lt_cv_dlopen_self=yes
15783 ;;
15784
15785 mingw* | windows* | pw32* | cegcc*)
15786 lt_cv_dlopen=LoadLibrary
15787 lt_cv_dlopen_libs=
15788 ;;
15789
15790 cygwin*)
15791 lt_cv_dlopen=dlopen
15792 lt_cv_dlopen_libs=
15793 ;;
15794
15795 darwin*)
15796 # if libdl is installed we need to link against it
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15798 printf %s "checking for dlopen in -ldl... " >&6; }
15799 if test ${ac_cv_lib_dl_dlopen+y}
15800 then :
15801 printf %s "(cached) " >&6
15802 else case e in #(
15803 e) ac_check_lib_save_LIBS=$LIBS
15804 LIBS="-ldl $LIBS"
15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806 /* end confdefs.h. */
15807
15808 /* Override any GCC internal prototype to avoid an error.
15809 Use char because int might match the return type of a GCC
15810 builtin and then its argument prototype would still apply.
15811 The 'extern "C"' is for builds by C++ compilers;
15812 although this is not generally supported in C code supporting it here
15813 has little cost and some practical benefit (sr 110532). */
15814 #ifdef __cplusplus
15815 extern "C"
15816 #endif
15817 char dlopen (void);
15818 int
15819 main (void)
15820 {
15821 return dlopen ();
15822 ;
15823 return 0;
15824 }
15825 _ACEOF
15826 if ac_fn_c_try_link "$LINENO"
15827 then :
15828 ac_cv_lib_dl_dlopen=yes
15829 else case e in #(
15830 e) ac_cv_lib_dl_dlopen=no ;;
15831 esac
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15834 conftest$ac_exeext conftest.$ac_ext
15835 LIBS=$ac_check_lib_save_LIBS ;;
15836 esac
15837 fi
15838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15839 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15840 if test "x$ac_cv_lib_dl_dlopen" = xyes
15841 then :
15842 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15843 else case e in #(
15844 e)
15845 lt_cv_dlopen=dyld
15846 lt_cv_dlopen_libs=
15847 lt_cv_dlopen_self=yes
15848 ;;
15849 esac
15850 fi
15851
15852 ;;
15853
15854 tpf*)
15855 # Don't try to run any link tests for TPF. We know it's impossible
15856 # because TPF is a cross-compiler, and we know how we open DSOs.
15857 lt_cv_dlopen=dlopen
15858 lt_cv_dlopen_libs=
15859 lt_cv_dlopen_self=no
15860 ;;
15861
15862 *)
15863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15864 if test "x$ac_cv_func_shl_load" = xyes
15865 then :
15866 lt_cv_dlopen=shl_load
15867 else case e in #(
15868 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15869 printf %s "checking for shl_load in -ldld... " >&6; }
15870 if test ${ac_cv_lib_dld_shl_load+y}
15871 then :
15872 printf %s "(cached) " >&6
15873 else case e in #(
15874 e) ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-ldld $LIBS"
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15878
15879 /* Override any GCC internal prototype to avoid an error.
15880 Use char because int might match the return type of a GCC
15881 builtin and then its argument prototype would still apply.
15882 The 'extern "C"' is for builds by C++ compilers;
15883 although this is not generally supported in C code supporting it here
15884 has little cost and some practical benefit (sr 110532). */
15885 #ifdef __cplusplus
15886 extern "C"
15887 #endif
15888 char shl_load (void);
15889 int
15890 main (void)
15891 {
15892 return shl_load ();
15893 ;
15894 return 0;
15895 }
15896 _ACEOF
15897 if ac_fn_c_try_link "$LINENO"
15898 then :
15899 ac_cv_lib_dld_shl_load=yes
15900 else case e in #(
15901 e) ac_cv_lib_dld_shl_load=no ;;
15902 esac
15903 fi
15904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15905 conftest$ac_exeext conftest.$ac_ext
15906 LIBS=$ac_check_lib_save_LIBS ;;
15907 esac
15908 fi
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15910 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15911 if test "x$ac_cv_lib_dld_shl_load" = xyes
15912 then :
15913 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15914 else case e in #(
15915 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15916 if test "x$ac_cv_func_dlopen" = xyes
15917 then :
15918 lt_cv_dlopen=dlopen
15919 else case e in #(
15920 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15921 printf %s "checking for dlopen in -ldl... " >&6; }
15922 if test ${ac_cv_lib_dl_dlopen+y}
15923 then :
15924 printf %s "(cached) " >&6
15925 else case e in #(
15926 e) ac_check_lib_save_LIBS=$LIBS
15927 LIBS="-ldl $LIBS"
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15930
15931 /* Override any GCC internal prototype to avoid an error.
15932 Use char because int might match the return type of a GCC
15933 builtin and then its argument prototype would still apply.
15934 The 'extern "C"' is for builds by C++ compilers;
15935 although this is not generally supported in C code supporting it here
15936 has little cost and some practical benefit (sr 110532). */
15937 #ifdef __cplusplus
15938 extern "C"
15939 #endif
15940 char dlopen (void);
15941 int
15942 main (void)
15943 {
15944 return dlopen ();
15945 ;
15946 return 0;
15947 }
15948 _ACEOF
15949 if ac_fn_c_try_link "$LINENO"
15950 then :
15951 ac_cv_lib_dl_dlopen=yes
15952 else case e in #(
15953 e) ac_cv_lib_dl_dlopen=no ;;
15954 esac
15955 fi
15956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15957 conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS ;;
15959 esac
15960 fi
15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15962 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15963 if test "x$ac_cv_lib_dl_dlopen" = xyes
15964 then :
15965 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15966 else case e in #(
15967 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15968 printf %s "checking for dlopen in -lsvld... " >&6; }
15969 if test ${ac_cv_lib_svld_dlopen+y}
15970 then :
15971 printf %s "(cached) " >&6
15972 else case e in #(
15973 e) ac_check_lib_save_LIBS=$LIBS
15974 LIBS="-lsvld $LIBS"
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977
15978 /* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply.
15981 The 'extern "C"' is for builds by C++ compilers;
15982 although this is not generally supported in C code supporting it here
15983 has little cost and some practical benefit (sr 110532). */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char dlopen (void);
15988 int
15989 main (void)
15990 {
15991 return dlopen ();
15992 ;
15993 return 0;
15994 }
15995 _ACEOF
15996 if ac_fn_c_try_link "$LINENO"
15997 then :
15998 ac_cv_lib_svld_dlopen=yes
15999 else case e in #(
16000 e) ac_cv_lib_svld_dlopen=no ;;
16001 esac
16002 fi
16003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16004 conftest$ac_exeext conftest.$ac_ext
16005 LIBS=$ac_check_lib_save_LIBS ;;
16006 esac
16007 fi
16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16009 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16010 if test "x$ac_cv_lib_svld_dlopen" = xyes
16011 then :
16012 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16013 else case e in #(
16014 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16015 printf %s "checking for dld_link in -ldld... " >&6; }
16016 if test ${ac_cv_lib_dld_dld_link+y}
16017 then :
16018 printf %s "(cached) " >&6
16019 else case e in #(
16020 e) ac_check_lib_save_LIBS=$LIBS
16021 LIBS="-ldld $LIBS"
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024
16025 /* Override any GCC internal prototype to avoid an error.
16026 Use char because int might match the return type of a GCC
16027 builtin and then its argument prototype would still apply.
16028 The 'extern "C"' is for builds by C++ compilers;
16029 although this is not generally supported in C code supporting it here
16030 has little cost and some practical benefit (sr 110532). */
16031 #ifdef __cplusplus
16032 extern "C"
16033 #endif
16034 char dld_link (void);
16035 int
16036 main (void)
16037 {
16038 return dld_link ();
16039 ;
16040 return 0;
16041 }
16042 _ACEOF
16043 if ac_fn_c_try_link "$LINENO"
16044 then :
16045 ac_cv_lib_dld_dld_link=yes
16046 else case e in #(
16047 e) ac_cv_lib_dld_dld_link=no ;;
16048 esac
16049 fi
16050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16051 conftest$ac_exeext conftest.$ac_ext
16052 LIBS=$ac_check_lib_save_LIBS ;;
16053 esac
16054 fi
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16056 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16057 if test "x$ac_cv_lib_dld_dld_link" = xyes
16058 then :
16059 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16060 fi
16061
16062 ;;
16063 esac
16064 fi
16065
16066 ;;
16067 esac
16068 fi
16069
16070 ;;
16071 esac
16072 fi
16073
16074 ;;
16075 esac
16076 fi
16077
16078 ;;
16079 esac
16080 fi
16081
16082 ;;
16083 esac
16084
16085 if test no = "$lt_cv_dlopen"; then
16086 enable_dlopen=no
16087 else
16088 enable_dlopen=yes
16089 fi
16090
16091 case $lt_cv_dlopen in
16092 dlopen)
16093 save_CPPFLAGS=$CPPFLAGS
16094 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16095
16096 save_LDFLAGS=$LDFLAGS
16097 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16098
16099 save_LIBS=$LIBS
16100 LIBS="$lt_cv_dlopen_libs $LIBS"
16101
16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16103 printf %s "checking whether a program can dlopen itself... " >&6; }
16104 if test ${lt_cv_dlopen_self+y}
16105 then :
16106 printf %s "(cached) " >&6
16107 else case e in #(
16108 e) if test yes = "$cross_compiling"; then :
16109 lt_cv_dlopen_self=cross
16110 else
16111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16112 lt_status=$lt_dlunknown
16113 cat > conftest.$ac_ext <<_LT_EOF
16114 #line $LINENO "configure"
16115 #include "confdefs.h"
16116
16117 #if HAVE_DLFCN_H
16118 #include <dlfcn.h>
16119 #endif
16120
16121 #include <stdio.h>
16122
16123 #ifdef RTLD_GLOBAL
16124 # define LT_DLGLOBAL RTLD_GLOBAL
16125 #else
16126 # ifdef DL_GLOBAL
16127 # define LT_DLGLOBAL DL_GLOBAL
16128 # else
16129 # define LT_DLGLOBAL 0
16130 # endif
16131 #endif
16132
16133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16134 find out it does not work in some platform. */
16135 #ifndef LT_DLLAZY_OR_NOW
16136 # ifdef RTLD_LAZY
16137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16138 # else
16139 # ifdef DL_LAZY
16140 # define LT_DLLAZY_OR_NOW DL_LAZY
16141 # else
16142 # ifdef RTLD_NOW
16143 # define LT_DLLAZY_OR_NOW RTLD_NOW
16144 # else
16145 # ifdef DL_NOW
16146 # define LT_DLLAZY_OR_NOW DL_NOW
16147 # else
16148 # define LT_DLLAZY_OR_NOW 0
16149 # endif
16150 # endif
16151 # endif
16152 # endif
16153 #endif
16154
16155 /* When -fvisibility=hidden is used, assume the code has been annotated
16156 correspondingly for the symbols needed. */
16157 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16158 int fnord (void) __attribute__((visibility("default")));
16159 #endif
16160
16161 int fnord (void) { return 42; }
16162 int main (void)
16163 {
16164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16165 int status = $lt_dlunknown;
16166
16167 if (self)
16168 {
16169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16170 else
16171 {
16172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16173 else puts (dlerror ());
16174 }
16175 /* dlclose (self); */
16176 }
16177 else
16178 puts (dlerror ());
16179
16180 return status;
16181 }
16182 _LT_EOF
16183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16184 (eval $ac_link) 2>&5
16185 ac_status=$?
16186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16187 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16188 (./conftest; exit; ) >&5 2>/dev/null
16189 lt_status=$?
16190 case x$lt_status in
16191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16194 esac
16195 else :
16196 # compilation failed
16197 lt_cv_dlopen_self=no
16198 fi
16199 fi
16200 rm -fr conftest*
16201
16202 ;;
16203 esac
16204 fi
16205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16206 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16207
16208 if test yes = "$lt_cv_dlopen_self"; then
16209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16211 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16212 if test ${lt_cv_dlopen_self_static+y}
16213 then :
16214 printf %s "(cached) " >&6
16215 else case e in #(
16216 e) if test yes = "$cross_compiling"; then :
16217 lt_cv_dlopen_self_static=cross
16218 else
16219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16220 lt_status=$lt_dlunknown
16221 cat > conftest.$ac_ext <<_LT_EOF
16222 #line $LINENO "configure"
16223 #include "confdefs.h"
16224
16225 #if HAVE_DLFCN_H
16226 #include <dlfcn.h>
16227 #endif
16228
16229 #include <stdio.h>
16230
16231 #ifdef RTLD_GLOBAL
16232 # define LT_DLGLOBAL RTLD_GLOBAL
16233 #else
16234 # ifdef DL_GLOBAL
16235 # define LT_DLGLOBAL DL_GLOBAL
16236 # else
16237 # define LT_DLGLOBAL 0
16238 # endif
16239 #endif
16240
16241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16242 find out it does not work in some platform. */
16243 #ifndef LT_DLLAZY_OR_NOW
16244 # ifdef RTLD_LAZY
16245 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16246 # else
16247 # ifdef DL_LAZY
16248 # define LT_DLLAZY_OR_NOW DL_LAZY
16249 # else
16250 # ifdef RTLD_NOW
16251 # define LT_DLLAZY_OR_NOW RTLD_NOW
16252 # else
16253 # ifdef DL_NOW
16254 # define LT_DLLAZY_OR_NOW DL_NOW
16255 # else
16256 # define LT_DLLAZY_OR_NOW 0
16257 # endif
16258 # endif
16259 # endif
16260 # endif
16261 #endif
16262
16263 /* When -fvisibility=hidden is used, assume the code has been annotated
16264 correspondingly for the symbols needed. */
16265 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16266 int fnord (void) __attribute__((visibility("default")));
16267 #endif
16268
16269 int fnord (void) { return 42; }
16270 int main (void)
16271 {
16272 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16273 int status = $lt_dlunknown;
16274
16275 if (self)
16276 {
16277 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16278 else
16279 {
16280 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16281 else puts (dlerror ());
16282 }
16283 /* dlclose (self); */
16284 }
16285 else
16286 puts (dlerror ());
16287
16288 return status;
16289 }
16290 _LT_EOF
16291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16292 (eval $ac_link) 2>&5
16293 ac_status=$?
16294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16295 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16296 (./conftest; exit; ) >&5 2>/dev/null
16297 lt_status=$?
16298 case x$lt_status in
16299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16301 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16302 esac
16303 else :
16304 # compilation failed
16305 lt_cv_dlopen_self_static=no
16306 fi
16307 fi
16308 rm -fr conftest*
16309
16310 ;;
16311 esac
16312 fi
16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16314 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16315 fi
16316
16317 CPPFLAGS=$save_CPPFLAGS
16318 LDFLAGS=$save_LDFLAGS
16319 LIBS=$save_LIBS
16320 ;;
16321 esac
16322
16323 case $lt_cv_dlopen_self in
16324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16325 *) enable_dlopen_self=unknown ;;
16326 esac
16327
16328 case $lt_cv_dlopen_self_static in
16329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16330 *) enable_dlopen_self_static=unknown ;;
16331 esac
16332 fi
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350 striplib=
16351 old_striplib=
16352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16353 printf %s "checking whether stripping libraries is possible... " >&6; }
16354 if test -z "$STRIP"; then
16355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356 printf "%s\n" "no" >&6; }
16357 else
16358 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16359 old_striplib="$STRIP --strip-debug"
16360 striplib="$STRIP --strip-unneeded"
16361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16362 printf "%s\n" "yes" >&6; }
16363 else
16364 case $host_os in
16365 darwin*)
16366 # FIXME - insert some real tests, host_os isn't really good enough
16367 striplib="$STRIP -x"
16368 old_striplib="$STRIP -S"
16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16370 printf "%s\n" "yes" >&6; }
16371 ;;
16372 freebsd*)
16373 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16374 old_striplib="$STRIP --strip-debug"
16375 striplib="$STRIP --strip-unneeded"
16376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16377 printf "%s\n" "yes" >&6; }
16378 else
16379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 printf "%s\n" "no" >&6; }
16381 fi
16382 ;;
16383 *)
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16385 printf "%s\n" "no" >&6; }
16386 ;;
16387 esac
16388 fi
16389 fi
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402 # Report what library types will actually be built
16403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16404 printf %s "checking if libtool supports shared libraries... " >&6; }
16405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16406 printf "%s\n" "$can_build_shared" >&6; }
16407
16408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16409 printf %s "checking whether to build shared libraries... " >&6; }
16410 test no = "$can_build_shared" && enable_shared=no
16411
16412 # On AIX, shared libraries and static libraries use the same namespace, and
16413 # are all built from PIC.
16414 case $host_os in
16415 aix3*)
16416 test yes = "$enable_shared" && enable_static=no
16417 if test -n "$RANLIB"; then
16418 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16419 postinstall_cmds='$RANLIB $lib'
16420 fi
16421 ;;
16422
16423 aix[4-9]*)
16424 if test ia64 != "$host_cpu"; then
16425 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16426 yes,aix,yes) ;; # shared object as lib.so file only
16427 yes,svr4,*) ;; # shared object as lib.so archive member only
16428 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16429 esac
16430 fi
16431 ;;
16432 esac
16433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16434 printf "%s\n" "$enable_shared" >&6; }
16435
16436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16437 printf %s "checking whether to build static libraries... " >&6; }
16438 # Make sure either enable_shared or enable_static is yes.
16439 test yes = "$enable_shared" || enable_static=yes
16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16441 printf "%s\n" "$enable_static" >&6; }
16442
16443
16444
16445
16446 fi
16447 ac_ext=c
16448 ac_cpp='$CPP $CPPFLAGS'
16449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16452
16453 CC=$lt_save_CC
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469 ac_config_commands="$ac_config_commands libtool"
16470
16471
16472
16473
16474 # Only expand once:
16475
16476
16477
16478 # Checks for library functions.
16479
16480 ac_func=
16481 for ac_item in $ac_func_c_list
16482 do
16483 if test $ac_func; then
16484 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
16485 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
16486 echo "#define $ac_item 1" >> confdefs.h
16487 fi
16488 ac_func=
16489 else
16490 ac_func=$ac_item
16491 fi
16492 done
16493
16494
16495
16496 if test "x$ac_cv_func_fork" = xyes; then
16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16498 printf %s "checking for working fork... " >&6; }
16499 if test ${ac_cv_func_fork_works+y}
16500 then :
16501 printf %s "(cached) " >&6
16502 else case e in #(
16503 e) if test "$cross_compiling" = yes
16504 then :
16505 ac_cv_func_fork_works=cross
16506 else case e in #(
16507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16509 $ac_includes_default
16510 int
16511 main (void)
16512 {
16513
16514 /* By R. Kuhlmann. */
16515 return fork () < 0;
16516
16517 ;
16518 return 0;
16519 }
16520 _ACEOF
16521 if ac_fn_c_try_run "$LINENO"
16522 then :
16523 ac_cv_func_fork_works=yes
16524 else case e in #(
16525 e) ac_cv_func_fork_works=no ;;
16526 esac
16527 fi
16528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16529 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16530 esac
16531 fi
16532 ;;
16533 esac
16534 fi
16535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16536 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
16537
16538 else
16539 ac_cv_func_fork_works=$ac_cv_func_fork
16540 fi
16541 if test "x$ac_cv_func_fork_works" = xcross; then
16542 case $host in
16543 *-*-amigaos* | *-*-msdosdjgpp*)
16544 # Override, as these systems have only a dummy fork() stub
16545 ac_cv_func_fork_works=no
16546 ;;
16547 *)
16548 ac_cv_func_fork_works=yes
16549 ;;
16550 esac
16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16552 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16553 fi
16554 ac_cv_func_vfork_works=$ac_cv_func_vfork
16555 if test "x$ac_cv_func_vfork" = xyes; then
16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16557 printf %s "checking for working vfork... " >&6; }
16558 if test ${ac_cv_func_vfork_works+y}
16559 then :
16560 printf %s "(cached) " >&6
16561 else case e in #(
16562 e) if test "$cross_compiling" = yes
16563 then :
16564 ac_cv_func_vfork_works=cross
16565 else case e in #(
16566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16568 /* Thanks to Paul Eggert for this test. */
16569 $ac_includes_default
16570 #include <signal.h>
16571 #include <sys/wait.h>
16572 #ifdef HAVE_VFORK_H
16573 # include <vfork.h>
16574 #endif
16575
16576 static void
16577 do_nothing (int sig)
16578 {
16579 (void) sig;
16580 }
16581
16582 /* On some sparc systems, changes by the child to local and incoming
16583 argument registers are propagated back to the parent. The compiler
16584 is told about this with #include <vfork.h>, but some compilers
16585 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16586 static variable whose address is put into a register that is
16587 clobbered by the vfork. */
16588 static void
16589 sparc_address_test (int arg)
16590 {
16591 static pid_t child;
16592 if (!child) {
16593 child = vfork ();
16594 if (child < 0) {
16595 perror ("vfork");
16596 _exit(2);
16597 }
16598 if (!child) {
16599 arg = getpid();
16600 write(-1, "", 0);
16601 _exit (arg);
16602 }
16603 }
16604 }
16605
16606 int
16607 main (void)
16608 {
16609 pid_t parent = getpid ();
16610 pid_t child;
16611
16612 sparc_address_test (0);
16613
16614 /* On Solaris 2.4, changes by the child to the signal handler
16615 also munge signal handlers in the parent. To detect this,
16616 start by putting the parent's handler in a known state. */
16617 signal (SIGTERM, SIG_DFL);
16618
16619 child = vfork ();
16620
16621 if (child == 0) {
16622 /* Here is another test for sparc vfork register problems. This
16623 test uses lots of local variables, at least as many local
16624 variables as main has allocated so far including compiler
16625 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16626 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16627 reuse the register of parent for one of the local variables,
16628 since it will think that parent can't possibly be used any more
16629 in this routine. Assigning to the local variable will thus
16630 munge parent in the parent process. */
16631 pid_t
16632 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16633 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16634 /* Convince the compiler that p..p7 are live; otherwise, it might
16635 use the same hardware register for all 8 local variables. */
16636 if (p != p1 || p != p2 || p != p3 || p != p4
16637 || p != p5 || p != p6 || p != p7)
16638 _exit(1);
16639
16640 /* Alter the child's signal handler. */
16641 if (signal (SIGTERM, do_nothing) != SIG_DFL)
16642 _exit(1);
16643
16644 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16645 from child file descriptors. If the child closes a descriptor
16646 before it execs or exits, this munges the parent's descriptor
16647 as well. Test for this by closing stdout in the child. */
16648 _exit(close(fileno(stdout)) != 0);
16649 } else {
16650 int status;
16651 struct stat st;
16652
16653 while (wait(&status) != child)
16654 ;
16655 return (
16656 /* Was there some problem with vforking? */
16657 child < 0
16658
16659 /* Did the child munge the parent's signal handler? */
16660 || signal (SIGTERM, SIG_DFL) != SIG_DFL
16661
16662 /* Did the child fail? (This shouldn't happen.) */
16663 || status
16664
16665 /* Did the vfork/compiler bug occur? */
16666 || parent != getpid()
16667
16668 /* Did the file descriptor bug occur? */
16669 || fstat(fileno(stdout), &st) != 0
16670 );
16671 }
16672 }
16673 _ACEOF
16674 if ac_fn_c_try_run "$LINENO"
16675 then :
16676 ac_cv_func_vfork_works=yes
16677 else case e in #(
16678 e) ac_cv_func_vfork_works=no ;;
16679 esac
16680 fi
16681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16682 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16683 esac
16684 fi
16685 ;;
16686 esac
16687 fi
16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16689 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
16690
16691 fi;
16692 if test "x$ac_cv_func_fork_works" = xcross; then
16693 ac_cv_func_vfork_works=$ac_cv_func_vfork
16694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16695 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16696 fi
16697
16698 if test "x$ac_cv_func_vfork_works" = xyes; then
16699
16700 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16701
16702 else
16703
16704 printf "%s\n" "#define vfork fork" >>confdefs.h
16705
16706 fi
16707 if test "x$ac_cv_func_fork_works" = xyes; then
16708
16709 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
16710
16711 fi
16712
16713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16714 printf %s "checking for GNU libc compatible malloc... " >&6; }
16715 if test ${ac_cv_func_malloc_0_nonnull+y}
16716 then :
16717 printf %s "(cached) " >&6
16718 else case e in #(
16719 e) if test "$cross_compiling" = yes
16720 then :
16721 case "$host_os" in # ((
16722 # Guess yes on platforms where we know the result.
16723 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
16724 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
16725 ac_cv_func_malloc_0_nonnull=yes ;;
16726 # If we don't know, assume the worst.
16727 *) ac_cv_func_malloc_0_nonnull=no ;;
16728 esac
16729 else case e in #(
16730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h. */
16732 #include <stdlib.h>
16733
16734 int
16735 main (void)
16736 {
16737 void *p = malloc (0);
16738 int result = !p;
16739 free (p);
16740 return result;
16741 ;
16742 return 0;
16743 }
16744 _ACEOF
16745 if ac_fn_c_try_run "$LINENO"
16746 then :
16747 ac_cv_func_malloc_0_nonnull=yes
16748 else case e in #(
16749 e) ac_cv_func_malloc_0_nonnull=no ;;
16750 esac
16751 fi
16752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16753 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16754 esac
16755 fi
16756 ;;
16757 esac
16758 fi
16759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16760 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
16761 if test $ac_cv_func_malloc_0_nonnull = yes
16762 then :
16763
16764 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
16765
16766 else case e in #(
16767 e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
16768
16769 case " $LIBOBJS " in
16770 *" malloc.$ac_objext "* ) ;;
16771 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16772 ;;
16773 esac
16774
16775
16776 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
16777 ;;
16778 esac
16779 fi
16780
16781
16782
16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
16784 printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
16785 if test ${ac_cv_func_mbrtowc+y}
16786 then :
16787 printf %s "(cached) " >&6
16788 else case e in #(
16789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16791 #include <wchar.h>
16792 int
16793 main (void)
16794 {
16795 wchar_t wc;
16796 char const s[] = "";
16797 size_t n = 1;
16798 mbstate_t state;
16799 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
16800 ;
16801 return 0;
16802 }
16803 _ACEOF
16804 if ac_fn_c_try_link "$LINENO"
16805 then :
16806 ac_cv_func_mbrtowc=yes
16807 else case e in #(
16808 e) ac_cv_func_mbrtowc=no ;;
16809 esac
16810 fi
16811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16812 conftest$ac_exeext conftest.$ac_ext ;;
16813 esac
16814 fi
16815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
16816 printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
16817 if test $ac_cv_func_mbrtowc = yes; then
16818
16819 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
16820
16821 fi
16822
16823
16824
16825
16826
16827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16828 printf %s "checking for working mmap... " >&6; }
16829 if test ${ac_cv_func_mmap_fixed_mapped+y}
16830 then :
16831 printf %s "(cached) " >&6
16832 else case e in #(
16833 e) if test "$cross_compiling" = yes
16834 then :
16835 case "$host_os" in # ((
16836 # Guess yes on platforms where we know the result.
16837 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
16838 # If we don't know, assume the worst.
16839 *) ac_cv_func_mmap_fixed_mapped=no ;;
16840 esac
16841 else case e in #(
16842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16844 $ac_includes_default
16845 /* malloc might have been renamed as rpl_malloc. */
16846 #undef malloc
16847
16848 /* Thanks to Mike Haertel and Jim Avera for this test.
16849 Here is a matrix of mmap possibilities:
16850 mmap private not fixed
16851 mmap private fixed at somewhere currently unmapped
16852 mmap private fixed at somewhere already mapped
16853 mmap shared not fixed
16854 mmap shared fixed at somewhere currently unmapped
16855 mmap shared fixed at somewhere already mapped
16856 For private mappings, we should verify that changes cannot be read()
16857 back from the file, nor mmap's back from the file at a different
16858 address. (There have been systems where private was not correctly
16859 implemented like the infamous i386 svr4.0, and systems where the
16860 VM page cache was not coherent with the file system buffer cache
16861 like early versions of FreeBSD and possibly contemporary NetBSD.)
16862 For shared mappings, we should conversely verify that changes get
16863 propagated back to all the places they're supposed to be. */
16864
16865 #include <fcntl.h>
16866 #include <sys/mman.h>
16867
16868 #ifndef getpagesize
16869 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
16870 been removed from POSIX and is limited to page sizes that fit in 'int'. */
16871 # ifdef _SC_PAGESIZE
16872 # define getpagesize() sysconf (_SC_PAGESIZE)
16873 # elif defined _SC_PAGE_SIZE
16874 # define getpagesize() sysconf (_SC_PAGE_SIZE)
16875 # elif HAVE_GETPAGESIZE
16876 int getpagesize ();
16877 # else
16878 # ifdef HAVE_SYS_PARAM_H
16879 # include <sys/param.h>
16880 # ifdef EXEC_PAGESIZE
16881 # define getpagesize() EXEC_PAGESIZE
16882 # else /* no EXEC_PAGESIZE */
16883 # ifdef NBPG
16884 # define getpagesize() NBPG * CLSIZE
16885 # ifndef CLSIZE
16886 # define CLSIZE 1
16887 # endif /* no CLSIZE */
16888 # else /* no NBPG */
16889 # ifdef NBPC
16890 # define getpagesize() NBPC
16891 # else /* no NBPC */
16892 # ifdef PAGESIZE
16893 # define getpagesize() PAGESIZE
16894 # endif /* PAGESIZE */
16895 # endif /* no NBPC */
16896 # endif /* no NBPG */
16897 # endif /* no EXEC_PAGESIZE */
16898 # else /* no HAVE_SYS_PARAM_H */
16899 # define getpagesize() 8192 /* punt totally */
16900 # endif /* no HAVE_SYS_PARAM_H */
16901 # endif
16902 #endif
16903
16904 int
16905 main (void)
16906 {
16907 char *data, *data2, *data3;
16908 const char *cdata2;
16909 long i, pagesize;
16910 int fd, fd2;
16911
16912 pagesize = getpagesize ();
16913
16914 /* First, make a file with some known garbage in it. */
16915 data = (char *) malloc (pagesize);
16916 if (!data)
16917 return 1;
16918 for (i = 0; i < pagesize; ++i)
16919 *(data + i) = rand ();
16920 umask (0);
16921 fd = creat ("conftest.mmap", 0600);
16922 if (fd < 0)
16923 return 2;
16924 if (write (fd, data, pagesize) != pagesize)
16925 return 3;
16926 close (fd);
16927
16928 /* Next, check that the tail of a page is zero-filled. File must have
16929 non-zero length, otherwise we risk SIGBUS for entire page. */
16930 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16931 if (fd2 < 0)
16932 return 4;
16933 cdata2 = "";
16934 if (write (fd2, cdata2, 1) != 1)
16935 return 5;
16936 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16937 if (data2 == MAP_FAILED)
16938 return 6;
16939 for (i = 0; i < pagesize; ++i)
16940 if (*(data2 + i))
16941 return 7;
16942 close (fd2);
16943 /* 'return 8;' not currently used. */
16944
16945 /* Next, try to mmap the file at a fixed address which already has
16946 something else allocated at it. If we can, also make sure that
16947 we see the same garbage. */
16948 fd = open ("conftest.mmap", O_RDWR);
16949 if (fd < 0)
16950 return 9;
16951 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16952 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16953 return 10;
16954 for (i = 0; i < pagesize; ++i)
16955 if (*(data + i) != *(data2 + i))
16956 return 11;
16957
16958 /* Finally, make sure that changes to the mapped area do not
16959 percolate back to the file as seen by read(). (This is a bug on
16960 some variants of i386 svr4.0.) */
16961 for (i = 0; i < pagesize; ++i)
16962 *(data2 + i) = *(data2 + i) + 1;
16963 data3 = (char *) malloc (pagesize);
16964 if (!data3)
16965 return 12;
16966 if (read (fd, data3, pagesize) != pagesize)
16967 return 13;
16968 for (i = 0; i < pagesize; ++i)
16969 if (*(data + i) != *(data3 + i))
16970 return 14;
16971 close (fd);
16972 free (data);
16973 free (data3);
16974 return 0;
16975 }
16976 _ACEOF
16977 if ac_fn_c_try_run "$LINENO"
16978 then :
16979 ac_cv_func_mmap_fixed_mapped=yes
16980 else case e in #(
16981 e) ac_cv_func_mmap_fixed_mapped=no ;;
16982 esac
16983 fi
16984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16985 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16986 esac
16987 fi
16988 ;;
16989 esac
16990 fi
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16992 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
16993 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16994
16995 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
16996
16997 fi
16998 rm -f conftest.mmap conftest.txt
16999
17000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
17001 printf %s "checking for GNU libc compatible realloc... " >&6; }
17002 if test ${ac_cv_func_realloc_0_nonnull+y}
17003 then :
17004 printf %s "(cached) " >&6
17005 else case e in #(
17006 e) if test "$cross_compiling" = yes
17007 then :
17008 case "$host_os" in # ((
17009 # Guess yes on platforms where we know the result.
17010 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
17011 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
17012 ac_cv_func_realloc_0_nonnull=yes ;;
17013 # If we don't know, assume the worst.
17014 *) ac_cv_func_realloc_0_nonnull=no ;;
17015 esac
17016 else case e in #(
17017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17019 #include <stdlib.h>
17020
17021 int
17022 main (void)
17023 {
17024 void *p = realloc (0, 0);
17025 int result = !p;
17026 free (p);
17027 return result;
17028 ;
17029 return 0;
17030 }
17031 _ACEOF
17032 if ac_fn_c_try_run "$LINENO"
17033 then :
17034 ac_cv_func_realloc_0_nonnull=yes
17035 else case e in #(
17036 e) ac_cv_func_realloc_0_nonnull=no ;;
17037 esac
17038 fi
17039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17040 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17041 esac
17042 fi
17043 ;;
17044 esac
17045 fi
17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
17047 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
17048 if test $ac_cv_func_realloc_0_nonnull = yes
17049 then :
17050
17051 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
17052
17053 else case e in #(
17054 e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
17055
17056 case " $LIBOBJS " in
17057 *" realloc.$ac_objext "* ) ;;
17058 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
17059 ;;
17060 esac
17061
17062
17063 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
17064 ;;
17065 esac
17066 fi
17067
17068
17069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
17070 printf %s "checking for working strcoll... " >&6; }
17071 if test ${ac_cv_func_strcoll_works+y}
17072 then :
17073 printf %s "(cached) " >&6
17074 else case e in #(
17075 e) if test "$cross_compiling" = yes
17076 then :
17077 case "$host_os" in # ((
17078 # Guess yes on glibc systems.
17079 *-gnu*) ac_cv_func_strcoll_works=yes ;;
17080 # If we don't know, assume the worst.
17081 *) ac_cv_func_strcoll_works=no ;;
17082 esac
17083 else case e in #(
17084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085 /* end confdefs.h. */
17086 $ac_includes_default
17087 int
17088 main (void)
17089 {
17090 return (strcoll ("abc", "def") >= 0 ||
17091 strcoll ("ABC", "DEF") >= 0 ||
17092 strcoll ("123", "456") >= 0)
17093 ;
17094 return 0;
17095 }
17096 _ACEOF
17097 if ac_fn_c_try_run "$LINENO"
17098 then :
17099 ac_cv_func_strcoll_works=yes
17100 else case e in #(
17101 e) ac_cv_func_strcoll_works=no ;;
17102 esac
17103 fi
17104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17105 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17106 esac
17107 fi
17108 ;;
17109 esac
17110 fi
17111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
17112 printf "%s\n" "$ac_cv_func_strcoll_works" >&6; }
17113 if test $ac_cv_func_strcoll_works = yes; then
17114
17115 printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
17116
17117 fi
17118
17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
17120 printf %s "checking for working strtod... " >&6; }
17121 if test ${ac_cv_func_strtod+y}
17122 then :
17123 printf %s "(cached) " >&6
17124 else case e in #(
17125 e) if test "$cross_compiling" = yes
17126 then :
17127 ac_cv_func_strtod=no
17128 else case e in #(
17129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131
17132 $ac_includes_default
17133 int
17134 main (void)
17135 {
17136 {
17137 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
17138 char *string = " +69";
17139 char *term;
17140 double value;
17141 value = strtod (string, &term);
17142 if (value != 69 || term != (string + 4))
17143 return 1;
17144 }
17145
17146 {
17147 /* Under Solaris 2.4, strtod returns the wrong value for the
17148 terminating character under some conditions. */
17149 char *string = "NaN";
17150 char *term;
17151 strtod (string, &term);
17152 if (term != string && *(term - 1) == 0)
17153 return 1;
17154 }
17155 return 0;
17156 }
17157
17158 _ACEOF
17159 if ac_fn_c_try_run "$LINENO"
17160 then :
17161 ac_cv_func_strtod=yes
17162 else case e in #(
17163 e) ac_cv_func_strtod=no ;;
17164 esac
17165 fi
17166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17167 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17168 esac
17169 fi
17170 ;;
17171 esac
17172 fi
17173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
17174 printf "%s\n" "$ac_cv_func_strtod" >&6; }
17175 if test $ac_cv_func_strtod = no; then
17176 case " $LIBOBJS " in
17177 *" strtod.$ac_objext "* ) ;;
17178 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
17179 ;;
17180 esac
17181
17182 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
17183 if test "x$ac_cv_func_pow" = xyes
17184 then :
17185
17186 fi
17187
17188 if test $ac_cv_func_pow = no; then
17189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
17190 printf %s "checking for pow in -lm... " >&6; }
17191 if test ${ac_cv_lib_m_pow+y}
17192 then :
17193 printf %s "(cached) " >&6
17194 else case e in #(
17195 e) ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-lm $LIBS"
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17199
17200 /* Override any GCC internal prototype to avoid an error.
17201 Use char because int might match the return type of a GCC
17202 builtin and then its argument prototype would still apply.
17203 The 'extern "C"' is for builds by C++ compilers;
17204 although this is not generally supported in C code supporting it here
17205 has little cost and some practical benefit (sr 110532). */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 char pow (void);
17210 int
17211 main (void)
17212 {
17213 return pow ();
17214 ;
17215 return 0;
17216 }
17217 _ACEOF
17218 if ac_fn_c_try_link "$LINENO"
17219 then :
17220 ac_cv_lib_m_pow=yes
17221 else case e in #(
17222 e) ac_cv_lib_m_pow=no ;;
17223 esac
17224 fi
17225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS ;;
17228 esac
17229 fi
17230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
17231 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
17232 if test "x$ac_cv_lib_m_pow" = xyes
17233 then :
17234 POW_LIB=-lm
17235 else case e in #(
17236 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
17237 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;;
17238 esac
17239 fi
17240
17241 fi
17242
17243 fi
17244
17245
17246 usrbin_execdir='${exec_prefix}/bin'
17247
17248
17249 if test "x$host_os" = xcygwin
17250 then
17251 prefix=/usr
17252 sysconfdir='${prefix}/etc'
17253 libexecdir='${prefix}/lib'
17254 localstatedir='${prefix}/var'
17255 datadir='${prefix}/share'
17256 mandir='${prefix}/share/man'
17257 infodir='${prefix}/share/info'
17258
17259
17260
17261
17262
17263
17264
17265
17266 printf "%s\n" "#define USE_PROC_CTTY 1" >>confdefs.h
17267
17268 fi
17269
17270
17271
17272 MKINSTALLDIRS=
17273 if test -n "$ac_aux_dir"; then
17274 case "$ac_aux_dir" in
17275 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17276 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17277 esac
17278 fi
17279 if test -z "$MKINSTALLDIRS"; then
17280 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17281 fi
17282
17283
17284
17285
17286
17287
17288 # Prepare PATH_SEPARATOR.
17289 # The user is always right.
17290 if test "${PATH_SEPARATOR+set}" != set; then
17291 echo "#! /bin/sh" >conf$$.sh
17292 echo "exit 0" >>conf$$.sh
17293 chmod +x conf$$.sh
17294 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17295 PATH_SEPARATOR=';'
17296 else
17297 PATH_SEPARATOR=:
17298 fi
17299 rm -f conf$$.sh
17300 fi
17301
17302 # Find out how to test for executable files. Don't use a zero-byte file,
17303 # as systems may use methods other than mode bits to determine executability.
17304 cat >conf$$.file <<_ASEOF
17305 #! /bin/sh
17306 exit 0
17307 _ASEOF
17308 chmod +x conf$$.file
17309 if test -x conf$$.file >/dev/null 2>&1; then
17310 ac_executable_p="test -x"
17311 else
17312 ac_executable_p="test -f"
17313 fi
17314 rm -f conf$$.file
17315
17316 # Extract the first word of "msgfmt", so it can be a program name with args.
17317 set dummy msgfmt; ac_word=$2
17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17319 printf %s "checking for $ac_word... " >&6; }
17320 if test ${ac_cv_path_MSGFMT+y}
17321 then :
17322 printf %s "(cached) " >&6
17323 else case e in #(
17324 e) case "$MSGFMT" in
17325 [\\/]* | ?:[\\/]*)
17326 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17327 ;;
17328 *)
17329 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17330 for ac_dir in $PATH; do
17331 IFS="$ac_save_IFS"
17332 test -z "$ac_dir" && ac_dir=.
17333 for ac_exec_ext in '' $ac_executable_extensions; do
17334 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17335 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
17336 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17337 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17338 break 2
17339 fi
17340 fi
17341 done
17342 done
17343 IFS="$ac_save_IFS"
17344 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17345 ;;
17346 esac ;;
17347 esac
17348 fi
17349 MSGFMT="$ac_cv_path_MSGFMT"
17350 if test "$MSGFMT" != ":"; then
17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17352 printf "%s\n" "$MSGFMT" >&6; }
17353 else
17354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17355 printf "%s\n" "no" >&6; }
17356 fi
17357
17358 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17359 set dummy gmsgfmt; ac_word=$2
17360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17361 printf %s "checking for $ac_word... " >&6; }
17362 if test ${ac_cv_path_GMSGFMT+y}
17363 then :
17364 printf %s "(cached) " >&6
17365 else case e in #(
17366 e) case $GMSGFMT in
17367 [\\/]* | ?:[\\/]*)
17368 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17369 ;;
17370 *)
17371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17372 for as_dir in $PATH
17373 do
17374 IFS=$as_save_IFS
17375 case $as_dir in #(((
17376 '') as_dir=./ ;;
17377 */) ;;
17378 *) as_dir=$as_dir/ ;;
17379 esac
17380 for ac_exec_ext in '' $ac_executable_extensions; do
17381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17382 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
17383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17384 break 2
17385 fi
17386 done
17387 done
17388 IFS=$as_save_IFS
17389
17390 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17391 ;;
17392 esac ;;
17393 esac
17394 fi
17395 GMSGFMT=$ac_cv_path_GMSGFMT
17396 if test -n "$GMSGFMT"; then
17397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17398 printf "%s\n" "$GMSGFMT" >&6; }
17399 else
17400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17401 printf "%s\n" "no" >&6; }
17402 fi
17403
17404
17405
17406
17407 # Prepare PATH_SEPARATOR.
17408 # The user is always right.
17409 if test "${PATH_SEPARATOR+set}" != set; then
17410 echo "#! /bin/sh" >conf$$.sh
17411 echo "exit 0" >>conf$$.sh
17412 chmod +x conf$$.sh
17413 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17414 PATH_SEPARATOR=';'
17415 else
17416 PATH_SEPARATOR=:
17417 fi
17418 rm -f conf$$.sh
17419 fi
17420
17421 # Find out how to test for executable files. Don't use a zero-byte file,
17422 # as systems may use methods other than mode bits to determine executability.
17423 cat >conf$$.file <<_ASEOF
17424 #! /bin/sh
17425 exit 0
17426 _ASEOF
17427 chmod +x conf$$.file
17428 if test -x conf$$.file >/dev/null 2>&1; then
17429 ac_executable_p="test -x"
17430 else
17431 ac_executable_p="test -f"
17432 fi
17433 rm -f conf$$.file
17434
17435 # Extract the first word of "xgettext", so it can be a program name with args.
17436 set dummy xgettext; ac_word=$2
17437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17438 printf %s "checking for $ac_word... " >&6; }
17439 if test ${ac_cv_path_XGETTEXT+y}
17440 then :
17441 printf %s "(cached) " >&6
17442 else case e in #(
17443 e) case "$XGETTEXT" in
17444 [\\/]* | ?:[\\/]*)
17445 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17446 ;;
17447 *)
17448 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17449 for ac_dir in $PATH; do
17450 IFS="$ac_save_IFS"
17451 test -z "$ac_dir" && ac_dir=.
17452 for ac_exec_ext in '' $ac_executable_extensions; do
17453 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17454 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17455 (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
17456 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17457 break 2
17458 fi
17459 fi
17460 done
17461 done
17462 IFS="$ac_save_IFS"
17463 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17464 ;;
17465 esac ;;
17466 esac
17467 fi
17468 XGETTEXT="$ac_cv_path_XGETTEXT"
17469 if test "$XGETTEXT" != ":"; then
17470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17471 printf "%s\n" "$XGETTEXT" >&6; }
17472 else
17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474 printf "%s\n" "no" >&6; }
17475 fi
17476
17477 rm -f messages.po
17478
17479
17480 # Prepare PATH_SEPARATOR.
17481 # The user is always right.
17482 if test "${PATH_SEPARATOR+set}" != set; then
17483 echo "#! /bin/sh" >conf$$.sh
17484 echo "exit 0" >>conf$$.sh
17485 chmod +x conf$$.sh
17486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17487 PATH_SEPARATOR=';'
17488 else
17489 PATH_SEPARATOR=:
17490 fi
17491 rm -f conf$$.sh
17492 fi
17493
17494 # Find out how to test for executable files. Don't use a zero-byte file,
17495 # as systems may use methods other than mode bits to determine executability.
17496 cat >conf$$.file <<_ASEOF
17497 #! /bin/sh
17498 exit 0
17499 _ASEOF
17500 chmod +x conf$$.file
17501 if test -x conf$$.file >/dev/null 2>&1; then
17502 ac_executable_p="test -x"
17503 else
17504 ac_executable_p="test -f"
17505 fi
17506 rm -f conf$$.file
17507
17508 # Extract the first word of "msgmerge", so it can be a program name with args.
17509 set dummy msgmerge; ac_word=$2
17510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17511 printf %s "checking for $ac_word... " >&6; }
17512 if test ${ac_cv_path_MSGMERGE+y}
17513 then :
17514 printf %s "(cached) " >&6
17515 else case e in #(
17516 e) case "$MSGMERGE" in
17517 [\\/]* | ?:[\\/]*)
17518 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17519 ;;
17520 *)
17521 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17522 for ac_dir in $PATH; do
17523 IFS="$ac_save_IFS"
17524 test -z "$ac_dir" && ac_dir=.
17525 for ac_exec_ext in '' $ac_executable_extensions; do
17526 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17527 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
17528 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17529 break 2
17530 fi
17531 fi
17532 done
17533 done
17534 IFS="$ac_save_IFS"
17535 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17536 ;;
17537 esac ;;
17538 esac
17539 fi
17540 MSGMERGE="$ac_cv_path_MSGMERGE"
17541 if test "$MSGMERGE" != ":"; then
17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17543 printf "%s\n" "$MSGMERGE" >&6; }
17544 else
17545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17546 printf "%s\n" "no" >&6; }
17547 fi
17548
17549
17550 if test "$GMSGFMT" != ":"; then
17551 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17552 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17553 : ;
17554 else
17555 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17557 printf "%s\n" "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17558 GMSGFMT=":"
17559 fi
17560 fi
17561
17562 if test "$XGETTEXT" != ":"; then
17563 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17564 (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
17565 : ;
17566 else
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17568 printf "%s\n" "found xgettext program is not GNU xgettext; ignore it" >&6; }
17569 XGETTEXT=":"
17570 fi
17571 rm -f messages.po
17572 fi
17573
17574 ac_config_commands="$ac_config_commands default-1"
17575
17576
17577
17578 if test "X$prefix" = "XNONE"; then
17579 acl_final_prefix="$ac_default_prefix"
17580 else
17581 acl_final_prefix="$prefix"
17582 fi
17583 if test "X$exec_prefix" = "XNONE"; then
17584 acl_final_exec_prefix='${prefix}'
17585 else
17586 acl_final_exec_prefix="$exec_prefix"
17587 fi
17588 acl_save_prefix="$prefix"
17589 prefix="$acl_final_prefix"
17590 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17591 prefix="$acl_save_prefix"
17592
17593
17594 # Check whether --with-gnu-ld was given.
17595 if test ${with_gnu_ld+y}
17596 then :
17597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17598 else case e in #(
17599 e) with_gnu_ld=no ;;
17600 esac
17601 fi
17602
17603 # Prepare PATH_SEPARATOR.
17604 # The user is always right.
17605 if test "${PATH_SEPARATOR+set}" != set; then
17606 echo "#! /bin/sh" >conf$$.sh
17607 echo "exit 0" >>conf$$.sh
17608 chmod +x conf$$.sh
17609 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17610 PATH_SEPARATOR=';'
17611 else
17612 PATH_SEPARATOR=:
17613 fi
17614 rm -f conf$$.sh
17615 fi
17616 ac_prog=ld
17617 if test "$GCC" = yes; then
17618 # Check if gcc -print-prog-name=ld gives a path.
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17620 printf %s "checking for ld used by GCC... " >&6; }
17621 case $host in
17622 *-*-mingw*)
17623 # gcc leaves a trailing carriage return which upsets mingw
17624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17625 *)
17626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17627 esac
17628 case $ac_prog in
17629 # Accept absolute paths.
17630 [\\/]* | [A-Za-z]:[\\/]*)
17631 re_direlt='/[^/][^/]*/\.\./'
17632 # Canonicalize the path of ld
17633 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17634 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17635 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17636 done
17637 test -z "$LD" && LD="$ac_prog"
17638 ;;
17639 "")
17640 # If it fails, then pretend we aren't using GCC.
17641 ac_prog=ld
17642 ;;
17643 *)
17644 # If it is relative, then search for the first ld in PATH.
17645 with_gnu_ld=unknown
17646 ;;
17647 esac
17648 elif test "$with_gnu_ld" = yes; then
17649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17650 printf %s "checking for GNU ld... " >&6; }
17651 else
17652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17653 printf %s "checking for non-GNU ld... " >&6; }
17654 fi
17655 if test ${acl_cv_path_LD+y}
17656 then :
17657 printf %s "(cached) " >&6
17658 else case e in #(
17659 e) if test -z "$LD"; then
17660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17661 for ac_dir in $PATH; do
17662 test -z "$ac_dir" && ac_dir=.
17663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17664 acl_cv_path_LD="$ac_dir/$ac_prog"
17665 # Check to see if the program is GNU ld. I'd rather use --version,
17666 # but apparently some GNU ld's only accept -v.
17667 # Break only if it was the GNU/non-GNU ld that we prefer.
17668 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17669 *GNU* | *'with BFD'*)
17670 test "$with_gnu_ld" != no && break ;;
17671 *)
17672 test "$with_gnu_ld" != yes && break ;;
17673 esac
17674 fi
17675 done
17676 IFS="$ac_save_ifs"
17677 else
17678 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17679 fi ;;
17680 esac
17681 fi
17682
17683 LD="$acl_cv_path_LD"
17684 if test -n "$LD"; then
17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17686 printf "%s\n" "$LD" >&6; }
17687 else
17688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17689 printf "%s\n" "no" >&6; }
17690 fi
17691 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17693 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
17694 if test ${acl_cv_prog_gnu_ld+y}
17695 then :
17696 printf %s "(cached) " >&6
17697 else case e in #(
17698 e) # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17699 case `$LD -v 2>&1 </dev/null` in
17700 *GNU* | *'with BFD'*)
17701 acl_cv_prog_gnu_ld=yes ;;
17702 *)
17703 acl_cv_prog_gnu_ld=no ;;
17704 esac ;;
17705 esac
17706 fi
17707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17708 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
17709 with_gnu_ld=$acl_cv_prog_gnu_ld
17710
17711
17712
17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17714 printf %s "checking for shared library run path origin... " >&6; }
17715 if test ${acl_cv_rpath+y}
17716 then :
17717 printf %s "(cached) " >&6
17718 else case e in #(
17719 e)
17720 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17721 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17722 . ./conftest.sh
17723 rm -f ./conftest.sh
17724 acl_cv_rpath=done
17725 ;;
17726 esac
17727 fi
17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17729 printf "%s\n" "$acl_cv_rpath" >&6; }
17730 wl="$acl_cv_wl"
17731 libext="$acl_cv_libext"
17732 shlibext="$acl_cv_shlibext"
17733 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17734 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17735 hardcode_direct="$acl_cv_hardcode_direct"
17736 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17737 # Check whether --enable-rpath was given.
17738 if test ${enable_rpath+y}
17739 then :
17740 enableval=$enable_rpath; :
17741 else case e in #(
17742 e) enable_rpath=yes ;;
17743 esac
17744 fi
17745
17746
17747
17748
17749
17750
17751
17752
17753 use_additional=yes
17754
17755 acl_save_prefix="$prefix"
17756 prefix="$acl_final_prefix"
17757 acl_save_exec_prefix="$exec_prefix"
17758 exec_prefix="$acl_final_exec_prefix"
17759
17760 eval additional_includedir=\"$includedir\"
17761 eval additional_libdir=\"$libdir\"
17762
17763 exec_prefix="$acl_save_exec_prefix"
17764 prefix="$acl_save_prefix"
17765
17766
17767 # Check whether --with-libiconv-prefix was given.
17768 if test ${with_libiconv_prefix+y}
17769 then :
17770 withval=$with_libiconv_prefix;
17771 if test "X$withval" = "Xno"; then
17772 use_additional=no
17773 else
17774 if test "X$withval" = "X"; then
17775
17776 acl_save_prefix="$prefix"
17777 prefix="$acl_final_prefix"
17778 acl_save_exec_prefix="$exec_prefix"
17779 exec_prefix="$acl_final_exec_prefix"
17780
17781 eval additional_includedir=\"$includedir\"
17782 eval additional_libdir=\"$libdir\"
17783
17784 exec_prefix="$acl_save_exec_prefix"
17785 prefix="$acl_save_prefix"
17786
17787 else
17788 additional_includedir="$withval/include"
17789 additional_libdir="$withval/lib"
17790 fi
17791 fi
17792
17793 fi
17794
17795 LIBICONV=
17796 LTLIBICONV=
17797 INCICONV=
17798 rpathdirs=
17799 ltrpathdirs=
17800 names_already_handled=
17801 names_next_round='iconv '
17802 while test -n "$names_next_round"; do
17803 names_this_round="$names_next_round"
17804 names_next_round=
17805 for name in $names_this_round; do
17806 already_handled=
17807 for n in $names_already_handled; do
17808 if test "$n" = "$name"; then
17809 already_handled=yes
17810 break
17811 fi
17812 done
17813 if test -z "$already_handled"; then
17814 names_already_handled="$names_already_handled $name"
17815 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17816 eval value=\"\$HAVE_LIB$uppername\"
17817 if test -n "$value"; then
17818 if test "$value" = yes; then
17819 eval value=\"\$LIB$uppername\"
17820 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17821 eval value=\"\$LTLIB$uppername\"
17822 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17823 else
17824 :
17825 fi
17826 else
17827 found_dir=
17828 found_la=
17829 found_so=
17830 found_a=
17831 if test $use_additional = yes; then
17832 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17833 found_dir="$additional_libdir"
17834 found_so="$additional_libdir/lib$name.$shlibext"
17835 if test -f "$additional_libdir/lib$name.la"; then
17836 found_la="$additional_libdir/lib$name.la"
17837 fi
17838 else
17839 if test -f "$additional_libdir/lib$name.$libext"; then
17840 found_dir="$additional_libdir"
17841 found_a="$additional_libdir/lib$name.$libext"
17842 if test -f "$additional_libdir/lib$name.la"; then
17843 found_la="$additional_libdir/lib$name.la"
17844 fi
17845 fi
17846 fi
17847 fi
17848 if test "X$found_dir" = "X"; then
17849 for x in $LDFLAGS $LTLIBICONV; do
17850
17851 acl_save_prefix="$prefix"
17852 prefix="$acl_final_prefix"
17853 acl_save_exec_prefix="$exec_prefix"
17854 exec_prefix="$acl_final_exec_prefix"
17855 eval x=\"$x\"
17856 exec_prefix="$acl_save_exec_prefix"
17857 prefix="$acl_save_prefix"
17858
17859 case "$x" in
17860 -L*)
17861 dir=`echo "X$x" | sed -e 's/^X-L//'`
17862 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17863 found_dir="$dir"
17864 found_so="$dir/lib$name.$shlibext"
17865 if test -f "$dir/lib$name.la"; then
17866 found_la="$dir/lib$name.la"
17867 fi
17868 else
17869 if test -f "$dir/lib$name.$libext"; then
17870 found_dir="$dir"
17871 found_a="$dir/lib$name.$libext"
17872 if test -f "$dir/lib$name.la"; then
17873 found_la="$dir/lib$name.la"
17874 fi
17875 fi
17876 fi
17877 ;;
17878 esac
17879 if test "X$found_dir" != "X"; then
17880 break
17881 fi
17882 done
17883 fi
17884 if test "X$found_dir" != "X"; then
17885 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17886 if test "X$found_so" != "X"; then
17887 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17888 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17889 else
17890 haveit=
17891 for x in $ltrpathdirs; do
17892 if test "X$x" = "X$found_dir"; then
17893 haveit=yes
17894 break
17895 fi
17896 done
17897 if test -z "$haveit"; then
17898 ltrpathdirs="$ltrpathdirs $found_dir"
17899 fi
17900 if test "$hardcode_direct" = yes; then
17901 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17902 else
17903 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17904 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17905 haveit=
17906 for x in $rpathdirs; do
17907 if test "X$x" = "X$found_dir"; then
17908 haveit=yes
17909 break
17910 fi
17911 done
17912 if test -z "$haveit"; then
17913 rpathdirs="$rpathdirs $found_dir"
17914 fi
17915 else
17916 haveit=
17917 for x in $LDFLAGS $LIBICONV; do
17918
17919 acl_save_prefix="$prefix"
17920 prefix="$acl_final_prefix"
17921 acl_save_exec_prefix="$exec_prefix"
17922 exec_prefix="$acl_final_exec_prefix"
17923 eval x=\"$x\"
17924 exec_prefix="$acl_save_exec_prefix"
17925 prefix="$acl_save_prefix"
17926
17927 if test "X$x" = "X-L$found_dir"; then
17928 haveit=yes
17929 break
17930 fi
17931 done
17932 if test -z "$haveit"; then
17933 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17934 fi
17935 if test "$hardcode_minus_L" != no; then
17936 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17937 else
17938 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17939 fi
17940 fi
17941 fi
17942 fi
17943 else
17944 if test "X$found_a" != "X"; then
17945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17946 else
17947 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17948 fi
17949 fi
17950 additional_includedir=
17951 case "$found_dir" in
17952 */lib | */lib/)
17953 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17954 additional_includedir="$basedir/include"
17955 ;;
17956 esac
17957 if test "X$additional_includedir" != "X"; then
17958 if test "X$additional_includedir" != "X/usr/include"; then
17959 haveit=
17960 if test "X$additional_includedir" = "X/usr/local/include"; then
17961 if test -n "$GCC"; then
17962 case $host_os in
17963 linux*) haveit=yes;;
17964 esac
17965 fi
17966 fi
17967 if test -z "$haveit"; then
17968 for x in $CPPFLAGS $INCICONV; do
17969
17970 acl_save_prefix="$prefix"
17971 prefix="$acl_final_prefix"
17972 acl_save_exec_prefix="$exec_prefix"
17973 exec_prefix="$acl_final_exec_prefix"
17974 eval x=\"$x\"
17975 exec_prefix="$acl_save_exec_prefix"
17976 prefix="$acl_save_prefix"
17977
17978 if test "X$x" = "X-I$additional_includedir"; then
17979 haveit=yes
17980 break
17981 fi
17982 done
17983 if test -z "$haveit"; then
17984 if test -d "$additional_includedir"; then
17985 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17986 fi
17987 fi
17988 fi
17989 fi
17990 fi
17991 if test -n "$found_la"; then
17992 save_libdir="$libdir"
17993 case "$found_la" in
17994 */* | *\\*) . "$found_la" ;;
17995 *) . "./$found_la" ;;
17996 esac
17997 libdir="$save_libdir"
17998 for dep in $dependency_libs; do
17999 case "$dep" in
18000 -L*)
18001 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18002 if test "X$additional_libdir" != "X/usr/lib"; then
18003 haveit=
18004 if test "X$additional_libdir" = "X/usr/local/lib"; then
18005 if test -n "$GCC"; then
18006 case $host_os in
18007 linux*) haveit=yes;;
18008 esac
18009 fi
18010 fi
18011 if test -z "$haveit"; then
18012 haveit=
18013 for x in $LDFLAGS $LIBICONV; do
18014
18015 acl_save_prefix="$prefix"
18016 prefix="$acl_final_prefix"
18017 acl_save_exec_prefix="$exec_prefix"
18018 exec_prefix="$acl_final_exec_prefix"
18019 eval x=\"$x\"
18020 exec_prefix="$acl_save_exec_prefix"
18021 prefix="$acl_save_prefix"
18022
18023 if test "X$x" = "X-L$additional_libdir"; then
18024 haveit=yes
18025 break
18026 fi
18027 done
18028 if test -z "$haveit"; then
18029 if test -d "$additional_libdir"; then
18030 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18031 fi
18032 fi
18033 haveit=
18034 for x in $LDFLAGS $LTLIBICONV; do
18035
18036 acl_save_prefix="$prefix"
18037 prefix="$acl_final_prefix"
18038 acl_save_exec_prefix="$exec_prefix"
18039 exec_prefix="$acl_final_exec_prefix"
18040 eval x=\"$x\"
18041 exec_prefix="$acl_save_exec_prefix"
18042 prefix="$acl_save_prefix"
18043
18044 if test "X$x" = "X-L$additional_libdir"; then
18045 haveit=yes
18046 break
18047 fi
18048 done
18049 if test -z "$haveit"; then
18050 if test -d "$additional_libdir"; then
18051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18052 fi
18053 fi
18054 fi
18055 fi
18056 ;;
18057 -R*)
18058 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18059 if test "$enable_rpath" != no; then
18060 haveit=
18061 for x in $rpathdirs; do
18062 if test "X$x" = "X$dir"; then
18063 haveit=yes
18064 break
18065 fi
18066 done
18067 if test -z "$haveit"; then
18068 rpathdirs="$rpathdirs $dir"
18069 fi
18070 haveit=
18071 for x in $ltrpathdirs; do
18072 if test "X$x" = "X$dir"; then
18073 haveit=yes
18074 break
18075 fi
18076 done
18077 if test -z "$haveit"; then
18078 ltrpathdirs="$ltrpathdirs $dir"
18079 fi
18080 fi
18081 ;;
18082 -l*)
18083 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18084 ;;
18085 *.la)
18086 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18087 ;;
18088 *)
18089 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18091 ;;
18092 esac
18093 done
18094 fi
18095 else
18096 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18097 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18098 fi
18099 fi
18100 fi
18101 done
18102 done
18103 if test "X$rpathdirs" != "X"; then
18104 if test -n "$hardcode_libdir_separator"; then
18105 alldirs=
18106 for found_dir in $rpathdirs; do
18107 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18108 done
18109 acl_save_libdir="$libdir"
18110 libdir="$alldirs"
18111 eval flag=\"$hardcode_libdir_flag_spec\"
18112 libdir="$acl_save_libdir"
18113 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18114 else
18115 for found_dir in $rpathdirs; do
18116 acl_save_libdir="$libdir"
18117 libdir="$found_dir"
18118 eval flag=\"$hardcode_libdir_flag_spec\"
18119 libdir="$acl_save_libdir"
18120 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18121 done
18122 fi
18123 fi
18124 if test "X$ltrpathdirs" != "X"; then
18125 for found_dir in $ltrpathdirs; do
18126 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18127 done
18128 fi
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18148 printf %s "checking whether NLS is requested... " >&6; }
18149 # Check whether --enable-nls was given.
18150 if test ${enable_nls+y}
18151 then :
18152 enableval=$enable_nls; USE_NLS=$enableval
18153 else case e in #(
18154 e) USE_NLS=yes ;;
18155 esac
18156 fi
18157
18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18159 printf "%s\n" "$USE_NLS" >&6; }
18160
18161
18162
18163
18164 LIBINTL=
18165 LTLIBINTL=
18166 POSUB=
18167
18168 if test "$USE_NLS" = "yes"; then
18169 gt_use_preinstalled_gnugettext=no
18170
18171
18172
18173
18174
18175
18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18177 printf %s "checking for GNU gettext in libc... " >&6; }
18178 if test ${gt_cv_func_gnugettext1_libc+y}
18179 then :
18180 printf %s "(cached) " >&6
18181 else case e in #(
18182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18184 #include <libintl.h>
18185 extern int _nl_msg_cat_cntr;
18186 extern int *_nl_domain_bindings;
18187 int
18188 main (void)
18189 {
18190 bindtextdomain ("", "");
18191 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18192 ;
18193 return 0;
18194 }
18195 _ACEOF
18196 if ac_fn_c_try_link "$LINENO"
18197 then :
18198 gt_cv_func_gnugettext1_libc=yes
18199 else case e in #(
18200 e) gt_cv_func_gnugettext1_libc=no ;;
18201 esac
18202 fi
18203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18204 conftest$ac_exeext conftest.$ac_ext ;;
18205 esac
18206 fi
18207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18208 printf "%s\n" "$gt_cv_func_gnugettext1_libc" >&6; }
18209
18210 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18211
18212
18213
18214
18215
18216 am_save_CPPFLAGS="$CPPFLAGS"
18217
18218 for element in $INCICONV; do
18219 haveit=
18220 for x in $CPPFLAGS; do
18221
18222 acl_save_prefix="$prefix"
18223 prefix="$acl_final_prefix"
18224 acl_save_exec_prefix="$exec_prefix"
18225 exec_prefix="$acl_final_exec_prefix"
18226 eval x=\"$x\"
18227 exec_prefix="$acl_save_exec_prefix"
18228 prefix="$acl_save_prefix"
18229
18230 if test "X$x" = "X$element"; then
18231 haveit=yes
18232 break
18233 fi
18234 done
18235 if test -z "$haveit"; then
18236 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18237 fi
18238 done
18239
18240
18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18242 printf %s "checking for iconv... " >&6; }
18243 if test ${am_cv_func_iconv+y}
18244 then :
18245 printf %s "(cached) " >&6
18246 else case e in #(
18247 e)
18248 am_cv_func_iconv="no, consider installing GNU libiconv"
18249 am_cv_lib_iconv=no
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18252 #include <stdlib.h>
18253 #include <iconv.h>
18254 int
18255 main (void)
18256 {
18257 iconv_t cd = iconv_open("","");
18258 iconv(cd,NULL,NULL,NULL,NULL);
18259 iconv_close(cd);
18260 ;
18261 return 0;
18262 }
18263 _ACEOF
18264 if ac_fn_c_try_link "$LINENO"
18265 then :
18266 am_cv_func_iconv=yes
18267 fi
18268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18269 conftest$ac_exeext conftest.$ac_ext
18270 if test "$am_cv_func_iconv" != yes; then
18271 am_save_LIBS="$LIBS"
18272 LIBS="$LIBS $LIBICONV"
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275 #include <stdlib.h>
18276 #include <iconv.h>
18277 int
18278 main (void)
18279 {
18280 iconv_t cd = iconv_open("","");
18281 iconv(cd,NULL,NULL,NULL,NULL);
18282 iconv_close(cd);
18283 ;
18284 return 0;
18285 }
18286 _ACEOF
18287 if ac_fn_c_try_link "$LINENO"
18288 then :
18289 am_cv_lib_iconv=yes
18290 am_cv_func_iconv=yes
18291 fi
18292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18293 conftest$ac_exeext conftest.$ac_ext
18294 LIBS="$am_save_LIBS"
18295 fi
18296 ;;
18297 esac
18298 fi
18299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18300 printf "%s\n" "$am_cv_func_iconv" >&6; }
18301 if test "$am_cv_func_iconv" = yes; then
18302
18303 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
18304
18305 fi
18306 if test "$am_cv_lib_iconv" = yes; then
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18308 printf %s "checking how to link with libiconv... " >&6; }
18309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18310 printf "%s\n" "$LIBICONV" >&6; }
18311 else
18312 CPPFLAGS="$am_save_CPPFLAGS"
18313 LIBICONV=
18314 LTLIBICONV=
18315 fi
18316
18317
18318
18319
18320
18321
18322 use_additional=yes
18323
18324 acl_save_prefix="$prefix"
18325 prefix="$acl_final_prefix"
18326 acl_save_exec_prefix="$exec_prefix"
18327 exec_prefix="$acl_final_exec_prefix"
18328
18329 eval additional_includedir=\"$includedir\"
18330 eval additional_libdir=\"$libdir\"
18331
18332 exec_prefix="$acl_save_exec_prefix"
18333 prefix="$acl_save_prefix"
18334
18335
18336 # Check whether --with-libintl-prefix was given.
18337 if test ${with_libintl_prefix+y}
18338 then :
18339 withval=$with_libintl_prefix;
18340 if test "X$withval" = "Xno"; then
18341 use_additional=no
18342 else
18343 if test "X$withval" = "X"; then
18344
18345 acl_save_prefix="$prefix"
18346 prefix="$acl_final_prefix"
18347 acl_save_exec_prefix="$exec_prefix"
18348 exec_prefix="$acl_final_exec_prefix"
18349
18350 eval additional_includedir=\"$includedir\"
18351 eval additional_libdir=\"$libdir\"
18352
18353 exec_prefix="$acl_save_exec_prefix"
18354 prefix="$acl_save_prefix"
18355
18356 else
18357 additional_includedir="$withval/include"
18358 additional_libdir="$withval/lib"
18359 fi
18360 fi
18361
18362 fi
18363
18364 LIBINTL=
18365 LTLIBINTL=
18366 INCINTL=
18367 rpathdirs=
18368 ltrpathdirs=
18369 names_already_handled=
18370 names_next_round='intl '
18371 while test -n "$names_next_round"; do
18372 names_this_round="$names_next_round"
18373 names_next_round=
18374 for name in $names_this_round; do
18375 already_handled=
18376 for n in $names_already_handled; do
18377 if test "$n" = "$name"; then
18378 already_handled=yes
18379 break
18380 fi
18381 done
18382 if test -z "$already_handled"; then
18383 names_already_handled="$names_already_handled $name"
18384 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18385 eval value=\"\$HAVE_LIB$uppername\"
18386 if test -n "$value"; then
18387 if test "$value" = yes; then
18388 eval value=\"\$LIB$uppername\"
18389 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18390 eval value=\"\$LTLIB$uppername\"
18391 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18392 else
18393 :
18394 fi
18395 else
18396 found_dir=
18397 found_la=
18398 found_so=
18399 found_a=
18400 if test $use_additional = yes; then
18401 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18402 found_dir="$additional_libdir"
18403 found_so="$additional_libdir/lib$name.$shlibext"
18404 if test -f "$additional_libdir/lib$name.la"; then
18405 found_la="$additional_libdir/lib$name.la"
18406 fi
18407 else
18408 if test -f "$additional_libdir/lib$name.$libext"; then
18409 found_dir="$additional_libdir"
18410 found_a="$additional_libdir/lib$name.$libext"
18411 if test -f "$additional_libdir/lib$name.la"; then
18412 found_la="$additional_libdir/lib$name.la"
18413 fi
18414 fi
18415 fi
18416 fi
18417 if test "X$found_dir" = "X"; then
18418 for x in $LDFLAGS $LTLIBINTL; do
18419
18420 acl_save_prefix="$prefix"
18421 prefix="$acl_final_prefix"
18422 acl_save_exec_prefix="$exec_prefix"
18423 exec_prefix="$acl_final_exec_prefix"
18424 eval x=\"$x\"
18425 exec_prefix="$acl_save_exec_prefix"
18426 prefix="$acl_save_prefix"
18427
18428 case "$x" in
18429 -L*)
18430 dir=`echo "X$x" | sed -e 's/^X-L//'`
18431 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18432 found_dir="$dir"
18433 found_so="$dir/lib$name.$shlibext"
18434 if test -f "$dir/lib$name.la"; then
18435 found_la="$dir/lib$name.la"
18436 fi
18437 else
18438 if test -f "$dir/lib$name.$libext"; then
18439 found_dir="$dir"
18440 found_a="$dir/lib$name.$libext"
18441 if test -f "$dir/lib$name.la"; then
18442 found_la="$dir/lib$name.la"
18443 fi
18444 fi
18445 fi
18446 ;;
18447 esac
18448 if test "X$found_dir" != "X"; then
18449 break
18450 fi
18451 done
18452 fi
18453 if test "X$found_dir" != "X"; then
18454 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18455 if test "X$found_so" != "X"; then
18456 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18457 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18458 else
18459 haveit=
18460 for x in $ltrpathdirs; do
18461 if test "X$x" = "X$found_dir"; then
18462 haveit=yes
18463 break
18464 fi
18465 done
18466 if test -z "$haveit"; then
18467 ltrpathdirs="$ltrpathdirs $found_dir"
18468 fi
18469 if test "$hardcode_direct" = yes; then
18470 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18471 else
18472 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18473 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18474 haveit=
18475 for x in $rpathdirs; do
18476 if test "X$x" = "X$found_dir"; then
18477 haveit=yes
18478 break
18479 fi
18480 done
18481 if test -z "$haveit"; then
18482 rpathdirs="$rpathdirs $found_dir"
18483 fi
18484 else
18485 haveit=
18486 for x in $LDFLAGS $LIBINTL; do
18487
18488 acl_save_prefix="$prefix"
18489 prefix="$acl_final_prefix"
18490 acl_save_exec_prefix="$exec_prefix"
18491 exec_prefix="$acl_final_exec_prefix"
18492 eval x=\"$x\"
18493 exec_prefix="$acl_save_exec_prefix"
18494 prefix="$acl_save_prefix"
18495
18496 if test "X$x" = "X-L$found_dir"; then
18497 haveit=yes
18498 break
18499 fi
18500 done
18501 if test -z "$haveit"; then
18502 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18503 fi
18504 if test "$hardcode_minus_L" != no; then
18505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18506 else
18507 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18508 fi
18509 fi
18510 fi
18511 fi
18512 else
18513 if test "X$found_a" != "X"; then
18514 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18515 else
18516 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18517 fi
18518 fi
18519 additional_includedir=
18520 case "$found_dir" in
18521 */lib | */lib/)
18522 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18523 additional_includedir="$basedir/include"
18524 ;;
18525 esac
18526 if test "X$additional_includedir" != "X"; then
18527 if test "X$additional_includedir" != "X/usr/include"; then
18528 haveit=
18529 if test "X$additional_includedir" = "X/usr/local/include"; then
18530 if test -n "$GCC"; then
18531 case $host_os in
18532 linux*) haveit=yes;;
18533 esac
18534 fi
18535 fi
18536 if test -z "$haveit"; then
18537 for x in $CPPFLAGS $INCINTL; do
18538
18539 acl_save_prefix="$prefix"
18540 prefix="$acl_final_prefix"
18541 acl_save_exec_prefix="$exec_prefix"
18542 exec_prefix="$acl_final_exec_prefix"
18543 eval x=\"$x\"
18544 exec_prefix="$acl_save_exec_prefix"
18545 prefix="$acl_save_prefix"
18546
18547 if test "X$x" = "X-I$additional_includedir"; then
18548 haveit=yes
18549 break
18550 fi
18551 done
18552 if test -z "$haveit"; then
18553 if test -d "$additional_includedir"; then
18554 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18555 fi
18556 fi
18557 fi
18558 fi
18559 fi
18560 if test -n "$found_la"; then
18561 save_libdir="$libdir"
18562 case "$found_la" in
18563 */* | *\\*) . "$found_la" ;;
18564 *) . "./$found_la" ;;
18565 esac
18566 libdir="$save_libdir"
18567 for dep in $dependency_libs; do
18568 case "$dep" in
18569 -L*)
18570 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18571 if test "X$additional_libdir" != "X/usr/lib"; then
18572 haveit=
18573 if test "X$additional_libdir" = "X/usr/local/lib"; then
18574 if test -n "$GCC"; then
18575 case $host_os in
18576 linux*) haveit=yes;;
18577 esac
18578 fi
18579 fi
18580 if test -z "$haveit"; then
18581 haveit=
18582 for x in $LDFLAGS $LIBINTL; do
18583
18584 acl_save_prefix="$prefix"
18585 prefix="$acl_final_prefix"
18586 acl_save_exec_prefix="$exec_prefix"
18587 exec_prefix="$acl_final_exec_prefix"
18588 eval x=\"$x\"
18589 exec_prefix="$acl_save_exec_prefix"
18590 prefix="$acl_save_prefix"
18591
18592 if test "X$x" = "X-L$additional_libdir"; then
18593 haveit=yes
18594 break
18595 fi
18596 done
18597 if test -z "$haveit"; then
18598 if test -d "$additional_libdir"; then
18599 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18600 fi
18601 fi
18602 haveit=
18603 for x in $LDFLAGS $LTLIBINTL; do
18604
18605 acl_save_prefix="$prefix"
18606 prefix="$acl_final_prefix"
18607 acl_save_exec_prefix="$exec_prefix"
18608 exec_prefix="$acl_final_exec_prefix"
18609 eval x=\"$x\"
18610 exec_prefix="$acl_save_exec_prefix"
18611 prefix="$acl_save_prefix"
18612
18613 if test "X$x" = "X-L$additional_libdir"; then
18614 haveit=yes
18615 break
18616 fi
18617 done
18618 if test -z "$haveit"; then
18619 if test -d "$additional_libdir"; then
18620 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18621 fi
18622 fi
18623 fi
18624 fi
18625 ;;
18626 -R*)
18627 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18628 if test "$enable_rpath" != no; then
18629 haveit=
18630 for x in $rpathdirs; do
18631 if test "X$x" = "X$dir"; then
18632 haveit=yes
18633 break
18634 fi
18635 done
18636 if test -z "$haveit"; then
18637 rpathdirs="$rpathdirs $dir"
18638 fi
18639 haveit=
18640 for x in $ltrpathdirs; do
18641 if test "X$x" = "X$dir"; then
18642 haveit=yes
18643 break
18644 fi
18645 done
18646 if test -z "$haveit"; then
18647 ltrpathdirs="$ltrpathdirs $dir"
18648 fi
18649 fi
18650 ;;
18651 -l*)
18652 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18653 ;;
18654 *.la)
18655 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18656 ;;
18657 *)
18658 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18659 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18660 ;;
18661 esac
18662 done
18663 fi
18664 else
18665 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18666 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18667 fi
18668 fi
18669 fi
18670 done
18671 done
18672 if test "X$rpathdirs" != "X"; then
18673 if test -n "$hardcode_libdir_separator"; then
18674 alldirs=
18675 for found_dir in $rpathdirs; do
18676 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18677 done
18678 acl_save_libdir="$libdir"
18679 libdir="$alldirs"
18680 eval flag=\"$hardcode_libdir_flag_spec\"
18681 libdir="$acl_save_libdir"
18682 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18683 else
18684 for found_dir in $rpathdirs; do
18685 acl_save_libdir="$libdir"
18686 libdir="$found_dir"
18687 eval flag=\"$hardcode_libdir_flag_spec\"
18688 libdir="$acl_save_libdir"
18689 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18690 done
18691 fi
18692 fi
18693 if test "X$ltrpathdirs" != "X"; then
18694 for found_dir in $ltrpathdirs; do
18695 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18696 done
18697 fi
18698
18699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18700 printf %s "checking for GNU gettext in libintl... " >&6; }
18701 if test ${gt_cv_func_gnugettext1_libintl+y}
18702 then :
18703 printf %s "(cached) " >&6
18704 else case e in #(
18705 e) gt_save_CPPFLAGS="$CPPFLAGS"
18706 CPPFLAGS="$CPPFLAGS $INCINTL"
18707 gt_save_LIBS="$LIBS"
18708 LIBS="$LIBS $LIBINTL"
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18711 #include <libintl.h>
18712 extern int _nl_msg_cat_cntr;
18713 extern
18714 #ifdef __cplusplus
18715 "C"
18716 #endif
18717 const char *_nl_expand_alias ();
18718 int
18719 main (void)
18720 {
18721 bindtextdomain ("", "");
18722 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18723 ;
18724 return 0;
18725 }
18726 _ACEOF
18727 if ac_fn_c_try_link "$LINENO"
18728 then :
18729 gt_cv_func_gnugettext1_libintl=yes
18730 else case e in #(
18731 e) gt_cv_func_gnugettext1_libintl=no ;;
18732 esac
18733 fi
18734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18735 conftest$ac_exeext conftest.$ac_ext
18736 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18737 LIBS="$LIBS $LIBICONV"
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18740 #include <libintl.h>
18741 extern int _nl_msg_cat_cntr;
18742 extern
18743 #ifdef __cplusplus
18744 "C"
18745 #endif
18746 const char *_nl_expand_alias ();
18747 int
18748 main (void)
18749 {
18750 bindtextdomain ("", "");
18751 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
18752 ;
18753 return 0;
18754 }
18755 _ACEOF
18756 if ac_fn_c_try_link "$LINENO"
18757 then :
18758 LIBINTL="$LIBINTL $LIBICONV"
18759 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18760 gt_cv_func_gnugettext1_libintl=yes
18761
18762 fi
18763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18764 conftest$ac_exeext conftest.$ac_ext
18765 fi
18766 CPPFLAGS="$gt_save_CPPFLAGS"
18767 LIBS="$gt_save_LIBS" ;;
18768 esac
18769 fi
18770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18771 printf "%s\n" "$gt_cv_func_gnugettext1_libintl" >&6; }
18772 fi
18773
18774 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18775 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18776 && test "$PACKAGE" != gettext-runtime \
18777 && test "$PACKAGE" != gettext-tools; }; then
18778 gt_use_preinstalled_gnugettext=yes
18779 else
18780 LIBINTL=
18781 LTLIBINTL=
18782 INCINTL=
18783 fi
18784
18785
18786
18787 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18788 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18789
18790 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
18791
18792 else
18793 USE_NLS=no
18794 fi
18795 fi
18796
18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18798 printf %s "checking whether to use NLS... " >&6; }
18799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18800 printf "%s\n" "$USE_NLS" >&6; }
18801 if test "$USE_NLS" = "yes"; then
18802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18803 printf %s "checking where the gettext function comes from... " >&6; }
18804 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18805 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18806 gt_source="external libintl"
18807 else
18808 gt_source="libc"
18809 fi
18810 else
18811 gt_source="included intl directory"
18812 fi
18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18814 printf "%s\n" "$gt_source" >&6; }
18815 fi
18816
18817 if test "$USE_NLS" = "yes"; then
18818
18819 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18820 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18822 printf %s "checking how to link with libintl... " >&6; }
18823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18824 printf "%s\n" "$LIBINTL" >&6; }
18825
18826 for element in $INCINTL; do
18827 haveit=
18828 for x in $CPPFLAGS; do
18829
18830 acl_save_prefix="$prefix"
18831 prefix="$acl_final_prefix"
18832 acl_save_exec_prefix="$exec_prefix"
18833 exec_prefix="$acl_final_exec_prefix"
18834 eval x=\"$x\"
18835 exec_prefix="$acl_save_exec_prefix"
18836 prefix="$acl_save_prefix"
18837
18838 if test "X$x" = "X$element"; then
18839 haveit=yes
18840 break
18841 fi
18842 done
18843 if test -z "$haveit"; then
18844 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18845 fi
18846 done
18847
18848 fi
18849
18850
18851 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
18852
18853
18854 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
18855
18856 fi
18857
18858 POSUB=po
18859 fi
18860
18861
18862
18863 INTLLIBS="$LIBINTL"
18864
18865
18866
18867
18868
18869
18870 if test -d "$srcdir/po"
18871 then
18872 ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
18873 else
18874 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"
18875 fi
18876
18877 ac_fn_c_check_header_compile "$LINENO" "error.h" "ac_cv_header_error_h" "$ac_includes_default
18878 "
18879 if test "x$ac_cv_header_error_h" = xyes
18880 then :
18881 printf "%s\n" "#define HAVE_ERROR_H 1" >>confdefs.h
18882
18883 fi
18884
18885
18886 ac_fn_c_check_header_compile "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default
18887 "
18888 if test "x$ac_cv_header_stdio_ext_h" = xyes
18889 then :
18890 printf "%s\n" "#define HAVE_STDIO_EXT_H 1" >>confdefs.h
18891
18892 fi
18893
18894
18895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
18896 printf %s "checking for __progname... " >&6; }
18897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898 /* end confdefs.h. */
18899
18900 #include <stdio.h>
18901 #include <stdlib.h>
18902 extern char *__progname;
18903 int main(void) {
18904 const char *cp = __progname;
18905 printf("%s\n", cp);
18906 exit(0);
18907 }
18908
18909 _ACEOF
18910 if ac_fn_c_try_link "$LINENO"
18911 then :
18912
18913 printf "%s\n" "#define HAVE___PROGNAME 1" >>confdefs.h
18914
18915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18916 printf "%s\n" "yes" >&6; }
18917 else case e in #(
18918 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18919 printf "%s\n" "no" >&6; } ;;
18920 esac
18921 fi
18922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18923 conftest$ac_exeext conftest.$ac_ext
18924
18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
18926 printf %s "checking whether program_invocation_name is defined... " >&6; }
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h. */
18929 #include <errno.h>
18930 int
18931 main (void)
18932 {
18933 program_invocation_name = "test";
18934 ;
18935 return 0;
18936 }
18937 _ACEOF
18938 if ac_fn_c_try_compile "$LINENO"
18939 then :
18940
18941 printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
18942
18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18944 printf "%s\n" "yes" >&6; }
18945 else case e in #(
18946 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18947 printf "%s\n" "no" >&6; } ;;
18948 esac
18949 fi
18950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18951
18952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
18953 printf %s "checking whether program_invocation_short_name is defined... " >&6; }
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18956 #include <errno.h>
18957 int
18958 main (void)
18959 {
18960 program_invocation_short_name = "test";
18961 ;
18962 return 0;
18963 }
18964 _ACEOF
18965 if ac_fn_c_try_compile "$LINENO"
18966 then :
18967
18968 printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
18969
18970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18971 printf "%s\n" "yes" >&6; }
18972 else case e in #(
18973 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18974 printf "%s\n" "no" >&6; } ;;
18975 esac
18976 fi
18977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18978
18979
18980 # Check whether --enable-watch8bit was given.
18981 if test ${enable_watch8bit+y}
18982 then :
18983 enableval=$enable_watch8bit;
18984 else case e in #(
18985 e) enable_watch8bit=no
18986 ;;
18987 esac
18988 fi
18989
18990 if test "$enable_watch8bit" = "yes"; then
18991
18992 printf "%s\n" "#define WITH_WATCH8BIT 1" >>confdefs.h
18993
18994 fi
18995
18996
18997 # Check whether --enable-colorwatch was given.
18998 if test ${enable_colorwatch+y}
18999 then :
19000 enableval=$enable_colorwatch; enable_colorwatch=$enableval
19001 else case e in #(
19002 e) enable_colorwatch=no
19003 ;;
19004 esac
19005 fi
19006
19007 if test "$enable_colorwatch" = "yes"; then
19008
19009 printf "%s\n" "#define WITH_COLORWATCH 1" >>confdefs.h
19010
19011 fi
19012
19013
19014
19015 # Check whether --enable-libselinux was given.
19016 if test ${enable_libselinux+y}
19017 then :
19018 enableval=$enable_libselinux; enable_libselinux=$enableval
19019 else case e in #(
19020 e) enable_libselinux=no
19021 ;;
19022 esac
19023 fi
19024
19025 if test "$enable_libselinux" = "yes"; then
19026
19027 printf "%s\n" "#define ENABLE_LIBSELINUX 1" >>confdefs.h
19028
19029 fi
19030
19031 # Enable hardened compile and link flags
19032 # Check whether --enable-harden_flags was given.
19033 if test ${enable_harden_flags+y}
19034 then :
19035 enableval=$enable_harden_flags; enable_harden_flags=$enableval
19036 else case e in #(
19037 e) enable_harden_flags="no" ;;
19038 esac
19039 fi
19040
19041
19042 # Check that harden CFLAGS and LDFLAGS will compile
19043 if test "$enable_harden_flags" = "yes"
19044 then :
19045 HARDEN_CFLAGS="-g -O2 -fPIE -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection"
19046 HARDEN_LDFLAGS="-fPIE -pie -Wl,-z,relro -Wl,-z,now"
19047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler supports harden flags" >&5
19048 printf %s "checking compiler supports harden flags... " >&6; }
19049 save_harden_cflags="$CFLAGS"
19050 CFLAGS="$CFLAGS $HARDEN_CFLAGS"
19051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052 /* end confdefs.h. */
19053
19054 int
19055 main (void)
19056 {
19057
19058 ;
19059 return 0;
19060 }
19061 _ACEOF
19062 if ac_fn_c_try_compile "$LINENO"
19063 then :
19064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19065 printf "%s\n" "yes" >&6; }
19066 else case e in #(
19067 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19068 printf "%s\n" "no" >&6; }; HARDEN_CFLAGS=''
19069 ;;
19070 esac
19071 fi
19072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19073 CFLAGS="$save_harden_cflags"
19074 else case e in #(
19075 e) HARDEN_CFLAGS=""
19076 HARDEN_LDFLAGS="" ;;
19077 esac
19078 fi
19079
19080
19081
19082 # Optional packages - AC_ARG_WITH
19083
19084 # Check whether --with-ncurses was given.
19085 if test ${with_ncurses+y}
19086 then :
19087 withval=$with_ncurses; with_ncurses=$withval
19088 else case e in #(
19089 e) with_ncurses=yes
19090 ;;
19091 esac
19092 fi
19093
19094 if test "x$with_ncurses" = xno; then
19095 if false; then
19096 WITH_NCURSES_TRUE=
19097 WITH_NCURSES_FALSE='#'
19098 else
19099 WITH_NCURSES_TRUE='#'
19100 WITH_NCURSES_FALSE=
19101 fi
19102
19103 if test "x$enable_watch8bit" = "xyes"
19104 then :
19105 as_fn_error $? "Cannot have both --enable-watch8bit and --without-ncurses" "$LINENO" 5
19106 fi
19107 else
19108 if true; then
19109 WITH_NCURSES_TRUE=
19110 WITH_NCURSES_FALSE='#'
19111 else
19112 WITH_NCURSES_TRUE='#'
19113 WITH_NCURSES_FALSE=
19114 fi
19115
19116
19117 pkg_failed=no
19118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
19119 printf %s "checking for ncursesw... " >&6; }
19120
19121 if test -n "$NCURSES_CFLAGS"; then
19122 pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
19123 elif test -n "$PKG_CONFIG"; then
19124 if test -n "$PKG_CONFIG" && \
19125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
19126 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
19127 ac_status=$?
19128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19129 test $ac_status = 0; }; then
19130 pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
19131 test "x$?" != "x0" && pkg_failed=yes
19132 else
19133 pkg_failed=yes
19134 fi
19135 else
19136 pkg_failed=untried
19137 fi
19138 if test -n "$NCURSES_LIBS"; then
19139 pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
19140 elif test -n "$PKG_CONFIG"; then
19141 if test -n "$PKG_CONFIG" && \
19142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
19143 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
19144 ac_status=$?
19145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19146 test $ac_status = 0; }; then
19147 pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
19148 test "x$?" != "x0" && pkg_failed=yes
19149 else
19150 pkg_failed=yes
19151 fi
19152 else
19153 pkg_failed=untried
19154 fi
19155
19156
19157
19158 if test $pkg_failed = yes; then
19159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19160 printf "%s\n" "no" >&6; }
19161
19162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19163 _pkg_short_errors_supported=yes
19164 else
19165 _pkg_short_errors_supported=no
19166 fi
19167 if test $_pkg_short_errors_supported = yes; then
19168 NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
19169 else
19170 NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
19171 fi
19172 # Put the nasty error message in config.log where it belongs
19173 echo "$NCURSES_PKG_ERRORS" >&5
19174
19175
19176 if test "x$enable_watch8bit" = "xyes"
19177 then :
19178 as_fn_error $? "Cannot find ncurses wide library ncursesw with --enable-watch8bit" "$LINENO" 5
19179 fi
19180
19181 pkg_failed=no
19182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
19183 printf %s "checking for ncurses... " >&6; }
19184
19185 if test -n "$NCURSES_CFLAGS"; then
19186 pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
19187 elif test -n "$PKG_CONFIG"; then
19188 if test -n "$PKG_CONFIG" && \
19189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
19190 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
19191 ac_status=$?
19192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19193 test $ac_status = 0; }; then
19194 pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
19195 test "x$?" != "x0" && pkg_failed=yes
19196 else
19197 pkg_failed=yes
19198 fi
19199 else
19200 pkg_failed=untried
19201 fi
19202 if test -n "$NCURSES_LIBS"; then
19203 pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
19204 elif test -n "$PKG_CONFIG"; then
19205 if test -n "$PKG_CONFIG" && \
19206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
19207 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
19208 ac_status=$?
19209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19210 test $ac_status = 0; }; then
19211 pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
19212 test "x$?" != "x0" && pkg_failed=yes
19213 else
19214 pkg_failed=yes
19215 fi
19216 else
19217 pkg_failed=untried
19218 fi
19219
19220
19221
19222 if test $pkg_failed = yes; then
19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19224 printf "%s\n" "no" >&6; }
19225
19226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19227 _pkg_short_errors_supported=yes
19228 else
19229 _pkg_short_errors_supported=no
19230 fi
19231 if test $_pkg_short_errors_supported = yes; then
19232 NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
19233 else
19234 NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
19235 fi
19236 # Put the nasty error message in config.log where it belongs
19237 echo "$NCURSES_PKG_ERRORS" >&5
19238
19239 as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
19240
19241 elif test $pkg_failed = untried; then
19242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19243 printf "%s\n" "no" >&6; }
19244 as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
19245
19246 else
19247 NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
19248 NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
19249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19250 printf "%s\n" "yes" >&6; }
19251
19252 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
19253
19254 fi
19255
19256
19257 elif test $pkg_failed = untried; then
19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259 printf "%s\n" "no" >&6; }
19260
19261 if test "x$enable_watch8bit" = "xyes"
19262 then :
19263 as_fn_error $? "Cannot find ncurses wide library ncursesw with --enable-watch8bit" "$LINENO" 5
19264 fi
19265
19266 pkg_failed=no
19267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
19268 printf %s "checking for ncurses... " >&6; }
19269
19270 if test -n "$NCURSES_CFLAGS"; then
19271 pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
19272 elif test -n "$PKG_CONFIG"; then
19273 if test -n "$PKG_CONFIG" && \
19274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
19275 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
19276 ac_status=$?
19277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19278 test $ac_status = 0; }; then
19279 pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
19280 test "x$?" != "x0" && pkg_failed=yes
19281 else
19282 pkg_failed=yes
19283 fi
19284 else
19285 pkg_failed=untried
19286 fi
19287 if test -n "$NCURSES_LIBS"; then
19288 pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
19289 elif test -n "$PKG_CONFIG"; then
19290 if test -n "$PKG_CONFIG" && \
19291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
19292 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
19293 ac_status=$?
19294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19295 test $ac_status = 0; }; then
19296 pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
19297 test "x$?" != "x0" && pkg_failed=yes
19298 else
19299 pkg_failed=yes
19300 fi
19301 else
19302 pkg_failed=untried
19303 fi
19304
19305
19306
19307 if test $pkg_failed = yes; then
19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19309 printf "%s\n" "no" >&6; }
19310
19311 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19312 _pkg_short_errors_supported=yes
19313 else
19314 _pkg_short_errors_supported=no
19315 fi
19316 if test $_pkg_short_errors_supported = yes; then
19317 NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
19318 else
19319 NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
19320 fi
19321 # Put the nasty error message in config.log where it belongs
19322 echo "$NCURSES_PKG_ERRORS" >&5
19323
19324 as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
19325
19326 elif test $pkg_failed = untried; then
19327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19328 printf "%s\n" "no" >&6; }
19329 as_fn_error $? "ncurses support missing/incomplete (for partial build use --without-ncurses)" "$LINENO" 5
19330
19331 else
19332 NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
19333 NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
19334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19335 printf "%s\n" "yes" >&6; }
19336
19337 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
19338
19339 fi
19340
19341
19342 else
19343 NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
19344 NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
19345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19346 printf "%s\n" "yes" >&6; }
19347
19348 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
19349
19350 fi
19351 fi
19352 # PKG_CHECK_MODULES([NCURSES], [ncurses], [], [
19353 # AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
19354 # AC_CHECK_HEADERS(curses.h ncurses.h term.h, [], [have_ncurses=no], AC_INCLUDES_DEFAULT)
19355 # if test "x$have_ncurses" = xno; then
19356 # AC_MSG_ERROR([ncurses support missing/incomplete (for partial build use --without-ncurses)])
19357 # fi
19358 # NCURSES_LIBS="-lncurses"
19359 # ])
19360 # AM_CONDITIONAL(WITH_NCURSES, true)
19361 # if test "$enable_watch8bit" = yes; then
19362 # PKG_CHECK_MODULES([NCURSESW], [ncursesw], [WATCH_NCURSES_LIBS="$NCURSESW_LIBS"], [
19363 # AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw], [
19364 # AC_CHECK_LIB([ncurses], [addwstr], [WATCH_NCURSES_LIBS=-lncurses], [
19365 # AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit])
19366 # ])
19367 # ])
19368 # ])
19369 # else
19370 # WATCH_NCURSES_LIBS="$NCURSES_LIBS"
19371 # fi
19372
19373
19374 # Check whether --with-systemd was given.
19375 if test ${with_systemd+y}
19376 then :
19377 withval=$with_systemd; with_systemd=$withval
19378 else case e in #(
19379 e) with_systemd=no
19380 ;;
19381 esac
19382 fi
19383
19384 if test "x$with_systemd" != "xno"
19385 then :
19386
19387
19388 pkg_failed=no
19389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
19390 printf %s "checking for libsystemd... " >&6; }
19391
19392 if test -n "$SYSTEMD_CFLAGS"; then
19393 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
19394 elif test -n "$PKG_CONFIG"; then
19395 if test -n "$PKG_CONFIG" && \
19396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
19397 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
19398 ac_status=$?
19399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19400 test $ac_status = 0; }; then
19401 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
19402 test "x$?" != "x0" && pkg_failed=yes
19403 else
19404 pkg_failed=yes
19405 fi
19406 else
19407 pkg_failed=untried
19408 fi
19409 if test -n "$SYSTEMD_LIBS"; then
19410 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
19411 elif test -n "$PKG_CONFIG"; then
19412 if test -n "$PKG_CONFIG" && \
19413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
19414 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
19415 ac_status=$?
19416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19417 test $ac_status = 0; }; then
19418 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
19419 test "x$?" != "x0" && pkg_failed=yes
19420 else
19421 pkg_failed=yes
19422 fi
19423 else
19424 pkg_failed=untried
19425 fi
19426
19427
19428
19429 if test $pkg_failed = yes; then
19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431 printf "%s\n" "no" >&6; }
19432
19433 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19434 _pkg_short_errors_supported=yes
19435 else
19436 _pkg_short_errors_supported=no
19437 fi
19438 if test $_pkg_short_errors_supported = yes; then
19439 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
19440 else
19441 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
19442 fi
19443 # Put the nasty error message in config.log where it belongs
19444 echo "$SYSTEMD_PKG_ERRORS" >&5
19445
19446
19447 pkg_failed=no
19448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-login" >&5
19449 printf %s "checking for libsystemd-login... " >&6; }
19450
19451 if test -n "$SYSTEMD_CFLAGS"; then
19452 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
19453 elif test -n "$PKG_CONFIG"; then
19454 if test -n "$PKG_CONFIG" && \
19455 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login\""; } >&5
19456 ($PKG_CONFIG --exists --print-errors "libsystemd-login") 2>&5
19457 ac_status=$?
19458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19459 test $ac_status = 0; }; then
19460 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-login" 2>/dev/null`
19461 test "x$?" != "x0" && pkg_failed=yes
19462 else
19463 pkg_failed=yes
19464 fi
19465 else
19466 pkg_failed=untried
19467 fi
19468 if test -n "$SYSTEMD_LIBS"; then
19469 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
19470 elif test -n "$PKG_CONFIG"; then
19471 if test -n "$PKG_CONFIG" && \
19472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login\""; } >&5
19473 ($PKG_CONFIG --exists --print-errors "libsystemd-login") 2>&5
19474 ac_status=$?
19475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19476 test $ac_status = 0; }; then
19477 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-login" 2>/dev/null`
19478 test "x$?" != "x0" && pkg_failed=yes
19479 else
19480 pkg_failed=yes
19481 fi
19482 else
19483 pkg_failed=untried
19484 fi
19485
19486
19487
19488 if test $pkg_failed = yes; then
19489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19490 printf "%s\n" "no" >&6; }
19491
19492 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19493 _pkg_short_errors_supported=yes
19494 else
19495 _pkg_short_errors_supported=no
19496 fi
19497 if test $_pkg_short_errors_supported = yes; then
19498 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-login" 2>&1`
19499 else
19500 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-login" 2>&1`
19501 fi
19502 # Put the nasty error message in config.log where it belongs
19503 echo "$SYSTEMD_PKG_ERRORS" >&5
19504
19505 as_fn_error $? "Package requirements (libsystemd-login) were not met:
19506
19507 $SYSTEMD_PKG_ERRORS
19508
19509 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19510 installed software in a non-standard prefix.
19511
19512 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
19513 and SYSTEMD_LIBS to avoid the need to call pkg-config.
19514 See the pkg-config man page for more details." "$LINENO" 5
19515 elif test $pkg_failed = untried; then
19516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19517 printf "%s\n" "no" >&6; }
19518 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19519 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19520 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19521 is in your PATH or set the PKG_CONFIG environment variable to the full
19522 path to pkg-config.
19523
19524 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
19525 and SYSTEMD_LIBS to avoid the need to call pkg-config.
19526 See the pkg-config man page for more details.
19527
19528 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19529 See 'config.log' for more details" "$LINENO" 5; }
19530 else
19531 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
19532 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
19533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19534 printf "%s\n" "yes" >&6; }
19535
19536 fi
19537
19538 elif test $pkg_failed = untried; then
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19540 printf "%s\n" "no" >&6; }
19541
19542 pkg_failed=no
19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-login" >&5
19544 printf %s "checking for libsystemd-login... " >&6; }
19545
19546 if test -n "$SYSTEMD_CFLAGS"; then
19547 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
19548 elif test -n "$PKG_CONFIG"; then
19549 if test -n "$PKG_CONFIG" && \
19550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login\""; } >&5
19551 ($PKG_CONFIG --exists --print-errors "libsystemd-login") 2>&5
19552 ac_status=$?
19553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19554 test $ac_status = 0; }; then
19555 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-login" 2>/dev/null`
19556 test "x$?" != "x0" && pkg_failed=yes
19557 else
19558 pkg_failed=yes
19559 fi
19560 else
19561 pkg_failed=untried
19562 fi
19563 if test -n "$SYSTEMD_LIBS"; then
19564 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
19565 elif test -n "$PKG_CONFIG"; then
19566 if test -n "$PKG_CONFIG" && \
19567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login\""; } >&5
19568 ($PKG_CONFIG --exists --print-errors "libsystemd-login") 2>&5
19569 ac_status=$?
19570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19571 test $ac_status = 0; }; then
19572 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-login" 2>/dev/null`
19573 test "x$?" != "x0" && pkg_failed=yes
19574 else
19575 pkg_failed=yes
19576 fi
19577 else
19578 pkg_failed=untried
19579 fi
19580
19581
19582
19583 if test $pkg_failed = yes; then
19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19585 printf "%s\n" "no" >&6; }
19586
19587 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19588 _pkg_short_errors_supported=yes
19589 else
19590 _pkg_short_errors_supported=no
19591 fi
19592 if test $_pkg_short_errors_supported = yes; then
19593 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-login" 2>&1`
19594 else
19595 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-login" 2>&1`
19596 fi
19597 # Put the nasty error message in config.log where it belongs
19598 echo "$SYSTEMD_PKG_ERRORS" >&5
19599
19600 as_fn_error $? "Package requirements (libsystemd-login) were not met:
19601
19602 $SYSTEMD_PKG_ERRORS
19603
19604 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19605 installed software in a non-standard prefix.
19606
19607 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
19608 and SYSTEMD_LIBS to avoid the need to call pkg-config.
19609 See the pkg-config man page for more details." "$LINENO" 5
19610 elif test $pkg_failed = untried; then
19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19612 printf "%s\n" "no" >&6; }
19613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19614 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19615 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19616 is in your PATH or set the PKG_CONFIG environment variable to the full
19617 path to pkg-config.
19618
19619 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
19620 and SYSTEMD_LIBS to avoid the need to call pkg-config.
19621 See the pkg-config man page for more details.
19622
19623 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19624 See 'config.log' for more details" "$LINENO" 5; }
19625 else
19626 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
19627 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
19628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19629 printf "%s\n" "yes" >&6; }
19630
19631 fi
19632
19633 else
19634 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
19635 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
19636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19637 printf "%s\n" "yes" >&6; }
19638
19639 fi
19640
19641 printf "%s\n" "#define WITH_SYSTEMD 1" >>confdefs.h
19642
19643
19644 # The functions needed to replace utmp with logind are only available
19645 # with systemd v254 or later.
19646 old_LIBS="$LIBS"
19647 LIBS="$LIBS $SYSTEMD_LIBS"
19648 ac_fn_c_check_func "$LINENO" "sd_session_get_leader" "ac_cv_func_sd_session_get_leader"
19649 if test "x$ac_cv_func_sd_session_get_leader" = xyes
19650 then :
19651 printf "%s\n" "#define HAVE_SD_SESSION_GET_LEADER 1" >>confdefs.h
19652
19653 fi
19654
19655 LIBS="$old_LIBS"
19656
19657 fi
19658 if test x$with_systemd != xno; then
19659 WITH_SYSTEMD_TRUE=
19660 WITH_SYSTEMD_FALSE='#'
19661 else
19662 WITH_SYSTEMD_TRUE='#'
19663 WITH_SYSTEMD_FALSE=
19664 fi
19665
19666
19667
19668 # Check whether --with-elogind was given.
19669 if test ${with_elogind+y}
19670 then :
19671 withval=$with_elogind; with_elogind=$withval
19672 else case e in #(
19673 e) with_elogind=no
19674 ;;
19675 esac
19676 fi
19677
19678 # Do not allow elogind if systemd is wanted and found
19679 if test "x$with_systemd" != "xno"
19680 then :
19681 with_elogind=no
19682 fi
19683
19684 if test "x$with_elogind" != "xno"
19685 then :
19686
19687
19688 pkg_failed=no
19689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libelogind" >&5
19690 printf %s "checking for libelogind... " >&6; }
19691
19692 if test -n "$ELOGIND_CFLAGS"; then
19693 pkg_cv_ELOGIND_CFLAGS="$ELOGIND_CFLAGS"
19694 elif test -n "$PKG_CONFIG"; then
19695 if test -n "$PKG_CONFIG" && \
19696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5
19697 ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5
19698 ac_status=$?
19699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19700 test $ac_status = 0; }; then
19701 pkg_cv_ELOGIND_CFLAGS=`$PKG_CONFIG --cflags "libelogind" 2>/dev/null`
19702 test "x$?" != "x0" && pkg_failed=yes
19703 else
19704 pkg_failed=yes
19705 fi
19706 else
19707 pkg_failed=untried
19708 fi
19709 if test -n "$ELOGIND_LIBS"; then
19710 pkg_cv_ELOGIND_LIBS="$ELOGIND_LIBS"
19711 elif test -n "$PKG_CONFIG"; then
19712 if test -n "$PKG_CONFIG" && \
19713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5
19714 ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5
19715 ac_status=$?
19716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19717 test $ac_status = 0; }; then
19718 pkg_cv_ELOGIND_LIBS=`$PKG_CONFIG --libs "libelogind" 2>/dev/null`
19719 test "x$?" != "x0" && pkg_failed=yes
19720 else
19721 pkg_failed=yes
19722 fi
19723 else
19724 pkg_failed=untried
19725 fi
19726
19727
19728
19729 if test $pkg_failed = yes; then
19730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19731 printf "%s\n" "no" >&6; }
19732
19733 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19734 _pkg_short_errors_supported=yes
19735 else
19736 _pkg_short_errors_supported=no
19737 fi
19738 if test $_pkg_short_errors_supported = yes; then
19739 ELOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelogind" 2>&1`
19740 else
19741 ELOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelogind" 2>&1`
19742 fi
19743 # Put the nasty error message in config.log where it belongs
19744 echo "$ELOGIND_PKG_ERRORS" >&5
19745
19746 as_fn_error $? "Package requirements (libelogind) were not met:
19747
19748 $ELOGIND_PKG_ERRORS
19749
19750 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19751 installed software in a non-standard prefix.
19752
19753 Alternatively, you may set the environment variables ELOGIND_CFLAGS
19754 and ELOGIND_LIBS to avoid the need to call pkg-config.
19755 See the pkg-config man page for more details." "$LINENO" 5
19756 elif test $pkg_failed = untried; then
19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19758 printf "%s\n" "no" >&6; }
19759 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19760 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19761 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19762 is in your PATH or set the PKG_CONFIG environment variable to the full
19763 path to pkg-config.
19764
19765 Alternatively, you may set the environment variables ELOGIND_CFLAGS
19766 and ELOGIND_LIBS to avoid the need to call pkg-config.
19767 See the pkg-config man page for more details.
19768
19769 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19770 See 'config.log' for more details" "$LINENO" 5; }
19771 else
19772 ELOGIND_CFLAGS=$pkg_cv_ELOGIND_CFLAGS
19773 ELOGIND_LIBS=$pkg_cv_ELOGIND_LIBS
19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19775 printf "%s\n" "yes" >&6; }
19776
19777 fi
19778
19779 printf "%s\n" "#define WITH_ELOGIND 1" >>confdefs.h
19780
19781
19782 fi
19783 if test x$with_elogind != xno; then
19784 WITH_ELOGIND_TRUE=
19785 WITH_ELOGIND_FALSE='#'
19786 else
19787 WITH_ELOGIND_TRUE='#'
19788 WITH_ELOGIND_FALSE=
19789 fi
19790
19791
19792 # AC_ARG_ENABLEs
19793 # Check whether --enable-pidof was given.
19794 if test ${enable_pidof+y}
19795 then :
19796 enableval=$enable_pidof; enable_pidof=$enableval
19797 else case e in #(
19798 e) enable_pidof=yes
19799 ;;
19800 esac
19801 fi
19802
19803 if test "x$enable_pidof" = xyes; then
19804 BUILD_PIDOF_TRUE=
19805 BUILD_PIDOF_FALSE='#'
19806 else
19807 BUILD_PIDOF_TRUE='#'
19808 BUILD_PIDOF_FALSE=
19809 fi
19810
19811
19812 # If pidwait is enabled, we need either pidfd_open() or __NR_pidfd_open need to be defined
19813 # Cannot use AC_CHECK_FUNC as it (incorrectly) passes with pidfd_open missing
19814 # Check whether --enable-pidwait was given.
19815 if test ${enable_pidwait+y}
19816 then :
19817 enableval=$enable_pidwait; enable_pidwait=$enableval
19818 else case e in #(
19819 e) enable_pidwait=yes
19820 ;;
19821 esac
19822 fi
19823
19824
19825 if test "x$enable_pidwait" = xyes
19826 then :
19827
19828
19829 printf "%s\n" "#define ENABLE_PIDWAIT 1" >>confdefs.h
19830
19831
19832 fi
19833 if test "x$enable_pidwait" = xyes; then
19834 BUILD_PIDWAIT_TRUE=
19835 BUILD_PIDWAIT_FALSE='#'
19836 else
19837 BUILD_PIDWAIT_TRUE='#'
19838 BUILD_PIDWAIT_FALSE=
19839 fi
19840
19841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pidfd_open()" >&5
19842 printf %s "checking for pidfd_open()... " >&6; }
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h. */
19845 #include <sys/pidfd.h>
19846 int
19847 main (void)
19848 {
19849 pidfd_open(1,1)
19850 ;
19851 return 0;
19852 }
19853 _ACEOF
19854 if ac_fn_c_try_link "$LINENO"
19855 then :
19856 have_pidfd_open=yes;
19857 printf "%s\n" "#define HAVE_PIDFD_OPEN 1" >>confdefs.h
19858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19859 printf "%s\n" "yes" >&6; }
19860 else case e in #(
19861 e) have_pidfd_open=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862 printf "%s\n" "no" >&6; }
19863 ;;
19864 esac
19865 fi
19866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19867 conftest$ac_exeext conftest.$ac_ext
19868
19869 if test "x$enable_pidwait" = xyes -a "x$have_pidfd_open" = xno
19870 then :
19871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __NR_pidfd_open" >&5
19872 printf %s "checking for __NR_pidfd_open... " >&6; }
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19875
19876 #include <sys/syscall.h>
19877 #ifndef __NR_pidfd_open
19878 #warning __NR_pidfd_open not defined; using our definition
19879 #endif
19880
19881 _ACEOF
19882 if ac_fn_c_try_compile "$LINENO"
19883 then :
19884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19885 printf "%s\n" "yes" >&6; }
19886 else case e in #(
19887 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19888 printf "%s\n" "no" >&6; }
19889 as_fn_error $? "Neither pidfd_open or __NR_pidfd_open found. Disable pidwait with configure option --disable-pidwait" "$LINENO" 5
19890 ;;
19891 esac
19892 fi
19893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19894
19895 fi
19896
19897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for process_mrelease()" >&5
19898 printf %s "checking for process_mrelease()... " >&6; }
19899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19900 /* end confdefs.h. */
19901 #include <sys/mman.h>
19902 int
19903 main (void)
19904 {
19905 return process_mrelease(1, 0);
19906 ;
19907 return 0;
19908 }
19909 _ACEOF
19910 if ac_fn_c_try_link "$LINENO"
19911 then :
19912 have_process_mrelease=yes
19913
19914 printf "%s\n" "#define HAVE_PROCESS_MRELEASE 1" >>confdefs.h
19915
19916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19917 printf "%s\n" "yes" >&6; }
19918 else case e in #(
19919 e) have_process_mrelease=no
19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19921 printf "%s\n" "no" >&6; } ;;
19922 esac
19923 fi
19924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19925 conftest$ac_exeext conftest.$ac_ext
19926
19927 # Check whether --enable-kill was given.
19928 if test ${enable_kill+y}
19929 then :
19930 enableval=$enable_kill; enable_kill=$enableval
19931 else case e in #(
19932 e) enable_kill=yes
19933 ;;
19934 esac
19935 fi
19936
19937 if test "x$enable_kill" = xyes; then
19938 BUILD_KILL_TRUE=
19939 BUILD_KILL_FALSE='#'
19940 else
19941 BUILD_KILL_TRUE='#'
19942 BUILD_KILL_FALSE=
19943 fi
19944
19945 # Check whether --enable-w was given.
19946 if test ${enable_w+y}
19947 then :
19948 enableval=$enable_w; enable_w=$enableval
19949 else case e in #(
19950 e) enable_w=yes
19951 ;;
19952 esac
19953 fi
19954
19955 if test "x$enable_w" = xyes; then
19956 BUILD_W_TRUE=
19957 BUILD_W_FALSE='#'
19958 else
19959 BUILD_W_TRUE='#'
19960 BUILD_W_FALSE=
19961 fi
19962
19963
19964 if test "x$host_os" = xlinux-gnu; then
19965 LINUX_TRUE=
19966 LINUX_FALSE='#'
19967 else
19968 LINUX_TRUE='#'
19969 LINUX_FALSE=
19970 fi
19971
19972 if test "x$host_os" = xcygwin; then
19973 CYGWIN_TRUE=
19974 CYGWIN_FALSE='#'
19975 else
19976 CYGWIN_TRUE='#'
19977 CYGWIN_FALSE=
19978 fi
19979
19980
19981 # Check whether --enable-skill was given.
19982 if test ${enable_skill+y}
19983 then :
19984 enableval=$enable_skill; enable_skill=$enableval
19985 else case e in #(
19986 e) enable_skill=no
19987 ;;
19988 esac
19989 fi
19990
19991 if test "x$enable_skill" = xyes; then
19992 BUILD_SKILL_TRUE=
19993 BUILD_SKILL_FALSE='#'
19994 else
19995 BUILD_SKILL_TRUE='#'
19996 BUILD_SKILL_FALSE=
19997 fi
19998
19999
20000 # Check whether --enable-examples was given.
20001 if test ${enable_examples+y}
20002 then :
20003 enableval=$enable_examples; enable_examples=$enableval
20004 else case e in #(
20005 e) enable_examples=no
20006 ;;
20007 esac
20008 fi
20009
20010 if test "x$enable_examples" = xyes; then
20011 EXAMPLE_FILES_TRUE=
20012 EXAMPLE_FILES_FALSE='#'
20013 else
20014 EXAMPLE_FILES_TRUE='#'
20015 EXAMPLE_FILES_FALSE=
20016 fi
20017
20018
20019 # Check whether --enable-sigwinch was given.
20020 if test ${enable_sigwinch+y}
20021 then :
20022 enableval=$enable_sigwinch; enable_sigwinch=$enableval
20023 else case e in #(
20024 e) enable_sigwinch=no
20025 ;;
20026 esac
20027 fi
20028
20029 if test "x$enable_sigwinch" = xyes; then
20030
20031 printf "%s\n" "#define SIGNALS_LESS 1" >>confdefs.h
20032
20033 fi
20034
20035 # Check whether --enable-wide-percent was given.
20036 if test ${enable_wide_percent+y}
20037 then :
20038 enableval=$enable_wide_percent; enable_wide_percent=$enableval
20039 else case e in #(
20040 e) enable_wide_percent=no
20041 ;;
20042 esac
20043 fi
20044
20045 if test "x$enable_wide_percent" = xyes; then
20046
20047 printf "%s\n" "#define BOOST_PERCNT 1" >>confdefs.h
20048
20049 fi
20050
20051 # Check whether --enable-wide-memory was given.
20052 if test ${enable_wide_memory+y}
20053 then :
20054 enableval=$enable_wide_memory; enable_wide_memory=$enableval
20055 else case e in #(
20056 e) enable_wide_memory=no
20057 ;;
20058 esac
20059 fi
20060
20061 if test "x$enable_wide_memory" = xyes; then
20062
20063 printf "%s\n" "#define BOOST_MEMORY 1" >>confdefs.h
20064
20065 fi
20066
20067 # Check whether --enable-modern-top was given.
20068 if test ${enable_modern_top+y}
20069 then :
20070 enableval=$enable_modern_top; enable_modern_top=$enableval
20071 else case e in #(
20072 e) enable_modern_top=yes
20073 ;;
20074 esac
20075 fi
20076
20077 if test "x$enable_modern_top" = xno; then
20078
20079 printf "%s\n" "#define ORIG_TOPDEFS 1" >>confdefs.h
20080
20081 fi
20082
20083 DL_LIB=
20084 # Check whether --enable-numa was given.
20085 if test ${enable_numa+y}
20086 then :
20087 enableval=$enable_numa; enable_numa=$enableval
20088 else case e in #(
20089 e) enable_numa=yes
20090 ;;
20091 esac
20092 fi
20093
20094 if test "x$enable_numa" = xno; then
20095
20096 printf "%s\n" "#define NUMA_DISABLE 1" >>confdefs.h
20097
20098 else
20099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20100 printf %s "checking for library containing dlopen... " >&6; }
20101 if test ${ac_cv_search_dlopen+y}
20102 then :
20103 printf %s "(cached) " >&6
20104 else case e in #(
20105 e) ac_func_search_save_LIBS=$LIBS
20106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107 /* end confdefs.h. */
20108
20109 /* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply.
20112 The 'extern "C"' is for builds by C++ compilers;
20113 although this is not generally supported in C code supporting it here
20114 has little cost and some practical benefit (sr 110532). */
20115 #ifdef __cplusplus
20116 extern "C"
20117 #endif
20118 char dlopen (void);
20119 int
20120 main (void)
20121 {
20122 return dlopen ();
20123 ;
20124 return 0;
20125 }
20126 _ACEOF
20127 for ac_lib in '' dl
20128 do
20129 if test -z "$ac_lib"; then
20130 ac_res="none required"
20131 else
20132 ac_res=-l$ac_lib
20133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20134 fi
20135 if ac_fn_c_try_link "$LINENO"
20136 then :
20137 ac_cv_search_dlopen=$ac_res
20138 fi
20139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20140 conftest$ac_exeext
20141 if test ${ac_cv_search_dlopen+y}
20142 then :
20143 break
20144 fi
20145 done
20146 if test ${ac_cv_search_dlopen+y}
20147 then :
20148
20149 else case e in #(
20150 e) ac_cv_search_dlopen=no ;;
20151 esac
20152 fi
20153 rm conftest.$ac_ext
20154 LIBS=$ac_func_search_save_LIBS ;;
20155 esac
20156 fi
20157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20158 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
20159 ac_res=$ac_cv_search_dlopen
20160 if test "$ac_res" != no
20161 then :
20162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20163
20164 else case e in #(
20165 e) as_fn_error $? "dynamic linking unavailable, circumvent with --disable-numa" "$LINENO" 5 ;;
20166 esac
20167 fi
20168
20169 if test "x$ac_cv_search_dlopen" != "xnone required"; then
20170 DL_LIB="$ac_cv_search_dlopen"
20171 fi
20172 fi
20173
20174
20175 # Check whether --enable-w-from was given.
20176 if test ${enable_w_from+y}
20177 then :
20178 enableval=$enable_w_from; enable_w_from=$enableval
20179 else case e in #(
20180 e) enable_w_from=no
20181 ;;
20182 esac
20183 fi
20184
20185 if test "x$enable_w_from" = xyes; then
20186
20187 printf "%s\n" "#define W_SHOWFROM 1" >>confdefs.h
20188
20189 fi
20190
20191 # Check whether --enable-whining was given.
20192 if test ${enable_whining+y}
20193 then :
20194 enableval=$enable_whining; enable_whining=$enableval
20195 else case e in #(
20196 e) enable_whining=yes
20197 ;;
20198 esac
20199 fi
20200
20201 if test "x$enable_whining" = xyes; then
20202
20203 printf "%s\n" "#define BUILD_WITH_WHINE 1" >>confdefs.h
20204
20205 fi
20206
20207 if test x"$DEJAGNU" = x
20208 then
20209 DEJAGNU="/dev/null"
20210 fi
20211
20212
20213 ac_fn_c_check_func "$LINENO" "__fpending" "ac_cv_func___fpending"
20214 if test "x$ac_cv_func___fpending" = xyes
20215 then :
20216 printf "%s\n" "#define HAVE___FPENDING 1" >>confdefs.h
20217
20218 fi
20219 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
20220 if test "x$ac_cv_func_alarm" = xyes
20221 then :
20222 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
20223
20224 fi
20225 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
20226 if test "x$ac_cv_func_atexit" = xyes
20227 then :
20228 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
20229
20230 fi
20231 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
20232 if test "x$ac_cv_func_dup2" = xyes
20233 then :
20234 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
20235
20236 fi
20237 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
20238 if test "x$ac_cv_func_clock_gettime" = xyes
20239 then :
20240 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
20241
20242 fi
20243 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
20244 if test "x$ac_cv_func_error" = xyes
20245 then :
20246 printf "%s\n" "#define HAVE_ERROR 1" >>confdefs.h
20247
20248 fi
20249 ac_fn_c_check_func "$LINENO" "error_at_line" "ac_cv_func_error_at_line"
20250 if test "x$ac_cv_func_error_at_line" = xyes
20251 then :
20252 printf "%s\n" "#define HAVE_ERROR_AT_LINE 1" >>confdefs.h
20253
20254 fi
20255 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
20256 if test "x$ac_cv_func_gethostname" = xyes
20257 then :
20258 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
20259
20260 fi
20261 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20262 if test "x$ac_cv_func_getpagesize" = xyes
20263 then :
20264 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
20265
20266 fi
20267 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20268 if test "x$ac_cv_func_gettimeofday" = xyes
20269 then :
20270 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20271
20272 fi
20273 ac_fn_c_check_func "$LINENO" "iswprint" "ac_cv_func_iswprint"
20274 if test "x$ac_cv_func_iswprint" = xyes
20275 then :
20276 printf "%s\n" "#define HAVE_ISWPRINT 1" >>confdefs.h
20277
20278 fi
20279 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
20280 if test "x$ac_cv_func_memchr" = xyes
20281 then :
20282 printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
20283
20284 fi
20285 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20286 if test "x$ac_cv_func_memmove" = xyes
20287 then :
20288 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
20289
20290 fi
20291 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
20292 if test "x$ac_cv_func_memset" = xyes
20293 then :
20294 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
20295
20296 fi
20297 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
20298 if test "x$ac_cv_func_mkdir" = xyes
20299 then :
20300 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
20301
20302 fi
20303 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
20304 if test "x$ac_cv_func_nl_langinfo" = xyes
20305 then :
20306 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
20307
20308 fi
20309 ac_fn_c_check_func "$LINENO" "pidfd_send_signal" "ac_cv_func_pidfd_send_signal"
20310 if test "x$ac_cv_func_pidfd_send_signal" = xyes
20311 then :
20312 printf "%s\n" "#define HAVE_PIDFD_SEND_SIGNAL 1" >>confdefs.h
20313
20314 fi
20315 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
20316 if test "x$ac_cv_func_putenv" = xyes
20317 then :
20318 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
20319
20320 fi
20321 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
20322 if test "x$ac_cv_func_regcomp" = xyes
20323 then :
20324 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
20325
20326 fi
20327 ac_fn_c_check_func "$LINENO" "rpmatch" "ac_cv_func_rpmatch"
20328 if test "x$ac_cv_func_rpmatch" = xyes
20329 then :
20330 printf "%s\n" "#define HAVE_RPMATCH 1" >>confdefs.h
20331
20332 fi
20333 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
20334 if test "x$ac_cv_func_select" = xyes
20335 then :
20336 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
20337
20338 fi
20339 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
20340 if test "x$ac_cv_func_setlocale" = xyes
20341 then :
20342 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
20343
20344 fi
20345 ac_fn_c_check_func "$LINENO" "sigabbrev_np" "ac_cv_func_sigabbrev_np"
20346 if test "x$ac_cv_func_sigabbrev_np" = xyes
20347 then :
20348 printf "%s\n" "#define HAVE_SIGABBREV_NP 1" >>confdefs.h
20349
20350 fi
20351 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20352 if test "x$ac_cv_func_strcasecmp" = xyes
20353 then :
20354 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
20355
20356 fi
20357 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
20358 if test "x$ac_cv_func_strchr" = xyes
20359 then :
20360 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
20361
20362 fi
20363 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
20364 if test "x$ac_cv_func_strcspn" = xyes
20365 then :
20366 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
20367
20368 fi
20369 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
20370 if test "x$ac_cv_func_strdup" = xyes
20371 then :
20372 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
20373
20374 fi
20375 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
20376 if test "x$ac_cv_func_strerror" = xyes
20377 then :
20378 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
20379
20380 fi
20381 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
20382 if test "x$ac_cv_func_strncasecmp" = xyes
20383 then :
20384 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
20385
20386 fi
20387 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
20388 if test "x$ac_cv_func_strndup" = xyes
20389 then :
20390 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
20391
20392 fi
20393 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
20394 if test "x$ac_cv_func_strpbrk" = xyes
20395 then :
20396 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
20397
20398 fi
20399 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
20400 if test "x$ac_cv_func_strrchr" = xyes
20401 then :
20402 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
20403
20404 fi
20405 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
20406 if test "x$ac_cv_func_strspn" = xyes
20407 then :
20408 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
20409
20410 fi
20411 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
20412 if test "x$ac_cv_func_strstr" = xyes
20413 then :
20414 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
20415
20416 fi
20417 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
20418 if test "x$ac_cv_func_strtol" = xyes
20419 then :
20420 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
20421
20422 fi
20423 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
20424 if test "x$ac_cv_func_strtoul" = xyes
20425 then :
20426 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
20427
20428 fi
20429 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
20430 if test "x$ac_cv_func_strverscmp" = xyes
20431 then :
20432 printf "%s\n" "#define HAVE_STRVERSCMP 1" >>confdefs.h
20433
20434 fi
20435 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
20436 if test "x$ac_cv_func_utmpname" = xyes
20437 then :
20438 printf "%s\n" "#define HAVE_UTMPNAME 1" >>confdefs.h
20439
20440 fi
20441 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
20442 if test "x$ac_cv_func_wcwidth" = xyes
20443 then :
20444 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
20445
20446 fi
20447
20448
20449 ac_config_files="$ac_config_files Makefile local/Makefile po-man/Makefile po/Makefile.in library/libproc2.pc testsuite/Makefile"
20450
20451 cat >confcache <<\_ACEOF
20452 # This file is a shell script that caches the results of configure
20453 # tests run on this system so they can be shared between configure
20454 # scripts and configure runs, see configure's option --config-cache.
20455 # It is not useful on other systems. If it contains results you don't
20456 # want to keep, you may remove or edit it.
20457 #
20458 # config.status only pays attention to the cache file if you give it
20459 # the --recheck option to rerun configure.
20460 #
20461 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20462 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20463 # following values.
20464
20465 _ACEOF
20466
20467 # The following way of writing the cache mishandles newlines in values,
20468 # but we know of no workaround that is simple, portable, and efficient.
20469 # So, we kill variables containing newlines.
20470 # Ultrix sh set writes to stderr and can't be redirected directly,
20471 # and sets the high bit in the cache file unless we assign to the vars.
20472 (
20473 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20474 eval ac_val=\$$ac_var
20475 case $ac_val in #(
20476 *${as_nl}*)
20477 case $ac_var in #(
20478 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20479 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20480 esac
20481 case $ac_var in #(
20482 _ | IFS | as_nl) ;; #(
20483 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20484 *) { eval $ac_var=; unset $ac_var;} ;;
20485 esac ;;
20486 esac
20487 done
20488
20489 (set) 2>&1 |
20490 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20491 *${as_nl}ac_space=\ *)
20492 # 'set' does not quote correctly, so add quotes: double-quote
20493 # substitution turns \\\\ into \\, and sed turns \\ into \.
20494 sed -n \
20495 "s/'/'\\\\''/g;
20496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20497 ;; #(
20498 *)
20499 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20501 ;;
20502 esac |
20503 sort
20504 ) |
20505 sed '
20506 /^ac_cv_env_/b end
20507 t clear
20508 :clear
20509 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20510 t end
20511 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20512 :end' >>confcache
20513 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20514 if test -w "$cache_file"; then
20515 if test "x$cache_file" != "x/dev/null"; then
20516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20517 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20518 if test ! -f "$cache_file" || test -h "$cache_file"; then
20519 cat confcache >"$cache_file"
20520 else
20521 case $cache_file in #(
20522 */* | ?:*)
20523 mv -f confcache "$cache_file"$$ &&
20524 mv -f "$cache_file"$$ "$cache_file" ;; #(
20525 *)
20526 mv -f confcache "$cache_file" ;;
20527 esac
20528 fi
20529 fi
20530 else
20531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20532 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20533 fi
20534 fi
20535 rm -f confcache
20536
20537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20538 # Let make expand exec_prefix.
20539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20540
20541 DEFS=-DHAVE_CONFIG_H
20542
20543 ac_libobjs=
20544 ac_ltlibobjs=
20545 U=
20546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20547 # 1. Remove the extension, and $U if already installed.
20548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20549 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20551 # will be set to the directory where LIBOBJS objects are built.
20552 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20553 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20554 done
20555 LIBOBJS=$ac_libobjs
20556
20557 LTLIBOBJS=$ac_ltlibobjs
20558
20559
20560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20561 printf %s "checking that generated files are newer than configure... " >&6; }
20562 if test -n "$am_sleep_pid"; then
20563 # Hide warnings about reused PIDs.
20564 wait $am_sleep_pid 2>/dev/null
20565 fi
20566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20567 printf "%s\n" "done" >&6; }
20568 case $enable_silent_rules in # (((
20569 yes) AM_DEFAULT_VERBOSITY=0;;
20570 no) AM_DEFAULT_VERBOSITY=1;;
20571 esac
20572 if test $am_cv_make_support_nested_variables = yes; then
20573 AM_V='$(V)'
20574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20575 else
20576 AM_V=$AM_DEFAULT_VERBOSITY
20577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20578 fi
20579
20580 if test -n "$EXEEXT"; then
20581 am__EXEEXT_TRUE=
20582 am__EXEEXT_FALSE='#'
20583 else
20584 am__EXEEXT_TRUE='#'
20585 am__EXEEXT_FALSE=
20586 fi
20587
20588 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20589 as_fn_error $? "conditional \"AMDEP\" was never defined.
20590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20591 fi
20592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20593 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20595 fi
20596 # Check whether --enable-year2038 was given.
20597 if test ${enable_year2038+y}
20598 then :
20599 enableval=$enable_year2038;
20600 fi
20601
20602 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20603 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20605 fi
20606 if test -z "${WITH_NCURSES_TRUE}" && test -z "${WITH_NCURSES_FALSE}"; then
20607 as_fn_error $? "conditional \"WITH_NCURSES\" was never defined.
20608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20609 fi
20610 if test -z "${WITH_NCURSES_TRUE}" && test -z "${WITH_NCURSES_FALSE}"; then
20611 as_fn_error $? "conditional \"WITH_NCURSES\" was never defined.
20612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20613 fi
20614 if test -z "${WITH_SYSTEMD_TRUE}" && test -z "${WITH_SYSTEMD_FALSE}"; then
20615 as_fn_error $? "conditional \"WITH_SYSTEMD\" was never defined.
20616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20617 fi
20618 if test -z "${WITH_ELOGIND_TRUE}" && test -z "${WITH_ELOGIND_FALSE}"; then
20619 as_fn_error $? "conditional \"WITH_ELOGIND\" was never defined.
20620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20621 fi
20622 if test -z "${BUILD_PIDOF_TRUE}" && test -z "${BUILD_PIDOF_FALSE}"; then
20623 as_fn_error $? "conditional \"BUILD_PIDOF\" was never defined.
20624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20625 fi
20626 if test -z "${BUILD_PIDWAIT_TRUE}" && test -z "${BUILD_PIDWAIT_FALSE}"; then
20627 as_fn_error $? "conditional \"BUILD_PIDWAIT\" was never defined.
20628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20629 fi
20630 if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then
20631 as_fn_error $? "conditional \"BUILD_KILL\" was never defined.
20632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20633 fi
20634 if test -z "${BUILD_W_TRUE}" && test -z "${BUILD_W_FALSE}"; then
20635 as_fn_error $? "conditional \"BUILD_W\" was never defined.
20636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20637 fi
20638 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
20639 as_fn_error $? "conditional \"LINUX\" was never defined.
20640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20641 fi
20642 if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
20643 as_fn_error $? "conditional \"CYGWIN\" was never defined.
20644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20645 fi
20646 if test -z "${BUILD_SKILL_TRUE}" && test -z "${BUILD_SKILL_FALSE}"; then
20647 as_fn_error $? "conditional \"BUILD_SKILL\" was never defined.
20648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20649 fi
20650 if test -z "${EXAMPLE_FILES_TRUE}" && test -z "${EXAMPLE_FILES_FALSE}"; then
20651 as_fn_error $? "conditional \"EXAMPLE_FILES\" was never defined.
20652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20653 fi
20654
20655 : "${CONFIG_STATUS=./config.status}"
20656 ac_write_fail=0
20657 ac_clean_files_save=$ac_clean_files
20658 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20660 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20661 as_write_fail=0
20662 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20663 #! $SHELL
20664 # Generated by $as_me.
20665 # Run this file to recreate the current configuration.
20666 # Compiler output produced by configure, useful for debugging
20667 # configure, is in config.log if it exists.
20668
20669 debug=false
20670 ac_cs_recheck=false
20671 ac_cs_silent=false
20672
20673 SHELL=\${CONFIG_SHELL-$SHELL}
20674 export SHELL
20675 _ASEOF
20676 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20677 ## -------------------- ##
20678 ## M4sh Initialization. ##
20679 ## -------------------- ##
20680
20681 # Be more Bourne compatible
20682 DUALCASE=1; export DUALCASE # for MKS sh
20683 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20684 then :
20685 emulate sh
20686 NULLCMD=:
20687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20688 # is contrary to our usage. Disable this feature.
20689 alias -g '${1+"$@"}'='"$@"'
20690 setopt NO_GLOB_SUBST
20691 else case e in #(
20692 e) case `(set -o) 2>/dev/null` in #(
20693 *posix*) :
20694 set -o posix ;; #(
20695 *) :
20696 ;;
20697 esac ;;
20698 esac
20699 fi
20700
20701
20702
20703 # Reset variables that may have inherited troublesome values from
20704 # the environment.
20705
20706 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20707 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20708 # side effect of setting IFS to empty, thus disabling word splitting.)
20709 # Quoting is to prevent editors from complaining about space-tab.
20710 as_nl='
20711 '
20712 export as_nl
20713 IFS=" "" $as_nl"
20714
20715 PS1='$ '
20716 PS2='> '
20717 PS4='+ '
20718
20719 # Ensure predictable behavior from utilities with locale-dependent output.
20720 LC_ALL=C
20721 export LC_ALL
20722 LANGUAGE=C
20723 export LANGUAGE
20724
20725 # We cannot yet rely on "unset" to work, but we need these variables
20726 # to be unset--not just set to an empty or harmless value--now, to
20727 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20728 # also avoids known problems related to "unset" and subshell syntax
20729 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20730 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20731 do eval test \${$as_var+y} \
20732 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20733 done
20734
20735 # Ensure that fds 0, 1, and 2 are open.
20736 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20737 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20738 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20739
20740 # The user is always right.
20741 if ${PATH_SEPARATOR+false} :; then
20742 PATH_SEPARATOR=:
20743 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20744 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20745 PATH_SEPARATOR=';'
20746 }
20747 fi
20748
20749
20750 # Find who we are. Look in the path if we contain no directory separator.
20751 as_myself=
20752 case $0 in #((
20753 *[\\/]* ) as_myself=$0 ;;
20754 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20755 for as_dir in $PATH
20756 do
20757 IFS=$as_save_IFS
20758 case $as_dir in #(((
20759 '') as_dir=./ ;;
20760 */) ;;
20761 *) as_dir=$as_dir/ ;;
20762 esac
20763 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20764 done
20765 IFS=$as_save_IFS
20766
20767 ;;
20768 esac
20769 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20770 # in which case we are not to be found in the path.
20771 if test "x$as_myself" = x; then
20772 as_myself=$0
20773 fi
20774 if test ! -f "$as_myself"; then
20775 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20776 exit 1
20777 fi
20778
20779
20780
20781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20782 # ----------------------------------------
20783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20785 # script with STATUS, using 1 if that was 0.
20786 as_fn_error ()
20787 {
20788 as_status=$1; test $as_status -eq 0 && as_status=1
20789 if test "$4"; then
20790 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20792 fi
20793 printf "%s\n" "$as_me: error: $2" >&2
20794 as_fn_exit $as_status
20795 } # as_fn_error
20796
20797
20798 # as_fn_set_status STATUS
20799 # -----------------------
20800 # Set $? to STATUS, without forking.
20801 as_fn_set_status ()
20802 {
20803 return $1
20804 } # as_fn_set_status
20805
20806 # as_fn_exit STATUS
20807 # -----------------
20808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20809 as_fn_exit ()
20810 {
20811 set +e
20812 as_fn_set_status $1
20813 exit $1
20814 } # as_fn_exit
20815
20816 # as_fn_unset VAR
20817 # ---------------
20818 # Portably unset VAR.
20819 as_fn_unset ()
20820 {
20821 { eval $1=; unset $1;}
20822 }
20823 as_unset=as_fn_unset
20824
20825 # as_fn_append VAR VALUE
20826 # ----------------------
20827 # Append the text in VALUE to the end of the definition contained in VAR. Take
20828 # advantage of any shell optimizations that allow amortized linear growth over
20829 # repeated appends, instead of the typical quadratic growth present in naive
20830 # implementations.
20831 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20832 then :
20833 eval 'as_fn_append ()
20834 {
20835 eval $1+=\$2
20836 }'
20837 else case e in #(
20838 e) as_fn_append ()
20839 {
20840 eval $1=\$$1\$2
20841 } ;;
20842 esac
20843 fi # as_fn_append
20844
20845 # as_fn_arith ARG...
20846 # ------------------
20847 # Perform arithmetic evaluation on the ARGs, and store the result in the
20848 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20849 # must be portable across $(()) and expr.
20850 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20851 then :
20852 eval 'as_fn_arith ()
20853 {
20854 as_val=$(( $* ))
20855 }'
20856 else case e in #(
20857 e) as_fn_arith ()
20858 {
20859 as_val=`expr "$@" || test $? -eq 1`
20860 } ;;
20861 esac
20862 fi # as_fn_arith
20863
20864
20865 if expr a : '\(a\)' >/dev/null 2>&1 &&
20866 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20867 as_expr=expr
20868 else
20869 as_expr=false
20870 fi
20871
20872 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20873 as_basename=basename
20874 else
20875 as_basename=false
20876 fi
20877
20878 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20879 as_dirname=dirname
20880 else
20881 as_dirname=false
20882 fi
20883
20884 as_me=`$as_basename -- "$0" ||
20885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20886 X"$0" : 'X\(//\)$' \| \
20887 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20888 printf "%s\n" X/"$0" |
20889 sed '/^.*\/\([^/][^/]*\)\/*$/{
20890 s//\1/
20891 q
20892 }
20893 /^X\/\(\/\/\)$/{
20894 s//\1/
20895 q
20896 }
20897 /^X\/\(\/\).*/{
20898 s//\1/
20899 q
20900 }
20901 s/.*/./; q'`
20902
20903 # Avoid depending upon Character Ranges.
20904 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20905 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20906 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20907 as_cr_digits='0123456789'
20908 as_cr_alnum=$as_cr_Letters$as_cr_digits
20909
20910
20911 # Determine whether it's possible to make 'echo' print without a newline.
20912 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20913 # for compatibility with existing Makefiles.
20914 ECHO_C= ECHO_N= ECHO_T=
20915 case `echo -n x` in #(((((
20916 -n*)
20917 case `echo 'xy\c'` in
20918 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20919 xy) ECHO_C='\c';;
20920 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20921 ECHO_T=' ';;
20922 esac;;
20923 *)
20924 ECHO_N='-n';;
20925 esac
20926
20927 # For backward compatibility with old third-party macros, we provide
20928 # the shell variables $as_echo and $as_echo_n. New code should use
20929 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20930 as_echo='printf %s\n'
20931 as_echo_n='printf %s'
20932
20933 rm -f conf$$ conf$$.exe conf$$.file
20934 if test -d conf$$.dir; then
20935 rm -f conf$$.dir/conf$$.file
20936 else
20937 rm -f conf$$.dir
20938 mkdir conf$$.dir 2>/dev/null
20939 fi
20940 if (echo >conf$$.file) 2>/dev/null; then
20941 if ln -s conf$$.file conf$$ 2>/dev/null; then
20942 as_ln_s='ln -s'
20943 # ... but there are two gotchas:
20944 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20945 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20946 # In both cases, we have to default to 'cp -pR'.
20947 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20948 as_ln_s='cp -pR'
20949 elif ln conf$$.file conf$$ 2>/dev/null; then
20950 as_ln_s=ln
20951 else
20952 as_ln_s='cp -pR'
20953 fi
20954 else
20955 as_ln_s='cp -pR'
20956 fi
20957 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20958 rmdir conf$$.dir 2>/dev/null
20959
20960
20961 # as_fn_mkdir_p
20962 # -------------
20963 # Create "$as_dir" as a directory, including parents if necessary.
20964 as_fn_mkdir_p ()
20965 {
20966
20967 case $as_dir in #(
20968 -*) as_dir=./$as_dir;;
20969 esac
20970 test -d "$as_dir" || eval $as_mkdir_p || {
20971 as_dirs=
20972 while :; do
20973 case $as_dir in #(
20974 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20975 *) as_qdir=$as_dir;;
20976 esac
20977 as_dirs="'$as_qdir' $as_dirs"
20978 as_dir=`$as_dirname -- "$as_dir" ||
20979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20980 X"$as_dir" : 'X\(//\)[^/]' \| \
20981 X"$as_dir" : 'X\(//\)$' \| \
20982 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20983 printf "%s\n" X"$as_dir" |
20984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20985 s//\1/
20986 q
20987 }
20988 /^X\(\/\/\)[^/].*/{
20989 s//\1/
20990 q
20991 }
20992 /^X\(\/\/\)$/{
20993 s//\1/
20994 q
20995 }
20996 /^X\(\/\).*/{
20997 s//\1/
20998 q
20999 }
21000 s/.*/./; q'`
21001 test -d "$as_dir" && break
21002 done
21003 test -z "$as_dirs" || eval "mkdir $as_dirs"
21004 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21005
21006
21007 } # as_fn_mkdir_p
21008 if mkdir -p . 2>/dev/null; then
21009 as_mkdir_p='mkdir -p "$as_dir"'
21010 else
21011 test -d ./-p && rmdir ./-p
21012 as_mkdir_p=false
21013 fi
21014
21015
21016 # as_fn_executable_p FILE
21017 # -----------------------
21018 # Test if FILE is an executable regular file.
21019 as_fn_executable_p ()
21020 {
21021 test -f "$1" && test -x "$1"
21022 } # as_fn_executable_p
21023 as_test_x='test -x'
21024 as_executable_p=as_fn_executable_p
21025
21026 # Sed expression to map a string onto a valid CPP name.
21027 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21028 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21029
21030 # Sed expression to map a string onto a valid variable name.
21031 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21032 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21033
21034
21035 exec 6>&1
21036 ## ----------------------------------- ##
21037 ## Main body of $CONFIG_STATUS script. ##
21038 ## ----------------------------------- ##
21039 _ASEOF
21040 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21041
21042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21043 # Save the log message, to keep $0 and so on meaningful, and to
21044 # report actual input values of CONFIG_FILES etc. instead of their
21045 # values after options handling.
21046 ac_log="
21047 This file was extended by procps-ng $as_me 4.0.7, which was
21048 generated by GNU Autoconf 2.72. Invocation command line was
21049
21050 CONFIG_FILES = $CONFIG_FILES
21051 CONFIG_HEADERS = $CONFIG_HEADERS
21052 CONFIG_LINKS = $CONFIG_LINKS
21053 CONFIG_COMMANDS = $CONFIG_COMMANDS
21054 $ $0 $@
21055
21056 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21057 "
21058
21059 _ACEOF
21060
21061 case $ac_config_files in *"
21062 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21063 esac
21064
21065 case $ac_config_headers in *"
21066 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21067 esac
21068
21069
21070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21071 # Files that config.status was made for.
21072 config_files="$ac_config_files"
21073 config_headers="$ac_config_headers"
21074 config_commands="$ac_config_commands"
21075
21076 _ACEOF
21077
21078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21079 ac_cs_usage="\
21080 '$as_me' instantiates files and other configuration actions
21081 from templates according to the current configuration. Unless the files
21082 and actions are specified as TAGs, all are instantiated by default.
21083
21084 Usage: $0 [OPTION]... [TAG]...
21085
21086 -h, --help print this help, then exit
21087 -V, --version print version number and configuration settings, then exit
21088 --config print configuration, then exit
21089 -q, --quiet, --silent
21090 do not print progress messages
21091 -d, --debug don't remove temporary files
21092 --recheck update $as_me by reconfiguring in the same conditions
21093 --file=FILE[:TEMPLATE]
21094 instantiate the configuration file FILE
21095 --header=FILE[:TEMPLATE]
21096 instantiate the configuration header FILE
21097
21098 Configuration files:
21099 $config_files
21100
21101 Configuration headers:
21102 $config_headers
21103
21104 Configuration commands:
21105 $config_commands
21106
21107 Report bugs to <[email protected]>.
21108 procps-ng home page: <https://gitlab.com/procps-ng/procps>."
21109
21110 _ACEOF
21111 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21112 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21114 ac_cs_config='$ac_cs_config_escaped'
21115 ac_cs_version="\\
21116 procps-ng config.status 4.0.7
21117 configured by $0, generated by GNU Autoconf 2.72,
21118 with options \\"\$ac_cs_config\\"
21119
21120 Copyright (C) 2023 Free Software Foundation, Inc.
21121 This config.status script is free software; the Free Software Foundation
21122 gives unlimited permission to copy, distribute and modify it."
21123
21124 ac_pwd='$ac_pwd'
21125 srcdir='$srcdir'
21126 INSTALL='$INSTALL'
21127 MKDIR_P='$MKDIR_P'
21128 AWK='$AWK'
21129 test -n "\$AWK" || AWK=awk
21130 _ACEOF
21131
21132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21133 # The default lists apply if the user does not specify any file.
21134 ac_need_defaults=:
21135 while test $# != 0
21136 do
21137 case $1 in
21138 --*=?*)
21139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21140 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21141 ac_shift=:
21142 ;;
21143 --*=)
21144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21145 ac_optarg=
21146 ac_shift=:
21147 ;;
21148 *)
21149 ac_option=$1
21150 ac_optarg=$2
21151 ac_shift=shift
21152 ;;
21153 esac
21154
21155 case $ac_option in
21156 # Handling of the options.
21157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21158 ac_cs_recheck=: ;;
21159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21160 printf "%s\n" "$ac_cs_version"; exit ;;
21161 --config | --confi | --conf | --con | --co | --c )
21162 printf "%s\n" "$ac_cs_config"; exit ;;
21163 --debug | --debu | --deb | --de | --d | -d )
21164 debug=: ;;
21165 --file | --fil | --fi | --f )
21166 $ac_shift
21167 case $ac_optarg in
21168 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21169 '') as_fn_error $? "missing file argument" ;;
21170 esac
21171 as_fn_append CONFIG_FILES " '$ac_optarg'"
21172 ac_need_defaults=false;;
21173 --header | --heade | --head | --hea )
21174 $ac_shift
21175 case $ac_optarg in
21176 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21177 esac
21178 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21179 ac_need_defaults=false;;
21180 --he | --h)
21181 # Conflict between --help and --header
21182 as_fn_error $? "ambiguous option: '$1'
21183 Try '$0 --help' for more information.";;
21184 --help | --hel | -h )
21185 printf "%s\n" "$ac_cs_usage"; exit ;;
21186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21188 ac_cs_silent=: ;;
21189
21190 # This is an error.
21191 -*) as_fn_error $? "unrecognized option: '$1'
21192 Try '$0 --help' for more information." ;;
21193
21194 *) as_fn_append ac_config_targets " $1"
21195 ac_need_defaults=false ;;
21196
21197 esac
21198 shift
21199 done
21200
21201 ac_configure_extra_args=
21202
21203 if $ac_cs_silent; then
21204 exec 6>/dev/null
21205 ac_configure_extra_args="$ac_configure_extra_args --silent"
21206 fi
21207
21208 _ACEOF
21209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21210 if \$ac_cs_recheck; then
21211 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21212 shift
21213 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21214 CONFIG_SHELL='$SHELL'
21215 export CONFIG_SHELL
21216 exec "\$@"
21217 fi
21218
21219 _ACEOF
21220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21221 exec 5>>config.log
21222 {
21223 echo
21224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21225 ## Running $as_me. ##
21226 _ASBOX
21227 printf "%s\n" "$ac_log"
21228 } >&5
21229
21230 _ACEOF
21231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21232 #
21233 # INIT-COMMANDS
21234 #
21235 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21236
21237
21238 # The HP-UX ksh and POSIX shell print the target directory to stdout
21239 # if CDPATH is set.
21240 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21241
21242 sed_quote_subst='$sed_quote_subst'
21243 double_quote_subst='$double_quote_subst'
21244 delay_variable_subst='$delay_variable_subst'
21245 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21246 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21247 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21248 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21249 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21250 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21251 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21252 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21253 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21254 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21255 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21256 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21257 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21258 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21259 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21260 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21261 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21262 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21263 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21264 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21265 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21266 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21267 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21268 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21269 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21270 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21271 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21272 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21273 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21274 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21275 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21276 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21277 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21278 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21279 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21280 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21281 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21282 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21283 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21284 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21285 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21286 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21287 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21288 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21289 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21290 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21291 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21292 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21293 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21294 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21295 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21296 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21297 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21298 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21299 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21300 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21301 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21302 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21303 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21304 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21305 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"`'
21306 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21307 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21308 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21309 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21310 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21311 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21312 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21313 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21314 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21315 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21316 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21317 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21318 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21319 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21320 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21321 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21322 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21323 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21324 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21325 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21326 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21327 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21328 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21329 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21330 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21331 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21332 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21333 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21334 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21335 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21336 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21337 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21338 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21339 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21340 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21341 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21342 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21343 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21344 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21345 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21346 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21347 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21348 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21349 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21350 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21351 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21352 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21353 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21354 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21355 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21356 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21357 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21358 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21359 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21360 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21361 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21362 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21363 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21364 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21365 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21366 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21367 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21368 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21369 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21370 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21371 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21372 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21373 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21374 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21375 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21376 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21377 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21378 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21379 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21380 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21381 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21382
21383 LTCC='$LTCC'
21384 LTCFLAGS='$LTCFLAGS'
21385 compiler='$compiler_DEFAULT'
21386
21387 # A function that is used when there is no print builtin or printf.
21388 func_fallback_echo ()
21389 {
21390 eval 'cat <<_LTECHO_EOF
21391 \$1
21392 _LTECHO_EOF'
21393 }
21394
21395 # Quote evaled strings.
21396 for var in SHELL \
21397 ECHO \
21398 PATH_SEPARATOR \
21399 SED \
21400 GREP \
21401 EGREP \
21402 FGREP \
21403 LD \
21404 NM \
21405 LN_S \
21406 lt_SP2NL \
21407 lt_NL2SP \
21408 reload_flag \
21409 FILECMD \
21410 OBJDUMP \
21411 deplibs_check_method \
21412 file_magic_cmd \
21413 file_magic_glob \
21414 want_nocaseglob \
21415 DLLTOOL \
21416 sharedlib_from_linklib_cmd \
21417 AR \
21418 archiver_list_spec \
21419 STRIP \
21420 RANLIB \
21421 CC \
21422 CFLAGS \
21423 compiler \
21424 lt_cv_sys_global_symbol_pipe \
21425 lt_cv_sys_global_symbol_to_cdecl \
21426 lt_cv_sys_global_symbol_to_import \
21427 lt_cv_sys_global_symbol_to_c_name_address \
21428 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21429 lt_cv_nm_interface \
21430 nm_file_list_spec \
21431 lt_cv_truncate_bin \
21432 lt_prog_compiler_no_builtin_flag \
21433 lt_prog_compiler_pic \
21434 lt_prog_compiler_wl \
21435 lt_prog_compiler_static \
21436 lt_cv_prog_compiler_c_o \
21437 need_locks \
21438 MANIFEST_TOOL \
21439 DSYMUTIL \
21440 NMEDIT \
21441 LIPO \
21442 OTOOL \
21443 OTOOL64 \
21444 shrext_cmds \
21445 export_dynamic_flag_spec \
21446 whole_archive_flag_spec \
21447 compiler_needs_object \
21448 with_gnu_ld \
21449 allow_undefined_flag \
21450 no_undefined_flag \
21451 hardcode_libdir_flag_spec \
21452 hardcode_libdir_separator \
21453 exclude_expsyms \
21454 include_expsyms \
21455 file_list_spec \
21456 variables_saved_for_relink \
21457 libname_spec \
21458 library_names_spec \
21459 soname_spec \
21460 install_override_mode \
21461 finish_eval \
21462 old_striplib \
21463 striplib; do
21464 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21465 *[\\\\\\\`\\"\\\$]*)
21466 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21467 ;;
21468 *)
21469 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21470 ;;
21471 esac
21472 done
21473
21474 # Double-quote double-evaled strings.
21475 for var in reload_cmds \
21476 old_postinstall_cmds \
21477 old_postuninstall_cmds \
21478 old_archive_cmds \
21479 extract_expsyms_cmds \
21480 old_archive_from_new_cmds \
21481 old_archive_from_expsyms_cmds \
21482 archive_cmds \
21483 archive_expsym_cmds \
21484 module_cmds \
21485 module_expsym_cmds \
21486 export_symbols_cmds \
21487 prelink_cmds \
21488 postlink_cmds \
21489 postinstall_cmds \
21490 postuninstall_cmds \
21491 finish_cmds \
21492 sys_lib_search_path_spec \
21493 configure_time_dlsearch_path \
21494 configure_time_lt_sys_library_path; do
21495 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21496 *[\\\\\\\`\\"\\\$]*)
21497 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21498 ;;
21499 *)
21500 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21501 ;;
21502 esac
21503 done
21504
21505 ac_aux_dir='$ac_aux_dir'
21506
21507 # See if we are running on zsh, and set the options that allow our
21508 # commands through without removal of \ escapes INIT.
21509 if test -n "\${ZSH_VERSION+set}"; then
21510 setopt NO_GLOB_SUBST
21511 fi
21512
21513
21514 PACKAGE='$PACKAGE'
21515 VERSION='$VERSION'
21516 RM='$RM'
21517 ofile='$ofile'
21518
21519
21520
21521 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21522 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21523 # from automake.
21524 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21525 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21526 LINGUAS="${LINGUAS-%UNSET%}"
21527
21528
21529 _ACEOF
21530
21531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21532
21533 # Handling of arguments.
21534 for ac_config_target in $ac_config_targets
21535 do
21536 case $ac_config_target in
21537 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21538 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21539 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21540 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21541 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21542 "local/Makefile") CONFIG_FILES="$CONFIG_FILES local/Makefile" ;;
21543 "po-man/Makefile") CONFIG_FILES="$CONFIG_FILES po-man/Makefile" ;;
21544 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21545 "library/libproc2.pc") CONFIG_FILES="$CONFIG_FILES library/libproc2.pc" ;;
21546 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
21547
21548 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21549 esac
21550 done
21551
21552
21553 # If the user did not use the arguments to specify the items to instantiate,
21554 # then the envvar interface is used. Set only those that are not.
21555 # We use the long form for the default assignment because of an extremely
21556 # bizarre bug on SunOS 4.1.3.
21557 if $ac_need_defaults; then
21558 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21559 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21560 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21561 fi
21562
21563 # Have a temporary directory for convenience. Make it in the build tree
21564 # simply because there is no reason against having it here, and in addition,
21565 # creating and moving files from /tmp can sometimes cause problems.
21566 # Hook for its removal unless debugging.
21567 # Note that there is a small window in which the directory will not be cleaned:
21568 # after its creation but before its name has been assigned to '$tmp'.
21569 $debug ||
21570 {
21571 tmp= ac_tmp=
21572 trap 'exit_status=$?
21573 : "${ac_tmp:=$tmp}"
21574 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21575 ' 0
21576 trap 'as_fn_exit 1' 1 2 13 15
21577 }
21578 # Create a (secure) tmp directory for tmp files.
21579
21580 {
21581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21582 test -d "$tmp"
21583 } ||
21584 {
21585 tmp=./conf$$-$RANDOM
21586 (umask 077 && mkdir "$tmp")
21587 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21588 ac_tmp=$tmp
21589
21590 # Set up the scripts for CONFIG_FILES section.
21591 # No need to generate them if there are no CONFIG_FILES.
21592 # This happens for instance with './config.status config.h'.
21593 if test -n "$CONFIG_FILES"; then
21594
21595
21596 ac_cr=`echo X | tr X '\015'`
21597 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21598 # But we know of no other shell where ac_cr would be empty at this
21599 # point, so we can use a bashism as a fallback.
21600 if test "x$ac_cr" = x; then
21601 eval ac_cr=\$\'\\r\'
21602 fi
21603 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21604 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21605 ac_cs_awk_cr='\\r'
21606 else
21607 ac_cs_awk_cr=$ac_cr
21608 fi
21609
21610 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21611 _ACEOF
21612
21613
21614 {
21615 echo "cat >conf$$subs.awk <<_ACEOF" &&
21616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21617 echo "_ACEOF"
21618 } >conf$$subs.sh ||
21619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21621 ac_delim='%!_!# '
21622 for ac_last_try in false false false false false :; do
21623 . ./conf$$subs.sh ||
21624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21625
21626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21627 if test $ac_delim_n = $ac_delim_num; then
21628 break
21629 elif $ac_last_try; then
21630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21631 else
21632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21633 fi
21634 done
21635 rm -f conf$$subs.sh
21636
21637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21638 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21639 _ACEOF
21640 sed -n '
21641 h
21642 s/^/S["/; s/!.*/"]=/
21643 p
21644 g
21645 s/^[^!]*!//
21646 :repl
21647 t repl
21648 s/'"$ac_delim"'$//
21649 t delim
21650 :nl
21651 h
21652 s/\(.\{148\}\)..*/\1/
21653 t more1
21654 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21655 p
21656 n
21657 b repl
21658 :more1
21659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21660 p
21661 g
21662 s/.\{148\}//
21663 t nl
21664 :delim
21665 h
21666 s/\(.\{148\}\)..*/\1/
21667 t more2
21668 s/["\\]/\\&/g; s/^/"/; s/$/"/
21669 p
21670 b
21671 :more2
21672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21673 p
21674 g
21675 s/.\{148\}//
21676 t delim
21677 ' <conf$$subs.awk | sed '
21678 /^[^""]/{
21679 N
21680 s/\n//
21681 }
21682 ' >>$CONFIG_STATUS || ac_write_fail=1
21683 rm -f conf$$subs.awk
21684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21685 _ACAWK
21686 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21687 for (key in S) S_is_set[key] = 1
21688 FS = ""
21689
21690 }
21691 {
21692 line = $ 0
21693 nfields = split(line, field, "@")
21694 substed = 0
21695 len = length(field[1])
21696 for (i = 2; i < nfields; i++) {
21697 key = field[i]
21698 keylen = length(key)
21699 if (S_is_set[key]) {
21700 value = S[key]
21701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21702 len += length(value) + length(field[++i])
21703 substed = 1
21704 } else
21705 len += 1 + keylen
21706 }
21707
21708 print line
21709 }
21710
21711 _ACAWK
21712 _ACEOF
21713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21714 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21716 else
21717 cat
21718 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21719 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21720 _ACEOF
21721
21722 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21723 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21724 # trailing colons and then remove the whole line if VPATH becomes empty
21725 # (actually we leave an empty line to preserve line numbers).
21726 if test "x$srcdir" = x.; then
21727 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21728 h
21729 s///
21730 s/^/:/
21731 s/[ ]*$/:/
21732 s/:\$(srcdir):/:/g
21733 s/:\${srcdir}:/:/g
21734 s/:@srcdir@:/:/g
21735 s/^:*//
21736 s/:*$//
21737 x
21738 s/\(=[ ]*\).*/\1/
21739 G
21740 s/\n//
21741 s/^[^=]*=[ ]*$//
21742 }'
21743 fi
21744
21745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21746 fi # test -n "$CONFIG_FILES"
21747
21748 # Set up the scripts for CONFIG_HEADERS section.
21749 # No need to generate them if there are no CONFIG_HEADERS.
21750 # This happens for instance with './config.status Makefile'.
21751 if test -n "$CONFIG_HEADERS"; then
21752 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21753 BEGIN {
21754 _ACEOF
21755
21756 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21757 # here-document in config.status, that substitutes the proper values into
21758 # config.h.in to produce config.h.
21759
21760 # Create a delimiter string that does not exist in confdefs.h, to ease
21761 # handling of long lines.
21762 ac_delim='%!_!# '
21763 for ac_last_try in false false :; do
21764 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21765 if test -z "$ac_tt"; then
21766 break
21767 elif $ac_last_try; then
21768 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21769 else
21770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21771 fi
21772 done
21773
21774 # For the awk script, D is an array of macro values keyed by name,
21775 # likewise P contains macro parameters if any. Preserve backslash
21776 # newline sequences.
21777
21778 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21779 sed -n '
21780 s/.\{148\}/&'"$ac_delim"'/g
21781 t rset
21782 :rset
21783 s/^[ ]*#[ ]*define[ ][ ]*/ /
21784 t def
21785 d
21786 :def
21787 s/\\$//
21788 t bsnl
21789 s/["\\]/\\&/g
21790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21791 D["\1"]=" \3"/p
21792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21793 d
21794 :bsnl
21795 s/["\\]/\\&/g
21796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21797 D["\1"]=" \3\\\\\\n"\\/p
21798 t cont
21799 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21800 t cont
21801 d
21802 :cont
21803 n
21804 s/.\{148\}/&'"$ac_delim"'/g
21805 t clear
21806 :clear
21807 s/\\$//
21808 t bsnlc
21809 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21810 d
21811 :bsnlc
21812 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21813 b cont
21814 ' <confdefs.h | sed '
21815 s/'"$ac_delim"'/"\\\
21816 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21817
21818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21819 for (key in D) D_is_set[key] = 1
21820 FS = ""
21821 }
21822 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21823 line = \$ 0
21824 split(line, arg, " ")
21825 if (arg[1] == "#") {
21826 defundef = arg[2]
21827 mac1 = arg[3]
21828 } else {
21829 defundef = substr(arg[1], 2)
21830 mac1 = arg[2]
21831 }
21832 split(mac1, mac2, "(") #)
21833 macro = mac2[1]
21834 prefix = substr(line, 1, index(line, defundef) - 1)
21835 if (D_is_set[macro]) {
21836 # Preserve the white space surrounding the "#".
21837 print prefix "define", macro P[macro] D[macro]
21838 next
21839 } else {
21840 # Replace #undef with comments. This is necessary, for example,
21841 # in the case of _POSIX_SOURCE, which is predefined and required
21842 # on some systems where configure will not decide to define it.
21843 if (defundef == "undef") {
21844 print "/*", prefix defundef, macro, "*/"
21845 next
21846 }
21847 }
21848 }
21849 { print }
21850 _ACAWK
21851 _ACEOF
21852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21853 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21854 fi # test -n "$CONFIG_HEADERS"
21855
21856
21857 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21858 shift
21859 for ac_tag
21860 do
21861 case $ac_tag in
21862 :[FHLC]) ac_mode=$ac_tag; continue;;
21863 esac
21864 case $ac_mode$ac_tag in
21865 :[FHL]*:*);;
21866 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21867 :[FH]-) ac_tag=-:-;;
21868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21869 esac
21870 ac_save_IFS=$IFS
21871 IFS=:
21872 set x $ac_tag
21873 IFS=$ac_save_IFS
21874 shift
21875 ac_file=$1
21876 shift
21877
21878 case $ac_mode in
21879 :L) ac_source=$1;;
21880 :[FH])
21881 ac_file_inputs=
21882 for ac_f
21883 do
21884 case $ac_f in
21885 -) ac_f="$ac_tmp/stdin";;
21886 *) # Look for the file first in the build tree, then in the source tree
21887 # (if the path is not absolute). The absolute path cannot be DOS-style,
21888 # because $ac_f cannot contain ':'.
21889 test -f "$ac_f" ||
21890 case $ac_f in
21891 [\\/$]*) false;;
21892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21893 esac ||
21894 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21895 esac
21896 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21897 as_fn_append ac_file_inputs " '$ac_f'"
21898 done
21899
21900 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21901 # use $as_me), people would be surprised to read:
21902 # /* config.h. Generated by config.status. */
21903 configure_input='Generated from '`
21904 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21905 `' by configure.'
21906 if test x"$ac_file" != x-; then
21907 configure_input="$ac_file. $configure_input"
21908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21909 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21910 fi
21911 # Neutralize special characters interpreted by sed in replacement strings.
21912 case $configure_input in #(
21913 *\&* | *\|* | *\\* )
21914 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21915 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21916 *) ac_sed_conf_input=$configure_input;;
21917 esac
21918
21919 case $ac_tag in
21920 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21922 esac
21923 ;;
21924 esac
21925
21926 ac_dir=`$as_dirname -- "$ac_file" ||
21927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21928 X"$ac_file" : 'X\(//\)[^/]' \| \
21929 X"$ac_file" : 'X\(//\)$' \| \
21930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21931 printf "%s\n" X"$ac_file" |
21932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21933 s//\1/
21934 q
21935 }
21936 /^X\(\/\/\)[^/].*/{
21937 s//\1/
21938 q
21939 }
21940 /^X\(\/\/\)$/{
21941 s//\1/
21942 q
21943 }
21944 /^X\(\/\).*/{
21945 s//\1/
21946 q
21947 }
21948 s/.*/./; q'`
21949 as_dir="$ac_dir"; as_fn_mkdir_p
21950 ac_builddir=.
21951
21952 case "$ac_dir" in
21953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21954 *)
21955 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21956 # A ".." for each directory in $ac_dir_suffix.
21957 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21958 case $ac_top_builddir_sub in
21959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21961 esac ;;
21962 esac
21963 ac_abs_top_builddir=$ac_pwd
21964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21965 # for backward compatibility:
21966 ac_top_builddir=$ac_top_build_prefix
21967
21968 case $srcdir in
21969 .) # We are building in place.
21970 ac_srcdir=.
21971 ac_top_srcdir=$ac_top_builddir_sub
21972 ac_abs_top_srcdir=$ac_pwd ;;
21973 [\\/]* | ?:[\\/]* ) # Absolute name.
21974 ac_srcdir=$srcdir$ac_dir_suffix;
21975 ac_top_srcdir=$srcdir
21976 ac_abs_top_srcdir=$srcdir ;;
21977 *) # Relative name.
21978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21979 ac_top_srcdir=$ac_top_build_prefix$srcdir
21980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21981 esac
21982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21983
21984
21985 case $ac_mode in
21986 :F)
21987 #
21988 # CONFIG_FILE
21989 #
21990
21991 case $INSTALL in
21992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21993 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21994 esac
21995 ac_MKDIR_P=$MKDIR_P
21996 case $MKDIR_P in
21997 [\\/$]* | ?:[\\/]* ) ;;
21998 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21999 esac
22000 _ACEOF
22001
22002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22003 # If the template does not know about datarootdir, expand it.
22004 # FIXME: This hack should be removed a few years after 2.60.
22005 ac_datarootdir_hack=; ac_datarootdir_seen=
22006 ac_sed_dataroot='
22007 /datarootdir/ {
22008 p
22009 q
22010 }
22011 /@datadir@/p
22012 /@docdir@/p
22013 /@infodir@/p
22014 /@localedir@/p
22015 /@mandir@/p'
22016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22017 *datarootdir*) ac_datarootdir_seen=yes;;
22018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22020 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22021 _ACEOF
22022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22023 ac_datarootdir_hack='
22024 s&@datadir@&$datadir&g
22025 s&@docdir@&$docdir&g
22026 s&@infodir@&$infodir&g
22027 s&@localedir@&$localedir&g
22028 s&@mandir@&$mandir&g
22029 s&\\\${datarootdir}&$datarootdir&g' ;;
22030 esac
22031 _ACEOF
22032
22033 # Neutralize VPATH when '$srcdir' = '.'.
22034 # Shell code in configure.ac might set extrasub.
22035 # FIXME: do we really want to maintain this feature?
22036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22037 ac_sed_extra="$ac_vpsub
22038 $extrasub
22039 _ACEOF
22040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22041 :t
22042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22043 s|@configure_input@|$ac_sed_conf_input|;t t
22044 s&@top_builddir@&$ac_top_builddir_sub&;t t
22045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22046 s&@srcdir@&$ac_srcdir&;t t
22047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22048 s&@top_srcdir@&$ac_top_srcdir&;t t
22049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22050 s&@builddir@&$ac_builddir&;t t
22051 s&@abs_builddir@&$ac_abs_builddir&;t t
22052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22053 s&@INSTALL@&$ac_INSTALL&;t t
22054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22055 $ac_datarootdir_hack
22056 "
22057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22058 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22059
22060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22061 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22063 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22065 which seems to be undefined. Please make sure it is defined" >&5
22066 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22067 which seems to be undefined. Please make sure it is defined" >&2;}
22068
22069 rm -f "$ac_tmp/stdin"
22070 case $ac_file in
22071 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22072 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22073 esac \
22074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22075 ;;
22076 :H)
22077 #
22078 # CONFIG_HEADER
22079 #
22080 if test x"$ac_file" != x-; then
22081 {
22082 printf "%s\n" "/* $configure_input */" >&1 \
22083 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22084 } >"$ac_tmp/config.h" \
22085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22086 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22088 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22089 else
22090 rm -f "$ac_file"
22091 mv "$ac_tmp/config.h" "$ac_file" \
22092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22093 fi
22094 else
22095 printf "%s\n" "/* $configure_input */" >&1 \
22096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22097 || as_fn_error $? "could not create -" "$LINENO" 5
22098 fi
22099 # Compute "$ac_file"'s index in $config_headers.
22100 _am_arg="$ac_file"
22101 _am_stamp_count=1
22102 for _am_header in $config_headers :; do
22103 case $_am_header in
22104 $_am_arg | $_am_arg:* )
22105 break ;;
22106 * )
22107 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22108 esac
22109 done
22110 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22111 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22112 X"$_am_arg" : 'X\(//\)[^/]' \| \
22113 X"$_am_arg" : 'X\(//\)$' \| \
22114 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22115 printf "%s\n" X"$_am_arg" |
22116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22117 s//\1/
22118 q
22119 }
22120 /^X\(\/\/\)[^/].*/{
22121 s//\1/
22122 q
22123 }
22124 /^X\(\/\/\)$/{
22125 s//\1/
22126 q
22127 }
22128 /^X\(\/\).*/{
22129 s//\1/
22130 q
22131 }
22132 s/.*/./; q'`/stamp-h$_am_stamp_count
22133 ;;
22134
22135 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22136 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22137 ;;
22138 esac
22139
22140
22141 case $ac_file$ac_mode in
22142 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22143 # Older Autoconf quotes --file arguments for eval, but not when files
22144 # are listed without --file. Let's play safe and only enable the eval
22145 # if we detect the quoting.
22146 # TODO: see whether this extra hack can be removed once we start
22147 # requiring Autoconf 2.70 or later.
22148 case $CONFIG_FILES in #(
22149 *\'*) :
22150 eval set x "$CONFIG_FILES" ;; #(
22151 *) :
22152 set x $CONFIG_FILES ;; #(
22153 *) :
22154 ;;
22155 esac
22156 shift
22157 # Used to flag and report bootstrapping failures.
22158 am_rc=0
22159 for am_mf
22160 do
22161 # Strip MF so we end up with the name of the file.
22162 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22163 # Check whether this is an Automake generated Makefile which includes
22164 # dependency-tracking related rules and includes.
22165 # Grep'ing the whole file directly is not great: AIX grep has a line
22166 # limit of 2048, but all sed's we know have understand at least 4000.
22167 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22168 || continue
22169 am_dirpart=`$as_dirname -- "$am_mf" ||
22170 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22171 X"$am_mf" : 'X\(//\)[^/]' \| \
22172 X"$am_mf" : 'X\(//\)$' \| \
22173 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22174 printf "%s\n" X"$am_mf" |
22175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22176 s//\1/
22177 q
22178 }
22179 /^X\(\/\/\)[^/].*/{
22180 s//\1/
22181 q
22182 }
22183 /^X\(\/\/\)$/{
22184 s//\1/
22185 q
22186 }
22187 /^X\(\/\).*/{
22188 s//\1/
22189 q
22190 }
22191 s/.*/./; q'`
22192 am_filepart=`$as_basename -- "$am_mf" ||
22193 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22194 X"$am_mf" : 'X\(//\)$' \| \
22195 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22196 printf "%s\n" X/"$am_mf" |
22197 sed '/^.*\/\([^/][^/]*\)\/*$/{
22198 s//\1/
22199 q
22200 }
22201 /^X\/\(\/\/\)$/{
22202 s//\1/
22203 q
22204 }
22205 /^X\/\(\/\).*/{
22206 s//\1/
22207 q
22208 }
22209 s/.*/./; q'`
22210 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22211 && sed -e '/# am--include-marker/d' "$am_filepart" \
22212 | $MAKE -f - am--depfiles" >&5
22213 (cd "$am_dirpart" \
22214 && sed -e '/# am--include-marker/d' "$am_filepart" \
22215 | $MAKE -f - am--depfiles) >&5 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } || am_rc=$?
22219 done
22220 if test $am_rc -ne 0; then
22221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22222 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22223 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22224 for automatic dependency tracking. If GNU make was not used, consider
22225 re-running the configure script with MAKE=\"gmake\" (or whatever is
22226 necessary). You can also try re-running configure with the
22227 '--disable-dependency-tracking' option to at least be able to build
22228 the package (albeit without support for automatic dependency tracking).
22229 See 'config.log' for more details" "$LINENO" 5; }
22230 fi
22231 { am_dirpart=; unset am_dirpart;}
22232 { am_filepart=; unset am_filepart;}
22233 { am_mf=; unset am_mf;}
22234 { am_rc=; unset am_rc;}
22235 rm -f conftest-deps.mk
22236 }
22237 ;;
22238 "libtool":C)
22239
22240 # See if we are running on zsh, and set the options that allow our
22241 # commands through without removal of \ escapes.
22242 if test -n "${ZSH_VERSION+set}"; then
22243 setopt NO_GLOB_SUBST
22244 fi
22245
22246 cfgfile=${ofile}T
22247 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22248 $RM "$cfgfile"
22249
22250 cat <<_LT_EOF >> "$cfgfile"
22251 #! $SHELL
22252 # Generated automatically by $as_me ($PACKAGE) $VERSION
22253 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22254
22255 # Provide generalized library-building support services.
22256 # Written by Gordon Matzigkeit, 1996
22257
22258 # Copyright (C) 2024 Free Software Foundation, Inc.
22259 # This is free software; see the source for copying conditions. There is NO
22260 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22261
22262 # GNU Libtool is free software; you can redistribute it and/or modify
22263 # it under the terms of the GNU General Public License as published by
22264 # the Free Software Foundation; either version 2 of the License, or
22265 # (at your option) any later version.
22266 #
22267 # As a special exception to the GNU General Public License, if you
22268 # distribute this file as part of a program or library that is built
22269 # using GNU Libtool, you may include this file under the same
22270 # distribution terms that you use for the rest of that program.
22271 #
22272 # GNU Libtool is distributed in the hope that it will be useful, but
22273 # WITHOUT ANY WARRANTY; without even the implied warranty of
22274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22275 # GNU General Public License for more details.
22276 #
22277 # You should have received a copy of the GNU General Public License
22278 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22279
22280
22281 # The names of the tagged configurations supported by this script.
22282 available_tags=''
22283
22284 # Configured defaults for sys_lib_dlsearch_path munging.
22285 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22286
22287 # ### BEGIN LIBTOOL CONFIG
22288
22289 # Which release of libtool.m4 was used?
22290 macro_version=$macro_version
22291 macro_revision=$macro_revision
22292
22293 # Whether or not to build shared libraries.
22294 build_libtool_libs=$enable_shared
22295
22296 # Whether or not to build static libraries.
22297 build_old_libs=$enable_static
22298
22299 # What type of objects to build.
22300 pic_mode=$pic_mode
22301
22302 # Whether or not to optimize for fast installation.
22303 fast_install=$enable_fast_install
22304
22305 # Shared archive member basename,for filename based shared library versioning on AIX.
22306 shared_archive_member_spec=$shared_archive_member_spec
22307
22308 # Shell to use when invoking shell scripts.
22309 SHELL=$lt_SHELL
22310
22311 # An echo program that protects backslashes.
22312 ECHO=$lt_ECHO
22313
22314 # The PATH separator for the build system.
22315 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22316
22317 # The host system.
22318 host_alias=$host_alias
22319 host=$host
22320 host_os=$host_os
22321
22322 # The build system.
22323 build_alias=$build_alias
22324 build=$build
22325 build_os=$build_os
22326
22327 # A sed program that does not truncate output.
22328 SED=$lt_SED
22329
22330 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22331 Xsed="\$SED -e 1s/^X//"
22332
22333 # A grep program that handles long lines.
22334 GREP=$lt_GREP
22335
22336 # An ERE matcher.
22337 EGREP=$lt_EGREP
22338
22339 # A literal string matcher.
22340 FGREP=$lt_FGREP
22341
22342 # A BSD- or MS-compatible name lister.
22343 NM=$lt_NM
22344
22345 # Whether we need soft or hard links.
22346 LN_S=$lt_LN_S
22347
22348 # What is the maximum length of a command?
22349 max_cmd_len=$max_cmd_len
22350
22351 # Object file suffix (normally "o").
22352 objext=$ac_objext
22353
22354 # Executable file suffix (normally "").
22355 exeext=$exeext
22356
22357 # whether the shell understands "unset".
22358 lt_unset=$lt_unset
22359
22360 # turn spaces into newlines.
22361 SP2NL=$lt_lt_SP2NL
22362
22363 # turn newlines into spaces.
22364 NL2SP=$lt_lt_NL2SP
22365
22366 # convert \$build file names to \$host format.
22367 to_host_file_cmd=$lt_cv_to_host_file_cmd
22368
22369 # convert \$build files to toolchain format.
22370 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22371
22372 # A file(cmd) program that detects file types.
22373 FILECMD=$lt_FILECMD
22374
22375 # An object symbol dumper.
22376 OBJDUMP=$lt_OBJDUMP
22377
22378 # Method to check whether dependent libraries are shared objects.
22379 deplibs_check_method=$lt_deplibs_check_method
22380
22381 # Command to use when deplibs_check_method = "file_magic".
22382 file_magic_cmd=$lt_file_magic_cmd
22383
22384 # How to find potential files when deplibs_check_method = "file_magic".
22385 file_magic_glob=$lt_file_magic_glob
22386
22387 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22388 want_nocaseglob=$lt_want_nocaseglob
22389
22390 # DLL creation program.
22391 DLLTOOL=$lt_DLLTOOL
22392
22393 # Command to associate shared and link libraries.
22394 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22395
22396 # The archiver.
22397 AR=$lt_AR
22398
22399 # Flags to create an archive (by configure).
22400 lt_ar_flags=$lt_ar_flags
22401
22402 # Flags to create an archive.
22403 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22404
22405 # How to feed a file listing to the archiver.
22406 archiver_list_spec=$lt_archiver_list_spec
22407
22408 # A symbol stripping program.
22409 STRIP=$lt_STRIP
22410
22411 # Commands used to install an old-style archive.
22412 RANLIB=$lt_RANLIB
22413 old_postinstall_cmds=$lt_old_postinstall_cmds
22414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22415
22416 # Whether to use a lock for old archive extraction.
22417 lock_old_archive_extraction=$lock_old_archive_extraction
22418
22419 # A C compiler.
22420 LTCC=$lt_CC
22421
22422 # LTCC compiler flags.
22423 LTCFLAGS=$lt_CFLAGS
22424
22425 # Take the output of nm and produce a listing of raw symbols and C names.
22426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22427
22428 # Transform the output of nm in a proper C declaration.
22429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22430
22431 # Transform the output of nm into a list of symbols to manually relocate.
22432 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22433
22434 # Transform the output of nm in a C name address pair.
22435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22436
22437 # Transform the output of nm in a C name address pair when lib prefix is needed.
22438 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22439
22440 # The name lister interface.
22441 nm_interface=$lt_lt_cv_nm_interface
22442
22443 # Specify filename containing input files for \$NM.
22444 nm_file_list_spec=$lt_nm_file_list_spec
22445
22446 # The root where to search for dependent libraries,and where our libraries should be installed.
22447 lt_sysroot=$lt_sysroot
22448
22449 # Command to truncate a binary pipe.
22450 lt_truncate_bin=$lt_lt_cv_truncate_bin
22451
22452 # The name of the directory that contains temporary libtool files.
22453 objdir=$objdir
22454
22455 # Used to examine libraries when file_magic_cmd begins with "file".
22456 MAGIC_CMD=$MAGIC_CMD
22457
22458 # Must we lock files when doing compilation?
22459 need_locks=$lt_need_locks
22460
22461 # Manifest tool.
22462 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22463
22464 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22465 DSYMUTIL=$lt_DSYMUTIL
22466
22467 # Tool to change global to local symbols on Mac OS X.
22468 NMEDIT=$lt_NMEDIT
22469
22470 # Tool to manipulate fat objects and archives on Mac OS X.
22471 LIPO=$lt_LIPO
22472
22473 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22474 OTOOL=$lt_OTOOL
22475
22476 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22477 OTOOL64=$lt_OTOOL64
22478
22479 # Old archive suffix (normally "a").
22480 libext=$libext
22481
22482 # Shared library suffix (normally ".so").
22483 shrext_cmds=$lt_shrext_cmds
22484
22485 # The commands to extract the exported symbol list from a shared archive.
22486 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22487
22488 # Variables whose values should be saved in libtool wrapper scripts and
22489 # restored at link time.
22490 variables_saved_for_relink=$lt_variables_saved_for_relink
22491
22492 # Do we need the "lib" prefix for modules?
22493 need_lib_prefix=$need_lib_prefix
22494
22495 # Do we need a version for libraries?
22496 need_version=$need_version
22497
22498 # Library versioning type.
22499 version_type=$version_type
22500
22501 # Shared library runtime path variable.
22502 runpath_var=$runpath_var
22503
22504 # Shared library path variable.
22505 shlibpath_var=$shlibpath_var
22506
22507 # Is shlibpath searched before the hard-coded library search path?
22508 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22509
22510 # Format of library name prefix.
22511 libname_spec=$lt_libname_spec
22512
22513 # List of archive names. First name is the real one, the rest are links.
22514 # The last name is the one that the linker finds with -lNAME
22515 library_names_spec=$lt_library_names_spec
22516
22517 # The coded name of the library, if different from the real name.
22518 soname_spec=$lt_soname_spec
22519
22520 # Permission mode override for installation of shared libraries.
22521 install_override_mode=$lt_install_override_mode
22522
22523 # Command to use after installation of a shared archive.
22524 postinstall_cmds=$lt_postinstall_cmds
22525
22526 # Command to use after uninstallation of a shared archive.
22527 postuninstall_cmds=$lt_postuninstall_cmds
22528
22529 # Commands used to finish a libtool library installation in a directory.
22530 finish_cmds=$lt_finish_cmds
22531
22532 # As "finish_cmds", except a single script fragment to be evaled but
22533 # not shown.
22534 finish_eval=$lt_finish_eval
22535
22536 # Whether we should hardcode library paths into libraries.
22537 hardcode_into_libs=$hardcode_into_libs
22538
22539 # Compile-time system search path for libraries.
22540 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22541
22542 # Detected run-time system search path for libraries.
22543 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22544
22545 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22546 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22547
22548 # Whether dlopen is supported.
22549 dlopen_support=$enable_dlopen
22550
22551 # Whether dlopen of programs is supported.
22552 dlopen_self=$enable_dlopen_self
22553
22554 # Whether dlopen of statically linked programs is supported.
22555 dlopen_self_static=$enable_dlopen_self_static
22556
22557 # Commands to strip libraries.
22558 old_striplib=$lt_old_striplib
22559 striplib=$lt_striplib
22560
22561
22562 # The linker used to build libraries.
22563 LD=$lt_LD
22564
22565 # How to create reloadable object files.
22566 reload_flag=$lt_reload_flag
22567 reload_cmds=$lt_reload_cmds
22568
22569 # Commands used to build an old-style archive.
22570 old_archive_cmds=$lt_old_archive_cmds
22571
22572 # A language specific compiler.
22573 CC=$lt_compiler
22574
22575 # Is the compiler the GNU compiler?
22576 with_gcc=$GCC
22577
22578 # Compiler flag to turn off builtin functions.
22579 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22580
22581 # Additional compiler flags for building library objects.
22582 pic_flag=$lt_lt_prog_compiler_pic
22583
22584 # How to pass a linker flag through the compiler.
22585 wl=$lt_lt_prog_compiler_wl
22586
22587 # Compiler flag to prevent dynamic linking.
22588 link_static_flag=$lt_lt_prog_compiler_static
22589
22590 # Does compiler simultaneously support -c and -o options?
22591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22592
22593 # Whether or not to add -lc for building shared libraries.
22594 build_libtool_need_lc=$archive_cmds_need_lc
22595
22596 # Whether or not to disallow shared libs when runtime libs are static.
22597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22598
22599 # Compiler flag to allow reflexive dlopens.
22600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22601
22602 # Compiler flag to generate shared objects directly from archives.
22603 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22604
22605 # Whether the compiler copes with passing no objects directly.
22606 compiler_needs_object=$lt_compiler_needs_object
22607
22608 # Create an old-style archive from a shared archive.
22609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22610
22611 # Create a temporary old-style archive to link instead of a shared archive.
22612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22613
22614 # Commands used to build a shared archive.
22615 archive_cmds=$lt_archive_cmds
22616 archive_expsym_cmds=$lt_archive_expsym_cmds
22617
22618 # Commands used to build a loadable module if different from building
22619 # a shared archive.
22620 module_cmds=$lt_module_cmds
22621 module_expsym_cmds=$lt_module_expsym_cmds
22622
22623 # Whether we are building with GNU ld or not.
22624 with_gnu_ld=$lt_with_gnu_ld
22625
22626 # Flag that allows shared libraries with undefined symbols to be built.
22627 allow_undefined_flag=$lt_allow_undefined_flag
22628
22629 # Flag that enforces no undefined symbols.
22630 no_undefined_flag=$lt_no_undefined_flag
22631
22632 # Flag to hardcode \$libdir into a binary during linking.
22633 # This must work even if \$libdir does not exist
22634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22635
22636 # Whether we need a single "-rpath" flag with a separated argument.
22637 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22638
22639 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22640 # DIR into the resulting binary.
22641 hardcode_direct=$hardcode_direct
22642
22643 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22644 # DIR into the resulting binary and the resulting library dependency is
22645 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22646 # library is relocated.
22647 hardcode_direct_absolute=$hardcode_direct_absolute
22648
22649 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22650 # into the resulting binary.
22651 hardcode_minus_L=$hardcode_minus_L
22652
22653 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22654 # into the resulting binary.
22655 hardcode_shlibpath_var=$hardcode_shlibpath_var
22656
22657 # Set to "yes" if building a shared library automatically hardcodes DIR
22658 # into the library and all subsequent libraries and executables linked
22659 # against it.
22660 hardcode_automatic=$hardcode_automatic
22661
22662 # Set to yes if linker adds runtime paths of dependent libraries
22663 # to runtime path list.
22664 inherit_rpath=$inherit_rpath
22665
22666 # Whether libtool must link a program against all its dependency libraries.
22667 link_all_deplibs=$link_all_deplibs
22668
22669 # Set to "yes" if exported symbols are required.
22670 always_export_symbols=$always_export_symbols
22671
22672 # The commands to list exported symbols.
22673 export_symbols_cmds=$lt_export_symbols_cmds
22674
22675 # Symbols that should not be listed in the preloaded symbols.
22676 exclude_expsyms=$lt_exclude_expsyms
22677
22678 # Symbols that must always be exported.
22679 include_expsyms=$lt_include_expsyms
22680
22681 # Commands necessary for linking programs (against libraries) with templates.
22682 prelink_cmds=$lt_prelink_cmds
22683
22684 # Commands necessary for finishing linking programs.
22685 postlink_cmds=$lt_postlink_cmds
22686
22687 # Specify filename containing input files.
22688 file_list_spec=$lt_file_list_spec
22689
22690 # How to hardcode a shared library path into an executable.
22691 hardcode_action=$hardcode_action
22692
22693 # ### END LIBTOOL CONFIG
22694
22695 _LT_EOF
22696
22697 cat <<'_LT_EOF' >> "$cfgfile"
22698
22699 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22700
22701 # func_munge_path_list VARIABLE PATH
22702 # -----------------------------------
22703 # VARIABLE is name of variable containing _space_ separated list of
22704 # directories to be munged by the contents of PATH, which is string
22705 # having a format:
22706 # "DIR[:DIR]:"
22707 # string "DIR[ DIR]" will be prepended to VARIABLE
22708 # ":DIR[:DIR]"
22709 # string "DIR[ DIR]" will be appended to VARIABLE
22710 # "DIRP[:DIRP]::[DIRA:]DIRA"
22711 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22712 # "DIRA[ DIRA]" will be appended to VARIABLE
22713 # "DIR[:DIR]"
22714 # VARIABLE will be replaced by "DIR[ DIR]"
22715 func_munge_path_list ()
22716 {
22717 case x$2 in
22718 x)
22719 ;;
22720 *:)
22721 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22722 ;;
22723 x:*)
22724 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22725 ;;
22726 *::*)
22727 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22728 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22729 ;;
22730 *)
22731 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22732 ;;
22733 esac
22734 }
22735
22736
22737 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22738 func_cc_basename ()
22739 {
22740 for cc_temp in $*""; do
22741 case $cc_temp in
22742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22744 \-*) ;;
22745 *) break;;
22746 esac
22747 done
22748 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22749 }
22750
22751
22752 # ### END FUNCTIONS SHARED WITH CONFIGURE
22753
22754 _LT_EOF
22755
22756 case $host_os in
22757 aix3*)
22758 cat <<\_LT_EOF >> "$cfgfile"
22759 # AIX sometimes has problems with the GCC collect2 program. For some
22760 # reason, if we set the COLLECT_NAMES environment variable, the problems
22761 # vanish in a puff of smoke.
22762 if test set != "${COLLECT_NAMES+set}"; then
22763 COLLECT_NAMES=
22764 export COLLECT_NAMES
22765 fi
22766 _LT_EOF
22767 ;;
22768 esac
22769
22770
22771
22772 ltmain=$ac_aux_dir/ltmain.sh
22773
22774
22775 # We use sed instead of cat because bash on DJGPP gets confused if
22776 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22777 # text mode, it properly converts lines to CR/LF. This bash problem
22778 # is reportedly fixed, but why not run on old versions too?
22779 $SED '$q' "$ltmain" >> "$cfgfile" \
22780 || (rm -f "$cfgfile"; exit 1)
22781
22782 mv -f "$cfgfile" "$ofile" ||
22783 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22784 chmod +x "$ofile"
22785
22786 ;;
22787 "default-1":C)
22788 for ac_file in $CONFIG_FILES; do
22789 # Support "outfile[:infile[:infile...]]"
22790 case "$ac_file" in
22791 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22792 esac
22793 # PO directories have a Makefile.in generated from Makefile.in.in.
22794 case "$ac_file" in */Makefile.in)
22795 # Adjust a relative srcdir.
22796 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22797 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22798 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22799 # In autoconf-2.13 it is called $ac_given_srcdir.
22800 # In autoconf-2.50 it is called $srcdir.
22801 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22802 case "$ac_given_srcdir" in
22803 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22804 /*) top_srcdir="$ac_given_srcdir" ;;
22805 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22806 esac
22807 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22808 rm -f "$ac_dir/POTFILES"
22809 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22810 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22811 POMAKEFILEDEPS="POTFILES.in"
22812 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22813 # on $ac_dir but don't depend on user-specified configuration
22814 # parameters.
22815 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22816 # The LINGUAS file contains the set of available languages.
22817 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22818 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22819 fi
22820 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22821 # Hide the ALL_LINGUAS assigment from automake.
22822 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22823 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22824 else
22825 # The set of available languages was given in configure.in.
22826 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22827 fi
22828 # Compute POFILES
22829 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22830 # Compute UPDATEPOFILES
22831 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22832 # Compute DUMMYPOFILES
22833 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22834 # Compute GMOFILES
22835 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22836 case "$ac_given_srcdir" in
22837 .) srcdirpre= ;;
22838 *) srcdirpre='$(srcdir)/' ;;
22839 esac
22840 POFILES=
22841 UPDATEPOFILES=
22842 DUMMYPOFILES=
22843 GMOFILES=
22844 for lang in $ALL_LINGUAS; do
22845 POFILES="$POFILES $srcdirpre$lang.po"
22846 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22847 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22848 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22849 done
22850 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22851 # environment variable.
22852 INST_LINGUAS=
22853 if test -n "$ALL_LINGUAS"; then
22854 for presentlang in $ALL_LINGUAS; do
22855 useit=no
22856 if test "%UNSET%" != "$LINGUAS"; then
22857 desiredlanguages="$LINGUAS"
22858 else
22859 desiredlanguages="$ALL_LINGUAS"
22860 fi
22861 for desiredlang in $desiredlanguages; do
22862 # Use the presentlang catalog if desiredlang is
22863 # a. equal to presentlang, or
22864 # b. a variant of presentlang (because in this case,
22865 # presentlang can be used as a fallback for messages
22866 # which are not translated in the desiredlang catalog).
22867 case "$desiredlang" in
22868 "$presentlang"*) useit=yes;;
22869 esac
22870 done
22871 if test $useit = yes; then
22872 INST_LINGUAS="$INST_LINGUAS $presentlang"
22873 fi
22874 done
22875 fi
22876 CATALOGS=
22877 if test -n "$INST_LINGUAS"; then
22878 for lang in $INST_LINGUAS; do
22879 CATALOGS="$CATALOGS $lang.gmo"
22880 done
22881 fi
22882 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22883 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"
22884 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22885 if test -f "$f"; then
22886 case "$f" in
22887 *.orig | *.bak | *~) ;;
22888 *) cat "$f" >> "$ac_dir/Makefile" ;;
22889 esac
22890 fi
22891 done
22892 fi
22893 ;;
22894 esac
22895 done ;;
22896
22897 esac
22898 done # for ac_tag
22899
22900
22901 as_fn_exit 0
22902 _ACEOF
22903 ac_clean_files=$ac_clean_files_save
22904
22905 test $ac_write_fail = 0 ||
22906 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22907
22908
22909 # configure is writing to config.log, and then calls config.status.
22910 # config.status does its own redirection, appending to config.log.
22911 # Unfortunately, on DOS this fails, as config.log is still kept open
22912 # by configure, so config.status won't be able to write to it; its
22913 # output is simply discarded. So we exec the FD to /dev/null,
22914 # effectively closing config.log, so it can be properly (re)opened and
22915 # appended to by config.status. When coming back to configure, we
22916 # need to make the FD available again.
22917 if test "$no_create" != yes; then
22918 ac_cs_success=:
22919 ac_config_status_args=
22920 test "$silent" = yes &&
22921 ac_config_status_args="$ac_config_status_args --quiet"
22922 exec 5>/dev/null
22923 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22924 exec 5>>config.log
22925 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22926 # would make configure fail if this is the last instruction.
22927 $ac_cs_success || as_fn_exit 1
22928 fi
22929 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22931 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22932 fi
22933
22934