Debian Codegraph @

texk/xdvik/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xdvik 22.87.06.
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 [email protected]
282 $0: about your system, including any error possibly output
283 $0: before this message. Then install a modern shell, or
284 $0: manually run the script under such a shell if you do
285 $0: 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='xdvik'
616 PACKAGE_TARNAME='xdvik'
617 PACKAGE_VERSION='22.87.06'
618 PACKAGE_STRING='xdvik 22.87.06'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="xdvi.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_option_checking=no
657 enable_year2038=no
658 ac_subst_vars='am__EXEEXT_FALSE
659 am__EXEEXT_TRUE
660 LTLIBOBJS
661 subdirs
662 XDVIK_VERSION
663 FREETYPE2_RULE
664 FREETYPE2_DEPEND
665 FREETYPE2_LIBS
666 FREETYPE2_INCLUDES
667 FT2_CONFIG
668 ZLIB_RULE
669 ZLIB_DEPEND
670 ZLIB_LIBS
671 ZLIB_INCLUDES
672 KPATHSEA_RULE
673 KPATHSEA_DEPEND
674 KPATHSEA_LIBS
675 KPATHSEA_INCLUDES
676 PKG_CONFIG
677 final_exec_name
678 x_tool_libs
679 x_ext_lib
680 x_xpm_libs
681 x_xmu_lib
682 iconv_libs
683 iconv_libpath
684 iconv_includes
685 x_linker_options
686 X_EXTRA_LIBS
687 X_LIBS
688 X_PRE_LIBS
689 X_CFLAGS
690 CPP
691 XMKMF
692 LIBOBJS
693 ALLOCA
694 PS_DEF
695 LT_SYS_LIBRARY_PATH
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 MANIFEST_TOOL
702 RANLIB
703 FILECMD
704 LN_S
705 NM
706 ac_ct_DUMPBIN
707 DUMPBIN
708 LD
709 FGREP
710 EGREP
711 GREP
712 SED
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 LIBTOOL
722 OBJDUMP
723 DLLTOOL
724 AS
725 ac_ct_AR
726 AR
727 WARNING_CFLAGS
728 am__fastdepCC_FALSE
729 am__fastdepCC_TRUE
730 CCDEPMODE
731 am__nodep
732 AMDEPBACKSLASH
733 AMDEP_FALSE
734 AMDEP_TRUE
735 am__include
736 DEPDIR
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 am__xargs_n
748 am__rm_f_notfound
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 CSCOPE
754 ETAGS
755 CTAGS
756 am__untar
757 am__tar
758 AMTAR
759 am__leading_dot
760 SET_MAKE
761 AWK
762 mkdir_p
763 MKDIR_P
764 INSTALL_STRIP_PROGRAM
765 STRIP
766 install_sh
767 MAKEINFO
768 AUTOHEADER
769 AUTOMAKE
770 AUTOCONF
771 ACLOCAL
772 VERSION
773 PACKAGE
774 CYGPATH_W
775 am__isrc
776 INSTALL_DATA
777 INSTALL_SCRIPT
778 INSTALL_PROGRAM
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 runstatedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL
818 am__quote'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_silent_rules
823 enable_maintainer_mode
824 enable_dependency_tracking
825 enable_compiler_warnings
826 enable_shared
827 enable_static
828 enable_pic
829 with_pic
830 enable_fast_install
831 enable_aix_soname
832 with_aix_soname
833 with_gnu_ld
834 with_sysroot
835 enable_libtool_lock
836 enable_largefile
837 with_xdvi_x_toolkit
838 with_ps
839 enable_a4
840 with_x
841 enable_xi2_scrolling
842 with_iconv
843 with_iconv_include
844 with_iconv_libdir
845 enable_magick
846 with_xpm
847 with_xpm_includes
848 with_xpm_libraries
849 with_motif_include
850 with_motif_libdir
851 with_system_kpathsea
852 with_system_zlib
853 with_zlib_includes
854 with_zlib_libdir
855 with_system_freetype2
856 with_default_gs_lib_path
857 with_default_dvips_path
858 with_default_ps2pdf_path
859 enable_year2038
860 '
861 ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CC
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
869 LT_SYS_LIBRARY_PATH
870 XMKMF
871 CPP'
872 ac_subdirs_all='squeeze'
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 runstatedir='${localstatedir}/run'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
914 infodir='${datarootdir}/info'
915 htmldir='${docdir}'
916 dvidir='${docdir}'
917 pdfdir='${docdir}'
918 psdir='${docdir}'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
922
923 ac_prev=
924 ac_dashdash=
925 for ac_option
926 do
927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
929 eval $ac_prev=\$ac_option
930 ac_prev=
931 continue
932 fi
933
934 case $ac_option in
935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 *=) ac_optarg= ;;
937 *) ac_optarg=yes ;;
938 esac
939
940 case $ac_dashdash$ac_option in
941 --)
942 ac_dashdash=yes ;;
943
944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 ac_prev=bindir ;;
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947 bindir=$ac_optarg ;;
948
949 -build | --build | --buil | --bui | --bu)
950 ac_prev=build_alias ;;
951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952 build_alias=$ac_optarg ;;
953
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959 cache_file=$ac_optarg ;;
960
961 --config-cache | -C)
962 cache_file=config.cache ;;
963
964 -datadir | --datadir | --datadi | --datad)
965 ac_prev=datadir ;;
966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
967 datadir=$ac_optarg ;;
968
969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
975
976 -disable-* | --disable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: '$ac_useropt'"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=no ;;
991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1001
1002 -enable-* | --enable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: '$ac_useropt'"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=\$ac_optarg ;;
1017
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1026
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1029 with_gas=yes ;;
1030
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1037
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1042
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 ac_prev=htmldir ;;
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 | --ht=*)
1047 htmldir=$ac_optarg ;;
1048
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1055
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 ac_prev=infodir ;;
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1060
1061 -libdir | --libdir | --libdi | --libd)
1062 ac_prev=libdir ;;
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1065
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1072
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1077
1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
1079 | --localstate | --localstat | --localsta | --localst | --locals)
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083 localstatedir=$ac_optarg ;;
1084
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 ac_prev=mandir ;;
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1089
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1092 with_fp=no ;;
1093
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1096 no_create=yes ;;
1097
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 no_recursion=yes ;;
1101
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1110
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 ac_prev=prefix ;;
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1115
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1122
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1129
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1146
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 ac_prev=pdfdir ;;
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1151
1152 -psdir | --psdir | --psdi | --psd | --ps)
1153 ac_prev=psdir ;;
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 psdir=$ac_optarg ;;
1156
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1159 silent=yes ;;
1160
1161 -runstatedir | --runstatedir | --runstatedi | --runstated \
1162 | --runstate | --runstat | --runsta | --runst | --runs \
1163 | --run | --ru | --r)
1164 ac_prev=runstatedir ;;
1165 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1166 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1167 | --run=* | --ru=* | --r=*)
1168 runstatedir=$ac_optarg ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1214
1215 -with-* | --with-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: '$ac_useropt'"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: '$ac_useropt'"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1264
1265 -*) as_fn_error $? "unrecognized option: '$ac_option'
1266 Try '$0 --help' for more information"
1267 ;;
1268
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
1274 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1275 esac
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1278
1279 *)
1280 # FIXME: should be removed in autoconf 3.0.
1281 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285 ;;
1286
1287 esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error $? "missing argument to $ac_option"
1293 fi
1294
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1299 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1301 fi
1302
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir runstatedir
1308 do
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1322 done
1323
1324 # There might be people who depend on the old broken behavior: '$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1330
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338 fi
1339
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343 test "$silent" = yes && exec 6>/dev/null
1344
1345
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error $? "working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error $? "pwd does not report name of working directory"
1352
1353
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 printf "%s\n" X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
1381 srcdir=$ac_confdir
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 srcdir=..
1384 fi
1385 else
1386 ac_srcdir_defaulted=no
1387 fi
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1391 fi
1392 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1393 ac_abs_confdir=`(
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1395 pwd)`
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399 fi
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1403 case $srcdir in
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 esac
1406 for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 done
1412
1413 #
1414 # Report the --help message.
1415 #
1416 if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1419 cat <<_ACEOF
1420 'configure' configures xdvik 22.87.06 to adapt to many kinds of systems.
1421
1422 Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425 VAR=VALUE. See below for descriptions of some of the useful variables.
1426
1427 Defaults for the options are specified in brackets.
1428
1429 Configuration:
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
1434 -q, --quiet, --silent do not print 'checking ...' messages
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for '--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or '..']
1439
1440 Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
1442 [$ac_default_prefix]
1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 [PREFIX]
1445
1446 By default, 'make install' will install all the files in
1447 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1448 an installation prefix other than '$ac_default_prefix' using '--prefix',
1449 for instance '--prefix=\$HOME'.
1450
1451 For better control, use the options below.
1452
1453 Fine tuning of the installation directories:
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/xdvik]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1474 _ACEOF
1475
1476 cat <<\_ACEOF
1477
1478 Program names:
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482
1483 X features:
1484 --x-includes=DIR X include files are in DIR
1485 --x-libraries=DIR X library files are in DIR
1486
1487 System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494 case $ac_init_help in
1495 short | recursive ) echo "Configuration of xdvik 22.87.06:";;
1496 esac
1497 cat <<\_ACEOF
1498
1499 Optional Features:
1500 --disable-option-checking ignore unrecognized --enable/--with options
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503 --enable-silent-rules less verbose build output (undo: "make V=1")
1504 --disable-silent-rules verbose build output (undo: "make V=0")
1505 --enable-maintainer-mode
1506 enable make rules and dependencies not useful (and
1507 sometimes confusing) to the casual installer
1508 --enable-dependency-tracking
1509 do not reject slow dependency extractors
1510 --disable-dependency-tracking
1511 speeds up one-time build
1512 --enable-compiler-warnings=[no|min|yes|max|all]
1513 Turn on compiler warnings [default: yes if
1514 maintainer-mode, min otherwise]
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --enable-fast-install[=PKGS]
1520 optimize for fast installation [default=yes]
1521 --enable-aix-soname=aix|svr4|both
1522 shared library versioning (aka "SONAME") variant to
1523 provide on AIX, [default=aix].
1524 --disable-libtool-lock avoid locking (might break parallel builds)
1525 --disable-largefile omit support for large files
1526 --disable-a4 Set default paper size to letter and default unit to
1527 inch
1528 --enable-xi2-scrolling Use XInput 2.1 'smooth scrolling' if available
1529 (default: disabled for native TL build)
1530 --enable-magick Use ImageMagick to load/render image files.
1531 EXPERIMENTAL - DO NOT USE!
1532 --enable-year2038 support timestamps after 2038
1533
1534 Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1537 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1538 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1539 compiler's sysroot if not specified).
1540 --with-xdvi-x-toolkit=KIT
1541 Use toolkit KIT (xaw/motif/xaw3d/neXtaw) for xdvi
1542 [default: Xaw]
1543 --with-ps=PS Use PostScript (PS=no/yes/gs/dps/news, default gs)
1544 --with-x use the X Window System
1545 --with-iconv Use an iconv library [default=check]
1546 --with-iconv-include=DIR
1547 Specify the location of <iconv.h> header
1548 --with-iconv-libdir=DIR Specify the location of iconv (-liconv or -lrecode)
1549 library
1550 --without-xpm Do not use the Xpm library (will disable the
1551 toolbar)
1552 --with-xpm-include=DIR Specify the location of Xpm include files
1553 --with-xpm-libdir=DIR Specify the location of Xpm libraries
1554 --with-motif-include=DIR
1555 Specify the location of Motif include files
1556 --with-motif-libdir=DIR Specify the location of Motif libraries
1557 --with-system-kpathsea use installed kpathsea headers and library (requires
1558 pkg-config)
1559 --with-system-zlib use installed zlib headers and library
1560 --with-zlib-includes=DIR
1561 zlib headers installed in DIR
1562 --with-zlib-libdir=DIR zlib library installed in DIR
1563 --with-system-freetype2 use installed freetype2 headers and library
1564 (requires freetype-config)
1565 --with-default-gs-lib-path=PATH
1566 set default path for finding font aliases to PATH
1567 --with-default-dvips-path=CMD
1568 Use CMD as default DVI to PS converter
1569 --with-default-ps2pdf-path=CMD
1570 Use CMD as default PS to PDF converter
1571
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 LT_SYS_LIBRARY_PATH
1581 User-defined run-time library search path.
1582 XMKMF Path to xmkmf, Makefile generator for X Window System
1583 CPP C preprocessor
1584
1585 Use these variables to override the choices made by 'configure' or to help
1586 it to find libraries and programs with nonstandard names/locations.
1587
1588 Report bugs to <[email protected]>.
1589 _ACEOF
1590 ac_status=$?
1591 fi
1592
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
1599 ac_builddir=.
1600
1601 case "$ac_dir" in
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *)
1604 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611 esac
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1616
1617 case $srcdir in
1618 .) # We are building in place.
1619 ac_srcdir=.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 esac
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for configure.gnu first; this name is used for a wrapper for
1635 # Metaconfig's "Configure" on case-insensitive file systems.
1636 if test -f "$ac_srcdir/configure.gnu"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639 elif test -f "$ac_srcdir/configure"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure" --help=recursive
1642 else
1643 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644 fi || ac_status=$?
1645 cd "$ac_pwd" || { ac_status=$?; break; }
1646 done
1647 fi
1648
1649 test -n "$ac_init_help" && exit $ac_status
1650 if $ac_init_version; then
1651 cat <<\_ACEOF
1652 xdvik configure 22.87.06
1653 generated by GNU Autoconf 2.72
1654
1655 Copyright (C) 2023 Free Software Foundation, Inc.
1656 This configure script is free software; the Free Software Foundation
1657 gives unlimited permission to copy, distribute and modify it.
1658 _ACEOF
1659 exit
1660 fi
1661
1662 ## ------------------------ ##
1663 ## Autoconf initialization. ##
1664 ## ------------------------ ##
1665
1666 # ac_fn_c_try_compile LINENO
1667 # --------------------------
1668 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_compile ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 rm -f conftest.$ac_objext conftest.beam
1673 if { { ac_try="$ac_compile"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 printf "%s\n" "$ac_try_echo"; } >&5
1680 (eval "$ac_compile") 2>conftest.err
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1686 fi
1687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && {
1689 test -z "$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 } && test -s conftest.$ac_objext
1692 then :
1693 ac_retval=0
1694 else case e in #(
1695 e) printf "%s\n" "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1 ;;
1699 esac
1700 fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_compile
1705
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 printf %s "checking for $2... " >&6; }
1715 if eval test \${$3+y}
1716 then :
1717 printf %s "(cached) " >&6
1718 else case e in #(
1719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 $4
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_compile "$LINENO"
1725 then :
1726 eval "$3=yes"
1727 else case e in #(
1728 e) eval "$3=no" ;;
1729 esac
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1732 esac
1733 fi
1734 eval ac_res=\$$3
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 printf "%s\n" "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738
1739 } # ac_fn_c_check_header_compile
1740
1741 # ac_fn_c_try_link LINENO
1742 # -----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_link ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1748 if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 printf "%s\n" "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest$ac_exeext && {
1767 test "$cross_compiling" = yes ||
1768 test -x conftest$ac_exeext
1769 }
1770 then :
1771 ac_retval=0
1772 else case e in #(
1773 e) printf "%s\n" "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1 ;;
1777 esac
1778 fi
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_link
1788
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 printf %s "checking for $2... " >&6; }
1797 if eval test \${$3+y}
1798 then :
1799 printf %s "(cached) " >&6
1800 else case e in #(
1801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1805 #define $2 innocuous_$2
1806
1807 /* System header to define __stub macros and hopefully few prototypes,
1808 which can conflict with char $2 (void); below. */
1809
1810 #include <limits.h>
1811 #undef $2
1812
1813 /* Override any GCC internal prototype to avoid an error.
1814 Use char because int might match the return type of a GCC
1815 builtin and then its argument prototype would still apply. */
1816 #ifdef __cplusplus
1817 extern "C"
1818 #endif
1819 char $2 (void);
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined __stub_$2 || defined __stub___$2
1824 choke me
1825 #endif
1826
1827 int
1828 main (void)
1829 {
1830 return $2 ();
1831 ;
1832 return 0;
1833 }
1834 _ACEOF
1835 if ac_fn_c_try_link "$LINENO"
1836 then :
1837 eval "$3=yes"
1838 else case e in #(
1839 e) eval "$3=no" ;;
1840 esac
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1843 conftest$ac_exeext conftest.$ac_ext ;;
1844 esac
1845 fi
1846 eval ac_res=\$$3
1847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 printf "%s\n" "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_func
1852
1853 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1854 # -------------------------------------------
1855 # Tests whether TYPE exists after having included INCLUDES, setting cache
1856 # variable VAR accordingly.
1857 ac_fn_c_check_type ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 printf %s "checking for $2... " >&6; }
1862 if eval test \${$3+y}
1863 then :
1864 printf %s "(cached) " >&6
1865 else case e in #(
1866 e) eval "$3=no"
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 $4
1870 int
1871 main (void)
1872 {
1873 if (sizeof ($2))
1874 return 0;
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"
1880 then :
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 $4
1884 int
1885 main (void)
1886 {
1887 if (sizeof (($2)))
1888 return 0;
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"
1894 then :
1895
1896 else case e in #(
1897 e) eval "$3=yes" ;;
1898 esac
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1903 esac
1904 fi
1905 eval ac_res=\$$3
1906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 printf "%s\n" "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_type
1911
1912 # ac_fn_c_find_intX_t LINENO BITS VAR
1913 # -----------------------------------
1914 # Finds a signed integer type with width BITS, setting cache variable VAR
1915 # accordingly.
1916 ac_fn_c_find_intX_t ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1920 printf %s "checking for int$2_t... " >&6; }
1921 if eval test \${$3+y}
1922 then :
1923 printf %s "(cached) " >&6
1924 else case e in #(
1925 e) eval "$3=no"
1926 # Order is important - never check a type that is potentially smaller
1927 # than half of the expected target width.
1928 for ac_type in int$2_t 'int' 'long int' \
1929 'long long int' 'short int' 'signed char'; do
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 $ac_includes_default
1933 enum { N = $2 / 2 - 1 };
1934 int
1935 main (void)
1936 {
1937 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"
1946 then :
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 $ac_includes_default
1950 enum { N = $2 / 2 - 1 };
1951 int
1952 main (void)
1953 {
1954 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1955 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1956 test_array [0] = 0;
1957 return test_array [0];
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"
1964 then :
1965
1966 else case e in #(
1967 e) case $ac_type in #(
1968 int$2_t) :
1969 eval "$3=yes" ;; #(
1970 *) :
1971 eval "$3=\$ac_type" ;;
1972 esac ;;
1973 esac
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1978 if eval test \"x\$"$3"\" = x"no"
1979 then :
1980
1981 else case e in #(
1982 e) break ;;
1983 esac
1984 fi
1985 done ;;
1986 esac
1987 fi
1988 eval ac_res=\$$3
1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 printf "%s\n" "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_find_intX_t
1994
1995 # ac_fn_c_find_uintX_t LINENO BITS VAR
1996 # ------------------------------------
1997 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1998 # accordingly.
1999 ac_fn_c_find_uintX_t ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2003 printf %s "checking for uint$2_t... " >&6; }
2004 if eval test \${$3+y}
2005 then :
2006 printf %s "(cached) " >&6
2007 else case e in #(
2008 e) eval "$3=no"
2009 # Order is important - never check a type that is potentially smaller
2010 # than half of the expected target width.
2011 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2012 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 $ac_includes_default
2016 int
2017 main (void)
2018 {
2019 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2020 test_array [0] = 0;
2021 return test_array [0];
2022
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"
2028 then :
2029 case $ac_type in #(
2030 uint$2_t) :
2031 eval "$3=yes" ;; #(
2032 *) :
2033 eval "$3=\$ac_type" ;;
2034 esac
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2037 if eval test \"x\$"$3"\" = x"no"
2038 then :
2039
2040 else case e in #(
2041 e) break ;;
2042 esac
2043 fi
2044 done ;;
2045 esac
2046 fi
2047 eval ac_res=\$$3
2048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 printf "%s\n" "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_find_uintX_t
2053
2054 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2055 # ------------------------------------------------------------------
2056 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2057 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2058 ac_fn_check_decl ()
2059 {
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 as_decl_name=`echo $2|sed 's/ *(.*//'`
2062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2063 printf %s "checking whether $as_decl_name is declared... " >&6; }
2064 if eval test \${$3+y}
2065 then :
2066 printf %s "(cached) " >&6
2067 else case e in #(
2068 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2069 eval ac_save_FLAGS=\$$6
2070 as_fn_append $6 " $5"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $4
2074 int
2075 main (void)
2076 {
2077 #ifndef $as_decl_name
2078 #ifdef __cplusplus
2079 (void) $as_decl_use;
2080 #else
2081 (void) $as_decl_name;
2082 #endif
2083 #endif
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"
2090 then :
2091 eval "$3=yes"
2092 else case e in #(
2093 e) eval "$3=no" ;;
2094 esac
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2097 eval $6=\$ac_save_FLAGS
2098 ;;
2099 esac
2100 fi
2101 eval ac_res=\$$3
2102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 printf "%s\n" "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106 } # ac_fn_check_decl
2107
2108 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2109 # ----------------------------------------------------
2110 # Tries to find if the field MEMBER exists in type AGGR, after including
2111 # INCLUDES, setting cache variable VAR accordingly.
2112 ac_fn_c_check_member ()
2113 {
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2116 printf %s "checking for $2.$3... " >&6; }
2117 if eval test \${$4+y}
2118 then :
2119 printf %s "(cached) " >&6
2120 else case e in #(
2121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $5
2124 int
2125 main (void)
2126 {
2127 static $2 ac_aggr;
2128 if (ac_aggr.$3)
2129 return 0;
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"
2135 then :
2136 eval "$4=yes"
2137 else case e in #(
2138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 $5
2141 int
2142 main (void)
2143 {
2144 static $2 ac_aggr;
2145 if (sizeof ac_aggr.$3)
2146 return 0;
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"
2152 then :
2153 eval "$4=yes"
2154 else case e in #(
2155 e) eval "$4=no" ;;
2156 esac
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2159 esac
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2162 esac
2163 fi
2164 eval ac_res=\$$4
2165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 printf "%s\n" "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168
2169 } # ac_fn_c_check_member
2170
2171 # ac_fn_c_try_run LINENO
2172 # ----------------------
2173 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2174 # executables *can* be run.
2175 ac_fn_c_try_run ()
2176 {
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 if { { ac_try="$ac_link"
2179 case "(($ac_try" in
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 printf "%s\n" "$ac_try_echo"; } >&5
2185 (eval "$ac_link") 2>&5
2186 ac_status=$?
2187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2189 { { case "(($ac_try" in
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2192 esac
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 printf "%s\n" "$ac_try_echo"; } >&5
2195 (eval "$ac_try") 2>&5
2196 ac_status=$?
2197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198 test $ac_status = 0; }; }
2199 then :
2200 ac_retval=0
2201 else case e in #(
2202 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2203 printf "%s\n" "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=$ac_status ;;
2207 esac
2208 fi
2209 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211 as_fn_set_status $ac_retval
2212
2213 } # ac_fn_c_try_run
2214
2215 # ac_fn_c_try_cpp LINENO
2216 # ----------------------
2217 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2218 ac_fn_c_try_cpp ()
2219 {
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 if { { ac_try="$ac_cpp conftest.$ac_ext"
2222 case "(($ac_try" in
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2225 esac
2226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227 printf "%s\n" "$ac_try_echo"; } >&5
2228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2229 ac_status=$?
2230 if test -s conftest.err; then
2231 grep -v '^ *+' conftest.err >conftest.er1
2232 cat conftest.er1 >&5
2233 mv -f conftest.er1 conftest.err
2234 fi
2235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236 test $ac_status = 0; } > conftest.i && {
2237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2238 test ! -s conftest.err
2239 }
2240 then :
2241 ac_retval=0
2242 else case e in #(
2243 e) printf "%s\n" "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2245
2246 ac_retval=1 ;;
2247 esac
2248 fi
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status $ac_retval
2251
2252 } # ac_fn_c_try_cpp
2253
2254 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2255 # --------------------------------------------
2256 # Tries to find the compile-time value of EXPR in a program that includes
2257 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2258 # computed
2259 ac_fn_c_compute_int ()
2260 {
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if test "$cross_compiling" = yes; then
2263 # Depending upon the size, compute the lo and hi bounds.
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 $4
2267 int
2268 main (void)
2269 {
2270 static int test_array [1 - 2 * !(($2) >= 0)];
2271 test_array [0] = 0;
2272 return test_array [0];
2273
2274 ;
2275 return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"
2279 then :
2280 ac_lo=0 ac_mid=0
2281 while :; do
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 $4
2285 int
2286 main (void)
2287 {
2288 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289 test_array [0] = 0;
2290 return test_array [0];
2291
2292 ;
2293 return 0;
2294 }
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"
2297 then :
2298 ac_hi=$ac_mid; break
2299 else case e in #(
2300 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2301 if test $ac_lo -le $ac_mid; then
2302 ac_lo= ac_hi=
2303 break
2304 fi
2305 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2306 esac
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2309 done
2310 else case e in #(
2311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2313 $4
2314 int
2315 main (void)
2316 {
2317 static int test_array [1 - 2 * !(($2) < 0)];
2318 test_array [0] = 0;
2319 return test_array [0];
2320
2321 ;
2322 return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_compile "$LINENO"
2326 then :
2327 ac_hi=-1 ac_mid=-1
2328 while :; do
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2331 $4
2332 int
2333 main (void)
2334 {
2335 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2336 test_array [0] = 0;
2337 return test_array [0];
2338
2339 ;
2340 return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"
2344 then :
2345 ac_lo=$ac_mid; break
2346 else case e in #(
2347 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2348 if test $ac_mid -le $ac_hi; then
2349 ac_lo= ac_hi=
2350 break
2351 fi
2352 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2353 esac
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2356 done
2357 else case e in #(
2358 e) ac_lo= ac_hi= ;;
2359 esac
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2362 esac
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2365 # Binary search between lo and hi bounds.
2366 while test "x$ac_lo" != "x$ac_hi"; do
2367 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2370 $4
2371 int
2372 main (void)
2373 {
2374 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2375 test_array [0] = 0;
2376 return test_array [0];
2377
2378 ;
2379 return 0;
2380 }
2381 _ACEOF
2382 if ac_fn_c_try_compile "$LINENO"
2383 then :
2384 ac_hi=$ac_mid
2385 else case e in #(
2386 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2387 esac
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2390 done
2391 case $ac_lo in #((
2392 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2393 '') ac_retval=1 ;;
2394 esac
2395 else
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2398 $4
2399 static long int longval (void) { return $2; }
2400 static unsigned long int ulongval (void) { return $2; }
2401 #include <stdio.h>
2402 #include <stdlib.h>
2403 int
2404 main (void)
2405 {
2406
2407 FILE *f = fopen ("conftest.val", "w");
2408 if (! f)
2409 return 1;
2410 if (($2) < 0)
2411 {
2412 long int i = longval ();
2413 if (i != ($2))
2414 return 1;
2415 fprintf (f, "%ld", i);
2416 }
2417 else
2418 {
2419 unsigned long int i = ulongval ();
2420 if (i != ($2))
2421 return 1;
2422 fprintf (f, "%lu", i);
2423 }
2424 /* Do not output a trailing newline, as this causes \r\n confusion
2425 on some platforms. */
2426 return ferror (f) || fclose (f) != 0;
2427
2428 ;
2429 return 0;
2430 }
2431 _ACEOF
2432 if ac_fn_c_try_run "$LINENO"
2433 then :
2434 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2435 else case e in #(
2436 e) ac_retval=1 ;;
2437 esac
2438 fi
2439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2440 conftest.$ac_objext conftest.beam conftest.$ac_ext
2441 rm -f conftest.val
2442
2443 fi
2444 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2445 as_fn_set_status $ac_retval
2446
2447 } # ac_fn_c_compute_int
2448 ac_configure_args_raw=
2449 for ac_arg
2450 do
2451 case $ac_arg in
2452 *\'*)
2453 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2454 esac
2455 as_fn_append ac_configure_args_raw " '$ac_arg'"
2456 done
2457
2458 case $ac_configure_args_raw in
2459 *$as_nl*)
2460 ac_safe_unquote= ;;
2461 *)
2462 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2463 ac_unsafe_a="$ac_unsafe_z#~"
2464 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2465 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2466 esac
2467
2468 cat >config.log <<_ACEOF
2469 This file contains any messages produced by compilers while
2470 running configure, to aid debugging if configure makes a mistake.
2471
2472 It was created by xdvik $as_me 22.87.06, which was
2473 generated by GNU Autoconf 2.72. Invocation command line was
2474
2475 $ $0$ac_configure_args_raw
2476
2477 _ACEOF
2478 exec 5>>config.log
2479 {
2480 cat <<_ASUNAME
2481 ## --------- ##
2482 ## Platform. ##
2483 ## --------- ##
2484
2485 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2486 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2487 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2488 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2489 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2490
2491 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2492 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2493
2494 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2495 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2496 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2497 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2498 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2499 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2500 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2501
2502 _ASUNAME
2503
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 case $as_dir in #(((
2509 '') as_dir=./ ;;
2510 */) ;;
2511 *) as_dir=$as_dir/ ;;
2512 esac
2513 printf "%s\n" "PATH: $as_dir"
2514 done
2515 IFS=$as_save_IFS
2516
2517 } >&5
2518
2519 cat >&5 <<_ACEOF
2520
2521
2522 ## ----------- ##
2523 ## Core tests. ##
2524 ## ----------- ##
2525
2526 _ACEOF
2527
2528
2529 # Keep a trace of the command line.
2530 # Strip out --no-create and --no-recursion so they do not pile up.
2531 # Strip out --silent because we don't want to record it for future runs.
2532 # Also quote any args containing shell meta-characters.
2533 # Make two passes to allow for proper duplicate-argument suppression.
2534 ac_configure_args=
2535 ac_configure_args0=
2536 ac_configure_args1=
2537 ac_must_keep_next=false
2538 for ac_pass in 1 2
2539 do
2540 for ac_arg
2541 do
2542 case $ac_arg in
2543 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2545 | -silent | --silent | --silen | --sile | --sil)
2546 continue ;;
2547 *\'*)
2548 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 esac
2550 case $ac_pass in
2551 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2552 2)
2553 as_fn_append ac_configure_args1 " '$ac_arg'"
2554 if test $ac_must_keep_next = true; then
2555 ac_must_keep_next=false # Got value, back to normal.
2556 else
2557 case $ac_arg in
2558 *=* | --config-cache | -C | -disable-* | --disable-* \
2559 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2560 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2561 | -with-* | --with-* | -without-* | --without-* | --x)
2562 case "$ac_configure_args0 " in
2563 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2564 esac
2565 ;;
2566 -* ) ac_must_keep_next=true ;;
2567 esac
2568 fi
2569 as_fn_append ac_configure_args " '$ac_arg'"
2570 ;;
2571 esac
2572 done
2573 done
2574 { ac_configure_args0=; unset ac_configure_args0;}
2575 { ac_configure_args1=; unset ac_configure_args1;}
2576
2577 # When interrupted or exit'd, cleanup temporary files, and complete
2578 # config.log. We remove comments because anyway the quotes in there
2579 # would cause problems or look ugly.
2580 # WARNING: Use '\'' to represent an apostrophe within the trap.
2581 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2582 trap 'exit_status=$?
2583 # Sanitize IFS.
2584 IFS=" "" $as_nl"
2585 # Save into config.log some information that might help in debugging.
2586 {
2587 echo
2588
2589 printf "%s\n" "## ---------------- ##
2590 ## Cache variables. ##
2591 ## ---------------- ##"
2592 echo
2593 # The following way of writing the cache mishandles newlines in values,
2594 (
2595 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2596 eval ac_val=\$$ac_var
2597 case $ac_val in #(
2598 *${as_nl}*)
2599 case $ac_var in #(
2600 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2601 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2602 esac
2603 case $ac_var in #(
2604 _ | IFS | as_nl) ;; #(
2605 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2606 *) { eval $ac_var=; unset $ac_var;} ;;
2607 esac ;;
2608 esac
2609 done
2610 (set) 2>&1 |
2611 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2612 *${as_nl}ac_space=\ *)
2613 sed -n \
2614 "s/'\''/'\''\\\\'\'''\''/g;
2615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2616 ;; #(
2617 *)
2618 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2619 ;;
2620 esac |
2621 sort
2622 )
2623 echo
2624
2625 printf "%s\n" "## ----------------- ##
2626 ## Output variables. ##
2627 ## ----------------- ##"
2628 echo
2629 for ac_var in $ac_subst_vars
2630 do
2631 eval ac_val=\$$ac_var
2632 case $ac_val in
2633 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2634 esac
2635 printf "%s\n" "$ac_var='\''$ac_val'\''"
2636 done | sort
2637 echo
2638
2639 if test -n "$ac_subst_files"; then
2640 printf "%s\n" "## ------------------- ##
2641 ## File substitutions. ##
2642 ## ------------------- ##"
2643 echo
2644 for ac_var in $ac_subst_files
2645 do
2646 eval ac_val=\$$ac_var
2647 case $ac_val in
2648 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2649 esac
2650 printf "%s\n" "$ac_var='\''$ac_val'\''"
2651 done | sort
2652 echo
2653 fi
2654
2655 if test -s confdefs.h; then
2656 printf "%s\n" "## ----------- ##
2657 ## confdefs.h. ##
2658 ## ----------- ##"
2659 echo
2660 cat confdefs.h
2661 echo
2662 fi
2663 test "$ac_signal" != 0 &&
2664 printf "%s\n" "$as_me: caught signal $ac_signal"
2665 printf "%s\n" "$as_me: exit $exit_status"
2666 } >&5
2667 rm -f core *.core core.conftest.* &&
2668 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2669 exit $exit_status
2670 ' 0
2671 for ac_signal in 1 2 13 15; do
2672 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2673 done
2674 ac_signal=0
2675
2676 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2677 rm -f -r conftest* confdefs.h
2678
2679 printf "%s\n" "/* confdefs.h */" > confdefs.h
2680
2681 # Predefined preprocessor variables.
2682
2683 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2684
2685 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2686
2687 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2688
2689 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2690
2691 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2692
2693 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2694
2695
2696 # Let the site file select an alternate cache file if it wants to.
2697 # Prefer an explicitly selected file to automatically selected ones.
2698 if test -n "$CONFIG_SITE"; then
2699 ac_site_files="$CONFIG_SITE"
2700 elif test "x$prefix" != xNONE; then
2701 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2702 else
2703 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2704 fi
2705
2706 for ac_site_file in $ac_site_files
2707 do
2708 case $ac_site_file in #(
2709 */*) :
2710 ;; #(
2711 *) :
2712 ac_site_file=./$ac_site_file ;;
2713 esac
2714 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2716 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2717 sed 's/^/| /' "$ac_site_file" >&5
2718 . "$ac_site_file" \
2719 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2720 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2721 as_fn_error $? "failed to load site script $ac_site_file
2722 See 'config.log' for more details" "$LINENO" 5; }
2723 fi
2724 done
2725
2726 if test -r "$cache_file"; then
2727 # Some versions of bash will fail to source /dev/null (special files
2728 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2729 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2731 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2732 case $cache_file in
2733 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2734 *) . "./$cache_file";;
2735 esac
2736 fi
2737 else
2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2739 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2740 >$cache_file
2741 fi
2742
2743 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2744 # Test code for whether the C compiler supports C89 (global declarations)
2745 ac_c_conftest_c89_globals='
2746 /* Does the compiler advertise C89 conformance?
2747 Do not test the value of __STDC__, because some compilers set it to 0
2748 while being otherwise adequately conformant. */
2749 #if !defined __STDC__
2750 # error "Compiler does not advertise C89 conformance"
2751 #endif
2752
2753 #include <stddef.h>
2754 #include <stdarg.h>
2755 struct stat;
2756 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2757 struct buf { int x; };
2758 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2759 static char *e (char **p, int i)
2760 {
2761 return p[i];
2762 }
2763 static char *f (char * (*g) (char **, int), char **p, ...)
2764 {
2765 char *s;
2766 va_list v;
2767 va_start (v,p);
2768 s = g (p, va_arg (v,int));
2769 va_end (v);
2770 return s;
2771 }
2772
2773 /* C89 style stringification. */
2774 #define noexpand_stringify(a) #a
2775 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2776
2777 /* C89 style token pasting. Exercises some of the corner cases that
2778 e.g. old MSVC gets wrong, but not very hard. */
2779 #define noexpand_concat(a,b) a##b
2780 #define expand_concat(a,b) noexpand_concat(a,b)
2781 extern int vA;
2782 extern int vbee;
2783 #define aye A
2784 #define bee B
2785 int *pvA = &expand_concat(v,aye);
2786 int *pvbee = &noexpand_concat(v,bee);
2787
2788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2789 function prototypes and stuff, but not \xHH hex character constants.
2790 These do not provoke an error unfortunately, instead are silently treated
2791 as an "x". The following induces an error, until -std is added to get
2792 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2793 array size at least. It is necessary to write \x00 == 0 to get something
2794 that is true only with -std. */
2795 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2796
2797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2798 inside strings and character constants. */
2799 #define FOO(x) '\''x'\''
2800 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2801
2802 int test (int i, double x);
2803 struct s1 {int (*f) (int a);};
2804 struct s2 {int (*f) (double a);};
2805 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2806 int, int);'
2807
2808 # Test code for whether the C compiler supports C89 (body of main).
2809 ac_c_conftest_c89_main='
2810 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2811 '
2812
2813 # Test code for whether the C compiler supports C99 (global declarations)
2814 ac_c_conftest_c99_globals='
2815 /* Does the compiler advertise C99 conformance? */
2816 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2817 # error "Compiler does not advertise C99 conformance"
2818 #endif
2819
2820 // See if C++-style comments work.
2821
2822 #include <stdbool.h>
2823 extern int puts (const char *);
2824 extern int printf (const char *, ...);
2825 extern int dprintf (int, const char *, ...);
2826 extern void *malloc (size_t);
2827 extern void free (void *);
2828
2829 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2830 // dprintf is used instead of fprintf to avoid needing to declare
2831 // FILE and stderr.
2832 #define debug(...) dprintf (2, __VA_ARGS__)
2833 #define showlist(...) puts (#__VA_ARGS__)
2834 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2835 static void
2836 test_varargs_macros (void)
2837 {
2838 int x = 1234;
2839 int y = 5678;
2840 debug ("Flag");
2841 debug ("X = %d\n", x);
2842 showlist (The first, second, and third items.);
2843 report (x>y, "x is %d but y is %d", x, y);
2844 }
2845
2846 // Check long long types.
2847 #define BIG64 18446744073709551615ull
2848 #define BIG32 4294967295ul
2849 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2850 #if !BIG_OK
2851 #error "your preprocessor is broken"
2852 #endif
2853 #if BIG_OK
2854 #else
2855 #error "your preprocessor is broken"
2856 #endif
2857 static long long int bignum = -9223372036854775807LL;
2858 static unsigned long long int ubignum = BIG64;
2859
2860 struct incomplete_array
2861 {
2862 int datasize;
2863 double data[];
2864 };
2865
2866 struct named_init {
2867 int number;
2868 const wchar_t *name;
2869 double average;
2870 };
2871
2872 typedef const char *ccp;
2873
2874 static inline int
2875 test_restrict (ccp restrict text)
2876 {
2877 // Iterate through items via the restricted pointer.
2878 // Also check for declarations in for loops.
2879 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2880 continue;
2881 return 0;
2882 }
2883
2884 // Check varargs and va_copy.
2885 static bool
2886 test_varargs (const char *format, ...)
2887 {
2888 va_list args;
2889 va_start (args, format);
2890 va_list args_copy;
2891 va_copy (args_copy, args);
2892
2893 const char *str = "";
2894 int number = 0;
2895 float fnumber = 0;
2896
2897 while (*format)
2898 {
2899 switch (*format++)
2900 {
2901 case '\''s'\'': // string
2902 str = va_arg (args_copy, const char *);
2903 break;
2904 case '\''d'\'': // int
2905 number = va_arg (args_copy, int);
2906 break;
2907 case '\''f'\'': // float
2908 fnumber = va_arg (args_copy, double);
2909 break;
2910 default:
2911 break;
2912 }
2913 }
2914 va_end (args_copy);
2915 va_end (args);
2916
2917 return *str && number && fnumber;
2918 }
2919 '
2920
2921 # Test code for whether the C compiler supports C99 (body of main).
2922 ac_c_conftest_c99_main='
2923 // Check bool.
2924 _Bool success = false;
2925 success |= (argc != 0);
2926
2927 // Check restrict.
2928 if (test_restrict ("String literal") == 0)
2929 success = true;
2930 char *restrict newvar = "Another string";
2931
2932 // Check varargs.
2933 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2934 test_varargs_macros ();
2935
2936 // Check flexible array members.
2937 struct incomplete_array *ia =
2938 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2939 ia->datasize = 10;
2940 for (int i = 0; i < ia->datasize; ++i)
2941 ia->data[i] = i * 1.234;
2942 // Work around memory leak warnings.
2943 free (ia);
2944
2945 // Check named initializers.
2946 struct named_init ni = {
2947 .number = 34,
2948 .name = L"Test wide string",
2949 .average = 543.34343,
2950 };
2951
2952 ni.number = 58;
2953
2954 int dynamic_array[ni.number];
2955 dynamic_array[0] = argv[0][0];
2956 dynamic_array[ni.number - 1] = 543;
2957
2958 // work around unused variable warnings
2959 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2960 || dynamic_array[ni.number - 1] != 543);
2961 '
2962
2963 # Test code for whether the C compiler supports C11 (global declarations)
2964 ac_c_conftest_c11_globals='
2965 /* Does the compiler advertise C11 conformance? */
2966 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2967 # error "Compiler does not advertise C11 conformance"
2968 #endif
2969
2970 // Check _Alignas.
2971 char _Alignas (double) aligned_as_double;
2972 char _Alignas (0) no_special_alignment;
2973 extern char aligned_as_int;
2974 char _Alignas (0) _Alignas (int) aligned_as_int;
2975
2976 // Check _Alignof.
2977 enum
2978 {
2979 int_alignment = _Alignof (int),
2980 int_array_alignment = _Alignof (int[100]),
2981 char_alignment = _Alignof (char)
2982 };
2983 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2984
2985 // Check _Noreturn.
2986 int _Noreturn does_not_return (void) { for (;;) continue; }
2987
2988 // Check _Static_assert.
2989 struct test_static_assert
2990 {
2991 int x;
2992 _Static_assert (sizeof (int) <= sizeof (long int),
2993 "_Static_assert does not work in struct");
2994 long int y;
2995 };
2996
2997 // Check UTF-8 literals.
2998 #define u8 syntax error!
2999 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3000
3001 // Check duplicate typedefs.
3002 typedef long *long_ptr;
3003 typedef long int *long_ptr;
3004 typedef long_ptr long_ptr;
3005
3006 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3007 struct anonymous
3008 {
3009 union {
3010 struct { int i; int j; };
3011 struct { int k; long int l; } w;
3012 };
3013 int m;
3014 } v1;
3015 '
3016
3017 # Test code for whether the C compiler supports C11 (body of main).
3018 ac_c_conftest_c11_main='
3019 _Static_assert ((offsetof (struct anonymous, i)
3020 == offsetof (struct anonymous, w.k)),
3021 "Anonymous union alignment botch");
3022 v1.i = 2;
3023 v1.w.k = 5;
3024 ok |= v1.i != 5;
3025 '
3026
3027 # Test code for whether the C compiler supports C11 (complete).
3028 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3029 ${ac_c_conftest_c99_globals}
3030 ${ac_c_conftest_c11_globals}
3031
3032 int
3033 main (int argc, char **argv)
3034 {
3035 int ok = 0;
3036 ${ac_c_conftest_c89_main}
3037 ${ac_c_conftest_c99_main}
3038 ${ac_c_conftest_c11_main}
3039 return ok;
3040 }
3041 "
3042
3043 # Test code for whether the C compiler supports C99 (complete).
3044 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3045 ${ac_c_conftest_c99_globals}
3046
3047 int
3048 main (int argc, char **argv)
3049 {
3050 int ok = 0;
3051 ${ac_c_conftest_c89_main}
3052 ${ac_c_conftest_c99_main}
3053 return ok;
3054 }
3055 "
3056
3057 # Test code for whether the C compiler supports C89 (complete).
3058 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3059
3060 int
3061 main (int argc, char **argv)
3062 {
3063 int ok = 0;
3064 ${ac_c_conftest_c89_main}
3065 return ok;
3066 }
3067 "
3068
3069 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3070 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3071 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3072 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3073 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3074 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3075 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3076 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3077 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3078 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3079 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3080 as_fn_append ac_func_c_list " fork HAVE_FORK"
3081 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3082 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3083
3084 # Auxiliary files required by this configure script.
3085 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
3086
3087 # Locations in which to look for auxiliary files.
3088 ac_aux_dir_candidates="${srcdir}/../../build-aux"
3089
3090 # Search for a directory containing all of the required auxiliary files,
3091 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3092 # If we don't find one directory that contains all the files we need,
3093 # we report the set of missing files from the *first* directory in
3094 # $ac_aux_dir_candidates and give up.
3095 ac_missing_aux_files=""
3096 ac_first_candidate=:
3097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 as_found=false
3100 for as_dir in $ac_aux_dir_candidates
3101 do
3102 IFS=$as_save_IFS
3103 case $as_dir in #(((
3104 '') as_dir=./ ;;
3105 */) ;;
3106 *) as_dir=$as_dir/ ;;
3107 esac
3108 as_found=:
3109
3110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3111 ac_aux_dir_found=yes
3112 ac_install_sh=
3113 for ac_aux in $ac_aux_files
3114 do
3115 # As a special case, if "install-sh" is required, that requirement
3116 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3117 # and $ac_install_sh is set appropriately for whichever one is found.
3118 if test x"$ac_aux" = x"install-sh"
3119 then
3120 if test -f "${as_dir}install-sh"; then
3121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3122 ac_install_sh="${as_dir}install-sh -c"
3123 elif test -f "${as_dir}install.sh"; then
3124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3125 ac_install_sh="${as_dir}install.sh -c"
3126 elif test -f "${as_dir}shtool"; then
3127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3128 ac_install_sh="${as_dir}shtool install -c"
3129 else
3130 ac_aux_dir_found=no
3131 if $ac_first_candidate; then
3132 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3133 else
3134 break
3135 fi
3136 fi
3137 else
3138 if test -f "${as_dir}${ac_aux}"; then
3139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3140 else
3141 ac_aux_dir_found=no
3142 if $ac_first_candidate; then
3143 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3144 else
3145 break
3146 fi
3147 fi
3148 fi
3149 done
3150 if test "$ac_aux_dir_found" = yes; then
3151 ac_aux_dir="$as_dir"
3152 break
3153 fi
3154 ac_first_candidate=false
3155
3156 as_found=false
3157 done
3158 IFS=$as_save_IFS
3159 if $as_found
3160 then :
3161
3162 else case e in #(
3163 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3164 esac
3165 fi
3166
3167
3168 # These three variables are undocumented and unsupported,
3169 # and are intended to be withdrawn in a future Autoconf release.
3170 # They can cause serious problems if a builder's source tree is in a directory
3171 # whose full name contains unusual characters.
3172 if test -f "${ac_aux_dir}config.guess"; then
3173 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3174 fi
3175 if test -f "${ac_aux_dir}config.sub"; then
3176 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3177 fi
3178 if test -f "$ac_aux_dir/configure"; then
3179 ac_configure="$SHELL ${ac_aux_dir}configure"
3180 fi
3181
3182 # Check that the precious variables saved in the cache have kept the same
3183 # value.
3184 ac_cache_corrupted=false
3185 for ac_var in $ac_precious_vars; do
3186 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3187 eval ac_new_set=\$ac_env_${ac_var}_set
3188 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3189 eval ac_new_val=\$ac_env_${ac_var}_value
3190 case $ac_old_set,$ac_new_set in
3191 set,)
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3193 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3194 ac_cache_corrupted=: ;;
3195 ,set)
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3197 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3198 ac_cache_corrupted=: ;;
3199 ,);;
3200 *)
3201 if test "x$ac_old_val" != "x$ac_new_val"; then
3202 # differences in whitespace do not lead to failure.
3203 ac_old_val_w=`echo x $ac_old_val`
3204 ac_new_val_w=`echo x $ac_new_val`
3205 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3207 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3208 ac_cache_corrupted=:
3209 else
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3211 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3212 eval $ac_var=\$ac_old_val
3213 fi
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3215 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3217 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3218 fi;;
3219 esac
3220 # Pass precious variables to config.status.
3221 if test "$ac_new_set" = set; then
3222 case $ac_new_val in
3223 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3224 *) ac_arg=$ac_var=$ac_new_val ;;
3225 esac
3226 case " $ac_configure_args " in
3227 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3228 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3229 esac
3230 fi
3231 done
3232 if $ac_cache_corrupted; then
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3234 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3236 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3237 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3238 and start over" "$LINENO" 5
3239 fi
3240 ## -------------------- ##
3241 ## Main body of script. ##
3242 ## -------------------- ##
3243
3244 ac_ext=c
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
3250
3251
3252
3253
3254
3255
3256 am__api_version='1.18'
3257
3258
3259
3260 # Find a good install program. We prefer a C program (faster),
3261 # so one script is as good as another. But avoid the broken or
3262 # incompatible versions:
3263 # SysV /etc/install, /usr/sbin/install
3264 # SunOS /usr/etc/install
3265 # IRIX /sbin/install
3266 # AIX /bin/install
3267 # AmigaOS /C/install, which installs bootblocks on floppy discs
3268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3271 # OS/2's system install, which has a completely different semantic
3272 # ./install, which can be erroneously created by make from ./install.sh.
3273 # Reject install programs that cannot install multiple files.
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3275 printf %s "checking for a BSD-compatible install... " >&6; }
3276 if test -z "$INSTALL"; then
3277 if test ${ac_cv_path_install+y}
3278 then :
3279 printf %s "(cached) " >&6
3280 else case e in #(
3281 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 case $as_dir in #(((
3286 '') as_dir=./ ;;
3287 */) ;;
3288 *) as_dir=$as_dir/ ;;
3289 esac
3290 # Account for fact that we put trailing slashes in our PATH walk.
3291 case $as_dir in #((
3292 ./ | /[cC]/* | \
3293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3294 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3295 /usr/ucb/* ) ;;
3296 *)
3297 # OSF1 and SCO ODT 3.0 have their own names for install.
3298 # Don't use installbsd from OSF since it installs stuff as root
3299 # by default.
3300 for ac_prog in ginstall scoinst install; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3303 if test $ac_prog = install &&
3304 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3305 # AIX install. It has an incompatible calling convention.
3306 :
3307 elif test $ac_prog = install &&
3308 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309 # program-specific install script used by HP pwplus--don't use.
3310 :
3311 else
3312 rm -rf conftest.one conftest.two conftest.dir
3313 echo one > conftest.one
3314 echo two > conftest.two
3315 mkdir conftest.dir
3316 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3317 test -s conftest.one && test -s conftest.two &&
3318 test -s conftest.dir/conftest.one &&
3319 test -s conftest.dir/conftest.two
3320 then
3321 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3322 break 3
3323 fi
3324 fi
3325 fi
3326 done
3327 done
3328 ;;
3329 esac
3330
3331 done
3332 IFS=$as_save_IFS
3333
3334 rm -rf conftest.one conftest.two conftest.dir
3335 ;;
3336 esac
3337 fi
3338 if test ${ac_cv_path_install+y}; then
3339 INSTALL=$ac_cv_path_install
3340 else
3341 # As a last resort, use the slow shell script. Don't cache a
3342 # value for INSTALL within a source directory, because that will
3343 # break other packages using the cache if that directory is
3344 # removed, or if the value is a relative name.
3345 INSTALL=$ac_install_sh
3346 fi
3347 fi
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3349 printf "%s\n" "$INSTALL" >&6; }
3350
3351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3352 # It thinks the first close brace ends the variable substitution.
3353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3354
3355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3356
3357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3358
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3360 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3361 if test ${am_cv_sleep_fractional_seconds+y}
3362 then :
3363 printf %s "(cached) " >&6
3364 else case e in #(
3365 e) if sleep 0.001 2>/dev/null
3366 then :
3367 am_cv_sleep_fractional_seconds=yes
3368 else case e in #(
3369 e) am_cv_sleep_fractional_seconds=no ;;
3370 esac
3371 fi
3372 ;;
3373 esac
3374 fi
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3376 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3377
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3379 printf %s "checking filesystem timestamp resolution... " >&6; }
3380 if test ${am_cv_filesystem_timestamp_resolution+y}
3381 then :
3382 printf %s "(cached) " >&6
3383 else case e in #(
3384 e) # Default to the worst case.
3385 am_cv_filesystem_timestamp_resolution=2
3386
3387 # Only try to go finer than 1 sec if sleep can do it.
3388 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3389 # - 1 sec is not much of a win compared to 2 sec, and
3390 # - it takes 2 seconds to perform the test whether 1 sec works.
3391 #
3392 # Instead, just use the default 2s on platforms that have 1s resolution,
3393 # accept the extra 1s delay when using $sleep in the Automake tests, in
3394 # exchange for not incurring the 2s delay for running the test for all
3395 # packages.
3396 #
3397 am_try_resolutions=
3398 if test "$am_cv_sleep_fractional_seconds" = yes; then
3399 # Even a millisecond often causes a bunch of false positives,
3400 # so just try a hundredth of a second. The time saved between .001 and
3401 # .01 is not terribly consequential.
3402 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3403 fi
3404
3405 # In order to catch current-generation FAT out, we must *modify* files
3406 # that already exist; the *creation* timestamp is finer. Use names
3407 # that make ls -t sort them differently when they have equal
3408 # timestamps than when they have distinct timestamps, keeping
3409 # in mind that ls -t prints the *newest* file first.
3410 rm -f conftest.ts?
3411 : > conftest.ts1
3412 : > conftest.ts2
3413 : > conftest.ts3
3414
3415 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3416 # clobber the current shell's arguments. (Outer-level square brackets
3417 # are removed by m4; they're present so that m4 does not expand
3418 # <dollar><star>; be careful, easy to get confused.)
3419 if (
3420 set X `ls -t conftest.ts[12]` &&
3421 {
3422 test "$*" != "X conftest.ts1 conftest.ts2" ||
3423 test "$*" != "X conftest.ts2 conftest.ts1";
3424 }
3425 ); then :; else
3426 # If neither matched, then we have a broken ls. This can happen
3427 # if, for instance, CONFIG_SHELL is bash and it inherits a
3428 # broken ls alias from the environment. This has actually
3429 # happened. Such a system could not be considered "sane".
3430 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3432 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3433 as_fn_error $? "ls -t produces unexpected output.
3434 Make sure there is not a broken ls alias in your environment.
3435 See 'config.log' for more details" "$LINENO" 5; }
3436 fi
3437
3438 for am_try_res in $am_try_resolutions; do
3439 # Any one fine-grained sleep might happen to cross the boundary
3440 # between two values of a coarser actual resolution, but if we do
3441 # two fine-grained sleeps in a row, at least one of them will fall
3442 # entirely within a coarse interval.
3443 echo alpha > conftest.ts1
3444 sleep $am_try_res
3445 echo beta > conftest.ts2
3446 sleep $am_try_res
3447 echo gamma > conftest.ts3
3448
3449 # We assume that 'ls -t' will make use of high-resolution
3450 # timestamps if the operating system supports them at all.
3451 if (set X `ls -t conftest.ts?` &&
3452 test "$2" = conftest.ts3 &&
3453 test "$3" = conftest.ts2 &&
3454 test "$4" = conftest.ts1); then
3455 #
3456 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3457 # because we don't need to test make.
3458 make_ok=true
3459 if test $am_try_res != 1; then
3460 # But if we've succeeded so far with a subsecond resolution, we
3461 # have one more thing to check: make. It can happen that
3462 # everything else supports the subsecond mtimes, but make doesn't;
3463 # notably on macOS, which ships make 3.81 from 2006 (the last one
3464 # released under GPLv2). https://bugs.gnu.org/68808
3465 #
3466 # We test $MAKE if it is defined in the environment, else "make".
3467 # It might get overridden later, but our hope is that in practice
3468 # it does not matter: it is the system "make" which is (by far)
3469 # the most likely to be broken, whereas if the user overrides it,
3470 # probably they did so with a better, or at least not worse, make.
3471 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3472 #
3473 # Create a Makefile (real tab character here):
3474 rm -f conftest.mk
3475 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3476 echo ' touch conftest.ts2' >>conftest.mk
3477 #
3478 # Now, running
3479 # touch conftest.ts1; touch conftest.ts2; make
3480 # should touch ts1 because ts2 is newer. This could happen by luck,
3481 # but most often, it will fail if make's support is insufficient. So
3482 # test for several consecutive successes.
3483 #
3484 # (We reuse conftest.ts[12] because we still want to modify existing
3485 # files, not create new ones, per above.)
3486 n=0
3487 make=${MAKE-make}
3488 until test $n -eq 3; do
3489 echo one > conftest.ts1
3490 sleep $am_try_res
3491 echo two > conftest.ts2 # ts2 should now be newer than ts1
3492 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3493 make_ok=false
3494 break # out of $n loop
3495 fi
3496 n=`expr $n + 1`
3497 done
3498 fi
3499 #
3500 if $make_ok; then
3501 # Everything we know to check worked out, so call this resolution good.
3502 am_cv_filesystem_timestamp_resolution=$am_try_res
3503 break # out of $am_try_res loop
3504 fi
3505 # Otherwise, we'll go on to check the next resolution.
3506 fi
3507 done
3508 rm -f conftest.ts?
3509 # (end _am_filesystem_timestamp_resolution)
3510 ;;
3511 esac
3512 fi
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3514 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3515
3516 # This check should not be cached, as it may vary across builds of
3517 # different projects.
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3519 printf %s "checking whether build environment is sane... " >&6; }
3520 # Reject unsafe characters in $srcdir or the absolute working directory
3521 # name. Accept space and tab only in the latter.
3522 am_lf='
3523 '
3524 case `pwd` in
3525 *[\\\"\#\$\&\'\`$am_lf]*)
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 printf "%s\n" "no" >&6; }
3528 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3529 esac
3530 case $srcdir in
3531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 printf "%s\n" "no" >&6; }
3534 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3535 esac
3536
3537 # Do 'set' in a subshell so we don't clobber the current shell's
3538 # arguments. Must try -L first in case configure is actually a
3539 # symlink; some systems play weird games with the mod time of symlinks
3540 # (eg FreeBSD returns the mod time of the symlink's containing
3541 # directory).
3542 am_build_env_is_sane=no
3543 am_has_slept=no
3544 rm -f conftest.file
3545 for am_try in 1 2; do
3546 echo "timestamp, slept: $am_has_slept" > conftest.file
3547 if (
3548 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3549 if test "$*" = "X"; then
3550 # -L didn't work.
3551 set X `ls -t "$srcdir/configure" conftest.file`
3552 fi
3553 test "$2" = conftest.file
3554 ); then
3555 am_build_env_is_sane=yes
3556 break
3557 fi
3558 # Just in case.
3559 sleep "$am_cv_filesystem_timestamp_resolution"
3560 am_has_slept=yes
3561 done
3562
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3564 printf "%s\n" "$am_build_env_is_sane" >&6; }
3565 if test "$am_build_env_is_sane" = no; then
3566 as_fn_error $? "newly created file is older than distributed files!
3567 Check your system clock" "$LINENO" 5
3568 fi
3569
3570 # If we didn't sleep, we still need to ensure time stamps of config.status and
3571 # generated files are strictly newer.
3572 am_sleep_pid=
3573 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3574 then :
3575
3576 else case e in #(
3577 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3578 am_sleep_pid=$!
3579 ;;
3580 esac
3581 fi
3582
3583 rm -f conftest.file
3584
3585 test "$program_prefix" != NONE &&
3586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3587 # Use a double $ so make ignores it.
3588 test "$program_suffix" != NONE &&
3589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3590 # Double any \ or $.
3591 # By default was 's,x,x', remove it if useless.
3592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3593 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3594
3595
3596 # Expand $ac_aux_dir to an absolute path.
3597 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3598
3599
3600 if test x"${MISSING+set}" != xset; then
3601 MISSING="\${SHELL} '$am_aux_dir/missing'"
3602 fi
3603 # Use eval to expand $SHELL
3604 if eval "$MISSING --is-lightweight"; then
3605 am_missing_run="$MISSING "
3606 else
3607 am_missing_run=
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3609 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3610 fi
3611
3612 if test x"${install_sh+set}" != xset; then
3613 case $am_aux_dir in
3614 *\ * | *\ *)
3615 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3616 *)
3617 install_sh="\${SHELL} $am_aux_dir/install-sh"
3618 esac
3619 fi
3620
3621 # Installed binaries are usually stripped using 'strip' when the user
3622 # run "make install-strip". However 'strip' might not be the right
3623 # tool to use in cross-compilation environments, therefore Automake
3624 # will honor the 'STRIP' environment variable to overrule this program.
3625 if test "$cross_compiling" != no; then
3626 if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3628 set dummy ${ac_tool_prefix}strip; ac_word=$2
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 printf %s "checking for $ac_word... " >&6; }
3631 if test ${ac_cv_prog_STRIP+y}
3632 then :
3633 printf %s "(cached) " >&6
3634 else case e in #(
3635 e) if test -n "$STRIP"; then
3636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 case $as_dir in #(((
3643 '') as_dir=./ ;;
3644 */) ;;
3645 *) as_dir=$as_dir/ ;;
3646 esac
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653 done
3654 done
3655 IFS=$as_save_IFS
3656
3657 fi ;;
3658 esac
3659 fi
3660 STRIP=$ac_cv_prog_STRIP
3661 if test -n "$STRIP"; then
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3663 printf "%s\n" "$STRIP" >&6; }
3664 else
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 printf "%s\n" "no" >&6; }
3667 fi
3668
3669
3670 fi
3671 if test -z "$ac_cv_prog_STRIP"; then
3672 ac_ct_STRIP=$STRIP
3673 # Extract the first word of "strip", so it can be a program name with args.
3674 set dummy strip; ac_word=$2
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 printf %s "checking for $ac_word... " >&6; }
3677 if test ${ac_cv_prog_ac_ct_STRIP+y}
3678 then :
3679 printf %s "(cached) " >&6
3680 else case e in #(
3681 e) if test -n "$ac_ct_STRIP"; then
3682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687 IFS=$as_save_IFS
3688 case $as_dir in #(((
3689 '') as_dir=./ ;;
3690 */) ;;
3691 *) as_dir=$as_dir/ ;;
3692 esac
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_ac_ct_STRIP="strip"
3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3702
3703 fi ;;
3704 esac
3705 fi
3706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3707 if test -n "$ac_ct_STRIP"; then
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3709 printf "%s\n" "$ac_ct_STRIP" >&6; }
3710 else
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 printf "%s\n" "no" >&6; }
3713 fi
3714
3715 if test "x$ac_ct_STRIP" = x; then
3716 STRIP=":"
3717 else
3718 case $cross_compiling:$ac_tool_warned in
3719 yes:)
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned=yes ;;
3723 esac
3724 STRIP=$ac_ct_STRIP
3725 fi
3726 else
3727 STRIP="$ac_cv_prog_STRIP"
3728 fi
3729
3730 fi
3731 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3732
3733
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3735 printf %s "checking for a race-free mkdir -p... " >&6; }
3736 if test -z "$MKDIR_P"; then
3737 if test ${ac_cv_path_mkdir+y}
3738 then :
3739 printf %s "(cached) " >&6
3740 else case e in #(
3741 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3743 do
3744 IFS=$as_save_IFS
3745 case $as_dir in #(((
3746 '') as_dir=./ ;;
3747 */) ;;
3748 *) as_dir=$as_dir/ ;;
3749 esac
3750 for ac_prog in mkdir gmkdir; do
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3753 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3754 'mkdir ('*'coreutils) '* | \
3755 *'BusyBox '* | \
3756 'mkdir (fileutils) '4.1*)
3757 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3758 break 3;;
3759 esac
3760 done
3761 done
3762 done
3763 IFS=$as_save_IFS
3764 ;;
3765 esac
3766 fi
3767
3768 test -d ./--version && rmdir ./--version
3769 if test ${ac_cv_path_mkdir+y}; then
3770 MKDIR_P="$ac_cv_path_mkdir -p"
3771 else
3772 # As a last resort, use plain mkdir -p,
3773 # in the hope it doesn't have the bugs of ancient mkdir.
3774 MKDIR_P='mkdir -p'
3775 fi
3776 fi
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3778 printf "%s\n" "$MKDIR_P" >&6; }
3779
3780 for ac_prog in gawk mawk nawk awk
3781 do
3782 # Extract the first word of "$ac_prog", so it can be a program name with args.
3783 set dummy $ac_prog; ac_word=$2
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 printf %s "checking for $ac_word... " >&6; }
3786 if test ${ac_cv_prog_AWK+y}
3787 then :
3788 printf %s "(cached) " >&6
3789 else case e in #(
3790 e) if test -n "$AWK"; then
3791 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 case $as_dir in #(((
3798 '') as_dir=./ ;;
3799 */) ;;
3800 *) as_dir=$as_dir/ ;;
3801 esac
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_AWK="$ac_prog"
3805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi ;;
3813 esac
3814 fi
3815 AWK=$ac_cv_prog_AWK
3816 if test -n "$AWK"; then
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3818 printf "%s\n" "$AWK" >&6; }
3819 else
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 printf "%s\n" "no" >&6; }
3822 fi
3823
3824
3825 test -n "$AWK" && break
3826 done
3827
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3829 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3830 set x ${MAKE-make}
3831 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3832 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3833 then :
3834 printf %s "(cached) " >&6
3835 else case e in #(
3836 e) cat >conftest.make <<\_ACEOF
3837 SHELL = /bin/sh
3838 all:
3839 @echo '@@@%%%=$(MAKE)=@@@%%%'
3840 _ACEOF
3841 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3842 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3843 *@@@%%%=?*=@@@%%%*)
3844 eval ac_cv_prog_make_${ac_make}_set=yes;;
3845 *)
3846 eval ac_cv_prog_make_${ac_make}_set=no;;
3847 esac
3848 rm -f conftest.make ;;
3849 esac
3850 fi
3851 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3853 printf "%s\n" "yes" >&6; }
3854 SET_MAKE=
3855 else
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 printf "%s\n" "no" >&6; }
3858 SET_MAKE="MAKE=${MAKE-make}"
3859 fi
3860
3861 rm -rf .tst 2>/dev/null
3862 mkdir .tst 2>/dev/null
3863 if test -d .tst; then
3864 am__leading_dot=.
3865 else
3866 am__leading_dot=_
3867 fi
3868 rmdir .tst 2>/dev/null
3869
3870 AM_DEFAULT_VERBOSITY=1
3871 # Check whether --enable-silent-rules was given.
3872 if test ${enable_silent_rules+y}
3873 then :
3874 enableval=$enable_silent_rules;
3875 fi
3876
3877 am_make=${MAKE-make}
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3879 printf %s "checking whether $am_make supports nested variables... " >&6; }
3880 if test ${am_cv_make_support_nested_variables+y}
3881 then :
3882 printf %s "(cached) " >&6
3883 else case e in #(
3884 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3885 BAR0=false
3886 BAR1=true
3887 V=1
3888 am__doit:
3889 @$(TRUE)
3890 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3891 am_cv_make_support_nested_variables=yes
3892 else
3893 am_cv_make_support_nested_variables=no
3894 fi ;;
3895 esac
3896 fi
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3898 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3899 AM_BACKSLASH='\'
3900
3901 am__rm_f_notfound=
3902 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3903 then :
3904
3905 else case e in #(
3906 e) am__rm_f_notfound='""' ;;
3907 esac
3908 fi
3909
3910
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3912 printf %s "checking xargs -n works... " >&6; }
3913 if test ${am_cv_xargs_n_works+y}
3914 then :
3915 printf %s "(cached) " >&6
3916 else case e in #(
3917 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3918 3"
3919 then :
3920 am_cv_xargs_n_works=yes
3921 else case e in #(
3922 e) am_cv_xargs_n_works=no ;;
3923 esac
3924 fi ;;
3925 esac
3926 fi
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3928 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3929 if test "$am_cv_xargs_n_works" = yes
3930 then :
3931 am__xargs_n='xargs -n'
3932 else case e in #(
3933 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3934 ;;
3935 esac
3936 fi
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947 DEPDIR="${am__leading_dot}deps"
3948
3949 ac_config_commands="$ac_config_commands depfiles"
3950
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3952 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3953 cat > confinc.mk << 'END'
3954 am__doit:
3955 @echo this is the am__doit target >confinc.out
3956 .PHONY: am__doit
3957 END
3958 am__include="#"
3959 am__quote=
3960 # BSD make does it like this.
3961 echo '.include "confinc.mk" # ignored' > confmf.BSD
3962 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3963 echo 'include confinc.mk # ignored' > confmf.GNU
3964 _am_result=no
3965 for s in GNU BSD; do
3966 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3967 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }
3971 case $?:`cat confinc.out 2>/dev/null` in #(
3972 '0:this is the am__doit target') :
3973 case $s in #(
3974 BSD) :
3975 am__include='.include' am__quote='"' ;; #(
3976 *) :
3977 am__include='include' am__quote='' ;;
3978 esac ;; #(
3979 *) :
3980 ;;
3981 esac
3982 if test "$am__include" != "#"; then
3983 _am_result="yes ($s style)"
3984 break
3985 fi
3986 done
3987 rm -f confinc.* confmf.*
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3989 printf "%s\n" "${_am_result}" >&6; }
3990
3991 # Check whether --enable-dependency-tracking was given.
3992 if test ${enable_dependency_tracking+y}
3993 then :
3994 enableval=$enable_dependency_tracking;
3995 fi
3996
3997 if test "x$enable_dependency_tracking" != xno; then
3998 am_depcomp="$ac_aux_dir/depcomp"
3999 AMDEPBACKSLASH='\'
4000 am__nodep='_no'
4001 fi
4002 if test "x$enable_dependency_tracking" != xno; then
4003 AMDEP_TRUE=
4004 AMDEP_FALSE='#'
4005 else
4006 AMDEP_TRUE='#'
4007 AMDEP_FALSE=
4008 fi
4009
4010
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016 if test -n "$ac_tool_prefix"; then
4017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 printf %s "checking for $ac_word... " >&6; }
4021 if test ${ac_cv_prog_CC+y}
4022 then :
4023 printf %s "(cached) " >&6
4024 else case e in #(
4025 e) if test -n "$CC"; then
4026 ac_cv_prog_CC="$CC" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031 IFS=$as_save_IFS
4032 case $as_dir in #(((
4033 '') as_dir=./ ;;
4034 */) ;;
4035 *) as_dir=$as_dir/ ;;
4036 esac
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043 done
4044 done
4045 IFS=$as_save_IFS
4046
4047 fi ;;
4048 esac
4049 fi
4050 CC=$ac_cv_prog_CC
4051 if test -n "$CC"; then
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4053 printf "%s\n" "$CC" >&6; }
4054 else
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 printf "%s\n" "no" >&6; }
4057 fi
4058
4059
4060 fi
4061 if test -z "$ac_cv_prog_CC"; then
4062 ac_ct_CC=$CC
4063 # Extract the first word of "gcc", so it can be a program name with args.
4064 set dummy gcc; ac_word=$2
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 printf %s "checking for $ac_word... " >&6; }
4067 if test ${ac_cv_prog_ac_ct_CC+y}
4068 then :
4069 printf %s "(cached) " >&6
4070 else case e in #(
4071 e) if test -n "$ac_ct_CC"; then
4072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077 IFS=$as_save_IFS
4078 case $as_dir in #(((
4079 '') as_dir=./ ;;
4080 */) ;;
4081 *) as_dir=$as_dir/ ;;
4082 esac
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4085 ac_cv_prog_ac_ct_CC="gcc"
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089 done
4090 done
4091 IFS=$as_save_IFS
4092
4093 fi ;;
4094 esac
4095 fi
4096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4097 if test -n "$ac_ct_CC"; then
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4099 printf "%s\n" "$ac_ct_CC" >&6; }
4100 else
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4103 fi
4104
4105 if test "x$ac_ct_CC" = x; then
4106 CC=""
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109 yes:)
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112 ac_tool_warned=yes ;;
4113 esac
4114 CC=$ac_ct_CC
4115 fi
4116 else
4117 CC="$ac_cv_prog_CC"
4118 fi
4119
4120 if test -z "$CC"; then
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}cc; ac_word=$2
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 printf %s "checking for $ac_word... " >&6; }
4126 if test ${ac_cv_prog_CC+y}
4127 then :
4128 printf %s "(cached) " >&6
4129 else case e in #(
4130 e) if test -n "$CC"; then
4131 ac_cv_prog_CC="$CC" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136 IFS=$as_save_IFS
4137 case $as_dir in #(((
4138 '') as_dir=./ ;;
4139 */) ;;
4140 *) as_dir=$as_dir/ ;;
4141 esac
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_CC="${ac_tool_prefix}cc"
4145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 fi ;;
4153 esac
4154 fi
4155 CC=$ac_cv_prog_CC
4156 if test -n "$CC"; then
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158 printf "%s\n" "$CC" >&6; }
4159 else
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 printf "%s\n" "no" >&6; }
4162 fi
4163
4164
4165 fi
4166 fi
4167 if test -z "$CC"; then
4168 # Extract the first word of "cc", so it can be a program name with args.
4169 set dummy cc; ac_word=$2
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 printf %s "checking for $ac_word... " >&6; }
4172 if test ${ac_cv_prog_CC+y}
4173 then :
4174 printf %s "(cached) " >&6
4175 else case e in #(
4176 e) if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178 else
4179 ac_prog_rejected=no
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183 IFS=$as_save_IFS
4184 case $as_dir in #(((
4185 '') as_dir=./ ;;
4186 */) ;;
4187 *) as_dir=$as_dir/ ;;
4188 esac
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4191 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4192 ac_prog_rejected=yes
4193 continue
4194 fi
4195 ac_cv_prog_CC="cc"
4196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4197 break 2
4198 fi
4199 done
4200 done
4201 IFS=$as_save_IFS
4202
4203 if test $ac_prog_rejected = yes; then
4204 # We found a bogon in the path, so make sure we never use it.
4205 set dummy $ac_cv_prog_CC
4206 shift
4207 if test $# != 0; then
4208 # We chose a different compiler from the bogus one.
4209 # However, it has the same basename, so the bogon will be chosen
4210 # first if we set CC to just the basename; use the full file name.
4211 shift
4212 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4213 fi
4214 fi
4215 fi ;;
4216 esac
4217 fi
4218 CC=$ac_cv_prog_CC
4219 if test -n "$CC"; then
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 printf "%s\n" "$CC" >&6; }
4222 else
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 printf "%s\n" "no" >&6; }
4225 fi
4226
4227
4228 fi
4229 if test -z "$CC"; then
4230 if test -n "$ac_tool_prefix"; then
4231 for ac_prog in cl.exe
4232 do
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 printf %s "checking for $ac_word... " >&6; }
4237 if test ${ac_cv_prog_CC+y}
4238 then :
4239 printf %s "(cached) " >&6
4240 else case e in #(
4241 e) if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 case $as_dir in #(((
4249 '') as_dir=./ ;;
4250 */) ;;
4251 *) as_dir=$as_dir/ ;;
4252 esac
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 fi ;;
4264 esac
4265 fi
4266 CC=$ac_cv_prog_CC
4267 if test -n "$CC"; then
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4269 printf "%s\n" "$CC" >&6; }
4270 else
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 printf "%s\n" "no" >&6; }
4273 fi
4274
4275
4276 test -n "$CC" && break
4277 done
4278 fi
4279 if test -z "$CC"; then
4280 ac_ct_CC=$CC
4281 for ac_prog in cl.exe
4282 do
4283 # Extract the first word of "$ac_prog", so it can be a program name with args.
4284 set dummy $ac_prog; ac_word=$2
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 printf %s "checking for $ac_word... " >&6; }
4287 if test ${ac_cv_prog_ac_ct_CC+y}
4288 then :
4289 printf %s "(cached) " >&6
4290 else case e in #(
4291 e) if test -n "$ac_ct_CC"; then
4292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297 IFS=$as_save_IFS
4298 case $as_dir in #(((
4299 '') as_dir=./ ;;
4300 */) ;;
4301 *) as_dir=$as_dir/ ;;
4302 esac
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_ac_ct_CC="$ac_prog"
4306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4307 break 2
4308 fi
4309 done
4310 done
4311 IFS=$as_save_IFS
4312
4313 fi ;;
4314 esac
4315 fi
4316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4317 if test -n "$ac_ct_CC"; then
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4319 printf "%s\n" "$ac_ct_CC" >&6; }
4320 else
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 printf "%s\n" "no" >&6; }
4323 fi
4324
4325
4326 test -n "$ac_ct_CC" && break
4327 done
4328
4329 if test "x$ac_ct_CC" = x; then
4330 CC=""
4331 else
4332 case $cross_compiling:$ac_tool_warned in
4333 yes:)
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336 ac_tool_warned=yes ;;
4337 esac
4338 CC=$ac_ct_CC
4339 fi
4340 fi
4341
4342 fi
4343 if test -z "$CC"; then
4344 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4346 set dummy ${ac_tool_prefix}clang; ac_word=$2
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 printf %s "checking for $ac_word... " >&6; }
4349 if test ${ac_cv_prog_CC+y}
4350 then :
4351 printf %s "(cached) " >&6
4352 else case e in #(
4353 e) if test -n "$CC"; then
4354 ac_cv_prog_CC="$CC" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4358 do
4359 IFS=$as_save_IFS
4360 case $as_dir in #(((
4361 '') as_dir=./ ;;
4362 */) ;;
4363 *) as_dir=$as_dir/ ;;
4364 esac
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4367 ac_cv_prog_CC="${ac_tool_prefix}clang"
4368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375 fi ;;
4376 esac
4377 fi
4378 CC=$ac_cv_prog_CC
4379 if test -n "$CC"; then
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4381 printf "%s\n" "$CC" >&6; }
4382 else
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 printf "%s\n" "no" >&6; }
4385 fi
4386
4387
4388 fi
4389 if test -z "$ac_cv_prog_CC"; then
4390 ac_ct_CC=$CC
4391 # Extract the first word of "clang", so it can be a program name with args.
4392 set dummy clang; ac_word=$2
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 printf %s "checking for $ac_word... " >&6; }
4395 if test ${ac_cv_prog_ac_ct_CC+y}
4396 then :
4397 printf %s "(cached) " >&6
4398 else case e in #(
4399 e) if test -n "$ac_ct_CC"; then
4400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405 IFS=$as_save_IFS
4406 case $as_dir in #(((
4407 '') as_dir=./ ;;
4408 */) ;;
4409 *) as_dir=$as_dir/ ;;
4410 esac
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4413 ac_cv_prog_ac_ct_CC="clang"
4414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421 fi ;;
4422 esac
4423 fi
4424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4425 if test -n "$ac_ct_CC"; then
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4427 printf "%s\n" "$ac_ct_CC" >&6; }
4428 else
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 printf "%s\n" "no" >&6; }
4431 fi
4432
4433 if test "x$ac_ct_CC" = x; then
4434 CC=""
4435 else
4436 case $cross_compiling:$ac_tool_warned in
4437 yes:)
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440 ac_tool_warned=yes ;;
4441 esac
4442 CC=$ac_ct_CC
4443 fi
4444 else
4445 CC="$ac_cv_prog_CC"
4446 fi
4447
4448 fi
4449
4450
4451 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4452 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4453 as_fn_error $? "no acceptable C compiler found in \$PATH
4454 See 'config.log' for more details" "$LINENO" 5; }
4455
4456 # Provide some information about the compiler.
4457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4458 set X $ac_compile
4459 ac_compiler=$2
4460 for ac_option in --version -v -V -qversion -version; do
4461 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
4469 ac_status=$?
4470 if test -s conftest.err; then
4471 sed '10a\
4472 ... rest of stderr output deleted ...
4473 10q' conftest.err >conftest.er1
4474 cat conftest.er1 >&5
4475 fi
4476 rm -f conftest.er1 conftest.err
4477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }
4479 done
4480
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483
4484 int
4485 main (void)
4486 {
4487
4488 ;
4489 return 0;
4490 }
4491 _ACEOF
4492 ac_clean_files_save=$ac_clean_files
4493 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4494 # Try to create an executable without -o first, disregard a.out.
4495 # It will help us diagnose broken compilers, and finding out an intuition
4496 # of exeext.
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4498 printf %s "checking whether the C compiler works... " >&6; }
4499 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4500
4501 # The possible output files:
4502 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4503
4504 ac_rmfiles=
4505 for ac_file in $ac_files
4506 do
4507 case $ac_file in
4508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4509 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4510 esac
4511 done
4512 rm -f $ac_rmfiles
4513
4514 if { { ac_try="$ac_link_default"
4515 case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518 esac
4519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520 printf "%s\n" "$ac_try_echo"; } >&5
4521 (eval "$ac_link_default") 2>&5
4522 ac_status=$?
4523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4525 then :
4526 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4527 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4528 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4529 # so that the user can short-circuit this test for compilers unknown to
4530 # Autoconf.
4531 for ac_file in $ac_files ''
4532 do
4533 test -f "$ac_file" || continue
4534 case $ac_file in
4535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4536 ;;
4537 [ab].out )
4538 # We found the default executable, but exeext='' is most
4539 # certainly right.
4540 break;;
4541 *.* )
4542 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4543 then :; else
4544 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4545 fi
4546 # We set ac_cv_exeext here because the later test for it is not
4547 # safe: cross compilers may not add the suffix if given an '-o'
4548 # argument, so we may need to know it at that point already.
4549 # Even if this section looks crufty: it has the advantage of
4550 # actually working.
4551 break;;
4552 * )
4553 break;;
4554 esac
4555 done
4556 test "$ac_cv_exeext" = no && ac_cv_exeext=
4557
4558 else case e in #(
4559 e) ac_file='' ;;
4560 esac
4561 fi
4562 if test -z "$ac_file"
4563 then :
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 printf "%s\n" "no" >&6; }
4566 printf "%s\n" "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4570 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4571 as_fn_error 77 "C compiler cannot create executables
4572 See 'config.log' for more details" "$LINENO" 5; }
4573 else case e in #(
4574 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4575 printf "%s\n" "yes" >&6; } ;;
4576 esac
4577 fi
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4579 printf %s "checking for C compiler default output file name... " >&6; }
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4581 printf "%s\n" "$ac_file" >&6; }
4582 ac_exeext=$ac_cv_exeext
4583
4584 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4585 ac_clean_files=$ac_clean_files_save
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4587 printf %s "checking for suffix of executables... " >&6; }
4588 if { { ac_try="$ac_link"
4589 case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592 esac
4593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4594 printf "%s\n" "$ac_try_echo"; } >&5
4595 (eval "$ac_link") 2>&5
4596 ac_status=$?
4597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4598 test $ac_status = 0; }
4599 then :
4600 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4601 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4602 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4603 # 'rm'.
4604 for ac_file in conftest.exe conftest conftest.*; do
4605 test -f "$ac_file" || continue
4606 case $ac_file in
4607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4609 break;;
4610 * ) break;;
4611 esac
4612 done
4613 else case e in #(
4614 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4615 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4616 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4617 See 'config.log' for more details" "$LINENO" 5; } ;;
4618 esac
4619 fi
4620 rm -f conftest conftest$ac_cv_exeext
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4622 printf "%s\n" "$ac_cv_exeext" >&6; }
4623
4624 rm -f conftest.$ac_ext
4625 EXEEXT=$ac_cv_exeext
4626 ac_exeext=$EXEEXT
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #include <stdio.h>
4630 int
4631 main (void)
4632 {
4633 FILE *f = fopen ("conftest.out", "w");
4634 if (!f)
4635 return 1;
4636 return ferror (f) || fclose (f) != 0;
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 ac_clean_files="$ac_clean_files conftest.out"
4643 # Check that the compiler produces executables we can run. If not, either
4644 # the compiler is broken, or we cross compile.
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4646 printf %s "checking whether we are cross compiling... " >&6; }
4647 if test "$cross_compiling" != yes; then
4648 { { ac_try="$ac_link"
4649 case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652 esac
4653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654 printf "%s\n" "$ac_try_echo"; } >&5
4655 (eval "$ac_link") 2>&5
4656 ac_status=$?
4657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4659 if { ac_try='./conftest$ac_cv_exeext'
4660 { { case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 printf "%s\n" "$ac_try_echo"; } >&5
4666 (eval "$ac_try") 2>&5
4667 ac_status=$?
4668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; }; }; then
4670 cross_compiling=no
4671 else
4672 if test "$cross_compiling" = maybe; then
4673 cross_compiling=yes
4674 else
4675 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4676 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4677 as_fn_error 77 "cannot run C compiled programs.
4678 If you meant to cross compile, use '--host'.
4679 See 'config.log' for more details" "$LINENO" 5; }
4680 fi
4681 fi
4682 fi
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4684 printf "%s\n" "$cross_compiling" >&6; }
4685
4686 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4687 conftest.o conftest.obj conftest.out
4688 ac_clean_files=$ac_clean_files_save
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4690 printf %s "checking for suffix of object files... " >&6; }
4691 if test ${ac_cv_objext+y}
4692 then :
4693 printf %s "(cached) " >&6
4694 else case e in #(
4695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697
4698 int
4699 main (void)
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.o conftest.obj
4707 if { { ac_try="$ac_compile"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713 printf "%s\n" "$ac_try_echo"; } >&5
4714 (eval "$ac_compile") 2>&5
4715 ac_status=$?
4716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }
4718 then :
4719 for ac_file in conftest.o conftest.obj conftest.*; do
4720 test -f "$ac_file" || continue;
4721 case $ac_file in
4722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4724 break;;
4725 esac
4726 done
4727 else case e in #(
4728 e) printf "%s\n" "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4730
4731 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4732 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4733 as_fn_error $? "cannot compute suffix of object files: cannot compile
4734 See 'config.log' for more details" "$LINENO" 5; } ;;
4735 esac
4736 fi
4737 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4738 esac
4739 fi
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4741 printf "%s\n" "$ac_cv_objext" >&6; }
4742 OBJEXT=$ac_cv_objext
4743 ac_objext=$OBJEXT
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4745 printf %s "checking whether the compiler supports GNU C... " >&6; }
4746 if test ${ac_cv_c_compiler_gnu+y}
4747 then :
4748 printf %s "(cached) " >&6
4749 else case e in #(
4750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752
4753 int
4754 main (void)
4755 {
4756 #ifndef __GNUC__
4757 choke me
4758 #endif
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"
4765 then :
4766 ac_compiler_gnu=yes
4767 else case e in #(
4768 e) ac_compiler_gnu=no ;;
4769 esac
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4773 ;;
4774 esac
4775 fi
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4777 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779
4780 if test $ac_compiler_gnu = yes; then
4781 GCC=yes
4782 else
4783 GCC=
4784 fi
4785 ac_test_CFLAGS=${CFLAGS+y}
4786 ac_save_CFLAGS=$CFLAGS
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4788 printf %s "checking whether $CC accepts -g... " >&6; }
4789 if test ${ac_cv_prog_cc_g+y}
4790 then :
4791 printf %s "(cached) " >&6
4792 else case e in #(
4793 e) ac_save_c_werror_flag=$ac_c_werror_flag
4794 ac_c_werror_flag=yes
4795 ac_cv_prog_cc_g=no
4796 CFLAGS="-g"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799
4800 int
4801 main (void)
4802 {
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"
4809 then :
4810 ac_cv_prog_cc_g=yes
4811 else case e in #(
4812 e) CFLAGS=""
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815
4816 int
4817 main (void)
4818 {
4819
4820 ;
4821 return 0;
4822 }
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"
4825 then :
4826
4827 else case e in #(
4828 e) ac_c_werror_flag=$ac_save_c_werror_flag
4829 CFLAGS="-g"
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832
4833 int
4834 main (void)
4835 {
4836
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"
4842 then :
4843 ac_cv_prog_cc_g=yes
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4846 esac
4847 fi
4848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4849 esac
4850 fi
4851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4852 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4853 esac
4854 fi
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4856 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4857 if test $ac_test_CFLAGS; then
4858 CFLAGS=$ac_save_CFLAGS
4859 elif test $ac_cv_prog_cc_g = yes; then
4860 if test "$GCC" = yes; then
4861 CFLAGS="-g -O2"
4862 else
4863 CFLAGS="-g"
4864 fi
4865 else
4866 if test "$GCC" = yes; then
4867 CFLAGS="-O2"
4868 else
4869 CFLAGS=
4870 fi
4871 fi
4872 ac_prog_cc_stdc=no
4873 if test x$ac_prog_cc_stdc = xno
4874 then :
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4876 printf %s "checking for $CC option to enable C11 features... " >&6; }
4877 if test ${ac_cv_prog_cc_c11+y}
4878 then :
4879 printf %s "(cached) " >&6
4880 else case e in #(
4881 e) ac_cv_prog_cc_c11=no
4882 ac_save_CC=$CC
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 $ac_c_conftest_c11_program
4886 _ACEOF
4887 for ac_arg in '' -std=gnu11
4888 do
4889 CC="$ac_save_CC $ac_arg"
4890 if ac_fn_c_try_compile "$LINENO"
4891 then :
4892 ac_cv_prog_cc_c11=$ac_arg
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext conftest.beam
4895 test "x$ac_cv_prog_cc_c11" != "xno" && break
4896 done
4897 rm -f conftest.$ac_ext
4898 CC=$ac_save_CC ;;
4899 esac
4900 fi
4901
4902 if test "x$ac_cv_prog_cc_c11" = xno
4903 then :
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905 printf "%s\n" "unsupported" >&6; }
4906 else case e in #(
4907 e) if test "x$ac_cv_prog_cc_c11" = x
4908 then :
4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4910 printf "%s\n" "none needed" >&6; }
4911 else case e in #(
4912 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4913 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4914 CC="$CC $ac_cv_prog_cc_c11" ;;
4915 esac
4916 fi
4917 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4918 ac_prog_cc_stdc=c11 ;;
4919 esac
4920 fi
4921 fi
4922 if test x$ac_prog_cc_stdc = xno
4923 then :
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4925 printf %s "checking for $CC option to enable C99 features... " >&6; }
4926 if test ${ac_cv_prog_cc_c99+y}
4927 then :
4928 printf %s "(cached) " >&6
4929 else case e in #(
4930 e) ac_cv_prog_cc_c99=no
4931 ac_save_CC=$CC
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 $ac_c_conftest_c99_program
4935 _ACEOF
4936 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4937 do
4938 CC="$ac_save_CC $ac_arg"
4939 if ac_fn_c_try_compile "$LINENO"
4940 then :
4941 ac_cv_prog_cc_c99=$ac_arg
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext conftest.beam
4944 test "x$ac_cv_prog_cc_c99" != "xno" && break
4945 done
4946 rm -f conftest.$ac_ext
4947 CC=$ac_save_CC ;;
4948 esac
4949 fi
4950
4951 if test "x$ac_cv_prog_cc_c99" = xno
4952 then :
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4954 printf "%s\n" "unsupported" >&6; }
4955 else case e in #(
4956 e) if test "x$ac_cv_prog_cc_c99" = x
4957 then :
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4959 printf "%s\n" "none needed" >&6; }
4960 else case e in #(
4961 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4962 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4963 CC="$CC $ac_cv_prog_cc_c99" ;;
4964 esac
4965 fi
4966 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4967 ac_prog_cc_stdc=c99 ;;
4968 esac
4969 fi
4970 fi
4971 if test x$ac_prog_cc_stdc = xno
4972 then :
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4974 printf %s "checking for $CC option to enable C89 features... " >&6; }
4975 if test ${ac_cv_prog_cc_c89+y}
4976 then :
4977 printf %s "(cached) " >&6
4978 else case e in #(
4979 e) ac_cv_prog_cc_c89=no
4980 ac_save_CC=$CC
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983 $ac_c_conftest_c89_program
4984 _ACEOF
4985 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4986 do
4987 CC="$ac_save_CC $ac_arg"
4988 if ac_fn_c_try_compile "$LINENO"
4989 then :
4990 ac_cv_prog_cc_c89=$ac_arg
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.beam
4993 test "x$ac_cv_prog_cc_c89" != "xno" && break
4994 done
4995 rm -f conftest.$ac_ext
4996 CC=$ac_save_CC ;;
4997 esac
4998 fi
4999
5000 if test "x$ac_cv_prog_cc_c89" = xno
5001 then :
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5003 printf "%s\n" "unsupported" >&6; }
5004 else case e in #(
5005 e) if test "x$ac_cv_prog_cc_c89" = x
5006 then :
5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5008 printf "%s\n" "none needed" >&6; }
5009 else case e in #(
5010 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5011 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5012 CC="$CC $ac_cv_prog_cc_c89" ;;
5013 esac
5014 fi
5015 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5016 ac_prog_cc_stdc=c89 ;;
5017 esac
5018 fi
5019 fi
5020
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027
5028 ac_ext=c
5029 ac_cpp='$CPP $CPPFLAGS'
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5034 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5035 if test ${am_cv_prog_cc_c_o+y}
5036 then :
5037 printf %s "(cached) " >&6
5038 else case e in #(
5039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041
5042 int
5043 main (void)
5044 {
5045
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 # Make sure it works both with $CC and with simple cc.
5051 # Following AC_PROG_CC_C_O, we do the test twice because some
5052 # compilers refuse to overwrite an existing .o file with -o,
5053 # though they will create one.
5054 am_cv_prog_cc_c_o=yes
5055 for am_i in 1 2; do
5056 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5057 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } \
5061 && test -f conftest2.$ac_objext; then
5062 : OK
5063 else
5064 am_cv_prog_cc_c_o=no
5065 break
5066 fi
5067 done
5068 # aligned with autoconf, so not including core; see bug#72225.
5069 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5070 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5071 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5072 unset am_i ;;
5073 esac
5074 fi
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5076 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5077 if test "$am_cv_prog_cc_c_o" != yes; then
5078 # Losing compiler, so override with the script.
5079 # FIXME: It is wrong to rewrite CC.
5080 # But if we don't then we get into trouble of one sort or another.
5081 # A longer-term fix would be to have automake use am__CC in this case,
5082 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5083 CC="$am_aux_dir/compile $CC"
5084 fi
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091
5092 depcc="$CC" am_compiler_list=
5093
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5095 printf %s "checking dependency style of $depcc... " >&6; }
5096 if test ${am_cv_CC_dependencies_compiler_type+y}
5097 then :
5098 printf %s "(cached) " >&6
5099 else case e in #(
5100 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5101 # We make a subdir and do the tests there. Otherwise we can end up
5102 # making bogus files that we don't know about and never remove. For
5103 # instance it was reported that on HP-UX the gcc test will end up
5104 # making a dummy file named 'D' -- because '-MD' means "put the output
5105 # in D".
5106 rm -rf conftest.dir
5107 mkdir conftest.dir
5108 # Copy depcomp to subdir because otherwise we won't find it if we're
5109 # using a relative directory.
5110 cp "$am_depcomp" conftest.dir
5111 cd conftest.dir
5112 # We will build objects and dependencies in a subdirectory because
5113 # it helps to detect inapplicable dependency modes. For instance
5114 # both Tru64's cc and ICC support -MD to output dependencies as a
5115 # side effect of compilation, but ICC will put the dependencies in
5116 # the current directory while Tru64 will put them in the object
5117 # directory.
5118 mkdir sub
5119
5120 am_cv_CC_dependencies_compiler_type=none
5121 if test "$am_compiler_list" = ""; then
5122 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5123 fi
5124 am__universal=false
5125 case " $depcc " in #(
5126 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5127 esac
5128
5129 for depmode in $am_compiler_list; do
5130 # Setup a source with many dependencies, because some compilers
5131 # like to wrap large dependency lists on column 80 (with \), and
5132 # we should not choose a depcomp mode which is confused by this.
5133 #
5134 # We need to recreate these files for each test, as the compiler may
5135 # overwrite some of them when testing with obscure command lines.
5136 # This happens at least with the AIX C compiler.
5137 : > sub/conftest.c
5138 for i in 1 2 3 4 5 6; do
5139 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5140 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5141 # Solaris 10 /bin/sh.
5142 echo '/* dummy */' > sub/conftst$i.h
5143 done
5144 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5145
5146 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5147 # mode. It turns out that the SunPro C++ compiler does not properly
5148 # handle '-M -o', and we need to detect this. Also, some Intel
5149 # versions had trouble with output in subdirs.
5150 am__obj=sub/conftest.${OBJEXT-o}
5151 am__minus_obj="-o $am__obj"
5152 case $depmode in
5153 gcc)
5154 # This depmode causes a compiler race in universal mode.
5155 test "$am__universal" = false || continue
5156 ;;
5157 nosideeffect)
5158 # After this tag, mechanisms are not by side-effect, so they'll
5159 # only be used when explicitly requested.
5160 if test "x$enable_dependency_tracking" = xyes; then
5161 continue
5162 else
5163 break
5164 fi
5165 ;;
5166 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5167 # This compiler won't grok '-c -o', but also, the minuso test has
5168 # not run yet. These depmodes are late enough in the game, and
5169 # so weak that their functioning should not be impacted.
5170 am__obj=conftest.${OBJEXT-o}
5171 am__minus_obj=
5172 ;;
5173 none) break ;;
5174 esac
5175 if depmode=$depmode \
5176 source=sub/conftest.c object=$am__obj \
5177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5178 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5179 >/dev/null 2>conftest.err &&
5180 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5182 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5184 # icc doesn't choke on unknown options, it will just issue warnings
5185 # or remarks (even with -Werror). So we grep stderr for any message
5186 # that says an option was ignored or not supported.
5187 # When given -MP, icc 7.0 and 7.1 complain thus:
5188 # icc: Command line warning: ignoring option '-M'; no argument required
5189 # The diagnosis changed in icc 8.0:
5190 # icc: Command line remark: option '-MP' not supported
5191 if (grep 'ignoring option' conftest.err ||
5192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5193 am_cv_CC_dependencies_compiler_type=$depmode
5194 break
5195 fi
5196 fi
5197 done
5198
5199 cd ..
5200 rm -rf conftest.dir
5201 else
5202 am_cv_CC_dependencies_compiler_type=none
5203 fi
5204 ;;
5205 esac
5206 fi
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5208 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5209 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5210
5211 if
5212 test "x$enable_dependency_tracking" != xno \
5213 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5214 am__fastdepCC_TRUE=
5215 am__fastdepCC_FALSE='#'
5216 else
5217 am__fastdepCC_TRUE='#'
5218 am__fastdepCC_FALSE=
5219 fi
5220
5221
5222
5223 ac_header= ac_cache=
5224 for ac_item in $ac_header_c_list
5225 do
5226 if test $ac_cache; then
5227 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5228 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5229 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5230 fi
5231 ac_header= ac_cache=
5232 elif test $ac_header; then
5233 ac_cache=$ac_item
5234 else
5235 ac_header=$ac_item
5236 fi
5237 done
5238
5239
5240
5241
5242
5243
5244
5245
5246 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5247 then :
5248
5249 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5250
5251 fi
5252
5253
5254
5255
5256
5257
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5259 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5260 if test ${ac_cv_safe_to_define___extensions__+y}
5261 then :
5262 printf %s "(cached) " >&6
5263 else case e in #(
5264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266
5267 # define __EXTENSIONS__ 1
5268 $ac_includes_default
5269 int
5270 main (void)
5271 {
5272
5273 ;
5274 return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"
5278 then :
5279 ac_cv_safe_to_define___extensions__=yes
5280 else case e in #(
5281 e) ac_cv_safe_to_define___extensions__=no ;;
5282 esac
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5285 esac
5286 fi
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5288 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5289
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5291 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5292 if test ${ac_cv_should_define__xopen_source+y}
5293 then :
5294 printf %s "(cached) " >&6
5295 else case e in #(
5296 e) ac_cv_should_define__xopen_source=no
5297 if test $ac_cv_header_wchar_h = yes
5298 then :
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301
5302 #include <wchar.h>
5303 mbstate_t x;
5304 int
5305 main (void)
5306 {
5307
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"
5313 then :
5314
5315 else case e in #(
5316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318
5319 #define _XOPEN_SOURCE 500
5320 #include <wchar.h>
5321 mbstate_t x;
5322 int
5323 main (void)
5324 {
5325
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_compile "$LINENO"
5331 then :
5332 ac_cv_should_define__xopen_source=yes
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5335 esac
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5338 fi ;;
5339 esac
5340 fi
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5342 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5343
5344 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5345
5346 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5347
5348 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5349
5350 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5351
5352 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5353
5354 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5355
5356 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5357
5358 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5359
5360 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5361
5362 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5363
5364 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5365
5366 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5367
5368 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5369
5370 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5371
5372 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5373
5374 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5375
5376 if test $ac_cv_header_minix_config_h = yes
5377 then :
5378 MINIX=yes
5379 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5380
5381 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5382
5383 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5384
5385 else case e in #(
5386 e) MINIX= ;;
5387 esac
5388 fi
5389 if test $ac_cv_safe_to_define___extensions__ = yes
5390 then :
5391 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5392
5393 fi
5394 if test $ac_cv_should_define__xopen_source = yes
5395 then :
5396 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5397
5398 fi
5399
5400 # Check whether --enable-compiler-warnings was given.
5401 if test ${enable_compiler_warnings+y}
5402 then :
5403 enableval=$enable_compiler_warnings;
5404 fi
5405 case $enable_compiler_warnings in #(
5406 no | min | yes | max | all) :
5407 ;; #(
5408 *) :
5409 if test "x$enable_maintainer_mode" = xyes
5410 then :
5411 enable_compiler_warnings=yes
5412 else case e in #(
5413 e) enable_compiler_warnings=min ;;
5414 esac
5415 fi ;;
5416 esac
5417
5418 case `pwd` in
5419 *\ * | *\ *)
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5421 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5422 esac
5423
5424
5425
5426 macro_version='2.5.4'
5427 macro_revision='2.5.4'
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 ltmain=$ac_aux_dir/ltmain.sh
5443
5444
5445
5446 # Make sure we can run config.sub.
5447 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5448 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5449
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5451 printf %s "checking build system type... " >&6; }
5452 if test ${ac_cv_build+y}
5453 then :
5454 printf %s "(cached) " >&6
5455 else case e in #(
5456 e) ac_build_alias=$build_alias
5457 test "x$ac_build_alias" = x &&
5458 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5459 test "x$ac_build_alias" = x &&
5460 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5461 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5462 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5463 ;;
5464 esac
5465 fi
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5467 printf "%s\n" "$ac_cv_build" >&6; }
5468 case $ac_cv_build in
5469 *-*-*) ;;
5470 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5471 esac
5472 build=$ac_cv_build
5473 ac_save_IFS=$IFS; IFS='-'
5474 set x $ac_cv_build
5475 shift
5476 build_cpu=$1
5477 build_vendor=$2
5478 shift; shift
5479 # Remember, the first character of IFS is used to create $*,
5480 # except with old shells:
5481 build_os=$*
5482 IFS=$ac_save_IFS
5483 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5484
5485
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5487 printf %s "checking host system type... " >&6; }
5488 if test ${ac_cv_host+y}
5489 then :
5490 printf %s "(cached) " >&6
5491 else case e in #(
5492 e) if test "x$host_alias" = x; then
5493 ac_cv_host=$ac_cv_build
5494 else
5495 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5496 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5497 fi
5498 ;;
5499 esac
5500 fi
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5502 printf "%s\n" "$ac_cv_host" >&6; }
5503 case $ac_cv_host in
5504 *-*-*) ;;
5505 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5506 esac
5507 host=$ac_cv_host
5508 ac_save_IFS=$IFS; IFS='-'
5509 set x $ac_cv_host
5510 shift
5511 host_cpu=$1
5512 host_vendor=$2
5513 shift; shift
5514 # Remember, the first character of IFS is used to create $*,
5515 # except with old shells:
5516 host_os=$*
5517 IFS=$ac_save_IFS
5518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5519
5520
5521 # Backslashify metacharacters that are still active within
5522 # double-quoted strings.
5523 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5524
5525 # Same as above, but do not quote variable references.
5526 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5527
5528 # Sed substitution to delay expansion of an escaped shell variable in a
5529 # double_quote_subst'ed string.
5530 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5531
5532 # Sed substitution to delay expansion of an escaped single quote.
5533 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5534
5535 # Sed substitution to avoid accidental globbing in evaled expressions
5536 no_glob_subst='s/\*/\\\*/g'
5537
5538 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5539 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5541
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5543 printf %s "checking how to print strings... " >&6; }
5544 # Test print first, because it will be a builtin if present.
5545 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5546 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5547 ECHO='print -r --'
5548 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5549 ECHO='printf %s\n'
5550 else
5551 # Use this function as a fallback that always works.
5552 func_fallback_echo ()
5553 {
5554 eval 'cat <<_LTECHO_EOF
5555 $1
5556 _LTECHO_EOF'
5557 }
5558 ECHO='func_fallback_echo'
5559 fi
5560
5561 # func_echo_all arg...
5562 # Invoke $ECHO with all args, space-separated.
5563 func_echo_all ()
5564 {
5565 $ECHO ""
5566 }
5567
5568 case $ECHO in
5569 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5570 printf "%s\n" "printf" >&6; } ;;
5571 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5572 printf "%s\n" "print -r" >&6; } ;;
5573 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5574 printf "%s\n" "cat" >&6; } ;;
5575 esac
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5591 printf %s "checking for a sed that does not truncate output... " >&6; }
5592 if test ${ac_cv_path_SED+y}
5593 then :
5594 printf %s "(cached) " >&6
5595 else case e in #(
5596 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5597 for ac_i in 1 2 3 4 5 6 7; do
5598 ac_script="$ac_script$as_nl$ac_script"
5599 done
5600 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5601 { ac_script=; unset ac_script;}
5602 if test -z "$SED"; then
5603 ac_path_SED_found=false
5604 # Loop through the user's path and test for each of PROGNAME-LIST
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608 IFS=$as_save_IFS
5609 case $as_dir in #(((
5610 '') as_dir=./ ;;
5611 */) ;;
5612 *) as_dir=$as_dir/ ;;
5613 esac
5614 for ac_prog in sed gsed
5615 do
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5618 as_fn_executable_p "$ac_path_SED" || continue
5619 # Check for GNU ac_path_SED and select it if it is found.
5620 # Check for GNU $ac_path_SED
5621 case `"$ac_path_SED" --version 2>&1` in #(
5622 *GNU*)
5623 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5624 #(
5625 *)
5626 ac_count=0
5627 printf %s 0123456789 >"conftest.in"
5628 while :
5629 do
5630 cat "conftest.in" "conftest.in" >"conftest.tmp"
5631 mv "conftest.tmp" "conftest.in"
5632 cp "conftest.in" "conftest.nl"
5633 printf "%s\n" '' >> "conftest.nl"
5634 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5636 as_fn_arith $ac_count + 1 && ac_count=$as_val
5637 if test $ac_count -gt ${ac_path_SED_max-0}; then
5638 # Best one so far, save it but keep looking for a better one
5639 ac_cv_path_SED="$ac_path_SED"
5640 ac_path_SED_max=$ac_count
5641 fi
5642 # 10*(2^10) chars as input seems more than enough
5643 test $ac_count -gt 10 && break
5644 done
5645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5646 esac
5647
5648 $ac_path_SED_found && break 3
5649 done
5650 done
5651 done
5652 IFS=$as_save_IFS
5653 if test -z "$ac_cv_path_SED"; then
5654 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5655 fi
5656 else
5657 ac_cv_path_SED=$SED
5658 fi
5659 ;;
5660 esac
5661 fi
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5663 printf "%s\n" "$ac_cv_path_SED" >&6; }
5664 SED="$ac_cv_path_SED"
5665 rm -f conftest.sed
5666
5667 test -z "$SED" && SED=sed
5668 Xsed="$SED -e 1s/^X//"
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5681 printf %s "checking for grep that handles long lines and -e... " >&6; }
5682 if test ${ac_cv_path_GREP+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else case e in #(
5686 e) if test -z "$GREP"; then
5687 ac_path_GREP_found=false
5688 # Loop through the user's path and test for each of PROGNAME-LIST
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5691 do
5692 IFS=$as_save_IFS
5693 case $as_dir in #(((
5694 '') as_dir=./ ;;
5695 */) ;;
5696 *) as_dir=$as_dir/ ;;
5697 esac
5698 for ac_prog in grep ggrep
5699 do
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5702 as_fn_executable_p "$ac_path_GREP" || continue
5703 # Check for GNU ac_path_GREP and select it if it is found.
5704 # Check for GNU $ac_path_GREP
5705 case `"$ac_path_GREP" --version 2>&1` in #(
5706 *GNU*)
5707 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5708 #(
5709 *)
5710 ac_count=0
5711 printf %s 0123456789 >"conftest.in"
5712 while :
5713 do
5714 cat "conftest.in" "conftest.in" >"conftest.tmp"
5715 mv "conftest.tmp" "conftest.in"
5716 cp "conftest.in" "conftest.nl"
5717 printf "%s\n" 'GREP' >> "conftest.nl"
5718 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5720 as_fn_arith $ac_count + 1 && ac_count=$as_val
5721 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5722 # Best one so far, save it but keep looking for a better one
5723 ac_cv_path_GREP="$ac_path_GREP"
5724 ac_path_GREP_max=$ac_count
5725 fi
5726 # 10*(2^10) chars as input seems more than enough
5727 test $ac_count -gt 10 && break
5728 done
5729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5730 esac
5731
5732 $ac_path_GREP_found && break 3
5733 done
5734 done
5735 done
5736 IFS=$as_save_IFS
5737 if test -z "$ac_cv_path_GREP"; then
5738 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5739 fi
5740 else
5741 ac_cv_path_GREP=$GREP
5742 fi
5743 ;;
5744 esac
5745 fi
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5747 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5748 GREP="$ac_cv_path_GREP"
5749
5750
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5752 printf %s "checking for egrep... " >&6; }
5753 if test ${ac_cv_path_EGREP+y}
5754 then :
5755 printf %s "(cached) " >&6
5756 else case e in #(
5757 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5758 then ac_cv_path_EGREP="$GREP -E"
5759 else
5760 if test -z "$EGREP"; then
5761 ac_path_EGREP_found=false
5762 # Loop through the user's path and test for each of PROGNAME-LIST
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5765 do
5766 IFS=$as_save_IFS
5767 case $as_dir in #(((
5768 '') as_dir=./ ;;
5769 */) ;;
5770 *) as_dir=$as_dir/ ;;
5771 esac
5772 for ac_prog in egrep
5773 do
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5776 as_fn_executable_p "$ac_path_EGREP" || continue
5777 # Check for GNU ac_path_EGREP and select it if it is found.
5778 # Check for GNU $ac_path_EGREP
5779 case `"$ac_path_EGREP" --version 2>&1` in #(
5780 *GNU*)
5781 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5782 #(
5783 *)
5784 ac_count=0
5785 printf %s 0123456789 >"conftest.in"
5786 while :
5787 do
5788 cat "conftest.in" "conftest.in" >"conftest.tmp"
5789 mv "conftest.tmp" "conftest.in"
5790 cp "conftest.in" "conftest.nl"
5791 printf "%s\n" 'EGREP' >> "conftest.nl"
5792 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5794 as_fn_arith $ac_count + 1 && ac_count=$as_val
5795 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5796 # Best one so far, save it but keep looking for a better one
5797 ac_cv_path_EGREP="$ac_path_EGREP"
5798 ac_path_EGREP_max=$ac_count
5799 fi
5800 # 10*(2^10) chars as input seems more than enough
5801 test $ac_count -gt 10 && break
5802 done
5803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5804 esac
5805
5806 $ac_path_EGREP_found && break 3
5807 done
5808 done
5809 done
5810 IFS=$as_save_IFS
5811 if test -z "$ac_cv_path_EGREP"; then
5812 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5813 fi
5814 else
5815 ac_cv_path_EGREP=$EGREP
5816 fi
5817
5818 fi ;;
5819 esac
5820 fi
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5822 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5823 EGREP="$ac_cv_path_EGREP"
5824
5825 EGREP_TRADITIONAL=$EGREP
5826 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5827
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5829 printf %s "checking for fgrep... " >&6; }
5830 if test ${ac_cv_path_FGREP+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else case e in #(
5834 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5835 then ac_cv_path_FGREP="$GREP -F"
5836 else
5837 if test -z "$FGREP"; then
5838 ac_path_FGREP_found=false
5839 # Loop through the user's path and test for each of PROGNAME-LIST
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5842 do
5843 IFS=$as_save_IFS
5844 case $as_dir in #(((
5845 '') as_dir=./ ;;
5846 */) ;;
5847 *) as_dir=$as_dir/ ;;
5848 esac
5849 for ac_prog in fgrep
5850 do
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5853 as_fn_executable_p "$ac_path_FGREP" || continue
5854 # Check for GNU ac_path_FGREP and select it if it is found.
5855 # Check for GNU $ac_path_FGREP
5856 case `"$ac_path_FGREP" --version 2>&1` in #(
5857 *GNU*)
5858 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5859 #(
5860 *)
5861 ac_count=0
5862 printf %s 0123456789 >"conftest.in"
5863 while :
5864 do
5865 cat "conftest.in" "conftest.in" >"conftest.tmp"
5866 mv "conftest.tmp" "conftest.in"
5867 cp "conftest.in" "conftest.nl"
5868 printf "%s\n" 'FGREP' >> "conftest.nl"
5869 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5871 as_fn_arith $ac_count + 1 && ac_count=$as_val
5872 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5873 # Best one so far, save it but keep looking for a better one
5874 ac_cv_path_FGREP="$ac_path_FGREP"
5875 ac_path_FGREP_max=$ac_count
5876 fi
5877 # 10*(2^10) chars as input seems more than enough
5878 test $ac_count -gt 10 && break
5879 done
5880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5881 esac
5882
5883 $ac_path_FGREP_found && break 3
5884 done
5885 done
5886 done
5887 IFS=$as_save_IFS
5888 if test -z "$ac_cv_path_FGREP"; then
5889 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5890 fi
5891 else
5892 ac_cv_path_FGREP=$FGREP
5893 fi
5894
5895 fi ;;
5896 esac
5897 fi
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5899 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5900 FGREP="$ac_cv_path_FGREP"
5901
5902
5903 test -z "$GREP" && GREP=grep
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923 # Check whether --with-gnu-ld was given.
5924 if test ${with_gnu_ld+y}
5925 then :
5926 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5927 else case e in #(
5928 e) with_gnu_ld=no ;;
5929 esac
5930 fi
5931
5932 ac_prog=ld
5933 if test yes = "$GCC"; then
5934 # Check if gcc -print-prog-name=ld gives a path.
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5936 printf %s "checking for ld used by $CC... " >&6; }
5937 case $host in
5938 *-*-mingw* | *-*-windows*)
5939 # gcc leaves a trailing carriage return, which upsets mingw
5940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5941 *)
5942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5943 esac
5944 case $ac_prog in
5945 # Accept absolute paths.
5946 [\\/]* | ?:[\\/]*)
5947 re_direlt='/[^/][^/]*/\.\./'
5948 # Canonicalize the pathname of ld
5949 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5950 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5951 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5952 done
5953 test -z "$LD" && LD=$ac_prog
5954 ;;
5955 "")
5956 # If it fails, then pretend we aren't using GCC.
5957 ac_prog=ld
5958 ;;
5959 *)
5960 # If it is relative, then search for the first ld in PATH.
5961 with_gnu_ld=unknown
5962 ;;
5963 esac
5964 elif test yes = "$with_gnu_ld"; then
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5966 printf %s "checking for GNU ld... " >&6; }
5967 else
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5969 printf %s "checking for non-GNU ld... " >&6; }
5970 fi
5971 if test ${lt_cv_path_LD+y}
5972 then :
5973 printf %s "(cached) " >&6
5974 else case e in #(
5975 e) if test -z "$LD"; then
5976 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5977 for ac_dir in $PATH; do
5978 IFS=$lt_save_ifs
5979 test -z "$ac_dir" && ac_dir=.
5980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5981 lt_cv_path_LD=$ac_dir/$ac_prog
5982 # Check to see if the program is GNU ld. I'd rather use --version,
5983 # but apparently some variants of GNU ld only accept -v.
5984 # Break only if it was the GNU/non-GNU ld that we prefer.
5985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5986 *GNU* | *'with BFD'*)
5987 test no != "$with_gnu_ld" && break
5988 ;;
5989 *)
5990 test yes != "$with_gnu_ld" && break
5991 ;;
5992 esac
5993 fi
5994 done
5995 IFS=$lt_save_ifs
5996 else
5997 lt_cv_path_LD=$LD # Let the user override the test with a path.
5998 fi ;;
5999 esac
6000 fi
6001
6002 LD=$lt_cv_path_LD
6003 if test -n "$LD"; then
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6005 printf "%s\n" "$LD" >&6; }
6006 else
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 printf "%s\n" "no" >&6; }
6009 fi
6010 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6012 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6013 if test ${lt_cv_prog_gnu_ld+y}
6014 then :
6015 printf %s "(cached) " >&6
6016 else case e in #(
6017 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6018 case `$LD -v 2>&1 </dev/null` in
6019 *GNU* | *'with BFD'*)
6020 lt_cv_prog_gnu_ld=yes
6021 ;;
6022 *)
6023 lt_cv_prog_gnu_ld=no
6024 ;;
6025 esac ;;
6026 esac
6027 fi
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6029 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6030 with_gnu_ld=$lt_cv_prog_gnu_ld
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6041 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6042 if test ${lt_cv_path_NM+y}
6043 then :
6044 printf %s "(cached) " >&6
6045 else case e in #(
6046 e) if test -n "$NM"; then
6047 # Let the user override the test.
6048 lt_cv_path_NM=$NM
6049 else
6050 lt_nm_to_check=${ac_tool_prefix}nm
6051 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6052 lt_nm_to_check="$lt_nm_to_check nm"
6053 fi
6054 for lt_tmp_nm in $lt_nm_to_check; do
6055 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6056 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6057 IFS=$lt_save_ifs
6058 test -z "$ac_dir" && ac_dir=.
6059 tmp_nm=$ac_dir/$lt_tmp_nm
6060 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6061 # Check to see if the nm accepts a BSD-compat flag.
6062 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6063 # nm: unknown option "B" ignored
6064 # Tru64's nm complains that /dev/null is an invalid object file
6065 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6066 case $build_os in
6067 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6068 *) lt_bad_file=/dev/null ;;
6069 esac
6070 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6071 *$lt_bad_file* | *'Invalid file or object type'*)
6072 lt_cv_path_NM="$tmp_nm -B"
6073 break 2
6074 ;;
6075 *)
6076 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6077 */dev/null*)
6078 lt_cv_path_NM="$tmp_nm -p"
6079 break 2
6080 ;;
6081 *)
6082 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6083 continue # so that we can try to find one that supports BSD flags
6084 ;;
6085 esac
6086 ;;
6087 esac
6088 fi
6089 done
6090 IFS=$lt_save_ifs
6091 done
6092 : ${lt_cv_path_NM=no}
6093 fi ;;
6094 esac
6095 fi
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6097 printf "%s\n" "$lt_cv_path_NM" >&6; }
6098 if test no != "$lt_cv_path_NM"; then
6099 NM=$lt_cv_path_NM
6100 else
6101 # Didn't find any BSD compatible name lister, look for dumpbin.
6102 if test -n "$DUMPBIN"; then :
6103 # Let the user override the test.
6104 else
6105 if test -n "$ac_tool_prefix"; then
6106 for ac_prog in dumpbin "link -dump"
6107 do
6108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 printf %s "checking for $ac_word... " >&6; }
6112 if test ${ac_cv_prog_DUMPBIN+y}
6113 then :
6114 printf %s "(cached) " >&6
6115 else case e in #(
6116 e) if test -n "$DUMPBIN"; then
6117 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122 IFS=$as_save_IFS
6123 case $as_dir in #(((
6124 '') as_dir=./ ;;
6125 */) ;;
6126 *) as_dir=$as_dir/ ;;
6127 esac
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi ;;
6139 esac
6140 fi
6141 DUMPBIN=$ac_cv_prog_DUMPBIN
6142 if test -n "$DUMPBIN"; then
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6144 printf "%s\n" "$DUMPBIN" >&6; }
6145 else
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 printf "%s\n" "no" >&6; }
6148 fi
6149
6150
6151 test -n "$DUMPBIN" && break
6152 done
6153 fi
6154 if test -z "$DUMPBIN"; then
6155 ac_ct_DUMPBIN=$DUMPBIN
6156 for ac_prog in dumpbin "link -dump"
6157 do
6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy $ac_prog; ac_word=$2
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 printf %s "checking for $ac_word... " >&6; }
6162 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6163 then :
6164 printf %s "(cached) " >&6
6165 else case e in #(
6166 e) if test -n "$ac_ct_DUMPBIN"; then
6167 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6171 do
6172 IFS=$as_save_IFS
6173 case $as_dir in #(((
6174 '') as_dir=./ ;;
6175 */) ;;
6176 *) as_dir=$as_dir/ ;;
6177 esac
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi ;;
6189 esac
6190 fi
6191 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6192 if test -n "$ac_ct_DUMPBIN"; then
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6194 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6195 else
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 printf "%s\n" "no" >&6; }
6198 fi
6199
6200
6201 test -n "$ac_ct_DUMPBIN" && break
6202 done
6203
6204 if test "x$ac_ct_DUMPBIN" = x; then
6205 DUMPBIN=":"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 DUMPBIN=$ac_ct_DUMPBIN
6214 fi
6215 fi
6216
6217 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6218 *COFF*)
6219 DUMPBIN="$DUMPBIN -symbols -headers"
6220 ;;
6221 *)
6222 DUMPBIN=:
6223 ;;
6224 esac
6225 fi
6226
6227 if test : != "$DUMPBIN"; then
6228 NM=$DUMPBIN
6229 fi
6230 fi
6231 test -z "$NM" && NM=nm
6232
6233
6234
6235
6236
6237
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6239 printf %s "checking the name lister ($NM) interface... " >&6; }
6240 if test ${lt_cv_nm_interface+y}
6241 then :
6242 printf %s "(cached) " >&6
6243 else case e in #(
6244 e) lt_cv_nm_interface="BSD nm"
6245 echo "int some_variable = 0;" > conftest.$ac_ext
6246 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6247 (eval "$ac_compile" 2>conftest.err)
6248 cat conftest.err >&5
6249 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6251 cat conftest.err >&5
6252 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6253 cat conftest.out >&5
6254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6255 lt_cv_nm_interface="MS dumpbin"
6256 fi
6257 rm -f conftest* ;;
6258 esac
6259 fi
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6261 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6262
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6264 printf %s "checking whether ln -s works... " >&6; }
6265 LN_S=$as_ln_s
6266 if test "$LN_S" = "ln -s"; then
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6268 printf "%s\n" "yes" >&6; }
6269 else
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6271 printf "%s\n" "no, using $LN_S" >&6; }
6272 fi
6273
6274 # find the maximum length of command line arguments
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6276 printf %s "checking the maximum length of command line arguments... " >&6; }
6277 if test ${lt_cv_sys_max_cmd_len+y}
6278 then :
6279 printf %s "(cached) " >&6
6280 else case e in #(
6281 e) i=0
6282 teststring=ABCD
6283
6284 case $build_os in
6285 msdosdjgpp*)
6286 # On DJGPP, this test can blow up pretty badly due to problems in libc
6287 # (any single argument exceeding 2000 bytes causes a buffer overrun
6288 # during glob expansion). Even if it were fixed, the result of this
6289 # check would be larger than it should be.
6290 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6291 ;;
6292
6293 gnu* | ironclad*)
6294 # Under GNU Hurd and Ironclad, this test is not required because there
6295 # is no limit to the length of command line arguments.
6296 # Libtool will interpret -1 as no limit whatsoever
6297 lt_cv_sys_max_cmd_len=-1;
6298 ;;
6299
6300 cygwin* | mingw* | windows* | cegcc*)
6301 # On Win9x/ME, this test blows up -- it succeeds, but takes
6302 # about 5 minutes as the teststring grows exponentially.
6303 # Worse, since 9x/ME are not pre-emptively multitasking,
6304 # you end up with a "frozen" computer, even though with patience
6305 # the test eventually succeeds (with a max line length of 256k).
6306 # Instead, let's just punt: use the minimum linelength reported by
6307 # all of the supported platforms: 8192 (on NT/2K/XP).
6308 lt_cv_sys_max_cmd_len=8192;
6309 ;;
6310
6311 mint*)
6312 # On MiNT this can take a long time and run out of memory.
6313 lt_cv_sys_max_cmd_len=8192;
6314 ;;
6315
6316 amigaos*)
6317 # On AmigaOS with pdksh, this test takes hours, literally.
6318 # So we just punt and use a minimum line length of 8192.
6319 lt_cv_sys_max_cmd_len=8192;
6320 ;;
6321
6322 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6323 # This has been around since 386BSD, at least. Likely further.
6324 if test -x /sbin/sysctl; then
6325 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6326 elif test -x /usr/sbin/sysctl; then
6327 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6328 else
6329 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6330 fi
6331 # And add a safety zone
6332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6334 ;;
6335
6336 interix*)
6337 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6338 lt_cv_sys_max_cmd_len=196608
6339 ;;
6340
6341 os2*)
6342 # The test takes a long time on OS/2.
6343 lt_cv_sys_max_cmd_len=8192
6344 ;;
6345
6346 osf*)
6347 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6348 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6349 # nice to cause kernel panics so lets avoid the loop below.
6350 # First set a reasonable default.
6351 lt_cv_sys_max_cmd_len=16384
6352 #
6353 if test -x /sbin/sysconfig; then
6354 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6355 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6356 esac
6357 fi
6358 ;;
6359 sco3.2v5*)
6360 lt_cv_sys_max_cmd_len=102400
6361 ;;
6362 sysv5* | sco5v6* | sysv4.2uw2*)
6363 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6364 if test -n "$kargmax"; then
6365 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6366 else
6367 lt_cv_sys_max_cmd_len=32768
6368 fi
6369 ;;
6370 *)
6371 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6372 if test -n "$lt_cv_sys_max_cmd_len" && \
6373 test undefined != "$lt_cv_sys_max_cmd_len"; then
6374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6376 else
6377 # Make teststring a little bigger before we do anything with it.
6378 # a 1K string should be a reasonable start.
6379 for i in 1 2 3 4 5 6 7 8; do
6380 teststring=$teststring$teststring
6381 done
6382 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6383 # If test is not a shell built-in, we'll probably end up computing a
6384 # maximum length that is only half of the actual maximum length, but
6385 # we can't tell.
6386 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6387 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6388 test 17 != "$i" # 1/2 MB should be enough
6389 do
6390 i=`expr $i + 1`
6391 teststring=$teststring$teststring
6392 done
6393 # Only check the string length outside the loop.
6394 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6395 teststring=
6396 # Add a significant safety factor because C++ compilers can tack on
6397 # massive amounts of additional arguments before passing them to the
6398 # linker. It appears as though 1/2 is a usable value.
6399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6400 fi
6401 ;;
6402 esac
6403 ;;
6404 esac
6405 fi
6406
6407 if test -n "$lt_cv_sys_max_cmd_len"; then
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6409 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6410 else
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6412 printf "%s\n" "none" >&6; }
6413 fi
6414 max_cmd_len=$lt_cv_sys_max_cmd_len
6415
6416
6417
6418
6419
6420
6421 : ${CP="cp -f"}
6422 : ${MV="mv -f"}
6423 : ${RM="rm -f"}
6424
6425 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6426 lt_unset=unset
6427 else
6428 lt_unset=false
6429 fi
6430
6431
6432
6433
6434
6435 # test EBCDIC or ASCII
6436 case `echo X|tr X '\101'` in
6437 A) # ASCII based system
6438 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6439 lt_SP2NL='tr \040 \012'
6440 lt_NL2SP='tr \015\012 \040\040'
6441 ;;
6442 *) # EBCDIC based system
6443 lt_SP2NL='tr \100 \n'
6444 lt_NL2SP='tr \r\n \100\100'
6445 ;;
6446 esac
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6457 printf %s "checking how to convert $build file names to $host format... " >&6; }
6458 if test ${lt_cv_to_host_file_cmd+y}
6459 then :
6460 printf %s "(cached) " >&6
6461 else case e in #(
6462 e) case $host in
6463 *-*-mingw* )
6464 case $build in
6465 *-*-mingw* | *-*-windows* ) # actually msys
6466 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6467 ;;
6468 *-*-cygwin* )
6469 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6470 ;;
6471 * ) # otherwise, assume *nix
6472 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6473 ;;
6474 esac
6475 ;;
6476 *-*-cygwin* )
6477 case $build in
6478 *-*-mingw* | *-*-windows* ) # actually msys
6479 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6480 ;;
6481 *-*-cygwin* )
6482 lt_cv_to_host_file_cmd=func_convert_file_noop
6483 ;;
6484 * ) # otherwise, assume *nix
6485 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6486 ;;
6487 esac
6488 ;;
6489 * ) # unhandled hosts (and "normal" native builds)
6490 lt_cv_to_host_file_cmd=func_convert_file_noop
6491 ;;
6492 esac
6493 ;;
6494 esac
6495 fi
6496
6497 to_host_file_cmd=$lt_cv_to_host_file_cmd
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6499 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6500
6501
6502
6503
6504
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6506 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6507 if test ${lt_cv_to_tool_file_cmd+y}
6508 then :
6509 printf %s "(cached) " >&6
6510 else case e in #(
6511 e) #assume ordinary cross tools, or native build.
6512 lt_cv_to_tool_file_cmd=func_convert_file_noop
6513 case $host in
6514 *-*-mingw* | *-*-windows* )
6515 case $build in
6516 *-*-mingw* | *-*-windows* ) # actually msys
6517 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6518 ;;
6519 esac
6520 ;;
6521 esac
6522 ;;
6523 esac
6524 fi
6525
6526 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6528 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6529
6530
6531
6532
6533
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6535 printf %s "checking for $LD option to reload object files... " >&6; }
6536 if test ${lt_cv_ld_reload_flag+y}
6537 then :
6538 printf %s "(cached) " >&6
6539 else case e in #(
6540 e) lt_cv_ld_reload_flag='-r' ;;
6541 esac
6542 fi
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6544 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6545 reload_flag=$lt_cv_ld_reload_flag
6546 case $reload_flag in
6547 "" | " "*) ;;
6548 *) reload_flag=" $reload_flag" ;;
6549 esac
6550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6551 case $host_os in
6552 cygwin* | mingw* | windows* | pw32* | cegcc*)
6553 if test yes != "$GCC"; then
6554 reload_cmds=false
6555 fi
6556 ;;
6557 darwin*)
6558 if test yes = "$GCC"; then
6559 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6560 else
6561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6562 fi
6563 ;;
6564 esac
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574 # Extract the first word of "file", so it can be a program name with args.
6575 set dummy file; ac_word=$2
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 printf %s "checking for $ac_word... " >&6; }
6578 if test ${ac_cv_prog_FILECMD+y}
6579 then :
6580 printf %s "(cached) " >&6
6581 else case e in #(
6582 e) if test -n "$FILECMD"; then
6583 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 case $as_dir in #(((
6590 '') as_dir=./ ;;
6591 */) ;;
6592 *) as_dir=$as_dir/ ;;
6593 esac
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6596 ac_cv_prog_FILECMD="file"
6597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6605 fi ;;
6606 esac
6607 fi
6608 FILECMD=$ac_cv_prog_FILECMD
6609 if test -n "$FILECMD"; then
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6611 printf "%s\n" "$FILECMD" >&6; }
6612 else
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 printf "%s\n" "no" >&6; }
6615 fi
6616
6617
6618
6619
6620
6621
6622
6623
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 printf %s "checking for $ac_word... " >&6; }
6629 if test ${ac_cv_prog_OBJDUMP+y}
6630 then :
6631 printf %s "(cached) " >&6
6632 else case e in #(
6633 e) if test -n "$OBJDUMP"; then
6634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639 IFS=$as_save_IFS
6640 case $as_dir in #(((
6641 '') as_dir=./ ;;
6642 */) ;;
6643 *) as_dir=$as_dir/ ;;
6644 esac
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655 fi ;;
6656 esac
6657 fi
6658 OBJDUMP=$ac_cv_prog_OBJDUMP
6659 if test -n "$OBJDUMP"; then
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6661 printf "%s\n" "$OBJDUMP" >&6; }
6662 else
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 printf "%s\n" "no" >&6; }
6665 fi
6666
6667
6668 fi
6669 if test -z "$ac_cv_prog_OBJDUMP"; then
6670 ac_ct_OBJDUMP=$OBJDUMP
6671 # Extract the first word of "objdump", so it can be a program name with args.
6672 set dummy objdump; ac_word=$2
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 printf %s "checking for $ac_word... " >&6; }
6675 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6676 then :
6677 printf %s "(cached) " >&6
6678 else case e in #(
6679 e) if test -n "$ac_ct_OBJDUMP"; then
6680 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685 IFS=$as_save_IFS
6686 case $as_dir in #(((
6687 '') as_dir=./ ;;
6688 */) ;;
6689 *) as_dir=$as_dir/ ;;
6690 esac
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi ;;
6702 esac
6703 fi
6704 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6705 if test -n "$ac_ct_OBJDUMP"; then
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6707 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6708 else
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 printf "%s\n" "no" >&6; }
6711 fi
6712
6713 if test "x$ac_ct_OBJDUMP" = x; then
6714 OBJDUMP="false"
6715 else
6716 case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722 OBJDUMP=$ac_ct_OBJDUMP
6723 fi
6724 else
6725 OBJDUMP="$ac_cv_prog_OBJDUMP"
6726 fi
6727
6728 test -z "$OBJDUMP" && OBJDUMP=objdump
6729
6730
6731
6732
6733
6734
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6736 printf %s "checking how to recognize dependent libraries... " >&6; }
6737 if test ${lt_cv_deplibs_check_method+y}
6738 then :
6739 printf %s "(cached) " >&6
6740 else case e in #(
6741 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6742 lt_cv_file_magic_test_file=
6743 lt_cv_deplibs_check_method='unknown'
6744 # Need to set the preceding variable on all platforms that support
6745 # interlibrary dependencies.
6746 # 'none' -- dependencies not supported.
6747 # 'unknown' -- same as none, but documents that we really don't know.
6748 # 'pass_all' -- all dependencies passed with no checks.
6749 # 'file_magic [[regex]]' -- check by looking for files in library path
6750 # that responds to the $file_magic_cmd with a given extended regex.
6751 # If you have 'file' or equivalent on your system and you're not sure
6752 # whether 'pass_all' will *always* work, you probably want this one.
6753
6754 case $host_os in
6755 aix[4-9]*)
6756 lt_cv_deplibs_check_method=pass_all
6757 ;;
6758
6759 beos*)
6760 lt_cv_deplibs_check_method=pass_all
6761 ;;
6762
6763 bsdi[45]*)
6764 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6765 lt_cv_file_magic_cmd='$FILECMD -L'
6766 lt_cv_file_magic_test_file=/shlib/libc.so
6767 ;;
6768
6769 cygwin*)
6770 # func_win32_libid is a shell function defined in ltmain.sh
6771 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6772 lt_cv_file_magic_cmd='func_win32_libid'
6773 ;;
6774
6775 mingw* | windows* | pw32*)
6776 # Base MSYS/MinGW do not provide the 'file' command needed by
6777 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6778 # unless we find 'file', for example because we are cross-compiling.
6779 if ( file / ) >/dev/null 2>&1; then
6780 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6781 lt_cv_file_magic_cmd='func_win32_libid'
6782 else
6783 # Keep this pattern in sync with the one in func_win32_libid.
6784 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6785 lt_cv_file_magic_cmd='$OBJDUMP -f'
6786 fi
6787 ;;
6788
6789 cegcc*)
6790 # use the weaker test based on 'objdump'. See mingw*.
6791 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6792 lt_cv_file_magic_cmd='$OBJDUMP -f'
6793 ;;
6794
6795 darwin* | rhapsody*)
6796 lt_cv_deplibs_check_method=pass_all
6797 ;;
6798
6799 freebsd* | dragonfly* | midnightbsd*)
6800 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6801 case $host_cpu in
6802 i*86 )
6803 # Not sure whether the presence of OpenBSD here was a mistake.
6804 # Let's accept both of them until this is cleared up.
6805 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6806 lt_cv_file_magic_cmd=$FILECMD
6807 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6808 ;;
6809 esac
6810 else
6811 lt_cv_deplibs_check_method=pass_all
6812 fi
6813 ;;
6814
6815 haiku*)
6816 lt_cv_deplibs_check_method=pass_all
6817 ;;
6818
6819 hpux10.20* | hpux11*)
6820 lt_cv_file_magic_cmd=$FILECMD
6821 case $host_cpu in
6822 ia64*)
6823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6824 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6825 ;;
6826 hppa*64*)
6827 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]'
6828 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6829 ;;
6830 *)
6831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6832 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6833 ;;
6834 esac
6835 ;;
6836
6837 interix[3-9]*)
6838 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6840 ;;
6841
6842 irix5* | irix6* | nonstopux*)
6843 case $LD in
6844 *-32|*"-32 ") libmagic=32-bit;;
6845 *-n32|*"-n32 ") libmagic=N32;;
6846 *-64|*"-64 ") libmagic=64-bit;;
6847 *) libmagic=never-match;;
6848 esac
6849 lt_cv_deplibs_check_method=pass_all
6850 ;;
6851
6852 # This must be glibc/ELF.
6853 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6854 lt_cv_deplibs_check_method=pass_all
6855 ;;
6856
6857 *-mlibc)
6858 lt_cv_deplibs_check_method=pass_all
6859 ;;
6860
6861 netbsd* | netbsdelf*-gnu)
6862 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6864 else
6865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6866 fi
6867 ;;
6868
6869 newos6*)
6870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6871 lt_cv_file_magic_cmd=$FILECMD
6872 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6873 ;;
6874
6875 *nto* | *qnx*)
6876 lt_cv_deplibs_check_method=pass_all
6877 ;;
6878
6879 openbsd*)
6880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6882 else
6883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6884 fi
6885 ;;
6886
6887 osf3* | osf4* | osf5*)
6888 lt_cv_deplibs_check_method=pass_all
6889 ;;
6890
6891 rdos*)
6892 lt_cv_deplibs_check_method=pass_all
6893 ;;
6894
6895 serenity*)
6896 lt_cv_deplibs_check_method=pass_all
6897 ;;
6898
6899 solaris*)
6900 lt_cv_deplibs_check_method=pass_all
6901 ;;
6902
6903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6904 lt_cv_deplibs_check_method=pass_all
6905 ;;
6906
6907 sysv4 | sysv4.3*)
6908 case $host_vendor in
6909 motorola)
6910 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]'
6911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6912 ;;
6913 ncr)
6914 lt_cv_deplibs_check_method=pass_all
6915 ;;
6916 sequent)
6917 lt_cv_file_magic_cmd='/bin/file'
6918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6919 ;;
6920 sni)
6921 lt_cv_file_magic_cmd='/bin/file'
6922 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6923 lt_cv_file_magic_test_file=/lib/libc.so
6924 ;;
6925 siemens)
6926 lt_cv_deplibs_check_method=pass_all
6927 ;;
6928 pc)
6929 lt_cv_deplibs_check_method=pass_all
6930 ;;
6931 esac
6932 ;;
6933
6934 tpf*)
6935 lt_cv_deplibs_check_method=pass_all
6936 ;;
6937 os2*)
6938 lt_cv_deplibs_check_method=pass_all
6939 ;;
6940 esac
6941 ;;
6942 esac
6943 fi
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6945 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6946
6947 file_magic_glob=
6948 want_nocaseglob=no
6949 if test "$build" = "$host"; then
6950 case $host_os in
6951 mingw* | windows* | pw32*)
6952 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6953 want_nocaseglob=yes
6954 else
6955 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6956 fi
6957 ;;
6958 esac
6959 fi
6960
6961 file_magic_cmd=$lt_cv_file_magic_cmd
6962 deplibs_check_method=$lt_cv_deplibs_check_method
6963 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 printf %s "checking for $ac_word... " >&6; }
6991 if test ${ac_cv_prog_DLLTOOL+y}
6992 then :
6993 printf %s "(cached) " >&6
6994 else case e in #(
6995 e) if test -n "$DLLTOOL"; then
6996 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001 IFS=$as_save_IFS
7002 case $as_dir in #(((
7003 '') as_dir=./ ;;
7004 */) ;;
7005 *) as_dir=$as_dir/ ;;
7006 esac
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi ;;
7018 esac
7019 fi
7020 DLLTOOL=$ac_cv_prog_DLLTOOL
7021 if test -n "$DLLTOOL"; then
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7023 printf "%s\n" "$DLLTOOL" >&6; }
7024 else
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 printf "%s\n" "no" >&6; }
7027 fi
7028
7029
7030 fi
7031 if test -z "$ac_cv_prog_DLLTOOL"; then
7032 ac_ct_DLLTOOL=$DLLTOOL
7033 # Extract the first word of "dlltool", so it can be a program name with args.
7034 set dummy dlltool; ac_word=$2
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 printf %s "checking for $ac_word... " >&6; }
7037 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7038 then :
7039 printf %s "(cached) " >&6
7040 else case e in #(
7041 e) if test -n "$ac_ct_DLLTOOL"; then
7042 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 case $as_dir in #(((
7049 '') as_dir=./ ;;
7050 */) ;;
7051 *) as_dir=$as_dir/ ;;
7052 esac
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063 fi ;;
7064 esac
7065 fi
7066 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7067 if test -n "$ac_ct_DLLTOOL"; then
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7069 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7070 else
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 printf "%s\n" "no" >&6; }
7073 fi
7074
7075 if test "x$ac_ct_DLLTOOL" = x; then
7076 DLLTOOL="false"
7077 else
7078 case $cross_compiling:$ac_tool_warned in
7079 yes:)
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082 ac_tool_warned=yes ;;
7083 esac
7084 DLLTOOL=$ac_ct_DLLTOOL
7085 fi
7086 else
7087 DLLTOOL="$ac_cv_prog_DLLTOOL"
7088 fi
7089
7090 test -z "$DLLTOOL" && DLLTOOL=dlltool
7091
7092
7093
7094
7095
7096
7097
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7099 printf %s "checking how to associate runtime and link libraries... " >&6; }
7100 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7101 then :
7102 printf %s "(cached) " >&6
7103 else case e in #(
7104 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7105
7106 case $host_os in
7107 cygwin* | mingw* | windows* | pw32* | cegcc*)
7108 # two different shell functions defined in ltmain.sh;
7109 # decide which one to use based on capabilities of $DLLTOOL
7110 case `$DLLTOOL --help 2>&1` in
7111 *--identify-strict*)
7112 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7113 ;;
7114 *)
7115 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7116 ;;
7117 esac
7118 ;;
7119 *)
7120 # fallback: assume linklib IS sharedlib
7121 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7122 ;;
7123 esac
7124 ;;
7125 esac
7126 fi
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7128 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7129 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7130 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7131
7132
7133
7134
7135
7136
7137
7138 if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 printf %s "checking for $ac_word... " >&6; }
7143 if test ${ac_cv_prog_RANLIB+y}
7144 then :
7145 printf %s "(cached) " >&6
7146 else case e in #(
7147 e) if test -n "$RANLIB"; then
7148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153 IFS=$as_save_IFS
7154 case $as_dir in #(((
7155 '') as_dir=./ ;;
7156 */) ;;
7157 *) as_dir=$as_dir/ ;;
7158 esac
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165 done
7166 done
7167 IFS=$as_save_IFS
7168
7169 fi ;;
7170 esac
7171 fi
7172 RANLIB=$ac_cv_prog_RANLIB
7173 if test -n "$RANLIB"; then
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7175 printf "%s\n" "$RANLIB" >&6; }
7176 else
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 printf "%s\n" "no" >&6; }
7179 fi
7180
7181
7182 fi
7183 if test -z "$ac_cv_prog_RANLIB"; then
7184 ac_ct_RANLIB=$RANLIB
7185 # Extract the first word of "ranlib", so it can be a program name with args.
7186 set dummy ranlib; ac_word=$2
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 printf %s "checking for $ac_word... " >&6; }
7189 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7190 then :
7191 printf %s "(cached) " >&6
7192 else case e in #(
7193 e) if test -n "$ac_ct_RANLIB"; then
7194 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199 IFS=$as_save_IFS
7200 case $as_dir in #(((
7201 '') as_dir=./ ;;
7202 */) ;;
7203 *) as_dir=$as_dir/ ;;
7204 esac
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_RANLIB="ranlib"
7208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi ;;
7216 esac
7217 fi
7218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7219 if test -n "$ac_ct_RANLIB"; then
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7221 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7222 else
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 printf "%s\n" "no" >&6; }
7225 fi
7226
7227 if test "x$ac_ct_RANLIB" = x; then
7228 RANLIB=":"
7229 else
7230 case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236 RANLIB=$ac_ct_RANLIB
7237 fi
7238 else
7239 RANLIB="$ac_cv_prog_RANLIB"
7240 fi
7241
7242 if test -n "$ac_tool_prefix"; then
7243 for ac_prog in ar
7244 do
7245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 printf %s "checking for $ac_word... " >&6; }
7249 if test ${ac_cv_prog_AR+y}
7250 then :
7251 printf %s "(cached) " >&6
7252 else case e in #(
7253 e) if test -n "$AR"; then
7254 ac_cv_prog_AR="$AR" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259 IFS=$as_save_IFS
7260 case $as_dir in #(((
7261 '') as_dir=./ ;;
7262 */) ;;
7263 *) as_dir=$as_dir/ ;;
7264 esac
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275 fi ;;
7276 esac
7277 fi
7278 AR=$ac_cv_prog_AR
7279 if test -n "$AR"; then
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7281 printf "%s\n" "$AR" >&6; }
7282 else
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 printf "%s\n" "no" >&6; }
7285 fi
7286
7287
7288 test -n "$AR" && break
7289 done
7290 fi
7291 if test -z "$AR"; then
7292 ac_ct_AR=$AR
7293 for ac_prog in ar
7294 do
7295 # Extract the first word of "$ac_prog", so it can be a program name with args.
7296 set dummy $ac_prog; ac_word=$2
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 printf %s "checking for $ac_word... " >&6; }
7299 if test ${ac_cv_prog_ac_ct_AR+y}
7300 then :
7301 printf %s "(cached) " >&6
7302 else case e in #(
7303 e) if test -n "$ac_ct_AR"; then
7304 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309 IFS=$as_save_IFS
7310 case $as_dir in #(((
7311 '') as_dir=./ ;;
7312 */) ;;
7313 *) as_dir=$as_dir/ ;;
7314 esac
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_AR="$ac_prog"
7318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi ;;
7326 esac
7327 fi
7328 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7329 if test -n "$ac_ct_AR"; then
7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7331 printf "%s\n" "$ac_ct_AR" >&6; }
7332 else
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 printf "%s\n" "no" >&6; }
7335 fi
7336
7337
7338 test -n "$ac_ct_AR" && break
7339 done
7340
7341 if test "x$ac_ct_AR" = x; then
7342 AR="false"
7343 else
7344 case $cross_compiling:$ac_tool_warned in
7345 yes:)
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348 ac_tool_warned=yes ;;
7349 esac
7350 AR=$ac_ct_AR
7351 fi
7352 fi
7353
7354 : ${AR=ar}
7355
7356
7357
7358
7359
7360
7361 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7362 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7363 # higher priority because that's what people were doing historically (setting
7364 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7365 # variable obsoleted/removed.
7366
7367 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7368 lt_ar_flags=$AR_FLAGS
7369
7370
7371
7372
7373
7374
7375 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7376 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7377
7378
7379
7380
7381
7382
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7384 printf %s "checking for archiver @FILE support... " >&6; }
7385 if test ${lt_cv_ar_at_file+y}
7386 then :
7387 printf %s "(cached) " >&6
7388 else case e in #(
7389 e) lt_cv_ar_at_file=no
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392
7393 int
7394 main (void)
7395 {
7396
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_compile "$LINENO"
7402 then :
7403 echo conftest.$ac_objext > conftest.lst
7404 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7406 (eval $lt_ar_try) 2>&5
7407 ac_status=$?
7408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7409 test $ac_status = 0; }
7410 if test 0 -eq "$ac_status"; then
7411 # Ensure the archiver fails upon bogus file names.
7412 rm -f conftest.$ac_objext libconftest.a
7413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7414 (eval $lt_ar_try) 2>&5
7415 ac_status=$?
7416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7417 test $ac_status = 0; }
7418 if test 0 -ne "$ac_status"; then
7419 lt_cv_ar_at_file=@
7420 fi
7421 fi
7422 rm -f conftest.* libconftest.a
7423
7424 fi
7425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7426 ;;
7427 esac
7428 fi
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7430 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7431
7432 if test no = "$lt_cv_ar_at_file"; then
7433 archiver_list_spec=
7434 else
7435 archiver_list_spec=$lt_cv_ar_at_file
7436 fi
7437
7438
7439
7440
7441
7442
7443
7444 if test -n "$ac_tool_prefix"; then
7445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}strip; ac_word=$2
7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 printf %s "checking for $ac_word... " >&6; }
7449 if test ${ac_cv_prog_STRIP+y}
7450 then :
7451 printf %s "(cached) " >&6
7452 else case e in #(
7453 e) if test -n "$STRIP"; then
7454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459 IFS=$as_save_IFS
7460 case $as_dir in #(((
7461 '') as_dir=./ ;;
7462 */) ;;
7463 *) as_dir=$as_dir/ ;;
7464 esac
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7469 break 2
7470 fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475 fi ;;
7476 esac
7477 fi
7478 STRIP=$ac_cv_prog_STRIP
7479 if test -n "$STRIP"; then
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7481 printf "%s\n" "$STRIP" >&6; }
7482 else
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 printf "%s\n" "no" >&6; }
7485 fi
7486
7487
7488 fi
7489 if test -z "$ac_cv_prog_STRIP"; then
7490 ac_ct_STRIP=$STRIP
7491 # Extract the first word of "strip", so it can be a program name with args.
7492 set dummy strip; ac_word=$2
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 printf %s "checking for $ac_word... " >&6; }
7495 if test ${ac_cv_prog_ac_ct_STRIP+y}
7496 then :
7497 printf %s "(cached) " >&6
7498 else case e in #(
7499 e) if test -n "$ac_ct_STRIP"; then
7500 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505 IFS=$as_save_IFS
7506 case $as_dir in #(((
7507 '') as_dir=./ ;;
7508 */) ;;
7509 *) as_dir=$as_dir/ ;;
7510 esac
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_ac_ct_STRIP="strip"
7514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521 fi ;;
7522 esac
7523 fi
7524 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7525 if test -n "$ac_ct_STRIP"; then
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7527 printf "%s\n" "$ac_ct_STRIP" >&6; }
7528 else
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 printf "%s\n" "no" >&6; }
7531 fi
7532
7533 if test "x$ac_ct_STRIP" = x; then
7534 STRIP=":"
7535 else
7536 case $cross_compiling:$ac_tool_warned in
7537 yes:)
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7539 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7540 ac_tool_warned=yes ;;
7541 esac
7542 STRIP=$ac_ct_STRIP
7543 fi
7544 else
7545 STRIP="$ac_cv_prog_STRIP"
7546 fi
7547
7548 test -z "$STRIP" && STRIP=:
7549
7550
7551
7552
7553
7554
7555
7556 test -z "$RANLIB" && RANLIB=:
7557
7558
7559
7560
7561
7562
7563 # Determine commands to create old-style static archives.
7564 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7565 old_postinstall_cmds='chmod 644 $oldlib'
7566 old_postuninstall_cmds=
7567
7568 if test -n "$RANLIB"; then
7569 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7570 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7571 fi
7572
7573 case $host_os in
7574 darwin*)
7575 lock_old_archive_extraction=yes ;;
7576 *)
7577 lock_old_archive_extraction=no ;;
7578 esac
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618 # If no C compiler was specified, use CC.
7619 LTCC=${LTCC-"$CC"}
7620
7621 # If no C compiler flags were specified, use CFLAGS.
7622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7623
7624 # Allow CC to be a program name with arguments.
7625 compiler=$CC
7626
7627
7628 # Check for command to grab the raw symbol name followed by C symbol from nm.
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7630 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7631 if test ${lt_cv_sys_global_symbol_pipe+y}
7632 then :
7633 printf %s "(cached) " >&6
7634 else case e in #(
7635 e)
7636 # These are sane defaults that work on at least a few old systems.
7637 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7638
7639 # Character class describing NM global symbol codes.
7640 symcode='[BCDEGRST]'
7641
7642 # Regexp to match symbols that can be accessed directly from C.
7643 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7644
7645 # Define system-specific variables.
7646 case $host_os in
7647 aix*)
7648 symcode='[BCDT]'
7649 ;;
7650 cygwin* | mingw* | windows* | pw32* | cegcc*)
7651 symcode='[ABCDGISTW]'
7652 ;;
7653 hpux*)
7654 if test ia64 = "$host_cpu"; then
7655 symcode='[ABCDEGRST]'
7656 fi
7657 ;;
7658 irix* | nonstopux*)
7659 symcode='[BCDEGRST]'
7660 ;;
7661 osf*)
7662 symcode='[BCDEGQRST]'
7663 ;;
7664 solaris*)
7665 symcode='[BCDRT]'
7666 ;;
7667 sco3.2v5*)
7668 symcode='[DT]'
7669 ;;
7670 sysv4.2uw2*)
7671 symcode='[DT]'
7672 ;;
7673 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7674 symcode='[ABDT]'
7675 ;;
7676 sysv4)
7677 symcode='[DFNSTU]'
7678 ;;
7679 esac
7680
7681 # If we're using GNU nm, then use its standard symbol codes.
7682 case `$NM -V 2>&1` in
7683 *GNU* | *'with BFD'*)
7684 symcode='[ABCDGIRSTW]' ;;
7685 esac
7686
7687 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7688 # Gets list of data symbols to import.
7689 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7690 # Adjust the below global symbol transforms to fixup imported variables.
7691 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7692 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7693 lt_c_name_lib_hook="\
7694 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7695 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7696 else
7697 # Disable hooks by default.
7698 lt_cv_sys_global_symbol_to_import=
7699 lt_cdecl_hook=
7700 lt_c_name_hook=
7701 lt_c_name_lib_hook=
7702 fi
7703
7704 # Transform an extracted symbol line into a proper C declaration.
7705 # Some systems (esp. on ia64) link data and code symbols differently,
7706 # so use this general approach.
7707 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7708 $lt_cdecl_hook\
7709 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7710 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7711
7712 # Transform an extracted symbol line into symbol name and symbol address
7713 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7714 $lt_c_name_hook\
7715 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7716 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7717
7718 # Transform an extracted symbol line into symbol name with lib prefix and
7719 # symbol address.
7720 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7721 $lt_c_name_lib_hook\
7722 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7723 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7724 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7725
7726 # Handle CRLF in mingw tool chain
7727 opt_cr=
7728 case $build_os in
7729 mingw* | windows*)
7730 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7731 ;;
7732 esac
7733
7734 # Try without a prefix underscore, then with it.
7735 for ac_symprfx in "" "_"; do
7736
7737 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7738 symxfrm="\\1 $ac_symprfx\\2 \\2"
7739
7740 # Write the raw and C identifiers.
7741 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7742 # Fake it for dumpbin and say T for any non-static function,
7743 # D for any global variable and I for any imported variable.
7744 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7745 # which start with @ or ?.
7746 lt_cv_sys_global_symbol_pipe="$AWK '"\
7747 " {last_section=section; section=\$ 3};"\
7748 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7749 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7750 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7751 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7752 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7753 " \$ 0!~/External *\|/{next};"\
7754 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7755 " {if(hide[section]) next};"\
7756 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7757 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7758 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7759 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7760 " ' prfx=^$ac_symprfx"
7761 else
7762 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7763 fi
7764 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7765
7766 # Check to see that the pipe works correctly.
7767 pipe_works=no
7768
7769 rm -f conftest*
7770 cat > conftest.$ac_ext <<_LT_EOF
7771 #ifdef __cplusplus
7772 extern "C" {
7773 #endif
7774 char nm_test_var;
7775 void nm_test_func(void);
7776 void nm_test_func(void){}
7777 #ifdef __cplusplus
7778 }
7779 #endif
7780 int main(void){nm_test_var='a';nm_test_func();return(0);}
7781 _LT_EOF
7782
7783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7784 (eval $ac_compile) 2>&5
7785 ac_status=$?
7786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7787 test $ac_status = 0; }; then
7788 # Now try to grab the symbols.
7789 nlist=conftest.nm
7790 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7791 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7792 # Try sorting and uniquifying the output.
7793 if sort "$nlist" | uniq > "$nlist"T; then
7794 mv -f "$nlist"T "$nlist"
7795 else
7796 rm -f "$nlist"T
7797 fi
7798
7799 # Make sure that we snagged all the symbols we need.
7800 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7801 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7802 cat <<_LT_EOF > conftest.$ac_ext
7803 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7804 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7805 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7806 relocations are performed -- see ld's documentation on pseudo-relocs. */
7807 # define LT_DLSYM_CONST
7808 #elif defined __osf__
7809 /* This system does not cope well with relocations in const data. */
7810 # define LT_DLSYM_CONST
7811 #else
7812 # define LT_DLSYM_CONST const
7813 #endif
7814
7815 #ifdef __cplusplus
7816 extern "C" {
7817 #endif
7818
7819 _LT_EOF
7820 # Now generate the symbol file.
7821 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7822
7823 cat <<_LT_EOF >> conftest.$ac_ext
7824
7825 /* The mapping between symbol names and symbols. */
7826 LT_DLSYM_CONST struct {
7827 const char *name;
7828 void *address;
7829 }
7830 lt__PROGRAM__LTX_preloaded_symbols[] =
7831 {
7832 { "@PROGRAM@", (void *) 0 },
7833 _LT_EOF
7834 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7835 cat <<\_LT_EOF >> conftest.$ac_ext
7836 {0, (void *) 0}
7837 };
7838
7839 /* This works around a problem in FreeBSD linker */
7840 #ifdef FREEBSD_WORKAROUND
7841 static const void *lt_preloaded_setup() {
7842 return lt__PROGRAM__LTX_preloaded_symbols;
7843 }
7844 #endif
7845
7846 #ifdef __cplusplus
7847 }
7848 #endif
7849 _LT_EOF
7850 # Now try linking the two files.
7851 mv conftest.$ac_objext conftstm.$ac_objext
7852 lt_globsym_save_LIBS=$LIBS
7853 lt_globsym_save_CFLAGS=$CFLAGS
7854 LIBS=conftstm.$ac_objext
7855 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7857 (eval $ac_link) 2>&5
7858 ac_status=$?
7859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7861 pipe_works=yes
7862 fi
7863 LIBS=$lt_globsym_save_LIBS
7864 CFLAGS=$lt_globsym_save_CFLAGS
7865 else
7866 echo "cannot find nm_test_func in $nlist" >&5
7867 fi
7868 else
7869 echo "cannot find nm_test_var in $nlist" >&5
7870 fi
7871 else
7872 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7873 fi
7874 else
7875 echo "$progname: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7877 fi
7878 rm -rf conftest* conftst*
7879
7880 # Do not use the global_symbol_pipe unless it works.
7881 if test yes = "$pipe_works"; then
7882 break
7883 else
7884 lt_cv_sys_global_symbol_pipe=
7885 fi
7886 done
7887 ;;
7888 esac
7889 fi
7890
7891 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7892 lt_cv_sys_global_symbol_to_cdecl=
7893 fi
7894 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7896 printf "%s\n" "failed" >&6; }
7897 else
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7899 printf "%s\n" "ok" >&6; }
7900 fi
7901
7902 # Response file support.
7903 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7904 nm_file_list_spec='@'
7905 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7906 nm_file_list_spec='@'
7907 fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7946 printf %s "checking for sysroot... " >&6; }
7947
7948 # Check whether --with-sysroot was given.
7949 if test ${with_sysroot+y}
7950 then :
7951 withval=$with_sysroot;
7952 else case e in #(
7953 e) with_sysroot=no ;;
7954 esac
7955 fi
7956
7957
7958 lt_sysroot=
7959 case $with_sysroot in #(
7960 yes)
7961 if test yes = "$GCC"; then
7962 # Trim trailing / since we'll always append absolute paths and we want
7963 # to avoid //, if only for less confusing output for the user.
7964 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7965 fi
7966 ;; #(
7967 /*)
7968 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7969 ;; #(
7970 no|'')
7971 ;; #(
7972 *)
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7974 printf "%s\n" "$with_sysroot" >&6; }
7975 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7976 ;;
7977 esac
7978
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7980 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7981
7982
7983
7984
7985
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7987 printf %s "checking for a working dd... " >&6; }
7988 if test ${ac_cv_path_lt_DD+y}
7989 then :
7990 printf %s "(cached) " >&6
7991 else case e in #(
7992 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7993 cat conftest.i conftest.i >conftest2.i
7994 : ${lt_DD:=$DD}
7995 if test -z "$lt_DD"; then
7996 ac_path_lt_DD_found=false
7997 # Loop through the user's path and test for each of PROGNAME-LIST
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001 IFS=$as_save_IFS
8002 case $as_dir in #(((
8003 '') as_dir=./ ;;
8004 */) ;;
8005 *) as_dir=$as_dir/ ;;
8006 esac
8007 for ac_prog in dd
8008 do
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8011 as_fn_executable_p "$ac_path_lt_DD" || continue
8012 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8013 cmp -s conftest.i conftest.out \
8014 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8015 fi
8016 $ac_path_lt_DD_found && break 3
8017 done
8018 done
8019 done
8020 IFS=$as_save_IFS
8021 if test -z "$ac_cv_path_lt_DD"; then
8022 :
8023 fi
8024 else
8025 ac_cv_path_lt_DD=$lt_DD
8026 fi
8027
8028 rm -f conftest.i conftest2.i conftest.out ;;
8029 esac
8030 fi
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8032 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8033
8034
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8036 printf %s "checking how to truncate binary pipes... " >&6; }
8037 if test ${lt_cv_truncate_bin+y}
8038 then :
8039 printf %s "(cached) " >&6
8040 else case e in #(
8041 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8042 cat conftest.i conftest.i >conftest2.i
8043 lt_cv_truncate_bin=
8044 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8045 cmp -s conftest.i conftest.out \
8046 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8047 fi
8048 rm -f conftest.i conftest2.i conftest.out
8049 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8050 esac
8051 fi
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8053 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8054
8055
8056
8057
8058
8059
8060
8061 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8062 func_cc_basename ()
8063 {
8064 for cc_temp in $*""; do
8065 case $cc_temp in
8066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8068 \-*) ;;
8069 *) break;;
8070 esac
8071 done
8072 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8073 }
8074
8075 # Check whether --enable-libtool-lock was given.
8076 if test ${enable_libtool_lock+y}
8077 then :
8078 enableval=$enable_libtool_lock;
8079 fi
8080
8081 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8082
8083 # Some flags need to be propagated to the compiler or linker for good
8084 # libtool support.
8085 case $host in
8086 ia64-*-hpux*)
8087 # Find out what ABI is being produced by ac_compile, and set mode
8088 # options accordingly.
8089 echo 'int i;' > conftest.$ac_ext
8090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8091 (eval $ac_compile) 2>&5
8092 ac_status=$?
8093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8094 test $ac_status = 0; }; then
8095 case `$FILECMD conftest.$ac_objext` in
8096 *ELF-32*)
8097 HPUX_IA64_MODE=32
8098 ;;
8099 *ELF-64*)
8100 HPUX_IA64_MODE=64
8101 ;;
8102 esac
8103 fi
8104 rm -rf conftest*
8105 ;;
8106 *-*-irix6*)
8107 # Find out what ABI is being produced by ac_compile, and set linker
8108 # options accordingly.
8109 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8111 (eval $ac_compile) 2>&5
8112 ac_status=$?
8113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114 test $ac_status = 0; }; then
8115 if test yes = "$lt_cv_prog_gnu_ld"; then
8116 case `$FILECMD conftest.$ac_objext` in
8117 *32-bit*)
8118 LD="${LD-ld} -melf32bsmip"
8119 ;;
8120 *N32*)
8121 LD="${LD-ld} -melf32bmipn32"
8122 ;;
8123 *64-bit*)
8124 LD="${LD-ld} -melf64bmip"
8125 ;;
8126 esac
8127 else
8128 case `$FILECMD conftest.$ac_objext` in
8129 *32-bit*)
8130 LD="${LD-ld} -32"
8131 ;;
8132 *N32*)
8133 LD="${LD-ld} -n32"
8134 ;;
8135 *64-bit*)
8136 LD="${LD-ld} -64"
8137 ;;
8138 esac
8139 fi
8140 fi
8141 rm -rf conftest*
8142 ;;
8143
8144 mips64*-*linux*)
8145 # Find out what ABI is being produced by ac_compile, and set linker
8146 # options accordingly.
8147 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8149 (eval $ac_compile) 2>&5
8150 ac_status=$?
8151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8152 test $ac_status = 0; }; then
8153 emul=elf
8154 case `$FILECMD conftest.$ac_objext` in
8155 *32-bit*)
8156 emul="${emul}32"
8157 ;;
8158 *64-bit*)
8159 emul="${emul}64"
8160 ;;
8161 esac
8162 case `$FILECMD conftest.$ac_objext` in
8163 *MSB*)
8164 emul="${emul}btsmip"
8165 ;;
8166 *LSB*)
8167 emul="${emul}ltsmip"
8168 ;;
8169 esac
8170 case `$FILECMD conftest.$ac_objext` in
8171 *N32*)
8172 emul="${emul}n32"
8173 ;;
8174 esac
8175 LD="${LD-ld} -m $emul"
8176 fi
8177 rm -rf conftest*
8178 ;;
8179
8180 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8181 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8182 # Find out what ABI is being produced by ac_compile, and set linker
8183 # options accordingly. Note that the listed cases only cover the
8184 # situations where additional linker options are needed (such as when
8185 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8186 # vice versa); the common cases where no linker options are needed do
8187 # not appear in the list.
8188 echo 'int i;' > conftest.$ac_ext
8189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8190 (eval $ac_compile) 2>&5
8191 ac_status=$?
8192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8193 test $ac_status = 0; }; then
8194 case `$FILECMD conftest.o` in
8195 *32-bit*)
8196 case $host in
8197 x86_64-*kfreebsd*-gnu)
8198 LD="${LD-ld} -m elf_i386_fbsd"
8199 ;;
8200 x86_64-*linux*|x86_64-gnu*)
8201 case `$FILECMD conftest.o` in
8202 *x86-64*)
8203 LD="${LD-ld} -m elf32_x86_64"
8204 ;;
8205 *)
8206 LD="${LD-ld} -m elf_i386"
8207 ;;
8208 esac
8209 ;;
8210 powerpc64le-*linux*)
8211 LD="${LD-ld} -m elf32lppclinux"
8212 ;;
8213 powerpc64-*linux*)
8214 LD="${LD-ld} -m elf32ppclinux"
8215 ;;
8216 s390x-*linux*)
8217 LD="${LD-ld} -m elf_s390"
8218 ;;
8219 sparc64-*linux*)
8220 LD="${LD-ld} -m elf32_sparc"
8221 ;;
8222 esac
8223 ;;
8224 *64-bit*)
8225 case $host in
8226 x86_64-*kfreebsd*-gnu)
8227 LD="${LD-ld} -m elf_x86_64_fbsd"
8228 ;;
8229 x86_64-*linux*|x86_64-gnu*)
8230 LD="${LD-ld} -m elf_x86_64"
8231 ;;
8232 powerpcle-*linux*)
8233 LD="${LD-ld} -m elf64lppc"
8234 ;;
8235 powerpc-*linux*)
8236 LD="${LD-ld} -m elf64ppc"
8237 ;;
8238 s390*-*linux*|s390*-*tpf*)
8239 LD="${LD-ld} -m elf64_s390"
8240 ;;
8241 sparc*-*linux*)
8242 LD="${LD-ld} -m elf64_sparc"
8243 ;;
8244 esac
8245 ;;
8246 esac
8247 fi
8248 rm -rf conftest*
8249 ;;
8250
8251 *-*-sco3.2v5*)
8252 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8253 SAVE_CFLAGS=$CFLAGS
8254 CFLAGS="$CFLAGS -belf"
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8256 printf %s "checking whether the C compiler needs -belf... " >&6; }
8257 if test ${lt_cv_cc_needs_belf+y}
8258 then :
8259 printf %s "(cached) " >&6
8260 else case e in #(
8261 e) ac_ext=c
8262 ac_cpp='$CPP $CPPFLAGS'
8263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8266
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h. */
8269
8270 int
8271 main (void)
8272 {
8273
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 if ac_fn_c_try_link "$LINENO"
8279 then :
8280 lt_cv_cc_needs_belf=yes
8281 else case e in #(
8282 e) lt_cv_cc_needs_belf=no ;;
8283 esac
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8286 conftest$ac_exeext conftest.$ac_ext
8287 ac_ext=c
8288 ac_cpp='$CPP $CPPFLAGS'
8289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292 ;;
8293 esac
8294 fi
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8296 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8297 if test yes != "$lt_cv_cc_needs_belf"; then
8298 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8299 CFLAGS=$SAVE_CFLAGS
8300 fi
8301 ;;
8302 *-*solaris*)
8303 # Find out what ABI is being produced by ac_compile, and set linker
8304 # options accordingly.
8305 echo 'int i;' > conftest.$ac_ext
8306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8307 (eval $ac_compile) 2>&5
8308 ac_status=$?
8309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8310 test $ac_status = 0; }; then
8311 case `$FILECMD conftest.o` in
8312 *64-bit*)
8313 case $lt_cv_prog_gnu_ld in
8314 yes*)
8315 case $host in
8316 i?86-*-solaris*|x86_64-*-solaris*)
8317 LD="${LD-ld} -m elf_x86_64"
8318 ;;
8319 sparc*-*-solaris*)
8320 LD="${LD-ld} -m elf64_sparc"
8321 ;;
8322 esac
8323 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8324 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8325 LD=${LD-ld}_sol2
8326 fi
8327 ;;
8328 *)
8329 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8330 LD="${LD-ld} -64"
8331 fi
8332 ;;
8333 esac
8334 ;;
8335 esac
8336 fi
8337 rm -rf conftest*
8338 ;;
8339 esac
8340
8341 need_locks=$enable_libtool_lock
8342
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}mt; ac_word=$2
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 printf %s "checking for $ac_word... " >&6; }
8348 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8349 then :
8350 printf %s "(cached) " >&6
8351 else case e in #(
8352 e) if test -n "$MANIFEST_TOOL"; then
8353 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 case $as_dir in #(((
8360 '') as_dir=./ ;;
8361 */) ;;
8362 *) as_dir=$as_dir/ ;;
8363 esac
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370 done
8371 done
8372 IFS=$as_save_IFS
8373
8374 fi ;;
8375 esac
8376 fi
8377 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8378 if test -n "$MANIFEST_TOOL"; then
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8380 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8381 else
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 printf "%s\n" "no" >&6; }
8384 fi
8385
8386
8387 fi
8388 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8389 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8390 # Extract the first word of "mt", so it can be a program name with args.
8391 set dummy mt; ac_word=$2
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 printf %s "checking for $ac_word... " >&6; }
8394 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8395 then :
8396 printf %s "(cached) " >&6
8397 else case e in #(
8398 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8399 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8403 do
8404 IFS=$as_save_IFS
8405 case $as_dir in #(((
8406 '') as_dir=./ ;;
8407 */) ;;
8408 *) as_dir=$as_dir/ ;;
8409 esac
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416 done
8417 done
8418 IFS=$as_save_IFS
8419
8420 fi ;;
8421 esac
8422 fi
8423 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8424 if test -n "$ac_ct_MANIFEST_TOOL"; then
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8426 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8427 else
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 printf "%s\n" "no" >&6; }
8430 fi
8431
8432 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8433 MANIFEST_TOOL=":"
8434 else
8435 case $cross_compiling:$ac_tool_warned in
8436 yes:)
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8439 ac_tool_warned=yes ;;
8440 esac
8441 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8442 fi
8443 else
8444 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8445 fi
8446
8447 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8449 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8450 if test ${lt_cv_path_manifest_tool+y}
8451 then :
8452 printf %s "(cached) " >&6
8453 else case e in #(
8454 e) lt_cv_path_manifest_tool=no
8455 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8456 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8457 cat conftest.err >&5
8458 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8459 lt_cv_path_manifest_tool=yes
8460 fi
8461 rm -f conftest* ;;
8462 esac
8463 fi
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8465 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8466 if test yes != "$lt_cv_path_manifest_tool"; then
8467 MANIFEST_TOOL=:
8468 fi
8469
8470
8471
8472
8473
8474
8475 case $host_os in
8476 rhapsody* | darwin*)
8477 if test -n "$ac_tool_prefix"; then
8478 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 printf %s "checking for $ac_word... " >&6; }
8482 if test ${ac_cv_prog_DSYMUTIL+y}
8483 then :
8484 printf %s "(cached) " >&6
8485 else case e in #(
8486 e) if test -n "$DSYMUTIL"; then
8487 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 case $as_dir in #(((
8494 '') as_dir=./ ;;
8495 */) ;;
8496 *) as_dir=$as_dir/ ;;
8497 esac
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508 fi ;;
8509 esac
8510 fi
8511 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8512 if test -n "$DSYMUTIL"; then
8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8514 printf "%s\n" "$DSYMUTIL" >&6; }
8515 else
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 printf "%s\n" "no" >&6; }
8518 fi
8519
8520
8521 fi
8522 if test -z "$ac_cv_prog_DSYMUTIL"; then
8523 ac_ct_DSYMUTIL=$DSYMUTIL
8524 # Extract the first word of "dsymutil", so it can be a program name with args.
8525 set dummy dsymutil; ac_word=$2
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527 printf %s "checking for $ac_word... " >&6; }
8528 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8529 then :
8530 printf %s "(cached) " >&6
8531 else case e in #(
8532 e) if test -n "$ac_ct_DSYMUTIL"; then
8533 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8534 else
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8537 do
8538 IFS=$as_save_IFS
8539 case $as_dir in #(((
8540 '') as_dir=./ ;;
8541 */) ;;
8542 *) as_dir=$as_dir/ ;;
8543 esac
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8546 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550 done
8551 done
8552 IFS=$as_save_IFS
8553
8554 fi ;;
8555 esac
8556 fi
8557 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8558 if test -n "$ac_ct_DSYMUTIL"; then
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8560 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8561 else
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 printf "%s\n" "no" >&6; }
8564 fi
8565
8566 if test "x$ac_ct_DSYMUTIL" = x; then
8567 DSYMUTIL=":"
8568 else
8569 case $cross_compiling:$ac_tool_warned in
8570 yes:)
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned=yes ;;
8574 esac
8575 DSYMUTIL=$ac_ct_DSYMUTIL
8576 fi
8577 else
8578 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8579 fi
8580
8581 if test -n "$ac_tool_prefix"; then
8582 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8583 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 printf %s "checking for $ac_word... " >&6; }
8586 if test ${ac_cv_prog_NMEDIT+y}
8587 then :
8588 printf %s "(cached) " >&6
8589 else case e in #(
8590 e) if test -n "$NMEDIT"; then
8591 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596 IFS=$as_save_IFS
8597 case $as_dir in #(((
8598 '') as_dir=./ ;;
8599 */) ;;
8600 *) as_dir=$as_dir/ ;;
8601 esac
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8604 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8606 break 2
8607 fi
8608 done
8609 done
8610 IFS=$as_save_IFS
8611
8612 fi ;;
8613 esac
8614 fi
8615 NMEDIT=$ac_cv_prog_NMEDIT
8616 if test -n "$NMEDIT"; then
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8618 printf "%s\n" "$NMEDIT" >&6; }
8619 else
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 printf "%s\n" "no" >&6; }
8622 fi
8623
8624
8625 fi
8626 if test -z "$ac_cv_prog_NMEDIT"; then
8627 ac_ct_NMEDIT=$NMEDIT
8628 # Extract the first word of "nmedit", so it can be a program name with args.
8629 set dummy nmedit; ac_word=$2
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631 printf %s "checking for $ac_word... " >&6; }
8632 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8633 then :
8634 printf %s "(cached) " >&6
8635 else case e in #(
8636 e) if test -n "$ac_ct_NMEDIT"; then
8637 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8641 do
8642 IFS=$as_save_IFS
8643 case $as_dir in #(((
8644 '') as_dir=./ ;;
8645 */) ;;
8646 *) as_dir=$as_dir/ ;;
8647 esac
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8650 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654 done
8655 done
8656 IFS=$as_save_IFS
8657
8658 fi ;;
8659 esac
8660 fi
8661 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8662 if test -n "$ac_ct_NMEDIT"; then
8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8664 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8665 else
8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 printf "%s\n" "no" >&6; }
8668 fi
8669
8670 if test "x$ac_ct_NMEDIT" = x; then
8671 NMEDIT=":"
8672 else
8673 case $cross_compiling:$ac_tool_warned in
8674 yes:)
8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8676 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8677 ac_tool_warned=yes ;;
8678 esac
8679 NMEDIT=$ac_ct_NMEDIT
8680 fi
8681 else
8682 NMEDIT="$ac_cv_prog_NMEDIT"
8683 fi
8684
8685 if test -n "$ac_tool_prefix"; then
8686 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8687 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 printf %s "checking for $ac_word... " >&6; }
8690 if test ${ac_cv_prog_LIPO+y}
8691 then :
8692 printf %s "(cached) " >&6
8693 else case e in #(
8694 e) if test -n "$LIPO"; then
8695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8696 else
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8699 do
8700 IFS=$as_save_IFS
8701 case $as_dir in #(((
8702 '') as_dir=./ ;;
8703 */) ;;
8704 *) as_dir=$as_dir/ ;;
8705 esac
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8708 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8710 break 2
8711 fi
8712 done
8713 done
8714 IFS=$as_save_IFS
8715
8716 fi ;;
8717 esac
8718 fi
8719 LIPO=$ac_cv_prog_LIPO
8720 if test -n "$LIPO"; then
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8722 printf "%s\n" "$LIPO" >&6; }
8723 else
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 printf "%s\n" "no" >&6; }
8726 fi
8727
8728
8729 fi
8730 if test -z "$ac_cv_prog_LIPO"; then
8731 ac_ct_LIPO=$LIPO
8732 # Extract the first word of "lipo", so it can be a program name with args.
8733 set dummy lipo; ac_word=$2
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 printf %s "checking for $ac_word... " >&6; }
8736 if test ${ac_cv_prog_ac_ct_LIPO+y}
8737 then :
8738 printf %s "(cached) " >&6
8739 else case e in #(
8740 e) if test -n "$ac_ct_LIPO"; then
8741 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8742 else
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8745 do
8746 IFS=$as_save_IFS
8747 case $as_dir in #(((
8748 '') as_dir=./ ;;
8749 */) ;;
8750 *) as_dir=$as_dir/ ;;
8751 esac
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8754 ac_cv_prog_ac_ct_LIPO="lipo"
8755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8756 break 2
8757 fi
8758 done
8759 done
8760 IFS=$as_save_IFS
8761
8762 fi ;;
8763 esac
8764 fi
8765 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8766 if test -n "$ac_ct_LIPO"; then
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8768 printf "%s\n" "$ac_ct_LIPO" >&6; }
8769 else
8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 printf "%s\n" "no" >&6; }
8772 fi
8773
8774 if test "x$ac_ct_LIPO" = x; then
8775 LIPO=":"
8776 else
8777 case $cross_compiling:$ac_tool_warned in
8778 yes:)
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8780 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8781 ac_tool_warned=yes ;;
8782 esac
8783 LIPO=$ac_ct_LIPO
8784 fi
8785 else
8786 LIPO="$ac_cv_prog_LIPO"
8787 fi
8788
8789 if test -n "$ac_tool_prefix"; then
8790 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8791 set dummy ${ac_tool_prefix}otool; ac_word=$2
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 printf %s "checking for $ac_word... " >&6; }
8794 if test ${ac_cv_prog_OTOOL+y}
8795 then :
8796 printf %s "(cached) " >&6
8797 else case e in #(
8798 e) if test -n "$OTOOL"; then
8799 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8803 do
8804 IFS=$as_save_IFS
8805 case $as_dir in #(((
8806 '') as_dir=./ ;;
8807 */) ;;
8808 *) as_dir=$as_dir/ ;;
8809 esac
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8812 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8814 break 2
8815 fi
8816 done
8817 done
8818 IFS=$as_save_IFS
8819
8820 fi ;;
8821 esac
8822 fi
8823 OTOOL=$ac_cv_prog_OTOOL
8824 if test -n "$OTOOL"; then
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8826 printf "%s\n" "$OTOOL" >&6; }
8827 else
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 printf "%s\n" "no" >&6; }
8830 fi
8831
8832
8833 fi
8834 if test -z "$ac_cv_prog_OTOOL"; then
8835 ac_ct_OTOOL=$OTOOL
8836 # Extract the first word of "otool", so it can be a program name with args.
8837 set dummy otool; ac_word=$2
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 printf %s "checking for $ac_word... " >&6; }
8840 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8841 then :
8842 printf %s "(cached) " >&6
8843 else case e in #(
8844 e) if test -n "$ac_ct_OTOOL"; then
8845 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8846 else
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850 IFS=$as_save_IFS
8851 case $as_dir in #(((
8852 '') as_dir=./ ;;
8853 */) ;;
8854 *) as_dir=$as_dir/ ;;
8855 esac
8856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8858 ac_cv_prog_ac_ct_OTOOL="otool"
8859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8860 break 2
8861 fi
8862 done
8863 done
8864 IFS=$as_save_IFS
8865
8866 fi ;;
8867 esac
8868 fi
8869 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8870 if test -n "$ac_ct_OTOOL"; then
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8872 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8873 else
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 printf "%s\n" "no" >&6; }
8876 fi
8877
8878 if test "x$ac_ct_OTOOL" = x; then
8879 OTOOL=":"
8880 else
8881 case $cross_compiling:$ac_tool_warned in
8882 yes:)
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8884 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8885 ac_tool_warned=yes ;;
8886 esac
8887 OTOOL=$ac_ct_OTOOL
8888 fi
8889 else
8890 OTOOL="$ac_cv_prog_OTOOL"
8891 fi
8892
8893 if test -n "$ac_tool_prefix"; then
8894 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8895 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 printf %s "checking for $ac_word... " >&6; }
8898 if test ${ac_cv_prog_OTOOL64+y}
8899 then :
8900 printf %s "(cached) " >&6
8901 else case e in #(
8902 e) if test -n "$OTOOL64"; then
8903 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8904 else
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908 IFS=$as_save_IFS
8909 case $as_dir in #(((
8910 '') as_dir=./ ;;
8911 */) ;;
8912 *) as_dir=$as_dir/ ;;
8913 esac
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8916 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8918 break 2
8919 fi
8920 done
8921 done
8922 IFS=$as_save_IFS
8923
8924 fi ;;
8925 esac
8926 fi
8927 OTOOL64=$ac_cv_prog_OTOOL64
8928 if test -n "$OTOOL64"; then
8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8930 printf "%s\n" "$OTOOL64" >&6; }
8931 else
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 printf "%s\n" "no" >&6; }
8934 fi
8935
8936
8937 fi
8938 if test -z "$ac_cv_prog_OTOOL64"; then
8939 ac_ct_OTOOL64=$OTOOL64
8940 # Extract the first word of "otool64", so it can be a program name with args.
8941 set dummy otool64; ac_word=$2
8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 printf %s "checking for $ac_word... " >&6; }
8944 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8945 then :
8946 printf %s "(cached) " >&6
8947 else case e in #(
8948 e) if test -n "$ac_ct_OTOOL64"; then
8949 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8950 else
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 for as_dir in $PATH
8953 do
8954 IFS=$as_save_IFS
8955 case $as_dir in #(((
8956 '') as_dir=./ ;;
8957 */) ;;
8958 *) as_dir=$as_dir/ ;;
8959 esac
8960 for ac_exec_ext in '' $ac_executable_extensions; do
8961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8962 ac_cv_prog_ac_ct_OTOOL64="otool64"
8963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8964 break 2
8965 fi
8966 done
8967 done
8968 IFS=$as_save_IFS
8969
8970 fi ;;
8971 esac
8972 fi
8973 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8974 if test -n "$ac_ct_OTOOL64"; then
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8976 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8977 else
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 printf "%s\n" "no" >&6; }
8980 fi
8981
8982 if test "x$ac_ct_OTOOL64" = x; then
8983 OTOOL64=":"
8984 else
8985 case $cross_compiling:$ac_tool_warned in
8986 yes:)
8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8988 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8989 ac_tool_warned=yes ;;
8990 esac
8991 OTOOL64=$ac_ct_OTOOL64
8992 fi
8993 else
8994 OTOOL64="$ac_cv_prog_OTOOL64"
8995 fi
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9024 printf %s "checking for -single_module linker flag... " >&6; }
9025 if test ${lt_cv_apple_cc_single_mod+y}
9026 then :
9027 printf %s "(cached) " >&6
9028 else case e in #(
9029 e) lt_cv_apple_cc_single_mod=no
9030 if test -z "$LT_MULTI_MODULE"; then
9031 # By default we will add the -single_module flag. You can override
9032 # by either setting the environment variable LT_MULTI_MODULE
9033 # non-empty at configure time, or by adding -multi_module to the
9034 # link flags.
9035 rm -rf libconftest.dylib*
9036 echo "int foo(void){return 1;}" > conftest.c
9037 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9038 -dynamiclib -Wl,-single_module conftest.c" >&5
9039 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9040 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9041 _lt_result=$?
9042 # If there is a non-empty error log, and "single_module"
9043 # appears in it, assume the flag caused a linker warning
9044 if test -s conftest.err && $GREP single_module conftest.err; then
9045 cat conftest.err >&5
9046 # Otherwise, if the output was created with a 0 exit code from
9047 # the compiler, it worked.
9048 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9049 lt_cv_apple_cc_single_mod=yes
9050 else
9051 cat conftest.err >&5
9052 fi
9053 rm -rf libconftest.dylib*
9054 rm -f conftest.*
9055 fi ;;
9056 esac
9057 fi
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9059 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9060
9061 # Feature test to disable chained fixups since it is not
9062 # compatible with '-undefined dynamic_lookup'
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9064 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9065 if test ${lt_cv_support_no_fixup_chains+y}
9066 then :
9067 printf %s "(cached) " >&6
9068 else case e in #(
9069 e) save_LDFLAGS=$LDFLAGS
9070 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 int
9075 main (void)
9076 {
9077
9078 ;
9079 return 0;
9080 }
9081 _ACEOF
9082 if ac_fn_c_try_link "$LINENO"
9083 then :
9084 lt_cv_support_no_fixup_chains=yes
9085 else case e in #(
9086 e) lt_cv_support_no_fixup_chains=no
9087 ;;
9088 esac
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9091 conftest$ac_exeext conftest.$ac_ext
9092 LDFLAGS=$save_LDFLAGS
9093
9094 ;;
9095 esac
9096 fi
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9098 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9099
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9101 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9102 if test ${lt_cv_ld_exported_symbols_list+y}
9103 then :
9104 printf %s "(cached) " >&6
9105 else case e in #(
9106 e) lt_cv_ld_exported_symbols_list=no
9107 save_LDFLAGS=$LDFLAGS
9108 echo "_main" > conftest.sym
9109 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112
9113 int
9114 main (void)
9115 {
9116
9117 ;
9118 return 0;
9119 }
9120 _ACEOF
9121 if ac_fn_c_try_link "$LINENO"
9122 then :
9123 lt_cv_ld_exported_symbols_list=yes
9124 else case e in #(
9125 e) lt_cv_ld_exported_symbols_list=no ;;
9126 esac
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9129 conftest$ac_exeext conftest.$ac_ext
9130 LDFLAGS=$save_LDFLAGS
9131 ;;
9132 esac
9133 fi
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9135 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9136
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9138 printf %s "checking for -force_load linker flag... " >&6; }
9139 if test ${lt_cv_ld_force_load+y}
9140 then :
9141 printf %s "(cached) " >&6
9142 else case e in #(
9143 e) lt_cv_ld_force_load=no
9144 cat > conftest.c << _LT_EOF
9145 int forced_loaded() { return 2;}
9146 _LT_EOF
9147 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9148 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9149 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9150 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9151 echo "$RANLIB libconftest.a" >&5
9152 $RANLIB libconftest.a 2>&5
9153 cat > conftest.c << _LT_EOF
9154 int main(void) { return 0;}
9155 _LT_EOF
9156 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9157 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9158 _lt_result=$?
9159 if test -s conftest.err && $GREP force_load conftest.err; then
9160 cat conftest.err >&5
9161 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9162 lt_cv_ld_force_load=yes
9163 else
9164 cat conftest.err >&5
9165 fi
9166 rm -f conftest.err libconftest.a conftest conftest.c
9167 rm -rf conftest.dSYM
9168 ;;
9169 esac
9170 fi
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9172 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9173 case $host_os in
9174 rhapsody* | darwin1.[012])
9175 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9176 darwin1.*)
9177 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9178 darwin*)
9179 case $MACOSX_DEPLOYMENT_TARGET,$host in
9180 10.[012],*|,*powerpc*-darwin[5-8]*)
9181 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9182 *)
9183 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9184 if test yes = "$lt_cv_support_no_fixup_chains"; then
9185 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9186 fi
9187 ;;
9188 esac
9189 ;;
9190 esac
9191 if test yes = "$lt_cv_apple_cc_single_mod"; then
9192 _lt_dar_single_mod='$single_module'
9193 fi
9194 _lt_dar_needs_single_mod=no
9195 case $host_os in
9196 rhapsody* | darwin1.*)
9197 _lt_dar_needs_single_mod=yes ;;
9198 darwin*)
9199 # When targeting Mac OS X 10.4 (darwin 8) or later,
9200 # -single_module is the default and -multi_module is unsupported.
9201 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9202 # target any OS version that needs -single_module.
9203 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9204 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9205 _lt_dar_needs_single_mod=yes ;;
9206 esac
9207 ;;
9208 esac
9209 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9210 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9211 else
9212 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9213 fi
9214 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9215 _lt_dsymutil='~$DSYMUTIL $lib || :'
9216 else
9217 _lt_dsymutil=
9218 fi
9219 ;;
9220 esac
9221
9222 # func_munge_path_list VARIABLE PATH
9223 # -----------------------------------
9224 # VARIABLE is name of variable containing _space_ separated list of
9225 # directories to be munged by the contents of PATH, which is string
9226 # having a format:
9227 # "DIR[:DIR]:"
9228 # string "DIR[ DIR]" will be prepended to VARIABLE
9229 # ":DIR[:DIR]"
9230 # string "DIR[ DIR]" will be appended to VARIABLE
9231 # "DIRP[:DIRP]::[DIRA:]DIRA"
9232 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9233 # "DIRA[ DIRA]" will be appended to VARIABLE
9234 # "DIR[:DIR]"
9235 # VARIABLE will be replaced by "DIR[ DIR]"
9236 func_munge_path_list ()
9237 {
9238 case x$2 in
9239 x)
9240 ;;
9241 *:)
9242 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9243 ;;
9244 x:*)
9245 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9246 ;;
9247 *::*)
9248 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9249 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9250 ;;
9251 *)
9252 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9253 ;;
9254 esac
9255 }
9256
9257 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9258 "
9259 if test "x$ac_cv_header_dlfcn_h" = xyes
9260 then :
9261 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9262
9263 fi
9264
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9266 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9267 if test ${ac_cv_c_undeclared_builtin_options+y}
9268 then :
9269 printf %s "(cached) " >&6
9270 else case e in #(
9271 e) ac_save_CFLAGS=$CFLAGS
9272 ac_cv_c_undeclared_builtin_options='cannot detect'
9273 for ac_arg in '' -fno-builtin; do
9274 CFLAGS="$ac_save_CFLAGS $ac_arg"
9275 # This test program should *not* compile successfully.
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278
9279 int
9280 main (void)
9281 {
9282 (void) strchr;
9283 ;
9284 return 0;
9285 }
9286 _ACEOF
9287 if ac_fn_c_try_compile "$LINENO"
9288 then :
9289
9290 else case e in #(
9291 e) # This test program should compile successfully.
9292 # No library function is consistently available on
9293 # freestanding implementations, so test against a dummy
9294 # declaration. Include always-available headers on the
9295 # off chance that they somehow elicit warnings.
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 #include <float.h>
9299 #include <limits.h>
9300 #include <stdarg.h>
9301 #include <stddef.h>
9302 extern void ac_decl (int, char *);
9303
9304 int
9305 main (void)
9306 {
9307 (void) ac_decl (0, (char *) 0);
9308 (void) ac_decl;
9309
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"
9315 then :
9316 if test x"$ac_arg" = x
9317 then :
9318 ac_cv_c_undeclared_builtin_options='none needed'
9319 else case e in #(
9320 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9321 esac
9322 fi
9323 break
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9326 esac
9327 fi
9328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9329 done
9330 CFLAGS=$ac_save_CFLAGS
9331 ;;
9332 esac
9333 fi
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9335 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9336 case $ac_cv_c_undeclared_builtin_options in #(
9337 'cannot detect') :
9338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9339 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9340 as_fn_error $? "cannot make $CC report undeclared builtins
9341 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9342 'none needed') :
9343 ac_c_undeclared_builtin_options='' ;; #(
9344 *) :
9345 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9346 esac
9347
9348 echo 'tldbg:KPSE_COMMON called (pkg=xdvik, amopt=)' >&5
9349 echo 'tldbg:KPSE_BASIC called (pkg=xdvik, amopt=)' >&5
9350
9351 #
9352 # am_init_automake
9353 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9354 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9355 # is not polluted with repeated "-I."
9356 am__isrc=' -I$(srcdir)'
9357 # test to see if srcdir already configured
9358 if test -f $srcdir/config.status; then
9359 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9360 fi
9361 fi
9362
9363 # test whether we have cygpath
9364 if test -z "$CYGPATH_W"; then
9365 if (cygpath --version) >/dev/null 2>/dev/null; then
9366 CYGPATH_W='cygpath -w'
9367 else
9368 CYGPATH_W=echo
9369 fi
9370 fi
9371
9372
9373 # Define the identity of the package.
9374 PACKAGE='xdvik'
9375 VERSION='22.87.06'
9376
9377
9378 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9379
9380
9381 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9382
9383 # Some tools Automake needs.
9384
9385 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9386
9387
9388 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9389
9390
9391 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9392
9393
9394 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9395
9396
9397 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9398
9399 # For better backward compatibility. To be removed once Automake 1.9.x
9400 # dies out for good. For more background, see:
9401 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9402 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9403 mkdir_p='$(MKDIR_P)'
9404
9405 # We need awk for the "check" target (and possibly the TAP driver). The
9406 # system "awk" is bad on some platforms.
9407 # Always define AMTAR for backward compatibility. Yes, it's still used
9408 # in the wild :-( We should find a proper way to deprecate it ...
9409 AMTAR='$${TAR-tar}'
9410
9411
9412 # We'll loop over all known methods to create a tar archive until one works.
9413 _am_tools='gnutar plaintar pax cpio none'
9414
9415 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9416 # There is notably a 21 bits limit for the UID and the GID. In fact,
9417 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9418 # and bug#13588).
9419 am_max_uid=2097151 # 2^21 - 1
9420 am_max_gid=$am_max_uid
9421 # The $UID and $GID variables are not portable, so we need to resort
9422 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9423 # below are definitely unexpected, so allow the users to see them
9424 # (that is, avoid stderr redirection).
9425 am_uid=`id -u || echo unknown`
9426 am_gid=`id -g || echo unknown`
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9428 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9429 if test x$am_uid = xunknown; then
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9431 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9432 elif test $am_uid -le $am_max_uid; then
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9434 printf "%s\n" "yes" >&6; }
9435 else
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 printf "%s\n" "no" >&6; }
9438 _am_tools=none
9439 fi
9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9441 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9442 if test x$gm_gid = xunknown; then
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9444 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9445 elif test $am_gid -le $am_max_gid; then
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9447 printf "%s\n" "yes" >&6; }
9448 else
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 printf "%s\n" "no" >&6; }
9451 _am_tools=none
9452 fi
9453
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9455 printf %s "checking how to create a ustar tar archive... " >&6; }
9456
9457 # Go ahead even if we have the value already cached. We do so because we
9458 # need to set the values for the 'am__tar' and 'am__untar' variables.
9459 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9460
9461 for _am_tool in $_am_tools; do
9462 case $_am_tool in
9463 gnutar)
9464 for _am_tar in tar gnutar gtar; do
9465 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9466 ($_am_tar --version) >&5 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } && break
9470 done
9471 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9472 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9473 am__untar="$_am_tar -xf -"
9474 ;;
9475 plaintar)
9476 # Must skip GNU tar: if it does not support --format= it doesn't create
9477 # ustar tarball either.
9478 (tar --version) >/dev/null 2>&1 && continue
9479 am__tar='tar chf - "$$tardir"'
9480 am__tar_='tar chf - "$tardir"'
9481 am__untar='tar xf -'
9482 ;;
9483 pax)
9484 am__tar='pax -L -x ustar -w "$$tardir"'
9485 am__tar_='pax -L -x ustar -w "$tardir"'
9486 am__untar='pax -r'
9487 ;;
9488 cpio)
9489 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9490 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9491 am__untar='cpio -i -H ustar -d'
9492 ;;
9493 none)
9494 am__tar=false
9495 am__tar_=false
9496 am__untar=false
9497 ;;
9498 esac
9499
9500 # If the value was cached, stop now. We just wanted to have am__tar
9501 # and am__untar set.
9502 test -n "${am_cv_prog_tar_ustar}" && break
9503
9504 # tar/untar a dummy directory, and stop if the command works.
9505 rm -rf conftest.dir
9506 mkdir conftest.dir
9507 echo GrepMe > conftest.dir/file
9508 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9509 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }
9513 rm -rf conftest.dir
9514 if test -s conftest.tar; then
9515 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9516 ($am__untar <conftest.tar) >&5 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }
9520 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9521 (cat conftest.dir/file) >&5 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }
9525 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9526 fi
9527 done
9528 rm -rf conftest.dir
9529
9530 if test ${am_cv_prog_tar_ustar+y}
9531 then :
9532 printf %s "(cached) " >&6
9533 else case e in #(
9534 e) am_cv_prog_tar_ustar=$_am_tool ;;
9535 esac
9536 fi
9537
9538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9539 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9540
9541
9542
9543
9544
9545 # Variables for tags utilities; see am/tags.am
9546 if test -z "$CTAGS"; then
9547 CTAGS=ctags
9548 fi
9549
9550 if test -z "$ETAGS"; then
9551 ETAGS=etags
9552 fi
9553
9554 if test -z "$CSCOPE"; then
9555 CSCOPE=cscope
9556 fi
9557
9558
9559
9560
9561
9562
9563
9564
9565 # am_maintainer_mode
9566
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9568 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9569 # Check whether --enable-maintainer-mode was given.
9570 if test ${enable_maintainer_mode+y}
9571 then :
9572 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9573 else case e in #(
9574 e) USE_MAINTAINER_MODE=no ;;
9575 esac
9576 fi
9577
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9579 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9580 if test $USE_MAINTAINER_MODE = yes; then
9581 MAINTAINER_MODE_TRUE=
9582 MAINTAINER_MODE_FALSE='#'
9583 else
9584 MAINTAINER_MODE_TRUE='#'
9585 MAINTAINER_MODE_FALSE=
9586 fi
9587
9588 MAINT=$MAINTAINER_MODE_TRUE
9589
9590
9591
9592 # See comments in kpse-setup.m4 about system extensions.
9593
9594
9595 # Check whether prototypes work.
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9597 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9598 if test ${kb_cv_c_prototypes+y}
9599 then :
9600 printf %s "(cached) " >&6
9601 else case e in #(
9602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 #include <stdarg.h>
9605 int
9606 main (void)
9607 {
9608 extern void foo(int i,...);
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"
9614 then :
9615 kb_cv_c_prototypes=yes
9616 else case e in #(
9617 e) kb_cv_c_prototypes=no ;;
9618 esac
9619 fi
9620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9621 conftest$ac_exeext conftest.$ac_ext ;;
9622 esac
9623 fi
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9625 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9626 if test "x$kb_cv_c_prototypes" = xno; then
9627 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9628 fi
9629
9630 # kpse_compiler_warnings options.
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9632 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9633 if test ${kpse_cv_warning_cflags+y}
9634 then :
9635 printf %s "(cached) " >&6
9636 else case e in #(
9637 e) if test "x$GCC" = xyes; then
9638 kpse_cv_warning_cflags=
9639 if test "x$enable_compiler_warnings" != xno; then
9640 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9641 case `$CC -dumpversion` in #(
9642 3.4.* | 4.* | 5.*) :
9643 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9644 *) :
9645 ;;
9646 esac
9647 case `$CC -dumpversion` in #(
9648 3.[234].* | 4.* | 5.*) :
9649 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9650 *) :
9651 ;;
9652 esac
9653 if test "x$enable_compiler_warnings" != xmin; then
9654 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9655 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9656 if test "x$enable_compiler_warnings" != xyes; then
9657 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9658 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9659 case `$CC -dumpversion` in #(
9660 3.4.* | 4.* | 5.*) :
9661 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9662 *) :
9663 ;;
9664 esac
9665 if test "x$enable_compiler_warnings" != xmax; then
9666 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9667 fi
9668 fi
9669 fi
9670 fi
9671 elif test "x$enable_compiler_warnings" = xno; then
9672 kpse_cv_warning_cflags=
9673 else
9674 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9675 fi ;;
9676 esac
9677 fi
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9679 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9680 WARNING_CFLAGS=$kpse_cv_warning_cflags
9681
9682
9683
9684
9685
9686
9687
9688 # end of kpse_basic macro.
9689 echo 'tldbg:KPSE_BASIC done (pkg=xdvik, amopt=)' >&5
9690
9691 # am_prog_ar must be called before lt_init.
9692
9693 if test -n "$ac_tool_prefix"; then
9694 for ac_prog in ar lib "link -lib"
9695 do
9696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 printf %s "checking for $ac_word... " >&6; }
9700 if test ${ac_cv_prog_AR+y}
9701 then :
9702 printf %s "(cached) " >&6
9703 else case e in #(
9704 e) if test -n "$AR"; then
9705 ac_cv_prog_AR="$AR" # Let the user override the test.
9706 else
9707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 for as_dir in $PATH
9709 do
9710 IFS=$as_save_IFS
9711 case $as_dir in #(((
9712 '') as_dir=./ ;;
9713 */) ;;
9714 *) as_dir=$as_dir/ ;;
9715 esac
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9718 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9720 break 2
9721 fi
9722 done
9723 done
9724 IFS=$as_save_IFS
9725
9726 fi ;;
9727 esac
9728 fi
9729 AR=$ac_cv_prog_AR
9730 if test -n "$AR"; then
9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9732 printf "%s\n" "$AR" >&6; }
9733 else
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 printf "%s\n" "no" >&6; }
9736 fi
9737
9738
9739 test -n "$AR" && break
9740 done
9741 fi
9742 if test -z "$AR"; then
9743 ac_ct_AR=$AR
9744 for ac_prog in ar lib "link -lib"
9745 do
9746 # Extract the first word of "$ac_prog", so it can be a program name with args.
9747 set dummy $ac_prog; ac_word=$2
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749 printf %s "checking for $ac_word... " >&6; }
9750 if test ${ac_cv_prog_ac_ct_AR+y}
9751 then :
9752 printf %s "(cached) " >&6
9753 else case e in #(
9754 e) if test -n "$ac_ct_AR"; then
9755 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9756 else
9757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758 for as_dir in $PATH
9759 do
9760 IFS=$as_save_IFS
9761 case $as_dir in #(((
9762 '') as_dir=./ ;;
9763 */) ;;
9764 *) as_dir=$as_dir/ ;;
9765 esac
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_ac_ct_AR="$ac_prog"
9769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772 done
9773 done
9774 IFS=$as_save_IFS
9775
9776 fi ;;
9777 esac
9778 fi
9779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9780 if test -n "$ac_ct_AR"; then
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9782 printf "%s\n" "$ac_ct_AR" >&6; }
9783 else
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 printf "%s\n" "no" >&6; }
9786 fi
9787
9788
9789 test -n "$ac_ct_AR" && break
9790 done
9791
9792 if test "x$ac_ct_AR" = x; then
9793 AR="false"
9794 else
9795 case $cross_compiling:$ac_tool_warned in
9796 yes:)
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9799 ac_tool_warned=yes ;;
9800 esac
9801 AR=$ac_ct_AR
9802 fi
9803 fi
9804
9805 : ${AR=ar}
9806 : ${ARFLAGS=cr}
9807
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9809 printf %s "checking the archiver ($AR) interface... " >&6; }
9810 if test ${am_cv_ar_interface+y}
9811 then :
9812 printf %s "(cached) " >&6
9813 else case e in #(
9814 e) ac_ext=c
9815 ac_cpp='$CPP $CPPFLAGS'
9816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9819
9820 am_cv_ar_interface=ar
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9823 int some_variable = 0;
9824 _ACEOF
9825 if ac_fn_c_try_compile "$LINENO"
9826 then :
9827 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9829 (eval $am_ar_try) 2>&5
9830 ac_status=$?
9831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9832 test $ac_status = 0; }
9833 if test "$ac_status" -eq 0; then
9834 am_cv_ar_interface=ar
9835 else
9836 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9838 (eval $am_ar_try) 2>&5
9839 ac_status=$?
9840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841 test $ac_status = 0; }
9842 if test "$ac_status" -eq 0; then
9843 am_cv_ar_interface=lib
9844 else
9845 am_cv_ar_interface=unknown
9846 fi
9847 fi
9848 rm -f conftest.lib libconftest.a
9849
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9852 ac_ext=c
9853 ac_cpp='$CPP $CPPFLAGS'
9854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9857 ;;
9858 esac
9859 fi
9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9861 printf "%s\n" "$am_cv_ar_interface" >&6; }
9862
9863 case $am_cv_ar_interface in
9864 ar)
9865 ;;
9866 lib)
9867 # Microsoft lib, so override with the ar-lib wrapper script.
9868 # FIXME: It is wrong to rewrite AR.
9869 # But if we don't then we get into trouble of one sort or another.
9870 # A longer-term fix would be to have automake use am__AR in this case,
9871 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9872 # similar.
9873 AR="$am_aux_dir/ar-lib $AR"
9874 ;;
9875 unknown)
9876 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9877 ;;
9878 esac
9879
9880 # (end am_prog_ar)
9881 # starting lt_prereq + lt_init.
9882
9883
9884
9885
9886
9887 # Set options
9888 enable_win32_dll=yes
9889
9890 case $host in
9891 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9892 if test -n "$ac_tool_prefix"; then
9893 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9894 set dummy ${ac_tool_prefix}as; ac_word=$2
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 printf %s "checking for $ac_word... " >&6; }
9897 if test ${ac_cv_prog_AS+y}
9898 then :
9899 printf %s "(cached) " >&6
9900 else case e in #(
9901 e) if test -n "$AS"; then
9902 ac_cv_prog_AS="$AS" # Let the user override the test.
9903 else
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH
9906 do
9907 IFS=$as_save_IFS
9908 case $as_dir in #(((
9909 '') as_dir=./ ;;
9910 */) ;;
9911 *) as_dir=$as_dir/ ;;
9912 esac
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9915 ac_cv_prog_AS="${ac_tool_prefix}as"
9916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9917 break 2
9918 fi
9919 done
9920 done
9921 IFS=$as_save_IFS
9922
9923 fi ;;
9924 esac
9925 fi
9926 AS=$ac_cv_prog_AS
9927 if test -n "$AS"; then
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9929 printf "%s\n" "$AS" >&6; }
9930 else
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 printf "%s\n" "no" >&6; }
9933 fi
9934
9935
9936 fi
9937 if test -z "$ac_cv_prog_AS"; then
9938 ac_ct_AS=$AS
9939 # Extract the first word of "as", so it can be a program name with args.
9940 set dummy as; ac_word=$2
9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9942 printf %s "checking for $ac_word... " >&6; }
9943 if test ${ac_cv_prog_ac_ct_AS+y}
9944 then :
9945 printf %s "(cached) " >&6
9946 else case e in #(
9947 e) if test -n "$ac_ct_AS"; then
9948 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9952 do
9953 IFS=$as_save_IFS
9954 case $as_dir in #(((
9955 '') as_dir=./ ;;
9956 */) ;;
9957 *) as_dir=$as_dir/ ;;
9958 esac
9959 for ac_exec_ext in '' $ac_executable_extensions; do
9960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9961 ac_cv_prog_ac_ct_AS="as"
9962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9963 break 2
9964 fi
9965 done
9966 done
9967 IFS=$as_save_IFS
9968
9969 fi ;;
9970 esac
9971 fi
9972 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9973 if test -n "$ac_ct_AS"; then
9974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9975 printf "%s\n" "$ac_ct_AS" >&6; }
9976 else
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 printf "%s\n" "no" >&6; }
9979 fi
9980
9981 if test "x$ac_ct_AS" = x; then
9982 AS="false"
9983 else
9984 case $cross_compiling:$ac_tool_warned in
9985 yes:)
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9987 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9988 ac_tool_warned=yes ;;
9989 esac
9990 AS=$ac_ct_AS
9991 fi
9992 else
9993 AS="$ac_cv_prog_AS"
9994 fi
9995
9996 if test -n "$ac_tool_prefix"; then
9997 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9998 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 printf %s "checking for $ac_word... " >&6; }
10001 if test ${ac_cv_prog_DLLTOOL+y}
10002 then :
10003 printf %s "(cached) " >&6
10004 else case e in #(
10005 e) if test -n "$DLLTOOL"; then
10006 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10007 else
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10010 do
10011 IFS=$as_save_IFS
10012 case $as_dir in #(((
10013 '') as_dir=./ ;;
10014 */) ;;
10015 *) as_dir=$as_dir/ ;;
10016 esac
10017 for ac_exec_ext in '' $ac_executable_extensions; do
10018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10019 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10021 break 2
10022 fi
10023 done
10024 done
10025 IFS=$as_save_IFS
10026
10027 fi ;;
10028 esac
10029 fi
10030 DLLTOOL=$ac_cv_prog_DLLTOOL
10031 if test -n "$DLLTOOL"; then
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10033 printf "%s\n" "$DLLTOOL" >&6; }
10034 else
10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 printf "%s\n" "no" >&6; }
10037 fi
10038
10039
10040 fi
10041 if test -z "$ac_cv_prog_DLLTOOL"; then
10042 ac_ct_DLLTOOL=$DLLTOOL
10043 # Extract the first word of "dlltool", so it can be a program name with args.
10044 set dummy dlltool; ac_word=$2
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 printf %s "checking for $ac_word... " >&6; }
10047 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10048 then :
10049 printf %s "(cached) " >&6
10050 else case e in #(
10051 e) if test -n "$ac_ct_DLLTOOL"; then
10052 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10053 else
10054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055 for as_dir in $PATH
10056 do
10057 IFS=$as_save_IFS
10058 case $as_dir in #(((
10059 '') as_dir=./ ;;
10060 */) ;;
10061 *) as_dir=$as_dir/ ;;
10062 esac
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069 done
10070 done
10071 IFS=$as_save_IFS
10072
10073 fi ;;
10074 esac
10075 fi
10076 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10077 if test -n "$ac_ct_DLLTOOL"; then
10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10079 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10080 else
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 printf "%s\n" "no" >&6; }
10083 fi
10084
10085 if test "x$ac_ct_DLLTOOL" = x; then
10086 DLLTOOL="false"
10087 else
10088 case $cross_compiling:$ac_tool_warned in
10089 yes:)
10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10091 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10092 ac_tool_warned=yes ;;
10093 esac
10094 DLLTOOL=$ac_ct_DLLTOOL
10095 fi
10096 else
10097 DLLTOOL="$ac_cv_prog_DLLTOOL"
10098 fi
10099
10100 if test -n "$ac_tool_prefix"; then
10101 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10102 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 printf %s "checking for $ac_word... " >&6; }
10105 if test ${ac_cv_prog_OBJDUMP+y}
10106 then :
10107 printf %s "(cached) " >&6
10108 else case e in #(
10109 e) if test -n "$OBJDUMP"; then
10110 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10111 else
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10114 do
10115 IFS=$as_save_IFS
10116 case $as_dir in #(((
10117 '') as_dir=./ ;;
10118 */) ;;
10119 *) as_dir=$as_dir/ ;;
10120 esac
10121 for ac_exec_ext in '' $ac_executable_extensions; do
10122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10123 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10125 break 2
10126 fi
10127 done
10128 done
10129 IFS=$as_save_IFS
10130
10131 fi ;;
10132 esac
10133 fi
10134 OBJDUMP=$ac_cv_prog_OBJDUMP
10135 if test -n "$OBJDUMP"; then
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10137 printf "%s\n" "$OBJDUMP" >&6; }
10138 else
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 printf "%s\n" "no" >&6; }
10141 fi
10142
10143
10144 fi
10145 if test -z "$ac_cv_prog_OBJDUMP"; then
10146 ac_ct_OBJDUMP=$OBJDUMP
10147 # Extract the first word of "objdump", so it can be a program name with args.
10148 set dummy objdump; ac_word=$2
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150 printf %s "checking for $ac_word... " >&6; }
10151 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10152 then :
10153 printf %s "(cached) " >&6
10154 else case e in #(
10155 e) if test -n "$ac_ct_OBJDUMP"; then
10156 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10157 else
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10160 do
10161 IFS=$as_save_IFS
10162 case $as_dir in #(((
10163 '') as_dir=./ ;;
10164 */) ;;
10165 *) as_dir=$as_dir/ ;;
10166 esac
10167 for ac_exec_ext in '' $ac_executable_extensions; do
10168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10169 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10171 break 2
10172 fi
10173 done
10174 done
10175 IFS=$as_save_IFS
10176
10177 fi ;;
10178 esac
10179 fi
10180 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10181 if test -n "$ac_ct_OBJDUMP"; then
10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10183 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10184 else
10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 printf "%s\n" "no" >&6; }
10187 fi
10188
10189 if test "x$ac_ct_OBJDUMP" = x; then
10190 OBJDUMP="false"
10191 else
10192 case $cross_compiling:$ac_tool_warned in
10193 yes:)
10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10195 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10196 ac_tool_warned=yes ;;
10197 esac
10198 OBJDUMP=$ac_ct_OBJDUMP
10199 fi
10200 else
10201 OBJDUMP="$ac_cv_prog_OBJDUMP"
10202 fi
10203
10204 ;;
10205 esac
10206
10207 test -z "$AS" && AS=as
10208
10209
10210
10211
10212
10213 test -z "$DLLTOOL" && DLLTOOL=dlltool
10214
10215
10216
10217
10218
10219 test -z "$OBJDUMP" && OBJDUMP=objdump
10220
10221
10222
10223
10224
10225
10226
10227 enable_dlopen=no
10228
10229
10230
10231 # Check whether --enable-shared was given.
10232 if test ${enable_shared+y}
10233 then :
10234 enableval=$enable_shared; p=${PACKAGE-default}
10235 case $enableval in
10236 yes) enable_shared=yes ;;
10237 no) enable_shared=no ;;
10238 *)
10239 enable_shared=no
10240 # Look at the argument we got. We use all the common list separators.
10241 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10242 for pkg in $enableval; do
10243 IFS=$lt_save_ifs
10244 if test "X$pkg" = "X$p"; then
10245 enable_shared=yes
10246 fi
10247 done
10248 IFS=$lt_save_ifs
10249 ;;
10250 esac
10251 else case e in #(
10252 e) enable_shared=yes ;;
10253 esac
10254 fi
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264 # Check whether --enable-static was given.
10265 if test ${enable_static+y}
10266 then :
10267 enableval=$enable_static; p=${PACKAGE-default}
10268 case $enableval in
10269 yes) enable_static=yes ;;
10270 no) enable_static=no ;;
10271 *)
10272 enable_static=no
10273 # Look at the argument we got. We use all the common list separators.
10274 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10275 for pkg in $enableval; do
10276 IFS=$lt_save_ifs
10277 if test "X$pkg" = "X$p"; then
10278 enable_static=yes
10279 fi
10280 done
10281 IFS=$lt_save_ifs
10282 ;;
10283 esac
10284 else case e in #(
10285 e) enable_static=yes ;;
10286 esac
10287 fi
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297 # Check whether --enable-pic was given.
10298 if test ${enable_pic+y}
10299 then :
10300 enableval=$enable_pic; lt_p=${PACKAGE-default}
10301 case $enableval in
10302 yes|no) pic_mode=$enableval ;;
10303 *)
10304 pic_mode=default
10305 # Look at the argument we got. We use all the common list separators.
10306 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10307 for lt_pkg in $enableval; do
10308 IFS=$lt_save_ifs
10309 if test "X$lt_pkg" = "X$lt_p"; then
10310 pic_mode=yes
10311 fi
10312 done
10313 IFS=$lt_save_ifs
10314 ;;
10315 esac
10316 else case e in #(
10317 e) # Check whether --with-pic was given.
10318 if test ${with_pic+y}
10319 then :
10320 withval=$with_pic; lt_p=${PACKAGE-default}
10321 case $withval in
10322 yes|no) pic_mode=$withval ;;
10323 *)
10324 pic_mode=default
10325 # Look at the argument we got. We use all the common list separators.
10326 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10327 for lt_pkg in $withval; do
10328 IFS=$lt_save_ifs
10329 if test "X$lt_pkg" = "X$lt_p"; then
10330 pic_mode=yes
10331 fi
10332 done
10333 IFS=$lt_save_ifs
10334 ;;
10335 esac
10336 else case e in #(
10337 e) pic_mode=default ;;
10338 esac
10339 fi
10340
10341 ;;
10342 esac
10343 fi
10344
10345
10346
10347
10348
10349
10350
10351
10352 # Check whether --enable-fast-install was given.
10353 if test ${enable_fast_install+y}
10354 then :
10355 enableval=$enable_fast_install; p=${PACKAGE-default}
10356 case $enableval in
10357 yes) enable_fast_install=yes ;;
10358 no) enable_fast_install=no ;;
10359 *)
10360 enable_fast_install=no
10361 # Look at the argument we got. We use all the common list separators.
10362 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10363 for pkg in $enableval; do
10364 IFS=$lt_save_ifs
10365 if test "X$pkg" = "X$p"; then
10366 enable_fast_install=yes
10367 fi
10368 done
10369 IFS=$lt_save_ifs
10370 ;;
10371 esac
10372 else case e in #(
10373 e) enable_fast_install=yes ;;
10374 esac
10375 fi
10376
10377
10378
10379
10380
10381
10382
10383
10384 shared_archive_member_spec=
10385 case $host,$enable_shared in
10386 power*-*-aix[5-9]*,yes)
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10388 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10389 # Check whether --enable-aix-soname was given.
10390 if test ${enable_aix_soname+y}
10391 then :
10392 enableval=$enable_aix_soname; case $enableval in
10393 aix|svr4|both)
10394 ;;
10395 *)
10396 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10397 ;;
10398 esac
10399 lt_cv_with_aix_soname=$enable_aix_soname
10400 else case e in #(
10401 e) # Check whether --with-aix-soname was given.
10402 if test ${with_aix_soname+y}
10403 then :
10404 withval=$with_aix_soname; case $withval in
10405 aix|svr4|both)
10406 ;;
10407 *)
10408 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10409 ;;
10410 esac
10411 lt_cv_with_aix_soname=$with_aix_soname
10412 else case e in #(
10413 e) if test ${lt_cv_with_aix_soname+y}
10414 then :
10415 printf %s "(cached) " >&6
10416 else case e in #(
10417 e) lt_cv_with_aix_soname=aix ;;
10418 esac
10419 fi
10420 ;;
10421 esac
10422 fi
10423
10424 enable_aix_soname=$lt_cv_with_aix_soname ;;
10425 esac
10426 fi
10427
10428 with_aix_soname=$enable_aix_soname
10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10430 printf "%s\n" "$with_aix_soname" >&6; }
10431 if test aix != "$with_aix_soname"; then
10432 # For the AIX way of multilib, we name the shared archive member
10433 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10434 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10435 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10436 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10437 if test 64 = "${OBJECT_MODE-32}"; then
10438 shared_archive_member_spec=shr_64
10439 else
10440 shared_archive_member_spec=shr
10441 fi
10442 fi
10443 ;;
10444 *)
10445 with_aix_soname=aix
10446 ;;
10447 esac
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458 # This can be used to rebuild libtool when needed
10459 LIBTOOL_DEPS=$ltmain
10460
10461 # Always use our own libtool.
10462 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493 test -z "$LN_S" && LN_S="ln -s"
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508 if test -n "${ZSH_VERSION+set}"; then
10509 setopt NO_GLOB_SUBST
10510 fi
10511
10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10513 printf %s "checking for objdir... " >&6; }
10514 if test ${lt_cv_objdir+y}
10515 then :
10516 printf %s "(cached) " >&6
10517 else case e in #(
10518 e) rm -f .libs 2>/dev/null
10519 mkdir .libs 2>/dev/null
10520 if test -d .libs; then
10521 lt_cv_objdir=.libs
10522 else
10523 # MS-DOS does not allow filenames that begin with a dot.
10524 lt_cv_objdir=_libs
10525 fi
10526 rmdir .libs 2>/dev/null ;;
10527 esac
10528 fi
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10530 printf "%s\n" "$lt_cv_objdir" >&6; }
10531 objdir=$lt_cv_objdir
10532
10533
10534
10535
10536
10537 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10538
10539
10540
10541
10542 case $host_os in
10543 aix3*)
10544 # AIX sometimes has problems with the GCC collect2 program. For some
10545 # reason, if we set the COLLECT_NAMES environment variable, the problems
10546 # vanish in a puff of smoke.
10547 if test set != "${COLLECT_NAMES+set}"; then
10548 COLLECT_NAMES=
10549 export COLLECT_NAMES
10550 fi
10551 ;;
10552 esac
10553
10554 # Global variables:
10555 ofile=libtool
10556 can_build_shared=yes
10557
10558 # All known linkers require a '.a' archive for static linking (except MSVC and
10559 # ICC, which need '.lib').
10560 libext=a
10561
10562 with_gnu_ld=$lt_cv_prog_gnu_ld
10563
10564 old_CC=$CC
10565 old_CFLAGS=$CFLAGS
10566
10567 # Set sane defaults for various variables
10568 test -z "$CC" && CC=cc
10569 test -z "$LTCC" && LTCC=$CC
10570 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10571 test -z "$LD" && LD=ld
10572 test -z "$ac_objext" && ac_objext=o
10573
10574 func_cc_basename $compiler
10575 cc_basename=$func_cc_basename_result
10576
10577
10578 # Only perform the check for file, if the check method requires it
10579 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10580 case $deplibs_check_method in
10581 file_magic*)
10582 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10584 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10585 if test ${lt_cv_path_MAGIC_CMD+y}
10586 then :
10587 printf %s "(cached) " >&6
10588 else case e in #(
10589 e) case $MAGIC_CMD in
10590 [\\/*] | ?:[\\/]*)
10591 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10592 ;;
10593 *)
10594 lt_save_MAGIC_CMD=$MAGIC_CMD
10595 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10596 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10597 for ac_dir in $ac_dummy; do
10598 IFS=$lt_save_ifs
10599 test -z "$ac_dir" && ac_dir=.
10600 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10601 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10602 if test -n "$file_magic_test_file"; then
10603 case $deplibs_check_method in
10604 "file_magic "*)
10605 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10606 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10607 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10608 $EGREP "$file_magic_regex" > /dev/null; then
10609 :
10610 else
10611 cat <<_LT_EOF 1>&2
10612
10613 *** Warning: the command libtool uses to detect shared libraries,
10614 *** $file_magic_cmd, produces output that libtool cannot recognize.
10615 *** The result is that libtool may fail to recognize shared libraries
10616 *** as such. This will affect the creation of libtool libraries that
10617 *** depend on shared libraries, but programs linked with such libtool
10618 *** libraries will work regardless of this problem. Nevertheless, you
10619 *** may want to report the problem to your system manager and/or to
10620 *** [email protected]
10621
10622 _LT_EOF
10623 fi ;;
10624 esac
10625 fi
10626 break
10627 fi
10628 done
10629 IFS=$lt_save_ifs
10630 MAGIC_CMD=$lt_save_MAGIC_CMD
10631 ;;
10632 esac ;;
10633 esac
10634 fi
10635
10636 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10637 if test -n "$MAGIC_CMD"; then
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10639 printf "%s\n" "$MAGIC_CMD" >&6; }
10640 else
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 printf "%s\n" "no" >&6; }
10643 fi
10644
10645
10646
10647
10648
10649 if test -z "$lt_cv_path_MAGIC_CMD"; then
10650 if test -n "$ac_tool_prefix"; then
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10652 printf %s "checking for file... " >&6; }
10653 if test ${lt_cv_path_MAGIC_CMD+y}
10654 then :
10655 printf %s "(cached) " >&6
10656 else case e in #(
10657 e) case $MAGIC_CMD in
10658 [\\/*] | ?:[\\/]*)
10659 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10660 ;;
10661 *)
10662 lt_save_MAGIC_CMD=$MAGIC_CMD
10663 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10664 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10665 for ac_dir in $ac_dummy; do
10666 IFS=$lt_save_ifs
10667 test -z "$ac_dir" && ac_dir=.
10668 if test -f "$ac_dir/file"; then
10669 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10670 if test -n "$file_magic_test_file"; then
10671 case $deplibs_check_method in
10672 "file_magic "*)
10673 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10674 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10675 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10676 $EGREP "$file_magic_regex" > /dev/null; then
10677 :
10678 else
10679 cat <<_LT_EOF 1>&2
10680
10681 *** Warning: the command libtool uses to detect shared libraries,
10682 *** $file_magic_cmd, produces output that libtool cannot recognize.
10683 *** The result is that libtool may fail to recognize shared libraries
10684 *** as such. This will affect the creation of libtool libraries that
10685 *** depend on shared libraries, but programs linked with such libtool
10686 *** libraries will work regardless of this problem. Nevertheless, you
10687 *** may want to report the problem to your system manager and/or to
10688 *** [email protected]
10689
10690 _LT_EOF
10691 fi ;;
10692 esac
10693 fi
10694 break
10695 fi
10696 done
10697 IFS=$lt_save_ifs
10698 MAGIC_CMD=$lt_save_MAGIC_CMD
10699 ;;
10700 esac ;;
10701 esac
10702 fi
10703
10704 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10705 if test -n "$MAGIC_CMD"; then
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10707 printf "%s\n" "$MAGIC_CMD" >&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
10714 else
10715 MAGIC_CMD=:
10716 fi
10717 fi
10718
10719 fi
10720 ;;
10721 esac
10722
10723 # Use C for the default configuration in the libtool script
10724
10725 lt_save_CC=$CC
10726 ac_ext=c
10727 ac_cpp='$CPP $CPPFLAGS'
10728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10731
10732
10733 # Source file extension for C test sources.
10734 ac_ext=c
10735
10736 # Object file extension for compiled C test sources.
10737 objext=o
10738 objext=$objext
10739
10740 # Code to be used in simple compile tests
10741 lt_simple_compile_test_code="int some_variable = 0;"
10742
10743 # Code to be used in simple link tests
10744 lt_simple_link_test_code='int main(void){return(0);}'
10745
10746
10747
10748
10749
10750
10751
10752 # If no C compiler was specified, use CC.
10753 LTCC=${LTCC-"$CC"}
10754
10755 # If no C compiler flags were specified, use CFLAGS.
10756 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10757
10758 # Allow CC to be a program name with arguments.
10759 compiler=$CC
10760
10761 # Save the default compiler, since it gets overwritten when the other
10762 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10763 compiler_DEFAULT=$CC
10764
10765 # save warnings/boilerplate of simple test code
10766 ac_outfile=conftest.$ac_objext
10767 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10768 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10769 _lt_compiler_boilerplate=`cat conftest.err`
10770 $RM conftest*
10771
10772 ac_outfile=conftest.$ac_objext
10773 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10774 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10775 _lt_linker_boilerplate=`cat conftest.err`
10776 $RM -r conftest*
10777
10778
10779 ## CAVEAT EMPTOR:
10780 ## There is no encapsulation within the following macros, do not change
10781 ## the running order or otherwise move them around unless you know exactly
10782 ## what you are doing...
10783 if test -n "$compiler"; then
10784
10785 lt_prog_compiler_no_builtin_flag=
10786
10787 if test yes = "$GCC"; then
10788 case $cc_basename in
10789 nvcc*)
10790 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10791 *)
10792 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10793 esac
10794
10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10796 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10797 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10798 then :
10799 printf %s "(cached) " >&6
10800 else case e in #(
10801 e) lt_cv_prog_compiler_rtti_exceptions=no
10802 ac_outfile=conftest.$ac_objext
10803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10804 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10805 # Insert the option either (1) after the last *FLAGS variable, or
10806 # (2) before a word containing "conftest.", or (3) at the end.
10807 # Note that $ac_compile itself does not contain backslashes and begins
10808 # with a dollar sign (not a hyphen), so the echo should work correctly.
10809 # The option is referenced via a variable to avoid confusing sed.
10810 lt_compile=`echo "$ac_compile" | $SED \
10811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10813 -e 's:$: $lt_compiler_flag:'`
10814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10815 (eval "$lt_compile" 2>conftest.err)
10816 ac_status=$?
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 if (exit $ac_status) && test -s "$ac_outfile"; then
10820 # The compiler can only warn and ignore the option if not recognized
10821 # So say no if there are warnings other than the usual output.
10822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10825 lt_cv_prog_compiler_rtti_exceptions=yes
10826 fi
10827 fi
10828 $RM conftest*
10829 ;;
10830 esac
10831 fi
10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10833 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10834
10835 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10836 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10837 else
10838 :
10839 fi
10840
10841 fi
10842
10843
10844
10845
10846
10847
10848 lt_prog_compiler_wl=
10849 lt_prog_compiler_pic=
10850 lt_prog_compiler_static=
10851
10852
10853 if test yes = "$GCC"; then
10854 lt_prog_compiler_wl='-Wl,'
10855 lt_prog_compiler_static='-static'
10856
10857 case $host_os in
10858 aix*)
10859 # All AIX code is PIC.
10860 if test ia64 = "$host_cpu"; then
10861 # AIX 5 now supports IA64 processor
10862 lt_prog_compiler_static='-Bstatic'
10863 fi
10864 lt_prog_compiler_pic='-fPIC'
10865 ;;
10866
10867 amigaos*)
10868 case $host_cpu in
10869 powerpc)
10870 # see comment about AmigaOS4 .so support
10871 lt_prog_compiler_pic='-fPIC'
10872 ;;
10873 m68k)
10874 # FIXME: we need at least 68020 code to build shared libraries, but
10875 # adding the '-m68020' flag to GCC prevents building anything better,
10876 # like '-m68040'.
10877 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10878 ;;
10879 esac
10880 ;;
10881
10882 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10883 # PIC is the default for these OSes.
10884 ;;
10885
10886 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10887 # This hack is so that the source file can tell whether it is being
10888 # built for inclusion in a dll (and should export symbols for example).
10889 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10890 # (--disable-auto-import) libraries
10891 lt_prog_compiler_pic='-DDLL_EXPORT'
10892 case $host_os in
10893 os2*)
10894 lt_prog_compiler_static='$wl-static'
10895 ;;
10896 esac
10897 ;;
10898
10899 darwin* | rhapsody*)
10900 # PIC is the default on this platform
10901 # Common symbols not allowed in MH_DYLIB files
10902 lt_prog_compiler_pic='-fno-common'
10903 ;;
10904
10905 haiku*)
10906 # PIC is the default for Haiku.
10907 # The "-static" flag exists, but is broken.
10908 lt_prog_compiler_static=
10909 ;;
10910
10911 hpux*)
10912 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10913 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10914 # sets the default TLS model and affects inlining.
10915 case $host_cpu in
10916 hppa*64*)
10917 # +Z the default
10918 ;;
10919 *)
10920 lt_prog_compiler_pic='-fPIC'
10921 ;;
10922 esac
10923 ;;
10924
10925 interix[3-9]*)
10926 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10927 # Instead, we relocate shared libraries at runtime.
10928 ;;
10929
10930 msdosdjgpp*)
10931 # Just because we use GCC doesn't mean we suddenly get shared libraries
10932 # on systems that don't support them.
10933 lt_prog_compiler_can_build_shared=no
10934 enable_shared=no
10935 ;;
10936
10937 *nto* | *qnx*)
10938 # QNX uses GNU C++, but need to define -shared option too, otherwise
10939 # it will coredump.
10940 lt_prog_compiler_pic='-fPIC -shared'
10941 ;;
10942
10943 sysv4*MP*)
10944 if test -d /usr/nec; then
10945 lt_prog_compiler_pic=-Kconform_pic
10946 fi
10947 ;;
10948
10949 *)
10950 lt_prog_compiler_pic='-fPIC'
10951 ;;
10952 esac
10953
10954 case $cc_basename in
10955 nvcc*) # Cuda Compiler Driver 2.2
10956 lt_prog_compiler_wl='-Xlinker '
10957 if test -n "$lt_prog_compiler_pic"; then
10958 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10959 fi
10960 ;;
10961 esac
10962 else
10963 # PORTME Check for flag to pass linker flags through the system compiler.
10964 case $host_os in
10965 aix*)
10966 lt_prog_compiler_wl='-Wl,'
10967 if test ia64 = "$host_cpu"; then
10968 # AIX 5 now supports IA64 processor
10969 lt_prog_compiler_static='-Bstatic'
10970 else
10971 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10972 fi
10973 ;;
10974
10975 darwin* | rhapsody*)
10976 # PIC is the default on this platform
10977 # Common symbols not allowed in MH_DYLIB files
10978 lt_prog_compiler_pic='-fno-common'
10979 case $cc_basename in
10980 nagfor*)
10981 # NAG Fortran compiler
10982 lt_prog_compiler_wl='-Wl,-Wl,,'
10983 lt_prog_compiler_pic='-PIC'
10984 lt_prog_compiler_static='-Bstatic'
10985 ;;
10986 esac
10987 ;;
10988
10989 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10990 # This hack is so that the source file can tell whether it is being
10991 # built for inclusion in a dll (and should export symbols for example).
10992 lt_prog_compiler_pic='-DDLL_EXPORT'
10993 case $host_os in
10994 os2*)
10995 lt_prog_compiler_static='$wl-static'
10996 ;;
10997 esac
10998 ;;
10999
11000 hpux9* | hpux10* | hpux11*)
11001 lt_prog_compiler_wl='-Wl,'
11002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11003 # not for PA HP-UX.
11004 case $host_cpu in
11005 hppa*64*|ia64*)
11006 # +Z the default
11007 ;;
11008 *)
11009 lt_prog_compiler_pic='+Z'
11010 ;;
11011 esac
11012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11013 lt_prog_compiler_static='$wl-a ${wl}archive'
11014 ;;
11015
11016 irix5* | irix6* | nonstopux*)
11017 lt_prog_compiler_wl='-Wl,'
11018 # PIC (with -KPIC) is the default.
11019 lt_prog_compiler_static='-non_shared'
11020 ;;
11021
11022 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11023 case $cc_basename in
11024 # old Intel for x86_64, which still supported -KPIC.
11025 ecc*)
11026 lt_prog_compiler_wl='-Wl,'
11027 lt_prog_compiler_pic='-KPIC'
11028 lt_prog_compiler_static='-static'
11029 ;;
11030 *flang* | ftn | f18* | f95*)
11031 # Flang compiler.
11032 lt_prog_compiler_wl='-Wl,'
11033 lt_prog_compiler_pic='-fPIC'
11034 lt_prog_compiler_static='-static'
11035 ;;
11036 # icc used to be incompatible with GCC.
11037 # ICC 10 doesn't accept -KPIC any more.
11038 icc* | ifort*)
11039 lt_prog_compiler_wl='-Wl,'
11040 lt_prog_compiler_pic='-fPIC'
11041 lt_prog_compiler_static='-static'
11042 ;;
11043 # Lahey Fortran 8.1.
11044 lf95*)
11045 lt_prog_compiler_wl='-Wl,'
11046 lt_prog_compiler_pic='--shared'
11047 lt_prog_compiler_static='--static'
11048 ;;
11049 nagfor*)
11050 # NAG Fortran compiler
11051 lt_prog_compiler_wl='-Wl,-Wl,,'
11052 lt_prog_compiler_pic='-PIC'
11053 lt_prog_compiler_static='-Bstatic'
11054 ;;
11055 tcc*)
11056 # Fabrice Bellard et al's Tiny C Compiler
11057 lt_prog_compiler_wl='-Wl,'
11058 lt_prog_compiler_pic='-fPIC'
11059 lt_prog_compiler_static='-static'
11060 ;;
11061 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11062 # Portland Group compilers (*not* the Pentium gcc compiler,
11063 # which looks to be a dead project)
11064 lt_prog_compiler_wl='-Wl,'
11065 lt_prog_compiler_pic='-fpic'
11066 lt_prog_compiler_static='-Bstatic'
11067 ;;
11068 ccc*)
11069 lt_prog_compiler_wl='-Wl,'
11070 # All Alpha code is PIC.
11071 lt_prog_compiler_static='-non_shared'
11072 ;;
11073 xl* | bgxl* | bgf* | mpixl*)
11074 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11075 lt_prog_compiler_wl='-Wl,'
11076 lt_prog_compiler_pic='-qpic'
11077 lt_prog_compiler_static='-qstaticlink'
11078 ;;
11079 *)
11080 case `$CC -V 2>&1 | $SED 5q` in
11081 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11082 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11083 lt_prog_compiler_pic='-KPIC'
11084 lt_prog_compiler_static='-Bstatic'
11085 lt_prog_compiler_wl=''
11086 ;;
11087 *Sun\ F* | *Sun*Fortran*)
11088 lt_prog_compiler_pic='-KPIC'
11089 lt_prog_compiler_static='-Bstatic'
11090 lt_prog_compiler_wl='-Qoption ld '
11091 ;;
11092 *Sun\ C*)
11093 # Sun C 5.9
11094 lt_prog_compiler_pic='-KPIC'
11095 lt_prog_compiler_static='-Bstatic'
11096 lt_prog_compiler_wl='-Wl,'
11097 ;;
11098 *Intel*\ [CF]*Compiler*)
11099 lt_prog_compiler_wl='-Wl,'
11100 lt_prog_compiler_pic='-fPIC'
11101 lt_prog_compiler_static='-static'
11102 ;;
11103 *Portland\ Group*)
11104 lt_prog_compiler_wl='-Wl,'
11105 lt_prog_compiler_pic='-fpic'
11106 lt_prog_compiler_static='-Bstatic'
11107 ;;
11108 esac
11109 ;;
11110 esac
11111 ;;
11112
11113 newsos6)
11114 lt_prog_compiler_pic='-KPIC'
11115 lt_prog_compiler_static='-Bstatic'
11116 ;;
11117
11118 *-mlibc)
11119 lt_prog_compiler_wl='-Wl,'
11120 lt_prog_compiler_pic='-fPIC'
11121 lt_prog_compiler_static='-static'
11122 ;;
11123
11124 *nto* | *qnx*)
11125 # QNX uses GNU C++, but need to define -shared option too, otherwise
11126 # it will coredump.
11127 lt_prog_compiler_pic='-fPIC -shared'
11128 ;;
11129
11130 osf3* | osf4* | osf5*)
11131 lt_prog_compiler_wl='-Wl,'
11132 # All OSF/1 code is PIC.
11133 lt_prog_compiler_static='-non_shared'
11134 ;;
11135
11136 rdos*)
11137 lt_prog_compiler_static='-non_shared'
11138 ;;
11139
11140 serenity*)
11141 ;;
11142
11143 solaris*)
11144 lt_prog_compiler_pic='-KPIC'
11145 lt_prog_compiler_static='-Bstatic'
11146 case $cc_basename in
11147 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11148 lt_prog_compiler_wl='-Qoption ld ';;
11149 *)
11150 lt_prog_compiler_wl='-Wl,';;
11151 esac
11152 ;;
11153
11154 sunos4*)
11155 lt_prog_compiler_wl='-Qoption ld '
11156 lt_prog_compiler_pic='-PIC'
11157 lt_prog_compiler_static='-Bstatic'
11158 ;;
11159
11160 sysv4 | sysv4.2uw2* | sysv4.3*)
11161 lt_prog_compiler_wl='-Wl,'
11162 lt_prog_compiler_pic='-KPIC'
11163 lt_prog_compiler_static='-Bstatic'
11164 ;;
11165
11166 sysv4*MP*)
11167 if test -d /usr/nec; then
11168 lt_prog_compiler_pic='-Kconform_pic'
11169 lt_prog_compiler_static='-Bstatic'
11170 fi
11171 ;;
11172
11173 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11174 lt_prog_compiler_wl='-Wl,'
11175 lt_prog_compiler_pic='-KPIC'
11176 lt_prog_compiler_static='-Bstatic'
11177 ;;
11178
11179 unicos*)
11180 lt_prog_compiler_wl='-Wl,'
11181 lt_prog_compiler_can_build_shared=no
11182 ;;
11183
11184 uts4*)
11185 lt_prog_compiler_pic='-pic'
11186 lt_prog_compiler_static='-Bstatic'
11187 ;;
11188
11189 *)
11190 lt_prog_compiler_can_build_shared=no
11191 ;;
11192 esac
11193 fi
11194
11195 case $host_os in
11196 # For platforms that do not support PIC, -DPIC is meaningless:
11197 *djgpp*)
11198 lt_prog_compiler_pic=
11199 ;;
11200 *)
11201 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11202 ;;
11203 esac
11204
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11206 printf %s "checking for $compiler option to produce PIC... " >&6; }
11207 if test ${lt_cv_prog_compiler_pic+y}
11208 then :
11209 printf %s "(cached) " >&6
11210 else case e in #(
11211 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11212 esac
11213 fi
11214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11215 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11216 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11217
11218 #
11219 # Check to make sure the PIC flag actually works.
11220 #
11221 if test -n "$lt_prog_compiler_pic"; then
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11223 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11224 if test ${lt_cv_prog_compiler_pic_works+y}
11225 then :
11226 printf %s "(cached) " >&6
11227 else case e in #(
11228 e) lt_cv_prog_compiler_pic_works=no
11229 ac_outfile=conftest.$ac_objext
11230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11231 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11232 # Insert the option either (1) after the last *FLAGS variable, or
11233 # (2) before a word containing "conftest.", or (3) at the end.
11234 # Note that $ac_compile itself does not contain backslashes and begins
11235 # with a dollar sign (not a hyphen), so the echo should work correctly.
11236 # The option is referenced via a variable to avoid confusing sed.
11237 lt_compile=`echo "$ac_compile" | $SED \
11238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11240 -e 's:$: $lt_compiler_flag:'`
11241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11242 (eval "$lt_compile" 2>conftest.err)
11243 ac_status=$?
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 if (exit $ac_status) && test -s "$ac_outfile"; then
11247 # The compiler can only warn and ignore the option if not recognized
11248 # So say no if there are warnings other than the usual output.
11249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11252 lt_cv_prog_compiler_pic_works=yes
11253 fi
11254 fi
11255 $RM conftest*
11256 ;;
11257 esac
11258 fi
11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11260 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11261
11262 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11263 case $lt_prog_compiler_pic in
11264 "" | " "*) ;;
11265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11266 esac
11267 else
11268 lt_prog_compiler_pic=
11269 lt_prog_compiler_can_build_shared=no
11270 fi
11271
11272 fi
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284 #
11285 # Check to make sure the static flag actually works.
11286 #
11287 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11289 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11290 if test ${lt_cv_prog_compiler_static_works+y}
11291 then :
11292 printf %s "(cached) " >&6
11293 else case e in #(
11294 e) lt_cv_prog_compiler_static_works=no
11295 save_LDFLAGS=$LDFLAGS
11296 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11297 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11298 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11299 # The linker can only warn and ignore the option if not recognized
11300 # So say no if there are warnings
11301 if test -s conftest.err; then
11302 # Append any errors to the config.log.
11303 cat conftest.err 1>&5
11304 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11306 if diff conftest.exp conftest.er2 >/dev/null; then
11307 lt_cv_prog_compiler_static_works=yes
11308 fi
11309 else
11310 lt_cv_prog_compiler_static_works=yes
11311 fi
11312 fi
11313 $RM -r conftest*
11314 LDFLAGS=$save_LDFLAGS
11315 ;;
11316 esac
11317 fi
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11319 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11320
11321 if test yes = "$lt_cv_prog_compiler_static_works"; then
11322 :
11323 else
11324 lt_prog_compiler_static=
11325 fi
11326
11327
11328
11329
11330
11331
11332
11333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11334 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11335 if test ${lt_cv_prog_compiler_c_o+y}
11336 then :
11337 printf %s "(cached) " >&6
11338 else case e in #(
11339 e) lt_cv_prog_compiler_c_o=no
11340 $RM -r conftest 2>/dev/null
11341 mkdir conftest
11342 cd conftest
11343 mkdir out
11344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11345
11346 lt_compiler_flag="-o out/conftest2.$ac_objext"
11347 # Insert the option either (1) after the last *FLAGS variable, or
11348 # (2) before a word containing "conftest.", or (3) at the end.
11349 # Note that $ac_compile itself does not contain backslashes and begins
11350 # with a dollar sign (not a hyphen), so the echo should work correctly.
11351 lt_compile=`echo "$ac_compile" | $SED \
11352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11354 -e 's:$: $lt_compiler_flag:'`
11355 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11356 (eval "$lt_compile" 2>out/conftest.err)
11357 ac_status=$?
11358 cat out/conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11361 then
11362 # The compiler can only warn and ignore the option if not recognized
11363 # So say no if there are warnings
11364 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11365 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11366 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11367 lt_cv_prog_compiler_c_o=yes
11368 fi
11369 fi
11370 chmod u+w . 2>&5
11371 $RM conftest*
11372 # SGI C++ compiler will create directory out/ii_files/ for
11373 # template instantiation
11374 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11375 $RM out/* && rmdir out
11376 cd ..
11377 $RM -r conftest
11378 $RM conftest*
11379 ;;
11380 esac
11381 fi
11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11383 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11384
11385
11386
11387
11388
11389
11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11391 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11392 if test ${lt_cv_prog_compiler_c_o+y}
11393 then :
11394 printf %s "(cached) " >&6
11395 else case e in #(
11396 e) lt_cv_prog_compiler_c_o=no
11397 $RM -r conftest 2>/dev/null
11398 mkdir conftest
11399 cd conftest
11400 mkdir out
11401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11402
11403 lt_compiler_flag="-o out/conftest2.$ac_objext"
11404 # Insert the option either (1) after the last *FLAGS variable, or
11405 # (2) before a word containing "conftest.", or (3) at the end.
11406 # Note that $ac_compile itself does not contain backslashes and begins
11407 # with a dollar sign (not a hyphen), so the echo should work correctly.
11408 lt_compile=`echo "$ac_compile" | $SED \
11409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11411 -e 's:$: $lt_compiler_flag:'`
11412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11413 (eval "$lt_compile" 2>out/conftest.err)
11414 ac_status=$?
11415 cat out/conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11418 then
11419 # The compiler can only warn and ignore the option if not recognized
11420 # So say no if there are warnings
11421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11422 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11423 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11424 lt_cv_prog_compiler_c_o=yes
11425 fi
11426 fi
11427 chmod u+w . 2>&5
11428 $RM conftest*
11429 # SGI C++ compiler will create directory out/ii_files/ for
11430 # template instantiation
11431 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11432 $RM out/* && rmdir out
11433 cd ..
11434 $RM -r conftest
11435 $RM conftest*
11436 ;;
11437 esac
11438 fi
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11440 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11441
11442
11443
11444
11445 hard_links=nottested
11446 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11447 # do not overwrite the value of need_locks provided by the user
11448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11449 printf %s "checking if we can lock with hard links... " >&6; }
11450 hard_links=yes
11451 $RM conftest*
11452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11453 touch conftest.a
11454 ln conftest.a conftest.b 2>&5 || hard_links=no
11455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11457 printf "%s\n" "$hard_links" >&6; }
11458 if test no = "$hard_links"; then
11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11460 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11461 need_locks=warn
11462 fi
11463 else
11464 need_locks=no
11465 fi
11466
11467
11468
11469
11470
11471
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11473 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11474
11475 runpath_var=
11476 allow_undefined_flag=
11477 always_export_symbols=no
11478 archive_cmds=
11479 archive_expsym_cmds=
11480 compiler_needs_object=no
11481 enable_shared_with_static_runtimes=no
11482 export_dynamic_flag_spec=
11483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11484 hardcode_automatic=no
11485 hardcode_direct=no
11486 hardcode_direct_absolute=no
11487 hardcode_libdir_flag_spec=
11488 hardcode_libdir_separator=
11489 hardcode_minus_L=no
11490 hardcode_shlibpath_var=unsupported
11491 inherit_rpath=no
11492 link_all_deplibs=unknown
11493 module_cmds=
11494 module_expsym_cmds=
11495 old_archive_from_new_cmds=
11496 old_archive_from_expsyms_cmds=
11497 thread_safe_flag_spec=
11498 whole_archive_flag_spec=
11499 # include_expsyms should be a list of space-separated symbols to be *always*
11500 # included in the symbol list
11501 include_expsyms=
11502 # exclude_expsyms can be an extended regexp of symbols to exclude
11503 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11504 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11505 # as well as any symbol that contains 'd'.
11506 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11507 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11508 # platforms (ab)use it in PIC code, but their linkers get confused if
11509 # the symbol is explicitly referenced. Since portable code cannot
11510 # rely on this symbol name, it's probably fine to never include it in
11511 # preloaded symbol tables.
11512 # Exclude shared library initialization/finalization symbols.
11513 extract_expsyms_cmds=
11514
11515 case $host_os in
11516 cygwin* | mingw* | windows* | pw32* | cegcc*)
11517 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11518 # When not using gcc, we currently assume that we are using
11519 # Microsoft Visual C++ or Intel C++ Compiler.
11520 if test yes != "$GCC"; then
11521 with_gnu_ld=no
11522 fi
11523 ;;
11524 interix*)
11525 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11526 with_gnu_ld=yes
11527 ;;
11528 esac
11529
11530 ld_shlibs=yes
11531
11532 # On some targets, GNU ld is compatible enough with the native linker
11533 # that we're better off using the native interface for both.
11534 lt_use_gnu_ld_interface=no
11535 if test yes = "$with_gnu_ld"; then
11536 case $host_os in
11537 aix*)
11538 # The AIX port of GNU ld has always aspired to compatibility
11539 # with the native linker. However, as the warning in the GNU ld
11540 # block says, versions before 2.19.5* couldn't really create working
11541 # shared libraries, regardless of the interface used.
11542 case `$LD -v 2>&1` in
11543 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11544 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11545 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11546 *)
11547 lt_use_gnu_ld_interface=yes
11548 ;;
11549 esac
11550 ;;
11551 *)
11552 lt_use_gnu_ld_interface=yes
11553 ;;
11554 esac
11555 fi
11556
11557 if test yes = "$lt_use_gnu_ld_interface"; then
11558 # If archive_cmds runs LD, not CC, wlarc should be empty
11559 wlarc='$wl'
11560
11561 # Set some defaults for GNU ld with shared library support. These
11562 # are reset later if shared libraries are not supported. Putting them
11563 # here allows them to be overridden if necessary.
11564 runpath_var=LD_RUN_PATH
11565 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11566 export_dynamic_flag_spec='$wl--export-dynamic'
11567 # ancient GNU ld didn't support --whole-archive et. al.
11568 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11569 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11570 else
11571 whole_archive_flag_spec=
11572 fi
11573 supports_anon_versioning=no
11574 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11575 *GNU\ gold*) supports_anon_versioning=yes ;;
11576 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11577 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11578 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11579 *\ 2.11.*) ;; # other 2.11 versions
11580 *) supports_anon_versioning=yes ;;
11581 esac
11582
11583 # See if GNU ld supports shared libraries.
11584 case $host_os in
11585 aix[3-9]*)
11586 # On AIX/PPC, the GNU linker is very broken
11587 if test ia64 != "$host_cpu"; then
11588 ld_shlibs=no
11589 cat <<_LT_EOF 1>&2
11590
11591 *** Warning: the GNU linker, at least up to release 2.19, is reported
11592 *** to be unable to reliably create shared libraries on AIX.
11593 *** Therefore, libtool is disabling shared libraries support. If you
11594 *** really care for shared libraries, you may want to install binutils
11595 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11596 *** You will then need to restart the configuration process.
11597
11598 _LT_EOF
11599 fi
11600 ;;
11601
11602 amigaos*)
11603 case $host_cpu in
11604 powerpc)
11605 # see comment about AmigaOS4 .so support
11606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11607 archive_expsym_cmds=''
11608 ;;
11609 m68k)
11610 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)'
11611 hardcode_libdir_flag_spec='-L$libdir'
11612 hardcode_minus_L=yes
11613 ;;
11614 esac
11615 ;;
11616
11617 beos*)
11618 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11619 allow_undefined_flag=unsupported
11620 # Joseph Beckenbach <[email protected]> says some releases of gcc
11621 # support --undefined. This deserves some investigation. FIXME
11622 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11623 else
11624 ld_shlibs=no
11625 fi
11626 ;;
11627
11628 cygwin* | mingw* | windows* | pw32* | cegcc*)
11629 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11630 # as there is no search path for DLLs.
11631 hardcode_libdir_flag_spec='-L$libdir'
11632 export_dynamic_flag_spec='$wl--export-all-symbols'
11633 allow_undefined_flag=unsupported
11634 always_export_symbols=no
11635 enable_shared_with_static_runtimes=yes
11636 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'
11637 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11638 file_list_spec='@'
11639
11640 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11642 # If the export-symbols file already is a .def file, use it as
11643 # is; otherwise, prepend EXPORTS...
11644 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11645 cp $export_symbols $output_objdir/$soname.def;
11646 else
11647 echo EXPORTS > $output_objdir/$soname.def;
11648 cat $export_symbols >> $output_objdir/$soname.def;
11649 fi~
11650 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11651 else
11652 ld_shlibs=no
11653 fi
11654 ;;
11655
11656 haiku*)
11657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11658 link_all_deplibs=no
11659 ;;
11660
11661 os2*)
11662 hardcode_libdir_flag_spec='-L$libdir'
11663 hardcode_minus_L=yes
11664 allow_undefined_flag=unsupported
11665 shrext_cmds=.dll
11666 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11667 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11668 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11669 $ECHO EXPORTS >> $output_objdir/$libname.def~
11670 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11671 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11672 emximp -o $lib $output_objdir/$libname.def'
11673 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11674 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11675 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11676 $ECHO EXPORTS >> $output_objdir/$libname.def~
11677 prefix_cmds="$SED"~
11678 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11679 prefix_cmds="$prefix_cmds -e 1d";
11680 fi~
11681 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11682 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11683 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11684 emximp -o $lib $output_objdir/$libname.def'
11685 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11686 enable_shared_with_static_runtimes=yes
11687 file_list_spec='@'
11688 ;;
11689
11690 interix[3-9]*)
11691 hardcode_direct=no
11692 hardcode_shlibpath_var=no
11693 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11694 export_dynamic_flag_spec='$wl-E'
11695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11696 # Instead, shared libraries are loaded at an image base (0x10000000 by
11697 # default) and relocated if they conflict, which is a slow very memory
11698 # consuming and fragmenting process. To avoid this, we pick a random,
11699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11700 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11702 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'
11703 ;;
11704
11705 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11706 tmp_diet=no
11707 if test linux-dietlibc = "$host_os"; then
11708 case $cc_basename in
11709 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11710 esac
11711 fi
11712 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11713 && test no = "$tmp_diet"
11714 then
11715 tmp_addflag=' $pic_flag'
11716 tmp_sharedflag='-shared'
11717 case $cc_basename,$host_cpu in
11718 pgcc*) # Portland Group C compiler
11719 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'
11720 tmp_addflag=' $pic_flag'
11721 ;;
11722 pgf77* | pgf90* | pgf95* | pgfortran*)
11723 # Portland Group f77 and f90 compilers
11724 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'
11725 tmp_addflag=' $pic_flag -Mnomain' ;;
11726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11727 tmp_addflag=' -i_dynamic' ;;
11728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11729 tmp_addflag=' -i_dynamic -nofor_main' ;;
11730 ifc* | ifort*) # Intel Fortran compiler
11731 tmp_addflag=' -nofor_main' ;;
11732 lf95*) # Lahey Fortran 8.1
11733 whole_archive_flag_spec=
11734 tmp_sharedflag='--shared' ;;
11735 nagfor*) # NAGFOR 5.3
11736 tmp_sharedflag='-Wl,-shared' ;;
11737 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11738 tmp_sharedflag='-qmkshrobj'
11739 tmp_addflag= ;;
11740 nvcc*) # Cuda Compiler Driver 2.2
11741 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'
11742 compiler_needs_object=yes
11743 ;;
11744 esac
11745 case `$CC -V 2>&1 | $SED 5q` in
11746 *Sun\ C*) # Sun C 5.9
11747 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'
11748 compiler_needs_object=yes
11749 tmp_sharedflag='-G' ;;
11750 *Sun\ F*) # Sun Fortran 8.3
11751 tmp_sharedflag='-G' ;;
11752 esac
11753 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11754
11755 if test yes = "$supports_anon_versioning"; then
11756 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11757 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11758 echo "local: *; };" >> $output_objdir/$libname.ver~
11759 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11760 fi
11761
11762 case $cc_basename in
11763 tcc*)
11764 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11765 export_dynamic_flag_spec='-rdynamic'
11766 ;;
11767 xlf* | bgf* | bgxlf* | mpixlf*)
11768 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11769 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11770 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11771 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11772 if test yes = "$supports_anon_versioning"; then
11773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11774 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11775 echo "local: *; };" >> $output_objdir/$libname.ver~
11776 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11777 fi
11778 ;;
11779 esac
11780 else
11781 ld_shlibs=no
11782 fi
11783 ;;
11784
11785 *-mlibc)
11786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11787 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11788 ;;
11789
11790 netbsd* | netbsdelf*-gnu)
11791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11792 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11793 wlarc=
11794 else
11795 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11796 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11797 fi
11798 ;;
11799
11800 solaris*)
11801 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11802 ld_shlibs=no
11803 cat <<_LT_EOF 1>&2
11804
11805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11806 *** create shared libraries on Solaris systems. Therefore, libtool
11807 *** is disabling shared libraries support. We urge you to upgrade GNU
11808 *** binutils to release 2.9.1 or newer. Another option is to modify
11809 *** your PATH or compiler configuration so that the native linker is
11810 *** used, and then restart.
11811
11812 _LT_EOF
11813 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11814 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11815 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11816 else
11817 ld_shlibs=no
11818 fi
11819 ;;
11820
11821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11822 case `$LD -v 2>&1` in
11823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11824 ld_shlibs=no
11825 cat <<_LT_EOF 1>&2
11826
11827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11828 *** reliably create shared libraries on SCO systems. Therefore, libtool
11829 *** is disabling shared libraries support. We urge you to upgrade GNU
11830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11831 *** your PATH or compiler configuration so that the native linker is
11832 *** used, and then restart.
11833
11834 _LT_EOF
11835 ;;
11836 *)
11837 # For security reasons, it is highly recommended that you always
11838 # use absolute paths for naming shared libraries, and exclude the
11839 # DT_RUNPATH tag from executables and libraries. But doing so
11840 # requires that you compile everything twice, which is a pain.
11841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11842 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11844 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11845 else
11846 ld_shlibs=no
11847 fi
11848 ;;
11849 esac
11850 ;;
11851
11852 sunos4*)
11853 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11854 wlarc=
11855 hardcode_direct=yes
11856 hardcode_shlibpath_var=no
11857 ;;
11858
11859 *)
11860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11861 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11862 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11863 else
11864 ld_shlibs=no
11865 fi
11866 ;;
11867 esac
11868
11869 if test no = "$ld_shlibs"; then
11870 runpath_var=
11871 hardcode_libdir_flag_spec=
11872 export_dynamic_flag_spec=
11873 whole_archive_flag_spec=
11874 fi
11875 else
11876 # PORTME fill in a description of your system's linker (not GNU ld)
11877 case $host_os in
11878 aix3*)
11879 allow_undefined_flag=unsupported
11880 always_export_symbols=yes
11881 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'
11882 # Note: this linker hardcodes the directories in LIBPATH if there
11883 # are no directories specified by -L.
11884 hardcode_minus_L=yes
11885 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11886 # Neither direct hardcoding nor static linking is supported with a
11887 # broken collect2.
11888 hardcode_direct=unsupported
11889 fi
11890 ;;
11891
11892 aix[4-9]*)
11893 if test ia64 = "$host_cpu"; then
11894 # On IA64, the linker does run time linking by default, so we don't
11895 # have to do anything special.
11896 aix_use_runtimelinking=no
11897 exp_sym_flag='-Bexport'
11898 no_entry_flag=
11899 else
11900 # If we're using GNU nm, then we don't want the "-C" option.
11901 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11902 # Without the "-l" option, or with the "-B" option, AIX nm treats
11903 # weak defined symbols like other global defined symbols, whereas
11904 # GNU nm marks them as "W".
11905 # While the 'weak' keyword is ignored in the Export File, we need
11906 # it in the Import File for the 'aix-soname' feature, so we have
11907 # to replace the "-B" option with "-P" for AIX nm.
11908 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11909 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'
11910 else
11911 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'
11912 fi
11913 aix_use_runtimelinking=no
11914
11915 # Test if we are trying to use run time linking or normal
11916 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11917 # have runtime linking enabled, and use it for executables.
11918 # For shared libraries, we enable/disable runtime linking
11919 # depending on the kind of the shared library created -
11920 # when "with_aix_soname,aix_use_runtimelinking" is:
11921 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11922 # "aix,yes" lib.so shared, rtl:yes, for executables
11923 # lib.a static archive
11924 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11925 # lib.a(lib.so.V) shared, rtl:no, for executables
11926 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11927 # lib.a(lib.so.V) shared, rtl:no
11928 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11929 # lib.a static archive
11930 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11931 for ld_flag in $LDFLAGS; do
11932 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11933 aix_use_runtimelinking=yes
11934 break
11935 fi
11936 done
11937 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11938 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11939 # so we don't have lib.a shared libs to link our executables.
11940 # We have to force runtime linking in this case.
11941 aix_use_runtimelinking=yes
11942 LDFLAGS="$LDFLAGS -Wl,-brtl"
11943 fi
11944 ;;
11945 esac
11946
11947 exp_sym_flag='-bexport'
11948 no_entry_flag='-bnoentry'
11949 fi
11950
11951 # When large executables or shared objects are built, AIX ld can
11952 # have problems creating the table of contents. If linking a library
11953 # or program results in "error TOC overflow" add -mminimal-toc to
11954 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11955 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11956
11957 archive_cmds=''
11958 hardcode_direct=yes
11959 hardcode_direct_absolute=yes
11960 hardcode_libdir_separator=':'
11961 link_all_deplibs=yes
11962 file_list_spec='$wl-f,'
11963 case $with_aix_soname,$aix_use_runtimelinking in
11964 aix,*) ;; # traditional, no import file
11965 svr4,* | *,yes) # use import file
11966 # The Import File defines what to hardcode.
11967 hardcode_direct=no
11968 hardcode_direct_absolute=no
11969 ;;
11970 esac
11971
11972 if test yes = "$GCC"; then
11973 case $host_os in aix4.[012]|aix4.[012].*)
11974 # We only want to do this on AIX 4.2 and lower, the check
11975 # below for broken collect2 doesn't work under 4.3+
11976 collect2name=`$CC -print-prog-name=collect2`
11977 if test -f "$collect2name" &&
11978 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11979 then
11980 # We have reworked collect2
11981 :
11982 else
11983 # We have old collect2
11984 hardcode_direct=unsupported
11985 # It fails to find uninstalled libraries when the uninstalled
11986 # path is not listed in the libpath. Setting hardcode_minus_L
11987 # to unsupported forces relinking
11988 hardcode_minus_L=yes
11989 hardcode_libdir_flag_spec='-L$libdir'
11990 hardcode_libdir_separator=
11991 fi
11992 ;;
11993 esac
11994 shared_flag='-shared'
11995 if test yes = "$aix_use_runtimelinking"; then
11996 shared_flag="$shared_flag "'$wl-G'
11997 fi
11998 # Need to ensure runtime linking is disabled for the traditional
11999 # shared library, or the linker may eventually find shared libraries
12000 # /with/ Import File - we do not want to mix them.
12001 shared_flag_aix='-shared'
12002 shared_flag_svr4='-shared $wl-G'
12003 else
12004 # not using gcc
12005 if test ia64 = "$host_cpu"; then
12006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12007 # chokes on -Wl,-G. The following line is correct:
12008 shared_flag='-G'
12009 else
12010 if test yes = "$aix_use_runtimelinking"; then
12011 shared_flag='$wl-G'
12012 else
12013 shared_flag='$wl-bM:SRE'
12014 fi
12015 shared_flag_aix='$wl-bM:SRE'
12016 shared_flag_svr4='$wl-G'
12017 fi
12018 fi
12019
12020 export_dynamic_flag_spec='$wl-bexpall'
12021 # It seems that -bexpall does not export symbols beginning with
12022 # underscore (_), so it is better to generate a list of symbols to export.
12023 always_export_symbols=yes
12024 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12025 # Warning - without using the other runtime loading flags (-brtl),
12026 # -berok will link without error, but may produce a broken library.
12027 allow_undefined_flag='-berok'
12028 # Determine the default libpath from the value encoded in an
12029 # empty executable.
12030 if test set = "${lt_cv_aix_libpath+set}"; then
12031 aix_libpath=$lt_cv_aix_libpath
12032 else
12033 if test ${lt_cv_aix_libpath_+y}
12034 then :
12035 printf %s "(cached) " >&6
12036 else case e in #(
12037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12039
12040 int
12041 main (void)
12042 {
12043
12044 ;
12045 return 0;
12046 }
12047 _ACEOF
12048 if ac_fn_c_try_link "$LINENO"
12049 then :
12050
12051 lt_aix_libpath_sed='
12052 /Import File Strings/,/^$/ {
12053 /^0/ {
12054 s/^0 *\([^ ]*\) *$/\1/
12055 p
12056 }
12057 }'
12058 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12059 # Check for a 64-bit object if we didn't find anything.
12060 if test -z "$lt_cv_aix_libpath_"; then
12061 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12062 fi
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12065 conftest$ac_exeext conftest.$ac_ext
12066 if test -z "$lt_cv_aix_libpath_"; then
12067 lt_cv_aix_libpath_=/usr/lib:/lib
12068 fi
12069 ;;
12070 esac
12071 fi
12072
12073 aix_libpath=$lt_cv_aix_libpath_
12074 fi
12075
12076 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12077 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
12078 else
12079 if test ia64 = "$host_cpu"; then
12080 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12081 allow_undefined_flag="-z nodefs"
12082 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"
12083 else
12084 # Determine the default libpath from the value encoded in an
12085 # empty executable.
12086 if test set = "${lt_cv_aix_libpath+set}"; then
12087 aix_libpath=$lt_cv_aix_libpath
12088 else
12089 if test ${lt_cv_aix_libpath_+y}
12090 then :
12091 printf %s "(cached) " >&6
12092 else case e in #(
12093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095
12096 int
12097 main (void)
12098 {
12099
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 if ac_fn_c_try_link "$LINENO"
12105 then :
12106
12107 lt_aix_libpath_sed='
12108 /Import File Strings/,/^$/ {
12109 /^0/ {
12110 s/^0 *\([^ ]*\) *$/\1/
12111 p
12112 }
12113 }'
12114 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12115 # Check for a 64-bit object if we didn't find anything.
12116 if test -z "$lt_cv_aix_libpath_"; then
12117 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12118 fi
12119 fi
12120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12121 conftest$ac_exeext conftest.$ac_ext
12122 if test -z "$lt_cv_aix_libpath_"; then
12123 lt_cv_aix_libpath_=/usr/lib:/lib
12124 fi
12125 ;;
12126 esac
12127 fi
12128
12129 aix_libpath=$lt_cv_aix_libpath_
12130 fi
12131
12132 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12133 # Warning - without using the other run time loading flags,
12134 # -berok will link without error, but may produce a broken library.
12135 no_undefined_flag=' $wl-bernotok'
12136 allow_undefined_flag=' $wl-berok'
12137 if test yes = "$with_gnu_ld"; then
12138 # We only use this code for GNU lds that support --whole-archive.
12139 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12140 else
12141 # Exported symbols can be pulled into shared objects from archives
12142 whole_archive_flag_spec='$convenience'
12143 fi
12144 archive_cmds_need_lc=yes
12145 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12146 # -brtl affects multiple linker settings, -berok does not and is overridden later
12147 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12148 if test svr4 != "$with_aix_soname"; then
12149 # This is similar to how AIX traditionally builds its shared libraries.
12150 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'
12151 fi
12152 if test aix != "$with_aix_soname"; then
12153 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'
12154 else
12155 # used by -dlpreopen to get the symbols
12156 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12157 fi
12158 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12159 fi
12160 fi
12161 ;;
12162
12163 amigaos*)
12164 case $host_cpu in
12165 powerpc)
12166 # see comment about AmigaOS4 .so support
12167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12168 archive_expsym_cmds=''
12169 ;;
12170 m68k)
12171 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)'
12172 hardcode_libdir_flag_spec='-L$libdir'
12173 hardcode_minus_L=yes
12174 ;;
12175 esac
12176 ;;
12177
12178 bsdi[45]*)
12179 export_dynamic_flag_spec=-rdynamic
12180 ;;
12181
12182 cygwin* | mingw* | windows* | pw32* | cegcc*)
12183 # When not using gcc, we currently assume that we are using
12184 # Microsoft Visual C++ or Intel C++ Compiler.
12185 # hardcode_libdir_flag_spec is actually meaningless, as there is
12186 # no search path for DLLs.
12187 case $cc_basename in
12188 cl* | icl*)
12189 # Native MSVC or ICC
12190 hardcode_libdir_flag_spec=' '
12191 allow_undefined_flag=unsupported
12192 always_export_symbols=yes
12193 file_list_spec='@'
12194 # Tell ltmain to make .lib files, not .a files.
12195 libext=lib
12196 # Tell ltmain to make .dll files, not .so files.
12197 shrext_cmds=.dll
12198 # FIXME: Setting linknames here is a bad hack.
12199 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12200 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12201 cp "$export_symbols" "$output_objdir/$soname.def";
12202 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12203 else
12204 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12205 fi~
12206 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12207 linknames='
12208 # The linker will not automatically build a static lib if we build a DLL.
12209 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12210 enable_shared_with_static_runtimes=yes
12211 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12213 # Don't use ranlib
12214 old_postinstall_cmds='chmod 644 $oldlib'
12215 postlink_cmds='lt_outputfile="@OUTPUT@"~
12216 lt_tool_outputfile="@TOOL_OUTPUT@"~
12217 case $lt_outputfile in
12218 *.exe|*.EXE) ;;
12219 *)
12220 lt_outputfile=$lt_outputfile.exe
12221 lt_tool_outputfile=$lt_tool_outputfile.exe
12222 ;;
12223 esac~
12224 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12225 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12226 $RM "$lt_outputfile.manifest";
12227 fi'
12228 ;;
12229 *)
12230 # Assume MSVC and ICC wrapper
12231 hardcode_libdir_flag_spec=' '
12232 allow_undefined_flag=unsupported
12233 # Tell ltmain to make .lib files, not .a files.
12234 libext=lib
12235 # Tell ltmain to make .dll files, not .so files.
12236 shrext_cmds=.dll
12237 # FIXME: Setting linknames here is a bad hack.
12238 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12239 # The linker will automatically build a .lib file if we build a DLL.
12240 old_archive_from_new_cmds='true'
12241 # FIXME: Should let the user specify the lib program.
12242 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12243 enable_shared_with_static_runtimes=yes
12244 ;;
12245 esac
12246 ;;
12247
12248 darwin* | rhapsody*)
12249
12250
12251 archive_cmds_need_lc=no
12252 hardcode_direct=no
12253 hardcode_automatic=yes
12254 hardcode_shlibpath_var=unsupported
12255 if test yes = "$lt_cv_ld_force_load"; then
12256 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\"`'
12257
12258 else
12259 whole_archive_flag_spec=''
12260 fi
12261 link_all_deplibs=yes
12262 allow_undefined_flag=$_lt_dar_allow_undefined
12263 case $cc_basename in
12264 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12265 *) _lt_dar_can_shared=$GCC ;;
12266 esac
12267 if test yes = "$_lt_dar_can_shared"; then
12268 output_verbose_link_cmd=func_echo_all
12269 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12270 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12271 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"
12272 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"
12273
12274 else
12275 ld_shlibs=no
12276 fi
12277
12278 ;;
12279
12280 dgux*)
12281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12282 hardcode_libdir_flag_spec='-L$libdir'
12283 hardcode_shlibpath_var=no
12284 ;;
12285
12286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12287 # support. Future versions do this automatically, but an explicit c++rt0.o
12288 # does not break anything, and helps significantly (at the cost of a little
12289 # extra space).
12290 freebsd2.2*)
12291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12292 hardcode_libdir_flag_spec='-R$libdir'
12293 hardcode_direct=yes
12294 hardcode_shlibpath_var=no
12295 ;;
12296
12297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12298 freebsd2.*)
12299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12300 hardcode_direct=yes
12301 hardcode_minus_L=yes
12302 hardcode_shlibpath_var=no
12303 ;;
12304
12305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12306 freebsd* | dragonfly* | midnightbsd*)
12307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12308 hardcode_libdir_flag_spec='-R$libdir'
12309 hardcode_direct=yes
12310 hardcode_shlibpath_var=no
12311 ;;
12312
12313 hpux9*)
12314 if test yes = "$GCC"; then
12315 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'
12316 else
12317 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'
12318 fi
12319 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12320 hardcode_libdir_separator=:
12321 hardcode_direct=yes
12322
12323 # hardcode_minus_L: Not really in the search PATH,
12324 # but as the default location of the library.
12325 hardcode_minus_L=yes
12326 export_dynamic_flag_spec='$wl-E'
12327 ;;
12328
12329 hpux10*)
12330 if test yes,no = "$GCC,$with_gnu_ld"; then
12331 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12332 else
12333 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12334 fi
12335 if test no = "$with_gnu_ld"; then
12336 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12337 hardcode_libdir_separator=:
12338 hardcode_direct=yes
12339 hardcode_direct_absolute=yes
12340 export_dynamic_flag_spec='$wl-E'
12341 # hardcode_minus_L: Not really in the search PATH,
12342 # but as the default location of the library.
12343 hardcode_minus_L=yes
12344 fi
12345 ;;
12346
12347 hpux11*)
12348 if test yes,no = "$GCC,$with_gnu_ld"; then
12349 case $host_cpu in
12350 hppa*64*)
12351 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12352 ;;
12353 ia64*)
12354 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12355 ;;
12356 *)
12357 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12358 ;;
12359 esac
12360 else
12361 case $host_cpu in
12362 hppa*64*)
12363 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12364 ;;
12365 ia64*)
12366 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12367 ;;
12368 *)
12369
12370 # Older versions of the 11.00 compiler do not understand -b yet
12371 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12373 printf %s "checking if $CC understands -b... " >&6; }
12374 if test ${lt_cv_prog_compiler__b+y}
12375 then :
12376 printf %s "(cached) " >&6
12377 else case e in #(
12378 e) lt_cv_prog_compiler__b=no
12379 save_LDFLAGS=$LDFLAGS
12380 LDFLAGS="$LDFLAGS -b"
12381 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12383 # The linker can only warn and ignore the option if not recognized
12384 # So say no if there are warnings
12385 if test -s conftest.err; then
12386 # Append any errors to the config.log.
12387 cat conftest.err 1>&5
12388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12390 if diff conftest.exp conftest.er2 >/dev/null; then
12391 lt_cv_prog_compiler__b=yes
12392 fi
12393 else
12394 lt_cv_prog_compiler__b=yes
12395 fi
12396 fi
12397 $RM -r conftest*
12398 LDFLAGS=$save_LDFLAGS
12399 ;;
12400 esac
12401 fi
12402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12403 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12404
12405 if test yes = "$lt_cv_prog_compiler__b"; then
12406 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12407 else
12408 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12409 fi
12410
12411 ;;
12412 esac
12413 fi
12414 if test no = "$with_gnu_ld"; then
12415 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12416 hardcode_libdir_separator=:
12417
12418 case $host_cpu in
12419 hppa*64*|ia64*)
12420 hardcode_direct=no
12421 hardcode_shlibpath_var=no
12422 ;;
12423 *)
12424 hardcode_direct=yes
12425 hardcode_direct_absolute=yes
12426 export_dynamic_flag_spec='$wl-E'
12427
12428 # hardcode_minus_L: Not really in the search PATH,
12429 # but as the default location of the library.
12430 hardcode_minus_L=yes
12431 ;;
12432 esac
12433 fi
12434 ;;
12435
12436 irix5* | irix6* | nonstopux*)
12437 if test yes = "$GCC"; then
12438 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'
12439 # Try to use the -exported_symbol ld option, if it does not
12440 # work, assume that -exports_file does not work either and
12441 # implicitly export all symbols.
12442 # This should be the same for all languages, so no per-tag cache variable.
12443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12444 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12445 if test ${lt_cv_irix_exported_symbol+y}
12446 then :
12447 printf %s "(cached) " >&6
12448 else case e in #(
12449 e) save_LDFLAGS=$LDFLAGS
12450 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 int foo (void) { return 0; }
12454 _ACEOF
12455 if ac_fn_c_try_link "$LINENO"
12456 then :
12457 lt_cv_irix_exported_symbol=yes
12458 else case e in #(
12459 e) lt_cv_irix_exported_symbol=no ;;
12460 esac
12461 fi
12462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12463 conftest$ac_exeext conftest.$ac_ext
12464 LDFLAGS=$save_LDFLAGS ;;
12465 esac
12466 fi
12467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12468 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12469 if test yes = "$lt_cv_irix_exported_symbol"; then
12470 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'
12471 fi
12472 else
12473 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'
12474 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'
12475 fi
12476 archive_cmds_need_lc='no'
12477 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12478 hardcode_libdir_separator=:
12479 inherit_rpath=yes
12480 link_all_deplibs=yes
12481 ;;
12482
12483 linux*)
12484 case $cc_basename in
12485 tcc*)
12486 # Fabrice Bellard et al's Tiny C Compiler
12487 ld_shlibs=yes
12488 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12489 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12490 ;;
12491 esac
12492 ;;
12493
12494 *-mlibc)
12495 ;;
12496
12497 netbsd* | netbsdelf*-gnu)
12498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12500 else
12501 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12502 fi
12503 hardcode_libdir_flag_spec='-R$libdir'
12504 hardcode_direct=yes
12505 hardcode_shlibpath_var=no
12506 ;;
12507
12508 newsos6)
12509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12510 hardcode_direct=yes
12511 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12512 hardcode_libdir_separator=:
12513 hardcode_shlibpath_var=no
12514 ;;
12515
12516 *nto* | *qnx*)
12517 ;;
12518
12519 openbsd*)
12520 if test -f /usr/libexec/ld.so; then
12521 hardcode_direct=yes
12522 hardcode_shlibpath_var=no
12523 hardcode_direct_absolute=yes
12524 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12526 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12527 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12528 export_dynamic_flag_spec='$wl-E'
12529 else
12530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12531 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12532 fi
12533 else
12534 ld_shlibs=no
12535 fi
12536 ;;
12537
12538 os2*)
12539 hardcode_libdir_flag_spec='-L$libdir'
12540 hardcode_minus_L=yes
12541 allow_undefined_flag=unsupported
12542 shrext_cmds=.dll
12543 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12544 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12545 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12546 $ECHO EXPORTS >> $output_objdir/$libname.def~
12547 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12548 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12549 emximp -o $lib $output_objdir/$libname.def'
12550 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12551 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12552 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12553 $ECHO EXPORTS >> $output_objdir/$libname.def~
12554 prefix_cmds="$SED"~
12555 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12556 prefix_cmds="$prefix_cmds -e 1d";
12557 fi~
12558 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12559 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12560 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12561 emximp -o $lib $output_objdir/$libname.def'
12562 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12563 enable_shared_with_static_runtimes=yes
12564 file_list_spec='@'
12565 ;;
12566
12567 osf3*)
12568 if test yes = "$GCC"; then
12569 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12570 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'
12571 else
12572 allow_undefined_flag=' -expect_unresolved \*'
12573 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'
12574 fi
12575 archive_cmds_need_lc='no'
12576 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12577 hardcode_libdir_separator=:
12578 ;;
12579
12580 osf4* | osf5*) # as osf3* with the addition of -msym flag
12581 if test yes = "$GCC"; then
12582 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12583 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'
12584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12585 else
12586 allow_undefined_flag=' -expect_unresolved \*'
12587 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'
12588 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~
12589 $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'
12590
12591 # Both c and cxx compiler support -rpath directly
12592 hardcode_libdir_flag_spec='-rpath $libdir'
12593 fi
12594 archive_cmds_need_lc='no'
12595 hardcode_libdir_separator=:
12596 ;;
12597
12598 serenity*)
12599 ;;
12600
12601 solaris*)
12602 no_undefined_flag=' -z defs'
12603 if test yes = "$GCC"; then
12604 wlarc='$wl'
12605 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12607 $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'
12608 else
12609 case `$CC -V 2>&1` in
12610 *"Compilers 5.0"*)
12611 wlarc=''
12612 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12614 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12615 ;;
12616 *)
12617 wlarc='$wl'
12618 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12620 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12621 ;;
12622 esac
12623 fi
12624 hardcode_libdir_flag_spec='-R$libdir'
12625 hardcode_shlibpath_var=no
12626 case $host_os in
12627 solaris2.[0-5] | solaris2.[0-5].*) ;;
12628 *)
12629 # The compiler driver will combine and reorder linker options,
12630 # but understands '-z linker_flag'. GCC discards it without '$wl',
12631 # but is careful enough not to reorder.
12632 # Supported since Solaris 2.6 (maybe 2.5.1?)
12633 if test yes = "$GCC"; then
12634 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12635 else
12636 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12637 fi
12638 ;;
12639 esac
12640 link_all_deplibs=yes
12641 ;;
12642
12643 sunos4*)
12644 if test sequent = "$host_vendor"; then
12645 # Use $CC to link under sequent, because it throws in some extra .o
12646 # files that make .init and .fini sections work.
12647 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12648 else
12649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12650 fi
12651 hardcode_libdir_flag_spec='-L$libdir'
12652 hardcode_direct=yes
12653 hardcode_minus_L=yes
12654 hardcode_shlibpath_var=no
12655 ;;
12656
12657 sysv4)
12658 case $host_vendor in
12659 sni)
12660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12661 hardcode_direct=yes # is this really true???
12662 ;;
12663 siemens)
12664 ## LD is ld it makes a PLAMLIB
12665 ## CC just makes a GrossModule.
12666 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12667 reload_cmds='$CC -r -o $output$reload_objs'
12668 hardcode_direct=no
12669 ;;
12670 motorola)
12671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12672 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12673 ;;
12674 esac
12675 runpath_var='LD_RUN_PATH'
12676 hardcode_shlibpath_var=no
12677 ;;
12678
12679 sysv4.3*)
12680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12681 hardcode_shlibpath_var=no
12682 export_dynamic_flag_spec='-Bexport'
12683 ;;
12684
12685 sysv4*MP*)
12686 if test -d /usr/nec; then
12687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12688 hardcode_shlibpath_var=no
12689 runpath_var=LD_RUN_PATH
12690 hardcode_runpath_var=yes
12691 ld_shlibs=yes
12692 fi
12693 ;;
12694
12695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12696 no_undefined_flag='$wl-z,text'
12697 archive_cmds_need_lc=no
12698 hardcode_shlibpath_var=no
12699 runpath_var='LD_RUN_PATH'
12700
12701 if test yes = "$GCC"; then
12702 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12703 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12704 else
12705 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12706 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12707 fi
12708 ;;
12709
12710 sysv5* | sco3.2v5* | sco5v6*)
12711 # Note: We CANNOT use -z defs as we might desire, because we do not
12712 # link with -lc, and that would cause any symbols used from libc to
12713 # always be unresolved, which means just about no library would
12714 # ever link correctly. If we're not using GNU ld we use -z text
12715 # though, which does catch some bad symbols but isn't as heavy-handed
12716 # as -z defs.
12717 no_undefined_flag='$wl-z,text'
12718 allow_undefined_flag='$wl-z,nodefs'
12719 archive_cmds_need_lc=no
12720 hardcode_shlibpath_var=no
12721 hardcode_libdir_flag_spec='$wl-R,$libdir'
12722 hardcode_libdir_separator=':'
12723 link_all_deplibs=yes
12724 export_dynamic_flag_spec='$wl-Bexport'
12725 runpath_var='LD_RUN_PATH'
12726
12727 if test yes = "$GCC"; then
12728 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12730 else
12731 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12732 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12733 fi
12734 ;;
12735
12736 uts4*)
12737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12738 hardcode_libdir_flag_spec='-L$libdir'
12739 hardcode_shlibpath_var=no
12740 ;;
12741
12742 *)
12743 ld_shlibs=no
12744 ;;
12745 esac
12746
12747 if test sni = "$host_vendor"; then
12748 case $host in
12749 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12750 export_dynamic_flag_spec='$wl-Blargedynsym'
12751 ;;
12752 esac
12753 fi
12754 fi
12755
12756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12757 printf "%s\n" "$ld_shlibs" >&6; }
12758 test no = "$ld_shlibs" && can_build_shared=no
12759
12760 with_gnu_ld=$with_gnu_ld
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776 #
12777 # Do we need to explicitly link libc?
12778 #
12779 case "x$archive_cmds_need_lc" in
12780 x|xyes)
12781 # Assume -lc should be added
12782 archive_cmds_need_lc=yes
12783
12784 if test yes,yes = "$GCC,$enable_shared"; then
12785 case $archive_cmds in
12786 *'~'*)
12787 # FIXME: we may have to deal with multi-command sequences.
12788 ;;
12789 '$CC '*)
12790 # Test whether the compiler implicitly links with -lc since on some
12791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12792 # to ld, don't add -lc before -lgcc.
12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12794 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12795 if test ${lt_cv_archive_cmds_need_lc+y}
12796 then :
12797 printf %s "(cached) " >&6
12798 else case e in #(
12799 e) $RM conftest*
12800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12801
12802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12803 (eval $ac_compile) 2>&5
12804 ac_status=$?
12805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12806 test $ac_status = 0; } 2>conftest.err; then
12807 soname=conftest
12808 lib=conftest
12809 libobjs=conftest.$ac_objext
12810 deplibs=
12811 wl=$lt_prog_compiler_wl
12812 pic_flag=$lt_prog_compiler_pic
12813 compiler_flags=-v
12814 linker_flags=-v
12815 verstring=
12816 output_objdir=.
12817 libname=conftest
12818 lt_save_allow_undefined_flag=$allow_undefined_flag
12819 allow_undefined_flag=
12820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12821 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12822 ac_status=$?
12823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12824 test $ac_status = 0; }
12825 then
12826 lt_cv_archive_cmds_need_lc=no
12827 else
12828 lt_cv_archive_cmds_need_lc=yes
12829 fi
12830 allow_undefined_flag=$lt_save_allow_undefined_flag
12831 else
12832 cat conftest.err 1>&5
12833 fi
12834 $RM conftest*
12835 ;;
12836 esac
12837 fi
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12839 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12840 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12841 ;;
12842 esac
12843 fi
12844 ;;
12845 esac
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12999 printf %s "checking dynamic linker characteristics... " >&6; }
13000
13001 if test yes = "$GCC"; then
13002 case $host_os in
13003 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13004 *) lt_awk_arg='/^libraries:/' ;;
13005 esac
13006 case $host_os in
13007 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13008 *) lt_sed_strip_eq='s|=/|/|g' ;;
13009 esac
13010 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13011 case $lt_search_path_spec in
13012 *\;*)
13013 # if the path contains ";" then we assume it to be the separator
13014 # otherwise default to the standard path separator (i.e. ":") - it is
13015 # assumed that no part of a normal pathname contains ";" but that should
13016 # okay in the real world where ";" in dirpaths is itself problematic.
13017 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13018 ;;
13019 *)
13020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13021 ;;
13022 esac
13023 # Ok, now we have the path, separated by spaces, we can step through it
13024 # and add multilib dir if necessary...
13025 lt_tmp_lt_search_path_spec=
13026 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13027 # ...but if some path component already ends with the multilib dir we assume
13028 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13029 case "$lt_multi_os_dir; $lt_search_path_spec " in
13030 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13031 lt_multi_os_dir=
13032 ;;
13033 esac
13034 for lt_sys_path in $lt_search_path_spec; do
13035 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13037 elif test -n "$lt_multi_os_dir"; then
13038 test -d "$lt_sys_path" && \
13039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13040 fi
13041 done
13042 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13043 BEGIN {RS = " "; FS = "/|\n";} {
13044 lt_foo = "";
13045 lt_count = 0;
13046 for (lt_i = NF; lt_i > 0; lt_i--) {
13047 if ($lt_i != "" && $lt_i != ".") {
13048 if ($lt_i == "..") {
13049 lt_count++;
13050 } else {
13051 if (lt_count == 0) {
13052 lt_foo = "/" $lt_i lt_foo;
13053 } else {
13054 lt_count--;
13055 }
13056 }
13057 }
13058 }
13059 if (lt_foo != "") { lt_freq[lt_foo]++; }
13060 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13061 }'`
13062 # AWK program above erroneously prepends '/' to C:/dos/paths
13063 # for these hosts.
13064 case $host_os in
13065 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13066 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13067 esac
13068 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13069 else
13070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13071 fi
13072 library_names_spec=
13073 libname_spec='lib$name'
13074 soname_spec=
13075 shrext_cmds=.so
13076 postinstall_cmds=
13077 postuninstall_cmds=
13078 finish_cmds=
13079 finish_eval=
13080 shlibpath_var=
13081 shlibpath_overrides_runpath=unknown
13082 version_type=none
13083 dynamic_linker="$host_os ld.so"
13084 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13085 need_lib_prefix=unknown
13086 hardcode_into_libs=no
13087
13088 # when you set need_version to no, make sure it does not cause -set_version
13089 # flags to be left without arguments
13090 need_version=unknown
13091
13092
13093
13094 case $host_os in
13095 aix3*)
13096 version_type=linux # correct to gnu/linux during the next big refactor
13097 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13098 shlibpath_var=LIBPATH
13099
13100 # AIX 3 has no versioning support, so we append a major version to the name.
13101 soname_spec='$libname$release$shared_ext$major'
13102 ;;
13103
13104 aix[4-9]*)
13105 version_type=linux # correct to gnu/linux during the next big refactor
13106 need_lib_prefix=no
13107 need_version=no
13108 hardcode_into_libs=yes
13109 if test ia64 = "$host_cpu"; then
13110 # AIX 5 supports IA64
13111 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13112 shlibpath_var=LD_LIBRARY_PATH
13113 else
13114 # With GCC up to 2.95.x, collect2 would create an import file
13115 # for dependence libraries. The import file would start with
13116 # the line '#! .'. This would cause the generated library to
13117 # depend on '.', always an invalid library. This was fixed in
13118 # development snapshots of GCC prior to 3.0.
13119 case $host_os in
13120 aix4 | aix4.[01] | aix4.[01].*)
13121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13122 echo ' yes '
13123 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13124 :
13125 else
13126 can_build_shared=no
13127 fi
13128 ;;
13129 esac
13130 # Using Import Files as archive members, it is possible to support
13131 # filename-based versioning of shared library archives on AIX. While
13132 # this would work for both with and without runtime linking, it will
13133 # prevent static linking of such archives. So we do filename-based
13134 # shared library versioning with .so extension only, which is used
13135 # when both runtime linking and shared linking is enabled.
13136 # Unfortunately, runtime linking may impact performance, so we do
13137 # not want this to be the default eventually. Also, we use the
13138 # versioned .so libs for executables only if there is the -brtl
13139 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13140 # To allow for filename-based versioning support, we need to create
13141 # libNAME.so.V as an archive file, containing:
13142 # *) an Import File, referring to the versioned filename of the
13143 # archive as well as the shared archive member, telling the
13144 # bitwidth (32 or 64) of that shared object, and providing the
13145 # list of exported symbols of that shared object, eventually
13146 # decorated with the 'weak' keyword
13147 # *) the shared object with the F_LOADONLY flag set, to really avoid
13148 # it being seen by the linker.
13149 # At run time we better use the real file rather than another symlink,
13150 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13151
13152 case $with_aix_soname,$aix_use_runtimelinking in
13153 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13154 # soname into executable. Probably we can add versioning support to
13155 # collect2, so additional links can be useful in future.
13156 aix,yes) # traditional libtool
13157 dynamic_linker='AIX unversionable lib.so'
13158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13159 # instead of lib<name>.a to let people know that these are not
13160 # typical AIX shared libraries.
13161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13162 ;;
13163 aix,no) # traditional AIX only
13164 dynamic_linker='AIX lib.a(lib.so.V)'
13165 # We preserve .a as extension for shared libraries through AIX4.2
13166 # and later when we are not doing run time linking.
13167 library_names_spec='$libname$release.a $libname.a'
13168 soname_spec='$libname$release$shared_ext$major'
13169 ;;
13170 svr4,*) # full svr4 only
13171 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13172 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13173 # We do not specify a path in Import Files, so LIBPATH fires.
13174 shlibpath_overrides_runpath=yes
13175 ;;
13176 *,yes) # both, prefer svr4
13177 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13178 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13179 # unpreferred sharedlib libNAME.a needs extra handling
13180 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"'
13181 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"'
13182 # We do not specify a path in Import Files, so LIBPATH fires.
13183 shlibpath_overrides_runpath=yes
13184 ;;
13185 *,no) # both, prefer aix
13186 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13187 library_names_spec='$libname$release.a $libname.a'
13188 soname_spec='$libname$release$shared_ext$major'
13189 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13190 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)'
13191 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"'
13192 ;;
13193 esac
13194 shlibpath_var=LIBPATH
13195 fi
13196 ;;
13197
13198 amigaos*)
13199 case $host_cpu in
13200 powerpc)
13201 # Since July 2007 AmigaOS4 officially supports .so libraries.
13202 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13204 ;;
13205 m68k)
13206 library_names_spec='$libname.ixlibrary $libname.a'
13207 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13208 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'
13209 ;;
13210 esac
13211 ;;
13212
13213 beos*)
13214 library_names_spec='$libname$shared_ext'
13215 dynamic_linker="$host_os ld.so"
13216 shlibpath_var=LIBRARY_PATH
13217 ;;
13218
13219 bsdi[45]*)
13220 version_type=linux # correct to gnu/linux during the next big refactor
13221 need_version=no
13222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13223 soname_spec='$libname$release$shared_ext$major'
13224 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13225 shlibpath_var=LD_LIBRARY_PATH
13226 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13227 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13228 # the default ld.so.conf also contains /usr/contrib/lib and
13229 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13230 # libtool to hard-code these into programs
13231 ;;
13232
13233 cygwin* | mingw* | windows* | pw32* | cegcc*)
13234 version_type=windows
13235 shrext_cmds=.dll
13236 need_version=no
13237 need_lib_prefix=no
13238
13239 case $GCC,$cc_basename in
13240 yes,*)
13241 # gcc
13242 library_names_spec='$libname.dll.a'
13243 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13244 # If user builds GCC with multilib enabled,
13245 # it should just install on $(libdir)
13246 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13247 if test xyes = x"$multilib"; then
13248 postinstall_cmds='base_file=`basename \$file`~
13249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13250 dldir=$destdir/`dirname \$dlpath`~
13251 $install_prog $dir/$dlname $destdir/$dlname~
13252 chmod a+x $destdir/$dlname~
13253 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13254 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13255 fi'
13256 else
13257 postinstall_cmds='base_file=`basename \$file`~
13258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13259 dldir=$destdir/`dirname \$dlpath`~
13260 test -d \$dldir || mkdir -p \$dldir~
13261 $install_prog $dir/$dlname \$dldir/$dlname~
13262 chmod a+x \$dldir/$dlname~
13263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13265 fi'
13266 fi
13267 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13268 dlpath=$dir/\$dldll~
13269 $RM \$dlpath'
13270 shlibpath_overrides_runpath=yes
13271
13272 case $host_os in
13273 cygwin*)
13274 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13275 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13276
13277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13278 ;;
13279 mingw* | windows* | cegcc*)
13280 # MinGW DLLs use traditional 'lib' prefix
13281 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13282 ;;
13283 pw32*)
13284 # pw32 DLLs use 'pw' prefix rather than 'lib'
13285 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13286 ;;
13287 esac
13288 dynamic_linker='Win32 ld.exe'
13289 ;;
13290
13291 *,cl* | *,icl*)
13292 # Native MSVC or ICC
13293 libname_spec='$name'
13294 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13295 library_names_spec='$libname.dll.lib'
13296
13297 case $build_os in
13298 mingw* | windows*)
13299 sys_lib_search_path_spec=
13300 lt_save_ifs=$IFS
13301 IFS=';'
13302 for lt_path in $LIB
13303 do
13304 IFS=$lt_save_ifs
13305 # Let DOS variable expansion print the short 8.3 style file name.
13306 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13307 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13308 done
13309 IFS=$lt_save_ifs
13310 # Convert to MSYS style.
13311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13312 ;;
13313 cygwin*)
13314 # Convert to unix form, then to dos form, then back to unix form
13315 # but this time dos style (no spaces!) so that the unix form looks
13316 # like /cygdrive/c/PROGRA~1:/cygdr...
13317 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13318 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13319 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13320 ;;
13321 *)
13322 sys_lib_search_path_spec=$LIB
13323 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13324 # It is most probably a Windows format PATH.
13325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13326 else
13327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13328 fi
13329 # FIXME: find the short name or the path components, as spaces are
13330 # common. (e.g. "Program Files" -> "PROGRA~1")
13331 ;;
13332 esac
13333
13334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13335 postinstall_cmds='base_file=`basename \$file`~
13336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13337 dldir=$destdir/`dirname \$dlpath`~
13338 test -d \$dldir || mkdir -p \$dldir~
13339 $install_prog $dir/$dlname \$dldir/$dlname'
13340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13341 dlpath=$dir/\$dldll~
13342 $RM \$dlpath'
13343 shlibpath_overrides_runpath=yes
13344 dynamic_linker='Win32 link.exe'
13345 ;;
13346
13347 *)
13348 # Assume MSVC and ICC wrapper
13349 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13350 dynamic_linker='Win32 ld.exe'
13351 ;;
13352 esac
13353 # FIXME: first we should search . and the directory the executable is in
13354 shlibpath_var=PATH
13355 ;;
13356
13357 darwin* | rhapsody*)
13358 dynamic_linker="$host_os dyld"
13359 version_type=darwin
13360 need_lib_prefix=no
13361 need_version=no
13362 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13363 soname_spec='$libname$release$major$shared_ext'
13364 shlibpath_overrides_runpath=yes
13365 shlibpath_var=DYLD_LIBRARY_PATH
13366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13367
13368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13370 ;;
13371
13372 dgux*)
13373 version_type=linux # correct to gnu/linux during the next big refactor
13374 need_lib_prefix=no
13375 need_version=no
13376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13377 soname_spec='$libname$release$shared_ext$major'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 ;;
13380
13381 freebsd* | dragonfly* | midnightbsd*)
13382 # DragonFly does not have aout. When/if they implement a new
13383 # versioning mechanism, adjust this.
13384 if test -x /usr/bin/objformat; then
13385 objformat=`/usr/bin/objformat`
13386 else
13387 case $host_os in
13388 freebsd[23].*) objformat=aout ;;
13389 *) objformat=elf ;;
13390 esac
13391 fi
13392 version_type=freebsd-$objformat
13393 case $version_type in
13394 freebsd-elf*)
13395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13396 soname_spec='$libname$release$shared_ext$major'
13397 need_version=no
13398 need_lib_prefix=no
13399 ;;
13400 freebsd-*)
13401 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13402 need_version=yes
13403 ;;
13404 esac
13405 case $host_cpu in
13406 powerpc64)
13407 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13408 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411 int test_pointer_size[sizeof (void *) - 5];
13412
13413 _ACEOF
13414 if ac_fn_c_try_compile "$LINENO"
13415 then :
13416 shlibpath_var=LD_LIBRARY_PATH
13417 else case e in #(
13418 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13419 esac
13420 fi
13421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13422 ;;
13423 *)
13424 shlibpath_var=LD_LIBRARY_PATH
13425 ;;
13426 esac
13427 case $host_os in
13428 freebsd2.*)
13429 shlibpath_overrides_runpath=yes
13430 ;;
13431 freebsd3.[01]* | freebsdelf3.[01]*)
13432 shlibpath_overrides_runpath=yes
13433 hardcode_into_libs=yes
13434 ;;
13435 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13436 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13437 shlibpath_overrides_runpath=no
13438 hardcode_into_libs=yes
13439 ;;
13440 *) # from 4.6 on, and DragonFly
13441 shlibpath_overrides_runpath=yes
13442 hardcode_into_libs=yes
13443 ;;
13444 esac
13445 ;;
13446
13447 haiku*)
13448 version_type=linux # correct to gnu/linux during the next big refactor
13449 need_lib_prefix=no
13450 need_version=no
13451 dynamic_linker="$host_os runtime_loader"
13452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13453 soname_spec='$libname$release$shared_ext$major'
13454 shlibpath_var=LIBRARY_PATH
13455 shlibpath_overrides_runpath=no
13456 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13457 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13458 hardcode_into_libs=no
13459 ;;
13460
13461 hpux9* | hpux10* | hpux11*)
13462 # Give a soname corresponding to the major version so that dld.sl refuses to
13463 # link against other versions.
13464 version_type=sunos
13465 need_lib_prefix=no
13466 need_version=no
13467 case $host_cpu in
13468 ia64*)
13469 shrext_cmds='.so'
13470 hardcode_into_libs=yes
13471 dynamic_linker="$host_os dld.so"
13472 shlibpath_var=LD_LIBRARY_PATH
13473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13475 soname_spec='$libname$release$shared_ext$major'
13476 if test 32 = "$HPUX_IA64_MODE"; then
13477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13478 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13479 else
13480 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13481 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13482 fi
13483 ;;
13484 hppa*64*)
13485 shrext_cmds='.sl'
13486 hardcode_into_libs=yes
13487 dynamic_linker="$host_os dld.sl"
13488 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13491 soname_spec='$libname$release$shared_ext$major'
13492 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13494 ;;
13495 *)
13496 shrext_cmds='.sl'
13497 dynamic_linker="$host_os dld.sl"
13498 shlibpath_var=SHLIB_PATH
13499 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13501 soname_spec='$libname$release$shared_ext$major'
13502 ;;
13503 esac
13504 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13505 postinstall_cmds='chmod 555 $lib'
13506 # or fails outright, so override atomically:
13507 install_override_mode=555
13508 ;;
13509
13510 interix[3-9]*)
13511 version_type=linux # correct to gnu/linux during the next big refactor
13512 need_lib_prefix=no
13513 need_version=no
13514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13515 soname_spec='$libname$release$shared_ext$major'
13516 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13517 shlibpath_var=LD_LIBRARY_PATH
13518 shlibpath_overrides_runpath=no
13519 hardcode_into_libs=yes
13520 ;;
13521
13522 irix5* | irix6* | nonstopux*)
13523 case $host_os in
13524 nonstopux*) version_type=nonstopux ;;
13525 *)
13526 if test yes = "$lt_cv_prog_gnu_ld"; then
13527 version_type=linux # correct to gnu/linux during the next big refactor
13528 else
13529 version_type=irix
13530 fi ;;
13531 esac
13532 need_lib_prefix=no
13533 need_version=no
13534 soname_spec='$libname$release$shared_ext$major'
13535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13536 case $host_os in
13537 irix5* | nonstopux*)
13538 libsuff= shlibsuff=
13539 ;;
13540 *)
13541 case $LD in # libtool.m4 will add one of these switches to LD
13542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13543 libsuff= shlibsuff= libmagic=32-bit;;
13544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13545 libsuff=32 shlibsuff=N32 libmagic=N32;;
13546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13547 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13548 *) libsuff= shlibsuff= libmagic=never-match;;
13549 esac
13550 ;;
13551 esac
13552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13553 shlibpath_overrides_runpath=no
13554 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13555 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13556 hardcode_into_libs=yes
13557 ;;
13558
13559 # No shared lib support for Linux oldld, aout, or coff.
13560 linux*oldld* | linux*aout* | linux*coff*)
13561 dynamic_linker=no
13562 ;;
13563
13564 linux*android*)
13565 version_type=none # Android doesn't support versioned libraries.
13566 need_lib_prefix=no
13567 need_version=no
13568 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13569 soname_spec='$libname$release$shared_ext'
13570 finish_cmds=
13571 shlibpath_var=LD_LIBRARY_PATH
13572 shlibpath_overrides_runpath=yes
13573
13574 # This implies no fast_install, which is unacceptable.
13575 # Some rework will be needed to allow for fast_install
13576 # before this can be enabled.
13577 hardcode_into_libs=yes
13578
13579 dynamic_linker='Android linker'
13580 # -rpath works at least for libraries that are not overridden by
13581 # libraries installed in system locations.
13582 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13583 ;;
13584
13585 # This must be glibc/ELF.
13586 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13587 version_type=linux # correct to gnu/linux during the next big refactor
13588 need_lib_prefix=no
13589 need_version=no
13590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13591 soname_spec='$libname$release$shared_ext$major'
13592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13593 shlibpath_var=LD_LIBRARY_PATH
13594 shlibpath_overrides_runpath=no
13595
13596 # Some binutils ld are patched to set DT_RUNPATH
13597 if test ${lt_cv_shlibpath_overrides_runpath+y}
13598 then :
13599 printf %s "(cached) " >&6
13600 else case e in #(
13601 e) lt_cv_shlibpath_overrides_runpath=no
13602 save_LDFLAGS=$LDFLAGS
13603 save_libdir=$libdir
13604 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13605 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608
13609 int
13610 main (void)
13611 {
13612
13613 ;
13614 return 0;
13615 }
13616 _ACEOF
13617 if ac_fn_c_try_link "$LINENO"
13618 then :
13619 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13620 then :
13621 lt_cv_shlibpath_overrides_runpath=yes
13622 fi
13623 fi
13624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13625 conftest$ac_exeext conftest.$ac_ext
13626 LDFLAGS=$save_LDFLAGS
13627 libdir=$save_libdir
13628 ;;
13629 esac
13630 fi
13631
13632 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13633
13634 # This implies no fast_install, which is unacceptable.
13635 # Some rework will be needed to allow for fast_install
13636 # before this can be enabled.
13637 hardcode_into_libs=yes
13638
13639 # Ideally, we could use ldconfig to report *all* directories which are
13640 # searched for libraries, however this is still not possible. Aside from not
13641 # being certain /sbin/ldconfig is available, command
13642 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13643 # even though it is searched at run-time. Try to do the best guess by
13644 # appending ld.so.conf contents (and includes) to the search path.
13645 if test -f /etc/ld.so.conf; then
13646 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' ' '`
13647 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13648 fi
13649
13650 # We used to test for /lib/ld.so.1 and disable shared libraries on
13651 # powerpc, because MkLinux only supported shared libraries with the
13652 # GNU dynamic linker. Since this was broken with cross compilers,
13653 # most powerpc-linux boxes support dynamic linking these days and
13654 # people can always --disable-shared, the test was removed, and we
13655 # assume the GNU/Linux dynamic linker is in use.
13656 dynamic_linker='GNU/Linux ld.so'
13657 ;;
13658
13659 netbsdelf*-gnu)
13660 version_type=linux
13661 need_lib_prefix=no
13662 need_version=no
13663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13664 soname_spec='$libname$release$shared_ext$major'
13665 shlibpath_var=LD_LIBRARY_PATH
13666 shlibpath_overrides_runpath=no
13667 hardcode_into_libs=yes
13668 dynamic_linker='NetBSD ld.elf_so'
13669 ;;
13670
13671 netbsd*)
13672 version_type=sunos
13673 need_lib_prefix=no
13674 need_version=no
13675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13676 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13678 dynamic_linker='NetBSD (a.out) ld.so'
13679 else
13680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13681 soname_spec='$libname$release$shared_ext$major'
13682 dynamic_linker='NetBSD ld.elf_so'
13683 fi
13684 shlibpath_var=LD_LIBRARY_PATH
13685 shlibpath_overrides_runpath=yes
13686 hardcode_into_libs=yes
13687 ;;
13688
13689 *-mlibc)
13690 version_type=linux # correct to gnu/linux during the next big refactor
13691 need_lib_prefix=no
13692 need_version=no
13693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13694 soname_spec='$libname$release$shared_ext$major'
13695 dynamic_linker='mlibc ld.so'
13696 shlibpath_var=LD_LIBRARY_PATH
13697 shlibpath_overrides_runpath=no
13698 hardcode_into_libs=yes
13699 ;;
13700
13701 newsos6)
13702 version_type=linux # correct to gnu/linux during the next big refactor
13703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13704 shlibpath_var=LD_LIBRARY_PATH
13705 shlibpath_overrides_runpath=yes
13706 ;;
13707
13708 *nto* | *qnx*)
13709 version_type=qnx
13710 need_lib_prefix=no
13711 need_version=no
13712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13713 soname_spec='$libname$release$shared_ext$major'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 shlibpath_overrides_runpath=no
13716 hardcode_into_libs=yes
13717 dynamic_linker='ldqnx.so'
13718 ;;
13719
13720 openbsd*)
13721 version_type=sunos
13722 sys_lib_dlsearch_path_spec=/usr/lib
13723 need_lib_prefix=no
13724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13725 need_version=no
13726 else
13727 need_version=yes
13728 fi
13729 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13731 shlibpath_var=LD_LIBRARY_PATH
13732 shlibpath_overrides_runpath=yes
13733 ;;
13734
13735 os2*)
13736 libname_spec='$name'
13737 version_type=windows
13738 shrext_cmds=.dll
13739 need_version=no
13740 need_lib_prefix=no
13741 # OS/2 can only load a DLL with a base name of 8 characters or less.
13742 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13743 v=$($ECHO $release$versuffix | tr -d .-);
13744 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13745 $ECHO $n$v`$shared_ext'
13746 library_names_spec='${libname}_dll.$libext'
13747 dynamic_linker='OS/2 ld.exe'
13748 shlibpath_var=BEGINLIBPATH
13749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13751 postinstall_cmds='base_file=`basename \$file`~
13752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13753 dldir=$destdir/`dirname \$dlpath`~
13754 test -d \$dldir || mkdir -p \$dldir~
13755 $install_prog $dir/$dlname \$dldir/$dlname~
13756 chmod a+x \$dldir/$dlname~
13757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13759 fi'
13760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13761 dlpath=$dir/\$dldll~
13762 $RM \$dlpath'
13763 ;;
13764
13765 osf3* | osf4* | osf5*)
13766 version_type=osf
13767 need_lib_prefix=no
13768 need_version=no
13769 soname_spec='$libname$release$shared_ext$major'
13770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13771 shlibpath_var=LD_LIBRARY_PATH
13772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13774 ;;
13775
13776 rdos*)
13777 dynamic_linker=no
13778 ;;
13779
13780 serenity*)
13781 version_type=linux # correct to gnu/linux during the next big refactor
13782 need_lib_prefix=no
13783 need_version=no
13784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13785 soname_spec='$libname$release$shared_ext$major'
13786 shlibpath_var=LD_LIBRARY_PATH
13787 shlibpath_overrides_runpath=no
13788 dynamic_linker='SerenityOS LibELF'
13789 ;;
13790
13791 solaris*)
13792 version_type=linux # correct to gnu/linux during the next big refactor
13793 need_lib_prefix=no
13794 need_version=no
13795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13796 soname_spec='$libname$release$shared_ext$major'
13797 shlibpath_var=LD_LIBRARY_PATH
13798 shlibpath_overrides_runpath=yes
13799 hardcode_into_libs=yes
13800 # ldd complains unless libraries are executable
13801 postinstall_cmds='chmod +x $lib'
13802 ;;
13803
13804 sunos4*)
13805 version_type=sunos
13806 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13807 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13808 shlibpath_var=LD_LIBRARY_PATH
13809 shlibpath_overrides_runpath=yes
13810 if test yes = "$with_gnu_ld"; then
13811 need_lib_prefix=no
13812 fi
13813 need_version=yes
13814 ;;
13815
13816 sysv4 | sysv4.3*)
13817 version_type=linux # correct to gnu/linux during the next big refactor
13818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13819 soname_spec='$libname$release$shared_ext$major'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 case $host_vendor in
13822 sni)
13823 shlibpath_overrides_runpath=no
13824 need_lib_prefix=no
13825 runpath_var=LD_RUN_PATH
13826 ;;
13827 siemens)
13828 need_lib_prefix=no
13829 ;;
13830 motorola)
13831 need_lib_prefix=no
13832 need_version=no
13833 shlibpath_overrides_runpath=no
13834 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13835 ;;
13836 esac
13837 ;;
13838
13839 sysv4*MP*)
13840 if test -d /usr/nec; then
13841 version_type=linux # correct to gnu/linux during the next big refactor
13842 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13843 soname_spec='$libname$shared_ext.$major'
13844 shlibpath_var=LD_LIBRARY_PATH
13845 fi
13846 ;;
13847
13848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13849 version_type=sco
13850 need_lib_prefix=no
13851 need_version=no
13852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13853 soname_spec='$libname$release$shared_ext$major'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 shlibpath_overrides_runpath=yes
13856 hardcode_into_libs=yes
13857 if test yes = "$with_gnu_ld"; then
13858 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13859 else
13860 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13861 case $host_os in
13862 sco3.2v5*)
13863 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13864 ;;
13865 esac
13866 fi
13867 sys_lib_dlsearch_path_spec='/usr/lib'
13868 ;;
13869
13870 tpf*)
13871 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13872 version_type=linux # correct to gnu/linux during the next big refactor
13873 need_lib_prefix=no
13874 need_version=no
13875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 shlibpath_overrides_runpath=no
13878 hardcode_into_libs=yes
13879 ;;
13880
13881 uts4*)
13882 version_type=linux # correct to gnu/linux during the next big refactor
13883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13884 soname_spec='$libname$release$shared_ext$major'
13885 shlibpath_var=LD_LIBRARY_PATH
13886 ;;
13887
13888 emscripten*)
13889 version_type=none
13890 need_lib_prefix=no
13891 need_version=no
13892 library_names_spec='$libname$release$shared_ext'
13893 soname_spec='$libname$release$shared_ext'
13894 finish_cmds=
13895 dynamic_linker="Emscripten linker"
13896 lt_prog_compiler_wl=
13897 lt_prog_compiler_pic=
13898 lt_prog_compiler_static=
13899
13900
13901 if test yes = "$GCC"; then
13902 lt_prog_compiler_wl='-Wl,'
13903 lt_prog_compiler_static='-static'
13904
13905 case $host_os in
13906 aix*)
13907 # All AIX code is PIC.
13908 if test ia64 = "$host_cpu"; then
13909 # AIX 5 now supports IA64 processor
13910 lt_prog_compiler_static='-Bstatic'
13911 fi
13912 lt_prog_compiler_pic='-fPIC'
13913 ;;
13914
13915 amigaos*)
13916 case $host_cpu in
13917 powerpc)
13918 # see comment about AmigaOS4 .so support
13919 lt_prog_compiler_pic='-fPIC'
13920 ;;
13921 m68k)
13922 # FIXME: we need at least 68020 code to build shared libraries, but
13923 # adding the '-m68020' flag to GCC prevents building anything better,
13924 # like '-m68040'.
13925 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13926 ;;
13927 esac
13928 ;;
13929
13930 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13931 # PIC is the default for these OSes.
13932 ;;
13933
13934 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13935 # This hack is so that the source file can tell whether it is being
13936 # built for inclusion in a dll (and should export symbols for example).
13937 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13938 # (--disable-auto-import) libraries
13939 lt_prog_compiler_pic='-DDLL_EXPORT'
13940 case $host_os in
13941 os2*)
13942 lt_prog_compiler_static='$wl-static'
13943 ;;
13944 esac
13945 ;;
13946
13947 darwin* | rhapsody*)
13948 # PIC is the default on this platform
13949 # Common symbols not allowed in MH_DYLIB files
13950 lt_prog_compiler_pic='-fno-common'
13951 ;;
13952
13953 haiku*)
13954 # PIC is the default for Haiku.
13955 # The "-static" flag exists, but is broken.
13956 lt_prog_compiler_static=
13957 ;;
13958
13959 hpux*)
13960 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13961 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13962 # sets the default TLS model and affects inlining.
13963 case $host_cpu in
13964 hppa*64*)
13965 # +Z the default
13966 ;;
13967 *)
13968 lt_prog_compiler_pic='-fPIC'
13969 ;;
13970 esac
13971 ;;
13972
13973 interix[3-9]*)
13974 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13975 # Instead, we relocate shared libraries at runtime.
13976 ;;
13977
13978 msdosdjgpp*)
13979 # Just because we use GCC doesn't mean we suddenly get shared libraries
13980 # on systems that don't support them.
13981 lt_prog_compiler_can_build_shared=no
13982 enable_shared=no
13983 ;;
13984
13985 *nto* | *qnx*)
13986 # QNX uses GNU C++, but need to define -shared option too, otherwise
13987 # it will coredump.
13988 lt_prog_compiler_pic='-fPIC -shared'
13989 ;;
13990
13991 sysv4*MP*)
13992 if test -d /usr/nec; then
13993 lt_prog_compiler_pic=-Kconform_pic
13994 fi
13995 ;;
13996
13997 *)
13998 lt_prog_compiler_pic='-fPIC'
13999 ;;
14000 esac
14001
14002 case $cc_basename in
14003 nvcc*) # Cuda Compiler Driver 2.2
14004 lt_prog_compiler_wl='-Xlinker '
14005 if test -n "$lt_prog_compiler_pic"; then
14006 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14007 fi
14008 ;;
14009 esac
14010 else
14011 # PORTME Check for flag to pass linker flags through the system compiler.
14012 case $host_os in
14013 aix*)
14014 lt_prog_compiler_wl='-Wl,'
14015 if test ia64 = "$host_cpu"; then
14016 # AIX 5 now supports IA64 processor
14017 lt_prog_compiler_static='-Bstatic'
14018 else
14019 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14020 fi
14021 ;;
14022
14023 darwin* | rhapsody*)
14024 # PIC is the default on this platform
14025 # Common symbols not allowed in MH_DYLIB files
14026 lt_prog_compiler_pic='-fno-common'
14027 case $cc_basename in
14028 nagfor*)
14029 # NAG Fortran compiler
14030 lt_prog_compiler_wl='-Wl,-Wl,,'
14031 lt_prog_compiler_pic='-PIC'
14032 lt_prog_compiler_static='-Bstatic'
14033 ;;
14034 esac
14035 ;;
14036
14037 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14038 # This hack is so that the source file can tell whether it is being
14039 # built for inclusion in a dll (and should export symbols for example).
14040 lt_prog_compiler_pic='-DDLL_EXPORT'
14041 case $host_os in
14042 os2*)
14043 lt_prog_compiler_static='$wl-static'
14044 ;;
14045 esac
14046 ;;
14047
14048 hpux9* | hpux10* | hpux11*)
14049 lt_prog_compiler_wl='-Wl,'
14050 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14051 # not for PA HP-UX.
14052 case $host_cpu in
14053 hppa*64*|ia64*)
14054 # +Z the default
14055 ;;
14056 *)
14057 lt_prog_compiler_pic='+Z'
14058 ;;
14059 esac
14060 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14061 lt_prog_compiler_static='$wl-a ${wl}archive'
14062 ;;
14063
14064 irix5* | irix6* | nonstopux*)
14065 lt_prog_compiler_wl='-Wl,'
14066 # PIC (with -KPIC) is the default.
14067 lt_prog_compiler_static='-non_shared'
14068 ;;
14069
14070 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14071 case $cc_basename in
14072 # old Intel for x86_64, which still supported -KPIC.
14073 ecc*)
14074 lt_prog_compiler_wl='-Wl,'
14075 lt_prog_compiler_pic='-KPIC'
14076 lt_prog_compiler_static='-static'
14077 ;;
14078 *flang* | ftn | f18* | f95*)
14079 # Flang compiler.
14080 lt_prog_compiler_wl='-Wl,'
14081 lt_prog_compiler_pic='-fPIC'
14082 lt_prog_compiler_static='-static'
14083 ;;
14084 # icc used to be incompatible with GCC.
14085 # ICC 10 doesn't accept -KPIC any more.
14086 icc* | ifort*)
14087 lt_prog_compiler_wl='-Wl,'
14088 lt_prog_compiler_pic='-fPIC'
14089 lt_prog_compiler_static='-static'
14090 ;;
14091 # Lahey Fortran 8.1.
14092 lf95*)
14093 lt_prog_compiler_wl='-Wl,'
14094 lt_prog_compiler_pic='--shared'
14095 lt_prog_compiler_static='--static'
14096 ;;
14097 nagfor*)
14098 # NAG Fortran compiler
14099 lt_prog_compiler_wl='-Wl,-Wl,,'
14100 lt_prog_compiler_pic='-PIC'
14101 lt_prog_compiler_static='-Bstatic'
14102 ;;
14103 tcc*)
14104 # Fabrice Bellard et al's Tiny C Compiler
14105 lt_prog_compiler_wl='-Wl,'
14106 lt_prog_compiler_pic='-fPIC'
14107 lt_prog_compiler_static='-static'
14108 ;;
14109 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14110 # Portland Group compilers (*not* the Pentium gcc compiler,
14111 # which looks to be a dead project)
14112 lt_prog_compiler_wl='-Wl,'
14113 lt_prog_compiler_pic='-fpic'
14114 lt_prog_compiler_static='-Bstatic'
14115 ;;
14116 ccc*)
14117 lt_prog_compiler_wl='-Wl,'
14118 # All Alpha code is PIC.
14119 lt_prog_compiler_static='-non_shared'
14120 ;;
14121 xl* | bgxl* | bgf* | mpixl*)
14122 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14123 lt_prog_compiler_wl='-Wl,'
14124 lt_prog_compiler_pic='-qpic'
14125 lt_prog_compiler_static='-qstaticlink'
14126 ;;
14127 *)
14128 case `$CC -V 2>&1 | $SED 5q` in
14129 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14130 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14131 lt_prog_compiler_pic='-KPIC'
14132 lt_prog_compiler_static='-Bstatic'
14133 lt_prog_compiler_wl=''
14134 ;;
14135 *Sun\ F* | *Sun*Fortran*)
14136 lt_prog_compiler_pic='-KPIC'
14137 lt_prog_compiler_static='-Bstatic'
14138 lt_prog_compiler_wl='-Qoption ld '
14139 ;;
14140 *Sun\ C*)
14141 # Sun C 5.9
14142 lt_prog_compiler_pic='-KPIC'
14143 lt_prog_compiler_static='-Bstatic'
14144 lt_prog_compiler_wl='-Wl,'
14145 ;;
14146 *Intel*\ [CF]*Compiler*)
14147 lt_prog_compiler_wl='-Wl,'
14148 lt_prog_compiler_pic='-fPIC'
14149 lt_prog_compiler_static='-static'
14150 ;;
14151 *Portland\ Group*)
14152 lt_prog_compiler_wl='-Wl,'
14153 lt_prog_compiler_pic='-fpic'
14154 lt_prog_compiler_static='-Bstatic'
14155 ;;
14156 esac
14157 ;;
14158 esac
14159 ;;
14160
14161 newsos6)
14162 lt_prog_compiler_pic='-KPIC'
14163 lt_prog_compiler_static='-Bstatic'
14164 ;;
14165
14166 *-mlibc)
14167 lt_prog_compiler_wl='-Wl,'
14168 lt_prog_compiler_pic='-fPIC'
14169 lt_prog_compiler_static='-static'
14170 ;;
14171
14172 *nto* | *qnx*)
14173 # QNX uses GNU C++, but need to define -shared option too, otherwise
14174 # it will coredump.
14175 lt_prog_compiler_pic='-fPIC -shared'
14176 ;;
14177
14178 osf3* | osf4* | osf5*)
14179 lt_prog_compiler_wl='-Wl,'
14180 # All OSF/1 code is PIC.
14181 lt_prog_compiler_static='-non_shared'
14182 ;;
14183
14184 rdos*)
14185 lt_prog_compiler_static='-non_shared'
14186 ;;
14187
14188 serenity*)
14189 ;;
14190
14191 solaris*)
14192 lt_prog_compiler_pic='-KPIC'
14193 lt_prog_compiler_static='-Bstatic'
14194 case $cc_basename in
14195 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14196 lt_prog_compiler_wl='-Qoption ld ';;
14197 *)
14198 lt_prog_compiler_wl='-Wl,';;
14199 esac
14200 ;;
14201
14202 sunos4*)
14203 lt_prog_compiler_wl='-Qoption ld '
14204 lt_prog_compiler_pic='-PIC'
14205 lt_prog_compiler_static='-Bstatic'
14206 ;;
14207
14208 sysv4 | sysv4.2uw2* | sysv4.3*)
14209 lt_prog_compiler_wl='-Wl,'
14210 lt_prog_compiler_pic='-KPIC'
14211 lt_prog_compiler_static='-Bstatic'
14212 ;;
14213
14214 sysv4*MP*)
14215 if test -d /usr/nec; then
14216 lt_prog_compiler_pic='-Kconform_pic'
14217 lt_prog_compiler_static='-Bstatic'
14218 fi
14219 ;;
14220
14221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14222 lt_prog_compiler_wl='-Wl,'
14223 lt_prog_compiler_pic='-KPIC'
14224 lt_prog_compiler_static='-Bstatic'
14225 ;;
14226
14227 unicos*)
14228 lt_prog_compiler_wl='-Wl,'
14229 lt_prog_compiler_can_build_shared=no
14230 ;;
14231
14232 uts4*)
14233 lt_prog_compiler_pic='-pic'
14234 lt_prog_compiler_static='-Bstatic'
14235 ;;
14236
14237 *)
14238 lt_prog_compiler_can_build_shared=no
14239 ;;
14240 esac
14241 fi
14242
14243 case $host_os in
14244 # For platforms that do not support PIC, -DPIC is meaningless:
14245 *djgpp*)
14246 lt_prog_compiler_pic=
14247 ;;
14248 *)
14249 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14250 ;;
14251 esac
14252
14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14254 printf %s "checking for $compiler option to produce PIC... " >&6; }
14255 if test ${lt_cv_prog_compiler_pic+y}
14256 then :
14257 printf %s "(cached) " >&6
14258 else case e in #(
14259 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14260 esac
14261 fi
14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14263 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14264 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14265
14266 #
14267 # Check to make sure the PIC flag actually works.
14268 #
14269 if test -n "$lt_prog_compiler_pic"; then
14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14271 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14272 if test ${lt_cv_prog_compiler_pic_works+y}
14273 then :
14274 printf %s "(cached) " >&6
14275 else case e in #(
14276 e) lt_cv_prog_compiler_pic_works=no
14277 ac_outfile=conftest.$ac_objext
14278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14279 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14280 # Insert the option either (1) after the last *FLAGS variable, or
14281 # (2) before a word containing "conftest.", or (3) at the end.
14282 # Note that $ac_compile itself does not contain backslashes and begins
14283 # with a dollar sign (not a hyphen), so the echo should work correctly.
14284 # The option is referenced via a variable to avoid confusing sed.
14285 lt_compile=`echo "$ac_compile" | $SED \
14286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14288 -e 's:$: $lt_compiler_flag:'`
14289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14290 (eval "$lt_compile" 2>conftest.err)
14291 ac_status=$?
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 if (exit $ac_status) && test -s "$ac_outfile"; then
14295 # The compiler can only warn and ignore the option if not recognized
14296 # So say no if there are warnings other than the usual output.
14297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14300 lt_cv_prog_compiler_pic_works=yes
14301 fi
14302 fi
14303 $RM conftest*
14304 ;;
14305 esac
14306 fi
14307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14308 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14309
14310 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14311 case $lt_prog_compiler_pic in
14312 "" | " "*) ;;
14313 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14314 esac
14315 else
14316 lt_prog_compiler_pic=
14317 lt_prog_compiler_can_build_shared=no
14318 fi
14319
14320 fi
14321
14322
14323
14324
14325
14326 #
14327 # Check to make sure the static flag actually works.
14328 #
14329 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14331 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14332 if test ${lt_cv_prog_compiler_static_works+y}
14333 then :
14334 printf %s "(cached) " >&6
14335 else case e in #(
14336 e) lt_cv_prog_compiler_static_works=no
14337 save_LDFLAGS=$LDFLAGS
14338 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14339 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14340 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14341 # The linker can only warn and ignore the option if not recognized
14342 # So say no if there are warnings
14343 if test -s conftest.err; then
14344 # Append any errors to the config.log.
14345 cat conftest.err 1>&5
14346 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14348 if diff conftest.exp conftest.er2 >/dev/null; then
14349 lt_cv_prog_compiler_static_works=yes
14350 fi
14351 else
14352 lt_cv_prog_compiler_static_works=yes
14353 fi
14354 fi
14355 $RM -r conftest*
14356 LDFLAGS=$save_LDFLAGS
14357 ;;
14358 esac
14359 fi
14360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14361 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14362
14363 if test yes = "$lt_cv_prog_compiler_static_works"; then
14364 :
14365 else
14366 lt_prog_compiler_static=
14367 fi
14368
14369
14370
14371 ='-fPIC'
14372 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14373 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'
14374 archive_cmds_need_lc=no
14375 no_undefined_flag=
14376 ;;
14377
14378 *)
14379 dynamic_linker=no
14380 ;;
14381 esac
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14383 printf "%s\n" "$dynamic_linker" >&6; }
14384 test no = "$dynamic_linker" && can_build_shared=no
14385
14386 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14387 if test yes = "$GCC"; then
14388 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14389 fi
14390
14391 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14392 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14393 fi
14394
14395 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14396 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14397 fi
14398
14399 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14400 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14401
14402 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14403 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14404
14405 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14406 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14505 printf %s "checking how to hardcode library paths into programs... " >&6; }
14506 hardcode_action=
14507 if test -n "$hardcode_libdir_flag_spec" ||
14508 test -n "$runpath_var" ||
14509 test yes = "$hardcode_automatic"; then
14510
14511 # We can hardcode non-existent directories.
14512 if test no != "$hardcode_direct" &&
14513 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14514 # have to relink, otherwise we might link with an installed library
14515 # when we should be linking with a yet-to-be-installed one
14516 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14517 test no != "$hardcode_minus_L"; then
14518 # Linking always hardcodes the temporary library directory.
14519 hardcode_action=relink
14520 else
14521 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14522 hardcode_action=immediate
14523 fi
14524 else
14525 # We cannot hardcode anything, or else we can only hardcode existing
14526 # directories.
14527 hardcode_action=unsupported
14528 fi
14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14530 printf "%s\n" "$hardcode_action" >&6; }
14531
14532 if test relink = "$hardcode_action" ||
14533 test yes = "$inherit_rpath"; then
14534 # Fast installation is not supported
14535 enable_fast_install=no
14536 elif test yes = "$shlibpath_overrides_runpath" ||
14537 test no = "$enable_shared"; then
14538 # Fast installation is not necessary
14539 enable_fast_install=needless
14540 fi
14541
14542
14543
14544
14545
14546
14547 if test yes != "$enable_dlopen"; then
14548 enable_dlopen=unknown
14549 enable_dlopen_self=unknown
14550 enable_dlopen_self_static=unknown
14551 else
14552 lt_cv_dlopen=no
14553 lt_cv_dlopen_libs=
14554
14555 case $host_os in
14556 beos*)
14557 lt_cv_dlopen=load_add_on
14558 lt_cv_dlopen_libs=
14559 lt_cv_dlopen_self=yes
14560 ;;
14561
14562 mingw* | windows* | pw32* | cegcc*)
14563 lt_cv_dlopen=LoadLibrary
14564 lt_cv_dlopen_libs=
14565 ;;
14566
14567 cygwin*)
14568 lt_cv_dlopen=dlopen
14569 lt_cv_dlopen_libs=
14570 ;;
14571
14572 darwin*)
14573 # if libdl is installed we need to link against it
14574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14575 printf %s "checking for dlopen in -ldl... " >&6; }
14576 if test ${ac_cv_lib_dl_dlopen+y}
14577 then :
14578 printf %s "(cached) " >&6
14579 else case e in #(
14580 e) ac_check_lib_save_LIBS=$LIBS
14581 LIBS="-ldl $LIBS"
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584
14585 /* Override any GCC internal prototype to avoid an error.
14586 Use char because int might match the return type of a GCC
14587 builtin and then its argument prototype would still apply.
14588 The 'extern "C"' is for builds by C++ compilers;
14589 although this is not generally supported in C code supporting it here
14590 has little cost and some practical benefit (sr 110532). */
14591 #ifdef __cplusplus
14592 extern "C"
14593 #endif
14594 char dlopen (void);
14595 int
14596 main (void)
14597 {
14598 return dlopen ();
14599 ;
14600 return 0;
14601 }
14602 _ACEOF
14603 if ac_fn_c_try_link "$LINENO"
14604 then :
14605 ac_cv_lib_dl_dlopen=yes
14606 else case e in #(
14607 e) ac_cv_lib_dl_dlopen=no ;;
14608 esac
14609 fi
14610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14611 conftest$ac_exeext conftest.$ac_ext
14612 LIBS=$ac_check_lib_save_LIBS ;;
14613 esac
14614 fi
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14616 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14617 if test "x$ac_cv_lib_dl_dlopen" = xyes
14618 then :
14619 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14620 else case e in #(
14621 e)
14622 lt_cv_dlopen=dyld
14623 lt_cv_dlopen_libs=
14624 lt_cv_dlopen_self=yes
14625 ;;
14626 esac
14627 fi
14628
14629 ;;
14630
14631 tpf*)
14632 # Don't try to run any link tests for TPF. We know it's impossible
14633 # because TPF is a cross-compiler, and we know how we open DSOs.
14634 lt_cv_dlopen=dlopen
14635 lt_cv_dlopen_libs=
14636 lt_cv_dlopen_self=no
14637 ;;
14638
14639 *)
14640 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14641 if test "x$ac_cv_func_shl_load" = xyes
14642 then :
14643 lt_cv_dlopen=shl_load
14644 else case e in #(
14645 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14646 printf %s "checking for shl_load in -ldld... " >&6; }
14647 if test ${ac_cv_lib_dld_shl_load+y}
14648 then :
14649 printf %s "(cached) " >&6
14650 else case e in #(
14651 e) ac_check_lib_save_LIBS=$LIBS
14652 LIBS="-ldld $LIBS"
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14655
14656 /* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply.
14659 The 'extern "C"' is for builds by C++ compilers;
14660 although this is not generally supported in C code supporting it here
14661 has little cost and some practical benefit (sr 110532). */
14662 #ifdef __cplusplus
14663 extern "C"
14664 #endif
14665 char shl_load (void);
14666 int
14667 main (void)
14668 {
14669 return shl_load ();
14670 ;
14671 return 0;
14672 }
14673 _ACEOF
14674 if ac_fn_c_try_link "$LINENO"
14675 then :
14676 ac_cv_lib_dld_shl_load=yes
14677 else case e in #(
14678 e) ac_cv_lib_dld_shl_load=no ;;
14679 esac
14680 fi
14681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14682 conftest$ac_exeext conftest.$ac_ext
14683 LIBS=$ac_check_lib_save_LIBS ;;
14684 esac
14685 fi
14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14687 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14688 if test "x$ac_cv_lib_dld_shl_load" = xyes
14689 then :
14690 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14691 else case e in #(
14692 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14693 if test "x$ac_cv_func_dlopen" = xyes
14694 then :
14695 lt_cv_dlopen=dlopen
14696 else case e in #(
14697 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14698 printf %s "checking for dlopen in -ldl... " >&6; }
14699 if test ${ac_cv_lib_dl_dlopen+y}
14700 then :
14701 printf %s "(cached) " >&6
14702 else case e in #(
14703 e) ac_check_lib_save_LIBS=$LIBS
14704 LIBS="-ldl $LIBS"
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14707
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply.
14711 The 'extern "C"' is for builds by C++ compilers;
14712 although this is not generally supported in C code supporting it here
14713 has little cost and some practical benefit (sr 110532). */
14714 #ifdef __cplusplus
14715 extern "C"
14716 #endif
14717 char dlopen (void);
14718 int
14719 main (void)
14720 {
14721 return dlopen ();
14722 ;
14723 return 0;
14724 }
14725 _ACEOF
14726 if ac_fn_c_try_link "$LINENO"
14727 then :
14728 ac_cv_lib_dl_dlopen=yes
14729 else case e in #(
14730 e) ac_cv_lib_dl_dlopen=no ;;
14731 esac
14732 fi
14733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14734 conftest$ac_exeext conftest.$ac_ext
14735 LIBS=$ac_check_lib_save_LIBS ;;
14736 esac
14737 fi
14738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14739 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14740 if test "x$ac_cv_lib_dl_dlopen" = xyes
14741 then :
14742 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14743 else case e in #(
14744 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14745 printf %s "checking for dlopen in -lsvld... " >&6; }
14746 if test ${ac_cv_lib_svld_dlopen+y}
14747 then :
14748 printf %s "(cached) " >&6
14749 else case e in #(
14750 e) ac_check_lib_save_LIBS=$LIBS
14751 LIBS="-lsvld $LIBS"
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14754
14755 /* Override any GCC internal prototype to avoid an error.
14756 Use char because int might match the return type of a GCC
14757 builtin and then its argument prototype would still apply.
14758 The 'extern "C"' is for builds by C++ compilers;
14759 although this is not generally supported in C code supporting it here
14760 has little cost and some practical benefit (sr 110532). */
14761 #ifdef __cplusplus
14762 extern "C"
14763 #endif
14764 char dlopen (void);
14765 int
14766 main (void)
14767 {
14768 return dlopen ();
14769 ;
14770 return 0;
14771 }
14772 _ACEOF
14773 if ac_fn_c_try_link "$LINENO"
14774 then :
14775 ac_cv_lib_svld_dlopen=yes
14776 else case e in #(
14777 e) ac_cv_lib_svld_dlopen=no ;;
14778 esac
14779 fi
14780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14781 conftest$ac_exeext conftest.$ac_ext
14782 LIBS=$ac_check_lib_save_LIBS ;;
14783 esac
14784 fi
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14786 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14787 if test "x$ac_cv_lib_svld_dlopen" = xyes
14788 then :
14789 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14790 else case e in #(
14791 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14792 printf %s "checking for dld_link in -ldld... " >&6; }
14793 if test ${ac_cv_lib_dld_dld_link+y}
14794 then :
14795 printf %s "(cached) " >&6
14796 else case e in #(
14797 e) ac_check_lib_save_LIBS=$LIBS
14798 LIBS="-ldld $LIBS"
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14801
14802 /* Override any GCC internal prototype to avoid an error.
14803 Use char because int might match the return type of a GCC
14804 builtin and then its argument prototype would still apply.
14805 The 'extern "C"' is for builds by C++ compilers;
14806 although this is not generally supported in C code supporting it here
14807 has little cost and some practical benefit (sr 110532). */
14808 #ifdef __cplusplus
14809 extern "C"
14810 #endif
14811 char dld_link (void);
14812 int
14813 main (void)
14814 {
14815 return dld_link ();
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 if ac_fn_c_try_link "$LINENO"
14821 then :
14822 ac_cv_lib_dld_dld_link=yes
14823 else case e in #(
14824 e) ac_cv_lib_dld_dld_link=no ;;
14825 esac
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS ;;
14830 esac
14831 fi
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14833 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14834 if test "x$ac_cv_lib_dld_dld_link" = xyes
14835 then :
14836 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14837 fi
14838
14839 ;;
14840 esac
14841 fi
14842
14843 ;;
14844 esac
14845 fi
14846
14847 ;;
14848 esac
14849 fi
14850
14851 ;;
14852 esac
14853 fi
14854
14855 ;;
14856 esac
14857 fi
14858
14859 ;;
14860 esac
14861
14862 if test no = "$lt_cv_dlopen"; then
14863 enable_dlopen=no
14864 else
14865 enable_dlopen=yes
14866 fi
14867
14868 case $lt_cv_dlopen in
14869 dlopen)
14870 save_CPPFLAGS=$CPPFLAGS
14871 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14872
14873 save_LDFLAGS=$LDFLAGS
14874 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14875
14876 save_LIBS=$LIBS
14877 LIBS="$lt_cv_dlopen_libs $LIBS"
14878
14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14880 printf %s "checking whether a program can dlopen itself... " >&6; }
14881 if test ${lt_cv_dlopen_self+y}
14882 then :
14883 printf %s "(cached) " >&6
14884 else case e in #(
14885 e) if test yes = "$cross_compiling"; then :
14886 lt_cv_dlopen_self=cross
14887 else
14888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14889 lt_status=$lt_dlunknown
14890 cat > conftest.$ac_ext <<_LT_EOF
14891 #line $LINENO "configure"
14892 #include "confdefs.h"
14893
14894 #if HAVE_DLFCN_H
14895 #include <dlfcn.h>
14896 #endif
14897
14898 #include <stdio.h>
14899
14900 #ifdef RTLD_GLOBAL
14901 # define LT_DLGLOBAL RTLD_GLOBAL
14902 #else
14903 # ifdef DL_GLOBAL
14904 # define LT_DLGLOBAL DL_GLOBAL
14905 # else
14906 # define LT_DLGLOBAL 0
14907 # endif
14908 #endif
14909
14910 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14911 find out it does not work in some platform. */
14912 #ifndef LT_DLLAZY_OR_NOW
14913 # ifdef RTLD_LAZY
14914 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14915 # else
14916 # ifdef DL_LAZY
14917 # define LT_DLLAZY_OR_NOW DL_LAZY
14918 # else
14919 # ifdef RTLD_NOW
14920 # define LT_DLLAZY_OR_NOW RTLD_NOW
14921 # else
14922 # ifdef DL_NOW
14923 # define LT_DLLAZY_OR_NOW DL_NOW
14924 # else
14925 # define LT_DLLAZY_OR_NOW 0
14926 # endif
14927 # endif
14928 # endif
14929 # endif
14930 #endif
14931
14932 /* When -fvisibility=hidden is used, assume the code has been annotated
14933 correspondingly for the symbols needed. */
14934 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14935 int fnord (void) __attribute__((visibility("default")));
14936 #endif
14937
14938 int fnord (void) { return 42; }
14939 int main (void)
14940 {
14941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14942 int status = $lt_dlunknown;
14943
14944 if (self)
14945 {
14946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14947 else
14948 {
14949 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14950 else puts (dlerror ());
14951 }
14952 /* dlclose (self); */
14953 }
14954 else
14955 puts (dlerror ());
14956
14957 return status;
14958 }
14959 _LT_EOF
14960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14961 (eval $ac_link) 2>&5
14962 ac_status=$?
14963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14964 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14965 (./conftest; exit; ) >&5 2>/dev/null
14966 lt_status=$?
14967 case x$lt_status in
14968 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14969 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14970 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14971 esac
14972 else :
14973 # compilation failed
14974 lt_cv_dlopen_self=no
14975 fi
14976 fi
14977 rm -fr conftest*
14978
14979 ;;
14980 esac
14981 fi
14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14983 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14984
14985 if test yes = "$lt_cv_dlopen_self"; then
14986 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14988 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14989 if test ${lt_cv_dlopen_self_static+y}
14990 then :
14991 printf %s "(cached) " >&6
14992 else case e in #(
14993 e) if test yes = "$cross_compiling"; then :
14994 lt_cv_dlopen_self_static=cross
14995 else
14996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14997 lt_status=$lt_dlunknown
14998 cat > conftest.$ac_ext <<_LT_EOF
14999 #line $LINENO "configure"
15000 #include "confdefs.h"
15001
15002 #if HAVE_DLFCN_H
15003 #include <dlfcn.h>
15004 #endif
15005
15006 #include <stdio.h>
15007
15008 #ifdef RTLD_GLOBAL
15009 # define LT_DLGLOBAL RTLD_GLOBAL
15010 #else
15011 # ifdef DL_GLOBAL
15012 # define LT_DLGLOBAL DL_GLOBAL
15013 # else
15014 # define LT_DLGLOBAL 0
15015 # endif
15016 #endif
15017
15018 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15019 find out it does not work in some platform. */
15020 #ifndef LT_DLLAZY_OR_NOW
15021 # ifdef RTLD_LAZY
15022 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15023 # else
15024 # ifdef DL_LAZY
15025 # define LT_DLLAZY_OR_NOW DL_LAZY
15026 # else
15027 # ifdef RTLD_NOW
15028 # define LT_DLLAZY_OR_NOW RTLD_NOW
15029 # else
15030 # ifdef DL_NOW
15031 # define LT_DLLAZY_OR_NOW DL_NOW
15032 # else
15033 # define LT_DLLAZY_OR_NOW 0
15034 # endif
15035 # endif
15036 # endif
15037 # endif
15038 #endif
15039
15040 /* When -fvisibility=hidden is used, assume the code has been annotated
15041 correspondingly for the symbols needed. */
15042 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15043 int fnord (void) __attribute__((visibility("default")));
15044 #endif
15045
15046 int fnord (void) { return 42; }
15047 int main (void)
15048 {
15049 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15050 int status = $lt_dlunknown;
15051
15052 if (self)
15053 {
15054 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15055 else
15056 {
15057 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15058 else puts (dlerror ());
15059 }
15060 /* dlclose (self); */
15061 }
15062 else
15063 puts (dlerror ());
15064
15065 return status;
15066 }
15067 _LT_EOF
15068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15069 (eval $ac_link) 2>&5
15070 ac_status=$?
15071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15072 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15073 (./conftest; exit; ) >&5 2>/dev/null
15074 lt_status=$?
15075 case x$lt_status in
15076 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15077 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15078 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15079 esac
15080 else :
15081 # compilation failed
15082 lt_cv_dlopen_self_static=no
15083 fi
15084 fi
15085 rm -fr conftest*
15086
15087 ;;
15088 esac
15089 fi
15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15091 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15092 fi
15093
15094 CPPFLAGS=$save_CPPFLAGS
15095 LDFLAGS=$save_LDFLAGS
15096 LIBS=$save_LIBS
15097 ;;
15098 esac
15099
15100 case $lt_cv_dlopen_self in
15101 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15102 *) enable_dlopen_self=unknown ;;
15103 esac
15104
15105 case $lt_cv_dlopen_self_static in
15106 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15107 *) enable_dlopen_self_static=unknown ;;
15108 esac
15109 fi
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127 striplib=
15128 old_striplib=
15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15130 printf %s "checking whether stripping libraries is possible... " >&6; }
15131 if test -z "$STRIP"; then
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15133 printf "%s\n" "no" >&6; }
15134 else
15135 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15136 old_striplib="$STRIP --strip-debug"
15137 striplib="$STRIP --strip-unneeded"
15138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15139 printf "%s\n" "yes" >&6; }
15140 else
15141 case $host_os in
15142 darwin*)
15143 # FIXME - insert some real tests, host_os isn't really good enough
15144 striplib="$STRIP -x"
15145 old_striplib="$STRIP -S"
15146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15147 printf "%s\n" "yes" >&6; }
15148 ;;
15149 freebsd*)
15150 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15151 old_striplib="$STRIP --strip-debug"
15152 striplib="$STRIP --strip-unneeded"
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15154 printf "%s\n" "yes" >&6; }
15155 else
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 printf "%s\n" "no" >&6; }
15158 fi
15159 ;;
15160 *)
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162 printf "%s\n" "no" >&6; }
15163 ;;
15164 esac
15165 fi
15166 fi
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179 # Report what library types will actually be built
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15181 printf %s "checking if libtool supports shared libraries... " >&6; }
15182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15183 printf "%s\n" "$can_build_shared" >&6; }
15184
15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15186 printf %s "checking whether to build shared libraries... " >&6; }
15187 test no = "$can_build_shared" && enable_shared=no
15188
15189 # On AIX, shared libraries and static libraries use the same namespace, and
15190 # are all built from PIC.
15191 case $host_os in
15192 aix3*)
15193 test yes = "$enable_shared" && enable_static=no
15194 if test -n "$RANLIB"; then
15195 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15196 postinstall_cmds='$RANLIB $lib'
15197 fi
15198 ;;
15199
15200 aix[4-9]*)
15201 if test ia64 != "$host_cpu"; then
15202 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15203 yes,aix,yes) ;; # shared object as lib.so file only
15204 yes,svr4,*) ;; # shared object as lib.so archive member only
15205 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15206 esac
15207 fi
15208 ;;
15209 esac
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15211 printf "%s\n" "$enable_shared" >&6; }
15212
15213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15214 printf %s "checking whether to build static libraries... " >&6; }
15215 # Make sure either enable_shared or enable_static is yes.
15216 test yes = "$enable_shared" || enable_static=yes
15217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15218 printf "%s\n" "$enable_static" >&6; }
15219
15220
15221
15222
15223 fi
15224 ac_ext=c
15225 ac_cpp='$CPP $CPPFLAGS'
15226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15229
15230 CC=$lt_save_CC
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246 ac_config_commands="$ac_config_commands libtool"
15247
15248
15249
15250
15251 # Only expand once:
15252
15253
15254 # (end lt_init)
15255 # Check whether --enable-largefile was given.
15256 if test ${enable_largefile+y}
15257 then :
15258 enableval=$enable_largefile;
15259 fi
15260 if test "$enable_largefile,$enable_year2038" != no,no
15261 then :
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15263 printf %s "checking for $CC option to enable large file support... " >&6; }
15264 if test ${ac_cv_sys_largefile_opts+y}
15265 then :
15266 printf %s "(cached) " >&6
15267 else case e in #(
15268 e) ac_save_CC="$CC"
15269 ac_opt_found=no
15270 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15271 if test x"$ac_opt" != x"none needed"
15272 then :
15273 CC="$ac_save_CC $ac_opt"
15274 fi
15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15277 #include <sys/types.h>
15278 #ifndef FTYPE
15279 # define FTYPE off_t
15280 #endif
15281 /* Check that FTYPE can represent 2**63 - 1 correctly.
15282 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15283 since some C++ compilers masquerading as C compilers
15284 incorrectly reject 9223372036854775807. */
15285 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15286 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15287 && LARGE_FTYPE % 2147483647 == 1)
15288 ? 1 : -1];
15289 int
15290 main (void)
15291 {
15292
15293 ;
15294 return 0;
15295 }
15296 _ACEOF
15297 if ac_fn_c_try_compile "$LINENO"
15298 then :
15299 if test x"$ac_opt" = x"none needed"
15300 then :
15301 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15302 CC="$CC -DFTYPE=ino_t"
15303 if ac_fn_c_try_compile "$LINENO"
15304 then :
15305
15306 else case e in #(
15307 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15308 if ac_fn_c_try_compile "$LINENO"
15309 then :
15310 ac_opt='-D_FILE_OFFSET_BITS=64'
15311 fi
15312 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15313 esac
15314 fi
15315 rm -f core conftest.err conftest.$ac_objext conftest.beam
15316 fi
15317 ac_cv_sys_largefile_opts=$ac_opt
15318 ac_opt_found=yes
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15321 test $ac_opt_found = no || break
15322 done
15323 CC="$ac_save_CC"
15324
15325 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15326 esac
15327 fi
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15329 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15330
15331 ac_have_largefile=yes
15332 case $ac_cv_sys_largefile_opts in #(
15333 "none needed") :
15334 ;; #(
15335 "supported through gnulib") :
15336 ;; #(
15337 "support not detected") :
15338 ac_have_largefile=no ;; #(
15339 "-D_FILE_OFFSET_BITS=64") :
15340
15341 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15342 ;; #(
15343 "-D_LARGE_FILES=1") :
15344
15345 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15346 ;; #(
15347 "-n32") :
15348 CC="$CC -n32" ;; #(
15349 *) :
15350 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15351 esac
15352
15353 if test "$enable_year2038" != no
15354 then :
15355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15356 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15357 if test ${ac_cv_sys_year2038_opts+y}
15358 then :
15359 printf %s "(cached) " >&6
15360 else case e in #(
15361 e) ac_save_CPPFLAGS="$CPPFLAGS"
15362 ac_opt_found=no
15363 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
15364 if test x"$ac_opt" != x"none needed"
15365 then :
15366 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15367 fi
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15370
15371 #include <time.h>
15372 /* Check that time_t can represent 2**32 - 1 correctly. */
15373 #define LARGE_TIME_T \\
15374 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15375 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15376 && LARGE_TIME_T % 65537 == 0)
15377 ? 1 : -1];
15378
15379 int
15380 main (void)
15381 {
15382
15383 ;
15384 return 0;
15385 }
15386 _ACEOF
15387 if ac_fn_c_try_compile "$LINENO"
15388 then :
15389 ac_cv_sys_year2038_opts="$ac_opt"
15390 ac_opt_found=yes
15391 fi
15392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15393 test $ac_opt_found = no || break
15394 done
15395 CPPFLAGS="$ac_save_CPPFLAGS"
15396 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15397 esac
15398 fi
15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15400 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15401
15402 ac_have_year2038=yes
15403 case $ac_cv_sys_year2038_opts in #(
15404 "none needed") :
15405 ;; #(
15406 "support not detected") :
15407 ac_have_year2038=no ;; #(
15408 "-D_TIME_BITS=64") :
15409
15410 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15411 ;; #(
15412 "-D__MINGW_USE_VC2005_COMPAT") :
15413
15414 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15415 ;; #(
15416 "-U_USE_32_BIT_TIME_T"*) :
15417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15418 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15419 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15420 will stop working after mid-January 2038. Remove
15421 _USE_32BIT_TIME_T from the compiler flags.
15422 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15423 *) :
15424 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15425 esac
15426
15427 fi
15428
15429 fi
15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15431 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15432 if test ${ac_cv_func_fseeko_ftello+y}
15433 then :
15434 printf %s "(cached) " >&6
15435 else case e in #(
15436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15438
15439 #if defined __hpux && !defined _LARGEFILE_SOURCE
15440 # include <limits.h>
15441 # if LONG_MAX >> 31 == 0
15442 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15443 # endif
15444 #endif
15445 #include <sys/types.h> /* for off_t */
15446 #include <stdio.h>
15447
15448 int
15449 main (void)
15450 {
15451
15452 int (*fp1) (FILE *, off_t, int) = fseeko;
15453 off_t (*fp2) (FILE *) = ftello;
15454 return fseeko (stdin, 0, 0)
15455 && fp1 (stdin, 0, 0)
15456 && ftello (stdin) >= 0
15457 && fp2 (stdin) >= 0;
15458
15459 ;
15460 return 0;
15461 }
15462 _ACEOF
15463 if ac_fn_c_try_compile "$LINENO"
15464 then :
15465 ac_cv_func_fseeko_ftello=yes
15466 else case e in #(
15467 e) ac_save_CPPFLAGS="$CPPFLAGS"
15468 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15471
15472 #if defined __hpux && !defined _LARGEFILE_SOURCE
15473 # include <limits.h>
15474 # if LONG_MAX >> 31 == 0
15475 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15476 # endif
15477 #endif
15478 #include <sys/types.h> /* for off_t */
15479 #include <stdio.h>
15480
15481 int
15482 main (void)
15483 {
15484
15485 int (*fp1) (FILE *, off_t, int) = fseeko;
15486 off_t (*fp2) (FILE *) = ftello;
15487 return fseeko (stdin, 0, 0)
15488 && fp1 (stdin, 0, 0)
15489 && ftello (stdin) >= 0
15490 && fp2 (stdin) >= 0;
15491
15492 ;
15493 return 0;
15494 }
15495 _ACEOF
15496 if ac_fn_c_try_compile "$LINENO"
15497 then :
15498 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15499 else case e in #(
15500 e) ac_cv_func_fseeko_ftello=no ;;
15501 esac
15502 fi
15503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15504 esac
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15507 esac
15508 fi
15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15510 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15511 if test "$ac_cv_func_fseeko_ftello" != no
15512 then :
15513
15514 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15515
15516 fi
15517 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15518 then :
15519
15520 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15521
15522 fi
15523
15524 ac_header_dirent=no
15525 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15526 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15528 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15529 if eval test \${$as_ac_Header+y}
15530 then :
15531 printf %s "(cached) " >&6
15532 else case e in #(
15533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535 #include <sys/types.h>
15536 #include <$ac_hdr>
15537
15538 int
15539 main (void)
15540 {
15541 if ((DIR *) 0)
15542 return 0;
15543 ;
15544 return 0;
15545 }
15546 _ACEOF
15547 if ac_fn_c_try_compile "$LINENO"
15548 then :
15549 eval "$as_ac_Header=yes"
15550 else case e in #(
15551 e) eval "$as_ac_Header=no" ;;
15552 esac
15553 fi
15554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15555 esac
15556 fi
15557 eval ac_res=\$$as_ac_Header
15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15559 printf "%s\n" "$ac_res" >&6; }
15560 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15561 then :
15562 cat >>confdefs.h <<_ACEOF
15563 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15564 _ACEOF
15565
15566 ac_header_dirent=$ac_hdr; break
15567 fi
15568
15569 done
15570 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15571 if test $ac_header_dirent = dirent.h; then
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15573 printf %s "checking for library containing opendir... " >&6; }
15574 if test ${ac_cv_search_opendir+y}
15575 then :
15576 printf %s "(cached) " >&6
15577 else case e in #(
15578 e) ac_func_search_save_LIBS=$LIBS
15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15581
15582 /* Override any GCC internal prototype to avoid an error.
15583 Use char because int might match the return type of a GCC
15584 builtin and then its argument prototype would still apply.
15585 The 'extern "C"' is for builds by C++ compilers;
15586 although this is not generally supported in C code supporting it here
15587 has little cost and some practical benefit (sr 110532). */
15588 #ifdef __cplusplus
15589 extern "C"
15590 #endif
15591 char opendir (void);
15592 int
15593 main (void)
15594 {
15595 return opendir ();
15596 ;
15597 return 0;
15598 }
15599 _ACEOF
15600 for ac_lib in '' dir
15601 do
15602 if test -z "$ac_lib"; then
15603 ac_res="none required"
15604 else
15605 ac_res=-l$ac_lib
15606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15607 fi
15608 if ac_fn_c_try_link "$LINENO"
15609 then :
15610 ac_cv_search_opendir=$ac_res
15611 fi
15612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15613 conftest$ac_exeext
15614 if test ${ac_cv_search_opendir+y}
15615 then :
15616 break
15617 fi
15618 done
15619 if test ${ac_cv_search_opendir+y}
15620 then :
15621
15622 else case e in #(
15623 e) ac_cv_search_opendir=no ;;
15624 esac
15625 fi
15626 rm conftest.$ac_ext
15627 LIBS=$ac_func_search_save_LIBS ;;
15628 esac
15629 fi
15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15631 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15632 ac_res=$ac_cv_search_opendir
15633 if test "$ac_res" != no
15634 then :
15635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15636
15637 fi
15638
15639 else
15640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15641 printf %s "checking for library containing opendir... " >&6; }
15642 if test ${ac_cv_search_opendir+y}
15643 then :
15644 printf %s "(cached) " >&6
15645 else case e in #(
15646 e) ac_func_search_save_LIBS=$LIBS
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649
15650 /* Override any GCC internal prototype to avoid an error.
15651 Use char because int might match the return type of a GCC
15652 builtin and then its argument prototype would still apply.
15653 The 'extern "C"' is for builds by C++ compilers;
15654 although this is not generally supported in C code supporting it here
15655 has little cost and some practical benefit (sr 110532). */
15656 #ifdef __cplusplus
15657 extern "C"
15658 #endif
15659 char opendir (void);
15660 int
15661 main (void)
15662 {
15663 return opendir ();
15664 ;
15665 return 0;
15666 }
15667 _ACEOF
15668 for ac_lib in '' x
15669 do
15670 if test -z "$ac_lib"; then
15671 ac_res="none required"
15672 else
15673 ac_res=-l$ac_lib
15674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15675 fi
15676 if ac_fn_c_try_link "$LINENO"
15677 then :
15678 ac_cv_search_opendir=$ac_res
15679 fi
15680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15681 conftest$ac_exeext
15682 if test ${ac_cv_search_opendir+y}
15683 then :
15684 break
15685 fi
15686 done
15687 if test ${ac_cv_search_opendir+y}
15688 then :
15689
15690 else case e in #(
15691 e) ac_cv_search_opendir=no ;;
15692 esac
15693 fi
15694 rm conftest.$ac_ext
15695 LIBS=$ac_func_search_save_LIBS ;;
15696 esac
15697 fi
15698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15699 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15700 ac_res=$ac_cv_search_opendir
15701 if test "$ac_res" != no
15702 then :
15703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15704
15705 fi
15706
15707 fi
15708
15709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15710 printf %s "checking whether closedir returns void... " >&6; }
15711 if test ${ac_cv_func_closedir_void+y}
15712 then :
15713 printf %s "(cached) " >&6
15714 else case e in #(
15715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15717
15718 #include <$ac_header_dirent>
15719
15720 int
15721 main (void)
15722 {
15723
15724 return closedir(0);
15725
15726 ;
15727 return 0;
15728 }
15729 _ACEOF
15730 if ac_fn_c_try_compile "$LINENO"
15731 then :
15732 ac_cv_func_closedir_void=no
15733 else case e in #(
15734 e) ac_cv_func_closedir_void=yes ;;
15735 esac
15736 fi
15737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15738 esac
15739 fi
15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15741 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15742 if test $ac_cv_func_closedir_void = yes; then
15743
15744 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15745
15746 fi
15747
15748 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15749 if test "x$ac_cv_header_assert_h" = xyes
15750 then :
15751 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15752
15753 fi
15754 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15755 if test "x$ac_cv_header_float_h" = xyes
15756 then :
15757 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15758
15759 fi
15760 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15761 if test "x$ac_cv_header_limits_h" = xyes
15762 then :
15763 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15764
15765 fi
15766 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15767 if test "x$ac_cv_header_pwd_h" = xyes
15768 then :
15769 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15770
15771 fi
15772 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15773 if test "x$ac_cv_header_stdlib_h" = xyes
15774 then :
15775 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15776
15777 fi
15778 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15779 if test "x$ac_cv_header_sys_param_h" = xyes
15780 then :
15781 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15782
15783 fi
15784
15785 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15786 if test "x$ac_cv_func_putenv" = xyes
15787 then :
15788 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15789
15790 fi
15791
15792 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15793 if test "x$ac_cv_func_getcwd" = xyes
15794 then :
15795 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15796
15797 fi
15798 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15799 if test "x$ac_cv_func_memcmp" = xyes
15800 then :
15801 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15802
15803 fi
15804 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15805 if test "x$ac_cv_func_memcpy" = xyes
15806 then :
15807 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15808
15809 fi
15810 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15811 if test "x$ac_cv_func_mkstemp" = xyes
15812 then :
15813 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15814
15815 fi
15816 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15817 if test "x$ac_cv_func_mktemp" = xyes
15818 then :
15819 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15820
15821 fi
15822 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15823 if test "x$ac_cv_func_strchr" = xyes
15824 then :
15825 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15826
15827 fi
15828 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15829 if test "x$ac_cv_func_strrchr" = xyes
15830 then :
15831 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15832
15833 fi
15834
15835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15836 printf %s "checking for an ANSI C-conforming const... " >&6; }
15837 if test ${ac_cv_c_const+y}
15838 then :
15839 printf %s "(cached) " >&6
15840 else case e in #(
15841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843
15844 int
15845 main (void)
15846 {
15847
15848 #ifndef __cplusplus
15849 /* Ultrix mips cc rejects this sort of thing. */
15850 typedef int charset[2];
15851 const charset cs = { 0, 0 };
15852 /* SunOS 4.1.1 cc rejects this. */
15853 char const *const *pcpcc;
15854 char **ppc;
15855 /* NEC SVR4.0.2 mips cc rejects this. */
15856 struct point {int x, y;};
15857 static struct point const zero = {0,0};
15858 /* IBM XL C 1.02.0.0 rejects this.
15859 It does not let you subtract one const X* pointer from another in
15860 an arm of an if-expression whose if-part is not a constant
15861 expression */
15862 const char *g = "string";
15863 pcpcc = &g + (g ? g-g : 0);
15864 /* HPUX 7.0 cc rejects these. */
15865 ++pcpcc;
15866 ppc = (char**) pcpcc;
15867 pcpcc = (char const *const *) ppc;
15868 { /* SCO 3.2v4 cc rejects this sort of thing. */
15869 char tx;
15870 char *t = &tx;
15871 char const *s = 0 ? (char *) 0 : (char const *) 0;
15872
15873 *t++ = 0;
15874 if (s) return 0;
15875 }
15876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15877 int x[] = {25, 17};
15878 const int *foo = &x[0];
15879 ++foo;
15880 }
15881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15882 typedef const int *iptr;
15883 iptr p = 0;
15884 ++p;
15885 }
15886 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15887 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15888 struct s { int j; const int *ap[3]; } bx;
15889 struct s *b = &bx; b->j = 5;
15890 }
15891 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15892 const int foo = 10;
15893 if (!foo) return 0;
15894 }
15895 return !cs[0] && !zero.x;
15896 #endif
15897
15898 ;
15899 return 0;
15900 }
15901 _ACEOF
15902 if ac_fn_c_try_compile "$LINENO"
15903 then :
15904 ac_cv_c_const=yes
15905 else case e in #(
15906 e) ac_cv_c_const=no ;;
15907 esac
15908 fi
15909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15910 esac
15911 fi
15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15913 printf "%s\n" "$ac_cv_c_const" >&6; }
15914 if test $ac_cv_c_const = no; then
15915
15916 printf "%s\n" "#define const /**/" >>confdefs.h
15917
15918 fi
15919
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15921 printf %s "checking for inline... " >&6; }
15922 if test ${ac_cv_c_inline+y}
15923 then :
15924 printf %s "(cached) " >&6
15925 else case e in #(
15926 e) ac_cv_c_inline=no
15927 for ac_kw in inline __inline__ __inline; do
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15930 #ifndef __cplusplus
15931 typedef int foo_t;
15932 static $ac_kw foo_t static_foo (void) {return 0; }
15933 $ac_kw foo_t foo (void) {return 0; }
15934 #endif
15935
15936 _ACEOF
15937 if ac_fn_c_try_compile "$LINENO"
15938 then :
15939 ac_cv_c_inline=$ac_kw
15940 fi
15941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15942 test "$ac_cv_c_inline" != no && break
15943 done
15944 ;;
15945 esac
15946 fi
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15948 printf "%s\n" "$ac_cv_c_inline" >&6; }
15949
15950 case $ac_cv_c_inline in
15951 inline | yes) ;;
15952 *)
15953 case $ac_cv_c_inline in
15954 no) ac_val=;;
15955 *) ac_val=$ac_cv_c_inline;;
15956 esac
15957 cat >>confdefs.h <<_ACEOF
15958 #ifndef __cplusplus
15959 #define inline $ac_val
15960 #endif
15961 _ACEOF
15962 ;;
15963 esac
15964
15965 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15966 if test "x$ac_cv_type_size_t" = xyes
15967 then :
15968
15969 else case e in #(
15970 e)
15971 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15972 ;;
15973 esac
15974 fi
15975
15976 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15977 case $ac_cv_c_int64_t in #(
15978 no|yes) ;; #(
15979 *)
15980
15981 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15982 ;;
15983 esac
15984
15985 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15986 case $ac_cv_c_uint64_t in #(
15987 no|yes) ;; #(
15988 *)
15989
15990 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15991
15992
15993 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15994 ;;
15995 esac
15996
15997 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15998 *':no:'*) :
15999 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
16000 *) :
16001 ;;
16002 esac
16003 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
16004 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16005 if test "x$ac_cv_have_decl_isascii" = xyes
16006 then :
16007 ac_have_decl=1
16008 else case e in #(
16009 e) ac_have_decl=0 ;;
16010 esac
16011 fi
16012 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
16013
16014 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16015 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
16016 then :
16017
16018 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
16019
16020
16021 fi
16022
16023
16024 if test "x$host_alias" != x && test "x$build_alias" = x
16025 then :
16026 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
16027 fi
16028 eval kpse_build_alias=\${build_alias-$build}
16029
16030
16031 ## texk/xdvik/ac/xdvik.ac: configure.ac fragment for the TeX Live subdirectory texk/xdvik/
16032 ## configure options for xdvik
16033
16034 # Check whether --with-xdvi-x-toolkit was given.
16035 if test ${with_xdvi_x_toolkit+y}
16036 then :
16037 withval=$with_xdvi_x_toolkit;
16038 fi
16039
16040
16041
16042 # Reduce compiler warnings, there are just too many.
16043 WARNING_CFLAGS=`echo $WARNING_CFLAGS | sed -e 's/ -Wcast-qual/ /' -e 's/ -Wwrite-strings/ /'`
16044
16045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
16046 printf %s "checking for library containing pow... " >&6; }
16047 if test ${ac_cv_search_pow+y}
16048 then :
16049 printf %s "(cached) " >&6
16050 else case e in #(
16051 e) ac_func_search_save_LIBS=$LIBS
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16054
16055 /* Override any GCC internal prototype to avoid an error.
16056 Use char because int might match the return type of a GCC
16057 builtin and then its argument prototype would still apply.
16058 The 'extern "C"' is for builds by C++ compilers;
16059 although this is not generally supported in C code supporting it here
16060 has little cost and some practical benefit (sr 110532). */
16061 #ifdef __cplusplus
16062 extern "C"
16063 #endif
16064 char pow (void);
16065 int
16066 main (void)
16067 {
16068 return pow ();
16069 ;
16070 return 0;
16071 }
16072 _ACEOF
16073 for ac_lib in '' m
16074 do
16075 if test -z "$ac_lib"; then
16076 ac_res="none required"
16077 else
16078 ac_res=-l$ac_lib
16079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16080 fi
16081 if ac_fn_c_try_link "$LINENO"
16082 then :
16083 ac_cv_search_pow=$ac_res
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16086 conftest$ac_exeext
16087 if test ${ac_cv_search_pow+y}
16088 then :
16089 break
16090 fi
16091 done
16092 if test ${ac_cv_search_pow+y}
16093 then :
16094
16095 else case e in #(
16096 e) ac_cv_search_pow=no ;;
16097 esac
16098 fi
16099 rm conftest.$ac_ext
16100 LIBS=$ac_func_search_save_LIBS ;;
16101 esac
16102 fi
16103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
16104 printf "%s\n" "$ac_cv_search_pow" >&6; }
16105 ac_res=$ac_cv_search_pow
16106 if test "$ac_res" != no
16107 then :
16108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16109
16110 fi
16111
16112
16113
16114 # Check whether --with-ps was given.
16115 if test ${with_ps+y}
16116 then :
16117 withval=$with_ps;
16118 fi
16119
16120 case $with_ps in #(
16121 "" | yes | gs) :
16122 PS_DEF=-DPS_GS ;; #(
16123 no) :
16124 PS_DEF= ;; #(
16125 dps) :
16126 PS_DEF=-DPS_DPS ;; #(
16127 news) :
16128 PS_DEF=-DPS_NEWS ;; #(
16129 *) :
16130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown--with-ps argument \`$with_ps'; using gs." >&5
16131 printf "%s\n" "$as_me: WARNING: unknown--with-ps argument \`$with_ps'; using gs." >&2;}
16132 PS_DEF=-DPS_GS ;;
16133 esac
16134
16135
16136
16137 printf "%s\n" "#define GREY 1" >>confdefs.h
16138
16139
16140
16141 printf "%s\n" "#define COLOR 1" >>confdefs.h
16142
16143
16144
16145 printf "%s\n" "#define FREETYPE 1" >>confdefs.h
16146
16147
16148
16149 # Check whether --enable-a4 was given.
16150 if test ${enable_a4+y}
16151 then :
16152 enableval=$enable_a4;
16153 fi
16154
16155 if test "x$enable_a4" = xno
16156 then :
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabled a4/cm, using letter/in instead" >&5
16158 printf "%s\n" "$as_me: Disabled a4/cm, using letter/in instead" >&6;}
16159 else case e in #(
16160 e)
16161 printf "%s\n" "#define A4 1" >>confdefs.h
16162 ;;
16163 esac
16164 fi
16165
16166 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
16167
16168
16169
16170 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
16171 "
16172 if test "x$ac_cv_type_pid_t" = xyes
16173 then :
16174
16175 else case e in #(
16176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16178
16179 #if defined _WIN64 && !defined __CYGWIN__
16180 LLP64
16181 #endif
16182
16183 int
16184 main (void)
16185 {
16186
16187 ;
16188 return 0;
16189 }
16190
16191 _ACEOF
16192 if ac_fn_c_try_compile "$LINENO"
16193 then :
16194 ac_pid_type='int'
16195 else case e in #(
16196 e) ac_pid_type='__int64' ;;
16197 esac
16198 fi
16199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16200
16201 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
16202
16203 ;;
16204 esac
16205 fi
16206
16207
16208
16209 ac_func=
16210 for ac_item in $ac_func_c_list
16211 do
16212 if test $ac_func; then
16213 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
16214 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
16215 echo "#define $ac_item 1" >> confdefs.h
16216 fi
16217 ac_func=
16218 else
16219 ac_func=$ac_item
16220 fi
16221 done
16222
16223
16224
16225 if test "x$ac_cv_func_fork" = xyes; then
16226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16227 printf %s "checking for working fork... " >&6; }
16228 if test ${ac_cv_func_fork_works+y}
16229 then :
16230 printf %s "(cached) " >&6
16231 else case e in #(
16232 e) if test "$cross_compiling" = yes
16233 then :
16234 ac_cv_func_fork_works=cross
16235 else case e in #(
16236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237 /* end confdefs.h. */
16238 $ac_includes_default
16239 int
16240 main (void)
16241 {
16242
16243 /* By R. Kuhlmann. */
16244 return fork () < 0;
16245
16246 ;
16247 return 0;
16248 }
16249 _ACEOF
16250 if ac_fn_c_try_run "$LINENO"
16251 then :
16252 ac_cv_func_fork_works=yes
16253 else case e in #(
16254 e) ac_cv_func_fork_works=no ;;
16255 esac
16256 fi
16257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16258 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16259 esac
16260 fi
16261 ;;
16262 esac
16263 fi
16264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16265 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
16266
16267 else
16268 ac_cv_func_fork_works=$ac_cv_func_fork
16269 fi
16270 if test "x$ac_cv_func_fork_works" = xcross; then
16271 case $host in
16272 *-*-amigaos* | *-*-msdosdjgpp*)
16273 # Override, as these systems have only a dummy fork() stub
16274 ac_cv_func_fork_works=no
16275 ;;
16276 *)
16277 ac_cv_func_fork_works=yes
16278 ;;
16279 esac
16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16281 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16282 fi
16283 ac_cv_func_vfork_works=$ac_cv_func_vfork
16284 if test "x$ac_cv_func_vfork" = xyes; then
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16286 printf %s "checking for working vfork... " >&6; }
16287 if test ${ac_cv_func_vfork_works+y}
16288 then :
16289 printf %s "(cached) " >&6
16290 else case e in #(
16291 e) if test "$cross_compiling" = yes
16292 then :
16293 ac_cv_func_vfork_works=cross
16294 else case e in #(
16295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16297 /* Thanks to Paul Eggert for this test. */
16298 $ac_includes_default
16299 #include <signal.h>
16300 #include <sys/wait.h>
16301 #ifdef HAVE_VFORK_H
16302 # include <vfork.h>
16303 #endif
16304
16305 static void
16306 do_nothing (int sig)
16307 {
16308 (void) sig;
16309 }
16310
16311 /* On some sparc systems, changes by the child to local and incoming
16312 argument registers are propagated back to the parent. The compiler
16313 is told about this with #include <vfork.h>, but some compilers
16314 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16315 static variable whose address is put into a register that is
16316 clobbered by the vfork. */
16317 static void
16318 sparc_address_test (int arg)
16319 {
16320 static pid_t child;
16321 if (!child) {
16322 child = vfork ();
16323 if (child < 0) {
16324 perror ("vfork");
16325 _exit(2);
16326 }
16327 if (!child) {
16328 arg = getpid();
16329 write(-1, "", 0);
16330 _exit (arg);
16331 }
16332 }
16333 }
16334
16335 int
16336 main (void)
16337 {
16338 pid_t parent = getpid ();
16339 pid_t child;
16340
16341 sparc_address_test (0);
16342
16343 /* On Solaris 2.4, changes by the child to the signal handler
16344 also munge signal handlers in the parent. To detect this,
16345 start by putting the parent's handler in a known state. */
16346 signal (SIGTERM, SIG_DFL);
16347
16348 child = vfork ();
16349
16350 if (child == 0) {
16351 /* Here is another test for sparc vfork register problems. This
16352 test uses lots of local variables, at least as many local
16353 variables as main has allocated so far including compiler
16354 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16355 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16356 reuse the register of parent for one of the local variables,
16357 since it will think that parent can't possibly be used any more
16358 in this routine. Assigning to the local variable will thus
16359 munge parent in the parent process. */
16360 pid_t
16361 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16362 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16363 /* Convince the compiler that p..p7 are live; otherwise, it might
16364 use the same hardware register for all 8 local variables. */
16365 if (p != p1 || p != p2 || p != p3 || p != p4
16366 || p != p5 || p != p6 || p != p7)
16367 _exit(1);
16368
16369 /* Alter the child's signal handler. */
16370 if (signal (SIGTERM, do_nothing) != SIG_DFL)
16371 _exit(1);
16372
16373 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16374 from child file descriptors. If the child closes a descriptor
16375 before it execs or exits, this munges the parent's descriptor
16376 as well. Test for this by closing stdout in the child. */
16377 _exit(close(fileno(stdout)) != 0);
16378 } else {
16379 int status;
16380 struct stat st;
16381
16382 while (wait(&status) != child)
16383 ;
16384 return (
16385 /* Was there some problem with vforking? */
16386 child < 0
16387
16388 /* Did the child munge the parent's signal handler? */
16389 || signal (SIGTERM, SIG_DFL) != SIG_DFL
16390
16391 /* Did the child fail? (This shouldn't happen.) */
16392 || status
16393
16394 /* Did the vfork/compiler bug occur? */
16395 || parent != getpid()
16396
16397 /* Did the file descriptor bug occur? */
16398 || fstat(fileno(stdout), &st) != 0
16399 );
16400 }
16401 }
16402 _ACEOF
16403 if ac_fn_c_try_run "$LINENO"
16404 then :
16405 ac_cv_func_vfork_works=yes
16406 else case e in #(
16407 e) ac_cv_func_vfork_works=no ;;
16408 esac
16409 fi
16410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16411 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16412 esac
16413 fi
16414 ;;
16415 esac
16416 fi
16417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16418 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
16419
16420 fi;
16421 if test "x$ac_cv_func_fork_works" = xcross; then
16422 ac_cv_func_vfork_works=$ac_cv_func_vfork
16423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16424 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16425 fi
16426
16427 if test "x$ac_cv_func_vfork_works" = xyes; then
16428
16429 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16430
16431 else
16432
16433 printf "%s\n" "#define vfork fork" >>confdefs.h
16434
16435 fi
16436 if test "x$ac_cv_func_fork_works" = xyes; then
16437
16438 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
16439
16440 fi
16441
16442
16443
16444 if test "x$ac_cv_func_vprintf" = xno
16445 then :
16446 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16447 if test "x$ac_cv_func__doprnt" = xyes
16448 then :
16449
16450 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
16451
16452 fi
16453
16454 fi
16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working implementation of (v)snprintf()" >&5
16456 printf %s "checking for a working implementation of (v)snprintf()... " >&6; }
16457 if test ${xdvi_cv_func_good_vsnprintf+y}
16458 then :
16459 printf %s "(cached) " >&6
16460 else case e in #(
16461 e) if test "$cross_compiling" = yes
16462 then :
16463 xdvi_cv_func_good_vsnprintf=no # safe value for cross-compiling
16464 else case e in #(
16465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467
16468 #ifdef IRIX
16469 #define _XOPEN_SOURCE 500
16470 #endif
16471 #include <stdio.h>
16472 int
16473 main (void)
16474 {
16475 char s[2];
16476 int retval = snprintf(s, 2, "test");
16477 if (retval > -1 && retval != 4) /* neither negative nor desired size, not OK */
16478 return 1;
16479 ;
16480 return 0;
16481 }
16482 _ACEOF
16483 if ac_fn_c_try_run "$LINENO"
16484 then :
16485 xdvi_cv_func_good_vsnprintf=yes
16486 else case e in #(
16487 e) xdvi_cv_func_good_vsnprintf=no ;;
16488 esac
16489 fi
16490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16491 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16492 esac
16493 fi
16494 ;;
16495 esac
16496 fi
16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_func_good_vsnprintf" >&5
16498 printf "%s\n" "$xdvi_cv_func_good_vsnprintf" >&6; }
16499 if test "x$xdvi_cv_func_good_vsnprintf" = xyes; then
16500
16501 printf "%s\n" "#define HAVE_GOOD_VSNPRINTF 1" >>confdefs.h
16502
16503 fi
16504
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memicmp" >&5
16506 printf %s "checking for memicmp... " >&6; }
16507 if test ${xdvi_cv_memicmp+y}
16508 then :
16509 printf %s "(cached) " >&6
16510 else case e in #(
16511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <string.h>
16514 int
16515 main (void)
16516 {
16517 (void)memicmp((char *)NULL, (char *)NULL, 0);
16518 ;
16519 return 0;
16520 }
16521 _ACEOF
16522 if ac_fn_c_try_link "$LINENO"
16523 then :
16524 xdvi_cv_memicmp=yes
16525 else case e in #(
16526 e) xdvi_cv_memicmp=no ;;
16527 esac
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16530 conftest$ac_exeext conftest.$ac_ext ;;
16531 esac
16532 fi
16533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_memicmp" >&5
16534 printf "%s\n" "$xdvi_cv_memicmp" >&6; }
16535 if test "x$xdvi_cv_memicmp" = xyes; then
16536
16537 printf "%s\n" "#define HAVE_MEMICMP 1" >>confdefs.h
16538
16539 fi
16540
16541 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16542 # for constant arguments. Useless!
16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16544 printf %s "checking for working alloca.h... " >&6; }
16545 if test ${ac_cv_working_alloca_h+y}
16546 then :
16547 printf %s "(cached) " >&6
16548 else case e in #(
16549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h. */
16551 #include <alloca.h>
16552 int
16553 main (void)
16554 {
16555 char *p = (char *) alloca (2 * sizeof (int));
16556 if (p) return 0;
16557 ;
16558 return 0;
16559 }
16560 _ACEOF
16561 if ac_fn_c_try_link "$LINENO"
16562 then :
16563 ac_cv_working_alloca_h=yes
16564 else case e in #(
16565 e) ac_cv_working_alloca_h=no ;;
16566 esac
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16569 conftest$ac_exeext conftest.$ac_ext ;;
16570 esac
16571 fi
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16573 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
16574 if test $ac_cv_working_alloca_h = yes; then
16575
16576 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
16577
16578 fi
16579
16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16581 printf %s "checking for alloca... " >&6; }
16582 if test ${ac_cv_func_alloca_works+y}
16583 then :
16584 printf %s "(cached) " >&6
16585 else case e in #(
16586 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
16587 if test "$ac_cv_func_alloca_works" != yes
16588 then :
16589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590 /* end confdefs.h. */
16591 #include <stdlib.h>
16592 #include <stddef.h>
16593 #ifndef alloca
16594 # ifdef __GNUC__
16595 # define alloca __builtin_alloca
16596 # elif defined _MSC_VER
16597 # include <malloc.h>
16598 # define alloca _alloca
16599 # else
16600 # ifdef __cplusplus
16601 extern "C"
16602 # endif
16603 void *alloca (size_t);
16604 # endif
16605 #endif
16606
16607 int
16608 main (void)
16609 {
16610 char *p = (char *) alloca (1);
16611 if (p) return 0;
16612 ;
16613 return 0;
16614 }
16615 _ACEOF
16616 if ac_fn_c_try_link "$LINENO"
16617 then :
16618 ac_cv_func_alloca_works=yes
16619 fi
16620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16621 conftest$ac_exeext conftest.$ac_ext
16622 fi ;;
16623 esac
16624 fi
16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16626 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
16627
16628 if test $ac_cv_func_alloca_works = yes; then
16629
16630 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16631
16632 else
16633 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16634 # that cause trouble. Some versions do not even contain alloca or
16635 # contain a buggy version. If you still want to use their alloca,
16636 # use ar to extract alloca.o from them instead of compiling alloca.c.
16637
16638 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16639
16640 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
16641
16642
16643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16644 printf %s "checking stack direction for C alloca... " >&6; }
16645 if test ${ac_cv_c_stack_direction+y}
16646 then :
16647 printf %s "(cached) " >&6
16648 else case e in #(
16649 e) if test "$cross_compiling" = yes
16650 then :
16651 ac_cv_c_stack_direction=0
16652 else case e in #(
16653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655 $ac_includes_default
16656 int
16657 find_stack_direction (int *addr, int depth)
16658 {
16659 int dir, dummy = 0;
16660 if (! addr)
16661 addr = &dummy;
16662 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16663 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16664 return dir + dummy;
16665 }
16666
16667 int
16668 main (int argc, char **argv)
16669 {
16670 return find_stack_direction (0, argc + !argv + 20) < 0;
16671 }
16672 _ACEOF
16673 if ac_fn_c_try_run "$LINENO"
16674 then :
16675 ac_cv_c_stack_direction=1
16676 else case e in #(
16677 e) ac_cv_c_stack_direction=-1 ;;
16678 esac
16679 fi
16680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16681 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16682 esac
16683 fi
16684 ;;
16685 esac
16686 fi
16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16688 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
16689 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
16690
16691
16692 fi
16693
16694
16695 if test "$ac_prog_cc_stdc" != no; then
16696
16697 printf "%s\n" "#define HAVE_STRINGIZE 1" >>confdefs.h
16698
16699 fi
16700
16701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16702 printf %s "checking for working memcmp... " >&6; }
16703 if test ${ac_cv_func_memcmp_working+y}
16704 then :
16705 printf %s "(cached) " >&6
16706 else case e in #(
16707 e) if test "$cross_compiling" = yes
16708 then :
16709 ac_cv_func_memcmp_working=no
16710 else case e in #(
16711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16713 $ac_includes_default
16714 int
16715 main (void)
16716 {
16717
16718 /* Some versions of memcmp are not 8-bit clean. */
16719 char c0 = '\100', c1 = '\200', c2 = '\201';
16720 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16721 return 1;
16722
16723 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16724 or more and with at least one buffer not starting on a 4-byte boundary.
16725 William Lewis provided this test program. */
16726 {
16727 char foo[21];
16728 char bar[21];
16729 int i;
16730 for (i = 0; i < 4; i++)
16731 {
16732 char *a = foo + i;
16733 char *b = bar + i;
16734 strcpy (a, "--------01111111");
16735 strcpy (b, "--------10000000");
16736 if (memcmp (a, b, 16) >= 0)
16737 return 1;
16738 }
16739 return 0;
16740 }
16741
16742 ;
16743 return 0;
16744 }
16745 _ACEOF
16746 if ac_fn_c_try_run "$LINENO"
16747 then :
16748 ac_cv_func_memcmp_working=yes
16749 else case e in #(
16750 e) ac_cv_func_memcmp_working=no ;;
16751 esac
16752 fi
16753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16754 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16755 esac
16756 fi
16757 ;;
16758 esac
16759 fi
16760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16761 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
16762 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16763 *" memcmp.$ac_objext "* ) ;;
16764 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16765 ;;
16766 esac
16767
16768
16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16770 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16771 if test ${ac_cv_header_sys_wait_h+y}
16772 then :
16773 printf %s "(cached) " >&6
16774 else case e in #(
16775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16777 #include <sys/types.h>
16778 #include <sys/wait.h>
16779 #ifndef WEXITSTATUS
16780 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16781 #endif
16782 #ifndef WIFEXITED
16783 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16784 #endif
16785
16786 int
16787 main (void)
16788 {
16789 int s;
16790 wait (&s);
16791 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16792 ;
16793 return 0;
16794 }
16795 _ACEOF
16796 if ac_fn_c_try_compile "$LINENO"
16797 then :
16798 ac_cv_header_sys_wait_h=yes
16799 else case e in #(
16800 e) ac_cv_header_sys_wait_h=no ;;
16801 esac
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16804 esac
16805 fi
16806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16807 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
16808 if test $ac_cv_header_sys_wait_h = yes; then
16809
16810 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16811
16812 fi
16813
16814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16815 printf %s "checking return type of signal handlers... " >&6; }
16816 if test ${ac_cv_type_signal+y}
16817 then :
16818 printf %s "(cached) " >&6
16819 else case e in #(
16820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 #include <sys/types.h>
16823 #include <signal.h>
16824
16825 int
16826 main (void)
16827 {
16828 return *(signal (0, 0)) (0) == 1;
16829 ;
16830 return 0;
16831 }
16832 _ACEOF
16833 if ac_fn_c_try_compile "$LINENO"
16834 then :
16835 ac_cv_type_signal=int
16836 else case e in #(
16837 e) ac_cv_type_signal=void ;;
16838 esac
16839 fi
16840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16841 esac
16842 fi
16843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16844 printf "%s\n" "$ac_cv_type_signal" >&6; }
16845
16846 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
16847
16848
16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16850 printf %s "checking whether byte ordering is bigendian... " >&6; }
16851 if test ${ac_cv_c_bigendian+y}
16852 then :
16853 printf %s "(cached) " >&6
16854 else case e in #(
16855 e) ac_cv_c_bigendian=unknown
16856 # See if we're dealing with a universal compiler.
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859 #ifndef __APPLE_CC__
16860 not a universal capable compiler
16861 #endif
16862 typedef int dummy;
16863
16864 _ACEOF
16865 if ac_fn_c_try_compile "$LINENO"
16866 then :
16867
16868 # Check for potential -arch flags. It is not universal unless
16869 # there are at least two -arch flags with different values.
16870 ac_arch=
16871 ac_prev=
16872 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16873 if test -n "$ac_prev"; then
16874 case $ac_word in
16875 i?86 | x86_64 | ppc | ppc64)
16876 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16877 ac_arch=$ac_word
16878 else
16879 ac_cv_c_bigendian=universal
16880 break
16881 fi
16882 ;;
16883 esac
16884 ac_prev=
16885 elif test "x$ac_word" = "x-arch"; then
16886 ac_prev=arch
16887 fi
16888 done
16889 fi
16890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16891 if test $ac_cv_c_bigendian = unknown; then
16892 # See if sys/param.h defines the BYTE_ORDER macro.
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16895 #include <sys/types.h>
16896 #include <sys/param.h>
16897
16898 int
16899 main (void)
16900 {
16901 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
16902 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
16903 && LITTLE_ENDIAN)
16904 bogus endian macros
16905 #endif
16906
16907 ;
16908 return 0;
16909 }
16910 _ACEOF
16911 if ac_fn_c_try_compile "$LINENO"
16912 then :
16913 # It does; now see whether it defined to BIG_ENDIAN or not.
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16916 #include <sys/types.h>
16917 #include <sys/param.h>
16918
16919 int
16920 main (void)
16921 {
16922 #if BYTE_ORDER != BIG_ENDIAN
16923 not big endian
16924 #endif
16925
16926 ;
16927 return 0;
16928 }
16929 _ACEOF
16930 if ac_fn_c_try_compile "$LINENO"
16931 then :
16932 ac_cv_c_bigendian=yes
16933 else case e in #(
16934 e) ac_cv_c_bigendian=no ;;
16935 esac
16936 fi
16937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16938 fi
16939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16940 fi
16941 if test $ac_cv_c_bigendian = unknown; then
16942 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944 /* end confdefs.h. */
16945 #include <limits.h>
16946
16947 int
16948 main (void)
16949 {
16950 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16951 bogus endian macros
16952 #endif
16953
16954 ;
16955 return 0;
16956 }
16957 _ACEOF
16958 if ac_fn_c_try_compile "$LINENO"
16959 then :
16960 # It does; now see whether it defined to _BIG_ENDIAN or not.
16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16963 #include <limits.h>
16964
16965 int
16966 main (void)
16967 {
16968 #ifndef _BIG_ENDIAN
16969 not big endian
16970 #endif
16971
16972 ;
16973 return 0;
16974 }
16975 _ACEOF
16976 if ac_fn_c_try_compile "$LINENO"
16977 then :
16978 ac_cv_c_bigendian=yes
16979 else case e in #(
16980 e) ac_cv_c_bigendian=no ;;
16981 esac
16982 fi
16983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16984 fi
16985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16986 fi
16987 if test $ac_cv_c_bigendian = unknown; then
16988 # Compile a test program.
16989 if test "$cross_compiling" = yes
16990 then :
16991 # Try to guess by grepping values from an object file.
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16994 unsigned short int ascii_mm[] =
16995 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16996 unsigned short int ascii_ii[] =
16997 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16998 int use_ascii (int i) {
16999 return ascii_mm[i] + ascii_ii[i];
17000 }
17001 unsigned short int ebcdic_ii[] =
17002 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17003 unsigned short int ebcdic_mm[] =
17004 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17005 int use_ebcdic (int i) {
17006 return ebcdic_mm[i] + ebcdic_ii[i];
17007 }
17008 int
17009 main (int argc, char **argv)
17010 {
17011 /* Intimidate the compiler so that it does not
17012 optimize the arrays away. */
17013 char *p = argv[0];
17014 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
17015 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
17016 return use_ascii (argc) == use_ebcdic (*p);
17017 }
17018 _ACEOF
17019 if ac_fn_c_try_link "$LINENO"
17020 then :
17021 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
17022 ac_cv_c_bigendian=yes
17023 fi
17024 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
17025 if test "$ac_cv_c_bigendian" = unknown; then
17026 ac_cv_c_bigendian=no
17027 else
17028 # finding both strings is unlikely to happen, but who knows?
17029 ac_cv_c_bigendian=unknown
17030 fi
17031 fi
17032 fi
17033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17034 conftest$ac_exeext conftest.$ac_ext
17035 else case e in #(
17036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17038 $ac_includes_default
17039 int
17040 main (void)
17041 {
17042
17043 /* Are we little or big endian? From Harbison&Steele. */
17044 union
17045 {
17046 long int l;
17047 char c[sizeof (long int)];
17048 } u;
17049 u.l = 1;
17050 return u.c[sizeof (long int) - 1] == 1;
17051
17052 ;
17053 return 0;
17054 }
17055 _ACEOF
17056 if ac_fn_c_try_run "$LINENO"
17057 then :
17058 ac_cv_c_bigendian=no
17059 else case e in #(
17060 e) ac_cv_c_bigendian=yes ;;
17061 esac
17062 fi
17063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17064 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17065 esac
17066 fi
17067
17068 fi ;;
17069 esac
17070 fi
17071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17072 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
17073 case $ac_cv_c_bigendian in #(
17074 yes)
17075 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
17076 ;; #(
17077 no)
17078 ;; #(
17079 universal)
17080
17081 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17082
17083 ;; #(
17084 *)
17085 as_fn_error $? "unknown endianness
17086 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17087 esac
17088
17089 ac_ext=c
17090 ac_cpp='$CPP $CPPFLAGS'
17091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17095 printf %s "checking how to run the C preprocessor... " >&6; }
17096 # On Suns, sometimes $CPP names a directory.
17097 if test -n "$CPP" && test -d "$CPP"; then
17098 CPP=
17099 fi
17100 if test -z "$CPP"; then
17101 if test ${ac_cv_prog_CPP+y}
17102 then :
17103 printf %s "(cached) " >&6
17104 else case e in #(
17105 e) # Double quotes because $CC needs to be expanded
17106 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
17107 do
17108 ac_preproc_ok=false
17109 for ac_c_preproc_warn_flag in '' yes
17110 do
17111 # Use a header file that comes with gcc, so configuring glibc
17112 # with a fresh cross-compiler works.
17113 # On the NeXT, cc -E runs the code through the compiler's parser,
17114 # not just through cpp. "Syntax error" is here to catch this case.
17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17117 #include <limits.h>
17118 Syntax error
17119 _ACEOF
17120 if ac_fn_c_try_cpp "$LINENO"
17121 then :
17122
17123 else case e in #(
17124 e) # Broken: fails on valid input.
17125 continue ;;
17126 esac
17127 fi
17128 rm -f conftest.err conftest.i conftest.$ac_ext
17129
17130 # OK, works on sane cases. Now check whether nonexistent headers
17131 # can be detected and how.
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17134 #include <ac_nonexistent.h>
17135 _ACEOF
17136 if ac_fn_c_try_cpp "$LINENO"
17137 then :
17138 # Broken: success on invalid input.
17139 continue
17140 else case e in #(
17141 e) # Passes both tests.
17142 ac_preproc_ok=:
17143 break ;;
17144 esac
17145 fi
17146 rm -f conftest.err conftest.i conftest.$ac_ext
17147
17148 done
17149 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17150 rm -f conftest.i conftest.err conftest.$ac_ext
17151 if $ac_preproc_ok
17152 then :
17153 break
17154 fi
17155
17156 done
17157 ac_cv_prog_CPP=$CPP
17158 ;;
17159 esac
17160 fi
17161 CPP=$ac_cv_prog_CPP
17162 else
17163 ac_cv_prog_CPP=$CPP
17164 fi
17165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
17166 printf "%s\n" "$CPP" >&6; }
17167 ac_preproc_ok=false
17168 for ac_c_preproc_warn_flag in '' yes
17169 do
17170 # Use a header file that comes with gcc, so configuring glibc
17171 # with a fresh cross-compiler works.
17172 # On the NeXT, cc -E runs the code through the compiler's parser,
17173 # not just through cpp. "Syntax error" is here to catch this case.
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17176 #include <limits.h>
17177 Syntax error
17178 _ACEOF
17179 if ac_fn_c_try_cpp "$LINENO"
17180 then :
17181
17182 else case e in #(
17183 e) # Broken: fails on valid input.
17184 continue ;;
17185 esac
17186 fi
17187 rm -f conftest.err conftest.i conftest.$ac_ext
17188
17189 # OK, works on sane cases. Now check whether nonexistent headers
17190 # can be detected and how.
17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h. */
17193 #include <ac_nonexistent.h>
17194 _ACEOF
17195 if ac_fn_c_try_cpp "$LINENO"
17196 then :
17197 # Broken: success on invalid input.
17198 continue
17199 else case e in #(
17200 e) # Passes both tests.
17201 ac_preproc_ok=:
17202 break ;;
17203 esac
17204 fi
17205 rm -f conftest.err conftest.i conftest.$ac_ext
17206
17207 done
17208 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17209 rm -f conftest.i conftest.err conftest.$ac_ext
17210 if $ac_preproc_ok
17211 then :
17212
17213 else case e in #(
17214 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17215 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17216 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
17217 See 'config.log' for more details" "$LINENO" 5; } ;;
17218 esac
17219 fi
17220
17221 ac_ext=c
17222 ac_cpp='$CPP $CPPFLAGS'
17223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17226
17227
17228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17229 printf %s "checking for X... " >&6; }
17230
17231
17232 # Check whether --with-x was given.
17233 if test ${with_x+y}
17234 then :
17235 withval=$with_x;
17236 fi
17237
17238 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
17239 if test "x$with_x" = xno; then
17240 # The user explicitly disabled X.
17241 have_x=disabled
17242 else
17243 case $x_includes,$x_libraries in #(
17244 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
17245 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
17246 then :
17247 printf %s "(cached) " >&6
17248 else case e in #(
17249 e) # One or both of the vars are not set, and there is no cached value.
17250 ac_x_includes=no
17251 ac_x_libraries=no
17252 # Do we need to do anything special at all?
17253 ac_save_LIBS=$LIBS
17254 LIBS="-lX11 $LIBS"
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 #include <X11/Xlib.h>
17258 int
17259 main (void)
17260 {
17261 XrmInitialize ()
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"
17267 then :
17268 # We can compile and link X programs with no special options.
17269 ac_x_includes=
17270 ac_x_libraries=
17271 fi
17272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17273 conftest$ac_exeext conftest.$ac_ext
17274 LIBS="$ac_save_LIBS"
17275 # If that didn't work, only try xmkmf and file system searches
17276 # for native compilation.
17277 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
17278 then :
17279 rm -f -r conftest.dir
17280 if mkdir conftest.dir; then
17281 cd conftest.dir
17282 cat >Imakefile <<'_ACEOF'
17283 incroot:
17284 @echo incroot='${INCROOT}'
17285 usrlibdir:
17286 @echo usrlibdir='${USRLIBDIR}'
17287 libdir:
17288 @echo libdir='${LIBDIR}'
17289 _ACEOF
17290 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17291 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17292 for ac_var in incroot usrlibdir libdir; do
17293 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17294 done
17295 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17296 for ac_extension in a so sl dylib la dll; do
17297 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17298 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17299 ac_im_usrlibdir=$ac_im_libdir; break
17300 fi
17301 done
17302 # Screen out bogus values from the imake configuration. They are
17303 # bogus both because they are the default anyway, and because
17304 # using them would break gcc on systems where it needs fixed includes.
17305 case $ac_im_incroot in
17306 /usr/include) ac_x_includes= ;;
17307 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17308 esac
17309 case $ac_im_usrlibdir in
17310 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17311 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17312 esac
17313 fi
17314 cd ..
17315 rm -f -r conftest.dir
17316 fi
17317
17318 # Standard set of common directories for X headers.
17319 # Check X11 before X11Rn because it is often a symlink to the current release.
17320 ac_x_header_dirs='
17321 /usr/X11/include
17322 /usr/X11R7/include
17323 /usr/X11R6/include
17324 /usr/X11R5/include
17325 /usr/X11R4/include
17326
17327 /usr/include/X11
17328 /usr/include/X11R7
17329 /usr/include/X11R6
17330 /usr/include/X11R5
17331 /usr/include/X11R4
17332
17333 /usr/local/X11/include
17334 /usr/local/X11R7/include
17335 /usr/local/X11R6/include
17336 /usr/local/X11R5/include
17337 /usr/local/X11R4/include
17338
17339 /usr/local/include/X11
17340 /usr/local/include/X11R7
17341 /usr/local/include/X11R6
17342 /usr/local/include/X11R5
17343 /usr/local/include/X11R4
17344
17345 /opt/X11/include
17346
17347 /usr/X386/include
17348 /usr/x386/include
17349 /usr/XFree86/include/X11
17350
17351 /usr/include
17352 /usr/local/include
17353 /usr/unsupported/include
17354 /usr/athena/include
17355 /usr/local/x11r5/include
17356 /usr/lpp/Xamples/include
17357
17358 /usr/openwin/include
17359 /usr/openwin/share/include'
17360
17361 if test "$ac_x_includes" = no; then
17362 # Guess where to find include files, by looking for Xlib.h.
17363 # First, try using that file with no special directory specified.
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17366 #include <X11/Xlib.h>
17367 _ACEOF
17368 if ac_fn_c_try_cpp "$LINENO"
17369 then :
17370 # We can compile using X headers with no special include directory.
17371 ac_x_includes=
17372 else case e in #(
17373 e) for ac_dir in $ac_x_header_dirs; do
17374 if test -r "$ac_dir/X11/Xlib.h"; then
17375 ac_x_includes=$ac_dir
17376 break
17377 fi
17378 done ;;
17379 esac
17380 fi
17381 rm -f conftest.err conftest.i conftest.$ac_ext
17382 fi # $ac_x_includes = no
17383
17384 if test "$ac_x_libraries" = no; then
17385 # Check for the libraries.
17386 # See if we find them without any special options.
17387 # Don't add to $LIBS permanently.
17388 ac_save_LIBS=$LIBS
17389 LIBS="-lX11 $LIBS"
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17392 #include <X11/Xlib.h>
17393 int
17394 main (void)
17395 {
17396 XrmInitialize ()
17397 ;
17398 return 0;
17399 }
17400 _ACEOF
17401 if ac_fn_c_try_link "$LINENO"
17402 then :
17403 LIBS=$ac_save_LIBS
17404 # We can link X programs with no special library path.
17405 ac_x_libraries=
17406 else case e in #(
17407 e) LIBS=$ac_save_LIBS
17408 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17409 do
17410 # Don't even attempt the hair of trying to link an X program!
17411 for ac_extension in a so sl dylib la dll; do
17412 if test -r "$ac_dir/libX11.$ac_extension"; then
17413 ac_x_libraries=$ac_dir
17414 break 2
17415 fi
17416 done
17417 done ;;
17418 esac
17419 fi
17420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17421 conftest$ac_exeext conftest.$ac_ext
17422 fi # $ac_x_libraries = no
17423
17424 fi
17425 # Record the results.
17426 case $ac_x_includes,$ac_x_libraries in #(
17427 no,* | *,no | *\'*) :
17428 # Didn't find X, or a directory has "'" in its name.
17429 ac_cv_have_x="have_x=no" ;; #(
17430 *) :
17431 # Record where we found X for the cache.
17432 ac_cv_have_x="have_x=yes\
17433 ac_x_includes='$ac_x_includes'\
17434 ac_x_libraries='$ac_x_libraries'" ;;
17435 esac ;;
17436 esac
17437 fi
17438 ;; #(
17439 *) have_x=yes;;
17440 esac
17441 eval "$ac_cv_have_x"
17442 fi # $with_x != no
17443
17444 if test "$have_x" != yes; then
17445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17446 printf "%s\n" "$have_x" >&6; }
17447 no_x=yes
17448 else
17449 # If each of the values was on the command line, it overrides each guess.
17450 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17451 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17452 # Update the cache value to reflect the command line values.
17453 ac_cv_have_x="have_x=yes\
17454 ac_x_includes='$x_includes'\
17455 ac_x_libraries='$x_libraries'"
17456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17457 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
17458 fi
17459
17460 if test "$no_x" = yes; then
17461 # Not all programs may use this symbol, but it does not hurt to define it.
17462
17463 printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
17464
17465 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17466 else
17467 if test -n "$x_includes"; then
17468 X_CFLAGS="$X_CFLAGS -I$x_includes"
17469 fi
17470
17471 # It would also be nice to do this for all -L options, not just this one.
17472 if test -n "$x_libraries"; then
17473 X_LIBS="$X_LIBS -L$x_libraries"
17474 # For Solaris; some versions of Sun CC require a space after -R and
17475 # others require no space. Words are not sufficient . . . .
17476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
17477 printf %s "checking whether -R must be followed by a space... " >&6; }
17478 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17479 ac_xsave_c_werror_flag=$ac_c_werror_flag
17480 ac_c_werror_flag=yes
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17483
17484 int
17485 main (void)
17486 {
17487
17488 ;
17489 return 0;
17490 }
17491 _ACEOF
17492 if ac_fn_c_try_link "$LINENO"
17493 then :
17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17495 printf "%s\n" "no" >&6; }
17496 X_LIBS="$X_LIBS -R$x_libraries"
17497 else case e in #(
17498 e) LIBS="$ac_xsave_LIBS -R $x_libraries"
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17501
17502 int
17503 main (void)
17504 {
17505
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_link "$LINENO"
17511 then :
17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17513 printf "%s\n" "yes" >&6; }
17514 X_LIBS="$X_LIBS -R $x_libraries"
17515 else case e in #(
17516 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
17517 printf "%s\n" "neither works" >&6; } ;;
17518 esac
17519 fi
17520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17521 conftest$ac_exeext conftest.$ac_ext ;;
17522 esac
17523 fi
17524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17525 conftest$ac_exeext conftest.$ac_ext
17526 ac_c_werror_flag=$ac_xsave_c_werror_flag
17527 LIBS=$ac_xsave_LIBS
17528 fi
17529
17530 # Check for system-dependent libraries X programs must link with.
17531 # Do this before checking for the system-independent R6 libraries
17532 # (-lICE), since we may need -lsocket or whatever for X linking.
17533
17534 if test "$ISC" = yes; then
17535 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17536 else
17537 # Martyn Johnson says this is needed for Ultrix, if the X
17538 # libraries were built with DECnet support. And Karl Berry says
17539 # the Alpha needs dnet_stub (dnet does not exist).
17540 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17543
17544 /* Override any GCC internal prototype to avoid an error.
17545 Use char because int might match the return type of a GCC
17546 builtin and then its argument prototype would still apply.
17547 The 'extern "C"' is for builds by C++ compilers;
17548 although this is not generally supported in C code supporting it here
17549 has little cost and some practical benefit (sr 110532). */
17550 #ifdef __cplusplus
17551 extern "C"
17552 #endif
17553 char XOpenDisplay (void);
17554 int
17555 main (void)
17556 {
17557 return XOpenDisplay ();
17558 ;
17559 return 0;
17560 }
17561 _ACEOF
17562 if ac_fn_c_try_link "$LINENO"
17563 then :
17564
17565 else case e in #(
17566 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17567 printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
17568 if test ${ac_cv_lib_dnet_dnet_ntoa+y}
17569 then :
17570 printf %s "(cached) " >&6
17571 else case e in #(
17572 e) ac_check_lib_save_LIBS=$LIBS
17573 LIBS="-ldnet $LIBS"
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17576
17577 /* Override any GCC internal prototype to avoid an error.
17578 Use char because int might match the return type of a GCC
17579 builtin and then its argument prototype would still apply.
17580 The 'extern "C"' is for builds by C++ compilers;
17581 although this is not generally supported in C code supporting it here
17582 has little cost and some practical benefit (sr 110532). */
17583 #ifdef __cplusplus
17584 extern "C"
17585 #endif
17586 char dnet_ntoa (void);
17587 int
17588 main (void)
17589 {
17590 return dnet_ntoa ();
17591 ;
17592 return 0;
17593 }
17594 _ACEOF
17595 if ac_fn_c_try_link "$LINENO"
17596 then :
17597 ac_cv_lib_dnet_dnet_ntoa=yes
17598 else case e in #(
17599 e) ac_cv_lib_dnet_dnet_ntoa=no ;;
17600 esac
17601 fi
17602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17603 conftest$ac_exeext conftest.$ac_ext
17604 LIBS=$ac_check_lib_save_LIBS ;;
17605 esac
17606 fi
17607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17608 printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17609 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
17610 then :
17611 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17612 fi
17613
17614 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
17616 printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
17617 if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
17618 then :
17619 printf %s "(cached) " >&6
17620 else case e in #(
17621 e) ac_check_lib_save_LIBS=$LIBS
17622 LIBS="-ldnet_stub $LIBS"
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17625
17626 /* Override any GCC internal prototype to avoid an error.
17627 Use char because int might match the return type of a GCC
17628 builtin and then its argument prototype would still apply.
17629 The 'extern "C"' is for builds by C++ compilers;
17630 although this is not generally supported in C code supporting it here
17631 has little cost and some practical benefit (sr 110532). */
17632 #ifdef __cplusplus
17633 extern "C"
17634 #endif
17635 char dnet_ntoa (void);
17636 int
17637 main (void)
17638 {
17639 return dnet_ntoa ();
17640 ;
17641 return 0;
17642 }
17643 _ACEOF
17644 if ac_fn_c_try_link "$LINENO"
17645 then :
17646 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17647 else case e in #(
17648 e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;;
17649 esac
17650 fi
17651 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17652 conftest$ac_exeext conftest.$ac_ext
17653 LIBS=$ac_check_lib_save_LIBS ;;
17654 esac
17655 fi
17656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17657 printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
17658 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
17659 then :
17660 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
17661 fi
17662
17663 fi ;;
17664 esac
17665 fi
17666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17667 conftest$ac_exeext conftest.$ac_ext
17668 LIBS="$ac_xsave_LIBS"
17669
17670 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
17671 # to get the SysV transport functions.
17672 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
17673 # needs -lnsl.
17674 # The nsl library prevents programs from opening the X display
17675 # on Irix 5.2, according to T.E. Dickey.
17676 # The functions gethostbyname, getservbyname, and inet_addr are
17677 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17678 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17679 if test "x$ac_cv_func_gethostbyname" = xyes
17680 then :
17681
17682 fi
17683
17684 if test $ac_cv_func_gethostbyname = no; then
17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17686 printf %s "checking for gethostbyname in -lnsl... " >&6; }
17687 if test ${ac_cv_lib_nsl_gethostbyname+y}
17688 then :
17689 printf %s "(cached) " >&6
17690 else case e in #(
17691 e) ac_check_lib_save_LIBS=$LIBS
17692 LIBS="-lnsl $LIBS"
17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17695
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply.
17699 The 'extern "C"' is for builds by C++ compilers;
17700 although this is not generally supported in C code supporting it here
17701 has little cost and some practical benefit (sr 110532). */
17702 #ifdef __cplusplus
17703 extern "C"
17704 #endif
17705 char gethostbyname (void);
17706 int
17707 main (void)
17708 {
17709 return gethostbyname ();
17710 ;
17711 return 0;
17712 }
17713 _ACEOF
17714 if ac_fn_c_try_link "$LINENO"
17715 then :
17716 ac_cv_lib_nsl_gethostbyname=yes
17717 else case e in #(
17718 e) ac_cv_lib_nsl_gethostbyname=no ;;
17719 esac
17720 fi
17721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17722 conftest$ac_exeext conftest.$ac_ext
17723 LIBS=$ac_check_lib_save_LIBS ;;
17724 esac
17725 fi
17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17727 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
17728 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
17729 then :
17730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
17731 fi
17732
17733 if test $ac_cv_lib_nsl_gethostbyname = no; then
17734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
17735 printf %s "checking for gethostbyname in -lbsd... " >&6; }
17736 if test ${ac_cv_lib_bsd_gethostbyname+y}
17737 then :
17738 printf %s "(cached) " >&6
17739 else case e in #(
17740 e) ac_check_lib_save_LIBS=$LIBS
17741 LIBS="-lbsd $LIBS"
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17744
17745 /* Override any GCC internal prototype to avoid an error.
17746 Use char because int might match the return type of a GCC
17747 builtin and then its argument prototype would still apply.
17748 The 'extern "C"' is for builds by C++ compilers;
17749 although this is not generally supported in C code supporting it here
17750 has little cost and some practical benefit (sr 110532). */
17751 #ifdef __cplusplus
17752 extern "C"
17753 #endif
17754 char gethostbyname (void);
17755 int
17756 main (void)
17757 {
17758 return gethostbyname ();
17759 ;
17760 return 0;
17761 }
17762 _ACEOF
17763 if ac_fn_c_try_link "$LINENO"
17764 then :
17765 ac_cv_lib_bsd_gethostbyname=yes
17766 else case e in #(
17767 e) ac_cv_lib_bsd_gethostbyname=no ;;
17768 esac
17769 fi
17770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17771 conftest$ac_exeext conftest.$ac_ext
17772 LIBS=$ac_check_lib_save_LIBS ;;
17773 esac
17774 fi
17775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
17776 printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
17777 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
17778 then :
17779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
17780 fi
17781
17782 fi
17783 fi
17784
17785 # [email protected] says without -lsocket,
17786 # socket/setsockopt and other routines are undefined under SCO ODT
17787 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
17788 # on later versions), says Simon Leinen: it contains gethostby*
17789 # variants that don't use the name server (or something). -lsocket
17790 # must be given before -lnsl if both are needed. We assume that
17791 # if connect needs -lnsl, so does gethostbyname.
17792 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17793 if test "x$ac_cv_func_connect" = xyes
17794 then :
17795
17796 fi
17797
17798 if test $ac_cv_func_connect = no; then
17799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17800 printf %s "checking for connect in -lsocket... " >&6; }
17801 if test ${ac_cv_lib_socket_connect+y}
17802 then :
17803 printf %s "(cached) " >&6
17804 else case e in #(
17805 e) ac_check_lib_save_LIBS=$LIBS
17806 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17809
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply.
17813 The 'extern "C"' is for builds by C++ compilers;
17814 although this is not generally supported in C code supporting it here
17815 has little cost and some practical benefit (sr 110532). */
17816 #ifdef __cplusplus
17817 extern "C"
17818 #endif
17819 char connect (void);
17820 int
17821 main (void)
17822 {
17823 return connect ();
17824 ;
17825 return 0;
17826 }
17827 _ACEOF
17828 if ac_fn_c_try_link "$LINENO"
17829 then :
17830 ac_cv_lib_socket_connect=yes
17831 else case e in #(
17832 e) ac_cv_lib_socket_connect=no ;;
17833 esac
17834 fi
17835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17836 conftest$ac_exeext conftest.$ac_ext
17837 LIBS=$ac_check_lib_save_LIBS ;;
17838 esac
17839 fi
17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17841 printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
17842 if test "x$ac_cv_lib_socket_connect" = xyes
17843 then :
17844 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
17845 fi
17846
17847 fi
17848
17849 # Guillermo Gomez says -lposix is necessary on A/UX.
17850 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
17851 if test "x$ac_cv_func_remove" = xyes
17852 then :
17853
17854 fi
17855
17856 if test $ac_cv_func_remove = no; then
17857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
17858 printf %s "checking for remove in -lposix... " >&6; }
17859 if test ${ac_cv_lib_posix_remove+y}
17860 then :
17861 printf %s "(cached) " >&6
17862 else case e in #(
17863 e) ac_check_lib_save_LIBS=$LIBS
17864 LIBS="-lposix $LIBS"
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867
17868 /* Override any GCC internal prototype to avoid an error.
17869 Use char because int might match the return type of a GCC
17870 builtin and then its argument prototype would still apply.
17871 The 'extern "C"' is for builds by C++ compilers;
17872 although this is not generally supported in C code supporting it here
17873 has little cost and some practical benefit (sr 110532). */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char remove (void);
17878 int
17879 main (void)
17880 {
17881 return remove ();
17882 ;
17883 return 0;
17884 }
17885 _ACEOF
17886 if ac_fn_c_try_link "$LINENO"
17887 then :
17888 ac_cv_lib_posix_remove=yes
17889 else case e in #(
17890 e) ac_cv_lib_posix_remove=no ;;
17891 esac
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17894 conftest$ac_exeext conftest.$ac_ext
17895 LIBS=$ac_check_lib_save_LIBS ;;
17896 esac
17897 fi
17898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
17899 printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
17900 if test "x$ac_cv_lib_posix_remove" = xyes
17901 then :
17902 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
17903 fi
17904
17905 fi
17906
17907 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
17908 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
17909 if test "x$ac_cv_func_shmat" = xyes
17910 then :
17911
17912 fi
17913
17914 if test $ac_cv_func_shmat = no; then
17915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
17916 printf %s "checking for shmat in -lipc... " >&6; }
17917 if test ${ac_cv_lib_ipc_shmat+y}
17918 then :
17919 printf %s "(cached) " >&6
17920 else case e in #(
17921 e) ac_check_lib_save_LIBS=$LIBS
17922 LIBS="-lipc $LIBS"
17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924 /* end confdefs.h. */
17925
17926 /* Override any GCC internal prototype to avoid an error.
17927 Use char because int might match the return type of a GCC
17928 builtin and then its argument prototype would still apply.
17929 The 'extern "C"' is for builds by C++ compilers;
17930 although this is not generally supported in C code supporting it here
17931 has little cost and some practical benefit (sr 110532). */
17932 #ifdef __cplusplus
17933 extern "C"
17934 #endif
17935 char shmat (void);
17936 int
17937 main (void)
17938 {
17939 return shmat ();
17940 ;
17941 return 0;
17942 }
17943 _ACEOF
17944 if ac_fn_c_try_link "$LINENO"
17945 then :
17946 ac_cv_lib_ipc_shmat=yes
17947 else case e in #(
17948 e) ac_cv_lib_ipc_shmat=no ;;
17949 esac
17950 fi
17951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17952 conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS ;;
17954 esac
17955 fi
17956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
17957 printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
17958 if test "x$ac_cv_lib_ipc_shmat" = xyes
17959 then :
17960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
17961 fi
17962
17963 fi
17964 fi
17965
17966 # Check for libraries that X11R6 Xt/Xaw programs need.
17967 ac_save_LDFLAGS=$LDFLAGS
17968 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
17969 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
17970 # check for ICE first), but we must link in the order -lSM -lICE or
17971 # we get undefined symbols. So assume we have SM if we have ICE.
17972 # These have to be linked with before -lX11, unlike the other
17973 # libraries we check for below, so use a different variable.
17974 # John Interrante, Karl Berry
17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
17976 printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
17977 if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
17978 then :
17979 printf %s "(cached) " >&6
17980 else case e in #(
17981 e) ac_check_lib_save_LIBS=$LIBS
17982 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17985
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply.
17989 The 'extern "C"' is for builds by C++ compilers;
17990 although this is not generally supported in C code supporting it here
17991 has little cost and some practical benefit (sr 110532). */
17992 #ifdef __cplusplus
17993 extern "C"
17994 #endif
17995 char IceConnectionNumber (void);
17996 int
17997 main (void)
17998 {
17999 return IceConnectionNumber ();
18000 ;
18001 return 0;
18002 }
18003 _ACEOF
18004 if ac_fn_c_try_link "$LINENO"
18005 then :
18006 ac_cv_lib_ICE_IceConnectionNumber=yes
18007 else case e in #(
18008 e) ac_cv_lib_ICE_IceConnectionNumber=no ;;
18009 esac
18010 fi
18011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18012 conftest$ac_exeext conftest.$ac_ext
18013 LIBS=$ac_check_lib_save_LIBS ;;
18014 esac
18015 fi
18016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18017 printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18018 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
18019 then :
18020 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18021 fi
18022
18023 LDFLAGS=$ac_save_LDFLAGS
18024
18025 fi
18026
18027
18028 if test "x$ac_cv_func_vfork_works" = xyes
18029 then :
18030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for whether setsid() is allowed within vfork()" >&5
18031 printf %s "checking for whether setsid() is allowed within vfork()... " >&6; }
18032 if test ${xdvi_cv_setsid_in_vfork+y}
18033 then :
18034 printf %s "(cached) " >&6
18035 else case e in #(
18036 e) if test "$cross_compiling" = yes
18037 then :
18038 xdvi_cv_setsid_in_vfork=no # safe value for cross-compiling
18039 else case e in #(
18040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h. */
18042
18043 /* Test adapted from Gnu autoconf */
18044 /* Thanks to Paul Eggert for this test. */
18045 #include <stdio.h>
18046 #include <sys/types.h>
18047 #include <sys/stat.h>
18048 #ifdef HAVE_UNISTD_H
18049 #include <unistd.h>
18050 #endif
18051 #ifdef HAVE_SYS_WAIT_H
18052 #include <sys/wait.h>
18053 #endif
18054 #ifdef HAVE_VFORK_H
18055 #include <vfork.h>
18056 #endif
18057 int
18058 main (void)
18059 {
18060
18061 pid_t parent = getpid ();
18062 pid_t child;
18063
18064 child = vfork ();
18065
18066 if (child == 0) {
18067 if (setsid () == -1)
18068 _exit(1);
18069 _exit(0);
18070 } else {
18071 int status;
18072
18073 while (wait(&status) != child)
18074 ;
18075 _exit(
18076 /* Was there some problem with vforking? */
18077 child < 0
18078
18079 /* Did the child fail? (This shouldn't happen.) */
18080 || status
18081 );
18082 }
18083 ;
18084 return 0;
18085 }
18086 _ACEOF
18087 if ac_fn_c_try_run "$LINENO"
18088 then :
18089 xdvi_cv_setsid_in_vfork=yes
18090 else case e in #(
18091 e) xdvi_cv_setsid_in_vfork=no ;;
18092 esac
18093 fi
18094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18095 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18096 esac
18097 fi
18098 ;;
18099 esac
18100 fi
18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_setsid_in_vfork" >&5
18102 printf "%s\n" "$xdvi_cv_setsid_in_vfork" >&6; }
18103 if test "x$xdvi_cv_setsid_in_vfork" = xyes; then
18104
18105 printf "%s\n" "#define HAVE_GOOD_SETSID_VFORK 1" >>confdefs.h
18106
18107 fi
18108 fi
18109
18110 # The cast to long int works around a bug in the HP C Compiler
18111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18112 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
18113 # This bug is HP SR number 8606223364.
18114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
18115 printf %s "checking size of unsigned long... " >&6; }
18116 if test ${ac_cv_sizeof_unsigned_long+y}
18117 then :
18118 printf %s "(cached) " >&6
18119 else case e in #(
18120 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
18121 then :
18122
18123 else case e in #(
18124 e) if test "$ac_cv_type_unsigned_long" = yes; then
18125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18126 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18127 as_fn_error 77 "cannot compute sizeof (unsigned long)
18128 See 'config.log' for more details" "$LINENO" 5; }
18129 else
18130 ac_cv_sizeof_unsigned_long=0
18131 fi ;;
18132 esac
18133 fi
18134 ;;
18135 esac
18136 fi
18137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
18138 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
18139
18140
18141
18142 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
18143
18144 # The cast to long int works around a bug in the HP C Compiler
18145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18146 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
18147 # This bug is HP SR number 8606223364.
18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
18149 printf %s "checking size of unsigned int... " >&6; }
18150 if test ${ac_cv_sizeof_unsigned_int+y}
18151 then :
18152 printf %s "(cached) " >&6
18153 else case e in #(
18154 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
18155 then :
18156
18157 else case e in #(
18158 e) if test "$ac_cv_type_unsigned_int" = yes; then
18159 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18160 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18161 as_fn_error 77 "cannot compute sizeof (unsigned int)
18162 See 'config.log' for more details" "$LINENO" 5; }
18163 else
18164 ac_cv_sizeof_unsigned_int=0
18165 fi ;;
18166 esac
18167 fi
18168 ;;
18169 esac
18170 fi
18171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
18172 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
18173
18174
18175
18176 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
18177
18178 # The cast to long int works around a bug in the HP C Compiler
18179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18180 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
18181 # This bug is HP SR number 8606223364.
18182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
18183 printf %s "checking size of unsigned short... " >&6; }
18184 if test ${ac_cv_sizeof_unsigned_short+y}
18185 then :
18186 printf %s "(cached) " >&6
18187 else case e in #(
18188 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"
18189 then :
18190
18191 else case e in #(
18192 e) if test "$ac_cv_type_unsigned_short" = yes; then
18193 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18194 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18195 as_fn_error 77 "cannot compute sizeof (unsigned short)
18196 See 'config.log' for more details" "$LINENO" 5; }
18197 else
18198 ac_cv_sizeof_unsigned_short=0
18199 fi ;;
18200 esac
18201 fi
18202 ;;
18203 esac
18204 fi
18205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
18206 printf "%s\n" "$ac_cv_sizeof_unsigned_short" >&6; }
18207
18208
18209
18210 printf "%s\n" "#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short" >>confdefs.h
18211
18212 # The cast to long int works around a bug in the HP C Compiler
18213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18214 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
18215 # This bug is HP SR number 8606223364.
18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5
18217 printf %s "checking size of unsigned char... " >&6; }
18218 if test ${ac_cv_sizeof_unsigned_char+y}
18219 then :
18220 printf %s "(cached) " >&6
18221 else case e in #(
18222 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$ac_includes_default"
18223 then :
18224
18225 else case e in #(
18226 e) if test "$ac_cv_type_unsigned_char" = yes; then
18227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18228 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18229 as_fn_error 77 "cannot compute sizeof (unsigned char)
18230 See 'config.log' for more details" "$LINENO" 5; }
18231 else
18232 ac_cv_sizeof_unsigned_char=0
18233 fi ;;
18234 esac
18235 fi
18236 ;;
18237 esac
18238 fi
18239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5
18240 printf "%s\n" "$ac_cv_sizeof_unsigned_char" >&6; }
18241
18242
18243
18244 printf "%s\n" "#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char" >>confdefs.h
18245
18246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for integer type to use in bitmaps" >&5
18247 printf %s "checking for integer type to use in bitmaps... " >&6; }
18248 if test ${xdvi_cv_bitmap_type+y}
18249 then :
18250 printf %s "(cached) " >&6
18251 else case e in #(
18252 e) if (test $ac_cv_sizeof_unsigned_long = 4 || test $ac_cv_sizeof_unsigned_long = 2) \
18253 && test $ac_cv_sizeof_unsigned_long != $ac_cv_sizeof_unsigned_int
18254 then :
18255 xdvi_cv_bitmap_type="BMTYPE=long BMBYTES=$ac_cv_sizeof_unsigned_long"
18256 elif test $ac_cv_sizeof_unsigned_int = 4 || test $ac_cv_sizeof_unsigned_int = 2
18257 then :
18258 xdvi_cv_bitmap_type="BMTYPE=int BMBYTES=$ac_cv_sizeof_unsigned_int"
18259 elif test $ac_cv_sizeof_unsigned_short = 4 || test $ac_cv_sizeof_unsigned_short = 2
18260 then :
18261 xdvi_cv_bitmap_type="BMTYPE=short BMBYTES=$ac_cv_sizeof_unsigned_short"
18262 else case e in #(
18263 e) xdvi_cv_bitmap_type="BMTYPE=char BMBYTES=$ac_cv_sizeof_unsigned_cher" ;;
18264 esac
18265 fi ;;
18266 esac
18267 fi
18268
18269 eval "$xdvi_cv_bitmap_type"
18270
18271 printf "%s\n" "#define BMTYPE $BMTYPE" >>confdefs.h
18272
18273
18274 printf "%s\n" "#define BMBYTES $BMBYTES" >>confdefs.h
18275
18276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned $BMTYPE, size = $BMBYTES" >&5
18277 printf "%s\n" "unsigned $BMTYPE, size = $BMBYTES" >&6; }
18278
18279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stropts.h and isastream()" >&5
18280 printf %s "checking for stropts.h and isastream()... " >&6; }
18281 if test ${xdvi_cv_sys_streams+y}
18282 then :
18283 printf %s "(cached) " >&6
18284 else case e in #(
18285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #include <stropts.h>
18288 int
18289 main (void)
18290 {
18291 #ifndef I_SETSIG
18292 choke me
18293 #else
18294 isastream(0);
18295 #endif
18296 ;
18297 return 0;
18298 }
18299 _ACEOF
18300 if ac_fn_c_try_link "$LINENO"
18301 then :
18302 xdvi_cv_sys_streams=yes
18303 else case e in #(
18304 e) xdvi_cv_sys_streams=no ;;
18305 esac
18306 fi
18307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18308 conftest$ac_exeext conftest.$ac_ext ;;
18309 esac
18310 fi
18311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_sys_streams" >&5
18312 printf "%s\n" "$xdvi_cv_sys_streams" >&6; }
18313 if test "x$xdvi_cv_sys_streams" = xyes; then
18314
18315 printf "%s\n" "#define HAVE_STREAMS 1" >>confdefs.h
18316
18317 fi
18318
18319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for certain old versions of Linux" >&5
18320 printf %s "checking for certain old versions of Linux... " >&6; }
18321 if test ${xdvi_cv_sys_old_linux+y}
18322 then :
18323 printf %s "(cached) " >&6
18324 else case e in #(
18325 e) case "`(uname -sr) 2>/dev/null`" in #(
18326 "Linux 2."[01].* | "Linux 2.2."[0-8] | "Linux 2.2."[0-8]-*) :
18327 xdvi_cv_sys_old_linux=yes ;; #(
18328 *) :
18329 xdvi_cv_sys_old_linux=no ;;
18330 esac ;;
18331 esac
18332 fi
18333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_sys_old_linux" >&5
18334 printf "%s\n" "$xdvi_cv_sys_old_linux" >&6; }
18335 if test "x$xdvi_cv_sys_old_linux" = xyes; then
18336
18337 printf "%s\n" "#define FLAKY_SIGPOLL 1" >>confdefs.h
18338
18339 fi
18340
18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poll.h and poll()" >&5
18342 printf %s "checking for poll.h and poll()... " >&6; }
18343 if test ${xdvi_cv_func_poll+y}
18344 then :
18345 printf %s "(cached) " >&6
18346 else case e in #(
18347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18349 #include <poll.h>
18350 int
18351 main (void)
18352 {
18353 poll((struct pollfd *) 0, 0, 0);
18354 ;
18355 return 0;
18356 }
18357 _ACEOF
18358 if ac_fn_c_try_link "$LINENO"
18359 then :
18360 xdvi_cv_func_poll=yes
18361 else case e in #(
18362 e) xdvi_cv_func_poll=no ;;
18363 esac
18364 fi
18365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18366 conftest$ac_exeext conftest.$ac_ext ;;
18367 esac
18368 fi
18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_func_poll" >&5
18370 printf "%s\n" "$xdvi_cv_func_poll" >&6; }
18371 if test "x$xdvi_cv_func_poll" = xyes; then
18372
18373 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
18374
18375 else
18376 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
18377 if test "x$ac_cv_header_sys_select_h" = xyes
18378 then :
18379 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
18380
18381 fi
18382 ac_fn_c_check_header_compile "$LINENO" "select.h" "ac_cv_header_select_h" "$ac_includes_default"
18383 if test "x$ac_cv_header_select_h" = xyes
18384 then :
18385 printf "%s\n" "#define HAVE_SELECT_H 1" >>confdefs.h
18386
18387 fi
18388
18389 fi
18390
18391
18392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKB Bell extension" >&5
18393 printf %s "checking for XKB Bell extension... " >&6; }
18394 if test ${xdvi_cv_func_xkb_bell+y}
18395 then :
18396 printf %s "(cached) " >&6
18397 else case e in #(
18398 e) xdvi_save_LIBS=$LIBS
18399 LIBS="$X_PRE_LIBS"" $LIBS $X_LIBS -lX11"
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18402
18403 #include <X11/X.h>
18404 #include <X11/XKBlib.h> /* has the prototype */
18405
18406 int
18407 main (void)
18408 {
18409
18410 Atom y;
18411 XkbBell((Display *)0, (Window)0, 0, y);
18412
18413 ;
18414 return 0;
18415 }
18416 _ACEOF
18417 if ac_fn_c_try_link "$LINENO"
18418 then :
18419 xdvi_cv_func_xkb_bell=yes
18420 else case e in #(
18421 e) xdvi_cv_func_xkb_bell=no ;;
18422 esac
18423 fi
18424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18425 conftest$ac_exeext conftest.$ac_ext
18426 LIBS=$xdvi_save_LIBS ;;
18427 esac
18428 fi
18429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_func_xkb_bell" >&5
18430 printf "%s\n" "$xdvi_cv_func_xkb_bell" >&6; }
18431 if test "$xdvi_cv_func_xkb_bell" = yes; then
18432 X_PRE_LIBS="$X_PRE_LIBS"
18433
18434 printf "%s\n" "#define HAVE_XKB_BELL_EXT 1" >>confdefs.h
18435
18436 fi
18437 # Check whether --enable-xi2-scrolling was given.
18438 if test ${enable_xi2_scrolling+y}
18439 then :
18440 enableval=$enable_xi2_scrolling;
18441 fi
18442
18443 case $enable_xi2_scrolling in #(
18444 yes | no) :
18445 : ;; #(
18446 *) :
18447 if test "x$enable_native_texlive_build" = xyes
18448 then :
18449 enable_xi2_scrolling=no
18450 else case e in #(
18451 e) enable_xi2_scrolling=yes ;;
18452 esac
18453 fi ;;
18454 esac
18455 if test "x$enable_xi2_scrolling" = xyes; then
18456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XInput version 2.1 or higher" >&5
18457 printf %s "checking for XInput version 2.1 or higher... " >&6; }
18458 if test ${xdvi_cv_xinput_2_1+y}
18459 then :
18460 printf %s "(cached) " >&6
18461 else case e in #(
18462 e) xdvi_xi2_save_LIBS=$LIBS
18463 xdvi_xi2_save_CFLAGS=$CFLAGS
18464 xdvi_xi2_save_CPPFLAGS=$CPPFLAGS
18465 xdvi_xi2_save_LDFLAGS=$LDFLAGS
18466 LIBS="$X_PRE_LIBS -lXi $X_EXTRA_LIBS $LIBS"
18467 CFLAGS="$X_CFLAGS $CFLAGS"
18468 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
18469 LDFLAGS="$X_LIBS $LDFLAGS"
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18472 #include <X11/extensions/XInput2.h>
18473 int
18474 main (void)
18475 {
18476 Display *DISP; int ndevices;
18477 XIDeviceInfo *info = XIQueryDevice(DISP, XIAllDevices, &ndevices);
18478 #if (XI_2_Major < 2 || (XI_2_Major == 2 && XI_2_Minor < 1))
18479 choke me "XInput version is < 2.1"
18480 #endif
18481 ;
18482 return 0;
18483 }
18484 _ACEOF
18485 if ac_fn_c_try_link "$LINENO"
18486 then :
18487 xdvi_cv_xinput_2_1=yes
18488 else case e in #(
18489 e) xdvi_cv_xinput_2_1=no ;;
18490 esac
18491 fi
18492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18493 conftest$ac_exeext conftest.$ac_ext
18494 LIBS=$xdvi_xi2_save_LIBS
18495 CFLAGS=$xdvi_xi2_save_CFLAGS
18496 CPPFLAGS=$xdvi_xi2_save_CPPFLAGS
18497 LDFLAGS=$xdvi_xi2_save_LDFLAGS ;;
18498 esac
18499 fi
18500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_xinput_2_1" >&5
18501 printf "%s\n" "$xdvi_cv_xinput_2_1" >&6; }
18502 if test "x$xdvi_cv_xinput_2_1" = xyes; then
18503
18504 printf "%s\n" "#define HAVE_XI21 1" >>confdefs.h
18505
18506 X_PRE_LIBS="$X_PRE_LIBS -lXi"
18507 fi
18508 fi
18509
18510
18511
18512
18513 # Check for `--allow-multiple-definition' linker flag
18514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports multiple definitions and for required flags" >&5
18515 printf %s "checking if linker supports multiple definitions and for required flags... " >&6; }
18516 if test ${xdvi_cv_linker_multiple_defns+y}
18517 then :
18518 printf %s "(cached) " >&6
18519 else case e in #(
18520 e) xdvi_ld_save_LDFLAGS=$LDFLAGS
18521 LDFLAGS="-Xlinker --allow-multiple-definition"
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18524 #include <stdio.h>
18525 int
18526 main (void)
18527 {
18528 void foo(void);
18529 ;
18530 return 0;
18531 }
18532 _ACEOF
18533 if ac_fn_c_try_link "$LINENO"
18534 then :
18535 xdvi_cv_linker_multiple_defns=$LDFLAGS
18536 else case e in #(
18537 e) xdvi_ld_save_LIBS=$LIBS
18538 xdvi_ld_save_CFLAGS=$CFLAGS
18539 xdvi_ld_save_CPPFLAGS=$CPPFLAGS
18540
18541 LIBS="$X_PRE_LIBS -lXt -lX11 $X_EXTRA_LIBS $LIBS"
18542 CFLAGS="$X_CFLAGS $CFLAGS"
18543 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
18544 LDFLAGS="$X_LIBS $xdvi_ld_save_LDFLAGS"
18545
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18548 #include <X11/Intrinsic.h>
18549
18550 XtIntervalId XtAppAddTimeOut(XtAppContext app,
18551 unsigned long interval,
18552 XtTimerCallbackProc proc,
18553 XtPointer closure)
18554 {
18555 (void)app; (void)interval; (void)proc; (void)closure;
18556 return (XtIntervalId)0;
18557 }
18558 int
18559 main (void)
18560 {
18561 XtIntervalId i = 0; XtRemoveTimeOut(i);
18562 ;
18563 return 0;
18564 }
18565 _ACEOF
18566 if ac_fn_c_try_link "$LINENO"
18567 then :
18568 xdvi_cv_linker_multiple_defns="none required"
18569 else case e in #(
18570 e) xdvi_cv_linker_multiple_defns=unsupported ;;
18571 esac
18572 fi
18573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18574 conftest$ac_exeext conftest.$ac_ext
18575
18576 LIBS=$xdvi_ld_save_LIBS
18577 CFLAGS=$xdvi_ld_save_CFLAGS
18578 CPPFLAGS=$xdvi_ld_save_CPPFLAGS ;;
18579 esac
18580 fi
18581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18582 conftest$ac_exeext conftest.$ac_ext
18583 LDFLAGS=$xdvi_ld_save_LDFLAGS ;;
18584 esac
18585 fi
18586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_linker_multiple_defns" >&5
18587 printf "%s\n" "$xdvi_cv_linker_multiple_defns" >&6; }
18588
18589 x_linker_options=""
18590 case $xdvi_cv_linker_multiple_defns in #(
18591 "none required") :
18592
18593 printf "%s\n" "#define LD_ALLOWS_MULTIPLE_DEFINITIONS 1" >>confdefs.h
18594 ;; #(
18595 unsupported) :
18596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Linker does not allow multiple definitions.
18597 *****************************************************************
18598 * Warning: Your linker does not allow multiple definitions. *
18599 * This does not make xdvik unusable, but it will cause problems *
18600 * with event handling: Some widgets, e.g. the print log window, *
18601 * tooltips, statusline messages and hyperlink location markers *
18602 * will not be updated until the mouse is moved. *
18603 *****************************************************************" >&5
18604 printf "%s\n" "$as_me: WARNING: Linker does not allow multiple definitions.
18605 *****************************************************************
18606 * Warning: Your linker does not allow multiple definitions. *
18607 * This does not make xdvik unusable, but it will cause problems *
18608 * with event handling: Some widgets, e.g. the print log window, *
18609 * tooltips, statusline messages and hyperlink location markers *
18610 * will not be updated until the mouse is moved. *
18611 *****************************************************************" >&2;} ;; #(
18612 *) :
18613 x_linker_options=$xdvi_cv_linker_multiple_defns
18614 printf "%s\n" "#define LD_ALLOWS_MULTIPLE_DEFINITIONS 1" >>confdefs.h
18615 ;;
18616 esac
18617
18618
18619
18620 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18621 if test "x$ac_cv_header_stdint_h" = xyes
18622 then :
18623 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
18624
18625 fi
18626 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18627 if test "x$ac_cv_header_inttypes_h" = xyes
18628 then :
18629 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
18630
18631 fi
18632
18633 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
18634 case $ac_cv_c_uint32_t in #(
18635 no|yes) ;; #(
18636 *)
18637
18638 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
18639
18640
18641 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
18642 ;;
18643 esac
18644
18645 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18646 if test "x$ac_cv_type_ptrdiff_t" = xyes
18647 then :
18648
18649 else case e in #(
18650 e)
18651 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
18652 ;;
18653 esac
18654 fi
18655
18656
18657 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
18658 if test "x$ac_cv_func_mkstemp" = xyes
18659 then :
18660 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
18661
18662 fi
18663 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
18664 if test "x$ac_cv_func_memcpy" = xyes
18665 then :
18666 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
18667
18668 fi
18669 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18670 if test "x$ac_cv_func_strerror" = xyes
18671 then :
18672 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
18673
18674 fi
18675 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
18676 if test "x$ac_cv_func_waitpid" = xyes
18677 then :
18678 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
18679
18680 fi
18681 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
18682 if test "x$ac_cv_func_sigaction" = xyes
18683 then :
18684 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
18685
18686 fi
18687 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
18688 if test "x$ac_cv_func_strchr" = xyes
18689 then :
18690 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
18691
18692 fi
18693 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
18694 if test "x$ac_cv_func_setenv" = xyes
18695 then :
18696 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
18697
18698 fi
18699 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
18700 if test "x$ac_cv_func_fchdir" = xyes
18701 then :
18702 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
18703
18704 fi
18705 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
18706 if test "x$ac_cv_func_getcwd" = xyes
18707 then :
18708 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
18709
18710 fi
18711 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
18712 if test "x$ac_cv_func_getpwnam" = xyes
18713 then :
18714 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
18715
18716 fi
18717 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
18718 if test "x$ac_cv_func_getuid" = xyes
18719 then :
18720 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
18721
18722 fi
18723 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
18724 if test "x$ac_cv_func_getpwuid" = xyes
18725 then :
18726 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
18727
18728 fi
18729 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18730 if test "x$ac_cv_func_lstat" = xyes
18731 then :
18732 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18733
18734 fi
18735 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
18736 if test "x$ac_cv_func_ftruncate" = xyes
18737 then :
18738 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
18739
18740 fi
18741 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18742 if test "x$ac_cv_func_snprintf" = xyes
18743 then :
18744 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
18745
18746 fi
18747 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
18748 if test "x$ac_cv_func_vsnprintf" = xyes
18749 then :
18750 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
18751
18752 fi
18753 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
18754 if test "x$ac_cv_func_realpath" = xyes
18755 then :
18756 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
18757
18758 fi
18759
18760
18761 # <sys/bsdtypes.h> is for ISC 4.0, to define fd_set in psgs.c.
18762 # regex.h is needed for regexp support in DVI search.
18763 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
18764 if test "x$ac_cv_header_netdb_h" = xyes
18765 then :
18766 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
18767
18768 fi
18769 ac_fn_c_check_header_compile "$LINENO" "sys/bsdtypes.h" "ac_cv_header_sys_bsdtypes_h" "$ac_includes_default"
18770 if test "x$ac_cv_header_sys_bsdtypes_h" = xyes
18771 then :
18772 printf "%s\n" "#define HAVE_SYS_BSDTYPES_H 1" >>confdefs.h
18773
18774 fi
18775 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18776 if test "x$ac_cv_header_sys_param_h" = xyes
18777 then :
18778 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
18779
18780 fi
18781 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18782 if test "x$ac_cv_header_unistd_h" = xyes
18783 then :
18784 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
18785
18786 fi
18787 ac_fn_c_check_header_compile "$LINENO" "sys/fcntl.h" "ac_cv_header_sys_fcntl_h" "$ac_includes_default"
18788 if test "x$ac_cv_header_sys_fcntl_h" = xyes
18789 then :
18790 printf "%s\n" "#define HAVE_SYS_FCNTL_H 1" >>confdefs.h
18791
18792 fi
18793 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
18794 if test "x$ac_cv_header_regex_h" = xyes
18795 then :
18796 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
18797
18798 fi
18799
18800
18801 # Checks for iconv
18802
18803 # Check whether --with-iconv was given.
18804 if test ${with_iconv+y}
18805 then :
18806 withval=$with_iconv;
18807 else case e in #(
18808 e) with_iconv=check ;;
18809 esac
18810 fi
18811
18812 # Check whether --with-iconv-include was given.
18813 if test ${with_iconv_include+y}
18814 then :
18815 withval=$with_iconv_include;
18816 fi
18817
18818 # Check whether --with-iconv-libdir was given.
18819 if test ${with_iconv_libdir+y}
18820 then :
18821 withval=$with_iconv_libdir;
18822 fi
18823 case $with_iconv_include in #(
18824 yes | no | "") :
18825 iconv_includes= ;; #(
18826 *) :
18827 iconv_includes="-I$with_iconv_include" ;;
18828 esac
18829 case $with_iconv_libdir in #(
18830 yes | no | "") :
18831 iconv_libpath= ;; #(
18832 *) :
18833 iconv_libpath="-L$with_iconv_libdir" ;;
18834 esac
18835 if test "x$with_iconv" != xno
18836 then :
18837 xdvi_iconv_save_CPPFLAGS=$CPPFLAGS
18838 for ac_header in iconv.h
18839 do :
18840 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default
18841 "
18842 if test "x$ac_cv_header_iconv_h" = xyes
18843 then :
18844 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
18845 # Check if -liconv or -lrecode is needed for iconv()
18846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iconv" >&5
18847 printf %s "checking for library containing iconv... " >&6; }
18848 if test ${xdvi_cv_search_iconv+y}
18849 then :
18850 printf %s "(cached) " >&6
18851 else case e in #(
18852 e) xdvi_iconv_save_LDFLAGS=$LDFLAGS
18853 xdvi_iconv_save_LIBS=$LIBS
18854 LDFLAGS="$iconv_libpath $LDFLAGS"
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857 #include <stdlib.h>
18858 #include <iconv.h>
18859 int
18860 main (void)
18861 {
18862 iconv_t cd = iconv_open("","");
18863 ;
18864 return 0;
18865 }
18866 _ACEOF
18867 xdvi_cv_search_iconv=no
18868 for xdvi_lib in "" -liconv -lrecode; do
18869 LIBS="$xdvi_lib $xdvi_iconv_save_LIBS"
18870 if ac_fn_c_try_link "$LINENO"
18871 then :
18872 xdvi_cv_search_iconv=$xdvi_lib
18873 break
18874 fi
18875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18876 conftest$ac_exeext
18877 done
18878 test "x$xdvi_cv_search_iconv" = x && xdvi_cv_search_iconv="none required"
18879 LDFLAGS=$xdvi_iconv_save_LDFLAGS
18880 LIBS=$xdvi_iconv_save_LIBS ;;
18881 esac
18882 fi
18883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_search_iconv" >&5
18884 printf "%s\n" "$xdvi_cv_search_iconv" >&6; }
18885
18886 if test "x$xdvi_cv_search_iconv" != xno; then
18887 if test "x$xdvi_cv_search_iconv" = "xnone required"; then
18888 iconv_libs=
18889 else
18890 iconv_libs=$xdvi_cv_search_iconv
18891 fi
18892
18893 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
18894
18895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv input type" >&5
18896 printf %s "checking for iconv input type... " >&6; }
18897 if test ${xdvi_cv_iconv_char_pptr_type+y}
18898 then :
18899 printf %s "(cached) " >&6
18900 else case e in #(
18901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18903
18904 /* iconv() definitions may differ depending on following macros ... */
18905 #ifdef __hpux
18906 /* On HP-UX 10.10 B and 20.10, compiling with _XOPEN_SOURCE + ..._EXTENDED
18907 * leads to poll() not realizing that a file descriptor is writable in psgs.c.
18908 */
18909 # define _HPUX_SOURCE 1
18910 #else
18911 # ifndef _XOPEN_SOURCE
18912 # define _XOPEN_SOURCE 600
18913 # endif
18914 # define _XOPEN_SOURCE_EXTENDED 1
18915 # define __EXTENSIONS__ 1 /* needed to get struct timeval on SunOS 5.5 */
18916 # define _SVID_SOURCE 1 /* needed to get S_IFLNK in glibc */
18917 # define _BSD_SOURCE 1 /* needed to get F_SETOWN in glibc-2.1.3 */
18918 #endif
18919
18920 #include <iconv.h>
18921
18922 int
18923 main (void)
18924 {
18925 extern size_t iconv(iconv_t, char **, size_t *, char**, size_t*);
18926 ;
18927 return 0;
18928 }
18929 _ACEOF
18930 if ac_fn_c_try_compile "$LINENO"
18931 then :
18932 xdvi_cv_iconv_char_pptr_type='char **'
18933 else case e in #(
18934 e) xdvi_cv_iconv_char_pptr_type='const char **' ;;
18935 esac
18936 fi
18937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18938 esac
18939 fi
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_iconv_char_pptr_type" >&5
18941 printf "%s\n" "$xdvi_cv_iconv_char_pptr_type" >&6; }
18942
18943 printf "%s\n" "#define ICONV_CHAR_PPTR_TYPE $xdvi_cv_iconv_char_pptr_type" >>confdefs.h
18944
18945
18946 fi
18947 fi
18948
18949 done
18950 CPPFLAGS=$xdvi_iconv_save_CPPFLAGS
18951
18952 fi
18953
18954
18955
18956
18957 # Checks for langinfo
18958 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
18959 if test "x$ac_cv_func_nl_langinfo" = xyes
18960 then :
18961 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
18962
18963 fi
18964
18965 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
18966 if test "x$ac_cv_header_langinfo_h" = xyes
18967 then :
18968 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
18969
18970 fi
18971
18972 if test "x$ac_cv_func_nl_langinfo:$ac_cv_header_langinfo_h" = xyes:yes; then
18973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nl_langinfo(CODESET) is working" >&5
18974 printf %s "checking if nl_langinfo(CODESET) is working... " >&6; }
18975 if test ${xdvi_cv_nl_langinfo_codeset+y}
18976 then :
18977 printf %s "(cached) " >&6
18978 else case e in #(
18979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980 /* end confdefs.h. */
18981 #include <langinfo.h>
18982 int
18983 main (void)
18984 {
18985 char* cs = nl_langinfo(CODESET);
18986 ;
18987 return 0;
18988 }
18989 _ACEOF
18990 if ac_fn_c_try_link "$LINENO"
18991 then :
18992 xdvi_cv_nl_langinfo_codeset=yes
18993 else case e in #(
18994 e) xdvi_cv_nl_langinfo_codeset=no ;;
18995 esac
18996 fi
18997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18998 conftest$ac_exeext conftest.$ac_ext ;;
18999 esac
19000 fi
19001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_nl_langinfo_codeset" >&5
19002 printf "%s\n" "$xdvi_cv_nl_langinfo_codeset" >&6; }
19003 if test "x$xdvi_cv_nl_langinfo_codeset" = xyes
19004 then :
19005
19006 printf "%s\n" "#define HAVE_WORKING_NL_LANGINFO_CODESET 1" >>confdefs.h
19007
19008 fi
19009 fi
19010
19011
19012 # Check X11 headers.
19013 # X11/IntrinsicI.h is needed for LateBindings (to roll our own translations)
19014 xdvi_save_CPPFLAGS=$CPPFLAGS
19015 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19016 ac_fn_c_check_header_compile "$LINENO" "X11/Intrinsic.h" "ac_cv_header_X11_Intrinsic_h" "$ac_includes_default"
19017 if test "x$ac_cv_header_X11_Intrinsic_h" = xyes
19018 then :
19019 printf "%s\n" "#define HAVE_X11_INTRINSIC_H 1" >>confdefs.h
19020
19021 fi
19022 ac_fn_c_check_header_compile "$LINENO" "X11/IntrinsicI.h" "ac_cv_header_X11_IntrinsicI_h" "$ac_includes_default"
19023 if test "x$ac_cv_header_X11_IntrinsicI_h" = xyes
19024 then :
19025 printf "%s\n" "#define HAVE_X11_INTRINSICI_H 1" >>confdefs.h
19026
19027 fi
19028 ac_fn_c_check_header_compile "$LINENO" "X11/Xosdefs.h" "ac_cv_header_X11_Xosdefs_h" "$ac_includes_default"
19029 if test "x$ac_cv_header_X11_Xosdefs_h" = xyes
19030 then :
19031 printf "%s\n" "#define HAVE_X11_XOSDEFS_H 1" >>confdefs.h
19032
19033 fi
19034 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
19035 if test "x$ac_cv_header_X11_xpm_h" = xyes
19036 then :
19037 printf "%s\n" "#define HAVE_X11_XPM_H 1" >>confdefs.h
19038
19039 fi
19040 ac_fn_c_check_header_compile "$LINENO" "Xm/XpmP.h" "ac_cv_header_Xm_XpmP_h" "$ac_includes_default"
19041 if test "x$ac_cv_header_Xm_XpmP_h" = xyes
19042 then :
19043 printf "%s\n" "#define HAVE_XM_XPMP_H 1" >>confdefs.h
19044
19045 fi
19046
19047 # For editres, we need to check both the header and define a linker option.
19048 for ac_header in X11/Xmu/Editres.h X11/Xmu/Xmu.h
19049 do :
19050 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
19051 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_INTRINSIC_H
19052 # include <X11/Intrinsic.h>
19053 #endif
19054 "
19055 if eval test \"x\$"$as_ac_Header"\" = x"yes"
19056 then :
19057 cat >>confdefs.h <<_ACEOF
19058 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
19059 _ACEOF
19060 x_xmu_lib=-lXmu
19061 else case e in #(
19062 e) x_xmu_lib= ;;
19063 esac
19064 fi
19065
19066 done
19067
19068 CPPFLAGS=$xdvi_save_CPPFLAGS
19069
19070 # Check whether --enable-magick was given.
19071 if test ${enable_magick+y}
19072 then :
19073 enableval=$enable_magick;
19074 fi
19075
19076 if test "x$enable_magick" = xyes; then
19077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ImageMagick version" >&5
19078 printf %s "checking for ImageMagick version... " >&6; }
19079 if MAGICK_VER=`Magick-config --version 2>/dev/null`; then
19080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGICK_VER" >&5
19081 printf "%s\n" "$MAGICK_VER" >&6; }
19082 set dummy `echo $MAGICK_VER | sed -e 's/\./ /g'`
19083 MAGICK_VER_MAJOR=$2
19084 MAGICK_VER_MINOR=$3
19085 if expr $MAGICK_VER_MAJOR \> 4 >/dev/null && \
19086 (expr $MAGICK_VER_MAJOR \> 5 >/dev/null || \
19087 expr $MAGICK_VER_MINOR \> 2 >/dev/null); then
19088 MAGICK_CPP="-DMAGICK_VER_MAJOR=$MAGICK_VER_MAJOR -DMAGICK_VER_MINOR=$MAGICK_VER_MINOR `Magick-config --cppflags`"
19089 MAGICK_LD="`Magick-config --libs` `Magick-config --ldflags`"
19090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ImageMagick support enabled" >&5
19091 printf "%s\n" "$as_me: ImageMagick support enabled" >&6;}
19092 X_CFLAGS="$X_CFLAGS $MAGICK_CPP"
19093 X_EXTRA_LIBS="$X_EXTRA_LIBS $MAGICK_LD"
19094
19095 printf "%s\n" "#define MAGICK 1" >>confdefs.h
19096
19097 else
19098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ImageMagick version too old - disabled" >&5
19099 printf "%s\n" "$as_me: ImageMagick version too old - disabled" >&6;}
19100 fi
19101 else
19102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot run 'Magick-config' - ImageMagick support disabled" >&5
19103 printf "%s\n" "cannot run 'Magick-config' - ImageMagick support disabled" >&6; }
19104 fi
19105 fi
19106
19107 # Check whether -lXpm can be used
19108
19109
19110 # Check whether --with-xpm was given.
19111 if test ${with_xpm+y}
19112 then :
19113 withval=$with_xpm;
19114 fi
19115
19116 # Check whether --with-xpm-includes was given.
19117 if test ${with_xpm_includes+y}
19118 then :
19119 withval=$with_xpm_includes; xpm_includes=$withval
19120 else case e in #(
19121 e) xpm_includes= ;;
19122 esac
19123 fi
19124
19125 # Check whether --with-xpm-libraries was given.
19126 if test ${with_xpm_libraries+y}
19127 then :
19128 withval=$with_xpm_libraries; xpm_libraries=$withval
19129 else case e in #(
19130 e) xpm_libraries= ;;
19131 esac
19132 fi
19133 if test "x$with_xpm" = xno; then
19134 xpm_includes=no
19135 xpm_libraries=no
19136 fi
19137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Xpm" >&5
19138 printf %s "checking for Xpm... " >&6; }
19139 #
19140 # Check the headers.
19141 #
19142 if test "x$xpm_includes" = x; then
19143 if test ${xdvi_cv_xpm_includes+y}
19144 then :
19145 printf %s "(cached) " >&6
19146 else case e in #(
19147 e) xdvi_xpm_save_CFLAGS=$CFLAGS
19148 xdvi_xpm_save_CPPFLAGS=$CPPFLAGS
19149 #
19150 CFLAGS="$X_CFLAGS $CFLAGS"
19151 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
19152 #
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19155 #include <X11/xpm.h>
19156 int
19157 main (void)
19158 {
19159 int a;
19160 ;
19161 return 0;
19162 }
19163 _ACEOF
19164 if ac_fn_c_try_compile "$LINENO"
19165 then :
19166 # X11/xpm.h is in the standard search path.
19167 xdvi_cv_xpm_includes=default
19168 else case e in #(
19169 e) # X11/xpm.h is not in the standard search path.
19170 xdvi_cv_xpm_includes=no
19171 # Locate it and put its directory in `xpm_includes'
19172 #
19173 # /usr/include/Motif* are used on HP-UX (Motif).
19174 # /usr/include/X11* are used on HP-UX (X and Xaw).
19175 # /usr/dt is used on Solaris (Motif).
19176 # /usr/openwin is used on Solaris (X and Xaw).
19177 # Other directories are just guesses.
19178 for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
19179 /usr/X11/include /usr/X11R5/include /usr/X11R6/include \
19180 /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
19181 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
19182 /usr/dt/include /usr/openwin/include \
19183 /usr/dt/*/include /opt/*/include /usr/include/Motif* \
19184 "${prefix}"/*/include /usr/*/include /usr/local/*/include \
19185 "${prefix}"/include/* /usr/include/* /usr/local/include/*
19186 do
19187 if test -f "$dir/X11/xpm.h"; then
19188 xdvi_cv_xpm_includes=$dir
19189 break
19190 elif test -f "$dir/xpm.h"; then
19191 xdvi_cv_xpm_includes=$dir
19192 break
19193 fi
19194 done ;;
19195 esac
19196 fi
19197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19198 #
19199 CFLAGS=$xdvi_xpm_save_CFLAGS
19200 CPPFLAGS=$xdvi_xpm_save_CPPFLAGS ;;
19201 esac
19202 fi
19203
19204 #
19205 xpm_includes=$xdvi_cv_xpm_includes
19206
19207 fi
19208 if test "x$xpm_includes" = xdefault; then
19209
19210 printf "%s\n" "#define HAVE_X11_XPM_H 1" >>confdefs.h
19211
19212 elif test -f "$xpm_includes/X11/xpm.h"; then
19213 printf "%s\n" "#define HAVE_X11_XPM_H 1" >>confdefs.h
19214
19215 elif test -f "$xpm_includes/xpm.h"; then
19216
19217 printf "%s\n" "#define HAVE_XPM_H 1" >>confdefs.h
19218
19219 fi
19220 #
19221 # Add Xpm definition to X_CFLAGS (and remember previous value)
19222 #
19223 xdvi_xpm_save_X_CFLAGS=$X_CFLAGS
19224 if test "x$xpm_includes" != xdefault \
19225 && test "x$xpm_includes" != "x$x_includes" && test "x$xpm_includes" != xno
19226 then
19227 X_CFLAGS="-I$xpm_includes $X_CFLAGS"
19228 fi
19229 #
19230 # Check the libraries.
19231 #
19232 if test "x$xpm_libraries" = x; then
19233 if test ${xdvi_cv_xpm_libraries+y}
19234 then :
19235 printf %s "(cached) " >&6
19236 else case e in #(
19237 e) xdvi_xpm_save_LIBS=$LIBS
19238 xdvi_xpm_save_CFLAGS=$CFLAGS
19239 xdvi_xpm_save_CPPFLAGS=$CPPFLAGS
19240 xdvi_xpm_save_LDFLAGS=$LDFLAGS
19241 #
19242 LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
19243 CFLAGS="$X_CFLAGS $CFLAGS"
19244 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
19245 LDFLAGS="$X_LIBS $LDFLAGS"
19246 #
19247 # We use XtToolkitInitialize() here since it takes no arguments
19248 # and thus also works with a C++ compiler.
19249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19250 /* end confdefs.h. */
19251 #include <X11/Intrinsic.h>
19252 #include <X11/xpm.h>
19253 int
19254 main (void)
19255 {
19256 XtToolkitInitialize();
19257 ;
19258 return 0;
19259 }
19260 _ACEOF
19261 if ac_fn_c_try_link "$LINENO"
19262 then :
19263 # libxpm.a is in the standard search path.
19264 xdvi_cv_xpm_libraries=default
19265 else case e in #(
19266 e) # libXpm.a is not in the standard search path.
19267 xdvi_cv_xpm_libraries=no
19268 # Locate it and put its directory in `xpm_libraries'
19269 #
19270 # /usr/lib/Motif* are used on HP-UX (Motif).
19271 # /usr/lib/X11* are used on HP-UX (X and Xpm).
19272 # /usr/dt is used on Solaris (Motif).
19273 # /usr/openwin is used on Solaris (X and Xpm).
19274 # Other directories are just guesses.
19275 for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
19276 /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
19277 /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
19278 /usr/dt/lib /usr/openwin/lib \
19279 /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
19280 "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
19281 "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*
19282 do
19283 if test -d "$dir" && test "`ls $dir/libXpm.* 2> /dev/null`" != ""; then
19284 xdvi_cv_xpm_libraries=$dir
19285 break
19286 fi
19287 done ;;
19288 esac
19289 fi
19290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19291 conftest$ac_exeext conftest.$ac_ext
19292 #
19293 LIBS=$xdvi_xpm_save_LIBS
19294 CFLAGS=$xdvi_xpm_save_CFLAGS
19295 CPPFLAGS=$xdvi_xpm_save_CPPFLAGS
19296 LDFLAGS=$xdvi_xpm_save_LDFLAGS ;;
19297 esac
19298 fi
19299
19300 #
19301 xpm_libraries="$xdvi_cv_xpm_libraries"
19302 fi
19303 #
19304 # Report the results of headers and libraries.
19305 #
19306 xdvi_use_xpm=yes
19307 #
19308 #
19309 xpm_libraries_result=$xpm_libraries
19310 if test "x$xpm_libraries_result" = xdefault; then
19311 xpm_libraries_result="in default path"
19312 elif test "x$xpm_libraries_result" = xno; then
19313 xpm_libraries_result="(none)"
19314 xdvi_use_xpm=no
19315 fi
19316 #
19317 xpm_includes_result=$xpm_includes
19318 if test "x$xpm_includes_result" = xdefault; then
19319 xpm_includes_result="in default path"
19320 elif test "x$xpm_includes_result" = xno; then
19321 xpm_includes_result="(none)"
19322 xdvi_use_xpm=no
19323 fi
19324 #
19325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $xpm_libraries_result, headers $xpm_includes_result" >&5
19326 printf "%s\n" "libraries $xpm_libraries_result, headers $xpm_includes_result" >&6; }
19327 #
19328 if test "x$xdvi_use_xpm" = xyes; then
19329 #
19330 # Add Xpm definition to X_LIBS
19331 #
19332 if test "x$xpm_libraries" != xdefault \
19333 && test "x$xpm_libraries" != "x$x_libraries" && test "x$xpm_libraries" != xno
19334 then
19335 case "$X_LIBS" in
19336 *-R\ *) X_LIBS="-L$xpm_libraries -R $xpm_libraries $X_LIBS";;
19337 *-R*) X_LIBS="-L$xpm_libraries -R$xpm_libraries $X_LIBS";;
19338 *) X_LIBS="-L$xpm_libraries $X_LIBS";;
19339 esac
19340 fi
19341 #
19342
19343 printf "%s\n" "#define USE_XPM 1" >>confdefs.h
19344
19345 x_xpm_libs="-lXpm"
19346 else
19347 # Restore previous X_CFLAGS
19348 X_CFLAGS=$xdvi_xpm_save_X_CFLAGS
19349 printf "%s\n" "#define USE_XPM 0" >>confdefs.h
19350
19351 x_xpm_libs=
19352 fi
19353
19354
19355
19356 # Check for libXext.
19357 if test -n "$x_libraries"
19358 then :
19359 XLFLAG="-L$x_libraries"
19360 else case e in #(
19361 e) XLFLAG= ;;
19362 esac
19363 fi
19364 if test -z "$x_ext_lib"; then # allow envvar override
19365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XextCreateExtension in -lXext" >&5
19366 printf %s "checking for XextCreateExtension in -lXext... " >&6; }
19367 if test ${ac_cv_lib_Xext_XextCreateExtension+y}
19368 then :
19369 printf %s "(cached) " >&6
19370 else case e in #(
19371 e) ac_check_lib_save_LIBS=$LIBS
19372 LIBS="-lXext -lX11 $X_EXTRA_LIBS $XLFLAG $LIBS"
19373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374 /* end confdefs.h. */
19375
19376 /* Override any GCC internal prototype to avoid an error.
19377 Use char because int might match the return type of a GCC
19378 builtin and then its argument prototype would still apply.
19379 The 'extern "C"' is for builds by C++ compilers;
19380 although this is not generally supported in C code supporting it here
19381 has little cost and some practical benefit (sr 110532). */
19382 #ifdef __cplusplus
19383 extern "C"
19384 #endif
19385 char XextCreateExtension (void);
19386 int
19387 main (void)
19388 {
19389 return XextCreateExtension ();
19390 ;
19391 return 0;
19392 }
19393 _ACEOF
19394 if ac_fn_c_try_link "$LINENO"
19395 then :
19396 ac_cv_lib_Xext_XextCreateExtension=yes
19397 else case e in #(
19398 e) ac_cv_lib_Xext_XextCreateExtension=no ;;
19399 esac
19400 fi
19401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19402 conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS ;;
19404 esac
19405 fi
19406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
19407 printf "%s\n" "$ac_cv_lib_Xext_XextCreateExtension" >&6; }
19408 if test "x$ac_cv_lib_Xext_XextCreateExtension" = xyes
19409 then :
19410 x_ext_lib='-lXext'
19411 fi
19412
19413 fi
19414
19415
19416 # Check for libXp.
19417 # Although libXp is now defunct (no longer part of XOrg), older versions
19418 # of libXm may need to link with libXp; same for the equally defunct libXaw8.
19419 # We certainly don't want to include libXp unless necessary, since this might
19420 # only perpetuate the need to keep libXp.so around.
19421 # Moreover for ELF shared libraries a requirement for libXp.so is probably
19422 # encoded into libXm.so and/or libXaw.so and need not be specified explicitly.
19423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XpQueryVersion in -lXp" >&5
19424 printf %s "checking for XpQueryVersion in -lXp... " >&6; }
19425 if test ${ac_cv_lib_Xp_XpQueryVersion+y}
19426 then :
19427 printf %s "(cached) " >&6
19428 else case e in #(
19429 e) ac_check_lib_save_LIBS=$LIBS
19430 LIBS="-lXp $x_ext_lib -lX11 $X_EXTRA_LIBS $XLFLAG $LIBS"
19431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19432 /* end confdefs.h. */
19433
19434 /* Override any GCC internal prototype to avoid an error.
19435 Use char because int might match the return type of a GCC
19436 builtin and then its argument prototype would still apply.
19437 The 'extern "C"' is for builds by C++ compilers;
19438 although this is not generally supported in C code supporting it here
19439 has little cost and some practical benefit (sr 110532). */
19440 #ifdef __cplusplus
19441 extern "C"
19442 #endif
19443 char XpQueryVersion (void);
19444 int
19445 main (void)
19446 {
19447 return XpQueryVersion ();
19448 ;
19449 return 0;
19450 }
19451 _ACEOF
19452 if ac_fn_c_try_link "$LINENO"
19453 then :
19454 ac_cv_lib_Xp_XpQueryVersion=yes
19455 else case e in #(
19456 e) ac_cv_lib_Xp_XpQueryVersion=no ;;
19457 esac
19458 fi
19459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19460 conftest$ac_exeext conftest.$ac_ext
19461 LIBS=$ac_check_lib_save_LIBS ;;
19462 esac
19463 fi
19464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpQueryVersion" >&5
19465 printf "%s\n" "$ac_cv_lib_Xp_XpQueryVersion" >&6; }
19466 if test "x$ac_cv_lib_Xp_XpQueryVersion" = xyes
19467 then :
19468 x_xp_lib='-lXp'
19469 fi
19470
19471
19472 if test "x$enable_build" != xno || test -f config.force; then
19473
19474 # Check which toolkit was specified
19475 case $with_xdvi_x_toolkit in #(
19476 next | nextaw | neXtaw) :
19477 val=neXtaw ;; #(
19478 xaw3d) :
19479 val=xaw3d ;; #(
19480 "" | x | xa | xaw) :
19481 val=xaw ;; #(
19482 y | ye | yes) :
19483 val=yes ;; #(
19484 m | mo | mot | moti | motif) :
19485 val=motif ;; #(
19486 *) :
19487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown --with-xdvi-x-toolkit argument
19488 \`$with_xdvi_x_toolkit'; using xaw." >&5
19489 printf "%s\n" "$as_me: WARNING: unknown --with-xdvi-x-toolkit argument
19490 \`$with_xdvi_x_toolkit'; using xaw." >&2;}
19491 val=xaw ;;
19492 esac
19493 with_xdvi_x_toolkit=$val
19494
19495 if test "x$with_xdvi_x_toolkit" = xxaw3d; then
19496 prog_extension="xaw3d"
19497 x_tool_libs="-lXaw3d"
19498 elif test "x$with_xdvi_x_toolkit" = xneXtaw; then
19499 prog_extension="nextaw"
19500 x_tool_libs="-lneXtaw"
19501 else
19502 # Check for Xaw headers and library version
19503 save_CPPFLAGS=$CPPFLAGS
19504 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Xaw headers" >&5
19506 printf %s "checking for Xaw headers... " >&6; }
19507 if test ${xdvi_cv_xaw_headers+y}
19508 then :
19509 printf %s "(cached) " >&6
19510 else case e in #(
19511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19512 /* end confdefs.h. */
19513
19514 #include <X11/X.h>
19515 #include <X11/Xlib.h>
19516 #include <X11/Xutil.h>
19517 #include <X11/Xos.h>
19518 #include <X11/Xfuncs.h>
19519 #include <X11/Intrinsic.h>
19520 #include <X11/Xaw/Form.h>
19521 int
19522 main (void)
19523 {
19524
19525 ;
19526 return 0;
19527 }
19528 _ACEOF
19529 if ac_fn_c_try_compile "$LINENO"
19530 then :
19531 xdvi_cv_xaw_headers=yes
19532 else case e in #(
19533 e) xdvi_cv_xaw_headers=no ;;
19534 esac
19535 fi
19536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19537 esac
19538 fi
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_xaw_headers" >&5
19540 printf "%s\n" "$xdvi_cv_xaw_headers" >&6; }
19541 xdvi_have_xaw=$xdvi_cv_xaw_headers
19542 #
19543 if test "x$xdvi_have_xaw" = xyes; then
19544 ac_fn_c_check_member "$LINENO" "SimpleClassPart" "extension" "ac_cv_member_SimpleClassPart_extension" "
19545 #include <X11/IntrinsicP.h>
19546 #include <X11/StringDefs.h>
19547 #include <X11/Intrinsic.h>
19548 #include <X11/StringDefs.h>
19549 #include <X11/Xos.h>
19550 #include <X11/Xaw/SimpleP.h>
19551 "
19552 if test "x$ac_cv_member_SimpleClassPart_extension" = xyes
19553 then :
19554
19555 else case e in #(
19556 e)
19557 printf "%s\n" "#define HAVE_OLD_XAW 1" >>confdefs.h
19558 ;;
19559 esac
19560 fi
19561
19562
19563 fi
19564 CPPFLAGS=$save_CPPFLAGS
19565
19566 if test "x$with_xdvi_x_toolkit" != xxaw; then
19567 if test "x$with_xdvi_x_toolkit" = xmotif; then
19568 # Requested motiv
19569 default_toolkit=none
19570 else
19571 # Requested motiv with Xaw as fallback
19572 default_toolkit=Xaw
19573 fi
19574
19575
19576 # Check whether --with-motif-include was given.
19577 if test ${with_motif_include+y}
19578 then :
19579 withval=$with_motif_include; motif_include=$withval
19580 else case e in #(
19581 e) motif_include= ;;
19582 esac
19583 fi
19584
19585 # Check whether --with-motif-libdir was given.
19586 if test ${with_motif_libdir+y}
19587 then :
19588 withval=$with_motif_libdir; motif_libdir=$withval
19589 else case e in #(
19590 e) motif_libdir= ;;
19591 esac
19592 fi
19593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Motif" >&5
19594 printf %s "checking for Motif... " >&6; }
19595 #
19596 # Search the include files.
19597 #
19598 if test "x$motif_include" = x; then
19599 if test ${xdvi_cv_motif_include+y}
19600 then :
19601 printf %s "(cached) " >&6
19602 else case e in #(
19603 e) xdvi_motif_save_CFLAGS=$CFLAGS
19604 xdvi_motif_save_CPPFLAGS=$CPPFLAGS
19605 #
19606 CFLAGS="$X_CFLAGS $CFLAGS"
19607 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
19608 #
19609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19610 /* end confdefs.h. */
19611 #include <Xm/Xm.h>
19612 int
19613 main (void)
19614 {
19615 int a;
19616 ;
19617 return 0;
19618 }
19619 _ACEOF
19620 if ac_fn_c_try_compile "$LINENO"
19621 then :
19622 # Xm/Xm.h is in the standard search path.
19623 xdvi_cv_motif_include=default
19624 else case e in #(
19625 e) # Xm/Xm.h is not in the standard search path.
19626 xdvi_cv_motif_include=no
19627 # Locate it and put its directory in `motif_include'
19628 #
19629 # /usr/include/Motif* are used on HP-UX (Motif).
19630 # /usr/include/X11* are used on HP-UX (X and Athena).
19631 # /usr/dt is used on Solaris (Motif).
19632 # /usr/openwin is used on Solaris (X and Athena).
19633 # Other directories are just guesses.
19634 for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
19635 /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
19636 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
19637 /usr/dt/include /usr/openwin/include \
19638 /usr/dt/*/include /opt/*/include /usr/include/Motif* \
19639 "${prefix}"/*/include /usr/*/include /usr/local/*/include \
19640 "${prefix}"/include/* /usr/include/* /usr/local/include/*; do
19641 if test -f "$dir/Xm/Xm.h"; then
19642 xdvi_cv_motif_include=$dir
19643 break
19644 fi
19645 done ;;
19646 esac
19647 fi
19648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19649 #
19650 CFLAGS=$xdvi_motif_save_CFLAGS
19651 CPPFLAGS=$xdvi_motif_save_CPPFLAGS ;;
19652 esac
19653 fi
19654
19655 motif_include=$xdvi_cv_motif_include
19656
19657 fi
19658 #
19659 # Add Motif definition to X_CFLAGS (and remember previous value)
19660 #
19661 xdvi_motif_save_X_CFLAGS=$X_CFLAGS
19662 if test "x$motif_include" != xdefault \
19663 && test "x$motif_include" != "x$x_includes" && test "x$motif_include" != xno
19664 then
19665 X_CFLAGS="-I$motif_include $X_CFLAGS"
19666 fi
19667 #
19668 # Now for the libraries.
19669 #
19670 if test "x$motif_libdir" = x; then
19671 if test ${xdvi_cv_motif_libdir+y}
19672 then :
19673 printf %s "(cached) " >&6
19674 else case e in #(
19675 e) xdvi_motif_save_LIBS=$LIBS
19676 xdvi_motif_save_CFLAGS=$CFLAGS
19677 xdvi_motif_save_CPPFLAGS=$CPPFLAGS
19678 xdvi_motif_save_LDFLAGS=$LDFLAGS
19679 #
19680 LIBS="$X_PRE_LIBS -lXm $x_xp_lib -lXt -lX11 $X_EXTRA_LIBS $LIBS"
19681 CFLAGS="$X_CFLAGS $CFLAGS"
19682 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
19683 LDFLAGS="$X_LIBS $LDFLAGS"
19684 #
19685 # We use XtToolkitInitialize() here since it takes no arguments
19686 # and thus also works with a C++ compiler.
19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h. */
19689 #include <X11/Intrinsic.h>
19690 #include <Xm/Xm.h>
19691 int
19692 main (void)
19693 {
19694 XtToolkitInitialize();
19695 ;
19696 return 0;
19697 }
19698 _ACEOF
19699 if ac_fn_c_try_link "$LINENO"
19700 then :
19701 # libXm.a is in the standard search path.
19702 xdvi_cv_motif_libdir=default
19703 else case e in #(
19704 e) # libXm.a is not in the standard search path.
19705 xdvi_cv_motif_libdir=no
19706 # Locate it and put its directory in `motif_libdir'
19707 #
19708 # /usr/lib/Motif* are used on HP-UX (Motif).
19709 # /usr/lib/X11* are used on HP-UX (X and Athena).
19710 # /usr/dt is used on Solaris (Motif).
19711 # /usr/lesstif is used on Linux (Lesstif).
19712 # /usr/openwin is used on Solaris (X and Athena).
19713 # Other directories are just guesses.
19714 for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
19715 /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
19716 /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
19717 /usr/dt/lib /usr/openwin/lib \
19718 /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
19719 /usr/lesstif*/lib /usr/lib/Lesstif* \
19720 "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
19721 "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
19722 if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then
19723 xdvi_cv_motif_libdir=$dir
19724 break
19725 fi
19726 done ;;
19727 esac
19728 fi
19729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19730 conftest$ac_exeext conftest.$ac_ext
19731 #
19732 LIBS=$xdvi_motif_save_LIBS
19733 CFLAGS=$xdvi_motif_save_CFLAGS
19734 CPPFLAGS=$xdvi_motif_save_CPPFLAGS
19735 LDFLAGS=$xdvi_motif_save_LDFLAGS ;;
19736 esac
19737 fi
19738
19739 #
19740 motif_libdir="$xdvi_cv_motif_libdir"
19741
19742 fi
19743 #
19744 # Report the results of headers and libraries.
19745 #
19746 xdvi_have_motif=yes
19747 #
19748 motif_libdir_result=$motif_libdir
19749 if test "x$motif_libdir_result" = xdefault; then
19750 motif_libdir_result="in default path"
19751 elif test "x$motif_libdir_result" = xno; then
19752 motif_libdir_result="(none)"
19753 xdvi_have_motif=no
19754 fi
19755 #
19756 motif_include_result=$motif_include
19757 if test "x$motif_include_result" = xdefault; then
19758 motif_include_result="in default path"
19759 elif test "x$motif_include_result" = xno; then
19760 motif_include_result="(none)"
19761 xdvi_have_motif=no
19762 fi
19763 #
19764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $motif_libdir_result, headers $motif_include_result" >&5
19765 printf "%s\n" "libraries $motif_libdir_result, headers $motif_include_result" >&6; }
19766 #
19767 if test "x$xdvi_have_motif" = xyes; then
19768 #
19769 # Add Motif definition to X_LIBS
19770 #
19771 if test "x$motif_libdir" != xdefault \
19772 && test "x$motif_libdir" != "x$x_libraries" && test "x$motif_libdir" != no
19773 then
19774 case "$X_LIBS" in
19775 *-R\ *) X_LIBS="-L$motif_libdir -R $motif_libdir $X_LIBS";;
19776 *-R*) X_LIBS="-L$motif_libdir -R$motif_libdir $X_LIBS";;
19777 *) X_LIBS="-L$motif_libdir $X_LIBS";;
19778 esac
19779 fi
19780 #
19781 prog_extension="motif"
19782
19783 printf "%s\n" "#define MOTIF 1" >>confdefs.h
19784
19785 x_tool_libs="-lXm"
19786 if test "x$x_xp_lib" != x; then
19787 # check if libXm requires libXp
19788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libXm requires libXp" >&5
19789 printf %s "checking if libXm requires libXp... " >&6; }
19790 if test ${xdvi_cv_motif_xp+y}
19791 then :
19792 printf %s "(cached) " >&6
19793 else case e in #(
19794 e) xdvi_motif_save_LIBS=$LIBS
19795 xdvi_motif_save_CFLAGS=$CFLAGS
19796 xdvi_motif_save_CPPFLAGS=$CPPFLAGS
19797 xdvi_motif_save_LDFLAGS=$LDFLAGS
19798 #
19799 LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS"
19800 CFLAGS="$X_CFLAGS $CFLAGS"
19801 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
19802 LDFLAGS="$X_LIBS $LDFLAGS"
19803 #
19804 # We use XtToolkitInitialize() here since it takes no arguments
19805 # and thus also works with a C++ compiler.
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h. */
19808 #include <X11/Intrinsic.h>
19809 #include <Xm/Xm.h>
19810 int
19811 main (void)
19812 {
19813 XtToolkitInitialize();
19814 ;
19815 return 0;
19816 }
19817 _ACEOF
19818 if ac_fn_c_try_link "$LINENO"
19819 then :
19820 xdvi_cv_motif_xp=no
19821 else case e in #(
19822 e) xdvi_cv_motif_xp=yes ;;
19823 esac
19824 fi
19825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19826 conftest$ac_exeext conftest.$ac_ext
19827 #
19828 LIBS=$xdvi_motif_save_LIBS
19829 CFLAGS=$xdvi_motif_save_CFLAGS
19830 CPPFLAGS=$xdvi_motif_save_CPPFLAGS
19831 LDFLAGS=$xdvi_motif_save_LDFLAGS ;;
19832 esac
19833 fi
19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_motif_xp" >&5
19835 printf "%s\n" "$xdvi_cv_motif_xp" >&6; }
19836 if test "x$xdvi_cv_motif_xp" = xyes; then
19837 x_tool_libs="$x_tool_libs $x_xp_lib"
19838 fi
19839
19840 fi
19841 # now warn if we're using LessTif (see LESSTIF-BUGS for why ...)
19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LessTif" >&5
19843 printf %s "checking for LessTif... " >&6; }
19844 if test ${xdvi_cv_using_lesstif+y}
19845 then :
19846 printf %s "(cached) " >&6
19847 else case e in #(
19848 e) save_CPPFLAGS=$CPPFLAGS
19849 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19852 #include <X11/X.h>
19853 #include <X11/Xlib.h>
19854 #include <X11/Xutil.h>
19855 #include <X11/Xos.h>
19856 #include <X11/Intrinsic.h>
19857 #include <Xm/Xm.h>
19858 int
19859 main (void)
19860 {
19861 const char *p = LesstifVERSION_STRING;
19862 ;
19863 return 0;
19864 }
19865 _ACEOF
19866 if ac_fn_c_try_compile "$LINENO"
19867 then :
19868 xdvi_cv_using_lesstif=yes
19869 else case e in #(
19870 e) xdvi_cv_using_lesstif=no ;;
19871 esac
19872 fi
19873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19874 CPPFLAGS=$save_CPPFLAGS ;;
19875 esac
19876 fi
19877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_using_lesstif" >&5
19878 printf "%s\n" "$xdvi_cv_using_lesstif" >&6; }
19879 if test "x$xdvi_cv_using_lesstif" = xyes; then
19880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LessTif header detected.
19881 *****************************************************************
19882 * Warning: You are using LessTif instead of OpenMotif. *
19883 * Some GUI elements might be broken; please see the file *
19884 * *
19885 * texk/xdvik/LESSTIF-BUGS *
19886 * *
19887 * for more information. *
19888 *****************************************************************" >&5
19889 printf "%s\n" "$as_me: WARNING: LessTif header detected.
19890 *****************************************************************
19891 * Warning: You are using LessTif instead of OpenMotif. *
19892 * Some GUI elements might be broken; please see the file *
19893 * *
19894 * texk/xdvik/LESSTIF-BUGS *
19895 * *
19896 * for more information. *
19897 *****************************************************************" >&2;}
19898 fi
19899
19900 # Check whether to compile for Motif with Xaw Panner.
19901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile in panner (requires Xaw)" >&5
19902 printf %s "checking whether to compile in panner (requires Xaw)... " >&6; }
19903 if test ${xdvi_cv_use_xaw_panner+y}
19904 then :
19905 printf %s "(cached) " >&6
19906 else case e in #(
19907 e) save_CPPFLAGS=$CPPFLAGS
19908 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19910 /* end confdefs.h. */
19911 #include <X11/X.h>
19912 #include <X11/Xlib.h>
19913 #include <X11/Xutil.h>
19914 #include <X11/Xos.h>
19915 #include <X11/Xfuncs.h>
19916 #include <X11/Intrinsic.h>
19917 #include <X11/Xaw/Reports.h>
19918 int
19919 main (void)
19920 {
19921
19922 ;
19923 return 0;
19924 }
19925 _ACEOF
19926 if ac_fn_c_try_compile "$LINENO"
19927 then :
19928 xdvi_cv_use_xaw_panner=yes
19929 else case e in #(
19930 e) xdvi_cv_use_xaw_panner=no ;;
19931 esac
19932 fi
19933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19934 CPPFLAGS=$save_CPPFLAGS ;;
19935 esac
19936 fi
19937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_use_xaw_panner" >&5
19938 printf "%s\n" "$xdvi_cv_use_xaw_panner" >&6; }
19939 if test "x$xdvi_cv_use_xaw_panner" = xyes; then
19940
19941 printf "%s\n" "#define USE_XAW_PANNER 1" >>confdefs.h
19942
19943 fi
19944
19945 elif test "x$default_toolkit" = xnone; then
19946 as_fn_error $? "No Motif." "$LINENO" 5
19947 else
19948 # Restore previous X_CFLAGS
19949 X_CFLAGS=$xdvi_motif_save_X_CFLAGS
19950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No Motif, using Xaw." >&5
19951 printf "%s\n" "$as_me: No Motif, using Xaw." >&6;}
19952 with_xdvi_x_toolkit="xaw"
19953 fi
19954
19955
19956 fi
19957 if test "x$with_xdvi_x_toolkit" = xxaw; then
19958 # Requested or fallback to Xaw, check for library
19959
19960 if test "x$xdvi_have_xaw" = xyes; then
19961 # First try without libXp
19962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XawInitializeWidgetSet in -lXaw" >&5
19963 printf %s "checking for XawInitializeWidgetSet in -lXaw... " >&6; }
19964 if test ${ac_cv_lib_Xaw_XawInitializeWidgetSet+y}
19965 then :
19966 printf %s "(cached) " >&6
19967 else case e in #(
19968 e) ac_check_lib_save_LIBS=$LIBS
19969 LIBS="-lXaw $x_xmu_lib -lXt $X_PRE_LIBS $x_ext_lib $x_xpm_libs -lX11 $X_EXTRA_LIBS $XLFLAG $LIBS"
19970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19971 /* end confdefs.h. */
19972
19973 /* Override any GCC internal prototype to avoid an error.
19974 Use char because int might match the return type of a GCC
19975 builtin and then its argument prototype would still apply.
19976 The 'extern "C"' is for builds by C++ compilers;
19977 although this is not generally supported in C code supporting it here
19978 has little cost and some practical benefit (sr 110532). */
19979 #ifdef __cplusplus
19980 extern "C"
19981 #endif
19982 char XawInitializeWidgetSet (void);
19983 int
19984 main (void)
19985 {
19986 return XawInitializeWidgetSet ();
19987 ;
19988 return 0;
19989 }
19990 _ACEOF
19991 if ac_fn_c_try_link "$LINENO"
19992 then :
19993 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
19994 else case e in #(
19995 e) ac_cv_lib_Xaw_XawInitializeWidgetSet=no ;;
19996 esac
19997 fi
19998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19999 conftest$ac_exeext conftest.$ac_ext
20000 LIBS=$ac_check_lib_save_LIBS ;;
20001 esac
20002 fi
20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
20004 printf "%s\n" "$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6; }
20005 if test "x$ac_cv_lib_Xaw_XawInitializeWidgetSet" = xyes
20006 then :
20007 x_tool_libs="-lXaw"
20008 else case e in #(
20009 e) # libXaw without libXp failed
20010 if test "x$x_xp_lib" = x; then
20011 xdvi_have_xaw=no
20012 else
20013 # Now try with libXp
20014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XawTextReplace in -lXaw" >&5
20015 printf %s "checking for XawTextReplace in -lXaw... " >&6; }
20016 if test ${ac_cv_lib_Xaw_XawTextReplace+y}
20017 then :
20018 printf %s "(cached) " >&6
20019 else case e in #(
20020 e) ac_check_lib_save_LIBS=$LIBS
20021 LIBS="-lXaw $x_xp_lib $x_xmu_lib -lXt $X_PRE_LIBS $x_ext_lib $x_xpm_libs -lX11 $X_EXTRA_LIBS $XLFLAG $LIBS"
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h. */
20024
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply.
20028 The 'extern "C"' is for builds by C++ compilers;
20029 although this is not generally supported in C code supporting it here
20030 has little cost and some practical benefit (sr 110532). */
20031 #ifdef __cplusplus
20032 extern "C"
20033 #endif
20034 char XawTextReplace (void);
20035 int
20036 main (void)
20037 {
20038 return XawTextReplace ();
20039 ;
20040 return 0;
20041 }
20042 _ACEOF
20043 if ac_fn_c_try_link "$LINENO"
20044 then :
20045 ac_cv_lib_Xaw_XawTextReplace=yes
20046 else case e in #(
20047 e) ac_cv_lib_Xaw_XawTextReplace=no ;;
20048 esac
20049 fi
20050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20051 conftest$ac_exeext conftest.$ac_ext
20052 LIBS=$ac_check_lib_save_LIBS ;;
20053 esac
20054 fi
20055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw_XawTextReplace" >&5
20056 printf "%s\n" "$ac_cv_lib_Xaw_XawTextReplace" >&6; }
20057 if test "x$ac_cv_lib_Xaw_XawTextReplace" = xyes
20058 then :
20059 x_tool_libs="-lXaw $x_xp_lib"
20060 else case e in #(
20061 e) xdvi_have_xaw=no ;;
20062 esac
20063 fi
20064
20065 fi ;;
20066 esac
20067 fi
20068
20069 fi
20070 if test "x$xdvi_have_xaw" = xyes; then
20071 prog_extension="xaw"
20072
20073 printf "%s\n" "#define XAW 1" >>confdefs.h
20074
20075
20076 # We need the type of the "list" parameter to XawListChange
20077 # (the second parameter), for use in gui/pagesel.c. See more comments there.
20078 #
20079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of XawListChange list parameter" >&5
20080 printf %s "checking for type of XawListChange list parameter... " >&6; }
20081 # Although we could try to use the compiler to discern the location of
20082 # <X11/Xaw/List.h>, that seems likely to have its own problems. Let's
20083 # try just assuming the standard location.
20084 #
20085 listh=/usr/include/X11/Xaw/List.h
20086
20087 # Clearly this simple search is subject to plenty of problems in
20088 # theory, but in practice, if no one gratuitously changes the
20089 # formatting in Xaw/List.h, it should be ok? The line intended to be
20090 # matched looks like
20091 # String *list, [except with tabs]
20092 # or
20093 # _Xconst char *list,
20094 # or who knows what else. Hopefully it will be the complete type.
20095 #
20096 list_type=`sed -n 's/list,$//p' $listh`
20097 #
20098 # The type ordinarily has lots of whitespace, as in the String line above.
20099 # People will uselessly complain about that, so reduce it to a single space:
20100 tab=' ' # that's a tab character
20101 # The outer square brackets are the Autoconf quote pair;
20102 # the inner square brackets are the normal regexp character class.
20103 #echo "got '$list_type' from $listh, tab=$tab." >/tmp/lh
20104 list_type=`echo "$list_type" | sed "s/[ $tab][ $tab]*/ /g"`
20105 #echo "new '$list_type' from $listh" >>/tmp/lh
20106 #
20107 if test -z "$list_type"; then
20108 # But if we didn't find anything, default to the type of our
20109 # page_labels member in pagesel.c, which has been the traditional
20110 # effective behavior.
20111 list_type="char **"
20112 fi
20113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $list_type" >&5
20114 printf "%s\n" "$list_type" >&6; }
20115 #debug: echo "got '$list_type' from $listh" >/tmp/lh
20116 #
20117 # autoconf internally quotes the shell variable value with
20118 # ac_define_unquoted; we don't use shell "quotes" here since the final
20119 # value must not have any quotes, being a type that we want to use in
20120 # a cast, not a string constant.
20121
20122 printf "%s\n" "#define XAWLISTCHANGELISTTYPE $list_type" >>confdefs.h
20123
20124 else
20125 as_fn_error $? "Sorry, you will need at least the Xaw header/library files to compile xdvik." "$LINENO" 5
20126 fi
20127
20128 fi
20129 fi
20130
20131 final_exec_name="xdvi-$prog_extension"
20132 program_transform_name="'s,xdvi-bin,$final_exec_name,'"
20133
20134
20135
20136
20137
20138 # If we're on Solaris and we want DPS, then add the extra compilation stuff
20139 # to get it.
20140 if echo "$PS_DEF" | grep PS_DPS >/dev/null; then
20141 if test "`(uname) 2>/dev/null`" = SunOS \
20142 && uname -r | grep '^5' >/dev/null; then
20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding DPS includes and libraries for Solaris" >&5
20144 printf "%s\n" "$as_me: adding DPS includes and libraries for Solaris" >&6;}
20145 X_CFLAGS="$X_CFLAGS -I/usr/openwin/include/X11"
20146 X_LIBS="$X_LIBS -R/usr/openwin/lib /usr/openwin/lib/libdps.so $ac_sunmath"
20147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isinf in -lsunmath" >&5
20148 printf %s "checking for isinf in -lsunmath... " >&6; }
20149 if test ${ac_cv_lib_sunmath_isinf+y}
20150 then :
20151 printf %s "(cached) " >&6
20152 else case e in #(
20153 e) ac_check_lib_save_LIBS=$LIBS
20154 LIBS="-lsunmath $LIBS"
20155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20156 /* end confdefs.h. */
20157
20158 /* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply.
20161 The 'extern "C"' is for builds by C++ compilers;
20162 although this is not generally supported in C code supporting it here
20163 has little cost and some practical benefit (sr 110532). */
20164 #ifdef __cplusplus
20165 extern "C"
20166 #endif
20167 char isinf (void);
20168 int
20169 main (void)
20170 {
20171 return isinf ();
20172 ;
20173 return 0;
20174 }
20175 _ACEOF
20176 if ac_fn_c_try_link "$LINENO"
20177 then :
20178 ac_cv_lib_sunmath_isinf=yes
20179 else case e in #(
20180 e) ac_cv_lib_sunmath_isinf=no ;;
20181 esac
20182 fi
20183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20184 conftest$ac_exeext conftest.$ac_ext
20185 LIBS=$ac_check_lib_save_LIBS ;;
20186 esac
20187 fi
20188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_isinf" >&5
20189 printf "%s\n" "$ac_cv_lib_sunmath_isinf" >&6; }
20190 if test "x$ac_cv_lib_sunmath_isinf" = xyes
20191 then :
20192 X_LIBS="$X_LIBS -lsunmath"
20193 fi
20194
20195 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
20196 if test "x$ac_cv_func_isinf" = xyes
20197 then :
20198 printf "%s\n" "#define HAVE_ISINF 1" >>confdefs.h
20199
20200 fi
20201
20202 ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
20203 if test "x$ac_cv_header_ieeefp_h" = xyes
20204 then :
20205 printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h
20206
20207 fi
20208
20209 else
20210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding DPS libraries for SunOS 4.x" >&5
20211 printf "%s\n" "$as_me: adding DPS libraries for SunOS 4.x" >&6;}
20212 X_LIBS="$X_LIBS -ldps"
20213 fi
20214 elif echo "$PS_DEF" | grep PS_NEWS >/dev/null; then
20215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding NeWS libraries" >&5
20216 printf "%s\n" "$as_me: adding NeWS libraries" >&6;}
20217 X_LIBS="$X_LIBS -lxview -lcps -lolgx -lxvps"
20218 fi
20219
20220 kpse_save_CPPFLAGS=$CPPFLAGS
20221 kpse_save_LIBS=$LIBS
20222
20223 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
20224 kpse_BLD=`(cd "./../../." && pwd)`
20225 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
20226
20227 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
20228 : ${CONFIG_LT=./config.lt}
20229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
20230 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
20231 as_write_fail=0
20232 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
20233 #! $SHELL
20234 # Generated by $as_me.
20235 # Run this file to recreate a libtool stub with the current configuration.
20236 SHELL=\${CONFIG_SHELL-$SHELL}
20237 export SHELL
20238 _ASEOF
20239 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
20240 ## -------------------- ##
20241 ## M4sh Initialization. ##
20242 ## -------------------- ##
20243
20244 # Be more Bourne compatible
20245 DUALCASE=1; export DUALCASE # for MKS sh
20246 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20247 then :
20248 emulate sh
20249 NULLCMD=:
20250 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20251 # is contrary to our usage. Disable this feature.
20252 alias -g '${1+"$@"}'='"$@"'
20253 setopt NO_GLOB_SUBST
20254 else case e in #(
20255 e) case `(set -o) 2>/dev/null` in #(
20256 *posix*) :
20257 set -o posix ;; #(
20258 *) :
20259 ;;
20260 esac ;;
20261 esac
20262 fi
20263
20264
20265
20266 # Reset variables that may have inherited troublesome values from
20267 # the environment.
20268
20269 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20270 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20271 # side effect of setting IFS to empty, thus disabling word splitting.)
20272 # Quoting is to prevent editors from complaining about space-tab.
20273 as_nl='
20274 '
20275 export as_nl
20276 IFS=" "" $as_nl"
20277
20278 PS1='$ '
20279 PS2='> '
20280 PS4='+ '
20281
20282 # Ensure predictable behavior from utilities with locale-dependent output.
20283 LC_ALL=C
20284 export LC_ALL
20285 LANGUAGE=C
20286 export LANGUAGE
20287
20288 # We cannot yet rely on "unset" to work, but we need these variables
20289 # to be unset--not just set to an empty or harmless value--now, to
20290 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20291 # also avoids known problems related to "unset" and subshell syntax
20292 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20293 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20294 do eval test \${$as_var+y} \
20295 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20296 done
20297
20298 # Ensure that fds 0, 1, and 2 are open.
20299 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20300 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20301 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20302
20303 # The user is always right.
20304 if ${PATH_SEPARATOR+false} :; then
20305 PATH_SEPARATOR=:
20306 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20307 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20308 PATH_SEPARATOR=';'
20309 }
20310 fi
20311
20312
20313 # Find who we are. Look in the path if we contain no directory separator.
20314 as_myself=
20315 case $0 in #((
20316 *[\\/]* ) as_myself=$0 ;;
20317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20318 for as_dir in $PATH
20319 do
20320 IFS=$as_save_IFS
20321 case $as_dir in #(((
20322 '') as_dir=./ ;;
20323 */) ;;
20324 *) as_dir=$as_dir/ ;;
20325 esac
20326 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20327 done
20328 IFS=$as_save_IFS
20329
20330 ;;
20331 esac
20332 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20333 # in which case we are not to be found in the path.
20334 if test "x$as_myself" = x; then
20335 as_myself=$0
20336 fi
20337 if test ! -f "$as_myself"; then
20338 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20339 exit 1
20340 fi
20341
20342
20343
20344 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20345 # ----------------------------------------
20346 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20347 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20348 # script with STATUS, using 1 if that was 0.
20349 as_fn_error ()
20350 {
20351 as_status=$1; test $as_status -eq 0 && as_status=1
20352 if test "$4"; then
20353 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20355 fi
20356 printf "%s\n" "$as_me: error: $2" >&2
20357 as_fn_exit $as_status
20358 } # as_fn_error
20359
20360
20361 # as_fn_set_status STATUS
20362 # -----------------------
20363 # Set $? to STATUS, without forking.
20364 as_fn_set_status ()
20365 {
20366 return $1
20367 } # as_fn_set_status
20368
20369 # as_fn_exit STATUS
20370 # -----------------
20371 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20372 as_fn_exit ()
20373 {
20374 set +e
20375 as_fn_set_status $1
20376 exit $1
20377 } # as_fn_exit
20378
20379 # as_fn_unset VAR
20380 # ---------------
20381 # Portably unset VAR.
20382 as_fn_unset ()
20383 {
20384 { eval $1=; unset $1;}
20385 }
20386 as_unset=as_fn_unset
20387
20388 # as_fn_append VAR VALUE
20389 # ----------------------
20390 # Append the text in VALUE to the end of the definition contained in VAR. Take
20391 # advantage of any shell optimizations that allow amortized linear growth over
20392 # repeated appends, instead of the typical quadratic growth present in naive
20393 # implementations.
20394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20395 then :
20396 eval 'as_fn_append ()
20397 {
20398 eval $1+=\$2
20399 }'
20400 else case e in #(
20401 e) as_fn_append ()
20402 {
20403 eval $1=\$$1\$2
20404 } ;;
20405 esac
20406 fi # as_fn_append
20407
20408 # as_fn_arith ARG...
20409 # ------------------
20410 # Perform arithmetic evaluation on the ARGs, and store the result in the
20411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20412 # must be portable across $(()) and expr.
20413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20414 then :
20415 eval 'as_fn_arith ()
20416 {
20417 as_val=$(( $* ))
20418 }'
20419 else case e in #(
20420 e) as_fn_arith ()
20421 {
20422 as_val=`expr "$@" || test $? -eq 1`
20423 } ;;
20424 esac
20425 fi # as_fn_arith
20426
20427
20428 if expr a : '\(a\)' >/dev/null 2>&1 &&
20429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20430 as_expr=expr
20431 else
20432 as_expr=false
20433 fi
20434
20435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20436 as_basename=basename
20437 else
20438 as_basename=false
20439 fi
20440
20441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20442 as_dirname=dirname
20443 else
20444 as_dirname=false
20445 fi
20446
20447 as_me=`$as_basename -- "$0" ||
20448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20449 X"$0" : 'X\(//\)$' \| \
20450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20451 printf "%s\n" X/"$0" |
20452 sed '/^.*\/\([^/][^/]*\)\/*$/{
20453 s//\1/
20454 q
20455 }
20456 /^X\/\(\/\/\)$/{
20457 s//\1/
20458 q
20459 }
20460 /^X\/\(\/\).*/{
20461 s//\1/
20462 q
20463 }
20464 s/.*/./; q'`
20465
20466 # Avoid depending upon Character Ranges.
20467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20470 as_cr_digits='0123456789'
20471 as_cr_alnum=$as_cr_Letters$as_cr_digits
20472
20473
20474 # Determine whether it's possible to make 'echo' print without a newline.
20475 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20476 # for compatibility with existing Makefiles.
20477 ECHO_C= ECHO_N= ECHO_T=
20478 case `echo -n x` in #(((((
20479 -n*)
20480 case `echo 'xy\c'` in
20481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20482 xy) ECHO_C='\c';;
20483 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20484 ECHO_T=' ';;
20485 esac;;
20486 *)
20487 ECHO_N='-n';;
20488 esac
20489
20490 # For backward compatibility with old third-party macros, we provide
20491 # the shell variables $as_echo and $as_echo_n. New code should use
20492 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20493 as_echo='printf %s\n'
20494 as_echo_n='printf %s'
20495
20496 rm -f conf$$ conf$$.exe conf$$.file
20497 if test -d conf$$.dir; then
20498 rm -f conf$$.dir/conf$$.file
20499 else
20500 rm -f conf$$.dir
20501 mkdir conf$$.dir 2>/dev/null
20502 fi
20503 if (echo >conf$$.file) 2>/dev/null; then
20504 if ln -s conf$$.file conf$$ 2>/dev/null; then
20505 as_ln_s='ln -s'
20506 # ... but there are two gotchas:
20507 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20508 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20509 # In both cases, we have to default to 'cp -pR'.
20510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20511 as_ln_s='cp -pR'
20512 elif ln conf$$.file conf$$ 2>/dev/null; then
20513 as_ln_s=ln
20514 else
20515 as_ln_s='cp -pR'
20516 fi
20517 else
20518 as_ln_s='cp -pR'
20519 fi
20520 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20521 rmdir conf$$.dir 2>/dev/null
20522
20523
20524 # as_fn_mkdir_p
20525 # -------------
20526 # Create "$as_dir" as a directory, including parents if necessary.
20527 as_fn_mkdir_p ()
20528 {
20529
20530 case $as_dir in #(
20531 -*) as_dir=./$as_dir;;
20532 esac
20533 test -d "$as_dir" || eval $as_mkdir_p || {
20534 as_dirs=
20535 while :; do
20536 case $as_dir in #(
20537 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20538 *) as_qdir=$as_dir;;
20539 esac
20540 as_dirs="'$as_qdir' $as_dirs"
20541 as_dir=`$as_dirname -- "$as_dir" ||
20542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20543 X"$as_dir" : 'X\(//\)[^/]' \| \
20544 X"$as_dir" : 'X\(//\)$' \| \
20545 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20546 printf "%s\n" X"$as_dir" |
20547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20548 s//\1/
20549 q
20550 }
20551 /^X\(\/\/\)[^/].*/{
20552 s//\1/
20553 q
20554 }
20555 /^X\(\/\/\)$/{
20556 s//\1/
20557 q
20558 }
20559 /^X\(\/\).*/{
20560 s//\1/
20561 q
20562 }
20563 s/.*/./; q'`
20564 test -d "$as_dir" && break
20565 done
20566 test -z "$as_dirs" || eval "mkdir $as_dirs"
20567 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20568
20569
20570 } # as_fn_mkdir_p
20571 if mkdir -p . 2>/dev/null; then
20572 as_mkdir_p='mkdir -p "$as_dir"'
20573 else
20574 test -d ./-p && rmdir ./-p
20575 as_mkdir_p=false
20576 fi
20577
20578
20579 # as_fn_executable_p FILE
20580 # -----------------------
20581 # Test if FILE is an executable regular file.
20582 as_fn_executable_p ()
20583 {
20584 test -f "$1" && test -x "$1"
20585 } # as_fn_executable_p
20586 as_test_x='test -x'
20587 as_executable_p=as_fn_executable_p
20588
20589 # Sed expression to map a string onto a valid CPP name.
20590 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20591 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20592
20593 # Sed expression to map a string onto a valid variable name.
20594 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20595 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20596
20597
20598 exec 6>&1
20599 ## --------------------------------- ##
20600 ## Main body of "$CONFIG_LT" script. ##
20601 ## --------------------------------- ##
20602 _ASEOF
20603 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
20604
20605 cat >>"$CONFIG_LT" <<\_LTEOF
20606 lt_cl_silent=false
20607 exec 5>>config.log
20608 {
20609 echo
20610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20611 ## Running $as_me. ##
20612 _ASBOX
20613 } >&5
20614
20615 lt_cl_help="\
20616 '$as_me' creates a local libtool stub from the current configuration,
20617 for use in further configure time tests before the real libtool is
20618 generated.
20619
20620 Usage: $0 [OPTIONS]
20621
20622 -h, --help print this help, then exit
20623 -V, --version print version number, then exit
20624 -q, --quiet do not print progress messages
20625 -d, --debug don't remove temporary files
20626
20627 Report bugs to <[email protected]>."
20628
20629 lt_cl_version="\
20630 xdvik config.lt 22.87.06
20631 configured by $0, generated by GNU Autoconf 2.72.
20632
20633 Copyright (C) 2024 Free Software Foundation, Inc.
20634 This config.lt script is free software; the Free Software Foundation
20635 gives unlimited permission to copy, distribute and modify it."
20636
20637 while test 0 != $#
20638 do
20639 case $1 in
20640 --version | --v* | -V )
20641 echo "$lt_cl_version"; exit 0 ;;
20642 --help | --h* | -h )
20643 echo "$lt_cl_help"; exit 0 ;;
20644 --debug | --d* | -d )
20645 debug=: ;;
20646 --quiet | --q* | --silent | --s* | -q )
20647 lt_cl_silent=: ;;
20648
20649 -*) as_fn_error $? "unrecognized option: $1
20650 Try '$0 --help' for more information." "$LINENO" 5 ;;
20651
20652 *) as_fn_error $? "unrecognized argument: $1
20653 Try '$0 --help' for more information." "$LINENO" 5 ;;
20654 esac
20655 shift
20656 done
20657
20658 if $lt_cl_silent; then
20659 exec 6>/dev/null
20660 fi
20661 _LTEOF
20662
20663 cat >>"$CONFIG_LT" <<_LTEOF
20664
20665
20666 # The HP-UX ksh and POSIX shell print the target directory to stdout
20667 # if CDPATH is set.
20668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20669
20670 sed_quote_subst='$sed_quote_subst'
20671 double_quote_subst='$double_quote_subst'
20672 delay_variable_subst='$delay_variable_subst'
20673 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20674 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20675 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20676 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20677 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20678 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20679 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20680 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20681 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20682 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20683 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20684 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20685 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20686 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20687 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20688 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20689 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20690 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20691 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20692 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20693 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20694 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20695 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20696 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20697 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20698 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20699 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20700 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20701 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20702 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20703 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20704 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20705 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20706 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20707 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20708 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20709 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20710 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20711 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20712 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20713 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20714 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20715 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20716 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20717 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20718 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20719 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20732 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20733 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20734 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"`'
20735 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20736 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20737 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20738 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20739 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20740 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20741 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20742 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20743 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20744 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20745 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20746 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20747 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20748 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20749 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20750 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20751 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20752 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20753 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20754 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20755 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20756 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20757 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20758 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20759 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20760 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20761 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20762 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20763 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20764 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20765 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20766 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20767 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20768 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20769 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20770 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20771 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20772 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20773 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20774 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20775 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20776 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20777 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20778 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20779 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20780 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20781 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20782 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20783 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20784 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20785 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20786 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20787 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20788 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20789 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20790 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20791 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20792 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20793 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20794 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20795 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20796 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20797 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20798 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20799 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20800 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20801 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20802 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20803 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20804 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20805 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20806 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20807 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20808 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20809 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20810 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20811
20812 LTCC='$LTCC'
20813 LTCFLAGS='$LTCFLAGS'
20814 compiler='$compiler_DEFAULT'
20815
20816 # A function that is used when there is no print builtin or printf.
20817 func_fallback_echo ()
20818 {
20819 eval 'cat <<_LTECHO_EOF
20820 \$1
20821 _LTECHO_EOF'
20822 }
20823
20824 # Quote evaled strings.
20825 for var in AS \
20826 DLLTOOL \
20827 OBJDUMP \
20828 SHELL \
20829 ECHO \
20830 PATH_SEPARATOR \
20831 SED \
20832 GREP \
20833 EGREP \
20834 FGREP \
20835 LD \
20836 NM \
20837 LN_S \
20838 lt_SP2NL \
20839 lt_NL2SP \
20840 reload_flag \
20841 FILECMD \
20842 deplibs_check_method \
20843 file_magic_cmd \
20844 file_magic_glob \
20845 want_nocaseglob \
20846 sharedlib_from_linklib_cmd \
20847 AR \
20848 archiver_list_spec \
20849 STRIP \
20850 RANLIB \
20851 CC \
20852 CFLAGS \
20853 compiler \
20854 lt_cv_sys_global_symbol_pipe \
20855 lt_cv_sys_global_symbol_to_cdecl \
20856 lt_cv_sys_global_symbol_to_import \
20857 lt_cv_sys_global_symbol_to_c_name_address \
20858 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20859 lt_cv_nm_interface \
20860 nm_file_list_spec \
20861 lt_cv_truncate_bin \
20862 lt_prog_compiler_no_builtin_flag \
20863 lt_prog_compiler_pic \
20864 lt_prog_compiler_wl \
20865 lt_prog_compiler_static \
20866 lt_cv_prog_compiler_c_o \
20867 need_locks \
20868 MANIFEST_TOOL \
20869 DSYMUTIL \
20870 NMEDIT \
20871 LIPO \
20872 OTOOL \
20873 OTOOL64 \
20874 shrext_cmds \
20875 export_dynamic_flag_spec \
20876 whole_archive_flag_spec \
20877 compiler_needs_object \
20878 with_gnu_ld \
20879 allow_undefined_flag \
20880 no_undefined_flag \
20881 hardcode_libdir_flag_spec \
20882 hardcode_libdir_separator \
20883 exclude_expsyms \
20884 include_expsyms \
20885 file_list_spec \
20886 variables_saved_for_relink \
20887 libname_spec \
20888 library_names_spec \
20889 soname_spec \
20890 install_override_mode \
20891 finish_eval \
20892 old_striplib \
20893 striplib; do
20894 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20895 *[\\\\\\\`\\"\\\$]*)
20896 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20897 ;;
20898 *)
20899 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20900 ;;
20901 esac
20902 done
20903
20904 # Double-quote double-evaled strings.
20905 for var in reload_cmds \
20906 old_postinstall_cmds \
20907 old_postuninstall_cmds \
20908 old_archive_cmds \
20909 extract_expsyms_cmds \
20910 old_archive_from_new_cmds \
20911 old_archive_from_expsyms_cmds \
20912 archive_cmds \
20913 archive_expsym_cmds \
20914 module_cmds \
20915 module_expsym_cmds \
20916 export_symbols_cmds \
20917 prelink_cmds \
20918 postlink_cmds \
20919 postinstall_cmds \
20920 postuninstall_cmds \
20921 finish_cmds \
20922 sys_lib_search_path_spec \
20923 configure_time_dlsearch_path \
20924 configure_time_lt_sys_library_path; do
20925 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20926 *[\\\\\\\`\\"\\\$]*)
20927 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20928 ;;
20929 *)
20930 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20931 ;;
20932 esac
20933 done
20934
20935 ac_aux_dir='$ac_aux_dir'
20936
20937 # See if we are running on zsh, and set the options that allow our
20938 # commands through without removal of \ escapes INIT.
20939 if test -n "\${ZSH_VERSION+set}"; then
20940 setopt NO_GLOB_SUBST
20941 fi
20942
20943
20944 PACKAGE='$PACKAGE'
20945 VERSION='$VERSION'
20946 RM='$RM'
20947 ofile='$ofile'
20948
20949
20950
20951 _LTEOF
20952
20953 cat >>"$CONFIG_LT" <<\_LTEOF
20954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
20955 printf "%s\n" "$as_me: creating $ofile" >&6;}
20956
20957
20958 # See if we are running on zsh, and set the options that allow our
20959 # commands through without removal of \ escapes.
20960 if test -n "${ZSH_VERSION+set}"; then
20961 setopt NO_GLOB_SUBST
20962 fi
20963
20964 cfgfile=${ofile}T
20965 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20966 $RM "$cfgfile"
20967
20968 cat <<_LT_EOF >> "$cfgfile"
20969 #! $SHELL
20970 # Generated automatically by $as_me ($PACKAGE) $VERSION
20971 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20972
20973 # Provide generalized library-building support services.
20974 # Written by Gordon Matzigkeit, 1996
20975
20976 # Copyright (C) 2024 Free Software Foundation, Inc.
20977 # This is free software; see the source for copying conditions. There is NO
20978 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20979
20980 # GNU Libtool is free software; you can redistribute it and/or modify
20981 # it under the terms of the GNU General Public License as published by
20982 # the Free Software Foundation; either version 2 of the License, or
20983 # (at your option) any later version.
20984 #
20985 # As a special exception to the GNU General Public License, if you
20986 # distribute this file as part of a program or library that is built
20987 # using GNU Libtool, you may include this file under the same
20988 # distribution terms that you use for the rest of that program.
20989 #
20990 # GNU Libtool is distributed in the hope that it will be useful, but
20991 # WITHOUT ANY WARRANTY; without even the implied warranty of
20992 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20993 # GNU General Public License for more details.
20994 #
20995 # You should have received a copy of the GNU General Public License
20996 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20997
20998
20999 # The names of the tagged configurations supported by this script.
21000 available_tags=''
21001
21002 # Configured defaults for sys_lib_dlsearch_path munging.
21003 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21004
21005 # ### BEGIN LIBTOOL CONFIG
21006
21007 # Which release of libtool.m4 was used?
21008 macro_version=$macro_version
21009 macro_revision=$macro_revision
21010
21011 # Assembler program.
21012 AS=$lt_AS
21013
21014 # DLL creation program.
21015 DLLTOOL=$lt_DLLTOOL
21016
21017 # Object dumper program.
21018 OBJDUMP=$lt_OBJDUMP
21019
21020 # Whether or not to build shared libraries.
21021 build_libtool_libs=$enable_shared
21022
21023 # Whether or not to build static libraries.
21024 build_old_libs=$enable_static
21025
21026 # What type of objects to build.
21027 pic_mode=$pic_mode
21028
21029 # Whether or not to optimize for fast installation.
21030 fast_install=$enable_fast_install
21031
21032 # Shared archive member basename,for filename based shared library versioning on AIX.
21033 shared_archive_member_spec=$shared_archive_member_spec
21034
21035 # Shell to use when invoking shell scripts.
21036 SHELL=$lt_SHELL
21037
21038 # An echo program that protects backslashes.
21039 ECHO=$lt_ECHO
21040
21041 # The PATH separator for the build system.
21042 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21043
21044 # The host system.
21045 host_alias=$host_alias
21046 host=$host
21047 host_os=$host_os
21048
21049 # The build system.
21050 build_alias=$build_alias
21051 build=$build
21052 build_os=$build_os
21053
21054 # A sed program that does not truncate output.
21055 SED=$lt_SED
21056
21057 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21058 Xsed="\$SED -e 1s/^X//"
21059
21060 # A grep program that handles long lines.
21061 GREP=$lt_GREP
21062
21063 # An ERE matcher.
21064 EGREP=$lt_EGREP
21065
21066 # A literal string matcher.
21067 FGREP=$lt_FGREP
21068
21069 # A BSD- or MS-compatible name lister.
21070 NM=$lt_NM
21071
21072 # Whether we need soft or hard links.
21073 LN_S=$lt_LN_S
21074
21075 # What is the maximum length of a command?
21076 max_cmd_len=$max_cmd_len
21077
21078 # Object file suffix (normally "o").
21079 objext=$ac_objext
21080
21081 # Executable file suffix (normally "").
21082 exeext=$exeext
21083
21084 # whether the shell understands "unset".
21085 lt_unset=$lt_unset
21086
21087 # turn spaces into newlines.
21088 SP2NL=$lt_lt_SP2NL
21089
21090 # turn newlines into spaces.
21091 NL2SP=$lt_lt_NL2SP
21092
21093 # convert \$build file names to \$host format.
21094 to_host_file_cmd=$lt_cv_to_host_file_cmd
21095
21096 # convert \$build files to toolchain format.
21097 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21098
21099 # A file(cmd) program that detects file types.
21100 FILECMD=$lt_FILECMD
21101
21102 # Method to check whether dependent libraries are shared objects.
21103 deplibs_check_method=$lt_deplibs_check_method
21104
21105 # Command to use when deplibs_check_method = "file_magic".
21106 file_magic_cmd=$lt_file_magic_cmd
21107
21108 # How to find potential files when deplibs_check_method = "file_magic".
21109 file_magic_glob=$lt_file_magic_glob
21110
21111 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21112 want_nocaseglob=$lt_want_nocaseglob
21113
21114 # Command to associate shared and link libraries.
21115 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21116
21117 # The archiver.
21118 AR=$lt_AR
21119
21120 # Flags to create an archive (by configure).
21121 lt_ar_flags=$lt_ar_flags
21122
21123 # Flags to create an archive.
21124 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21125
21126 # How to feed a file listing to the archiver.
21127 archiver_list_spec=$lt_archiver_list_spec
21128
21129 # A symbol stripping program.
21130 STRIP=$lt_STRIP
21131
21132 # Commands used to install an old-style archive.
21133 RANLIB=$lt_RANLIB
21134 old_postinstall_cmds=$lt_old_postinstall_cmds
21135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21136
21137 # Whether to use a lock for old archive extraction.
21138 lock_old_archive_extraction=$lock_old_archive_extraction
21139
21140 # A C compiler.
21141 LTCC=$lt_CC
21142
21143 # LTCC compiler flags.
21144 LTCFLAGS=$lt_CFLAGS
21145
21146 # Take the output of nm and produce a listing of raw symbols and C names.
21147 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21148
21149 # Transform the output of nm in a proper C declaration.
21150 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21151
21152 # Transform the output of nm into a list of symbols to manually relocate.
21153 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21154
21155 # Transform the output of nm in a C name address pair.
21156 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21157
21158 # Transform the output of nm in a C name address pair when lib prefix is needed.
21159 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21160
21161 # The name lister interface.
21162 nm_interface=$lt_lt_cv_nm_interface
21163
21164 # Specify filename containing input files for \$NM.
21165 nm_file_list_spec=$lt_nm_file_list_spec
21166
21167 # The root where to search for dependent libraries,and where our libraries should be installed.
21168 lt_sysroot=$lt_sysroot
21169
21170 # Command to truncate a binary pipe.
21171 lt_truncate_bin=$lt_lt_cv_truncate_bin
21172
21173 # The name of the directory that contains temporary libtool files.
21174 objdir=$objdir
21175
21176 # Used to examine libraries when file_magic_cmd begins with "file".
21177 MAGIC_CMD=$MAGIC_CMD
21178
21179 # Must we lock files when doing compilation?
21180 need_locks=$lt_need_locks
21181
21182 # Manifest tool.
21183 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21184
21185 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21186 DSYMUTIL=$lt_DSYMUTIL
21187
21188 # Tool to change global to local symbols on Mac OS X.
21189 NMEDIT=$lt_NMEDIT
21190
21191 # Tool to manipulate fat objects and archives on Mac OS X.
21192 LIPO=$lt_LIPO
21193
21194 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21195 OTOOL=$lt_OTOOL
21196
21197 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21198 OTOOL64=$lt_OTOOL64
21199
21200 # Old archive suffix (normally "a").
21201 libext=$libext
21202
21203 # Shared library suffix (normally ".so").
21204 shrext_cmds=$lt_shrext_cmds
21205
21206 # The commands to extract the exported symbol list from a shared archive.
21207 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21208
21209 # Variables whose values should be saved in libtool wrapper scripts and
21210 # restored at link time.
21211 variables_saved_for_relink=$lt_variables_saved_for_relink
21212
21213 # Do we need the "lib" prefix for modules?
21214 need_lib_prefix=$need_lib_prefix
21215
21216 # Do we need a version for libraries?
21217 need_version=$need_version
21218
21219 # Library versioning type.
21220 version_type=$version_type
21221
21222 # Shared library runtime path variable.
21223 runpath_var=$runpath_var
21224
21225 # Shared library path variable.
21226 shlibpath_var=$shlibpath_var
21227
21228 # Is shlibpath searched before the hard-coded library search path?
21229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21230
21231 # Format of library name prefix.
21232 libname_spec=$lt_libname_spec
21233
21234 # List of archive names. First name is the real one, the rest are links.
21235 # The last name is the one that the linker finds with -lNAME
21236 library_names_spec=$lt_library_names_spec
21237
21238 # The coded name of the library, if different from the real name.
21239 soname_spec=$lt_soname_spec
21240
21241 # Permission mode override for installation of shared libraries.
21242 install_override_mode=$lt_install_override_mode
21243
21244 # Command to use after installation of a shared archive.
21245 postinstall_cmds=$lt_postinstall_cmds
21246
21247 # Command to use after uninstallation of a shared archive.
21248 postuninstall_cmds=$lt_postuninstall_cmds
21249
21250 # Commands used to finish a libtool library installation in a directory.
21251 finish_cmds=$lt_finish_cmds
21252
21253 # As "finish_cmds", except a single script fragment to be evaled but
21254 # not shown.
21255 finish_eval=$lt_finish_eval
21256
21257 # Whether we should hardcode library paths into libraries.
21258 hardcode_into_libs=$hardcode_into_libs
21259
21260 # Compile-time system search path for libraries.
21261 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21262
21263 # Detected run-time system search path for libraries.
21264 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21265
21266 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21267 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21268
21269 # Whether dlopen is supported.
21270 dlopen_support=$enable_dlopen
21271
21272 # Whether dlopen of programs is supported.
21273 dlopen_self=$enable_dlopen_self
21274
21275 # Whether dlopen of statically linked programs is supported.
21276 dlopen_self_static=$enable_dlopen_self_static
21277
21278 # Commands to strip libraries.
21279 old_striplib=$lt_old_striplib
21280 striplib=$lt_striplib
21281
21282
21283 # The linker used to build libraries.
21284 LD=$lt_LD
21285
21286 # How to create reloadable object files.
21287 reload_flag=$lt_reload_flag
21288 reload_cmds=$lt_reload_cmds
21289
21290 # Commands used to build an old-style archive.
21291 old_archive_cmds=$lt_old_archive_cmds
21292
21293 # A language specific compiler.
21294 CC=$lt_compiler
21295
21296 # Is the compiler the GNU compiler?
21297 with_gcc=$GCC
21298
21299 # Compiler flag to turn off builtin functions.
21300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21301
21302 # Additional compiler flags for building library objects.
21303 pic_flag=$lt_lt_prog_compiler_pic
21304
21305 # How to pass a linker flag through the compiler.
21306 wl=$lt_lt_prog_compiler_wl
21307
21308 # Compiler flag to prevent dynamic linking.
21309 link_static_flag=$lt_lt_prog_compiler_static
21310
21311 # Does compiler simultaneously support -c and -o options?
21312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21313
21314 # Whether or not to add -lc for building shared libraries.
21315 build_libtool_need_lc=$archive_cmds_need_lc
21316
21317 # Whether or not to disallow shared libs when runtime libs are static.
21318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21319
21320 # Compiler flag to allow reflexive dlopens.
21321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21322
21323 # Compiler flag to generate shared objects directly from archives.
21324 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21325
21326 # Whether the compiler copes with passing no objects directly.
21327 compiler_needs_object=$lt_compiler_needs_object
21328
21329 # Create an old-style archive from a shared archive.
21330 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21331
21332 # Create a temporary old-style archive to link instead of a shared archive.
21333 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21334
21335 # Commands used to build a shared archive.
21336 archive_cmds=$lt_archive_cmds
21337 archive_expsym_cmds=$lt_archive_expsym_cmds
21338
21339 # Commands used to build a loadable module if different from building
21340 # a shared archive.
21341 module_cmds=$lt_module_cmds
21342 module_expsym_cmds=$lt_module_expsym_cmds
21343
21344 # Whether we are building with GNU ld or not.
21345 with_gnu_ld=$lt_with_gnu_ld
21346
21347 # Flag that allows shared libraries with undefined symbols to be built.
21348 allow_undefined_flag=$lt_allow_undefined_flag
21349
21350 # Flag that enforces no undefined symbols.
21351 no_undefined_flag=$lt_no_undefined_flag
21352
21353 # Flag to hardcode \$libdir into a binary during linking.
21354 # This must work even if \$libdir does not exist
21355 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21356
21357 # Whether we need a single "-rpath" flag with a separated argument.
21358 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21359
21360 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21361 # DIR into the resulting binary.
21362 hardcode_direct=$hardcode_direct
21363
21364 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21365 # DIR into the resulting binary and the resulting library dependency is
21366 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
21367 # library is relocated.
21368 hardcode_direct_absolute=$hardcode_direct_absolute
21369
21370 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21371 # into the resulting binary.
21372 hardcode_minus_L=$hardcode_minus_L
21373
21374 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21375 # into the resulting binary.
21376 hardcode_shlibpath_var=$hardcode_shlibpath_var
21377
21378 # Set to "yes" if building a shared library automatically hardcodes DIR
21379 # into the library and all subsequent libraries and executables linked
21380 # against it.
21381 hardcode_automatic=$hardcode_automatic
21382
21383 # Set to yes if linker adds runtime paths of dependent libraries
21384 # to runtime path list.
21385 inherit_rpath=$inherit_rpath
21386
21387 # Whether libtool must link a program against all its dependency libraries.
21388 link_all_deplibs=$link_all_deplibs
21389
21390 # Set to "yes" if exported symbols are required.
21391 always_export_symbols=$always_export_symbols
21392
21393 # The commands to list exported symbols.
21394 export_symbols_cmds=$lt_export_symbols_cmds
21395
21396 # Symbols that should not be listed in the preloaded symbols.
21397 exclude_expsyms=$lt_exclude_expsyms
21398
21399 # Symbols that must always be exported.
21400 include_expsyms=$lt_include_expsyms
21401
21402 # Commands necessary for linking programs (against libraries) with templates.
21403 prelink_cmds=$lt_prelink_cmds
21404
21405 # Commands necessary for finishing linking programs.
21406 postlink_cmds=$lt_postlink_cmds
21407
21408 # Specify filename containing input files.
21409 file_list_spec=$lt_file_list_spec
21410
21411 # How to hardcode a shared library path into an executable.
21412 hardcode_action=$hardcode_action
21413
21414 # ### END LIBTOOL CONFIG
21415
21416 _LT_EOF
21417
21418 cat <<'_LT_EOF' >> "$cfgfile"
21419
21420 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21421
21422 # func_munge_path_list VARIABLE PATH
21423 # -----------------------------------
21424 # VARIABLE is name of variable containing _space_ separated list of
21425 # directories to be munged by the contents of PATH, which is string
21426 # having a format:
21427 # "DIR[:DIR]:"
21428 # string "DIR[ DIR]" will be prepended to VARIABLE
21429 # ":DIR[:DIR]"
21430 # string "DIR[ DIR]" will be appended to VARIABLE
21431 # "DIRP[:DIRP]::[DIRA:]DIRA"
21432 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21433 # "DIRA[ DIRA]" will be appended to VARIABLE
21434 # "DIR[:DIR]"
21435 # VARIABLE will be replaced by "DIR[ DIR]"
21436 func_munge_path_list ()
21437 {
21438 case x$2 in
21439 x)
21440 ;;
21441 *:)
21442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21443 ;;
21444 x:*)
21445 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21446 ;;
21447 *::*)
21448 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21449 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21450 ;;
21451 *)
21452 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21453 ;;
21454 esac
21455 }
21456
21457
21458 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21459 func_cc_basename ()
21460 {
21461 for cc_temp in $*""; do
21462 case $cc_temp in
21463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21465 \-*) ;;
21466 *) break;;
21467 esac
21468 done
21469 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21470 }
21471
21472
21473 # ### END FUNCTIONS SHARED WITH CONFIGURE
21474
21475 _LT_EOF
21476
21477 case $host_os in
21478 aix3*)
21479 cat <<\_LT_EOF >> "$cfgfile"
21480 # AIX sometimes has problems with the GCC collect2 program. For some
21481 # reason, if we set the COLLECT_NAMES environment variable, the problems
21482 # vanish in a puff of smoke.
21483 if test set != "${COLLECT_NAMES+set}"; then
21484 COLLECT_NAMES=
21485 export COLLECT_NAMES
21486 fi
21487 _LT_EOF
21488 ;;
21489 esac
21490
21491
21492
21493 ltmain=$ac_aux_dir/ltmain.sh
21494
21495
21496 # We use sed instead of cat because bash on DJGPP gets confused if
21497 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21498 # text mode, it properly converts lines to CR/LF. This bash problem
21499 # is reportedly fixed, but why not run on old versions too?
21500 $SED '$q' "$ltmain" >> "$cfgfile" \
21501 || (rm -f "$cfgfile"; exit 1)
21502
21503 mv -f "$cfgfile" "$ofile" ||
21504 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21505 chmod +x "$ofile"
21506
21507
21508 as_fn_exit 0
21509 _LTEOF
21510 chmod +x "$CONFIG_LT"
21511
21512 # configure is writing to config.log, but config.lt does its own redirection,
21513 # appending to config.log, which fails on DOS, as config.log is still kept
21514 # open by configure. Here we exec the FD to /dev/null, effectively closing
21515 # config.log, so it can be properly (re)opened and appended to by config.lt.
21516 lt_cl_success=:
21517 test yes = "$silent" &&
21518 lt_config_lt_args="$lt_config_lt_args --quiet"
21519 exec 5>/dev/null
21520 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
21521 exec 5>>config.log
21522 $lt_cl_success || as_fn_exit 1
21523
21524 #
21525 #
21526 ac_ext=c
21527 ac_cpp='$CPP $CPPFLAGS'
21528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21531 ac_link="./libtool --mode=link --tag=CC $ac_link"
21532
21533 if test -n "$ac_tool_prefix"; then
21534 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21535 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21537 printf %s "checking for $ac_word... " >&6; }
21538 if test ${ac_cv_prog_PKG_CONFIG+y}
21539 then :
21540 printf %s "(cached) " >&6
21541 else case e in #(
21542 e) if test -n "$PKG_CONFIG"; then
21543 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
21544 else
21545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21546 for as_dir in $PATH
21547 do
21548 IFS=$as_save_IFS
21549 case $as_dir in #(((
21550 '') as_dir=./ ;;
21551 */) ;;
21552 *) as_dir=$as_dir/ ;;
21553 esac
21554 for ac_exec_ext in '' $ac_executable_extensions; do
21555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21556 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
21557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21558 break 2
21559 fi
21560 done
21561 done
21562 IFS=$as_save_IFS
21563
21564 fi ;;
21565 esac
21566 fi
21567 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
21568 if test -n "$PKG_CONFIG"; then
21569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21570 printf "%s\n" "$PKG_CONFIG" >&6; }
21571 else
21572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21573 printf "%s\n" "no" >&6; }
21574 fi
21575
21576
21577 fi
21578 if test -z "$ac_cv_prog_PKG_CONFIG"; then
21579 ac_ct_PKG_CONFIG=$PKG_CONFIG
21580 # Extract the first word of "pkg-config", so it can be a program name with args.
21581 set dummy pkg-config; ac_word=$2
21582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21583 printf %s "checking for $ac_word... " >&6; }
21584 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
21585 then :
21586 printf %s "(cached) " >&6
21587 else case e in #(
21588 e) if test -n "$ac_ct_PKG_CONFIG"; then
21589 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
21590 else
21591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21592 for as_dir in $PATH
21593 do
21594 IFS=$as_save_IFS
21595 case $as_dir in #(((
21596 '') as_dir=./ ;;
21597 */) ;;
21598 *) as_dir=$as_dir/ ;;
21599 esac
21600 for ac_exec_ext in '' $ac_executable_extensions; do
21601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21602 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
21603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21604 break 2
21605 fi
21606 done
21607 done
21608 IFS=$as_save_IFS
21609
21610 fi ;;
21611 esac
21612 fi
21613 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
21614 if test -n "$ac_ct_PKG_CONFIG"; then
21615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
21616 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
21617 else
21618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21619 printf "%s\n" "no" >&6; }
21620 fi
21621
21622 if test "x$ac_ct_PKG_CONFIG" = x; then
21623 PKG_CONFIG="false"
21624 else
21625 case $cross_compiling:$ac_tool_warned in
21626 yes:)
21627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21628 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21629 ac_tool_warned=yes ;;
21630 esac
21631 PKG_CONFIG=$ac_ct_PKG_CONFIG
21632 fi
21633 else
21634 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
21635 fi
21636
21637 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
21638 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=kpathsea, libname=kpathsea, options=lt, tlincl=-IBLD/texk -ISRC/texk, tllib=BLD/texk/kpathsea/libkpathsea.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../kpathsea/*.[ch], rebuildblddeps=${top_builddir}/../kpathsea/paths.h.' >&5
21639 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
21640
21641 # Check whether --with-system-kpathsea was given.
21642 if test ${with_system_kpathsea+y}
21643 then :
21644 withval=$with_system_kpathsea;
21645 fi
21646 if test "x$with_system_kpathsea" = xyes; then
21647 if $PKG_CONFIG kpathsea; then
21648 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
21649 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
21650 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
21651 as_fn_error $? "did not find kpathsea" "$LINENO" 5
21652 fi
21653 else
21654 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
21655 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
21656 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
21657 KPATHSEA_RULE='# Rebuild libkpathsea
21658 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
21659 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
21660 ${top_builddir}/../kpathsea/paths.h:
21661 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
21662 fi
21663
21664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
21665 printf %s "checking if libkpathsea supports debugging... " >&6; }
21666 if test ${kpse_cv_kpse_debug+y}
21667 then :
21668 printf %s "(cached) " >&6
21669 else case e in #(
21670 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
21671 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
21672
21673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674 /* end confdefs.h. */
21675 #include <kpathsea/kpathsea.h>
21676 int
21677 main (void)
21678 {
21679 FILE *f = fopen("f", "r")
21680 ;
21681 return 0;
21682 }
21683 _ACEOF
21684 if ac_fn_c_try_link "$LINENO"
21685 then :
21686 kpse_cv_kpse_debug=yes
21687 else case e in #(
21688 e) kpse_cv_kpse_debug=no ;;
21689 esac
21690 fi
21691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21692 conftest$ac_exeext conftest.$ac_ext
21693 CPPFLAGS=$kpse_save_CPPFLAGS
21694 LIBS=$kpse_save_LIBS
21695 ;;
21696 esac
21697 fi
21698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
21699 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
21700 if test "x$kpse_cv_kpse_debug" != xyes
21701 then :
21702 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
21703 fi
21704
21705 ##tldbg _KPSE_LIB_FLAGS: Setup zlib (-lz) flags.
21706 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=zlib, libname=z, options=, tlincl=-IBLD/libs/zlib/include, tllib=BLD/libs/zlib/libz.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/zlib/include/zconf.h.' >&5
21707 ##tldbg _KPSE_LIB_FLAGS_TL: zlib (z) .
21708
21709 # Check whether --with-system-zlib was given.
21710 if test ${with_system_zlib+y}
21711 then :
21712 withval=$with_system_zlib;
21713 fi
21714
21715 # Check whether --with-zlib-includes was given.
21716 if test ${with_zlib_includes+y}
21717 then :
21718 withval=$with_zlib_includes;
21719 fi
21720
21721 # Check whether --with-zlib-libdir was given.
21722 if test ${with_zlib_libdir+y}
21723 then :
21724 withval=$with_zlib_libdir;
21725 fi
21726 if test "x$with_system_zlib" = xyes; then
21727 ##tldbg _KPSE_LIB_FLAGS_SYSTEM: zlib (z).
21728 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
21729 ZLIB_INCLUDES="-I$with_zlib_includes"
21730 fi
21731 ZLIB_LIBS="-lz"
21732 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
21733 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
21734 fi
21735 else
21736 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
21737 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
21738 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
21739 ZLIB_RULE='# Rebuild libz
21740 $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
21741 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
21742 ${top_builddir}/../../libs/zlib/include/zconf.h:
21743 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
21744 fi
21745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
21746 printf %s "checking if <zlib.h> defines 'z_const'... " >&6; }
21747 if test ${kpse_cv_have_decl_z_const+y}
21748 then :
21749 printf %s "(cached) " >&6
21750 else case e in #(
21751 e) eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
21752 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
21753
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756 #include <zlib.h>
21757 int
21758 main (void)
21759 {
21760 z_const char * foo();
21761 ;
21762 return 0;
21763 }
21764 _ACEOF
21765 if ac_fn_c_try_compile "$LINENO"
21766 then :
21767 kpse_cv_have_decl_z_const=yes
21768 else case e in #(
21769 e) kpse_cv_have_decl_z_const=no ;;
21770 esac
21771 fi
21772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21773 CPPFLAGS=$kpse_save_CPPFLAGS
21774 LIBS=$kpse_save_LIBS
21775 ;;
21776 esac
21777 fi
21778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
21779 printf "%s\n" "$kpse_cv_have_decl_z_const" >&6; }
21780 case $kpse_cv_have_decl_z_const in #(
21781 yes) :
21782
21783 printf "%s\n" "#define ZLIB_CONST 1" >>confdefs.h
21784 ;; #(
21785 *) :
21786
21787 printf "%s\n" "#define z_const /**/" >>confdefs.h
21788 ;;
21789 esac
21790
21791 ##tldbg _KPSE_LIB_FLAGS: Setup freetype2 (-lfreetype) flags.
21792 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=freetype2, libname=freetype, options=, tlincl=-IBLD/libs/freetype2/freetype2, tllib=BLD/libs/freetype2/libfreetype.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/freetype2/freetype2/ft2build.h.' >&5
21793 ##tldbg _KPSE_LIB_FLAGS_TL: freetype2 (freetype) .
21794
21795 # Check whether --with-system-freetype2 was given.
21796 if test ${with_system_freetype2+y}
21797 then :
21798 withval=$with_system_freetype2;
21799 fi
21800 if test "x$with_system_freetype2" = xyes; then
21801 if test -n "$ac_tool_prefix"; then
21802 # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
21803 set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
21804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21805 printf %s "checking for $ac_word... " >&6; }
21806 if test ${ac_cv_prog_FT2_CONFIG+y}
21807 then :
21808 printf %s "(cached) " >&6
21809 else case e in #(
21810 e) if test -n "$FT2_CONFIG"; then
21811 ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test.
21812 else
21813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21814 for as_dir in $PATH
21815 do
21816 IFS=$as_save_IFS
21817 case $as_dir in #(((
21818 '') as_dir=./ ;;
21819 */) ;;
21820 *) as_dir=$as_dir/ ;;
21821 esac
21822 for ac_exec_ext in '' $ac_executable_extensions; do
21823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21824 ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config"
21825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21826 break 2
21827 fi
21828 done
21829 done
21830 IFS=$as_save_IFS
21831
21832 fi ;;
21833 esac
21834 fi
21835 FT2_CONFIG=$ac_cv_prog_FT2_CONFIG
21836 if test -n "$FT2_CONFIG"; then
21837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
21838 printf "%s\n" "$FT2_CONFIG" >&6; }
21839 else
21840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21841 printf "%s\n" "no" >&6; }
21842 fi
21843
21844
21845 fi
21846 if test -z "$ac_cv_prog_FT2_CONFIG"; then
21847 ac_ct_FT2_CONFIG=$FT2_CONFIG
21848 # Extract the first word of "freetype-config", so it can be a program name with args.
21849 set dummy freetype-config; ac_word=$2
21850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21851 printf %s "checking for $ac_word... " >&6; }
21852 if test ${ac_cv_prog_ac_ct_FT2_CONFIG+y}
21853 then :
21854 printf %s "(cached) " >&6
21855 else case e in #(
21856 e) if test -n "$ac_ct_FT2_CONFIG"; then
21857 ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test.
21858 else
21859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21860 for as_dir in $PATH
21861 do
21862 IFS=$as_save_IFS
21863 case $as_dir in #(((
21864 '') as_dir=./ ;;
21865 */) ;;
21866 *) as_dir=$as_dir/ ;;
21867 esac
21868 for ac_exec_ext in '' $ac_executable_extensions; do
21869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21870 ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config"
21871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21872 break 2
21873 fi
21874 done
21875 done
21876 IFS=$as_save_IFS
21877
21878 fi ;;
21879 esac
21880 fi
21881 ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG
21882 if test -n "$ac_ct_FT2_CONFIG"; then
21883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5
21884 printf "%s\n" "$ac_ct_FT2_CONFIG" >&6; }
21885 else
21886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21887 printf "%s\n" "no" >&6; }
21888 fi
21889
21890 if test "x$ac_ct_FT2_CONFIG" = x; then
21891 FT2_CONFIG="false"
21892 else
21893 case $cross_compiling:$ac_tool_warned in
21894 yes:)
21895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21897 ac_tool_warned=yes ;;
21898 esac
21899 FT2_CONFIG=$ac_ct_FT2_CONFIG
21900 fi
21901 else
21902 FT2_CONFIG="$ac_cv_prog_FT2_CONFIG"
21903 fi
21904 if test -n "$ac_tool_prefix"; then
21905 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21906 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21908 printf %s "checking for $ac_word... " >&6; }
21909 if test ${ac_cv_prog_PKG_CONFIG+y}
21910 then :
21911 printf %s "(cached) " >&6
21912 else case e in #(
21913 e) if test -n "$PKG_CONFIG"; then
21914 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
21915 else
21916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21917 for as_dir in $PATH
21918 do
21919 IFS=$as_save_IFS
21920 case $as_dir in #(((
21921 '') as_dir=./ ;;
21922 */) ;;
21923 *) as_dir=$as_dir/ ;;
21924 esac
21925 for ac_exec_ext in '' $ac_executable_extensions; do
21926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21927 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
21928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21929 break 2
21930 fi
21931 done
21932 done
21933 IFS=$as_save_IFS
21934
21935 fi ;;
21936 esac
21937 fi
21938 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
21939 if test -n "$PKG_CONFIG"; then
21940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21941 printf "%s\n" "$PKG_CONFIG" >&6; }
21942 else
21943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21944 printf "%s\n" "no" >&6; }
21945 fi
21946
21947
21948 fi
21949 if test -z "$ac_cv_prog_PKG_CONFIG"; then
21950 ac_ct_PKG_CONFIG=$PKG_CONFIG
21951 # Extract the first word of "pkg-config", so it can be a program name with args.
21952 set dummy pkg-config; ac_word=$2
21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21954 printf %s "checking for $ac_word... " >&6; }
21955 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
21956 then :
21957 printf %s "(cached) " >&6
21958 else case e in #(
21959 e) if test -n "$ac_ct_PKG_CONFIG"; then
21960 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
21961 else
21962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21963 for as_dir in $PATH
21964 do
21965 IFS=$as_save_IFS
21966 case $as_dir in #(((
21967 '') as_dir=./ ;;
21968 */) ;;
21969 *) as_dir=$as_dir/ ;;
21970 esac
21971 for ac_exec_ext in '' $ac_executable_extensions; do
21972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21973 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
21974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21975 break 2
21976 fi
21977 done
21978 done
21979 IFS=$as_save_IFS
21980
21981 fi ;;
21982 esac
21983 fi
21984 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
21985 if test -n "$ac_ct_PKG_CONFIG"; then
21986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
21987 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
21988 else
21989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21990 printf "%s\n" "no" >&6; }
21991 fi
21992
21993 if test "x$ac_ct_PKG_CONFIG" = x; then
21994 PKG_CONFIG="false"
21995 else
21996 case $cross_compiling:$ac_tool_warned in
21997 yes:)
21998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22000 ac_tool_warned=yes ;;
22001 esac
22002 PKG_CONFIG=$ac_ct_PKG_CONFIG
22003 fi
22004 else
22005 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
22006 fi
22007 if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
22008 FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags`
22009 FREETYPE2_LIBS=`$FT2_CONFIG --libs`
22010 elif $PKG_CONFIG --libs freetype2 >/dev/null 2>&1; then
22011 FREETYPE2_INCLUDES=`$PKG_CONFIG --cflags freetype2`
22012 FREETYPE2_LIBS=`$PKG_CONFIG --libs freetype2`
22013 elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then
22014 as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5
22015 fi
22016 else
22017 FREETYPE2_INCLUDES="-I$kpse_BLD/libs/freetype2/freetype2"
22018 FREETYPE2_LIBS="$kpse_BLD/libs/freetype2/libfreetype.a"
22019 FREETYPE2_DEPEND='${top_builddir}/../../libs/freetype2/libfreetype.a'
22020 FREETYPE2_RULE='# Rebuild libfreetype
22021 $(FREETYPE2_DEPEND): ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h
22022 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild
22023 ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h:
22024 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild'
22025 fi
22026
22027
22028
22029 # Check whether --with-default-gs-lib-path was given.
22030 if test ${with_default_gs_lib_path+y}
22031 then :
22032 withval=$with_default_gs_lib_path;
22033 printf "%s\n" "#define DEFAULT_GS_LIB_PATH \"$withval\"" >>confdefs.h
22034
22035
22036 else case e in #(
22037 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the path to be used for Ghostscript searches" >&5
22038 printf %s "checking for the path to be used for Ghostscript searches... " >&6; }
22039 if test ${xdvi_cv_gs_lib_path+y}
22040 then :
22041 printf %s "(cached) " >&6
22042 else case e in #(
22043 e) if gs -h >/dev/null 2>&1; then
22044 ac_tmp="`gs -h \
22045 | sed \
22046 -e '1,/Search path:/d' \
22047 -e '/For more information/,$d' \
22048 -e '/Initialization files are compiled/d' \
22049 -e 's/$/\/\/\//' \
22050 -e 's/^ //' \
22051 | tr '\n' '/'`"
22052 # Solaris 9 sed doesn't handle incomplete lines at eof
22053 xdvi_cv_gs_lib_path=`echo "$ac_tmp" \
22054 | sed -e 's/\/\/\/\// /g' -e 's/ *$//' -e 's/ : /:/g'`
22055 else
22056 xdvi_cv_gs_lib_path=/usr/local/share/ghostscript/fonts:/usr/local/lib/ghostscript/fonts:/usr/share/ghostscript/fonts:/var/lib/ghostscript/fonts:/usr/share/cups/fonts:/usr/share/fonts
22057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine Ghostscript search path; using $xdvi_cv_gs_lib_path" >&5
22058 printf "%s\n" "$as_me: WARNING: Could not determine Ghostscript search path; using $xdvi_cv_gs_lib_path" >&2;}
22059 fi ;;
22060 esac
22061 fi
22062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdvi_cv_gs_lib_path" >&5
22063 printf "%s\n" "$xdvi_cv_gs_lib_path" >&6; }
22064 printf "%s\n" "#define DEFAULT_GS_LIB_PATH \"$xdvi_cv_gs_lib_path\"" >>confdefs.h
22065
22066 ;;
22067 esac
22068 fi
22069
22070
22071 eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
22072 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
22073
22074
22075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether kpathsea declares the kpse_enc_format" >&5
22076 printf %s "checking whether kpathsea declares the kpse_enc_format... " >&6; }
22077 if test ${kpse_cv_have_enc_format+y}
22078 then :
22079 printf %s "(cached) " >&6
22080 else case e in #(
22081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22083 #include <kpathsea/kpathsea.h>
22084 int
22085 main (void)
22086 {
22087 kpse_enc_format
22088 ;
22089 return 0;
22090 }
22091 _ACEOF
22092 if ac_fn_c_try_link "$LINENO"
22093 then :
22094 kpse_cv_have_enc_format=yes
22095 else case e in #(
22096 e) kpse_cv_have_enc_format=no ;;
22097 esac
22098 fi
22099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22100 conftest$ac_exeext conftest.$ac_ext ;;
22101 esac
22102 fi
22103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_enc_format" >&5
22104 printf "%s\n" "$kpse_cv_have_enc_format" >&6; }
22105 if test "x$kpse_cv_have_enc_format" = xyes
22106 then :
22107
22108 else case e in #(
22109 e) as_fn_error $? "your kpathsea has no kpse_enc_format." "$LINENO" 5 ;;
22110 esac
22111 fi
22112
22113 ac_fn_c_check_header_compile "$LINENO" "kpathsea/version.h" "ac_cv_header_kpathsea_version_h" "$ac_includes_default"
22114 if test "x$ac_cv_header_kpathsea_version_h" = xyes
22115 then :
22116
22117 else case e in #(
22118 e) as_fn_error $? "Sorry, kpathsea too old" "$LINENO" 5 ;;
22119 esac
22120 fi
22121
22122
22123 CPPFLAGS=$kpse_save_CPPFLAGS
22124 LIBS=$kpse_save_LIBS
22125
22126
22127 echo timestamp >config.force
22128 fi
22129
22130
22131 # Check whether --with-default-dvips-path was given.
22132 if test ${with_default_dvips_path+y}
22133 then :
22134 withval=$with_default_dvips_path;
22135 else case e in #(
22136 e) with_default_dvips_path="dvips" ;;
22137 esac
22138 fi
22139
22140
22141 printf "%s\n" "#define DEFAULT_DVIPS_PATH \"$with_default_dvips_path\"" >>confdefs.h
22142
22143
22144
22145 # Check whether --with-default-ps2pdf-path was given.
22146 if test ${with_default_ps2pdf_path+y}
22147 then :
22148 withval=$with_default_ps2pdf_path;
22149 else case e in #(
22150 e) with_default_ps2pdf_path="ps2pdf" ;;
22151 esac
22152 fi
22153
22154
22155 printf "%s\n" "#define DEFAULT_PS2PDF_PATH \"$with_default_ps2pdf_path\"" >>confdefs.h
22156
22157
22158 XDVIK_VERSION=22.87.06
22159
22160
22161 ac_config_files="$ac_config_files Makefile tests/Makefile"
22162
22163
22164 ac_config_files="$ac_config_files xdvi:xdvi-sh.in"
22165
22166
22167
22168
22169 subdirs="$subdirs squeeze"
22170
22171
22172
22173
22174 cat >confcache <<\_ACEOF
22175 # This file is a shell script that caches the results of configure
22176 # tests run on this system so they can be shared between configure
22177 # scripts and configure runs, see configure's option --config-cache.
22178 # It is not useful on other systems. If it contains results you don't
22179 # want to keep, you may remove or edit it.
22180 #
22181 # config.status only pays attention to the cache file if you give it
22182 # the --recheck option to rerun configure.
22183 #
22184 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22185 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
22186 # following values.
22187
22188 _ACEOF
22189
22190 # The following way of writing the cache mishandles newlines in values,
22191 # but we know of no workaround that is simple, portable, and efficient.
22192 # So, we kill variables containing newlines.
22193 # Ultrix sh set writes to stderr and can't be redirected directly,
22194 # and sets the high bit in the cache file unless we assign to the vars.
22195 (
22196 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22197 eval ac_val=\$$ac_var
22198 case $ac_val in #(
22199 *${as_nl}*)
22200 case $ac_var in #(
22201 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22202 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22203 esac
22204 case $ac_var in #(
22205 _ | IFS | as_nl) ;; #(
22206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22207 *) { eval $ac_var=; unset $ac_var;} ;;
22208 esac ;;
22209 esac
22210 done
22211
22212 (set) 2>&1 |
22213 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22214 *${as_nl}ac_space=\ *)
22215 # 'set' does not quote correctly, so add quotes: double-quote
22216 # substitution turns \\\\ into \\, and sed turns \\ into \.
22217 sed -n \
22218 "s/'/'\\\\''/g;
22219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22220 ;; #(
22221 *)
22222 # 'set' quotes correctly as required by POSIX, so do not add quotes.
22223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22224 ;;
22225 esac |
22226 sort
22227 ) |
22228 sed '
22229 /^ac_cv_env_/b end
22230 t clear
22231 :clear
22232 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22233 t end
22234 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22235 :end' >>confcache
22236 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22237 if test -w "$cache_file"; then
22238 if test "x$cache_file" != "x/dev/null"; then
22239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22240 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22241 if test ! -f "$cache_file" || test -h "$cache_file"; then
22242 cat confcache >"$cache_file"
22243 else
22244 case $cache_file in #(
22245 */* | ?:*)
22246 mv -f confcache "$cache_file"$$ &&
22247 mv -f "$cache_file"$$ "$cache_file" ;; #(
22248 *)
22249 mv -f confcache "$cache_file" ;;
22250 esac
22251 fi
22252 fi
22253 else
22254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22255 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22256 fi
22257 fi
22258 rm -f confcache
22259
22260 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22261 # Let make expand exec_prefix.
22262 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22263
22264 DEFS=-DHAVE_CONFIG_H
22265
22266 ac_libobjs=
22267 ac_ltlibobjs=
22268 U=
22269 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22270 # 1. Remove the extension, and $U if already installed.
22271 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22272 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22273 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22274 # will be set to the directory where LIBOBJS objects are built.
22275 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22276 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22277 done
22278 LIBOBJS=$ac_libobjs
22279
22280 LTLIBOBJS=$ac_ltlibobjs
22281
22282
22283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22284 printf %s "checking that generated files are newer than configure... " >&6; }
22285 if test -n "$am_sleep_pid"; then
22286 # Hide warnings about reused PIDs.
22287 wait $am_sleep_pid 2>/dev/null
22288 fi
22289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22290 printf "%s\n" "done" >&6; }
22291 case $enable_silent_rules in # (((
22292 yes) AM_DEFAULT_VERBOSITY=0;;
22293 no) AM_DEFAULT_VERBOSITY=1;;
22294 esac
22295 if test $am_cv_make_support_nested_variables = yes; then
22296 AM_V='$(V)'
22297 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
22298 else
22299 AM_V=$AM_DEFAULT_VERBOSITY
22300 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
22301 fi
22302
22303 if test -n "$EXEEXT"; then
22304 am__EXEEXT_TRUE=
22305 am__EXEEXT_FALSE='#'
22306 else
22307 am__EXEEXT_TRUE='#'
22308 am__EXEEXT_FALSE=
22309 fi
22310
22311 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22312 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22314 fi
22315 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22316 as_fn_error $? "conditional \"AMDEP\" was never defined.
22317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22318 fi
22319 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22320 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22322 fi
22323 # Check whether --enable-year2038 was given.
22324 if test ${enable_year2038+y}
22325 then :
22326 enableval=$enable_year2038;
22327 fi
22328
22329
22330
22331 : "${CONFIG_STATUS=./config.status}"
22332 ac_write_fail=0
22333 ac_clean_files_save=$ac_clean_files
22334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22336 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
22337 as_write_fail=0
22338 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22339 #! $SHELL
22340 # Generated by $as_me.
22341 # Run this file to recreate the current configuration.
22342 # Compiler output produced by configure, useful for debugging
22343 # configure, is in config.log if it exists.
22344
22345 debug=false
22346 ac_cs_recheck=false
22347 ac_cs_silent=false
22348
22349 SHELL=\${CONFIG_SHELL-$SHELL}
22350 export SHELL
22351 _ASEOF
22352 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22353 ## -------------------- ##
22354 ## M4sh Initialization. ##
22355 ## -------------------- ##
22356
22357 # Be more Bourne compatible
22358 DUALCASE=1; export DUALCASE # for MKS sh
22359 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22360 then :
22361 emulate sh
22362 NULLCMD=:
22363 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22364 # is contrary to our usage. Disable this feature.
22365 alias -g '${1+"$@"}'='"$@"'
22366 setopt NO_GLOB_SUBST
22367 else case e in #(
22368 e) case `(set -o) 2>/dev/null` in #(
22369 *posix*) :
22370 set -o posix ;; #(
22371 *) :
22372 ;;
22373 esac ;;
22374 esac
22375 fi
22376
22377
22378
22379 # Reset variables that may have inherited troublesome values from
22380 # the environment.
22381
22382 # IFS needs to be set, to space, tab, and newline, in precisely that order.
22383 # (If _AS_PATH_WALK were called with IFS unset, it would have the
22384 # side effect of setting IFS to empty, thus disabling word splitting.)
22385 # Quoting is to prevent editors from complaining about space-tab.
22386 as_nl='
22387 '
22388 export as_nl
22389 IFS=" "" $as_nl"
22390
22391 PS1='$ '
22392 PS2='> '
22393 PS4='+ '
22394
22395 # Ensure predictable behavior from utilities with locale-dependent output.
22396 LC_ALL=C
22397 export LC_ALL
22398 LANGUAGE=C
22399 export LANGUAGE
22400
22401 # We cannot yet rely on "unset" to work, but we need these variables
22402 # to be unset--not just set to an empty or harmless value--now, to
22403 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
22404 # also avoids known problems related to "unset" and subshell syntax
22405 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22406 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
22407 do eval test \${$as_var+y} \
22408 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22409 done
22410
22411 # Ensure that fds 0, 1, and 2 are open.
22412 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
22413 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
22414 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
22415
22416 # The user is always right.
22417 if ${PATH_SEPARATOR+false} :; then
22418 PATH_SEPARATOR=:
22419 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22420 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22421 PATH_SEPARATOR=';'
22422 }
22423 fi
22424
22425
22426 # Find who we are. Look in the path if we contain no directory separator.
22427 as_myself=
22428 case $0 in #((
22429 *[\\/]* ) as_myself=$0 ;;
22430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431 for as_dir in $PATH
22432 do
22433 IFS=$as_save_IFS
22434 case $as_dir in #(((
22435 '') as_dir=./ ;;
22436 */) ;;
22437 *) as_dir=$as_dir/ ;;
22438 esac
22439 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
22440 done
22441 IFS=$as_save_IFS
22442
22443 ;;
22444 esac
22445 # We did not find ourselves, most probably we were run as 'sh COMMAND'
22446 # in which case we are not to be found in the path.
22447 if test "x$as_myself" = x; then
22448 as_myself=$0
22449 fi
22450 if test ! -f "$as_myself"; then
22451 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22452 exit 1
22453 fi
22454
22455
22456
22457 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22458 # ----------------------------------------
22459 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22460 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22461 # script with STATUS, using 1 if that was 0.
22462 as_fn_error ()
22463 {
22464 as_status=$1; test $as_status -eq 0 && as_status=1
22465 if test "$4"; then
22466 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22468 fi
22469 printf "%s\n" "$as_me: error: $2" >&2
22470 as_fn_exit $as_status
22471 } # as_fn_error
22472
22473
22474 # as_fn_set_status STATUS
22475 # -----------------------
22476 # Set $? to STATUS, without forking.
22477 as_fn_set_status ()
22478 {
22479 return $1
22480 } # as_fn_set_status
22481
22482 # as_fn_exit STATUS
22483 # -----------------
22484 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22485 as_fn_exit ()
22486 {
22487 set +e
22488 as_fn_set_status $1
22489 exit $1
22490 } # as_fn_exit
22491
22492 # as_fn_unset VAR
22493 # ---------------
22494 # Portably unset VAR.
22495 as_fn_unset ()
22496 {
22497 { eval $1=; unset $1;}
22498 }
22499 as_unset=as_fn_unset
22500
22501 # as_fn_append VAR VALUE
22502 # ----------------------
22503 # Append the text in VALUE to the end of the definition contained in VAR. Take
22504 # advantage of any shell optimizations that allow amortized linear growth over
22505 # repeated appends, instead of the typical quadratic growth present in naive
22506 # implementations.
22507 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
22508 then :
22509 eval 'as_fn_append ()
22510 {
22511 eval $1+=\$2
22512 }'
22513 else case e in #(
22514 e) as_fn_append ()
22515 {
22516 eval $1=\$$1\$2
22517 } ;;
22518 esac
22519 fi # as_fn_append
22520
22521 # as_fn_arith ARG...
22522 # ------------------
22523 # Perform arithmetic evaluation on the ARGs, and store the result in the
22524 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22525 # must be portable across $(()) and expr.
22526 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
22527 then :
22528 eval 'as_fn_arith ()
22529 {
22530 as_val=$(( $* ))
22531 }'
22532 else case e in #(
22533 e) as_fn_arith ()
22534 {
22535 as_val=`expr "$@" || test $? -eq 1`
22536 } ;;
22537 esac
22538 fi # as_fn_arith
22539
22540
22541 if expr a : '\(a\)' >/dev/null 2>&1 &&
22542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22543 as_expr=expr
22544 else
22545 as_expr=false
22546 fi
22547
22548 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22549 as_basename=basename
22550 else
22551 as_basename=false
22552 fi
22553
22554 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22555 as_dirname=dirname
22556 else
22557 as_dirname=false
22558 fi
22559
22560 as_me=`$as_basename -- "$0" ||
22561 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22562 X"$0" : 'X\(//\)$' \| \
22563 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22564 printf "%s\n" X/"$0" |
22565 sed '/^.*\/\([^/][^/]*\)\/*$/{
22566 s//\1/
22567 q
22568 }
22569 /^X\/\(\/\/\)$/{
22570 s//\1/
22571 q
22572 }
22573 /^X\/\(\/\).*/{
22574 s//\1/
22575 q
22576 }
22577 s/.*/./; q'`
22578
22579 # Avoid depending upon Character Ranges.
22580 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22581 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22582 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22583 as_cr_digits='0123456789'
22584 as_cr_alnum=$as_cr_Letters$as_cr_digits
22585
22586
22587 # Determine whether it's possible to make 'echo' print without a newline.
22588 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
22589 # for compatibility with existing Makefiles.
22590 ECHO_C= ECHO_N= ECHO_T=
22591 case `echo -n x` in #(((((
22592 -n*)
22593 case `echo 'xy\c'` in
22594 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22595 xy) ECHO_C='\c';;
22596 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22597 ECHO_T=' ';;
22598 esac;;
22599 *)
22600 ECHO_N='-n';;
22601 esac
22602
22603 # For backward compatibility with old third-party macros, we provide
22604 # the shell variables $as_echo and $as_echo_n. New code should use
22605 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
22606 as_echo='printf %s\n'
22607 as_echo_n='printf %s'
22608
22609 rm -f conf$$ conf$$.exe conf$$.file
22610 if test -d conf$$.dir; then
22611 rm -f conf$$.dir/conf$$.file
22612 else
22613 rm -f conf$$.dir
22614 mkdir conf$$.dir 2>/dev/null
22615 fi
22616 if (echo >conf$$.file) 2>/dev/null; then
22617 if ln -s conf$$.file conf$$ 2>/dev/null; then
22618 as_ln_s='ln -s'
22619 # ... but there are two gotchas:
22620 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
22621 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
22622 # In both cases, we have to default to 'cp -pR'.
22623 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22624 as_ln_s='cp -pR'
22625 elif ln conf$$.file conf$$ 2>/dev/null; then
22626 as_ln_s=ln
22627 else
22628 as_ln_s='cp -pR'
22629 fi
22630 else
22631 as_ln_s='cp -pR'
22632 fi
22633 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22634 rmdir conf$$.dir 2>/dev/null
22635
22636
22637 # as_fn_mkdir_p
22638 # -------------
22639 # Create "$as_dir" as a directory, including parents if necessary.
22640 as_fn_mkdir_p ()
22641 {
22642
22643 case $as_dir in #(
22644 -*) as_dir=./$as_dir;;
22645 esac
22646 test -d "$as_dir" || eval $as_mkdir_p || {
22647 as_dirs=
22648 while :; do
22649 case $as_dir in #(
22650 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22651 *) as_qdir=$as_dir;;
22652 esac
22653 as_dirs="'$as_qdir' $as_dirs"
22654 as_dir=`$as_dirname -- "$as_dir" ||
22655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22656 X"$as_dir" : 'X\(//\)[^/]' \| \
22657 X"$as_dir" : 'X\(//\)$' \| \
22658 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22659 printf "%s\n" X"$as_dir" |
22660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22661 s//\1/
22662 q
22663 }
22664 /^X\(\/\/\)[^/].*/{
22665 s//\1/
22666 q
22667 }
22668 /^X\(\/\/\)$/{
22669 s//\1/
22670 q
22671 }
22672 /^X\(\/\).*/{
22673 s//\1/
22674 q
22675 }
22676 s/.*/./; q'`
22677 test -d "$as_dir" && break
22678 done
22679 test -z "$as_dirs" || eval "mkdir $as_dirs"
22680 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22681
22682
22683 } # as_fn_mkdir_p
22684 if mkdir -p . 2>/dev/null; then
22685 as_mkdir_p='mkdir -p "$as_dir"'
22686 else
22687 test -d ./-p && rmdir ./-p
22688 as_mkdir_p=false
22689 fi
22690
22691
22692 # as_fn_executable_p FILE
22693 # -----------------------
22694 # Test if FILE is an executable regular file.
22695 as_fn_executable_p ()
22696 {
22697 test -f "$1" && test -x "$1"
22698 } # as_fn_executable_p
22699 as_test_x='test -x'
22700 as_executable_p=as_fn_executable_p
22701
22702 # Sed expression to map a string onto a valid CPP name.
22703 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22704 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
22705
22706 # Sed expression to map a string onto a valid variable name.
22707 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22708 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
22709
22710
22711 exec 6>&1
22712 ## ----------------------------------- ##
22713 ## Main body of $CONFIG_STATUS script. ##
22714 ## ----------------------------------- ##
22715 _ASEOF
22716 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22717
22718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22719 # Save the log message, to keep $0 and so on meaningful, and to
22720 # report actual input values of CONFIG_FILES etc. instead of their
22721 # values after options handling.
22722 ac_log="
22723 This file was extended by xdvik $as_me 22.87.06, which was
22724 generated by GNU Autoconf 2.72. Invocation command line was
22725
22726 CONFIG_FILES = $CONFIG_FILES
22727 CONFIG_HEADERS = $CONFIG_HEADERS
22728 CONFIG_LINKS = $CONFIG_LINKS
22729 CONFIG_COMMANDS = $CONFIG_COMMANDS
22730 $ $0 $@
22731
22732 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22733 "
22734
22735 _ACEOF
22736
22737 case $ac_config_files in *"
22738 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22739 esac
22740
22741 case $ac_config_headers in *"
22742 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22743 esac
22744
22745
22746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22747 # Files that config.status was made for.
22748 config_files="$ac_config_files"
22749 config_headers="$ac_config_headers"
22750 config_commands="$ac_config_commands"
22751
22752 _ACEOF
22753
22754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22755 ac_cs_usage="\
22756 '$as_me' instantiates files and other configuration actions
22757 from templates according to the current configuration. Unless the files
22758 and actions are specified as TAGs, all are instantiated by default.
22759
22760 Usage: $0 [OPTION]... [TAG]...
22761
22762 -h, --help print this help, then exit
22763 -V, --version print version number and configuration settings, then exit
22764 --config print configuration, then exit
22765 -q, --quiet, --silent
22766 do not print progress messages
22767 -d, --debug don't remove temporary files
22768 --recheck update $as_me by reconfiguring in the same conditions
22769 --file=FILE[:TEMPLATE]
22770 instantiate the configuration file FILE
22771 --header=FILE[:TEMPLATE]
22772 instantiate the configuration header FILE
22773
22774 Configuration files:
22775 $config_files
22776
22777 Configuration headers:
22778 $config_headers
22779
22780 Configuration commands:
22781 $config_commands
22782
22783 Report bugs to <[email protected]>."
22784
22785 _ACEOF
22786 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22787 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22789 ac_cs_config='$ac_cs_config_escaped'
22790 ac_cs_version="\\
22791 xdvik config.status 22.87.06
22792 configured by $0, generated by GNU Autoconf 2.72,
22793 with options \\"\$ac_cs_config\\"
22794
22795 Copyright (C) 2023 Free Software Foundation, Inc.
22796 This config.status script is free software; the Free Software Foundation
22797 gives unlimited permission to copy, distribute and modify it."
22798
22799 ac_pwd='$ac_pwd'
22800 srcdir='$srcdir'
22801 INSTALL='$INSTALL'
22802 MKDIR_P='$MKDIR_P'
22803 AWK='$AWK'
22804 test -n "\$AWK" || AWK=awk
22805 _ACEOF
22806
22807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22808 # The default lists apply if the user does not specify any file.
22809 ac_need_defaults=:
22810 while test $# != 0
22811 do
22812 case $1 in
22813 --*=?*)
22814 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22815 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22816 ac_shift=:
22817 ;;
22818 --*=)
22819 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22820 ac_optarg=
22821 ac_shift=:
22822 ;;
22823 *)
22824 ac_option=$1
22825 ac_optarg=$2
22826 ac_shift=shift
22827 ;;
22828 esac
22829
22830 case $ac_option in
22831 # Handling of the options.
22832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22833 ac_cs_recheck=: ;;
22834 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22835 printf "%s\n" "$ac_cs_version"; exit ;;
22836 --config | --confi | --conf | --con | --co | --c )
22837 printf "%s\n" "$ac_cs_config"; exit ;;
22838 --debug | --debu | --deb | --de | --d | -d )
22839 debug=: ;;
22840 --file | --fil | --fi | --f )
22841 $ac_shift
22842 case $ac_optarg in
22843 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22844 '') as_fn_error $? "missing file argument" ;;
22845 esac
22846 as_fn_append CONFIG_FILES " '$ac_optarg'"
22847 ac_need_defaults=false;;
22848 --header | --heade | --head | --hea )
22849 $ac_shift
22850 case $ac_optarg in
22851 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22852 esac
22853 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22854 ac_need_defaults=false;;
22855 --he | --h)
22856 # Conflict between --help and --header
22857 as_fn_error $? "ambiguous option: '$1'
22858 Try '$0 --help' for more information.";;
22859 --help | --hel | -h )
22860 printf "%s\n" "$ac_cs_usage"; exit ;;
22861 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22862 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22863 ac_cs_silent=: ;;
22864
22865 # This is an error.
22866 -*) as_fn_error $? "unrecognized option: '$1'
22867 Try '$0 --help' for more information." ;;
22868
22869 *) as_fn_append ac_config_targets " $1"
22870 ac_need_defaults=false ;;
22871
22872 esac
22873 shift
22874 done
22875
22876 ac_configure_extra_args=
22877
22878 if $ac_cs_silent; then
22879 exec 6>/dev/null
22880 ac_configure_extra_args="$ac_configure_extra_args --silent"
22881 fi
22882
22883 _ACEOF
22884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22885 if \$ac_cs_recheck; then
22886 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22887 shift
22888 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22889 CONFIG_SHELL='$SHELL'
22890 export CONFIG_SHELL
22891 exec "\$@"
22892 fi
22893
22894 _ACEOF
22895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22896 exec 5>>config.log
22897 {
22898 echo
22899 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22900 ## Running $as_me. ##
22901 _ASBOX
22902 printf "%s\n" "$ac_log"
22903 } >&5
22904
22905 _ACEOF
22906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22907 #
22908 # INIT-COMMANDS
22909 #
22910 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22911
22912
22913 # The HP-UX ksh and POSIX shell print the target directory to stdout
22914 # if CDPATH is set.
22915 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22916
22917 sed_quote_subst='$sed_quote_subst'
22918 double_quote_subst='$double_quote_subst'
22919 delay_variable_subst='$delay_variable_subst'
22920 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22921 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22922 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22923 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22924 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22925 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22926 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22927 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22928 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22929 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22930 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22931 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22932 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22933 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22934 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22935 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22936 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22937 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22938 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22939 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22940 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22941 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22942 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22943 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22944 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22945 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22946 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22947 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22948 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22949 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22950 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22951 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22952 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22953 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22954 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22955 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22956 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22957 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22958 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22959 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22960 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22961 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22962 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22963 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22964 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22965 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22966 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22967 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22968 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22969 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22970 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22971 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22972 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22973 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22974 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22975 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22976 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22977 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22978 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22979 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22980 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22981 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"`'
22982 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22983 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22984 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22985 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22986 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22987 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22988 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22989 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22990 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22991 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22992 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22993 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22994 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22995 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22996 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22997 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22998 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22999 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23000 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23001 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23002 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23003 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23004 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23005 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23006 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23007 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23008 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23009 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23010 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23011 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23012 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23013 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23014 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23015 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23016 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23017 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23018 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23019 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23020 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23021 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23022 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23023 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23024 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23025 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23026 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23027 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23028 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23029 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23030 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23031 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23032 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23033 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23034 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23035 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23036 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23037 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23038 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23039 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23040 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23041 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23042 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23043 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23044 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23045 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23046 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23047 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23048 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23049 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23050 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23051 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23052 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23053 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23054 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23055 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23056 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23057 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23058
23059 LTCC='$LTCC'
23060 LTCFLAGS='$LTCFLAGS'
23061 compiler='$compiler_DEFAULT'
23062
23063 # A function that is used when there is no print builtin or printf.
23064 func_fallback_echo ()
23065 {
23066 eval 'cat <<_LTECHO_EOF
23067 \$1
23068 _LTECHO_EOF'
23069 }
23070
23071 # Quote evaled strings.
23072 for var in AS \
23073 DLLTOOL \
23074 OBJDUMP \
23075 SHELL \
23076 ECHO \
23077 PATH_SEPARATOR \
23078 SED \
23079 GREP \
23080 EGREP \
23081 FGREP \
23082 LD \
23083 NM \
23084 LN_S \
23085 lt_SP2NL \
23086 lt_NL2SP \
23087 reload_flag \
23088 FILECMD \
23089 deplibs_check_method \
23090 file_magic_cmd \
23091 file_magic_glob \
23092 want_nocaseglob \
23093 sharedlib_from_linklib_cmd \
23094 AR \
23095 archiver_list_spec \
23096 STRIP \
23097 RANLIB \
23098 CC \
23099 CFLAGS \
23100 compiler \
23101 lt_cv_sys_global_symbol_pipe \
23102 lt_cv_sys_global_symbol_to_cdecl \
23103 lt_cv_sys_global_symbol_to_import \
23104 lt_cv_sys_global_symbol_to_c_name_address \
23105 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23106 lt_cv_nm_interface \
23107 nm_file_list_spec \
23108 lt_cv_truncate_bin \
23109 lt_prog_compiler_no_builtin_flag \
23110 lt_prog_compiler_pic \
23111 lt_prog_compiler_wl \
23112 lt_prog_compiler_static \
23113 lt_cv_prog_compiler_c_o \
23114 need_locks \
23115 MANIFEST_TOOL \
23116 DSYMUTIL \
23117 NMEDIT \
23118 LIPO \
23119 OTOOL \
23120 OTOOL64 \
23121 shrext_cmds \
23122 export_dynamic_flag_spec \
23123 whole_archive_flag_spec \
23124 compiler_needs_object \
23125 with_gnu_ld \
23126 allow_undefined_flag \
23127 no_undefined_flag \
23128 hardcode_libdir_flag_spec \
23129 hardcode_libdir_separator \
23130 exclude_expsyms \
23131 include_expsyms \
23132 file_list_spec \
23133 variables_saved_for_relink \
23134 libname_spec \
23135 library_names_spec \
23136 soname_spec \
23137 install_override_mode \
23138 finish_eval \
23139 old_striplib \
23140 striplib; do
23141 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23142 *[\\\\\\\`\\"\\\$]*)
23143 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23144 ;;
23145 *)
23146 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23147 ;;
23148 esac
23149 done
23150
23151 # Double-quote double-evaled strings.
23152 for var in reload_cmds \
23153 old_postinstall_cmds \
23154 old_postuninstall_cmds \
23155 old_archive_cmds \
23156 extract_expsyms_cmds \
23157 old_archive_from_new_cmds \
23158 old_archive_from_expsyms_cmds \
23159 archive_cmds \
23160 archive_expsym_cmds \
23161 module_cmds \
23162 module_expsym_cmds \
23163 export_symbols_cmds \
23164 prelink_cmds \
23165 postlink_cmds \
23166 postinstall_cmds \
23167 postuninstall_cmds \
23168 finish_cmds \
23169 sys_lib_search_path_spec \
23170 configure_time_dlsearch_path \
23171 configure_time_lt_sys_library_path; do
23172 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23173 *[\\\\\\\`\\"\\\$]*)
23174 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23175 ;;
23176 *)
23177 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23178 ;;
23179 esac
23180 done
23181
23182 ac_aux_dir='$ac_aux_dir'
23183
23184 # See if we are running on zsh, and set the options that allow our
23185 # commands through without removal of \ escapes INIT.
23186 if test -n "\${ZSH_VERSION+set}"; then
23187 setopt NO_GLOB_SUBST
23188 fi
23189
23190
23191 PACKAGE='$PACKAGE'
23192 VERSION='$VERSION'
23193 RM='$RM'
23194 ofile='$ofile'
23195
23196 ac_aux_dir='$ac_aux_dir'
23197
23198
23199
23200 _ACEOF
23201
23202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23203
23204 # Handling of arguments.
23205 for ac_config_target in $ac_config_targets
23206 do
23207 case $ac_config_target in
23208 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23209 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23210 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
23211 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23212 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23213 "xdvi") CONFIG_FILES="$CONFIG_FILES xdvi:xdvi-sh.in" ;;
23214
23215 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
23216 esac
23217 done
23218
23219
23220 # If the user did not use the arguments to specify the items to instantiate,
23221 # then the envvar interface is used. Set only those that are not.
23222 # We use the long form for the default assignment because of an extremely
23223 # bizarre bug on SunOS 4.1.3.
23224 if $ac_need_defaults; then
23225 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
23226 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
23227 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
23228 fi
23229
23230 # Have a temporary directory for convenience. Make it in the build tree
23231 # simply because there is no reason against having it here, and in addition,
23232 # creating and moving files from /tmp can sometimes cause problems.
23233 # Hook for its removal unless debugging.
23234 # Note that there is a small window in which the directory will not be cleaned:
23235 # after its creation but before its name has been assigned to '$tmp'.
23236 $debug ||
23237 {
23238 tmp= ac_tmp=
23239 trap 'exit_status=$?
23240 : "${ac_tmp:=$tmp}"
23241 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23242 ' 0
23243 trap 'as_fn_exit 1' 1 2 13 15
23244 }
23245 # Create a (secure) tmp directory for tmp files.
23246
23247 {
23248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23249 test -d "$tmp"
23250 } ||
23251 {
23252 tmp=./conf$$-$RANDOM
23253 (umask 077 && mkdir "$tmp")
23254 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23255 ac_tmp=$tmp
23256
23257 # Set up the scripts for CONFIG_FILES section.
23258 # No need to generate them if there are no CONFIG_FILES.
23259 # This happens for instance with './config.status config.h'.
23260 if test -n "$CONFIG_FILES"; then
23261
23262
23263 ac_cr=`echo X | tr X '\015'`
23264 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23265 # But we know of no other shell where ac_cr would be empty at this
23266 # point, so we can use a bashism as a fallback.
23267 if test "x$ac_cr" = x; then
23268 eval ac_cr=\$\'\\r\'
23269 fi
23270 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23271 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23272 ac_cs_awk_cr='\\r'
23273 else
23274 ac_cs_awk_cr=$ac_cr
23275 fi
23276
23277 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23278 _ACEOF
23279
23280
23281 {
23282 echo "cat >conf$$subs.awk <<_ACEOF" &&
23283 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23284 echo "_ACEOF"
23285 } >conf$$subs.sh ||
23286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23287 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23288 ac_delim='%!_!# '
23289 for ac_last_try in false false false false false :; do
23290 . ./conf$$subs.sh ||
23291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23292
23293 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23294 if test $ac_delim_n = $ac_delim_num; then
23295 break
23296 elif $ac_last_try; then
23297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23298 else
23299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23300 fi
23301 done
23302 rm -f conf$$subs.sh
23303
23304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23305 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23306 _ACEOF
23307 sed -n '
23308 h
23309 s/^/S["/; s/!.*/"]=/
23310 p
23311 g
23312 s/^[^!]*!//
23313 :repl
23314 t repl
23315 s/'"$ac_delim"'$//
23316 t delim
23317 :nl
23318 h
23319 s/\(.\{148\}\)..*/\1/
23320 t more1
23321 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23322 p
23323 n
23324 b repl
23325 :more1
23326 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23327 p
23328 g
23329 s/.\{148\}//
23330 t nl
23331 :delim
23332 h
23333 s/\(.\{148\}\)..*/\1/
23334 t more2
23335 s/["\\]/\\&/g; s/^/"/; s/$/"/
23336 p
23337 b
23338 :more2
23339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23340 p
23341 g
23342 s/.\{148\}//
23343 t delim
23344 ' <conf$$subs.awk | sed '
23345 /^[^""]/{
23346 N
23347 s/\n//
23348 }
23349 ' >>$CONFIG_STATUS || ac_write_fail=1
23350 rm -f conf$$subs.awk
23351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23352 _ACAWK
23353 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23354 for (key in S) S_is_set[key] = 1
23355 FS = ""
23356
23357 }
23358 {
23359 line = $ 0
23360 nfields = split(line, field, "@")
23361 substed = 0
23362 len = length(field[1])
23363 for (i = 2; i < nfields; i++) {
23364 key = field[i]
23365 keylen = length(key)
23366 if (S_is_set[key]) {
23367 value = S[key]
23368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23369 len += length(value) + length(field[++i])
23370 substed = 1
23371 } else
23372 len += 1 + keylen
23373 }
23374
23375 print line
23376 }
23377
23378 _ACAWK
23379 _ACEOF
23380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23381 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23383 else
23384 cat
23385 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23387 _ACEOF
23388
23389 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23390 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23391 # trailing colons and then remove the whole line if VPATH becomes empty
23392 # (actually we leave an empty line to preserve line numbers).
23393 if test "x$srcdir" = x.; then
23394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23395 h
23396 s///
23397 s/^/:/
23398 s/[ ]*$/:/
23399 s/:\$(srcdir):/:/g
23400 s/:\${srcdir}:/:/g
23401 s/:@srcdir@:/:/g
23402 s/^:*//
23403 s/:*$//
23404 x
23405 s/\(=[ ]*\).*/\1/
23406 G
23407 s/\n//
23408 s/^[^=]*=[ ]*$//
23409 }'
23410 fi
23411
23412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23413 fi # test -n "$CONFIG_FILES"
23414
23415 # Set up the scripts for CONFIG_HEADERS section.
23416 # No need to generate them if there are no CONFIG_HEADERS.
23417 # This happens for instance with './config.status Makefile'.
23418 if test -n "$CONFIG_HEADERS"; then
23419 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23420 BEGIN {
23421 _ACEOF
23422
23423 # Transform confdefs.h into an awk script 'defines.awk', embedded as
23424 # here-document in config.status, that substitutes the proper values into
23425 # config.h.in to produce config.h.
23426
23427 # Create a delimiter string that does not exist in confdefs.h, to ease
23428 # handling of long lines.
23429 ac_delim='%!_!# '
23430 for ac_last_try in false false :; do
23431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23432 if test -z "$ac_tt"; then
23433 break
23434 elif $ac_last_try; then
23435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23436 else
23437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23438 fi
23439 done
23440
23441 # For the awk script, D is an array of macro values keyed by name,
23442 # likewise P contains macro parameters if any. Preserve backslash
23443 # newline sequences.
23444
23445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23446 sed -n '
23447 s/.\{148\}/&'"$ac_delim"'/g
23448 t rset
23449 :rset
23450 s/^[ ]*#[ ]*define[ ][ ]*/ /
23451 t def
23452 d
23453 :def
23454 s/\\$//
23455 t bsnl
23456 s/["\\]/\\&/g
23457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23458 D["\1"]=" \3"/p
23459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23460 d
23461 :bsnl
23462 s/["\\]/\\&/g
23463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23464 D["\1"]=" \3\\\\\\n"\\/p
23465 t cont
23466 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23467 t cont
23468 d
23469 :cont
23470 n
23471 s/.\{148\}/&'"$ac_delim"'/g
23472 t clear
23473 :clear
23474 s/\\$//
23475 t bsnlc
23476 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23477 d
23478 :bsnlc
23479 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23480 b cont
23481 ' <confdefs.h | sed '
23482 s/'"$ac_delim"'/"\\\
23483 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23484
23485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23486 for (key in D) D_is_set[key] = 1
23487 FS = ""
23488 }
23489 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23490 line = \$ 0
23491 split(line, arg, " ")
23492 if (arg[1] == "#") {
23493 defundef = arg[2]
23494 mac1 = arg[3]
23495 } else {
23496 defundef = substr(arg[1], 2)
23497 mac1 = arg[2]
23498 }
23499 split(mac1, mac2, "(") #)
23500 macro = mac2[1]
23501 prefix = substr(line, 1, index(line, defundef) - 1)
23502 if (D_is_set[macro]) {
23503 # Preserve the white space surrounding the "#".
23504 print prefix "define", macro P[macro] D[macro]
23505 next
23506 } else {
23507 # Replace #undef with comments. This is necessary, for example,
23508 # in the case of _POSIX_SOURCE, which is predefined and required
23509 # on some systems where configure will not decide to define it.
23510 if (defundef == "undef") {
23511 print "/*", prefix defundef, macro, "*/"
23512 next
23513 }
23514 }
23515 }
23516 { print }
23517 _ACAWK
23518 _ACEOF
23519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23521 fi # test -n "$CONFIG_HEADERS"
23522
23523
23524 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23525 shift
23526 for ac_tag
23527 do
23528 case $ac_tag in
23529 :[FHLC]) ac_mode=$ac_tag; continue;;
23530 esac
23531 case $ac_mode$ac_tag in
23532 :[FHL]*:*);;
23533 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
23534 :[FH]-) ac_tag=-:-;;
23535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23536 esac
23537 ac_save_IFS=$IFS
23538 IFS=:
23539 set x $ac_tag
23540 IFS=$ac_save_IFS
23541 shift
23542 ac_file=$1
23543 shift
23544
23545 case $ac_mode in
23546 :L) ac_source=$1;;
23547 :[FH])
23548 ac_file_inputs=
23549 for ac_f
23550 do
23551 case $ac_f in
23552 -) ac_f="$ac_tmp/stdin";;
23553 *) # Look for the file first in the build tree, then in the source tree
23554 # (if the path is not absolute). The absolute path cannot be DOS-style,
23555 # because $ac_f cannot contain ':'.
23556 test -f "$ac_f" ||
23557 case $ac_f in
23558 [\\/$]*) false;;
23559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23560 esac ||
23561 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
23562 esac
23563 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23564 as_fn_append ac_file_inputs " '$ac_f'"
23565 done
23566
23567 # Let's still pretend it is 'configure' which instantiates (i.e., don't
23568 # use $as_me), people would be surprised to read:
23569 # /* config.h. Generated by config.status. */
23570 configure_input='Generated from '`
23571 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23572 `' by configure.'
23573 if test x"$ac_file" != x-; then
23574 configure_input="$ac_file. $configure_input"
23575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23576 printf "%s\n" "$as_me: creating $ac_file" >&6;}
23577 fi
23578 # Neutralize special characters interpreted by sed in replacement strings.
23579 case $configure_input in #(
23580 *\&* | *\|* | *\\* )
23581 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
23582 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23583 *) ac_sed_conf_input=$configure_input;;
23584 esac
23585
23586 case $ac_tag in
23587 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23589 esac
23590 ;;
23591 esac
23592
23593 ac_dir=`$as_dirname -- "$ac_file" ||
23594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23595 X"$ac_file" : 'X\(//\)[^/]' \| \
23596 X"$ac_file" : 'X\(//\)$' \| \
23597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23598 printf "%s\n" X"$ac_file" |
23599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23600 s//\1/
23601 q
23602 }
23603 /^X\(\/\/\)[^/].*/{
23604 s//\1/
23605 q
23606 }
23607 /^X\(\/\/\)$/{
23608 s//\1/
23609 q
23610 }
23611 /^X\(\/\).*/{
23612 s//\1/
23613 q
23614 }
23615 s/.*/./; q'`
23616 as_dir="$ac_dir"; as_fn_mkdir_p
23617 ac_builddir=.
23618
23619 case "$ac_dir" in
23620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23621 *)
23622 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23623 # A ".." for each directory in $ac_dir_suffix.
23624 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23625 case $ac_top_builddir_sub in
23626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23628 esac ;;
23629 esac
23630 ac_abs_top_builddir=$ac_pwd
23631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23632 # for backward compatibility:
23633 ac_top_builddir=$ac_top_build_prefix
23634
23635 case $srcdir in
23636 .) # We are building in place.
23637 ac_srcdir=.
23638 ac_top_srcdir=$ac_top_builddir_sub
23639 ac_abs_top_srcdir=$ac_pwd ;;
23640 [\\/]* | ?:[\\/]* ) # Absolute name.
23641 ac_srcdir=$srcdir$ac_dir_suffix;
23642 ac_top_srcdir=$srcdir
23643 ac_abs_top_srcdir=$srcdir ;;
23644 *) # Relative name.
23645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23646 ac_top_srcdir=$ac_top_build_prefix$srcdir
23647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23648 esac
23649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23650
23651
23652 case $ac_mode in
23653 :F)
23654 #
23655 # CONFIG_FILE
23656 #
23657
23658 case $INSTALL in
23659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23661 esac
23662 ac_MKDIR_P=$MKDIR_P
23663 case $MKDIR_P in
23664 [\\/$]* | ?:[\\/]* ) ;;
23665 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23666 esac
23667 _ACEOF
23668
23669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23670 # If the template does not know about datarootdir, expand it.
23671 # FIXME: This hack should be removed a few years after 2.60.
23672 ac_datarootdir_hack=; ac_datarootdir_seen=
23673 ac_sed_dataroot='
23674 /datarootdir/ {
23675 p
23676 q
23677 }
23678 /@datadir@/p
23679 /@docdir@/p
23680 /@infodir@/p
23681 /@localedir@/p
23682 /@mandir@/p'
23683 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23684 *datarootdir*) ac_datarootdir_seen=yes;;
23685 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23687 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23688 _ACEOF
23689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23690 ac_datarootdir_hack='
23691 s&@datadir@&$datadir&g
23692 s&@docdir@&$docdir&g
23693 s&@infodir@&$infodir&g
23694 s&@localedir@&$localedir&g
23695 s&@mandir@&$mandir&g
23696 s&\\\${datarootdir}&$datarootdir&g' ;;
23697 esac
23698 _ACEOF
23699
23700 # Neutralize VPATH when '$srcdir' = '.'.
23701 # Shell code in configure.ac might set extrasub.
23702 # FIXME: do we really want to maintain this feature?
23703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23704 ac_sed_extra="$ac_vpsub
23705 $extrasub
23706 _ACEOF
23707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23708 :t
23709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23710 s|@configure_input@|$ac_sed_conf_input|;t t
23711 s&@top_builddir@&$ac_top_builddir_sub&;t t
23712 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23713 s&@srcdir@&$ac_srcdir&;t t
23714 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23715 s&@top_srcdir@&$ac_top_srcdir&;t t
23716 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23717 s&@builddir@&$ac_builddir&;t t
23718 s&@abs_builddir@&$ac_abs_builddir&;t t
23719 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23720 s&@INSTALL@&$ac_INSTALL&;t t
23721 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23722 $ac_datarootdir_hack
23723 "
23724 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23725 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23726
23727 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23728 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23730 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23732 which seems to be undefined. Please make sure it is defined" >&5
23733 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23734 which seems to be undefined. Please make sure it is defined" >&2;}
23735
23736 rm -f "$ac_tmp/stdin"
23737 case $ac_file in
23738 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23739 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23740 esac \
23741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23742 ;;
23743 :H)
23744 #
23745 # CONFIG_HEADER
23746 #
23747 if test x"$ac_file" != x-; then
23748 {
23749 printf "%s\n" "/* $configure_input */" >&1 \
23750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23751 } >"$ac_tmp/config.h" \
23752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23753 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23755 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23756 else
23757 rm -f "$ac_file"
23758 mv "$ac_tmp/config.h" "$ac_file" \
23759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23760 fi
23761 else
23762 printf "%s\n" "/* $configure_input */" >&1 \
23763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23764 || as_fn_error $? "could not create -" "$LINENO" 5
23765 fi
23766 # Compute "$ac_file"'s index in $config_headers.
23767 _am_arg="$ac_file"
23768 _am_stamp_count=1
23769 for _am_header in $config_headers :; do
23770 case $_am_header in
23771 $_am_arg | $_am_arg:* )
23772 break ;;
23773 * )
23774 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23775 esac
23776 done
23777 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23778 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23779 X"$_am_arg" : 'X\(//\)[^/]' \| \
23780 X"$_am_arg" : 'X\(//\)$' \| \
23781 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23782 printf "%s\n" X"$_am_arg" |
23783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23784 s//\1/
23785 q
23786 }
23787 /^X\(\/\/\)[^/].*/{
23788 s//\1/
23789 q
23790 }
23791 /^X\(\/\/\)$/{
23792 s//\1/
23793 q
23794 }
23795 /^X\(\/\).*/{
23796 s//\1/
23797 q
23798 }
23799 s/.*/./; q'`/stamp-h$_am_stamp_count
23800 ;;
23801
23802 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23803 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23804 ;;
23805 esac
23806
23807
23808 case $ac_file$ac_mode in
23809 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23810 # Older Autoconf quotes --file arguments for eval, but not when files
23811 # are listed without --file. Let's play safe and only enable the eval
23812 # if we detect the quoting.
23813 # TODO: see whether this extra hack can be removed once we start
23814 # requiring Autoconf 2.70 or later.
23815 case $CONFIG_FILES in #(
23816 *\'*) :
23817 eval set x "$CONFIG_FILES" ;; #(
23818 *) :
23819 set x $CONFIG_FILES ;; #(
23820 *) :
23821 ;;
23822 esac
23823 shift
23824 # Used to flag and report bootstrapping failures.
23825 am_rc=0
23826 for am_mf
23827 do
23828 # Strip MF so we end up with the name of the file.
23829 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23830 # Check whether this is an Automake generated Makefile which includes
23831 # dependency-tracking related rules and includes.
23832 # Grep'ing the whole file directly is not great: AIX grep has a line
23833 # limit of 2048, but all sed's we know have understand at least 4000.
23834 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23835 || continue
23836 am_dirpart=`$as_dirname -- "$am_mf" ||
23837 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23838 X"$am_mf" : 'X\(//\)[^/]' \| \
23839 X"$am_mf" : 'X\(//\)$' \| \
23840 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23841 printf "%s\n" X"$am_mf" |
23842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23843 s//\1/
23844 q
23845 }
23846 /^X\(\/\/\)[^/].*/{
23847 s//\1/
23848 q
23849 }
23850 /^X\(\/\/\)$/{
23851 s//\1/
23852 q
23853 }
23854 /^X\(\/\).*/{
23855 s//\1/
23856 q
23857 }
23858 s/.*/./; q'`
23859 am_filepart=`$as_basename -- "$am_mf" ||
23860 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23861 X"$am_mf" : 'X\(//\)$' \| \
23862 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23863 printf "%s\n" X/"$am_mf" |
23864 sed '/^.*\/\([^/][^/]*\)\/*$/{
23865 s//\1/
23866 q
23867 }
23868 /^X\/\(\/\/\)$/{
23869 s//\1/
23870 q
23871 }
23872 /^X\/\(\/\).*/{
23873 s//\1/
23874 q
23875 }
23876 s/.*/./; q'`
23877 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23878 && sed -e '/# am--include-marker/d' "$am_filepart" \
23879 | $MAKE -f - am--depfiles" >&5
23880 (cd "$am_dirpart" \
23881 && sed -e '/# am--include-marker/d' "$am_filepart" \
23882 | $MAKE -f - am--depfiles) >&5 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); } || am_rc=$?
23886 done
23887 if test $am_rc -ne 0; then
23888 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23889 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23890 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23891 for automatic dependency tracking. If GNU make was not used, consider
23892 re-running the configure script with MAKE=\"gmake\" (or whatever is
23893 necessary). You can also try re-running configure with the
23894 '--disable-dependency-tracking' option to at least be able to build
23895 the package (albeit without support for automatic dependency tracking).
23896 See 'config.log' for more details" "$LINENO" 5; }
23897 fi
23898 { am_dirpart=; unset am_dirpart;}
23899 { am_filepart=; unset am_filepart;}
23900 { am_mf=; unset am_mf;}
23901 { am_rc=; unset am_rc;}
23902 rm -f conftest-deps.mk
23903 }
23904 ;;
23905 "libtool":C)
23906
23907 # See if we are running on zsh, and set the options that allow our
23908 # commands through without removal of \ escapes.
23909 if test -n "${ZSH_VERSION+set}"; then
23910 setopt NO_GLOB_SUBST
23911 fi
23912
23913 cfgfile=${ofile}T
23914 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23915 $RM "$cfgfile"
23916
23917 cat <<_LT_EOF >> "$cfgfile"
23918 #! $SHELL
23919 # Generated automatically by $as_me ($PACKAGE) $VERSION
23920 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23921
23922 # Provide generalized library-building support services.
23923 # Written by Gordon Matzigkeit, 1996
23924
23925 # Copyright (C) 2024 Free Software Foundation, Inc.
23926 # This is free software; see the source for copying conditions. There is NO
23927 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23928
23929 # GNU Libtool is free software; you can redistribute it and/or modify
23930 # it under the terms of the GNU General Public License as published by
23931 # the Free Software Foundation; either version 2 of the License, or
23932 # (at your option) any later version.
23933 #
23934 # As a special exception to the GNU General Public License, if you
23935 # distribute this file as part of a program or library that is built
23936 # using GNU Libtool, you may include this file under the same
23937 # distribution terms that you use for the rest of that program.
23938 #
23939 # GNU Libtool is distributed in the hope that it will be useful, but
23940 # WITHOUT ANY WARRANTY; without even the implied warranty of
23941 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23942 # GNU General Public License for more details.
23943 #
23944 # You should have received a copy of the GNU General Public License
23945 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23946
23947
23948 # The names of the tagged configurations supported by this script.
23949 available_tags=''
23950
23951 # Configured defaults for sys_lib_dlsearch_path munging.
23952 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23953
23954 # ### BEGIN LIBTOOL CONFIG
23955
23956 # Which release of libtool.m4 was used?
23957 macro_version=$macro_version
23958 macro_revision=$macro_revision
23959
23960 # Assembler program.
23961 AS=$lt_AS
23962
23963 # DLL creation program.
23964 DLLTOOL=$lt_DLLTOOL
23965
23966 # Object dumper program.
23967 OBJDUMP=$lt_OBJDUMP
23968
23969 # Whether or not to build shared libraries.
23970 build_libtool_libs=$enable_shared
23971
23972 # Whether or not to build static libraries.
23973 build_old_libs=$enable_static
23974
23975 # What type of objects to build.
23976 pic_mode=$pic_mode
23977
23978 # Whether or not to optimize for fast installation.
23979 fast_install=$enable_fast_install
23980
23981 # Shared archive member basename,for filename based shared library versioning on AIX.
23982 shared_archive_member_spec=$shared_archive_member_spec
23983
23984 # Shell to use when invoking shell scripts.
23985 SHELL=$lt_SHELL
23986
23987 # An echo program that protects backslashes.
23988 ECHO=$lt_ECHO
23989
23990 # The PATH separator for the build system.
23991 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23992
23993 # The host system.
23994 host_alias=$host_alias
23995 host=$host
23996 host_os=$host_os
23997
23998 # The build system.
23999 build_alias=$build_alias
24000 build=$build
24001 build_os=$build_os
24002
24003 # A sed program that does not truncate output.
24004 SED=$lt_SED
24005
24006 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24007 Xsed="\$SED -e 1s/^X//"
24008
24009 # A grep program that handles long lines.
24010 GREP=$lt_GREP
24011
24012 # An ERE matcher.
24013 EGREP=$lt_EGREP
24014
24015 # A literal string matcher.
24016 FGREP=$lt_FGREP
24017
24018 # A BSD- or MS-compatible name lister.
24019 NM=$lt_NM
24020
24021 # Whether we need soft or hard links.
24022 LN_S=$lt_LN_S
24023
24024 # What is the maximum length of a command?
24025 max_cmd_len=$max_cmd_len
24026
24027 # Object file suffix (normally "o").
24028 objext=$ac_objext
24029
24030 # Executable file suffix (normally "").
24031 exeext=$exeext
24032
24033 # whether the shell understands "unset".
24034 lt_unset=$lt_unset
24035
24036 # turn spaces into newlines.
24037 SP2NL=$lt_lt_SP2NL
24038
24039 # turn newlines into spaces.
24040 NL2SP=$lt_lt_NL2SP
24041
24042 # convert \$build file names to \$host format.
24043 to_host_file_cmd=$lt_cv_to_host_file_cmd
24044
24045 # convert \$build files to toolchain format.
24046 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24047
24048 # A file(cmd) program that detects file types.
24049 FILECMD=$lt_FILECMD
24050
24051 # Method to check whether dependent libraries are shared objects.
24052 deplibs_check_method=$lt_deplibs_check_method
24053
24054 # Command to use when deplibs_check_method = "file_magic".
24055 file_magic_cmd=$lt_file_magic_cmd
24056
24057 # How to find potential files when deplibs_check_method = "file_magic".
24058 file_magic_glob=$lt_file_magic_glob
24059
24060 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24061 want_nocaseglob=$lt_want_nocaseglob
24062
24063 # Command to associate shared and link libraries.
24064 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24065
24066 # The archiver.
24067 AR=$lt_AR
24068
24069 # Flags to create an archive (by configure).
24070 lt_ar_flags=$lt_ar_flags
24071
24072 # Flags to create an archive.
24073 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24074
24075 # How to feed a file listing to the archiver.
24076 archiver_list_spec=$lt_archiver_list_spec
24077
24078 # A symbol stripping program.
24079 STRIP=$lt_STRIP
24080
24081 # Commands used to install an old-style archive.
24082 RANLIB=$lt_RANLIB
24083 old_postinstall_cmds=$lt_old_postinstall_cmds
24084 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24085
24086 # Whether to use a lock for old archive extraction.
24087 lock_old_archive_extraction=$lock_old_archive_extraction
24088
24089 # A C compiler.
24090 LTCC=$lt_CC
24091
24092 # LTCC compiler flags.
24093 LTCFLAGS=$lt_CFLAGS
24094
24095 # Take the output of nm and produce a listing of raw symbols and C names.
24096 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24097
24098 # Transform the output of nm in a proper C declaration.
24099 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24100
24101 # Transform the output of nm into a list of symbols to manually relocate.
24102 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24103
24104 # Transform the output of nm in a C name address pair.
24105 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24106
24107 # Transform the output of nm in a C name address pair when lib prefix is needed.
24108 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24109
24110 # The name lister interface.
24111 nm_interface=$lt_lt_cv_nm_interface
24112
24113 # Specify filename containing input files for \$NM.
24114 nm_file_list_spec=$lt_nm_file_list_spec
24115
24116 # The root where to search for dependent libraries,and where our libraries should be installed.
24117 lt_sysroot=$lt_sysroot
24118
24119 # Command to truncate a binary pipe.
24120 lt_truncate_bin=$lt_lt_cv_truncate_bin
24121
24122 # The name of the directory that contains temporary libtool files.
24123 objdir=$objdir
24124
24125 # Used to examine libraries when file_magic_cmd begins with "file".
24126 MAGIC_CMD=$MAGIC_CMD
24127
24128 # Must we lock files when doing compilation?
24129 need_locks=$lt_need_locks
24130
24131 # Manifest tool.
24132 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24133
24134 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24135 DSYMUTIL=$lt_DSYMUTIL
24136
24137 # Tool to change global to local symbols on Mac OS X.
24138 NMEDIT=$lt_NMEDIT
24139
24140 # Tool to manipulate fat objects and archives on Mac OS X.
24141 LIPO=$lt_LIPO
24142
24143 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24144 OTOOL=$lt_OTOOL
24145
24146 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24147 OTOOL64=$lt_OTOOL64
24148
24149 # Old archive suffix (normally "a").
24150 libext=$libext
24151
24152 # Shared library suffix (normally ".so").
24153 shrext_cmds=$lt_shrext_cmds
24154
24155 # The commands to extract the exported symbol list from a shared archive.
24156 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24157
24158 # Variables whose values should be saved in libtool wrapper scripts and
24159 # restored at link time.
24160 variables_saved_for_relink=$lt_variables_saved_for_relink
24161
24162 # Do we need the "lib" prefix for modules?
24163 need_lib_prefix=$need_lib_prefix
24164
24165 # Do we need a version for libraries?
24166 need_version=$need_version
24167
24168 # Library versioning type.
24169 version_type=$version_type
24170
24171 # Shared library runtime path variable.
24172 runpath_var=$runpath_var
24173
24174 # Shared library path variable.
24175 shlibpath_var=$shlibpath_var
24176
24177 # Is shlibpath searched before the hard-coded library search path?
24178 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24179
24180 # Format of library name prefix.
24181 libname_spec=$lt_libname_spec
24182
24183 # List of archive names. First name is the real one, the rest are links.
24184 # The last name is the one that the linker finds with -lNAME
24185 library_names_spec=$lt_library_names_spec
24186
24187 # The coded name of the library, if different from the real name.
24188 soname_spec=$lt_soname_spec
24189
24190 # Permission mode override for installation of shared libraries.
24191 install_override_mode=$lt_install_override_mode
24192
24193 # Command to use after installation of a shared archive.
24194 postinstall_cmds=$lt_postinstall_cmds
24195
24196 # Command to use after uninstallation of a shared archive.
24197 postuninstall_cmds=$lt_postuninstall_cmds
24198
24199 # Commands used to finish a libtool library installation in a directory.
24200 finish_cmds=$lt_finish_cmds
24201
24202 # As "finish_cmds", except a single script fragment to be evaled but
24203 # not shown.
24204 finish_eval=$lt_finish_eval
24205
24206 # Whether we should hardcode library paths into libraries.
24207 hardcode_into_libs=$hardcode_into_libs
24208
24209 # Compile-time system search path for libraries.
24210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24211
24212 # Detected run-time system search path for libraries.
24213 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24214
24215 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24216 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24217
24218 # Whether dlopen is supported.
24219 dlopen_support=$enable_dlopen
24220
24221 # Whether dlopen of programs is supported.
24222 dlopen_self=$enable_dlopen_self
24223
24224 # Whether dlopen of statically linked programs is supported.
24225 dlopen_self_static=$enable_dlopen_self_static
24226
24227 # Commands to strip libraries.
24228 old_striplib=$lt_old_striplib
24229 striplib=$lt_striplib
24230
24231
24232 # The linker used to build libraries.
24233 LD=$lt_LD
24234
24235 # How to create reloadable object files.
24236 reload_flag=$lt_reload_flag
24237 reload_cmds=$lt_reload_cmds
24238
24239 # Commands used to build an old-style archive.
24240 old_archive_cmds=$lt_old_archive_cmds
24241
24242 # A language specific compiler.
24243 CC=$lt_compiler
24244
24245 # Is the compiler the GNU compiler?
24246 with_gcc=$GCC
24247
24248 # Compiler flag to turn off builtin functions.
24249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24250
24251 # Additional compiler flags for building library objects.
24252 pic_flag=$lt_lt_prog_compiler_pic
24253
24254 # How to pass a linker flag through the compiler.
24255 wl=$lt_lt_prog_compiler_wl
24256
24257 # Compiler flag to prevent dynamic linking.
24258 link_static_flag=$lt_lt_prog_compiler_static
24259
24260 # Does compiler simultaneously support -c and -o options?
24261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24262
24263 # Whether or not to add -lc for building shared libraries.
24264 build_libtool_need_lc=$archive_cmds_need_lc
24265
24266 # Whether or not to disallow shared libs when runtime libs are static.
24267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24268
24269 # Compiler flag to allow reflexive dlopens.
24270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24271
24272 # Compiler flag to generate shared objects directly from archives.
24273 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24274
24275 # Whether the compiler copes with passing no objects directly.
24276 compiler_needs_object=$lt_compiler_needs_object
24277
24278 # Create an old-style archive from a shared archive.
24279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24280
24281 # Create a temporary old-style archive to link instead of a shared archive.
24282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24283
24284 # Commands used to build a shared archive.
24285 archive_cmds=$lt_archive_cmds
24286 archive_expsym_cmds=$lt_archive_expsym_cmds
24287
24288 # Commands used to build a loadable module if different from building
24289 # a shared archive.
24290 module_cmds=$lt_module_cmds
24291 module_expsym_cmds=$lt_module_expsym_cmds
24292
24293 # Whether we are building with GNU ld or not.
24294 with_gnu_ld=$lt_with_gnu_ld
24295
24296 # Flag that allows shared libraries with undefined symbols to be built.
24297 allow_undefined_flag=$lt_allow_undefined_flag
24298
24299 # Flag that enforces no undefined symbols.
24300 no_undefined_flag=$lt_no_undefined_flag
24301
24302 # Flag to hardcode \$libdir into a binary during linking.
24303 # This must work even if \$libdir does not exist
24304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24305
24306 # Whether we need a single "-rpath" flag with a separated argument.
24307 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24308
24309 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24310 # DIR into the resulting binary.
24311 hardcode_direct=$hardcode_direct
24312
24313 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24314 # DIR into the resulting binary and the resulting library dependency is
24315 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
24316 # library is relocated.
24317 hardcode_direct_absolute=$hardcode_direct_absolute
24318
24319 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24320 # into the resulting binary.
24321 hardcode_minus_L=$hardcode_minus_L
24322
24323 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24324 # into the resulting binary.
24325 hardcode_shlibpath_var=$hardcode_shlibpath_var
24326
24327 # Set to "yes" if building a shared library automatically hardcodes DIR
24328 # into the library and all subsequent libraries and executables linked
24329 # against it.
24330 hardcode_automatic=$hardcode_automatic
24331
24332 # Set to yes if linker adds runtime paths of dependent libraries
24333 # to runtime path list.
24334 inherit_rpath=$inherit_rpath
24335
24336 # Whether libtool must link a program against all its dependency libraries.
24337 link_all_deplibs=$link_all_deplibs
24338
24339 # Set to "yes" if exported symbols are required.
24340 always_export_symbols=$always_export_symbols
24341
24342 # The commands to list exported symbols.
24343 export_symbols_cmds=$lt_export_symbols_cmds
24344
24345 # Symbols that should not be listed in the preloaded symbols.
24346 exclude_expsyms=$lt_exclude_expsyms
24347
24348 # Symbols that must always be exported.
24349 include_expsyms=$lt_include_expsyms
24350
24351 # Commands necessary for linking programs (against libraries) with templates.
24352 prelink_cmds=$lt_prelink_cmds
24353
24354 # Commands necessary for finishing linking programs.
24355 postlink_cmds=$lt_postlink_cmds
24356
24357 # Specify filename containing input files.
24358 file_list_spec=$lt_file_list_spec
24359
24360 # How to hardcode a shared library path into an executable.
24361 hardcode_action=$hardcode_action
24362
24363 # ### END LIBTOOL CONFIG
24364
24365 _LT_EOF
24366
24367 cat <<'_LT_EOF' >> "$cfgfile"
24368
24369 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24370
24371 # func_munge_path_list VARIABLE PATH
24372 # -----------------------------------
24373 # VARIABLE is name of variable containing _space_ separated list of
24374 # directories to be munged by the contents of PATH, which is string
24375 # having a format:
24376 # "DIR[:DIR]:"
24377 # string "DIR[ DIR]" will be prepended to VARIABLE
24378 # ":DIR[:DIR]"
24379 # string "DIR[ DIR]" will be appended to VARIABLE
24380 # "DIRP[:DIRP]::[DIRA:]DIRA"
24381 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24382 # "DIRA[ DIRA]" will be appended to VARIABLE
24383 # "DIR[:DIR]"
24384 # VARIABLE will be replaced by "DIR[ DIR]"
24385 func_munge_path_list ()
24386 {
24387 case x$2 in
24388 x)
24389 ;;
24390 *:)
24391 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24392 ;;
24393 x:*)
24394 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24395 ;;
24396 *::*)
24397 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24398 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24399 ;;
24400 *)
24401 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24402 ;;
24403 esac
24404 }
24405
24406
24407 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24408 func_cc_basename ()
24409 {
24410 for cc_temp in $*""; do
24411 case $cc_temp in
24412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24414 \-*) ;;
24415 *) break;;
24416 esac
24417 done
24418 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24419 }
24420
24421
24422 # ### END FUNCTIONS SHARED WITH CONFIGURE
24423
24424 _LT_EOF
24425
24426 case $host_os in
24427 aix3*)
24428 cat <<\_LT_EOF >> "$cfgfile"
24429 # AIX sometimes has problems with the GCC collect2 program. For some
24430 # reason, if we set the COLLECT_NAMES environment variable, the problems
24431 # vanish in a puff of smoke.
24432 if test set != "${COLLECT_NAMES+set}"; then
24433 COLLECT_NAMES=
24434 export COLLECT_NAMES
24435 fi
24436 _LT_EOF
24437 ;;
24438 esac
24439
24440
24441
24442 ltmain=$ac_aux_dir/ltmain.sh
24443
24444
24445 # We use sed instead of cat because bash on DJGPP gets confused if
24446 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24447 # text mode, it properly converts lines to CR/LF. This bash problem
24448 # is reportedly fixed, but why not run on old versions too?
24449 $SED '$q' "$ltmain" >> "$cfgfile" \
24450 || (rm -f "$cfgfile"; exit 1)
24451
24452 mv -f "$cfgfile" "$ofile" ||
24453 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24454 chmod +x "$ofile"
24455
24456 ;;
24457 "xdvi":F) chmod +x xdvi ;;
24458
24459 esac
24460 done # for ac_tag
24461
24462
24463 as_fn_exit 0
24464 _ACEOF
24465 ac_clean_files=$ac_clean_files_save
24466
24467 test $ac_write_fail = 0 ||
24468 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24469
24470 if test "x$cross_compiling" = xyes
24471 then :
24472 if test "x$cache_file" != x/dev/null
24473 then :
24474 cache_file=config.cache
24475 fi
24476 ac_configure_args="$ac_configure_args --host='$kpse_build_alias' \
24477 CC='$BUILDCC' CFLAGS='$BUILDCFLAGS' \
24478 CPPFLAGS='$BUILDCPPFLAGS' LDFLAGS='$BUILDLDFLAGS'"
24479 fi
24480
24481 # configure is writing to config.log, and then calls config.status.
24482 # config.status does its own redirection, appending to config.log.
24483 # Unfortunately, on DOS this fails, as config.log is still kept open
24484 # by configure, so config.status won't be able to write to it; its
24485 # output is simply discarded. So we exec the FD to /dev/null,
24486 # effectively closing config.log, so it can be properly (re)opened and
24487 # appended to by config.status. When coming back to configure, we
24488 # need to make the FD available again.
24489 if test "$no_create" != yes; then
24490 ac_cs_success=:
24491 ac_config_status_args=
24492 test "$silent" = yes &&
24493 ac_config_status_args="$ac_config_status_args --quiet"
24494 exec 5>/dev/null
24495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24496 exec 5>>config.log
24497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24498 # would make configure fail if this is the last instruction.
24499 $ac_cs_success || as_fn_exit 1
24500 fi
24501
24502 #
24503 # CONFIG_SUBDIRS section.
24504 #
24505 if test "$no_recursion" != yes; then
24506
24507 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24508 # so they do not pile up.
24509 ac_sub_configure_args=
24510 ac_prev=
24511 eval "set x $ac_configure_args"
24512 shift
24513 for ac_arg
24514 do
24515 if test -n "$ac_prev"; then
24516 ac_prev=
24517 continue
24518 fi
24519 case $ac_arg in
24520 -cache-file | --cache-file | --cache-fil | --cache-fi \
24521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24522 ac_prev=cache_file ;;
24523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24525 | --c=*)
24526 ;;
24527 --config-cache | -C)
24528 ;;
24529 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24530 ac_prev=srcdir ;;
24531 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24532 ;;
24533 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24534 ac_prev=prefix ;;
24535 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24536 ;;
24537 --disable-option-checking)
24538 ;;
24539 *)
24540 case $ac_arg in
24541 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24542 esac
24543 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24544 esac
24545 done
24546
24547 # Always prepend --prefix to ensure using the same prefix
24548 # in subdir configurations.
24549 ac_arg="--prefix=$prefix"
24550 case $ac_arg in
24551 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24552 esac
24553 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24554
24555 # Pass --silent
24556 if test "$silent" = yes; then
24557 ac_sub_configure_args="--silent $ac_sub_configure_args"
24558 fi
24559
24560 # Always prepend --disable-option-checking to silence warnings, since
24561 # different subdirs can have different --enable and --with options.
24562 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24563
24564 ac_popdir=`pwd`
24565 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24566
24567 # Do not complain, so a configure script can configure whichever
24568 # parts of a large source tree are present.
24569 test -d "$srcdir/$ac_dir" || continue
24570
24571 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24573 printf "%s\n" "$ac_msg" >&6
24574 as_dir="$ac_dir"; as_fn_mkdir_p
24575 ac_builddir=.
24576
24577 case "$ac_dir" in
24578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24579 *)
24580 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24581 # A ".." for each directory in $ac_dir_suffix.
24582 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24583 case $ac_top_builddir_sub in
24584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24586 esac ;;
24587 esac
24588 ac_abs_top_builddir=$ac_pwd
24589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24590 # for backward compatibility:
24591 ac_top_builddir=$ac_top_build_prefix
24592
24593 case $srcdir in
24594 .) # We are building in place.
24595 ac_srcdir=.
24596 ac_top_srcdir=$ac_top_builddir_sub
24597 ac_abs_top_srcdir=$ac_pwd ;;
24598 [\\/]* | ?:[\\/]* ) # Absolute name.
24599 ac_srcdir=$srcdir$ac_dir_suffix;
24600 ac_top_srcdir=$srcdir
24601 ac_abs_top_srcdir=$srcdir ;;
24602 *) # Relative name.
24603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24604 ac_top_srcdir=$ac_top_build_prefix$srcdir
24605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24606 esac
24607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24608
24609
24610 cd "$ac_dir"
24611
24612 # Check for configure.gnu first; this name is used for a wrapper for
24613 # Metaconfig's "Configure" on case-insensitive file systems.
24614 if test -f "$ac_srcdir/configure.gnu"; then
24615 ac_sub_configure=$ac_srcdir/configure.gnu
24616 elif test -f "$ac_srcdir/configure"; then
24617 ac_sub_configure=$ac_srcdir/configure
24618 else
24619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24620 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24621 ac_sub_configure=
24622 fi
24623
24624 # The recursion is here.
24625 if test -n "$ac_sub_configure"; then
24626 # Make the cache file name correct relative to the subdirectory.
24627 case $cache_file in
24628 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24629 *) # Relative name.
24630 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24631 esac
24632
24633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24634 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24635 # The eval makes quoting arguments work.
24636 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24637 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24638 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24639 fi
24640
24641 cd "$ac_popdir"
24642 done
24643 fi
24644 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24646 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24647 fi
24648
24649