comparison mupdf-source/thirdparty/libjpeg/configure @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libjpeg 9.6.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 bug-autoconf@gnu.org 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='9.6.0'
615 PACKAGE_STRING='libjpeg 9.6.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_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
709 CSCOPE
710 ETAGS
711 CTAGS
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 runstatedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL
786 am__quote'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 enable_silent_rules
791 enable_maintainer_mode
792 enable_dependency_tracking
793 enable_ld_version_script
794 enable_shared
795 enable_static
796 with_pic
797 enable_fast_install
798 with_aix_soname
799 with_gnu_ld
800 with_sysroot
801 enable_libtool_lock
802 enable_maxmem
803 '
804 ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 LIBS
811 CPPFLAGS
812 CPP
813 LT_SYS_LIBRARY_PATH'
814
815
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 runstatedir='${localstatedir}/run'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
874 fi
875
876 case $ac_option in
877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *=) ac_optarg= ;;
879 *) ac_optarg=yes ;;
880 esac
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: '$ac_useropt'"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
943
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: '$ac_useropt'"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -runstatedir | --runstatedir | --runstatedi | --runstated \
1104 | --runstate | --runstat | --runsta | --runst | --runs \
1105 | --run | --ru | --r)
1106 ac_prev=runstatedir ;;
1107 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1108 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1109 | --run=* | --ru=* | --r=*)
1110 runstatedir=$ac_optarg ;;
1111
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 ac_prev=sbindir ;;
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 | --sbi=* | --sb=*)
1116 sbindir=$ac_optarg ;;
1117
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1121 | --sha | --sh)
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 | --sha=* | --sh=*)
1127 sharedstatedir=$ac_optarg ;;
1128
1129 -site | --site | --sit)
1130 ac_prev=site ;;
1131 -site=* | --site=* | --sit=*)
1132 site=$ac_optarg ;;
1133
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 ac_prev=srcdir ;;
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1138
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1145
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1150
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 verbose=yes ;;
1153
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1156
1157 -with-* | --with-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: '$ac_useropt'"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
1172
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: '$ac_useropt'"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1188
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1192
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1199
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1206
1207 -*) as_fn_error $? "unrecognized option: '$ac_option'
1208 Try '$0 --help' for more information"
1209 ;;
1210
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 case $ac_envvar in #(
1215 '' | [0-9]* | *[!_$as_cr_alnum]* )
1216 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1217 esac
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1220
1221 *)
1222 # FIXME: should be removed in autoconf 3.0.
1223 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 ;;
1228
1229 esac
1230 done
1231
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 as_fn_error $? "missing argument to $ac_option"
1235 fi
1236
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1241 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1243 fi
1244
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir runstatedir
1250 do
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 done
1265
1266 # There might be people who depend on the old broken behavior: '$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1272
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 elif test "x$build_alias" != "x$host_alias"; then
1278 cross_compiling=yes
1279 fi
1280 fi
1281
1282 ac_tool_prefix=
1283 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284
1285 test "$silent" = yes && exec 6>/dev/null
1286
1287
1288 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289 ac_ls_di=`ls -di .` &&
1290 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291 as_fn_error $? "working directory cannot be determined"
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293 as_fn_error $? "pwd does not report name of working directory"
1294
1295
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298 ac_srcdir_defaulted=yes
1299 # Try the directory containing this script, then the parent directory.
1300 ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302 X"$as_myself" : 'X\(//\)[^/]' \| \
1303 X"$as_myself" : 'X\(//\)$' \| \
1304 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 printf "%s\n" X"$as_myself" |
1306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)[^/].*/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\).*/{
1319 s//\1/
1320 q
1321 }
1322 s/.*/./; q'`
1323 srcdir=$ac_confdir
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 srcdir=..
1326 fi
1327 else
1328 ac_srcdir_defaulted=no
1329 fi
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1333 fi
1334 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337 pwd)`
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 srcdir=.
1341 fi
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1345 case $srcdir in
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 esac
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 done
1354
1355 #
1356 # Report the --help message.
1357 #
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1361 cat <<_ACEOF
1362 'configure' configures libjpeg 9.6.0 to adapt to many kinds of systems.
1363
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1365
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1368
1369 Defaults for the options are specified in brackets.
1370
1371 Configuration:
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print 'checking ...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for '--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or '..']
1381
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 [PREFIX]
1387
1388 By default, 'make install' will install all the files in
1389 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than '$ac_default_prefix' using '--prefix',
1391 for instance '--prefix=\$HOME'.
1392
1393 For better control, use the options below.
1394
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1417
1418 cat <<\_ACEOF
1419
1420 Program names:
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1424
1425 System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 --target=TARGET configure for building compilers for TARGET [HOST]
1429 _ACEOF
1430 fi
1431
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of libjpeg 9.6.0:";;
1435 esac
1436 cat <<\_ACEOF
1437
1438 Optional Features:
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-silent-rules less verbose build output (undo: "make V=1")
1443 --disable-silent-rules verbose build output (undo: "make V=0")
1444 --enable-maintainer-mode
1445 enable make rules and dependencies not useful (and
1446 sometimes confusing) to the casual installer
1447 --enable-dependency-tracking
1448 do not reject slow dependency extractors
1449 --disable-dependency-tracking
1450 speeds up one-time build
1451 --enable-ld-version-script
1452 enable linker version script (default is enabled
1453 when possible)
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --enable-maxmem=N enable use of temp files, set max mem usage to N MB
1460
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --with-aix-soname=aix|svr4|both
1467 shared library versioning (aka "SONAME") variant to
1468 provide on AIX, [default=aix].
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1471 compiler's sysroot if not specified).
1472
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 CPP C preprocessor
1482 LT_SYS_LIBRARY_PATH
1483 User-defined run-time library search path.
1484
1485 Use these variables to override the choices made by 'configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1487
1488 Report bugs to the package provider.
1489 _ACEOF
1490 ac_status=$?
1491 fi
1492
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
1499 ac_builddir=.
1500
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *)
1504 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1516
1517 case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for configure.gnu first; this name is used for a wrapper for
1535 # Metaconfig's "Configure" on case-insensitive file systems.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1542 else
1543 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1546 done
1547 fi
1548
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551 cat <<\_ACEOF
1552 libjpeg configure 9.6.0
1553 generated by GNU Autoconf 2.72
1554
1555 Copyright (C) 2023 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1560 fi
1561
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1565
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest.beam
1573 if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 printf "%s\n" "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext
1592 then :
1593 ac_retval=0
1594 else case e in #(
1595 e) printf "%s\n" "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1 ;;
1599 esac
1600 fi
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_compile
1605
1606 # ac_fn_c_try_cpp LINENO
1607 # ----------------------
1608 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_cpp ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if { { ac_try="$ac_cpp conftest.$ac_ext"
1613 case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 printf "%s\n" "$ac_try_echo"; } >&5
1619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1625 fi
1626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } > conftest.i && {
1628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 }
1631 then :
1632 ac_retval=0
1633 else case e in #(
1634 e) printf "%s\n" "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1 ;;
1638 esac
1639 fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_cpp
1644
1645 # ac_fn_c_try_link LINENO
1646 # -----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_link ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 printf "%s\n" "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest$ac_exeext && {
1671 test "$cross_compiling" = yes ||
1672 test -x conftest$ac_exeext
1673 }
1674 then :
1675 ac_retval=0
1676 else case e in #(
1677 e) printf "%s\n" "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1 ;;
1681 esac
1682 fi
1683 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1684 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1685 # interfere with the next link command; also delete a directory that is
1686 # left behind by Apple's compiler. We do this before executing the actions.
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_link
1692
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 printf %s "checking for $2... " >&6; }
1702 if eval test \${$3+y}
1703 then :
1704 printf %s "(cached) " >&6
1705 else case e in #(
1706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 $4
1709 #include <$2>
1710 _ACEOF
1711 if ac_fn_c_try_compile "$LINENO"
1712 then :
1713 eval "$3=yes"
1714 else case e in #(
1715 e) eval "$3=no" ;;
1716 esac
1717 fi
1718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1719 esac
1720 fi
1721 eval ac_res=\$$3
1722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 printf "%s\n" "$ac_res" >&6; }
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726 } # ac_fn_c_check_header_compile
1727
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1731 # executables *can* be run.
1732 ac_fn_c_try_run ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 printf "%s\n" "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1743 ac_status=$?
1744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 printf "%s\n" "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1753 ac_status=$?
1754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }
1756 then :
1757 ac_retval=0
1758 else case e in #(
1759 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1760 printf "%s\n" "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=$ac_status ;;
1764 esac
1765 fi
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_run
1771
1772 # ac_fn_c_check_func LINENO FUNC VAR
1773 # ----------------------------------
1774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 ac_fn_c_check_func ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 printf %s "checking for $2... " >&6; }
1780 if eval test \${$3+y}
1781 then :
1782 printf %s "(cached) " >&6
1783 else case e in #(
1784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1789
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (void); below. */
1792
1793 #include <limits.h>
1794 #undef $2
1795
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1799 #ifdef __cplusplus
1800 extern "C"
1801 #endif
1802 char $2 (void);
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1807 choke me
1808 #endif
1809
1810 int
1811 main (void)
1812 {
1813 return $2 ();
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_link "$LINENO"
1819 then :
1820 eval "$3=yes"
1821 else case e in #(
1822 e) eval "$3=no" ;;
1823 esac
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1826 conftest$ac_exeext conftest.$ac_ext ;;
1827 esac
1828 fi
1829 eval ac_res=\$$3
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 printf "%s\n" "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_c_check_func
1835 ac_configure_args_raw=
1836 for ac_arg
1837 do
1838 case $ac_arg in
1839 *\'*)
1840 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1841 esac
1842 as_fn_append ac_configure_args_raw " '$ac_arg'"
1843 done
1844
1845 case $ac_configure_args_raw in
1846 *$as_nl*)
1847 ac_safe_unquote= ;;
1848 *)
1849 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1850 ac_unsafe_a="$ac_unsafe_z#~"
1851 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1852 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1853 esac
1854
1855 cat >config.log <<_ACEOF
1856 This file contains any messages produced by compilers while
1857 running configure, to aid debugging if configure makes a mistake.
1858
1859 It was created by libjpeg $as_me 9.6.0, which was
1860 generated by GNU Autoconf 2.72. Invocation command line was
1861
1862 $ $0$ac_configure_args_raw
1863
1864 _ACEOF
1865 exec 5>>config.log
1866 {
1867 cat <<_ASUNAME
1868 ## --------- ##
1869 ## Platform. ##
1870 ## --------- ##
1871
1872 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1873 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1874 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1875 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1876 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1877
1878 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1879 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1880
1881 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1882 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1883 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1884 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1885 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1886 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1887 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1888
1889 _ASUNAME
1890
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 case $as_dir in #(((
1896 '') as_dir=./ ;;
1897 */) ;;
1898 *) as_dir=$as_dir/ ;;
1899 esac
1900 printf "%s\n" "PATH: $as_dir"
1901 done
1902 IFS=$as_save_IFS
1903
1904 } >&5
1905
1906 cat >&5 <<_ACEOF
1907
1908
1909 ## ----------- ##
1910 ## Core tests. ##
1911 ## ----------- ##
1912
1913 _ACEOF
1914
1915
1916 # Keep a trace of the command line.
1917 # Strip out --no-create and --no-recursion so they do not pile up.
1918 # Strip out --silent because we don't want to record it for future runs.
1919 # Also quote any args containing shell meta-characters.
1920 # Make two passes to allow for proper duplicate-argument suppression.
1921 ac_configure_args=
1922 ac_configure_args0=
1923 ac_configure_args1=
1924 ac_must_keep_next=false
1925 for ac_pass in 1 2
1926 do
1927 for ac_arg
1928 do
1929 case $ac_arg in
1930 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1932 | -silent | --silent | --silen | --sile | --sil)
1933 continue ;;
1934 *\'*)
1935 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 esac
1937 case $ac_pass in
1938 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1939 2)
1940 as_fn_append ac_configure_args1 " '$ac_arg'"
1941 if test $ac_must_keep_next = true; then
1942 ac_must_keep_next=false # Got value, back to normal.
1943 else
1944 case $ac_arg in
1945 *=* | --config-cache | -C | -disable-* | --disable-* \
1946 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1947 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1948 | -with-* | --with-* | -without-* | --without-* | --x)
1949 case "$ac_configure_args0 " in
1950 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1951 esac
1952 ;;
1953 -* ) ac_must_keep_next=true ;;
1954 esac
1955 fi
1956 as_fn_append ac_configure_args " '$ac_arg'"
1957 ;;
1958 esac
1959 done
1960 done
1961 { ac_configure_args0=; unset ac_configure_args0;}
1962 { ac_configure_args1=; unset ac_configure_args1;}
1963
1964 # When interrupted or exit'd, cleanup temporary files, and complete
1965 # config.log. We remove comments because anyway the quotes in there
1966 # would cause problems or look ugly.
1967 # WARNING: Use '\'' to represent an apostrophe within the trap.
1968 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1969 trap 'exit_status=$?
1970 # Sanitize IFS.
1971 IFS=" "" $as_nl"
1972 # Save into config.log some information that might help in debugging.
1973 {
1974 echo
1975
1976 printf "%s\n" "## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##"
1979 echo
1980 # The following way of writing the cache mishandles newlines in values,
1981 (
1982 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in #(
1985 *${as_nl}*)
1986 case $ac_var in #(
1987 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1988 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1989 esac
1990 case $ac_var in #(
1991 _ | IFS | as_nl) ;; #(
1992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1993 *) { eval $ac_var=; unset $ac_var;} ;;
1994 esac ;;
1995 esac
1996 done
1997 (set) 2>&1 |
1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999 *${as_nl}ac_space=\ *)
2000 sed -n \
2001 "s/'\''/'\''\\\\'\'''\''/g;
2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003 ;; #(
2004 *)
2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006 ;;
2007 esac |
2008 sort
2009 )
2010 echo
2011
2012 printf "%s\n" "## ----------------- ##
2013 ## Output variables. ##
2014 ## ----------------- ##"
2015 echo
2016 for ac_var in $ac_subst_vars
2017 do
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 printf "%s\n" "$ac_var='\''$ac_val'\''"
2023 done | sort
2024 echo
2025
2026 if test -n "$ac_subst_files"; then
2027 printf "%s\n" "## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##"
2030 echo
2031 for ac_var in $ac_subst_files
2032 do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 printf "%s\n" "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2040 fi
2041
2042 if test -s confdefs.h; then
2043 printf "%s\n" "## ----------- ##
2044 ## confdefs.h. ##
2045 ## ----------- ##"
2046 echo
2047 cat confdefs.h
2048 echo
2049 fi
2050 test "$ac_signal" != 0 &&
2051 printf "%s\n" "$as_me: caught signal $ac_signal"
2052 printf "%s\n" "$as_me: exit $exit_status"
2053 } >&5
2054 rm -f core *.core core.conftest.* &&
2055 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2056 exit $exit_status
2057 ' 0
2058 for ac_signal in 1 2 13 15; do
2059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 done
2061 ac_signal=0
2062
2063 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2064 rm -f -r conftest* confdefs.h
2065
2066 printf "%s\n" "/* confdefs.h */" > confdefs.h
2067
2068 # Predefined preprocessor variables.
2069
2070 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2071
2072 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2073
2074 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2075
2076 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2077
2078 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2079
2080 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2081
2082
2083 # Let the site file select an alternate cache file if it wants to.
2084 # Prefer an explicitly selected file to automatically selected ones.
2085 if test -n "$CONFIG_SITE"; then
2086 ac_site_files="$CONFIG_SITE"
2087 elif test "x$prefix" != xNONE; then
2088 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2089 else
2090 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2091 fi
2092
2093 for ac_site_file in $ac_site_files
2094 do
2095 case $ac_site_file in #(
2096 */*) :
2097 ;; #(
2098 *) :
2099 ac_site_file=./$ac_site_file ;;
2100 esac
2101 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2103 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2104 sed 's/^/| /' "$ac_site_file" >&5
2105 . "$ac_site_file" \
2106 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2107 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2108 as_fn_error $? "failed to load site script $ac_site_file
2109 See 'config.log' for more details" "$LINENO" 5; }
2110 fi
2111 done
2112
2113 if test -r "$cache_file"; then
2114 # Some versions of bash will fail to source /dev/null (special files
2115 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2116 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2118 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2119 case $cache_file in
2120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2121 *) . "./$cache_file";;
2122 esac
2123 fi
2124 else
2125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2126 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2127 >$cache_file
2128 fi
2129
2130 # Test code for whether the C compiler supports C89 (global declarations)
2131 ac_c_conftest_c89_globals='
2132 /* Does the compiler advertise C89 conformance?
2133 Do not test the value of __STDC__, because some compilers set it to 0
2134 while being otherwise adequately conformant. */
2135 #if !defined __STDC__
2136 # error "Compiler does not advertise C89 conformance"
2137 #endif
2138
2139 #include <stddef.h>
2140 #include <stdarg.h>
2141 struct stat;
2142 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2143 struct buf { int x; };
2144 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2145 static char *e (char **p, int i)
2146 {
2147 return p[i];
2148 }
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2150 {
2151 char *s;
2152 va_list v;
2153 va_start (v,p);
2154 s = g (p, va_arg (v,int));
2155 va_end (v);
2156 return s;
2157 }
2158
2159 /* C89 style stringification. */
2160 #define noexpand_stringify(a) #a
2161 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2162
2163 /* C89 style token pasting. Exercises some of the corner cases that
2164 e.g. old MSVC gets wrong, but not very hard. */
2165 #define noexpand_concat(a,b) a##b
2166 #define expand_concat(a,b) noexpand_concat(a,b)
2167 extern int vA;
2168 extern int vbee;
2169 #define aye A
2170 #define bee B
2171 int *pvA = &expand_concat(v,aye);
2172 int *pvbee = &noexpand_concat(v,bee);
2173
2174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2175 function prototypes and stuff, but not \xHH hex character constants.
2176 These do not provoke an error unfortunately, instead are silently treated
2177 as an "x". The following induces an error, until -std is added to get
2178 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2179 array size at least. It is necessary to write \x00 == 0 to get something
2180 that is true only with -std. */
2181 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2182
2183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2184 inside strings and character constants. */
2185 #define FOO(x) '\''x'\''
2186 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2187
2188 int test (int i, double x);
2189 struct s1 {int (*f) (int a);};
2190 struct s2 {int (*f) (double a);};
2191 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2192 int, int);'
2193
2194 # Test code for whether the C compiler supports C89 (body of main).
2195 ac_c_conftest_c89_main='
2196 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2197 '
2198
2199 # Test code for whether the C compiler supports C99 (global declarations)
2200 ac_c_conftest_c99_globals='
2201 /* Does the compiler advertise C99 conformance? */
2202 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2203 # error "Compiler does not advertise C99 conformance"
2204 #endif
2205
2206 // See if C++-style comments work.
2207
2208 #include <stdbool.h>
2209 extern int puts (const char *);
2210 extern int printf (const char *, ...);
2211 extern int dprintf (int, const char *, ...);
2212 extern void *malloc (size_t);
2213 extern void free (void *);
2214
2215 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2216 // dprintf is used instead of fprintf to avoid needing to declare
2217 // FILE and stderr.
2218 #define debug(...) dprintf (2, __VA_ARGS__)
2219 #define showlist(...) puts (#__VA_ARGS__)
2220 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2221 static void
2222 test_varargs_macros (void)
2223 {
2224 int x = 1234;
2225 int y = 5678;
2226 debug ("Flag");
2227 debug ("X = %d\n", x);
2228 showlist (The first, second, and third items.);
2229 report (x>y, "x is %d but y is %d", x, y);
2230 }
2231
2232 // Check long long types.
2233 #define BIG64 18446744073709551615ull
2234 #define BIG32 4294967295ul
2235 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2236 #if !BIG_OK
2237 #error "your preprocessor is broken"
2238 #endif
2239 #if BIG_OK
2240 #else
2241 #error "your preprocessor is broken"
2242 #endif
2243 static long long int bignum = -9223372036854775807LL;
2244 static unsigned long long int ubignum = BIG64;
2245
2246 struct incomplete_array
2247 {
2248 int datasize;
2249 double data[];
2250 };
2251
2252 struct named_init {
2253 int number;
2254 const wchar_t *name;
2255 double average;
2256 };
2257
2258 typedef const char *ccp;
2259
2260 static inline int
2261 test_restrict (ccp restrict text)
2262 {
2263 // Iterate through items via the restricted pointer.
2264 // Also check for declarations in for loops.
2265 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2266 continue;
2267 return 0;
2268 }
2269
2270 // Check varargs and va_copy.
2271 static bool
2272 test_varargs (const char *format, ...)
2273 {
2274 va_list args;
2275 va_start (args, format);
2276 va_list args_copy;
2277 va_copy (args_copy, args);
2278
2279 const char *str = "";
2280 int number = 0;
2281 float fnumber = 0;
2282
2283 while (*format)
2284 {
2285 switch (*format++)
2286 {
2287 case '\''s'\'': // string
2288 str = va_arg (args_copy, const char *);
2289 break;
2290 case '\''d'\'': // int
2291 number = va_arg (args_copy, int);
2292 break;
2293 case '\''f'\'': // float
2294 fnumber = va_arg (args_copy, double);
2295 break;
2296 default:
2297 break;
2298 }
2299 }
2300 va_end (args_copy);
2301 va_end (args);
2302
2303 return *str && number && fnumber;
2304 }
2305 '
2306
2307 # Test code for whether the C compiler supports C99 (body of main).
2308 ac_c_conftest_c99_main='
2309 // Check bool.
2310 _Bool success = false;
2311 success |= (argc != 0);
2312
2313 // Check restrict.
2314 if (test_restrict ("String literal") == 0)
2315 success = true;
2316 char *restrict newvar = "Another string";
2317
2318 // Check varargs.
2319 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2320 test_varargs_macros ();
2321
2322 // Check flexible array members.
2323 struct incomplete_array *ia =
2324 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2325 ia->datasize = 10;
2326 for (int i = 0; i < ia->datasize; ++i)
2327 ia->data[i] = i * 1.234;
2328 // Work around memory leak warnings.
2329 free (ia);
2330
2331 // Check named initializers.
2332 struct named_init ni = {
2333 .number = 34,
2334 .name = L"Test wide string",
2335 .average = 543.34343,
2336 };
2337
2338 ni.number = 58;
2339
2340 int dynamic_array[ni.number];
2341 dynamic_array[0] = argv[0][0];
2342 dynamic_array[ni.number - 1] = 543;
2343
2344 // work around unused variable warnings
2345 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2346 || dynamic_array[ni.number - 1] != 543);
2347 '
2348
2349 # Test code for whether the C compiler supports C11 (global declarations)
2350 ac_c_conftest_c11_globals='
2351 /* Does the compiler advertise C11 conformance? */
2352 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2353 # error "Compiler does not advertise C11 conformance"
2354 #endif
2355
2356 // Check _Alignas.
2357 char _Alignas (double) aligned_as_double;
2358 char _Alignas (0) no_special_alignment;
2359 extern char aligned_as_int;
2360 char _Alignas (0) _Alignas (int) aligned_as_int;
2361
2362 // Check _Alignof.
2363 enum
2364 {
2365 int_alignment = _Alignof (int),
2366 int_array_alignment = _Alignof (int[100]),
2367 char_alignment = _Alignof (char)
2368 };
2369 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2370
2371 // Check _Noreturn.
2372 int _Noreturn does_not_return (void) { for (;;) continue; }
2373
2374 // Check _Static_assert.
2375 struct test_static_assert
2376 {
2377 int x;
2378 _Static_assert (sizeof (int) <= sizeof (long int),
2379 "_Static_assert does not work in struct");
2380 long int y;
2381 };
2382
2383 // Check UTF-8 literals.
2384 #define u8 syntax error!
2385 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2386
2387 // Check duplicate typedefs.
2388 typedef long *long_ptr;
2389 typedef long int *long_ptr;
2390 typedef long_ptr long_ptr;
2391
2392 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2393 struct anonymous
2394 {
2395 union {
2396 struct { int i; int j; };
2397 struct { int k; long int l; } w;
2398 };
2399 int m;
2400 } v1;
2401 '
2402
2403 # Test code for whether the C compiler supports C11 (body of main).
2404 ac_c_conftest_c11_main='
2405 _Static_assert ((offsetof (struct anonymous, i)
2406 == offsetof (struct anonymous, w.k)),
2407 "Anonymous union alignment botch");
2408 v1.i = 2;
2409 v1.w.k = 5;
2410 ok |= v1.i != 5;
2411 '
2412
2413 # Test code for whether the C compiler supports C11 (complete).
2414 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2415 ${ac_c_conftest_c99_globals}
2416 ${ac_c_conftest_c11_globals}
2417
2418 int
2419 main (int argc, char **argv)
2420 {
2421 int ok = 0;
2422 ${ac_c_conftest_c89_main}
2423 ${ac_c_conftest_c99_main}
2424 ${ac_c_conftest_c11_main}
2425 return ok;
2426 }
2427 "
2428
2429 # Test code for whether the C compiler supports C99 (complete).
2430 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2431 ${ac_c_conftest_c99_globals}
2432
2433 int
2434 main (int argc, char **argv)
2435 {
2436 int ok = 0;
2437 ${ac_c_conftest_c89_main}
2438 ${ac_c_conftest_c99_main}
2439 return ok;
2440 }
2441 "
2442
2443 # Test code for whether the C compiler supports C89 (complete).
2444 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2445
2446 int
2447 main (int argc, char **argv)
2448 {
2449 int ok = 0;
2450 ${ac_c_conftest_c89_main}
2451 return ok;
2452 }
2453 "
2454
2455 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2456 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2457 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2458 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2459 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2460 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2461 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2462 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2463 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2464
2465 # Auxiliary files required by this configure script.
2466 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
2467
2468 # Locations in which to look for auxiliary files.
2469 ac_aux_dir_candidates="${srcdir}/."
2470
2471 # Search for a directory containing all of the required auxiliary files,
2472 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2473 # If we don't find one directory that contains all the files we need,
2474 # we report the set of missing files from the *first* directory in
2475 # $ac_aux_dir_candidates and give up.
2476 ac_missing_aux_files=""
2477 ac_first_candidate=:
2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 as_found=false
2481 for as_dir in $ac_aux_dir_candidates
2482 do
2483 IFS=$as_save_IFS
2484 case $as_dir in #(((
2485 '') as_dir=./ ;;
2486 */) ;;
2487 *) as_dir=$as_dir/ ;;
2488 esac
2489 as_found=:
2490
2491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2492 ac_aux_dir_found=yes
2493 ac_install_sh=
2494 for ac_aux in $ac_aux_files
2495 do
2496 # As a special case, if "install-sh" is required, that requirement
2497 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2498 # and $ac_install_sh is set appropriately for whichever one is found.
2499 if test x"$ac_aux" = x"install-sh"
2500 then
2501 if test -f "${as_dir}install-sh"; then
2502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2503 ac_install_sh="${as_dir}install-sh -c"
2504 elif test -f "${as_dir}install.sh"; then
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2506 ac_install_sh="${as_dir}install.sh -c"
2507 elif test -f "${as_dir}shtool"; then
2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2509 ac_install_sh="${as_dir}shtool install -c"
2510 else
2511 ac_aux_dir_found=no
2512 if $ac_first_candidate; then
2513 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2514 else
2515 break
2516 fi
2517 fi
2518 else
2519 if test -f "${as_dir}${ac_aux}"; then
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2521 else
2522 ac_aux_dir_found=no
2523 if $ac_first_candidate; then
2524 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2525 else
2526 break
2527 fi
2528 fi
2529 fi
2530 done
2531 if test "$ac_aux_dir_found" = yes; then
2532 ac_aux_dir="$as_dir"
2533 break
2534 fi
2535 ac_first_candidate=false
2536
2537 as_found=false
2538 done
2539 IFS=$as_save_IFS
2540 if $as_found
2541 then :
2542
2543 else case e in #(
2544 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2545 esac
2546 fi
2547
2548
2549 # These three variables are undocumented and unsupported,
2550 # and are intended to be withdrawn in a future Autoconf release.
2551 # They can cause serious problems if a builder's source tree is in a directory
2552 # whose full name contains unusual characters.
2553 if test -f "${ac_aux_dir}config.guess"; then
2554 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2555 fi
2556 if test -f "${ac_aux_dir}config.sub"; then
2557 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2558 fi
2559 if test -f "$ac_aux_dir/configure"; then
2560 ac_configure="$SHELL ${ac_aux_dir}configure"
2561 fi
2562
2563 # Check that the precious variables saved in the cache have kept the same
2564 # value.
2565 ac_cache_corrupted=false
2566 for ac_var in $ac_precious_vars; do
2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2568 eval ac_new_set=\$ac_env_${ac_var}_set
2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2570 eval ac_new_val=\$ac_env_${ac_var}_value
2571 case $ac_old_set,$ac_new_set in
2572 set,)
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2574 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2576 ,set)
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2578 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,);;
2581 *)
2582 if test "x$ac_old_val" != "x$ac_new_val"; then
2583 # differences in whitespace do not lead to failure.
2584 ac_old_val_w=`echo x $ac_old_val`
2585 ac_new_val_w=`echo x $ac_new_val`
2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2588 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2589 ac_cache_corrupted=:
2590 else
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2592 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2593 eval $ac_var=\$ac_old_val
2594 fi
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2596 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2598 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2599 fi;;
2600 esac
2601 # Pass precious variables to config.status.
2602 if test "$ac_new_set" = set; then
2603 case $ac_new_val in
2604 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2605 *) ac_arg=$ac_var=$ac_new_val ;;
2606 esac
2607 case " $ac_configure_args " in
2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2610 esac
2611 fi
2612 done
2613 if $ac_cache_corrupted; then
2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2615 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2617 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2618 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2619 and start over" "$LINENO" 5
2620 fi
2621 ## -------------------- ##
2622 ## Main body of script. ##
2623 ## -------------------- ##
2624
2625 ac_ext=c
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630
2631
2632
2633 # Directory where autotools helper scripts lives.
2634
2635
2636 # Generate configuration headers.
2637 ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2638
2639
2640 # Hack: disable autoheader so that it doesn't overwrite our cfg template.
2641 AUTOHEADER="echo autoheader ignored"
2642
2643 # Check system type
2644
2645
2646
2647 # Make sure we can run config.sub.
2648 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2649 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2650
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2652 printf %s "checking build system type... " >&6; }
2653 if test ${ac_cv_build+y}
2654 then :
2655 printf %s "(cached) " >&6
2656 else case e in #(
2657 e) ac_build_alias=$build_alias
2658 test "x$ac_build_alias" = x &&
2659 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2660 test "x$ac_build_alias" = x &&
2661 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2662 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2663 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2664 ;;
2665 esac
2666 fi
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2668 printf "%s\n" "$ac_cv_build" >&6; }
2669 case $ac_cv_build in
2670 *-*-*) ;;
2671 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2672 esac
2673 build=$ac_cv_build
2674 ac_save_IFS=$IFS; IFS='-'
2675 set x $ac_cv_build
2676 shift
2677 build_cpu=$1
2678 build_vendor=$2
2679 shift; shift
2680 # Remember, the first character of IFS is used to create $*,
2681 # except with old shells:
2682 build_os=$*
2683 IFS=$ac_save_IFS
2684 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2685
2686
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2688 printf %s "checking host system type... " >&6; }
2689 if test ${ac_cv_host+y}
2690 then :
2691 printf %s "(cached) " >&6
2692 else case e in #(
2693 e) if test "x$host_alias" = x; then
2694 ac_cv_host=$ac_cv_build
2695 else
2696 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2697 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2698 fi
2699 ;;
2700 esac
2701 fi
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2703 printf "%s\n" "$ac_cv_host" >&6; }
2704 case $ac_cv_host in
2705 *-*-*) ;;
2706 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2707 esac
2708 host=$ac_cv_host
2709 ac_save_IFS=$IFS; IFS='-'
2710 set x $ac_cv_host
2711 shift
2712 host_cpu=$1
2713 host_vendor=$2
2714 shift; shift
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2717 host_os=$*
2718 IFS=$ac_save_IFS
2719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2720
2721
2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2723 printf %s "checking target system type... " >&6; }
2724 if test ${ac_cv_target+y}
2725 then :
2726 printf %s "(cached) " >&6
2727 else case e in #(
2728 e) if test "x$target_alias" = x; then
2729 ac_cv_target=$ac_cv_host
2730 else
2731 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2732 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2733 fi
2734 ;;
2735 esac
2736 fi
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2738 printf "%s\n" "$ac_cv_target" >&6; }
2739 case $ac_cv_target in
2740 *-*-*) ;;
2741 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2742 esac
2743 target=$ac_cv_target
2744 ac_save_IFS=$IFS; IFS='-'
2745 set x $ac_cv_target
2746 shift
2747 target_cpu=$1
2748 target_vendor=$2
2749 shift; shift
2750 # Remember, the first character of IFS is used to create $*,
2751 # except with old shells:
2752 target_os=$*
2753 IFS=$ac_save_IFS
2754 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2755
2756
2757 # The aliases save the names the user supplied, while $host etc.
2758 # will get canonicalized.
2759 test -n "$target_alias" &&
2760 test "$program_prefix$program_suffix$program_transform_name" = \
2761 NONENONEs,x,x, &&
2762 program_prefix=${target_alias}-
2763
2764 # Initialize Automake
2765 # Don't require all the GNU mandated files
2766 am__api_version='1.16'
2767
2768
2769 # Find a good install program. We prefer a C program (faster),
2770 # so one script is as good as another. But avoid the broken or
2771 # incompatible versions:
2772 # SysV /etc/install, /usr/sbin/install
2773 # SunOS /usr/etc/install
2774 # IRIX /sbin/install
2775 # AIX /bin/install
2776 # AmigaOS /C/install, which installs bootblocks on floppy discs
2777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2780 # OS/2's system install, which has a completely different semantic
2781 # ./install, which can be erroneously created by make from ./install.sh.
2782 # Reject install programs that cannot install multiple files.
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2784 printf %s "checking for a BSD-compatible install... " >&6; }
2785 if test -z "$INSTALL"; then
2786 if test ${ac_cv_path_install+y}
2787 then :
2788 printf %s "(cached) " >&6
2789 else case e in #(
2790 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 case $as_dir in #(((
2795 '') as_dir=./ ;;
2796 */) ;;
2797 *) as_dir=$as_dir/ ;;
2798 esac
2799 # Account for fact that we put trailing slashes in our PATH walk.
2800 case $as_dir in #((
2801 ./ | /[cC]/* | \
2802 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2803 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2804 /usr/ucb/* ) ;;
2805 *)
2806 # OSF1 and SCO ODT 3.0 have their own names for install.
2807 # Don't use installbsd from OSF since it installs stuff as root
2808 # by default.
2809 for ac_prog in ginstall scoinst install; do
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2812 if test $ac_prog = install &&
2813 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2814 # AIX install. It has an incompatible calling convention.
2815 :
2816 elif test $ac_prog = install &&
2817 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818 # program-specific install script used by HP pwplus--don't use.
2819 :
2820 else
2821 rm -rf conftest.one conftest.two conftest.dir
2822 echo one > conftest.one
2823 echo two > conftest.two
2824 mkdir conftest.dir
2825 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2826 test -s conftest.one && test -s conftest.two &&
2827 test -s conftest.dir/conftest.one &&
2828 test -s conftest.dir/conftest.two
2829 then
2830 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2831 break 3
2832 fi
2833 fi
2834 fi
2835 done
2836 done
2837 ;;
2838 esac
2839
2840 done
2841 IFS=$as_save_IFS
2842
2843 rm -rf conftest.one conftest.two conftest.dir
2844 ;;
2845 esac
2846 fi
2847 if test ${ac_cv_path_install+y}; then
2848 INSTALL=$ac_cv_path_install
2849 else
2850 # As a last resort, use the slow shell script. Don't cache a
2851 # value for INSTALL within a source directory, because that will
2852 # break other packages using the cache if that directory is
2853 # removed, or if the value is a relative name.
2854 INSTALL=$ac_install_sh
2855 fi
2856 fi
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2858 printf "%s\n" "$INSTALL" >&6; }
2859
2860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2861 # It thinks the first close brace ends the variable substitution.
2862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2863
2864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2865
2866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2867
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2869 printf %s "checking whether build environment is sane... " >&6; }
2870 # Reject unsafe characters in $srcdir or the absolute working directory
2871 # name. Accept space and tab only in the latter.
2872 am_lf='
2873 '
2874 case `pwd` in
2875 *[\\\"\#\$\&\'\`$am_lf]*)
2876 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2877 esac
2878 case $srcdir in
2879 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2880 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2881 esac
2882
2883 # Do 'set' in a subshell so we don't clobber the current shell's
2884 # arguments. Must try -L first in case configure is actually a
2885 # symlink; some systems play weird games with the mod time of symlinks
2886 # (eg FreeBSD returns the mod time of the symlink's containing
2887 # directory).
2888 if (
2889 am_has_slept=no
2890 for am_try in 1 2; do
2891 echo "timestamp, slept: $am_has_slept" > conftest.file
2892 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2893 if test "$*" = "X"; then
2894 # -L didn't work.
2895 set X `ls -t "$srcdir/configure" conftest.file`
2896 fi
2897 if test "$*" != "X $srcdir/configure conftest.file" \
2898 && test "$*" != "X conftest.file $srcdir/configure"; then
2899
2900 # If neither matched, then we have a broken ls. This can happen
2901 # if, for instance, CONFIG_SHELL is bash and it inherits a
2902 # broken ls alias from the environment. This has actually
2903 # happened. Such a system could not be considered "sane".
2904 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2905 alias in your environment" "$LINENO" 5
2906 fi
2907 if test "$2" = conftest.file || test $am_try -eq 2; then
2908 break
2909 fi
2910 # Just in case.
2911 sleep 1
2912 am_has_slept=yes
2913 done
2914 test "$2" = conftest.file
2915 )
2916 then
2917 # Ok.
2918 :
2919 else
2920 as_fn_error $? "newly created file is older than distributed files!
2921 Check your system clock" "$LINENO" 5
2922 fi
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2924 printf "%s\n" "yes" >&6; }
2925 # If we didn't sleep, we still need to ensure time stamps of config.status and
2926 # generated files are strictly newer.
2927 am_sleep_pid=
2928 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2929 ( sleep 1 ) &
2930 am_sleep_pid=$!
2931 fi
2932
2933 rm -f conftest.file
2934
2935 test "$program_prefix" != NONE &&
2936 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2937 # Use a double $ so make ignores it.
2938 test "$program_suffix" != NONE &&
2939 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2940 # Double any \ or $.
2941 # By default was 's,x,x', remove it if useless.
2942 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2943 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2944
2945
2946 # Expand $ac_aux_dir to an absolute path.
2947 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2948
2949
2950 if test x"${MISSING+set}" != xset; then
2951 MISSING="\${SHELL} '$am_aux_dir/missing'"
2952 fi
2953 # Use eval to expand $SHELL
2954 if eval "$MISSING --is-lightweight"; then
2955 am_missing_run="$MISSING "
2956 else
2957 am_missing_run=
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2959 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2960 fi
2961
2962 if test x"${install_sh+set}" != xset; then
2963 case $am_aux_dir in
2964 *\ * | *\ *)
2965 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2966 *)
2967 install_sh="\${SHELL} $am_aux_dir/install-sh"
2968 esac
2969 fi
2970
2971 # Installed binaries are usually stripped using 'strip' when the user
2972 # run "make install-strip". However 'strip' might not be the right
2973 # tool to use in cross-compilation environments, therefore Automake
2974 # will honor the 'STRIP' environment variable to overrule this program.
2975 if test "$cross_compiling" != no; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}strip; ac_word=$2
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 printf %s "checking for $ac_word... " >&6; }
2981 if test ${ac_cv_prog_STRIP+y}
2982 then :
2983 printf %s "(cached) " >&6
2984 else case e in #(
2985 e) if test -n "$STRIP"; then
2986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 case $as_dir in #(((
2993 '') as_dir=./ ;;
2994 */) ;;
2995 *) as_dir=$as_dir/ ;;
2996 esac
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi ;;
3008 esac
3009 fi
3010 STRIP=$ac_cv_prog_STRIP
3011 if test -n "$STRIP"; then
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3013 printf "%s\n" "$STRIP" >&6; }
3014 else
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 printf "%s\n" "no" >&6; }
3017 fi
3018
3019
3020 fi
3021 if test -z "$ac_cv_prog_STRIP"; then
3022 ac_ct_STRIP=$STRIP
3023 # Extract the first word of "strip", so it can be a program name with args.
3024 set dummy strip; ac_word=$2
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 printf %s "checking for $ac_word... " >&6; }
3027 if test ${ac_cv_prog_ac_ct_STRIP+y}
3028 then :
3029 printf %s "(cached) " >&6
3030 else case e in #(
3031 e) if test -n "$ac_ct_STRIP"; then
3032 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 case $as_dir in #(((
3039 '') as_dir=./ ;;
3040 */) ;;
3041 *) as_dir=$as_dir/ ;;
3042 esac
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_ac_ct_STRIP="strip"
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi ;;
3054 esac
3055 fi
3056 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3057 if test -n "$ac_ct_STRIP"; then
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3059 printf "%s\n" "$ac_ct_STRIP" >&6; }
3060 else
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 printf "%s\n" "no" >&6; }
3063 fi
3064
3065 if test "x$ac_ct_STRIP" = x; then
3066 STRIP=":"
3067 else
3068 case $cross_compiling:$ac_tool_warned in
3069 yes:)
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3071 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072 ac_tool_warned=yes ;;
3073 esac
3074 STRIP=$ac_ct_STRIP
3075 fi
3076 else
3077 STRIP="$ac_cv_prog_STRIP"
3078 fi
3079
3080 fi
3081 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3082
3083
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3085 printf %s "checking for a race-free mkdir -p... " >&6; }
3086 if test -z "$MKDIR_P"; then
3087 if test ${ac_cv_path_mkdir+y}
3088 then :
3089 printf %s "(cached) " >&6
3090 else case e in #(
3091 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3093 do
3094 IFS=$as_save_IFS
3095 case $as_dir in #(((
3096 '') as_dir=./ ;;
3097 */) ;;
3098 *) as_dir=$as_dir/ ;;
3099 esac
3100 for ac_prog in mkdir gmkdir; do
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3103 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3104 'mkdir ('*'coreutils) '* | \
3105 *'BusyBox '* | \
3106 'mkdir (fileutils) '4.1*)
3107 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3108 break 3;;
3109 esac
3110 done
3111 done
3112 done
3113 IFS=$as_save_IFS
3114 ;;
3115 esac
3116 fi
3117
3118 test -d ./--version && rmdir ./--version
3119 if test ${ac_cv_path_mkdir+y}; then
3120 MKDIR_P="$ac_cv_path_mkdir -p"
3121 else
3122 # As a last resort, use plain mkdir -p,
3123 # in the hope it doesn't have the bugs of ancient mkdir.
3124 MKDIR_P='mkdir -p'
3125 fi
3126 fi
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 printf "%s\n" "$MKDIR_P" >&6; }
3129
3130 for ac_prog in gawk mawk nawk awk
3131 do
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 printf %s "checking for $ac_word... " >&6; }
3136 if test ${ac_cv_prog_AWK+y}
3137 then :
3138 printf %s "(cached) " >&6
3139 else case e in #(
3140 e) if test -n "$AWK"; then
3141 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 case $as_dir in #(((
3148 '') as_dir=./ ;;
3149 */) ;;
3150 *) as_dir=$as_dir/ ;;
3151 esac
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_AWK="$ac_prog"
3155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi ;;
3163 esac
3164 fi
3165 AWK=$ac_cv_prog_AWK
3166 if test -n "$AWK"; then
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3168 printf "%s\n" "$AWK" >&6; }
3169 else
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 printf "%s\n" "no" >&6; }
3172 fi
3173
3174
3175 test -n "$AWK" && break
3176 done
3177
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3180 set x ${MAKE-make}
3181 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3182 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3183 then :
3184 printf %s "(cached) " >&6
3185 else case e in #(
3186 e) cat >conftest.make <<\_ACEOF
3187 SHELL = /bin/sh
3188 all:
3189 @echo '@@@%%%=$(MAKE)=@@@%%%'
3190 _ACEOF
3191 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3192 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3193 *@@@%%%=?*=@@@%%%*)
3194 eval ac_cv_prog_make_${ac_make}_set=yes;;
3195 *)
3196 eval ac_cv_prog_make_${ac_make}_set=no;;
3197 esac
3198 rm -f conftest.make ;;
3199 esac
3200 fi
3201 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 printf "%s\n" "yes" >&6; }
3204 SET_MAKE=
3205 else
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 printf "%s\n" "no" >&6; }
3208 SET_MAKE="MAKE=${MAKE-make}"
3209 fi
3210
3211 rm -rf .tst 2>/dev/null
3212 mkdir .tst 2>/dev/null
3213 if test -d .tst; then
3214 am__leading_dot=.
3215 else
3216 am__leading_dot=_
3217 fi
3218 rmdir .tst 2>/dev/null
3219
3220 # Check whether --enable-silent-rules was given.
3221 if test ${enable_silent_rules+y}
3222 then :
3223 enableval=$enable_silent_rules;
3224 fi
3225
3226 case $enable_silent_rules in # (((
3227 yes) AM_DEFAULT_VERBOSITY=0;;
3228 no) AM_DEFAULT_VERBOSITY=1;;
3229 *) AM_DEFAULT_VERBOSITY=1;;
3230 esac
3231 am_make=${MAKE-make}
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3233 printf %s "checking whether $am_make supports nested variables... " >&6; }
3234 if test ${am_cv_make_support_nested_variables+y}
3235 then :
3236 printf %s "(cached) " >&6
3237 else case e in #(
3238 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3239 BAR0=false
3240 BAR1=true
3241 V=1
3242 am__doit:
3243 @$(TRUE)
3244 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3245 am_cv_make_support_nested_variables=yes
3246 else
3247 am_cv_make_support_nested_variables=no
3248 fi ;;
3249 esac
3250 fi
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3252 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3253 if test $am_cv_make_support_nested_variables = yes; then
3254 AM_V='$(V)'
3255 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3256 else
3257 AM_V=$AM_DEFAULT_VERBOSITY
3258 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3259 fi
3260 AM_BACKSLASH='\'
3261
3262 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3263 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3264 # is not polluted with repeated "-I."
3265 am__isrc=' -I$(srcdir)'
3266 # test to see if srcdir already configured
3267 if test -f $srcdir/config.status; then
3268 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3269 fi
3270 fi
3271
3272 # test whether we have cygpath
3273 if test -z "$CYGPATH_W"; then
3274 if (cygpath --version) >/dev/null 2>/dev/null; then
3275 CYGPATH_W='cygpath -w'
3276 else
3277 CYGPATH_W=echo
3278 fi
3279 fi
3280
3281
3282 # Define the identity of the package.
3283 PACKAGE='libjpeg'
3284 VERSION='9.6.0'
3285
3286
3287 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3288
3289
3290 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3291
3292 # Some tools Automake needs.
3293
3294 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3295
3296
3297 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3298
3299
3300 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3301
3302
3303 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3304
3305
3306 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3307
3308 # For better backward compatibility. To be removed once Automake 1.9.x
3309 # dies out for good. For more background, see:
3310 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3311 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3312 mkdir_p='$(MKDIR_P)'
3313
3314 # We need awk for the "check" target (and possibly the TAP driver). The
3315 # system "awk" is bad on some platforms.
3316 # Always define AMTAR for backward compatibility. Yes, it's still used
3317 # in the wild :-( We should find a proper way to deprecate it ...
3318 AMTAR='$${TAR-tar}'
3319
3320
3321 # We'll loop over all known methods to create a tar archive until one works.
3322 _am_tools='gnutar pax cpio none'
3323
3324 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3325
3326
3327
3328
3329
3330 # Variables for tags utilities; see am/tags.am
3331 if test -z "$CTAGS"; then
3332 CTAGS=ctags
3333 fi
3334
3335 if test -z "$ETAGS"; then
3336 ETAGS=etags
3337 fi
3338
3339 if test -z "$CSCOPE"; then
3340 CSCOPE=cscope
3341 fi
3342
3343
3344
3345 # POSIX will say in a future version that running "rm -f" with no argument
3346 # is OK; and we want to be able to make that assumption in our Makefile
3347 # recipes. So use an aggressive probe to check that the usage we want is
3348 # actually supported "in the wild" to an acceptable degree.
3349 # See automake bug#10828.
3350 # To make any issue more visible, cause the running configure to be aborted
3351 # by default if the 'rm' program in use doesn't match our expectations; the
3352 # user can still override this though.
3353 if rm -f && rm -fr && rm -rf; then : OK; else
3354 cat >&2 <<'END'
3355 Oops!
3356
3357 Your 'rm' program seems unable to run without file operands specified
3358 on the command line, even when the '-f' option is present. This is contrary
3359 to the behaviour of most rm programs out there, and not conforming with
3360 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3361
3362 Please tell bug-automake@gnu.org about your system, including the value
3363 of your $PATH and any error possibly output before this message. This
3364 can help us improve future automake versions.
3365
3366 END
3367 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3368 echo 'Configuration will proceed anyway, since you have set the' >&2
3369 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3370 echo >&2
3371 else
3372 cat >&2 <<'END'
3373 Aborting the configuration process, to ensure you take notice of the issue.
3374
3375 You can download and install GNU coreutils to get an 'rm' implementation
3376 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3377
3378 If you want to complete the configuration process using your problematic
3379 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3380 to "yes", and re-run configure.
3381
3382 END
3383 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3384 fi
3385 fi
3386
3387
3388 # Make --enable-silent-rules the default.
3389 # To get verbose build output you may configure
3390 # with --disable-silent-rules or use "make V=1".
3391 # Check whether --enable-silent-rules was given.
3392 if test ${enable_silent_rules+y}
3393 then :
3394 enableval=$enable_silent_rules;
3395 fi
3396
3397 case $enable_silent_rules in # (((
3398 yes) AM_DEFAULT_VERBOSITY=0;;
3399 no) AM_DEFAULT_VERBOSITY=1;;
3400 *) AM_DEFAULT_VERBOSITY=0;;
3401 esac
3402 am_make=${MAKE-make}
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3404 printf %s "checking whether $am_make supports nested variables... " >&6; }
3405 if test ${am_cv_make_support_nested_variables+y}
3406 then :
3407 printf %s "(cached) " >&6
3408 else case e in #(
3409 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3410 BAR0=false
3411 BAR1=true
3412 V=1
3413 am__doit:
3414 @$(TRUE)
3415 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3416 am_cv_make_support_nested_variables=yes
3417 else
3418 am_cv_make_support_nested_variables=no
3419 fi ;;
3420 esac
3421 fi
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3423 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3424 if test $am_cv_make_support_nested_variables = yes; then
3425 AM_V='$(V)'
3426 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3427 else
3428 AM_V=$AM_DEFAULT_VERBOSITY
3429 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3430 fi
3431 AM_BACKSLASH='\'
3432
3433
3434 # Add configure option --enable-maintainer-mode which enables
3435 # dependency checking and generation useful to package maintainers.
3436 # This is made an option to avoid confusing end users.
3437
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3439 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3440 # Check whether --enable-maintainer-mode was given.
3441 if test ${enable_maintainer_mode+y}
3442 then :
3443 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3444 else case e in #(
3445 e) USE_MAINTAINER_MODE=no ;;
3446 esac
3447 fi
3448
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3450 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3451 if test $USE_MAINTAINER_MODE = yes; then
3452 MAINTAINER_MODE_TRUE=
3453 MAINTAINER_MODE_FALSE='#'
3454 else
3455 MAINTAINER_MODE_TRUE='#'
3456 MAINTAINER_MODE_FALSE=
3457 fi
3458
3459 MAINT=$MAINTAINER_MODE_TRUE
3460
3461
3462
3463 # Check for programs
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473 ac_ext=c
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 if test -n "$ac_tool_prefix"; then
3479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 printf %s "checking for $ac_word... " >&6; }
3483 if test ${ac_cv_prog_CC+y}
3484 then :
3485 printf %s "(cached) " >&6
3486 else case e in #(
3487 e) if test -n "$CC"; then
3488 ac_cv_prog_CC="$CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493 IFS=$as_save_IFS
3494 case $as_dir in #(((
3495 '') as_dir=./ ;;
3496 */) ;;
3497 *) as_dir=$as_dir/ ;;
3498 esac
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505 done
3506 done
3507 IFS=$as_save_IFS
3508
3509 fi ;;
3510 esac
3511 fi
3512 CC=$ac_cv_prog_CC
3513 if test -n "$CC"; then
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 printf "%s\n" "$CC" >&6; }
3516 else
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 printf "%s\n" "no" >&6; }
3519 fi
3520
3521
3522 fi
3523 if test -z "$ac_cv_prog_CC"; then
3524 ac_ct_CC=$CC
3525 # Extract the first word of "gcc", so it can be a program name with args.
3526 set dummy gcc; ac_word=$2
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 printf %s "checking for $ac_word... " >&6; }
3529 if test ${ac_cv_prog_ac_ct_CC+y}
3530 then :
3531 printf %s "(cached) " >&6
3532 else case e in #(
3533 e) if test -n "$ac_ct_CC"; then
3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539 IFS=$as_save_IFS
3540 case $as_dir in #(((
3541 '') as_dir=./ ;;
3542 */) ;;
3543 *) as_dir=$as_dir/ ;;
3544 esac
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_ac_ct_CC="gcc"
3548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551 done
3552 done
3553 IFS=$as_save_IFS
3554
3555 fi ;;
3556 esac
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 printf "%s\n" "$ac_ct_CC" >&6; }
3562 else
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 printf "%s\n" "no" >&6; }
3565 fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3577 fi
3578 else
3579 CC="$ac_cv_prog_CC"
3580 fi
3581
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 printf %s "checking for $ac_word... " >&6; }
3588 if test ${ac_cv_prog_CC+y}
3589 then :
3590 printf %s "(cached) " >&6
3591 else case e in #(
3592 e) if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 case $as_dir in #(((
3600 '') as_dir=./ ;;
3601 */) ;;
3602 *) as_dir=$as_dir/ ;;
3603 esac
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_CC="${ac_tool_prefix}cc"
3607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610 done
3611 done
3612 IFS=$as_save_IFS
3613
3614 fi ;;
3615 esac
3616 fi
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 printf "%s\n" "$CC" >&6; }
3621 else
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 printf "%s\n" "no" >&6; }
3624 fi
3625
3626
3627 fi
3628 fi
3629 if test -z "$CC"; then
3630 # Extract the first word of "cc", so it can be a program name with args.
3631 set dummy cc; ac_word=$2
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 printf %s "checking for $ac_word... " >&6; }
3634 if test ${ac_cv_prog_CC+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else case e in #(
3638 e) if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 ac_prog_rejected=no
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645 IFS=$as_save_IFS
3646 case $as_dir in #(((
3647 '') as_dir=./ ;;
3648 */) ;;
3649 *) as_dir=$as_dir/ ;;
3650 esac
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3654 ac_prog_rejected=yes
3655 continue
3656 fi
3657 ac_cv_prog_CC="cc"
3658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661 done
3662 done
3663 IFS=$as_save_IFS
3664
3665 if test $ac_prog_rejected = yes; then
3666 # We found a bogon in the path, so make sure we never use it.
3667 set dummy $ac_cv_prog_CC
3668 shift
3669 if test $# != 0; then
3670 # We chose a different compiler from the bogus one.
3671 # However, it has the same basename, so the bogon will be chosen
3672 # first if we set CC to just the basename; use the full file name.
3673 shift
3674 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3675 fi
3676 fi
3677 fi ;;
3678 esac
3679 fi
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 printf "%s\n" "$CC" >&6; }
3684 else
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 printf "%s\n" "no" >&6; }
3687 fi
3688
3689
3690 fi
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog in cl.exe
3694 do
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 printf %s "checking for $ac_word... " >&6; }
3699 if test ${ac_cv_prog_CC+y}
3700 then :
3701 printf %s "(cached) " >&6
3702 else case e in #(
3703 e) if test -n "$CC"; then
3704 ac_cv_prog_CC="$CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709 IFS=$as_save_IFS
3710 case $as_dir in #(((
3711 '') as_dir=./ ;;
3712 */) ;;
3713 *) as_dir=$as_dir/ ;;
3714 esac
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi ;;
3726 esac
3727 fi
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 printf "%s\n" "$CC" >&6; }
3732 else
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 printf "%s\n" "no" >&6; }
3735 fi
3736
3737
3738 test -n "$CC" && break
3739 done
3740 fi
3741 if test -z "$CC"; then
3742 ac_ct_CC=$CC
3743 for ac_prog in cl.exe
3744 do
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 printf %s "checking for $ac_word... " >&6; }
3749 if test ${ac_cv_prog_ac_ct_CC+y}
3750 then :
3751 printf %s "(cached) " >&6
3752 else case e in #(
3753 e) if test -n "$ac_ct_CC"; then
3754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759 IFS=$as_save_IFS
3760 case $as_dir in #(((
3761 '') as_dir=./ ;;
3762 */) ;;
3763 *) as_dir=$as_dir/ ;;
3764 esac
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_ac_ct_CC="$ac_prog"
3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771 done
3772 done
3773 IFS=$as_save_IFS
3774
3775 fi ;;
3776 esac
3777 fi
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 printf "%s\n" "$ac_ct_CC" >&6; }
3782 else
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 printf "%s\n" "no" >&6; }
3785 fi
3786
3787
3788 test -n "$ac_ct_CC" && break
3789 done
3790
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795 yes:)
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3799 esac
3800 CC=$ac_ct_CC
3801 fi
3802 fi
3803
3804 fi
3805 if test -z "$CC"; then
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}clang; ac_word=$2
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810 printf %s "checking for $ac_word... " >&6; }
3811 if test ${ac_cv_prog_CC+y}
3812 then :
3813 printf %s "(cached) " >&6
3814 else case e in #(
3815 e) if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821 IFS=$as_save_IFS
3822 case $as_dir in #(((
3823 '') as_dir=./ ;;
3824 */) ;;
3825 *) as_dir=$as_dir/ ;;
3826 esac
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_CC="${ac_tool_prefix}clang"
3830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 fi ;;
3838 esac
3839 fi
3840 CC=$ac_cv_prog_CC
3841 if test -n "$CC"; then
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843 printf "%s\n" "$CC" >&6; }
3844 else
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 printf "%s\n" "no" >&6; }
3847 fi
3848
3849
3850 fi
3851 if test -z "$ac_cv_prog_CC"; then
3852 ac_ct_CC=$CC
3853 # Extract the first word of "clang", so it can be a program name with args.
3854 set dummy clang; ac_word=$2
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 printf %s "checking for $ac_word... " >&6; }
3857 if test ${ac_cv_prog_ac_ct_CC+y}
3858 then :
3859 printf %s "(cached) " >&6
3860 else case e in #(
3861 e) if test -n "$ac_ct_CC"; then
3862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3863 else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867 IFS=$as_save_IFS
3868 case $as_dir in #(((
3869 '') as_dir=./ ;;
3870 */) ;;
3871 *) as_dir=$as_dir/ ;;
3872 esac
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_ac_ct_CC="clang"
3876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3877 break 2
3878 fi
3879 done
3880 done
3881 IFS=$as_save_IFS
3882
3883 fi ;;
3884 esac
3885 fi
3886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887 if test -n "$ac_ct_CC"; then
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3889 printf "%s\n" "$ac_ct_CC" >&6; }
3890 else
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 printf "%s\n" "no" >&6; }
3893 fi
3894
3895 if test "x$ac_ct_CC" = x; then
3896 CC=""
3897 else
3898 case $cross_compiling:$ac_tool_warned in
3899 yes:)
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3901 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3902 ac_tool_warned=yes ;;
3903 esac
3904 CC=$ac_ct_CC
3905 fi
3906 else
3907 CC="$ac_cv_prog_CC"
3908 fi
3909
3910 fi
3911
3912
3913 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3914 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3915 as_fn_error $? "no acceptable C compiler found in \$PATH
3916 See 'config.log' for more details" "$LINENO" 5; }
3917
3918 # Provide some information about the compiler.
3919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3920 set X $ac_compile
3921 ac_compiler=$2
3922 for ac_option in --version -v -V -qversion -version; do
3923 { { ac_try="$ac_compiler $ac_option >&5"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 printf "%s\n" "$ac_try_echo"; } >&5
3930 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3931 ac_status=$?
3932 if test -s conftest.err; then
3933 sed '10a\
3934 ... rest of stderr output deleted ...
3935 10q' conftest.err >conftest.er1
3936 cat conftest.er1 >&5
3937 fi
3938 rm -f conftest.er1 conftest.err
3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }
3941 done
3942
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945
3946 int
3947 main (void)
3948 {
3949
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 ac_clean_files_save=$ac_clean_files
3955 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3956 # Try to create an executable without -o first, disregard a.out.
3957 # It will help us diagnose broken compilers, and finding out an intuition
3958 # of exeext.
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3960 printf %s "checking whether the C compiler works... " >&6; }
3961 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3962
3963 # The possible output files:
3964 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3965
3966 ac_rmfiles=
3967 for ac_file in $ac_files
3968 do
3969 case $ac_file in
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3972 esac
3973 done
3974 rm -f $ac_rmfiles
3975
3976 if { { ac_try="$ac_link_default"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 printf "%s\n" "$ac_try_echo"; } >&5
3983 (eval "$ac_link_default") 2>&5
3984 ac_status=$?
3985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }
3987 then :
3988 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3989 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3990 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3991 # so that the user can short-circuit this test for compilers unknown to
3992 # Autoconf.
3993 for ac_file in $ac_files ''
3994 do
3995 test -f "$ac_file" || continue
3996 case $ac_file in
3997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3998 ;;
3999 [ab].out )
4000 # We found the default executable, but exeext='' is most
4001 # certainly right.
4002 break;;
4003 *.* )
4004 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4005 then :; else
4006 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4007 fi
4008 # We set ac_cv_exeext here because the later test for it is not
4009 # safe: cross compilers may not add the suffix if given an '-o'
4010 # argument, so we may need to know it at that point already.
4011 # Even if this section looks crufty: it has the advantage of
4012 # actually working.
4013 break;;
4014 * )
4015 break;;
4016 esac
4017 done
4018 test "$ac_cv_exeext" = no && ac_cv_exeext=
4019
4020 else case e in #(
4021 e) ac_file='' ;;
4022 esac
4023 fi
4024 if test -z "$ac_file"
4025 then :
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 printf "%s\n" "no" >&6; }
4028 printf "%s\n" "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4032 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4033 as_fn_error 77 "C compiler cannot create executables
4034 See 'config.log' for more details" "$LINENO" 5; }
4035 else case e in #(
4036 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4037 printf "%s\n" "yes" >&6; } ;;
4038 esac
4039 fi
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4041 printf %s "checking for C compiler default output file name... " >&6; }
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4043 printf "%s\n" "$ac_file" >&6; }
4044 ac_exeext=$ac_cv_exeext
4045
4046 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4047 ac_clean_files=$ac_clean_files_save
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4049 printf %s "checking for suffix of executables... " >&6; }
4050 if { { ac_try="$ac_link"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 printf "%s\n" "$ac_try_echo"; } >&5
4057 (eval "$ac_link") 2>&5
4058 ac_status=$?
4059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060 test $ac_status = 0; }
4061 then :
4062 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4063 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4064 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4065 # 'rm'.
4066 for ac_file in conftest.exe conftest conftest.*; do
4067 test -f "$ac_file" || continue
4068 case $ac_file in
4069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4070 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4071 break;;
4072 * ) break;;
4073 esac
4074 done
4075 else case e in #(
4076 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4077 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4078 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4079 See 'config.log' for more details" "$LINENO" 5; } ;;
4080 esac
4081 fi
4082 rm -f conftest conftest$ac_cv_exeext
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4084 printf "%s\n" "$ac_cv_exeext" >&6; }
4085
4086 rm -f conftest.$ac_ext
4087 EXEEXT=$ac_cv_exeext
4088 ac_exeext=$EXEEXT
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 #include <stdio.h>
4092 int
4093 main (void)
4094 {
4095 FILE *f = fopen ("conftest.out", "w");
4096 if (!f)
4097 return 1;
4098 return ferror (f) || fclose (f) != 0;
4099
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 ac_clean_files="$ac_clean_files conftest.out"
4105 # Check that the compiler produces executables we can run. If not, either
4106 # the compiler is broken, or we cross compile.
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4108 printf %s "checking whether we are cross compiling... " >&6; }
4109 if test "$cross_compiling" != yes; then
4110 { { ac_try="$ac_link"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 printf "%s\n" "$ac_try_echo"; } >&5
4117 (eval "$ac_link") 2>&5
4118 ac_status=$?
4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }
4121 if { ac_try='./conftest$ac_cv_exeext'
4122 { { case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127 printf "%s\n" "$ac_try_echo"; } >&5
4128 (eval "$ac_try") 2>&5
4129 ac_status=$?
4130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }; }; then
4132 cross_compiling=no
4133 else
4134 if test "$cross_compiling" = maybe; then
4135 cross_compiling=yes
4136 else
4137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4138 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4139 as_fn_error 77 "cannot run C compiled programs.
4140 If you meant to cross compile, use '--host'.
4141 See 'config.log' for more details" "$LINENO" 5; }
4142 fi
4143 fi
4144 fi
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4146 printf "%s\n" "$cross_compiling" >&6; }
4147
4148 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4149 conftest.o conftest.obj conftest.out
4150 ac_clean_files=$ac_clean_files_save
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4152 printf %s "checking for suffix of object files... " >&6; }
4153 if test ${ac_cv_objext+y}
4154 then :
4155 printf %s "(cached) " >&6
4156 else case e in #(
4157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159
4160 int
4161 main (void)
4162 {
4163
4164 ;
4165 return 0;
4166 }
4167 _ACEOF
4168 rm -f conftest.o conftest.obj
4169 if { { ac_try="$ac_compile"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 printf "%s\n" "$ac_try_echo"; } >&5
4176 (eval "$ac_compile") 2>&5
4177 ac_status=$?
4178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179 test $ac_status = 0; }
4180 then :
4181 for ac_file in conftest.o conftest.obj conftest.*; do
4182 test -f "$ac_file" || continue;
4183 case $ac_file in
4184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4185 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4186 break;;
4187 esac
4188 done
4189 else case e in #(
4190 e) printf "%s\n" "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4192
4193 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4194 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4195 as_fn_error $? "cannot compute suffix of object files: cannot compile
4196 See 'config.log' for more details" "$LINENO" 5; } ;;
4197 esac
4198 fi
4199 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4200 esac
4201 fi
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4203 printf "%s\n" "$ac_cv_objext" >&6; }
4204 OBJEXT=$ac_cv_objext
4205 ac_objext=$OBJEXT
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4207 printf %s "checking whether the compiler supports GNU C... " >&6; }
4208 if test ${ac_cv_c_compiler_gnu+y}
4209 then :
4210 printf %s "(cached) " >&6
4211 else case e in #(
4212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214
4215 int
4216 main (void)
4217 {
4218 #ifndef __GNUC__
4219 choke me
4220 #endif
4221
4222 ;
4223 return 0;
4224 }
4225 _ACEOF
4226 if ac_fn_c_try_compile "$LINENO"
4227 then :
4228 ac_compiler_gnu=yes
4229 else case e in #(
4230 e) ac_compiler_gnu=no ;;
4231 esac
4232 fi
4233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4234 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4235 ;;
4236 esac
4237 fi
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4239 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242 if test $ac_compiler_gnu = yes; then
4243 GCC=yes
4244 else
4245 GCC=
4246 fi
4247 ac_test_CFLAGS=${CFLAGS+y}
4248 ac_save_CFLAGS=$CFLAGS
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4250 printf %s "checking whether $CC accepts -g... " >&6; }
4251 if test ${ac_cv_prog_cc_g+y}
4252 then :
4253 printf %s "(cached) " >&6
4254 else case e in #(
4255 e) ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 ac_cv_prog_cc_g=no
4258 CFLAGS="-g"
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261
4262 int
4263 main (void)
4264 {
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_c_try_compile "$LINENO"
4271 then :
4272 ac_cv_prog_cc_g=yes
4273 else case e in #(
4274 e) CFLAGS=""
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278 int
4279 main (void)
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288
4289 else case e in #(
4290 e) ac_c_werror_flag=$ac_save_c_werror_flag
4291 CFLAGS="-g"
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294
4295 int
4296 main (void)
4297 {
4298
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 if ac_fn_c_try_compile "$LINENO"
4304 then :
4305 ac_cv_prog_cc_g=yes
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4308 esac
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4311 esac
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4314 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4315 esac
4316 fi
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4318 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4319 if test $ac_test_CFLAGS; then
4320 CFLAGS=$ac_save_CFLAGS
4321 elif test $ac_cv_prog_cc_g = yes; then
4322 if test "$GCC" = yes; then
4323 CFLAGS="-g -O2"
4324 else
4325 CFLAGS="-g"
4326 fi
4327 else
4328 if test "$GCC" = yes; then
4329 CFLAGS="-O2"
4330 else
4331 CFLAGS=
4332 fi
4333 fi
4334 ac_prog_cc_stdc=no
4335 if test x$ac_prog_cc_stdc = xno
4336 then :
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4338 printf %s "checking for $CC option to enable C11 features... " >&6; }
4339 if test ${ac_cv_prog_cc_c11+y}
4340 then :
4341 printf %s "(cached) " >&6
4342 else case e in #(
4343 e) ac_cv_prog_cc_c11=no
4344 ac_save_CC=$CC
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 $ac_c_conftest_c11_program
4348 _ACEOF
4349 for ac_arg in '' -std=gnu11
4350 do
4351 CC="$ac_save_CC $ac_arg"
4352 if ac_fn_c_try_compile "$LINENO"
4353 then :
4354 ac_cv_prog_cc_c11=$ac_arg
4355 fi
4356 rm -f core conftest.err conftest.$ac_objext conftest.beam
4357 test "x$ac_cv_prog_cc_c11" != "xno" && break
4358 done
4359 rm -f conftest.$ac_ext
4360 CC=$ac_save_CC ;;
4361 esac
4362 fi
4363
4364 if test "x$ac_cv_prog_cc_c11" = xno
4365 then :
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4367 printf "%s\n" "unsupported" >&6; }
4368 else case e in #(
4369 e) if test "x$ac_cv_prog_cc_c11" = x
4370 then :
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4372 printf "%s\n" "none needed" >&6; }
4373 else case e in #(
4374 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4375 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4376 CC="$CC $ac_cv_prog_cc_c11" ;;
4377 esac
4378 fi
4379 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4380 ac_prog_cc_stdc=c11 ;;
4381 esac
4382 fi
4383 fi
4384 if test x$ac_prog_cc_stdc = xno
4385 then :
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4387 printf %s "checking for $CC option to enable C99 features... " >&6; }
4388 if test ${ac_cv_prog_cc_c99+y}
4389 then :
4390 printf %s "(cached) " >&6
4391 else case e in #(
4392 e) ac_cv_prog_cc_c99=no
4393 ac_save_CC=$CC
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 $ac_c_conftest_c99_program
4397 _ACEOF
4398 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4399 do
4400 CC="$ac_save_CC $ac_arg"
4401 if ac_fn_c_try_compile "$LINENO"
4402 then :
4403 ac_cv_prog_cc_c99=$ac_arg
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.beam
4406 test "x$ac_cv_prog_cc_c99" != "xno" && break
4407 done
4408 rm -f conftest.$ac_ext
4409 CC=$ac_save_CC ;;
4410 esac
4411 fi
4412
4413 if test "x$ac_cv_prog_cc_c99" = xno
4414 then :
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4416 printf "%s\n" "unsupported" >&6; }
4417 else case e in #(
4418 e) if test "x$ac_cv_prog_cc_c99" = x
4419 then :
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4421 printf "%s\n" "none needed" >&6; }
4422 else case e in #(
4423 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4424 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4425 CC="$CC $ac_cv_prog_cc_c99" ;;
4426 esac
4427 fi
4428 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4429 ac_prog_cc_stdc=c99 ;;
4430 esac
4431 fi
4432 fi
4433 if test x$ac_prog_cc_stdc = xno
4434 then :
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4436 printf %s "checking for $CC option to enable C89 features... " >&6; }
4437 if test ${ac_cv_prog_cc_c89+y}
4438 then :
4439 printf %s "(cached) " >&6
4440 else case e in #(
4441 e) ac_cv_prog_cc_c89=no
4442 ac_save_CC=$CC
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 $ac_c_conftest_c89_program
4446 _ACEOF
4447 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4448 do
4449 CC="$ac_save_CC $ac_arg"
4450 if ac_fn_c_try_compile "$LINENO"
4451 then :
4452 ac_cv_prog_cc_c89=$ac_arg
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext conftest.beam
4455 test "x$ac_cv_prog_cc_c89" != "xno" && break
4456 done
4457 rm -f conftest.$ac_ext
4458 CC=$ac_save_CC ;;
4459 esac
4460 fi
4461
4462 if test "x$ac_cv_prog_cc_c89" = xno
4463 then :
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4465 printf "%s\n" "unsupported" >&6; }
4466 else case e in #(
4467 e) if test "x$ac_cv_prog_cc_c89" = x
4468 then :
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4470 printf "%s\n" "none needed" >&6; }
4471 else case e in #(
4472 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4473 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4474 CC="$CC $ac_cv_prog_cc_c89" ;;
4475 esac
4476 fi
4477 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4478 ac_prog_cc_stdc=c89 ;;
4479 esac
4480 fi
4481 fi
4482
4483 ac_ext=c
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489
4490 ac_ext=c
4491 ac_cpp='$CPP $CPPFLAGS'
4492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4496 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4497 if test ${am_cv_prog_cc_c_o+y}
4498 then :
4499 printf %s "(cached) " >&6
4500 else case e in #(
4501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503
4504 int
4505 main (void)
4506 {
4507
4508 ;
4509 return 0;
4510 }
4511 _ACEOF
4512 # Make sure it works both with $CC and with simple cc.
4513 # Following AC_PROG_CC_C_O, we do the test twice because some
4514 # compilers refuse to overwrite an existing .o file with -o,
4515 # though they will create one.
4516 am_cv_prog_cc_c_o=yes
4517 for am_i in 1 2; do
4518 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4519 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } \
4523 && test -f conftest2.$ac_objext; then
4524 : OK
4525 else
4526 am_cv_prog_cc_c_o=no
4527 break
4528 fi
4529 done
4530 rm -f core conftest*
4531 unset am_i ;;
4532 esac
4533 fi
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4535 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4536 if test "$am_cv_prog_cc_c_o" != yes; then
4537 # Losing compiler, so override with the script.
4538 # FIXME: It is wrong to rewrite CC.
4539 # But if we don't then we get into trouble of one sort or another.
4540 # A longer-term fix would be to have automake use am__CC in this case,
4541 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4542 CC="$am_aux_dir/compile $CC"
4543 fi
4544 ac_ext=c
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549
4550 DEPDIR="${am__leading_dot}deps"
4551
4552 ac_config_commands="$ac_config_commands depfiles"
4553
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4555 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4556 cat > confinc.mk << 'END'
4557 am__doit:
4558 @echo this is the am__doit target >confinc.out
4559 .PHONY: am__doit
4560 END
4561 am__include="#"
4562 am__quote=
4563 # BSD make does it like this.
4564 echo '.include "confinc.mk" # ignored' > confmf.BSD
4565 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4566 echo 'include confinc.mk # ignored' > confmf.GNU
4567 _am_result=no
4568 for s in GNU BSD; do
4569 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4570 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }
4574 case $?:`cat confinc.out 2>/dev/null` in #(
4575 '0:this is the am__doit target') :
4576 case $s in #(
4577 BSD) :
4578 am__include='.include' am__quote='"' ;; #(
4579 *) :
4580 am__include='include' am__quote='' ;;
4581 esac ;; #(
4582 *) :
4583 ;;
4584 esac
4585 if test "$am__include" != "#"; then
4586 _am_result="yes ($s style)"
4587 break
4588 fi
4589 done
4590 rm -f confinc.* confmf.*
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4592 printf "%s\n" "${_am_result}" >&6; }
4593
4594 # Check whether --enable-dependency-tracking was given.
4595 if test ${enable_dependency_tracking+y}
4596 then :
4597 enableval=$enable_dependency_tracking;
4598 fi
4599
4600 if test "x$enable_dependency_tracking" != xno; then
4601 am_depcomp="$ac_aux_dir/depcomp"
4602 AMDEPBACKSLASH='\'
4603 am__nodep='_no'
4604 fi
4605 if test "x$enable_dependency_tracking" != xno; then
4606 AMDEP_TRUE=
4607 AMDEP_FALSE='#'
4608 else
4609 AMDEP_TRUE='#'
4610 AMDEP_FALSE=
4611 fi
4612
4613
4614
4615 depcc="$CC" am_compiler_list=
4616
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4618 printf %s "checking dependency style of $depcc... " >&6; }
4619 if test ${am_cv_CC_dependencies_compiler_type+y}
4620 then :
4621 printf %s "(cached) " >&6
4622 else case e in #(
4623 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4624 # We make a subdir and do the tests there. Otherwise we can end up
4625 # making bogus files that we don't know about and never remove. For
4626 # instance it was reported that on HP-UX the gcc test will end up
4627 # making a dummy file named 'D' -- because '-MD' means "put the output
4628 # in D".
4629 rm -rf conftest.dir
4630 mkdir conftest.dir
4631 # Copy depcomp to subdir because otherwise we won't find it if we're
4632 # using a relative directory.
4633 cp "$am_depcomp" conftest.dir
4634 cd conftest.dir
4635 # We will build objects and dependencies in a subdirectory because
4636 # it helps to detect inapplicable dependency modes. For instance
4637 # both Tru64's cc and ICC support -MD to output dependencies as a
4638 # side effect of compilation, but ICC will put the dependencies in
4639 # the current directory while Tru64 will put them in the object
4640 # directory.
4641 mkdir sub
4642
4643 am_cv_CC_dependencies_compiler_type=none
4644 if test "$am_compiler_list" = ""; then
4645 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4646 fi
4647 am__universal=false
4648 case " $depcc " in #(
4649 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4650 esac
4651
4652 for depmode in $am_compiler_list; do
4653 # Setup a source with many dependencies, because some compilers
4654 # like to wrap large dependency lists on column 80 (with \), and
4655 # we should not choose a depcomp mode which is confused by this.
4656 #
4657 # We need to recreate these files for each test, as the compiler may
4658 # overwrite some of them when testing with obscure command lines.
4659 # This happens at least with the AIX C compiler.
4660 : > sub/conftest.c
4661 for i in 1 2 3 4 5 6; do
4662 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4663 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4664 # Solaris 10 /bin/sh.
4665 echo '/* dummy */' > sub/conftst$i.h
4666 done
4667 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4668
4669 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4670 # mode. It turns out that the SunPro C++ compiler does not properly
4671 # handle '-M -o', and we need to detect this. Also, some Intel
4672 # versions had trouble with output in subdirs.
4673 am__obj=sub/conftest.${OBJEXT-o}
4674 am__minus_obj="-o $am__obj"
4675 case $depmode in
4676 gcc)
4677 # This depmode causes a compiler race in universal mode.
4678 test "$am__universal" = false || continue
4679 ;;
4680 nosideeffect)
4681 # After this tag, mechanisms are not by side-effect, so they'll
4682 # only be used when explicitly requested.
4683 if test "x$enable_dependency_tracking" = xyes; then
4684 continue
4685 else
4686 break
4687 fi
4688 ;;
4689 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4690 # This compiler won't grok '-c -o', but also, the minuso test has
4691 # not run yet. These depmodes are late enough in the game, and
4692 # so weak that their functioning should not be impacted.
4693 am__obj=conftest.${OBJEXT-o}
4694 am__minus_obj=
4695 ;;
4696 none) break ;;
4697 esac
4698 if depmode=$depmode \
4699 source=sub/conftest.c object=$am__obj \
4700 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4701 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4702 >/dev/null 2>conftest.err &&
4703 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4705 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4707 # icc doesn't choke on unknown options, it will just issue warnings
4708 # or remarks (even with -Werror). So we grep stderr for any message
4709 # that says an option was ignored or not supported.
4710 # When given -MP, icc 7.0 and 7.1 complain thusly:
4711 # icc: Command line warning: ignoring option '-M'; no argument required
4712 # The diagnosis changed in icc 8.0:
4713 # icc: Command line remark: option '-MP' not supported
4714 if (grep 'ignoring option' conftest.err ||
4715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4716 am_cv_CC_dependencies_compiler_type=$depmode
4717 break
4718 fi
4719 fi
4720 done
4721
4722 cd ..
4723 rm -rf conftest.dir
4724 else
4725 am_cv_CC_dependencies_compiler_type=none
4726 fi
4727 ;;
4728 esac
4729 fi
4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4731 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4732 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4733
4734 if
4735 test "x$enable_dependency_tracking" != xno \
4736 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4737 am__fastdepCC_TRUE=
4738 am__fastdepCC_FALSE='#'
4739 else
4740 am__fastdepCC_TRUE='#'
4741 am__fastdepCC_FALSE=
4742 fi
4743
4744
4745 ac_ext=c
4746 ac_cpp='$CPP $CPPFLAGS'
4747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4751 printf %s "checking how to run the C preprocessor... " >&6; }
4752 # On Suns, sometimes $CPP names a directory.
4753 if test -n "$CPP" && test -d "$CPP"; then
4754 CPP=
4755 fi
4756 if test -z "$CPP"; then
4757 if test ${ac_cv_prog_CPP+y}
4758 then :
4759 printf %s "(cached) " >&6
4760 else case e in #(
4761 e) # Double quotes because $CC needs to be expanded
4762 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4763 do
4764 ac_preproc_ok=false
4765 for ac_c_preproc_warn_flag in '' yes
4766 do
4767 # Use a header file that comes with gcc, so configuring glibc
4768 # with a fresh cross-compiler works.
4769 # On the NeXT, cc -E runs the code through the compiler's parser,
4770 # not just through cpp. "Syntax error" is here to catch this case.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 #include <limits.h>
4774 Syntax error
4775 _ACEOF
4776 if ac_fn_c_try_cpp "$LINENO"
4777 then :
4778
4779 else case e in #(
4780 e) # Broken: fails on valid input.
4781 continue ;;
4782 esac
4783 fi
4784 rm -f conftest.err conftest.i conftest.$ac_ext
4785
4786 # OK, works on sane cases. Now check whether nonexistent headers
4787 # can be detected and how.
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #include <ac_nonexistent.h>
4791 _ACEOF
4792 if ac_fn_c_try_cpp "$LINENO"
4793 then :
4794 # Broken: success on invalid input.
4795 continue
4796 else case e in #(
4797 e) # Passes both tests.
4798 ac_preproc_ok=:
4799 break ;;
4800 esac
4801 fi
4802 rm -f conftest.err conftest.i conftest.$ac_ext
4803
4804 done
4805 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4806 rm -f conftest.i conftest.err conftest.$ac_ext
4807 if $ac_preproc_ok
4808 then :
4809 break
4810 fi
4811
4812 done
4813 ac_cv_prog_CPP=$CPP
4814 ;;
4815 esac
4816 fi
4817 CPP=$ac_cv_prog_CPP
4818 else
4819 ac_cv_prog_CPP=$CPP
4820 fi
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4822 printf "%s\n" "$CPP" >&6; }
4823 ac_preproc_ok=false
4824 for ac_c_preproc_warn_flag in '' yes
4825 do
4826 # Use a header file that comes with gcc, so configuring glibc
4827 # with a fresh cross-compiler works.
4828 # On the NeXT, cc -E runs the code through the compiler's parser,
4829 # not just through cpp. "Syntax error" is here to catch this case.
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 #include <limits.h>
4833 Syntax error
4834 _ACEOF
4835 if ac_fn_c_try_cpp "$LINENO"
4836 then :
4837
4838 else case e in #(
4839 e) # Broken: fails on valid input.
4840 continue ;;
4841 esac
4842 fi
4843 rm -f conftest.err conftest.i conftest.$ac_ext
4844
4845 # OK, works on sane cases. Now check whether nonexistent headers
4846 # can be detected and how.
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 #include <ac_nonexistent.h>
4850 _ACEOF
4851 if ac_fn_c_try_cpp "$LINENO"
4852 then :
4853 # Broken: success on invalid input.
4854 continue
4855 else case e in #(
4856 e) # Passes both tests.
4857 ac_preproc_ok=:
4858 break ;;
4859 esac
4860 fi
4861 rm -f conftest.err conftest.i conftest.$ac_ext
4862
4863 done
4864 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4865 rm -f conftest.i conftest.err conftest.$ac_ext
4866 if $ac_preproc_ok
4867 then :
4868
4869 else case e in #(
4870 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4871 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4872 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4873 See 'config.log' for more details" "$LINENO" 5; } ;;
4874 esac
4875 fi
4876
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882
4883
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4885 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4886 set x ${MAKE-make}
4887 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4888 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4889 then :
4890 printf %s "(cached) " >&6
4891 else case e in #(
4892 e) cat >conftest.make <<\_ACEOF
4893 SHELL = /bin/sh
4894 all:
4895 @echo '@@@%%%=$(MAKE)=@@@%%%'
4896 _ACEOF
4897 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4898 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4899 *@@@%%%=?*=@@@%%%*)
4900 eval ac_cv_prog_make_${ac_make}_set=yes;;
4901 *)
4902 eval ac_cv_prog_make_${ac_make}_set=no;;
4903 esac
4904 rm -f conftest.make ;;
4905 esac
4906 fi
4907 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4909 printf "%s\n" "yes" >&6; }
4910 SET_MAKE=
4911 else
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 printf "%s\n" "no" >&6; }
4914 SET_MAKE="MAKE=${MAKE-make}"
4915 fi
4916
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4918 printf %s "checking whether ln -s works... " >&6; }
4919 LN_S=$as_ln_s
4920 if test "$LN_S" = "ln -s"; then
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4922 printf "%s\n" "yes" >&6; }
4923 else
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4925 printf "%s\n" "no, using $LN_S" >&6; }
4926 fi
4927
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4929 printf %s "checking for grep that handles long lines and -e... " >&6; }
4930 if test ${ac_cv_path_GREP+y}
4931 then :
4932 printf %s "(cached) " >&6
4933 else case e in #(
4934 e) if test -z "$GREP"; then
4935 ac_path_GREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4939 do
4940 IFS=$as_save_IFS
4941 case $as_dir in #(((
4942 '') as_dir=./ ;;
4943 */) ;;
4944 *) as_dir=$as_dir/ ;;
4945 esac
4946 for ac_prog in grep ggrep
4947 do
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4950 as_fn_executable_p "$ac_path_GREP" || continue
4951 # Check for GNU ac_path_GREP and select it if it is found.
4952 # Check for GNU $ac_path_GREP
4953 case `"$ac_path_GREP" --version 2>&1` in #(
4954 *GNU*)
4955 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4956 #(
4957 *)
4958 ac_count=0
4959 printf %s 0123456789 >"conftest.in"
4960 while :
4961 do
4962 cat "conftest.in" "conftest.in" >"conftest.tmp"
4963 mv "conftest.tmp" "conftest.in"
4964 cp "conftest.in" "conftest.nl"
4965 printf "%s\n" 'GREP' >> "conftest.nl"
4966 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4968 as_fn_arith $ac_count + 1 && ac_count=$as_val
4969 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4970 # Best one so far, save it but keep looking for a better one
4971 ac_cv_path_GREP="$ac_path_GREP"
4972 ac_path_GREP_max=$ac_count
4973 fi
4974 # 10*(2^10) chars as input seems more than enough
4975 test $ac_count -gt 10 && break
4976 done
4977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4978 esac
4979
4980 $ac_path_GREP_found && break 3
4981 done
4982 done
4983 done
4984 IFS=$as_save_IFS
4985 if test -z "$ac_cv_path_GREP"; then
4986 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4987 fi
4988 else
4989 ac_cv_path_GREP=$GREP
4990 fi
4991 ;;
4992 esac
4993 fi
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4995 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4996 GREP="$ac_cv_path_GREP"
4997
4998
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5000 printf %s "checking for egrep... " >&6; }
5001 if test ${ac_cv_path_EGREP+y}
5002 then :
5003 printf %s "(cached) " >&6
5004 else case e in #(
5005 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5006 then ac_cv_path_EGREP="$GREP -E"
5007 else
5008 if test -z "$EGREP"; then
5009 ac_path_EGREP_found=false
5010 # Loop through the user's path and test for each of PROGNAME-LIST
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5013 do
5014 IFS=$as_save_IFS
5015 case $as_dir in #(((
5016 '') as_dir=./ ;;
5017 */) ;;
5018 *) as_dir=$as_dir/ ;;
5019 esac
5020 for ac_prog in egrep
5021 do
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5024 as_fn_executable_p "$ac_path_EGREP" || continue
5025 # Check for GNU ac_path_EGREP and select it if it is found.
5026 # Check for GNU $ac_path_EGREP
5027 case `"$ac_path_EGREP" --version 2>&1` in #(
5028 *GNU*)
5029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5030 #(
5031 *)
5032 ac_count=0
5033 printf %s 0123456789 >"conftest.in"
5034 while :
5035 do
5036 cat "conftest.in" "conftest.in" >"conftest.tmp"
5037 mv "conftest.tmp" "conftest.in"
5038 cp "conftest.in" "conftest.nl"
5039 printf "%s\n" 'EGREP' >> "conftest.nl"
5040 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5042 as_fn_arith $ac_count + 1 && ac_count=$as_val
5043 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5044 # Best one so far, save it but keep looking for a better one
5045 ac_cv_path_EGREP="$ac_path_EGREP"
5046 ac_path_EGREP_max=$ac_count
5047 fi
5048 # 10*(2^10) chars as input seems more than enough
5049 test $ac_count -gt 10 && break
5050 done
5051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5052 esac
5053
5054 $ac_path_EGREP_found && break 3
5055 done
5056 done
5057 done
5058 IFS=$as_save_IFS
5059 if test -z "$ac_cv_path_EGREP"; then
5060 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5061 fi
5062 else
5063 ac_cv_path_EGREP=$EGREP
5064 fi
5065
5066 fi ;;
5067 esac
5068 fi
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5070 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5071 EGREP="$ac_cv_path_EGREP"
5072
5073 EGREP_TRADITIONAL=$EGREP
5074 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5075
5076
5077
5078 if test -n "$ac_tool_prefix"; then
5079 for ac_prog in ar lib "link -lib"
5080 do
5081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 printf %s "checking for $ac_word... " >&6; }
5085 if test ${ac_cv_prog_AR+y}
5086 then :
5087 printf %s "(cached) " >&6
5088 else case e in #(
5089 e) if test -n "$AR"; then
5090 ac_cv_prog_AR="$AR" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095 IFS=$as_save_IFS
5096 case $as_dir in #(((
5097 '') as_dir=./ ;;
5098 */) ;;
5099 *) as_dir=$as_dir/ ;;
5100 esac
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi ;;
5112 esac
5113 fi
5114 AR=$ac_cv_prog_AR
5115 if test -n "$AR"; then
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5117 printf "%s\n" "$AR" >&6; }
5118 else
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 printf "%s\n" "no" >&6; }
5121 fi
5122
5123
5124 test -n "$AR" && break
5125 done
5126 fi
5127 if test -z "$AR"; then
5128 ac_ct_AR=$AR
5129 for ac_prog in ar lib "link -lib"
5130 do
5131 # Extract the first word of "$ac_prog", so it can be a program name with args.
5132 set dummy $ac_prog; ac_word=$2
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 printf %s "checking for $ac_word... " >&6; }
5135 if test ${ac_cv_prog_ac_ct_AR+y}
5136 then :
5137 printf %s "(cached) " >&6
5138 else case e in #(
5139 e) if test -n "$ac_ct_AR"; then
5140 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145 IFS=$as_save_IFS
5146 case $as_dir in #(((
5147 '') as_dir=./ ;;
5148 */) ;;
5149 *) as_dir=$as_dir/ ;;
5150 esac
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_ac_ct_AR="$ac_prog"
5154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161 fi ;;
5162 esac
5163 fi
5164 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5165 if test -n "$ac_ct_AR"; then
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5167 printf "%s\n" "$ac_ct_AR" >&6; }
5168 else
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 printf "%s\n" "no" >&6; }
5171 fi
5172
5173
5174 test -n "$ac_ct_AR" && break
5175 done
5176
5177 if test "x$ac_ct_AR" = x; then
5178 AR="false"
5179 else
5180 case $cross_compiling:$ac_tool_warned in
5181 yes:)
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5183 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184 ac_tool_warned=yes ;;
5185 esac
5186 AR=$ac_ct_AR
5187 fi
5188 fi
5189
5190 : ${AR=ar}
5191
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5193 printf %s "checking the archiver ($AR) interface... " >&6; }
5194 if test ${am_cv_ar_interface+y}
5195 then :
5196 printf %s "(cached) " >&6
5197 else case e in #(
5198 e) ac_ext=c
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204 am_cv_ar_interface=ar
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 int some_variable = 0;
5208 _ACEOF
5209 if ac_fn_c_try_compile "$LINENO"
5210 then :
5211 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5213 (eval $am_ar_try) 2>&5
5214 ac_status=$?
5215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216 test $ac_status = 0; }
5217 if test "$ac_status" -eq 0; then
5218 am_cv_ar_interface=ar
5219 else
5220 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5222 (eval $am_ar_try) 2>&5
5223 ac_status=$?
5224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225 test $ac_status = 0; }
5226 if test "$ac_status" -eq 0; then
5227 am_cv_ar_interface=lib
5228 else
5229 am_cv_ar_interface=unknown
5230 fi
5231 fi
5232 rm -f conftest.lib libconftest.a
5233
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241 ;;
5242 esac
5243 fi
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5245 printf "%s\n" "$am_cv_ar_interface" >&6; }
5246
5247 case $am_cv_ar_interface in
5248 ar)
5249 ;;
5250 lib)
5251 # Microsoft lib, so override with the ar-lib wrapper script.
5252 # FIXME: It is wrong to rewrite AR.
5253 # But if we don't then we get into trouble of one sort or another.
5254 # A longer-term fix would be to have automake use am__AR in this case,
5255 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5256 # similar.
5257 AR="$am_aux_dir/ar-lib $AR"
5258 ;;
5259 unknown)
5260 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5261 ;;
5262 esac
5263
5264
5265 # Check if LD supports linker scripts,
5266 # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
5267 # Check whether --enable-ld-version-script was given.
5268 if test ${enable_ld_version_script+y}
5269 then :
5270 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
5271 fi
5272
5273 if test -z "$have_ld_version_script"; then
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
5275 printf %s "checking if LD -Wl,--version-script works... " >&6; }
5276 save_LDFLAGS="$LDFLAGS"
5277 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
5278 cat > conftest.map <<EOF
5279 VERS_1 {
5280 global: sym;
5281 };
5282
5283 VERS_2 {
5284 global: sym;
5285 } VERS_1;
5286 EOF
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289
5290 int
5291 main (void)
5292 {
5293
5294 ;
5295 return 0;
5296 }
5297 _ACEOF
5298 if ac_fn_c_try_link "$LINENO"
5299 then :
5300 have_ld_version_script=yes
5301 else case e in #(
5302 e) have_ld_version_script=no ;;
5303 esac
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5306 conftest$ac_exeext conftest.$ac_ext
5307 rm -f conftest.map
5308 LDFLAGS="$save_LDFLAGS"
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
5310 printf "%s\n" "$have_ld_version_script" >&6; }
5311 fi
5312 if test "$have_ld_version_script" = "yes"; then
5313 HAVE_LD_VERSION_SCRIPT_TRUE=
5314 HAVE_LD_VERSION_SCRIPT_FALSE='#'
5315 else
5316 HAVE_LD_VERSION_SCRIPT_TRUE='#'
5317 HAVE_LD_VERSION_SCRIPT_FALSE=
5318 fi
5319
5320
5321 # See if compiler supports prototypes.
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5323 printf %s "checking for function prototypes... " >&6; }
5324 if test ${ijg_cv_have_prototypes+y}
5325 then :
5326 printf %s "(cached) " >&6
5327 else case e in #(
5328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330
5331 int testfunction (int arg1, int * arg2); /* check prototypes */
5332 struct methods_struct { /* check method-pointer declarations */
5333 int (*error_exit) (char *msgtext);
5334 int (*trace_message) (char *msgtext);
5335 int (*another_method) (void);
5336 };
5337 int testfunction (int arg1, int * arg2) /* check definitions */
5338 { return arg2[arg1]; }
5339 int test2function (void) /* check void arg list */
5340 { return 0; }
5341
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"
5344 then :
5345 ijg_cv_have_prototypes=yes
5346 else case e in #(
5347 e) ijg_cv_have_prototypes=no ;;
5348 esac
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5351 esac
5352 fi
5353
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
5355 printf "%s\n" "$ijg_cv_have_prototypes" >&6; }
5356 if test $ijg_cv_have_prototypes = yes; then
5357
5358 printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h
5359
5360 else
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not seem to know about function prototypes.
5362 Perhaps it needs a special switch to enable ANSI C mode.
5363 If so, we recommend running configure like this:
5364 ./configure CC='cc -switch'
5365 where -switch is the proper switch." >&5
5366 printf "%s\n" "$as_me: WARNING: Your compiler does not seem to know about function prototypes.
5367 Perhaps it needs a special switch to enable ANSI C mode.
5368 If so, we recommend running configure like this:
5369 ./configure CC='cc -switch'
5370 where -switch is the proper switch." >&2;}
5371 fi
5372
5373 # Check header files
5374 ac_header= ac_cache=
5375 for ac_item in $ac_header_c_list
5376 do
5377 if test $ac_cache; then
5378 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5379 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5380 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5381 fi
5382 ac_header= ac_cache=
5383 elif test $ac_header; then
5384 ac_cache=$ac_item
5385 else
5386 ac_header=$ac_item
5387 fi
5388 done
5389
5390
5391
5392
5393
5394
5395
5396
5397 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5398 then :
5399
5400 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5401
5402 fi
5403 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
5404 if test "x$ac_cv_header_stddef_h" = xyes
5405 then :
5406 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
5407
5408 fi
5409 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5410 if test "x$ac_cv_header_stdlib_h" = xyes
5411 then :
5412 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
5413
5414 fi
5415 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5416 if test "x$ac_cv_header_locale_h" = xyes
5417 then :
5418 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
5419
5420 fi
5421
5422 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5423 if test "x$ac_cv_header_string_h" = xyes
5424 then :
5425
5426 else case e in #(
5427 e)
5428 printf "%s\n" "#define NEED_BSD_STRINGS 1" >>confdefs.h
5429 ;;
5430 esac
5431 fi
5432
5433
5434 # See whether type size_t is defined in any ANSI-standard places;
5435 # if not, perhaps it is defined in <sys/types.h>.
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
5437 printf %s "checking for size_t... " >&6; }
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440
5441 #ifdef HAVE_STDDEF_H
5442 #include <stddef.h>
5443 #endif
5444 #ifdef HAVE_STDLIB_H
5445 #include <stdlib.h>
5446 #endif
5447 #include <stdio.h>
5448 #ifdef NEED_BSD_STRINGS
5449 #include <strings.h>
5450 #else
5451 #include <string.h>
5452 #endif
5453 typedef size_t my_size_t;
5454
5455 int
5456 main (void)
5457 {
5458 my_size_t foovar;
5459 ;
5460 return 0;
5461 }
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"
5464 then :
5465 ijg_size_t_ok=yes
5466 else case e in #(
5467 e) ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h" ;;
5468 esac
5469 fi
5470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5472 printf "%s\n" "$ijg_size_t_ok" >&6; }
5473 if test "$ijg_size_t_ok" != yes; then
5474
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
5476 printf %s "checking for egrep -e... " >&6; }
5477 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
5478 then :
5479 printf %s "(cached) " >&6
5480 else case e in #(
5481 e) if test -z "$EGREP_TRADITIONAL"; then
5482 ac_path_EGREP_TRADITIONAL_found=false
5483 # Loop through the user's path and test for each of PROGNAME-LIST
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5486 do
5487 IFS=$as_save_IFS
5488 case $as_dir in #(((
5489 '') as_dir=./ ;;
5490 */) ;;
5491 *) as_dir=$as_dir/ ;;
5492 esac
5493 for ac_prog in grep ggrep
5494 do
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
5497 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
5498 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
5499 # Check for GNU $ac_path_EGREP_TRADITIONAL
5500 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
5501 *GNU*)
5502 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
5503 #(
5504 *)
5505 ac_count=0
5506 printf %s 0123456789 >"conftest.in"
5507 while :
5508 do
5509 cat "conftest.in" "conftest.in" >"conftest.tmp"
5510 mv "conftest.tmp" "conftest.in"
5511 cp "conftest.in" "conftest.nl"
5512 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
5513 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5515 as_fn_arith $ac_count + 1 && ac_count=$as_val
5516 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
5517 # Best one so far, save it but keep looking for a better one
5518 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
5519 ac_path_EGREP_TRADITIONAL_max=$ac_count
5520 fi
5521 # 10*(2^10) chars as input seems more than enough
5522 test $ac_count -gt 10 && break
5523 done
5524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5525 esac
5526
5527 $ac_path_EGREP_TRADITIONAL_found && break 3
5528 done
5529 done
5530 done
5531 IFS=$as_save_IFS
5532 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
5533 :
5534 fi
5535 else
5536 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
5537 fi
5538
5539 if test "$ac_cv_path_EGREP_TRADITIONAL"
5540 then :
5541 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
5542 else case e in #(
5543 e) if test -z "$EGREP_TRADITIONAL"; then
5544 ac_path_EGREP_TRADITIONAL_found=false
5545 # Loop through the user's path and test for each of PROGNAME-LIST
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5548 do
5549 IFS=$as_save_IFS
5550 case $as_dir in #(((
5551 '') as_dir=./ ;;
5552 */) ;;
5553 *) as_dir=$as_dir/ ;;
5554 esac
5555 for ac_prog in egrep
5556 do
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
5559 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
5560 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
5561 # Check for GNU $ac_path_EGREP_TRADITIONAL
5562 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
5563 *GNU*)
5564 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
5565 #(
5566 *)
5567 ac_count=0
5568 printf %s 0123456789 >"conftest.in"
5569 while :
5570 do
5571 cat "conftest.in" "conftest.in" >"conftest.tmp"
5572 mv "conftest.tmp" "conftest.in"
5573 cp "conftest.in" "conftest.nl"
5574 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
5575 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5577 as_fn_arith $ac_count + 1 && ac_count=$as_val
5578 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
5579 # Best one so far, save it but keep looking for a better one
5580 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
5581 ac_path_EGREP_TRADITIONAL_max=$ac_count
5582 fi
5583 # 10*(2^10) chars as input seems more than enough
5584 test $ac_count -gt 10 && break
5585 done
5586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5587 esac
5588
5589 $ac_path_EGREP_TRADITIONAL_found && break 3
5590 done
5591 done
5592 done
5593 IFS=$as_save_IFS
5594 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
5595 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5596 fi
5597 else
5598 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
5599 fi
5600 ;;
5601 esac
5602 fi ;;
5603 esac
5604 fi
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
5606 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
5607 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
5608
5609 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5610 if test "x$ac_cv_header_sys_types_h" = xyes
5611 then :
5612
5613 printf "%s\n" "#define NEED_SYS_TYPES_H 1" >>confdefs.h
5614
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include <sys/types.h>
5618 _ACEOF
5619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5620 $EGREP_TRADITIONAL "size_t" >/dev/null 2>&1
5621 then :
5622 ijg_size_t_ok="size_t is in sys/types.h"
5623 else case e in #(
5624 e) ijg_size_t_ok=no ;;
5625 esac
5626 fi
5627 rm -rf conftest*
5628
5629 else case e in #(
5630 e) ijg_size_t_ok=no ;;
5631 esac
5632 fi
5633
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5635 printf "%s\n" "$ijg_size_t_ok" >&6; }
5636 if test "$ijg_size_t_ok" = no; then
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Type size_t is not defined in any of the usual places.
5638 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&5
5639 printf "%s\n" "$as_me: WARNING: Type size_t is not defined in any of the usual places.
5640 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&2;}
5641 fi
5642 fi
5643
5644 # Check compiler characteristics
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
5646 printf %s "checking for type unsigned char... " >&6; }
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649
5650 int
5651 main (void)
5652 {
5653 unsigned char un_char;
5654 ;
5655 return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"
5659 then :
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661 printf "%s\n" "yes" >&6; }
5662
5663 printf "%s\n" "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
5664
5665 else case e in #(
5666 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 printf "%s\n" "no" >&6; } ;;
5668 esac
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5671
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
5673 printf %s "checking for type unsigned short... " >&6; }
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676
5677 int
5678 main (void)
5679 {
5680 unsigned short un_short;
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"
5686 then :
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5688 printf "%s\n" "yes" >&6; }
5689
5690 printf "%s\n" "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
5691
5692 else case e in #(
5693 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 printf "%s\n" "no" >&6; } ;;
5695 esac
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5698
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
5700 printf %s "checking for type void... " >&6; }
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703
5704 /* Caution: a C++ compiler will insist on valid prototypes */
5705 typedef void * void_ptr; /* check void * */
5706 #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
5707 typedef void (*void_func) (int a, int b);
5708 #else
5709 typedef void (*void_func) ();
5710 #endif
5711
5712 #ifdef HAVE_PROTOTYPES /* check void function result */
5713 void test3function (void_ptr arg1, void_func arg2)
5714 #else
5715 void test3function (arg1, arg2)
5716 void_ptr arg1;
5717 void_func arg2;
5718 #endif
5719 {
5720 char * locptr = (char *) arg1; /* check casting to and from void * */
5721 arg1 = (void *) locptr;
5722 (*arg2) (1, 2); /* check call of fcn returning void */
5723 }
5724
5725 int
5726 main (void)
5727 {
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"
5734 then :
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5736 printf "%s\n" "yes" >&6; }
5737 else case e in #(
5738 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 printf "%s\n" "no" >&6; }
5740
5741 printf "%s\n" "#define void char" >>confdefs.h
5742 ;;
5743 esac
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5747 printf %s "checking for an ANSI C-conforming const... " >&6; }
5748 if test ${ac_cv_c_const+y}
5749 then :
5750 printf %s "(cached) " >&6
5751 else case e in #(
5752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754
5755 int
5756 main (void)
5757 {
5758
5759 #ifndef __cplusplus
5760 /* Ultrix mips cc rejects this sort of thing. */
5761 typedef int charset[2];
5762 const charset cs = { 0, 0 };
5763 /* SunOS 4.1.1 cc rejects this. */
5764 char const *const *pcpcc;
5765 char **ppc;
5766 /* NEC SVR4.0.2 mips cc rejects this. */
5767 struct point {int x, y;};
5768 static struct point const zero = {0,0};
5769 /* IBM XL C 1.02.0.0 rejects this.
5770 It does not let you subtract one const X* pointer from another in
5771 an arm of an if-expression whose if-part is not a constant
5772 expression */
5773 const char *g = "string";
5774 pcpcc = &g + (g ? g-g : 0);
5775 /* HPUX 7.0 cc rejects these. */
5776 ++pcpcc;
5777 ppc = (char**) pcpcc;
5778 pcpcc = (char const *const *) ppc;
5779 { /* SCO 3.2v4 cc rejects this sort of thing. */
5780 char tx;
5781 char *t = &tx;
5782 char const *s = 0 ? (char *) 0 : (char const *) 0;
5783
5784 *t++ = 0;
5785 if (s) return 0;
5786 }
5787 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5788 int x[] = {25, 17};
5789 const int *foo = &x[0];
5790 ++foo;
5791 }
5792 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5793 typedef const int *iptr;
5794 iptr p = 0;
5795 ++p;
5796 }
5797 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5799 struct s { int j; const int *ap[3]; } bx;
5800 struct s *b = &bx; b->j = 5;
5801 }
5802 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5803 const int foo = 10;
5804 if (!foo) return 0;
5805 }
5806 return !cs[0] && !zero.x;
5807 #endif
5808
5809 ;
5810 return 0;
5811 }
5812 _ACEOF
5813 if ac_fn_c_try_compile "$LINENO"
5814 then :
5815 ac_cv_c_const=yes
5816 else case e in #(
5817 e) ac_cv_c_const=no ;;
5818 esac
5819 fi
5820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5821 esac
5822 fi
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5824 printf "%s\n" "$ac_cv_c_const" >&6; }
5825 if test $ac_cv_c_const = no; then
5826
5827 printf "%s\n" "#define const /**/" >>confdefs.h
5828
5829 fi
5830
5831
5832 # Check for non-broken inline under various spellings
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5834 printf %s "checking for inline... " >&6; }
5835 ijg_cv_inline=""
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838
5839 int
5840 main (void)
5841 {
5842 } __inline__ int foo() { return 0; }
5843 int bar() { return foo();
5844 ;
5845 return 0;
5846 }
5847 _ACEOF
5848 if ac_fn_c_try_compile "$LINENO"
5849 then :
5850 ijg_cv_inline="__inline__"
5851 else case e in #(
5852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854
5855 int
5856 main (void)
5857 {
5858 } __inline int foo() { return 0; }
5859 int bar() { return foo();
5860 ;
5861 return 0;
5862 }
5863 _ACEOF
5864 if ac_fn_c_try_compile "$LINENO"
5865 then :
5866 ijg_cv_inline="__inline"
5867 else case e in #(
5868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870
5871 int
5872 main (void)
5873 {
5874 } inline int foo() { return 0; }
5875 int bar() { return foo();
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 if ac_fn_c_try_compile "$LINENO"
5881 then :
5882 ijg_cv_inline="inline"
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5885 esac
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5888 esac
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
5892 printf "%s\n" "$ijg_cv_inline" >&6; }
5893
5894 printf "%s\n" "#define INLINE $ijg_cv_inline" >>confdefs.h
5895
5896
5897 # We cannot check for bogus warnings, but at least we can check for errors
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
5899 printf %s "checking for broken incomplete types... " >&6; }
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902
5903 typedef struct undefined_structure * undef_struct_ptr;
5904
5905 int
5906 main (void)
5907 {
5908
5909 ;
5910 return 0;
5911 }
5912 _ACEOF
5913 if ac_fn_c_try_compile "$LINENO"
5914 then :
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5916 printf "%s\n" "ok" >&6; }
5917 else case e in #(
5918 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5919 printf "%s\n" "broken" >&6; }
5920
5921 printf "%s\n" "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
5922 ;;
5923 esac
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5926
5927 # Test whether global names are unique to at least 15 chars
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
5929 printf %s "checking for short external names... " >&6; }
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932
5933 int possibly_duplicate_function () { return 0; }
5934 int possibly_dupli_function () { return 1; }
5935
5936 int
5937 main (void)
5938 {
5939
5940 ;
5941 return 0;
5942 }
5943 _ACEOF
5944 if ac_fn_c_try_link "$LINENO"
5945 then :
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5947 printf "%s\n" "ok" >&6; }
5948 else case e in #(
5949 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: short" >&5
5950 printf "%s\n" "short" >&6; }
5951
5952 printf "%s\n" "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
5953 ;;
5954 esac
5955 fi
5956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5957 conftest$ac_exeext conftest.$ac_ext
5958
5959 # Run-time checks
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
5961 printf %s "checking to see if char is signed... " >&6; }
5962 if test "$cross_compiling" = yes
5963 then :
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Assuming that char is signed on target machine.
5965 If it is unsigned, this will be a little bit inefficient." >&5
5966 printf "%s\n" "$as_me: WARNING: Assuming that char is signed on target machine.
5967 If it is unsigned, this will be a little bit inefficient." >&2;}
5968
5969 else case e in #(
5970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972
5973 #ifdef HAVE_STDLIB_H
5974 #include <stdlib.h>
5975 #endif
5976 #include <stdio.h>
5977 #ifdef HAVE_PROTOTYPES
5978 int is_char_signed (int arg)
5979 #else
5980 int is_char_signed (arg)
5981 int arg;
5982 #endif
5983 {
5984 if (arg == 189) { /* expected result for unsigned char */
5985 return 0; /* type char is unsigned */
5986 }
5987 else if (arg != -67) { /* expected result for signed char */
5988 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
5989 printf("I fear the JPEG software will not work at all.\n\n");
5990 }
5991 return 1; /* assume char is signed otherwise */
5992 }
5993 char signed_char_check = (char) (-67);
5994 int main() {
5995 exit(is_char_signed((int) signed_char_check));
5996 }
5997 _ACEOF
5998 if ac_fn_c_try_run "$LINENO"
5999 then :
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 printf "%s\n" "no" >&6; }
6002
6003 printf "%s\n" "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
6004
6005 else case e in #(
6006 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6007 printf "%s\n" "yes" >&6; } ;;
6008 esac
6009 fi
6010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6011 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6012 esac
6013 fi
6014
6015
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
6017 printf %s "checking to see if right shift is signed... " >&6; }
6018 if test "$cross_compiling" = yes
6019 then :
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
6021 printf "%s\n" "Assuming that right shift is signed on target machine." >&6; }
6022 else case e in #(
6023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025
6026 #ifdef HAVE_STDLIB_H
6027 #include <stdlib.h>
6028 #endif
6029 #include <stdio.h>
6030 #ifdef HAVE_PROTOTYPES
6031 int is_shifting_signed (long arg)
6032 #else
6033 int is_shifting_signed (arg)
6034 long arg;
6035 #endif
6036 /* See whether right-shift on a long is signed or not. */
6037 {
6038 long res = arg >> 4;
6039
6040 if (res == -0x7F7E80CL) { /* expected result for signed shift */
6041 return 1; /* right shift is signed */
6042 }
6043 /* see if unsigned-shift hack will fix it. */
6044 /* we can't just test exact value since it depends on width of long... */
6045 res |= (~0L) << (32-4);
6046 if (res == -0x7F7E80CL) { /* expected result now? */
6047 return 0; /* right shift is unsigned */
6048 }
6049 printf("Right shift isn't acting as I expect it to.\n");
6050 printf("I fear the JPEG software will not work at all.\n\n");
6051 return 0; /* try it with unsigned anyway */
6052 }
6053 int main() {
6054 exit(is_shifting_signed(-0x7F7E80B1L));
6055 }
6056 _ACEOF
6057 if ac_fn_c_try_run "$LINENO"
6058 then :
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 printf "%s\n" "no" >&6; }
6061
6062 printf "%s\n" "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
6063
6064 else case e in #(
6065 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6066 printf "%s\n" "yes" >&6; } ;;
6067 esac
6068 fi
6069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6070 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6071 esac
6072 fi
6073
6074
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
6076 printf %s "checking to see if fopen accepts b spec... " >&6; }
6077 if test "$cross_compiling" = yes
6078 then :
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
6080 printf "%s\n" "Assuming that it does." >&6; }
6081 else case e in #(
6082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084
6085 #ifdef HAVE_STDLIB_H
6086 #include <stdlib.h>
6087 #endif
6088 #include <stdio.h>
6089 int main() {
6090 if (fopen("conftestdata", "wb") != NULL)
6091 exit(0);
6092 exit(1);
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_run "$LINENO"
6096 then :
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6098 printf "%s\n" "yes" >&6; }
6099 else case e in #(
6100 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 printf "%s\n" "no" >&6; }
6102
6103 printf "%s\n" "#define DONT_USE_B_MODE 1" >>confdefs.h
6104 ;;
6105 esac
6106 fi
6107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6108 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6109 esac
6110 fi
6111
6112
6113 # Configure libtool
6114 case `pwd` in
6115 *\ * | *\ *)
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6117 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6118 esac
6119
6120
6121
6122 macro_version='2.4.7'
6123 macro_revision='2.4.7'
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138 ltmain=$ac_aux_dir/ltmain.sh
6139
6140 # Backslashify metacharacters that are still active within
6141 # double-quoted strings.
6142 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6143
6144 # Same as above, but do not quote variable references.
6145 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6146
6147 # Sed substitution to delay expansion of an escaped shell variable in a
6148 # double_quote_subst'ed string.
6149 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6150
6151 # Sed substitution to delay expansion of an escaped single quote.
6152 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6153
6154 # Sed substitution to avoid accidental globbing in evaled expressions
6155 no_glob_subst='s/\*/\\\*/g'
6156
6157 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6158 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6159 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6160
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6162 printf %s "checking how to print strings... " >&6; }
6163 # Test print first, because it will be a builtin if present.
6164 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6165 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6166 ECHO='print -r --'
6167 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6168 ECHO='printf %s\n'
6169 else
6170 # Use this function as a fallback that always works.
6171 func_fallback_echo ()
6172 {
6173 eval 'cat <<_LTECHO_EOF
6174 $1
6175 _LTECHO_EOF'
6176 }
6177 ECHO='func_fallback_echo'
6178 fi
6179
6180 # func_echo_all arg...
6181 # Invoke $ECHO with all args, space-separated.
6182 func_echo_all ()
6183 {
6184 $ECHO ""
6185 }
6186
6187 case $ECHO in
6188 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6189 printf "%s\n" "printf" >&6; } ;;
6190 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6191 printf "%s\n" "print -r" >&6; } ;;
6192 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6193 printf "%s\n" "cat" >&6; } ;;
6194 esac
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6210 printf %s "checking for a sed that does not truncate output... " >&6; }
6211 if test ${ac_cv_path_SED+y}
6212 then :
6213 printf %s "(cached) " >&6
6214 else case e in #(
6215 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6216 for ac_i in 1 2 3 4 5 6 7; do
6217 ac_script="$ac_script$as_nl$ac_script"
6218 done
6219 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6220 { ac_script=; unset ac_script;}
6221 if test -z "$SED"; then
6222 ac_path_SED_found=false
6223 # Loop through the user's path and test for each of PROGNAME-LIST
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6226 do
6227 IFS=$as_save_IFS
6228 case $as_dir in #(((
6229 '') as_dir=./ ;;
6230 */) ;;
6231 *) as_dir=$as_dir/ ;;
6232 esac
6233 for ac_prog in sed gsed
6234 do
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6237 as_fn_executable_p "$ac_path_SED" || continue
6238 # Check for GNU ac_path_SED and select it if it is found.
6239 # Check for GNU $ac_path_SED
6240 case `"$ac_path_SED" --version 2>&1` in #(
6241 *GNU*)
6242 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6243 #(
6244 *)
6245 ac_count=0
6246 printf %s 0123456789 >"conftest.in"
6247 while :
6248 do
6249 cat "conftest.in" "conftest.in" >"conftest.tmp"
6250 mv "conftest.tmp" "conftest.in"
6251 cp "conftest.in" "conftest.nl"
6252 printf "%s\n" '' >> "conftest.nl"
6253 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6255 as_fn_arith $ac_count + 1 && ac_count=$as_val
6256 if test $ac_count -gt ${ac_path_SED_max-0}; then
6257 # Best one so far, save it but keep looking for a better one
6258 ac_cv_path_SED="$ac_path_SED"
6259 ac_path_SED_max=$ac_count
6260 fi
6261 # 10*(2^10) chars as input seems more than enough
6262 test $ac_count -gt 10 && break
6263 done
6264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6265 esac
6266
6267 $ac_path_SED_found && break 3
6268 done
6269 done
6270 done
6271 IFS=$as_save_IFS
6272 if test -z "$ac_cv_path_SED"; then
6273 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6274 fi
6275 else
6276 ac_cv_path_SED=$SED
6277 fi
6278 ;;
6279 esac
6280 fi
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6282 printf "%s\n" "$ac_cv_path_SED" >&6; }
6283 SED="$ac_cv_path_SED"
6284 rm -f conftest.sed
6285
6286 test -z "$SED" && SED=sed
6287 Xsed="$SED -e 1s/^X//"
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6300 printf %s "checking for fgrep... " >&6; }
6301 if test ${ac_cv_path_FGREP+y}
6302 then :
6303 printf %s "(cached) " >&6
6304 else case e in #(
6305 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6306 then ac_cv_path_FGREP="$GREP -F"
6307 else
6308 if test -z "$FGREP"; then
6309 ac_path_FGREP_found=false
6310 # Loop through the user's path and test for each of PROGNAME-LIST
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6313 do
6314 IFS=$as_save_IFS
6315 case $as_dir in #(((
6316 '') as_dir=./ ;;
6317 */) ;;
6318 *) as_dir=$as_dir/ ;;
6319 esac
6320 for ac_prog in fgrep
6321 do
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6324 as_fn_executable_p "$ac_path_FGREP" || continue
6325 # Check for GNU ac_path_FGREP and select it if it is found.
6326 # Check for GNU $ac_path_FGREP
6327 case `"$ac_path_FGREP" --version 2>&1` in #(
6328 *GNU*)
6329 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6330 #(
6331 *)
6332 ac_count=0
6333 printf %s 0123456789 >"conftest.in"
6334 while :
6335 do
6336 cat "conftest.in" "conftest.in" >"conftest.tmp"
6337 mv "conftest.tmp" "conftest.in"
6338 cp "conftest.in" "conftest.nl"
6339 printf "%s\n" 'FGREP' >> "conftest.nl"
6340 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6342 as_fn_arith $ac_count + 1 && ac_count=$as_val
6343 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6344 # Best one so far, save it but keep looking for a better one
6345 ac_cv_path_FGREP="$ac_path_FGREP"
6346 ac_path_FGREP_max=$ac_count
6347 fi
6348 # 10*(2^10) chars as input seems more than enough
6349 test $ac_count -gt 10 && break
6350 done
6351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6352 esac
6353
6354 $ac_path_FGREP_found && break 3
6355 done
6356 done
6357 done
6358 IFS=$as_save_IFS
6359 if test -z "$ac_cv_path_FGREP"; then
6360 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6361 fi
6362 else
6363 ac_cv_path_FGREP=$FGREP
6364 fi
6365
6366 fi ;;
6367 esac
6368 fi
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6370 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6371 FGREP="$ac_cv_path_FGREP"
6372
6373
6374 test -z "$GREP" && GREP=grep
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394 # Check whether --with-gnu-ld was given.
6395 if test ${with_gnu_ld+y}
6396 then :
6397 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6398 else case e in #(
6399 e) with_gnu_ld=no ;;
6400 esac
6401 fi
6402
6403 ac_prog=ld
6404 if test yes = "$GCC"; then
6405 # Check if gcc -print-prog-name=ld gives a path.
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6407 printf %s "checking for ld used by $CC... " >&6; }
6408 case $host in
6409 *-*-mingw*)
6410 # gcc leaves a trailing carriage return, which upsets mingw
6411 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6412 *)
6413 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6414 esac
6415 case $ac_prog in
6416 # Accept absolute paths.
6417 [\\/]* | ?:[\\/]*)
6418 re_direlt='/[^/][^/]*/\.\./'
6419 # Canonicalize the pathname of ld
6420 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6421 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6422 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6423 done
6424 test -z "$LD" && LD=$ac_prog
6425 ;;
6426 "")
6427 # If it fails, then pretend we aren't using GCC.
6428 ac_prog=ld
6429 ;;
6430 *)
6431 # If it is relative, then search for the first ld in PATH.
6432 with_gnu_ld=unknown
6433 ;;
6434 esac
6435 elif test yes = "$with_gnu_ld"; then
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6437 printf %s "checking for GNU ld... " >&6; }
6438 else
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6440 printf %s "checking for non-GNU ld... " >&6; }
6441 fi
6442 if test ${lt_cv_path_LD+y}
6443 then :
6444 printf %s "(cached) " >&6
6445 else case e in #(
6446 e) if test -z "$LD"; then
6447 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6448 for ac_dir in $PATH; do
6449 IFS=$lt_save_ifs
6450 test -z "$ac_dir" && ac_dir=.
6451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6452 lt_cv_path_LD=$ac_dir/$ac_prog
6453 # Check to see if the program is GNU ld. I'd rather use --version,
6454 # but apparently some variants of GNU ld only accept -v.
6455 # Break only if it was the GNU/non-GNU ld that we prefer.
6456 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6457 *GNU* | *'with BFD'*)
6458 test no != "$with_gnu_ld" && break
6459 ;;
6460 *)
6461 test yes != "$with_gnu_ld" && break
6462 ;;
6463 esac
6464 fi
6465 done
6466 IFS=$lt_save_ifs
6467 else
6468 lt_cv_path_LD=$LD # Let the user override the test with a path.
6469 fi ;;
6470 esac
6471 fi
6472
6473 LD=$lt_cv_path_LD
6474 if test -n "$LD"; then
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6476 printf "%s\n" "$LD" >&6; }
6477 else
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 printf "%s\n" "no" >&6; }
6480 fi
6481 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6483 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6484 if test ${lt_cv_prog_gnu_ld+y}
6485 then :
6486 printf %s "(cached) " >&6
6487 else case e in #(
6488 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6489 case `$LD -v 2>&1 </dev/null` in
6490 *GNU* | *'with BFD'*)
6491 lt_cv_prog_gnu_ld=yes
6492 ;;
6493 *)
6494 lt_cv_prog_gnu_ld=no
6495 ;;
6496 esac ;;
6497 esac
6498 fi
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6500 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6501 with_gnu_ld=$lt_cv_prog_gnu_ld
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6512 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6513 if test ${lt_cv_path_NM+y}
6514 then :
6515 printf %s "(cached) " >&6
6516 else case e in #(
6517 e) if test -n "$NM"; then
6518 # Let the user override the test.
6519 lt_cv_path_NM=$NM
6520 else
6521 lt_nm_to_check=${ac_tool_prefix}nm
6522 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6523 lt_nm_to_check="$lt_nm_to_check nm"
6524 fi
6525 for lt_tmp_nm in $lt_nm_to_check; do
6526 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6527 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6528 IFS=$lt_save_ifs
6529 test -z "$ac_dir" && ac_dir=.
6530 tmp_nm=$ac_dir/$lt_tmp_nm
6531 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6532 # Check to see if the nm accepts a BSD-compat flag.
6533 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6534 # nm: unknown option "B" ignored
6535 # Tru64's nm complains that /dev/null is an invalid object file
6536 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6537 case $build_os in
6538 mingw*) lt_bad_file=conftest.nm/nofile ;;
6539 *) lt_bad_file=/dev/null ;;
6540 esac
6541 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6542 *$lt_bad_file* | *'Invalid file or object type'*)
6543 lt_cv_path_NM="$tmp_nm -B"
6544 break 2
6545 ;;
6546 *)
6547 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6548 */dev/null*)
6549 lt_cv_path_NM="$tmp_nm -p"
6550 break 2
6551 ;;
6552 *)
6553 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6554 continue # so that we can try to find one that supports BSD flags
6555 ;;
6556 esac
6557 ;;
6558 esac
6559 fi
6560 done
6561 IFS=$lt_save_ifs
6562 done
6563 : ${lt_cv_path_NM=no}
6564 fi ;;
6565 esac
6566 fi
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6568 printf "%s\n" "$lt_cv_path_NM" >&6; }
6569 if test no != "$lt_cv_path_NM"; then
6570 NM=$lt_cv_path_NM
6571 else
6572 # Didn't find any BSD compatible name lister, look for dumpbin.
6573 if test -n "$DUMPBIN"; then :
6574 # Let the user override the test.
6575 else
6576 if test -n "$ac_tool_prefix"; then
6577 for ac_prog in dumpbin "link -dump"
6578 do
6579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 printf %s "checking for $ac_word... " >&6; }
6583 if test ${ac_cv_prog_DUMPBIN+y}
6584 then :
6585 printf %s "(cached) " >&6
6586 else case e in #(
6587 e) if test -n "$DUMPBIN"; then
6588 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593 IFS=$as_save_IFS
6594 case $as_dir in #(((
6595 '') as_dir=./ ;;
6596 */) ;;
6597 *) as_dir=$as_dir/ ;;
6598 esac
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6601 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6603 break 2
6604 fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609 fi ;;
6610 esac
6611 fi
6612 DUMPBIN=$ac_cv_prog_DUMPBIN
6613 if test -n "$DUMPBIN"; then
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6615 printf "%s\n" "$DUMPBIN" >&6; }
6616 else
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 printf "%s\n" "no" >&6; }
6619 fi
6620
6621
6622 test -n "$DUMPBIN" && break
6623 done
6624 fi
6625 if test -z "$DUMPBIN"; then
6626 ac_ct_DUMPBIN=$DUMPBIN
6627 for ac_prog in dumpbin "link -dump"
6628 do
6629 # Extract the first word of "$ac_prog", so it can be a program name with args.
6630 set dummy $ac_prog; ac_word=$2
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 printf %s "checking for $ac_word... " >&6; }
6633 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6634 then :
6635 printf %s "(cached) " >&6
6636 else case e in #(
6637 e) if test -n "$ac_ct_DUMPBIN"; then
6638 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643 IFS=$as_save_IFS
6644 case $as_dir in #(((
6645 '') as_dir=./ ;;
6646 */) ;;
6647 *) as_dir=$as_dir/ ;;
6648 esac
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi ;;
6660 esac
6661 fi
6662 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6663 if test -n "$ac_ct_DUMPBIN"; then
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6665 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6666 else
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 printf "%s\n" "no" >&6; }
6669 fi
6670
6671
6672 test -n "$ac_ct_DUMPBIN" && break
6673 done
6674
6675 if test "x$ac_ct_DUMPBIN" = x; then
6676 DUMPBIN=":"
6677 else
6678 case $cross_compiling:$ac_tool_warned in
6679 yes:)
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6681 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6682 ac_tool_warned=yes ;;
6683 esac
6684 DUMPBIN=$ac_ct_DUMPBIN
6685 fi
6686 fi
6687
6688 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6689 *COFF*)
6690 DUMPBIN="$DUMPBIN -symbols -headers"
6691 ;;
6692 *)
6693 DUMPBIN=:
6694 ;;
6695 esac
6696 fi
6697
6698 if test : != "$DUMPBIN"; then
6699 NM=$DUMPBIN
6700 fi
6701 fi
6702 test -z "$NM" && NM=nm
6703
6704
6705
6706
6707
6708
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6710 printf %s "checking the name lister ($NM) interface... " >&6; }
6711 if test ${lt_cv_nm_interface+y}
6712 then :
6713 printf %s "(cached) " >&6
6714 else case e in #(
6715 e) lt_cv_nm_interface="BSD nm"
6716 echo "int some_variable = 0;" > conftest.$ac_ext
6717 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6718 (eval "$ac_compile" 2>conftest.err)
6719 cat conftest.err >&5
6720 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6721 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6722 cat conftest.err >&5
6723 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6724 cat conftest.out >&5
6725 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6726 lt_cv_nm_interface="MS dumpbin"
6727 fi
6728 rm -f conftest* ;;
6729 esac
6730 fi
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6732 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6733
6734 # find the maximum length of command line arguments
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6736 printf %s "checking the maximum length of command line arguments... " >&6; }
6737 if test ${lt_cv_sys_max_cmd_len+y}
6738 then :
6739 printf %s "(cached) " >&6
6740 else case e in #(
6741 e) i=0
6742 teststring=ABCD
6743
6744 case $build_os in
6745 msdosdjgpp*)
6746 # On DJGPP, this test can blow up pretty badly due to problems in libc
6747 # (any single argument exceeding 2000 bytes causes a buffer overrun
6748 # during glob expansion). Even if it were fixed, the result of this
6749 # check would be larger than it should be.
6750 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6751 ;;
6752
6753 gnu*)
6754 # Under GNU Hurd, this test is not required because there is
6755 # no limit to the length of command line arguments.
6756 # Libtool will interpret -1 as no limit whatsoever
6757 lt_cv_sys_max_cmd_len=-1;
6758 ;;
6759
6760 cygwin* | mingw* | cegcc*)
6761 # On Win9x/ME, this test blows up -- it succeeds, but takes
6762 # about 5 minutes as the teststring grows exponentially.
6763 # Worse, since 9x/ME are not pre-emptively multitasking,
6764 # you end up with a "frozen" computer, even though with patience
6765 # the test eventually succeeds (with a max line length of 256k).
6766 # Instead, let's just punt: use the minimum linelength reported by
6767 # all of the supported platforms: 8192 (on NT/2K/XP).
6768 lt_cv_sys_max_cmd_len=8192;
6769 ;;
6770
6771 mint*)
6772 # On MiNT this can take a long time and run out of memory.
6773 lt_cv_sys_max_cmd_len=8192;
6774 ;;
6775
6776 amigaos*)
6777 # On AmigaOS with pdksh, this test takes hours, literally.
6778 # So we just punt and use a minimum line length of 8192.
6779 lt_cv_sys_max_cmd_len=8192;
6780 ;;
6781
6782 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6783 # This has been around since 386BSD, at least. Likely further.
6784 if test -x /sbin/sysctl; then
6785 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6786 elif test -x /usr/sbin/sysctl; then
6787 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6788 else
6789 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6790 fi
6791 # And add a safety zone
6792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6794 ;;
6795
6796 interix*)
6797 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6798 lt_cv_sys_max_cmd_len=196608
6799 ;;
6800
6801 os2*)
6802 # The test takes a long time on OS/2.
6803 lt_cv_sys_max_cmd_len=8192
6804 ;;
6805
6806 osf*)
6807 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6808 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6809 # nice to cause kernel panics so lets avoid the loop below.
6810 # First set a reasonable default.
6811 lt_cv_sys_max_cmd_len=16384
6812 #
6813 if test -x /sbin/sysconfig; then
6814 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6815 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6816 esac
6817 fi
6818 ;;
6819 sco3.2v5*)
6820 lt_cv_sys_max_cmd_len=102400
6821 ;;
6822 sysv5* | sco5v6* | sysv4.2uw2*)
6823 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6824 if test -n "$kargmax"; then
6825 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6826 else
6827 lt_cv_sys_max_cmd_len=32768
6828 fi
6829 ;;
6830 *)
6831 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6832 if test -n "$lt_cv_sys_max_cmd_len" && \
6833 test undefined != "$lt_cv_sys_max_cmd_len"; then
6834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6836 else
6837 # Make teststring a little bigger before we do anything with it.
6838 # a 1K string should be a reasonable start.
6839 for i in 1 2 3 4 5 6 7 8; do
6840 teststring=$teststring$teststring
6841 done
6842 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6843 # If test is not a shell built-in, we'll probably end up computing a
6844 # maximum length that is only half of the actual maximum length, but
6845 # we can't tell.
6846 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6847 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6848 test 17 != "$i" # 1/2 MB should be enough
6849 do
6850 i=`expr $i + 1`
6851 teststring=$teststring$teststring
6852 done
6853 # Only check the string length outside the loop.
6854 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6855 teststring=
6856 # Add a significant safety factor because C++ compilers can tack on
6857 # massive amounts of additional arguments before passing them to the
6858 # linker. It appears as though 1/2 is a usable value.
6859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6860 fi
6861 ;;
6862 esac
6863 ;;
6864 esac
6865 fi
6866
6867 if test -n "$lt_cv_sys_max_cmd_len"; then
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6869 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6870 else
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6872 printf "%s\n" "none" >&6; }
6873 fi
6874 max_cmd_len=$lt_cv_sys_max_cmd_len
6875
6876
6877
6878
6879
6880
6881 : ${CP="cp -f"}
6882 : ${MV="mv -f"}
6883 : ${RM="rm -f"}
6884
6885 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6886 lt_unset=unset
6887 else
6888 lt_unset=false
6889 fi
6890
6891
6892
6893
6894
6895 # test EBCDIC or ASCII
6896 case `echo X|tr X '\101'` in
6897 A) # ASCII based system
6898 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6899 lt_SP2NL='tr \040 \012'
6900 lt_NL2SP='tr \015\012 \040\040'
6901 ;;
6902 *) # EBCDIC based system
6903 lt_SP2NL='tr \100 \n'
6904 lt_NL2SP='tr \r\n \100\100'
6905 ;;
6906 esac
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6917 printf %s "checking how to convert $build file names to $host format... " >&6; }
6918 if test ${lt_cv_to_host_file_cmd+y}
6919 then :
6920 printf %s "(cached) " >&6
6921 else case e in #(
6922 e) case $host in
6923 *-*-mingw* )
6924 case $build in
6925 *-*-mingw* ) # actually msys
6926 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6927 ;;
6928 *-*-cygwin* )
6929 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6930 ;;
6931 * ) # otherwise, assume *nix
6932 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6933 ;;
6934 esac
6935 ;;
6936 *-*-cygwin* )
6937 case $build in
6938 *-*-mingw* ) # actually msys
6939 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6940 ;;
6941 *-*-cygwin* )
6942 lt_cv_to_host_file_cmd=func_convert_file_noop
6943 ;;
6944 * ) # otherwise, assume *nix
6945 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6946 ;;
6947 esac
6948 ;;
6949 * ) # unhandled hosts (and "normal" native builds)
6950 lt_cv_to_host_file_cmd=func_convert_file_noop
6951 ;;
6952 esac
6953 ;;
6954 esac
6955 fi
6956
6957 to_host_file_cmd=$lt_cv_to_host_file_cmd
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6959 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6960
6961
6962
6963
6964
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6966 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6967 if test ${lt_cv_to_tool_file_cmd+y}
6968 then :
6969 printf %s "(cached) " >&6
6970 else case e in #(
6971 e) #assume ordinary cross tools, or native build.
6972 lt_cv_to_tool_file_cmd=func_convert_file_noop
6973 case $host in
6974 *-*-mingw* )
6975 case $build in
6976 *-*-mingw* ) # actually msys
6977 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6978 ;;
6979 esac
6980 ;;
6981 esac
6982 ;;
6983 esac
6984 fi
6985
6986 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6988 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6989
6990
6991
6992
6993
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6995 printf %s "checking for $LD option to reload object files... " >&6; }
6996 if test ${lt_cv_ld_reload_flag+y}
6997 then :
6998 printf %s "(cached) " >&6
6999 else case e in #(
7000 e) lt_cv_ld_reload_flag='-r' ;;
7001 esac
7002 fi
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7004 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7005 reload_flag=$lt_cv_ld_reload_flag
7006 case $reload_flag in
7007 "" | " "*) ;;
7008 *) reload_flag=" $reload_flag" ;;
7009 esac
7010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7011 case $host_os in
7012 cygwin* | mingw* | pw32* | cegcc*)
7013 if test yes != "$GCC"; then
7014 reload_cmds=false
7015 fi
7016 ;;
7017 darwin*)
7018 if test yes = "$GCC"; then
7019 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7020 else
7021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7022 fi
7023 ;;
7024 esac
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}file; ac_word=$2
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 printf %s "checking for $ac_word... " >&6; }
7039 if test ${ac_cv_prog_FILECMD+y}
7040 then :
7041 printf %s "(cached) " >&6
7042 else case e in #(
7043 e) if test -n "$FILECMD"; then
7044 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 case $as_dir in #(((
7051 '') as_dir=./ ;;
7052 */) ;;
7053 *) as_dir=$as_dir/ ;;
7054 esac
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065 fi ;;
7066 esac
7067 fi
7068 FILECMD=$ac_cv_prog_FILECMD
7069 if test -n "$FILECMD"; then
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7071 printf "%s\n" "$FILECMD" >&6; }
7072 else
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 printf "%s\n" "no" >&6; }
7075 fi
7076
7077
7078 fi
7079 if test -z "$ac_cv_prog_FILECMD"; then
7080 ac_ct_FILECMD=$FILECMD
7081 # Extract the first word of "file", so it can be a program name with args.
7082 set dummy file; ac_word=$2
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 printf %s "checking for $ac_word... " >&6; }
7085 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7086 then :
7087 printf %s "(cached) " >&6
7088 else case e in #(
7089 e) if test -n "$ac_ct_FILECMD"; then
7090 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095 IFS=$as_save_IFS
7096 case $as_dir in #(((
7097 '') as_dir=./ ;;
7098 */) ;;
7099 *) as_dir=$as_dir/ ;;
7100 esac
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_ac_ct_FILECMD="file"
7104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi ;;
7112 esac
7113 fi
7114 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7115 if test -n "$ac_ct_FILECMD"; then
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7117 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7118 else
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 printf "%s\n" "no" >&6; }
7121 fi
7122
7123 if test "x$ac_ct_FILECMD" = x; then
7124 FILECMD=":"
7125 else
7126 case $cross_compiling:$ac_tool_warned in
7127 yes:)
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130 ac_tool_warned=yes ;;
7131 esac
7132 FILECMD=$ac_ct_FILECMD
7133 fi
7134 else
7135 FILECMD="$ac_cv_prog_FILECMD"
7136 fi
7137
7138
7139
7140
7141
7142
7143
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 printf %s "checking for $ac_word... " >&6; }
7149 if test ${ac_cv_prog_OBJDUMP+y}
7150 then :
7151 printf %s "(cached) " >&6
7152 else case e in #(
7153 e) if test -n "$OBJDUMP"; then
7154 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159 IFS=$as_save_IFS
7160 case $as_dir in #(((
7161 '') as_dir=./ ;;
7162 */) ;;
7163 *) as_dir=$as_dir/ ;;
7164 esac
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi ;;
7176 esac
7177 fi
7178 OBJDUMP=$ac_cv_prog_OBJDUMP
7179 if test -n "$OBJDUMP"; then
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7181 printf "%s\n" "$OBJDUMP" >&6; }
7182 else
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 printf "%s\n" "no" >&6; }
7185 fi
7186
7187
7188 fi
7189 if test -z "$ac_cv_prog_OBJDUMP"; then
7190 ac_ct_OBJDUMP=$OBJDUMP
7191 # Extract the first word of "objdump", so it can be a program name with args.
7192 set dummy objdump; ac_word=$2
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 printf %s "checking for $ac_word... " >&6; }
7195 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7196 then :
7197 printf %s "(cached) " >&6
7198 else case e in #(
7199 e) if test -n "$ac_ct_OBJDUMP"; then
7200 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 case $as_dir in #(((
7207 '') as_dir=./ ;;
7208 */) ;;
7209 *) as_dir=$as_dir/ ;;
7210 esac
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7213 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217 done
7218 done
7219 IFS=$as_save_IFS
7220
7221 fi ;;
7222 esac
7223 fi
7224 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7225 if test -n "$ac_ct_OBJDUMP"; then
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7227 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7228 else
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 printf "%s\n" "no" >&6; }
7231 fi
7232
7233 if test "x$ac_ct_OBJDUMP" = x; then
7234 OBJDUMP="false"
7235 else
7236 case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242 OBJDUMP=$ac_ct_OBJDUMP
7243 fi
7244 else
7245 OBJDUMP="$ac_cv_prog_OBJDUMP"
7246 fi
7247
7248 test -z "$OBJDUMP" && OBJDUMP=objdump
7249
7250
7251
7252
7253
7254
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7256 printf %s "checking how to recognize dependent libraries... " >&6; }
7257 if test ${lt_cv_deplibs_check_method+y}
7258 then :
7259 printf %s "(cached) " >&6
7260 else case e in #(
7261 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7262 lt_cv_file_magic_test_file=
7263 lt_cv_deplibs_check_method='unknown'
7264 # Need to set the preceding variable on all platforms that support
7265 # interlibrary dependencies.
7266 # 'none' -- dependencies not supported.
7267 # 'unknown' -- same as none, but documents that we really don't know.
7268 # 'pass_all' -- all dependencies passed with no checks.
7269 # 'test_compile' -- check by making test program.
7270 # 'file_magic [[regex]]' -- check by looking for files in library path
7271 # that responds to the $file_magic_cmd with a given extended regex.
7272 # If you have 'file' or equivalent on your system and you're not sure
7273 # whether 'pass_all' will *always* work, you probably want this one.
7274
7275 case $host_os in
7276 aix[4-9]*)
7277 lt_cv_deplibs_check_method=pass_all
7278 ;;
7279
7280 beos*)
7281 lt_cv_deplibs_check_method=pass_all
7282 ;;
7283
7284 bsdi[45]*)
7285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7286 lt_cv_file_magic_cmd='$FILECMD -L'
7287 lt_cv_file_magic_test_file=/shlib/libc.so
7288 ;;
7289
7290 cygwin*)
7291 # func_win32_libid is a shell function defined in ltmain.sh
7292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7293 lt_cv_file_magic_cmd='func_win32_libid'
7294 ;;
7295
7296 mingw* | pw32*)
7297 # Base MSYS/MinGW do not provide the 'file' command needed by
7298 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7299 # unless we find 'file', for example because we are cross-compiling.
7300 if ( file / ) >/dev/null 2>&1; then
7301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7302 lt_cv_file_magic_cmd='func_win32_libid'
7303 else
7304 # Keep this pattern in sync with the one in func_win32_libid.
7305 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7306 lt_cv_file_magic_cmd='$OBJDUMP -f'
7307 fi
7308 ;;
7309
7310 cegcc*)
7311 # use the weaker test based on 'objdump'. See mingw*.
7312 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7313 lt_cv_file_magic_cmd='$OBJDUMP -f'
7314 ;;
7315
7316 darwin* | rhapsody*)
7317 lt_cv_deplibs_check_method=pass_all
7318 ;;
7319
7320 freebsd* | dragonfly* | midnightbsd*)
7321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7322 case $host_cpu in
7323 i*86 )
7324 # Not sure whether the presence of OpenBSD here was a mistake.
7325 # Let's accept both of them until this is cleared up.
7326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7327 lt_cv_file_magic_cmd=$FILECMD
7328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7329 ;;
7330 esac
7331 else
7332 lt_cv_deplibs_check_method=pass_all
7333 fi
7334 ;;
7335
7336 haiku*)
7337 lt_cv_deplibs_check_method=pass_all
7338 ;;
7339
7340 hpux10.20* | hpux11*)
7341 lt_cv_file_magic_cmd=$FILECMD
7342 case $host_cpu in
7343 ia64*)
7344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7346 ;;
7347 hppa*64*)
7348 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]'
7349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7350 ;;
7351 *)
7352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7353 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7354 ;;
7355 esac
7356 ;;
7357
7358 interix[3-9]*)
7359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7361 ;;
7362
7363 irix5* | irix6* | nonstopux*)
7364 case $LD in
7365 *-32|*"-32 ") libmagic=32-bit;;
7366 *-n32|*"-n32 ") libmagic=N32;;
7367 *-64|*"-64 ") libmagic=64-bit;;
7368 *) libmagic=never-match;;
7369 esac
7370 lt_cv_deplibs_check_method=pass_all
7371 ;;
7372
7373 # This must be glibc/ELF.
7374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7375 lt_cv_deplibs_check_method=pass_all
7376 ;;
7377
7378 netbsd*)
7379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7381 else
7382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7383 fi
7384 ;;
7385
7386 newos6*)
7387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7388 lt_cv_file_magic_cmd=$FILECMD
7389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7390 ;;
7391
7392 *nto* | *qnx*)
7393 lt_cv_deplibs_check_method=pass_all
7394 ;;
7395
7396 openbsd* | bitrig*)
7397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7399 else
7400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7401 fi
7402 ;;
7403
7404 osf3* | osf4* | osf5*)
7405 lt_cv_deplibs_check_method=pass_all
7406 ;;
7407
7408 rdos*)
7409 lt_cv_deplibs_check_method=pass_all
7410 ;;
7411
7412 solaris*)
7413 lt_cv_deplibs_check_method=pass_all
7414 ;;
7415
7416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7417 lt_cv_deplibs_check_method=pass_all
7418 ;;
7419
7420 sysv4 | sysv4.3*)
7421 case $host_vendor in
7422 motorola)
7423 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]'
7424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7425 ;;
7426 ncr)
7427 lt_cv_deplibs_check_method=pass_all
7428 ;;
7429 sequent)
7430 lt_cv_file_magic_cmd='/bin/file'
7431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7432 ;;
7433 sni)
7434 lt_cv_file_magic_cmd='/bin/file'
7435 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7436 lt_cv_file_magic_test_file=/lib/libc.so
7437 ;;
7438 siemens)
7439 lt_cv_deplibs_check_method=pass_all
7440 ;;
7441 pc)
7442 lt_cv_deplibs_check_method=pass_all
7443 ;;
7444 esac
7445 ;;
7446
7447 tpf*)
7448 lt_cv_deplibs_check_method=pass_all
7449 ;;
7450 os2*)
7451 lt_cv_deplibs_check_method=pass_all
7452 ;;
7453 esac
7454 ;;
7455 esac
7456 fi
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7458 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7459
7460 file_magic_glob=
7461 want_nocaseglob=no
7462 if test "$build" = "$host"; then
7463 case $host_os in
7464 mingw* | pw32*)
7465 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7466 want_nocaseglob=yes
7467 else
7468 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7469 fi
7470 ;;
7471 esac
7472 fi
7473
7474 file_magic_cmd=$lt_cv_file_magic_cmd
7475 deplibs_check_method=$lt_cv_deplibs_check_method
7476 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499 if test -n "$ac_tool_prefix"; then
7500 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7501 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 printf %s "checking for $ac_word... " >&6; }
7504 if test ${ac_cv_prog_DLLTOOL+y}
7505 then :
7506 printf %s "(cached) " >&6
7507 else case e in #(
7508 e) if test -n "$DLLTOOL"; then
7509 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514 IFS=$as_save_IFS
7515 case $as_dir in #(((
7516 '') as_dir=./ ;;
7517 */) ;;
7518 *) as_dir=$as_dir/ ;;
7519 esac
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi ;;
7531 esac
7532 fi
7533 DLLTOOL=$ac_cv_prog_DLLTOOL
7534 if test -n "$DLLTOOL"; then
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7536 printf "%s\n" "$DLLTOOL" >&6; }
7537 else
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 printf "%s\n" "no" >&6; }
7540 fi
7541
7542
7543 fi
7544 if test -z "$ac_cv_prog_DLLTOOL"; then
7545 ac_ct_DLLTOOL=$DLLTOOL
7546 # Extract the first word of "dlltool", so it can be a program name with args.
7547 set dummy dlltool; ac_word=$2
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 printf %s "checking for $ac_word... " >&6; }
7550 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7551 then :
7552 printf %s "(cached) " >&6
7553 else case e in #(
7554 e) if test -n "$ac_ct_DLLTOOL"; then
7555 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560 IFS=$as_save_IFS
7561 case $as_dir in #(((
7562 '') as_dir=./ ;;
7563 */) ;;
7564 *) as_dir=$as_dir/ ;;
7565 esac
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576 fi ;;
7577 esac
7578 fi
7579 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7580 if test -n "$ac_ct_DLLTOOL"; then
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7582 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7583 else
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 printf "%s\n" "no" >&6; }
7586 fi
7587
7588 if test "x$ac_ct_DLLTOOL" = x; then
7589 DLLTOOL="false"
7590 else
7591 case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597 DLLTOOL=$ac_ct_DLLTOOL
7598 fi
7599 else
7600 DLLTOOL="$ac_cv_prog_DLLTOOL"
7601 fi
7602
7603 test -z "$DLLTOOL" && DLLTOOL=dlltool
7604
7605
7606
7607
7608
7609
7610
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7612 printf %s "checking how to associate runtime and link libraries... " >&6; }
7613 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else case e in #(
7617 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7618
7619 case $host_os in
7620 cygwin* | mingw* | pw32* | cegcc*)
7621 # two different shell functions defined in ltmain.sh;
7622 # decide which one to use based on capabilities of $DLLTOOL
7623 case `$DLLTOOL --help 2>&1` in
7624 *--identify-strict*)
7625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7626 ;;
7627 *)
7628 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7629 ;;
7630 esac
7631 ;;
7632 *)
7633 # fallback: assume linklib IS sharedlib
7634 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7635 ;;
7636 esac
7637 ;;
7638 esac
7639 fi
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7641 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7642 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7643 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7644
7645
7646
7647
7648
7649
7650
7651 if test -n "$ac_tool_prefix"; then
7652 for ac_prog in ar
7653 do
7654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 printf %s "checking for $ac_word... " >&6; }
7658 if test ${ac_cv_prog_AR+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else case e in #(
7662 e) if test -n "$AR"; then
7663 ac_cv_prog_AR="$AR" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668 IFS=$as_save_IFS
7669 case $as_dir in #(((
7670 '') as_dir=./ ;;
7671 */) ;;
7672 *) as_dir=$as_dir/ ;;
7673 esac
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi ;;
7685 esac
7686 fi
7687 AR=$ac_cv_prog_AR
7688 if test -n "$AR"; then
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7690 printf "%s\n" "$AR" >&6; }
7691 else
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 printf "%s\n" "no" >&6; }
7694 fi
7695
7696
7697 test -n "$AR" && break
7698 done
7699 fi
7700 if test -z "$AR"; then
7701 ac_ct_AR=$AR
7702 for ac_prog in ar
7703 do
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 printf %s "checking for $ac_word... " >&6; }
7708 if test ${ac_cv_prog_ac_ct_AR+y}
7709 then :
7710 printf %s "(cached) " >&6
7711 else case e in #(
7712 e) if test -n "$ac_ct_AR"; then
7713 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 case $as_dir in #(((
7720 '') as_dir=./ ;;
7721 */) ;;
7722 *) as_dir=$as_dir/ ;;
7723 esac
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_ac_ct_AR="$ac_prog"
7727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi ;;
7735 esac
7736 fi
7737 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7738 if test -n "$ac_ct_AR"; then
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7740 printf "%s\n" "$ac_ct_AR" >&6; }
7741 else
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 printf "%s\n" "no" >&6; }
7744 fi
7745
7746
7747 test -n "$ac_ct_AR" && break
7748 done
7749
7750 if test "x$ac_ct_AR" = x; then
7751 AR="false"
7752 else
7753 case $cross_compiling:$ac_tool_warned in
7754 yes:)
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7756 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7757 ac_tool_warned=yes ;;
7758 esac
7759 AR=$ac_ct_AR
7760 fi
7761 fi
7762
7763 : ${AR=ar}
7764
7765
7766
7767
7768
7769
7770 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7771 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7772 # higher priority because thats what people were doing historically (setting
7773 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7774 # variable obsoleted/removed.
7775
7776 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7777 lt_ar_flags=$AR_FLAGS
7778
7779
7780
7781
7782
7783
7784 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7785 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7786
7787
7788
7789
7790
7791
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7793 printf %s "checking for archiver @FILE support... " >&6; }
7794 if test ${lt_cv_ar_at_file+y}
7795 then :
7796 printf %s "(cached) " >&6
7797 else case e in #(
7798 e) lt_cv_ar_at_file=no
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801
7802 int
7803 main (void)
7804 {
7805
7806 ;
7807 return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"
7811 then :
7812 echo conftest.$ac_objext > conftest.lst
7813 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7815 (eval $lt_ar_try) 2>&5
7816 ac_status=$?
7817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7818 test $ac_status = 0; }
7819 if test 0 -eq "$ac_status"; then
7820 # Ensure the archiver fails upon bogus file names.
7821 rm -f conftest.$ac_objext libconftest.a
7822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7823 (eval $lt_ar_try) 2>&5
7824 ac_status=$?
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }
7827 if test 0 -ne "$ac_status"; then
7828 lt_cv_ar_at_file=@
7829 fi
7830 fi
7831 rm -f conftest.* libconftest.a
7832
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7835 ;;
7836 esac
7837 fi
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7839 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7840
7841 if test no = "$lt_cv_ar_at_file"; then
7842 archiver_list_spec=
7843 else
7844 archiver_list_spec=$lt_cv_ar_at_file
7845 fi
7846
7847
7848
7849
7850
7851
7852
7853 if test -n "$ac_tool_prefix"; then
7854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7855 set dummy ${ac_tool_prefix}strip; ac_word=$2
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 printf %s "checking for $ac_word... " >&6; }
7858 if test ${ac_cv_prog_STRIP+y}
7859 then :
7860 printf %s "(cached) " >&6
7861 else case e in #(
7862 e) if test -n "$STRIP"; then
7863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7864 else
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868 IFS=$as_save_IFS
7869 case $as_dir in #(((
7870 '') as_dir=./ ;;
7871 */) ;;
7872 *) as_dir=$as_dir/ ;;
7873 esac
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882 IFS=$as_save_IFS
7883
7884 fi ;;
7885 esac
7886 fi
7887 STRIP=$ac_cv_prog_STRIP
7888 if test -n "$STRIP"; then
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7890 printf "%s\n" "$STRIP" >&6; }
7891 else
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 printf "%s\n" "no" >&6; }
7894 fi
7895
7896
7897 fi
7898 if test -z "$ac_cv_prog_STRIP"; then
7899 ac_ct_STRIP=$STRIP
7900 # Extract the first word of "strip", so it can be a program name with args.
7901 set dummy strip; ac_word=$2
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 printf %s "checking for $ac_word... " >&6; }
7904 if test ${ac_cv_prog_ac_ct_STRIP+y}
7905 then :
7906 printf %s "(cached) " >&6
7907 else case e in #(
7908 e) if test -n "$ac_ct_STRIP"; then
7909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 case $as_dir in #(((
7916 '') as_dir=./ ;;
7917 */) ;;
7918 *) as_dir=$as_dir/ ;;
7919 esac
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_ac_ct_STRIP="strip"
7923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930 fi ;;
7931 esac
7932 fi
7933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7934 if test -n "$ac_ct_STRIP"; then
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7936 printf "%s\n" "$ac_ct_STRIP" >&6; }
7937 else
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 printf "%s\n" "no" >&6; }
7940 fi
7941
7942 if test "x$ac_ct_STRIP" = x; then
7943 STRIP=":"
7944 else
7945 case $cross_compiling:$ac_tool_warned in
7946 yes:)
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7948 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7949 ac_tool_warned=yes ;;
7950 esac
7951 STRIP=$ac_ct_STRIP
7952 fi
7953 else
7954 STRIP="$ac_cv_prog_STRIP"
7955 fi
7956
7957 test -z "$STRIP" && STRIP=:
7958
7959
7960
7961
7962
7963
7964 if test -n "$ac_tool_prefix"; then
7965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 printf %s "checking for $ac_word... " >&6; }
7969 if test ${ac_cv_prog_RANLIB+y}
7970 then :
7971 printf %s "(cached) " >&6
7972 else case e in #(
7973 e) if test -n "$RANLIB"; then
7974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 case $as_dir in #(((
7981 '') as_dir=./ ;;
7982 */) ;;
7983 *) as_dir=$as_dir/ ;;
7984 esac
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995 fi ;;
7996 esac
7997 fi
7998 RANLIB=$ac_cv_prog_RANLIB
7999 if test -n "$RANLIB"; then
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8001 printf "%s\n" "$RANLIB" >&6; }
8002 else
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 printf "%s\n" "no" >&6; }
8005 fi
8006
8007
8008 fi
8009 if test -z "$ac_cv_prog_RANLIB"; then
8010 ac_ct_RANLIB=$RANLIB
8011 # Extract the first word of "ranlib", so it can be a program name with args.
8012 set dummy ranlib; ac_word=$2
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 printf %s "checking for $ac_word... " >&6; }
8015 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8016 then :
8017 printf %s "(cached) " >&6
8018 else case e in #(
8019 e) if test -n "$ac_ct_RANLIB"; then
8020 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025 IFS=$as_save_IFS
8026 case $as_dir in #(((
8027 '') as_dir=./ ;;
8028 */) ;;
8029 *) as_dir=$as_dir/ ;;
8030 esac
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8033 ac_cv_prog_ac_ct_RANLIB="ranlib"
8034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037 done
8038 done
8039 IFS=$as_save_IFS
8040
8041 fi ;;
8042 esac
8043 fi
8044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8045 if test -n "$ac_ct_RANLIB"; then
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8047 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8048 else
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 printf "%s\n" "no" >&6; }
8051 fi
8052
8053 if test "x$ac_ct_RANLIB" = x; then
8054 RANLIB=":"
8055 else
8056 case $cross_compiling:$ac_tool_warned in
8057 yes:)
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060 ac_tool_warned=yes ;;
8061 esac
8062 RANLIB=$ac_ct_RANLIB
8063 fi
8064 else
8065 RANLIB="$ac_cv_prog_RANLIB"
8066 fi
8067
8068 test -z "$RANLIB" && RANLIB=:
8069
8070
8071
8072
8073
8074
8075 # Determine commands to create old-style static archives.
8076 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8077 old_postinstall_cmds='chmod 644 $oldlib'
8078 old_postuninstall_cmds=
8079
8080 if test -n "$RANLIB"; then
8081 case $host_os in
8082 bitrig* | openbsd*)
8083 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8084 ;;
8085 *)
8086 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8087 ;;
8088 esac
8089 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8090 fi
8091
8092 case $host_os in
8093 darwin*)
8094 lock_old_archive_extraction=yes ;;
8095 *)
8096 lock_old_archive_extraction=no ;;
8097 esac
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 # If no C compiler was specified, use CC.
8138 LTCC=${LTCC-"$CC"}
8139
8140 # If no C compiler flags were specified, use CFLAGS.
8141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8142
8143 # Allow CC to be a program name with arguments.
8144 compiler=$CC
8145
8146
8147 # Check for command to grab the raw symbol name followed by C symbol from nm.
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8149 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8150 if test ${lt_cv_sys_global_symbol_pipe+y}
8151 then :
8152 printf %s "(cached) " >&6
8153 else case e in #(
8154 e)
8155 # These are sane defaults that work on at least a few old systems.
8156 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8157
8158 # Character class describing NM global symbol codes.
8159 symcode='[BCDEGRST]'
8160
8161 # Regexp to match symbols that can be accessed directly from C.
8162 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8163
8164 # Define system-specific variables.
8165 case $host_os in
8166 aix*)
8167 symcode='[BCDT]'
8168 ;;
8169 cygwin* | mingw* | pw32* | cegcc*)
8170 symcode='[ABCDGISTW]'
8171 ;;
8172 hpux*)
8173 if test ia64 = "$host_cpu"; then
8174 symcode='[ABCDEGRST]'
8175 fi
8176 ;;
8177 irix* | nonstopux*)
8178 symcode='[BCDEGRST]'
8179 ;;
8180 osf*)
8181 symcode='[BCDEGQRST]'
8182 ;;
8183 solaris*)
8184 symcode='[BDRT]'
8185 ;;
8186 sco3.2v5*)
8187 symcode='[DT]'
8188 ;;
8189 sysv4.2uw2*)
8190 symcode='[DT]'
8191 ;;
8192 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8193 symcode='[ABDT]'
8194 ;;
8195 sysv4)
8196 symcode='[DFNSTU]'
8197 ;;
8198 esac
8199
8200 # If we're using GNU nm, then use its standard symbol codes.
8201 case `$NM -V 2>&1` in
8202 *GNU* | *'with BFD'*)
8203 symcode='[ABCDGIRSTW]' ;;
8204 esac
8205
8206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8207 # Gets list of data symbols to import.
8208 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8209 # Adjust the below global symbol transforms to fixup imported variables.
8210 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8211 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8212 lt_c_name_lib_hook="\
8213 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8214 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8215 else
8216 # Disable hooks by default.
8217 lt_cv_sys_global_symbol_to_import=
8218 lt_cdecl_hook=
8219 lt_c_name_hook=
8220 lt_c_name_lib_hook=
8221 fi
8222
8223 # Transform an extracted symbol line into a proper C declaration.
8224 # Some systems (esp. on ia64) link data and code symbols differently,
8225 # so use this general approach.
8226 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8227 $lt_cdecl_hook\
8228 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8229 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8230
8231 # Transform an extracted symbol line into symbol name and symbol address
8232 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8233 $lt_c_name_hook\
8234 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8235 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8236
8237 # Transform an extracted symbol line into symbol name with lib prefix and
8238 # symbol address.
8239 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8240 $lt_c_name_lib_hook\
8241 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8242 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8243 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8244
8245 # Handle CRLF in mingw tool chain
8246 opt_cr=
8247 case $build_os in
8248 mingw*)
8249 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8250 ;;
8251 esac
8252
8253 # Try without a prefix underscore, then with it.
8254 for ac_symprfx in "" "_"; do
8255
8256 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8257 symxfrm="\\1 $ac_symprfx\\2 \\2"
8258
8259 # Write the raw and C identifiers.
8260 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8261 # Fake it for dumpbin and say T for any non-static function,
8262 # D for any global variable and I for any imported variable.
8263 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8264 # which start with @ or ?.
8265 lt_cv_sys_global_symbol_pipe="$AWK '"\
8266 " {last_section=section; section=\$ 3};"\
8267 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8268 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8269 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8270 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8271 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8272 " \$ 0!~/External *\|/{next};"\
8273 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8274 " {if(hide[section]) next};"\
8275 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8276 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8277 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8278 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8279 " ' prfx=^$ac_symprfx"
8280 else
8281 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8282 fi
8283 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8284
8285 # Check to see that the pipe works correctly.
8286 pipe_works=no
8287
8288 rm -f conftest*
8289 cat > conftest.$ac_ext <<_LT_EOF
8290 #ifdef __cplusplus
8291 extern "C" {
8292 #endif
8293 char nm_test_var;
8294 void nm_test_func(void);
8295 void nm_test_func(void){}
8296 #ifdef __cplusplus
8297 }
8298 #endif
8299 int main(){nm_test_var='a';nm_test_func();return(0);}
8300 _LT_EOF
8301
8302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8303 (eval $ac_compile) 2>&5
8304 ac_status=$?
8305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8306 test $ac_status = 0; }; then
8307 # Now try to grab the symbols.
8308 nlist=conftest.nm
8309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8310 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8311 ac_status=$?
8312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8313 test $ac_status = 0; } && test -s "$nlist"; then
8314 # Try sorting and uniquifying the output.
8315 if sort "$nlist" | uniq > "$nlist"T; then
8316 mv -f "$nlist"T "$nlist"
8317 else
8318 rm -f "$nlist"T
8319 fi
8320
8321 # Make sure that we snagged all the symbols we need.
8322 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8323 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8324 cat <<_LT_EOF > conftest.$ac_ext
8325 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8326 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8327 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8328 relocations are performed -- see ld's documentation on pseudo-relocs. */
8329 # define LT_DLSYM_CONST
8330 #elif defined __osf__
8331 /* This system does not cope well with relocations in const data. */
8332 # define LT_DLSYM_CONST
8333 #else
8334 # define LT_DLSYM_CONST const
8335 #endif
8336
8337 #ifdef __cplusplus
8338 extern "C" {
8339 #endif
8340
8341 _LT_EOF
8342 # Now generate the symbol file.
8343 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8344
8345 cat <<_LT_EOF >> conftest.$ac_ext
8346
8347 /* The mapping between symbol names and symbols. */
8348 LT_DLSYM_CONST struct {
8349 const char *name;
8350 void *address;
8351 }
8352 lt__PROGRAM__LTX_preloaded_symbols[] =
8353 {
8354 { "@PROGRAM@", (void *) 0 },
8355 _LT_EOF
8356 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8357 cat <<\_LT_EOF >> conftest.$ac_ext
8358 {0, (void *) 0}
8359 };
8360
8361 /* This works around a problem in FreeBSD linker */
8362 #ifdef FREEBSD_WORKAROUND
8363 static const void *lt_preloaded_setup() {
8364 return lt__PROGRAM__LTX_preloaded_symbols;
8365 }
8366 #endif
8367
8368 #ifdef __cplusplus
8369 }
8370 #endif
8371 _LT_EOF
8372 # Now try linking the two files.
8373 mv conftest.$ac_objext conftstm.$ac_objext
8374 lt_globsym_save_LIBS=$LIBS
8375 lt_globsym_save_CFLAGS=$CFLAGS
8376 LIBS=conftstm.$ac_objext
8377 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8379 (eval $ac_link) 2>&5
8380 ac_status=$?
8381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8382 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8383 pipe_works=yes
8384 fi
8385 LIBS=$lt_globsym_save_LIBS
8386 CFLAGS=$lt_globsym_save_CFLAGS
8387 else
8388 echo "cannot find nm_test_func in $nlist" >&5
8389 fi
8390 else
8391 echo "cannot find nm_test_var in $nlist" >&5
8392 fi
8393 else
8394 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8395 fi
8396 else
8397 echo "$progname: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8399 fi
8400 rm -rf conftest* conftst*
8401
8402 # Do not use the global_symbol_pipe unless it works.
8403 if test yes = "$pipe_works"; then
8404 break
8405 else
8406 lt_cv_sys_global_symbol_pipe=
8407 fi
8408 done
8409 ;;
8410 esac
8411 fi
8412
8413 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8414 lt_cv_sys_global_symbol_to_cdecl=
8415 fi
8416 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8418 printf "%s\n" "failed" >&6; }
8419 else
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8421 printf "%s\n" "ok" >&6; }
8422 fi
8423
8424 # Response file support.
8425 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8426 nm_file_list_spec='@'
8427 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8428 nm_file_list_spec='@'
8429 fi
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8468 printf %s "checking for sysroot... " >&6; }
8469
8470 # Check whether --with-sysroot was given.
8471 if test ${with_sysroot+y}
8472 then :
8473 withval=$with_sysroot;
8474 else case e in #(
8475 e) with_sysroot=no ;;
8476 esac
8477 fi
8478
8479
8480 lt_sysroot=
8481 case $with_sysroot in #(
8482 yes)
8483 if test yes = "$GCC"; then
8484 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8485 fi
8486 ;; #(
8487 /*)
8488 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8489 ;; #(
8490 no|'')
8491 ;; #(
8492 *)
8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8494 printf "%s\n" "$with_sysroot" >&6; }
8495 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8496 ;;
8497 esac
8498
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8500 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8501
8502
8503
8504
8505
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8507 printf %s "checking for a working dd... " >&6; }
8508 if test ${ac_cv_path_lt_DD+y}
8509 then :
8510 printf %s "(cached) " >&6
8511 else case e in #(
8512 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8513 cat conftest.i conftest.i >conftest2.i
8514 : ${lt_DD:=$DD}
8515 if test -z "$lt_DD"; then
8516 ac_path_lt_DD_found=false
8517 # Loop through the user's path and test for each of PROGNAME-LIST
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8520 do
8521 IFS=$as_save_IFS
8522 case $as_dir in #(((
8523 '') as_dir=./ ;;
8524 */) ;;
8525 *) as_dir=$as_dir/ ;;
8526 esac
8527 for ac_prog in dd
8528 do
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8531 as_fn_executable_p "$ac_path_lt_DD" || continue
8532 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8533 cmp -s conftest.i conftest.out \
8534 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8535 fi
8536 $ac_path_lt_DD_found && break 3
8537 done
8538 done
8539 done
8540 IFS=$as_save_IFS
8541 if test -z "$ac_cv_path_lt_DD"; then
8542 :
8543 fi
8544 else
8545 ac_cv_path_lt_DD=$lt_DD
8546 fi
8547
8548 rm -f conftest.i conftest2.i conftest.out ;;
8549 esac
8550 fi
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8552 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8553
8554
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8556 printf %s "checking how to truncate binary pipes... " >&6; }
8557 if test ${lt_cv_truncate_bin+y}
8558 then :
8559 printf %s "(cached) " >&6
8560 else case e in #(
8561 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8562 cat conftest.i conftest.i >conftest2.i
8563 lt_cv_truncate_bin=
8564 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8565 cmp -s conftest.i conftest.out \
8566 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8567 fi
8568 rm -f conftest.i conftest2.i conftest.out
8569 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8570 esac
8571 fi
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8573 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8574
8575
8576
8577
8578
8579
8580
8581 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8582 func_cc_basename ()
8583 {
8584 for cc_temp in $*""; do
8585 case $cc_temp in
8586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8588 \-*) ;;
8589 *) break;;
8590 esac
8591 done
8592 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8593 }
8594
8595 # Check whether --enable-libtool-lock was given.
8596 if test ${enable_libtool_lock+y}
8597 then :
8598 enableval=$enable_libtool_lock;
8599 fi
8600
8601 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8602
8603 # Some flags need to be propagated to the compiler or linker for good
8604 # libtool support.
8605 case $host in
8606 ia64-*-hpux*)
8607 # Find out what ABI is being produced by ac_compile, and set mode
8608 # options accordingly.
8609 echo 'int i;' > conftest.$ac_ext
8610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8611 (eval $ac_compile) 2>&5
8612 ac_status=$?
8613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8614 test $ac_status = 0; }; then
8615 case `$FILECMD conftest.$ac_objext` in
8616 *ELF-32*)
8617 HPUX_IA64_MODE=32
8618 ;;
8619 *ELF-64*)
8620 HPUX_IA64_MODE=64
8621 ;;
8622 esac
8623 fi
8624 rm -rf conftest*
8625 ;;
8626 *-*-irix6*)
8627 # Find out what ABI is being produced by ac_compile, and set linker
8628 # options accordingly.
8629 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8631 (eval $ac_compile) 2>&5
8632 ac_status=$?
8633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8634 test $ac_status = 0; }; then
8635 if test yes = "$lt_cv_prog_gnu_ld"; then
8636 case `$FILECMD conftest.$ac_objext` in
8637 *32-bit*)
8638 LD="${LD-ld} -melf32bsmip"
8639 ;;
8640 *N32*)
8641 LD="${LD-ld} -melf32bmipn32"
8642 ;;
8643 *64-bit*)
8644 LD="${LD-ld} -melf64bmip"
8645 ;;
8646 esac
8647 else
8648 case `$FILECMD conftest.$ac_objext` in
8649 *32-bit*)
8650 LD="${LD-ld} -32"
8651 ;;
8652 *N32*)
8653 LD="${LD-ld} -n32"
8654 ;;
8655 *64-bit*)
8656 LD="${LD-ld} -64"
8657 ;;
8658 esac
8659 fi
8660 fi
8661 rm -rf conftest*
8662 ;;
8663
8664 mips64*-*linux*)
8665 # Find out what ABI is being produced by ac_compile, and set linker
8666 # options accordingly.
8667 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8669 (eval $ac_compile) 2>&5
8670 ac_status=$?
8671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8672 test $ac_status = 0; }; then
8673 emul=elf
8674 case `$FILECMD conftest.$ac_objext` in
8675 *32-bit*)
8676 emul="${emul}32"
8677 ;;
8678 *64-bit*)
8679 emul="${emul}64"
8680 ;;
8681 esac
8682 case `$FILECMD conftest.$ac_objext` in
8683 *MSB*)
8684 emul="${emul}btsmip"
8685 ;;
8686 *LSB*)
8687 emul="${emul}ltsmip"
8688 ;;
8689 esac
8690 case `$FILECMD conftest.$ac_objext` in
8691 *N32*)
8692 emul="${emul}n32"
8693 ;;
8694 esac
8695 LD="${LD-ld} -m $emul"
8696 fi
8697 rm -rf conftest*
8698 ;;
8699
8700 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8701 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8702 # Find out what ABI is being produced by ac_compile, and set linker
8703 # options accordingly. Note that the listed cases only cover the
8704 # situations where additional linker options are needed (such as when
8705 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8706 # vice versa); the common cases where no linker options are needed do
8707 # not appear in the list.
8708 echo 'int i;' > conftest.$ac_ext
8709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8710 (eval $ac_compile) 2>&5
8711 ac_status=$?
8712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8713 test $ac_status = 0; }; then
8714 case `$FILECMD conftest.o` in
8715 *32-bit*)
8716 case $host in
8717 x86_64-*kfreebsd*-gnu)
8718 LD="${LD-ld} -m elf_i386_fbsd"
8719 ;;
8720 x86_64-*linux*)
8721 case `$FILECMD conftest.o` in
8722 *x86-64*)
8723 LD="${LD-ld} -m elf32_x86_64"
8724 ;;
8725 *)
8726 LD="${LD-ld} -m elf_i386"
8727 ;;
8728 esac
8729 ;;
8730 powerpc64le-*linux*)
8731 LD="${LD-ld} -m elf32lppclinux"
8732 ;;
8733 powerpc64-*linux*)
8734 LD="${LD-ld} -m elf32ppclinux"
8735 ;;
8736 s390x-*linux*)
8737 LD="${LD-ld} -m elf_s390"
8738 ;;
8739 sparc64-*linux*)
8740 LD="${LD-ld} -m elf32_sparc"
8741 ;;
8742 esac
8743 ;;
8744 *64-bit*)
8745 case $host in
8746 x86_64-*kfreebsd*-gnu)
8747 LD="${LD-ld} -m elf_x86_64_fbsd"
8748 ;;
8749 x86_64-*linux*)
8750 LD="${LD-ld} -m elf_x86_64"
8751 ;;
8752 powerpcle-*linux*)
8753 LD="${LD-ld} -m elf64lppc"
8754 ;;
8755 powerpc-*linux*)
8756 LD="${LD-ld} -m elf64ppc"
8757 ;;
8758 s390*-*linux*|s390*-*tpf*)
8759 LD="${LD-ld} -m elf64_s390"
8760 ;;
8761 sparc*-*linux*)
8762 LD="${LD-ld} -m elf64_sparc"
8763 ;;
8764 esac
8765 ;;
8766 esac
8767 fi
8768 rm -rf conftest*
8769 ;;
8770
8771 *-*-sco3.2v5*)
8772 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8773 SAVE_CFLAGS=$CFLAGS
8774 CFLAGS="$CFLAGS -belf"
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8776 printf %s "checking whether the C compiler needs -belf... " >&6; }
8777 if test ${lt_cv_cc_needs_belf+y}
8778 then :
8779 printf %s "(cached) " >&6
8780 else case e in #(
8781 e) ac_ext=c
8782 ac_cpp='$CPP $CPPFLAGS'
8783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8786
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789
8790 int
8791 main (void)
8792 {
8793
8794 ;
8795 return 0;
8796 }
8797 _ACEOF
8798 if ac_fn_c_try_link "$LINENO"
8799 then :
8800 lt_cv_cc_needs_belf=yes
8801 else case e in #(
8802 e) lt_cv_cc_needs_belf=no ;;
8803 esac
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8806 conftest$ac_exeext conftest.$ac_ext
8807 ac_ext=c
8808 ac_cpp='$CPP $CPPFLAGS'
8809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8812 ;;
8813 esac
8814 fi
8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8816 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8817 if test yes != "$lt_cv_cc_needs_belf"; then
8818 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8819 CFLAGS=$SAVE_CFLAGS
8820 fi
8821 ;;
8822 *-*solaris*)
8823 # Find out what ABI is being produced by ac_compile, and set linker
8824 # options accordingly.
8825 echo 'int i;' > conftest.$ac_ext
8826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8827 (eval $ac_compile) 2>&5
8828 ac_status=$?
8829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8830 test $ac_status = 0; }; then
8831 case `$FILECMD conftest.o` in
8832 *64-bit*)
8833 case $lt_cv_prog_gnu_ld in
8834 yes*)
8835 case $host in
8836 i?86-*-solaris*|x86_64-*-solaris*)
8837 LD="${LD-ld} -m elf_x86_64"
8838 ;;
8839 sparc*-*-solaris*)
8840 LD="${LD-ld} -m elf64_sparc"
8841 ;;
8842 esac
8843 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8844 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8845 LD=${LD-ld}_sol2
8846 fi
8847 ;;
8848 *)
8849 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8850 LD="${LD-ld} -64"
8851 fi
8852 ;;
8853 esac
8854 ;;
8855 esac
8856 fi
8857 rm -rf conftest*
8858 ;;
8859 esac
8860
8861 need_locks=$enable_libtool_lock
8862
8863 if test -n "$ac_tool_prefix"; then
8864 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8865 set dummy ${ac_tool_prefix}mt; ac_word=$2
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 printf %s "checking for $ac_word... " >&6; }
8868 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8869 then :
8870 printf %s "(cached) " >&6
8871 else case e in #(
8872 e) if test -n "$MANIFEST_TOOL"; then
8873 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8874 else
8875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876 for as_dir in $PATH
8877 do
8878 IFS=$as_save_IFS
8879 case $as_dir in #(((
8880 '') as_dir=./ ;;
8881 */) ;;
8882 *) as_dir=$as_dir/ ;;
8883 esac
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8886 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8888 break 2
8889 fi
8890 done
8891 done
8892 IFS=$as_save_IFS
8893
8894 fi ;;
8895 esac
8896 fi
8897 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8898 if test -n "$MANIFEST_TOOL"; then
8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8900 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8901 else
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 printf "%s\n" "no" >&6; }
8904 fi
8905
8906
8907 fi
8908 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8909 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8910 # Extract the first word of "mt", so it can be a program name with args.
8911 set dummy mt; ac_word=$2
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 printf %s "checking for $ac_word... " >&6; }
8914 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8915 then :
8916 printf %s "(cached) " >&6
8917 else case e in #(
8918 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8919 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8920 else
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 for as_dir in $PATH
8923 do
8924 IFS=$as_save_IFS
8925 case $as_dir in #(((
8926 '') as_dir=./ ;;
8927 */) ;;
8928 *) as_dir=$as_dir/ ;;
8929 esac
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8932 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8934 break 2
8935 fi
8936 done
8937 done
8938 IFS=$as_save_IFS
8939
8940 fi ;;
8941 esac
8942 fi
8943 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8944 if test -n "$ac_ct_MANIFEST_TOOL"; then
8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8946 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8947 else
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 printf "%s\n" "no" >&6; }
8950 fi
8951
8952 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8953 MANIFEST_TOOL=":"
8954 else
8955 case $cross_compiling:$ac_tool_warned in
8956 yes:)
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8959 ac_tool_warned=yes ;;
8960 esac
8961 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8962 fi
8963 else
8964 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8965 fi
8966
8967 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8969 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8970 if test ${lt_cv_path_mainfest_tool+y}
8971 then :
8972 printf %s "(cached) " >&6
8973 else case e in #(
8974 e) lt_cv_path_mainfest_tool=no
8975 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8976 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8977 cat conftest.err >&5
8978 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8979 lt_cv_path_mainfest_tool=yes
8980 fi
8981 rm -f conftest* ;;
8982 esac
8983 fi
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8985 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8986 if test yes != "$lt_cv_path_mainfest_tool"; then
8987 MANIFEST_TOOL=:
8988 fi
8989
8990
8991
8992
8993
8994
8995 case $host_os in
8996 rhapsody* | darwin*)
8997 if test -n "$ac_tool_prefix"; then
8998 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8999 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 printf %s "checking for $ac_word... " >&6; }
9002 if test ${ac_cv_prog_DSYMUTIL+y}
9003 then :
9004 printf %s "(cached) " >&6
9005 else case e in #(
9006 e) if test -n "$DSYMUTIL"; then
9007 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9008 else
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 for as_dir in $PATH
9011 do
9012 IFS=$as_save_IFS
9013 case $as_dir in #(((
9014 '') as_dir=./ ;;
9015 */) ;;
9016 *) as_dir=$as_dir/ ;;
9017 esac
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9020 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9022 break 2
9023 fi
9024 done
9025 done
9026 IFS=$as_save_IFS
9027
9028 fi ;;
9029 esac
9030 fi
9031 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9032 if test -n "$DSYMUTIL"; then
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9034 printf "%s\n" "$DSYMUTIL" >&6; }
9035 else
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 printf "%s\n" "no" >&6; }
9038 fi
9039
9040
9041 fi
9042 if test -z "$ac_cv_prog_DSYMUTIL"; then
9043 ac_ct_DSYMUTIL=$DSYMUTIL
9044 # Extract the first word of "dsymutil", so it can be a program name with args.
9045 set dummy dsymutil; ac_word=$2
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 printf %s "checking for $ac_word... " >&6; }
9048 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9049 then :
9050 printf %s "(cached) " >&6
9051 else case e in #(
9052 e) if test -n "$ac_ct_DSYMUTIL"; then
9053 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9054 else
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in $PATH
9057 do
9058 IFS=$as_save_IFS
9059 case $as_dir in #(((
9060 '') as_dir=./ ;;
9061 */) ;;
9062 *) as_dir=$as_dir/ ;;
9063 esac
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9066 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9068 break 2
9069 fi
9070 done
9071 done
9072 IFS=$as_save_IFS
9073
9074 fi ;;
9075 esac
9076 fi
9077 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9078 if test -n "$ac_ct_DSYMUTIL"; then
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9080 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9081 else
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9083 printf "%s\n" "no" >&6; }
9084 fi
9085
9086 if test "x$ac_ct_DSYMUTIL" = x; then
9087 DSYMUTIL=":"
9088 else
9089 case $cross_compiling:$ac_tool_warned in
9090 yes:)
9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9092 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9093 ac_tool_warned=yes ;;
9094 esac
9095 DSYMUTIL=$ac_ct_DSYMUTIL
9096 fi
9097 else
9098 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9099 fi
9100
9101 if test -n "$ac_tool_prefix"; then
9102 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9103 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105 printf %s "checking for $ac_word... " >&6; }
9106 if test ${ac_cv_prog_NMEDIT+y}
9107 then :
9108 printf %s "(cached) " >&6
9109 else case e in #(
9110 e) if test -n "$NMEDIT"; then
9111 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9112 else
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9115 do
9116 IFS=$as_save_IFS
9117 case $as_dir in #(((
9118 '') as_dir=./ ;;
9119 */) ;;
9120 *) as_dir=$as_dir/ ;;
9121 esac
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9124 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9126 break 2
9127 fi
9128 done
9129 done
9130 IFS=$as_save_IFS
9131
9132 fi ;;
9133 esac
9134 fi
9135 NMEDIT=$ac_cv_prog_NMEDIT
9136 if test -n "$NMEDIT"; then
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9138 printf "%s\n" "$NMEDIT" >&6; }
9139 else
9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 printf "%s\n" "no" >&6; }
9142 fi
9143
9144
9145 fi
9146 if test -z "$ac_cv_prog_NMEDIT"; then
9147 ac_ct_NMEDIT=$NMEDIT
9148 # Extract the first word of "nmedit", so it can be a program name with args.
9149 set dummy nmedit; ac_word=$2
9150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 printf %s "checking for $ac_word... " >&6; }
9152 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9153 then :
9154 printf %s "(cached) " >&6
9155 else case e in #(
9156 e) if test -n "$ac_ct_NMEDIT"; then
9157 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9158 else
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in $PATH
9161 do
9162 IFS=$as_save_IFS
9163 case $as_dir in #(((
9164 '') as_dir=./ ;;
9165 */) ;;
9166 *) as_dir=$as_dir/ ;;
9167 esac
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9170 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9172 break 2
9173 fi
9174 done
9175 done
9176 IFS=$as_save_IFS
9177
9178 fi ;;
9179 esac
9180 fi
9181 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9182 if test -n "$ac_ct_NMEDIT"; then
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9184 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9185 else
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 printf "%s\n" "no" >&6; }
9188 fi
9189
9190 if test "x$ac_ct_NMEDIT" = x; then
9191 NMEDIT=":"
9192 else
9193 case $cross_compiling:$ac_tool_warned in
9194 yes:)
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9197 ac_tool_warned=yes ;;
9198 esac
9199 NMEDIT=$ac_ct_NMEDIT
9200 fi
9201 else
9202 NMEDIT="$ac_cv_prog_NMEDIT"
9203 fi
9204
9205 if test -n "$ac_tool_prefix"; then
9206 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9207 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 printf %s "checking for $ac_word... " >&6; }
9210 if test ${ac_cv_prog_LIPO+y}
9211 then :
9212 printf %s "(cached) " >&6
9213 else case e in #(
9214 e) if test -n "$LIPO"; then
9215 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9216 else
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9219 do
9220 IFS=$as_save_IFS
9221 case $as_dir in #(((
9222 '') as_dir=./ ;;
9223 */) ;;
9224 *) as_dir=$as_dir/ ;;
9225 esac
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9228 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9230 break 2
9231 fi
9232 done
9233 done
9234 IFS=$as_save_IFS
9235
9236 fi ;;
9237 esac
9238 fi
9239 LIPO=$ac_cv_prog_LIPO
9240 if test -n "$LIPO"; then
9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9242 printf "%s\n" "$LIPO" >&6; }
9243 else
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245 printf "%s\n" "no" >&6; }
9246 fi
9247
9248
9249 fi
9250 if test -z "$ac_cv_prog_LIPO"; then
9251 ac_ct_LIPO=$LIPO
9252 # Extract the first word of "lipo", so it can be a program name with args.
9253 set dummy lipo; ac_word=$2
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9255 printf %s "checking for $ac_word... " >&6; }
9256 if test ${ac_cv_prog_ac_ct_LIPO+y}
9257 then :
9258 printf %s "(cached) " >&6
9259 else case e in #(
9260 e) if test -n "$ac_ct_LIPO"; then
9261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9262 else
9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264 for as_dir in $PATH
9265 do
9266 IFS=$as_save_IFS
9267 case $as_dir in #(((
9268 '') as_dir=./ ;;
9269 */) ;;
9270 *) as_dir=$as_dir/ ;;
9271 esac
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9274 ac_cv_prog_ac_ct_LIPO="lipo"
9275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9276 break 2
9277 fi
9278 done
9279 done
9280 IFS=$as_save_IFS
9281
9282 fi ;;
9283 esac
9284 fi
9285 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9286 if test -n "$ac_ct_LIPO"; then
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9288 printf "%s\n" "$ac_ct_LIPO" >&6; }
9289 else
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 printf "%s\n" "no" >&6; }
9292 fi
9293
9294 if test "x$ac_ct_LIPO" = x; then
9295 LIPO=":"
9296 else
9297 case $cross_compiling:$ac_tool_warned in
9298 yes:)
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9300 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9301 ac_tool_warned=yes ;;
9302 esac
9303 LIPO=$ac_ct_LIPO
9304 fi
9305 else
9306 LIPO="$ac_cv_prog_LIPO"
9307 fi
9308
9309 if test -n "$ac_tool_prefix"; then
9310 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9311 set dummy ${ac_tool_prefix}otool; ac_word=$2
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 printf %s "checking for $ac_word... " >&6; }
9314 if test ${ac_cv_prog_OTOOL+y}
9315 then :
9316 printf %s "(cached) " >&6
9317 else case e in #(
9318 e) if test -n "$OTOOL"; then
9319 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9320 else
9321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322 for as_dir in $PATH
9323 do
9324 IFS=$as_save_IFS
9325 case $as_dir in #(((
9326 '') as_dir=./ ;;
9327 */) ;;
9328 *) as_dir=$as_dir/ ;;
9329 esac
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9332 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336 done
9337 done
9338 IFS=$as_save_IFS
9339
9340 fi ;;
9341 esac
9342 fi
9343 OTOOL=$ac_cv_prog_OTOOL
9344 if test -n "$OTOOL"; then
9345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9346 printf "%s\n" "$OTOOL" >&6; }
9347 else
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 printf "%s\n" "no" >&6; }
9350 fi
9351
9352
9353 fi
9354 if test -z "$ac_cv_prog_OTOOL"; then
9355 ac_ct_OTOOL=$OTOOL
9356 # Extract the first word of "otool", so it can be a program name with args.
9357 set dummy otool; ac_word=$2
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 printf %s "checking for $ac_word... " >&6; }
9360 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9361 then :
9362 printf %s "(cached) " >&6
9363 else case e in #(
9364 e) if test -n "$ac_ct_OTOOL"; then
9365 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9366 else
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $PATH
9369 do
9370 IFS=$as_save_IFS
9371 case $as_dir in #(((
9372 '') as_dir=./ ;;
9373 */) ;;
9374 *) as_dir=$as_dir/ ;;
9375 esac
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9378 ac_cv_prog_ac_ct_OTOOL="otool"
9379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9380 break 2
9381 fi
9382 done
9383 done
9384 IFS=$as_save_IFS
9385
9386 fi ;;
9387 esac
9388 fi
9389 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9390 if test -n "$ac_ct_OTOOL"; then
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9392 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9393 else
9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 printf "%s\n" "no" >&6; }
9396 fi
9397
9398 if test "x$ac_ct_OTOOL" = x; then
9399 OTOOL=":"
9400 else
9401 case $cross_compiling:$ac_tool_warned in
9402 yes:)
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9405 ac_tool_warned=yes ;;
9406 esac
9407 OTOOL=$ac_ct_OTOOL
9408 fi
9409 else
9410 OTOOL="$ac_cv_prog_OTOOL"
9411 fi
9412
9413 if test -n "$ac_tool_prefix"; then
9414 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9415 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 printf %s "checking for $ac_word... " >&6; }
9418 if test ${ac_cv_prog_OTOOL64+y}
9419 then :
9420 printf %s "(cached) " >&6
9421 else case e in #(
9422 e) if test -n "$OTOOL64"; then
9423 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9424 else
9425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426 for as_dir in $PATH
9427 do
9428 IFS=$as_save_IFS
9429 case $as_dir in #(((
9430 '') as_dir=./ ;;
9431 */) ;;
9432 *) as_dir=$as_dir/ ;;
9433 esac
9434 for ac_exec_ext in '' $ac_executable_extensions; do
9435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9436 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9438 break 2
9439 fi
9440 done
9441 done
9442 IFS=$as_save_IFS
9443
9444 fi ;;
9445 esac
9446 fi
9447 OTOOL64=$ac_cv_prog_OTOOL64
9448 if test -n "$OTOOL64"; then
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9450 printf "%s\n" "$OTOOL64" >&6; }
9451 else
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 printf "%s\n" "no" >&6; }
9454 fi
9455
9456
9457 fi
9458 if test -z "$ac_cv_prog_OTOOL64"; then
9459 ac_ct_OTOOL64=$OTOOL64
9460 # Extract the first word of "otool64", so it can be a program name with args.
9461 set dummy otool64; ac_word=$2
9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 printf %s "checking for $ac_word... " >&6; }
9464 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9465 then :
9466 printf %s "(cached) " >&6
9467 else case e in #(
9468 e) if test -n "$ac_ct_OTOOL64"; then
9469 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9470 else
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9473 do
9474 IFS=$as_save_IFS
9475 case $as_dir in #(((
9476 '') as_dir=./ ;;
9477 */) ;;
9478 *) as_dir=$as_dir/ ;;
9479 esac
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9482 ac_cv_prog_ac_ct_OTOOL64="otool64"
9483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9484 break 2
9485 fi
9486 done
9487 done
9488 IFS=$as_save_IFS
9489
9490 fi ;;
9491 esac
9492 fi
9493 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9494 if test -n "$ac_ct_OTOOL64"; then
9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9496 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9497 else
9498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 printf "%s\n" "no" >&6; }
9500 fi
9501
9502 if test "x$ac_ct_OTOOL64" = x; then
9503 OTOOL64=":"
9504 else
9505 case $cross_compiling:$ac_tool_warned in
9506 yes:)
9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9508 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9509 ac_tool_warned=yes ;;
9510 esac
9511 OTOOL64=$ac_ct_OTOOL64
9512 fi
9513 else
9514 OTOOL64="$ac_cv_prog_OTOOL64"
9515 fi
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9544 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9545 if test ${lt_cv_ld_exported_symbols_list+y}
9546 then :
9547 printf %s "(cached) " >&6
9548 else case e in #(
9549 e) lt_cv_ld_exported_symbols_list=no
9550 save_LDFLAGS=$LDFLAGS
9551 echo "_main" > conftest.sym
9552 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555
9556 int
9557 main (void)
9558 {
9559
9560 ;
9561 return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_link "$LINENO"
9565 then :
9566 lt_cv_ld_exported_symbols_list=yes
9567 else case e in #(
9568 e) lt_cv_ld_exported_symbols_list=no ;;
9569 esac
9570 fi
9571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LDFLAGS=$save_LDFLAGS
9574 ;;
9575 esac
9576 fi
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9578 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9579
9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9581 printf %s "checking for -force_load linker flag... " >&6; }
9582 if test ${lt_cv_ld_force_load+y}
9583 then :
9584 printf %s "(cached) " >&6
9585 else case e in #(
9586 e) lt_cv_ld_force_load=no
9587 cat > conftest.c << _LT_EOF
9588 int forced_loaded() { return 2;}
9589 _LT_EOF
9590 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9591 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9592 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9593 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9594 echo "$RANLIB libconftest.a" >&5
9595 $RANLIB libconftest.a 2>&5
9596 cat > conftest.c << _LT_EOF
9597 int main() { return 0;}
9598 _LT_EOF
9599 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9600 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9601 _lt_result=$?
9602 if test -s conftest.err && $GREP force_load conftest.err; then
9603 cat conftest.err >&5
9604 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9605 lt_cv_ld_force_load=yes
9606 else
9607 cat conftest.err >&5
9608 fi
9609 rm -f conftest.err libconftest.a conftest conftest.c
9610 rm -rf conftest.dSYM
9611 ;;
9612 esac
9613 fi
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9615 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9616 case $host_os in
9617 rhapsody* | darwin1.[012])
9618 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9619 darwin1.*)
9620 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9621 darwin*)
9622 case $MACOSX_DEPLOYMENT_TARGET,$host in
9623 10.[012],*|,*powerpc*-darwin[5-8]*)
9624 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9625 *)
9626 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9627 esac
9628 ;;
9629 esac
9630 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9631 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9632 else
9633 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9634 fi
9635 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9636 _lt_dsymutil='~$DSYMUTIL $lib || :'
9637 else
9638 _lt_dsymutil=
9639 fi
9640 ;;
9641 esac
9642
9643 # func_munge_path_list VARIABLE PATH
9644 # -----------------------------------
9645 # VARIABLE is name of variable containing _space_ separated list of
9646 # directories to be munged by the contents of PATH, which is string
9647 # having a format:
9648 # "DIR[:DIR]:"
9649 # string "DIR[ DIR]" will be prepended to VARIABLE
9650 # ":DIR[:DIR]"
9651 # string "DIR[ DIR]" will be appended to VARIABLE
9652 # "DIRP[:DIRP]::[DIRA:]DIRA"
9653 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9654 # "DIRA[ DIRA]" will be appended to VARIABLE
9655 # "DIR[:DIR]"
9656 # VARIABLE will be replaced by "DIR[ DIR]"
9657 func_munge_path_list ()
9658 {
9659 case x$2 in
9660 x)
9661 ;;
9662 *:)
9663 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9664 ;;
9665 x:*)
9666 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9667 ;;
9668 *::*)
9669 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9670 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9671 ;;
9672 *)
9673 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9674 ;;
9675 esac
9676 }
9677
9678 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9679 "
9680 if test "x$ac_cv_header_dlfcn_h" = xyes
9681 then :
9682 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9683
9684 fi
9685
9686
9687
9688
9689
9690 # Set options
9691 enable_win32_dll=yes
9692
9693 case $host in
9694 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9695 if test -n "$ac_tool_prefix"; then
9696 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9697 set dummy ${ac_tool_prefix}as; ac_word=$2
9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 printf %s "checking for $ac_word... " >&6; }
9700 if test ${ac_cv_prog_AS+y}
9701 then :
9702 printf %s "(cached) " >&6
9703 else case e in #(
9704 e) if test -n "$AS"; then
9705 ac_cv_prog_AS="$AS" # Let the user override the test.
9706 else
9707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 for as_dir in $PATH
9709 do
9710 IFS=$as_save_IFS
9711 case $as_dir in #(((
9712 '') as_dir=./ ;;
9713 */) ;;
9714 *) as_dir=$as_dir/ ;;
9715 esac
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9718 ac_cv_prog_AS="${ac_tool_prefix}as"
9719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9720 break 2
9721 fi
9722 done
9723 done
9724 IFS=$as_save_IFS
9725
9726 fi ;;
9727 esac
9728 fi
9729 AS=$ac_cv_prog_AS
9730 if test -n "$AS"; then
9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9732 printf "%s\n" "$AS" >&6; }
9733 else
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 printf "%s\n" "no" >&6; }
9736 fi
9737
9738
9739 fi
9740 if test -z "$ac_cv_prog_AS"; then
9741 ac_ct_AS=$AS
9742 # Extract the first word of "as", so it can be a program name with args.
9743 set dummy as; ac_word=$2
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745 printf %s "checking for $ac_word... " >&6; }
9746 if test ${ac_cv_prog_ac_ct_AS+y}
9747 then :
9748 printf %s "(cached) " >&6
9749 else case e in #(
9750 e) if test -n "$ac_ct_AS"; then
9751 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9752 else
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9755 do
9756 IFS=$as_save_IFS
9757 case $as_dir in #(((
9758 '') as_dir=./ ;;
9759 */) ;;
9760 *) as_dir=$as_dir/ ;;
9761 esac
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9764 ac_cv_prog_ac_ct_AS="as"
9765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9766 break 2
9767 fi
9768 done
9769 done
9770 IFS=$as_save_IFS
9771
9772 fi ;;
9773 esac
9774 fi
9775 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9776 if test -n "$ac_ct_AS"; then
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9778 printf "%s\n" "$ac_ct_AS" >&6; }
9779 else
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 printf "%s\n" "no" >&6; }
9782 fi
9783
9784 if test "x$ac_ct_AS" = x; then
9785 AS="false"
9786 else
9787 case $cross_compiling:$ac_tool_warned in
9788 yes:)
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9790 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9791 ac_tool_warned=yes ;;
9792 esac
9793 AS=$ac_ct_AS
9794 fi
9795 else
9796 AS="$ac_cv_prog_AS"
9797 fi
9798
9799 if test -n "$ac_tool_prefix"; then
9800 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9801 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 printf %s "checking for $ac_word... " >&6; }
9804 if test ${ac_cv_prog_DLLTOOL+y}
9805 then :
9806 printf %s "(cached) " >&6
9807 else case e in #(
9808 e) if test -n "$DLLTOOL"; then
9809 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9810 else
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9813 do
9814 IFS=$as_save_IFS
9815 case $as_dir in #(((
9816 '') as_dir=./ ;;
9817 */) ;;
9818 *) as_dir=$as_dir/ ;;
9819 esac
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9822 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9824 break 2
9825 fi
9826 done
9827 done
9828 IFS=$as_save_IFS
9829
9830 fi ;;
9831 esac
9832 fi
9833 DLLTOOL=$ac_cv_prog_DLLTOOL
9834 if test -n "$DLLTOOL"; then
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9836 printf "%s\n" "$DLLTOOL" >&6; }
9837 else
9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 printf "%s\n" "no" >&6; }
9840 fi
9841
9842
9843 fi
9844 if test -z "$ac_cv_prog_DLLTOOL"; then
9845 ac_ct_DLLTOOL=$DLLTOOL
9846 # Extract the first word of "dlltool", so it can be a program name with args.
9847 set dummy dlltool; ac_word=$2
9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9849 printf %s "checking for $ac_word... " >&6; }
9850 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9851 then :
9852 printf %s "(cached) " >&6
9853 else case e in #(
9854 e) if test -n "$ac_ct_DLLTOOL"; then
9855 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9856 else
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in $PATH
9859 do
9860 IFS=$as_save_IFS
9861 case $as_dir in #(((
9862 '') as_dir=./ ;;
9863 */) ;;
9864 *) as_dir=$as_dir/ ;;
9865 esac
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9868 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9870 break 2
9871 fi
9872 done
9873 done
9874 IFS=$as_save_IFS
9875
9876 fi ;;
9877 esac
9878 fi
9879 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9880 if test -n "$ac_ct_DLLTOOL"; then
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9882 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9883 else
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 printf "%s\n" "no" >&6; }
9886 fi
9887
9888 if test "x$ac_ct_DLLTOOL" = x; then
9889 DLLTOOL="false"
9890 else
9891 case $cross_compiling:$ac_tool_warned in
9892 yes:)
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9894 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9895 ac_tool_warned=yes ;;
9896 esac
9897 DLLTOOL=$ac_ct_DLLTOOL
9898 fi
9899 else
9900 DLLTOOL="$ac_cv_prog_DLLTOOL"
9901 fi
9902
9903 if test -n "$ac_tool_prefix"; then
9904 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9905 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 printf %s "checking for $ac_word... " >&6; }
9908 if test ${ac_cv_prog_OBJDUMP+y}
9909 then :
9910 printf %s "(cached) " >&6
9911 else case e in #(
9912 e) if test -n "$OBJDUMP"; then
9913 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9914 else
9915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 for as_dir in $PATH
9917 do
9918 IFS=$as_save_IFS
9919 case $as_dir in #(((
9920 '') as_dir=./ ;;
9921 */) ;;
9922 *) as_dir=$as_dir/ ;;
9923 esac
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9926 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9928 break 2
9929 fi
9930 done
9931 done
9932 IFS=$as_save_IFS
9933
9934 fi ;;
9935 esac
9936 fi
9937 OBJDUMP=$ac_cv_prog_OBJDUMP
9938 if test -n "$OBJDUMP"; then
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9940 printf "%s\n" "$OBJDUMP" >&6; }
9941 else
9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 printf "%s\n" "no" >&6; }
9944 fi
9945
9946
9947 fi
9948 if test -z "$ac_cv_prog_OBJDUMP"; then
9949 ac_ct_OBJDUMP=$OBJDUMP
9950 # Extract the first word of "objdump", so it can be a program name with args.
9951 set dummy objdump; ac_word=$2
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 printf %s "checking for $ac_word... " >&6; }
9954 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9955 then :
9956 printf %s "(cached) " >&6
9957 else case e in #(
9958 e) if test -n "$ac_ct_OBJDUMP"; then
9959 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9960 else
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9963 do
9964 IFS=$as_save_IFS
9965 case $as_dir in #(((
9966 '') as_dir=./ ;;
9967 */) ;;
9968 *) as_dir=$as_dir/ ;;
9969 esac
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9972 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9974 break 2
9975 fi
9976 done
9977 done
9978 IFS=$as_save_IFS
9979
9980 fi ;;
9981 esac
9982 fi
9983 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9984 if test -n "$ac_ct_OBJDUMP"; then
9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9986 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9987 else
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 printf "%s\n" "no" >&6; }
9990 fi
9991
9992 if test "x$ac_ct_OBJDUMP" = x; then
9993 OBJDUMP="false"
9994 else
9995 case $cross_compiling:$ac_tool_warned in
9996 yes:)
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9998 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9999 ac_tool_warned=yes ;;
10000 esac
10001 OBJDUMP=$ac_ct_OBJDUMP
10002 fi
10003 else
10004 OBJDUMP="$ac_cv_prog_OBJDUMP"
10005 fi
10006
10007 ;;
10008 esac
10009
10010 test -z "$AS" && AS=as
10011
10012
10013
10014
10015
10016 test -z "$DLLTOOL" && DLLTOOL=dlltool
10017
10018
10019
10020
10021
10022 test -z "$OBJDUMP" && OBJDUMP=objdump
10023
10024
10025
10026
10027
10028
10029
10030 enable_dlopen=no
10031
10032
10033
10034 # Check whether --enable-shared was given.
10035 if test ${enable_shared+y}
10036 then :
10037 enableval=$enable_shared; p=${PACKAGE-default}
10038 case $enableval in
10039 yes) enable_shared=yes ;;
10040 no) enable_shared=no ;;
10041 *)
10042 enable_shared=no
10043 # Look at the argument we got. We use all the common list separators.
10044 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10045 for pkg in $enableval; do
10046 IFS=$lt_save_ifs
10047 if test "X$pkg" = "X$p"; then
10048 enable_shared=yes
10049 fi
10050 done
10051 IFS=$lt_save_ifs
10052 ;;
10053 esac
10054 else case e in #(
10055 e) enable_shared=yes ;;
10056 esac
10057 fi
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067 # Check whether --enable-static was given.
10068 if test ${enable_static+y}
10069 then :
10070 enableval=$enable_static; p=${PACKAGE-default}
10071 case $enableval in
10072 yes) enable_static=yes ;;
10073 no) enable_static=no ;;
10074 *)
10075 enable_static=no
10076 # Look at the argument we got. We use all the common list separators.
10077 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10078 for pkg in $enableval; do
10079 IFS=$lt_save_ifs
10080 if test "X$pkg" = "X$p"; then
10081 enable_static=yes
10082 fi
10083 done
10084 IFS=$lt_save_ifs
10085 ;;
10086 esac
10087 else case e in #(
10088 e) enable_static=yes ;;
10089 esac
10090 fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101 # Check whether --with-pic was given.
10102 if test ${with_pic+y}
10103 then :
10104 withval=$with_pic; lt_p=${PACKAGE-default}
10105 case $withval in
10106 yes|no) pic_mode=$withval ;;
10107 *)
10108 pic_mode=default
10109 # Look at the argument we got. We use all the common list separators.
10110 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10111 for lt_pkg in $withval; do
10112 IFS=$lt_save_ifs
10113 if test "X$lt_pkg" = "X$lt_p"; then
10114 pic_mode=yes
10115 fi
10116 done
10117 IFS=$lt_save_ifs
10118 ;;
10119 esac
10120 else case e in #(
10121 e) pic_mode=default ;;
10122 esac
10123 fi
10124
10125
10126
10127
10128
10129
10130
10131
10132 # Check whether --enable-fast-install was given.
10133 if test ${enable_fast_install+y}
10134 then :
10135 enableval=$enable_fast_install; p=${PACKAGE-default}
10136 case $enableval in
10137 yes) enable_fast_install=yes ;;
10138 no) enable_fast_install=no ;;
10139 *)
10140 enable_fast_install=no
10141 # Look at the argument we got. We use all the common list separators.
10142 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10143 for pkg in $enableval; do
10144 IFS=$lt_save_ifs
10145 if test "X$pkg" = "X$p"; then
10146 enable_fast_install=yes
10147 fi
10148 done
10149 IFS=$lt_save_ifs
10150 ;;
10151 esac
10152 else case e in #(
10153 e) enable_fast_install=yes ;;
10154 esac
10155 fi
10156
10157
10158
10159
10160
10161
10162
10163
10164 shared_archive_member_spec=
10165 case $host,$enable_shared in
10166 power*-*-aix[5-9]*,yes)
10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10168 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10169
10170 # Check whether --with-aix-soname was given.
10171 if test ${with_aix_soname+y}
10172 then :
10173 withval=$with_aix_soname; case $withval in
10174 aix|svr4|both)
10175 ;;
10176 *)
10177 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10178 ;;
10179 esac
10180 lt_cv_with_aix_soname=$with_aix_soname
10181 else case e in #(
10182 e) if test ${lt_cv_with_aix_soname+y}
10183 then :
10184 printf %s "(cached) " >&6
10185 else case e in #(
10186 e) lt_cv_with_aix_soname=aix ;;
10187 esac
10188 fi
10189
10190 with_aix_soname=$lt_cv_with_aix_soname ;;
10191 esac
10192 fi
10193
10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10195 printf "%s\n" "$with_aix_soname" >&6; }
10196 if test aix != "$with_aix_soname"; then
10197 # For the AIX way of multilib, we name the shared archive member
10198 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10199 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10200 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10201 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10202 if test 64 = "${OBJECT_MODE-32}"; then
10203 shared_archive_member_spec=shr_64
10204 else
10205 shared_archive_member_spec=shr
10206 fi
10207 fi
10208 ;;
10209 *)
10210 with_aix_soname=aix
10211 ;;
10212 esac
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223 # This can be used to rebuild libtool when needed
10224 LIBTOOL_DEPS=$ltmain
10225
10226 # Always use our own libtool.
10227 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258 test -z "$LN_S" && LN_S="ln -s"
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273 if test -n "${ZSH_VERSION+set}"; then
10274 setopt NO_GLOB_SUBST
10275 fi
10276
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10278 printf %s "checking for objdir... " >&6; }
10279 if test ${lt_cv_objdir+y}
10280 then :
10281 printf %s "(cached) " >&6
10282 else case e in #(
10283 e) rm -f .libs 2>/dev/null
10284 mkdir .libs 2>/dev/null
10285 if test -d .libs; then
10286 lt_cv_objdir=.libs
10287 else
10288 # MS-DOS does not allow filenames that begin with a dot.
10289 lt_cv_objdir=_libs
10290 fi
10291 rmdir .libs 2>/dev/null ;;
10292 esac
10293 fi
10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10295 printf "%s\n" "$lt_cv_objdir" >&6; }
10296 objdir=$lt_cv_objdir
10297
10298
10299
10300
10301
10302 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10303
10304
10305
10306
10307 case $host_os in
10308 aix3*)
10309 # AIX sometimes has problems with the GCC collect2 program. For some
10310 # reason, if we set the COLLECT_NAMES environment variable, the problems
10311 # vanish in a puff of smoke.
10312 if test set != "${COLLECT_NAMES+set}"; then
10313 COLLECT_NAMES=
10314 export COLLECT_NAMES
10315 fi
10316 ;;
10317 esac
10318
10319 # Global variables:
10320 ofile=libtool
10321 can_build_shared=yes
10322
10323 # All known linkers require a '.a' archive for static linking (except MSVC and
10324 # ICC, which need '.lib').
10325 libext=a
10326
10327 with_gnu_ld=$lt_cv_prog_gnu_ld
10328
10329 old_CC=$CC
10330 old_CFLAGS=$CFLAGS
10331
10332 # Set sane defaults for various variables
10333 test -z "$CC" && CC=cc
10334 test -z "$LTCC" && LTCC=$CC
10335 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10336 test -z "$LD" && LD=ld
10337 test -z "$ac_objext" && ac_objext=o
10338
10339 func_cc_basename $compiler
10340 cc_basename=$func_cc_basename_result
10341
10342
10343 # Only perform the check for file, if the check method requires it
10344 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10345 case $deplibs_check_method in
10346 file_magic*)
10347 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10349 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10350 if test ${lt_cv_path_MAGIC_CMD+y}
10351 then :
10352 printf %s "(cached) " >&6
10353 else case e in #(
10354 e) case $MAGIC_CMD in
10355 [\\/*] | ?:[\\/]*)
10356 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10357 ;;
10358 *)
10359 lt_save_MAGIC_CMD=$MAGIC_CMD
10360 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10361 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10362 for ac_dir in $ac_dummy; do
10363 IFS=$lt_save_ifs
10364 test -z "$ac_dir" && ac_dir=.
10365 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10366 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10367 if test -n "$file_magic_test_file"; then
10368 case $deplibs_check_method in
10369 "file_magic "*)
10370 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10371 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10372 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10373 $EGREP "$file_magic_regex" > /dev/null; then
10374 :
10375 else
10376 cat <<_LT_EOF 1>&2
10377
10378 *** Warning: the command libtool uses to detect shared libraries,
10379 *** $file_magic_cmd, produces output that libtool cannot recognize.
10380 *** The result is that libtool may fail to recognize shared libraries
10381 *** as such. This will affect the creation of libtool libraries that
10382 *** depend on shared libraries, but programs linked with such libtool
10383 *** libraries will work regardless of this problem. Nevertheless, you
10384 *** may want to report the problem to your system manager and/or to
10385 *** bug-libtool@gnu.org
10386
10387 _LT_EOF
10388 fi ;;
10389 esac
10390 fi
10391 break
10392 fi
10393 done
10394 IFS=$lt_save_ifs
10395 MAGIC_CMD=$lt_save_MAGIC_CMD
10396 ;;
10397 esac ;;
10398 esac
10399 fi
10400
10401 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10402 if test -n "$MAGIC_CMD"; then
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10404 printf "%s\n" "$MAGIC_CMD" >&6; }
10405 else
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 printf "%s\n" "no" >&6; }
10408 fi
10409
10410
10411
10412
10413
10414 if test -z "$lt_cv_path_MAGIC_CMD"; then
10415 if test -n "$ac_tool_prefix"; then
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10417 printf %s "checking for file... " >&6; }
10418 if test ${lt_cv_path_MAGIC_CMD+y}
10419 then :
10420 printf %s "(cached) " >&6
10421 else case e in #(
10422 e) case $MAGIC_CMD in
10423 [\\/*] | ?:[\\/]*)
10424 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10425 ;;
10426 *)
10427 lt_save_MAGIC_CMD=$MAGIC_CMD
10428 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10430 for ac_dir in $ac_dummy; do
10431 IFS=$lt_save_ifs
10432 test -z "$ac_dir" && ac_dir=.
10433 if test -f "$ac_dir/file"; then
10434 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10435 if test -n "$file_magic_test_file"; then
10436 case $deplibs_check_method in
10437 "file_magic "*)
10438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10439 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10441 $EGREP "$file_magic_regex" > /dev/null; then
10442 :
10443 else
10444 cat <<_LT_EOF 1>&2
10445
10446 *** Warning: the command libtool uses to detect shared libraries,
10447 *** $file_magic_cmd, produces output that libtool cannot recognize.
10448 *** The result is that libtool may fail to recognize shared libraries
10449 *** as such. This will affect the creation of libtool libraries that
10450 *** depend on shared libraries, but programs linked with such libtool
10451 *** libraries will work regardless of this problem. Nevertheless, you
10452 *** may want to report the problem to your system manager and/or to
10453 *** bug-libtool@gnu.org
10454
10455 _LT_EOF
10456 fi ;;
10457 esac
10458 fi
10459 break
10460 fi
10461 done
10462 IFS=$lt_save_ifs
10463 MAGIC_CMD=$lt_save_MAGIC_CMD
10464 ;;
10465 esac ;;
10466 esac
10467 fi
10468
10469 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10470 if test -n "$MAGIC_CMD"; then
10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10472 printf "%s\n" "$MAGIC_CMD" >&6; }
10473 else
10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475 printf "%s\n" "no" >&6; }
10476 fi
10477
10478
10479 else
10480 MAGIC_CMD=:
10481 fi
10482 fi
10483
10484 fi
10485 ;;
10486 esac
10487
10488 # Use C for the default configuration in the libtool script
10489
10490 lt_save_CC=$CC
10491 ac_ext=c
10492 ac_cpp='$CPP $CPPFLAGS'
10493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10496
10497
10498 # Source file extension for C test sources.
10499 ac_ext=c
10500
10501 # Object file extension for compiled C test sources.
10502 objext=o
10503 objext=$objext
10504
10505 # Code to be used in simple compile tests
10506 lt_simple_compile_test_code="int some_variable = 0;"
10507
10508 # Code to be used in simple link tests
10509 lt_simple_link_test_code='int main(){return(0);}'
10510
10511
10512
10513
10514
10515
10516
10517 # If no C compiler was specified, use CC.
10518 LTCC=${LTCC-"$CC"}
10519
10520 # If no C compiler flags were specified, use CFLAGS.
10521 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10522
10523 # Allow CC to be a program name with arguments.
10524 compiler=$CC
10525
10526 # Save the default compiler, since it gets overwritten when the other
10527 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10528 compiler_DEFAULT=$CC
10529
10530 # save warnings/boilerplate of simple test code
10531 ac_outfile=conftest.$ac_objext
10532 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10533 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10534 _lt_compiler_boilerplate=`cat conftest.err`
10535 $RM conftest*
10536
10537 ac_outfile=conftest.$ac_objext
10538 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10539 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10540 _lt_linker_boilerplate=`cat conftest.err`
10541 $RM -r conftest*
10542
10543
10544 if test -n "$compiler"; then
10545
10546 lt_prog_compiler_no_builtin_flag=
10547
10548 if test yes = "$GCC"; then
10549 case $cc_basename in
10550 nvcc*)
10551 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10552 *)
10553 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10554 esac
10555
10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10557 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10558 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10559 then :
10560 printf %s "(cached) " >&6
10561 else case e in #(
10562 e) lt_cv_prog_compiler_rtti_exceptions=no
10563 ac_outfile=conftest.$ac_objext
10564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10565 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10566 # Insert the option either (1) after the last *FLAGS variable, or
10567 # (2) before a word containing "conftest.", or (3) at the end.
10568 # Note that $ac_compile itself does not contain backslashes and begins
10569 # with a dollar sign (not a hyphen), so the echo should work correctly.
10570 # The option is referenced via a variable to avoid confusing sed.
10571 lt_compile=`echo "$ac_compile" | $SED \
10572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10574 -e 's:$: $lt_compiler_flag:'`
10575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10576 (eval "$lt_compile" 2>conftest.err)
10577 ac_status=$?
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 if (exit $ac_status) && test -s "$ac_outfile"; then
10581 # The compiler can only warn and ignore the option if not recognized
10582 # So say no if there are warnings other than the usual output.
10583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10586 lt_cv_prog_compiler_rtti_exceptions=yes
10587 fi
10588 fi
10589 $RM conftest*
10590 ;;
10591 esac
10592 fi
10593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10594 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10595
10596 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10597 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10598 else
10599 :
10600 fi
10601
10602 fi
10603
10604
10605
10606
10607
10608
10609 lt_prog_compiler_wl=
10610 lt_prog_compiler_pic=
10611 lt_prog_compiler_static=
10612
10613
10614 if test yes = "$GCC"; then
10615 lt_prog_compiler_wl='-Wl,'
10616 lt_prog_compiler_static='-static'
10617
10618 case $host_os in
10619 aix*)
10620 # All AIX code is PIC.
10621 if test ia64 = "$host_cpu"; then
10622 # AIX 5 now supports IA64 processor
10623 lt_prog_compiler_static='-Bstatic'
10624 fi
10625 lt_prog_compiler_pic='-fPIC'
10626 ;;
10627
10628 amigaos*)
10629 case $host_cpu in
10630 powerpc)
10631 # see comment about AmigaOS4 .so support
10632 lt_prog_compiler_pic='-fPIC'
10633 ;;
10634 m68k)
10635 # FIXME: we need at least 68020 code to build shared libraries, but
10636 # adding the '-m68020' flag to GCC prevents building anything better,
10637 # like '-m68040'.
10638 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10639 ;;
10640 esac
10641 ;;
10642
10643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10644 # PIC is the default for these OSes.
10645 ;;
10646
10647 mingw* | cygwin* | pw32* | os2* | cegcc*)
10648 # This hack is so that the source file can tell whether it is being
10649 # built for inclusion in a dll (and should export symbols for example).
10650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10651 # (--disable-auto-import) libraries
10652 lt_prog_compiler_pic='-DDLL_EXPORT'
10653 case $host_os in
10654 os2*)
10655 lt_prog_compiler_static='$wl-static'
10656 ;;
10657 esac
10658 ;;
10659
10660 darwin* | rhapsody*)
10661 # PIC is the default on this platform
10662 # Common symbols not allowed in MH_DYLIB files
10663 lt_prog_compiler_pic='-fno-common'
10664 ;;
10665
10666 haiku*)
10667 # PIC is the default for Haiku.
10668 # The "-static" flag exists, but is broken.
10669 lt_prog_compiler_static=
10670 ;;
10671
10672 hpux*)
10673 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10674 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10675 # sets the default TLS model and affects inlining.
10676 case $host_cpu in
10677 hppa*64*)
10678 # +Z the default
10679 ;;
10680 *)
10681 lt_prog_compiler_pic='-fPIC'
10682 ;;
10683 esac
10684 ;;
10685
10686 interix[3-9]*)
10687 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10688 # Instead, we relocate shared libraries at runtime.
10689 ;;
10690
10691 msdosdjgpp*)
10692 # Just because we use GCC doesn't mean we suddenly get shared libraries
10693 # on systems that don't support them.
10694 lt_prog_compiler_can_build_shared=no
10695 enable_shared=no
10696 ;;
10697
10698 *nto* | *qnx*)
10699 # QNX uses GNU C++, but need to define -shared option too, otherwise
10700 # it will coredump.
10701 lt_prog_compiler_pic='-fPIC -shared'
10702 ;;
10703
10704 sysv4*MP*)
10705 if test -d /usr/nec; then
10706 lt_prog_compiler_pic=-Kconform_pic
10707 fi
10708 ;;
10709
10710 *)
10711 lt_prog_compiler_pic='-fPIC'
10712 ;;
10713 esac
10714
10715 case $cc_basename in
10716 nvcc*) # Cuda Compiler Driver 2.2
10717 lt_prog_compiler_wl='-Xlinker '
10718 if test -n "$lt_prog_compiler_pic"; then
10719 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10720 fi
10721 ;;
10722 esac
10723 else
10724 # PORTME Check for flag to pass linker flags through the system compiler.
10725 case $host_os in
10726 aix*)
10727 lt_prog_compiler_wl='-Wl,'
10728 if test ia64 = "$host_cpu"; then
10729 # AIX 5 now supports IA64 processor
10730 lt_prog_compiler_static='-Bstatic'
10731 else
10732 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10733 fi
10734 ;;
10735
10736 darwin* | rhapsody*)
10737 # PIC is the default on this platform
10738 # Common symbols not allowed in MH_DYLIB files
10739 lt_prog_compiler_pic='-fno-common'
10740 case $cc_basename in
10741 nagfor*)
10742 # NAG Fortran compiler
10743 lt_prog_compiler_wl='-Wl,-Wl,,'
10744 lt_prog_compiler_pic='-PIC'
10745 lt_prog_compiler_static='-Bstatic'
10746 ;;
10747 esac
10748 ;;
10749
10750 mingw* | cygwin* | pw32* | os2* | cegcc*)
10751 # This hack is so that the source file can tell whether it is being
10752 # built for inclusion in a dll (and should export symbols for example).
10753 lt_prog_compiler_pic='-DDLL_EXPORT'
10754 case $host_os in
10755 os2*)
10756 lt_prog_compiler_static='$wl-static'
10757 ;;
10758 esac
10759 ;;
10760
10761 hpux9* | hpux10* | hpux11*)
10762 lt_prog_compiler_wl='-Wl,'
10763 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10764 # not for PA HP-UX.
10765 case $host_cpu in
10766 hppa*64*|ia64*)
10767 # +Z the default
10768 ;;
10769 *)
10770 lt_prog_compiler_pic='+Z'
10771 ;;
10772 esac
10773 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10774 lt_prog_compiler_static='$wl-a ${wl}archive'
10775 ;;
10776
10777 irix5* | irix6* | nonstopux*)
10778 lt_prog_compiler_wl='-Wl,'
10779 # PIC (with -KPIC) is the default.
10780 lt_prog_compiler_static='-non_shared'
10781 ;;
10782
10783 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10784 case $cc_basename in
10785 # old Intel for x86_64, which still supported -KPIC.
10786 ecc*)
10787 lt_prog_compiler_wl='-Wl,'
10788 lt_prog_compiler_pic='-KPIC'
10789 lt_prog_compiler_static='-static'
10790 ;;
10791 # icc used to be incompatible with GCC.
10792 # ICC 10 doesn't accept -KPIC any more.
10793 icc* | ifort*)
10794 lt_prog_compiler_wl='-Wl,'
10795 lt_prog_compiler_pic='-fPIC'
10796 lt_prog_compiler_static='-static'
10797 ;;
10798 # Lahey Fortran 8.1.
10799 lf95*)
10800 lt_prog_compiler_wl='-Wl,'
10801 lt_prog_compiler_pic='--shared'
10802 lt_prog_compiler_static='--static'
10803 ;;
10804 nagfor*)
10805 # NAG Fortran compiler
10806 lt_prog_compiler_wl='-Wl,-Wl,,'
10807 lt_prog_compiler_pic='-PIC'
10808 lt_prog_compiler_static='-Bstatic'
10809 ;;
10810 tcc*)
10811 # Fabrice Bellard et al's Tiny C Compiler
10812 lt_prog_compiler_wl='-Wl,'
10813 lt_prog_compiler_pic='-fPIC'
10814 lt_prog_compiler_static='-static'
10815 ;;
10816 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10817 # Portland Group compilers (*not* the Pentium gcc compiler,
10818 # which looks to be a dead project)
10819 lt_prog_compiler_wl='-Wl,'
10820 lt_prog_compiler_pic='-fpic'
10821 lt_prog_compiler_static='-Bstatic'
10822 ;;
10823 ccc*)
10824 lt_prog_compiler_wl='-Wl,'
10825 # All Alpha code is PIC.
10826 lt_prog_compiler_static='-non_shared'
10827 ;;
10828 xl* | bgxl* | bgf* | mpixl*)
10829 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10830 lt_prog_compiler_wl='-Wl,'
10831 lt_prog_compiler_pic='-qpic'
10832 lt_prog_compiler_static='-qstaticlink'
10833 ;;
10834 *)
10835 case `$CC -V 2>&1 | $SED 5q` in
10836 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10837 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10838 lt_prog_compiler_pic='-KPIC'
10839 lt_prog_compiler_static='-Bstatic'
10840 lt_prog_compiler_wl=''
10841 ;;
10842 *Sun\ F* | *Sun*Fortran*)
10843 lt_prog_compiler_pic='-KPIC'
10844 lt_prog_compiler_static='-Bstatic'
10845 lt_prog_compiler_wl='-Qoption ld '
10846 ;;
10847 *Sun\ C*)
10848 # Sun C 5.9
10849 lt_prog_compiler_pic='-KPIC'
10850 lt_prog_compiler_static='-Bstatic'
10851 lt_prog_compiler_wl='-Wl,'
10852 ;;
10853 *Intel*\ [CF]*Compiler*)
10854 lt_prog_compiler_wl='-Wl,'
10855 lt_prog_compiler_pic='-fPIC'
10856 lt_prog_compiler_static='-static'
10857 ;;
10858 *Portland\ Group*)
10859 lt_prog_compiler_wl='-Wl,'
10860 lt_prog_compiler_pic='-fpic'
10861 lt_prog_compiler_static='-Bstatic'
10862 ;;
10863 esac
10864 ;;
10865 esac
10866 ;;
10867
10868 newsos6)
10869 lt_prog_compiler_pic='-KPIC'
10870 lt_prog_compiler_static='-Bstatic'
10871 ;;
10872
10873 *nto* | *qnx*)
10874 # QNX uses GNU C++, but need to define -shared option too, otherwise
10875 # it will coredump.
10876 lt_prog_compiler_pic='-fPIC -shared'
10877 ;;
10878
10879 osf3* | osf4* | osf5*)
10880 lt_prog_compiler_wl='-Wl,'
10881 # All OSF/1 code is PIC.
10882 lt_prog_compiler_static='-non_shared'
10883 ;;
10884
10885 rdos*)
10886 lt_prog_compiler_static='-non_shared'
10887 ;;
10888
10889 solaris*)
10890 lt_prog_compiler_pic='-KPIC'
10891 lt_prog_compiler_static='-Bstatic'
10892 case $cc_basename in
10893 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10894 lt_prog_compiler_wl='-Qoption ld ';;
10895 *)
10896 lt_prog_compiler_wl='-Wl,';;
10897 esac
10898 ;;
10899
10900 sunos4*)
10901 lt_prog_compiler_wl='-Qoption ld '
10902 lt_prog_compiler_pic='-PIC'
10903 lt_prog_compiler_static='-Bstatic'
10904 ;;
10905
10906 sysv4 | sysv4.2uw2* | sysv4.3*)
10907 lt_prog_compiler_wl='-Wl,'
10908 lt_prog_compiler_pic='-KPIC'
10909 lt_prog_compiler_static='-Bstatic'
10910 ;;
10911
10912 sysv4*MP*)
10913 if test -d /usr/nec; then
10914 lt_prog_compiler_pic='-Kconform_pic'
10915 lt_prog_compiler_static='-Bstatic'
10916 fi
10917 ;;
10918
10919 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10920 lt_prog_compiler_wl='-Wl,'
10921 lt_prog_compiler_pic='-KPIC'
10922 lt_prog_compiler_static='-Bstatic'
10923 ;;
10924
10925 unicos*)
10926 lt_prog_compiler_wl='-Wl,'
10927 lt_prog_compiler_can_build_shared=no
10928 ;;
10929
10930 uts4*)
10931 lt_prog_compiler_pic='-pic'
10932 lt_prog_compiler_static='-Bstatic'
10933 ;;
10934
10935 *)
10936 lt_prog_compiler_can_build_shared=no
10937 ;;
10938 esac
10939 fi
10940
10941 case $host_os in
10942 # For platforms that do not support PIC, -DPIC is meaningless:
10943 *djgpp*)
10944 lt_prog_compiler_pic=
10945 ;;
10946 *)
10947 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10948 ;;
10949 esac
10950
10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10952 printf %s "checking for $compiler option to produce PIC... " >&6; }
10953 if test ${lt_cv_prog_compiler_pic+y}
10954 then :
10955 printf %s "(cached) " >&6
10956 else case e in #(
10957 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10958 esac
10959 fi
10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10961 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10962 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10963
10964 #
10965 # Check to make sure the PIC flag actually works.
10966 #
10967 if test -n "$lt_prog_compiler_pic"; then
10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10969 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10970 if test ${lt_cv_prog_compiler_pic_works+y}
10971 then :
10972 printf %s "(cached) " >&6
10973 else case e in #(
10974 e) lt_cv_prog_compiler_pic_works=no
10975 ac_outfile=conftest.$ac_objext
10976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10977 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10978 # Insert the option either (1) after the last *FLAGS variable, or
10979 # (2) before a word containing "conftest.", or (3) at the end.
10980 # Note that $ac_compile itself does not contain backslashes and begins
10981 # with a dollar sign (not a hyphen), so the echo should work correctly.
10982 # The option is referenced via a variable to avoid confusing sed.
10983 lt_compile=`echo "$ac_compile" | $SED \
10984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10986 -e 's:$: $lt_compiler_flag:'`
10987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10988 (eval "$lt_compile" 2>conftest.err)
10989 ac_status=$?
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 if (exit $ac_status) && test -s "$ac_outfile"; then
10993 # The compiler can only warn and ignore the option if not recognized
10994 # So say no if there are warnings other than the usual output.
10995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10998 lt_cv_prog_compiler_pic_works=yes
10999 fi
11000 fi
11001 $RM conftest*
11002 ;;
11003 esac
11004 fi
11005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11006 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11007
11008 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11009 case $lt_prog_compiler_pic in
11010 "" | " "*) ;;
11011 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11012 esac
11013 else
11014 lt_prog_compiler_pic=
11015 lt_prog_compiler_can_build_shared=no
11016 fi
11017
11018 fi
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030 #
11031 # Check to make sure the static flag actually works.
11032 #
11033 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11035 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11036 if test ${lt_cv_prog_compiler_static_works+y}
11037 then :
11038 printf %s "(cached) " >&6
11039 else case e in #(
11040 e) lt_cv_prog_compiler_static_works=no
11041 save_LDFLAGS=$LDFLAGS
11042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11043 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11045 # The linker can only warn and ignore the option if not recognized
11046 # So say no if there are warnings
11047 if test -s conftest.err; then
11048 # Append any errors to the config.log.
11049 cat conftest.err 1>&5
11050 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11052 if diff conftest.exp conftest.er2 >/dev/null; then
11053 lt_cv_prog_compiler_static_works=yes
11054 fi
11055 else
11056 lt_cv_prog_compiler_static_works=yes
11057 fi
11058 fi
11059 $RM -r conftest*
11060 LDFLAGS=$save_LDFLAGS
11061 ;;
11062 esac
11063 fi
11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11065 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11066
11067 if test yes = "$lt_cv_prog_compiler_static_works"; then
11068 :
11069 else
11070 lt_prog_compiler_static=
11071 fi
11072
11073
11074
11075
11076
11077
11078
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11080 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11081 if test ${lt_cv_prog_compiler_c_o+y}
11082 then :
11083 printf %s "(cached) " >&6
11084 else case e in #(
11085 e) lt_cv_prog_compiler_c_o=no
11086 $RM -r conftest 2>/dev/null
11087 mkdir conftest
11088 cd conftest
11089 mkdir out
11090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11091
11092 lt_compiler_flag="-o out/conftest2.$ac_objext"
11093 # Insert the option either (1) after the last *FLAGS variable, or
11094 # (2) before a word containing "conftest.", or (3) at the end.
11095 # Note that $ac_compile itself does not contain backslashes and begins
11096 # with a dollar sign (not a hyphen), so the echo should work correctly.
11097 lt_compile=`echo "$ac_compile" | $SED \
11098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11100 -e 's:$: $lt_compiler_flag:'`
11101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11102 (eval "$lt_compile" 2>out/conftest.err)
11103 ac_status=$?
11104 cat out/conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11107 then
11108 # The compiler can only warn and ignore the option if not recognized
11109 # So say no if there are warnings
11110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11113 lt_cv_prog_compiler_c_o=yes
11114 fi
11115 fi
11116 chmod u+w . 2>&5
11117 $RM conftest*
11118 # SGI C++ compiler will create directory out/ii_files/ for
11119 # template instantiation
11120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11121 $RM out/* && rmdir out
11122 cd ..
11123 $RM -r conftest
11124 $RM conftest*
11125 ;;
11126 esac
11127 fi
11128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11129 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11130
11131
11132
11133
11134
11135
11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11137 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11138 if test ${lt_cv_prog_compiler_c_o+y}
11139 then :
11140 printf %s "(cached) " >&6
11141 else case e in #(
11142 e) lt_cv_prog_compiler_c_o=no
11143 $RM -r conftest 2>/dev/null
11144 mkdir conftest
11145 cd conftest
11146 mkdir out
11147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11148
11149 lt_compiler_flag="-o out/conftest2.$ac_objext"
11150 # Insert the option either (1) after the last *FLAGS variable, or
11151 # (2) before a word containing "conftest.", or (3) at the end.
11152 # Note that $ac_compile itself does not contain backslashes and begins
11153 # with a dollar sign (not a hyphen), so the echo should work correctly.
11154 lt_compile=`echo "$ac_compile" | $SED \
11155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11157 -e 's:$: $lt_compiler_flag:'`
11158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11159 (eval "$lt_compile" 2>out/conftest.err)
11160 ac_status=$?
11161 cat out/conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11164 then
11165 # The compiler can only warn and ignore the option if not recognized
11166 # So say no if there are warnings
11167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11170 lt_cv_prog_compiler_c_o=yes
11171 fi
11172 fi
11173 chmod u+w . 2>&5
11174 $RM conftest*
11175 # SGI C++ compiler will create directory out/ii_files/ for
11176 # template instantiation
11177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11178 $RM out/* && rmdir out
11179 cd ..
11180 $RM -r conftest
11181 $RM conftest*
11182 ;;
11183 esac
11184 fi
11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11186 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11187
11188
11189
11190
11191 hard_links=nottested
11192 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11193 # do not overwrite the value of need_locks provided by the user
11194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11195 printf %s "checking if we can lock with hard links... " >&6; }
11196 hard_links=yes
11197 $RM conftest*
11198 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11199 touch conftest.a
11200 ln conftest.a conftest.b 2>&5 || hard_links=no
11201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11203 printf "%s\n" "$hard_links" >&6; }
11204 if test no = "$hard_links"; then
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11206 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11207 need_locks=warn
11208 fi
11209 else
11210 need_locks=no
11211 fi
11212
11213
11214
11215
11216
11217
11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11219 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11220
11221 runpath_var=
11222 allow_undefined_flag=
11223 always_export_symbols=no
11224 archive_cmds=
11225 archive_expsym_cmds=
11226 compiler_needs_object=no
11227 enable_shared_with_static_runtimes=no
11228 export_dynamic_flag_spec=
11229 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11230 hardcode_automatic=no
11231 hardcode_direct=no
11232 hardcode_direct_absolute=no
11233 hardcode_libdir_flag_spec=
11234 hardcode_libdir_separator=
11235 hardcode_minus_L=no
11236 hardcode_shlibpath_var=unsupported
11237 inherit_rpath=no
11238 link_all_deplibs=unknown
11239 module_cmds=
11240 module_expsym_cmds=
11241 old_archive_from_new_cmds=
11242 old_archive_from_expsyms_cmds=
11243 thread_safe_flag_spec=
11244 whole_archive_flag_spec=
11245 # include_expsyms should be a list of space-separated symbols to be *always*
11246 # included in the symbol list
11247 include_expsyms=
11248 # exclude_expsyms can be an extended regexp of symbols to exclude
11249 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11250 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11251 # as well as any symbol that contains 'd'.
11252 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11254 # platforms (ab)use it in PIC code, but their linkers get confused if
11255 # the symbol is explicitly referenced. Since portable code cannot
11256 # rely on this symbol name, it's probably fine to never include it in
11257 # preloaded symbol tables.
11258 # Exclude shared library initialization/finalization symbols.
11259 extract_expsyms_cmds=
11260
11261 case $host_os in
11262 cygwin* | mingw* | pw32* | cegcc*)
11263 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11264 # When not using gcc, we currently assume that we are using
11265 # Microsoft Visual C++ or Intel C++ Compiler.
11266 if test yes != "$GCC"; then
11267 with_gnu_ld=no
11268 fi
11269 ;;
11270 interix*)
11271 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11272 with_gnu_ld=yes
11273 ;;
11274 openbsd* | bitrig*)
11275 with_gnu_ld=no
11276 ;;
11277 esac
11278
11279 ld_shlibs=yes
11280
11281 # On some targets, GNU ld is compatible enough with the native linker
11282 # that we're better off using the native interface for both.
11283 lt_use_gnu_ld_interface=no
11284 if test yes = "$with_gnu_ld"; then
11285 case $host_os in
11286 aix*)
11287 # The AIX port of GNU ld has always aspired to compatibility
11288 # with the native linker. However, as the warning in the GNU ld
11289 # block says, versions before 2.19.5* couldn't really create working
11290 # shared libraries, regardless of the interface used.
11291 case `$LD -v 2>&1` in
11292 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11293 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11294 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11295 *)
11296 lt_use_gnu_ld_interface=yes
11297 ;;
11298 esac
11299 ;;
11300 *)
11301 lt_use_gnu_ld_interface=yes
11302 ;;
11303 esac
11304 fi
11305
11306 if test yes = "$lt_use_gnu_ld_interface"; then
11307 # If archive_cmds runs LD, not CC, wlarc should be empty
11308 wlarc='$wl'
11309
11310 # Set some defaults for GNU ld with shared library support. These
11311 # are reset later if shared libraries are not supported. Putting them
11312 # here allows them to be overridden if necessary.
11313 runpath_var=LD_RUN_PATH
11314 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11315 export_dynamic_flag_spec='$wl--export-dynamic'
11316 # ancient GNU ld didn't support --whole-archive et. al.
11317 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11318 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11319 else
11320 whole_archive_flag_spec=
11321 fi
11322 supports_anon_versioning=no
11323 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11324 *GNU\ gold*) supports_anon_versioning=yes ;;
11325 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11326 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11327 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11328 *\ 2.11.*) ;; # other 2.11 versions
11329 *) supports_anon_versioning=yes ;;
11330 esac
11331
11332 # See if GNU ld supports shared libraries.
11333 case $host_os in
11334 aix[3-9]*)
11335 # On AIX/PPC, the GNU linker is very broken
11336 if test ia64 != "$host_cpu"; then
11337 ld_shlibs=no
11338 cat <<_LT_EOF 1>&2
11339
11340 *** Warning: the GNU linker, at least up to release 2.19, is reported
11341 *** to be unable to reliably create shared libraries on AIX.
11342 *** Therefore, libtool is disabling shared libraries support. If you
11343 *** really care for shared libraries, you may want to install binutils
11344 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11345 *** You will then need to restart the configuration process.
11346
11347 _LT_EOF
11348 fi
11349 ;;
11350
11351 amigaos*)
11352 case $host_cpu in
11353 powerpc)
11354 # see comment about AmigaOS4 .so support
11355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11356 archive_expsym_cmds=''
11357 ;;
11358 m68k)
11359 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)'
11360 hardcode_libdir_flag_spec='-L$libdir'
11361 hardcode_minus_L=yes
11362 ;;
11363 esac
11364 ;;
11365
11366 beos*)
11367 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11368 allow_undefined_flag=unsupported
11369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11370 # support --undefined. This deserves some investigation. FIXME
11371 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11372 else
11373 ld_shlibs=no
11374 fi
11375 ;;
11376
11377 cygwin* | mingw* | pw32* | cegcc*)
11378 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11379 # as there is no search path for DLLs.
11380 hardcode_libdir_flag_spec='-L$libdir'
11381 export_dynamic_flag_spec='$wl--export-all-symbols'
11382 allow_undefined_flag=unsupported
11383 always_export_symbols=no
11384 enable_shared_with_static_runtimes=yes
11385 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'
11386 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11387
11388 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11390 # If the export-symbols file already is a .def file, use it as
11391 # is; otherwise, prepend EXPORTS...
11392 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11393 cp $export_symbols $output_objdir/$soname.def;
11394 else
11395 echo EXPORTS > $output_objdir/$soname.def;
11396 cat $export_symbols >> $output_objdir/$soname.def;
11397 fi~
11398 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11399 else
11400 ld_shlibs=no
11401 fi
11402 ;;
11403
11404 haiku*)
11405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11406 link_all_deplibs=yes
11407 ;;
11408
11409 os2*)
11410 hardcode_libdir_flag_spec='-L$libdir'
11411 hardcode_minus_L=yes
11412 allow_undefined_flag=unsupported
11413 shrext_cmds=.dll
11414 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11415 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11416 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11417 $ECHO EXPORTS >> $output_objdir/$libname.def~
11418 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11419 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11420 emximp -o $lib $output_objdir/$libname.def'
11421 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11422 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11423 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11424 $ECHO EXPORTS >> $output_objdir/$libname.def~
11425 prefix_cmds="$SED"~
11426 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11427 prefix_cmds="$prefix_cmds -e 1d";
11428 fi~
11429 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11430 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11431 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11432 emximp -o $lib $output_objdir/$libname.def'
11433 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11434 enable_shared_with_static_runtimes=yes
11435 file_list_spec='@'
11436 ;;
11437
11438 interix[3-9]*)
11439 hardcode_direct=no
11440 hardcode_shlibpath_var=no
11441 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11442 export_dynamic_flag_spec='$wl-E'
11443 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11444 # Instead, shared libraries are loaded at an image base (0x10000000 by
11445 # default) and relocated if they conflict, which is a slow very memory
11446 # consuming and fragmenting process. To avoid this, we pick a random,
11447 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11448 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11449 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11450 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'
11451 ;;
11452
11453 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11454 tmp_diet=no
11455 if test linux-dietlibc = "$host_os"; then
11456 case $cc_basename in
11457 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11458 esac
11459 fi
11460 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11461 && test no = "$tmp_diet"
11462 then
11463 tmp_addflag=' $pic_flag'
11464 tmp_sharedflag='-shared'
11465 case $cc_basename,$host_cpu in
11466 pgcc*) # Portland Group C compiler
11467 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'
11468 tmp_addflag=' $pic_flag'
11469 ;;
11470 pgf77* | pgf90* | pgf95* | pgfortran*)
11471 # Portland Group f77 and f90 compilers
11472 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'
11473 tmp_addflag=' $pic_flag -Mnomain' ;;
11474 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11475 tmp_addflag=' -i_dynamic' ;;
11476 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11477 tmp_addflag=' -i_dynamic -nofor_main' ;;
11478 ifc* | ifort*) # Intel Fortran compiler
11479 tmp_addflag=' -nofor_main' ;;
11480 lf95*) # Lahey Fortran 8.1
11481 whole_archive_flag_spec=
11482 tmp_sharedflag='--shared' ;;
11483 nagfor*) # NAGFOR 5.3
11484 tmp_sharedflag='-Wl,-shared' ;;
11485 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11486 tmp_sharedflag='-qmkshrobj'
11487 tmp_addflag= ;;
11488 nvcc*) # Cuda Compiler Driver 2.2
11489 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'
11490 compiler_needs_object=yes
11491 ;;
11492 esac
11493 case `$CC -V 2>&1 | $SED 5q` in
11494 *Sun\ C*) # Sun C 5.9
11495 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'
11496 compiler_needs_object=yes
11497 tmp_sharedflag='-G' ;;
11498 *Sun\ F*) # Sun Fortran 8.3
11499 tmp_sharedflag='-G' ;;
11500 esac
11501 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11502
11503 if test yes = "$supports_anon_versioning"; then
11504 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11505 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11506 echo "local: *; };" >> $output_objdir/$libname.ver~
11507 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11508 fi
11509
11510 case $cc_basename in
11511 tcc*)
11512 export_dynamic_flag_spec='-rdynamic'
11513 ;;
11514 xlf* | bgf* | bgxlf* | mpixlf*)
11515 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11516 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11517 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11518 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11519 if test yes = "$supports_anon_versioning"; then
11520 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11521 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11522 echo "local: *; };" >> $output_objdir/$libname.ver~
11523 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11524 fi
11525 ;;
11526 esac
11527 else
11528 ld_shlibs=no
11529 fi
11530 ;;
11531
11532 netbsd*)
11533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11534 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11535 wlarc=
11536 else
11537 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11538 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11539 fi
11540 ;;
11541
11542 solaris*)
11543 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11544 ld_shlibs=no
11545 cat <<_LT_EOF 1>&2
11546
11547 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11548 *** create shared libraries on Solaris systems. Therefore, libtool
11549 *** is disabling shared libraries support. We urge you to upgrade GNU
11550 *** binutils to release 2.9.1 or newer. Another option is to modify
11551 *** your PATH or compiler configuration so that the native linker is
11552 *** used, and then restart.
11553
11554 _LT_EOF
11555 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11557 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11558 else
11559 ld_shlibs=no
11560 fi
11561 ;;
11562
11563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11564 case `$LD -v 2>&1` in
11565 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11566 ld_shlibs=no
11567 cat <<_LT_EOF 1>&2
11568
11569 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11570 *** reliably create shared libraries on SCO systems. Therefore, libtool
11571 *** is disabling shared libraries support. We urge you to upgrade GNU
11572 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11573 *** your PATH or compiler configuration so that the native linker is
11574 *** used, and then restart.
11575
11576 _LT_EOF
11577 ;;
11578 *)
11579 # For security reasons, it is highly recommended that you always
11580 # use absolute paths for naming shared libraries, and exclude the
11581 # DT_RUNPATH tag from executables and libraries. But doing so
11582 # requires that you compile everything twice, which is a pain.
11583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11586 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11587 else
11588 ld_shlibs=no
11589 fi
11590 ;;
11591 esac
11592 ;;
11593
11594 sunos4*)
11595 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11596 wlarc=
11597 hardcode_direct=yes
11598 hardcode_shlibpath_var=no
11599 ;;
11600
11601 *)
11602 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11604 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11605 else
11606 ld_shlibs=no
11607 fi
11608 ;;
11609 esac
11610
11611 if test no = "$ld_shlibs"; then
11612 runpath_var=
11613 hardcode_libdir_flag_spec=
11614 export_dynamic_flag_spec=
11615 whole_archive_flag_spec=
11616 fi
11617 else
11618 # PORTME fill in a description of your system's linker (not GNU ld)
11619 case $host_os in
11620 aix3*)
11621 allow_undefined_flag=unsupported
11622 always_export_symbols=yes
11623 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'
11624 # Note: this linker hardcodes the directories in LIBPATH if there
11625 # are no directories specified by -L.
11626 hardcode_minus_L=yes
11627 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11628 # Neither direct hardcoding nor static linking is supported with a
11629 # broken collect2.
11630 hardcode_direct=unsupported
11631 fi
11632 ;;
11633
11634 aix[4-9]*)
11635 if test ia64 = "$host_cpu"; then
11636 # On IA64, the linker does run time linking by default, so we don't
11637 # have to do anything special.
11638 aix_use_runtimelinking=no
11639 exp_sym_flag='-Bexport'
11640 no_entry_flag=
11641 else
11642 # If we're using GNU nm, then we don't want the "-C" option.
11643 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11644 # Without the "-l" option, or with the "-B" option, AIX nm treats
11645 # weak defined symbols like other global defined symbols, whereas
11646 # GNU nm marks them as "W".
11647 # While the 'weak' keyword is ignored in the Export File, we need
11648 # it in the Import File for the 'aix-soname' feature, so we have
11649 # to replace the "-B" option with "-P" for AIX nm.
11650 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11651 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'
11652 else
11653 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'
11654 fi
11655 aix_use_runtimelinking=no
11656
11657 # Test if we are trying to use run time linking or normal
11658 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11659 # have runtime linking enabled, and use it for executables.
11660 # For shared libraries, we enable/disable runtime linking
11661 # depending on the kind of the shared library created -
11662 # when "with_aix_soname,aix_use_runtimelinking" is:
11663 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11664 # "aix,yes" lib.so shared, rtl:yes, for executables
11665 # lib.a static archive
11666 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11667 # lib.a(lib.so.V) shared, rtl:no, for executables
11668 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11669 # lib.a(lib.so.V) shared, rtl:no
11670 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11671 # lib.a static archive
11672 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11673 for ld_flag in $LDFLAGS; do
11674 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11675 aix_use_runtimelinking=yes
11676 break
11677 fi
11678 done
11679 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11680 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11681 # so we don't have lib.a shared libs to link our executables.
11682 # We have to force runtime linking in this case.
11683 aix_use_runtimelinking=yes
11684 LDFLAGS="$LDFLAGS -Wl,-brtl"
11685 fi
11686 ;;
11687 esac
11688
11689 exp_sym_flag='-bexport'
11690 no_entry_flag='-bnoentry'
11691 fi
11692
11693 # When large executables or shared objects are built, AIX ld can
11694 # have problems creating the table of contents. If linking a library
11695 # or program results in "error TOC overflow" add -mminimal-toc to
11696 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11697 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11698
11699 archive_cmds=''
11700 hardcode_direct=yes
11701 hardcode_direct_absolute=yes
11702 hardcode_libdir_separator=':'
11703 link_all_deplibs=yes
11704 file_list_spec='$wl-f,'
11705 case $with_aix_soname,$aix_use_runtimelinking in
11706 aix,*) ;; # traditional, no import file
11707 svr4,* | *,yes) # use import file
11708 # The Import File defines what to hardcode.
11709 hardcode_direct=no
11710 hardcode_direct_absolute=no
11711 ;;
11712 esac
11713
11714 if test yes = "$GCC"; then
11715 case $host_os in aix4.[012]|aix4.[012].*)
11716 # We only want to do this on AIX 4.2 and lower, the check
11717 # below for broken collect2 doesn't work under 4.3+
11718 collect2name=`$CC -print-prog-name=collect2`
11719 if test -f "$collect2name" &&
11720 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11721 then
11722 # We have reworked collect2
11723 :
11724 else
11725 # We have old collect2
11726 hardcode_direct=unsupported
11727 # It fails to find uninstalled libraries when the uninstalled
11728 # path is not listed in the libpath. Setting hardcode_minus_L
11729 # to unsupported forces relinking
11730 hardcode_minus_L=yes
11731 hardcode_libdir_flag_spec='-L$libdir'
11732 hardcode_libdir_separator=
11733 fi
11734 ;;
11735 esac
11736 shared_flag='-shared'
11737 if test yes = "$aix_use_runtimelinking"; then
11738 shared_flag="$shared_flag "'$wl-G'
11739 fi
11740 # Need to ensure runtime linking is disabled for the traditional
11741 # shared library, or the linker may eventually find shared libraries
11742 # /with/ Import File - we do not want to mix them.
11743 shared_flag_aix='-shared'
11744 shared_flag_svr4='-shared $wl-G'
11745 else
11746 # not using gcc
11747 if test ia64 = "$host_cpu"; then
11748 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11749 # chokes on -Wl,-G. The following line is correct:
11750 shared_flag='-G'
11751 else
11752 if test yes = "$aix_use_runtimelinking"; then
11753 shared_flag='$wl-G'
11754 else
11755 shared_flag='$wl-bM:SRE'
11756 fi
11757 shared_flag_aix='$wl-bM:SRE'
11758 shared_flag_svr4='$wl-G'
11759 fi
11760 fi
11761
11762 export_dynamic_flag_spec='$wl-bexpall'
11763 # It seems that -bexpall does not export symbols beginning with
11764 # underscore (_), so it is better to generate a list of symbols to export.
11765 always_export_symbols=yes
11766 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11767 # Warning - without using the other runtime loading flags (-brtl),
11768 # -berok will link without error, but may produce a broken library.
11769 allow_undefined_flag='-berok'
11770 # Determine the default libpath from the value encoded in an
11771 # empty executable.
11772 if test set = "${lt_cv_aix_libpath+set}"; then
11773 aix_libpath=$lt_cv_aix_libpath
11774 else
11775 if test ${lt_cv_aix_libpath_+y}
11776 then :
11777 printf %s "(cached) " >&6
11778 else case e in #(
11779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h. */
11781
11782 int
11783 main (void)
11784 {
11785
11786 ;
11787 return 0;
11788 }
11789 _ACEOF
11790 if ac_fn_c_try_link "$LINENO"
11791 then :
11792
11793 lt_aix_libpath_sed='
11794 /Import File Strings/,/^$/ {
11795 /^0/ {
11796 s/^0 *\([^ ]*\) *$/\1/
11797 p
11798 }
11799 }'
11800 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11801 # Check for a 64-bit object if we didn't find anything.
11802 if test -z "$lt_cv_aix_libpath_"; then
11803 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11804 fi
11805 fi
11806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11807 conftest$ac_exeext conftest.$ac_ext
11808 if test -z "$lt_cv_aix_libpath_"; then
11809 lt_cv_aix_libpath_=/usr/lib:/lib
11810 fi
11811 ;;
11812 esac
11813 fi
11814
11815 aix_libpath=$lt_cv_aix_libpath_
11816 fi
11817
11818 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11819 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
11820 else
11821 if test ia64 = "$host_cpu"; then
11822 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11823 allow_undefined_flag="-z nodefs"
11824 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"
11825 else
11826 # Determine the default libpath from the value encoded in an
11827 # empty executable.
11828 if test set = "${lt_cv_aix_libpath+set}"; then
11829 aix_libpath=$lt_cv_aix_libpath
11830 else
11831 if test ${lt_cv_aix_libpath_+y}
11832 then :
11833 printf %s "(cached) " >&6
11834 else case e in #(
11835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837
11838 int
11839 main (void)
11840 {
11841
11842 ;
11843 return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"
11847 then :
11848
11849 lt_aix_libpath_sed='
11850 /Import File Strings/,/^$/ {
11851 /^0/ {
11852 s/^0 *\([^ ]*\) *$/\1/
11853 p
11854 }
11855 }'
11856 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11857 # Check for a 64-bit object if we didn't find anything.
11858 if test -z "$lt_cv_aix_libpath_"; then
11859 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11860 fi
11861 fi
11862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11863 conftest$ac_exeext conftest.$ac_ext
11864 if test -z "$lt_cv_aix_libpath_"; then
11865 lt_cv_aix_libpath_=/usr/lib:/lib
11866 fi
11867 ;;
11868 esac
11869 fi
11870
11871 aix_libpath=$lt_cv_aix_libpath_
11872 fi
11873
11874 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11875 # Warning - without using the other run time loading flags,
11876 # -berok will link without error, but may produce a broken library.
11877 no_undefined_flag=' $wl-bernotok'
11878 allow_undefined_flag=' $wl-berok'
11879 if test yes = "$with_gnu_ld"; then
11880 # We only use this code for GNU lds that support --whole-archive.
11881 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11882 else
11883 # Exported symbols can be pulled into shared objects from archives
11884 whole_archive_flag_spec='$convenience'
11885 fi
11886 archive_cmds_need_lc=yes
11887 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11888 # -brtl affects multiple linker settings, -berok does not and is overridden later
11889 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11890 if test svr4 != "$with_aix_soname"; then
11891 # This is similar to how AIX traditionally builds its shared libraries.
11892 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'
11893 fi
11894 if test aix != "$with_aix_soname"; then
11895 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'
11896 else
11897 # used by -dlpreopen to get the symbols
11898 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11899 fi
11900 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11901 fi
11902 fi
11903 ;;
11904
11905 amigaos*)
11906 case $host_cpu in
11907 powerpc)
11908 # see comment about AmigaOS4 .so support
11909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11910 archive_expsym_cmds=''
11911 ;;
11912 m68k)
11913 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)'
11914 hardcode_libdir_flag_spec='-L$libdir'
11915 hardcode_minus_L=yes
11916 ;;
11917 esac
11918 ;;
11919
11920 bsdi[45]*)
11921 export_dynamic_flag_spec=-rdynamic
11922 ;;
11923
11924 cygwin* | mingw* | pw32* | cegcc*)
11925 # When not using gcc, we currently assume that we are using
11926 # Microsoft Visual C++ or Intel C++ Compiler.
11927 # hardcode_libdir_flag_spec is actually meaningless, as there is
11928 # no search path for DLLs.
11929 case $cc_basename in
11930 cl* | icl*)
11931 # Native MSVC or ICC
11932 hardcode_libdir_flag_spec=' '
11933 allow_undefined_flag=unsupported
11934 always_export_symbols=yes
11935 file_list_spec='@'
11936 # Tell ltmain to make .lib files, not .a files.
11937 libext=lib
11938 # Tell ltmain to make .dll files, not .so files.
11939 shrext_cmds=.dll
11940 # FIXME: Setting linknames here is a bad hack.
11941 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11942 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11943 cp "$export_symbols" "$output_objdir/$soname.def";
11944 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11945 else
11946 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11947 fi~
11948 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11949 linknames='
11950 # The linker will not automatically build a static lib if we build a DLL.
11951 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11952 enable_shared_with_static_runtimes=yes
11953 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11955 # Don't use ranlib
11956 old_postinstall_cmds='chmod 644 $oldlib'
11957 postlink_cmds='lt_outputfile="@OUTPUT@"~
11958 lt_tool_outputfile="@TOOL_OUTPUT@"~
11959 case $lt_outputfile in
11960 *.exe|*.EXE) ;;
11961 *)
11962 lt_outputfile=$lt_outputfile.exe
11963 lt_tool_outputfile=$lt_tool_outputfile.exe
11964 ;;
11965 esac~
11966 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11967 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11968 $RM "$lt_outputfile.manifest";
11969 fi'
11970 ;;
11971 *)
11972 # Assume MSVC and ICC wrapper
11973 hardcode_libdir_flag_spec=' '
11974 allow_undefined_flag=unsupported
11975 # Tell ltmain to make .lib files, not .a files.
11976 libext=lib
11977 # Tell ltmain to make .dll files, not .so files.
11978 shrext_cmds=.dll
11979 # FIXME: Setting linknames here is a bad hack.
11980 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11981 # The linker will automatically build a .lib file if we build a DLL.
11982 old_archive_from_new_cmds='true'
11983 # FIXME: Should let the user specify the lib program.
11984 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11985 enable_shared_with_static_runtimes=yes
11986 ;;
11987 esac
11988 ;;
11989
11990 darwin* | rhapsody*)
11991
11992
11993 archive_cmds_need_lc=no
11994 hardcode_direct=no
11995 hardcode_automatic=yes
11996 hardcode_shlibpath_var=unsupported
11997 if test yes = "$lt_cv_ld_force_load"; then
11998 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\"`'
11999
12000 else
12001 whole_archive_flag_spec=''
12002 fi
12003 link_all_deplibs=yes
12004 allow_undefined_flag=$_lt_dar_allow_undefined
12005 case $cc_basename in
12006 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12007 *) _lt_dar_can_shared=$GCC ;;
12008 esac
12009 if test yes = "$_lt_dar_can_shared"; then
12010 output_verbose_link_cmd=func_echo_all
12011 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dsymutil"
12012 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12013 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"
12014 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"
12015 else
12016 ld_shlibs=no
12017 fi
12018
12019 ;;
12020
12021 dgux*)
12022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12023 hardcode_libdir_flag_spec='-L$libdir'
12024 hardcode_shlibpath_var=no
12025 ;;
12026
12027 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12028 # support. Future versions do this automatically, but an explicit c++rt0.o
12029 # does not break anything, and helps significantly (at the cost of a little
12030 # extra space).
12031 freebsd2.2*)
12032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12033 hardcode_libdir_flag_spec='-R$libdir'
12034 hardcode_direct=yes
12035 hardcode_shlibpath_var=no
12036 ;;
12037
12038 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12039 freebsd2.*)
12040 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12041 hardcode_direct=yes
12042 hardcode_minus_L=yes
12043 hardcode_shlibpath_var=no
12044 ;;
12045
12046 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12047 freebsd* | dragonfly* | midnightbsd*)
12048 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12049 hardcode_libdir_flag_spec='-R$libdir'
12050 hardcode_direct=yes
12051 hardcode_shlibpath_var=no
12052 ;;
12053
12054 hpux9*)
12055 if test yes = "$GCC"; then
12056 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'
12057 else
12058 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'
12059 fi
12060 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12061 hardcode_libdir_separator=:
12062 hardcode_direct=yes
12063
12064 # hardcode_minus_L: Not really in the search PATH,
12065 # but as the default location of the library.
12066 hardcode_minus_L=yes
12067 export_dynamic_flag_spec='$wl-E'
12068 ;;
12069
12070 hpux10*)
12071 if test yes,no = "$GCC,$with_gnu_ld"; then
12072 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12073 else
12074 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12075 fi
12076 if test no = "$with_gnu_ld"; then
12077 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12078 hardcode_libdir_separator=:
12079 hardcode_direct=yes
12080 hardcode_direct_absolute=yes
12081 export_dynamic_flag_spec='$wl-E'
12082 # hardcode_minus_L: Not really in the search PATH,
12083 # but as the default location of the library.
12084 hardcode_minus_L=yes
12085 fi
12086 ;;
12087
12088 hpux11*)
12089 if test yes,no = "$GCC,$with_gnu_ld"; then
12090 case $host_cpu in
12091 hppa*64*)
12092 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12093 ;;
12094 ia64*)
12095 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12096 ;;
12097 *)
12098 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12099 ;;
12100 esac
12101 else
12102 case $host_cpu in
12103 hppa*64*)
12104 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12105 ;;
12106 ia64*)
12107 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12108 ;;
12109 *)
12110
12111 # Older versions of the 11.00 compiler do not understand -b yet
12112 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12114 printf %s "checking if $CC understands -b... " >&6; }
12115 if test ${lt_cv_prog_compiler__b+y}
12116 then :
12117 printf %s "(cached) " >&6
12118 else case e in #(
12119 e) lt_cv_prog_compiler__b=no
12120 save_LDFLAGS=$LDFLAGS
12121 LDFLAGS="$LDFLAGS -b"
12122 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12124 # The linker can only warn and ignore the option if not recognized
12125 # So say no if there are warnings
12126 if test -s conftest.err; then
12127 # Append any errors to the config.log.
12128 cat conftest.err 1>&5
12129 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12131 if diff conftest.exp conftest.er2 >/dev/null; then
12132 lt_cv_prog_compiler__b=yes
12133 fi
12134 else
12135 lt_cv_prog_compiler__b=yes
12136 fi
12137 fi
12138 $RM -r conftest*
12139 LDFLAGS=$save_LDFLAGS
12140 ;;
12141 esac
12142 fi
12143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12144 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12145
12146 if test yes = "$lt_cv_prog_compiler__b"; then
12147 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12148 else
12149 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12150 fi
12151
12152 ;;
12153 esac
12154 fi
12155 if test no = "$with_gnu_ld"; then
12156 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12157 hardcode_libdir_separator=:
12158
12159 case $host_cpu in
12160 hppa*64*|ia64*)
12161 hardcode_direct=no
12162 hardcode_shlibpath_var=no
12163 ;;
12164 *)
12165 hardcode_direct=yes
12166 hardcode_direct_absolute=yes
12167 export_dynamic_flag_spec='$wl-E'
12168
12169 # hardcode_minus_L: Not really in the search PATH,
12170 # but as the default location of the library.
12171 hardcode_minus_L=yes
12172 ;;
12173 esac
12174 fi
12175 ;;
12176
12177 irix5* | irix6* | nonstopux*)
12178 if test yes = "$GCC"; then
12179 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'
12180 # Try to use the -exported_symbol ld option, if it does not
12181 # work, assume that -exports_file does not work either and
12182 # implicitly export all symbols.
12183 # This should be the same for all languages, so no per-tag cache variable.
12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12185 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12186 if test ${lt_cv_irix_exported_symbol+y}
12187 then :
12188 printf %s "(cached) " >&6
12189 else case e in #(
12190 e) save_LDFLAGS=$LDFLAGS
12191 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12194 int foo (void) { return 0; }
12195 _ACEOF
12196 if ac_fn_c_try_link "$LINENO"
12197 then :
12198 lt_cv_irix_exported_symbol=yes
12199 else case e in #(
12200 e) lt_cv_irix_exported_symbol=no ;;
12201 esac
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LDFLAGS=$save_LDFLAGS ;;
12206 esac
12207 fi
12208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12209 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12210 if test yes = "$lt_cv_irix_exported_symbol"; then
12211 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'
12212 fi
12213 else
12214 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'
12215 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'
12216 fi
12217 archive_cmds_need_lc='no'
12218 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12219 hardcode_libdir_separator=:
12220 inherit_rpath=yes
12221 link_all_deplibs=yes
12222 ;;
12223
12224 linux*)
12225 case $cc_basename in
12226 tcc*)
12227 # Fabrice Bellard et al's Tiny C Compiler
12228 ld_shlibs=yes
12229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12230 ;;
12231 esac
12232 ;;
12233
12234 netbsd*)
12235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12237 else
12238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12239 fi
12240 hardcode_libdir_flag_spec='-R$libdir'
12241 hardcode_direct=yes
12242 hardcode_shlibpath_var=no
12243 ;;
12244
12245 newsos6)
12246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12247 hardcode_direct=yes
12248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12249 hardcode_libdir_separator=:
12250 hardcode_shlibpath_var=no
12251 ;;
12252
12253 *nto* | *qnx*)
12254 ;;
12255
12256 openbsd* | bitrig*)
12257 if test -f /usr/libexec/ld.so; then
12258 hardcode_direct=yes
12259 hardcode_shlibpath_var=no
12260 hardcode_direct_absolute=yes
12261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12263 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12264 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12265 export_dynamic_flag_spec='$wl-E'
12266 else
12267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12268 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12269 fi
12270 else
12271 ld_shlibs=no
12272 fi
12273 ;;
12274
12275 os2*)
12276 hardcode_libdir_flag_spec='-L$libdir'
12277 hardcode_minus_L=yes
12278 allow_undefined_flag=unsupported
12279 shrext_cmds=.dll
12280 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12281 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12282 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12283 $ECHO EXPORTS >> $output_objdir/$libname.def~
12284 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12286 emximp -o $lib $output_objdir/$libname.def'
12287 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12288 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12289 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12290 $ECHO EXPORTS >> $output_objdir/$libname.def~
12291 prefix_cmds="$SED"~
12292 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12293 prefix_cmds="$prefix_cmds -e 1d";
12294 fi~
12295 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12296 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12297 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12298 emximp -o $lib $output_objdir/$libname.def'
12299 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12300 enable_shared_with_static_runtimes=yes
12301 file_list_spec='@'
12302 ;;
12303
12304 osf3*)
12305 if test yes = "$GCC"; then
12306 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12307 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'
12308 else
12309 allow_undefined_flag=' -expect_unresolved \*'
12310 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'
12311 fi
12312 archive_cmds_need_lc='no'
12313 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12314 hardcode_libdir_separator=:
12315 ;;
12316
12317 osf4* | osf5*) # as osf3* with the addition of -msym flag
12318 if test yes = "$GCC"; then
12319 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12320 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'
12321 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12322 else
12323 allow_undefined_flag=' -expect_unresolved \*'
12324 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'
12325 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~
12326 $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'
12327
12328 # Both c and cxx compiler support -rpath directly
12329 hardcode_libdir_flag_spec='-rpath $libdir'
12330 fi
12331 archive_cmds_need_lc='no'
12332 hardcode_libdir_separator=:
12333 ;;
12334
12335 solaris*)
12336 no_undefined_flag=' -z defs'
12337 if test yes = "$GCC"; then
12338 wlarc='$wl'
12339 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12341 $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'
12342 else
12343 case `$CC -V 2>&1` in
12344 *"Compilers 5.0"*)
12345 wlarc=''
12346 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12347 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12348 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12349 ;;
12350 *)
12351 wlarc='$wl'
12352 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12353 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12354 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12355 ;;
12356 esac
12357 fi
12358 hardcode_libdir_flag_spec='-R$libdir'
12359 hardcode_shlibpath_var=no
12360 case $host_os in
12361 solaris2.[0-5] | solaris2.[0-5].*) ;;
12362 *)
12363 # The compiler driver will combine and reorder linker options,
12364 # but understands '-z linker_flag'. GCC discards it without '$wl',
12365 # but is careful enough not to reorder.
12366 # Supported since Solaris 2.6 (maybe 2.5.1?)
12367 if test yes = "$GCC"; then
12368 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12369 else
12370 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12371 fi
12372 ;;
12373 esac
12374 link_all_deplibs=yes
12375 ;;
12376
12377 sunos4*)
12378 if test sequent = "$host_vendor"; then
12379 # Use $CC to link under sequent, because it throws in some extra .o
12380 # files that make .init and .fini sections work.
12381 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12382 else
12383 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12384 fi
12385 hardcode_libdir_flag_spec='-L$libdir'
12386 hardcode_direct=yes
12387 hardcode_minus_L=yes
12388 hardcode_shlibpath_var=no
12389 ;;
12390
12391 sysv4)
12392 case $host_vendor in
12393 sni)
12394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12395 hardcode_direct=yes # is this really true???
12396 ;;
12397 siemens)
12398 ## LD is ld it makes a PLAMLIB
12399 ## CC just makes a GrossModule.
12400 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12401 reload_cmds='$CC -r -o $output$reload_objs'
12402 hardcode_direct=no
12403 ;;
12404 motorola)
12405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12406 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12407 ;;
12408 esac
12409 runpath_var='LD_RUN_PATH'
12410 hardcode_shlibpath_var=no
12411 ;;
12412
12413 sysv4.3*)
12414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12415 hardcode_shlibpath_var=no
12416 export_dynamic_flag_spec='-Bexport'
12417 ;;
12418
12419 sysv4*MP*)
12420 if test -d /usr/nec; then
12421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12422 hardcode_shlibpath_var=no
12423 runpath_var=LD_RUN_PATH
12424 hardcode_runpath_var=yes
12425 ld_shlibs=yes
12426 fi
12427 ;;
12428
12429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12430 no_undefined_flag='$wl-z,text'
12431 archive_cmds_need_lc=no
12432 hardcode_shlibpath_var=no
12433 runpath_var='LD_RUN_PATH'
12434
12435 if test yes = "$GCC"; then
12436 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12437 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12438 else
12439 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12440 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12441 fi
12442 ;;
12443
12444 sysv5* | sco3.2v5* | sco5v6*)
12445 # Note: We CANNOT use -z defs as we might desire, because we do not
12446 # link with -lc, and that would cause any symbols used from libc to
12447 # always be unresolved, which means just about no library would
12448 # ever link correctly. If we're not using GNU ld we use -z text
12449 # though, which does catch some bad symbols but isn't as heavy-handed
12450 # as -z defs.
12451 no_undefined_flag='$wl-z,text'
12452 allow_undefined_flag='$wl-z,nodefs'
12453 archive_cmds_need_lc=no
12454 hardcode_shlibpath_var=no
12455 hardcode_libdir_flag_spec='$wl-R,$libdir'
12456 hardcode_libdir_separator=':'
12457 link_all_deplibs=yes
12458 export_dynamic_flag_spec='$wl-Bexport'
12459 runpath_var='LD_RUN_PATH'
12460
12461 if test yes = "$GCC"; then
12462 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12463 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12464 else
12465 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12466 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12467 fi
12468 ;;
12469
12470 uts4*)
12471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12472 hardcode_libdir_flag_spec='-L$libdir'
12473 hardcode_shlibpath_var=no
12474 ;;
12475
12476 *)
12477 ld_shlibs=no
12478 ;;
12479 esac
12480
12481 if test sni = "$host_vendor"; then
12482 case $host in
12483 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12484 export_dynamic_flag_spec='$wl-Blargedynsym'
12485 ;;
12486 esac
12487 fi
12488 fi
12489
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12491 printf "%s\n" "$ld_shlibs" >&6; }
12492 test no = "$ld_shlibs" && can_build_shared=no
12493
12494 with_gnu_ld=$with_gnu_ld
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510 #
12511 # Do we need to explicitly link libc?
12512 #
12513 case "x$archive_cmds_need_lc" in
12514 x|xyes)
12515 # Assume -lc should be added
12516 archive_cmds_need_lc=yes
12517
12518 if test yes,yes = "$GCC,$enable_shared"; then
12519 case $archive_cmds in
12520 *'~'*)
12521 # FIXME: we may have to deal with multi-command sequences.
12522 ;;
12523 '$CC '*)
12524 # Test whether the compiler implicitly links with -lc since on some
12525 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12526 # to ld, don't add -lc before -lgcc.
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12528 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12529 if test ${lt_cv_archive_cmds_need_lc+y}
12530 then :
12531 printf %s "(cached) " >&6
12532 else case e in #(
12533 e) $RM conftest*
12534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12535
12536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12537 (eval $ac_compile) 2>&5
12538 ac_status=$?
12539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12540 test $ac_status = 0; } 2>conftest.err; then
12541 soname=conftest
12542 lib=conftest
12543 libobjs=conftest.$ac_objext
12544 deplibs=
12545 wl=$lt_prog_compiler_wl
12546 pic_flag=$lt_prog_compiler_pic
12547 compiler_flags=-v
12548 linker_flags=-v
12549 verstring=
12550 output_objdir=.
12551 libname=conftest
12552 lt_save_allow_undefined_flag=$allow_undefined_flag
12553 allow_undefined_flag=
12554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12555 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12556 ac_status=$?
12557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558 test $ac_status = 0; }
12559 then
12560 lt_cv_archive_cmds_need_lc=no
12561 else
12562 lt_cv_archive_cmds_need_lc=yes
12563 fi
12564 allow_undefined_flag=$lt_save_allow_undefined_flag
12565 else
12566 cat conftest.err 1>&5
12567 fi
12568 $RM conftest*
12569 ;;
12570 esac
12571 fi
12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12573 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12574 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12575 ;;
12576 esac
12577 fi
12578 ;;
12579 esac
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12733 printf %s "checking dynamic linker characteristics... " >&6; }
12734
12735 if test yes = "$GCC"; then
12736 case $host_os in
12737 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12738 *) lt_awk_arg='/^libraries:/' ;;
12739 esac
12740 case $host_os in
12741 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12742 *) lt_sed_strip_eq='s|=/|/|g' ;;
12743 esac
12744 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12745 case $lt_search_path_spec in
12746 *\;*)
12747 # if the path contains ";" then we assume it to be the separator
12748 # otherwise default to the standard path separator (i.e. ":") - it is
12749 # assumed that no part of a normal pathname contains ";" but that should
12750 # okay in the real world where ";" in dirpaths is itself problematic.
12751 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12752 ;;
12753 *)
12754 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12755 ;;
12756 esac
12757 # Ok, now we have the path, separated by spaces, we can step through it
12758 # and add multilib dir if necessary...
12759 lt_tmp_lt_search_path_spec=
12760 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12761 # ...but if some path component already ends with the multilib dir we assume
12762 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12763 case "$lt_multi_os_dir; $lt_search_path_spec " in
12764 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12765 lt_multi_os_dir=
12766 ;;
12767 esac
12768 for lt_sys_path in $lt_search_path_spec; do
12769 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12770 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12771 elif test -n "$lt_multi_os_dir"; then
12772 test -d "$lt_sys_path" && \
12773 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12774 fi
12775 done
12776 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12777 BEGIN {RS = " "; FS = "/|\n";} {
12778 lt_foo = "";
12779 lt_count = 0;
12780 for (lt_i = NF; lt_i > 0; lt_i--) {
12781 if ($lt_i != "" && $lt_i != ".") {
12782 if ($lt_i == "..") {
12783 lt_count++;
12784 } else {
12785 if (lt_count == 0) {
12786 lt_foo = "/" $lt_i lt_foo;
12787 } else {
12788 lt_count--;
12789 }
12790 }
12791 }
12792 }
12793 if (lt_foo != "") { lt_freq[lt_foo]++; }
12794 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12795 }'`
12796 # AWK program above erroneously prepends '/' to C:/dos/paths
12797 # for these hosts.
12798 case $host_os in
12799 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12800 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12801 esac
12802 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12803 else
12804 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12805 fi
12806 library_names_spec=
12807 libname_spec='lib$name'
12808 soname_spec=
12809 shrext_cmds=.so
12810 postinstall_cmds=
12811 postuninstall_cmds=
12812 finish_cmds=
12813 finish_eval=
12814 shlibpath_var=
12815 shlibpath_overrides_runpath=unknown
12816 version_type=none
12817 dynamic_linker="$host_os ld.so"
12818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12819 need_lib_prefix=unknown
12820 hardcode_into_libs=no
12821
12822 # when you set need_version to no, make sure it does not cause -set_version
12823 # flags to be left without arguments
12824 need_version=unknown
12825
12826
12827
12828 case $host_os in
12829 aix3*)
12830 version_type=linux # correct to gnu/linux during the next big refactor
12831 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12832 shlibpath_var=LIBPATH
12833
12834 # AIX 3 has no versioning support, so we append a major version to the name.
12835 soname_spec='$libname$release$shared_ext$major'
12836 ;;
12837
12838 aix[4-9]*)
12839 version_type=linux # correct to gnu/linux during the next big refactor
12840 need_lib_prefix=no
12841 need_version=no
12842 hardcode_into_libs=yes
12843 if test ia64 = "$host_cpu"; then
12844 # AIX 5 supports IA64
12845 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12846 shlibpath_var=LD_LIBRARY_PATH
12847 else
12848 # With GCC up to 2.95.x, collect2 would create an import file
12849 # for dependence libraries. The import file would start with
12850 # the line '#! .'. This would cause the generated library to
12851 # depend on '.', always an invalid library. This was fixed in
12852 # development snapshots of GCC prior to 3.0.
12853 case $host_os in
12854 aix4 | aix4.[01] | aix4.[01].*)
12855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12856 echo ' yes '
12857 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12858 :
12859 else
12860 can_build_shared=no
12861 fi
12862 ;;
12863 esac
12864 # Using Import Files as archive members, it is possible to support
12865 # filename-based versioning of shared library archives on AIX. While
12866 # this would work for both with and without runtime linking, it will
12867 # prevent static linking of such archives. So we do filename-based
12868 # shared library versioning with .so extension only, which is used
12869 # when both runtime linking and shared linking is enabled.
12870 # Unfortunately, runtime linking may impact performance, so we do
12871 # not want this to be the default eventually. Also, we use the
12872 # versioned .so libs for executables only if there is the -brtl
12873 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12874 # To allow for filename-based versioning support, we need to create
12875 # libNAME.so.V as an archive file, containing:
12876 # *) an Import File, referring to the versioned filename of the
12877 # archive as well as the shared archive member, telling the
12878 # bitwidth (32 or 64) of that shared object, and providing the
12879 # list of exported symbols of that shared object, eventually
12880 # decorated with the 'weak' keyword
12881 # *) the shared object with the F_LOADONLY flag set, to really avoid
12882 # it being seen by the linker.
12883 # At run time we better use the real file rather than another symlink,
12884 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12885
12886 case $with_aix_soname,$aix_use_runtimelinking in
12887 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12888 # soname into executable. Probably we can add versioning support to
12889 # collect2, so additional links can be useful in future.
12890 aix,yes) # traditional libtool
12891 dynamic_linker='AIX unversionable lib.so'
12892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12893 # instead of lib<name>.a to let people know that these are not
12894 # typical AIX shared libraries.
12895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12896 ;;
12897 aix,no) # traditional AIX only
12898 dynamic_linker='AIX lib.a(lib.so.V)'
12899 # We preserve .a as extension for shared libraries through AIX4.2
12900 # and later when we are not doing run time linking.
12901 library_names_spec='$libname$release.a $libname.a'
12902 soname_spec='$libname$release$shared_ext$major'
12903 ;;
12904 svr4,*) # full svr4 only
12905 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12906 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12907 # We do not specify a path in Import Files, so LIBPATH fires.
12908 shlibpath_overrides_runpath=yes
12909 ;;
12910 *,yes) # both, prefer svr4
12911 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12912 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12913 # unpreferred sharedlib libNAME.a needs extra handling
12914 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"'
12915 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"'
12916 # We do not specify a path in Import Files, so LIBPATH fires.
12917 shlibpath_overrides_runpath=yes
12918 ;;
12919 *,no) # both, prefer aix
12920 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12921 library_names_spec='$libname$release.a $libname.a'
12922 soname_spec='$libname$release$shared_ext$major'
12923 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12924 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)'
12925 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"'
12926 ;;
12927 esac
12928 shlibpath_var=LIBPATH
12929 fi
12930 ;;
12931
12932 amigaos*)
12933 case $host_cpu in
12934 powerpc)
12935 # Since July 2007 AmigaOS4 officially supports .so libraries.
12936 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12938 ;;
12939 m68k)
12940 library_names_spec='$libname.ixlibrary $libname.a'
12941 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12942 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'
12943 ;;
12944 esac
12945 ;;
12946
12947 beos*)
12948 library_names_spec='$libname$shared_ext'
12949 dynamic_linker="$host_os ld.so"
12950 shlibpath_var=LIBRARY_PATH
12951 ;;
12952
12953 bsdi[45]*)
12954 version_type=linux # correct to gnu/linux during the next big refactor
12955 need_version=no
12956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12957 soname_spec='$libname$release$shared_ext$major'
12958 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12959 shlibpath_var=LD_LIBRARY_PATH
12960 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12961 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12962 # the default ld.so.conf also contains /usr/contrib/lib and
12963 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12964 # libtool to hard-code these into programs
12965 ;;
12966
12967 cygwin* | mingw* | pw32* | cegcc*)
12968 version_type=windows
12969 shrext_cmds=.dll
12970 need_version=no
12971 need_lib_prefix=no
12972
12973 case $GCC,$cc_basename in
12974 yes,*)
12975 # gcc
12976 library_names_spec='$libname.dll.a'
12977 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12978 postinstall_cmds='base_file=`basename \$file`~
12979 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12980 dldir=$destdir/`dirname \$dlpath`~
12981 test -d \$dldir || mkdir -p \$dldir~
12982 $install_prog $dir/$dlname \$dldir/$dlname~
12983 chmod a+x \$dldir/$dlname~
12984 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12985 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12986 fi'
12987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12988 dlpath=$dir/\$dldll~
12989 $RM \$dlpath'
12990 shlibpath_overrides_runpath=yes
12991
12992 case $host_os in
12993 cygwin*)
12994 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12995 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12996
12997 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12998 ;;
12999 mingw* | cegcc*)
13000 # MinGW DLLs use traditional 'lib' prefix
13001 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13002 ;;
13003 pw32*)
13004 # pw32 DLLs use 'pw' prefix rather than 'lib'
13005 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13006 ;;
13007 esac
13008 dynamic_linker='Win32 ld.exe'
13009 ;;
13010
13011 *,cl* | *,icl*)
13012 # Native MSVC or ICC
13013 libname_spec='$name'
13014 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13015 library_names_spec='$libname.dll.lib'
13016
13017 case $build_os in
13018 mingw*)
13019 sys_lib_search_path_spec=
13020 lt_save_ifs=$IFS
13021 IFS=';'
13022 for lt_path in $LIB
13023 do
13024 IFS=$lt_save_ifs
13025 # Let DOS variable expansion print the short 8.3 style file name.
13026 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13027 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13028 done
13029 IFS=$lt_save_ifs
13030 # Convert to MSYS style.
13031 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13032 ;;
13033 cygwin*)
13034 # Convert to unix form, then to dos form, then back to unix form
13035 # but this time dos style (no spaces!) so that the unix form looks
13036 # like /cygdrive/c/PROGRA~1:/cygdr...
13037 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13038 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13039 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13040 ;;
13041 *)
13042 sys_lib_search_path_spec=$LIB
13043 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13044 # It is most probably a Windows format PATH.
13045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13046 else
13047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13048 fi
13049 # FIXME: find the short name or the path components, as spaces are
13050 # common. (e.g. "Program Files" -> "PROGRA~1")
13051 ;;
13052 esac
13053
13054 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13055 postinstall_cmds='base_file=`basename \$file`~
13056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13057 dldir=$destdir/`dirname \$dlpath`~
13058 test -d \$dldir || mkdir -p \$dldir~
13059 $install_prog $dir/$dlname \$dldir/$dlname'
13060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13061 dlpath=$dir/\$dldll~
13062 $RM \$dlpath'
13063 shlibpath_overrides_runpath=yes
13064 dynamic_linker='Win32 link.exe'
13065 ;;
13066
13067 *)
13068 # Assume MSVC and ICC wrapper
13069 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13070 dynamic_linker='Win32 ld.exe'
13071 ;;
13072 esac
13073 # FIXME: first we should search . and the directory the executable is in
13074 shlibpath_var=PATH
13075 ;;
13076
13077 darwin* | rhapsody*)
13078 dynamic_linker="$host_os dyld"
13079 version_type=darwin
13080 need_lib_prefix=no
13081 need_version=no
13082 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13083 soname_spec='$libname$release$major$shared_ext'
13084 shlibpath_overrides_runpath=yes
13085 shlibpath_var=DYLD_LIBRARY_PATH
13086 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13087
13088 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13089 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13090 ;;
13091
13092 dgux*)
13093 version_type=linux # correct to gnu/linux during the next big refactor
13094 need_lib_prefix=no
13095 need_version=no
13096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13097 soname_spec='$libname$release$shared_ext$major'
13098 shlibpath_var=LD_LIBRARY_PATH
13099 ;;
13100
13101 freebsd* | dragonfly* | midnightbsd*)
13102 # DragonFly does not have aout. When/if they implement a new
13103 # versioning mechanism, adjust this.
13104 if test -x /usr/bin/objformat; then
13105 objformat=`/usr/bin/objformat`
13106 else
13107 case $host_os in
13108 freebsd[23].*) objformat=aout ;;
13109 *) objformat=elf ;;
13110 esac
13111 fi
13112 version_type=freebsd-$objformat
13113 case $version_type in
13114 freebsd-elf*)
13115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13116 soname_spec='$libname$release$shared_ext$major'
13117 need_version=no
13118 need_lib_prefix=no
13119 ;;
13120 freebsd-*)
13121 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13122 need_version=yes
13123 ;;
13124 esac
13125 shlibpath_var=LD_LIBRARY_PATH
13126 case $host_os in
13127 freebsd2.*)
13128 shlibpath_overrides_runpath=yes
13129 ;;
13130 freebsd3.[01]* | freebsdelf3.[01]*)
13131 shlibpath_overrides_runpath=yes
13132 hardcode_into_libs=yes
13133 ;;
13134 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13135 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13136 shlibpath_overrides_runpath=no
13137 hardcode_into_libs=yes
13138 ;;
13139 *) # from 4.6 on, and DragonFly
13140 shlibpath_overrides_runpath=yes
13141 hardcode_into_libs=yes
13142 ;;
13143 esac
13144 ;;
13145
13146 haiku*)
13147 version_type=linux # correct to gnu/linux during the next big refactor
13148 need_lib_prefix=no
13149 need_version=no
13150 dynamic_linker="$host_os runtime_loader"
13151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13152 soname_spec='$libname$release$shared_ext$major'
13153 shlibpath_var=LIBRARY_PATH
13154 shlibpath_overrides_runpath=no
13155 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13156 hardcode_into_libs=yes
13157 ;;
13158
13159 hpux9* | hpux10* | hpux11*)
13160 # Give a soname corresponding to the major version so that dld.sl refuses to
13161 # link against other versions.
13162 version_type=sunos
13163 need_lib_prefix=no
13164 need_version=no
13165 case $host_cpu in
13166 ia64*)
13167 shrext_cmds='.so'
13168 hardcode_into_libs=yes
13169 dynamic_linker="$host_os dld.so"
13170 shlibpath_var=LD_LIBRARY_PATH
13171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13173 soname_spec='$libname$release$shared_ext$major'
13174 if test 32 = "$HPUX_IA64_MODE"; then
13175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13176 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13177 else
13178 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13179 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13180 fi
13181 ;;
13182 hppa*64*)
13183 shrext_cmds='.sl'
13184 hardcode_into_libs=yes
13185 dynamic_linker="$host_os dld.sl"
13186 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13189 soname_spec='$libname$release$shared_ext$major'
13190 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13192 ;;
13193 *)
13194 shrext_cmds='.sl'
13195 dynamic_linker="$host_os dld.sl"
13196 shlibpath_var=SHLIB_PATH
13197 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13199 soname_spec='$libname$release$shared_ext$major'
13200 ;;
13201 esac
13202 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13203 postinstall_cmds='chmod 555 $lib'
13204 # or fails outright, so override atomically:
13205 install_override_mode=555
13206 ;;
13207
13208 interix[3-9]*)
13209 version_type=linux # correct to gnu/linux during the next big refactor
13210 need_lib_prefix=no
13211 need_version=no
13212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13213 soname_spec='$libname$release$shared_ext$major'
13214 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13215 shlibpath_var=LD_LIBRARY_PATH
13216 shlibpath_overrides_runpath=no
13217 hardcode_into_libs=yes
13218 ;;
13219
13220 irix5* | irix6* | nonstopux*)
13221 case $host_os in
13222 nonstopux*) version_type=nonstopux ;;
13223 *)
13224 if test yes = "$lt_cv_prog_gnu_ld"; then
13225 version_type=linux # correct to gnu/linux during the next big refactor
13226 else
13227 version_type=irix
13228 fi ;;
13229 esac
13230 need_lib_prefix=no
13231 need_version=no
13232 soname_spec='$libname$release$shared_ext$major'
13233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13234 case $host_os in
13235 irix5* | nonstopux*)
13236 libsuff= shlibsuff=
13237 ;;
13238 *)
13239 case $LD in # libtool.m4 will add one of these switches to LD
13240 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13241 libsuff= shlibsuff= libmagic=32-bit;;
13242 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13243 libsuff=32 shlibsuff=N32 libmagic=N32;;
13244 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13245 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13246 *) libsuff= shlibsuff= libmagic=never-match;;
13247 esac
13248 ;;
13249 esac
13250 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13251 shlibpath_overrides_runpath=no
13252 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13253 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13254 hardcode_into_libs=yes
13255 ;;
13256
13257 # No shared lib support for Linux oldld, aout, or coff.
13258 linux*oldld* | linux*aout* | linux*coff*)
13259 dynamic_linker=no
13260 ;;
13261
13262 linux*android*)
13263 version_type=none # Android doesn't support versioned libraries.
13264 need_lib_prefix=no
13265 need_version=no
13266 library_names_spec='$libname$release$shared_ext'
13267 soname_spec='$libname$release$shared_ext'
13268 finish_cmds=
13269 shlibpath_var=LD_LIBRARY_PATH
13270 shlibpath_overrides_runpath=yes
13271
13272 # This implies no fast_install, which is unacceptable.
13273 # Some rework will be needed to allow for fast_install
13274 # before this can be enabled.
13275 hardcode_into_libs=yes
13276
13277 dynamic_linker='Android linker'
13278 # Don't embed -rpath directories since the linker doesn't support them.
13279 hardcode_libdir_flag_spec='-L$libdir'
13280 ;;
13281
13282 # This must be glibc/ELF.
13283 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13284 version_type=linux # correct to gnu/linux during the next big refactor
13285 need_lib_prefix=no
13286 need_version=no
13287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13288 soname_spec='$libname$release$shared_ext$major'
13289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13290 shlibpath_var=LD_LIBRARY_PATH
13291 shlibpath_overrides_runpath=no
13292
13293 # Some binutils ld are patched to set DT_RUNPATH
13294 if test ${lt_cv_shlibpath_overrides_runpath+y}
13295 then :
13296 printf %s "(cached) " >&6
13297 else case e in #(
13298 e) lt_cv_shlibpath_overrides_runpath=no
13299 save_LDFLAGS=$LDFLAGS
13300 save_libdir=$libdir
13301 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13302 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305
13306 int
13307 main (void)
13308 {
13309
13310 ;
13311 return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"
13315 then :
13316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13317 then :
13318 lt_cv_shlibpath_overrides_runpath=yes
13319 fi
13320 fi
13321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13322 conftest$ac_exeext conftest.$ac_ext
13323 LDFLAGS=$save_LDFLAGS
13324 libdir=$save_libdir
13325 ;;
13326 esac
13327 fi
13328
13329 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13330
13331 # This implies no fast_install, which is unacceptable.
13332 # Some rework will be needed to allow for fast_install
13333 # before this can be enabled.
13334 hardcode_into_libs=yes
13335
13336 # Ideally, we could use ldconfig to report *all* directores which are
13337 # searched for libraries, however this is still not possible. Aside from not
13338 # being certain /sbin/ldconfig is available, command
13339 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13340 # even though it is searched at run-time. Try to do the best guess by
13341 # appending ld.so.conf contents (and includes) to the search path.
13342 if test -f /etc/ld.so.conf; then
13343 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' ' '`
13344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13345 fi
13346
13347 # We used to test for /lib/ld.so.1 and disable shared libraries on
13348 # powerpc, because MkLinux only supported shared libraries with the
13349 # GNU dynamic linker. Since this was broken with cross compilers,
13350 # most powerpc-linux boxes support dynamic linking these days and
13351 # people can always --disable-shared, the test was removed, and we
13352 # assume the GNU/Linux dynamic linker is in use.
13353 dynamic_linker='GNU/Linux ld.so'
13354 ;;
13355
13356 netbsd*)
13357 version_type=sunos
13358 need_lib_prefix=no
13359 need_version=no
13360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13361 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13363 dynamic_linker='NetBSD (a.out) ld.so'
13364 else
13365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13366 soname_spec='$libname$release$shared_ext$major'
13367 dynamic_linker='NetBSD ld.elf_so'
13368 fi
13369 shlibpath_var=LD_LIBRARY_PATH
13370 shlibpath_overrides_runpath=yes
13371 hardcode_into_libs=yes
13372 ;;
13373
13374 newsos6)
13375 version_type=linux # correct to gnu/linux during the next big refactor
13376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 shlibpath_overrides_runpath=yes
13379 ;;
13380
13381 *nto* | *qnx*)
13382 version_type=qnx
13383 need_lib_prefix=no
13384 need_version=no
13385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13386 soname_spec='$libname$release$shared_ext$major'
13387 shlibpath_var=LD_LIBRARY_PATH
13388 shlibpath_overrides_runpath=no
13389 hardcode_into_libs=yes
13390 dynamic_linker='ldqnx.so'
13391 ;;
13392
13393 openbsd* | bitrig*)
13394 version_type=sunos
13395 sys_lib_dlsearch_path_spec=/usr/lib
13396 need_lib_prefix=no
13397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13398 need_version=no
13399 else
13400 need_version=yes
13401 fi
13402 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 shlibpath_overrides_runpath=yes
13406 ;;
13407
13408 os2*)
13409 libname_spec='$name'
13410 version_type=windows
13411 shrext_cmds=.dll
13412 need_version=no
13413 need_lib_prefix=no
13414 # OS/2 can only load a DLL with a base name of 8 characters or less.
13415 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13416 v=$($ECHO $release$versuffix | tr -d .-);
13417 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13418 $ECHO $n$v`$shared_ext'
13419 library_names_spec='${libname}_dll.$libext'
13420 dynamic_linker='OS/2 ld.exe'
13421 shlibpath_var=BEGINLIBPATH
13422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13424 postinstall_cmds='base_file=`basename \$file`~
13425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13426 dldir=$destdir/`dirname \$dlpath`~
13427 test -d \$dldir || mkdir -p \$dldir~
13428 $install_prog $dir/$dlname \$dldir/$dlname~
13429 chmod a+x \$dldir/$dlname~
13430 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13431 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13432 fi'
13433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13434 dlpath=$dir/\$dldll~
13435 $RM \$dlpath'
13436 ;;
13437
13438 osf3* | osf4* | osf5*)
13439 version_type=osf
13440 need_lib_prefix=no
13441 need_version=no
13442 soname_spec='$libname$release$shared_ext$major'
13443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13447 ;;
13448
13449 rdos*)
13450 dynamic_linker=no
13451 ;;
13452
13453 solaris*)
13454 version_type=linux # correct to gnu/linux during the next big refactor
13455 need_lib_prefix=no
13456 need_version=no
13457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13458 soname_spec='$libname$release$shared_ext$major'
13459 shlibpath_var=LD_LIBRARY_PATH
13460 shlibpath_overrides_runpath=yes
13461 hardcode_into_libs=yes
13462 # ldd complains unless libraries are executable
13463 postinstall_cmds='chmod +x $lib'
13464 ;;
13465
13466 sunos4*)
13467 version_type=sunos
13468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13470 shlibpath_var=LD_LIBRARY_PATH
13471 shlibpath_overrides_runpath=yes
13472 if test yes = "$with_gnu_ld"; then
13473 need_lib_prefix=no
13474 fi
13475 need_version=yes
13476 ;;
13477
13478 sysv4 | sysv4.3*)
13479 version_type=linux # correct to gnu/linux during the next big refactor
13480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13481 soname_spec='$libname$release$shared_ext$major'
13482 shlibpath_var=LD_LIBRARY_PATH
13483 case $host_vendor in
13484 sni)
13485 shlibpath_overrides_runpath=no
13486 need_lib_prefix=no
13487 runpath_var=LD_RUN_PATH
13488 ;;
13489 siemens)
13490 need_lib_prefix=no
13491 ;;
13492 motorola)
13493 need_lib_prefix=no
13494 need_version=no
13495 shlibpath_overrides_runpath=no
13496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13497 ;;
13498 esac
13499 ;;
13500
13501 sysv4*MP*)
13502 if test -d /usr/nec; then
13503 version_type=linux # correct to gnu/linux during the next big refactor
13504 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13505 soname_spec='$libname$shared_ext.$major'
13506 shlibpath_var=LD_LIBRARY_PATH
13507 fi
13508 ;;
13509
13510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13511 version_type=sco
13512 need_lib_prefix=no
13513 need_version=no
13514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13515 soname_spec='$libname$release$shared_ext$major'
13516 shlibpath_var=LD_LIBRARY_PATH
13517 shlibpath_overrides_runpath=yes
13518 hardcode_into_libs=yes
13519 if test yes = "$with_gnu_ld"; then
13520 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13521 else
13522 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13523 case $host_os in
13524 sco3.2v5*)
13525 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13526 ;;
13527 esac
13528 fi
13529 sys_lib_dlsearch_path_spec='/usr/lib'
13530 ;;
13531
13532 tpf*)
13533 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13534 version_type=linux # correct to gnu/linux during the next big refactor
13535 need_lib_prefix=no
13536 need_version=no
13537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13538 shlibpath_var=LD_LIBRARY_PATH
13539 shlibpath_overrides_runpath=no
13540 hardcode_into_libs=yes
13541 ;;
13542
13543 uts4*)
13544 version_type=linux # correct to gnu/linux during the next big refactor
13545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13546 soname_spec='$libname$release$shared_ext$major'
13547 shlibpath_var=LD_LIBRARY_PATH
13548 ;;
13549
13550 *)
13551 dynamic_linker=no
13552 ;;
13553 esac
13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13555 printf "%s\n" "$dynamic_linker" >&6; }
13556 test no = "$dynamic_linker" && can_build_shared=no
13557
13558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13559 if test yes = "$GCC"; then
13560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13561 fi
13562
13563 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13564 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13565 fi
13566
13567 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13568 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13569 fi
13570
13571 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13572 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13573
13574 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13575 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13576
13577 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13578 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13677 printf %s "checking how to hardcode library paths into programs... " >&6; }
13678 hardcode_action=
13679 if test -n "$hardcode_libdir_flag_spec" ||
13680 test -n "$runpath_var" ||
13681 test yes = "$hardcode_automatic"; then
13682
13683 # We can hardcode non-existent directories.
13684 if test no != "$hardcode_direct" &&
13685 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13686 # have to relink, otherwise we might link with an installed library
13687 # when we should be linking with a yet-to-be-installed one
13688 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13689 test no != "$hardcode_minus_L"; then
13690 # Linking always hardcodes the temporary library directory.
13691 hardcode_action=relink
13692 else
13693 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13694 hardcode_action=immediate
13695 fi
13696 else
13697 # We cannot hardcode anything, or else we can only hardcode existing
13698 # directories.
13699 hardcode_action=unsupported
13700 fi
13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13702 printf "%s\n" "$hardcode_action" >&6; }
13703
13704 if test relink = "$hardcode_action" ||
13705 test yes = "$inherit_rpath"; then
13706 # Fast installation is not supported
13707 enable_fast_install=no
13708 elif test yes = "$shlibpath_overrides_runpath" ||
13709 test no = "$enable_shared"; then
13710 # Fast installation is not necessary
13711 enable_fast_install=needless
13712 fi
13713
13714
13715
13716
13717
13718
13719 if test yes != "$enable_dlopen"; then
13720 enable_dlopen=unknown
13721 enable_dlopen_self=unknown
13722 enable_dlopen_self_static=unknown
13723 else
13724 lt_cv_dlopen=no
13725 lt_cv_dlopen_libs=
13726
13727 case $host_os in
13728 beos*)
13729 lt_cv_dlopen=load_add_on
13730 lt_cv_dlopen_libs=
13731 lt_cv_dlopen_self=yes
13732 ;;
13733
13734 mingw* | pw32* | cegcc*)
13735 lt_cv_dlopen=LoadLibrary
13736 lt_cv_dlopen_libs=
13737 ;;
13738
13739 cygwin*)
13740 lt_cv_dlopen=dlopen
13741 lt_cv_dlopen_libs=
13742 ;;
13743
13744 darwin*)
13745 # if libdl is installed we need to link against it
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13747 printf %s "checking for dlopen in -ldl... " >&6; }
13748 if test ${ac_cv_lib_dl_dlopen+y}
13749 then :
13750 printf %s "(cached) " >&6
13751 else case e in #(
13752 e) ac_check_lib_save_LIBS=$LIBS
13753 LIBS="-ldl $LIBS"
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756
13757 /* Override any GCC internal prototype to avoid an error.
13758 Use char because int might match the return type of a GCC
13759 builtin and then its argument prototype would still apply.
13760 The 'extern "C"' is for builds by C++ compilers;
13761 although this is not generally supported in C code supporting it here
13762 has little cost and some practical benefit (sr 110532). */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char dlopen (void);
13767 int
13768 main (void)
13769 {
13770 return dlopen ();
13771 ;
13772 return 0;
13773 }
13774 _ACEOF
13775 if ac_fn_c_try_link "$LINENO"
13776 then :
13777 ac_cv_lib_dl_dlopen=yes
13778 else case e in #(
13779 e) ac_cv_lib_dl_dlopen=no ;;
13780 esac
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13783 conftest$ac_exeext conftest.$ac_ext
13784 LIBS=$ac_check_lib_save_LIBS ;;
13785 esac
13786 fi
13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13788 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13789 if test "x$ac_cv_lib_dl_dlopen" = xyes
13790 then :
13791 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13792 else case e in #(
13793 e)
13794 lt_cv_dlopen=dyld
13795 lt_cv_dlopen_libs=
13796 lt_cv_dlopen_self=yes
13797 ;;
13798 esac
13799 fi
13800
13801 ;;
13802
13803 tpf*)
13804 # Don't try to run any link tests for TPF. We know it's impossible
13805 # because TPF is a cross-compiler, and we know how we open DSOs.
13806 lt_cv_dlopen=dlopen
13807 lt_cv_dlopen_libs=
13808 lt_cv_dlopen_self=no
13809 ;;
13810
13811 *)
13812 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13813 if test "x$ac_cv_func_shl_load" = xyes
13814 then :
13815 lt_cv_dlopen=shl_load
13816 else case e in #(
13817 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13818 printf %s "checking for shl_load in -ldld... " >&6; }
13819 if test ${ac_cv_lib_dld_shl_load+y}
13820 then :
13821 printf %s "(cached) " >&6
13822 else case e in #(
13823 e) ac_check_lib_save_LIBS=$LIBS
13824 LIBS="-ldld $LIBS"
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827
13828 /* Override any GCC internal prototype to avoid an error.
13829 Use char because int might match the return type of a GCC
13830 builtin and then its argument prototype would still apply.
13831 The 'extern "C"' is for builds by C++ compilers;
13832 although this is not generally supported in C code supporting it here
13833 has little cost and some practical benefit (sr 110532). */
13834 #ifdef __cplusplus
13835 extern "C"
13836 #endif
13837 char shl_load (void);
13838 int
13839 main (void)
13840 {
13841 return shl_load ();
13842 ;
13843 return 0;
13844 }
13845 _ACEOF
13846 if ac_fn_c_try_link "$LINENO"
13847 then :
13848 ac_cv_lib_dld_shl_load=yes
13849 else case e in #(
13850 e) ac_cv_lib_dld_shl_load=no ;;
13851 esac
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13854 conftest$ac_exeext conftest.$ac_ext
13855 LIBS=$ac_check_lib_save_LIBS ;;
13856 esac
13857 fi
13858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13859 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13860 if test "x$ac_cv_lib_dld_shl_load" = xyes
13861 then :
13862 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13863 else case e in #(
13864 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13865 if test "x$ac_cv_func_dlopen" = xyes
13866 then :
13867 lt_cv_dlopen=dlopen
13868 else case e in #(
13869 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13870 printf %s "checking for dlopen in -ldl... " >&6; }
13871 if test ${ac_cv_lib_dl_dlopen+y}
13872 then :
13873 printf %s "(cached) " >&6
13874 else case e in #(
13875 e) ac_check_lib_save_LIBS=$LIBS
13876 LIBS="-ldl $LIBS"
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply.
13883 The 'extern "C"' is for builds by C++ compilers;
13884 although this is not generally supported in C code supporting it here
13885 has little cost and some practical benefit (sr 110532). */
13886 #ifdef __cplusplus
13887 extern "C"
13888 #endif
13889 char dlopen (void);
13890 int
13891 main (void)
13892 {
13893 return dlopen ();
13894 ;
13895 return 0;
13896 }
13897 _ACEOF
13898 if ac_fn_c_try_link "$LINENO"
13899 then :
13900 ac_cv_lib_dl_dlopen=yes
13901 else case e in #(
13902 e) ac_cv_lib_dl_dlopen=no ;;
13903 esac
13904 fi
13905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13906 conftest$ac_exeext conftest.$ac_ext
13907 LIBS=$ac_check_lib_save_LIBS ;;
13908 esac
13909 fi
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13911 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13912 if test "x$ac_cv_lib_dl_dlopen" = xyes
13913 then :
13914 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13915 else case e in #(
13916 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13917 printf %s "checking for dlopen in -lsvld... " >&6; }
13918 if test ${ac_cv_lib_svld_dlopen+y}
13919 then :
13920 printf %s "(cached) " >&6
13921 else case e in #(
13922 e) ac_check_lib_save_LIBS=$LIBS
13923 LIBS="-lsvld $LIBS"
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13926
13927 /* Override any GCC internal prototype to avoid an error.
13928 Use char because int might match the return type of a GCC
13929 builtin and then its argument prototype would still apply.
13930 The 'extern "C"' is for builds by C++ compilers;
13931 although this is not generally supported in C code supporting it here
13932 has little cost and some practical benefit (sr 110532). */
13933 #ifdef __cplusplus
13934 extern "C"
13935 #endif
13936 char dlopen (void);
13937 int
13938 main (void)
13939 {
13940 return dlopen ();
13941 ;
13942 return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"
13946 then :
13947 ac_cv_lib_svld_dlopen=yes
13948 else case e in #(
13949 e) ac_cv_lib_svld_dlopen=no ;;
13950 esac
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13953 conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS ;;
13955 esac
13956 fi
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13958 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13959 if test "x$ac_cv_lib_svld_dlopen" = xyes
13960 then :
13961 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13962 else case e in #(
13963 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13964 printf %s "checking for dld_link in -ldld... " >&6; }
13965 if test ${ac_cv_lib_dld_dld_link+y}
13966 then :
13967 printf %s "(cached) " >&6
13968 else case e in #(
13969 e) ac_check_lib_save_LIBS=$LIBS
13970 LIBS="-ldld $LIBS"
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13973
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply.
13977 The 'extern "C"' is for builds by C++ compilers;
13978 although this is not generally supported in C code supporting it here
13979 has little cost and some practical benefit (sr 110532). */
13980 #ifdef __cplusplus
13981 extern "C"
13982 #endif
13983 char dld_link (void);
13984 int
13985 main (void)
13986 {
13987 return dld_link ();
13988 ;
13989 return 0;
13990 }
13991 _ACEOF
13992 if ac_fn_c_try_link "$LINENO"
13993 then :
13994 ac_cv_lib_dld_dld_link=yes
13995 else case e in #(
13996 e) ac_cv_lib_dld_dld_link=no ;;
13997 esac
13998 fi
13999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14000 conftest$ac_exeext conftest.$ac_ext
14001 LIBS=$ac_check_lib_save_LIBS ;;
14002 esac
14003 fi
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14005 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14006 if test "x$ac_cv_lib_dld_dld_link" = xyes
14007 then :
14008 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14009 fi
14010
14011 ;;
14012 esac
14013 fi
14014
14015 ;;
14016 esac
14017 fi
14018
14019 ;;
14020 esac
14021 fi
14022
14023 ;;
14024 esac
14025 fi
14026
14027 ;;
14028 esac
14029 fi
14030
14031 ;;
14032 esac
14033
14034 if test no = "$lt_cv_dlopen"; then
14035 enable_dlopen=no
14036 else
14037 enable_dlopen=yes
14038 fi
14039
14040 case $lt_cv_dlopen in
14041 dlopen)
14042 save_CPPFLAGS=$CPPFLAGS
14043 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14044
14045 save_LDFLAGS=$LDFLAGS
14046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14047
14048 save_LIBS=$LIBS
14049 LIBS="$lt_cv_dlopen_libs $LIBS"
14050
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14052 printf %s "checking whether a program can dlopen itself... " >&6; }
14053 if test ${lt_cv_dlopen_self+y}
14054 then :
14055 printf %s "(cached) " >&6
14056 else case e in #(
14057 e) if test yes = "$cross_compiling"; then :
14058 lt_cv_dlopen_self=cross
14059 else
14060 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14061 lt_status=$lt_dlunknown
14062 cat > conftest.$ac_ext <<_LT_EOF
14063 #line $LINENO "configure"
14064 #include "confdefs.h"
14065
14066 #if HAVE_DLFCN_H
14067 #include <dlfcn.h>
14068 #endif
14069
14070 #include <stdio.h>
14071
14072 #ifdef RTLD_GLOBAL
14073 # define LT_DLGLOBAL RTLD_GLOBAL
14074 #else
14075 # ifdef DL_GLOBAL
14076 # define LT_DLGLOBAL DL_GLOBAL
14077 # else
14078 # define LT_DLGLOBAL 0
14079 # endif
14080 #endif
14081
14082 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14083 find out it does not work in some platform. */
14084 #ifndef LT_DLLAZY_OR_NOW
14085 # ifdef RTLD_LAZY
14086 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14087 # else
14088 # ifdef DL_LAZY
14089 # define LT_DLLAZY_OR_NOW DL_LAZY
14090 # else
14091 # ifdef RTLD_NOW
14092 # define LT_DLLAZY_OR_NOW RTLD_NOW
14093 # else
14094 # ifdef DL_NOW
14095 # define LT_DLLAZY_OR_NOW DL_NOW
14096 # else
14097 # define LT_DLLAZY_OR_NOW 0
14098 # endif
14099 # endif
14100 # endif
14101 # endif
14102 #endif
14103
14104 /* When -fvisibility=hidden is used, assume the code has been annotated
14105 correspondingly for the symbols needed. */
14106 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14107 int fnord () __attribute__((visibility("default")));
14108 #endif
14109
14110 int fnord () { return 42; }
14111 int main ()
14112 {
14113 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14114 int status = $lt_dlunknown;
14115
14116 if (self)
14117 {
14118 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14119 else
14120 {
14121 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14122 else puts (dlerror ());
14123 }
14124 /* dlclose (self); */
14125 }
14126 else
14127 puts (dlerror ());
14128
14129 return status;
14130 }
14131 _LT_EOF
14132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14133 (eval $ac_link) 2>&5
14134 ac_status=$?
14135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14136 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14137 (./conftest; exit; ) >&5 2>/dev/null
14138 lt_status=$?
14139 case x$lt_status in
14140 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14141 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14142 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14143 esac
14144 else :
14145 # compilation failed
14146 lt_cv_dlopen_self=no
14147 fi
14148 fi
14149 rm -fr conftest*
14150
14151 ;;
14152 esac
14153 fi
14154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14155 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14156
14157 if test yes = "$lt_cv_dlopen_self"; then
14158 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14160 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14161 if test ${lt_cv_dlopen_self_static+y}
14162 then :
14163 printf %s "(cached) " >&6
14164 else case e in #(
14165 e) if test yes = "$cross_compiling"; then :
14166 lt_cv_dlopen_self_static=cross
14167 else
14168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14169 lt_status=$lt_dlunknown
14170 cat > conftest.$ac_ext <<_LT_EOF
14171 #line $LINENO "configure"
14172 #include "confdefs.h"
14173
14174 #if HAVE_DLFCN_H
14175 #include <dlfcn.h>
14176 #endif
14177
14178 #include <stdio.h>
14179
14180 #ifdef RTLD_GLOBAL
14181 # define LT_DLGLOBAL RTLD_GLOBAL
14182 #else
14183 # ifdef DL_GLOBAL
14184 # define LT_DLGLOBAL DL_GLOBAL
14185 # else
14186 # define LT_DLGLOBAL 0
14187 # endif
14188 #endif
14189
14190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14191 find out it does not work in some platform. */
14192 #ifndef LT_DLLAZY_OR_NOW
14193 # ifdef RTLD_LAZY
14194 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14195 # else
14196 # ifdef DL_LAZY
14197 # define LT_DLLAZY_OR_NOW DL_LAZY
14198 # else
14199 # ifdef RTLD_NOW
14200 # define LT_DLLAZY_OR_NOW RTLD_NOW
14201 # else
14202 # ifdef DL_NOW
14203 # define LT_DLLAZY_OR_NOW DL_NOW
14204 # else
14205 # define LT_DLLAZY_OR_NOW 0
14206 # endif
14207 # endif
14208 # endif
14209 # endif
14210 #endif
14211
14212 /* When -fvisibility=hidden is used, assume the code has been annotated
14213 correspondingly for the symbols needed. */
14214 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14215 int fnord () __attribute__((visibility("default")));
14216 #endif
14217
14218 int fnord () { return 42; }
14219 int main ()
14220 {
14221 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14222 int status = $lt_dlunknown;
14223
14224 if (self)
14225 {
14226 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14227 else
14228 {
14229 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14230 else puts (dlerror ());
14231 }
14232 /* dlclose (self); */
14233 }
14234 else
14235 puts (dlerror ());
14236
14237 return status;
14238 }
14239 _LT_EOF
14240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14241 (eval $ac_link) 2>&5
14242 ac_status=$?
14243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14244 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14245 (./conftest; exit; ) >&5 2>/dev/null
14246 lt_status=$?
14247 case x$lt_status in
14248 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14249 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14250 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14251 esac
14252 else :
14253 # compilation failed
14254 lt_cv_dlopen_self_static=no
14255 fi
14256 fi
14257 rm -fr conftest*
14258
14259 ;;
14260 esac
14261 fi
14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14263 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14264 fi
14265
14266 CPPFLAGS=$save_CPPFLAGS
14267 LDFLAGS=$save_LDFLAGS
14268 LIBS=$save_LIBS
14269 ;;
14270 esac
14271
14272 case $lt_cv_dlopen_self in
14273 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14274 *) enable_dlopen_self=unknown ;;
14275 esac
14276
14277 case $lt_cv_dlopen_self_static in
14278 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14279 *) enable_dlopen_self_static=unknown ;;
14280 esac
14281 fi
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299 striplib=
14300 old_striplib=
14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14302 printf %s "checking whether stripping libraries is possible... " >&6; }
14303 if test -z "$STRIP"; then
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305 printf "%s\n" "no" >&6; }
14306 else
14307 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14308 old_striplib="$STRIP --strip-debug"
14309 striplib="$STRIP --strip-unneeded"
14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311 printf "%s\n" "yes" >&6; }
14312 else
14313 case $host_os in
14314 darwin*)
14315 # FIXME - insert some real tests, host_os isn't really good enough
14316 striplib="$STRIP -x"
14317 old_striplib="$STRIP -S"
14318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14319 printf "%s\n" "yes" >&6; }
14320 ;;
14321 freebsd*)
14322 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14323 old_striplib="$STRIP --strip-debug"
14324 striplib="$STRIP --strip-unneeded"
14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14326 printf "%s\n" "yes" >&6; }
14327 else
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 printf "%s\n" "no" >&6; }
14330 fi
14331 ;;
14332 *)
14333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334 printf "%s\n" "no" >&6; }
14335 ;;
14336 esac
14337 fi
14338 fi
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351 # Report what library types will actually be built
14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14353 printf %s "checking if libtool supports shared libraries... " >&6; }
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14355 printf "%s\n" "$can_build_shared" >&6; }
14356
14357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14358 printf %s "checking whether to build shared libraries... " >&6; }
14359 test no = "$can_build_shared" && enable_shared=no
14360
14361 # On AIX, shared libraries and static libraries use the same namespace, and
14362 # are all built from PIC.
14363 case $host_os in
14364 aix3*)
14365 test yes = "$enable_shared" && enable_static=no
14366 if test -n "$RANLIB"; then
14367 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14368 postinstall_cmds='$RANLIB $lib'
14369 fi
14370 ;;
14371
14372 aix[4-9]*)
14373 if test ia64 != "$host_cpu"; then
14374 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14375 yes,aix,yes) ;; # shared object as lib.so file only
14376 yes,svr4,*) ;; # shared object as lib.so archive member only
14377 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14378 esac
14379 fi
14380 ;;
14381 esac
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14383 printf "%s\n" "$enable_shared" >&6; }
14384
14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14386 printf %s "checking whether to build static libraries... " >&6; }
14387 # Make sure either enable_shared or enable_static is yes.
14388 test yes = "$enable_shared" || enable_static=yes
14389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14390 printf "%s\n" "$enable_static" >&6; }
14391
14392
14393
14394
14395 fi
14396 ac_ext=c
14397 ac_cpp='$CPP $CPPFLAGS'
14398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14401
14402 CC=$lt_save_CC
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418 ac_config_commands="$ac_config_commands libtool"
14419
14420
14421
14422
14423 # Only expand once:
14424
14425
14426
14427 # Select memory manager depending on user input.
14428 # If no "-enable-maxmem", use jmemnobs
14429 MEMORYMGR='jmemnobs'
14430 MAXMEM="no"
14431 # Check whether --enable-maxmem was given.
14432 if test ${enable_maxmem+y}
14433 then :
14434 enableval=$enable_maxmem; MAXMEM="$enableval"
14435 fi
14436
14437 if test "x$MAXMEM" = xyes; then
14438 MAXMEM=1
14439 fi
14440 if test "x$MAXMEM" != xno; then
14441 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
14442 as_fn_error $? "non-numeric argument to --enable-maxmem" "$LINENO" 5
14443 fi
14444 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
14445
14446 printf "%s\n" "#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}" >>confdefs.h
14447
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
14449 printf %s "checking for 'tmpfile()'... " >&6; }
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 #include <stdio.h>
14453 int
14454 main (void)
14455 {
14456 FILE * tfile = tmpfile();
14457 ;
14458 return 0;
14459 }
14460 _ACEOF
14461 if ac_fn_c_try_link "$LINENO"
14462 then :
14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14464 printf "%s\n" "yes" >&6; }
14465 MEMORYMGR='jmemansi'
14466 else case e in #(
14467 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14468 printf "%s\n" "no" >&6; }
14469 MEMORYMGR='jmemname'
14470
14471 # Test for the need to remove temporary files using a signal handler
14472 # (for cjpeg/djpeg)
14473
14474 printf "%s\n" "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
14475
14476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
14477 printf %s "checking for 'mktemp()'... " >&6; }
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480
14481 int
14482 main (void)
14483 {
14484 char fname[80]; mktemp(fname);
14485 ;
14486 return 0;
14487 }
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"
14490 then :
14491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14492 printf "%s\n" "yes" >&6; }
14493 else case e in #(
14494 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14495 printf "%s\n" "no" >&6; }
14496
14497 printf "%s\n" "#define NO_MKTEMP 1" >>confdefs.h
14498 ;;
14499 esac
14500 fi
14501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14502 conftest$ac_exeext conftest.$ac_ext ;;
14503 esac
14504 fi
14505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14506 conftest$ac_exeext conftest.$ac_ext
14507 fi
14508
14509
14510 # Extract the library version IDs from jpeglib.h.
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
14512 printf %s "checking libjpeg version number... " >&6; }
14513 major=`sed -ne 's/^#define JPEG_LIB_VERSION_MAJOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
14514 minor=`sed -ne 's/^#define JPEG_LIB_VERSION_MINOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
14515 JPEG_LIB_VERSION=`expr $major + $minor`:0:$minor
14516
14517 JPEG_LIB_VERSION_MAJOR=$major
14518
14519 JPEG_LIB_VERSION_MINOR=$minor
14520
14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $major.$minor.0" >&5
14522 printf "%s\n" "$major.$minor.0" >&6; }
14523
14524 ac_config_files="$ac_config_files Makefile libjpeg.pc"
14525
14526 cat >confcache <<\_ACEOF
14527 # This file is a shell script that caches the results of configure
14528 # tests run on this system so they can be shared between configure
14529 # scripts and configure runs, see configure's option --config-cache.
14530 # It is not useful on other systems. If it contains results you don't
14531 # want to keep, you may remove or edit it.
14532 #
14533 # config.status only pays attention to the cache file if you give it
14534 # the --recheck option to rerun configure.
14535 #
14536 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
14537 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
14538 # following values.
14539
14540 _ACEOF
14541
14542 # The following way of writing the cache mishandles newlines in values,
14543 # but we know of no workaround that is simple, portable, and efficient.
14544 # So, we kill variables containing newlines.
14545 # Ultrix sh set writes to stderr and can't be redirected directly,
14546 # and sets the high bit in the cache file unless we assign to the vars.
14547 (
14548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14549 eval ac_val=\$$ac_var
14550 case $ac_val in #(
14551 *${as_nl}*)
14552 case $ac_var in #(
14553 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14554 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14555 esac
14556 case $ac_var in #(
14557 _ | IFS | as_nl) ;; #(
14558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14559 *) { eval $ac_var=; unset $ac_var;} ;;
14560 esac ;;
14561 esac
14562 done
14563
14564 (set) 2>&1 |
14565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14566 *${as_nl}ac_space=\ *)
14567 # 'set' does not quote correctly, so add quotes: double-quote
14568 # substitution turns \\\\ into \\, and sed turns \\ into \.
14569 sed -n \
14570 "s/'/'\\\\''/g;
14571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14572 ;; #(
14573 *)
14574 # 'set' quotes correctly as required by POSIX, so do not add quotes.
14575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14576 ;;
14577 esac |
14578 sort
14579 ) |
14580 sed '
14581 /^ac_cv_env_/b end
14582 t clear
14583 :clear
14584 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14585 t end
14586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14587 :end' >>confcache
14588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14589 if test -w "$cache_file"; then
14590 if test "x$cache_file" != "x/dev/null"; then
14591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14592 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14593 if test ! -f "$cache_file" || test -h "$cache_file"; then
14594 cat confcache >"$cache_file"
14595 else
14596 case $cache_file in #(
14597 */* | ?:*)
14598 mv -f confcache "$cache_file"$$ &&
14599 mv -f "$cache_file"$$ "$cache_file" ;; #(
14600 *)
14601 mv -f confcache "$cache_file" ;;
14602 esac
14603 fi
14604 fi
14605 else
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14607 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14608 fi
14609 fi
14610 rm -f confcache
14611
14612 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14613 # Let make expand exec_prefix.
14614 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14615
14616 DEFS=-DHAVE_CONFIG_H
14617
14618 ac_libobjs=
14619 ac_ltlibobjs=
14620 U=
14621 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14622 # 1. Remove the extension, and $U if already installed.
14623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14624 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14626 # will be set to the directory where LIBOBJS objects are built.
14627 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14628 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14629 done
14630 LIBOBJS=$ac_libobjs
14631
14632 LTLIBOBJS=$ac_ltlibobjs
14633
14634
14635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14636 printf %s "checking that generated files are newer than configure... " >&6; }
14637 if test -n "$am_sleep_pid"; then
14638 # Hide warnings about reused PIDs.
14639 wait $am_sleep_pid 2>/dev/null
14640 fi
14641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14642 printf "%s\n" "done" >&6; }
14643 if test -n "$EXEEXT"; then
14644 am__EXEEXT_TRUE=
14645 am__EXEEXT_FALSE='#'
14646 else
14647 am__EXEEXT_TRUE='#'
14648 am__EXEEXT_FALSE=
14649 fi
14650
14651 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14652 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14654 fi
14655 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14656 as_fn_error $? "conditional \"AMDEP\" was never defined.
14657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14658 fi
14659 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14660 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14662 fi
14663 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
14664 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
14665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14666 fi
14667
14668 : "${CONFIG_STATUS=./config.status}"
14669 ac_write_fail=0
14670 ac_clean_files_save=$ac_clean_files
14671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14673 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14674 as_write_fail=0
14675 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14676 #! $SHELL
14677 # Generated by $as_me.
14678 # Run this file to recreate the current configuration.
14679 # Compiler output produced by configure, useful for debugging
14680 # configure, is in config.log if it exists.
14681
14682 debug=false
14683 ac_cs_recheck=false
14684 ac_cs_silent=false
14685
14686 SHELL=\${CONFIG_SHELL-$SHELL}
14687 export SHELL
14688 _ASEOF
14689 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14690 ## -------------------- ##
14691 ## M4sh Initialization. ##
14692 ## -------------------- ##
14693
14694 # Be more Bourne compatible
14695 DUALCASE=1; export DUALCASE # for MKS sh
14696 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14697 then :
14698 emulate sh
14699 NULLCMD=:
14700 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14701 # is contrary to our usage. Disable this feature.
14702 alias -g '${1+"$@"}'='"$@"'
14703 setopt NO_GLOB_SUBST
14704 else case e in #(
14705 e) case `(set -o) 2>/dev/null` in #(
14706 *posix*) :
14707 set -o posix ;; #(
14708 *) :
14709 ;;
14710 esac ;;
14711 esac
14712 fi
14713
14714
14715
14716 # Reset variables that may have inherited troublesome values from
14717 # the environment.
14718
14719 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14720 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14721 # side effect of setting IFS to empty, thus disabling word splitting.)
14722 # Quoting is to prevent editors from complaining about space-tab.
14723 as_nl='
14724 '
14725 export as_nl
14726 IFS=" "" $as_nl"
14727
14728 PS1='$ '
14729 PS2='> '
14730 PS4='+ '
14731
14732 # Ensure predictable behavior from utilities with locale-dependent output.
14733 LC_ALL=C
14734 export LC_ALL
14735 LANGUAGE=C
14736 export LANGUAGE
14737
14738 # We cannot yet rely on "unset" to work, but we need these variables
14739 # to be unset--not just set to an empty or harmless value--now, to
14740 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14741 # also avoids known problems related to "unset" and subshell syntax
14742 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14743 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14744 do eval test \${$as_var+y} \
14745 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14746 done
14747
14748 # Ensure that fds 0, 1, and 2 are open.
14749 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14750 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14751 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14752
14753 # The user is always right.
14754 if ${PATH_SEPARATOR+false} :; then
14755 PATH_SEPARATOR=:
14756 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14757 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14758 PATH_SEPARATOR=';'
14759 }
14760 fi
14761
14762
14763 # Find who we are. Look in the path if we contain no directory separator.
14764 as_myself=
14765 case $0 in #((
14766 *[\\/]* ) as_myself=$0 ;;
14767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14768 for as_dir in $PATH
14769 do
14770 IFS=$as_save_IFS
14771 case $as_dir in #(((
14772 '') as_dir=./ ;;
14773 */) ;;
14774 *) as_dir=$as_dir/ ;;
14775 esac
14776 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14777 done
14778 IFS=$as_save_IFS
14779
14780 ;;
14781 esac
14782 # We did not find ourselves, most probably we were run as 'sh COMMAND'
14783 # in which case we are not to be found in the path.
14784 if test "x$as_myself" = x; then
14785 as_myself=$0
14786 fi
14787 if test ! -f "$as_myself"; then
14788 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14789 exit 1
14790 fi
14791
14792
14793
14794 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14795 # ----------------------------------------
14796 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14797 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14798 # script with STATUS, using 1 if that was 0.
14799 as_fn_error ()
14800 {
14801 as_status=$1; test $as_status -eq 0 && as_status=1
14802 if test "$4"; then
14803 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14805 fi
14806 printf "%s\n" "$as_me: error: $2" >&2
14807 as_fn_exit $as_status
14808 } # as_fn_error
14809
14810
14811 # as_fn_set_status STATUS
14812 # -----------------------
14813 # Set $? to STATUS, without forking.
14814 as_fn_set_status ()
14815 {
14816 return $1
14817 } # as_fn_set_status
14818
14819 # as_fn_exit STATUS
14820 # -----------------
14821 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14822 as_fn_exit ()
14823 {
14824 set +e
14825 as_fn_set_status $1
14826 exit $1
14827 } # as_fn_exit
14828
14829 # as_fn_unset VAR
14830 # ---------------
14831 # Portably unset VAR.
14832 as_fn_unset ()
14833 {
14834 { eval $1=; unset $1;}
14835 }
14836 as_unset=as_fn_unset
14837
14838 # as_fn_append VAR VALUE
14839 # ----------------------
14840 # Append the text in VALUE to the end of the definition contained in VAR. Take
14841 # advantage of any shell optimizations that allow amortized linear growth over
14842 # repeated appends, instead of the typical quadratic growth present in naive
14843 # implementations.
14844 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14845 then :
14846 eval 'as_fn_append ()
14847 {
14848 eval $1+=\$2
14849 }'
14850 else case e in #(
14851 e) as_fn_append ()
14852 {
14853 eval $1=\$$1\$2
14854 } ;;
14855 esac
14856 fi # as_fn_append
14857
14858 # as_fn_arith ARG...
14859 # ------------------
14860 # Perform arithmetic evaluation on the ARGs, and store the result in the
14861 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14862 # must be portable across $(()) and expr.
14863 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14864 then :
14865 eval 'as_fn_arith ()
14866 {
14867 as_val=$(( $* ))
14868 }'
14869 else case e in #(
14870 e) as_fn_arith ()
14871 {
14872 as_val=`expr "$@" || test $? -eq 1`
14873 } ;;
14874 esac
14875 fi # as_fn_arith
14876
14877
14878 if expr a : '\(a\)' >/dev/null 2>&1 &&
14879 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14880 as_expr=expr
14881 else
14882 as_expr=false
14883 fi
14884
14885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14886 as_basename=basename
14887 else
14888 as_basename=false
14889 fi
14890
14891 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14892 as_dirname=dirname
14893 else
14894 as_dirname=false
14895 fi
14896
14897 as_me=`$as_basename -- "$0" ||
14898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14899 X"$0" : 'X\(//\)$' \| \
14900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14901 printf "%s\n" X/"$0" |
14902 sed '/^.*\/\([^/][^/]*\)\/*$/{
14903 s//\1/
14904 q
14905 }
14906 /^X\/\(\/\/\)$/{
14907 s//\1/
14908 q
14909 }
14910 /^X\/\(\/\).*/{
14911 s//\1/
14912 q
14913 }
14914 s/.*/./; q'`
14915
14916 # Avoid depending upon Character Ranges.
14917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14920 as_cr_digits='0123456789'
14921 as_cr_alnum=$as_cr_Letters$as_cr_digits
14922
14923
14924 # Determine whether it's possible to make 'echo' print without a newline.
14925 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14926 # for compatibility with existing Makefiles.
14927 ECHO_C= ECHO_N= ECHO_T=
14928 case `echo -n x` in #(((((
14929 -n*)
14930 case `echo 'xy\c'` in
14931 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14932 xy) ECHO_C='\c';;
14933 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14934 ECHO_T=' ';;
14935 esac;;
14936 *)
14937 ECHO_N='-n';;
14938 esac
14939
14940 # For backward compatibility with old third-party macros, we provide
14941 # the shell variables $as_echo and $as_echo_n. New code should use
14942 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14943 as_echo='printf %s\n'
14944 as_echo_n='printf %s'
14945
14946 rm -f conf$$ conf$$.exe conf$$.file
14947 if test -d conf$$.dir; then
14948 rm -f conf$$.dir/conf$$.file
14949 else
14950 rm -f conf$$.dir
14951 mkdir conf$$.dir 2>/dev/null
14952 fi
14953 if (echo >conf$$.file) 2>/dev/null; then
14954 if ln -s conf$$.file conf$$ 2>/dev/null; then
14955 as_ln_s='ln -s'
14956 # ... but there are two gotchas:
14957 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
14958 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
14959 # In both cases, we have to default to 'cp -pR'.
14960 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14961 as_ln_s='cp -pR'
14962 elif ln conf$$.file conf$$ 2>/dev/null; then
14963 as_ln_s=ln
14964 else
14965 as_ln_s='cp -pR'
14966 fi
14967 else
14968 as_ln_s='cp -pR'
14969 fi
14970 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14971 rmdir conf$$.dir 2>/dev/null
14972
14973
14974 # as_fn_mkdir_p
14975 # -------------
14976 # Create "$as_dir" as a directory, including parents if necessary.
14977 as_fn_mkdir_p ()
14978 {
14979
14980 case $as_dir in #(
14981 -*) as_dir=./$as_dir;;
14982 esac
14983 test -d "$as_dir" || eval $as_mkdir_p || {
14984 as_dirs=
14985 while :; do
14986 case $as_dir in #(
14987 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14988 *) as_qdir=$as_dir;;
14989 esac
14990 as_dirs="'$as_qdir' $as_dirs"
14991 as_dir=`$as_dirname -- "$as_dir" ||
14992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14993 X"$as_dir" : 'X\(//\)[^/]' \| \
14994 X"$as_dir" : 'X\(//\)$' \| \
14995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14996 printf "%s\n" X"$as_dir" |
14997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14998 s//\1/
14999 q
15000 }
15001 /^X\(\/\/\)[^/].*/{
15002 s//\1/
15003 q
15004 }
15005 /^X\(\/\/\)$/{
15006 s//\1/
15007 q
15008 }
15009 /^X\(\/\).*/{
15010 s//\1/
15011 q
15012 }
15013 s/.*/./; q'`
15014 test -d "$as_dir" && break
15015 done
15016 test -z "$as_dirs" || eval "mkdir $as_dirs"
15017 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15018
15019
15020 } # as_fn_mkdir_p
15021 if mkdir -p . 2>/dev/null; then
15022 as_mkdir_p='mkdir -p "$as_dir"'
15023 else
15024 test -d ./-p && rmdir ./-p
15025 as_mkdir_p=false
15026 fi
15027
15028
15029 # as_fn_executable_p FILE
15030 # -----------------------
15031 # Test if FILE is an executable regular file.
15032 as_fn_executable_p ()
15033 {
15034 test -f "$1" && test -x "$1"
15035 } # as_fn_executable_p
15036 as_test_x='test -x'
15037 as_executable_p=as_fn_executable_p
15038
15039 # Sed expression to map a string onto a valid CPP name.
15040 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15041 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15042
15043 # Sed expression to map a string onto a valid variable name.
15044 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15045 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15046
15047
15048 exec 6>&1
15049 ## ----------------------------------- ##
15050 ## Main body of $CONFIG_STATUS script. ##
15051 ## ----------------------------------- ##
15052 _ASEOF
15053 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15054
15055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15056 # Save the log message, to keep $0 and so on meaningful, and to
15057 # report actual input values of CONFIG_FILES etc. instead of their
15058 # values after options handling.
15059 ac_log="
15060 This file was extended by libjpeg $as_me 9.6.0, which was
15061 generated by GNU Autoconf 2.72. Invocation command line was
15062
15063 CONFIG_FILES = $CONFIG_FILES
15064 CONFIG_HEADERS = $CONFIG_HEADERS
15065 CONFIG_LINKS = $CONFIG_LINKS
15066 CONFIG_COMMANDS = $CONFIG_COMMANDS
15067 $ $0 $@
15068
15069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15070 "
15071
15072 _ACEOF
15073
15074 case $ac_config_files in *"
15075 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15076 esac
15077
15078 case $ac_config_headers in *"
15079 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15080 esac
15081
15082
15083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15084 # Files that config.status was made for.
15085 config_files="$ac_config_files"
15086 config_headers="$ac_config_headers"
15087 config_commands="$ac_config_commands"
15088
15089 _ACEOF
15090
15091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092 ac_cs_usage="\
15093 '$as_me' instantiates files and other configuration actions
15094 from templates according to the current configuration. Unless the files
15095 and actions are specified as TAGs, all are instantiated by default.
15096
15097 Usage: $0 [OPTION]... [TAG]...
15098
15099 -h, --help print this help, then exit
15100 -V, --version print version number and configuration settings, then exit
15101 --config print configuration, then exit
15102 -q, --quiet, --silent
15103 do not print progress messages
15104 -d, --debug don't remove temporary files
15105 --recheck update $as_me by reconfiguring in the same conditions
15106 --file=FILE[:TEMPLATE]
15107 instantiate the configuration file FILE
15108 --header=FILE[:TEMPLATE]
15109 instantiate the configuration header FILE
15110
15111 Configuration files:
15112 $config_files
15113
15114 Configuration headers:
15115 $config_headers
15116
15117 Configuration commands:
15118 $config_commands
15119
15120 Report bugs to the package provider."
15121
15122 _ACEOF
15123 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15124 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15126 ac_cs_config='$ac_cs_config_escaped'
15127 ac_cs_version="\\
15128 libjpeg config.status 9.6.0
15129 configured by $0, generated by GNU Autoconf 2.72,
15130 with options \\"\$ac_cs_config\\"
15131
15132 Copyright (C) 2023 Free Software Foundation, Inc.
15133 This config.status script is free software; the Free Software Foundation
15134 gives unlimited permission to copy, distribute and modify it."
15135
15136 ac_pwd='$ac_pwd'
15137 srcdir='$srcdir'
15138 INSTALL='$INSTALL'
15139 MKDIR_P='$MKDIR_P'
15140 AWK='$AWK'
15141 test -n "\$AWK" || AWK=awk
15142 _ACEOF
15143
15144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15145 # The default lists apply if the user does not specify any file.
15146 ac_need_defaults=:
15147 while test $# != 0
15148 do
15149 case $1 in
15150 --*=?*)
15151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15152 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15153 ac_shift=:
15154 ;;
15155 --*=)
15156 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15157 ac_optarg=
15158 ac_shift=:
15159 ;;
15160 *)
15161 ac_option=$1
15162 ac_optarg=$2
15163 ac_shift=shift
15164 ;;
15165 esac
15166
15167 case $ac_option in
15168 # Handling of the options.
15169 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15170 ac_cs_recheck=: ;;
15171 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15172 printf "%s\n" "$ac_cs_version"; exit ;;
15173 --config | --confi | --conf | --con | --co | --c )
15174 printf "%s\n" "$ac_cs_config"; exit ;;
15175 --debug | --debu | --deb | --de | --d | -d )
15176 debug=: ;;
15177 --file | --fil | --fi | --f )
15178 $ac_shift
15179 case $ac_optarg in
15180 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15181 '') as_fn_error $? "missing file argument" ;;
15182 esac
15183 as_fn_append CONFIG_FILES " '$ac_optarg'"
15184 ac_need_defaults=false;;
15185 --header | --heade | --head | --hea )
15186 $ac_shift
15187 case $ac_optarg in
15188 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15189 esac
15190 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15191 ac_need_defaults=false;;
15192 --he | --h)
15193 # Conflict between --help and --header
15194 as_fn_error $? "ambiguous option: '$1'
15195 Try '$0 --help' for more information.";;
15196 --help | --hel | -h )
15197 printf "%s\n" "$ac_cs_usage"; exit ;;
15198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15199 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15200 ac_cs_silent=: ;;
15201
15202 # This is an error.
15203 -*) as_fn_error $? "unrecognized option: '$1'
15204 Try '$0 --help' for more information." ;;
15205
15206 *) as_fn_append ac_config_targets " $1"
15207 ac_need_defaults=false ;;
15208
15209 esac
15210 shift
15211 done
15212
15213 ac_configure_extra_args=
15214
15215 if $ac_cs_silent; then
15216 exec 6>/dev/null
15217 ac_configure_extra_args="$ac_configure_extra_args --silent"
15218 fi
15219
15220 _ACEOF
15221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222 if \$ac_cs_recheck; then
15223 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15224 shift
15225 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15226 CONFIG_SHELL='$SHELL'
15227 export CONFIG_SHELL
15228 exec "\$@"
15229 fi
15230
15231 _ACEOF
15232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15233 exec 5>>config.log
15234 {
15235 echo
15236 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15237 ## Running $as_me. ##
15238 _ASBOX
15239 printf "%s\n" "$ac_log"
15240 } >&5
15241
15242 _ACEOF
15243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15244 #
15245 # INIT-COMMANDS
15246 #
15247 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15248
15249
15250 # The HP-UX ksh and POSIX shell print the target directory to stdout
15251 # if CDPATH is set.
15252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15253
15254 sed_quote_subst='$sed_quote_subst'
15255 double_quote_subst='$double_quote_subst'
15256 delay_variable_subst='$delay_variable_subst'
15257 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15258 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15259 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15260 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15261 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15262 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15263 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15264 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15265 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15266 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15267 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15268 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15269 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15270 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15271 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15272 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15273 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15274 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15275 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15276 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15277 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15278 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15279 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15280 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15281 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15282 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15283 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15284 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15285 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15286 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15287 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15288 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15289 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15290 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15291 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15292 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15293 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15294 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15295 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15296 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15297 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15298 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15299 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15300 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15301 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15302 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15303 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15304 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15305 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15306 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15307 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15308 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15309 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15310 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15311 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15312 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15313 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15314 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15315 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15316 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15317 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15318 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"`'
15319 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15320 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15321 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15322 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15323 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15324 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15325 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15326 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15327 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15328 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15329 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15330 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15331 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15332 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15333 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15334 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15335 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15336 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15337 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15338 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15339 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15340 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15341 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15342 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15343 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15344 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15345 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15346 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15347 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15348 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15349 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15350 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15351 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15352 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15353 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15354 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15355 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15356 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15357 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15358 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15359 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15360 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15361 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15362 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15363 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15364 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15365 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15366 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15367 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15368 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15369 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15370 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15371 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15372 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15373 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15374 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15375 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15376 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15377 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15378 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15379 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15380 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15381 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15382 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15383 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15384 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15385 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15386 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15387 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15388 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15389 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15390 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15391 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15392 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15393 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15394 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15395
15396 LTCC='$LTCC'
15397 LTCFLAGS='$LTCFLAGS'
15398 compiler='$compiler_DEFAULT'
15399
15400 # A function that is used when there is no print builtin or printf.
15401 func_fallback_echo ()
15402 {
15403 eval 'cat <<_LTECHO_EOF
15404 \$1
15405 _LTECHO_EOF'
15406 }
15407
15408 # Quote evaled strings.
15409 for var in AS \
15410 DLLTOOL \
15411 OBJDUMP \
15412 SHELL \
15413 ECHO \
15414 PATH_SEPARATOR \
15415 SED \
15416 GREP \
15417 EGREP \
15418 FGREP \
15419 LD \
15420 NM \
15421 LN_S \
15422 lt_SP2NL \
15423 lt_NL2SP \
15424 reload_flag \
15425 FILECMD \
15426 deplibs_check_method \
15427 file_magic_cmd \
15428 file_magic_glob \
15429 want_nocaseglob \
15430 sharedlib_from_linklib_cmd \
15431 AR \
15432 archiver_list_spec \
15433 STRIP \
15434 RANLIB \
15435 CC \
15436 CFLAGS \
15437 compiler \
15438 lt_cv_sys_global_symbol_pipe \
15439 lt_cv_sys_global_symbol_to_cdecl \
15440 lt_cv_sys_global_symbol_to_import \
15441 lt_cv_sys_global_symbol_to_c_name_address \
15442 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15443 lt_cv_nm_interface \
15444 nm_file_list_spec \
15445 lt_cv_truncate_bin \
15446 lt_prog_compiler_no_builtin_flag \
15447 lt_prog_compiler_pic \
15448 lt_prog_compiler_wl \
15449 lt_prog_compiler_static \
15450 lt_cv_prog_compiler_c_o \
15451 need_locks \
15452 MANIFEST_TOOL \
15453 DSYMUTIL \
15454 NMEDIT \
15455 LIPO \
15456 OTOOL \
15457 OTOOL64 \
15458 shrext_cmds \
15459 export_dynamic_flag_spec \
15460 whole_archive_flag_spec \
15461 compiler_needs_object \
15462 with_gnu_ld \
15463 allow_undefined_flag \
15464 no_undefined_flag \
15465 hardcode_libdir_flag_spec \
15466 hardcode_libdir_separator \
15467 exclude_expsyms \
15468 include_expsyms \
15469 file_list_spec \
15470 variables_saved_for_relink \
15471 libname_spec \
15472 library_names_spec \
15473 soname_spec \
15474 install_override_mode \
15475 finish_eval \
15476 old_striplib \
15477 striplib; do
15478 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15479 *[\\\\\\\`\\"\\\$]*)
15480 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15481 ;;
15482 *)
15483 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15484 ;;
15485 esac
15486 done
15487
15488 # Double-quote double-evaled strings.
15489 for var in reload_cmds \
15490 old_postinstall_cmds \
15491 old_postuninstall_cmds \
15492 old_archive_cmds \
15493 extract_expsyms_cmds \
15494 old_archive_from_new_cmds \
15495 old_archive_from_expsyms_cmds \
15496 archive_cmds \
15497 archive_expsym_cmds \
15498 module_cmds \
15499 module_expsym_cmds \
15500 export_symbols_cmds \
15501 prelink_cmds \
15502 postlink_cmds \
15503 postinstall_cmds \
15504 postuninstall_cmds \
15505 finish_cmds \
15506 sys_lib_search_path_spec \
15507 configure_time_dlsearch_path \
15508 configure_time_lt_sys_library_path; do
15509 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15510 *[\\\\\\\`\\"\\\$]*)
15511 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15512 ;;
15513 *)
15514 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15515 ;;
15516 esac
15517 done
15518
15519 ac_aux_dir='$ac_aux_dir'
15520
15521 # See if we are running on zsh, and set the options that allow our
15522 # commands through without removal of \ escapes INIT.
15523 if test -n "\${ZSH_VERSION+set}"; then
15524 setopt NO_GLOB_SUBST
15525 fi
15526
15527
15528 PACKAGE='$PACKAGE'
15529 VERSION='$VERSION'
15530 RM='$RM'
15531 ofile='$ofile'
15532
15533
15534
15535
15536 _ACEOF
15537
15538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15539
15540 # Handling of arguments.
15541 for ac_config_target in $ac_config_targets
15542 do
15543 case $ac_config_target in
15544 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
15545 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15546 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15547 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15548 "libjpeg.pc") CONFIG_FILES="$CONFIG_FILES libjpeg.pc" ;;
15549
15550 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
15551 esac
15552 done
15553
15554
15555 # If the user did not use the arguments to specify the items to instantiate,
15556 # then the envvar interface is used. Set only those that are not.
15557 # We use the long form for the default assignment because of an extremely
15558 # bizarre bug on SunOS 4.1.3.
15559 if $ac_need_defaults; then
15560 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15561 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15562 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15563 fi
15564
15565 # Have a temporary directory for convenience. Make it in the build tree
15566 # simply because there is no reason against having it here, and in addition,
15567 # creating and moving files from /tmp can sometimes cause problems.
15568 # Hook for its removal unless debugging.
15569 # Note that there is a small window in which the directory will not be cleaned:
15570 # after its creation but before its name has been assigned to '$tmp'.
15571 $debug ||
15572 {
15573 tmp= ac_tmp=
15574 trap 'exit_status=$?
15575 : "${ac_tmp:=$tmp}"
15576 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15577 ' 0
15578 trap 'as_fn_exit 1' 1 2 13 15
15579 }
15580 # Create a (secure) tmp directory for tmp files.
15581
15582 {
15583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15584 test -d "$tmp"
15585 } ||
15586 {
15587 tmp=./conf$$-$RANDOM
15588 (umask 077 && mkdir "$tmp")
15589 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15590 ac_tmp=$tmp
15591
15592 # Set up the scripts for CONFIG_FILES section.
15593 # No need to generate them if there are no CONFIG_FILES.
15594 # This happens for instance with './config.status config.h'.
15595 if test -n "$CONFIG_FILES"; then
15596
15597
15598 ac_cr=`echo X | tr X '\015'`
15599 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15600 # But we know of no other shell where ac_cr would be empty at this
15601 # point, so we can use a bashism as a fallback.
15602 if test "x$ac_cr" = x; then
15603 eval ac_cr=\$\'\\r\'
15604 fi
15605 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15606 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15607 ac_cs_awk_cr='\\r'
15608 else
15609 ac_cs_awk_cr=$ac_cr
15610 fi
15611
15612 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15613 _ACEOF
15614
15615
15616 {
15617 echo "cat >conf$$subs.awk <<_ACEOF" &&
15618 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15619 echo "_ACEOF"
15620 } >conf$$subs.sh ||
15621 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15622 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15623 ac_delim='%!_!# '
15624 for ac_last_try in false false false false false :; do
15625 . ./conf$$subs.sh ||
15626 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15627
15628 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15629 if test $ac_delim_n = $ac_delim_num; then
15630 break
15631 elif $ac_last_try; then
15632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15633 else
15634 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15635 fi
15636 done
15637 rm -f conf$$subs.sh
15638
15639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15640 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15641 _ACEOF
15642 sed -n '
15643 h
15644 s/^/S["/; s/!.*/"]=/
15645 p
15646 g
15647 s/^[^!]*!//
15648 :repl
15649 t repl
15650 s/'"$ac_delim"'$//
15651 t delim
15652 :nl
15653 h
15654 s/\(.\{148\}\)..*/\1/
15655 t more1
15656 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15657 p
15658 n
15659 b repl
15660 :more1
15661 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15662 p
15663 g
15664 s/.\{148\}//
15665 t nl
15666 :delim
15667 h
15668 s/\(.\{148\}\)..*/\1/
15669 t more2
15670 s/["\\]/\\&/g; s/^/"/; s/$/"/
15671 p
15672 b
15673 :more2
15674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15675 p
15676 g
15677 s/.\{148\}//
15678 t delim
15679 ' <conf$$subs.awk | sed '
15680 /^[^""]/{
15681 N
15682 s/\n//
15683 }
15684 ' >>$CONFIG_STATUS || ac_write_fail=1
15685 rm -f conf$$subs.awk
15686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15687 _ACAWK
15688 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15689 for (key in S) S_is_set[key] = 1
15690 FS = ""
15691
15692 }
15693 {
15694 line = $ 0
15695 nfields = split(line, field, "@")
15696 substed = 0
15697 len = length(field[1])
15698 for (i = 2; i < nfields; i++) {
15699 key = field[i]
15700 keylen = length(key)
15701 if (S_is_set[key]) {
15702 value = S[key]
15703 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15704 len += length(value) + length(field[++i])
15705 substed = 1
15706 } else
15707 len += 1 + keylen
15708 }
15709
15710 print line
15711 }
15712
15713 _ACAWK
15714 _ACEOF
15715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15716 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15717 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15718 else
15719 cat
15720 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15721 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15722 _ACEOF
15723
15724 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15725 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15726 # trailing colons and then remove the whole line if VPATH becomes empty
15727 # (actually we leave an empty line to preserve line numbers).
15728 if test "x$srcdir" = x.; then
15729 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15730 h
15731 s///
15732 s/^/:/
15733 s/[ ]*$/:/
15734 s/:\$(srcdir):/:/g
15735 s/:\${srcdir}:/:/g
15736 s/:@srcdir@:/:/g
15737 s/^:*//
15738 s/:*$//
15739 x
15740 s/\(=[ ]*\).*/\1/
15741 G
15742 s/\n//
15743 s/^[^=]*=[ ]*$//
15744 }'
15745 fi
15746
15747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748 fi # test -n "$CONFIG_FILES"
15749
15750 # Set up the scripts for CONFIG_HEADERS section.
15751 # No need to generate them if there are no CONFIG_HEADERS.
15752 # This happens for instance with './config.status Makefile'.
15753 if test -n "$CONFIG_HEADERS"; then
15754 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15755 BEGIN {
15756 _ACEOF
15757
15758 # Transform confdefs.h into an awk script 'defines.awk', embedded as
15759 # here-document in config.status, that substitutes the proper values into
15760 # config.h.in to produce config.h.
15761
15762 # Create a delimiter string that does not exist in confdefs.h, to ease
15763 # handling of long lines.
15764 ac_delim='%!_!# '
15765 for ac_last_try in false false :; do
15766 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15767 if test -z "$ac_tt"; then
15768 break
15769 elif $ac_last_try; then
15770 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15771 else
15772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15773 fi
15774 done
15775
15776 # For the awk script, D is an array of macro values keyed by name,
15777 # likewise P contains macro parameters if any. Preserve backslash
15778 # newline sequences.
15779
15780 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15781 sed -n '
15782 s/.\{148\}/&'"$ac_delim"'/g
15783 t rset
15784 :rset
15785 s/^[ ]*#[ ]*define[ ][ ]*/ /
15786 t def
15787 d
15788 :def
15789 s/\\$//
15790 t bsnl
15791 s/["\\]/\\&/g
15792 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15793 D["\1"]=" \3"/p
15794 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15795 d
15796 :bsnl
15797 s/["\\]/\\&/g
15798 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15799 D["\1"]=" \3\\\\\\n"\\/p
15800 t cont
15801 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15802 t cont
15803 d
15804 :cont
15805 n
15806 s/.\{148\}/&'"$ac_delim"'/g
15807 t clear
15808 :clear
15809 s/\\$//
15810 t bsnlc
15811 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15812 d
15813 :bsnlc
15814 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15815 b cont
15816 ' <confdefs.h | sed '
15817 s/'"$ac_delim"'/"\\\
15818 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15819
15820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15821 for (key in D) D_is_set[key] = 1
15822 FS = ""
15823 }
15824 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15825 line = \$ 0
15826 split(line, arg, " ")
15827 if (arg[1] == "#") {
15828 defundef = arg[2]
15829 mac1 = arg[3]
15830 } else {
15831 defundef = substr(arg[1], 2)
15832 mac1 = arg[2]
15833 }
15834 split(mac1, mac2, "(") #)
15835 macro = mac2[1]
15836 prefix = substr(line, 1, index(line, defundef) - 1)
15837 if (D_is_set[macro]) {
15838 # Preserve the white space surrounding the "#".
15839 print prefix "define", macro P[macro] D[macro]
15840 next
15841 } else {
15842 # Replace #undef with comments. This is necessary, for example,
15843 # in the case of _POSIX_SOURCE, which is predefined and required
15844 # on some systems where configure will not decide to define it.
15845 if (defundef == "undef") {
15846 print "/*", prefix defundef, macro, "*/"
15847 next
15848 }
15849 }
15850 }
15851 { print }
15852 _ACAWK
15853 _ACEOF
15854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15855 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15856 fi # test -n "$CONFIG_HEADERS"
15857
15858
15859 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15860 shift
15861 for ac_tag
15862 do
15863 case $ac_tag in
15864 :[FHLC]) ac_mode=$ac_tag; continue;;
15865 esac
15866 case $ac_mode$ac_tag in
15867 :[FHL]*:*);;
15868 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
15869 :[FH]-) ac_tag=-:-;;
15870 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15871 esac
15872 ac_save_IFS=$IFS
15873 IFS=:
15874 set x $ac_tag
15875 IFS=$ac_save_IFS
15876 shift
15877 ac_file=$1
15878 shift
15879
15880 case $ac_mode in
15881 :L) ac_source=$1;;
15882 :[FH])
15883 ac_file_inputs=
15884 for ac_f
15885 do
15886 case $ac_f in
15887 -) ac_f="$ac_tmp/stdin";;
15888 *) # Look for the file first in the build tree, then in the source tree
15889 # (if the path is not absolute). The absolute path cannot be DOS-style,
15890 # because $ac_f cannot contain ':'.
15891 test -f "$ac_f" ||
15892 case $ac_f in
15893 [\\/$]*) false;;
15894 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15895 esac ||
15896 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
15897 esac
15898 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15899 as_fn_append ac_file_inputs " '$ac_f'"
15900 done
15901
15902 # Let's still pretend it is 'configure' which instantiates (i.e., don't
15903 # use $as_me), people would be surprised to read:
15904 # /* config.h. Generated by config.status. */
15905 configure_input='Generated from '`
15906 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15907 `' by configure.'
15908 if test x"$ac_file" != x-; then
15909 configure_input="$ac_file. $configure_input"
15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15911 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15912 fi
15913 # Neutralize special characters interpreted by sed in replacement strings.
15914 case $configure_input in #(
15915 *\&* | *\|* | *\\* )
15916 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15917 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15918 *) ac_sed_conf_input=$configure_input;;
15919 esac
15920
15921 case $ac_tag in
15922 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15924 esac
15925 ;;
15926 esac
15927
15928 ac_dir=`$as_dirname -- "$ac_file" ||
15929 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15930 X"$ac_file" : 'X\(//\)[^/]' \| \
15931 X"$ac_file" : 'X\(//\)$' \| \
15932 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15933 printf "%s\n" X"$ac_file" |
15934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15935 s//\1/
15936 q
15937 }
15938 /^X\(\/\/\)[^/].*/{
15939 s//\1/
15940 q
15941 }
15942 /^X\(\/\/\)$/{
15943 s//\1/
15944 q
15945 }
15946 /^X\(\/\).*/{
15947 s//\1/
15948 q
15949 }
15950 s/.*/./; q'`
15951 as_dir="$ac_dir"; as_fn_mkdir_p
15952 ac_builddir=.
15953
15954 case "$ac_dir" in
15955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15956 *)
15957 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15958 # A ".." for each directory in $ac_dir_suffix.
15959 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15960 case $ac_top_builddir_sub in
15961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15963 esac ;;
15964 esac
15965 ac_abs_top_builddir=$ac_pwd
15966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15967 # for backward compatibility:
15968 ac_top_builddir=$ac_top_build_prefix
15969
15970 case $srcdir in
15971 .) # We are building in place.
15972 ac_srcdir=.
15973 ac_top_srcdir=$ac_top_builddir_sub
15974 ac_abs_top_srcdir=$ac_pwd ;;
15975 [\\/]* | ?:[\\/]* ) # Absolute name.
15976 ac_srcdir=$srcdir$ac_dir_suffix;
15977 ac_top_srcdir=$srcdir
15978 ac_abs_top_srcdir=$srcdir ;;
15979 *) # Relative name.
15980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15981 ac_top_srcdir=$ac_top_build_prefix$srcdir
15982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15983 esac
15984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15985
15986
15987 case $ac_mode in
15988 :F)
15989 #
15990 # CONFIG_FILE
15991 #
15992
15993 case $INSTALL in
15994 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15995 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15996 esac
15997 ac_MKDIR_P=$MKDIR_P
15998 case $MKDIR_P in
15999 [\\/$]* | ?:[\\/]* ) ;;
16000 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16001 esac
16002 _ACEOF
16003
16004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16005 # If the template does not know about datarootdir, expand it.
16006 # FIXME: This hack should be removed a few years after 2.60.
16007 ac_datarootdir_hack=; ac_datarootdir_seen=
16008 ac_sed_dataroot='
16009 /datarootdir/ {
16010 p
16011 q
16012 }
16013 /@datadir@/p
16014 /@docdir@/p
16015 /@infodir@/p
16016 /@localedir@/p
16017 /@mandir@/p'
16018 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16019 *datarootdir*) ac_datarootdir_seen=yes;;
16020 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16022 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16023 _ACEOF
16024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16025 ac_datarootdir_hack='
16026 s&@datadir@&$datadir&g
16027 s&@docdir@&$docdir&g
16028 s&@infodir@&$infodir&g
16029 s&@localedir@&$localedir&g
16030 s&@mandir@&$mandir&g
16031 s&\\\${datarootdir}&$datarootdir&g' ;;
16032 esac
16033 _ACEOF
16034
16035 # Neutralize VPATH when '$srcdir' = '.'.
16036 # Shell code in configure.ac might set extrasub.
16037 # FIXME: do we really want to maintain this feature?
16038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16039 ac_sed_extra="$ac_vpsub
16040 $extrasub
16041 _ACEOF
16042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16043 :t
16044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16045 s|@configure_input@|$ac_sed_conf_input|;t t
16046 s&@top_builddir@&$ac_top_builddir_sub&;t t
16047 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16048 s&@srcdir@&$ac_srcdir&;t t
16049 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16050 s&@top_srcdir@&$ac_top_srcdir&;t t
16051 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16052 s&@builddir@&$ac_builddir&;t t
16053 s&@abs_builddir@&$ac_abs_builddir&;t t
16054 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16055 s&@INSTALL@&$ac_INSTALL&;t t
16056 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16057 $ac_datarootdir_hack
16058 "
16059 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16060 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16061
16062 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16063 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16064 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16065 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16067 which seems to be undefined. Please make sure it is defined" >&5
16068 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16069 which seems to be undefined. Please make sure it is defined" >&2;}
16070
16071 rm -f "$ac_tmp/stdin"
16072 case $ac_file in
16073 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16074 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16075 esac \
16076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16077 ;;
16078 :H)
16079 #
16080 # CONFIG_HEADER
16081 #
16082 if test x"$ac_file" != x-; then
16083 {
16084 printf "%s\n" "/* $configure_input */" >&1 \
16085 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16086 } >"$ac_tmp/config.h" \
16087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16088 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16090 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16091 else
16092 rm -f "$ac_file"
16093 mv "$ac_tmp/config.h" "$ac_file" \
16094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16095 fi
16096 else
16097 printf "%s\n" "/* $configure_input */" >&1 \
16098 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16099 || as_fn_error $? "could not create -" "$LINENO" 5
16100 fi
16101 # Compute "$ac_file"'s index in $config_headers.
16102 _am_arg="$ac_file"
16103 _am_stamp_count=1
16104 for _am_header in $config_headers :; do
16105 case $_am_header in
16106 $_am_arg | $_am_arg:* )
16107 break ;;
16108 * )
16109 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16110 esac
16111 done
16112 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16113 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16114 X"$_am_arg" : 'X\(//\)[^/]' \| \
16115 X"$_am_arg" : 'X\(//\)$' \| \
16116 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16117 printf "%s\n" X"$_am_arg" |
16118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16119 s//\1/
16120 q
16121 }
16122 /^X\(\/\/\)[^/].*/{
16123 s//\1/
16124 q
16125 }
16126 /^X\(\/\/\)$/{
16127 s//\1/
16128 q
16129 }
16130 /^X\(\/\).*/{
16131 s//\1/
16132 q
16133 }
16134 s/.*/./; q'`/stamp-h$_am_stamp_count
16135 ;;
16136
16137 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16138 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16139 ;;
16140 esac
16141
16142
16143 case $ac_file$ac_mode in
16144 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16145 # Older Autoconf quotes --file arguments for eval, but not when files
16146 # are listed without --file. Let's play safe and only enable the eval
16147 # if we detect the quoting.
16148 # TODO: see whether this extra hack can be removed once we start
16149 # requiring Autoconf 2.70 or later.
16150 case $CONFIG_FILES in #(
16151 *\'*) :
16152 eval set x "$CONFIG_FILES" ;; #(
16153 *) :
16154 set x $CONFIG_FILES ;; #(
16155 *) :
16156 ;;
16157 esac
16158 shift
16159 # Used to flag and report bootstrapping failures.
16160 am_rc=0
16161 for am_mf
16162 do
16163 # Strip MF so we end up with the name of the file.
16164 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16165 # Check whether this is an Automake generated Makefile which includes
16166 # dependency-tracking related rules and includes.
16167 # Grep'ing the whole file directly is not great: AIX grep has a line
16168 # limit of 2048, but all sed's we know have understand at least 4000.
16169 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16170 || continue
16171 am_dirpart=`$as_dirname -- "$am_mf" ||
16172 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16173 X"$am_mf" : 'X\(//\)[^/]' \| \
16174 X"$am_mf" : 'X\(//\)$' \| \
16175 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16176 printf "%s\n" X"$am_mf" |
16177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16178 s//\1/
16179 q
16180 }
16181 /^X\(\/\/\)[^/].*/{
16182 s//\1/
16183 q
16184 }
16185 /^X\(\/\/\)$/{
16186 s//\1/
16187 q
16188 }
16189 /^X\(\/\).*/{
16190 s//\1/
16191 q
16192 }
16193 s/.*/./; q'`
16194 am_filepart=`$as_basename -- "$am_mf" ||
16195 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16196 X"$am_mf" : 'X\(//\)$' \| \
16197 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16198 printf "%s\n" X/"$am_mf" |
16199 sed '/^.*\/\([^/][^/]*\)\/*$/{
16200 s//\1/
16201 q
16202 }
16203 /^X\/\(\/\/\)$/{
16204 s//\1/
16205 q
16206 }
16207 /^X\/\(\/\).*/{
16208 s//\1/
16209 q
16210 }
16211 s/.*/./; q'`
16212 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16213 && sed -e '/# am--include-marker/d' "$am_filepart" \
16214 | $MAKE -f - am--depfiles" >&5
16215 (cd "$am_dirpart" \
16216 && sed -e '/# am--include-marker/d' "$am_filepart" \
16217 | $MAKE -f - am--depfiles) >&5 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } || am_rc=$?
16221 done
16222 if test $am_rc -ne 0; then
16223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16224 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16225 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16226 for automatic dependency tracking. If GNU make was not used, consider
16227 re-running the configure script with MAKE=\"gmake\" (or whatever is
16228 necessary). You can also try re-running configure with the
16229 '--disable-dependency-tracking' option to at least be able to build
16230 the package (albeit without support for automatic dependency tracking).
16231 See 'config.log' for more details" "$LINENO" 5; }
16232 fi
16233 { am_dirpart=; unset am_dirpart;}
16234 { am_filepart=; unset am_filepart;}
16235 { am_mf=; unset am_mf;}
16236 { am_rc=; unset am_rc;}
16237 rm -f conftest-deps.mk
16238 }
16239 ;;
16240 "libtool":C)
16241
16242 # See if we are running on zsh, and set the options that allow our
16243 # commands through without removal of \ escapes.
16244 if test -n "${ZSH_VERSION+set}"; then
16245 setopt NO_GLOB_SUBST
16246 fi
16247
16248 cfgfile=${ofile}T
16249 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16250 $RM "$cfgfile"
16251
16252 cat <<_LT_EOF >> "$cfgfile"
16253 #! $SHELL
16254 # Generated automatically by $as_me ($PACKAGE) $VERSION
16255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16256 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16257
16258 # Provide generalized library-building support services.
16259 # Written by Gordon Matzigkeit, 1996
16260
16261 # Copyright (C) 2014 Free Software Foundation, Inc.
16262 # This is free software; see the source for copying conditions. There is NO
16263 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16264
16265 # GNU Libtool is free software; you can redistribute it and/or modify
16266 # it under the terms of the GNU General Public License as published by
16267 # the Free Software Foundation; either version 2 of of the License, or
16268 # (at your option) any later version.
16269 #
16270 # As a special exception to the GNU General Public License, if you
16271 # distribute this file as part of a program or library that is built
16272 # using GNU Libtool, you may include this file under the same
16273 # distribution terms that you use for the rest of that program.
16274 #
16275 # GNU Libtool is distributed in the hope that it will be useful, but
16276 # WITHOUT ANY WARRANTY; without even the implied warranty of
16277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16278 # GNU General Public License for more details.
16279 #
16280 # You should have received a copy of the GNU General Public License
16281 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16282
16283
16284 # The names of the tagged configurations supported by this script.
16285 available_tags=''
16286
16287 # Configured defaults for sys_lib_dlsearch_path munging.
16288 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16289
16290 # ### BEGIN LIBTOOL CONFIG
16291
16292 # Which release of libtool.m4 was used?
16293 macro_version=$macro_version
16294 macro_revision=$macro_revision
16295
16296 # Assembler program.
16297 AS=$lt_AS
16298
16299 # DLL creation program.
16300 DLLTOOL=$lt_DLLTOOL
16301
16302 # Object dumper program.
16303 OBJDUMP=$lt_OBJDUMP
16304
16305 # Whether or not to build shared libraries.
16306 build_libtool_libs=$enable_shared
16307
16308 # Whether or not to build static libraries.
16309 build_old_libs=$enable_static
16310
16311 # What type of objects to build.
16312 pic_mode=$pic_mode
16313
16314 # Whether or not to optimize for fast installation.
16315 fast_install=$enable_fast_install
16316
16317 # Shared archive member basename,for filename based shared library versioning on AIX.
16318 shared_archive_member_spec=$shared_archive_member_spec
16319
16320 # Shell to use when invoking shell scripts.
16321 SHELL=$lt_SHELL
16322
16323 # An echo program that protects backslashes.
16324 ECHO=$lt_ECHO
16325
16326 # The PATH separator for the build system.
16327 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16328
16329 # The host system.
16330 host_alias=$host_alias
16331 host=$host
16332 host_os=$host_os
16333
16334 # The build system.
16335 build_alias=$build_alias
16336 build=$build
16337 build_os=$build_os
16338
16339 # A sed program that does not truncate output.
16340 SED=$lt_SED
16341
16342 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16343 Xsed="\$SED -e 1s/^X//"
16344
16345 # A grep program that handles long lines.
16346 GREP=$lt_GREP
16347
16348 # An ERE matcher.
16349 EGREP=$lt_EGREP
16350
16351 # A literal string matcher.
16352 FGREP=$lt_FGREP
16353
16354 # A BSD- or MS-compatible name lister.
16355 NM=$lt_NM
16356
16357 # Whether we need soft or hard links.
16358 LN_S=$lt_LN_S
16359
16360 # What is the maximum length of a command?
16361 max_cmd_len=$max_cmd_len
16362
16363 # Object file suffix (normally "o").
16364 objext=$ac_objext
16365
16366 # Executable file suffix (normally "").
16367 exeext=$exeext
16368
16369 # whether the shell understands "unset".
16370 lt_unset=$lt_unset
16371
16372 # turn spaces into newlines.
16373 SP2NL=$lt_lt_SP2NL
16374
16375 # turn newlines into spaces.
16376 NL2SP=$lt_lt_NL2SP
16377
16378 # convert \$build file names to \$host format.
16379 to_host_file_cmd=$lt_cv_to_host_file_cmd
16380
16381 # convert \$build files to toolchain format.
16382 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16383
16384 # A file(cmd) program that detects file types.
16385 FILECMD=$lt_FILECMD
16386
16387 # Method to check whether dependent libraries are shared objects.
16388 deplibs_check_method=$lt_deplibs_check_method
16389
16390 # Command to use when deplibs_check_method = "file_magic".
16391 file_magic_cmd=$lt_file_magic_cmd
16392
16393 # How to find potential files when deplibs_check_method = "file_magic".
16394 file_magic_glob=$lt_file_magic_glob
16395
16396 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16397 want_nocaseglob=$lt_want_nocaseglob
16398
16399 # Command to associate shared and link libraries.
16400 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16401
16402 # The archiver.
16403 AR=$lt_AR
16404
16405 # Flags to create an archive (by configure).
16406 lt_ar_flags=$lt_ar_flags
16407
16408 # Flags to create an archive.
16409 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16410
16411 # How to feed a file listing to the archiver.
16412 archiver_list_spec=$lt_archiver_list_spec
16413
16414 # A symbol stripping program.
16415 STRIP=$lt_STRIP
16416
16417 # Commands used to install an old-style archive.
16418 RANLIB=$lt_RANLIB
16419 old_postinstall_cmds=$lt_old_postinstall_cmds
16420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16421
16422 # Whether to use a lock for old archive extraction.
16423 lock_old_archive_extraction=$lock_old_archive_extraction
16424
16425 # A C compiler.
16426 LTCC=$lt_CC
16427
16428 # LTCC compiler flags.
16429 LTCFLAGS=$lt_CFLAGS
16430
16431 # Take the output of nm and produce a listing of raw symbols and C names.
16432 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16433
16434 # Transform the output of nm in a proper C declaration.
16435 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16436
16437 # Transform the output of nm into a list of symbols to manually relocate.
16438 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16439
16440 # Transform the output of nm in a C name address pair.
16441 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16442
16443 # Transform the output of nm in a C name address pair when lib prefix is needed.
16444 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16445
16446 # The name lister interface.
16447 nm_interface=$lt_lt_cv_nm_interface
16448
16449 # Specify filename containing input files for \$NM.
16450 nm_file_list_spec=$lt_nm_file_list_spec
16451
16452 # The root where to search for dependent libraries,and where our libraries should be installed.
16453 lt_sysroot=$lt_sysroot
16454
16455 # Command to truncate a binary pipe.
16456 lt_truncate_bin=$lt_lt_cv_truncate_bin
16457
16458 # The name of the directory that contains temporary libtool files.
16459 objdir=$objdir
16460
16461 # Used to examine libraries when file_magic_cmd begins with "file".
16462 MAGIC_CMD=$MAGIC_CMD
16463
16464 # Must we lock files when doing compilation?
16465 need_locks=$lt_need_locks
16466
16467 # Manifest tool.
16468 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16469
16470 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16471 DSYMUTIL=$lt_DSYMUTIL
16472
16473 # Tool to change global to local symbols on Mac OS X.
16474 NMEDIT=$lt_NMEDIT
16475
16476 # Tool to manipulate fat objects and archives on Mac OS X.
16477 LIPO=$lt_LIPO
16478
16479 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16480 OTOOL=$lt_OTOOL
16481
16482 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16483 OTOOL64=$lt_OTOOL64
16484
16485 # Old archive suffix (normally "a").
16486 libext=$libext
16487
16488 # Shared library suffix (normally ".so").
16489 shrext_cmds=$lt_shrext_cmds
16490
16491 # The commands to extract the exported symbol list from a shared archive.
16492 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16493
16494 # Variables whose values should be saved in libtool wrapper scripts and
16495 # restored at link time.
16496 variables_saved_for_relink=$lt_variables_saved_for_relink
16497
16498 # Do we need the "lib" prefix for modules?
16499 need_lib_prefix=$need_lib_prefix
16500
16501 # Do we need a version for libraries?
16502 need_version=$need_version
16503
16504 # Library versioning type.
16505 version_type=$version_type
16506
16507 # Shared library runtime path variable.
16508 runpath_var=$runpath_var
16509
16510 # Shared library path variable.
16511 shlibpath_var=$shlibpath_var
16512
16513 # Is shlibpath searched before the hard-coded library search path?
16514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16515
16516 # Format of library name prefix.
16517 libname_spec=$lt_libname_spec
16518
16519 # List of archive names. First name is the real one, the rest are links.
16520 # The last name is the one that the linker finds with -lNAME
16521 library_names_spec=$lt_library_names_spec
16522
16523 # The coded name of the library, if different from the real name.
16524 soname_spec=$lt_soname_spec
16525
16526 # Permission mode override for installation of shared libraries.
16527 install_override_mode=$lt_install_override_mode
16528
16529 # Command to use after installation of a shared archive.
16530 postinstall_cmds=$lt_postinstall_cmds
16531
16532 # Command to use after uninstallation of a shared archive.
16533 postuninstall_cmds=$lt_postuninstall_cmds
16534
16535 # Commands used to finish a libtool library installation in a directory.
16536 finish_cmds=$lt_finish_cmds
16537
16538 # As "finish_cmds", except a single script fragment to be evaled but
16539 # not shown.
16540 finish_eval=$lt_finish_eval
16541
16542 # Whether we should hardcode library paths into libraries.
16543 hardcode_into_libs=$hardcode_into_libs
16544
16545 # Compile-time system search path for libraries.
16546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16547
16548 # Detected run-time system search path for libraries.
16549 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16550
16551 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16552 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16553
16554 # Whether dlopen is supported.
16555 dlopen_support=$enable_dlopen
16556
16557 # Whether dlopen of programs is supported.
16558 dlopen_self=$enable_dlopen_self
16559
16560 # Whether dlopen of statically linked programs is supported.
16561 dlopen_self_static=$enable_dlopen_self_static
16562
16563 # Commands to strip libraries.
16564 old_striplib=$lt_old_striplib
16565 striplib=$lt_striplib
16566
16567
16568 # The linker used to build libraries.
16569 LD=$lt_LD
16570
16571 # How to create reloadable object files.
16572 reload_flag=$lt_reload_flag
16573 reload_cmds=$lt_reload_cmds
16574
16575 # Commands used to build an old-style archive.
16576 old_archive_cmds=$lt_old_archive_cmds
16577
16578 # A language specific compiler.
16579 CC=$lt_compiler
16580
16581 # Is the compiler the GNU compiler?
16582 with_gcc=$GCC
16583
16584 # Compiler flag to turn off builtin functions.
16585 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16586
16587 # Additional compiler flags for building library objects.
16588 pic_flag=$lt_lt_prog_compiler_pic
16589
16590 # How to pass a linker flag through the compiler.
16591 wl=$lt_lt_prog_compiler_wl
16592
16593 # Compiler flag to prevent dynamic linking.
16594 link_static_flag=$lt_lt_prog_compiler_static
16595
16596 # Does compiler simultaneously support -c and -o options?
16597 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16598
16599 # Whether or not to add -lc for building shared libraries.
16600 build_libtool_need_lc=$archive_cmds_need_lc
16601
16602 # Whether or not to disallow shared libs when runtime libs are static.
16603 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16604
16605 # Compiler flag to allow reflexive dlopens.
16606 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16607
16608 # Compiler flag to generate shared objects directly from archives.
16609 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16610
16611 # Whether the compiler copes with passing no objects directly.
16612 compiler_needs_object=$lt_compiler_needs_object
16613
16614 # Create an old-style archive from a shared archive.
16615 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16616
16617 # Create a temporary old-style archive to link instead of a shared archive.
16618 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16619
16620 # Commands used to build a shared archive.
16621 archive_cmds=$lt_archive_cmds
16622 archive_expsym_cmds=$lt_archive_expsym_cmds
16623
16624 # Commands used to build a loadable module if different from building
16625 # a shared archive.
16626 module_cmds=$lt_module_cmds
16627 module_expsym_cmds=$lt_module_expsym_cmds
16628
16629 # Whether we are building with GNU ld or not.
16630 with_gnu_ld=$lt_with_gnu_ld
16631
16632 # Flag that allows shared libraries with undefined symbols to be built.
16633 allow_undefined_flag=$lt_allow_undefined_flag
16634
16635 # Flag that enforces no undefined symbols.
16636 no_undefined_flag=$lt_no_undefined_flag
16637
16638 # Flag to hardcode \$libdir into a binary during linking.
16639 # This must work even if \$libdir does not exist
16640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16641
16642 # Whether we need a single "-rpath" flag with a separated argument.
16643 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16644
16645 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16646 # DIR into the resulting binary.
16647 hardcode_direct=$hardcode_direct
16648
16649 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16650 # DIR into the resulting binary and the resulting library dependency is
16651 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16652 # library is relocated.
16653 hardcode_direct_absolute=$hardcode_direct_absolute
16654
16655 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16656 # into the resulting binary.
16657 hardcode_minus_L=$hardcode_minus_L
16658
16659 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16660 # into the resulting binary.
16661 hardcode_shlibpath_var=$hardcode_shlibpath_var
16662
16663 # Set to "yes" if building a shared library automatically hardcodes DIR
16664 # into the library and all subsequent libraries and executables linked
16665 # against it.
16666 hardcode_automatic=$hardcode_automatic
16667
16668 # Set to yes if linker adds runtime paths of dependent libraries
16669 # to runtime path list.
16670 inherit_rpath=$inherit_rpath
16671
16672 # Whether libtool must link a program against all its dependency libraries.
16673 link_all_deplibs=$link_all_deplibs
16674
16675 # Set to "yes" if exported symbols are required.
16676 always_export_symbols=$always_export_symbols
16677
16678 # The commands to list exported symbols.
16679 export_symbols_cmds=$lt_export_symbols_cmds
16680
16681 # Symbols that should not be listed in the preloaded symbols.
16682 exclude_expsyms=$lt_exclude_expsyms
16683
16684 # Symbols that must always be exported.
16685 include_expsyms=$lt_include_expsyms
16686
16687 # Commands necessary for linking programs (against libraries) with templates.
16688 prelink_cmds=$lt_prelink_cmds
16689
16690 # Commands necessary for finishing linking programs.
16691 postlink_cmds=$lt_postlink_cmds
16692
16693 # Specify filename containing input files.
16694 file_list_spec=$lt_file_list_spec
16695
16696 # How to hardcode a shared library path into an executable.
16697 hardcode_action=$hardcode_action
16698
16699 # ### END LIBTOOL CONFIG
16700
16701 _LT_EOF
16702
16703 cat <<'_LT_EOF' >> "$cfgfile"
16704
16705 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16706
16707 # func_munge_path_list VARIABLE PATH
16708 # -----------------------------------
16709 # VARIABLE is name of variable containing _space_ separated list of
16710 # directories to be munged by the contents of PATH, which is string
16711 # having a format:
16712 # "DIR[:DIR]:"
16713 # string "DIR[ DIR]" will be prepended to VARIABLE
16714 # ":DIR[:DIR]"
16715 # string "DIR[ DIR]" will be appended to VARIABLE
16716 # "DIRP[:DIRP]::[DIRA:]DIRA"
16717 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16718 # "DIRA[ DIRA]" will be appended to VARIABLE
16719 # "DIR[:DIR]"
16720 # VARIABLE will be replaced by "DIR[ DIR]"
16721 func_munge_path_list ()
16722 {
16723 case x$2 in
16724 x)
16725 ;;
16726 *:)
16727 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16728 ;;
16729 x:*)
16730 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16731 ;;
16732 *::*)
16733 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16734 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16735 ;;
16736 *)
16737 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16738 ;;
16739 esac
16740 }
16741
16742
16743 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16744 func_cc_basename ()
16745 {
16746 for cc_temp in $*""; do
16747 case $cc_temp in
16748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16750 \-*) ;;
16751 *) break;;
16752 esac
16753 done
16754 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16755 }
16756
16757
16758 # ### END FUNCTIONS SHARED WITH CONFIGURE
16759
16760 _LT_EOF
16761
16762 case $host_os in
16763 aix3*)
16764 cat <<\_LT_EOF >> "$cfgfile"
16765 # AIX sometimes has problems with the GCC collect2 program. For some
16766 # reason, if we set the COLLECT_NAMES environment variable, the problems
16767 # vanish in a puff of smoke.
16768 if test set != "${COLLECT_NAMES+set}"; then
16769 COLLECT_NAMES=
16770 export COLLECT_NAMES
16771 fi
16772 _LT_EOF
16773 ;;
16774 esac
16775
16776
16777
16778 ltmain=$ac_aux_dir/ltmain.sh
16779
16780
16781 # We use sed instead of cat because bash on DJGPP gets confused if
16782 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16783 # text mode, it properly converts lines to CR/LF. This bash problem
16784 # is reportedly fixed, but why not run on old versions too?
16785 $SED '$q' "$ltmain" >> "$cfgfile" \
16786 || (rm -f "$cfgfile"; exit 1)
16787
16788 mv -f "$cfgfile" "$ofile" ||
16789 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16790 chmod +x "$ofile"
16791
16792 ;;
16793
16794 esac
16795 done # for ac_tag
16796
16797
16798 as_fn_exit 0
16799 _ACEOF
16800 ac_clean_files=$ac_clean_files_save
16801
16802 test $ac_write_fail = 0 ||
16803 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16804
16805
16806 # configure is writing to config.log, and then calls config.status.
16807 # config.status does its own redirection, appending to config.log.
16808 # Unfortunately, on DOS this fails, as config.log is still kept open
16809 # by configure, so config.status won't be able to write to it; its
16810 # output is simply discarded. So we exec the FD to /dev/null,
16811 # effectively closing config.log, so it can be properly (re)opened and
16812 # appended to by config.status. When coming back to configure, we
16813 # need to make the FD available again.
16814 if test "$no_create" != yes; then
16815 ac_cs_success=:
16816 ac_config_status_args=
16817 test "$silent" = yes &&
16818 ac_config_status_args="$ac_config_status_args --quiet"
16819 exec 5>/dev/null
16820 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16821 exec 5>>config.log
16822 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16823 # would make configure fail if this is the last instruction.
16824 $ac_cs_success || as_fn_exit 1
16825 fi
16826 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16828 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16829 fi
16830
16831