Debian Codegraph @

compat/libjpeg/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libjpeg 10.0.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='libjpeg'
613 PACKAGE_TARNAME='libjpeg'
614 PACKAGE_VERSION='10.0.0'
615 PACKAGE_STRING='libjpeg 10.0.0'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 JPEG_LIB_VERSION_MINOR
656 JPEG_LIB_VERSION_MAJOR
657 JPEG_LIB_VERSION
658 MEMORYMGR
659 LT_SYS_LIBRARY_PATH
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 MANIFEST_TOOL
666 RANLIB
667 FILECMD
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 SED
674 LIBTOOL
675 OBJDUMP
676 DLLTOOL
677 AS
678 HAVE_LD_VERSION_SCRIPT_FALSE
679 HAVE_LD_VERSION_SCRIPT_TRUE
680 ac_ct_AR
681 AR
682 EGREP
683 GREP
684 LN_S
685 CPP
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__include
694 DEPDIR
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 MAINT
703 MAINTAINER_MODE_FALSE
704 MAINTAINER_MODE_TRUE
705 am__xargs_n
706 am__rm_f_notfound
707 AM_BACKSLASH
708 AM_DEFAULT_VERBOSITY
709 AM_DEFAULT_V
710 AM_V
711 CSCOPE
712 ETAGS
713 CTAGS
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 runstatedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL
788 am__quote'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_maintainer_mode
794 enable_dependency_tracking
795 enable_ld_version_script
796 enable_shared
797 enable_static
798 enable_pic
799 with_pic
800 enable_fast_install
801 enable_aix_soname
802 with_aix_soname
803 with_gnu_ld
804 with_sysroot
805 enable_libtool_lock
806 enable_maxmem
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 LT_SYS_LIBRARY_PATH'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 runstatedir='${localstatedir}/run'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: '$ac_useropt'"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: '$ac_useropt'"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -runstatedir | --runstatedir | --runstatedi | --runstated \
1108 | --runstate | --runstat | --runsta | --runst | --runs \
1109 | --run | --ru | --r)
1110 ac_prev=runstatedir ;;
1111 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1112 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1113 | --run=* | --ru=* | --r=*)
1114 runstatedir=$ac_optarg ;;
1115
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1132
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1142
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1149
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1160
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: '$ac_useropt'"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1176
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: '$ac_useropt'"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1192
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1196
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1203
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1210
1211 -*) as_fn_error $? "unrecognized option: '$ac_option'
1212 Try '$0 --help' for more information"
1213 ;;
1214
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1224
1225 *)
1226 # FIXME: should be removed in autoconf 3.0.
1227 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 ;;
1232
1233 esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir runstatedir
1254 do
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: '$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1283 fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 printf "%s\n" X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1330 fi
1331 else
1332 ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1358
1359 #
1360 # Report the --help message.
1361 #
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 'configure' configures libjpeg 10.0.0 to adapt to many kinds of systems.
1367
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1372
1373 Defaults for the options are specified in brackets.
1374
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print 'checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for '--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or '..']
1385
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1391
1392 By default, 'make install' will install all the files in
1393 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than '$ac_default_prefix' using '--prefix',
1395 for instance '--prefix=\$HOME'.
1396
1397 For better control, use the options below.
1398
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1420 _ACEOF
1421
1422 cat <<\_ACEOF
1423
1424 Program names:
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433 _ACEOF
1434 fi
1435
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of libjpeg 10.0.0:";;
1439 esac
1440 cat <<\_ACEOF
1441
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-silent-rules less verbose build output (undo: "make V=1")
1447 --disable-silent-rules verbose build output (undo: "make V=0")
1448 --enable-maintainer-mode
1449 enable make rules and dependencies not useful (and
1450 sometimes confusing) to the casual installer
1451 --enable-dependency-tracking
1452 do not reject slow dependency extractors
1453 --disable-dependency-tracking
1454 speeds up one-time build
1455 --enable-ld-version-script
1456 enable linker version script (default is enabled
1457 when possible)
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
1464 --enable-aix-soname=aix|svr4|both
1465 shared library versioning (aka "SONAME") variant to
1466 provide on AIX, [default=aix].
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --enable-maxmem=N enable use of temp files, set max mem usage to N MB
1469
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1474 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1475 compiler's sysroot if not specified).
1476
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CPP C preprocessor
1486 LT_SYS_LIBRARY_PATH
1487 User-defined run-time library search path.
1488
1489 Use these variables to override the choices made by 'configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to the package provider.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for configure.gnu first; this name is used for a wrapper for
1539 # Metaconfig's "Configure" on case-insensitive file systems.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 libjpeg configure 10.0.0
1557 generated by GNU Autoconf 2.72
1558
1559 Copyright (C) 2023 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest.beam
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 printf "%s\n" "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext
1596 then :
1597 ac_retval=0
1598 else case e in #(
1599 e) printf "%s\n" "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1 ;;
1603 esac
1604 fi
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_compile
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 printf "%s\n" "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } > conftest.i && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }
1635 then :
1636 ac_retval=0
1637 else case e in #(
1638 e) printf "%s\n" "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1 ;;
1642 esac
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_cpp
1648
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_link ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 printf "%s\n" "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }
1678 then :
1679 ac_retval=0
1680 else case e in #(
1681 e) printf "%s\n" "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1 ;;
1685 esac
1686 fi
1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689 # interfere with the next link command; also delete a directory that is
1690 # left behind by Apple's compiler. We do this before executing the actions.
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_link
1696
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 printf %s "checking for $2... " >&6; }
1706 if eval test \${$3+y}
1707 then :
1708 printf %s "(cached) " >&6
1709 else case e in #(
1710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1712 $4
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"
1716 then :
1717 eval "$3=yes"
1718 else case e in #(
1719 e) eval "$3=no" ;;
1720 esac
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1723 esac
1724 fi
1725 eval ac_res=\$$3
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 printf "%s\n" "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1735 # executables *can* be run.
1736 ac_fn_c_try_run ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 printf "%s\n" "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 printf "%s\n" "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }
1760 then :
1761 ac_retval=0
1762 else case e in #(
1763 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1764 printf "%s\n" "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=$ac_status ;;
1768 esac
1769 fi
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_run
1775
1776 # ac_fn_c_check_func LINENO FUNC VAR
1777 # ----------------------------------
1778 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1779 ac_fn_c_check_func ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 printf %s "checking for $2... " >&6; }
1784 if eval test \${$3+y}
1785 then :
1786 printf %s "(cached) " >&6
1787 else case e in #(
1788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1792 #define $2 innocuous_$2
1793
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $2 (void); below. */
1796
1797 #include <limits.h>
1798 #undef $2
1799
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 (void);
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1813
1814 int
1815 main (void)
1816 {
1817 return $2 ();
1818 ;
1819 return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"
1823 then :
1824 eval "$3=yes"
1825 else case e in #(
1826 e) eval "$3=no" ;;
1827 esac
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1830 conftest$ac_exeext conftest.$ac_ext ;;
1831 esac
1832 fi
1833 eval ac_res=\$$3
1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 printf "%s\n" "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_func
1839 ac_configure_args_raw=
1840 for ac_arg
1841 do
1842 case $ac_arg in
1843 *\'*)
1844 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1845 esac
1846 as_fn_append ac_configure_args_raw " '$ac_arg'"
1847 done
1848
1849 case $ac_configure_args_raw in
1850 *$as_nl*)
1851 ac_safe_unquote= ;;
1852 *)
1853 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1854 ac_unsafe_a="$ac_unsafe_z#~"
1855 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1856 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1857 esac
1858
1859 cat >config.log <<_ACEOF
1860 This file contains any messages produced by compilers while
1861 running configure, to aid debugging if configure makes a mistake.
1862
1863 It was created by libjpeg $as_me 10.0.0, which was
1864 generated by GNU Autoconf 2.72. Invocation command line was
1865
1866 $ $0$ac_configure_args_raw
1867
1868 _ACEOF
1869 exec 5>>config.log
1870 {
1871 cat <<_ASUNAME
1872 ## --------- ##
1873 ## Platform. ##
1874 ## --------- ##
1875
1876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881
1882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1884
1885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1892
1893 _ASUNAME
1894
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898 IFS=$as_save_IFS
1899 case $as_dir in #(((
1900 '') as_dir=./ ;;
1901 */) ;;
1902 *) as_dir=$as_dir/ ;;
1903 esac
1904 printf "%s\n" "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1907
1908 } >&5
1909
1910 cat >&5 <<_ACEOF
1911
1912
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1916
1917 _ACEOF
1918
1919
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1930 do
1931 for ac_arg
1932 do
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 2)
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1956 ;;
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1959 fi
1960 as_fn_append ac_configure_args " '$ac_arg'"
1961 ;;
1962 esac
1963 done
1964 done
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1967
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Sanitize IFS.
1975 IFS=" "" $as_nl"
1976 # Save into config.log some information that might help in debugging.
1977 {
1978 echo
1979
1980 printf "%s\n" "## ---------------- ##
1981 ## Cache variables. ##
1982 ## ---------------- ##"
1983 echo
1984 # The following way of writing the cache mishandles newlines in values,
1985 (
1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in #(
1989 *${as_nl}*)
1990 case $ac_var in #(
1991 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1992 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993 esac
1994 case $ac_var in #(
1995 _ | IFS | as_nl) ;; #(
1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997 *) { eval $ac_var=; unset $ac_var;} ;;
1998 esac ;;
1999 esac
2000 done
2001 (set) 2>&1 |
2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003 *${as_nl}ac_space=\ *)
2004 sed -n \
2005 "s/'\''/'\''\\\\'\'''\''/g;
2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007 ;; #(
2008 *)
2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 ;;
2011 esac |
2012 sort
2013 )
2014 echo
2015
2016 printf "%s\n" "## ----------------- ##
2017 ## Output variables. ##
2018 ## ----------------- ##"
2019 echo
2020 for ac_var in $ac_subst_vars
2021 do
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 printf "%s\n" "$ac_var='\''$ac_val'\''"
2027 done | sort
2028 echo
2029
2030 if test -n "$ac_subst_files"; then
2031 printf "%s\n" "## ------------------- ##
2032 ## File substitutions. ##
2033 ## ------------------- ##"
2034 echo
2035 for ac_var in $ac_subst_files
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 printf "%s\n" "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2044 fi
2045
2046 if test -s confdefs.h; then
2047 printf "%s\n" "## ----------- ##
2048 ## confdefs.h. ##
2049 ## ----------- ##"
2050 echo
2051 cat confdefs.h
2052 echo
2053 fi
2054 test "$ac_signal" != 0 &&
2055 printf "%s\n" "$as_me: caught signal $ac_signal"
2056 printf "%s\n" "$as_me: exit $exit_status"
2057 } >&5
2058 rm -f core *.core core.conftest.* &&
2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2060 exit $exit_status
2061 ' 0
2062 for ac_signal in 1 2 13 15; do
2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2064 done
2065 ac_signal=0
2066
2067 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2068 rm -f -r conftest* confdefs.h
2069
2070 printf "%s\n" "/* confdefs.h */" > confdefs.h
2071
2072 # Predefined preprocessor variables.
2073
2074 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2075
2076 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2077
2078 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2079
2080 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2081
2082 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2083
2084 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2085
2086
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2089 if test -n "$CONFIG_SITE"; then
2090 ac_site_files="$CONFIG_SITE"
2091 elif test "x$prefix" != xNONE; then
2092 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2093 else
2094 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2095 fi
2096
2097 for ac_site_file in $ac_site_files
2098 do
2099 case $ac_site_file in #(
2100 */*) :
2101 ;; #(
2102 *) :
2103 ac_site_file=./$ac_site_file ;;
2104 esac
2105 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2109 . "$ac_site_file" \
2110 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2111 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See 'config.log' for more details" "$LINENO" 5; }
2114 fi
2115 done
2116
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special files
2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2123 case $cache_file in
2124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125 *) . "./$cache_file";;
2126 esac
2127 fi
2128 else
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2131 >$cache_file
2132 fi
2133
2134 # Test code for whether the C compiler supports C89 (global declarations)
2135 ac_c_conftest_c89_globals='
2136 /* Does the compiler advertise C89 conformance?
2137 Do not test the value of __STDC__, because some compilers set it to 0
2138 while being otherwise adequately conformant. */
2139 #if !defined __STDC__
2140 # error "Compiler does not advertise C89 conformance"
2141 #endif
2142
2143 #include <stddef.h>
2144 #include <stdarg.h>
2145 struct stat;
2146 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2147 struct buf { int x; };
2148 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2149 static char *e (char **p, int i)
2150 {
2151 return p[i];
2152 }
2153 static char *f (char * (*g) (char **, int), char **p, ...)
2154 {
2155 char *s;
2156 va_list v;
2157 va_start (v,p);
2158 s = g (p, va_arg (v,int));
2159 va_end (v);
2160 return s;
2161 }
2162
2163 /* C89 style stringification. */
2164 #define noexpand_stringify(a) #a
2165 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2166
2167 /* C89 style token pasting. Exercises some of the corner cases that
2168 e.g. old MSVC gets wrong, but not very hard. */
2169 #define noexpand_concat(a,b) a##b
2170 #define expand_concat(a,b) noexpand_concat(a,b)
2171 extern int vA;
2172 extern int vbee;
2173 #define aye A
2174 #define bee B
2175 int *pvA = &expand_concat(v,aye);
2176 int *pvbee = &noexpand_concat(v,bee);
2177
2178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2179 function prototypes and stuff, but not \xHH hex character constants.
2180 These do not provoke an error unfortunately, instead are silently treated
2181 as an "x". The following induces an error, until -std is added to get
2182 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2183 array size at least. It is necessary to write \x00 == 0 to get something
2184 that is true only with -std. */
2185 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2186
2187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2188 inside strings and character constants. */
2189 #define FOO(x) '\''x'\''
2190 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2191
2192 int test (int i, double x);
2193 struct s1 {int (*f) (int a);};
2194 struct s2 {int (*f) (double a);};
2195 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2196 int, int);'
2197
2198 # Test code for whether the C compiler supports C89 (body of main).
2199 ac_c_conftest_c89_main='
2200 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2201 '
2202
2203 # Test code for whether the C compiler supports C99 (global declarations)
2204 ac_c_conftest_c99_globals='
2205 /* Does the compiler advertise C99 conformance? */
2206 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2207 # error "Compiler does not advertise C99 conformance"
2208 #endif
2209
2210 // See if C++-style comments work.
2211
2212 #include <stdbool.h>
2213 extern int puts (const char *);
2214 extern int printf (const char *, ...);
2215 extern int dprintf (int, const char *, ...);
2216 extern void *malloc (size_t);
2217 extern void free (void *);
2218
2219 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2220 // dprintf is used instead of fprintf to avoid needing to declare
2221 // FILE and stderr.
2222 #define debug(...) dprintf (2, __VA_ARGS__)
2223 #define showlist(...) puts (#__VA_ARGS__)
2224 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2225 static void
2226 test_varargs_macros (void)
2227 {
2228 int x = 1234;
2229 int y = 5678;
2230 debug ("Flag");
2231 debug ("X = %d\n", x);
2232 showlist (The first, second, and third items.);
2233 report (x>y, "x is %d but y is %d", x, y);
2234 }
2235
2236 // Check long long types.
2237 #define BIG64 18446744073709551615ull
2238 #define BIG32 4294967295ul
2239 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2240 #if !BIG_OK
2241 #error "your preprocessor is broken"
2242 #endif
2243 #if BIG_OK
2244 #else
2245 #error "your preprocessor is broken"
2246 #endif
2247 static long long int bignum = -9223372036854775807LL;
2248 static unsigned long long int ubignum = BIG64;
2249
2250 struct incomplete_array
2251 {
2252 int datasize;
2253 double data[];
2254 };
2255
2256 struct named_init {
2257 int number;
2258 const wchar_t *name;
2259 double average;
2260 };
2261
2262 typedef const char *ccp;
2263
2264 static inline int
2265 test_restrict (ccp restrict text)
2266 {
2267 // Iterate through items via the restricted pointer.
2268 // Also check for declarations in for loops.
2269 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2270 continue;
2271 return 0;
2272 }
2273
2274 // Check varargs and va_copy.
2275 static bool
2276 test_varargs (const char *format, ...)
2277 {
2278 va_list args;
2279 va_start (args, format);
2280 va_list args_copy;
2281 va_copy (args_copy, args);
2282
2283 const char *str = "";
2284 int number = 0;
2285 float fnumber = 0;
2286
2287 while (*format)
2288 {
2289 switch (*format++)
2290 {
2291 case '\''s'\'': // string
2292 str = va_arg (args_copy, const char *);
2293 break;
2294 case '\''d'\'': // int
2295 number = va_arg (args_copy, int);
2296 break;
2297 case '\''f'\'': // float
2298 fnumber = va_arg (args_copy, double);
2299 break;
2300 default:
2301 break;
2302 }
2303 }
2304 va_end (args_copy);
2305 va_end (args);
2306
2307 return *str && number && fnumber;
2308 }
2309 '
2310
2311 # Test code for whether the C compiler supports C99 (body of main).
2312 ac_c_conftest_c99_main='
2313 // Check bool.
2314 _Bool success = false;
2315 success |= (argc != 0);
2316
2317 // Check restrict.
2318 if (test_restrict ("String literal") == 0)
2319 success = true;
2320 char *restrict newvar = "Another string";
2321
2322 // Check varargs.
2323 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2324 test_varargs_macros ();
2325
2326 // Check flexible array members.
2327 struct incomplete_array *ia =
2328 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2329 ia->datasize = 10;
2330 for (int i = 0; i < ia->datasize; ++i)
2331 ia->data[i] = i * 1.234;
2332 // Work around memory leak warnings.
2333 free (ia);
2334
2335 // Check named initializers.
2336 struct named_init ni = {
2337 .number = 34,
2338 .name = L"Test wide string",
2339 .average = 543.34343,
2340 };
2341
2342 ni.number = 58;
2343
2344 int dynamic_array[ni.number];
2345 dynamic_array[0] = argv[0][0];
2346 dynamic_array[ni.number - 1] = 543;
2347
2348 // work around unused variable warnings
2349 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2350 || dynamic_array[ni.number - 1] != 543);
2351 '
2352
2353 # Test code for whether the C compiler supports C11 (global declarations)
2354 ac_c_conftest_c11_globals='
2355 /* Does the compiler advertise C11 conformance? */
2356 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2357 # error "Compiler does not advertise C11 conformance"
2358 #endif
2359
2360 // Check _Alignas.
2361 char _Alignas (double) aligned_as_double;
2362 char _Alignas (0) no_special_alignment;
2363 extern char aligned_as_int;
2364 char _Alignas (0) _Alignas (int) aligned_as_int;
2365
2366 // Check _Alignof.
2367 enum
2368 {
2369 int_alignment = _Alignof (int),
2370 int_array_alignment = _Alignof (int[100]),
2371 char_alignment = _Alignof (char)
2372 };
2373 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2374
2375 // Check _Noreturn.
2376 int _Noreturn does_not_return (void) { for (;;) continue; }
2377
2378 // Check _Static_assert.
2379 struct test_static_assert
2380 {
2381 int x;
2382 _Static_assert (sizeof (int) <= sizeof (long int),
2383 "_Static_assert does not work in struct");
2384 long int y;
2385 };
2386
2387 // Check UTF-8 literals.
2388 #define u8 syntax error!
2389 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2390
2391 // Check duplicate typedefs.
2392 typedef long *long_ptr;
2393 typedef long int *long_ptr;
2394 typedef long_ptr long_ptr;
2395
2396 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2397 struct anonymous
2398 {
2399 union {
2400 struct { int i; int j; };
2401 struct { int k; long int l; } w;
2402 };
2403 int m;
2404 } v1;
2405 '
2406
2407 # Test code for whether the C compiler supports C11 (body of main).
2408 ac_c_conftest_c11_main='
2409 _Static_assert ((offsetof (struct anonymous, i)
2410 == offsetof (struct anonymous, w.k)),
2411 "Anonymous union alignment botch");
2412 v1.i = 2;
2413 v1.w.k = 5;
2414 ok |= v1.i != 5;
2415 '
2416
2417 # Test code for whether the C compiler supports C11 (complete).
2418 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2419 ${ac_c_conftest_c99_globals}
2420 ${ac_c_conftest_c11_globals}
2421
2422 int
2423 main (int argc, char **argv)
2424 {
2425 int ok = 0;
2426 ${ac_c_conftest_c89_main}
2427 ${ac_c_conftest_c99_main}
2428 ${ac_c_conftest_c11_main}
2429 return ok;
2430 }
2431 "
2432
2433 # Test code for whether the C compiler supports C99 (complete).
2434 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2435 ${ac_c_conftest_c99_globals}
2436
2437 int
2438 main (int argc, char **argv)
2439 {
2440 int ok = 0;
2441 ${ac_c_conftest_c89_main}
2442 ${ac_c_conftest_c99_main}
2443 return ok;
2444 }
2445 "
2446
2447 # Test code for whether the C compiler supports C89 (complete).
2448 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2449
2450 int
2451 main (int argc, char **argv)
2452 {
2453 int ok = 0;
2454 ${ac_c_conftest_c89_main}
2455 return ok;
2456 }
2457 "
2458
2459 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2460 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2461 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2462 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2463 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2464 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2465 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2466 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2467 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2468
2469 # Auxiliary files required by this configure script.
2470 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
2471
2472 # Locations in which to look for auxiliary files.
2473 ac_aux_dir_candidates="${srcdir}/."
2474
2475 # Search for a directory containing all of the required auxiliary files,
2476 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2477 # If we don't find one directory that contains all the files we need,
2478 # we report the set of missing files from the *first* directory in
2479 # $ac_aux_dir_candidates and give up.
2480 ac_missing_aux_files=""
2481 ac_first_candidate=:
2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 as_found=false
2485 for as_dir in $ac_aux_dir_candidates
2486 do
2487 IFS=$as_save_IFS
2488 case $as_dir in #(((
2489 '') as_dir=./ ;;
2490 */) ;;
2491 *) as_dir=$as_dir/ ;;
2492 esac
2493 as_found=:
2494
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2496 ac_aux_dir_found=yes
2497 ac_install_sh=
2498 for ac_aux in $ac_aux_files
2499 do
2500 # As a special case, if "install-sh" is required, that requirement
2501 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2502 # and $ac_install_sh is set appropriately for whichever one is found.
2503 if test x"$ac_aux" = x"install-sh"
2504 then
2505 if test -f "${as_dir}install-sh"; then
2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2507 ac_install_sh="${as_dir}install-sh -c"
2508 elif test -f "${as_dir}install.sh"; then
2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2510 ac_install_sh="${as_dir}install.sh -c"
2511 elif test -f "${as_dir}shtool"; then
2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2513 ac_install_sh="${as_dir}shtool install -c"
2514 else
2515 ac_aux_dir_found=no
2516 if $ac_first_candidate; then
2517 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2518 else
2519 break
2520 fi
2521 fi
2522 else
2523 if test -f "${as_dir}${ac_aux}"; then
2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2525 else
2526 ac_aux_dir_found=no
2527 if $ac_first_candidate; then
2528 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2529 else
2530 break
2531 fi
2532 fi
2533 fi
2534 done
2535 if test "$ac_aux_dir_found" = yes; then
2536 ac_aux_dir="$as_dir"
2537 break
2538 fi
2539 ac_first_candidate=false
2540
2541 as_found=false
2542 done
2543 IFS=$as_save_IFS
2544 if $as_found
2545 then :
2546
2547 else case e in #(
2548 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2549 esac
2550 fi
2551
2552
2553 # These three variables are undocumented and unsupported,
2554 # and are intended to be withdrawn in a future Autoconf release.
2555 # They can cause serious problems if a builder's source tree is in a directory
2556 # whose full name contains unusual characters.
2557 if test -f "${ac_aux_dir}config.guess"; then
2558 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2559 fi
2560 if test -f "${ac_aux_dir}config.sub"; then
2561 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2562 fi
2563 if test -f "$ac_aux_dir/configure"; then
2564 ac_configure="$SHELL ${ac_aux_dir}configure"
2565 fi
2566
2567 # Check that the precious variables saved in the cache have kept the same
2568 # value.
2569 ac_cache_corrupted=false
2570 for ac_var in $ac_precious_vars; do
2571 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572 eval ac_new_set=\$ac_env_${ac_var}_set
2573 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574 eval ac_new_val=\$ac_env_${ac_var}_value
2575 case $ac_old_set,$ac_new_set in
2576 set,)
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2578 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,set)
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2582 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2583 ac_cache_corrupted=: ;;
2584 ,);;
2585 *)
2586 if test "x$ac_old_val" != "x$ac_new_val"; then
2587 # differences in whitespace do not lead to failure.
2588 ac_old_val_w=`echo x $ac_old_val`
2589 ac_new_val_w=`echo x $ac_new_val`
2590 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2592 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2593 ac_cache_corrupted=:
2594 else
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2596 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2597 eval $ac_var=\$ac_old_val
2598 fi
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2600 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2602 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2603 fi;;
2604 esac
2605 # Pass precious variables to config.status.
2606 if test "$ac_new_set" = set; then
2607 case $ac_new_val in
2608 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609 *) ac_arg=$ac_var=$ac_new_val ;;
2610 esac
2611 case " $ac_configure_args " in
2612 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2613 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614 esac
2615 fi
2616 done
2617 if $ac_cache_corrupted; then
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2619 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2622 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2623 and start over" "$LINENO" 5
2624 fi
2625 ## -------------------- ##
2626 ## Main body of script. ##
2627 ## -------------------- ##
2628
2629 ac_ext=c
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634
2635
2636
2637 # Directory where autotools helper scripts lives.
2638
2639
2640 # Generate configuration headers.
2641 ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2642
2643
2644 # Hack: disable autoheader so that it doesn't overwrite our cfg template.
2645 AUTOHEADER="echo autoheader ignored"
2646
2647 # Check system type
2648
2649
2650
2651 # Make sure we can run config.sub.
2652 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2653 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2654
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2656 printf %s "checking build system type... " >&6; }
2657 if test ${ac_cv_build+y}
2658 then :
2659 printf %s "(cached) " >&6
2660 else case e in #(
2661 e) ac_build_alias=$build_alias
2662 test "x$ac_build_alias" = x &&
2663 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2664 test "x$ac_build_alias" = x &&
2665 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2666 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2667 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2668 ;;
2669 esac
2670 fi
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2672 printf "%s\n" "$ac_cv_build" >&6; }
2673 case $ac_cv_build in
2674 *-*-*) ;;
2675 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2676 esac
2677 build=$ac_cv_build
2678 ac_save_IFS=$IFS; IFS='-'
2679 set x $ac_cv_build
2680 shift
2681 build_cpu=$1
2682 build_vendor=$2
2683 shift; shift
2684 # Remember, the first character of IFS is used to create $*,
2685 # except with old shells:
2686 build_os=$*
2687 IFS=$ac_save_IFS
2688 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2689
2690
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2692 printf %s "checking host system type... " >&6; }
2693 if test ${ac_cv_host+y}
2694 then :
2695 printf %s "(cached) " >&6
2696 else case e in #(
2697 e) if test "x$host_alias" = x; then
2698 ac_cv_host=$ac_cv_build
2699 else
2700 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2701 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2702 fi
2703 ;;
2704 esac
2705 fi
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2707 printf "%s\n" "$ac_cv_host" >&6; }
2708 case $ac_cv_host in
2709 *-*-*) ;;
2710 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2711 esac
2712 host=$ac_cv_host
2713 ac_save_IFS=$IFS; IFS='-'
2714 set x $ac_cv_host
2715 shift
2716 host_cpu=$1
2717 host_vendor=$2
2718 shift; shift
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2721 host_os=$*
2722 IFS=$ac_save_IFS
2723 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2724
2725
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2727 printf %s "checking target system type... " >&6; }
2728 if test ${ac_cv_target+y}
2729 then :
2730 printf %s "(cached) " >&6
2731 else case e in #(
2732 e) if test "x$target_alias" = x; then
2733 ac_cv_target=$ac_cv_host
2734 else
2735 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2736 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2737 fi
2738 ;;
2739 esac
2740 fi
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2742 printf "%s\n" "$ac_cv_target" >&6; }
2743 case $ac_cv_target in
2744 *-*-*) ;;
2745 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2746 esac
2747 target=$ac_cv_target
2748 ac_save_IFS=$IFS; IFS='-'
2749 set x $ac_cv_target
2750 shift
2751 target_cpu=$1
2752 target_vendor=$2
2753 shift; shift
2754 # Remember, the first character of IFS is used to create $*,
2755 # except with old shells:
2756 target_os=$*
2757 IFS=$ac_save_IFS
2758 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2759
2760
2761 # The aliases save the names the user supplied, while $host etc.
2762 # will get canonicalized.
2763 test -n "$target_alias" &&
2764 test "$program_prefix$program_suffix$program_transform_name" = \
2765 NONENONEs,x,x, &&
2766 program_prefix=${target_alias}-
2767
2768 # Initialize Automake
2769 # Don't require all the GNU mandated files
2770 am__api_version='1.18'
2771
2772
2773 # Find a good install program. We prefer a C program (faster),
2774 # so one script is as good as another. But avoid the broken or
2775 # incompatible versions:
2776 # SysV /etc/install, /usr/sbin/install
2777 # SunOS /usr/etc/install
2778 # IRIX /sbin/install
2779 # AIX /bin/install
2780 # AmigaOS /C/install, which installs bootblocks on floppy discs
2781 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2782 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2783 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2784 # OS/2's system install, which has a completely different semantic
2785 # ./install, which can be erroneously created by make from ./install.sh.
2786 # Reject install programs that cannot install multiple files.
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2788 printf %s "checking for a BSD-compatible install... " >&6; }
2789 if test -z "$INSTALL"; then
2790 if test ${ac_cv_path_install+y}
2791 then :
2792 printf %s "(cached) " >&6
2793 else case e in #(
2794 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 case $as_dir in #(((
2799 '') as_dir=./ ;;
2800 */) ;;
2801 *) as_dir=$as_dir/ ;;
2802 esac
2803 # Account for fact that we put trailing slashes in our PATH walk.
2804 case $as_dir in #((
2805 ./ | /[cC]/* | \
2806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2808 /usr/ucb/* ) ;;
2809 *)
2810 # OSF1 and SCO ODT 3.0 have their own names for install.
2811 # Don't use installbsd from OSF since it installs stuff as root
2812 # by default.
2813 for ac_prog in ginstall scoinst install; do
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2816 if test $ac_prog = install &&
2817 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818 # AIX install. It has an incompatible calling convention.
2819 :
2820 elif test $ac_prog = install &&
2821 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2822 # program-specific install script used by HP pwplus--don't use.
2823 :
2824 else
2825 rm -rf conftest.one conftest.two conftest.dir
2826 echo one > conftest.one
2827 echo two > conftest.two
2828 mkdir conftest.dir
2829 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2830 test -s conftest.one && test -s conftest.two &&
2831 test -s conftest.dir/conftest.one &&
2832 test -s conftest.dir/conftest.two
2833 then
2834 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2835 break 3
2836 fi
2837 fi
2838 fi
2839 done
2840 done
2841 ;;
2842 esac
2843
2844 done
2845 IFS=$as_save_IFS
2846
2847 rm -rf conftest.one conftest.two conftest.dir
2848 ;;
2849 esac
2850 fi
2851 if test ${ac_cv_path_install+y}; then
2852 INSTALL=$ac_cv_path_install
2853 else
2854 # As a last resort, use the slow shell script. Don't cache a
2855 # value for INSTALL within a source directory, because that will
2856 # break other packages using the cache if that directory is
2857 # removed, or if the value is a relative name.
2858 INSTALL=$ac_install_sh
2859 fi
2860 fi
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2862 printf "%s\n" "$INSTALL" >&6; }
2863
2864 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2865 # It thinks the first close brace ends the variable substitution.
2866 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2867
2868 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2869
2870 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2871
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2873 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2874 if test ${am_cv_sleep_fractional_seconds+y}
2875 then :
2876 printf %s "(cached) " >&6
2877 else case e in #(
2878 e) if sleep 0.001 2>/dev/null
2879 then :
2880 am_cv_sleep_fractional_seconds=yes
2881 else case e in #(
2882 e) am_cv_sleep_fractional_seconds=no ;;
2883 esac
2884 fi
2885 ;;
2886 esac
2887 fi
2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2889 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2890
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2892 printf %s "checking filesystem timestamp resolution... " >&6; }
2893 if test ${am_cv_filesystem_timestamp_resolution+y}
2894 then :
2895 printf %s "(cached) " >&6
2896 else case e in #(
2897 e) # Default to the worst case.
2898 am_cv_filesystem_timestamp_resolution=2
2899
2900 # Only try to go finer than 1 sec if sleep can do it.
2901 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2902 # - 1 sec is not much of a win compared to 2 sec, and
2903 # - it takes 2 seconds to perform the test whether 1 sec works.
2904 #
2905 # Instead, just use the default 2s on platforms that have 1s resolution,
2906 # accept the extra 1s delay when using $sleep in the Automake tests, in
2907 # exchange for not incurring the 2s delay for running the test for all
2908 # packages.
2909 #
2910 am_try_resolutions=
2911 if test "$am_cv_sleep_fractional_seconds" = yes; then
2912 # Even a millisecond often causes a bunch of false positives,
2913 # so just try a hundredth of a second. The time saved between .001 and
2914 # .01 is not terribly consequential.
2915 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2916 fi
2917
2918 # In order to catch current-generation FAT out, we must *modify* files
2919 # that already exist; the *creation* timestamp is finer. Use names
2920 # that make ls -t sort them differently when they have equal
2921 # timestamps than when they have distinct timestamps, keeping
2922 # in mind that ls -t prints the *newest* file first.
2923 rm -f conftest.ts?
2924 : > conftest.ts1
2925 : > conftest.ts2
2926 : > conftest.ts3
2927
2928 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2929 # clobber the current shell's arguments. (Outer-level square brackets
2930 # are removed by m4; they're present so that m4 does not expand
2931 # <dollar><star>; be careful, easy to get confused.)
2932 if (
2933 set X `ls -t conftest.ts[12]` &&
2934 {
2935 test "$*" != "X conftest.ts1 conftest.ts2" ||
2936 test "$*" != "X conftest.ts2 conftest.ts1";
2937 }
2938 ); then :; else
2939 # If neither matched, then we have a broken ls. This can happen
2940 # if, for instance, CONFIG_SHELL is bash and it inherits a
2941 # broken ls alias from the environment. This has actually
2942 # happened. Such a system could not be considered "sane".
2943 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2945 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2946 as_fn_error $? "ls -t produces unexpected output.
2947 Make sure there is not a broken ls alias in your environment.
2948 See 'config.log' for more details" "$LINENO" 5; }
2949 fi
2950
2951 for am_try_res in $am_try_resolutions; do
2952 # Any one fine-grained sleep might happen to cross the boundary
2953 # between two values of a coarser actual resolution, but if we do
2954 # two fine-grained sleeps in a row, at least one of them will fall
2955 # entirely within a coarse interval.
2956 echo alpha > conftest.ts1
2957 sleep $am_try_res
2958 echo beta > conftest.ts2
2959 sleep $am_try_res
2960 echo gamma > conftest.ts3
2961
2962 # We assume that 'ls -t' will make use of high-resolution
2963 # timestamps if the operating system supports them at all.
2964 if (set X `ls -t conftest.ts?` &&
2965 test "$2" = conftest.ts3 &&
2966 test "$3" = conftest.ts2 &&
2967 test "$4" = conftest.ts1); then
2968 #
2969 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2970 # because we don't need to test make.
2971 make_ok=true
2972 if test $am_try_res != 1; then
2973 # But if we've succeeded so far with a subsecond resolution, we
2974 # have one more thing to check: make. It can happen that
2975 # everything else supports the subsecond mtimes, but make doesn't;
2976 # notably on macOS, which ships make 3.81 from 2006 (the last one
2977 # released under GPLv2). https://bugs.gnu.org/68808
2978 #
2979 # We test $MAKE if it is defined in the environment, else "make".
2980 # It might get overridden later, but our hope is that in practice
2981 # it does not matter: it is the system "make" which is (by far)
2982 # the most likely to be broken, whereas if the user overrides it,
2983 # probably they did so with a better, or at least not worse, make.
2984 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2985 #
2986 # Create a Makefile (real tab character here):
2987 rm -f conftest.mk
2988 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2989 echo ' touch conftest.ts2' >>conftest.mk
2990 #
2991 # Now, running
2992 # touch conftest.ts1; touch conftest.ts2; make
2993 # should touch ts1 because ts2 is newer. This could happen by luck,
2994 # but most often, it will fail if make's support is insufficient. So
2995 # test for several consecutive successes.
2996 #
2997 # (We reuse conftest.ts[12] because we still want to modify existing
2998 # files, not create new ones, per above.)
2999 n=0
3000 make=${MAKE-make}
3001 until test $n -eq 3; do
3002 echo one > conftest.ts1
3003 sleep $am_try_res
3004 echo two > conftest.ts2 # ts2 should now be newer than ts1
3005 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3006 make_ok=false
3007 break # out of $n loop
3008 fi
3009 n=`expr $n + 1`
3010 done
3011 fi
3012 #
3013 if $make_ok; then
3014 # Everything we know to check worked out, so call this resolution good.
3015 am_cv_filesystem_timestamp_resolution=$am_try_res
3016 break # out of $am_try_res loop
3017 fi
3018 # Otherwise, we'll go on to check the next resolution.
3019 fi
3020 done
3021 rm -f conftest.ts?
3022 # (end _am_filesystem_timestamp_resolution)
3023 ;;
3024 esac
3025 fi
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3027 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3028
3029 # This check should not be cached, as it may vary across builds of
3030 # different projects.
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3032 printf %s "checking whether build environment is sane... " >&6; }
3033 # Reject unsafe characters in $srcdir or the absolute working directory
3034 # name. Accept space and tab only in the latter.
3035 am_lf='
3036 '
3037 case `pwd` in
3038 *[\\\"\#\$\&\'\`$am_lf]*)
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 printf "%s\n" "no" >&6; }
3041 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3042 esac
3043 case $srcdir in
3044 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 printf "%s\n" "no" >&6; }
3047 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3048 esac
3049
3050 # Do 'set' in a subshell so we don't clobber the current shell's
3051 # arguments. Must try -L first in case configure is actually a
3052 # symlink; some systems play weird games with the mod time of symlinks
3053 # (eg FreeBSD returns the mod time of the symlink's containing
3054 # directory).
3055 am_build_env_is_sane=no
3056 am_has_slept=no
3057 rm -f conftest.file
3058 for am_try in 1 2; do
3059 echo "timestamp, slept: $am_has_slept" > conftest.file
3060 if (
3061 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3062 if test "$*" = "X"; then
3063 # -L didn't work.
3064 set X `ls -t "$srcdir/configure" conftest.file`
3065 fi
3066 test "$2" = conftest.file
3067 ); then
3068 am_build_env_is_sane=yes
3069 break
3070 fi
3071 # Just in case.
3072 sleep "$am_cv_filesystem_timestamp_resolution"
3073 am_has_slept=yes
3074 done
3075
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3077 printf "%s\n" "$am_build_env_is_sane" >&6; }
3078 if test "$am_build_env_is_sane" = no; then
3079 as_fn_error $? "newly created file is older than distributed files!
3080 Check your system clock" "$LINENO" 5
3081 fi
3082
3083 # If we didn't sleep, we still need to ensure time stamps of config.status and
3084 # generated files are strictly newer.
3085 am_sleep_pid=
3086 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3087 then :
3088
3089 else case e in #(
3090 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3091 am_sleep_pid=$!
3092 ;;
3093 esac
3094 fi
3095
3096 rm -f conftest.file
3097
3098 test "$program_prefix" != NONE &&
3099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3100 # Use a double $ so make ignores it.
3101 test "$program_suffix" != NONE &&
3102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3103 # Double any \ or $.
3104 # By default was 's,x,x', remove it if useless.
3105 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3106 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3107
3108
3109 # Expand $ac_aux_dir to an absolute path.
3110 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3111
3112
3113 if test x"${MISSING+set}" != xset; then
3114 MISSING="\${SHELL} '$am_aux_dir/missing'"
3115 fi
3116 # Use eval to expand $SHELL
3117 if eval "$MISSING --is-lightweight"; then
3118 am_missing_run="$MISSING "
3119 else
3120 am_missing_run=
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3122 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3123 fi
3124
3125 if test x"${install_sh+set}" != xset; then
3126 case $am_aux_dir in
3127 *\ * | *\ *)
3128 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3129 *)
3130 install_sh="\${SHELL} $am_aux_dir/install-sh"
3131 esac
3132 fi
3133
3134 # Installed binaries are usually stripped using 'strip' when the user
3135 # run "make install-strip". However 'strip' might not be the right
3136 # tool to use in cross-compilation environments, therefore Automake
3137 # will honor the 'STRIP' environment variable to overrule this program.
3138 if test "$cross_compiling" != no; then
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}strip; ac_word=$2
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 printf %s "checking for $ac_word... " >&6; }
3144 if test ${ac_cv_prog_STRIP+y}
3145 then :
3146 printf %s "(cached) " >&6
3147 else case e in #(
3148 e) if test -n "$STRIP"; then
3149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 case $as_dir in #(((
3156 '') as_dir=./ ;;
3157 */) ;;
3158 *) as_dir=$as_dir/ ;;
3159 esac
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3164 break 2
3165 fi
3166 done
3167 done
3168 IFS=$as_save_IFS
3169
3170 fi ;;
3171 esac
3172 fi
3173 STRIP=$ac_cv_prog_STRIP
3174 if test -n "$STRIP"; then
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3176 printf "%s\n" "$STRIP" >&6; }
3177 else
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 printf "%s\n" "no" >&6; }
3180 fi
3181
3182
3183 fi
3184 if test -z "$ac_cv_prog_STRIP"; then
3185 ac_ct_STRIP=$STRIP
3186 # Extract the first word of "strip", so it can be a program name with args.
3187 set dummy strip; ac_word=$2
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 printf %s "checking for $ac_word... " >&6; }
3190 if test ${ac_cv_prog_ac_ct_STRIP+y}
3191 then :
3192 printf %s "(cached) " >&6
3193 else case e in #(
3194 e) if test -n "$ac_ct_STRIP"; then
3195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 case $as_dir in #(((
3202 '') as_dir=./ ;;
3203 */) ;;
3204 *) as_dir=$as_dir/ ;;
3205 esac
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3208 ac_cv_prog_ac_ct_STRIP="strip"
3209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 fi ;;
3217 esac
3218 fi
3219 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3220 if test -n "$ac_ct_STRIP"; then
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3222 printf "%s\n" "$ac_ct_STRIP" >&6; }
3223 else
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 printf "%s\n" "no" >&6; }
3226 fi
3227
3228 if test "x$ac_ct_STRIP" = x; then
3229 STRIP=":"
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 STRIP=$ac_ct_STRIP
3238 fi
3239 else
3240 STRIP="$ac_cv_prog_STRIP"
3241 fi
3242
3243 fi
3244 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3245
3246
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3248 printf %s "checking for a race-free mkdir -p... " >&6; }
3249 if test -z "$MKDIR_P"; then
3250 if test ${ac_cv_path_mkdir+y}
3251 then :
3252 printf %s "(cached) " >&6
3253 else case e in #(
3254 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3256 do
3257 IFS=$as_save_IFS
3258 case $as_dir in #(((
3259 '') as_dir=./ ;;
3260 */) ;;
3261 *) as_dir=$as_dir/ ;;
3262 esac
3263 for ac_prog in mkdir gmkdir; do
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3266 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3267 'mkdir ('*'coreutils) '* | \
3268 *'BusyBox '* | \
3269 'mkdir (fileutils) '4.1*)
3270 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3271 break 3;;
3272 esac
3273 done
3274 done
3275 done
3276 IFS=$as_save_IFS
3277 ;;
3278 esac
3279 fi
3280
3281 test -d ./--version && rmdir ./--version
3282 if test ${ac_cv_path_mkdir+y}; then
3283 MKDIR_P="$ac_cv_path_mkdir -p"
3284 else
3285 # As a last resort, use plain mkdir -p,
3286 # in the hope it doesn't have the bugs of ancient mkdir.
3287 MKDIR_P='mkdir -p'
3288 fi
3289 fi
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3291 printf "%s\n" "$MKDIR_P" >&6; }
3292
3293 for ac_prog in gawk mawk nawk awk
3294 do
3295 # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 printf %s "checking for $ac_word... " >&6; }
3299 if test ${ac_cv_prog_AWK+y}
3300 then :
3301 printf %s "(cached) " >&6
3302 else case e in #(
3303 e) if test -n "$AWK"; then
3304 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309 IFS=$as_save_IFS
3310 case $as_dir in #(((
3311 '') as_dir=./ ;;
3312 */) ;;
3313 *) as_dir=$as_dir/ ;;
3314 esac
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_AWK="$ac_prog"
3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi ;;
3326 esac
3327 fi
3328 AWK=$ac_cv_prog_AWK
3329 if test -n "$AWK"; then
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3331 printf "%s\n" "$AWK" >&6; }
3332 else
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 printf "%s\n" "no" >&6; }
3335 fi
3336
3337
3338 test -n "$AWK" && break
3339 done
3340
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3342 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3343 set x ${MAKE-make}
3344 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3345 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3346 then :
3347 printf %s "(cached) " >&6
3348 else case e in #(
3349 e) cat >conftest.make <<\_ACEOF
3350 SHELL = /bin/sh
3351 all:
3352 @echo '@@@%%%=$(MAKE)=@@@%%%'
3353 _ACEOF
3354 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3356 *@@@%%%=?*=@@@%%%*)
3357 eval ac_cv_prog_make_${ac_make}_set=yes;;
3358 *)
3359 eval ac_cv_prog_make_${ac_make}_set=no;;
3360 esac
3361 rm -f conftest.make ;;
3362 esac
3363 fi
3364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366 printf "%s\n" "yes" >&6; }
3367 SET_MAKE=
3368 else
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 printf "%s\n" "no" >&6; }
3371 SET_MAKE="MAKE=${MAKE-make}"
3372 fi
3373
3374 rm -rf .tst 2>/dev/null
3375 mkdir .tst 2>/dev/null
3376 if test -d .tst; then
3377 am__leading_dot=.
3378 else
3379 am__leading_dot=_
3380 fi
3381 rmdir .tst 2>/dev/null
3382
3383 AM_DEFAULT_VERBOSITY=1
3384 # Check whether --enable-silent-rules was given.
3385 if test ${enable_silent_rules+y}
3386 then :
3387 enableval=$enable_silent_rules;
3388 fi
3389
3390 am_make=${MAKE-make}
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3392 printf %s "checking whether $am_make supports nested variables... " >&6; }
3393 if test ${am_cv_make_support_nested_variables+y}
3394 then :
3395 printf %s "(cached) " >&6
3396 else case e in #(
3397 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3398 BAR0=false
3399 BAR1=true
3400 V=1
3401 am__doit:
3402 @$(TRUE)
3403 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3404 am_cv_make_support_nested_variables=yes
3405 else
3406 am_cv_make_support_nested_variables=no
3407 fi ;;
3408 esac
3409 fi
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3411 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3412 AM_BACKSLASH='\'
3413
3414 am__rm_f_notfound=
3415 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3416 then :
3417
3418 else case e in #(
3419 e) am__rm_f_notfound='""' ;;
3420 esac
3421 fi
3422
3423
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3425 printf %s "checking xargs -n works... " >&6; }
3426 if test ${am_cv_xargs_n_works+y}
3427 then :
3428 printf %s "(cached) " >&6
3429 else case e in #(
3430 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3431 3"
3432 then :
3433 am_cv_xargs_n_works=yes
3434 else case e in #(
3435 e) am_cv_xargs_n_works=no ;;
3436 esac
3437 fi ;;
3438 esac
3439 fi
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3441 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3442 if test "$am_cv_xargs_n_works" = yes
3443 then :
3444 am__xargs_n='xargs -n'
3445 else case e in #(
3446 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3447 ;;
3448 esac
3449 fi
3450
3451 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3452 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3453 # is not polluted with repeated "-I."
3454 am__isrc=' -I$(srcdir)'
3455 # test to see if srcdir already configured
3456 if test -f $srcdir/config.status; then
3457 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3458 fi
3459 fi
3460
3461 # test whether we have cygpath
3462 if test -z "$CYGPATH_W"; then
3463 if (cygpath --version) >/dev/null 2>/dev/null; then
3464 CYGPATH_W='cygpath -w'
3465 else
3466 CYGPATH_W=echo
3467 fi
3468 fi
3469
3470
3471 # Define the identity of the package.
3472 PACKAGE='libjpeg'
3473 VERSION='10.0.0'
3474
3475
3476 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3477
3478
3479 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3480
3481 # Some tools Automake needs.
3482
3483 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3484
3485
3486 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3487
3488
3489 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3490
3491
3492 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3493
3494
3495 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3496
3497 # For better backward compatibility. To be removed once Automake 1.9.x
3498 # dies out for good. For more background, see:
3499 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3500 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3501 mkdir_p='$(MKDIR_P)'
3502
3503 # We need awk for the "check" target (and possibly the TAP driver). The
3504 # system "awk" is bad on some platforms.
3505 # Always define AMTAR for backward compatibility. Yes, it's still used
3506 # in the wild :-( We should find a proper way to deprecate it ...
3507 AMTAR='$${TAR-tar}'
3508
3509
3510 # We'll loop over all known methods to create a tar archive until one works.
3511 _am_tools='gnutar plaintar pax cpio none'
3512
3513 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3514 # There is notably a 21 bits limit for the UID and the GID. In fact,
3515 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3516 # and bug#13588).
3517 am_max_uid=2097151 # 2^21 - 1
3518 am_max_gid=$am_max_uid
3519 # The $UID and $GID variables are not portable, so we need to resort
3520 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3521 # below are definitely unexpected, so allow the users to see them
3522 # (that is, avoid stderr redirection).
3523 am_uid=`id -u || echo unknown`
3524 am_gid=`id -g || echo unknown`
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3526 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3527 if test x$am_uid = xunknown; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3529 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3530 elif test $am_uid -le $am_max_uid; then
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 printf "%s\n" "yes" >&6; }
3533 else
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 printf "%s\n" "no" >&6; }
3536 _am_tools=none
3537 fi
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3539 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3540 if test x$gm_gid = xunknown; then
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3542 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3543 elif test $am_gid -le $am_max_gid; then
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3545 printf "%s\n" "yes" >&6; }
3546 else
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 printf "%s\n" "no" >&6; }
3549 _am_tools=none
3550 fi
3551
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3553 printf %s "checking how to create a ustar tar archive... " >&6; }
3554
3555 # Go ahead even if we have the value already cached. We do so because we
3556 # need to set the values for the 'am__tar' and 'am__untar' variables.
3557 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3558
3559 for _am_tool in $_am_tools; do
3560 case $_am_tool in
3561 gnutar)
3562 for _am_tar in tar gnutar gtar; do
3563 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3564 ($_am_tar --version) >&5 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && break
3568 done
3569 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3570 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3571 am__untar="$_am_tar -xf -"
3572 ;;
3573 plaintar)
3574 # Must skip GNU tar: if it does not support --format= it doesn't create
3575 # ustar tarball either.
3576 (tar --version) >/dev/null 2>&1 && continue
3577 am__tar='tar chf - "$$tardir"'
3578 am__tar_='tar chf - "$tardir"'
3579 am__untar='tar xf -'
3580 ;;
3581 pax)
3582 am__tar='pax -L -x ustar -w "$$tardir"'
3583 am__tar_='pax -L -x ustar -w "$tardir"'
3584 am__untar='pax -r'
3585 ;;
3586 cpio)
3587 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3588 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3589 am__untar='cpio -i -H ustar -d'
3590 ;;
3591 none)
3592 am__tar=false
3593 am__tar_=false
3594 am__untar=false
3595 ;;
3596 esac
3597
3598 # If the value was cached, stop now. We just wanted to have am__tar
3599 # and am__untar set.
3600 test -n "${am_cv_prog_tar_ustar}" && break
3601
3602 # tar/untar a dummy directory, and stop if the command works.
3603 rm -rf conftest.dir
3604 mkdir conftest.dir
3605 echo GrepMe > conftest.dir/file
3606 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3607 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }
3611 rm -rf conftest.dir
3612 if test -s conftest.tar; then
3613 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3614 ($am__untar <conftest.tar) >&5 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }
3618 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3619 (cat conftest.dir/file) >&5 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }
3623 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3624 fi
3625 done
3626 rm -rf conftest.dir
3627
3628 if test ${am_cv_prog_tar_ustar+y}
3629 then :
3630 printf %s "(cached) " >&6
3631 else case e in #(
3632 e) am_cv_prog_tar_ustar=$_am_tool ;;
3633 esac
3634 fi
3635
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3637 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3638
3639
3640
3641
3642
3643 # Variables for tags utilities; see am/tags.am
3644 if test -z "$CTAGS"; then
3645 CTAGS=ctags
3646 fi
3647
3648 if test -z "$ETAGS"; then
3649 ETAGS=etags
3650 fi
3651
3652 if test -z "$CSCOPE"; then
3653 CSCOPE=cscope
3654 fi
3655
3656
3657
3658
3659
3660
3661
3662
3663 # Make --enable-silent-rules the default.
3664 # To get verbose build output you may configure
3665 # with --disable-silent-rules or use "make V=1".
3666
3667 AM_DEFAULT_VERBOSITY=0
3668
3669
3670
3671 # Add configure option --enable-maintainer-mode which enables
3672 # dependency checking and generation useful to package maintainers.
3673 # This is made an option to avoid confusing end users.
3674
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3676 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3677 # Check whether --enable-maintainer-mode was given.
3678 if test ${enable_maintainer_mode+y}
3679 then :
3680 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3681 else case e in #(
3682 e) USE_MAINTAINER_MODE=no ;;
3683 esac
3684 fi
3685
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3687 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3688 if test $USE_MAINTAINER_MODE = yes; then
3689 MAINTAINER_MODE_TRUE=
3690 MAINTAINER_MODE_FALSE='#'
3691 else
3692 MAINTAINER_MODE_TRUE='#'
3693 MAINTAINER_MODE_FALSE=
3694 fi
3695
3696 MAINT=$MAINTAINER_MODE_TRUE
3697
3698
3699
3700 # Check for programs
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 printf %s "checking for $ac_word... " >&6; }
3720 if test ${ac_cv_prog_CC+y}
3721 then :
3722 printf %s "(cached) " >&6
3723 else case e in #(
3724 e) if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 case $as_dir in #(((
3732 '') as_dir=./ ;;
3733 */) ;;
3734 *) as_dir=$as_dir/ ;;
3735 esac
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3745
3746 fi ;;
3747 esac
3748 fi
3749 CC=$ac_cv_prog_CC
3750 if test -n "$CC"; then
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 printf "%s\n" "$CC" >&6; }
3753 else
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 printf "%s\n" "no" >&6; }
3756 fi
3757
3758
3759 fi
3760 if test -z "$ac_cv_prog_CC"; then
3761 ac_ct_CC=$CC
3762 # Extract the first word of "gcc", so it can be a program name with args.
3763 set dummy gcc; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_ac_ct_CC+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else case e in #(
3770 e) if test -n "$ac_ct_CC"; then
3771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 case $as_dir in #(((
3778 '') as_dir=./ ;;
3779 */) ;;
3780 *) as_dir=$as_dir/ ;;
3781 esac
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_ac_ct_CC="gcc"
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi ;;
3793 esac
3794 fi
3795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3796 if test -n "$ac_ct_CC"; then
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3798 printf "%s\n" "$ac_ct_CC" >&6; }
3799 else
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 printf "%s\n" "no" >&6; }
3802 fi
3803
3804 if test "x$ac_ct_CC" = x; then
3805 CC=""
3806 else
3807 case $cross_compiling:$ac_tool_warned in
3808 yes:)
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811 ac_tool_warned=yes ;;
3812 esac
3813 CC=$ac_ct_CC
3814 fi
3815 else
3816 CC="$ac_cv_prog_CC"
3817 fi
3818
3819 if test -z "$CC"; then
3820 if test -n "$ac_tool_prefix"; then
3821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3822 set dummy ${ac_tool_prefix}cc; ac_word=$2
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 printf %s "checking for $ac_word... " >&6; }
3825 if test ${ac_cv_prog_CC+y}
3826 then :
3827 printf %s "(cached) " >&6
3828 else case e in #(
3829 e) if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 case $as_dir in #(((
3837 '') as_dir=./ ;;
3838 */) ;;
3839 *) as_dir=$as_dir/ ;;
3840 esac
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_CC="${ac_tool_prefix}cc"
3844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847 done
3848 done
3849 IFS=$as_save_IFS
3850
3851 fi ;;
3852 esac
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 printf "%s\n" "$CC" >&6; }
3858 else
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 printf "%s\n" "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 fi
3866 if test -z "$CC"; then
3867 # Extract the first word of "cc", so it can be a program name with args.
3868 set dummy cc; ac_word=$2
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 printf %s "checking for $ac_word... " >&6; }
3871 if test ${ac_cv_prog_CC+y}
3872 then :
3873 printf %s "(cached) " >&6
3874 else case e in #(
3875 e) if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 else
3878 ac_prog_rejected=no
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882 IFS=$as_save_IFS
3883 case $as_dir in #(((
3884 '') as_dir=./ ;;
3885 */) ;;
3886 *) as_dir=$as_dir/ ;;
3887 esac
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3890 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3891 ac_prog_rejected=yes
3892 continue
3893 fi
3894 ac_cv_prog_CC="cc"
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898 done
3899 done
3900 IFS=$as_save_IFS
3901
3902 if test $ac_prog_rejected = yes; then
3903 # We found a bogon in the path, so make sure we never use it.
3904 set dummy $ac_cv_prog_CC
3905 shift
3906 if test $# != 0; then
3907 # We chose a different compiler from the bogus one.
3908 # However, it has the same basename, so the bogon will be chosen
3909 # first if we set CC to just the basename; use the full file name.
3910 shift
3911 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3912 fi
3913 fi
3914 fi ;;
3915 esac
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 printf "%s\n" "$CC" >&6; }
3921 else
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 printf "%s\n" "no" >&6; }
3924 fi
3925
3926
3927 fi
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in cl.exe
3931 do
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 printf %s "checking for $ac_word... " >&6; }
3936 if test ${ac_cv_prog_CC+y}
3937 then :
3938 printf %s "(cached) " >&6
3939 else case e in #(
3940 e) if test -n "$CC"; then
3941 ac_cv_prog_CC="$CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946 IFS=$as_save_IFS
3947 case $as_dir in #(((
3948 '') as_dir=./ ;;
3949 */) ;;
3950 *) as_dir=$as_dir/ ;;
3951 esac
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi ;;
3963 esac
3964 fi
3965 CC=$ac_cv_prog_CC
3966 if test -n "$CC"; then
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968 printf "%s\n" "$CC" >&6; }
3969 else
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 printf "%s\n" "no" >&6; }
3972 fi
3973
3974
3975 test -n "$CC" && break
3976 done
3977 fi
3978 if test -z "$CC"; then
3979 ac_ct_CC=$CC
3980 for ac_prog in cl.exe
3981 do
3982 # Extract the first word of "$ac_prog", so it can be a program name with args.
3983 set dummy $ac_prog; ac_word=$2
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 printf %s "checking for $ac_word... " >&6; }
3986 if test ${ac_cv_prog_ac_ct_CC+y}
3987 then :
3988 printf %s "(cached) " >&6
3989 else case e in #(
3990 e) if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 case $as_dir in #(((
3998 '') as_dir=./ ;;
3999 */) ;;
4000 *) as_dir=$as_dir/ ;;
4001 esac
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_ac_ct_CC="$ac_prog"
4005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010 IFS=$as_save_IFS
4011
4012 fi ;;
4013 esac
4014 fi
4015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016 if test -n "$ac_ct_CC"; then
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4018 printf "%s\n" "$ac_ct_CC" >&6; }
4019 else
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 printf "%s\n" "no" >&6; }
4022 fi
4023
4024
4025 test -n "$ac_ct_CC" && break
4026 done
4027
4028 if test "x$ac_ct_CC" = x; then
4029 CC=""
4030 else
4031 case $cross_compiling:$ac_tool_warned in
4032 yes:)
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4034 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4035 ac_tool_warned=yes ;;
4036 esac
4037 CC=$ac_ct_CC
4038 fi
4039 fi
4040
4041 fi
4042 if test -z "$CC"; then
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}clang; ac_word=$2
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 printf %s "checking for $ac_word... " >&6; }
4048 if test ${ac_cv_prog_CC+y}
4049 then :
4050 printf %s "(cached) " >&6
4051 else case e in #(
4052 e) if test -n "$CC"; then
4053 ac_cv_prog_CC="$CC" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058 IFS=$as_save_IFS
4059 case $as_dir in #(((
4060 '') as_dir=./ ;;
4061 */) ;;
4062 *) as_dir=$as_dir/ ;;
4063 esac
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4066 ac_cv_prog_CC="${ac_tool_prefix}clang"
4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4068 break 2
4069 fi
4070 done
4071 done
4072 IFS=$as_save_IFS
4073
4074 fi ;;
4075 esac
4076 fi
4077 CC=$ac_cv_prog_CC
4078 if test -n "$CC"; then
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080 printf "%s\n" "$CC" >&6; }
4081 else
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 printf "%s\n" "no" >&6; }
4084 fi
4085
4086
4087 fi
4088 if test -z "$ac_cv_prog_CC"; then
4089 ac_ct_CC=$CC
4090 # Extract the first word of "clang", so it can be a program name with args.
4091 set dummy clang; ac_word=$2
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 printf %s "checking for $ac_word... " >&6; }
4094 if test ${ac_cv_prog_ac_ct_CC+y}
4095 then :
4096 printf %s "(cached) " >&6
4097 else case e in #(
4098 e) if test -n "$ac_ct_CC"; then
4099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104 IFS=$as_save_IFS
4105 case $as_dir in #(((
4106 '') as_dir=./ ;;
4107 */) ;;
4108 *) as_dir=$as_dir/ ;;
4109 esac
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_ac_ct_CC="clang"
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi ;;
4121 esac
4122 fi
4123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4124 if test -n "$ac_ct_CC"; then
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4126 printf "%s\n" "$ac_ct_CC" >&6; }
4127 else
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 printf "%s\n" "no" >&6; }
4130 fi
4131
4132 if test "x$ac_ct_CC" = x; then
4133 CC=""
4134 else
4135 case $cross_compiling:$ac_tool_warned in
4136 yes:)
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4139 ac_tool_warned=yes ;;
4140 esac
4141 CC=$ac_ct_CC
4142 fi
4143 else
4144 CC="$ac_cv_prog_CC"
4145 fi
4146
4147 fi
4148
4149
4150 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4151 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4152 as_fn_error $? "no acceptable C compiler found in \$PATH
4153 See 'config.log' for more details" "$LINENO" 5; }
4154
4155 # Provide some information about the compiler.
4156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4157 set X $ac_compile
4158 ac_compiler=$2
4159 for ac_option in --version -v -V -qversion -version; do
4160 { { ac_try="$ac_compiler $ac_option >&5"
4161 case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4166 printf "%s\n" "$ac_try_echo"; } >&5
4167 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4168 ac_status=$?
4169 if test -s conftest.err; then
4170 sed '10a\
4171 ... rest of stderr output deleted ...
4172 10q' conftest.err >conftest.er1
4173 cat conftest.er1 >&5
4174 fi
4175 rm -f conftest.er1 conftest.err
4176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }
4178 done
4179
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 int
4184 main (void)
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 ac_clean_files_save=$ac_clean_files
4192 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4193 # Try to create an executable without -o first, disregard a.out.
4194 # It will help us diagnose broken compilers, and finding out an intuition
4195 # of exeext.
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4197 printf %s "checking whether the C compiler works... " >&6; }
4198 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4199
4200 # The possible output files:
4201 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4202
4203 ac_rmfiles=
4204 for ac_file in $ac_files
4205 do
4206 case $ac_file in
4207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4208 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4209 esac
4210 done
4211 rm -f $ac_rmfiles
4212
4213 if { { ac_try="$ac_link_default"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 printf "%s\n" "$ac_try_echo"; } >&5
4220 (eval "$ac_link_default") 2>&5
4221 ac_status=$?
4222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4224 then :
4225 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4226 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4227 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4228 # so that the user can short-circuit this test for compilers unknown to
4229 # Autoconf.
4230 for ac_file in $ac_files ''
4231 do
4232 test -f "$ac_file" || continue
4233 case $ac_file in
4234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4235 ;;
4236 [ab].out )
4237 # We found the default executable, but exeext='' is most
4238 # certainly right.
4239 break;;
4240 *.* )
4241 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4242 then :; else
4243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4244 fi
4245 # We set ac_cv_exeext here because the later test for it is not
4246 # safe: cross compilers may not add the suffix if given an '-o'
4247 # argument, so we may need to know it at that point already.
4248 # Even if this section looks crufty: it has the advantage of
4249 # actually working.
4250 break;;
4251 * )
4252 break;;
4253 esac
4254 done
4255 test "$ac_cv_exeext" = no && ac_cv_exeext=
4256
4257 else case e in #(
4258 e) ac_file='' ;;
4259 esac
4260 fi
4261 if test -z "$ac_file"
4262 then :
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 printf "%s\n" "no" >&6; }
4265 printf "%s\n" "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4269 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4270 as_fn_error 77 "C compiler cannot create executables
4271 See 'config.log' for more details" "$LINENO" 5; }
4272 else case e in #(
4273 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4274 printf "%s\n" "yes" >&6; } ;;
4275 esac
4276 fi
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4278 printf %s "checking for C compiler default output file name... " >&6; }
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4280 printf "%s\n" "$ac_file" >&6; }
4281 ac_exeext=$ac_cv_exeext
4282
4283 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4284 ac_clean_files=$ac_clean_files_save
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4286 printf %s "checking for suffix of executables... " >&6; }
4287 if { { ac_try="$ac_link"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 printf "%s\n" "$ac_try_echo"; } >&5
4294 (eval "$ac_link") 2>&5
4295 ac_status=$?
4296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; }
4298 then :
4299 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4300 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4301 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4302 # 'rm'.
4303 for ac_file in conftest.exe conftest conftest.*; do
4304 test -f "$ac_file" || continue
4305 case $ac_file in
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4308 break;;
4309 * ) break;;
4310 esac
4311 done
4312 else case e in #(
4313 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4314 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4315 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4316 See 'config.log' for more details" "$LINENO" 5; } ;;
4317 esac
4318 fi
4319 rm -f conftest conftest$ac_cv_exeext
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4321 printf "%s\n" "$ac_cv_exeext" >&6; }
4322
4323 rm -f conftest.$ac_ext
4324 EXEEXT=$ac_cv_exeext
4325 ac_exeext=$EXEEXT
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #include <stdio.h>
4329 int
4330 main (void)
4331 {
4332 FILE *f = fopen ("conftest.out", "w");
4333 if (!f)
4334 return 1;
4335 return ferror (f) || fclose (f) != 0;
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 ac_clean_files="$ac_clean_files conftest.out"
4342 # Check that the compiler produces executables we can run. If not, either
4343 # the compiler is broken, or we cross compile.
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4345 printf %s "checking whether we are cross compiling... " >&6; }
4346 if test "$cross_compiling" != yes; then
4347 { { ac_try="$ac_link"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 printf "%s\n" "$ac_try_echo"; } >&5
4354 (eval "$ac_link") 2>&5
4355 ac_status=$?
4356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }
4358 if { ac_try='./conftest$ac_cv_exeext'
4359 { { case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362 esac
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 printf "%s\n" "$ac_try_echo"; } >&5
4365 (eval "$ac_try") 2>&5
4366 ac_status=$?
4367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }; }; then
4369 cross_compiling=no
4370 else
4371 if test "$cross_compiling" = maybe; then
4372 cross_compiling=yes
4373 else
4374 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4375 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4376 as_fn_error 77 "cannot run C compiled programs.
4377 If you meant to cross compile, use '--host'.
4378 See 'config.log' for more details" "$LINENO" 5; }
4379 fi
4380 fi
4381 fi
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4383 printf "%s\n" "$cross_compiling" >&6; }
4384
4385 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4386 conftest.o conftest.obj conftest.out
4387 ac_clean_files=$ac_clean_files_save
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4389 printf %s "checking for suffix of object files... " >&6; }
4390 if test ${ac_cv_objext+y}
4391 then :
4392 printf %s "(cached) " >&6
4393 else case e in #(
4394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396
4397 int
4398 main (void)
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.o conftest.obj
4406 if { { ac_try="$ac_compile"
4407 case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410 esac
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 printf "%s\n" "$ac_try_echo"; } >&5
4413 (eval "$ac_compile") 2>&5
4414 ac_status=$?
4415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; }
4417 then :
4418 for ac_file in conftest.o conftest.obj conftest.*; do
4419 test -f "$ac_file" || continue;
4420 case $ac_file in
4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4423 break;;
4424 esac
4425 done
4426 else case e in #(
4427 e) printf "%s\n" "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4431 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4432 as_fn_error $? "cannot compute suffix of object files: cannot compile
4433 See 'config.log' for more details" "$LINENO" 5; } ;;
4434 esac
4435 fi
4436 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4437 esac
4438 fi
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4440 printf "%s\n" "$ac_cv_objext" >&6; }
4441 OBJEXT=$ac_cv_objext
4442 ac_objext=$OBJEXT
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4444 printf %s "checking whether the compiler supports GNU C... " >&6; }
4445 if test ${ac_cv_c_compiler_gnu+y}
4446 then :
4447 printf %s "(cached) " >&6
4448 else case e in #(
4449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451
4452 int
4453 main (void)
4454 {
4455 #ifndef __GNUC__
4456 choke me
4457 #endif
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_compile "$LINENO"
4464 then :
4465 ac_compiler_gnu=yes
4466 else case e in #(
4467 e) ac_compiler_gnu=no ;;
4468 esac
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4472 ;;
4473 esac
4474 fi
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4476 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479 if test $ac_compiler_gnu = yes; then
4480 GCC=yes
4481 else
4482 GCC=
4483 fi
4484 ac_test_CFLAGS=${CFLAGS+y}
4485 ac_save_CFLAGS=$CFLAGS
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4487 printf %s "checking whether $CC accepts -g... " >&6; }
4488 if test ${ac_cv_prog_cc_g+y}
4489 then :
4490 printf %s "(cached) " >&6
4491 else case e in #(
4492 e) ac_save_c_werror_flag=$ac_c_werror_flag
4493 ac_c_werror_flag=yes
4494 ac_cv_prog_cc_g=no
4495 CFLAGS="-g"
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498
4499 int
4500 main (void)
4501 {
4502
4503 ;
4504 return 0;
4505 }
4506 _ACEOF
4507 if ac_fn_c_try_compile "$LINENO"
4508 then :
4509 ac_cv_prog_cc_g=yes
4510 else case e in #(
4511 e) CFLAGS=""
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514
4515 int
4516 main (void)
4517 {
4518
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"
4524 then :
4525
4526 else case e in #(
4527 e) ac_c_werror_flag=$ac_save_c_werror_flag
4528 CFLAGS="-g"
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531
4532 int
4533 main (void)
4534 {
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_c_try_compile "$LINENO"
4541 then :
4542 ac_cv_prog_cc_g=yes
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4545 esac
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4548 esac
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4551 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4552 esac
4553 fi
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4555 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4556 if test $ac_test_CFLAGS; then
4557 CFLAGS=$ac_save_CFLAGS
4558 elif test $ac_cv_prog_cc_g = yes; then
4559 if test "$GCC" = yes; then
4560 CFLAGS="-g -O2"
4561 else
4562 CFLAGS="-g"
4563 fi
4564 else
4565 if test "$GCC" = yes; then
4566 CFLAGS="-O2"
4567 else
4568 CFLAGS=
4569 fi
4570 fi
4571 ac_prog_cc_stdc=no
4572 if test x$ac_prog_cc_stdc = xno
4573 then :
4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4575 printf %s "checking for $CC option to enable C11 features... " >&6; }
4576 if test ${ac_cv_prog_cc_c11+y}
4577 then :
4578 printf %s "(cached) " >&6
4579 else case e in #(
4580 e) ac_cv_prog_cc_c11=no
4581 ac_save_CC=$CC
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 $ac_c_conftest_c11_program
4585 _ACEOF
4586 for ac_arg in '' -std=gnu11
4587 do
4588 CC="$ac_save_CC $ac_arg"
4589 if ac_fn_c_try_compile "$LINENO"
4590 then :
4591 ac_cv_prog_cc_c11=$ac_arg
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.beam
4594 test "x$ac_cv_prog_cc_c11" != "xno" && break
4595 done
4596 rm -f conftest.$ac_ext
4597 CC=$ac_save_CC ;;
4598 esac
4599 fi
4600
4601 if test "x$ac_cv_prog_cc_c11" = xno
4602 then :
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4604 printf "%s\n" "unsupported" >&6; }
4605 else case e in #(
4606 e) if test "x$ac_cv_prog_cc_c11" = x
4607 then :
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4609 printf "%s\n" "none needed" >&6; }
4610 else case e in #(
4611 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4612 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4613 CC="$CC $ac_cv_prog_cc_c11" ;;
4614 esac
4615 fi
4616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4617 ac_prog_cc_stdc=c11 ;;
4618 esac
4619 fi
4620 fi
4621 if test x$ac_prog_cc_stdc = xno
4622 then :
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4624 printf %s "checking for $CC option to enable C99 features... " >&6; }
4625 if test ${ac_cv_prog_cc_c99+y}
4626 then :
4627 printf %s "(cached) " >&6
4628 else case e in #(
4629 e) ac_cv_prog_cc_c99=no
4630 ac_save_CC=$CC
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 $ac_c_conftest_c99_program
4634 _ACEOF
4635 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4636 do
4637 CC="$ac_save_CC $ac_arg"
4638 if ac_fn_c_try_compile "$LINENO"
4639 then :
4640 ac_cv_prog_cc_c99=$ac_arg
4641 fi
4642 rm -f core conftest.err conftest.$ac_objext conftest.beam
4643 test "x$ac_cv_prog_cc_c99" != "xno" && break
4644 done
4645 rm -f conftest.$ac_ext
4646 CC=$ac_save_CC ;;
4647 esac
4648 fi
4649
4650 if test "x$ac_cv_prog_cc_c99" = xno
4651 then :
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4653 printf "%s\n" "unsupported" >&6; }
4654 else case e in #(
4655 e) if test "x$ac_cv_prog_cc_c99" = x
4656 then :
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4658 printf "%s\n" "none needed" >&6; }
4659 else case e in #(
4660 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4661 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4662 CC="$CC $ac_cv_prog_cc_c99" ;;
4663 esac
4664 fi
4665 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4666 ac_prog_cc_stdc=c99 ;;
4667 esac
4668 fi
4669 fi
4670 if test x$ac_prog_cc_stdc = xno
4671 then :
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4673 printf %s "checking for $CC option to enable C89 features... " >&6; }
4674 if test ${ac_cv_prog_cc_c89+y}
4675 then :
4676 printf %s "(cached) " >&6
4677 else case e in #(
4678 e) ac_cv_prog_cc_c89=no
4679 ac_save_CC=$CC
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 $ac_c_conftest_c89_program
4683 _ACEOF
4684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4685 do
4686 CC="$ac_save_CC $ac_arg"
4687 if ac_fn_c_try_compile "$LINENO"
4688 then :
4689 ac_cv_prog_cc_c89=$ac_arg
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.beam
4692 test "x$ac_cv_prog_cc_c89" != "xno" && break
4693 done
4694 rm -f conftest.$ac_ext
4695 CC=$ac_save_CC ;;
4696 esac
4697 fi
4698
4699 if test "x$ac_cv_prog_cc_c89" = xno
4700 then :
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4702 printf "%s\n" "unsupported" >&6; }
4703 else case e in #(
4704 e) if test "x$ac_cv_prog_cc_c89" = x
4705 then :
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4707 printf "%s\n" "none needed" >&6; }
4708 else case e in #(
4709 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4710 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4711 CC="$CC $ac_cv_prog_cc_c89" ;;
4712 esac
4713 fi
4714 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4715 ac_prog_cc_stdc=c89 ;;
4716 esac
4717 fi
4718 fi
4719
4720 ac_ext=c
4721 ac_cpp='$CPP $CPPFLAGS'
4722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4725
4726
4727 ac_ext=c
4728 ac_cpp='$CPP $CPPFLAGS'
4729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4733 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4734 if test ${am_cv_prog_cc_c_o+y}
4735 then :
4736 printf %s "(cached) " >&6
4737 else case e in #(
4738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740
4741 int
4742 main (void)
4743 {
4744
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 # Make sure it works both with $CC and with simple cc.
4750 # Following AC_PROG_CC_C_O, we do the test twice because some
4751 # compilers refuse to overwrite an existing .o file with -o,
4752 # though they will create one.
4753 am_cv_prog_cc_c_o=yes
4754 for am_i in 1 2; do
4755 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4756 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } \
4760 && test -f conftest2.$ac_objext; then
4761 : OK
4762 else
4763 am_cv_prog_cc_c_o=no
4764 break
4765 fi
4766 done
4767 # aligned with autoconf, so not including core; see bug#72225.
4768 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4769 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4770 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4771 unset am_i ;;
4772 esac
4773 fi
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4775 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4776 if test "$am_cv_prog_cc_c_o" != yes; then
4777 # Losing compiler, so override with the script.
4778 # FIXME: It is wrong to rewrite CC.
4779 # But if we don't then we get into trouble of one sort or another.
4780 # A longer-term fix would be to have automake use am__CC in this case,
4781 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4782 CC="$am_aux_dir/compile $CC"
4783 fi
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789
4790 DEPDIR="${am__leading_dot}deps"
4791
4792 ac_config_commands="$ac_config_commands depfiles"
4793
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4795 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4796 cat > confinc.mk << 'END'
4797 am__doit:
4798 @echo this is the am__doit target >confinc.out
4799 .PHONY: am__doit
4800 END
4801 am__include="#"
4802 am__quote=
4803 # BSD make does it like this.
4804 echo '.include "confinc.mk" # ignored' > confmf.BSD
4805 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4806 echo 'include confinc.mk # ignored' > confmf.GNU
4807 _am_result=no
4808 for s in GNU BSD; do
4809 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4810 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }
4814 case $?:`cat confinc.out 2>/dev/null` in #(
4815 '0:this is the am__doit target') :
4816 case $s in #(
4817 BSD) :
4818 am__include='.include' am__quote='"' ;; #(
4819 *) :
4820 am__include='include' am__quote='' ;;
4821 esac ;; #(
4822 *) :
4823 ;;
4824 esac
4825 if test "$am__include" != "#"; then
4826 _am_result="yes ($s style)"
4827 break
4828 fi
4829 done
4830 rm -f confinc.* confmf.*
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4832 printf "%s\n" "${_am_result}" >&6; }
4833
4834 # Check whether --enable-dependency-tracking was given.
4835 if test ${enable_dependency_tracking+y}
4836 then :
4837 enableval=$enable_dependency_tracking;
4838 fi
4839
4840 if test "x$enable_dependency_tracking" != xno; then
4841 am_depcomp="$ac_aux_dir/depcomp"
4842 AMDEPBACKSLASH='\'
4843 am__nodep='_no'
4844 fi
4845 if test "x$enable_dependency_tracking" != xno; then
4846 AMDEP_TRUE=
4847 AMDEP_FALSE='#'
4848 else
4849 AMDEP_TRUE='#'
4850 AMDEP_FALSE=
4851 fi
4852
4853
4854
4855 depcc="$CC" am_compiler_list=
4856
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4858 printf %s "checking dependency style of $depcc... " >&6; }
4859 if test ${am_cv_CC_dependencies_compiler_type+y}
4860 then :
4861 printf %s "(cached) " >&6
4862 else case e in #(
4863 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4864 # We make a subdir and do the tests there. Otherwise we can end up
4865 # making bogus files that we don't know about and never remove. For
4866 # instance it was reported that on HP-UX the gcc test will end up
4867 # making a dummy file named 'D' -- because '-MD' means "put the output
4868 # in D".
4869 rm -rf conftest.dir
4870 mkdir conftest.dir
4871 # Copy depcomp to subdir because otherwise we won't find it if we're
4872 # using a relative directory.
4873 cp "$am_depcomp" conftest.dir
4874 cd conftest.dir
4875 # We will build objects and dependencies in a subdirectory because
4876 # it helps to detect inapplicable dependency modes. For instance
4877 # both Tru64's cc and ICC support -MD to output dependencies as a
4878 # side effect of compilation, but ICC will put the dependencies in
4879 # the current directory while Tru64 will put them in the object
4880 # directory.
4881 mkdir sub
4882
4883 am_cv_CC_dependencies_compiler_type=none
4884 if test "$am_compiler_list" = ""; then
4885 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4886 fi
4887 am__universal=false
4888 case " $depcc " in #(
4889 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4890 esac
4891
4892 for depmode in $am_compiler_list; do
4893 # Setup a source with many dependencies, because some compilers
4894 # like to wrap large dependency lists on column 80 (with \), and
4895 # we should not choose a depcomp mode which is confused by this.
4896 #
4897 # We need to recreate these files for each test, as the compiler may
4898 # overwrite some of them when testing with obscure command lines.
4899 # This happens at least with the AIX C compiler.
4900 : > sub/conftest.c
4901 for i in 1 2 3 4 5 6; do
4902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4903 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4904 # Solaris 10 /bin/sh.
4905 echo '/* dummy */' > sub/conftst$i.h
4906 done
4907 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4908
4909 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4910 # mode. It turns out that the SunPro C++ compiler does not properly
4911 # handle '-M -o', and we need to detect this. Also, some Intel
4912 # versions had trouble with output in subdirs.
4913 am__obj=sub/conftest.${OBJEXT-o}
4914 am__minus_obj="-o $am__obj"
4915 case $depmode in
4916 gcc)
4917 # This depmode causes a compiler race in universal mode.
4918 test "$am__universal" = false || continue
4919 ;;
4920 nosideeffect)
4921 # After this tag, mechanisms are not by side-effect, so they'll
4922 # only be used when explicitly requested.
4923 if test "x$enable_dependency_tracking" = xyes; then
4924 continue
4925 else
4926 break
4927 fi
4928 ;;
4929 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4930 # This compiler won't grok '-c -o', but also, the minuso test has
4931 # not run yet. These depmodes are late enough in the game, and
4932 # so weak that their functioning should not be impacted.
4933 am__obj=conftest.${OBJEXT-o}
4934 am__minus_obj=
4935 ;;
4936 none) break ;;
4937 esac
4938 if depmode=$depmode \
4939 source=sub/conftest.c object=$am__obj \
4940 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4941 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4942 >/dev/null 2>conftest.err &&
4943 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4944 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4946 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4947 # icc doesn't choke on unknown options, it will just issue warnings
4948 # or remarks (even with -Werror). So we grep stderr for any message
4949 # that says an option was ignored or not supported.
4950 # When given -MP, icc 7.0 and 7.1 complain thus:
4951 # icc: Command line warning: ignoring option '-M'; no argument required
4952 # The diagnosis changed in icc 8.0:
4953 # icc: Command line remark: option '-MP' not supported
4954 if (grep 'ignoring option' conftest.err ||
4955 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4956 am_cv_CC_dependencies_compiler_type=$depmode
4957 break
4958 fi
4959 fi
4960 done
4961
4962 cd ..
4963 rm -rf conftest.dir
4964 else
4965 am_cv_CC_dependencies_compiler_type=none
4966 fi
4967 ;;
4968 esac
4969 fi
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4971 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4972 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4973
4974 if
4975 test "x$enable_dependency_tracking" != xno \
4976 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4977 am__fastdepCC_TRUE=
4978 am__fastdepCC_FALSE='#'
4979 else
4980 am__fastdepCC_TRUE='#'
4981 am__fastdepCC_FALSE=
4982 fi
4983
4984
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4991 printf %s "checking how to run the C preprocessor... " >&6; }
4992 # On Suns, sometimes $CPP names a directory.
4993 if test -n "$CPP" && test -d "$CPP"; then
4994 CPP=
4995 fi
4996 if test -z "$CPP"; then
4997 if test ${ac_cv_prog_CPP+y}
4998 then :
4999 printf %s "(cached) " >&6
5000 else case e in #(
5001 e) # Double quotes because $CC needs to be expanded
5002 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5003 do
5004 ac_preproc_ok=false
5005 for ac_c_preproc_warn_flag in '' yes
5006 do
5007 # Use a header file that comes with gcc, so configuring glibc
5008 # with a fresh cross-compiler works.
5009 # On the NeXT, cc -E runs the code through the compiler's parser,
5010 # not just through cpp. "Syntax error" is here to catch this case.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <limits.h>
5014 Syntax error
5015 _ACEOF
5016 if ac_fn_c_try_cpp "$LINENO"
5017 then :
5018
5019 else case e in #(
5020 e) # Broken: fails on valid input.
5021 continue ;;
5022 esac
5023 fi
5024 rm -f conftest.err conftest.i conftest.$ac_ext
5025
5026 # OK, works on sane cases. Now check whether nonexistent headers
5027 # can be detected and how.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 #include <ac_nonexistent.h>
5031 _ACEOF
5032 if ac_fn_c_try_cpp "$LINENO"
5033 then :
5034 # Broken: success on invalid input.
5035 continue
5036 else case e in #(
5037 e) # Passes both tests.
5038 ac_preproc_ok=:
5039 break ;;
5040 esac
5041 fi
5042 rm -f conftest.err conftest.i conftest.$ac_ext
5043
5044 done
5045 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5046 rm -f conftest.i conftest.err conftest.$ac_ext
5047 if $ac_preproc_ok
5048 then :
5049 break
5050 fi
5051
5052 done
5053 ac_cv_prog_CPP=$CPP
5054 ;;
5055 esac
5056 fi
5057 CPP=$ac_cv_prog_CPP
5058 else
5059 ac_cv_prog_CPP=$CPP
5060 fi
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5062 printf "%s\n" "$CPP" >&6; }
5063 ac_preproc_ok=false
5064 for ac_c_preproc_warn_flag in '' yes
5065 do
5066 # Use a header file that comes with gcc, so configuring glibc
5067 # with a fresh cross-compiler works.
5068 # On the NeXT, cc -E runs the code through the compiler's parser,
5069 # not just through cpp. "Syntax error" is here to catch this case.
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072 #include <limits.h>
5073 Syntax error
5074 _ACEOF
5075 if ac_fn_c_try_cpp "$LINENO"
5076 then :
5077
5078 else case e in #(
5079 e) # Broken: fails on valid input.
5080 continue ;;
5081 esac
5082 fi
5083 rm -f conftest.err conftest.i conftest.$ac_ext
5084
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <ac_nonexistent.h>
5090 _ACEOF
5091 if ac_fn_c_try_cpp "$LINENO"
5092 then :
5093 # Broken: success on invalid input.
5094 continue
5095 else case e in #(
5096 e) # Passes both tests.
5097 ac_preproc_ok=:
5098 break ;;
5099 esac
5100 fi
5101 rm -f conftest.err conftest.i conftest.$ac_ext
5102
5103 done
5104 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5105 rm -f conftest.i conftest.err conftest.$ac_ext
5106 if $ac_preproc_ok
5107 then :
5108
5109 else case e in #(
5110 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5111 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5112 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5113 See 'config.log' for more details" "$LINENO" 5; } ;;
5114 esac
5115 fi
5116
5117 ac_ext=c
5118 ac_cpp='$CPP $CPPFLAGS'
5119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122
5123
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5125 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5126 set x ${MAKE-make}
5127 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5128 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5129 then :
5130 printf %s "(cached) " >&6
5131 else case e in #(
5132 e) cat >conftest.make <<\_ACEOF
5133 SHELL = /bin/sh
5134 all:
5135 @echo '@@@%%%=$(MAKE)=@@@%%%'
5136 _ACEOF
5137 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5138 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5139 *@@@%%%=?*=@@@%%%*)
5140 eval ac_cv_prog_make_${ac_make}_set=yes;;
5141 *)
5142 eval ac_cv_prog_make_${ac_make}_set=no;;
5143 esac
5144 rm -f conftest.make ;;
5145 esac
5146 fi
5147 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149 printf "%s\n" "yes" >&6; }
5150 SET_MAKE=
5151 else
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 printf "%s\n" "no" >&6; }
5154 SET_MAKE="MAKE=${MAKE-make}"
5155 fi
5156
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5158 printf %s "checking whether ln -s works... " >&6; }
5159 LN_S=$as_ln_s
5160 if test "$LN_S" = "ln -s"; then
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162 printf "%s\n" "yes" >&6; }
5163 else
5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5165 printf "%s\n" "no, using $LN_S" >&6; }
5166 fi
5167
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5169 printf %s "checking for grep that handles long lines and -e... " >&6; }
5170 if test ${ac_cv_path_GREP+y}
5171 then :
5172 printf %s "(cached) " >&6
5173 else case e in #(
5174 e) if test -z "$GREP"; then
5175 ac_path_GREP_found=false
5176 # Loop through the user's path and test for each of PROGNAME-LIST
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 do
5180 IFS=$as_save_IFS
5181 case $as_dir in #(((
5182 '') as_dir=./ ;;
5183 */) ;;
5184 *) as_dir=$as_dir/ ;;
5185 esac
5186 for ac_prog in grep ggrep
5187 do
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5190 as_fn_executable_p "$ac_path_GREP" || continue
5191 # Check for GNU ac_path_GREP and select it if it is found.
5192 # Check for GNU $ac_path_GREP
5193 case `"$ac_path_GREP" --version 2>&1` in #(
5194 *GNU*)
5195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5196 #(
5197 *)
5198 ac_count=0
5199 printf %s 0123456789 >"conftest.in"
5200 while :
5201 do
5202 cat "conftest.in" "conftest.in" >"conftest.tmp"
5203 mv "conftest.tmp" "conftest.in"
5204 cp "conftest.in" "conftest.nl"
5205 printf "%s\n" 'GREP' >> "conftest.nl"
5206 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5208 as_fn_arith $ac_count + 1 && ac_count=$as_val
5209 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5210 # Best one so far, save it but keep looking for a better one
5211 ac_cv_path_GREP="$ac_path_GREP"
5212 ac_path_GREP_max=$ac_count
5213 fi
5214 # 10*(2^10) chars as input seems more than enough
5215 test $ac_count -gt 10 && break
5216 done
5217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5218 esac
5219
5220 $ac_path_GREP_found && break 3
5221 done
5222 done
5223 done
5224 IFS=$as_save_IFS
5225 if test -z "$ac_cv_path_GREP"; then
5226 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5227 fi
5228 else
5229 ac_cv_path_GREP=$GREP
5230 fi
5231 ;;
5232 esac
5233 fi
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5235 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5236 GREP="$ac_cv_path_GREP"
5237
5238
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5240 printf %s "checking for egrep... " >&6; }
5241 if test ${ac_cv_path_EGREP+y}
5242 then :
5243 printf %s "(cached) " >&6
5244 else case e in #(
5245 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5246 then ac_cv_path_EGREP="$GREP -E"
5247 else
5248 if test -z "$EGREP"; then
5249 ac_path_EGREP_found=false
5250 # Loop through the user's path and test for each of PROGNAME-LIST
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5253 do
5254 IFS=$as_save_IFS
5255 case $as_dir in #(((
5256 '') as_dir=./ ;;
5257 */) ;;
5258 *) as_dir=$as_dir/ ;;
5259 esac
5260 for ac_prog in egrep
5261 do
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5264 as_fn_executable_p "$ac_path_EGREP" || continue
5265 # Check for GNU ac_path_EGREP and select it if it is found.
5266 # Check for GNU $ac_path_EGREP
5267 case `"$ac_path_EGREP" --version 2>&1` in #(
5268 *GNU*)
5269 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5270 #(
5271 *)
5272 ac_count=0
5273 printf %s 0123456789 >"conftest.in"
5274 while :
5275 do
5276 cat "conftest.in" "conftest.in" >"conftest.tmp"
5277 mv "conftest.tmp" "conftest.in"
5278 cp "conftest.in" "conftest.nl"
5279 printf "%s\n" 'EGREP' >> "conftest.nl"
5280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5282 as_fn_arith $ac_count + 1 && ac_count=$as_val
5283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5284 # Best one so far, save it but keep looking for a better one
5285 ac_cv_path_EGREP="$ac_path_EGREP"
5286 ac_path_EGREP_max=$ac_count
5287 fi
5288 # 10*(2^10) chars as input seems more than enough
5289 test $ac_count -gt 10 && break
5290 done
5291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5292 esac
5293
5294 $ac_path_EGREP_found && break 3
5295 done
5296 done
5297 done
5298 IFS=$as_save_IFS
5299 if test -z "$ac_cv_path_EGREP"; then
5300 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5301 fi
5302 else
5303 ac_cv_path_EGREP=$EGREP
5304 fi
5305
5306 fi ;;
5307 esac
5308 fi
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5310 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5311 EGREP="$ac_cv_path_EGREP"
5312
5313 EGREP_TRADITIONAL=$EGREP
5314 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5315
5316
5317
5318 if test -n "$ac_tool_prefix"; then
5319 for ac_prog in ar lib "link -lib"
5320 do
5321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 printf %s "checking for $ac_word... " >&6; }
5325 if test ${ac_cv_prog_AR+y}
5326 then :
5327 printf %s "(cached) " >&6
5328 else case e in #(
5329 e) if test -n "$AR"; then
5330 ac_cv_prog_AR="$AR" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5334 do
5335 IFS=$as_save_IFS
5336 case $as_dir in #(((
5337 '') as_dir=./ ;;
5338 */) ;;
5339 *) as_dir=$as_dir/ ;;
5340 esac
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5345 break 2
5346 fi
5347 done
5348 done
5349 IFS=$as_save_IFS
5350
5351 fi ;;
5352 esac
5353 fi
5354 AR=$ac_cv_prog_AR
5355 if test -n "$AR"; then
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5357 printf "%s\n" "$AR" >&6; }
5358 else
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 printf "%s\n" "no" >&6; }
5361 fi
5362
5363
5364 test -n "$AR" && break
5365 done
5366 fi
5367 if test -z "$AR"; then
5368 ac_ct_AR=$AR
5369 for ac_prog in ar lib "link -lib"
5370 do
5371 # Extract the first word of "$ac_prog", so it can be a program name with args.
5372 set dummy $ac_prog; ac_word=$2
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 printf %s "checking for $ac_word... " >&6; }
5375 if test ${ac_cv_prog_ac_ct_AR+y}
5376 then :
5377 printf %s "(cached) " >&6
5378 else case e in #(
5379 e) if test -n "$ac_ct_AR"; then
5380 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385 IFS=$as_save_IFS
5386 case $as_dir in #(((
5387 '') as_dir=./ ;;
5388 */) ;;
5389 *) as_dir=$as_dir/ ;;
5390 esac
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_ac_ct_AR="$ac_prog"
5394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi ;;
5402 esac
5403 fi
5404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5405 if test -n "$ac_ct_AR"; then
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5407 printf "%s\n" "$ac_ct_AR" >&6; }
5408 else
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 printf "%s\n" "no" >&6; }
5411 fi
5412
5413
5414 test -n "$ac_ct_AR" && break
5415 done
5416
5417 if test "x$ac_ct_AR" = x; then
5418 AR="false"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 AR=$ac_ct_AR
5427 fi
5428 fi
5429
5430 : ${AR=ar}
5431 : ${ARFLAGS=cr}
5432
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5434 printf %s "checking the archiver ($AR) interface... " >&6; }
5435 if test ${am_cv_ar_interface+y}
5436 then :
5437 printf %s "(cached) " >&6
5438 else case e in #(
5439 e) ac_ext=c
5440 ac_cpp='$CPP $CPPFLAGS'
5441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5444
5445 am_cv_ar_interface=ar
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 int some_variable = 0;
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"
5451 then :
5452 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5454 (eval $am_ar_try) 2>&5
5455 ac_status=$?
5456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5457 test $ac_status = 0; }
5458 if test "$ac_status" -eq 0; then
5459 am_cv_ar_interface=ar
5460 else
5461 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5463 (eval $am_ar_try) 2>&5
5464 ac_status=$?
5465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5466 test $ac_status = 0; }
5467 if test "$ac_status" -eq 0; then
5468 am_cv_ar_interface=lib
5469 else
5470 am_cv_ar_interface=unknown
5471 fi
5472 fi
5473 rm -f conftest.lib libconftest.a
5474
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5477 ac_ext=c
5478 ac_cpp='$CPP $CPPFLAGS'
5479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482 ;;
5483 esac
5484 fi
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5486 printf "%s\n" "$am_cv_ar_interface" >&6; }
5487
5488 case $am_cv_ar_interface in
5489 ar)
5490 ;;
5491 lib)
5492 # Microsoft lib, so override with the ar-lib wrapper script.
5493 # FIXME: It is wrong to rewrite AR.
5494 # But if we don't then we get into trouble of one sort or another.
5495 # A longer-term fix would be to have automake use am__AR in this case,
5496 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5497 # similar.
5498 AR="$am_aux_dir/ar-lib $AR"
5499 ;;
5500 unknown)
5501 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5502 ;;
5503 esac
5504
5505
5506 # Check if LD supports linker scripts,
5507 # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
5508 # Check whether --enable-ld-version-script was given.
5509 if test ${enable_ld_version_script+y}
5510 then :
5511 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
5512 fi
5513
5514 if test -z "$have_ld_version_script"; then
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
5516 printf %s "checking if LD -Wl,--version-script works... " >&6; }
5517 save_LDFLAGS="$LDFLAGS"
5518 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
5519 cat > conftest.map <<EOF
5520 VERS_1 {
5521 global: sym;
5522 };
5523
5524 VERS_2 {
5525 global: sym;
5526 } VERS_1;
5527 EOF
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530
5531 int
5532 main (void)
5533 {
5534
5535 ;
5536 return 0;
5537 }
5538 _ACEOF
5539 if ac_fn_c_try_link "$LINENO"
5540 then :
5541 have_ld_version_script=yes
5542 else case e in #(
5543 e) have_ld_version_script=no ;;
5544 esac
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5547 conftest$ac_exeext conftest.$ac_ext
5548 rm -f conftest.map
5549 LDFLAGS="$save_LDFLAGS"
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
5551 printf "%s\n" "$have_ld_version_script" >&6; }
5552 fi
5553 if test "$have_ld_version_script" = "yes"; then
5554 HAVE_LD_VERSION_SCRIPT_TRUE=
5555 HAVE_LD_VERSION_SCRIPT_FALSE='#'
5556 else
5557 HAVE_LD_VERSION_SCRIPT_TRUE='#'
5558 HAVE_LD_VERSION_SCRIPT_FALSE=
5559 fi
5560
5561
5562 # See if compiler supports prototypes.
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5564 printf %s "checking for function prototypes... " >&6; }
5565 if test ${ijg_cv_have_prototypes+y}
5566 then :
5567 printf %s "(cached) " >&6
5568 else case e in #(
5569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571
5572 int testfunction (int arg1, int * arg2); /* check prototypes */
5573 struct methods_struct { /* check method-pointer declarations */
5574 int (*error_exit) (char *msgtext);
5575 int (*trace_message) (char *msgtext);
5576 int (*another_method) (void);
5577 };
5578 int testfunction (int arg1, int * arg2) /* check definitions */
5579 { return arg2[arg1]; }
5580 int test2function (void) /* check void arg list */
5581 { return 0; }
5582
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"
5585 then :
5586 ijg_cv_have_prototypes=yes
5587 else case e in #(
5588 e) ijg_cv_have_prototypes=no ;;
5589 esac
5590 fi
5591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5592 esac
5593 fi
5594
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
5596 printf "%s\n" "$ijg_cv_have_prototypes" >&6; }
5597 if test $ijg_cv_have_prototypes = yes; then
5598
5599 printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h
5600
5601 else
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not seem to know about function prototypes.
5603 Perhaps it needs a special switch to enable ANSI C mode.
5604 If so, we recommend running configure like this:
5605 ./configure CC='cc -switch'
5606 where -switch is the proper switch." >&5
5607 printf "%s\n" "$as_me: WARNING: Your compiler does not seem to know about function prototypes.
5608 Perhaps it needs a special switch to enable ANSI C mode.
5609 If so, we recommend running configure like this:
5610 ./configure CC='cc -switch'
5611 where -switch is the proper switch." >&2;}
5612 fi
5613
5614 # Check header files
5615 ac_header= ac_cache=
5616 for ac_item in $ac_header_c_list
5617 do
5618 if test $ac_cache; then
5619 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5620 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5621 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5622 fi
5623 ac_header= ac_cache=
5624 elif test $ac_header; then
5625 ac_cache=$ac_item
5626 else
5627 ac_header=$ac_item
5628 fi
5629 done
5630
5631
5632
5633
5634
5635
5636
5637
5638 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5639 then :
5640
5641 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5642
5643 fi
5644 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
5645 if test "x$ac_cv_header_stddef_h" = xyes
5646 then :
5647 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
5648
5649 fi
5650 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5651 if test "x$ac_cv_header_stdlib_h" = xyes
5652 then :
5653 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
5654
5655 fi
5656 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5657 if test "x$ac_cv_header_locale_h" = xyes
5658 then :
5659 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
5660
5661 fi
5662
5663 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5664 if test "x$ac_cv_header_string_h" = xyes
5665 then :
5666
5667 else case e in #(
5668 e)
5669 printf "%s\n" "#define NEED_BSD_STRINGS 1" >>confdefs.h
5670 ;;
5671 esac
5672 fi
5673
5674
5675 # See whether type size_t is defined in any ANSI-standard places;
5676 # if not, perhaps it is defined in <sys/types.h>.
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
5678 printf %s "checking for size_t... " >&6; }
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681
5682 #ifdef HAVE_STDDEF_H
5683 #include <stddef.h>
5684 #endif
5685 #ifdef HAVE_STDLIB_H
5686 #include <stdlib.h>
5687 #endif
5688 #include <stdio.h>
5689 #ifdef NEED_BSD_STRINGS
5690 #include <strings.h>
5691 #else
5692 #include <string.h>
5693 #endif
5694 typedef size_t my_size_t;
5695
5696 int
5697 main (void)
5698 {
5699 my_size_t foovar;
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"
5705 then :
5706 ijg_size_t_ok=yes
5707 else case e in #(
5708 e) ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h" ;;
5709 esac
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5713 printf "%s\n" "$ijg_size_t_ok" >&6; }
5714 if test "$ijg_size_t_ok" != yes; then
5715
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
5717 printf %s "checking for egrep -e... " >&6; }
5718 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
5719 then :
5720 printf %s "(cached) " >&6
5721 else case e in #(
5722 e) if test -z "$EGREP_TRADITIONAL"; then
5723 ac_path_EGREP_TRADITIONAL_found=false
5724 # Loop through the user's path and test for each of PROGNAME-LIST
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5727 do
5728 IFS=$as_save_IFS
5729 case $as_dir in #(((
5730 '') as_dir=./ ;;
5731 */) ;;
5732 *) as_dir=$as_dir/ ;;
5733 esac
5734 for ac_prog in grep ggrep
5735 do
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
5738 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
5739 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
5740 # Check for GNU $ac_path_EGREP_TRADITIONAL
5741 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
5742 *GNU*)
5743 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
5744 #(
5745 *)
5746 ac_count=0
5747 printf %s 0123456789 >"conftest.in"
5748 while :
5749 do
5750 cat "conftest.in" "conftest.in" >"conftest.tmp"
5751 mv "conftest.tmp" "conftest.in"
5752 cp "conftest.in" "conftest.nl"
5753 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
5754 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5756 as_fn_arith $ac_count + 1 && ac_count=$as_val
5757 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
5758 # Best one so far, save it but keep looking for a better one
5759 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
5760 ac_path_EGREP_TRADITIONAL_max=$ac_count
5761 fi
5762 # 10*(2^10) chars as input seems more than enough
5763 test $ac_count -gt 10 && break
5764 done
5765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5766 esac
5767
5768 $ac_path_EGREP_TRADITIONAL_found && break 3
5769 done
5770 done
5771 done
5772 IFS=$as_save_IFS
5773 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
5774 :
5775 fi
5776 else
5777 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
5778 fi
5779
5780 if test "$ac_cv_path_EGREP_TRADITIONAL"
5781 then :
5782 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
5783 else case e in #(
5784 e) if test -z "$EGREP_TRADITIONAL"; then
5785 ac_path_EGREP_TRADITIONAL_found=false
5786 # Loop through the user's path and test for each of PROGNAME-LIST
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5789 do
5790 IFS=$as_save_IFS
5791 case $as_dir in #(((
5792 '') as_dir=./ ;;
5793 */) ;;
5794 *) as_dir=$as_dir/ ;;
5795 esac
5796 for ac_prog in egrep
5797 do
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
5800 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
5801 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
5802 # Check for GNU $ac_path_EGREP_TRADITIONAL
5803 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
5804 *GNU*)
5805 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
5806 #(
5807 *)
5808 ac_count=0
5809 printf %s 0123456789 >"conftest.in"
5810 while :
5811 do
5812 cat "conftest.in" "conftest.in" >"conftest.tmp"
5813 mv "conftest.tmp" "conftest.in"
5814 cp "conftest.in" "conftest.nl"
5815 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
5816 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5818 as_fn_arith $ac_count + 1 && ac_count=$as_val
5819 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
5820 # Best one so far, save it but keep looking for a better one
5821 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
5822 ac_path_EGREP_TRADITIONAL_max=$ac_count
5823 fi
5824 # 10*(2^10) chars as input seems more than enough
5825 test $ac_count -gt 10 && break
5826 done
5827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5828 esac
5829
5830 $ac_path_EGREP_TRADITIONAL_found && break 3
5831 done
5832 done
5833 done
5834 IFS=$as_save_IFS
5835 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
5836 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5837 fi
5838 else
5839 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
5840 fi
5841 ;;
5842 esac
5843 fi ;;
5844 esac
5845 fi
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
5847 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
5848 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
5849
5850 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5851 if test "x$ac_cv_header_sys_types_h" = xyes
5852 then :
5853
5854 printf "%s\n" "#define NEED_SYS_TYPES_H 1" >>confdefs.h
5855
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858 #include <sys/types.h>
5859 _ACEOF
5860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5861 $EGREP_TRADITIONAL "size_t" >/dev/null 2>&1
5862 then :
5863 ijg_size_t_ok="size_t is in sys/types.h"
5864 else case e in #(
5865 e) ijg_size_t_ok=no ;;
5866 esac
5867 fi
5868 rm -rf conftest*
5869
5870 else case e in #(
5871 e) ijg_size_t_ok=no ;;
5872 esac
5873 fi
5874
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5876 printf "%s\n" "$ijg_size_t_ok" >&6; }
5877 if test "$ijg_size_t_ok" = no; then
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Type size_t is not defined in any of the usual places.
5879 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&5
5880 printf "%s\n" "$as_me: WARNING: Type size_t is not defined in any of the usual places.
5881 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&2;}
5882 fi
5883 fi
5884
5885 # Check compiler characteristics
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
5887 printf %s "checking for type unsigned char... " >&6; }
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890
5891 int
5892 main (void)
5893 {
5894 unsigned char un_char;
5895 ;
5896 return 0;
5897 }
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"
5900 then :
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5902 printf "%s\n" "yes" >&6; }
5903
5904 printf "%s\n" "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
5905
5906 else case e in #(
5907 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 printf "%s\n" "no" >&6; } ;;
5909 esac
5910 fi
5911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5912
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
5914 printf %s "checking for type unsigned short... " >&6; }
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917
5918 int
5919 main (void)
5920 {
5921 unsigned short un_short;
5922 ;
5923 return 0;
5924 }
5925 _ACEOF
5926 if ac_fn_c_try_compile "$LINENO"
5927 then :
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5929 printf "%s\n" "yes" >&6; }
5930
5931 printf "%s\n" "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
5932
5933 else case e in #(
5934 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 printf "%s\n" "no" >&6; } ;;
5936 esac
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5939
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
5941 printf %s "checking for type void... " >&6; }
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944
5945 /* Caution: a C++ compiler will insist on valid prototypes */
5946 typedef void * void_ptr; /* check void * */
5947 #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
5948 typedef void (*void_func) (int a, int b);
5949 #else
5950 typedef void (*void_func) ();
5951 #endif
5952
5953 #ifdef HAVE_PROTOTYPES /* check void function result */
5954 void test3function (void_ptr arg1, void_func arg2)
5955 #else
5956 void test3function (arg1, arg2)
5957 void_ptr arg1;
5958 void_func arg2;
5959 #endif
5960 {
5961 char * locptr = (char *) arg1; /* check casting to and from void * */
5962 arg1 = (void *) locptr;
5963 (*arg2) (1, 2); /* check call of fcn returning void */
5964 }
5965
5966 int
5967 main (void)
5968 {
5969
5970 ;
5971 return 0;
5972 }
5973 _ACEOF
5974 if ac_fn_c_try_compile "$LINENO"
5975 then :
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5977 printf "%s\n" "yes" >&6; }
5978 else case e in #(
5979 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 printf "%s\n" "no" >&6; }
5981
5982 printf "%s\n" "#define void char" >>confdefs.h
5983 ;;
5984 esac
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5988 printf %s "checking for an ANSI C-conforming const... " >&6; }
5989 if test ${ac_cv_c_const+y}
5990 then :
5991 printf %s "(cached) " >&6
5992 else case e in #(
5993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995
5996 int
5997 main (void)
5998 {
5999
6000 #ifndef __cplusplus
6001 /* Ultrix mips cc rejects this sort of thing. */
6002 typedef int charset[2];
6003 const charset cs = { 0, 0 };
6004 /* SunOS 4.1.1 cc rejects this. */
6005 char const *const *pcpcc;
6006 char **ppc;
6007 /* NEC SVR4.0.2 mips cc rejects this. */
6008 struct point {int x, y;};
6009 static struct point const zero = {0,0};
6010 /* IBM XL C 1.02.0.0 rejects this.
6011 It does not let you subtract one const X* pointer from another in
6012 an arm of an if-expression whose if-part is not a constant
6013 expression */
6014 const char *g = "string";
6015 pcpcc = &g + (g ? g-g : 0);
6016 /* HPUX 7.0 cc rejects these. */
6017 ++pcpcc;
6018 ppc = (char**) pcpcc;
6019 pcpcc = (char const *const *) ppc;
6020 { /* SCO 3.2v4 cc rejects this sort of thing. */
6021 char tx;
6022 char *t = &tx;
6023 char const *s = 0 ? (char *) 0 : (char const *) 0;
6024
6025 *t++ = 0;
6026 if (s) return 0;
6027 }
6028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6029 int x[] = {25, 17};
6030 const int *foo = &x[0];
6031 ++foo;
6032 }
6033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6034 typedef const int *iptr;
6035 iptr p = 0;
6036 ++p;
6037 }
6038 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
6039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6040 struct s { int j; const int *ap[3]; } bx;
6041 struct s *b = &bx; b->j = 5;
6042 }
6043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6044 const int foo = 10;
6045 if (!foo) return 0;
6046 }
6047 return !cs[0] && !zero.x;
6048 #endif
6049
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 if ac_fn_c_try_compile "$LINENO"
6055 then :
6056 ac_cv_c_const=yes
6057 else case e in #(
6058 e) ac_cv_c_const=no ;;
6059 esac
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6062 esac
6063 fi
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6065 printf "%s\n" "$ac_cv_c_const" >&6; }
6066 if test $ac_cv_c_const = no; then
6067
6068 printf "%s\n" "#define const /**/" >>confdefs.h
6069
6070 fi
6071
6072
6073 # Check for non-broken inline under various spellings
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6075 printf %s "checking for inline... " >&6; }
6076 ijg_cv_inline=""
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079
6080 int
6081 main (void)
6082 {
6083 } __inline__ int foo() { return 0; }
6084 int bar() { return foo();
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"
6090 then :
6091 ijg_cv_inline="__inline__"
6092 else case e in #(
6093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095
6096 int
6097 main (void)
6098 {
6099 } __inline int foo() { return 0; }
6100 int bar() { return foo();
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"
6106 then :
6107 ijg_cv_inline="__inline"
6108 else case e in #(
6109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111
6112 int
6113 main (void)
6114 {
6115 } inline int foo() { return 0; }
6116 int bar() { return foo();
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 if ac_fn_c_try_compile "$LINENO"
6122 then :
6123 ijg_cv_inline="inline"
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6126 esac
6127 fi
6128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6129 esac
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
6133 printf "%s\n" "$ijg_cv_inline" >&6; }
6134
6135 printf "%s\n" "#define INLINE $ijg_cv_inline" >>confdefs.h
6136
6137
6138 # We cannot check for bogus warnings, but at least we can check for errors
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
6140 printf %s "checking for broken incomplete types... " >&6; }
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143
6144 typedef struct undefined_structure * undef_struct_ptr;
6145
6146 int
6147 main (void)
6148 {
6149
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 if ac_fn_c_try_compile "$LINENO"
6155 then :
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6157 printf "%s\n" "ok" >&6; }
6158 else case e in #(
6159 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: broken" >&5
6160 printf "%s\n" "broken" >&6; }
6161
6162 printf "%s\n" "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
6163 ;;
6164 esac
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6167
6168 # Test whether global names are unique to at least 15 chars
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
6170 printf %s "checking for short external names... " >&6; }
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173
6174 int possibly_duplicate_function () { return 0; }
6175 int possibly_dupli_function () { return 1; }
6176
6177 int
6178 main (void)
6179 {
6180
6181 ;
6182 return 0;
6183 }
6184 _ACEOF
6185 if ac_fn_c_try_link "$LINENO"
6186 then :
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6188 printf "%s\n" "ok" >&6; }
6189 else case e in #(
6190 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: short" >&5
6191 printf "%s\n" "short" >&6; }
6192
6193 printf "%s\n" "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
6194 ;;
6195 esac
6196 fi
6197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6198 conftest$ac_exeext conftest.$ac_ext
6199
6200 # Run-time checks
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
6202 printf %s "checking to see if char is signed... " >&6; }
6203 if test "$cross_compiling" = yes
6204 then :
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Assuming that char is signed on target machine.
6206 If it is unsigned, this will be a little bit inefficient." >&5
6207 printf "%s\n" "$as_me: WARNING: Assuming that char is signed on target machine.
6208 If it is unsigned, this will be a little bit inefficient." >&2;}
6209
6210 else case e in #(
6211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213
6214 #ifdef HAVE_STDLIB_H
6215 #include <stdlib.h>
6216 #endif
6217 #include <stdio.h>
6218 #ifdef HAVE_PROTOTYPES
6219 int is_char_signed (int arg)
6220 #else
6221 int is_char_signed (arg)
6222 int arg;
6223 #endif
6224 {
6225 if (arg == 189) { /* expected result for unsigned char */
6226 return 0; /* type char is unsigned */
6227 }
6228 else if (arg != -67) { /* expected result for signed char */
6229 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
6230 printf("I fear the JPEG software will not work at all.\n\n");
6231 }
6232 return 1; /* assume char is signed otherwise */
6233 }
6234 char signed_char_check = (char) (-67);
6235 int main() {
6236 exit(is_char_signed((int) signed_char_check));
6237 }
6238 _ACEOF
6239 if ac_fn_c_try_run "$LINENO"
6240 then :
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 printf "%s\n" "no" >&6; }
6243
6244 printf "%s\n" "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
6245
6246 else case e in #(
6247 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6248 printf "%s\n" "yes" >&6; } ;;
6249 esac
6250 fi
6251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6252 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6253 esac
6254 fi
6255
6256
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
6258 printf %s "checking to see if right shift is signed... " >&6; }
6259 if test "$cross_compiling" = yes
6260 then :
6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
6262 printf "%s\n" "Assuming that right shift is signed on target machine." >&6; }
6263 else case e in #(
6264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266
6267 #ifdef HAVE_STDLIB_H
6268 #include <stdlib.h>
6269 #endif
6270 #include <stdio.h>
6271 #ifdef HAVE_PROTOTYPES
6272 int is_shifting_signed (long arg)
6273 #else
6274 int is_shifting_signed (arg)
6275 long arg;
6276 #endif
6277 /* See whether right-shift on a long is signed or not. */
6278 {
6279 long res = arg >> 4;
6280
6281 if (res == -0x7F7E80CL) { /* expected result for signed shift */
6282 return 1; /* right shift is signed */
6283 }
6284 /* see if unsigned-shift hack will fix it. */
6285 /* we can't just test exact value since it depends on width of long... */
6286 res |= (~0L) << (32-4);
6287 if (res == -0x7F7E80CL) { /* expected result now? */
6288 return 0; /* right shift is unsigned */
6289 }
6290 printf("Right shift isn't acting as I expect it to.\n");
6291 printf("I fear the JPEG software will not work at all.\n\n");
6292 return 0; /* try it with unsigned anyway */
6293 }
6294 int main() {
6295 exit(is_shifting_signed(-0x7F7E80B1L));
6296 }
6297 _ACEOF
6298 if ac_fn_c_try_run "$LINENO"
6299 then :
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 printf "%s\n" "no" >&6; }
6302
6303 printf "%s\n" "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
6304
6305 else case e in #(
6306 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6307 printf "%s\n" "yes" >&6; } ;;
6308 esac
6309 fi
6310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6311 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6312 esac
6313 fi
6314
6315
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
6317 printf %s "checking to see if fopen accepts b spec... " >&6; }
6318 if test "$cross_compiling" = yes
6319 then :
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
6321 printf "%s\n" "Assuming that it does." >&6; }
6322 else case e in #(
6323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325
6326 #ifdef HAVE_STDLIB_H
6327 #include <stdlib.h>
6328 #endif
6329 #include <stdio.h>
6330 int main() {
6331 if (fopen("conftestdata", "wb") != NULL)
6332 exit(0);
6333 exit(1);
6334 }
6335 _ACEOF
6336 if ac_fn_c_try_run "$LINENO"
6337 then :
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6339 printf "%s\n" "yes" >&6; }
6340 else case e in #(
6341 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 printf "%s\n" "no" >&6; }
6343
6344 printf "%s\n" "#define DONT_USE_B_MODE 1" >>confdefs.h
6345 ;;
6346 esac
6347 fi
6348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6349 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6350 esac
6351 fi
6352
6353
6354 # Configure libtool
6355 case `pwd` in
6356 *\ * | *\ *)
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6358 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6359 esac
6360
6361
6362
6363 macro_version='2.5.4'
6364 macro_revision='2.5.4'
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379 ltmain=$ac_aux_dir/ltmain.sh
6380
6381 # Backslashify metacharacters that are still active within
6382 # double-quoted strings.
6383 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6384
6385 # Same as above, but do not quote variable references.
6386 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6387
6388 # Sed substitution to delay expansion of an escaped shell variable in a
6389 # double_quote_subst'ed string.
6390 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6391
6392 # Sed substitution to delay expansion of an escaped single quote.
6393 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6394
6395 # Sed substitution to avoid accidental globbing in evaled expressions
6396 no_glob_subst='s/\*/\\\*/g'
6397
6398 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6399 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6400 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6401
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6403 printf %s "checking how to print strings... " >&6; }
6404 # Test print first, because it will be a builtin if present.
6405 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6406 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6407 ECHO='print -r --'
6408 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6409 ECHO='printf %s\n'
6410 else
6411 # Use this function as a fallback that always works.
6412 func_fallback_echo ()
6413 {
6414 eval 'cat <<_LTECHO_EOF
6415 $1
6416 _LTECHO_EOF'
6417 }
6418 ECHO='func_fallback_echo'
6419 fi
6420
6421 # func_echo_all arg...
6422 # Invoke $ECHO with all args, space-separated.
6423 func_echo_all ()
6424 {
6425 $ECHO ""
6426 }
6427
6428 case $ECHO in
6429 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6430 printf "%s\n" "printf" >&6; } ;;
6431 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6432 printf "%s\n" "print -r" >&6; } ;;
6433 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6434 printf "%s\n" "cat" >&6; } ;;
6435 esac
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6451 printf %s "checking for a sed that does not truncate output... " >&6; }
6452 if test ${ac_cv_path_SED+y}
6453 then :
6454 printf %s "(cached) " >&6
6455 else case e in #(
6456 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6457 for ac_i in 1 2 3 4 5 6 7; do
6458 ac_script="$ac_script$as_nl$ac_script"
6459 done
6460 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6461 { ac_script=; unset ac_script;}
6462 if test -z "$SED"; then
6463 ac_path_SED_found=false
6464 # Loop through the user's path and test for each of PROGNAME-LIST
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468 IFS=$as_save_IFS
6469 case $as_dir in #(((
6470 '') as_dir=./ ;;
6471 */) ;;
6472 *) as_dir=$as_dir/ ;;
6473 esac
6474 for ac_prog in sed gsed
6475 do
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6478 as_fn_executable_p "$ac_path_SED" || continue
6479 # Check for GNU ac_path_SED and select it if it is found.
6480 # Check for GNU $ac_path_SED
6481 case `"$ac_path_SED" --version 2>&1` in #(
6482 *GNU*)
6483 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6484 #(
6485 *)
6486 ac_count=0
6487 printf %s 0123456789 >"conftest.in"
6488 while :
6489 do
6490 cat "conftest.in" "conftest.in" >"conftest.tmp"
6491 mv "conftest.tmp" "conftest.in"
6492 cp "conftest.in" "conftest.nl"
6493 printf "%s\n" '' >> "conftest.nl"
6494 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6496 as_fn_arith $ac_count + 1 && ac_count=$as_val
6497 if test $ac_count -gt ${ac_path_SED_max-0}; then
6498 # Best one so far, save it but keep looking for a better one
6499 ac_cv_path_SED="$ac_path_SED"
6500 ac_path_SED_max=$ac_count
6501 fi
6502 # 10*(2^10) chars as input seems more than enough
6503 test $ac_count -gt 10 && break
6504 done
6505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6506 esac
6507
6508 $ac_path_SED_found && break 3
6509 done
6510 done
6511 done
6512 IFS=$as_save_IFS
6513 if test -z "$ac_cv_path_SED"; then
6514 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6515 fi
6516 else
6517 ac_cv_path_SED=$SED
6518 fi
6519 ;;
6520 esac
6521 fi
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6523 printf "%s\n" "$ac_cv_path_SED" >&6; }
6524 SED="$ac_cv_path_SED"
6525 rm -f conftest.sed
6526
6527 test -z "$SED" && SED=sed
6528 Xsed="$SED -e 1s/^X//"
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6541 printf %s "checking for fgrep... " >&6; }
6542 if test ${ac_cv_path_FGREP+y}
6543 then :
6544 printf %s "(cached) " >&6
6545 else case e in #(
6546 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6547 then ac_cv_path_FGREP="$GREP -F"
6548 else
6549 if test -z "$FGREP"; then
6550 ac_path_FGREP_found=false
6551 # Loop through the user's path and test for each of PROGNAME-LIST
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6554 do
6555 IFS=$as_save_IFS
6556 case $as_dir in #(((
6557 '') as_dir=./ ;;
6558 */) ;;
6559 *) as_dir=$as_dir/ ;;
6560 esac
6561 for ac_prog in fgrep
6562 do
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6565 as_fn_executable_p "$ac_path_FGREP" || continue
6566 # Check for GNU ac_path_FGREP and select it if it is found.
6567 # Check for GNU $ac_path_FGREP
6568 case `"$ac_path_FGREP" --version 2>&1` in #(
6569 *GNU*)
6570 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6571 #(
6572 *)
6573 ac_count=0
6574 printf %s 0123456789 >"conftest.in"
6575 while :
6576 do
6577 cat "conftest.in" "conftest.in" >"conftest.tmp"
6578 mv "conftest.tmp" "conftest.in"
6579 cp "conftest.in" "conftest.nl"
6580 printf "%s\n" 'FGREP' >> "conftest.nl"
6581 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6583 as_fn_arith $ac_count + 1 && ac_count=$as_val
6584 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6585 # Best one so far, save it but keep looking for a better one
6586 ac_cv_path_FGREP="$ac_path_FGREP"
6587 ac_path_FGREP_max=$ac_count
6588 fi
6589 # 10*(2^10) chars as input seems more than enough
6590 test $ac_count -gt 10 && break
6591 done
6592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6593 esac
6594
6595 $ac_path_FGREP_found && break 3
6596 done
6597 done
6598 done
6599 IFS=$as_save_IFS
6600 if test -z "$ac_cv_path_FGREP"; then
6601 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6602 fi
6603 else
6604 ac_cv_path_FGREP=$FGREP
6605 fi
6606
6607 fi ;;
6608 esac
6609 fi
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6611 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6612 FGREP="$ac_cv_path_FGREP"
6613
6614
6615 test -z "$GREP" && GREP=grep
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635 # Check whether --with-gnu-ld was given.
6636 if test ${with_gnu_ld+y}
6637 then :
6638 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6639 else case e in #(
6640 e) with_gnu_ld=no ;;
6641 esac
6642 fi
6643
6644 ac_prog=ld
6645 if test yes = "$GCC"; then
6646 # Check if gcc -print-prog-name=ld gives a path.
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6648 printf %s "checking for ld used by $CC... " >&6; }
6649 case $host in
6650 *-*-mingw* | *-*-windows*)
6651 # gcc leaves a trailing carriage return, which upsets mingw
6652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6653 *)
6654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6655 esac
6656 case $ac_prog in
6657 # Accept absolute paths.
6658 [\\/]* | ?:[\\/]*)
6659 re_direlt='/[^/][^/]*/\.\./'
6660 # Canonicalize the pathname of ld
6661 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6662 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6663 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6664 done
6665 test -z "$LD" && LD=$ac_prog
6666 ;;
6667 "")
6668 # If it fails, then pretend we aren't using GCC.
6669 ac_prog=ld
6670 ;;
6671 *)
6672 # If it is relative, then search for the first ld in PATH.
6673 with_gnu_ld=unknown
6674 ;;
6675 esac
6676 elif test yes = "$with_gnu_ld"; then
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6678 printf %s "checking for GNU ld... " >&6; }
6679 else
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6681 printf %s "checking for non-GNU ld... " >&6; }
6682 fi
6683 if test ${lt_cv_path_LD+y}
6684 then :
6685 printf %s "(cached) " >&6
6686 else case e in #(
6687 e) if test -z "$LD"; then
6688 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6689 for ac_dir in $PATH; do
6690 IFS=$lt_save_ifs
6691 test -z "$ac_dir" && ac_dir=.
6692 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6693 lt_cv_path_LD=$ac_dir/$ac_prog
6694 # Check to see if the program is GNU ld. I'd rather use --version,
6695 # but apparently some variants of GNU ld only accept -v.
6696 # Break only if it was the GNU/non-GNU ld that we prefer.
6697 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6698 *GNU* | *'with BFD'*)
6699 test no != "$with_gnu_ld" && break
6700 ;;
6701 *)
6702 test yes != "$with_gnu_ld" && break
6703 ;;
6704 esac
6705 fi
6706 done
6707 IFS=$lt_save_ifs
6708 else
6709 lt_cv_path_LD=$LD # Let the user override the test with a path.
6710 fi ;;
6711 esac
6712 fi
6713
6714 LD=$lt_cv_path_LD
6715 if test -n "$LD"; then
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6717 printf "%s\n" "$LD" >&6; }
6718 else
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 printf "%s\n" "no" >&6; }
6721 fi
6722 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6724 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6725 if test ${lt_cv_prog_gnu_ld+y}
6726 then :
6727 printf %s "(cached) " >&6
6728 else case e in #(
6729 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6730 case `$LD -v 2>&1 </dev/null` in
6731 *GNU* | *'with BFD'*)
6732 lt_cv_prog_gnu_ld=yes
6733 ;;
6734 *)
6735 lt_cv_prog_gnu_ld=no
6736 ;;
6737 esac ;;
6738 esac
6739 fi
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6741 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6742 with_gnu_ld=$lt_cv_prog_gnu_ld
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6753 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6754 if test ${lt_cv_path_NM+y}
6755 then :
6756 printf %s "(cached) " >&6
6757 else case e in #(
6758 e) if test -n "$NM"; then
6759 # Let the user override the test.
6760 lt_cv_path_NM=$NM
6761 else
6762 lt_nm_to_check=${ac_tool_prefix}nm
6763 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6764 lt_nm_to_check="$lt_nm_to_check nm"
6765 fi
6766 for lt_tmp_nm in $lt_nm_to_check; do
6767 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6768 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6769 IFS=$lt_save_ifs
6770 test -z "$ac_dir" && ac_dir=.
6771 tmp_nm=$ac_dir/$lt_tmp_nm
6772 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6773 # Check to see if the nm accepts a BSD-compat flag.
6774 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6775 # nm: unknown option "B" ignored
6776 # Tru64's nm complains that /dev/null is an invalid object file
6777 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6778 case $build_os in
6779 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6780 *) lt_bad_file=/dev/null ;;
6781 esac
6782 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6783 *$lt_bad_file* | *'Invalid file or object type'*)
6784 lt_cv_path_NM="$tmp_nm -B"
6785 break 2
6786 ;;
6787 *)
6788 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6789 */dev/null*)
6790 lt_cv_path_NM="$tmp_nm -p"
6791 break 2
6792 ;;
6793 *)
6794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6795 continue # so that we can try to find one that supports BSD flags
6796 ;;
6797 esac
6798 ;;
6799 esac
6800 fi
6801 done
6802 IFS=$lt_save_ifs
6803 done
6804 : ${lt_cv_path_NM=no}
6805 fi ;;
6806 esac
6807 fi
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6809 printf "%s\n" "$lt_cv_path_NM" >&6; }
6810 if test no != "$lt_cv_path_NM"; then
6811 NM=$lt_cv_path_NM
6812 else
6813 # Didn't find any BSD compatible name lister, look for dumpbin.
6814 if test -n "$DUMPBIN"; then :
6815 # Let the user override the test.
6816 else
6817 if test -n "$ac_tool_prefix"; then
6818 for ac_prog in dumpbin "link -dump"
6819 do
6820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 printf %s "checking for $ac_word... " >&6; }
6824 if test ${ac_cv_prog_DUMPBIN+y}
6825 then :
6826 printf %s "(cached) " >&6
6827 else case e in #(
6828 e) if test -n "$DUMPBIN"; then
6829 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 case $as_dir in #(((
6836 '') as_dir=./ ;;
6837 */) ;;
6838 *) as_dir=$as_dir/ ;;
6839 esac
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi ;;
6851 esac
6852 fi
6853 DUMPBIN=$ac_cv_prog_DUMPBIN
6854 if test -n "$DUMPBIN"; then
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6856 printf "%s\n" "$DUMPBIN" >&6; }
6857 else
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 printf "%s\n" "no" >&6; }
6860 fi
6861
6862
6863 test -n "$DUMPBIN" && break
6864 done
6865 fi
6866 if test -z "$DUMPBIN"; then
6867 ac_ct_DUMPBIN=$DUMPBIN
6868 for ac_prog in dumpbin "link -dump"
6869 do
6870 # Extract the first word of "$ac_prog", so it can be a program name with args.
6871 set dummy $ac_prog; ac_word=$2
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 printf %s "checking for $ac_word... " >&6; }
6874 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6875 then :
6876 printf %s "(cached) " >&6
6877 else case e in #(
6878 e) if test -n "$ac_ct_DUMPBIN"; then
6879 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884 IFS=$as_save_IFS
6885 case $as_dir in #(((
6886 '') as_dir=./ ;;
6887 */) ;;
6888 *) as_dir=$as_dir/ ;;
6889 esac
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi ;;
6901 esac
6902 fi
6903 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6904 if test -n "$ac_ct_DUMPBIN"; then
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6906 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6907 else
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 printf "%s\n" "no" >&6; }
6910 fi
6911
6912
6913 test -n "$ac_ct_DUMPBIN" && break
6914 done
6915
6916 if test "x$ac_ct_DUMPBIN" = x; then
6917 DUMPBIN=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6924 esac
6925 DUMPBIN=$ac_ct_DUMPBIN
6926 fi
6927 fi
6928
6929 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6930 *COFF*)
6931 DUMPBIN="$DUMPBIN -symbols -headers"
6932 ;;
6933 *)
6934 DUMPBIN=:
6935 ;;
6936 esac
6937 fi
6938
6939 if test : != "$DUMPBIN"; then
6940 NM=$DUMPBIN
6941 fi
6942 fi
6943 test -z "$NM" && NM=nm
6944
6945
6946
6947
6948
6949
6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6951 printf %s "checking the name lister ($NM) interface... " >&6; }
6952 if test ${lt_cv_nm_interface+y}
6953 then :
6954 printf %s "(cached) " >&6
6955 else case e in #(
6956 e) lt_cv_nm_interface="BSD nm"
6957 echo "int some_variable = 0;" > conftest.$ac_ext
6958 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6959 (eval "$ac_compile" 2>conftest.err)
6960 cat conftest.err >&5
6961 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6962 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6963 cat conftest.err >&5
6964 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6965 cat conftest.out >&5
6966 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6967 lt_cv_nm_interface="MS dumpbin"
6968 fi
6969 rm -f conftest* ;;
6970 esac
6971 fi
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6973 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6974
6975 # find the maximum length of command line arguments
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6977 printf %s "checking the maximum length of command line arguments... " >&6; }
6978 if test ${lt_cv_sys_max_cmd_len+y}
6979 then :
6980 printf %s "(cached) " >&6
6981 else case e in #(
6982 e) i=0
6983 teststring=ABCD
6984
6985 case $build_os in
6986 msdosdjgpp*)
6987 # On DJGPP, this test can blow up pretty badly due to problems in libc
6988 # (any single argument exceeding 2000 bytes causes a buffer overrun
6989 # during glob expansion). Even if it were fixed, the result of this
6990 # check would be larger than it should be.
6991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6992 ;;
6993
6994 gnu* | ironclad*)
6995 # Under GNU Hurd and Ironclad, this test is not required because there
6996 # is no limit to the length of command line arguments.
6997 # Libtool will interpret -1 as no limit whatsoever
6998 lt_cv_sys_max_cmd_len=-1;
6999 ;;
7000
7001 cygwin* | mingw* | windows* | cegcc*)
7002 # On Win9x/ME, this test blows up -- it succeeds, but takes
7003 # about 5 minutes as the teststring grows exponentially.
7004 # Worse, since 9x/ME are not pre-emptively multitasking,
7005 # you end up with a "frozen" computer, even though with patience
7006 # the test eventually succeeds (with a max line length of 256k).
7007 # Instead, let's just punt: use the minimum linelength reported by
7008 # all of the supported platforms: 8192 (on NT/2K/XP).
7009 lt_cv_sys_max_cmd_len=8192;
7010 ;;
7011
7012 mint*)
7013 # On MiNT this can take a long time and run out of memory.
7014 lt_cv_sys_max_cmd_len=8192;
7015 ;;
7016
7017 amigaos*)
7018 # On AmigaOS with pdksh, this test takes hours, literally.
7019 # So we just punt and use a minimum line length of 8192.
7020 lt_cv_sys_max_cmd_len=8192;
7021 ;;
7022
7023 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7024 # This has been around since 386BSD, at least. Likely further.
7025 if test -x /sbin/sysctl; then
7026 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7027 elif test -x /usr/sbin/sysctl; then
7028 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7029 else
7030 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7031 fi
7032 # And add a safety zone
7033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7035 ;;
7036
7037 interix*)
7038 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7039 lt_cv_sys_max_cmd_len=196608
7040 ;;
7041
7042 os2*)
7043 # The test takes a long time on OS/2.
7044 lt_cv_sys_max_cmd_len=8192
7045 ;;
7046
7047 osf*)
7048 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7049 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7050 # nice to cause kernel panics so lets avoid the loop below.
7051 # First set a reasonable default.
7052 lt_cv_sys_max_cmd_len=16384
7053 #
7054 if test -x /sbin/sysconfig; then
7055 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7056 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7057 esac
7058 fi
7059 ;;
7060 sco3.2v5*)
7061 lt_cv_sys_max_cmd_len=102400
7062 ;;
7063 sysv5* | sco5v6* | sysv4.2uw2*)
7064 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7065 if test -n "$kargmax"; then
7066 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7067 else
7068 lt_cv_sys_max_cmd_len=32768
7069 fi
7070 ;;
7071 *)
7072 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7073 if test -n "$lt_cv_sys_max_cmd_len" && \
7074 test undefined != "$lt_cv_sys_max_cmd_len"; then
7075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7077 else
7078 # Make teststring a little bigger before we do anything with it.
7079 # a 1K string should be a reasonable start.
7080 for i in 1 2 3 4 5 6 7 8; do
7081 teststring=$teststring$teststring
7082 done
7083 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7084 # If test is not a shell built-in, we'll probably end up computing a
7085 # maximum length that is only half of the actual maximum length, but
7086 # we can't tell.
7087 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7088 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7089 test 17 != "$i" # 1/2 MB should be enough
7090 do
7091 i=`expr $i + 1`
7092 teststring=$teststring$teststring
7093 done
7094 # Only check the string length outside the loop.
7095 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7096 teststring=
7097 # Add a significant safety factor because C++ compilers can tack on
7098 # massive amounts of additional arguments before passing them to the
7099 # linker. It appears as though 1/2 is a usable value.
7100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7101 fi
7102 ;;
7103 esac
7104 ;;
7105 esac
7106 fi
7107
7108 if test -n "$lt_cv_sys_max_cmd_len"; then
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7110 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7111 else
7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7113 printf "%s\n" "none" >&6; }
7114 fi
7115 max_cmd_len=$lt_cv_sys_max_cmd_len
7116
7117
7118
7119
7120
7121
7122 : ${CP="cp -f"}
7123 : ${MV="mv -f"}
7124 : ${RM="rm -f"}
7125
7126 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7127 lt_unset=unset
7128 else
7129 lt_unset=false
7130 fi
7131
7132
7133
7134
7135
7136 # test EBCDIC or ASCII
7137 case `echo X|tr X '\101'` in
7138 A) # ASCII based system
7139 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7140 lt_SP2NL='tr \040 \012'
7141 lt_NL2SP='tr \015\012 \040\040'
7142 ;;
7143 *) # EBCDIC based system
7144 lt_SP2NL='tr \100 \n'
7145 lt_NL2SP='tr \r\n \100\100'
7146 ;;
7147 esac
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7158 printf %s "checking how to convert $build file names to $host format... " >&6; }
7159 if test ${lt_cv_to_host_file_cmd+y}
7160 then :
7161 printf %s "(cached) " >&6
7162 else case e in #(
7163 e) case $host in
7164 *-*-mingw* )
7165 case $build in
7166 *-*-mingw* | *-*-windows* ) # actually msys
7167 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7168 ;;
7169 *-*-cygwin* )
7170 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7171 ;;
7172 * ) # otherwise, assume *nix
7173 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7174 ;;
7175 esac
7176 ;;
7177 *-*-cygwin* )
7178 case $build in
7179 *-*-mingw* | *-*-windows* ) # actually msys
7180 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7181 ;;
7182 *-*-cygwin* )
7183 lt_cv_to_host_file_cmd=func_convert_file_noop
7184 ;;
7185 * ) # otherwise, assume *nix
7186 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7187 ;;
7188 esac
7189 ;;
7190 * ) # unhandled hosts (and "normal" native builds)
7191 lt_cv_to_host_file_cmd=func_convert_file_noop
7192 ;;
7193 esac
7194 ;;
7195 esac
7196 fi
7197
7198 to_host_file_cmd=$lt_cv_to_host_file_cmd
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7200 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7201
7202
7203
7204
7205
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7207 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7208 if test ${lt_cv_to_tool_file_cmd+y}
7209 then :
7210 printf %s "(cached) " >&6
7211 else case e in #(
7212 e) #assume ordinary cross tools, or native build.
7213 lt_cv_to_tool_file_cmd=func_convert_file_noop
7214 case $host in
7215 *-*-mingw* | *-*-windows* )
7216 case $build in
7217 *-*-mingw* | *-*-windows* ) # actually msys
7218 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7219 ;;
7220 esac
7221 ;;
7222 esac
7223 ;;
7224 esac
7225 fi
7226
7227 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7229 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7230
7231
7232
7233
7234
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7236 printf %s "checking for $LD option to reload object files... " >&6; }
7237 if test ${lt_cv_ld_reload_flag+y}
7238 then :
7239 printf %s "(cached) " >&6
7240 else case e in #(
7241 e) lt_cv_ld_reload_flag='-r' ;;
7242 esac
7243 fi
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7245 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7246 reload_flag=$lt_cv_ld_reload_flag
7247 case $reload_flag in
7248 "" | " "*) ;;
7249 *) reload_flag=" $reload_flag" ;;
7250 esac
7251 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7252 case $host_os in
7253 cygwin* | mingw* | windows* | pw32* | cegcc*)
7254 if test yes != "$GCC"; then
7255 reload_cmds=false
7256 fi
7257 ;;
7258 darwin*)
7259 if test yes = "$GCC"; then
7260 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7261 else
7262 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7263 fi
7264 ;;
7265 esac
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275 # Extract the first word of "file", so it can be a program name with args.
7276 set dummy file; ac_word=$2
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 printf %s "checking for $ac_word... " >&6; }
7279 if test ${ac_cv_prog_FILECMD+y}
7280 then :
7281 printf %s "(cached) " >&6
7282 else case e in #(
7283 e) if test -n "$FILECMD"; then
7284 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289 IFS=$as_save_IFS
7290 case $as_dir in #(((
7291 '') as_dir=./ ;;
7292 */) ;;
7293 *) as_dir=$as_dir/ ;;
7294 esac
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7297 ac_cv_prog_FILECMD="file"
7298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7306 fi ;;
7307 esac
7308 fi
7309 FILECMD=$ac_cv_prog_FILECMD
7310 if test -n "$FILECMD"; then
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7312 printf "%s\n" "$FILECMD" >&6; }
7313 else
7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 printf "%s\n" "no" >&6; }
7316 fi
7317
7318
7319
7320
7321
7322
7323
7324
7325 if test -n "$ac_tool_prefix"; then
7326 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7327 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 printf %s "checking for $ac_word... " >&6; }
7330 if test ${ac_cv_prog_OBJDUMP+y}
7331 then :
7332 printf %s "(cached) " >&6
7333 else case e in #(
7334 e) if test -n "$OBJDUMP"; then
7335 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340 IFS=$as_save_IFS
7341 case $as_dir in #(((
7342 '') as_dir=./ ;;
7343 */) ;;
7344 *) as_dir=$as_dir/ ;;
7345 esac
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352 done
7353 done
7354 IFS=$as_save_IFS
7355
7356 fi ;;
7357 esac
7358 fi
7359 OBJDUMP=$ac_cv_prog_OBJDUMP
7360 if test -n "$OBJDUMP"; then
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7362 printf "%s\n" "$OBJDUMP" >&6; }
7363 else
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 printf "%s\n" "no" >&6; }
7366 fi
7367
7368
7369 fi
7370 if test -z "$ac_cv_prog_OBJDUMP"; then
7371 ac_ct_OBJDUMP=$OBJDUMP
7372 # Extract the first word of "objdump", so it can be a program name with args.
7373 set dummy objdump; ac_word=$2
7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 printf %s "checking for $ac_word... " >&6; }
7376 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7377 then :
7378 printf %s "(cached) " >&6
7379 else case e in #(
7380 e) if test -n "$ac_ct_OBJDUMP"; then
7381 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386 IFS=$as_save_IFS
7387 case $as_dir in #(((
7388 '') as_dir=./ ;;
7389 */) ;;
7390 *) as_dir=$as_dir/ ;;
7391 esac
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402 fi ;;
7403 esac
7404 fi
7405 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7406 if test -n "$ac_ct_OBJDUMP"; then
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7408 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7409 else
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 printf "%s\n" "no" >&6; }
7412 fi
7413
7414 if test "x$ac_ct_OBJDUMP" = x; then
7415 OBJDUMP="false"
7416 else
7417 case $cross_compiling:$ac_tool_warned in
7418 yes:)
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7420 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7421 ac_tool_warned=yes ;;
7422 esac
7423 OBJDUMP=$ac_ct_OBJDUMP
7424 fi
7425 else
7426 OBJDUMP="$ac_cv_prog_OBJDUMP"
7427 fi
7428
7429 test -z "$OBJDUMP" && OBJDUMP=objdump
7430
7431
7432
7433
7434
7435
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7437 printf %s "checking how to recognize dependent libraries... " >&6; }
7438 if test ${lt_cv_deplibs_check_method+y}
7439 then :
7440 printf %s "(cached) " >&6
7441 else case e in #(
7442 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7443 lt_cv_file_magic_test_file=
7444 lt_cv_deplibs_check_method='unknown'
7445 # Need to set the preceding variable on all platforms that support
7446 # interlibrary dependencies.
7447 # 'none' -- dependencies not supported.
7448 # 'unknown' -- same as none, but documents that we really don't know.
7449 # 'pass_all' -- all dependencies passed with no checks.
7450 # 'file_magic [[regex]]' -- check by looking for files in library path
7451 # that responds to the $file_magic_cmd with a given extended regex.
7452 # If you have 'file' or equivalent on your system and you're not sure
7453 # whether 'pass_all' will *always* work, you probably want this one.
7454
7455 case $host_os in
7456 aix[4-9]*)
7457 lt_cv_deplibs_check_method=pass_all
7458 ;;
7459
7460 beos*)
7461 lt_cv_deplibs_check_method=pass_all
7462 ;;
7463
7464 bsdi[45]*)
7465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7466 lt_cv_file_magic_cmd='$FILECMD -L'
7467 lt_cv_file_magic_test_file=/shlib/libc.so
7468 ;;
7469
7470 cygwin*)
7471 # func_win32_libid is a shell function defined in ltmain.sh
7472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7473 lt_cv_file_magic_cmd='func_win32_libid'
7474 ;;
7475
7476 mingw* | windows* | pw32*)
7477 # Base MSYS/MinGW do not provide the 'file' command needed by
7478 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7479 # unless we find 'file', for example because we are cross-compiling.
7480 if ( file / ) >/dev/null 2>&1; then
7481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7482 lt_cv_file_magic_cmd='func_win32_libid'
7483 else
7484 # Keep this pattern in sync with the one in func_win32_libid.
7485 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7486 lt_cv_file_magic_cmd='$OBJDUMP -f'
7487 fi
7488 ;;
7489
7490 cegcc*)
7491 # use the weaker test based on 'objdump'. See mingw*.
7492 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7493 lt_cv_file_magic_cmd='$OBJDUMP -f'
7494 ;;
7495
7496 darwin* | rhapsody*)
7497 lt_cv_deplibs_check_method=pass_all
7498 ;;
7499
7500 freebsd* | dragonfly* | midnightbsd*)
7501 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7502 case $host_cpu in
7503 i*86 )
7504 # Not sure whether the presence of OpenBSD here was a mistake.
7505 # Let's accept both of them until this is cleared up.
7506 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7507 lt_cv_file_magic_cmd=$FILECMD
7508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7509 ;;
7510 esac
7511 else
7512 lt_cv_deplibs_check_method=pass_all
7513 fi
7514 ;;
7515
7516 haiku*)
7517 lt_cv_deplibs_check_method=pass_all
7518 ;;
7519
7520 hpux10.20* | hpux11*)
7521 lt_cv_file_magic_cmd=$FILECMD
7522 case $host_cpu in
7523 ia64*)
7524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7525 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7526 ;;
7527 hppa*64*)
7528 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]'
7529 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7530 ;;
7531 *)
7532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7533 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7534 ;;
7535 esac
7536 ;;
7537
7538 interix[3-9]*)
7539 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7541 ;;
7542
7543 irix5* | irix6* | nonstopux*)
7544 case $LD in
7545 *-32|*"-32 ") libmagic=32-bit;;
7546 *-n32|*"-n32 ") libmagic=N32;;
7547 *-64|*"-64 ") libmagic=64-bit;;
7548 *) libmagic=never-match;;
7549 esac
7550 lt_cv_deplibs_check_method=pass_all
7551 ;;
7552
7553 # This must be glibc/ELF.
7554 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7555 lt_cv_deplibs_check_method=pass_all
7556 ;;
7557
7558 *-mlibc)
7559 lt_cv_deplibs_check_method=pass_all
7560 ;;
7561
7562 netbsd* | netbsdelf*-gnu)
7563 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7565 else
7566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7567 fi
7568 ;;
7569
7570 newos6*)
7571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7572 lt_cv_file_magic_cmd=$FILECMD
7573 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7574 ;;
7575
7576 *nto* | *qnx*)
7577 lt_cv_deplibs_check_method=pass_all
7578 ;;
7579
7580 openbsd*)
7581 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7583 else
7584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7585 fi
7586 ;;
7587
7588 osf3* | osf4* | osf5*)
7589 lt_cv_deplibs_check_method=pass_all
7590 ;;
7591
7592 rdos*)
7593 lt_cv_deplibs_check_method=pass_all
7594 ;;
7595
7596 serenity*)
7597 lt_cv_deplibs_check_method=pass_all
7598 ;;
7599
7600 solaris*)
7601 lt_cv_deplibs_check_method=pass_all
7602 ;;
7603
7604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7605 lt_cv_deplibs_check_method=pass_all
7606 ;;
7607
7608 sysv4 | sysv4.3*)
7609 case $host_vendor in
7610 motorola)
7611 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]'
7612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7613 ;;
7614 ncr)
7615 lt_cv_deplibs_check_method=pass_all
7616 ;;
7617 sequent)
7618 lt_cv_file_magic_cmd='/bin/file'
7619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7620 ;;
7621 sni)
7622 lt_cv_file_magic_cmd='/bin/file'
7623 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7624 lt_cv_file_magic_test_file=/lib/libc.so
7625 ;;
7626 siemens)
7627 lt_cv_deplibs_check_method=pass_all
7628 ;;
7629 pc)
7630 lt_cv_deplibs_check_method=pass_all
7631 ;;
7632 esac
7633 ;;
7634
7635 tpf*)
7636 lt_cv_deplibs_check_method=pass_all
7637 ;;
7638 os2*)
7639 lt_cv_deplibs_check_method=pass_all
7640 ;;
7641 esac
7642 ;;
7643 esac
7644 fi
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7646 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7647
7648 file_magic_glob=
7649 want_nocaseglob=no
7650 if test "$build" = "$host"; then
7651 case $host_os in
7652 mingw* | windows* | pw32*)
7653 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7654 want_nocaseglob=yes
7655 else
7656 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7657 fi
7658 ;;
7659 esac
7660 fi
7661
7662 file_magic_cmd=$lt_cv_file_magic_cmd
7663 deplibs_check_method=$lt_cv_deplibs_check_method
7664 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 printf %s "checking for $ac_word... " >&6; }
7692 if test ${ac_cv_prog_DLLTOOL+y}
7693 then :
7694 printf %s "(cached) " >&6
7695 else case e in #(
7696 e) if test -n "$DLLTOOL"; then
7697 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702 IFS=$as_save_IFS
7703 case $as_dir in #(((
7704 '') as_dir=./ ;;
7705 */) ;;
7706 *) as_dir=$as_dir/ ;;
7707 esac
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7710 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714 done
7715 done
7716 IFS=$as_save_IFS
7717
7718 fi ;;
7719 esac
7720 fi
7721 DLLTOOL=$ac_cv_prog_DLLTOOL
7722 if test -n "$DLLTOOL"; then
7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7724 printf "%s\n" "$DLLTOOL" >&6; }
7725 else
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 printf "%s\n" "no" >&6; }
7728 fi
7729
7730
7731 fi
7732 if test -z "$ac_cv_prog_DLLTOOL"; then
7733 ac_ct_DLLTOOL=$DLLTOOL
7734 # Extract the first word of "dlltool", so it can be a program name with args.
7735 set dummy dlltool; ac_word=$2
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 printf %s "checking for $ac_word... " >&6; }
7738 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7739 then :
7740 printf %s "(cached) " >&6
7741 else case e in #(
7742 e) if test -n "$ac_ct_DLLTOOL"; then
7743 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748 IFS=$as_save_IFS
7749 case $as_dir in #(((
7750 '') as_dir=./ ;;
7751 */) ;;
7752 *) as_dir=$as_dir/ ;;
7753 esac
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7756 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7758 break 2
7759 fi
7760 done
7761 done
7762 IFS=$as_save_IFS
7763
7764 fi ;;
7765 esac
7766 fi
7767 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7768 if test -n "$ac_ct_DLLTOOL"; then
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7770 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7771 else
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 printf "%s\n" "no" >&6; }
7774 fi
7775
7776 if test "x$ac_ct_DLLTOOL" = x; then
7777 DLLTOOL="false"
7778 else
7779 case $cross_compiling:$ac_tool_warned in
7780 yes:)
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7783 ac_tool_warned=yes ;;
7784 esac
7785 DLLTOOL=$ac_ct_DLLTOOL
7786 fi
7787 else
7788 DLLTOOL="$ac_cv_prog_DLLTOOL"
7789 fi
7790
7791 test -z "$DLLTOOL" && DLLTOOL=dlltool
7792
7793
7794
7795
7796
7797
7798
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7800 printf %s "checking how to associate runtime and link libraries... " >&6; }
7801 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7802 then :
7803 printf %s "(cached) " >&6
7804 else case e in #(
7805 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7806
7807 case $host_os in
7808 cygwin* | mingw* | windows* | pw32* | cegcc*)
7809 # two different shell functions defined in ltmain.sh;
7810 # decide which one to use based on capabilities of $DLLTOOL
7811 case `$DLLTOOL --help 2>&1` in
7812 *--identify-strict*)
7813 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7814 ;;
7815 *)
7816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7817 ;;
7818 esac
7819 ;;
7820 *)
7821 # fallback: assume linklib IS sharedlib
7822 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7823 ;;
7824 esac
7825 ;;
7826 esac
7827 fi
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7829 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7830 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7831 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7832
7833
7834
7835
7836
7837
7838
7839 if test -n "$ac_tool_prefix"; then
7840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 printf %s "checking for $ac_word... " >&6; }
7844 if test ${ac_cv_prog_RANLIB+y}
7845 then :
7846 printf %s "(cached) " >&6
7847 else case e in #(
7848 e) if test -n "$RANLIB"; then
7849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 case $as_dir in #(((
7856 '') as_dir=./ ;;
7857 */) ;;
7858 *) as_dir=$as_dir/ ;;
7859 esac
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 fi ;;
7871 esac
7872 fi
7873 RANLIB=$ac_cv_prog_RANLIB
7874 if test -n "$RANLIB"; then
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7876 printf "%s\n" "$RANLIB" >&6; }
7877 else
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 printf "%s\n" "no" >&6; }
7880 fi
7881
7882
7883 fi
7884 if test -z "$ac_cv_prog_RANLIB"; then
7885 ac_ct_RANLIB=$RANLIB
7886 # Extract the first word of "ranlib", so it can be a program name with args.
7887 set dummy ranlib; ac_word=$2
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 printf %s "checking for $ac_word... " >&6; }
7890 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7891 then :
7892 printf %s "(cached) " >&6
7893 else case e in #(
7894 e) if test -n "$ac_ct_RANLIB"; then
7895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900 IFS=$as_save_IFS
7901 case $as_dir in #(((
7902 '') as_dir=./ ;;
7903 */) ;;
7904 *) as_dir=$as_dir/ ;;
7905 esac
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_ac_ct_RANLIB="ranlib"
7909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912 done
7913 done
7914 IFS=$as_save_IFS
7915
7916 fi ;;
7917 esac
7918 fi
7919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7920 if test -n "$ac_ct_RANLIB"; then
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7922 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7923 else
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 printf "%s\n" "no" >&6; }
7926 fi
7927
7928 if test "x$ac_ct_RANLIB" = x; then
7929 RANLIB=":"
7930 else
7931 case $cross_compiling:$ac_tool_warned in
7932 yes:)
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935 ac_tool_warned=yes ;;
7936 esac
7937 RANLIB=$ac_ct_RANLIB
7938 fi
7939 else
7940 RANLIB="$ac_cv_prog_RANLIB"
7941 fi
7942
7943 if test -n "$ac_tool_prefix"; then
7944 for ac_prog in ar
7945 do
7946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 printf %s "checking for $ac_word... " >&6; }
7950 if test ${ac_cv_prog_AR+y}
7951 then :
7952 printf %s "(cached) " >&6
7953 else case e in #(
7954 e) if test -n "$AR"; then
7955 ac_cv_prog_AR="$AR" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960 IFS=$as_save_IFS
7961 case $as_dir in #(((
7962 '') as_dir=./ ;;
7963 */) ;;
7964 *) as_dir=$as_dir/ ;;
7965 esac
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7968 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972 done
7973 done
7974 IFS=$as_save_IFS
7975
7976 fi ;;
7977 esac
7978 fi
7979 AR=$ac_cv_prog_AR
7980 if test -n "$AR"; then
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7982 printf "%s\n" "$AR" >&6; }
7983 else
7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 printf "%s\n" "no" >&6; }
7986 fi
7987
7988
7989 test -n "$AR" && break
7990 done
7991 fi
7992 if test -z "$AR"; then
7993 ac_ct_AR=$AR
7994 for ac_prog in ar
7995 do
7996 # Extract the first word of "$ac_prog", so it can be a program name with args.
7997 set dummy $ac_prog; ac_word=$2
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 printf %s "checking for $ac_word... " >&6; }
8000 if test ${ac_cv_prog_ac_ct_AR+y}
8001 then :
8002 printf %s "(cached) " >&6
8003 else case e in #(
8004 e) if test -n "$ac_ct_AR"; then
8005 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010 IFS=$as_save_IFS
8011 case $as_dir in #(((
8012 '') as_dir=./ ;;
8013 */) ;;
8014 *) as_dir=$as_dir/ ;;
8015 esac
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_ac_ct_AR="$ac_prog"
8019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022 done
8023 done
8024 IFS=$as_save_IFS
8025
8026 fi ;;
8027 esac
8028 fi
8029 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8030 if test -n "$ac_ct_AR"; then
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8032 printf "%s\n" "$ac_ct_AR" >&6; }
8033 else
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 printf "%s\n" "no" >&6; }
8036 fi
8037
8038
8039 test -n "$ac_ct_AR" && break
8040 done
8041
8042 if test "x$ac_ct_AR" = x; then
8043 AR="false"
8044 else
8045 case $cross_compiling:$ac_tool_warned in
8046 yes:)
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049 ac_tool_warned=yes ;;
8050 esac
8051 AR=$ac_ct_AR
8052 fi
8053 fi
8054
8055 : ${AR=ar}
8056
8057
8058
8059
8060
8061
8062 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8063 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8064 # higher priority because that's what people were doing historically (setting
8065 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8066 # variable obsoleted/removed.
8067
8068 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8069 lt_ar_flags=$AR_FLAGS
8070
8071
8072
8073
8074
8075
8076 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8077 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8078
8079
8080
8081
8082
8083
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8085 printf %s "checking for archiver @FILE support... " >&6; }
8086 if test ${lt_cv_ar_at_file+y}
8087 then :
8088 printf %s "(cached) " >&6
8089 else case e in #(
8090 e) lt_cv_ar_at_file=no
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093
8094 int
8095 main (void)
8096 {
8097
8098 ;
8099 return 0;
8100 }
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"
8103 then :
8104 echo conftest.$ac_objext > conftest.lst
8105 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8107 (eval $lt_ar_try) 2>&5
8108 ac_status=$?
8109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8110 test $ac_status = 0; }
8111 if test 0 -eq "$ac_status"; then
8112 # Ensure the archiver fails upon bogus file names.
8113 rm -f conftest.$ac_objext libconftest.a
8114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8115 (eval $lt_ar_try) 2>&5
8116 ac_status=$?
8117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118 test $ac_status = 0; }
8119 if test 0 -ne "$ac_status"; then
8120 lt_cv_ar_at_file=@
8121 fi
8122 fi
8123 rm -f conftest.* libconftest.a
8124
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8127 ;;
8128 esac
8129 fi
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8131 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8132
8133 if test no = "$lt_cv_ar_at_file"; then
8134 archiver_list_spec=
8135 else
8136 archiver_list_spec=$lt_cv_ar_at_file
8137 fi
8138
8139
8140
8141
8142
8143
8144
8145 if test -n "$ac_tool_prefix"; then
8146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8147 set dummy ${ac_tool_prefix}strip; ac_word=$2
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 printf %s "checking for $ac_word... " >&6; }
8150 if test ${ac_cv_prog_STRIP+y}
8151 then :
8152 printf %s "(cached) " >&6
8153 else case e in #(
8154 e) if test -n "$STRIP"; then
8155 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8156 else
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8159 do
8160 IFS=$as_save_IFS
8161 case $as_dir in #(((
8162 '') as_dir=./ ;;
8163 */) ;;
8164 *) as_dir=$as_dir/ ;;
8165 esac
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8170 break 2
8171 fi
8172 done
8173 done
8174 IFS=$as_save_IFS
8175
8176 fi ;;
8177 esac
8178 fi
8179 STRIP=$ac_cv_prog_STRIP
8180 if test -n "$STRIP"; then
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8182 printf "%s\n" "$STRIP" >&6; }
8183 else
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 printf "%s\n" "no" >&6; }
8186 fi
8187
8188
8189 fi
8190 if test -z "$ac_cv_prog_STRIP"; then
8191 ac_ct_STRIP=$STRIP
8192 # Extract the first word of "strip", so it can be a program name with args.
8193 set dummy strip; ac_word=$2
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 printf %s "checking for $ac_word... " >&6; }
8196 if test ${ac_cv_prog_ac_ct_STRIP+y}
8197 then :
8198 printf %s "(cached) " >&6
8199 else case e in #(
8200 e) if test -n "$ac_ct_STRIP"; then
8201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206 IFS=$as_save_IFS
8207 case $as_dir in #(((
8208 '') as_dir=./ ;;
8209 */) ;;
8210 *) as_dir=$as_dir/ ;;
8211 esac
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8214 ac_cv_prog_ac_ct_STRIP="strip"
8215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8216 break 2
8217 fi
8218 done
8219 done
8220 IFS=$as_save_IFS
8221
8222 fi ;;
8223 esac
8224 fi
8225 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8226 if test -n "$ac_ct_STRIP"; then
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8228 printf "%s\n" "$ac_ct_STRIP" >&6; }
8229 else
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 printf "%s\n" "no" >&6; }
8232 fi
8233
8234 if test "x$ac_ct_STRIP" = x; then
8235 STRIP=":"
8236 else
8237 case $cross_compiling:$ac_tool_warned in
8238 yes:)
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8240 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8241 ac_tool_warned=yes ;;
8242 esac
8243 STRIP=$ac_ct_STRIP
8244 fi
8245 else
8246 STRIP="$ac_cv_prog_STRIP"
8247 fi
8248
8249 test -z "$STRIP" && STRIP=:
8250
8251
8252
8253
8254
8255
8256
8257 test -z "$RANLIB" && RANLIB=:
8258
8259
8260
8261
8262
8263
8264 # Determine commands to create old-style static archives.
8265 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8266 old_postinstall_cmds='chmod 644 $oldlib'
8267 old_postuninstall_cmds=
8268
8269 if test -n "$RANLIB"; then
8270 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8272 fi
8273
8274 case $host_os in
8275 darwin*)
8276 lock_old_archive_extraction=yes ;;
8277 *)
8278 lock_old_archive_extraction=no ;;
8279 esac
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319 # If no C compiler was specified, use CC.
8320 LTCC=${LTCC-"$CC"}
8321
8322 # If no C compiler flags were specified, use CFLAGS.
8323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8324
8325 # Allow CC to be a program name with arguments.
8326 compiler=$CC
8327
8328
8329 # Check for command to grab the raw symbol name followed by C symbol from nm.
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8331 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8332 if test ${lt_cv_sys_global_symbol_pipe+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else case e in #(
8336 e)
8337 # These are sane defaults that work on at least a few old systems.
8338 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8339
8340 # Character class describing NM global symbol codes.
8341 symcode='[BCDEGRST]'
8342
8343 # Regexp to match symbols that can be accessed directly from C.
8344 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8345
8346 # Define system-specific variables.
8347 case $host_os in
8348 aix*)
8349 symcode='[BCDT]'
8350 ;;
8351 cygwin* | mingw* | windows* | pw32* | cegcc*)
8352 symcode='[ABCDGISTW]'
8353 ;;
8354 hpux*)
8355 if test ia64 = "$host_cpu"; then
8356 symcode='[ABCDEGRST]'
8357 fi
8358 ;;
8359 irix* | nonstopux*)
8360 symcode='[BCDEGRST]'
8361 ;;
8362 osf*)
8363 symcode='[BCDEGQRST]'
8364 ;;
8365 solaris*)
8366 symcode='[BCDRT]'
8367 ;;
8368 sco3.2v5*)
8369 symcode='[DT]'
8370 ;;
8371 sysv4.2uw2*)
8372 symcode='[DT]'
8373 ;;
8374 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8375 symcode='[ABDT]'
8376 ;;
8377 sysv4)
8378 symcode='[DFNSTU]'
8379 ;;
8380 esac
8381
8382 # If we're using GNU nm, then use its standard symbol codes.
8383 case `$NM -V 2>&1` in
8384 *GNU* | *'with BFD'*)
8385 symcode='[ABCDGIRSTW]' ;;
8386 esac
8387
8388 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8389 # Gets list of data symbols to import.
8390 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8391 # Adjust the below global symbol transforms to fixup imported variables.
8392 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8393 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8394 lt_c_name_lib_hook="\
8395 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8396 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8397 else
8398 # Disable hooks by default.
8399 lt_cv_sys_global_symbol_to_import=
8400 lt_cdecl_hook=
8401 lt_c_name_hook=
8402 lt_c_name_lib_hook=
8403 fi
8404
8405 # Transform an extracted symbol line into a proper C declaration.
8406 # Some systems (esp. on ia64) link data and code symbols differently,
8407 # so use this general approach.
8408 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8409 $lt_cdecl_hook\
8410 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8411 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8412
8413 # Transform an extracted symbol line into symbol name and symbol address
8414 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8415 $lt_c_name_hook\
8416 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8417 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8418
8419 # Transform an extracted symbol line into symbol name with lib prefix and
8420 # symbol address.
8421 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8422 $lt_c_name_lib_hook\
8423 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8424 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8425 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8426
8427 # Handle CRLF in mingw tool chain
8428 opt_cr=
8429 case $build_os in
8430 mingw* | windows*)
8431 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8432 ;;
8433 esac
8434
8435 # Try without a prefix underscore, then with it.
8436 for ac_symprfx in "" "_"; do
8437
8438 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8439 symxfrm="\\1 $ac_symprfx\\2 \\2"
8440
8441 # Write the raw and C identifiers.
8442 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8443 # Fake it for dumpbin and say T for any non-static function,
8444 # D for any global variable and I for any imported variable.
8445 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8446 # which start with @ or ?.
8447 lt_cv_sys_global_symbol_pipe="$AWK '"\
8448 " {last_section=section; section=\$ 3};"\
8449 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8450 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8451 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8452 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8453 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8454 " \$ 0!~/External *\|/{next};"\
8455 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8456 " {if(hide[section]) next};"\
8457 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8458 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8459 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8460 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8461 " ' prfx=^$ac_symprfx"
8462 else
8463 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8464 fi
8465 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8466
8467 # Check to see that the pipe works correctly.
8468 pipe_works=no
8469
8470 rm -f conftest*
8471 cat > conftest.$ac_ext <<_LT_EOF
8472 #ifdef __cplusplus
8473 extern "C" {
8474 #endif
8475 char nm_test_var;
8476 void nm_test_func(void);
8477 void nm_test_func(void){}
8478 #ifdef __cplusplus
8479 }
8480 #endif
8481 int main(void){nm_test_var='a';nm_test_func();return(0);}
8482 _LT_EOF
8483
8484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8485 (eval $ac_compile) 2>&5
8486 ac_status=$?
8487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8488 test $ac_status = 0; }; then
8489 # Now try to grab the symbols.
8490 nlist=conftest.nm
8491 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8492 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8493 # Try sorting and uniquifying the output.
8494 if sort "$nlist" | uniq > "$nlist"T; then
8495 mv -f "$nlist"T "$nlist"
8496 else
8497 rm -f "$nlist"T
8498 fi
8499
8500 # Make sure that we snagged all the symbols we need.
8501 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8502 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8503 cat <<_LT_EOF > conftest.$ac_ext
8504 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8505 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8506 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8507 relocations are performed -- see ld's documentation on pseudo-relocs. */
8508 # define LT_DLSYM_CONST
8509 #elif defined __osf__
8510 /* This system does not cope well with relocations in const data. */
8511 # define LT_DLSYM_CONST
8512 #else
8513 # define LT_DLSYM_CONST const
8514 #endif
8515
8516 #ifdef __cplusplus
8517 extern "C" {
8518 #endif
8519
8520 _LT_EOF
8521 # Now generate the symbol file.
8522 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8523
8524 cat <<_LT_EOF >> conftest.$ac_ext
8525
8526 /* The mapping between symbol names and symbols. */
8527 LT_DLSYM_CONST struct {
8528 const char *name;
8529 void *address;
8530 }
8531 lt__PROGRAM__LTX_preloaded_symbols[] =
8532 {
8533 { "@PROGRAM@", (void *) 0 },
8534 _LT_EOF
8535 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8536 cat <<\_LT_EOF >> conftest.$ac_ext
8537 {0, (void *) 0}
8538 };
8539
8540 /* This works around a problem in FreeBSD linker */
8541 #ifdef FREEBSD_WORKAROUND
8542 static const void *lt_preloaded_setup() {
8543 return lt__PROGRAM__LTX_preloaded_symbols;
8544 }
8545 #endif
8546
8547 #ifdef __cplusplus
8548 }
8549 #endif
8550 _LT_EOF
8551 # Now try linking the two files.
8552 mv conftest.$ac_objext conftstm.$ac_objext
8553 lt_globsym_save_LIBS=$LIBS
8554 lt_globsym_save_CFLAGS=$CFLAGS
8555 LIBS=conftstm.$ac_objext
8556 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8558 (eval $ac_link) 2>&5
8559 ac_status=$?
8560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8561 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8562 pipe_works=yes
8563 fi
8564 LIBS=$lt_globsym_save_LIBS
8565 CFLAGS=$lt_globsym_save_CFLAGS
8566 else
8567 echo "cannot find nm_test_func in $nlist" >&5
8568 fi
8569 else
8570 echo "cannot find nm_test_var in $nlist" >&5
8571 fi
8572 else
8573 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8574 fi
8575 else
8576 echo "$progname: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 fi
8579 rm -rf conftest* conftst*
8580
8581 # Do not use the global_symbol_pipe unless it works.
8582 if test yes = "$pipe_works"; then
8583 break
8584 else
8585 lt_cv_sys_global_symbol_pipe=
8586 fi
8587 done
8588 ;;
8589 esac
8590 fi
8591
8592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8593 lt_cv_sys_global_symbol_to_cdecl=
8594 fi
8595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8597 printf "%s\n" "failed" >&6; }
8598 else
8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8600 printf "%s\n" "ok" >&6; }
8601 fi
8602
8603 # Response file support.
8604 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8605 nm_file_list_spec='@'
8606 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8607 nm_file_list_spec='@'
8608 fi
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8647 printf %s "checking for sysroot... " >&6; }
8648
8649 # Check whether --with-sysroot was given.
8650 if test ${with_sysroot+y}
8651 then :
8652 withval=$with_sysroot;
8653 else case e in #(
8654 e) with_sysroot=no ;;
8655 esac
8656 fi
8657
8658
8659 lt_sysroot=
8660 case $with_sysroot in #(
8661 yes)
8662 if test yes = "$GCC"; then
8663 # Trim trailing / since we'll always append absolute paths and we want
8664 # to avoid //, if only for less confusing output for the user.
8665 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8666 fi
8667 ;; #(
8668 /*)
8669 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8670 ;; #(
8671 no|'')
8672 ;; #(
8673 *)
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8675 printf "%s\n" "$with_sysroot" >&6; }
8676 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8677 ;;
8678 esac
8679
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8681 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8682
8683
8684
8685
8686
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8688 printf %s "checking for a working dd... " >&6; }
8689 if test ${ac_cv_path_lt_DD+y}
8690 then :
8691 printf %s "(cached) " >&6
8692 else case e in #(
8693 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8694 cat conftest.i conftest.i >conftest2.i
8695 : ${lt_DD:=$DD}
8696 if test -z "$lt_DD"; then
8697 ac_path_lt_DD_found=false
8698 # Loop through the user's path and test for each of PROGNAME-LIST
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 for as_dir in $PATH
8701 do
8702 IFS=$as_save_IFS
8703 case $as_dir in #(((
8704 '') as_dir=./ ;;
8705 */) ;;
8706 *) as_dir=$as_dir/ ;;
8707 esac
8708 for ac_prog in dd
8709 do
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8712 as_fn_executable_p "$ac_path_lt_DD" || continue
8713 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8714 cmp -s conftest.i conftest.out \
8715 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8716 fi
8717 $ac_path_lt_DD_found && break 3
8718 done
8719 done
8720 done
8721 IFS=$as_save_IFS
8722 if test -z "$ac_cv_path_lt_DD"; then
8723 :
8724 fi
8725 else
8726 ac_cv_path_lt_DD=$lt_DD
8727 fi
8728
8729 rm -f conftest.i conftest2.i conftest.out ;;
8730 esac
8731 fi
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8733 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8734
8735
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8737 printf %s "checking how to truncate binary pipes... " >&6; }
8738 if test ${lt_cv_truncate_bin+y}
8739 then :
8740 printf %s "(cached) " >&6
8741 else case e in #(
8742 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8743 cat conftest.i conftest.i >conftest2.i
8744 lt_cv_truncate_bin=
8745 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8746 cmp -s conftest.i conftest.out \
8747 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8748 fi
8749 rm -f conftest.i conftest2.i conftest.out
8750 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8751 esac
8752 fi
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8754 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8755
8756
8757
8758
8759
8760
8761
8762 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8763 func_cc_basename ()
8764 {
8765 for cc_temp in $*""; do
8766 case $cc_temp in
8767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8769 \-*) ;;
8770 *) break;;
8771 esac
8772 done
8773 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8774 }
8775
8776 # Check whether --enable-libtool-lock was given.
8777 if test ${enable_libtool_lock+y}
8778 then :
8779 enableval=$enable_libtool_lock;
8780 fi
8781
8782 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8783
8784 # Some flags need to be propagated to the compiler or linker for good
8785 # libtool support.
8786 case $host in
8787 ia64-*-hpux*)
8788 # Find out what ABI is being produced by ac_compile, and set mode
8789 # options accordingly.
8790 echo 'int i;' > conftest.$ac_ext
8791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8792 (eval $ac_compile) 2>&5
8793 ac_status=$?
8794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8795 test $ac_status = 0; }; then
8796 case `$FILECMD conftest.$ac_objext` in
8797 *ELF-32*)
8798 HPUX_IA64_MODE=32
8799 ;;
8800 *ELF-64*)
8801 HPUX_IA64_MODE=64
8802 ;;
8803 esac
8804 fi
8805 rm -rf conftest*
8806 ;;
8807 *-*-irix6*)
8808 # Find out what ABI is being produced by ac_compile, and set linker
8809 # options accordingly.
8810 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8812 (eval $ac_compile) 2>&5
8813 ac_status=$?
8814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8815 test $ac_status = 0; }; then
8816 if test yes = "$lt_cv_prog_gnu_ld"; then
8817 case `$FILECMD conftest.$ac_objext` in
8818 *32-bit*)
8819 LD="${LD-ld} -melf32bsmip"
8820 ;;
8821 *N32*)
8822 LD="${LD-ld} -melf32bmipn32"
8823 ;;
8824 *64-bit*)
8825 LD="${LD-ld} -melf64bmip"
8826 ;;
8827 esac
8828 else
8829 case `$FILECMD conftest.$ac_objext` in
8830 *32-bit*)
8831 LD="${LD-ld} -32"
8832 ;;
8833 *N32*)
8834 LD="${LD-ld} -n32"
8835 ;;
8836 *64-bit*)
8837 LD="${LD-ld} -64"
8838 ;;
8839 esac
8840 fi
8841 fi
8842 rm -rf conftest*
8843 ;;
8844
8845 mips64*-*linux*)
8846 # Find out what ABI is being produced by ac_compile, and set linker
8847 # options accordingly.
8848 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8850 (eval $ac_compile) 2>&5
8851 ac_status=$?
8852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8853 test $ac_status = 0; }; then
8854 emul=elf
8855 case `$FILECMD conftest.$ac_objext` in
8856 *32-bit*)
8857 emul="${emul}32"
8858 ;;
8859 *64-bit*)
8860 emul="${emul}64"
8861 ;;
8862 esac
8863 case `$FILECMD conftest.$ac_objext` in
8864 *MSB*)
8865 emul="${emul}btsmip"
8866 ;;
8867 *LSB*)
8868 emul="${emul}ltsmip"
8869 ;;
8870 esac
8871 case `$FILECMD conftest.$ac_objext` in
8872 *N32*)
8873 emul="${emul}n32"
8874 ;;
8875 esac
8876 LD="${LD-ld} -m $emul"
8877 fi
8878 rm -rf conftest*
8879 ;;
8880
8881 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8882 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8883 # Find out what ABI is being produced by ac_compile, and set linker
8884 # options accordingly. Note that the listed cases only cover the
8885 # situations where additional linker options are needed (such as when
8886 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8887 # vice versa); the common cases where no linker options are needed do
8888 # not appear in the list.
8889 echo 'int i;' > conftest.$ac_ext
8890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8891 (eval $ac_compile) 2>&5
8892 ac_status=$?
8893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8894 test $ac_status = 0; }; then
8895 case `$FILECMD conftest.o` in
8896 *32-bit*)
8897 case $host in
8898 x86_64-*kfreebsd*-gnu)
8899 LD="${LD-ld} -m elf_i386_fbsd"
8900 ;;
8901 x86_64-*linux*|x86_64-gnu*)
8902 case `$FILECMD conftest.o` in
8903 *x86-64*)
8904 LD="${LD-ld} -m elf32_x86_64"
8905 ;;
8906 *)
8907 LD="${LD-ld} -m elf_i386"
8908 ;;
8909 esac
8910 ;;
8911 powerpc64le-*linux*)
8912 LD="${LD-ld} -m elf32lppclinux"
8913 ;;
8914 powerpc64-*linux*)
8915 LD="${LD-ld} -m elf32ppclinux"
8916 ;;
8917 s390x-*linux*)
8918 LD="${LD-ld} -m elf_s390"
8919 ;;
8920 sparc64-*linux*)
8921 LD="${LD-ld} -m elf32_sparc"
8922 ;;
8923 esac
8924 ;;
8925 *64-bit*)
8926 case $host in
8927 x86_64-*kfreebsd*-gnu)
8928 LD="${LD-ld} -m elf_x86_64_fbsd"
8929 ;;
8930 x86_64-*linux*|x86_64-gnu*)
8931 LD="${LD-ld} -m elf_x86_64"
8932 ;;
8933 powerpcle-*linux*)
8934 LD="${LD-ld} -m elf64lppc"
8935 ;;
8936 powerpc-*linux*)
8937 LD="${LD-ld} -m elf64ppc"
8938 ;;
8939 s390*-*linux*|s390*-*tpf*)
8940 LD="${LD-ld} -m elf64_s390"
8941 ;;
8942 sparc*-*linux*)
8943 LD="${LD-ld} -m elf64_sparc"
8944 ;;
8945 esac
8946 ;;
8947 esac
8948 fi
8949 rm -rf conftest*
8950 ;;
8951
8952 *-*-sco3.2v5*)
8953 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8954 SAVE_CFLAGS=$CFLAGS
8955 CFLAGS="$CFLAGS -belf"
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8957 printf %s "checking whether the C compiler needs -belf... " >&6; }
8958 if test ${lt_cv_cc_needs_belf+y}
8959 then :
8960 printf %s "(cached) " >&6
8961 else case e in #(
8962 e) ac_ext=c
8963 ac_cpp='$CPP $CPPFLAGS'
8964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8967
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970
8971 int
8972 main (void)
8973 {
8974
8975 ;
8976 return 0;
8977 }
8978 _ACEOF
8979 if ac_fn_c_try_link "$LINENO"
8980 then :
8981 lt_cv_cc_needs_belf=yes
8982 else case e in #(
8983 e) lt_cv_cc_needs_belf=no ;;
8984 esac
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8987 conftest$ac_exeext conftest.$ac_ext
8988 ac_ext=c
8989 ac_cpp='$CPP $CPPFLAGS'
8990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8993 ;;
8994 esac
8995 fi
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8997 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8998 if test yes != "$lt_cv_cc_needs_belf"; then
8999 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9000 CFLAGS=$SAVE_CFLAGS
9001 fi
9002 ;;
9003 *-*solaris*)
9004 # Find out what ABI is being produced by ac_compile, and set linker
9005 # options accordingly.
9006 echo 'int i;' > conftest.$ac_ext
9007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9008 (eval $ac_compile) 2>&5
9009 ac_status=$?
9010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9011 test $ac_status = 0; }; then
9012 case `$FILECMD conftest.o` in
9013 *64-bit*)
9014 case $lt_cv_prog_gnu_ld in
9015 yes*)
9016 case $host in
9017 i?86-*-solaris*|x86_64-*-solaris*)
9018 LD="${LD-ld} -m elf_x86_64"
9019 ;;
9020 sparc*-*-solaris*)
9021 LD="${LD-ld} -m elf64_sparc"
9022 ;;
9023 esac
9024 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9025 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9026 LD=${LD-ld}_sol2
9027 fi
9028 ;;
9029 *)
9030 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9031 LD="${LD-ld} -64"
9032 fi
9033 ;;
9034 esac
9035 ;;
9036 esac
9037 fi
9038 rm -rf conftest*
9039 ;;
9040 esac
9041
9042 need_locks=$enable_libtool_lock
9043
9044 if test -n "$ac_tool_prefix"; then
9045 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9046 set dummy ${ac_tool_prefix}mt; ac_word=$2
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 printf %s "checking for $ac_word... " >&6; }
9049 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9050 then :
9051 printf %s "(cached) " >&6
9052 else case e in #(
9053 e) if test -n "$MANIFEST_TOOL"; then
9054 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9055 else
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in $PATH
9058 do
9059 IFS=$as_save_IFS
9060 case $as_dir in #(((
9061 '') as_dir=./ ;;
9062 */) ;;
9063 *) as_dir=$as_dir/ ;;
9064 esac
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9067 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9069 break 2
9070 fi
9071 done
9072 done
9073 IFS=$as_save_IFS
9074
9075 fi ;;
9076 esac
9077 fi
9078 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9079 if test -n "$MANIFEST_TOOL"; then
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9081 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9082 else
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 printf "%s\n" "no" >&6; }
9085 fi
9086
9087
9088 fi
9089 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9090 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9091 # Extract the first word of "mt", so it can be a program name with args.
9092 set dummy mt; ac_word=$2
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 printf %s "checking for $ac_word... " >&6; }
9095 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9096 then :
9097 printf %s "(cached) " >&6
9098 else case e in #(
9099 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9100 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9101 else
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9104 do
9105 IFS=$as_save_IFS
9106 case $as_dir in #(((
9107 '') as_dir=./ ;;
9108 */) ;;
9109 *) as_dir=$as_dir/ ;;
9110 esac
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9113 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9115 break 2
9116 fi
9117 done
9118 done
9119 IFS=$as_save_IFS
9120
9121 fi ;;
9122 esac
9123 fi
9124 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9125 if test -n "$ac_ct_MANIFEST_TOOL"; then
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9127 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9128 else
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 printf "%s\n" "no" >&6; }
9131 fi
9132
9133 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9134 MANIFEST_TOOL=":"
9135 else
9136 case $cross_compiling:$ac_tool_warned in
9137 yes:)
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9139 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9140 ac_tool_warned=yes ;;
9141 esac
9142 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9143 fi
9144 else
9145 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9146 fi
9147
9148 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9150 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9151 if test ${lt_cv_path_manifest_tool+y}
9152 then :
9153 printf %s "(cached) " >&6
9154 else case e in #(
9155 e) lt_cv_path_manifest_tool=no
9156 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9157 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9158 cat conftest.err >&5
9159 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9160 lt_cv_path_manifest_tool=yes
9161 fi
9162 rm -f conftest* ;;
9163 esac
9164 fi
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9166 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9167 if test yes != "$lt_cv_path_manifest_tool"; then
9168 MANIFEST_TOOL=:
9169 fi
9170
9171
9172
9173
9174
9175
9176 case $host_os in
9177 rhapsody* | darwin*)
9178 if test -n "$ac_tool_prefix"; then
9179 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9180 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182 printf %s "checking for $ac_word... " >&6; }
9183 if test ${ac_cv_prog_DSYMUTIL+y}
9184 then :
9185 printf %s "(cached) " >&6
9186 else case e in #(
9187 e) if test -n "$DSYMUTIL"; then
9188 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9192 do
9193 IFS=$as_save_IFS
9194 case $as_dir in #(((
9195 '') as_dir=./ ;;
9196 */) ;;
9197 *) as_dir=$as_dir/ ;;
9198 esac
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9201 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9203 break 2
9204 fi
9205 done
9206 done
9207 IFS=$as_save_IFS
9208
9209 fi ;;
9210 esac
9211 fi
9212 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9213 if test -n "$DSYMUTIL"; then
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9215 printf "%s\n" "$DSYMUTIL" >&6; }
9216 else
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218 printf "%s\n" "no" >&6; }
9219 fi
9220
9221
9222 fi
9223 if test -z "$ac_cv_prog_DSYMUTIL"; then
9224 ac_ct_DSYMUTIL=$DSYMUTIL
9225 # Extract the first word of "dsymutil", so it can be a program name with args.
9226 set dummy dsymutil; ac_word=$2
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228 printf %s "checking for $ac_word... " >&6; }
9229 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9230 then :
9231 printf %s "(cached) " >&6
9232 else case e in #(
9233 e) if test -n "$ac_ct_DSYMUTIL"; then
9234 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9235 else
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9238 do
9239 IFS=$as_save_IFS
9240 case $as_dir in #(((
9241 '') as_dir=./ ;;
9242 */) ;;
9243 *) as_dir=$as_dir/ ;;
9244 esac
9245 for ac_exec_ext in '' $ac_executable_extensions; do
9246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9247 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9249 break 2
9250 fi
9251 done
9252 done
9253 IFS=$as_save_IFS
9254
9255 fi ;;
9256 esac
9257 fi
9258 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9259 if test -n "$ac_ct_DSYMUTIL"; then
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9261 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9262 else
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264 printf "%s\n" "no" >&6; }
9265 fi
9266
9267 if test "x$ac_ct_DSYMUTIL" = x; then
9268 DSYMUTIL=":"
9269 else
9270 case $cross_compiling:$ac_tool_warned in
9271 yes:)
9272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9273 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9274 ac_tool_warned=yes ;;
9275 esac
9276 DSYMUTIL=$ac_ct_DSYMUTIL
9277 fi
9278 else
9279 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9280 fi
9281
9282 if test -n "$ac_tool_prefix"; then
9283 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9284 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286 printf %s "checking for $ac_word... " >&6; }
9287 if test ${ac_cv_prog_NMEDIT+y}
9288 then :
9289 printf %s "(cached) " >&6
9290 else case e in #(
9291 e) if test -n "$NMEDIT"; then
9292 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9293 else
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9296 do
9297 IFS=$as_save_IFS
9298 case $as_dir in #(((
9299 '') as_dir=./ ;;
9300 */) ;;
9301 *) as_dir=$as_dir/ ;;
9302 esac
9303 for ac_exec_ext in '' $ac_executable_extensions; do
9304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9305 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9307 break 2
9308 fi
9309 done
9310 done
9311 IFS=$as_save_IFS
9312
9313 fi ;;
9314 esac
9315 fi
9316 NMEDIT=$ac_cv_prog_NMEDIT
9317 if test -n "$NMEDIT"; then
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9319 printf "%s\n" "$NMEDIT" >&6; }
9320 else
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 printf "%s\n" "no" >&6; }
9323 fi
9324
9325
9326 fi
9327 if test -z "$ac_cv_prog_NMEDIT"; then
9328 ac_ct_NMEDIT=$NMEDIT
9329 # Extract the first word of "nmedit", so it can be a program name with args.
9330 set dummy nmedit; ac_word=$2
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 printf %s "checking for $ac_word... " >&6; }
9333 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9334 then :
9335 printf %s "(cached) " >&6
9336 else case e in #(
9337 e) if test -n "$ac_ct_NMEDIT"; then
9338 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9339 else
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9342 do
9343 IFS=$as_save_IFS
9344 case $as_dir in #(((
9345 '') as_dir=./ ;;
9346 */) ;;
9347 *) as_dir=$as_dir/ ;;
9348 esac
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9351 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9353 break 2
9354 fi
9355 done
9356 done
9357 IFS=$as_save_IFS
9358
9359 fi ;;
9360 esac
9361 fi
9362 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9363 if test -n "$ac_ct_NMEDIT"; then
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9365 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9366 else
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 printf "%s\n" "no" >&6; }
9369 fi
9370
9371 if test "x$ac_ct_NMEDIT" = x; then
9372 NMEDIT=":"
9373 else
9374 case $cross_compiling:$ac_tool_warned in
9375 yes:)
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9377 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9378 ac_tool_warned=yes ;;
9379 esac
9380 NMEDIT=$ac_ct_NMEDIT
9381 fi
9382 else
9383 NMEDIT="$ac_cv_prog_NMEDIT"
9384 fi
9385
9386 if test -n "$ac_tool_prefix"; then
9387 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9388 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 printf %s "checking for $ac_word... " >&6; }
9391 if test ${ac_cv_prog_LIPO+y}
9392 then :
9393 printf %s "(cached) " >&6
9394 else case e in #(
9395 e) if test -n "$LIPO"; then
9396 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9397 else
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399 for as_dir in $PATH
9400 do
9401 IFS=$as_save_IFS
9402 case $as_dir in #(((
9403 '') as_dir=./ ;;
9404 */) ;;
9405 *) as_dir=$as_dir/ ;;
9406 esac
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9409 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9411 break 2
9412 fi
9413 done
9414 done
9415 IFS=$as_save_IFS
9416
9417 fi ;;
9418 esac
9419 fi
9420 LIPO=$ac_cv_prog_LIPO
9421 if test -n "$LIPO"; then
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9423 printf "%s\n" "$LIPO" >&6; }
9424 else
9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 printf "%s\n" "no" >&6; }
9427 fi
9428
9429
9430 fi
9431 if test -z "$ac_cv_prog_LIPO"; then
9432 ac_ct_LIPO=$LIPO
9433 # Extract the first word of "lipo", so it can be a program name with args.
9434 set dummy lipo; ac_word=$2
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9436 printf %s "checking for $ac_word... " >&6; }
9437 if test ${ac_cv_prog_ac_ct_LIPO+y}
9438 then :
9439 printf %s "(cached) " >&6
9440 else case e in #(
9441 e) if test -n "$ac_ct_LIPO"; then
9442 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9443 else
9444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9445 for as_dir in $PATH
9446 do
9447 IFS=$as_save_IFS
9448 case $as_dir in #(((
9449 '') as_dir=./ ;;
9450 */) ;;
9451 *) as_dir=$as_dir/ ;;
9452 esac
9453 for ac_exec_ext in '' $ac_executable_extensions; do
9454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9455 ac_cv_prog_ac_ct_LIPO="lipo"
9456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9457 break 2
9458 fi
9459 done
9460 done
9461 IFS=$as_save_IFS
9462
9463 fi ;;
9464 esac
9465 fi
9466 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9467 if test -n "$ac_ct_LIPO"; then
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9469 printf "%s\n" "$ac_ct_LIPO" >&6; }
9470 else
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 printf "%s\n" "no" >&6; }
9473 fi
9474
9475 if test "x$ac_ct_LIPO" = x; then
9476 LIPO=":"
9477 else
9478 case $cross_compiling:$ac_tool_warned in
9479 yes:)
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9481 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9482 ac_tool_warned=yes ;;
9483 esac
9484 LIPO=$ac_ct_LIPO
9485 fi
9486 else
9487 LIPO="$ac_cv_prog_LIPO"
9488 fi
9489
9490 if test -n "$ac_tool_prefix"; then
9491 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9492 set dummy ${ac_tool_prefix}otool; ac_word=$2
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 printf %s "checking for $ac_word... " >&6; }
9495 if test ${ac_cv_prog_OTOOL+y}
9496 then :
9497 printf %s "(cached) " >&6
9498 else case e in #(
9499 e) if test -n "$OTOOL"; then
9500 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9501 else
9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 for as_dir in $PATH
9504 do
9505 IFS=$as_save_IFS
9506 case $as_dir in #(((
9507 '') as_dir=./ ;;
9508 */) ;;
9509 *) as_dir=$as_dir/ ;;
9510 esac
9511 for ac_exec_ext in '' $ac_executable_extensions; do
9512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9513 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9515 break 2
9516 fi
9517 done
9518 done
9519 IFS=$as_save_IFS
9520
9521 fi ;;
9522 esac
9523 fi
9524 OTOOL=$ac_cv_prog_OTOOL
9525 if test -n "$OTOOL"; then
9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9527 printf "%s\n" "$OTOOL" >&6; }
9528 else
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 printf "%s\n" "no" >&6; }
9531 fi
9532
9533
9534 fi
9535 if test -z "$ac_cv_prog_OTOOL"; then
9536 ac_ct_OTOOL=$OTOOL
9537 # Extract the first word of "otool", so it can be a program name with args.
9538 set dummy otool; ac_word=$2
9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540 printf %s "checking for $ac_word... " >&6; }
9541 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9542 then :
9543 printf %s "(cached) " >&6
9544 else case e in #(
9545 e) if test -n "$ac_ct_OTOOL"; then
9546 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9547 else
9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in $PATH
9550 do
9551 IFS=$as_save_IFS
9552 case $as_dir in #(((
9553 '') as_dir=./ ;;
9554 */) ;;
9555 *) as_dir=$as_dir/ ;;
9556 esac
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9559 ac_cv_prog_ac_ct_OTOOL="otool"
9560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9561 break 2
9562 fi
9563 done
9564 done
9565 IFS=$as_save_IFS
9566
9567 fi ;;
9568 esac
9569 fi
9570 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9571 if test -n "$ac_ct_OTOOL"; then
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9573 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9574 else
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 printf "%s\n" "no" >&6; }
9577 fi
9578
9579 if test "x$ac_ct_OTOOL" = x; then
9580 OTOOL=":"
9581 else
9582 case $cross_compiling:$ac_tool_warned in
9583 yes:)
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9585 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9586 ac_tool_warned=yes ;;
9587 esac
9588 OTOOL=$ac_ct_OTOOL
9589 fi
9590 else
9591 OTOOL="$ac_cv_prog_OTOOL"
9592 fi
9593
9594 if test -n "$ac_tool_prefix"; then
9595 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9596 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 printf %s "checking for $ac_word... " >&6; }
9599 if test ${ac_cv_prog_OTOOL64+y}
9600 then :
9601 printf %s "(cached) " >&6
9602 else case e in #(
9603 e) if test -n "$OTOOL64"; then
9604 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9605 else
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9608 do
9609 IFS=$as_save_IFS
9610 case $as_dir in #(((
9611 '') as_dir=./ ;;
9612 */) ;;
9613 *) as_dir=$as_dir/ ;;
9614 esac
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9617 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9619 break 2
9620 fi
9621 done
9622 done
9623 IFS=$as_save_IFS
9624
9625 fi ;;
9626 esac
9627 fi
9628 OTOOL64=$ac_cv_prog_OTOOL64
9629 if test -n "$OTOOL64"; then
9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9631 printf "%s\n" "$OTOOL64" >&6; }
9632 else
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 printf "%s\n" "no" >&6; }
9635 fi
9636
9637
9638 fi
9639 if test -z "$ac_cv_prog_OTOOL64"; then
9640 ac_ct_OTOOL64=$OTOOL64
9641 # Extract the first word of "otool64", so it can be a program name with args.
9642 set dummy otool64; ac_word=$2
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 printf %s "checking for $ac_word... " >&6; }
9645 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9646 then :
9647 printf %s "(cached) " >&6
9648 else case e in #(
9649 e) if test -n "$ac_ct_OTOOL64"; then
9650 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9651 else
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 for as_dir in $PATH
9654 do
9655 IFS=$as_save_IFS
9656 case $as_dir in #(((
9657 '') as_dir=./ ;;
9658 */) ;;
9659 *) as_dir=$as_dir/ ;;
9660 esac
9661 for ac_exec_ext in '' $ac_executable_extensions; do
9662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9663 ac_cv_prog_ac_ct_OTOOL64="otool64"
9664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9665 break 2
9666 fi
9667 done
9668 done
9669 IFS=$as_save_IFS
9670
9671 fi ;;
9672 esac
9673 fi
9674 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9675 if test -n "$ac_ct_OTOOL64"; then
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9677 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9678 else
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 printf "%s\n" "no" >&6; }
9681 fi
9682
9683 if test "x$ac_ct_OTOOL64" = x; then
9684 OTOOL64=":"
9685 else
9686 case $cross_compiling:$ac_tool_warned in
9687 yes:)
9688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9690 ac_tool_warned=yes ;;
9691 esac
9692 OTOOL64=$ac_ct_OTOOL64
9693 fi
9694 else
9695 OTOOL64="$ac_cv_prog_OTOOL64"
9696 fi
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724 # checking for -single_module linker flag... ld: warning: -single_module is obsolete
9725
9726 # Feature test to disable chained fixups since it is not
9727 # compatible with '-undefined dynamic_lookup'
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9729 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9730 if test ${lt_cv_support_no_fixup_chains+y}
9731 then :
9732 printf %s "(cached) " >&6
9733 else case e in #(
9734 e) save_LDFLAGS=$LDFLAGS
9735 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738
9739 int
9740 main (void)
9741 {
9742
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 if ac_fn_c_try_link "$LINENO"
9748 then :
9749 lt_cv_support_no_fixup_chains=yes
9750 else case e in #(
9751 e) lt_cv_support_no_fixup_chains=no
9752 ;;
9753 esac
9754 fi
9755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9756 conftest$ac_exeext conftest.$ac_ext
9757 LDFLAGS=$save_LDFLAGS
9758
9759 ;;
9760 esac
9761 fi
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9763 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9764
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9766 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9767 if test ${lt_cv_ld_exported_symbols_list+y}
9768 then :
9769 printf %s "(cached) " >&6
9770 else case e in #(
9771 e) lt_cv_ld_exported_symbols_list=no
9772 save_LDFLAGS=$LDFLAGS
9773 echo "_main" > conftest.sym
9774 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777
9778 int
9779 main (void)
9780 {
9781
9782 ;
9783 return 0;
9784 }
9785 _ACEOF
9786 if ac_fn_c_try_link "$LINENO"
9787 then :
9788 lt_cv_ld_exported_symbols_list=yes
9789 else case e in #(
9790 e) lt_cv_ld_exported_symbols_list=no ;;
9791 esac
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9794 conftest$ac_exeext conftest.$ac_ext
9795 LDFLAGS=$save_LDFLAGS
9796 ;;
9797 esac
9798 fi
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9800 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9801
9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9803 printf %s "checking for -force_load linker flag... " >&6; }
9804 if test ${lt_cv_ld_force_load+y}
9805 then :
9806 printf %s "(cached) " >&6
9807 else case e in #(
9808 e) lt_cv_ld_force_load=no
9809 cat > conftest.c << _LT_EOF
9810 int forced_loaded() { return 2;}
9811 _LT_EOF
9812 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9813 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9814 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9815 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9816 echo "$RANLIB libconftest.a" >&5
9817 $RANLIB libconftest.a 2>&5
9818 cat > conftest.c << _LT_EOF
9819 int main(void) { return 0;}
9820 _LT_EOF
9821 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9822 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9823 _lt_result=$?
9824 if test -s conftest.err && $GREP force_load conftest.err; then
9825 cat conftest.err >&5
9826 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9827 lt_cv_ld_force_load=yes
9828 else
9829 cat conftest.err >&5
9830 fi
9831 rm -f conftest.err libconftest.a conftest conftest.c
9832 rm -rf conftest.dSYM
9833 ;;
9834 esac
9835 fi
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9837 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9838 case $host_os in
9839 rhapsody* | darwin1.[012])
9840 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9841 darwin1.*)
9842 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9843 darwin*)
9844 case $MACOSX_DEPLOYMENT_TARGET,$host in
9845 10.[012],*|,*powerpc*-darwin[5-8]*)
9846 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9847 *)
9848 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9849 if test yes = "$lt_cv_support_no_fixup_chains"; then
9850 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9851 fi
9852 ;;
9853 esac
9854 ;;
9855 esac
9856 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9857 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9858 else
9859 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9860 fi
9861 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9862 _lt_dsymutil='~$DSYMUTIL $lib || :'
9863 else
9864 _lt_dsymutil=
9865 fi
9866 ;;
9867 esac
9868
9869 # func_munge_path_list VARIABLE PATH
9870 # -----------------------------------
9871 # VARIABLE is name of variable containing _space_ separated list of
9872 # directories to be munged by the contents of PATH, which is string
9873 # having a format:
9874 # "DIR[:DIR]:"
9875 # string "DIR[ DIR]" will be prepended to VARIABLE
9876 # ":DIR[:DIR]"
9877 # string "DIR[ DIR]" will be appended to VARIABLE
9878 # "DIRP[:DIRP]::[DIRA:]DIRA"
9879 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9880 # "DIRA[ DIRA]" will be appended to VARIABLE
9881 # "DIR[:DIR]"
9882 # VARIABLE will be replaced by "DIR[ DIR]"
9883 func_munge_path_list ()
9884 {
9885 case x$2 in
9886 x)
9887 ;;
9888 *:)
9889 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9890 ;;
9891 x:*)
9892 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9893 ;;
9894 *::*)
9895 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9896 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9897 ;;
9898 *)
9899 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9900 ;;
9901 esac
9902 }
9903
9904 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9905 "
9906 if test "x$ac_cv_header_dlfcn_h" = xyes
9907 then :
9908 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9909
9910 fi
9911
9912
9913
9914
9915
9916 # Set options
9917 enable_win32_dll=yes
9918
9919 case $host in
9920 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9921 if test -n "$ac_tool_prefix"; then
9922 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9923 set dummy ${ac_tool_prefix}as; ac_word=$2
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 printf %s "checking for $ac_word... " >&6; }
9926 if test ${ac_cv_prog_AS+y}
9927 then :
9928 printf %s "(cached) " >&6
9929 else case e in #(
9930 e) if test -n "$AS"; then
9931 ac_cv_prog_AS="$AS" # Let the user override the test.
9932 else
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934 for as_dir in $PATH
9935 do
9936 IFS=$as_save_IFS
9937 case $as_dir in #(((
9938 '') as_dir=./ ;;
9939 */) ;;
9940 *) as_dir=$as_dir/ ;;
9941 esac
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9944 ac_cv_prog_AS="${ac_tool_prefix}as"
9945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9946 break 2
9947 fi
9948 done
9949 done
9950 IFS=$as_save_IFS
9951
9952 fi ;;
9953 esac
9954 fi
9955 AS=$ac_cv_prog_AS
9956 if test -n "$AS"; then
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9958 printf "%s\n" "$AS" >&6; }
9959 else
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961 printf "%s\n" "no" >&6; }
9962 fi
9963
9964
9965 fi
9966 if test -z "$ac_cv_prog_AS"; then
9967 ac_ct_AS=$AS
9968 # Extract the first word of "as", so it can be a program name with args.
9969 set dummy as; ac_word=$2
9970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 printf %s "checking for $ac_word... " >&6; }
9972 if test ${ac_cv_prog_ac_ct_AS+y}
9973 then :
9974 printf %s "(cached) " >&6
9975 else case e in #(
9976 e) if test -n "$ac_ct_AS"; then
9977 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9978 else
9979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 for as_dir in $PATH
9981 do
9982 IFS=$as_save_IFS
9983 case $as_dir in #(((
9984 '') as_dir=./ ;;
9985 */) ;;
9986 *) as_dir=$as_dir/ ;;
9987 esac
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9990 ac_cv_prog_ac_ct_AS="as"
9991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9992 break 2
9993 fi
9994 done
9995 done
9996 IFS=$as_save_IFS
9997
9998 fi ;;
9999 esac
10000 fi
10001 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10002 if test -n "$ac_ct_AS"; then
10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10004 printf "%s\n" "$ac_ct_AS" >&6; }
10005 else
10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 printf "%s\n" "no" >&6; }
10008 fi
10009
10010 if test "x$ac_ct_AS" = x; then
10011 AS="false"
10012 else
10013 case $cross_compiling:$ac_tool_warned in
10014 yes:)
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10016 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10017 ac_tool_warned=yes ;;
10018 esac
10019 AS=$ac_ct_AS
10020 fi
10021 else
10022 AS="$ac_cv_prog_AS"
10023 fi
10024
10025 if test -n "$ac_tool_prefix"; then
10026 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10027 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029 printf %s "checking for $ac_word... " >&6; }
10030 if test ${ac_cv_prog_DLLTOOL+y}
10031 then :
10032 printf %s "(cached) " >&6
10033 else case e in #(
10034 e) if test -n "$DLLTOOL"; then
10035 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10036 else
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in $PATH
10039 do
10040 IFS=$as_save_IFS
10041 case $as_dir in #(((
10042 '') as_dir=./ ;;
10043 */) ;;
10044 *) as_dir=$as_dir/ ;;
10045 esac
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10048 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10050 break 2
10051 fi
10052 done
10053 done
10054 IFS=$as_save_IFS
10055
10056 fi ;;
10057 esac
10058 fi
10059 DLLTOOL=$ac_cv_prog_DLLTOOL
10060 if test -n "$DLLTOOL"; then
10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10062 printf "%s\n" "$DLLTOOL" >&6; }
10063 else
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 printf "%s\n" "no" >&6; }
10066 fi
10067
10068
10069 fi
10070 if test -z "$ac_cv_prog_DLLTOOL"; then
10071 ac_ct_DLLTOOL=$DLLTOOL
10072 # Extract the first word of "dlltool", so it can be a program name with args.
10073 set dummy dlltool; ac_word=$2
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 printf %s "checking for $ac_word... " >&6; }
10076 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10077 then :
10078 printf %s "(cached) " >&6
10079 else case e in #(
10080 e) if test -n "$ac_ct_DLLTOOL"; then
10081 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10082 else
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10085 do
10086 IFS=$as_save_IFS
10087 case $as_dir in #(((
10088 '') as_dir=./ ;;
10089 */) ;;
10090 *) as_dir=$as_dir/ ;;
10091 esac
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10094 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10096 break 2
10097 fi
10098 done
10099 done
10100 IFS=$as_save_IFS
10101
10102 fi ;;
10103 esac
10104 fi
10105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10106 if test -n "$ac_ct_DLLTOOL"; then
10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10108 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10109 else
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 printf "%s\n" "no" >&6; }
10112 fi
10113
10114 if test "x$ac_ct_DLLTOOL" = x; then
10115 DLLTOOL="false"
10116 else
10117 case $cross_compiling:$ac_tool_warned in
10118 yes:)
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121 ac_tool_warned=yes ;;
10122 esac
10123 DLLTOOL=$ac_ct_DLLTOOL
10124 fi
10125 else
10126 DLLTOOL="$ac_cv_prog_DLLTOOL"
10127 fi
10128
10129 if test -n "$ac_tool_prefix"; then
10130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10131 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133 printf %s "checking for $ac_word... " >&6; }
10134 if test ${ac_cv_prog_OBJDUMP+y}
10135 then :
10136 printf %s "(cached) " >&6
10137 else case e in #(
10138 e) if test -n "$OBJDUMP"; then
10139 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144 IFS=$as_save_IFS
10145 case $as_dir in #(((
10146 '') as_dir=./ ;;
10147 */) ;;
10148 *) as_dir=$as_dir/ ;;
10149 esac
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156 done
10157 done
10158 IFS=$as_save_IFS
10159
10160 fi ;;
10161 esac
10162 fi
10163 OBJDUMP=$ac_cv_prog_OBJDUMP
10164 if test -n "$OBJDUMP"; then
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10166 printf "%s\n" "$OBJDUMP" >&6; }
10167 else
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 printf "%s\n" "no" >&6; }
10170 fi
10171
10172
10173 fi
10174 if test -z "$ac_cv_prog_OBJDUMP"; then
10175 ac_ct_OBJDUMP=$OBJDUMP
10176 # Extract the first word of "objdump", so it can be a program name with args.
10177 set dummy objdump; ac_word=$2
10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10179 printf %s "checking for $ac_word... " >&6; }
10180 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10181 then :
10182 printf %s "(cached) " >&6
10183 else case e in #(
10184 e) if test -n "$ac_ct_OBJDUMP"; then
10185 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10186 else
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10189 do
10190 IFS=$as_save_IFS
10191 case $as_dir in #(((
10192 '') as_dir=./ ;;
10193 */) ;;
10194 *) as_dir=$as_dir/ ;;
10195 esac
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10198 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10200 break 2
10201 fi
10202 done
10203 done
10204 IFS=$as_save_IFS
10205
10206 fi ;;
10207 esac
10208 fi
10209 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10210 if test -n "$ac_ct_OBJDUMP"; then
10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10212 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10213 else
10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215 printf "%s\n" "no" >&6; }
10216 fi
10217
10218 if test "x$ac_ct_OBJDUMP" = x; then
10219 OBJDUMP="false"
10220 else
10221 case $cross_compiling:$ac_tool_warned in
10222 yes:)
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10224 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10225 ac_tool_warned=yes ;;
10226 esac
10227 OBJDUMP=$ac_ct_OBJDUMP
10228 fi
10229 else
10230 OBJDUMP="$ac_cv_prog_OBJDUMP"
10231 fi
10232
10233 ;;
10234 esac
10235
10236 test -z "$AS" && AS=as
10237
10238
10239
10240
10241
10242 test -z "$DLLTOOL" && DLLTOOL=dlltool
10243
10244
10245
10246
10247
10248 test -z "$OBJDUMP" && OBJDUMP=objdump
10249
10250
10251
10252
10253
10254
10255
10256 enable_dlopen=no
10257
10258
10259
10260 # Check whether --enable-shared was given.
10261 if test ${enable_shared+y}
10262 then :
10263 enableval=$enable_shared; p=${PACKAGE-default}
10264 case $enableval in
10265 yes) enable_shared=yes ;;
10266 no) enable_shared=no ;;
10267 *)
10268 enable_shared=no
10269 # Look at the argument we got. We use all the common list separators.
10270 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10271 for pkg in $enableval; do
10272 IFS=$lt_save_ifs
10273 if test "X$pkg" = "X$p"; then
10274 enable_shared=yes
10275 fi
10276 done
10277 IFS=$lt_save_ifs
10278 ;;
10279 esac
10280 else case e in #(
10281 e) enable_shared=yes ;;
10282 esac
10283 fi
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293 # Check whether --enable-static was given.
10294 if test ${enable_static+y}
10295 then :
10296 enableval=$enable_static; p=${PACKAGE-default}
10297 case $enableval in
10298 yes) enable_static=yes ;;
10299 no) enable_static=no ;;
10300 *)
10301 enable_static=no
10302 # Look at the argument we got. We use all the common list separators.
10303 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10304 for pkg in $enableval; do
10305 IFS=$lt_save_ifs
10306 if test "X$pkg" = "X$p"; then
10307 enable_static=yes
10308 fi
10309 done
10310 IFS=$lt_save_ifs
10311 ;;
10312 esac
10313 else case e in #(
10314 e) enable_static=yes ;;
10315 esac
10316 fi
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326 # Check whether --enable-pic was given.
10327 if test ${enable_pic+y}
10328 then :
10329 enableval=$enable_pic; lt_p=${PACKAGE-default}
10330 case $enableval in
10331 yes|no) pic_mode=$enableval ;;
10332 *)
10333 pic_mode=default
10334 # Look at the argument we got. We use all the common list separators.
10335 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10336 for lt_pkg in $enableval; do
10337 IFS=$lt_save_ifs
10338 if test "X$lt_pkg" = "X$lt_p"; then
10339 pic_mode=yes
10340 fi
10341 done
10342 IFS=$lt_save_ifs
10343 ;;
10344 esac
10345 else case e in #(
10346 e) # Check whether --with-pic was given.
10347 if test ${with_pic+y}
10348 then :
10349 withval=$with_pic; lt_p=${PACKAGE-default}
10350 case $withval in
10351 yes|no) pic_mode=$withval ;;
10352 *)
10353 pic_mode=default
10354 # Look at the argument we got. We use all the common list separators.
10355 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10356 for lt_pkg in $withval; do
10357 IFS=$lt_save_ifs
10358 if test "X$lt_pkg" = "X$lt_p"; then
10359 pic_mode=yes
10360 fi
10361 done
10362 IFS=$lt_save_ifs
10363 ;;
10364 esac
10365 else case e in #(
10366 e) pic_mode=default ;;
10367 esac
10368 fi
10369
10370 ;;
10371 esac
10372 fi
10373
10374
10375
10376
10377
10378
10379
10380
10381 # Check whether --enable-fast-install was given.
10382 if test ${enable_fast_install+y}
10383 then :
10384 enableval=$enable_fast_install; p=${PACKAGE-default}
10385 case $enableval in
10386 yes) enable_fast_install=yes ;;
10387 no) enable_fast_install=no ;;
10388 *)
10389 enable_fast_install=no
10390 # Look at the argument we got. We use all the common list separators.
10391 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10392 for pkg in $enableval; do
10393 IFS=$lt_save_ifs
10394 if test "X$pkg" = "X$p"; then
10395 enable_fast_install=yes
10396 fi
10397 done
10398 IFS=$lt_save_ifs
10399 ;;
10400 esac
10401 else case e in #(
10402 e) enable_fast_install=yes ;;
10403 esac
10404 fi
10405
10406
10407
10408
10409
10410
10411
10412
10413 shared_archive_member_spec=
10414 case $host,$enable_shared in
10415 power*-*-aix[5-9]*,yes)
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10417 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10418 # Check whether --enable-aix-soname was given.
10419 if test ${enable_aix_soname+y}
10420 then :
10421 enableval=$enable_aix_soname; case $enableval in
10422 aix|svr4|both)
10423 ;;
10424 *)
10425 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10426 ;;
10427 esac
10428 lt_cv_with_aix_soname=$enable_aix_soname
10429 else case e in #(
10430 e) # Check whether --with-aix-soname was given.
10431 if test ${with_aix_soname+y}
10432 then :
10433 withval=$with_aix_soname; case $withval in
10434 aix|svr4|both)
10435 ;;
10436 *)
10437 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10438 ;;
10439 esac
10440 lt_cv_with_aix_soname=$with_aix_soname
10441 else case e in #(
10442 e) if test ${lt_cv_with_aix_soname+y}
10443 then :
10444 printf %s "(cached) " >&6
10445 else case e in #(
10446 e) lt_cv_with_aix_soname=aix ;;
10447 esac
10448 fi
10449 ;;
10450 esac
10451 fi
10452
10453 enable_aix_soname=$lt_cv_with_aix_soname ;;
10454 esac
10455 fi
10456
10457 with_aix_soname=$enable_aix_soname
10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10459 printf "%s\n" "$with_aix_soname" >&6; }
10460 if test aix != "$with_aix_soname"; then
10461 # For the AIX way of multilib, we name the shared archive member
10462 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10463 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10464 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10465 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10466 if test 64 = "${OBJECT_MODE-32}"; then
10467 shared_archive_member_spec=shr_64
10468 else
10469 shared_archive_member_spec=shr
10470 fi
10471 fi
10472 ;;
10473 *)
10474 with_aix_soname=aix
10475 ;;
10476 esac
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487 # This can be used to rebuild libtool when needed
10488 LIBTOOL_DEPS=$ltmain
10489
10490 # Always use our own libtool.
10491 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522 test -z "$LN_S" && LN_S="ln -s"
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537 if test -n "${ZSH_VERSION+set}"; then
10538 setopt NO_GLOB_SUBST
10539 fi
10540
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10542 printf %s "checking for objdir... " >&6; }
10543 if test ${lt_cv_objdir+y}
10544 then :
10545 printf %s "(cached) " >&6
10546 else case e in #(
10547 e) rm -f .libs 2>/dev/null
10548 mkdir .libs 2>/dev/null
10549 if test -d .libs; then
10550 lt_cv_objdir=.libs
10551 else
10552 # MS-DOS does not allow filenames that begin with a dot.
10553 lt_cv_objdir=_libs
10554 fi
10555 rmdir .libs 2>/dev/null ;;
10556 esac
10557 fi
10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10559 printf "%s\n" "$lt_cv_objdir" >&6; }
10560 objdir=$lt_cv_objdir
10561
10562
10563
10564
10565
10566 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10567
10568
10569
10570
10571 case $host_os in
10572 aix3*)
10573 # AIX sometimes has problems with the GCC collect2 program. For some
10574 # reason, if we set the COLLECT_NAMES environment variable, the problems
10575 # vanish in a puff of smoke.
10576 if test set != "${COLLECT_NAMES+set}"; then
10577 COLLECT_NAMES=
10578 export COLLECT_NAMES
10579 fi
10580 ;;
10581 esac
10582
10583 # Global variables:
10584 ofile=libtool
10585 can_build_shared=yes
10586
10587 # All known linkers require a '.a' archive for static linking (except MSVC and
10588 # ICC, which need '.lib').
10589 libext=a
10590
10591 with_gnu_ld=$lt_cv_prog_gnu_ld
10592
10593 old_CC=$CC
10594 old_CFLAGS=$CFLAGS
10595
10596 # Set sane defaults for various variables
10597 test -z "$CC" && CC=cc
10598 test -z "$LTCC" && LTCC=$CC
10599 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10600 test -z "$LD" && LD=ld
10601 test -z "$ac_objext" && ac_objext=o
10602
10603 func_cc_basename $compiler
10604 cc_basename=$func_cc_basename_result
10605
10606
10607 # Only perform the check for file, if the check method requires it
10608 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10609 case $deplibs_check_method in
10610 file_magic*)
10611 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10613 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10614 if test ${lt_cv_path_MAGIC_CMD+y}
10615 then :
10616 printf %s "(cached) " >&6
10617 else case e in #(
10618 e) case $MAGIC_CMD in
10619 [\\/*] | ?:[\\/]*)
10620 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10621 ;;
10622 *)
10623 lt_save_MAGIC_CMD=$MAGIC_CMD
10624 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10626 for ac_dir in $ac_dummy; do
10627 IFS=$lt_save_ifs
10628 test -z "$ac_dir" && ac_dir=.
10629 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10630 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10631 if test -n "$file_magic_test_file"; then
10632 case $deplibs_check_method in
10633 "file_magic "*)
10634 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10635 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10637 $EGREP "$file_magic_regex" > /dev/null; then
10638 :
10639 else
10640 cat <<_LT_EOF 1>&2
10641
10642 *** Warning: the command libtool uses to detect shared libraries,
10643 *** $file_magic_cmd, produces output that libtool cannot recognize.
10644 *** The result is that libtool may fail to recognize shared libraries
10645 *** as such. This will affect the creation of libtool libraries that
10646 *** depend on shared libraries, but programs linked with such libtool
10647 *** libraries will work regardless of this problem. Nevertheless, you
10648 *** may want to report the problem to your system manager and/or to
10649 *** [email protected]
10650
10651 _LT_EOF
10652 fi ;;
10653 esac
10654 fi
10655 break
10656 fi
10657 done
10658 IFS=$lt_save_ifs
10659 MAGIC_CMD=$lt_save_MAGIC_CMD
10660 ;;
10661 esac ;;
10662 esac
10663 fi
10664
10665 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10666 if test -n "$MAGIC_CMD"; then
10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10668 printf "%s\n" "$MAGIC_CMD" >&6; }
10669 else
10670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 printf "%s\n" "no" >&6; }
10672 fi
10673
10674
10675
10676
10677
10678 if test -z "$lt_cv_path_MAGIC_CMD"; then
10679 if test -n "$ac_tool_prefix"; then
10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10681 printf %s "checking for file... " >&6; }
10682 if test ${lt_cv_path_MAGIC_CMD+y}
10683 then :
10684 printf %s "(cached) " >&6
10685 else case e in #(
10686 e) case $MAGIC_CMD in
10687 [\\/*] | ?:[\\/]*)
10688 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10689 ;;
10690 *)
10691 lt_save_MAGIC_CMD=$MAGIC_CMD
10692 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10694 for ac_dir in $ac_dummy; do
10695 IFS=$lt_save_ifs
10696 test -z "$ac_dir" && ac_dir=.
10697 if test -f "$ac_dir/file"; then
10698 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10699 if test -n "$file_magic_test_file"; then
10700 case $deplibs_check_method in
10701 "file_magic "*)
10702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10703 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10705 $EGREP "$file_magic_regex" > /dev/null; then
10706 :
10707 else
10708 cat <<_LT_EOF 1>&2
10709
10710 *** Warning: the command libtool uses to detect shared libraries,
10711 *** $file_magic_cmd, produces output that libtool cannot recognize.
10712 *** The result is that libtool may fail to recognize shared libraries
10713 *** as such. This will affect the creation of libtool libraries that
10714 *** depend on shared libraries, but programs linked with such libtool
10715 *** libraries will work regardless of this problem. Nevertheless, you
10716 *** may want to report the problem to your system manager and/or to
10717 *** [email protected]
10718
10719 _LT_EOF
10720 fi ;;
10721 esac
10722 fi
10723 break
10724 fi
10725 done
10726 IFS=$lt_save_ifs
10727 MAGIC_CMD=$lt_save_MAGIC_CMD
10728 ;;
10729 esac ;;
10730 esac
10731 fi
10732
10733 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10734 if test -n "$MAGIC_CMD"; then
10735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10736 printf "%s\n" "$MAGIC_CMD" >&6; }
10737 else
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 printf "%s\n" "no" >&6; }
10740 fi
10741
10742
10743 else
10744 MAGIC_CMD=:
10745 fi
10746 fi
10747
10748 fi
10749 ;;
10750 esac
10751
10752 # Use C for the default configuration in the libtool script
10753
10754 lt_save_CC=$CC
10755 ac_ext=c
10756 ac_cpp='$CPP $CPPFLAGS'
10757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10760
10761
10762 # Source file extension for C test sources.
10763 ac_ext=c
10764
10765 # Object file extension for compiled C test sources.
10766 objext=o
10767 objext=$objext
10768
10769 # Code to be used in simple compile tests
10770 lt_simple_compile_test_code="int some_variable = 0;"
10771
10772 # Code to be used in simple link tests
10773 lt_simple_link_test_code='int main(void){return(0);}'
10774
10775
10776
10777
10778
10779
10780
10781 # If no C compiler was specified, use CC.
10782 LTCC=${LTCC-"$CC"}
10783
10784 # If no C compiler flags were specified, use CFLAGS.
10785 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10786
10787 # Allow CC to be a program name with arguments.
10788 compiler=$CC
10789
10790 # Save the default compiler, since it gets overwritten when the other
10791 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10792 compiler_DEFAULT=$CC
10793
10794 # save warnings/boilerplate of simple test code
10795 ac_outfile=conftest.$ac_objext
10796 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10797 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10798 _lt_compiler_boilerplate=`cat conftest.err`
10799 $RM conftest*
10800
10801 ac_outfile=conftest.$ac_objext
10802 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10803 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10804 _lt_linker_boilerplate=`cat conftest.err`
10805 $RM -r conftest*
10806
10807
10808 if test -n "$compiler"; then
10809
10810 lt_prog_compiler_no_builtin_flag=
10811
10812 if test yes = "$GCC"; then
10813 case $cc_basename in
10814 nvcc*)
10815 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10816 *)
10817 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10818 esac
10819
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10821 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10822 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10823 then :
10824 printf %s "(cached) " >&6
10825 else case e in #(
10826 e) lt_cv_prog_compiler_rtti_exceptions=no
10827 ac_outfile=conftest.$ac_objext
10828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10829 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10830 # Insert the option either (1) after the last *FLAGS variable, or
10831 # (2) before a word containing "conftest.", or (3) at the end.
10832 # Note that $ac_compile itself does not contain backslashes and begins
10833 # with a dollar sign (not a hyphen), so the echo should work correctly.
10834 # The option is referenced via a variable to avoid confusing sed.
10835 lt_compile=`echo "$ac_compile" | $SED \
10836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10838 -e 's:$: $lt_compiler_flag:'`
10839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10840 (eval "$lt_compile" 2>conftest.err)
10841 ac_status=$?
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 if (exit $ac_status) && test -s "$ac_outfile"; then
10845 # The compiler can only warn and ignore the option if not recognized
10846 # So say no if there are warnings other than the usual output.
10847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10850 lt_cv_prog_compiler_rtti_exceptions=yes
10851 fi
10852 fi
10853 $RM conftest*
10854 ;;
10855 esac
10856 fi
10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10858 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10859
10860 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10861 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10862 else
10863 :
10864 fi
10865
10866 fi
10867
10868
10869
10870
10871
10872
10873 lt_prog_compiler_wl=
10874 lt_prog_compiler_pic=
10875 lt_prog_compiler_static=
10876
10877
10878 if test yes = "$GCC"; then
10879 lt_prog_compiler_wl='-Wl,'
10880 lt_prog_compiler_static='-static'
10881
10882 case $host_os in
10883 aix*)
10884 # All AIX code is PIC.
10885 if test ia64 = "$host_cpu"; then
10886 # AIX 5 now supports IA64 processor
10887 lt_prog_compiler_static='-Bstatic'
10888 fi
10889 lt_prog_compiler_pic='-fPIC'
10890 ;;
10891
10892 amigaos*)
10893 case $host_cpu in
10894 powerpc)
10895 # see comment about AmigaOS4 .so support
10896 lt_prog_compiler_pic='-fPIC'
10897 ;;
10898 m68k)
10899 # FIXME: we need at least 68020 code to build shared libraries, but
10900 # adding the '-m68020' flag to GCC prevents building anything better,
10901 # like '-m68040'.
10902 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10903 ;;
10904 esac
10905 ;;
10906
10907 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10908 # PIC is the default for these OSes.
10909 ;;
10910
10911 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10912 # This hack is so that the source file can tell whether it is being
10913 # built for inclusion in a dll (and should export symbols for example).
10914 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10915 # (--disable-auto-import) libraries
10916 lt_prog_compiler_pic='-DDLL_EXPORT'
10917 case $host_os in
10918 os2*)
10919 lt_prog_compiler_static='$wl-static'
10920 ;;
10921 esac
10922 ;;
10923
10924 darwin* | rhapsody*)
10925 # PIC is the default on this platform
10926 # Common symbols not allowed in MH_DYLIB files
10927 lt_prog_compiler_pic='-fno-common'
10928 ;;
10929
10930 haiku*)
10931 # PIC is the default for Haiku.
10932 # The "-static" flag exists, but is broken.
10933 lt_prog_compiler_static=
10934 ;;
10935
10936 hpux*)
10937 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10938 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10939 # sets the default TLS model and affects inlining.
10940 case $host_cpu in
10941 hppa*64*)
10942 # +Z the default
10943 ;;
10944 *)
10945 lt_prog_compiler_pic='-fPIC'
10946 ;;
10947 esac
10948 ;;
10949
10950 interix[3-9]*)
10951 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10952 # Instead, we relocate shared libraries at runtime.
10953 ;;
10954
10955 msdosdjgpp*)
10956 # Just because we use GCC doesn't mean we suddenly get shared libraries
10957 # on systems that don't support them.
10958 lt_prog_compiler_can_build_shared=no
10959 enable_shared=no
10960 ;;
10961
10962 *nto* | *qnx*)
10963 # QNX uses GNU C++, but need to define -shared option too, otherwise
10964 # it will coredump.
10965 lt_prog_compiler_pic='-fPIC -shared'
10966 ;;
10967
10968 sysv4*MP*)
10969 if test -d /usr/nec; then
10970 lt_prog_compiler_pic=-Kconform_pic
10971 fi
10972 ;;
10973
10974 *)
10975 lt_prog_compiler_pic='-fPIC'
10976 ;;
10977 esac
10978
10979 case $cc_basename in
10980 nvcc*) # Cuda Compiler Driver 2.2
10981 lt_prog_compiler_wl='-Xlinker '
10982 if test -n "$lt_prog_compiler_pic"; then
10983 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10984 fi
10985 ;;
10986 esac
10987 else
10988 # PORTME Check for flag to pass linker flags through the system compiler.
10989 case $host_os in
10990 aix*)
10991 lt_prog_compiler_wl='-Wl,'
10992 if test ia64 = "$host_cpu"; then
10993 # AIX 5 now supports IA64 processor
10994 lt_prog_compiler_static='-Bstatic'
10995 else
10996 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10997 fi
10998 ;;
10999
11000 darwin* | rhapsody*)
11001 # PIC is the default on this platform
11002 # Common symbols not allowed in MH_DYLIB files
11003 lt_prog_compiler_pic='-fno-common'
11004 case $cc_basename in
11005 nagfor*)
11006 # NAG Fortran compiler
11007 lt_prog_compiler_wl='-Wl,-Wl,,'
11008 lt_prog_compiler_pic='-PIC'
11009 lt_prog_compiler_static='-Bstatic'
11010 ;;
11011 esac
11012 ;;
11013
11014 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11015 # This hack is so that the source file can tell whether it is being
11016 # built for inclusion in a dll (and should export symbols for example).
11017 lt_prog_compiler_pic='-DDLL_EXPORT'
11018 case $host_os in
11019 os2*)
11020 lt_prog_compiler_static='$wl-static'
11021 ;;
11022 esac
11023 ;;
11024
11025 hpux9* | hpux10* | hpux11*)
11026 lt_prog_compiler_wl='-Wl,'
11027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11028 # not for PA HP-UX.
11029 case $host_cpu in
11030 hppa*64*|ia64*)
11031 # +Z the default
11032 ;;
11033 *)
11034 lt_prog_compiler_pic='+Z'
11035 ;;
11036 esac
11037 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11038 lt_prog_compiler_static='$wl-a ${wl}archive'
11039 ;;
11040
11041 irix5* | irix6* | nonstopux*)
11042 lt_prog_compiler_wl='-Wl,'
11043 # PIC (with -KPIC) is the default.
11044 lt_prog_compiler_static='-non_shared'
11045 ;;
11046
11047 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11048 case $cc_basename in
11049 # old Intel for x86_64, which still supported -KPIC.
11050 ecc*)
11051 lt_prog_compiler_wl='-Wl,'
11052 lt_prog_compiler_pic='-KPIC'
11053 lt_prog_compiler_static='-static'
11054 ;;
11055 *flang* | ftn | f18* | f95*)
11056 # Flang compiler.
11057 lt_prog_compiler_wl='-Wl,'
11058 lt_prog_compiler_pic='-fPIC'
11059 lt_prog_compiler_static='-static'
11060 ;;
11061 # icc used to be incompatible with GCC.
11062 # ICC 10 doesn't accept -KPIC any more.
11063 icc* | ifort*)
11064 lt_prog_compiler_wl='-Wl,'
11065 lt_prog_compiler_pic='-fPIC'
11066 lt_prog_compiler_static='-static'
11067 ;;
11068 # Lahey Fortran 8.1.
11069 lf95*)
11070 lt_prog_compiler_wl='-Wl,'
11071 lt_prog_compiler_pic='--shared'
11072 lt_prog_compiler_static='--static'
11073 ;;
11074 nagfor*)
11075 # NAG Fortran compiler
11076 lt_prog_compiler_wl='-Wl,-Wl,,'
11077 lt_prog_compiler_pic='-PIC'
11078 lt_prog_compiler_static='-Bstatic'
11079 ;;
11080 tcc*)
11081 # Fabrice Bellard et al's Tiny C Compiler
11082 lt_prog_compiler_wl='-Wl,'
11083 lt_prog_compiler_pic='-fPIC'
11084 lt_prog_compiler_static='-static'
11085 ;;
11086 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11087 # Portland Group compilers (*not* the Pentium gcc compiler,
11088 # which looks to be a dead project)
11089 lt_prog_compiler_wl='-Wl,'
11090 lt_prog_compiler_pic='-fpic'
11091 lt_prog_compiler_static='-Bstatic'
11092 ;;
11093 ccc*)
11094 lt_prog_compiler_wl='-Wl,'
11095 # All Alpha code is PIC.
11096 lt_prog_compiler_static='-non_shared'
11097 ;;
11098 xl* | bgxl* | bgf* | mpixl*)
11099 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11100 lt_prog_compiler_wl='-Wl,'
11101 lt_prog_compiler_pic='-qpic'
11102 lt_prog_compiler_static='-qstaticlink'
11103 ;;
11104 *)
11105 case `$CC -V 2>&1 | $SED 5q` in
11106 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11107 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11108 lt_prog_compiler_pic='-KPIC'
11109 lt_prog_compiler_static='-Bstatic'
11110 lt_prog_compiler_wl=''
11111 ;;
11112 *Sun\ F* | *Sun*Fortran*)
11113 lt_prog_compiler_pic='-KPIC'
11114 lt_prog_compiler_static='-Bstatic'
11115 lt_prog_compiler_wl='-Qoption ld '
11116 ;;
11117 *Sun\ C*)
11118 # Sun C 5.9
11119 lt_prog_compiler_pic='-KPIC'
11120 lt_prog_compiler_static='-Bstatic'
11121 lt_prog_compiler_wl='-Wl,'
11122 ;;
11123 *Intel*\ [CF]*Compiler*)
11124 lt_prog_compiler_wl='-Wl,'
11125 lt_prog_compiler_pic='-fPIC'
11126 lt_prog_compiler_static='-static'
11127 ;;
11128 *Portland\ Group*)
11129 lt_prog_compiler_wl='-Wl,'
11130 lt_prog_compiler_pic='-fpic'
11131 lt_prog_compiler_static='-Bstatic'
11132 ;;
11133 esac
11134 ;;
11135 esac
11136 ;;
11137
11138 newsos6)
11139 lt_prog_compiler_pic='-KPIC'
11140 lt_prog_compiler_static='-Bstatic'
11141 ;;
11142
11143 *-mlibc)
11144 lt_prog_compiler_wl='-Wl,'
11145 lt_prog_compiler_pic='-fPIC'
11146 lt_prog_compiler_static='-static'
11147 ;;
11148
11149 *nto* | *qnx*)
11150 # QNX uses GNU C++, but need to define -shared option too, otherwise
11151 # it will coredump.
11152 lt_prog_compiler_pic='-fPIC -shared'
11153 ;;
11154
11155 osf3* | osf4* | osf5*)
11156 lt_prog_compiler_wl='-Wl,'
11157 # All OSF/1 code is PIC.
11158 lt_prog_compiler_static='-non_shared'
11159 ;;
11160
11161 rdos*)
11162 lt_prog_compiler_static='-non_shared'
11163 ;;
11164
11165 serenity*)
11166 ;;
11167
11168 solaris*)
11169 lt_prog_compiler_pic='-KPIC'
11170 lt_prog_compiler_static='-Bstatic'
11171 case $cc_basename in
11172 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11173 lt_prog_compiler_wl='-Qoption ld ';;
11174 *)
11175 lt_prog_compiler_wl='-Wl,';;
11176 esac
11177 ;;
11178
11179 sunos4*)
11180 lt_prog_compiler_wl='-Qoption ld '
11181 lt_prog_compiler_pic='-PIC'
11182 lt_prog_compiler_static='-Bstatic'
11183 ;;
11184
11185 sysv4 | sysv4.2uw2* | sysv4.3*)
11186 lt_prog_compiler_wl='-Wl,'
11187 lt_prog_compiler_pic='-KPIC'
11188 lt_prog_compiler_static='-Bstatic'
11189 ;;
11190
11191 sysv4*MP*)
11192 if test -d /usr/nec; then
11193 lt_prog_compiler_pic='-Kconform_pic'
11194 lt_prog_compiler_static='-Bstatic'
11195 fi
11196 ;;
11197
11198 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11199 lt_prog_compiler_wl='-Wl,'
11200 lt_prog_compiler_pic='-KPIC'
11201 lt_prog_compiler_static='-Bstatic'
11202 ;;
11203
11204 unicos*)
11205 lt_prog_compiler_wl='-Wl,'
11206 lt_prog_compiler_can_build_shared=no
11207 ;;
11208
11209 uts4*)
11210 lt_prog_compiler_pic='-pic'
11211 lt_prog_compiler_static='-Bstatic'
11212 ;;
11213
11214 *)
11215 lt_prog_compiler_can_build_shared=no
11216 ;;
11217 esac
11218 fi
11219
11220 case $host_os in
11221 # For platforms that do not support PIC, -DPIC is meaningless:
11222 *djgpp*)
11223 lt_prog_compiler_pic=
11224 ;;
11225 *)
11226 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11227 ;;
11228 esac
11229
11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11231 printf %s "checking for $compiler option to produce PIC... " >&6; }
11232 if test ${lt_cv_prog_compiler_pic+y}
11233 then :
11234 printf %s "(cached) " >&6
11235 else case e in #(
11236 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11237 esac
11238 fi
11239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11240 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11241 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11242
11243 #
11244 # Check to make sure the PIC flag actually works.
11245 #
11246 if test -n "$lt_prog_compiler_pic"; then
11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11248 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11249 if test ${lt_cv_prog_compiler_pic_works+y}
11250 then :
11251 printf %s "(cached) " >&6
11252 else case e in #(
11253 e) lt_cv_prog_compiler_pic_works=no
11254 ac_outfile=conftest.$ac_objext
11255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11256 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11257 # Insert the option either (1) after the last *FLAGS variable, or
11258 # (2) before a word containing "conftest.", or (3) at the end.
11259 # Note that $ac_compile itself does not contain backslashes and begins
11260 # with a dollar sign (not a hyphen), so the echo should work correctly.
11261 # The option is referenced via a variable to avoid confusing sed.
11262 lt_compile=`echo "$ac_compile" | $SED \
11263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11265 -e 's:$: $lt_compiler_flag:'`
11266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11267 (eval "$lt_compile" 2>conftest.err)
11268 ac_status=$?
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 if (exit $ac_status) && test -s "$ac_outfile"; then
11272 # The compiler can only warn and ignore the option if not recognized
11273 # So say no if there are warnings other than the usual output.
11274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11276 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11277 lt_cv_prog_compiler_pic_works=yes
11278 fi
11279 fi
11280 $RM conftest*
11281 ;;
11282 esac
11283 fi
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11285 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11286
11287 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11288 case $lt_prog_compiler_pic in
11289 "" | " "*) ;;
11290 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11291 esac
11292 else
11293 lt_prog_compiler_pic=
11294 lt_prog_compiler_can_build_shared=no
11295 fi
11296
11297 fi
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309 #
11310 # Check to make sure the static flag actually works.
11311 #
11312 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11314 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11315 if test ${lt_cv_prog_compiler_static_works+y}
11316 then :
11317 printf %s "(cached) " >&6
11318 else case e in #(
11319 e) lt_cv_prog_compiler_static_works=no
11320 save_LDFLAGS=$LDFLAGS
11321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11324 # The linker can only warn and ignore the option if not recognized
11325 # So say no if there are warnings
11326 if test -s conftest.err; then
11327 # Append any errors to the config.log.
11328 cat conftest.err 1>&5
11329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11331 if diff conftest.exp conftest.er2 >/dev/null; then
11332 lt_cv_prog_compiler_static_works=yes
11333 fi
11334 else
11335 lt_cv_prog_compiler_static_works=yes
11336 fi
11337 fi
11338 $RM -r conftest*
11339 LDFLAGS=$save_LDFLAGS
11340 ;;
11341 esac
11342 fi
11343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11344 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11345
11346 if test yes = "$lt_cv_prog_compiler_static_works"; then
11347 :
11348 else
11349 lt_prog_compiler_static=
11350 fi
11351
11352
11353
11354
11355
11356
11357
11358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11359 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11360 if test ${lt_cv_prog_compiler_c_o+y}
11361 then :
11362 printf %s "(cached) " >&6
11363 else case e in #(
11364 e) lt_cv_prog_compiler_c_o=no
11365 $RM -r conftest 2>/dev/null
11366 mkdir conftest
11367 cd conftest
11368 mkdir out
11369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11370
11371 lt_compiler_flag="-o out/conftest2.$ac_objext"
11372 # Insert the option either (1) after the last *FLAGS variable, or
11373 # (2) before a word containing "conftest.", or (3) at the end.
11374 # Note that $ac_compile itself does not contain backslashes and begins
11375 # with a dollar sign (not a hyphen), so the echo should work correctly.
11376 lt_compile=`echo "$ac_compile" | $SED \
11377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11379 -e 's:$: $lt_compiler_flag:'`
11380 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11381 (eval "$lt_compile" 2>out/conftest.err)
11382 ac_status=$?
11383 cat out/conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11386 then
11387 # The compiler can only warn and ignore the option if not recognized
11388 # So say no if there are warnings
11389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11390 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11391 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11392 lt_cv_prog_compiler_c_o=yes
11393 fi
11394 fi
11395 chmod u+w . 2>&5
11396 $RM conftest*
11397 # SGI C++ compiler will create directory out/ii_files/ for
11398 # template instantiation
11399 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11400 $RM out/* && rmdir out
11401 cd ..
11402 $RM -r conftest
11403 $RM conftest*
11404 ;;
11405 esac
11406 fi
11407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11408 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11409
11410
11411
11412
11413
11414
11415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11416 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11417 if test ${lt_cv_prog_compiler_c_o+y}
11418 then :
11419 printf %s "(cached) " >&6
11420 else case e in #(
11421 e) lt_cv_prog_compiler_c_o=no
11422 $RM -r conftest 2>/dev/null
11423 mkdir conftest
11424 cd conftest
11425 mkdir out
11426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11427
11428 lt_compiler_flag="-o out/conftest2.$ac_objext"
11429 # Insert the option either (1) after the last *FLAGS variable, or
11430 # (2) before a word containing "conftest.", or (3) at the end.
11431 # Note that $ac_compile itself does not contain backslashes and begins
11432 # with a dollar sign (not a hyphen), so the echo should work correctly.
11433 lt_compile=`echo "$ac_compile" | $SED \
11434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11436 -e 's:$: $lt_compiler_flag:'`
11437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11438 (eval "$lt_compile" 2>out/conftest.err)
11439 ac_status=$?
11440 cat out/conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11443 then
11444 # The compiler can only warn and ignore the option if not recognized
11445 # So say no if there are warnings
11446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11449 lt_cv_prog_compiler_c_o=yes
11450 fi
11451 fi
11452 chmod u+w . 2>&5
11453 $RM conftest*
11454 # SGI C++ compiler will create directory out/ii_files/ for
11455 # template instantiation
11456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11457 $RM out/* && rmdir out
11458 cd ..
11459 $RM -r conftest
11460 $RM conftest*
11461 ;;
11462 esac
11463 fi
11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11465 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11466
11467
11468
11469
11470 hard_links=nottested
11471 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11472 # do not overwrite the value of need_locks provided by the user
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11474 printf %s "checking if we can lock with hard links... " >&6; }
11475 hard_links=yes
11476 $RM conftest*
11477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11478 touch conftest.a
11479 ln conftest.a conftest.b 2>&5 || hard_links=no
11480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11482 printf "%s\n" "$hard_links" >&6; }
11483 if test no = "$hard_links"; then
11484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11485 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11486 need_locks=warn
11487 fi
11488 else
11489 need_locks=no
11490 fi
11491
11492
11493
11494
11495
11496
11497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11498 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11499
11500 runpath_var=
11501 allow_undefined_flag=
11502 always_export_symbols=no
11503 archive_cmds=
11504 archive_expsym_cmds=
11505 compiler_needs_object=no
11506 enable_shared_with_static_runtimes=no
11507 export_dynamic_flag_spec=
11508 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11509 hardcode_automatic=no
11510 hardcode_direct=no
11511 hardcode_direct_absolute=no
11512 hardcode_libdir_flag_spec=
11513 hardcode_libdir_separator=
11514 hardcode_minus_L=no
11515 hardcode_shlibpath_var=unsupported
11516 inherit_rpath=no
11517 link_all_deplibs=unknown
11518 module_cmds=
11519 module_expsym_cmds=
11520 old_archive_from_new_cmds=
11521 old_archive_from_expsyms_cmds=
11522 thread_safe_flag_spec=
11523 whole_archive_flag_spec=
11524 # include_expsyms should be a list of space-separated symbols to be *always*
11525 # included in the symbol list
11526 include_expsyms=
11527 # exclude_expsyms can be an extended regexp of symbols to exclude
11528 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11529 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11530 # as well as any symbol that contains 'd'.
11531 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11533 # platforms (ab)use it in PIC code, but their linkers get confused if
11534 # the symbol is explicitly referenced. Since portable code cannot
11535 # rely on this symbol name, it's probably fine to never include it in
11536 # preloaded symbol tables.
11537 # Exclude shared library initialization/finalization symbols.
11538 extract_expsyms_cmds=
11539
11540 case $host_os in
11541 cygwin* | mingw* | windows* | pw32* | cegcc*)
11542 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11543 # When not using gcc, we currently assume that we are using
11544 # Microsoft Visual C++ or Intel C++ Compiler.
11545 if test yes != "$GCC"; then
11546 with_gnu_ld=no
11547 fi
11548 ;;
11549 interix*)
11550 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11551 with_gnu_ld=yes
11552 ;;
11553 esac
11554
11555 ld_shlibs=yes
11556
11557 # On some targets, GNU ld is compatible enough with the native linker
11558 # that we're better off using the native interface for both.
11559 lt_use_gnu_ld_interface=no
11560 if test yes = "$with_gnu_ld"; then
11561 case $host_os in
11562 aix*)
11563 # The AIX port of GNU ld has always aspired to compatibility
11564 # with the native linker. However, as the warning in the GNU ld
11565 # block says, versions before 2.19.5* couldn't really create working
11566 # shared libraries, regardless of the interface used.
11567 case `$LD -v 2>&1` in
11568 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11569 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11570 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11571 *)
11572 lt_use_gnu_ld_interface=yes
11573 ;;
11574 esac
11575 ;;
11576 *)
11577 lt_use_gnu_ld_interface=yes
11578 ;;
11579 esac
11580 fi
11581
11582 if test yes = "$lt_use_gnu_ld_interface"; then
11583 # If archive_cmds runs LD, not CC, wlarc should be empty
11584 wlarc='$wl'
11585
11586 # Set some defaults for GNU ld with shared library support. These
11587 # are reset later if shared libraries are not supported. Putting them
11588 # here allows them to be overridden if necessary.
11589 runpath_var=LD_RUN_PATH
11590 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11591 export_dynamic_flag_spec='$wl--export-dynamic'
11592 # ancient GNU ld didn't support --whole-archive et. al.
11593 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11594 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11595 else
11596 whole_archive_flag_spec=
11597 fi
11598 supports_anon_versioning=no
11599 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11600 *GNU\ gold*) supports_anon_versioning=yes ;;
11601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11604 *\ 2.11.*) ;; # other 2.11 versions
11605 *) supports_anon_versioning=yes ;;
11606 esac
11607
11608 # See if GNU ld supports shared libraries.
11609 case $host_os in
11610 aix[3-9]*)
11611 # On AIX/PPC, the GNU linker is very broken
11612 if test ia64 != "$host_cpu"; then
11613 ld_shlibs=no
11614 cat <<_LT_EOF 1>&2
11615
11616 *** Warning: the GNU linker, at least up to release 2.19, is reported
11617 *** to be unable to reliably create shared libraries on AIX.
11618 *** Therefore, libtool is disabling shared libraries support. If you
11619 *** really care for shared libraries, you may want to install binutils
11620 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11621 *** You will then need to restart the configuration process.
11622
11623 _LT_EOF
11624 fi
11625 ;;
11626
11627 amigaos*)
11628 case $host_cpu in
11629 powerpc)
11630 # see comment about AmigaOS4 .so support
11631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11632 archive_expsym_cmds=''
11633 ;;
11634 m68k)
11635 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)'
11636 hardcode_libdir_flag_spec='-L$libdir'
11637 hardcode_minus_L=yes
11638 ;;
11639 esac
11640 ;;
11641
11642 beos*)
11643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11644 allow_undefined_flag=unsupported
11645 # Joseph Beckenbach <[email protected]> says some releases of gcc
11646 # support --undefined. This deserves some investigation. FIXME
11647 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11648 else
11649 ld_shlibs=no
11650 fi
11651 ;;
11652
11653 cygwin* | mingw* | windows* | pw32* | cegcc*)
11654 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11655 # as there is no search path for DLLs.
11656 hardcode_libdir_flag_spec='-L$libdir'
11657 export_dynamic_flag_spec='$wl--export-all-symbols'
11658 allow_undefined_flag=unsupported
11659 always_export_symbols=no
11660 enable_shared_with_static_runtimes=yes
11661 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'
11662 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11663 file_list_spec='@'
11664
11665 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11667 # If the export-symbols file already is a .def file, use it as
11668 # is; otherwise, prepend EXPORTS...
11669 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11670 cp $export_symbols $output_objdir/$soname.def;
11671 else
11672 echo EXPORTS > $output_objdir/$soname.def;
11673 cat $export_symbols >> $output_objdir/$soname.def;
11674 fi~
11675 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11676 else
11677 ld_shlibs=no
11678 fi
11679 ;;
11680
11681 haiku*)
11682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11683 link_all_deplibs=no
11684 ;;
11685
11686 os2*)
11687 hardcode_libdir_flag_spec='-L$libdir'
11688 hardcode_minus_L=yes
11689 allow_undefined_flag=unsupported
11690 shrext_cmds=.dll
11691 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11692 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11693 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11694 $ECHO EXPORTS >> $output_objdir/$libname.def~
11695 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11696 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11697 emximp -o $lib $output_objdir/$libname.def'
11698 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11699 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11700 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11701 $ECHO EXPORTS >> $output_objdir/$libname.def~
11702 prefix_cmds="$SED"~
11703 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11704 prefix_cmds="$prefix_cmds -e 1d";
11705 fi~
11706 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11707 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11708 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11709 emximp -o $lib $output_objdir/$libname.def'
11710 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11711 enable_shared_with_static_runtimes=yes
11712 file_list_spec='@'
11713 ;;
11714
11715 interix[3-9]*)
11716 hardcode_direct=no
11717 hardcode_shlibpath_var=no
11718 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11719 export_dynamic_flag_spec='$wl-E'
11720 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11721 # Instead, shared libraries are loaded at an image base (0x10000000 by
11722 # default) and relocated if they conflict, which is a slow very memory
11723 # consuming and fragmenting process. To avoid this, we pick a random,
11724 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11725 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11726 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11727 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'
11728 ;;
11729
11730 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11731 tmp_diet=no
11732 if test linux-dietlibc = "$host_os"; then
11733 case $cc_basename in
11734 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11735 esac
11736 fi
11737 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11738 && test no = "$tmp_diet"
11739 then
11740 tmp_addflag=' $pic_flag'
11741 tmp_sharedflag='-shared'
11742 case $cc_basename,$host_cpu in
11743 pgcc*) # Portland Group C compiler
11744 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'
11745 tmp_addflag=' $pic_flag'
11746 ;;
11747 pgf77* | pgf90* | pgf95* | pgfortran*)
11748 # Portland Group f77 and f90 compilers
11749 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'
11750 tmp_addflag=' $pic_flag -Mnomain' ;;
11751 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11752 tmp_addflag=' -i_dynamic' ;;
11753 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11754 tmp_addflag=' -i_dynamic -nofor_main' ;;
11755 ifc* | ifort*) # Intel Fortran compiler
11756 tmp_addflag=' -nofor_main' ;;
11757 lf95*) # Lahey Fortran 8.1
11758 whole_archive_flag_spec=
11759 tmp_sharedflag='--shared' ;;
11760 nagfor*) # NAGFOR 5.3
11761 tmp_sharedflag='-Wl,-shared' ;;
11762 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11763 tmp_sharedflag='-qmkshrobj'
11764 tmp_addflag= ;;
11765 nvcc*) # Cuda Compiler Driver 2.2
11766 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'
11767 compiler_needs_object=yes
11768 ;;
11769 esac
11770 case `$CC -V 2>&1 | $SED 5q` in
11771 *Sun\ C*) # Sun C 5.9
11772 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'
11773 compiler_needs_object=yes
11774 tmp_sharedflag='-G' ;;
11775 *Sun\ F*) # Sun Fortran 8.3
11776 tmp_sharedflag='-G' ;;
11777 esac
11778 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11779
11780 if test yes = "$supports_anon_versioning"; then
11781 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11782 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11783 echo "local: *; };" >> $output_objdir/$libname.ver~
11784 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11785 fi
11786
11787 case $cc_basename in
11788 tcc*)
11789 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11790 export_dynamic_flag_spec='-rdynamic'
11791 ;;
11792 xlf* | bgf* | bgxlf* | mpixlf*)
11793 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11794 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11796 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11797 if test yes = "$supports_anon_versioning"; then
11798 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11799 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11800 echo "local: *; };" >> $output_objdir/$libname.ver~
11801 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11802 fi
11803 ;;
11804 esac
11805 else
11806 ld_shlibs=no
11807 fi
11808 ;;
11809
11810 *-mlibc)
11811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11812 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11813 ;;
11814
11815 netbsd* | netbsdelf*-gnu)
11816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11817 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11818 wlarc=
11819 else
11820 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11821 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11822 fi
11823 ;;
11824
11825 solaris*)
11826 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11827 ld_shlibs=no
11828 cat <<_LT_EOF 1>&2
11829
11830 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11831 *** create shared libraries on Solaris systems. Therefore, libtool
11832 *** is disabling shared libraries support. We urge you to upgrade GNU
11833 *** binutils to release 2.9.1 or newer. Another option is to modify
11834 *** your PATH or compiler configuration so that the native linker is
11835 *** used, and then restart.
11836
11837 _LT_EOF
11838 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11839 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11840 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11841 else
11842 ld_shlibs=no
11843 fi
11844 ;;
11845
11846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11847 case `$LD -v 2>&1` in
11848 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11849 ld_shlibs=no
11850 cat <<_LT_EOF 1>&2
11851
11852 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11853 *** reliably create shared libraries on SCO systems. Therefore, libtool
11854 *** is disabling shared libraries support. We urge you to upgrade GNU
11855 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11856 *** your PATH or compiler configuration so that the native linker is
11857 *** used, and then restart.
11858
11859 _LT_EOF
11860 ;;
11861 *)
11862 # For security reasons, it is highly recommended that you always
11863 # use absolute paths for naming shared libraries, and exclude the
11864 # DT_RUNPATH tag from executables and libraries. But doing so
11865 # requires that you compile everything twice, which is a pain.
11866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11870 else
11871 ld_shlibs=no
11872 fi
11873 ;;
11874 esac
11875 ;;
11876
11877 sunos4*)
11878 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11879 wlarc=
11880 hardcode_direct=yes
11881 hardcode_shlibpath_var=no
11882 ;;
11883
11884 *)
11885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11887 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11888 else
11889 ld_shlibs=no
11890 fi
11891 ;;
11892 esac
11893
11894 if test no = "$ld_shlibs"; then
11895 runpath_var=
11896 hardcode_libdir_flag_spec=
11897 export_dynamic_flag_spec=
11898 whole_archive_flag_spec=
11899 fi
11900 else
11901 # PORTME fill in a description of your system's linker (not GNU ld)
11902 case $host_os in
11903 aix3*)
11904 allow_undefined_flag=unsupported
11905 always_export_symbols=yes
11906 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'
11907 # Note: this linker hardcodes the directories in LIBPATH if there
11908 # are no directories specified by -L.
11909 hardcode_minus_L=yes
11910 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11911 # Neither direct hardcoding nor static linking is supported with a
11912 # broken collect2.
11913 hardcode_direct=unsupported
11914 fi
11915 ;;
11916
11917 aix[4-9]*)
11918 if test ia64 = "$host_cpu"; then
11919 # On IA64, the linker does run time linking by default, so we don't
11920 # have to do anything special.
11921 aix_use_runtimelinking=no
11922 exp_sym_flag='-Bexport'
11923 no_entry_flag=
11924 else
11925 # If we're using GNU nm, then we don't want the "-C" option.
11926 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11927 # Without the "-l" option, or with the "-B" option, AIX nm treats
11928 # weak defined symbols like other global defined symbols, whereas
11929 # GNU nm marks them as "W".
11930 # While the 'weak' keyword is ignored in the Export File, we need
11931 # it in the Import File for the 'aix-soname' feature, so we have
11932 # to replace the "-B" option with "-P" for AIX nm.
11933 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11934 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'
11935 else
11936 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'
11937 fi
11938 aix_use_runtimelinking=no
11939
11940 # Test if we are trying to use run time linking or normal
11941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11942 # have runtime linking enabled, and use it for executables.
11943 # For shared libraries, we enable/disable runtime linking
11944 # depending on the kind of the shared library created -
11945 # when "with_aix_soname,aix_use_runtimelinking" is:
11946 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11947 # "aix,yes" lib.so shared, rtl:yes, for executables
11948 # lib.a static archive
11949 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11950 # lib.a(lib.so.V) shared, rtl:no, for executables
11951 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11952 # lib.a(lib.so.V) shared, rtl:no
11953 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11954 # lib.a static archive
11955 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11956 for ld_flag in $LDFLAGS; do
11957 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11958 aix_use_runtimelinking=yes
11959 break
11960 fi
11961 done
11962 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11963 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11964 # so we don't have lib.a shared libs to link our executables.
11965 # We have to force runtime linking in this case.
11966 aix_use_runtimelinking=yes
11967 LDFLAGS="$LDFLAGS -Wl,-brtl"
11968 fi
11969 ;;
11970 esac
11971
11972 exp_sym_flag='-bexport'
11973 no_entry_flag='-bnoentry'
11974 fi
11975
11976 # When large executables or shared objects are built, AIX ld can
11977 # have problems creating the table of contents. If linking a library
11978 # or program results in "error TOC overflow" add -mminimal-toc to
11979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11981
11982 archive_cmds=''
11983 hardcode_direct=yes
11984 hardcode_direct_absolute=yes
11985 hardcode_libdir_separator=':'
11986 link_all_deplibs=yes
11987 file_list_spec='$wl-f,'
11988 case $with_aix_soname,$aix_use_runtimelinking in
11989 aix,*) ;; # traditional, no import file
11990 svr4,* | *,yes) # use import file
11991 # The Import File defines what to hardcode.
11992 hardcode_direct=no
11993 hardcode_direct_absolute=no
11994 ;;
11995 esac
11996
11997 if test yes = "$GCC"; then
11998 case $host_os in aix4.[012]|aix4.[012].*)
11999 # We only want to do this on AIX 4.2 and lower, the check
12000 # below for broken collect2 doesn't work under 4.3+
12001 collect2name=`$CC -print-prog-name=collect2`
12002 if test -f "$collect2name" &&
12003 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12004 then
12005 # We have reworked collect2
12006 :
12007 else
12008 # We have old collect2
12009 hardcode_direct=unsupported
12010 # It fails to find uninstalled libraries when the uninstalled
12011 # path is not listed in the libpath. Setting hardcode_minus_L
12012 # to unsupported forces relinking
12013 hardcode_minus_L=yes
12014 hardcode_libdir_flag_spec='-L$libdir'
12015 hardcode_libdir_separator=
12016 fi
12017 ;;
12018 esac
12019 shared_flag='-shared'
12020 if test yes = "$aix_use_runtimelinking"; then
12021 shared_flag="$shared_flag "'$wl-G'
12022 fi
12023 # Need to ensure runtime linking is disabled for the traditional
12024 # shared library, or the linker may eventually find shared libraries
12025 # /with/ Import File - we do not want to mix them.
12026 shared_flag_aix='-shared'
12027 shared_flag_svr4='-shared $wl-G'
12028 else
12029 # not using gcc
12030 if test ia64 = "$host_cpu"; then
12031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12032 # chokes on -Wl,-G. The following line is correct:
12033 shared_flag='-G'
12034 else
12035 if test yes = "$aix_use_runtimelinking"; then
12036 shared_flag='$wl-G'
12037 else
12038 shared_flag='$wl-bM:SRE'
12039 fi
12040 shared_flag_aix='$wl-bM:SRE'
12041 shared_flag_svr4='$wl-G'
12042 fi
12043 fi
12044
12045 export_dynamic_flag_spec='$wl-bexpall'
12046 # It seems that -bexpall does not export symbols beginning with
12047 # underscore (_), so it is better to generate a list of symbols to export.
12048 always_export_symbols=yes
12049 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12050 # Warning - without using the other runtime loading flags (-brtl),
12051 # -berok will link without error, but may produce a broken library.
12052 allow_undefined_flag='-berok'
12053 # Determine the default libpath from the value encoded in an
12054 # empty executable.
12055 if test set = "${lt_cv_aix_libpath+set}"; then
12056 aix_libpath=$lt_cv_aix_libpath
12057 else
12058 if test ${lt_cv_aix_libpath_+y}
12059 then :
12060 printf %s "(cached) " >&6
12061 else case e in #(
12062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12064
12065 int
12066 main (void)
12067 {
12068
12069 ;
12070 return 0;
12071 }
12072 _ACEOF
12073 if ac_fn_c_try_link "$LINENO"
12074 then :
12075
12076 lt_aix_libpath_sed='
12077 /Import File Strings/,/^$/ {
12078 /^0/ {
12079 s/^0 *\([^ ]*\) *$/\1/
12080 p
12081 }
12082 }'
12083 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12084 # Check for a 64-bit object if we didn't find anything.
12085 if test -z "$lt_cv_aix_libpath_"; then
12086 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12087 fi
12088 fi
12089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12090 conftest$ac_exeext conftest.$ac_ext
12091 if test -z "$lt_cv_aix_libpath_"; then
12092 lt_cv_aix_libpath_=/usr/lib:/lib
12093 fi
12094 ;;
12095 esac
12096 fi
12097
12098 aix_libpath=$lt_cv_aix_libpath_
12099 fi
12100
12101 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12102 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
12103 else
12104 if test ia64 = "$host_cpu"; then
12105 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12106 allow_undefined_flag="-z nodefs"
12107 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"
12108 else
12109 # Determine the default libpath from the value encoded in an
12110 # empty executable.
12111 if test set = "${lt_cv_aix_libpath+set}"; then
12112 aix_libpath=$lt_cv_aix_libpath
12113 else
12114 if test ${lt_cv_aix_libpath_+y}
12115 then :
12116 printf %s "(cached) " >&6
12117 else case e in #(
12118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120
12121 int
12122 main (void)
12123 {
12124
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"
12130 then :
12131
12132 lt_aix_libpath_sed='
12133 /Import File Strings/,/^$/ {
12134 /^0/ {
12135 s/^0 *\([^ ]*\) *$/\1/
12136 p
12137 }
12138 }'
12139 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12140 # Check for a 64-bit object if we didn't find anything.
12141 if test -z "$lt_cv_aix_libpath_"; then
12142 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12143 fi
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12146 conftest$ac_exeext conftest.$ac_ext
12147 if test -z "$lt_cv_aix_libpath_"; then
12148 lt_cv_aix_libpath_=/usr/lib:/lib
12149 fi
12150 ;;
12151 esac
12152 fi
12153
12154 aix_libpath=$lt_cv_aix_libpath_
12155 fi
12156
12157 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12158 # Warning - without using the other run time loading flags,
12159 # -berok will link without error, but may produce a broken library.
12160 no_undefined_flag=' $wl-bernotok'
12161 allow_undefined_flag=' $wl-berok'
12162 if test yes = "$with_gnu_ld"; then
12163 # We only use this code for GNU lds that support --whole-archive.
12164 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12165 else
12166 # Exported symbols can be pulled into shared objects from archives
12167 whole_archive_flag_spec='$convenience'
12168 fi
12169 archive_cmds_need_lc=yes
12170 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12171 # -brtl affects multiple linker settings, -berok does not and is overridden later
12172 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12173 if test svr4 != "$with_aix_soname"; then
12174 # This is similar to how AIX traditionally builds its shared libraries.
12175 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'
12176 fi
12177 if test aix != "$with_aix_soname"; then
12178 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'
12179 else
12180 # used by -dlpreopen to get the symbols
12181 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12182 fi
12183 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12184 fi
12185 fi
12186 ;;
12187
12188 amigaos*)
12189 case $host_cpu in
12190 powerpc)
12191 # see comment about AmigaOS4 .so support
12192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12193 archive_expsym_cmds=''
12194 ;;
12195 m68k)
12196 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)'
12197 hardcode_libdir_flag_spec='-L$libdir'
12198 hardcode_minus_L=yes
12199 ;;
12200 esac
12201 ;;
12202
12203 bsdi[45]*)
12204 export_dynamic_flag_spec=-rdynamic
12205 ;;
12206
12207 cygwin* | mingw* | windows* | pw32* | cegcc*)
12208 # When not using gcc, we currently assume that we are using
12209 # Microsoft Visual C++ or Intel C++ Compiler.
12210 # hardcode_libdir_flag_spec is actually meaningless, as there is
12211 # no search path for DLLs.
12212 case $cc_basename in
12213 cl* | icl*)
12214 # Native MSVC or ICC
12215 hardcode_libdir_flag_spec=' '
12216 allow_undefined_flag=unsupported
12217 always_export_symbols=yes
12218 file_list_spec='@'
12219 # Tell ltmain to make .lib files, not .a files.
12220 libext=lib
12221 # Tell ltmain to make .dll files, not .so files.
12222 shrext_cmds=.dll
12223 # FIXME: Setting linknames here is a bad hack.
12224 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12225 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12226 cp "$export_symbols" "$output_objdir/$soname.def";
12227 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12228 else
12229 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12230 fi~
12231 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12232 linknames='
12233 # The linker will not automatically build a static lib if we build a DLL.
12234 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12235 enable_shared_with_static_runtimes=yes
12236 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12238 # Don't use ranlib
12239 old_postinstall_cmds='chmod 644 $oldlib'
12240 postlink_cmds='lt_outputfile="@OUTPUT@"~
12241 lt_tool_outputfile="@TOOL_OUTPUT@"~
12242 case $lt_outputfile in
12243 *.exe|*.EXE) ;;
12244 *)
12245 lt_outputfile=$lt_outputfile.exe
12246 lt_tool_outputfile=$lt_tool_outputfile.exe
12247 ;;
12248 esac~
12249 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12250 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12251 $RM "$lt_outputfile.manifest";
12252 fi'
12253 ;;
12254 *)
12255 # Assume MSVC and ICC wrapper
12256 hardcode_libdir_flag_spec=' '
12257 allow_undefined_flag=unsupported
12258 # Tell ltmain to make .lib files, not .a files.
12259 libext=lib
12260 # Tell ltmain to make .dll files, not .so files.
12261 shrext_cmds=.dll
12262 # FIXME: Setting linknames here is a bad hack.
12263 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12264 # The linker will automatically build a .lib file if we build a DLL.
12265 old_archive_from_new_cmds='true'
12266 # FIXME: Should let the user specify the lib program.
12267 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12268 enable_shared_with_static_runtimes=yes
12269 ;;
12270 esac
12271 ;;
12272
12273 darwin* | rhapsody*)
12274
12275
12276 archive_cmds_need_lc=no
12277 hardcode_direct=no
12278 hardcode_automatic=yes
12279 hardcode_shlibpath_var=unsupported
12280 if test yes = "$lt_cv_ld_force_load"; then
12281 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\"`'
12282
12283 else
12284 whole_archive_flag_spec=''
12285 fi
12286 link_all_deplibs=yes
12287 allow_undefined_flag=$_lt_dar_allow_undefined
12288 case $cc_basename in
12289 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12290 *) _lt_dar_can_shared=$GCC ;;
12291 esac
12292 if test yes = "$_lt_dar_can_shared"; then
12293 output_verbose_link_cmd=func_echo_all
12294 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dsymutil"
12295 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12296 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_export_syms$_lt_dsymutil"
12297 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"
12298 else
12299 ld_shlibs=no
12300 fi
12301
12302 ;;
12303
12304 dgux*)
12305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12306 hardcode_libdir_flag_spec='-L$libdir'
12307 hardcode_shlibpath_var=no
12308 ;;
12309
12310 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12311 # support. Future versions do this automatically, but an explicit c++rt0.o
12312 # does not break anything, and helps significantly (at the cost of a little
12313 # extra space).
12314 freebsd2.2*)
12315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12316 hardcode_libdir_flag_spec='-R$libdir'
12317 hardcode_direct=yes
12318 hardcode_shlibpath_var=no
12319 ;;
12320
12321 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12322 freebsd2.*)
12323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12324 hardcode_direct=yes
12325 hardcode_minus_L=yes
12326 hardcode_shlibpath_var=no
12327 ;;
12328
12329 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12330 freebsd* | dragonfly* | midnightbsd*)
12331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12332 hardcode_libdir_flag_spec='-R$libdir'
12333 hardcode_direct=yes
12334 hardcode_shlibpath_var=no
12335 ;;
12336
12337 hpux9*)
12338 if test yes = "$GCC"; then
12339 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'
12340 else
12341 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'
12342 fi
12343 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12344 hardcode_libdir_separator=:
12345 hardcode_direct=yes
12346
12347 # hardcode_minus_L: Not really in the search PATH,
12348 # but as the default location of the library.
12349 hardcode_minus_L=yes
12350 export_dynamic_flag_spec='$wl-E'
12351 ;;
12352
12353 hpux10*)
12354 if test yes,no = "$GCC,$with_gnu_ld"; then
12355 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12356 else
12357 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12358 fi
12359 if test no = "$with_gnu_ld"; then
12360 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12361 hardcode_libdir_separator=:
12362 hardcode_direct=yes
12363 hardcode_direct_absolute=yes
12364 export_dynamic_flag_spec='$wl-E'
12365 # hardcode_minus_L: Not really in the search PATH,
12366 # but as the default location of the library.
12367 hardcode_minus_L=yes
12368 fi
12369 ;;
12370
12371 hpux11*)
12372 if test yes,no = "$GCC,$with_gnu_ld"; then
12373 case $host_cpu in
12374 hppa*64*)
12375 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12376 ;;
12377 ia64*)
12378 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12379 ;;
12380 *)
12381 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12382 ;;
12383 esac
12384 else
12385 case $host_cpu in
12386 hppa*64*)
12387 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12388 ;;
12389 ia64*)
12390 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12391 ;;
12392 *)
12393
12394 # Older versions of the 11.00 compiler do not understand -b yet
12395 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12397 printf %s "checking if $CC understands -b... " >&6; }
12398 if test ${lt_cv_prog_compiler__b+y}
12399 then :
12400 printf %s "(cached) " >&6
12401 else case e in #(
12402 e) lt_cv_prog_compiler__b=no
12403 save_LDFLAGS=$LDFLAGS
12404 LDFLAGS="$LDFLAGS -b"
12405 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12406 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12407 # The linker can only warn and ignore the option if not recognized
12408 # So say no if there are warnings
12409 if test -s conftest.err; then
12410 # Append any errors to the config.log.
12411 cat conftest.err 1>&5
12412 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12414 if diff conftest.exp conftest.er2 >/dev/null; then
12415 lt_cv_prog_compiler__b=yes
12416 fi
12417 else
12418 lt_cv_prog_compiler__b=yes
12419 fi
12420 fi
12421 $RM -r conftest*
12422 LDFLAGS=$save_LDFLAGS
12423 ;;
12424 esac
12425 fi
12426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12427 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12428
12429 if test yes = "$lt_cv_prog_compiler__b"; then
12430 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12431 else
12432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12433 fi
12434
12435 ;;
12436 esac
12437 fi
12438 if test no = "$with_gnu_ld"; then
12439 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12440 hardcode_libdir_separator=:
12441
12442 case $host_cpu in
12443 hppa*64*|ia64*)
12444 hardcode_direct=no
12445 hardcode_shlibpath_var=no
12446 ;;
12447 *)
12448 hardcode_direct=yes
12449 hardcode_direct_absolute=yes
12450 export_dynamic_flag_spec='$wl-E'
12451
12452 # hardcode_minus_L: Not really in the search PATH,
12453 # but as the default location of the library.
12454 hardcode_minus_L=yes
12455 ;;
12456 esac
12457 fi
12458 ;;
12459
12460 irix5* | irix6* | nonstopux*)
12461 if test yes = "$GCC"; then
12462 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'
12463 # Try to use the -exported_symbol ld option, if it does not
12464 # work, assume that -exports_file does not work either and
12465 # implicitly export all symbols.
12466 # This should be the same for all languages, so no per-tag cache variable.
12467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12468 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12469 if test ${lt_cv_irix_exported_symbol+y}
12470 then :
12471 printf %s "(cached) " >&6
12472 else case e in #(
12473 e) save_LDFLAGS=$LDFLAGS
12474 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477 int foo (void) { return 0; }
12478 _ACEOF
12479 if ac_fn_c_try_link "$LINENO"
12480 then :
12481 lt_cv_irix_exported_symbol=yes
12482 else case e in #(
12483 e) lt_cv_irix_exported_symbol=no ;;
12484 esac
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12487 conftest$ac_exeext conftest.$ac_ext
12488 LDFLAGS=$save_LDFLAGS ;;
12489 esac
12490 fi
12491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12492 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12493 if test yes = "$lt_cv_irix_exported_symbol"; then
12494 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'
12495 fi
12496 else
12497 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'
12498 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'
12499 fi
12500 archive_cmds_need_lc='no'
12501 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12502 hardcode_libdir_separator=:
12503 inherit_rpath=yes
12504 link_all_deplibs=yes
12505 ;;
12506
12507 linux*)
12508 case $cc_basename in
12509 tcc*)
12510 # Fabrice Bellard et al's Tiny C Compiler
12511 ld_shlibs=yes
12512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12514 ;;
12515 esac
12516 ;;
12517
12518 *-mlibc)
12519 ;;
12520
12521 netbsd* | netbsdelf*-gnu)
12522 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12524 else
12525 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12526 fi
12527 hardcode_libdir_flag_spec='-R$libdir'
12528 hardcode_direct=yes
12529 hardcode_shlibpath_var=no
12530 ;;
12531
12532 newsos6)
12533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12534 hardcode_direct=yes
12535 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12536 hardcode_libdir_separator=:
12537 hardcode_shlibpath_var=no
12538 ;;
12539
12540 *nto* | *qnx*)
12541 ;;
12542
12543 openbsd*)
12544 if test -f /usr/libexec/ld.so; then
12545 hardcode_direct=yes
12546 hardcode_shlibpath_var=no
12547 hardcode_direct_absolute=yes
12548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12550 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12551 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12552 export_dynamic_flag_spec='$wl-E'
12553 else
12554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12555 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12556 fi
12557 else
12558 ld_shlibs=no
12559 fi
12560 ;;
12561
12562 os2*)
12563 hardcode_libdir_flag_spec='-L$libdir'
12564 hardcode_minus_L=yes
12565 allow_undefined_flag=unsupported
12566 shrext_cmds=.dll
12567 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12568 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12569 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12570 $ECHO EXPORTS >> $output_objdir/$libname.def~
12571 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12572 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12573 emximp -o $lib $output_objdir/$libname.def'
12574 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12575 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12576 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12577 $ECHO EXPORTS >> $output_objdir/$libname.def~
12578 prefix_cmds="$SED"~
12579 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12580 prefix_cmds="$prefix_cmds -e 1d";
12581 fi~
12582 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12583 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12584 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12585 emximp -o $lib $output_objdir/$libname.def'
12586 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12587 enable_shared_with_static_runtimes=yes
12588 file_list_spec='@'
12589 ;;
12590
12591 osf3*)
12592 if test yes = "$GCC"; then
12593 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12594 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'
12595 else
12596 allow_undefined_flag=' -expect_unresolved \*'
12597 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'
12598 fi
12599 archive_cmds_need_lc='no'
12600 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12601 hardcode_libdir_separator=:
12602 ;;
12603
12604 osf4* | osf5*) # as osf3* with the addition of -msym flag
12605 if test yes = "$GCC"; then
12606 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12607 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'
12608 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12609 else
12610 allow_undefined_flag=' -expect_unresolved \*'
12611 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'
12612 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~
12613 $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'
12614
12615 # Both c and cxx compiler support -rpath directly
12616 hardcode_libdir_flag_spec='-rpath $libdir'
12617 fi
12618 archive_cmds_need_lc='no'
12619 hardcode_libdir_separator=:
12620 ;;
12621
12622 serenity*)
12623 ;;
12624
12625 solaris*)
12626 no_undefined_flag=' -z defs'
12627 if test yes = "$GCC"; then
12628 wlarc='$wl'
12629 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12631 $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'
12632 else
12633 case `$CC -V 2>&1` in
12634 *"Compilers 5.0"*)
12635 wlarc=''
12636 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12638 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12639 ;;
12640 *)
12641 wlarc='$wl'
12642 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12644 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12645 ;;
12646 esac
12647 fi
12648 hardcode_libdir_flag_spec='-R$libdir'
12649 hardcode_shlibpath_var=no
12650 case $host_os in
12651 solaris2.[0-5] | solaris2.[0-5].*) ;;
12652 *)
12653 # The compiler driver will combine and reorder linker options,
12654 # but understands '-z linker_flag'. GCC discards it without '$wl',
12655 # but is careful enough not to reorder.
12656 # Supported since Solaris 2.6 (maybe 2.5.1?)
12657 if test yes = "$GCC"; then
12658 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12659 else
12660 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12661 fi
12662 ;;
12663 esac
12664 link_all_deplibs=yes
12665 ;;
12666
12667 sunos4*)
12668 if test sequent = "$host_vendor"; then
12669 # Use $CC to link under sequent, because it throws in some extra .o
12670 # files that make .init and .fini sections work.
12671 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12672 else
12673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12674 fi
12675 hardcode_libdir_flag_spec='-L$libdir'
12676 hardcode_direct=yes
12677 hardcode_minus_L=yes
12678 hardcode_shlibpath_var=no
12679 ;;
12680
12681 sysv4)
12682 case $host_vendor in
12683 sni)
12684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12685 hardcode_direct=yes # is this really true???
12686 ;;
12687 siemens)
12688 ## LD is ld it makes a PLAMLIB
12689 ## CC just makes a GrossModule.
12690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12691 reload_cmds='$CC -r -o $output$reload_objs'
12692 hardcode_direct=no
12693 ;;
12694 motorola)
12695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12697 ;;
12698 esac
12699 runpath_var='LD_RUN_PATH'
12700 hardcode_shlibpath_var=no
12701 ;;
12702
12703 sysv4.3*)
12704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12705 hardcode_shlibpath_var=no
12706 export_dynamic_flag_spec='-Bexport'
12707 ;;
12708
12709 sysv4*MP*)
12710 if test -d /usr/nec; then
12711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12712 hardcode_shlibpath_var=no
12713 runpath_var=LD_RUN_PATH
12714 hardcode_runpath_var=yes
12715 ld_shlibs=yes
12716 fi
12717 ;;
12718
12719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12720 no_undefined_flag='$wl-z,text'
12721 archive_cmds_need_lc=no
12722 hardcode_shlibpath_var=no
12723 runpath_var='LD_RUN_PATH'
12724
12725 if test yes = "$GCC"; then
12726 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12727 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12728 else
12729 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12730 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12731 fi
12732 ;;
12733
12734 sysv5* | sco3.2v5* | sco5v6*)
12735 # Note: We CANNOT use -z defs as we might desire, because we do not
12736 # link with -lc, and that would cause any symbols used from libc to
12737 # always be unresolved, which means just about no library would
12738 # ever link correctly. If we're not using GNU ld we use -z text
12739 # though, which does catch some bad symbols but isn't as heavy-handed
12740 # as -z defs.
12741 no_undefined_flag='$wl-z,text'
12742 allow_undefined_flag='$wl-z,nodefs'
12743 archive_cmds_need_lc=no
12744 hardcode_shlibpath_var=no
12745 hardcode_libdir_flag_spec='$wl-R,$libdir'
12746 hardcode_libdir_separator=':'
12747 link_all_deplibs=yes
12748 export_dynamic_flag_spec='$wl-Bexport'
12749 runpath_var='LD_RUN_PATH'
12750
12751 if test yes = "$GCC"; then
12752 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12753 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12754 else
12755 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12756 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12757 fi
12758 ;;
12759
12760 uts4*)
12761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12762 hardcode_libdir_flag_spec='-L$libdir'
12763 hardcode_shlibpath_var=no
12764 ;;
12765
12766 *)
12767 ld_shlibs=no
12768 ;;
12769 esac
12770
12771 if test sni = "$host_vendor"; then
12772 case $host in
12773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12774 export_dynamic_flag_spec='$wl-Blargedynsym'
12775 ;;
12776 esac
12777 fi
12778 fi
12779
12780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12781 printf "%s\n" "$ld_shlibs" >&6; }
12782 test no = "$ld_shlibs" && can_build_shared=no
12783
12784 with_gnu_ld=$with_gnu_ld
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800 #
12801 # Do we need to explicitly link libc?
12802 #
12803 case "x$archive_cmds_need_lc" in
12804 x|xyes)
12805 # Assume -lc should be added
12806 archive_cmds_need_lc=yes
12807
12808 if test yes,yes = "$GCC,$enable_shared"; then
12809 case $archive_cmds in
12810 *'~'*)
12811 # FIXME: we may have to deal with multi-command sequences.
12812 ;;
12813 '$CC '*)
12814 # Test whether the compiler implicitly links with -lc since on some
12815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12816 # to ld, don't add -lc before -lgcc.
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12818 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12819 if test ${lt_cv_archive_cmds_need_lc+y}
12820 then :
12821 printf %s "(cached) " >&6
12822 else case e in #(
12823 e) $RM conftest*
12824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12825
12826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12827 (eval $ac_compile) 2>&5
12828 ac_status=$?
12829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12830 test $ac_status = 0; } 2>conftest.err; then
12831 soname=conftest
12832 lib=conftest
12833 libobjs=conftest.$ac_objext
12834 deplibs=
12835 wl=$lt_prog_compiler_wl
12836 pic_flag=$lt_prog_compiler_pic
12837 compiler_flags=-v
12838 linker_flags=-v
12839 verstring=
12840 output_objdir=.
12841 libname=conftest
12842 lt_save_allow_undefined_flag=$allow_undefined_flag
12843 allow_undefined_flag=
12844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12845 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12846 ac_status=$?
12847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12848 test $ac_status = 0; }
12849 then
12850 lt_cv_archive_cmds_need_lc=no
12851 else
12852 lt_cv_archive_cmds_need_lc=yes
12853 fi
12854 allow_undefined_flag=$lt_save_allow_undefined_flag
12855 else
12856 cat conftest.err 1>&5
12857 fi
12858 $RM conftest*
12859 ;;
12860 esac
12861 fi
12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12863 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12864 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12865 ;;
12866 esac
12867 fi
12868 ;;
12869 esac
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
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13023 printf %s "checking dynamic linker characteristics... " >&6; }
13024
13025 if test yes = "$GCC"; then
13026 case $host_os in
13027 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13028 *) lt_awk_arg='/^libraries:/' ;;
13029 esac
13030 case $host_os in
13031 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13032 *) lt_sed_strip_eq='s|=/|/|g' ;;
13033 esac
13034 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13035 case $lt_search_path_spec in
13036 *\;*)
13037 # if the path contains ";" then we assume it to be the separator
13038 # otherwise default to the standard path separator (i.e. ":") - it is
13039 # assumed that no part of a normal pathname contains ";" but that should
13040 # okay in the real world where ";" in dirpaths is itself problematic.
13041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13042 ;;
13043 *)
13044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13045 ;;
13046 esac
13047 # Ok, now we have the path, separated by spaces, we can step through it
13048 # and add multilib dir if necessary...
13049 lt_tmp_lt_search_path_spec=
13050 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13051 # ...but if some path component already ends with the multilib dir we assume
13052 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13053 case "$lt_multi_os_dir; $lt_search_path_spec " in
13054 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13055 lt_multi_os_dir=
13056 ;;
13057 esac
13058 for lt_sys_path in $lt_search_path_spec; do
13059 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13061 elif test -n "$lt_multi_os_dir"; then
13062 test -d "$lt_sys_path" && \
13063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13064 fi
13065 done
13066 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13067 BEGIN {RS = " "; FS = "/|\n";} {
13068 lt_foo = "";
13069 lt_count = 0;
13070 for (lt_i = NF; lt_i > 0; lt_i--) {
13071 if ($lt_i != "" && $lt_i != ".") {
13072 if ($lt_i == "..") {
13073 lt_count++;
13074 } else {
13075 if (lt_count == 0) {
13076 lt_foo = "/" $lt_i lt_foo;
13077 } else {
13078 lt_count--;
13079 }
13080 }
13081 }
13082 }
13083 if (lt_foo != "") { lt_freq[lt_foo]++; }
13084 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13085 }'`
13086 # AWK program above erroneously prepends '/' to C:/dos/paths
13087 # for these hosts.
13088 case $host_os in
13089 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13090 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13091 esac
13092 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13093 else
13094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13095 fi
13096 library_names_spec=
13097 libname_spec='lib$name'
13098 soname_spec=
13099 shrext_cmds=.so
13100 postinstall_cmds=
13101 postuninstall_cmds=
13102 finish_cmds=
13103 finish_eval=
13104 shlibpath_var=
13105 shlibpath_overrides_runpath=unknown
13106 version_type=none
13107 dynamic_linker="$host_os ld.so"
13108 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13109 need_lib_prefix=unknown
13110 hardcode_into_libs=no
13111
13112 # when you set need_version to no, make sure it does not cause -set_version
13113 # flags to be left without arguments
13114 need_version=unknown
13115
13116
13117
13118 case $host_os in
13119 aix3*)
13120 version_type=linux # correct to gnu/linux during the next big refactor
13121 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13122 shlibpath_var=LIBPATH
13123
13124 # AIX 3 has no versioning support, so we append a major version to the name.
13125 soname_spec='$libname$release$shared_ext$major'
13126 ;;
13127
13128 aix[4-9]*)
13129 version_type=linux # correct to gnu/linux during the next big refactor
13130 need_lib_prefix=no
13131 need_version=no
13132 hardcode_into_libs=yes
13133 if test ia64 = "$host_cpu"; then
13134 # AIX 5 supports IA64
13135 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13136 shlibpath_var=LD_LIBRARY_PATH
13137 else
13138 # With GCC up to 2.95.x, collect2 would create an import file
13139 # for dependence libraries. The import file would start with
13140 # the line '#! .'. This would cause the generated library to
13141 # depend on '.', always an invalid library. This was fixed in
13142 # development snapshots of GCC prior to 3.0.
13143 case $host_os in
13144 aix4 | aix4.[01] | aix4.[01].*)
13145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13146 echo ' yes '
13147 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13148 :
13149 else
13150 can_build_shared=no
13151 fi
13152 ;;
13153 esac
13154 # Using Import Files as archive members, it is possible to support
13155 # filename-based versioning of shared library archives on AIX. While
13156 # this would work for both with and without runtime linking, it will
13157 # prevent static linking of such archives. So we do filename-based
13158 # shared library versioning with .so extension only, which is used
13159 # when both runtime linking and shared linking is enabled.
13160 # Unfortunately, runtime linking may impact performance, so we do
13161 # not want this to be the default eventually. Also, we use the
13162 # versioned .so libs for executables only if there is the -brtl
13163 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13164 # To allow for filename-based versioning support, we need to create
13165 # libNAME.so.V as an archive file, containing:
13166 # *) an Import File, referring to the versioned filename of the
13167 # archive as well as the shared archive member, telling the
13168 # bitwidth (32 or 64) of that shared object, and providing the
13169 # list of exported symbols of that shared object, eventually
13170 # decorated with the 'weak' keyword
13171 # *) the shared object with the F_LOADONLY flag set, to really avoid
13172 # it being seen by the linker.
13173 # At run time we better use the real file rather than another symlink,
13174 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13175
13176 case $with_aix_soname,$aix_use_runtimelinking in
13177 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13178 # soname into executable. Probably we can add versioning support to
13179 # collect2, so additional links can be useful in future.
13180 aix,yes) # traditional libtool
13181 dynamic_linker='AIX unversionable lib.so'
13182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13183 # instead of lib<name>.a to let people know that these are not
13184 # typical AIX shared libraries.
13185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13186 ;;
13187 aix,no) # traditional AIX only
13188 dynamic_linker='AIX lib.a(lib.so.V)'
13189 # We preserve .a as extension for shared libraries through AIX4.2
13190 # and later when we are not doing run time linking.
13191 library_names_spec='$libname$release.a $libname.a'
13192 soname_spec='$libname$release$shared_ext$major'
13193 ;;
13194 svr4,*) # full svr4 only
13195 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13196 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13197 # We do not specify a path in Import Files, so LIBPATH fires.
13198 shlibpath_overrides_runpath=yes
13199 ;;
13200 *,yes) # both, prefer svr4
13201 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13202 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13203 # unpreferred sharedlib libNAME.a needs extra handling
13204 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"'
13205 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"'
13206 # We do not specify a path in Import Files, so LIBPATH fires.
13207 shlibpath_overrides_runpath=yes
13208 ;;
13209 *,no) # both, prefer aix
13210 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13211 library_names_spec='$libname$release.a $libname.a'
13212 soname_spec='$libname$release$shared_ext$major'
13213 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13214 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)'
13215 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"'
13216 ;;
13217 esac
13218 shlibpath_var=LIBPATH
13219 fi
13220 ;;
13221
13222 amigaos*)
13223 case $host_cpu in
13224 powerpc)
13225 # Since July 2007 AmigaOS4 officially supports .so libraries.
13226 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13228 ;;
13229 m68k)
13230 library_names_spec='$libname.ixlibrary $libname.a'
13231 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13232 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'
13233 ;;
13234 esac
13235 ;;
13236
13237 beos*)
13238 library_names_spec='$libname$shared_ext'
13239 dynamic_linker="$host_os ld.so"
13240 shlibpath_var=LIBRARY_PATH
13241 ;;
13242
13243 bsdi[45]*)
13244 version_type=linux # correct to gnu/linux during the next big refactor
13245 need_version=no
13246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13247 soname_spec='$libname$release$shared_ext$major'
13248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13249 shlibpath_var=LD_LIBRARY_PATH
13250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13252 # the default ld.so.conf also contains /usr/contrib/lib and
13253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13254 # libtool to hard-code these into programs
13255 ;;
13256
13257 cygwin* | mingw* | windows* | pw32* | cegcc*)
13258 version_type=windows
13259 shrext_cmds=.dll
13260 need_version=no
13261 need_lib_prefix=no
13262
13263 case $GCC,$cc_basename in
13264 yes,*)
13265 # gcc
13266 library_names_spec='$libname.dll.a'
13267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13268 # If user builds GCC with multilib enabled,
13269 # it should just install on $(libdir)
13270 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13271 if test xyes = x"$multilib"; then
13272 postinstall_cmds='base_file=`basename \$file`~
13273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13274 dldir=$destdir/`dirname \$dlpath`~
13275 $install_prog $dir/$dlname $destdir/$dlname~
13276 chmod a+x $destdir/$dlname~
13277 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13278 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13279 fi'
13280 else
13281 postinstall_cmds='base_file=`basename \$file`~
13282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13283 dldir=$destdir/`dirname \$dlpath`~
13284 test -d \$dldir || mkdir -p \$dldir~
13285 $install_prog $dir/$dlname \$dldir/$dlname~
13286 chmod a+x \$dldir/$dlname~
13287 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13288 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13289 fi'
13290 fi
13291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13292 dlpath=$dir/\$dldll~
13293 $RM \$dlpath'
13294 shlibpath_overrides_runpath=yes
13295
13296 case $host_os in
13297 cygwin*)
13298 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13299 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13300
13301 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13302 ;;
13303 mingw* | windows* | cegcc*)
13304 # MinGW DLLs use traditional 'lib' prefix
13305 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13306 ;;
13307 pw32*)
13308 # pw32 DLLs use 'pw' prefix rather than 'lib'
13309 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13310 ;;
13311 esac
13312 dynamic_linker='Win32 ld.exe'
13313 ;;
13314
13315 *,cl* | *,icl*)
13316 # Native MSVC or ICC
13317 libname_spec='$name'
13318 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13319 library_names_spec='$libname.dll.lib'
13320
13321 case $build_os in
13322 mingw* | windows*)
13323 sys_lib_search_path_spec=
13324 lt_save_ifs=$IFS
13325 IFS=';'
13326 for lt_path in $LIB
13327 do
13328 IFS=$lt_save_ifs
13329 # Let DOS variable expansion print the short 8.3 style file name.
13330 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13331 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13332 done
13333 IFS=$lt_save_ifs
13334 # Convert to MSYS style.
13335 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13336 ;;
13337 cygwin*)
13338 # Convert to unix form, then to dos form, then back to unix form
13339 # but this time dos style (no spaces!) so that the unix form looks
13340 # like /cygdrive/c/PROGRA~1:/cygdr...
13341 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13342 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13343 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13344 ;;
13345 *)
13346 sys_lib_search_path_spec=$LIB
13347 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13348 # It is most probably a Windows format PATH.
13349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13350 else
13351 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13352 fi
13353 # FIXME: find the short name or the path components, as spaces are
13354 # common. (e.g. "Program Files" -> "PROGRA~1")
13355 ;;
13356 esac
13357
13358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13359 postinstall_cmds='base_file=`basename \$file`~
13360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13361 dldir=$destdir/`dirname \$dlpath`~
13362 test -d \$dldir || mkdir -p \$dldir~
13363 $install_prog $dir/$dlname \$dldir/$dlname'
13364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13365 dlpath=$dir/\$dldll~
13366 $RM \$dlpath'
13367 shlibpath_overrides_runpath=yes
13368 dynamic_linker='Win32 link.exe'
13369 ;;
13370
13371 *)
13372 # Assume MSVC and ICC wrapper
13373 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13374 dynamic_linker='Win32 ld.exe'
13375 ;;
13376 esac
13377 # FIXME: first we should search . and the directory the executable is in
13378 shlibpath_var=PATH
13379 ;;
13380
13381 darwin* | rhapsody*)
13382 dynamic_linker="$host_os dyld"
13383 version_type=darwin
13384 need_lib_prefix=no
13385 need_version=no
13386 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13387 soname_spec='$libname$release$major$shared_ext'
13388 shlibpath_overrides_runpath=yes
13389 shlibpath_var=DYLD_LIBRARY_PATH
13390 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13391
13392 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13393 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13394 ;;
13395
13396 dgux*)
13397 version_type=linux # correct to gnu/linux during the next big refactor
13398 need_lib_prefix=no
13399 need_version=no
13400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13401 soname_spec='$libname$release$shared_ext$major'
13402 shlibpath_var=LD_LIBRARY_PATH
13403 ;;
13404
13405 freebsd* | dragonfly* | midnightbsd*)
13406 # DragonFly does not have aout. When/if they implement a new
13407 # versioning mechanism, adjust this.
13408 if test -x /usr/bin/objformat; then
13409 objformat=`/usr/bin/objformat`
13410 else
13411 case $host_os in
13412 freebsd[23].*) objformat=aout ;;
13413 *) objformat=elf ;;
13414 esac
13415 fi
13416 version_type=freebsd-$objformat
13417 case $version_type in
13418 freebsd-elf*)
13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420 soname_spec='$libname$release$shared_ext$major'
13421 need_version=no
13422 need_lib_prefix=no
13423 ;;
13424 freebsd-*)
13425 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13426 need_version=yes
13427 ;;
13428 esac
13429 case $host_cpu in
13430 powerpc64)
13431 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13432 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13435 int test_pointer_size[sizeof (void *) - 5];
13436
13437 _ACEOF
13438 if ac_fn_c_try_compile "$LINENO"
13439 then :
13440 shlibpath_var=LD_LIBRARY_PATH
13441 else case e in #(
13442 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13443 esac
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13446 ;;
13447 *)
13448 shlibpath_var=LD_LIBRARY_PATH
13449 ;;
13450 esac
13451 case $host_os in
13452 freebsd2.*)
13453 shlibpath_overrides_runpath=yes
13454 ;;
13455 freebsd3.[01]* | freebsdelf3.[01]*)
13456 shlibpath_overrides_runpath=yes
13457 hardcode_into_libs=yes
13458 ;;
13459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13461 shlibpath_overrides_runpath=no
13462 hardcode_into_libs=yes
13463 ;;
13464 *) # from 4.6 on, and DragonFly
13465 shlibpath_overrides_runpath=yes
13466 hardcode_into_libs=yes
13467 ;;
13468 esac
13469 ;;
13470
13471 haiku*)
13472 version_type=linux # correct to gnu/linux during the next big refactor
13473 need_lib_prefix=no
13474 need_version=no
13475 dynamic_linker="$host_os runtime_loader"
13476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13477 soname_spec='$libname$release$shared_ext$major'
13478 shlibpath_var=LIBRARY_PATH
13479 shlibpath_overrides_runpath=no
13480 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13481 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13482 hardcode_into_libs=no
13483 ;;
13484
13485 hpux9* | hpux10* | hpux11*)
13486 # Give a soname corresponding to the major version so that dld.sl refuses to
13487 # link against other versions.
13488 version_type=sunos
13489 need_lib_prefix=no
13490 need_version=no
13491 case $host_cpu in
13492 ia64*)
13493 shrext_cmds='.so'
13494 hardcode_into_libs=yes
13495 dynamic_linker="$host_os dld.so"
13496 shlibpath_var=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13499 soname_spec='$libname$release$shared_ext$major'
13500 if test 32 = "$HPUX_IA64_MODE"; then
13501 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13502 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13503 else
13504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13505 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13506 fi
13507 ;;
13508 hppa*64*)
13509 shrext_cmds='.sl'
13510 hardcode_into_libs=yes
13511 dynamic_linker="$host_os dld.sl"
13512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13518 ;;
13519 *)
13520 shrext_cmds='.sl'
13521 dynamic_linker="$host_os dld.sl"
13522 shlibpath_var=SHLIB_PATH
13523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13525 soname_spec='$libname$release$shared_ext$major'
13526 ;;
13527 esac
13528 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13529 postinstall_cmds='chmod 555 $lib'
13530 # or fails outright, so override atomically:
13531 install_override_mode=555
13532 ;;
13533
13534 interix[3-9]*)
13535 version_type=linux # correct to gnu/linux during the next big refactor
13536 need_lib_prefix=no
13537 need_version=no
13538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13539 soname_spec='$libname$release$shared_ext$major'
13540 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13541 shlibpath_var=LD_LIBRARY_PATH
13542 shlibpath_overrides_runpath=no
13543 hardcode_into_libs=yes
13544 ;;
13545
13546 irix5* | irix6* | nonstopux*)
13547 case $host_os in
13548 nonstopux*) version_type=nonstopux ;;
13549 *)
13550 if test yes = "$lt_cv_prog_gnu_ld"; then
13551 version_type=linux # correct to gnu/linux during the next big refactor
13552 else
13553 version_type=irix
13554 fi ;;
13555 esac
13556 need_lib_prefix=no
13557 need_version=no
13558 soname_spec='$libname$release$shared_ext$major'
13559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13560 case $host_os in
13561 irix5* | nonstopux*)
13562 libsuff= shlibsuff=
13563 ;;
13564 *)
13565 case $LD in # libtool.m4 will add one of these switches to LD
13566 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13567 libsuff= shlibsuff= libmagic=32-bit;;
13568 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13569 libsuff=32 shlibsuff=N32 libmagic=N32;;
13570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13571 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13572 *) libsuff= shlibsuff= libmagic=never-match;;
13573 esac
13574 ;;
13575 esac
13576 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13577 shlibpath_overrides_runpath=no
13578 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13579 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13580 hardcode_into_libs=yes
13581 ;;
13582
13583 # No shared lib support for Linux oldld, aout, or coff.
13584 linux*oldld* | linux*aout* | linux*coff*)
13585 dynamic_linker=no
13586 ;;
13587
13588 linux*android*)
13589 version_type=none # Android doesn't support versioned libraries.
13590 need_lib_prefix=no
13591 need_version=no
13592 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13593 soname_spec='$libname$release$shared_ext'
13594 finish_cmds=
13595 shlibpath_var=LD_LIBRARY_PATH
13596 shlibpath_overrides_runpath=yes
13597
13598 # This implies no fast_install, which is unacceptable.
13599 # Some rework will be needed to allow for fast_install
13600 # before this can be enabled.
13601 hardcode_into_libs=yes
13602
13603 dynamic_linker='Android linker'
13604 # -rpath works at least for libraries that are not overridden by
13605 # libraries installed in system locations.
13606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13607 ;;
13608
13609 # This must be glibc/ELF.
13610 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13611 version_type=linux # correct to gnu/linux during the next big refactor
13612 need_lib_prefix=no
13613 need_version=no
13614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13615 soname_spec='$libname$release$shared_ext$major'
13616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13617 shlibpath_var=LD_LIBRARY_PATH
13618 shlibpath_overrides_runpath=no
13619
13620 # Some binutils ld are patched to set DT_RUNPATH
13621 if test ${lt_cv_shlibpath_overrides_runpath+y}
13622 then :
13623 printf %s "(cached) " >&6
13624 else case e in #(
13625 e) lt_cv_shlibpath_overrides_runpath=no
13626 save_LDFLAGS=$LDFLAGS
13627 save_libdir=$libdir
13628 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13629 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13632
13633 int
13634 main (void)
13635 {
13636
13637 ;
13638 return 0;
13639 }
13640 _ACEOF
13641 if ac_fn_c_try_link "$LINENO"
13642 then :
13643 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13644 then :
13645 lt_cv_shlibpath_overrides_runpath=yes
13646 fi
13647 fi
13648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13649 conftest$ac_exeext conftest.$ac_ext
13650 LDFLAGS=$save_LDFLAGS
13651 libdir=$save_libdir
13652 ;;
13653 esac
13654 fi
13655
13656 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13657
13658 # This implies no fast_install, which is unacceptable.
13659 # Some rework will be needed to allow for fast_install
13660 # before this can be enabled.
13661 hardcode_into_libs=yes
13662
13663 # Ideally, we could use ldconfig to report *all* directories which are
13664 # searched for libraries, however this is still not possible. Aside from not
13665 # being certain /sbin/ldconfig is available, command
13666 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13667 # even though it is searched at run-time. Try to do the best guess by
13668 # appending ld.so.conf contents (and includes) to the search path.
13669 if test -f /etc/ld.so.conf; then
13670 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' ' '`
13671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13672 fi
13673
13674 # We used to test for /lib/ld.so.1 and disable shared libraries on
13675 # powerpc, because MkLinux only supported shared libraries with the
13676 # GNU dynamic linker. Since this was broken with cross compilers,
13677 # most powerpc-linux boxes support dynamic linking these days and
13678 # people can always --disable-shared, the test was removed, and we
13679 # assume the GNU/Linux dynamic linker is in use.
13680 dynamic_linker='GNU/Linux ld.so'
13681 ;;
13682
13683 netbsdelf*-gnu)
13684 version_type=linux
13685 need_lib_prefix=no
13686 need_version=no
13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13688 soname_spec='$libname$release$shared_ext$major'
13689 shlibpath_var=LD_LIBRARY_PATH
13690 shlibpath_overrides_runpath=no
13691 hardcode_into_libs=yes
13692 dynamic_linker='NetBSD ld.elf_so'
13693 ;;
13694
13695 netbsd*)
13696 version_type=sunos
13697 need_lib_prefix=no
13698 need_version=no
13699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13700 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13702 dynamic_linker='NetBSD (a.out) ld.so'
13703 else
13704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13705 soname_spec='$libname$release$shared_ext$major'
13706 dynamic_linker='NetBSD ld.elf_so'
13707 fi
13708 shlibpath_var=LD_LIBRARY_PATH
13709 shlibpath_overrides_runpath=yes
13710 hardcode_into_libs=yes
13711 ;;
13712
13713 *-mlibc)
13714 version_type=linux # correct to gnu/linux during the next big refactor
13715 need_lib_prefix=no
13716 need_version=no
13717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13718 soname_spec='$libname$release$shared_ext$major'
13719 dynamic_linker='mlibc ld.so'
13720 shlibpath_var=LD_LIBRARY_PATH
13721 shlibpath_overrides_runpath=no
13722 hardcode_into_libs=yes
13723 ;;
13724
13725 newsos6)
13726 version_type=linux # correct to gnu/linux during the next big refactor
13727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13728 shlibpath_var=LD_LIBRARY_PATH
13729 shlibpath_overrides_runpath=yes
13730 ;;
13731
13732 *nto* | *qnx*)
13733 version_type=qnx
13734 need_lib_prefix=no
13735 need_version=no
13736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13737 soname_spec='$libname$release$shared_ext$major'
13738 shlibpath_var=LD_LIBRARY_PATH
13739 shlibpath_overrides_runpath=no
13740 hardcode_into_libs=yes
13741 dynamic_linker='ldqnx.so'
13742 ;;
13743
13744 openbsd*)
13745 version_type=sunos
13746 sys_lib_dlsearch_path_spec=/usr/lib
13747 need_lib_prefix=no
13748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13749 need_version=no
13750 else
13751 need_version=yes
13752 fi
13753 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13755 shlibpath_var=LD_LIBRARY_PATH
13756 shlibpath_overrides_runpath=yes
13757 ;;
13758
13759 os2*)
13760 libname_spec='$name'
13761 version_type=windows
13762 shrext_cmds=.dll
13763 need_version=no
13764 need_lib_prefix=no
13765 # OS/2 can only load a DLL with a base name of 8 characters or less.
13766 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13767 v=$($ECHO $release$versuffix | tr -d .-);
13768 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13769 $ECHO $n$v`$shared_ext'
13770 library_names_spec='${libname}_dll.$libext'
13771 dynamic_linker='OS/2 ld.exe'
13772 shlibpath_var=BEGINLIBPATH
13773 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13775 postinstall_cmds='base_file=`basename \$file`~
13776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13777 dldir=$destdir/`dirname \$dlpath`~
13778 test -d \$dldir || mkdir -p \$dldir~
13779 $install_prog $dir/$dlname \$dldir/$dlname~
13780 chmod a+x \$dldir/$dlname~
13781 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13782 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13783 fi'
13784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13785 dlpath=$dir/\$dldll~
13786 $RM \$dlpath'
13787 ;;
13788
13789 osf3* | osf4* | osf5*)
13790 version_type=osf
13791 need_lib_prefix=no
13792 need_version=no
13793 soname_spec='$libname$release$shared_ext$major'
13794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13795 shlibpath_var=LD_LIBRARY_PATH
13796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13798 ;;
13799
13800 rdos*)
13801 dynamic_linker=no
13802 ;;
13803
13804 serenity*)
13805 version_type=linux # correct to gnu/linux during the next big refactor
13806 need_lib_prefix=no
13807 need_version=no
13808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13809 soname_spec='$libname$release$shared_ext$major'
13810 shlibpath_var=LD_LIBRARY_PATH
13811 shlibpath_overrides_runpath=no
13812 dynamic_linker='SerenityOS LibELF'
13813 ;;
13814
13815 solaris*)
13816 version_type=linux # correct to gnu/linux during the next big refactor
13817 need_lib_prefix=no
13818 need_version=no
13819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13820 soname_spec='$libname$release$shared_ext$major'
13821 shlibpath_var=LD_LIBRARY_PATH
13822 shlibpath_overrides_runpath=yes
13823 hardcode_into_libs=yes
13824 # ldd complains unless libraries are executable
13825 postinstall_cmds='chmod +x $lib'
13826 ;;
13827
13828 sunos4*)
13829 version_type=sunos
13830 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13832 shlibpath_var=LD_LIBRARY_PATH
13833 shlibpath_overrides_runpath=yes
13834 if test yes = "$with_gnu_ld"; then
13835 need_lib_prefix=no
13836 fi
13837 need_version=yes
13838 ;;
13839
13840 sysv4 | sysv4.3*)
13841 version_type=linux # correct to gnu/linux during the next big refactor
13842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13843 soname_spec='$libname$release$shared_ext$major'
13844 shlibpath_var=LD_LIBRARY_PATH
13845 case $host_vendor in
13846 sni)
13847 shlibpath_overrides_runpath=no
13848 need_lib_prefix=no
13849 runpath_var=LD_RUN_PATH
13850 ;;
13851 siemens)
13852 need_lib_prefix=no
13853 ;;
13854 motorola)
13855 need_lib_prefix=no
13856 need_version=no
13857 shlibpath_overrides_runpath=no
13858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13859 ;;
13860 esac
13861 ;;
13862
13863 sysv4*MP*)
13864 if test -d /usr/nec; then
13865 version_type=linux # correct to gnu/linux during the next big refactor
13866 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13867 soname_spec='$libname$shared_ext.$major'
13868 shlibpath_var=LD_LIBRARY_PATH
13869 fi
13870 ;;
13871
13872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13873 version_type=sco
13874 need_lib_prefix=no
13875 need_version=no
13876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13877 soname_spec='$libname$release$shared_ext$major'
13878 shlibpath_var=LD_LIBRARY_PATH
13879 shlibpath_overrides_runpath=yes
13880 hardcode_into_libs=yes
13881 if test yes = "$with_gnu_ld"; then
13882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13883 else
13884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13885 case $host_os in
13886 sco3.2v5*)
13887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13888 ;;
13889 esac
13890 fi
13891 sys_lib_dlsearch_path_spec='/usr/lib'
13892 ;;
13893
13894 tpf*)
13895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13896 version_type=linux # correct to gnu/linux during the next big refactor
13897 need_lib_prefix=no
13898 need_version=no
13899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13900 shlibpath_var=LD_LIBRARY_PATH
13901 shlibpath_overrides_runpath=no
13902 hardcode_into_libs=yes
13903 ;;
13904
13905 uts4*)
13906 version_type=linux # correct to gnu/linux during the next big refactor
13907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13908 soname_spec='$libname$release$shared_ext$major'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 ;;
13911
13912 emscripten*)
13913 version_type=none
13914 need_lib_prefix=no
13915 need_version=no
13916 library_names_spec='$libname$release$shared_ext'
13917 soname_spec='$libname$release$shared_ext'
13918 finish_cmds=
13919 dynamic_linker="Emscripten linker"
13920 lt_prog_compiler_wl=
13921 lt_prog_compiler_pic=
13922 lt_prog_compiler_static=
13923
13924
13925 if test yes = "$GCC"; then
13926 lt_prog_compiler_wl='-Wl,'
13927 lt_prog_compiler_static='-static'
13928
13929 case $host_os in
13930 aix*)
13931 # All AIX code is PIC.
13932 if test ia64 = "$host_cpu"; then
13933 # AIX 5 now supports IA64 processor
13934 lt_prog_compiler_static='-Bstatic'
13935 fi
13936 lt_prog_compiler_pic='-fPIC'
13937 ;;
13938
13939 amigaos*)
13940 case $host_cpu in
13941 powerpc)
13942 # see comment about AmigaOS4 .so support
13943 lt_prog_compiler_pic='-fPIC'
13944 ;;
13945 m68k)
13946 # FIXME: we need at least 68020 code to build shared libraries, but
13947 # adding the '-m68020' flag to GCC prevents building anything better,
13948 # like '-m68040'.
13949 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13950 ;;
13951 esac
13952 ;;
13953
13954 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13955 # PIC is the default for these OSes.
13956 ;;
13957
13958 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13959 # This hack is so that the source file can tell whether it is being
13960 # built for inclusion in a dll (and should export symbols for example).
13961 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13962 # (--disable-auto-import) libraries
13963 lt_prog_compiler_pic='-DDLL_EXPORT'
13964 case $host_os in
13965 os2*)
13966 lt_prog_compiler_static='$wl-static'
13967 ;;
13968 esac
13969 ;;
13970
13971 darwin* | rhapsody*)
13972 # PIC is the default on this platform
13973 # Common symbols not allowed in MH_DYLIB files
13974 lt_prog_compiler_pic='-fno-common'
13975 ;;
13976
13977 haiku*)
13978 # PIC is the default for Haiku.
13979 # The "-static" flag exists, but is broken.
13980 lt_prog_compiler_static=
13981 ;;
13982
13983 hpux*)
13984 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13985 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13986 # sets the default TLS model and affects inlining.
13987 case $host_cpu in
13988 hppa*64*)
13989 # +Z the default
13990 ;;
13991 *)
13992 lt_prog_compiler_pic='-fPIC'
13993 ;;
13994 esac
13995 ;;
13996
13997 interix[3-9]*)
13998 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13999 # Instead, we relocate shared libraries at runtime.
14000 ;;
14001
14002 msdosdjgpp*)
14003 # Just because we use GCC doesn't mean we suddenly get shared libraries
14004 # on systems that don't support them.
14005 lt_prog_compiler_can_build_shared=no
14006 enable_shared=no
14007 ;;
14008
14009 *nto* | *qnx*)
14010 # QNX uses GNU C++, but need to define -shared option too, otherwise
14011 # it will coredump.
14012 lt_prog_compiler_pic='-fPIC -shared'
14013 ;;
14014
14015 sysv4*MP*)
14016 if test -d /usr/nec; then
14017 lt_prog_compiler_pic=-Kconform_pic
14018 fi
14019 ;;
14020
14021 *)
14022 lt_prog_compiler_pic='-fPIC'
14023 ;;
14024 esac
14025
14026 case $cc_basename in
14027 nvcc*) # Cuda Compiler Driver 2.2
14028 lt_prog_compiler_wl='-Xlinker '
14029 if test -n "$lt_prog_compiler_pic"; then
14030 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14031 fi
14032 ;;
14033 esac
14034 else
14035 # PORTME Check for flag to pass linker flags through the system compiler.
14036 case $host_os in
14037 aix*)
14038 lt_prog_compiler_wl='-Wl,'
14039 if test ia64 = "$host_cpu"; then
14040 # AIX 5 now supports IA64 processor
14041 lt_prog_compiler_static='-Bstatic'
14042 else
14043 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14044 fi
14045 ;;
14046
14047 darwin* | rhapsody*)
14048 # PIC is the default on this platform
14049 # Common symbols not allowed in MH_DYLIB files
14050 lt_prog_compiler_pic='-fno-common'
14051 case $cc_basename in
14052 nagfor*)
14053 # NAG Fortran compiler
14054 lt_prog_compiler_wl='-Wl,-Wl,,'
14055 lt_prog_compiler_pic='-PIC'
14056 lt_prog_compiler_static='-Bstatic'
14057 ;;
14058 esac
14059 ;;
14060
14061 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14062 # This hack is so that the source file can tell whether it is being
14063 # built for inclusion in a dll (and should export symbols for example).
14064 lt_prog_compiler_pic='-DDLL_EXPORT'
14065 case $host_os in
14066 os2*)
14067 lt_prog_compiler_static='$wl-static'
14068 ;;
14069 esac
14070 ;;
14071
14072 hpux9* | hpux10* | hpux11*)
14073 lt_prog_compiler_wl='-Wl,'
14074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14075 # not for PA HP-UX.
14076 case $host_cpu in
14077 hppa*64*|ia64*)
14078 # +Z the default
14079 ;;
14080 *)
14081 lt_prog_compiler_pic='+Z'
14082 ;;
14083 esac
14084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14085 lt_prog_compiler_static='$wl-a ${wl}archive'
14086 ;;
14087
14088 irix5* | irix6* | nonstopux*)
14089 lt_prog_compiler_wl='-Wl,'
14090 # PIC (with -KPIC) is the default.
14091 lt_prog_compiler_static='-non_shared'
14092 ;;
14093
14094 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14095 case $cc_basename in
14096 # old Intel for x86_64, which still supported -KPIC.
14097 ecc*)
14098 lt_prog_compiler_wl='-Wl,'
14099 lt_prog_compiler_pic='-KPIC'
14100 lt_prog_compiler_static='-static'
14101 ;;
14102 *flang* | ftn | f18* | f95*)
14103 # Flang compiler.
14104 lt_prog_compiler_wl='-Wl,'
14105 lt_prog_compiler_pic='-fPIC'
14106 lt_prog_compiler_static='-static'
14107 ;;
14108 # icc used to be incompatible with GCC.
14109 # ICC 10 doesn't accept -KPIC any more.
14110 icc* | ifort*)
14111 lt_prog_compiler_wl='-Wl,'
14112 lt_prog_compiler_pic='-fPIC'
14113 lt_prog_compiler_static='-static'
14114 ;;
14115 # Lahey Fortran 8.1.
14116 lf95*)
14117 lt_prog_compiler_wl='-Wl,'
14118 lt_prog_compiler_pic='--shared'
14119 lt_prog_compiler_static='--static'
14120 ;;
14121 nagfor*)
14122 # NAG Fortran compiler
14123 lt_prog_compiler_wl='-Wl,-Wl,,'
14124 lt_prog_compiler_pic='-PIC'
14125 lt_prog_compiler_static='-Bstatic'
14126 ;;
14127 tcc*)
14128 # Fabrice Bellard et al's Tiny C Compiler
14129 lt_prog_compiler_wl='-Wl,'
14130 lt_prog_compiler_pic='-fPIC'
14131 lt_prog_compiler_static='-static'
14132 ;;
14133 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14134 # Portland Group compilers (*not* the Pentium gcc compiler,
14135 # which looks to be a dead project)
14136 lt_prog_compiler_wl='-Wl,'
14137 lt_prog_compiler_pic='-fpic'
14138 lt_prog_compiler_static='-Bstatic'
14139 ;;
14140 ccc*)
14141 lt_prog_compiler_wl='-Wl,'
14142 # All Alpha code is PIC.
14143 lt_prog_compiler_static='-non_shared'
14144 ;;
14145 xl* | bgxl* | bgf* | mpixl*)
14146 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14147 lt_prog_compiler_wl='-Wl,'
14148 lt_prog_compiler_pic='-qpic'
14149 lt_prog_compiler_static='-qstaticlink'
14150 ;;
14151 *)
14152 case `$CC -V 2>&1 | $SED 5q` in
14153 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14154 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14155 lt_prog_compiler_pic='-KPIC'
14156 lt_prog_compiler_static='-Bstatic'
14157 lt_prog_compiler_wl=''
14158 ;;
14159 *Sun\ F* | *Sun*Fortran*)
14160 lt_prog_compiler_pic='-KPIC'
14161 lt_prog_compiler_static='-Bstatic'
14162 lt_prog_compiler_wl='-Qoption ld '
14163 ;;
14164 *Sun\ C*)
14165 # Sun C 5.9
14166 lt_prog_compiler_pic='-KPIC'
14167 lt_prog_compiler_static='-Bstatic'
14168 lt_prog_compiler_wl='-Wl,'
14169 ;;
14170 *Intel*\ [CF]*Compiler*)
14171 lt_prog_compiler_wl='-Wl,'
14172 lt_prog_compiler_pic='-fPIC'
14173 lt_prog_compiler_static='-static'
14174 ;;
14175 *Portland\ Group*)
14176 lt_prog_compiler_wl='-Wl,'
14177 lt_prog_compiler_pic='-fpic'
14178 lt_prog_compiler_static='-Bstatic'
14179 ;;
14180 esac
14181 ;;
14182 esac
14183 ;;
14184
14185 newsos6)
14186 lt_prog_compiler_pic='-KPIC'
14187 lt_prog_compiler_static='-Bstatic'
14188 ;;
14189
14190 *-mlibc)
14191 lt_prog_compiler_wl='-Wl,'
14192 lt_prog_compiler_pic='-fPIC'
14193 lt_prog_compiler_static='-static'
14194 ;;
14195
14196 *nto* | *qnx*)
14197 # QNX uses GNU C++, but need to define -shared option too, otherwise
14198 # it will coredump.
14199 lt_prog_compiler_pic='-fPIC -shared'
14200 ;;
14201
14202 osf3* | osf4* | osf5*)
14203 lt_prog_compiler_wl='-Wl,'
14204 # All OSF/1 code is PIC.
14205 lt_prog_compiler_static='-non_shared'
14206 ;;
14207
14208 rdos*)
14209 lt_prog_compiler_static='-non_shared'
14210 ;;
14211
14212 serenity*)
14213 ;;
14214
14215 solaris*)
14216 lt_prog_compiler_pic='-KPIC'
14217 lt_prog_compiler_static='-Bstatic'
14218 case $cc_basename in
14219 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14220 lt_prog_compiler_wl='-Qoption ld ';;
14221 *)
14222 lt_prog_compiler_wl='-Wl,';;
14223 esac
14224 ;;
14225
14226 sunos4*)
14227 lt_prog_compiler_wl='-Qoption ld '
14228 lt_prog_compiler_pic='-PIC'
14229 lt_prog_compiler_static='-Bstatic'
14230 ;;
14231
14232 sysv4 | sysv4.2uw2* | sysv4.3*)
14233 lt_prog_compiler_wl='-Wl,'
14234 lt_prog_compiler_pic='-KPIC'
14235 lt_prog_compiler_static='-Bstatic'
14236 ;;
14237
14238 sysv4*MP*)
14239 if test -d /usr/nec; then
14240 lt_prog_compiler_pic='-Kconform_pic'
14241 lt_prog_compiler_static='-Bstatic'
14242 fi
14243 ;;
14244
14245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14246 lt_prog_compiler_wl='-Wl,'
14247 lt_prog_compiler_pic='-KPIC'
14248 lt_prog_compiler_static='-Bstatic'
14249 ;;
14250
14251 unicos*)
14252 lt_prog_compiler_wl='-Wl,'
14253 lt_prog_compiler_can_build_shared=no
14254 ;;
14255
14256 uts4*)
14257 lt_prog_compiler_pic='-pic'
14258 lt_prog_compiler_static='-Bstatic'
14259 ;;
14260
14261 *)
14262 lt_prog_compiler_can_build_shared=no
14263 ;;
14264 esac
14265 fi
14266
14267 case $host_os in
14268 # For platforms that do not support PIC, -DPIC is meaningless:
14269 *djgpp*)
14270 lt_prog_compiler_pic=
14271 ;;
14272 *)
14273 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14274 ;;
14275 esac
14276
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14278 printf %s "checking for $compiler option to produce PIC... " >&6; }
14279 if test ${lt_cv_prog_compiler_pic+y}
14280 then :
14281 printf %s "(cached) " >&6
14282 else case e in #(
14283 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14284 esac
14285 fi
14286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14287 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14288 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14289
14290 #
14291 # Check to make sure the PIC flag actually works.
14292 #
14293 if test -n "$lt_prog_compiler_pic"; then
14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14295 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14296 if test ${lt_cv_prog_compiler_pic_works+y}
14297 then :
14298 printf %s "(cached) " >&6
14299 else case e in #(
14300 e) lt_cv_prog_compiler_pic_works=no
14301 ac_outfile=conftest.$ac_objext
14302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14303 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14304 # Insert the option either (1) after the last *FLAGS variable, or
14305 # (2) before a word containing "conftest.", or (3) at the end.
14306 # Note that $ac_compile itself does not contain backslashes and begins
14307 # with a dollar sign (not a hyphen), so the echo should work correctly.
14308 # The option is referenced via a variable to avoid confusing sed.
14309 lt_compile=`echo "$ac_compile" | $SED \
14310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14312 -e 's:$: $lt_compiler_flag:'`
14313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14314 (eval "$lt_compile" 2>conftest.err)
14315 ac_status=$?
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 if (exit $ac_status) && test -s "$ac_outfile"; then
14319 # The compiler can only warn and ignore the option if not recognized
14320 # So say no if there are warnings other than the usual output.
14321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14323 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14324 lt_cv_prog_compiler_pic_works=yes
14325 fi
14326 fi
14327 $RM conftest*
14328 ;;
14329 esac
14330 fi
14331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14332 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14333
14334 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14335 case $lt_prog_compiler_pic in
14336 "" | " "*) ;;
14337 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14338 esac
14339 else
14340 lt_prog_compiler_pic=
14341 lt_prog_compiler_can_build_shared=no
14342 fi
14343
14344 fi
14345
14346
14347
14348
14349
14350 #
14351 # Check to make sure the static flag actually works.
14352 #
14353 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14355 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14356 if test ${lt_cv_prog_compiler_static_works+y}
14357 then :
14358 printf %s "(cached) " >&6
14359 else case e in #(
14360 e) lt_cv_prog_compiler_static_works=no
14361 save_LDFLAGS=$LDFLAGS
14362 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14363 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14365 # The linker can only warn and ignore the option if not recognized
14366 # So say no if there are warnings
14367 if test -s conftest.err; then
14368 # Append any errors to the config.log.
14369 cat conftest.err 1>&5
14370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14372 if diff conftest.exp conftest.er2 >/dev/null; then
14373 lt_cv_prog_compiler_static_works=yes
14374 fi
14375 else
14376 lt_cv_prog_compiler_static_works=yes
14377 fi
14378 fi
14379 $RM -r conftest*
14380 LDFLAGS=$save_LDFLAGS
14381 ;;
14382 esac
14383 fi
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14385 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14386
14387 if test yes = "$lt_cv_prog_compiler_static_works"; then
14388 :
14389 else
14390 lt_prog_compiler_static=
14391 fi
14392
14393
14394
14395 ='-fPIC'
14396 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14397 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'
14398 archive_cmds_need_lc=no
14399 no_undefined_flag=
14400 ;;
14401
14402 *)
14403 dynamic_linker=no
14404 ;;
14405 esac
14406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14407 printf "%s\n" "$dynamic_linker" >&6; }
14408 test no = "$dynamic_linker" && can_build_shared=no
14409
14410 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14411 if test yes = "$GCC"; then
14412 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14413 fi
14414
14415 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14416 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14417 fi
14418
14419 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14420 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14421 fi
14422
14423 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14424 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14425
14426 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14427 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14428
14429 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14430 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14529 printf %s "checking how to hardcode library paths into programs... " >&6; }
14530 hardcode_action=
14531 if test -n "$hardcode_libdir_flag_spec" ||
14532 test -n "$runpath_var" ||
14533 test yes = "$hardcode_automatic"; then
14534
14535 # We can hardcode non-existent directories.
14536 if test no != "$hardcode_direct" &&
14537 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14538 # have to relink, otherwise we might link with an installed library
14539 # when we should be linking with a yet-to-be-installed one
14540 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14541 test no != "$hardcode_minus_L"; then
14542 # Linking always hardcodes the temporary library directory.
14543 hardcode_action=relink
14544 else
14545 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14546 hardcode_action=immediate
14547 fi
14548 else
14549 # We cannot hardcode anything, or else we can only hardcode existing
14550 # directories.
14551 hardcode_action=unsupported
14552 fi
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14554 printf "%s\n" "$hardcode_action" >&6; }
14555
14556 if test relink = "$hardcode_action" ||
14557 test yes = "$inherit_rpath"; then
14558 # Fast installation is not supported
14559 enable_fast_install=no
14560 elif test yes = "$shlibpath_overrides_runpath" ||
14561 test no = "$enable_shared"; then
14562 # Fast installation is not necessary
14563 enable_fast_install=needless
14564 fi
14565
14566
14567
14568
14569
14570
14571 if test yes != "$enable_dlopen"; then
14572 enable_dlopen=unknown
14573 enable_dlopen_self=unknown
14574 enable_dlopen_self_static=unknown
14575 else
14576 lt_cv_dlopen=no
14577 lt_cv_dlopen_libs=
14578
14579 case $host_os in
14580 beos*)
14581 lt_cv_dlopen=load_add_on
14582 lt_cv_dlopen_libs=
14583 lt_cv_dlopen_self=yes
14584 ;;
14585
14586 mingw* | windows* | pw32* | cegcc*)
14587 lt_cv_dlopen=LoadLibrary
14588 lt_cv_dlopen_libs=
14589 ;;
14590
14591 cygwin*)
14592 lt_cv_dlopen=dlopen
14593 lt_cv_dlopen_libs=
14594 ;;
14595
14596 darwin*)
14597 # if libdl is installed we need to link against it
14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14599 printf %s "checking for dlopen in -ldl... " >&6; }
14600 if test ${ac_cv_lib_dl_dlopen+y}
14601 then :
14602 printf %s "(cached) " >&6
14603 else case e in #(
14604 e) ac_check_lib_save_LIBS=$LIBS
14605 LIBS="-ldl $LIBS"
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608
14609 /* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply.
14612 The 'extern "C"' is for builds by C++ compilers;
14613 although this is not generally supported in C code supporting it here
14614 has little cost and some practical benefit (sr 110532). */
14615 #ifdef __cplusplus
14616 extern "C"
14617 #endif
14618 char dlopen (void);
14619 int
14620 main (void)
14621 {
14622 return dlopen ();
14623 ;
14624 return 0;
14625 }
14626 _ACEOF
14627 if ac_fn_c_try_link "$LINENO"
14628 then :
14629 ac_cv_lib_dl_dlopen=yes
14630 else case e in #(
14631 e) ac_cv_lib_dl_dlopen=no ;;
14632 esac
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14635 conftest$ac_exeext conftest.$ac_ext
14636 LIBS=$ac_check_lib_save_LIBS ;;
14637 esac
14638 fi
14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14640 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14641 if test "x$ac_cv_lib_dl_dlopen" = xyes
14642 then :
14643 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14644 else case e in #(
14645 e)
14646 lt_cv_dlopen=dyld
14647 lt_cv_dlopen_libs=
14648 lt_cv_dlopen_self=yes
14649 ;;
14650 esac
14651 fi
14652
14653 ;;
14654
14655 tpf*)
14656 # Don't try to run any link tests for TPF. We know it's impossible
14657 # because TPF is a cross-compiler, and we know how we open DSOs.
14658 lt_cv_dlopen=dlopen
14659 lt_cv_dlopen_libs=
14660 lt_cv_dlopen_self=no
14661 ;;
14662
14663 *)
14664 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14665 if test "x$ac_cv_func_shl_load" = xyes
14666 then :
14667 lt_cv_dlopen=shl_load
14668 else case e in #(
14669 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14670 printf %s "checking for shl_load in -ldld... " >&6; }
14671 if test ${ac_cv_lib_dld_shl_load+y}
14672 then :
14673 printf %s "(cached) " >&6
14674 else case e in #(
14675 e) ac_check_lib_save_LIBS=$LIBS
14676 LIBS="-ldld $LIBS"
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679
14680 /* Override any GCC internal prototype to avoid an error.
14681 Use char because int might match the return type of a GCC
14682 builtin and then its argument prototype would still apply.
14683 The 'extern "C"' is for builds by C++ compilers;
14684 although this is not generally supported in C code supporting it here
14685 has little cost and some practical benefit (sr 110532). */
14686 #ifdef __cplusplus
14687 extern "C"
14688 #endif
14689 char shl_load (void);
14690 int
14691 main (void)
14692 {
14693 return shl_load ();
14694 ;
14695 return 0;
14696 }
14697 _ACEOF
14698 if ac_fn_c_try_link "$LINENO"
14699 then :
14700 ac_cv_lib_dld_shl_load=yes
14701 else case e in #(
14702 e) ac_cv_lib_dld_shl_load=no ;;
14703 esac
14704 fi
14705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14706 conftest$ac_exeext conftest.$ac_ext
14707 LIBS=$ac_check_lib_save_LIBS ;;
14708 esac
14709 fi
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14711 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14712 if test "x$ac_cv_lib_dld_shl_load" = xyes
14713 then :
14714 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14715 else case e in #(
14716 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14717 if test "x$ac_cv_func_dlopen" = xyes
14718 then :
14719 lt_cv_dlopen=dlopen
14720 else case e in #(
14721 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14722 printf %s "checking for dlopen in -ldl... " >&6; }
14723 if test ${ac_cv_lib_dl_dlopen+y}
14724 then :
14725 printf %s "(cached) " >&6
14726 else case e in #(
14727 e) ac_check_lib_save_LIBS=$LIBS
14728 LIBS="-ldl $LIBS"
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14731
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply.
14735 The 'extern "C"' is for builds by C++ compilers;
14736 although this is not generally supported in C code supporting it here
14737 has little cost and some practical benefit (sr 110532). */
14738 #ifdef __cplusplus
14739 extern "C"
14740 #endif
14741 char dlopen (void);
14742 int
14743 main (void)
14744 {
14745 return dlopen ();
14746 ;
14747 return 0;
14748 }
14749 _ACEOF
14750 if ac_fn_c_try_link "$LINENO"
14751 then :
14752 ac_cv_lib_dl_dlopen=yes
14753 else case e in #(
14754 e) ac_cv_lib_dl_dlopen=no ;;
14755 esac
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14758 conftest$ac_exeext conftest.$ac_ext
14759 LIBS=$ac_check_lib_save_LIBS ;;
14760 esac
14761 fi
14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14763 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14764 if test "x$ac_cv_lib_dl_dlopen" = xyes
14765 then :
14766 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14767 else case e in #(
14768 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14769 printf %s "checking for dlopen in -lsvld... " >&6; }
14770 if test ${ac_cv_lib_svld_dlopen+y}
14771 then :
14772 printf %s "(cached) " >&6
14773 else case e in #(
14774 e) ac_check_lib_save_LIBS=$LIBS
14775 LIBS="-lsvld $LIBS"
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14778
14779 /* Override any GCC internal prototype to avoid an error.
14780 Use char because int might match the return type of a GCC
14781 builtin and then its argument prototype would still apply.
14782 The 'extern "C"' is for builds by C++ compilers;
14783 although this is not generally supported in C code supporting it here
14784 has little cost and some practical benefit (sr 110532). */
14785 #ifdef __cplusplus
14786 extern "C"
14787 #endif
14788 char dlopen (void);
14789 int
14790 main (void)
14791 {
14792 return dlopen ();
14793 ;
14794 return 0;
14795 }
14796 _ACEOF
14797 if ac_fn_c_try_link "$LINENO"
14798 then :
14799 ac_cv_lib_svld_dlopen=yes
14800 else case e in #(
14801 e) ac_cv_lib_svld_dlopen=no ;;
14802 esac
14803 fi
14804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14805 conftest$ac_exeext conftest.$ac_ext
14806 LIBS=$ac_check_lib_save_LIBS ;;
14807 esac
14808 fi
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14810 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14811 if test "x$ac_cv_lib_svld_dlopen" = xyes
14812 then :
14813 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14814 else case e in #(
14815 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14816 printf %s "checking for dld_link in -ldld... " >&6; }
14817 if test ${ac_cv_lib_dld_dld_link+y}
14818 then :
14819 printf %s "(cached) " >&6
14820 else case e in #(
14821 e) ac_check_lib_save_LIBS=$LIBS
14822 LIBS="-ldld $LIBS"
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825
14826 /* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply.
14829 The 'extern "C"' is for builds by C++ compilers;
14830 although this is not generally supported in C code supporting it here
14831 has little cost and some practical benefit (sr 110532). */
14832 #ifdef __cplusplus
14833 extern "C"
14834 #endif
14835 char dld_link (void);
14836 int
14837 main (void)
14838 {
14839 return dld_link ();
14840 ;
14841 return 0;
14842 }
14843 _ACEOF
14844 if ac_fn_c_try_link "$LINENO"
14845 then :
14846 ac_cv_lib_dld_dld_link=yes
14847 else case e in #(
14848 e) ac_cv_lib_dld_dld_link=no ;;
14849 esac
14850 fi
14851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14852 conftest$ac_exeext conftest.$ac_ext
14853 LIBS=$ac_check_lib_save_LIBS ;;
14854 esac
14855 fi
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14857 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14858 if test "x$ac_cv_lib_dld_dld_link" = xyes
14859 then :
14860 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14861 fi
14862
14863 ;;
14864 esac
14865 fi
14866
14867 ;;
14868 esac
14869 fi
14870
14871 ;;
14872 esac
14873 fi
14874
14875 ;;
14876 esac
14877 fi
14878
14879 ;;
14880 esac
14881 fi
14882
14883 ;;
14884 esac
14885
14886 if test no = "$lt_cv_dlopen"; then
14887 enable_dlopen=no
14888 else
14889 enable_dlopen=yes
14890 fi
14891
14892 case $lt_cv_dlopen in
14893 dlopen)
14894 save_CPPFLAGS=$CPPFLAGS
14895 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14896
14897 save_LDFLAGS=$LDFLAGS
14898 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14899
14900 save_LIBS=$LIBS
14901 LIBS="$lt_cv_dlopen_libs $LIBS"
14902
14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14904 printf %s "checking whether a program can dlopen itself... " >&6; }
14905 if test ${lt_cv_dlopen_self+y}
14906 then :
14907 printf %s "(cached) " >&6
14908 else case e in #(
14909 e) if test yes = "$cross_compiling"; then :
14910 lt_cv_dlopen_self=cross
14911 else
14912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14913 lt_status=$lt_dlunknown
14914 cat > conftest.$ac_ext <<_LT_EOF
14915 #line $LINENO "configure"
14916 #include "confdefs.h"
14917
14918 #if HAVE_DLFCN_H
14919 #include <dlfcn.h>
14920 #endif
14921
14922 #include <stdio.h>
14923
14924 #ifdef RTLD_GLOBAL
14925 # define LT_DLGLOBAL RTLD_GLOBAL
14926 #else
14927 # ifdef DL_GLOBAL
14928 # define LT_DLGLOBAL DL_GLOBAL
14929 # else
14930 # define LT_DLGLOBAL 0
14931 # endif
14932 #endif
14933
14934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14935 find out it does not work in some platform. */
14936 #ifndef LT_DLLAZY_OR_NOW
14937 # ifdef RTLD_LAZY
14938 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14939 # else
14940 # ifdef DL_LAZY
14941 # define LT_DLLAZY_OR_NOW DL_LAZY
14942 # else
14943 # ifdef RTLD_NOW
14944 # define LT_DLLAZY_OR_NOW RTLD_NOW
14945 # else
14946 # ifdef DL_NOW
14947 # define LT_DLLAZY_OR_NOW DL_NOW
14948 # else
14949 # define LT_DLLAZY_OR_NOW 0
14950 # endif
14951 # endif
14952 # endif
14953 # endif
14954 #endif
14955
14956 /* When -fvisibility=hidden is used, assume the code has been annotated
14957 correspondingly for the symbols needed. */
14958 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14959 int fnord (void) __attribute__((visibility("default")));
14960 #endif
14961
14962 int fnord (void) { return 42; }
14963 int main (void)
14964 {
14965 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14966 int status = $lt_dlunknown;
14967
14968 if (self)
14969 {
14970 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14971 else
14972 {
14973 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14974 else puts (dlerror ());
14975 }
14976 /* dlclose (self); */
14977 }
14978 else
14979 puts (dlerror ());
14980
14981 return status;
14982 }
14983 _LT_EOF
14984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14985 (eval $ac_link) 2>&5
14986 ac_status=$?
14987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14988 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14989 (./conftest; exit; ) >&5 2>/dev/null
14990 lt_status=$?
14991 case x$lt_status in
14992 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14993 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14994 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14995 esac
14996 else :
14997 # compilation failed
14998 lt_cv_dlopen_self=no
14999 fi
15000 fi
15001 rm -fr conftest*
15002
15003 ;;
15004 esac
15005 fi
15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15007 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15008
15009 if test yes = "$lt_cv_dlopen_self"; then
15010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15012 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15013 if test ${lt_cv_dlopen_self_static+y}
15014 then :
15015 printf %s "(cached) " >&6
15016 else case e in #(
15017 e) if test yes = "$cross_compiling"; then :
15018 lt_cv_dlopen_self_static=cross
15019 else
15020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15021 lt_status=$lt_dlunknown
15022 cat > conftest.$ac_ext <<_LT_EOF
15023 #line $LINENO "configure"
15024 #include "confdefs.h"
15025
15026 #if HAVE_DLFCN_H
15027 #include <dlfcn.h>
15028 #endif
15029
15030 #include <stdio.h>
15031
15032 #ifdef RTLD_GLOBAL
15033 # define LT_DLGLOBAL RTLD_GLOBAL
15034 #else
15035 # ifdef DL_GLOBAL
15036 # define LT_DLGLOBAL DL_GLOBAL
15037 # else
15038 # define LT_DLGLOBAL 0
15039 # endif
15040 #endif
15041
15042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15043 find out it does not work in some platform. */
15044 #ifndef LT_DLLAZY_OR_NOW
15045 # ifdef RTLD_LAZY
15046 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15047 # else
15048 # ifdef DL_LAZY
15049 # define LT_DLLAZY_OR_NOW DL_LAZY
15050 # else
15051 # ifdef RTLD_NOW
15052 # define LT_DLLAZY_OR_NOW RTLD_NOW
15053 # else
15054 # ifdef DL_NOW
15055 # define LT_DLLAZY_OR_NOW DL_NOW
15056 # else
15057 # define LT_DLLAZY_OR_NOW 0
15058 # endif
15059 # endif
15060 # endif
15061 # endif
15062 #endif
15063
15064 /* When -fvisibility=hidden is used, assume the code has been annotated
15065 correspondingly for the symbols needed. */
15066 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15067 int fnord (void) __attribute__((visibility("default")));
15068 #endif
15069
15070 int fnord (void) { return 42; }
15071 int main (void)
15072 {
15073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15074 int status = $lt_dlunknown;
15075
15076 if (self)
15077 {
15078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15079 else
15080 {
15081 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15082 else puts (dlerror ());
15083 }
15084 /* dlclose (self); */
15085 }
15086 else
15087 puts (dlerror ());
15088
15089 return status;
15090 }
15091 _LT_EOF
15092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15093 (eval $ac_link) 2>&5
15094 ac_status=$?
15095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15096 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15097 (./conftest; exit; ) >&5 2>/dev/null
15098 lt_status=$?
15099 case x$lt_status in
15100 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15101 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15102 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15103 esac
15104 else :
15105 # compilation failed
15106 lt_cv_dlopen_self_static=no
15107 fi
15108 fi
15109 rm -fr conftest*
15110
15111 ;;
15112 esac
15113 fi
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15115 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15116 fi
15117
15118 CPPFLAGS=$save_CPPFLAGS
15119 LDFLAGS=$save_LDFLAGS
15120 LIBS=$save_LIBS
15121 ;;
15122 esac
15123
15124 case $lt_cv_dlopen_self in
15125 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15126 *) enable_dlopen_self=unknown ;;
15127 esac
15128
15129 case $lt_cv_dlopen_self_static in
15130 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15131 *) enable_dlopen_self_static=unknown ;;
15132 esac
15133 fi
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151 striplib=
15152 old_striplib=
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15154 printf %s "checking whether stripping libraries is possible... " >&6; }
15155 if test -z "$STRIP"; then
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 printf "%s\n" "no" >&6; }
15158 else
15159 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15160 old_striplib="$STRIP --strip-debug"
15161 striplib="$STRIP --strip-unneeded"
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15163 printf "%s\n" "yes" >&6; }
15164 else
15165 case $host_os in
15166 darwin*)
15167 # FIXME - insert some real tests, host_os isn't really good enough
15168 striplib="$STRIP -x"
15169 old_striplib="$STRIP -S"
15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15171 printf "%s\n" "yes" >&6; }
15172 ;;
15173 freebsd*)
15174 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15175 old_striplib="$STRIP --strip-debug"
15176 striplib="$STRIP --strip-unneeded"
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15178 printf "%s\n" "yes" >&6; }
15179 else
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181 printf "%s\n" "no" >&6; }
15182 fi
15183 ;;
15184 *)
15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15186 printf "%s\n" "no" >&6; }
15187 ;;
15188 esac
15189 fi
15190 fi
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203 # Report what library types will actually be built
15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15205 printf %s "checking if libtool supports shared libraries... " >&6; }
15206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15207 printf "%s\n" "$can_build_shared" >&6; }
15208
15209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15210 printf %s "checking whether to build shared libraries... " >&6; }
15211 test no = "$can_build_shared" && enable_shared=no
15212
15213 # On AIX, shared libraries and static libraries use the same namespace, and
15214 # are all built from PIC.
15215 case $host_os in
15216 aix3*)
15217 test yes = "$enable_shared" && enable_static=no
15218 if test -n "$RANLIB"; then
15219 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15220 postinstall_cmds='$RANLIB $lib'
15221 fi
15222 ;;
15223
15224 aix[4-9]*)
15225 if test ia64 != "$host_cpu"; then
15226 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15227 yes,aix,yes) ;; # shared object as lib.so file only
15228 yes,svr4,*) ;; # shared object as lib.so archive member only
15229 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15230 esac
15231 fi
15232 ;;
15233 esac
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15235 printf "%s\n" "$enable_shared" >&6; }
15236
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15238 printf %s "checking whether to build static libraries... " >&6; }
15239 # Make sure either enable_shared or enable_static is yes.
15240 test yes = "$enable_shared" || enable_static=yes
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15242 printf "%s\n" "$enable_static" >&6; }
15243
15244
15245
15246
15247 fi
15248 ac_ext=c
15249 ac_cpp='$CPP $CPPFLAGS'
15250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15253
15254 CC=$lt_save_CC
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270 ac_config_commands="$ac_config_commands libtool"
15271
15272
15273
15274
15275 # Only expand once:
15276
15277
15278
15279 # Select memory manager depending on user input.
15280 # If no "-enable-maxmem", use jmemnobs
15281 MEMORYMGR='jmemnobs'
15282 MAXMEM="no"
15283 # Check whether --enable-maxmem was given.
15284 if test ${enable_maxmem+y}
15285 then :
15286 enableval=$enable_maxmem; MAXMEM="$enableval"
15287 fi
15288
15289 if test "x$MAXMEM" = xyes; then
15290 MAXMEM=1
15291 fi
15292 if test "x$MAXMEM" != xno; then
15293 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
15294 as_fn_error $? "non-numeric argument to --enable-maxmem" "$LINENO" 5
15295 fi
15296 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
15297
15298 printf "%s\n" "#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}" >>confdefs.h
15299
15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
15301 printf %s "checking for 'tmpfile()'... " >&6; }
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15304 #include <stdio.h>
15305 int
15306 main (void)
15307 {
15308 FILE * tfile = tmpfile();
15309 ;
15310 return 0;
15311 }
15312 _ACEOF
15313 if ac_fn_c_try_link "$LINENO"
15314 then :
15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15316 printf "%s\n" "yes" >&6; }
15317 MEMORYMGR='jmemansi'
15318 else case e in #(
15319 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320 printf "%s\n" "no" >&6; }
15321 MEMORYMGR='jmemname'
15322
15323 # Test for the need to remove temporary files using a signal handler
15324 # (for cjpeg/djpeg)
15325
15326 printf "%s\n" "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
15327
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
15329 printf %s "checking for 'mktemp()'... " >&6; }
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332
15333 int
15334 main (void)
15335 {
15336 char fname[80]; mktemp(fname);
15337 ;
15338 return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_c_try_link "$LINENO"
15342 then :
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15344 printf "%s\n" "yes" >&6; }
15345 else case e in #(
15346 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15347 printf "%s\n" "no" >&6; }
15348
15349 printf "%s\n" "#define NO_MKTEMP 1" >>confdefs.h
15350 ;;
15351 esac
15352 fi
15353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15354 conftest$ac_exeext conftest.$ac_ext ;;
15355 esac
15356 fi
15357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15358 conftest$ac_exeext conftest.$ac_ext
15359 fi
15360
15361
15362 # Extract the library version IDs from jpeglib.h.
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
15364 printf %s "checking libjpeg version number... " >&6; }
15365 major=`sed -ne 's/^#define JPEG_LIB_VERSION_MAJOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
15366 minor=`sed -ne 's/^#define JPEG_LIB_VERSION_MINOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
15367 JPEG_LIB_VERSION=`expr $major + $minor`:0:$minor
15368
15369 JPEG_LIB_VERSION_MAJOR=$major
15370
15371 JPEG_LIB_VERSION_MINOR=$minor
15372
15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $major.$minor.0" >&5
15374 printf "%s\n" "$major.$minor.0" >&6; }
15375
15376 ac_config_files="$ac_config_files Makefile libjpeg.pc"
15377
15378 cat >confcache <<\_ACEOF
15379 # This file is a shell script that caches the results of configure
15380 # tests run on this system so they can be shared between configure
15381 # scripts and configure runs, see configure's option --config-cache.
15382 # It is not useful on other systems. If it contains results you don't
15383 # want to keep, you may remove or edit it.
15384 #
15385 # config.status only pays attention to the cache file if you give it
15386 # the --recheck option to rerun configure.
15387 #
15388 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15389 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15390 # following values.
15391
15392 _ACEOF
15393
15394 # The following way of writing the cache mishandles newlines in values,
15395 # but we know of no workaround that is simple, portable, and efficient.
15396 # So, we kill variables containing newlines.
15397 # Ultrix sh set writes to stderr and can't be redirected directly,
15398 # and sets the high bit in the cache file unless we assign to the vars.
15399 (
15400 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15401 eval ac_val=\$$ac_var
15402 case $ac_val in #(
15403 *${as_nl}*)
15404 case $ac_var in #(
15405 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15406 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15407 esac
15408 case $ac_var in #(
15409 _ | IFS | as_nl) ;; #(
15410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15411 *) { eval $ac_var=; unset $ac_var;} ;;
15412 esac ;;
15413 esac
15414 done
15415
15416 (set) 2>&1 |
15417 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15418 *${as_nl}ac_space=\ *)
15419 # 'set' does not quote correctly, so add quotes: double-quote
15420 # substitution turns \\\\ into \\, and sed turns \\ into \.
15421 sed -n \
15422 "s/'/'\\\\''/g;
15423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15424 ;; #(
15425 *)
15426 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15428 ;;
15429 esac |
15430 sort
15431 ) |
15432 sed '
15433 /^ac_cv_env_/b end
15434 t clear
15435 :clear
15436 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15437 t end
15438 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15439 :end' >>confcache
15440 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15441 if test -w "$cache_file"; then
15442 if test "x$cache_file" != "x/dev/null"; then
15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15444 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15445 if test ! -f "$cache_file" || test -h "$cache_file"; then
15446 cat confcache >"$cache_file"
15447 else
15448 case $cache_file in #(
15449 */* | ?:*)
15450 mv -f confcache "$cache_file"$$ &&
15451 mv -f "$cache_file"$$ "$cache_file" ;; #(
15452 *)
15453 mv -f confcache "$cache_file" ;;
15454 esac
15455 fi
15456 fi
15457 else
15458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15459 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15460 fi
15461 fi
15462 rm -f confcache
15463
15464 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15465 # Let make expand exec_prefix.
15466 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15467
15468 DEFS=-DHAVE_CONFIG_H
15469
15470 ac_libobjs=
15471 ac_ltlibobjs=
15472 U=
15473 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15474 # 1. Remove the extension, and $U if already installed.
15475 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15476 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15477 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15478 # will be set to the directory where LIBOBJS objects are built.
15479 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15480 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15481 done
15482 LIBOBJS=$ac_libobjs
15483
15484 LTLIBOBJS=$ac_ltlibobjs
15485
15486
15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15488 printf %s "checking that generated files are newer than configure... " >&6; }
15489 if test -n "$am_sleep_pid"; then
15490 # Hide warnings about reused PIDs.
15491 wait $am_sleep_pid 2>/dev/null
15492 fi
15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15494 printf "%s\n" "done" >&6; }
15495 case $enable_silent_rules in # (((
15496 yes) AM_DEFAULT_VERBOSITY=0;;
15497 no) AM_DEFAULT_VERBOSITY=1;;
15498 esac
15499 if test $am_cv_make_support_nested_variables = yes; then
15500 AM_V='$(V)'
15501 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15502 else
15503 AM_V=$AM_DEFAULT_VERBOSITY
15504 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15505 fi
15506
15507 if test -n "$EXEEXT"; then
15508 am__EXEEXT_TRUE=
15509 am__EXEEXT_FALSE='#'
15510 else
15511 am__EXEEXT_TRUE='#'
15512 am__EXEEXT_FALSE=
15513 fi
15514
15515 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15516 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15518 fi
15519 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15520 as_fn_error $? "conditional \"AMDEP\" was never defined.
15521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15522 fi
15523 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15524 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15526 fi
15527 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
15528 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
15529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15530 fi
15531
15532 : "${CONFIG_STATUS=./config.status}"
15533 ac_write_fail=0
15534 ac_clean_files_save=$ac_clean_files
15535 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15537 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15538 as_write_fail=0
15539 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15540 #! $SHELL
15541 # Generated by $as_me.
15542 # Run this file to recreate the current configuration.
15543 # Compiler output produced by configure, useful for debugging
15544 # configure, is in config.log if it exists.
15545
15546 debug=false
15547 ac_cs_recheck=false
15548 ac_cs_silent=false
15549
15550 SHELL=\${CONFIG_SHELL-$SHELL}
15551 export SHELL
15552 _ASEOF
15553 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15554 ## -------------------- ##
15555 ## M4sh Initialization. ##
15556 ## -------------------- ##
15557
15558 # Be more Bourne compatible
15559 DUALCASE=1; export DUALCASE # for MKS sh
15560 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15561 then :
15562 emulate sh
15563 NULLCMD=:
15564 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15565 # is contrary to our usage. Disable this feature.
15566 alias -g '${1+"$@"}'='"$@"'
15567 setopt NO_GLOB_SUBST
15568 else case e in #(
15569 e) case `(set -o) 2>/dev/null` in #(
15570 *posix*) :
15571 set -o posix ;; #(
15572 *) :
15573 ;;
15574 esac ;;
15575 esac
15576 fi
15577
15578
15579
15580 # Reset variables that may have inherited troublesome values from
15581 # the environment.
15582
15583 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15584 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15585 # side effect of setting IFS to empty, thus disabling word splitting.)
15586 # Quoting is to prevent editors from complaining about space-tab.
15587 as_nl='
15588 '
15589 export as_nl
15590 IFS=" "" $as_nl"
15591
15592 PS1='$ '
15593 PS2='> '
15594 PS4='+ '
15595
15596 # Ensure predictable behavior from utilities with locale-dependent output.
15597 LC_ALL=C
15598 export LC_ALL
15599 LANGUAGE=C
15600 export LANGUAGE
15601
15602 # We cannot yet rely on "unset" to work, but we need these variables
15603 # to be unset--not just set to an empty or harmless value--now, to
15604 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15605 # also avoids known problems related to "unset" and subshell syntax
15606 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15607 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15608 do eval test \${$as_var+y} \
15609 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15610 done
15611
15612 # Ensure that fds 0, 1, and 2 are open.
15613 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15614 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15615 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15616
15617 # The user is always right.
15618 if ${PATH_SEPARATOR+false} :; then
15619 PATH_SEPARATOR=:
15620 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15621 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15622 PATH_SEPARATOR=';'
15623 }
15624 fi
15625
15626
15627 # Find who we are. Look in the path if we contain no directory separator.
15628 as_myself=
15629 case $0 in #((
15630 *[\\/]* ) as_myself=$0 ;;
15631 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15632 for as_dir in $PATH
15633 do
15634 IFS=$as_save_IFS
15635 case $as_dir in #(((
15636 '') as_dir=./ ;;
15637 */) ;;
15638 *) as_dir=$as_dir/ ;;
15639 esac
15640 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15641 done
15642 IFS=$as_save_IFS
15643
15644 ;;
15645 esac
15646 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15647 # in which case we are not to be found in the path.
15648 if test "x$as_myself" = x; then
15649 as_myself=$0
15650 fi
15651 if test ! -f "$as_myself"; then
15652 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15653 exit 1
15654 fi
15655
15656
15657
15658 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15659 # ----------------------------------------
15660 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15661 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15662 # script with STATUS, using 1 if that was 0.
15663 as_fn_error ()
15664 {
15665 as_status=$1; test $as_status -eq 0 && as_status=1
15666 if test "$4"; then
15667 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15669 fi
15670 printf "%s\n" "$as_me: error: $2" >&2
15671 as_fn_exit $as_status
15672 } # as_fn_error
15673
15674
15675 # as_fn_set_status STATUS
15676 # -----------------------
15677 # Set $? to STATUS, without forking.
15678 as_fn_set_status ()
15679 {
15680 return $1
15681 } # as_fn_set_status
15682
15683 # as_fn_exit STATUS
15684 # -----------------
15685 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15686 as_fn_exit ()
15687 {
15688 set +e
15689 as_fn_set_status $1
15690 exit $1
15691 } # as_fn_exit
15692
15693 # as_fn_unset VAR
15694 # ---------------
15695 # Portably unset VAR.
15696 as_fn_unset ()
15697 {
15698 { eval $1=; unset $1;}
15699 }
15700 as_unset=as_fn_unset
15701
15702 # as_fn_append VAR VALUE
15703 # ----------------------
15704 # Append the text in VALUE to the end of the definition contained in VAR. Take
15705 # advantage of any shell optimizations that allow amortized linear growth over
15706 # repeated appends, instead of the typical quadratic growth present in naive
15707 # implementations.
15708 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15709 then :
15710 eval 'as_fn_append ()
15711 {
15712 eval $1+=\$2
15713 }'
15714 else case e in #(
15715 e) as_fn_append ()
15716 {
15717 eval $1=\$$1\$2
15718 } ;;
15719 esac
15720 fi # as_fn_append
15721
15722 # as_fn_arith ARG...
15723 # ------------------
15724 # Perform arithmetic evaluation on the ARGs, and store the result in the
15725 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15726 # must be portable across $(()) and expr.
15727 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15728 then :
15729 eval 'as_fn_arith ()
15730 {
15731 as_val=$(( $* ))
15732 }'
15733 else case e in #(
15734 e) as_fn_arith ()
15735 {
15736 as_val=`expr "$@" || test $? -eq 1`
15737 } ;;
15738 esac
15739 fi # as_fn_arith
15740
15741
15742 if expr a : '\(a\)' >/dev/null 2>&1 &&
15743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15744 as_expr=expr
15745 else
15746 as_expr=false
15747 fi
15748
15749 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15750 as_basename=basename
15751 else
15752 as_basename=false
15753 fi
15754
15755 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15756 as_dirname=dirname
15757 else
15758 as_dirname=false
15759 fi
15760
15761 as_me=`$as_basename -- "$0" ||
15762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15763 X"$0" : 'X\(//\)$' \| \
15764 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15765 printf "%s\n" X/"$0" |
15766 sed '/^.*\/\([^/][^/]*\)\/*$/{
15767 s//\1/
15768 q
15769 }
15770 /^X\/\(\/\/\)$/{
15771 s//\1/
15772 q
15773 }
15774 /^X\/\(\/\).*/{
15775 s//\1/
15776 q
15777 }
15778 s/.*/./; q'`
15779
15780 # Avoid depending upon Character Ranges.
15781 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15782 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15783 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15784 as_cr_digits='0123456789'
15785 as_cr_alnum=$as_cr_Letters$as_cr_digits
15786
15787
15788 # Determine whether it's possible to make 'echo' print without a newline.
15789 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15790 # for compatibility with existing Makefiles.
15791 ECHO_C= ECHO_N= ECHO_T=
15792 case `echo -n x` in #(((((
15793 -n*)
15794 case `echo 'xy\c'` in
15795 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15796 xy) ECHO_C='\c';;
15797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15798 ECHO_T=' ';;
15799 esac;;
15800 *)
15801 ECHO_N='-n';;
15802 esac
15803
15804 # For backward compatibility with old third-party macros, we provide
15805 # the shell variables $as_echo and $as_echo_n. New code should use
15806 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15807 as_echo='printf %s\n'
15808 as_echo_n='printf %s'
15809
15810 rm -f conf$$ conf$$.exe conf$$.file
15811 if test -d conf$$.dir; then
15812 rm -f conf$$.dir/conf$$.file
15813 else
15814 rm -f conf$$.dir
15815 mkdir conf$$.dir 2>/dev/null
15816 fi
15817 if (echo >conf$$.file) 2>/dev/null; then
15818 if ln -s conf$$.file conf$$ 2>/dev/null; then
15819 as_ln_s='ln -s'
15820 # ... but there are two gotchas:
15821 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15822 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15823 # In both cases, we have to default to 'cp -pR'.
15824 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15825 as_ln_s='cp -pR'
15826 elif ln conf$$.file conf$$ 2>/dev/null; then
15827 as_ln_s=ln
15828 else
15829 as_ln_s='cp -pR'
15830 fi
15831 else
15832 as_ln_s='cp -pR'
15833 fi
15834 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15835 rmdir conf$$.dir 2>/dev/null
15836
15837
15838 # as_fn_mkdir_p
15839 # -------------
15840 # Create "$as_dir" as a directory, including parents if necessary.
15841 as_fn_mkdir_p ()
15842 {
15843
15844 case $as_dir in #(
15845 -*) as_dir=./$as_dir;;
15846 esac
15847 test -d "$as_dir" || eval $as_mkdir_p || {
15848 as_dirs=
15849 while :; do
15850 case $as_dir in #(
15851 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15852 *) as_qdir=$as_dir;;
15853 esac
15854 as_dirs="'$as_qdir' $as_dirs"
15855 as_dir=`$as_dirname -- "$as_dir" ||
15856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15857 X"$as_dir" : 'X\(//\)[^/]' \| \
15858 X"$as_dir" : 'X\(//\)$' \| \
15859 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15860 printf "%s\n" X"$as_dir" |
15861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15862 s//\1/
15863 q
15864 }
15865 /^X\(\/\/\)[^/].*/{
15866 s//\1/
15867 q
15868 }
15869 /^X\(\/\/\)$/{
15870 s//\1/
15871 q
15872 }
15873 /^X\(\/\).*/{
15874 s//\1/
15875 q
15876 }
15877 s/.*/./; q'`
15878 test -d "$as_dir" && break
15879 done
15880 test -z "$as_dirs" || eval "mkdir $as_dirs"
15881 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15882
15883
15884 } # as_fn_mkdir_p
15885 if mkdir -p . 2>/dev/null; then
15886 as_mkdir_p='mkdir -p "$as_dir"'
15887 else
15888 test -d ./-p && rmdir ./-p
15889 as_mkdir_p=false
15890 fi
15891
15892
15893 # as_fn_executable_p FILE
15894 # -----------------------
15895 # Test if FILE is an executable regular file.
15896 as_fn_executable_p ()
15897 {
15898 test -f "$1" && test -x "$1"
15899 } # as_fn_executable_p
15900 as_test_x='test -x'
15901 as_executable_p=as_fn_executable_p
15902
15903 # Sed expression to map a string onto a valid CPP name.
15904 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15905 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15906
15907 # Sed expression to map a string onto a valid variable name.
15908 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15909 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15910
15911
15912 exec 6>&1
15913 ## ----------------------------------- ##
15914 ## Main body of $CONFIG_STATUS script. ##
15915 ## ----------------------------------- ##
15916 _ASEOF
15917 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15918
15919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15920 # Save the log message, to keep $0 and so on meaningful, and to
15921 # report actual input values of CONFIG_FILES etc. instead of their
15922 # values after options handling.
15923 ac_log="
15924 This file was extended by libjpeg $as_me 10.0.0, which was
15925 generated by GNU Autoconf 2.72. Invocation command line was
15926
15927 CONFIG_FILES = $CONFIG_FILES
15928 CONFIG_HEADERS = $CONFIG_HEADERS
15929 CONFIG_LINKS = $CONFIG_LINKS
15930 CONFIG_COMMANDS = $CONFIG_COMMANDS
15931 $ $0 $@
15932
15933 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15934 "
15935
15936 _ACEOF
15937
15938 case $ac_config_files in *"
15939 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15940 esac
15941
15942 case $ac_config_headers in *"
15943 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15944 esac
15945
15946
15947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15948 # Files that config.status was made for.
15949 config_files="$ac_config_files"
15950 config_headers="$ac_config_headers"
15951 config_commands="$ac_config_commands"
15952
15953 _ACEOF
15954
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956 ac_cs_usage="\
15957 '$as_me' instantiates files and other configuration actions
15958 from templates according to the current configuration. Unless the files
15959 and actions are specified as TAGs, all are instantiated by default.
15960
15961 Usage: $0 [OPTION]... [TAG]...
15962
15963 -h, --help print this help, then exit
15964 -V, --version print version number and configuration settings, then exit
15965 --config print configuration, then exit
15966 -q, --quiet, --silent
15967 do not print progress messages
15968 -d, --debug don't remove temporary files
15969 --recheck update $as_me by reconfiguring in the same conditions
15970 --file=FILE[:TEMPLATE]
15971 instantiate the configuration file FILE
15972 --header=FILE[:TEMPLATE]
15973 instantiate the configuration header FILE
15974
15975 Configuration files:
15976 $config_files
15977
15978 Configuration headers:
15979 $config_headers
15980
15981 Configuration commands:
15982 $config_commands
15983
15984 Report bugs to the package provider."
15985
15986 _ACEOF
15987 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15988 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15990 ac_cs_config='$ac_cs_config_escaped'
15991 ac_cs_version="\\
15992 libjpeg config.status 10.0.0
15993 configured by $0, generated by GNU Autoconf 2.72,
15994 with options \\"\$ac_cs_config\\"
15995
15996 Copyright (C) 2023 Free Software Foundation, Inc.
15997 This config.status script is free software; the Free Software Foundation
15998 gives unlimited permission to copy, distribute and modify it."
15999
16000 ac_pwd='$ac_pwd'
16001 srcdir='$srcdir'
16002 INSTALL='$INSTALL'
16003 MKDIR_P='$MKDIR_P'
16004 AWK='$AWK'
16005 test -n "\$AWK" || AWK=awk
16006 _ACEOF
16007
16008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16009 # The default lists apply if the user does not specify any file.
16010 ac_need_defaults=:
16011 while test $# != 0
16012 do
16013 case $1 in
16014 --*=?*)
16015 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16016 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16017 ac_shift=:
16018 ;;
16019 --*=)
16020 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16021 ac_optarg=
16022 ac_shift=:
16023 ;;
16024 *)
16025 ac_option=$1
16026 ac_optarg=$2
16027 ac_shift=shift
16028 ;;
16029 esac
16030
16031 case $ac_option in
16032 # Handling of the options.
16033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16034 ac_cs_recheck=: ;;
16035 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16036 printf "%s\n" "$ac_cs_version"; exit ;;
16037 --config | --confi | --conf | --con | --co | --c )
16038 printf "%s\n" "$ac_cs_config"; exit ;;
16039 --debug | --debu | --deb | --de | --d | -d )
16040 debug=: ;;
16041 --file | --fil | --fi | --f )
16042 $ac_shift
16043 case $ac_optarg in
16044 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16045 '') as_fn_error $? "missing file argument" ;;
16046 esac
16047 as_fn_append CONFIG_FILES " '$ac_optarg'"
16048 ac_need_defaults=false;;
16049 --header | --heade | --head | --hea )
16050 $ac_shift
16051 case $ac_optarg in
16052 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16053 esac
16054 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16055 ac_need_defaults=false;;
16056 --he | --h)
16057 # Conflict between --help and --header
16058 as_fn_error $? "ambiguous option: '$1'
16059 Try '$0 --help' for more information.";;
16060 --help | --hel | -h )
16061 printf "%s\n" "$ac_cs_usage"; exit ;;
16062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16063 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16064 ac_cs_silent=: ;;
16065
16066 # This is an error.
16067 -*) as_fn_error $? "unrecognized option: '$1'
16068 Try '$0 --help' for more information." ;;
16069
16070 *) as_fn_append ac_config_targets " $1"
16071 ac_need_defaults=false ;;
16072
16073 esac
16074 shift
16075 done
16076
16077 ac_configure_extra_args=
16078
16079 if $ac_cs_silent; then
16080 exec 6>/dev/null
16081 ac_configure_extra_args="$ac_configure_extra_args --silent"
16082 fi
16083
16084 _ACEOF
16085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16086 if \$ac_cs_recheck; then
16087 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16088 shift
16089 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16090 CONFIG_SHELL='$SHELL'
16091 export CONFIG_SHELL
16092 exec "\$@"
16093 fi
16094
16095 _ACEOF
16096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16097 exec 5>>config.log
16098 {
16099 echo
16100 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16101 ## Running $as_me. ##
16102 _ASBOX
16103 printf "%s\n" "$ac_log"
16104 } >&5
16105
16106 _ACEOF
16107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16108 #
16109 # INIT-COMMANDS
16110 #
16111 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16112
16113
16114 # The HP-UX ksh and POSIX shell print the target directory to stdout
16115 # if CDPATH is set.
16116 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16117
16118 sed_quote_subst='$sed_quote_subst'
16119 double_quote_subst='$double_quote_subst'
16120 delay_variable_subst='$delay_variable_subst'
16121 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16122 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16123 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16124 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16125 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16126 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16127 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16128 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16129 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16130 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16131 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16132 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16133 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16134 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16135 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16136 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16137 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16138 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16139 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16140 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16141 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16142 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16143 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16144 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16145 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16146 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16147 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16148 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16149 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16150 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16151 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16152 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16153 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16154 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16155 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16156 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16157 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16158 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16159 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16160 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16161 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16162 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16163 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16164 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16165 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16166 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16167 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16168 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16169 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16170 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16171 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16172 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16173 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16174 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16175 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16176 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16177 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16178 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16179 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16180 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16181 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16182 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"`'
16183 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16184 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16185 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16186 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16187 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16188 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16189 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16190 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16191 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16192 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16193 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16194 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16195 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16196 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16197 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16198 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16199 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16200 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16201 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16202 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16203 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16204 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16205 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16206 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16207 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16208 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16209 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16210 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16211 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16212 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16213 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16214 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16215 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16216 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16217 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16218 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16219 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16220 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16221 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16222 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16223 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16224 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16225 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16226 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16227 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16228 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16229 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16230 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16231 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16232 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16233 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16234 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16235 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16236 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16237 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16238 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16239 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16240 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16241 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16242 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16243 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16244 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16245 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16246 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16247 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16248 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16249 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16250 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16251 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16252 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16253 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16254 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16255 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16256 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16257 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16258 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16259
16260 LTCC='$LTCC'
16261 LTCFLAGS='$LTCFLAGS'
16262 compiler='$compiler_DEFAULT'
16263
16264 # A function that is used when there is no print builtin or printf.
16265 func_fallback_echo ()
16266 {
16267 eval 'cat <<_LTECHO_EOF
16268 \$1
16269 _LTECHO_EOF'
16270 }
16271
16272 # Quote evaled strings.
16273 for var in AS \
16274 DLLTOOL \
16275 OBJDUMP \
16276 SHELL \
16277 ECHO \
16278 PATH_SEPARATOR \
16279 SED \
16280 GREP \
16281 EGREP \
16282 FGREP \
16283 LD \
16284 NM \
16285 LN_S \
16286 lt_SP2NL \
16287 lt_NL2SP \
16288 reload_flag \
16289 FILECMD \
16290 deplibs_check_method \
16291 file_magic_cmd \
16292 file_magic_glob \
16293 want_nocaseglob \
16294 sharedlib_from_linklib_cmd \
16295 AR \
16296 archiver_list_spec \
16297 STRIP \
16298 RANLIB \
16299 CC \
16300 CFLAGS \
16301 compiler \
16302 lt_cv_sys_global_symbol_pipe \
16303 lt_cv_sys_global_symbol_to_cdecl \
16304 lt_cv_sys_global_symbol_to_import \
16305 lt_cv_sys_global_symbol_to_c_name_address \
16306 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16307 lt_cv_nm_interface \
16308 nm_file_list_spec \
16309 lt_cv_truncate_bin \
16310 lt_prog_compiler_no_builtin_flag \
16311 lt_prog_compiler_pic \
16312 lt_prog_compiler_wl \
16313 lt_prog_compiler_static \
16314 lt_cv_prog_compiler_c_o \
16315 need_locks \
16316 MANIFEST_TOOL \
16317 DSYMUTIL \
16318 NMEDIT \
16319 LIPO \
16320 OTOOL \
16321 OTOOL64 \
16322 shrext_cmds \
16323 export_dynamic_flag_spec \
16324 whole_archive_flag_spec \
16325 compiler_needs_object \
16326 with_gnu_ld \
16327 allow_undefined_flag \
16328 no_undefined_flag \
16329 hardcode_libdir_flag_spec \
16330 hardcode_libdir_separator \
16331 exclude_expsyms \
16332 include_expsyms \
16333 file_list_spec \
16334 variables_saved_for_relink \
16335 libname_spec \
16336 library_names_spec \
16337 soname_spec \
16338 install_override_mode \
16339 finish_eval \
16340 old_striplib \
16341 striplib; do
16342 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16343 *[\\\\\\\`\\"\\\$]*)
16344 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16345 ;;
16346 *)
16347 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16348 ;;
16349 esac
16350 done
16351
16352 # Double-quote double-evaled strings.
16353 for var in reload_cmds \
16354 old_postinstall_cmds \
16355 old_postuninstall_cmds \
16356 old_archive_cmds \
16357 extract_expsyms_cmds \
16358 old_archive_from_new_cmds \
16359 old_archive_from_expsyms_cmds \
16360 archive_cmds \
16361 archive_expsym_cmds \
16362 module_cmds \
16363 module_expsym_cmds \
16364 export_symbols_cmds \
16365 prelink_cmds \
16366 postlink_cmds \
16367 postinstall_cmds \
16368 postuninstall_cmds \
16369 finish_cmds \
16370 sys_lib_search_path_spec \
16371 configure_time_dlsearch_path \
16372 configure_time_lt_sys_library_path; do
16373 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16374 *[\\\\\\\`\\"\\\$]*)
16375 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16376 ;;
16377 *)
16378 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16379 ;;
16380 esac
16381 done
16382
16383 ac_aux_dir='$ac_aux_dir'
16384
16385 # See if we are running on zsh, and set the options that allow our
16386 # commands through without removal of \ escapes INIT.
16387 if test -n "\${ZSH_VERSION+set}"; then
16388 setopt NO_GLOB_SUBST
16389 fi
16390
16391
16392 PACKAGE='$PACKAGE'
16393 VERSION='$VERSION'
16394 RM='$RM'
16395 ofile='$ofile'
16396
16397
16398
16399
16400 _ACEOF
16401
16402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16403
16404 # Handling of arguments.
16405 for ac_config_target in $ac_config_targets
16406 do
16407 case $ac_config_target in
16408 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
16409 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16410 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16411 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16412 "libjpeg.pc") CONFIG_FILES="$CONFIG_FILES libjpeg.pc" ;;
16413
16414 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16415 esac
16416 done
16417
16418
16419 # If the user did not use the arguments to specify the items to instantiate,
16420 # then the envvar interface is used. Set only those that are not.
16421 # We use the long form for the default assignment because of an extremely
16422 # bizarre bug on SunOS 4.1.3.
16423 if $ac_need_defaults; then
16424 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16425 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16426 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16427 fi
16428
16429 # Have a temporary directory for convenience. Make it in the build tree
16430 # simply because there is no reason against having it here, and in addition,
16431 # creating and moving files from /tmp can sometimes cause problems.
16432 # Hook for its removal unless debugging.
16433 # Note that there is a small window in which the directory will not be cleaned:
16434 # after its creation but before its name has been assigned to '$tmp'.
16435 $debug ||
16436 {
16437 tmp= ac_tmp=
16438 trap 'exit_status=$?
16439 : "${ac_tmp:=$tmp}"
16440 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16441 ' 0
16442 trap 'as_fn_exit 1' 1 2 13 15
16443 }
16444 # Create a (secure) tmp directory for tmp files.
16445
16446 {
16447 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16448 test -d "$tmp"
16449 } ||
16450 {
16451 tmp=./conf$$-$RANDOM
16452 (umask 077 && mkdir "$tmp")
16453 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16454 ac_tmp=$tmp
16455
16456 # Set up the scripts for CONFIG_FILES section.
16457 # No need to generate them if there are no CONFIG_FILES.
16458 # This happens for instance with './config.status config.h'.
16459 if test -n "$CONFIG_FILES"; then
16460
16461
16462 ac_cr=`echo X | tr X '\015'`
16463 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16464 # But we know of no other shell where ac_cr would be empty at this
16465 # point, so we can use a bashism as a fallback.
16466 if test "x$ac_cr" = x; then
16467 eval ac_cr=\$\'\\r\'
16468 fi
16469 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16470 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16471 ac_cs_awk_cr='\\r'
16472 else
16473 ac_cs_awk_cr=$ac_cr
16474 fi
16475
16476 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16477 _ACEOF
16478
16479
16480 {
16481 echo "cat >conf$$subs.awk <<_ACEOF" &&
16482 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16483 echo "_ACEOF"
16484 } >conf$$subs.sh ||
16485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16486 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16487 ac_delim='%!_!# '
16488 for ac_last_try in false false false false false :; do
16489 . ./conf$$subs.sh ||
16490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16491
16492 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16493 if test $ac_delim_n = $ac_delim_num; then
16494 break
16495 elif $ac_last_try; then
16496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16497 else
16498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16499 fi
16500 done
16501 rm -f conf$$subs.sh
16502
16503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16504 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16505 _ACEOF
16506 sed -n '
16507 h
16508 s/^/S["/; s/!.*/"]=/
16509 p
16510 g
16511 s/^[^!]*!//
16512 :repl
16513 t repl
16514 s/'"$ac_delim"'$//
16515 t delim
16516 :nl
16517 h
16518 s/\(.\{148\}\)..*/\1/
16519 t more1
16520 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16521 p
16522 n
16523 b repl
16524 :more1
16525 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16526 p
16527 g
16528 s/.\{148\}//
16529 t nl
16530 :delim
16531 h
16532 s/\(.\{148\}\)..*/\1/
16533 t more2
16534 s/["\\]/\\&/g; s/^/"/; s/$/"/
16535 p
16536 b
16537 :more2
16538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16539 p
16540 g
16541 s/.\{148\}//
16542 t delim
16543 ' <conf$$subs.awk | sed '
16544 /^[^""]/{
16545 N
16546 s/\n//
16547 }
16548 ' >>$CONFIG_STATUS || ac_write_fail=1
16549 rm -f conf$$subs.awk
16550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16551 _ACAWK
16552 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16553 for (key in S) S_is_set[key] = 1
16554 FS = ""
16555
16556 }
16557 {
16558 line = $ 0
16559 nfields = split(line, field, "@")
16560 substed = 0
16561 len = length(field[1])
16562 for (i = 2; i < nfields; i++) {
16563 key = field[i]
16564 keylen = length(key)
16565 if (S_is_set[key]) {
16566 value = S[key]
16567 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16568 len += length(value) + length(field[++i])
16569 substed = 1
16570 } else
16571 len += 1 + keylen
16572 }
16573
16574 print line
16575 }
16576
16577 _ACAWK
16578 _ACEOF
16579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16580 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16581 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16582 else
16583 cat
16584 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16585 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16586 _ACEOF
16587
16588 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16589 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16590 # trailing colons and then remove the whole line if VPATH becomes empty
16591 # (actually we leave an empty line to preserve line numbers).
16592 if test "x$srcdir" = x.; then
16593 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16594 h
16595 s///
16596 s/^/:/
16597 s/[ ]*$/:/
16598 s/:\$(srcdir):/:/g
16599 s/:\${srcdir}:/:/g
16600 s/:@srcdir@:/:/g
16601 s/^:*//
16602 s/:*$//
16603 x
16604 s/\(=[ ]*\).*/\1/
16605 G
16606 s/\n//
16607 s/^[^=]*=[ ]*$//
16608 }'
16609 fi
16610
16611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16612 fi # test -n "$CONFIG_FILES"
16613
16614 # Set up the scripts for CONFIG_HEADERS section.
16615 # No need to generate them if there are no CONFIG_HEADERS.
16616 # This happens for instance with './config.status Makefile'.
16617 if test -n "$CONFIG_HEADERS"; then
16618 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16619 BEGIN {
16620 _ACEOF
16621
16622 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16623 # here-document in config.status, that substitutes the proper values into
16624 # config.h.in to produce config.h.
16625
16626 # Create a delimiter string that does not exist in confdefs.h, to ease
16627 # handling of long lines.
16628 ac_delim='%!_!# '
16629 for ac_last_try in false false :; do
16630 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16631 if test -z "$ac_tt"; then
16632 break
16633 elif $ac_last_try; then
16634 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16635 else
16636 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16637 fi
16638 done
16639
16640 # For the awk script, D is an array of macro values keyed by name,
16641 # likewise P contains macro parameters if any. Preserve backslash
16642 # newline sequences.
16643
16644 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16645 sed -n '
16646 s/.\{148\}/&'"$ac_delim"'/g
16647 t rset
16648 :rset
16649 s/^[ ]*#[ ]*define[ ][ ]*/ /
16650 t def
16651 d
16652 :def
16653 s/\\$//
16654 t bsnl
16655 s/["\\]/\\&/g
16656 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16657 D["\1"]=" \3"/p
16658 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16659 d
16660 :bsnl
16661 s/["\\]/\\&/g
16662 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16663 D["\1"]=" \3\\\\\\n"\\/p
16664 t cont
16665 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16666 t cont
16667 d
16668 :cont
16669 n
16670 s/.\{148\}/&'"$ac_delim"'/g
16671 t clear
16672 :clear
16673 s/\\$//
16674 t bsnlc
16675 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16676 d
16677 :bsnlc
16678 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16679 b cont
16680 ' <confdefs.h | sed '
16681 s/'"$ac_delim"'/"\\\
16682 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16683
16684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 for (key in D) D_is_set[key] = 1
16686 FS = ""
16687 }
16688 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16689 line = \$ 0
16690 split(line, arg, " ")
16691 if (arg[1] == "#") {
16692 defundef = arg[2]
16693 mac1 = arg[3]
16694 } else {
16695 defundef = substr(arg[1], 2)
16696 mac1 = arg[2]
16697 }
16698 split(mac1, mac2, "(") #)
16699 macro = mac2[1]
16700 prefix = substr(line, 1, index(line, defundef) - 1)
16701 if (D_is_set[macro]) {
16702 # Preserve the white space surrounding the "#".
16703 print prefix "define", macro P[macro] D[macro]
16704 next
16705 } else {
16706 # Replace #undef with comments. This is necessary, for example,
16707 # in the case of _POSIX_SOURCE, which is predefined and required
16708 # on some systems where configure will not decide to define it.
16709 if (defundef == "undef") {
16710 print "/*", prefix defundef, macro, "*/"
16711 next
16712 }
16713 }
16714 }
16715 { print }
16716 _ACAWK
16717 _ACEOF
16718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16719 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16720 fi # test -n "$CONFIG_HEADERS"
16721
16722
16723 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16724 shift
16725 for ac_tag
16726 do
16727 case $ac_tag in
16728 :[FHLC]) ac_mode=$ac_tag; continue;;
16729 esac
16730 case $ac_mode$ac_tag in
16731 :[FHL]*:*);;
16732 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16733 :[FH]-) ac_tag=-:-;;
16734 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16735 esac
16736 ac_save_IFS=$IFS
16737 IFS=:
16738 set x $ac_tag
16739 IFS=$ac_save_IFS
16740 shift
16741 ac_file=$1
16742 shift
16743
16744 case $ac_mode in
16745 :L) ac_source=$1;;
16746 :[FH])
16747 ac_file_inputs=
16748 for ac_f
16749 do
16750 case $ac_f in
16751 -) ac_f="$ac_tmp/stdin";;
16752 *) # Look for the file first in the build tree, then in the source tree
16753 # (if the path is not absolute). The absolute path cannot be DOS-style,
16754 # because $ac_f cannot contain ':'.
16755 test -f "$ac_f" ||
16756 case $ac_f in
16757 [\\/$]*) false;;
16758 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16759 esac ||
16760 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16761 esac
16762 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16763 as_fn_append ac_file_inputs " '$ac_f'"
16764 done
16765
16766 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16767 # use $as_me), people would be surprised to read:
16768 # /* config.h. Generated by config.status. */
16769 configure_input='Generated from '`
16770 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16771 `' by configure.'
16772 if test x"$ac_file" != x-; then
16773 configure_input="$ac_file. $configure_input"
16774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16775 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16776 fi
16777 # Neutralize special characters interpreted by sed in replacement strings.
16778 case $configure_input in #(
16779 *\&* | *\|* | *\\* )
16780 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16781 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16782 *) ac_sed_conf_input=$configure_input;;
16783 esac
16784
16785 case $ac_tag in
16786 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16788 esac
16789 ;;
16790 esac
16791
16792 ac_dir=`$as_dirname -- "$ac_file" ||
16793 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16794 X"$ac_file" : 'X\(//\)[^/]' \| \
16795 X"$ac_file" : 'X\(//\)$' \| \
16796 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16797 printf "%s\n" X"$ac_file" |
16798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16799 s//\1/
16800 q
16801 }
16802 /^X\(\/\/\)[^/].*/{
16803 s//\1/
16804 q
16805 }
16806 /^X\(\/\/\)$/{
16807 s//\1/
16808 q
16809 }
16810 /^X\(\/\).*/{
16811 s//\1/
16812 q
16813 }
16814 s/.*/./; q'`
16815 as_dir="$ac_dir"; as_fn_mkdir_p
16816 ac_builddir=.
16817
16818 case "$ac_dir" in
16819 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16820 *)
16821 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16822 # A ".." for each directory in $ac_dir_suffix.
16823 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16824 case $ac_top_builddir_sub in
16825 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16826 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16827 esac ;;
16828 esac
16829 ac_abs_top_builddir=$ac_pwd
16830 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16831 # for backward compatibility:
16832 ac_top_builddir=$ac_top_build_prefix
16833
16834 case $srcdir in
16835 .) # We are building in place.
16836 ac_srcdir=.
16837 ac_top_srcdir=$ac_top_builddir_sub
16838 ac_abs_top_srcdir=$ac_pwd ;;
16839 [\\/]* | ?:[\\/]* ) # Absolute name.
16840 ac_srcdir=$srcdir$ac_dir_suffix;
16841 ac_top_srcdir=$srcdir
16842 ac_abs_top_srcdir=$srcdir ;;
16843 *) # Relative name.
16844 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16845 ac_top_srcdir=$ac_top_build_prefix$srcdir
16846 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16847 esac
16848 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16849
16850
16851 case $ac_mode in
16852 :F)
16853 #
16854 # CONFIG_FILE
16855 #
16856
16857 case $INSTALL in
16858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16859 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16860 esac
16861 ac_MKDIR_P=$MKDIR_P
16862 case $MKDIR_P in
16863 [\\/$]* | ?:[\\/]* ) ;;
16864 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16865 esac
16866 _ACEOF
16867
16868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16869 # If the template does not know about datarootdir, expand it.
16870 # FIXME: This hack should be removed a few years after 2.60.
16871 ac_datarootdir_hack=; ac_datarootdir_seen=
16872 ac_sed_dataroot='
16873 /datarootdir/ {
16874 p
16875 q
16876 }
16877 /@datadir@/p
16878 /@docdir@/p
16879 /@infodir@/p
16880 /@localedir@/p
16881 /@mandir@/p'
16882 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16883 *datarootdir*) ac_datarootdir_seen=yes;;
16884 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16886 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16887 _ACEOF
16888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16889 ac_datarootdir_hack='
16890 s&@datadir@&$datadir&g
16891 s&@docdir@&$docdir&g
16892 s&@infodir@&$infodir&g
16893 s&@localedir@&$localedir&g
16894 s&@mandir@&$mandir&g
16895 s&\\\${datarootdir}&$datarootdir&g' ;;
16896 esac
16897 _ACEOF
16898
16899 # Neutralize VPATH when '$srcdir' = '.'.
16900 # Shell code in configure.ac might set extrasub.
16901 # FIXME: do we really want to maintain this feature?
16902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16903 ac_sed_extra="$ac_vpsub
16904 $extrasub
16905 _ACEOF
16906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16907 :t
16908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16909 s|@configure_input@|$ac_sed_conf_input|;t t
16910 s&@top_builddir@&$ac_top_builddir_sub&;t t
16911 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16912 s&@srcdir@&$ac_srcdir&;t t
16913 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16914 s&@top_srcdir@&$ac_top_srcdir&;t t
16915 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16916 s&@builddir@&$ac_builddir&;t t
16917 s&@abs_builddir@&$ac_abs_builddir&;t t
16918 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16919 s&@INSTALL@&$ac_INSTALL&;t t
16920 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16921 $ac_datarootdir_hack
16922 "
16923 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16924 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16925
16926 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16927 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16929 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16931 which seems to be undefined. Please make sure it is defined" >&5
16932 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16933 which seems to be undefined. Please make sure it is defined" >&2;}
16934
16935 rm -f "$ac_tmp/stdin"
16936 case $ac_file in
16937 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16938 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16939 esac \
16940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16941 ;;
16942 :H)
16943 #
16944 # CONFIG_HEADER
16945 #
16946 if test x"$ac_file" != x-; then
16947 {
16948 printf "%s\n" "/* $configure_input */" >&1 \
16949 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16950 } >"$ac_tmp/config.h" \
16951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16952 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16954 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16955 else
16956 rm -f "$ac_file"
16957 mv "$ac_tmp/config.h" "$ac_file" \
16958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16959 fi
16960 else
16961 printf "%s\n" "/* $configure_input */" >&1 \
16962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16963 || as_fn_error $? "could not create -" "$LINENO" 5
16964 fi
16965 # Compute "$ac_file"'s index in $config_headers.
16966 _am_arg="$ac_file"
16967 _am_stamp_count=1
16968 for _am_header in $config_headers :; do
16969 case $_am_header in
16970 $_am_arg | $_am_arg:* )
16971 break ;;
16972 * )
16973 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16974 esac
16975 done
16976 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16977 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16978 X"$_am_arg" : 'X\(//\)[^/]' \| \
16979 X"$_am_arg" : 'X\(//\)$' \| \
16980 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16981 printf "%s\n" X"$_am_arg" |
16982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16983 s//\1/
16984 q
16985 }
16986 /^X\(\/\/\)[^/].*/{
16987 s//\1/
16988 q
16989 }
16990 /^X\(\/\/\)$/{
16991 s//\1/
16992 q
16993 }
16994 /^X\(\/\).*/{
16995 s//\1/
16996 q
16997 }
16998 s/.*/./; q'`/stamp-h$_am_stamp_count
16999 ;;
17000
17001 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17002 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17003 ;;
17004 esac
17005
17006
17007 case $ac_file$ac_mode in
17008 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17009 # Older Autoconf quotes --file arguments for eval, but not when files
17010 # are listed without --file. Let's play safe and only enable the eval
17011 # if we detect the quoting.
17012 # TODO: see whether this extra hack can be removed once we start
17013 # requiring Autoconf 2.70 or later.
17014 case $CONFIG_FILES in #(
17015 *\'*) :
17016 eval set x "$CONFIG_FILES" ;; #(
17017 *) :
17018 set x $CONFIG_FILES ;; #(
17019 *) :
17020 ;;
17021 esac
17022 shift
17023 # Used to flag and report bootstrapping failures.
17024 am_rc=0
17025 for am_mf
17026 do
17027 # Strip MF so we end up with the name of the file.
17028 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17029 # Check whether this is an Automake generated Makefile which includes
17030 # dependency-tracking related rules and includes.
17031 # Grep'ing the whole file directly is not great: AIX grep has a line
17032 # limit of 2048, but all sed's we know have understand at least 4000.
17033 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17034 || continue
17035 am_dirpart=`$as_dirname -- "$am_mf" ||
17036 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17037 X"$am_mf" : 'X\(//\)[^/]' \| \
17038 X"$am_mf" : 'X\(//\)$' \| \
17039 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17040 printf "%s\n" X"$am_mf" |
17041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17042 s//\1/
17043 q
17044 }
17045 /^X\(\/\/\)[^/].*/{
17046 s//\1/
17047 q
17048 }
17049 /^X\(\/\/\)$/{
17050 s//\1/
17051 q
17052 }
17053 /^X\(\/\).*/{
17054 s//\1/
17055 q
17056 }
17057 s/.*/./; q'`
17058 am_filepart=`$as_basename -- "$am_mf" ||
17059 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17060 X"$am_mf" : 'X\(//\)$' \| \
17061 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17062 printf "%s\n" X/"$am_mf" |
17063 sed '/^.*\/\([^/][^/]*\)\/*$/{
17064 s//\1/
17065 q
17066 }
17067 /^X\/\(\/\/\)$/{
17068 s//\1/
17069 q
17070 }
17071 /^X\/\(\/\).*/{
17072 s//\1/
17073 q
17074 }
17075 s/.*/./; q'`
17076 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17077 && sed -e '/# am--include-marker/d' "$am_filepart" \
17078 | $MAKE -f - am--depfiles" >&5
17079 (cd "$am_dirpart" \
17080 && sed -e '/# am--include-marker/d' "$am_filepart" \
17081 | $MAKE -f - am--depfiles) >&5 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } || am_rc=$?
17085 done
17086 if test $am_rc -ne 0; then
17087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17088 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17089 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17090 for automatic dependency tracking. If GNU make was not used, consider
17091 re-running the configure script with MAKE=\"gmake\" (or whatever is
17092 necessary). You can also try re-running configure with the
17093 '--disable-dependency-tracking' option to at least be able to build
17094 the package (albeit without support for automatic dependency tracking).
17095 See 'config.log' for more details" "$LINENO" 5; }
17096 fi
17097 { am_dirpart=; unset am_dirpart;}
17098 { am_filepart=; unset am_filepart;}
17099 { am_mf=; unset am_mf;}
17100 { am_rc=; unset am_rc;}
17101 rm -f conftest-deps.mk
17102 }
17103 ;;
17104 "libtool":C)
17105
17106 # See if we are running on zsh, and set the options that allow our
17107 # commands through without removal of \ escapes.
17108 if test -n "${ZSH_VERSION+set}"; then
17109 setopt NO_GLOB_SUBST
17110 fi
17111
17112 cfgfile=${ofile}T
17113 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17114 $RM "$cfgfile"
17115
17116 cat <<_LT_EOF >> "$cfgfile"
17117 #! $SHELL
17118 # Generated automatically by $as_me ($PACKAGE) $VERSION
17119 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17120
17121 # Provide generalized library-building support services.
17122 # Written by Gordon Matzigkeit, 1996
17123
17124 # Copyright (C) 2024 Free Software Foundation, Inc.
17125 # This is free software; see the source for copying conditions. There is NO
17126 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17127
17128 # GNU Libtool is free software; you can redistribute it and/or modify
17129 # it under the terms of the GNU General Public License as published by
17130 # the Free Software Foundation; either version 2 of the License, or
17131 # (at your option) any later version.
17132 #
17133 # As a special exception to the GNU General Public License, if you
17134 # distribute this file as part of a program or library that is built
17135 # using GNU Libtool, you may include this file under the same
17136 # distribution terms that you use for the rest of that program.
17137 #
17138 # GNU Libtool is distributed in the hope that it will be useful, but
17139 # WITHOUT ANY WARRANTY; without even the implied warranty of
17140 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17141 # GNU General Public License for more details.
17142 #
17143 # You should have received a copy of the GNU General Public License
17144 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17145
17146
17147 # The names of the tagged configurations supported by this script.
17148 available_tags=''
17149
17150 # Configured defaults for sys_lib_dlsearch_path munging.
17151 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17152
17153 # ### BEGIN LIBTOOL CONFIG
17154
17155 # Which release of libtool.m4 was used?
17156 macro_version=$macro_version
17157 macro_revision=$macro_revision
17158
17159 # Assembler program.
17160 AS=$lt_AS
17161
17162 # DLL creation program.
17163 DLLTOOL=$lt_DLLTOOL
17164
17165 # Object dumper program.
17166 OBJDUMP=$lt_OBJDUMP
17167
17168 # Whether or not to build shared libraries.
17169 build_libtool_libs=$enable_shared
17170
17171 # Whether or not to build static libraries.
17172 build_old_libs=$enable_static
17173
17174 # What type of objects to build.
17175 pic_mode=$pic_mode
17176
17177 # Whether or not to optimize for fast installation.
17178 fast_install=$enable_fast_install
17179
17180 # Shared archive member basename,for filename based shared library versioning on AIX.
17181 shared_archive_member_spec=$shared_archive_member_spec
17182
17183 # Shell to use when invoking shell scripts.
17184 SHELL=$lt_SHELL
17185
17186 # An echo program that protects backslashes.
17187 ECHO=$lt_ECHO
17188
17189 # The PATH separator for the build system.
17190 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17191
17192 # The host system.
17193 host_alias=$host_alias
17194 host=$host
17195 host_os=$host_os
17196
17197 # The build system.
17198 build_alias=$build_alias
17199 build=$build
17200 build_os=$build_os
17201
17202 # A sed program that does not truncate output.
17203 SED=$lt_SED
17204
17205 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17206 Xsed="\$SED -e 1s/^X//"
17207
17208 # A grep program that handles long lines.
17209 GREP=$lt_GREP
17210
17211 # An ERE matcher.
17212 EGREP=$lt_EGREP
17213
17214 # A literal string matcher.
17215 FGREP=$lt_FGREP
17216
17217 # A BSD- or MS-compatible name lister.
17218 NM=$lt_NM
17219
17220 # Whether we need soft or hard links.
17221 LN_S=$lt_LN_S
17222
17223 # What is the maximum length of a command?
17224 max_cmd_len=$max_cmd_len
17225
17226 # Object file suffix (normally "o").
17227 objext=$ac_objext
17228
17229 # Executable file suffix (normally "").
17230 exeext=$exeext
17231
17232 # whether the shell understands "unset".
17233 lt_unset=$lt_unset
17234
17235 # turn spaces into newlines.
17236 SP2NL=$lt_lt_SP2NL
17237
17238 # turn newlines into spaces.
17239 NL2SP=$lt_lt_NL2SP
17240
17241 # convert \$build file names to \$host format.
17242 to_host_file_cmd=$lt_cv_to_host_file_cmd
17243
17244 # convert \$build files to toolchain format.
17245 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17246
17247 # A file(cmd) program that detects file types.
17248 FILECMD=$lt_FILECMD
17249
17250 # Method to check whether dependent libraries are shared objects.
17251 deplibs_check_method=$lt_deplibs_check_method
17252
17253 # Command to use when deplibs_check_method = "file_magic".
17254 file_magic_cmd=$lt_file_magic_cmd
17255
17256 # How to find potential files when deplibs_check_method = "file_magic".
17257 file_magic_glob=$lt_file_magic_glob
17258
17259 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17260 want_nocaseglob=$lt_want_nocaseglob
17261
17262 # Command to associate shared and link libraries.
17263 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17264
17265 # The archiver.
17266 AR=$lt_AR
17267
17268 # Flags to create an archive (by configure).
17269 lt_ar_flags=$lt_ar_flags
17270
17271 # Flags to create an archive.
17272 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17273
17274 # How to feed a file listing to the archiver.
17275 archiver_list_spec=$lt_archiver_list_spec
17276
17277 # A symbol stripping program.
17278 STRIP=$lt_STRIP
17279
17280 # Commands used to install an old-style archive.
17281 RANLIB=$lt_RANLIB
17282 old_postinstall_cmds=$lt_old_postinstall_cmds
17283 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17284
17285 # Whether to use a lock for old archive extraction.
17286 lock_old_archive_extraction=$lock_old_archive_extraction
17287
17288 # A C compiler.
17289 LTCC=$lt_CC
17290
17291 # LTCC compiler flags.
17292 LTCFLAGS=$lt_CFLAGS
17293
17294 # Take the output of nm and produce a listing of raw symbols and C names.
17295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17296
17297 # Transform the output of nm in a proper C declaration.
17298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17299
17300 # Transform the output of nm into a list of symbols to manually relocate.
17301 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17302
17303 # Transform the output of nm in a C name address pair.
17304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17305
17306 # Transform the output of nm in a C name address pair when lib prefix is needed.
17307 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17308
17309 # The name lister interface.
17310 nm_interface=$lt_lt_cv_nm_interface
17311
17312 # Specify filename containing input files for \$NM.
17313 nm_file_list_spec=$lt_nm_file_list_spec
17314
17315 # The root where to search for dependent libraries,and where our libraries should be installed.
17316 lt_sysroot=$lt_sysroot
17317
17318 # Command to truncate a binary pipe.
17319 lt_truncate_bin=$lt_lt_cv_truncate_bin
17320
17321 # The name of the directory that contains temporary libtool files.
17322 objdir=$objdir
17323
17324 # Used to examine libraries when file_magic_cmd begins with "file".
17325 MAGIC_CMD=$MAGIC_CMD
17326
17327 # Must we lock files when doing compilation?
17328 need_locks=$lt_need_locks
17329
17330 # Manifest tool.
17331 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17332
17333 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17334 DSYMUTIL=$lt_DSYMUTIL
17335
17336 # Tool to change global to local symbols on Mac OS X.
17337 NMEDIT=$lt_NMEDIT
17338
17339 # Tool to manipulate fat objects and archives on Mac OS X.
17340 LIPO=$lt_LIPO
17341
17342 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17343 OTOOL=$lt_OTOOL
17344
17345 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17346 OTOOL64=$lt_OTOOL64
17347
17348 # Old archive suffix (normally "a").
17349 libext=$libext
17350
17351 # Shared library suffix (normally ".so").
17352 shrext_cmds=$lt_shrext_cmds
17353
17354 # The commands to extract the exported symbol list from a shared archive.
17355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17356
17357 # Variables whose values should be saved in libtool wrapper scripts and
17358 # restored at link time.
17359 variables_saved_for_relink=$lt_variables_saved_for_relink
17360
17361 # Do we need the "lib" prefix for modules?
17362 need_lib_prefix=$need_lib_prefix
17363
17364 # Do we need a version for libraries?
17365 need_version=$need_version
17366
17367 # Library versioning type.
17368 version_type=$version_type
17369
17370 # Shared library runtime path variable.
17371 runpath_var=$runpath_var
17372
17373 # Shared library path variable.
17374 shlibpath_var=$shlibpath_var
17375
17376 # Is shlibpath searched before the hard-coded library search path?
17377 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17378
17379 # Format of library name prefix.
17380 libname_spec=$lt_libname_spec
17381
17382 # List of archive names. First name is the real one, the rest are links.
17383 # The last name is the one that the linker finds with -lNAME
17384 library_names_spec=$lt_library_names_spec
17385
17386 # The coded name of the library, if different from the real name.
17387 soname_spec=$lt_soname_spec
17388
17389 # Permission mode override for installation of shared libraries.
17390 install_override_mode=$lt_install_override_mode
17391
17392 # Command to use after installation of a shared archive.
17393 postinstall_cmds=$lt_postinstall_cmds
17394
17395 # Command to use after uninstallation of a shared archive.
17396 postuninstall_cmds=$lt_postuninstall_cmds
17397
17398 # Commands used to finish a libtool library installation in a directory.
17399 finish_cmds=$lt_finish_cmds
17400
17401 # As "finish_cmds", except a single script fragment to be evaled but
17402 # not shown.
17403 finish_eval=$lt_finish_eval
17404
17405 # Whether we should hardcode library paths into libraries.
17406 hardcode_into_libs=$hardcode_into_libs
17407
17408 # Compile-time system search path for libraries.
17409 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17410
17411 # Detected run-time system search path for libraries.
17412 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17413
17414 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17415 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17416
17417 # Whether dlopen is supported.
17418 dlopen_support=$enable_dlopen
17419
17420 # Whether dlopen of programs is supported.
17421 dlopen_self=$enable_dlopen_self
17422
17423 # Whether dlopen of statically linked programs is supported.
17424 dlopen_self_static=$enable_dlopen_self_static
17425
17426 # Commands to strip libraries.
17427 old_striplib=$lt_old_striplib
17428 striplib=$lt_striplib
17429
17430
17431 # The linker used to build libraries.
17432 LD=$lt_LD
17433
17434 # How to create reloadable object files.
17435 reload_flag=$lt_reload_flag
17436 reload_cmds=$lt_reload_cmds
17437
17438 # Commands used to build an old-style archive.
17439 old_archive_cmds=$lt_old_archive_cmds
17440
17441 # A language specific compiler.
17442 CC=$lt_compiler
17443
17444 # Is the compiler the GNU compiler?
17445 with_gcc=$GCC
17446
17447 # Compiler flag to turn off builtin functions.
17448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17449
17450 # Additional compiler flags for building library objects.
17451 pic_flag=$lt_lt_prog_compiler_pic
17452
17453 # How to pass a linker flag through the compiler.
17454 wl=$lt_lt_prog_compiler_wl
17455
17456 # Compiler flag to prevent dynamic linking.
17457 link_static_flag=$lt_lt_prog_compiler_static
17458
17459 # Does compiler simultaneously support -c and -o options?
17460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17461
17462 # Whether or not to add -lc for building shared libraries.
17463 build_libtool_need_lc=$archive_cmds_need_lc
17464
17465 # Whether or not to disallow shared libs when runtime libs are static.
17466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17467
17468 # Compiler flag to allow reflexive dlopens.
17469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17470
17471 # Compiler flag to generate shared objects directly from archives.
17472 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17473
17474 # Whether the compiler copes with passing no objects directly.
17475 compiler_needs_object=$lt_compiler_needs_object
17476
17477 # Create an old-style archive from a shared archive.
17478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17479
17480 # Create a temporary old-style archive to link instead of a shared archive.
17481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17482
17483 # Commands used to build a shared archive.
17484 archive_cmds=$lt_archive_cmds
17485 archive_expsym_cmds=$lt_archive_expsym_cmds
17486
17487 # Commands used to build a loadable module if different from building
17488 # a shared archive.
17489 module_cmds=$lt_module_cmds
17490 module_expsym_cmds=$lt_module_expsym_cmds
17491
17492 # Whether we are building with GNU ld or not.
17493 with_gnu_ld=$lt_with_gnu_ld
17494
17495 # Flag that allows shared libraries with undefined symbols to be built.
17496 allow_undefined_flag=$lt_allow_undefined_flag
17497
17498 # Flag that enforces no undefined symbols.
17499 no_undefined_flag=$lt_no_undefined_flag
17500
17501 # Flag to hardcode \$libdir into a binary during linking.
17502 # This must work even if \$libdir does not exist
17503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17504
17505 # Whether we need a single "-rpath" flag with a separated argument.
17506 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17507
17508 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17509 # DIR into the resulting binary.
17510 hardcode_direct=$hardcode_direct
17511
17512 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17513 # DIR into the resulting binary and the resulting library dependency is
17514 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17515 # library is relocated.
17516 hardcode_direct_absolute=$hardcode_direct_absolute
17517
17518 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17519 # into the resulting binary.
17520 hardcode_minus_L=$hardcode_minus_L
17521
17522 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17523 # into the resulting binary.
17524 hardcode_shlibpath_var=$hardcode_shlibpath_var
17525
17526 # Set to "yes" if building a shared library automatically hardcodes DIR
17527 # into the library and all subsequent libraries and executables linked
17528 # against it.
17529 hardcode_automatic=$hardcode_automatic
17530
17531 # Set to yes if linker adds runtime paths of dependent libraries
17532 # to runtime path list.
17533 inherit_rpath=$inherit_rpath
17534
17535 # Whether libtool must link a program against all its dependency libraries.
17536 link_all_deplibs=$link_all_deplibs
17537
17538 # Set to "yes" if exported symbols are required.
17539 always_export_symbols=$always_export_symbols
17540
17541 # The commands to list exported symbols.
17542 export_symbols_cmds=$lt_export_symbols_cmds
17543
17544 # Symbols that should not be listed in the preloaded symbols.
17545 exclude_expsyms=$lt_exclude_expsyms
17546
17547 # Symbols that must always be exported.
17548 include_expsyms=$lt_include_expsyms
17549
17550 # Commands necessary for linking programs (against libraries) with templates.
17551 prelink_cmds=$lt_prelink_cmds
17552
17553 # Commands necessary for finishing linking programs.
17554 postlink_cmds=$lt_postlink_cmds
17555
17556 # Specify filename containing input files.
17557 file_list_spec=$lt_file_list_spec
17558
17559 # How to hardcode a shared library path into an executable.
17560 hardcode_action=$hardcode_action
17561
17562 # ### END LIBTOOL CONFIG
17563
17564 _LT_EOF
17565
17566 cat <<'_LT_EOF' >> "$cfgfile"
17567
17568 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17569
17570 # func_munge_path_list VARIABLE PATH
17571 # -----------------------------------
17572 # VARIABLE is name of variable containing _space_ separated list of
17573 # directories to be munged by the contents of PATH, which is string
17574 # having a format:
17575 # "DIR[:DIR]:"
17576 # string "DIR[ DIR]" will be prepended to VARIABLE
17577 # ":DIR[:DIR]"
17578 # string "DIR[ DIR]" will be appended to VARIABLE
17579 # "DIRP[:DIRP]::[DIRA:]DIRA"
17580 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17581 # "DIRA[ DIRA]" will be appended to VARIABLE
17582 # "DIR[:DIR]"
17583 # VARIABLE will be replaced by "DIR[ DIR]"
17584 func_munge_path_list ()
17585 {
17586 case x$2 in
17587 x)
17588 ;;
17589 *:)
17590 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17591 ;;
17592 x:*)
17593 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17594 ;;
17595 *::*)
17596 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17597 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17598 ;;
17599 *)
17600 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17601 ;;
17602 esac
17603 }
17604
17605
17606 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17607 func_cc_basename ()
17608 {
17609 for cc_temp in $*""; do
17610 case $cc_temp in
17611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17613 \-*) ;;
17614 *) break;;
17615 esac
17616 done
17617 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17618 }
17619
17620
17621 # ### END FUNCTIONS SHARED WITH CONFIGURE
17622
17623 _LT_EOF
17624
17625 case $host_os in
17626 aix3*)
17627 cat <<\_LT_EOF >> "$cfgfile"
17628 # AIX sometimes has problems with the GCC collect2 program. For some
17629 # reason, if we set the COLLECT_NAMES environment variable, the problems
17630 # vanish in a puff of smoke.
17631 if test set != "${COLLECT_NAMES+set}"; then
17632 COLLECT_NAMES=
17633 export COLLECT_NAMES
17634 fi
17635 _LT_EOF
17636 ;;
17637 esac
17638
17639
17640
17641 ltmain=$ac_aux_dir/ltmain.sh
17642
17643
17644 # We use sed instead of cat because bash on DJGPP gets confused if
17645 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17646 # text mode, it properly converts lines to CR/LF. This bash problem
17647 # is reportedly fixed, but why not run on old versions too?
17648 $SED '$q' "$ltmain" >> "$cfgfile" \
17649 || (rm -f "$cfgfile"; exit 1)
17650
17651 mv -f "$cfgfile" "$ofile" ||
17652 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17653 chmod +x "$ofile"
17654
17655 ;;
17656
17657 esac
17658 done # for ac_tag
17659
17660
17661 as_fn_exit 0
17662 _ACEOF
17663 ac_clean_files=$ac_clean_files_save
17664
17665 test $ac_write_fail = 0 ||
17666 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17667
17668
17669 # configure is writing to config.log, and then calls config.status.
17670 # config.status does its own redirection, appending to config.log.
17671 # Unfortunately, on DOS this fails, as config.log is still kept open
17672 # by configure, so config.status won't be able to write to it; its
17673 # output is simply discarded. So we exec the FD to /dev/null,
17674 # effectively closing config.log, so it can be properly (re)opened and
17675 # appended to by config.status. When coming back to configure, we
17676 # need to make the FD available again.
17677 if test "$no_create" != yes; then
17678 ac_cs_success=:
17679 ac_config_status_args=
17680 test "$silent" = yes &&
17681 ac_config_status_args="$ac_config_status_args --quiet"
17682 exec 5>/dev/null
17683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17684 exec 5>>config.log
17685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17686 # would make configure fail if this is the last instruction.
17687 $ac_cs_success || as_fn_exit 1
17688 fi
17689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17691 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17692 fi
17693
17694