Debian Codegraph @

matio-1.5.30/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for MATIO 1.5.30.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
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 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system,
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 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='MATIO'
623 PACKAGE_TARNAME='matio'
624 PACKAGE_VERSION='1.5.30'
625 PACKAGE_STRING='MATIO 1.5.30'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='https://sourceforge.net/projects/matio'
628
629 ac_unique_file="src/matio.h"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 AUTOTEST
667 AUTOM4TE
668 IS_WIN32_FALSE
669 IS_WIN32_TRUE
670 SUN_FALSE
671 SUN_TRUE
672 WINNT_FALSE
673 WINNT_TRUE
674 LINUX_FALSE
675 LINUX_TRUE
676 EXTENDED_SPARSE_FALSE
677 EXTENDED_SPARSE_TRUE
678 MAT73_FALSE
679 MAT73_TRUE
680 HAVE_HDF5_FALSE
681 HAVE_HDF5_TRUE
682 HDF5_REQUIRES_PRIVATE
683 HDF5_CFLAGS
684 HDF5_LIBS
685 HAVE_ZLIB_FALSE
686 HAVE_ZLIB_TRUE
687 ZLIB_REQUIRES_PRIVATE
688 ZLIB_CFLAGS
689 ZLIB_LIBS
690 MATLABEXE
691 HAVE_INT64
692 HAVE_UINT64
693 SIZEOF_VOID_P
694 SIZEOF_SIZE_T
695 SIZEOF_INT
696 NEED_GETOPT_FALSE
697 NEED_GETOPT_TRUE
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 ac_ct_AR
707 AR
708 DLLTOOL
709 OBJDUMP
710 FILECMD
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 EGREP
718 GREP
719 SED
720 LIBTOOL
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 LT_LDFLAGS
729 LT_CFLAGS
730 FCLDFLAGS
731 PACKAGE_RELEASE_DATE
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 MAINT
741 MAINTAINER_MODE_FALSE
742 MAINTAINER_MODE_TRUE
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 CSCOPE
748 ETAGS
749 CTAGS
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 runstatedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_silent_rules
816 enable_maintainer_mode
817 enable_coverage
818 enable_debug
819 enable_profile
820 with_libdir_suffix
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_largefile
830 with_matlab
831 with_zlib
832 with_hdf5
833 enable_mat73
834 with_default_file_ver
835 enable_extended_sparse
836 '
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 FCLDFLAGS
841 LT_CFLAGS
842 LT_LDFLAGS
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 LT_SYS_LIBRARY_PATH'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 runstatedir='${localstatedir}/run'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: \`$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: \`$ac_useropt'"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -runstatedir | --runstatedir | --runstatedi | --runstated \
1139 | --runstate | --runstat | --runsta | --runst | --runs \
1140 | --run | --ru | --r)
1141 ac_prev=runstatedir ;;
1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144 | --run=* | --ru=* | --r=*)
1145 runstatedir=$ac_optarg ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: \`$ac_useropt'"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: \`$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir runstatedir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 printf "%s\n" X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures MATIO 1.5.30 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/matio]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of MATIO 1.5.30:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
1481 --enable-coverage Enable coverage testing
1482 --enable-debug=yes Turn on debugging
1483 --enable-profile=yes Turn on profile
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --disable-largefile omit support for large files
1490 --enable-mat73=yes Enable MAT v7.3 file support
1491 --enable-extended-sparse=yes
1492 Enable extended sparse matrix data types not
1493 supported in Matlab
1494
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-libdir-suffix=suffix
1499 Suffix to apply to library directories
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-aix-soname=aix|svr4|both
1503 shared library versioning (aka "SONAME") variant to
1504 provide on AIX, [default=aix].
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1507 compiler's sysroot if not specified).
1508 --with-matlab=DIR Directory with 'matlab' program
1509 --with-zlib=DIR Prefix where zlib Library is installed
1510 --with-hdf5=DIR Prefix where HDF5 library is installed
1511 --with-default-file-ver=version
1512 Default MAT file version (4,5,7.3)
1513
1514 Some influential environment variables:
1515 FCLDFLAGS Fortran compiler-specific flags at link time
1516 LT_CFLAGS C compiler flags passed to libtool in compile mode
1517 LT_LDFLAGS Flags passed to libtool in link mode
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 LT_SYS_LIBRARY_PATH
1526 User-defined run-time library search path.
1527
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1530
1531 Report bugs to <[email protected]>.
1532 MATIO home page: <https://sourceforge.net/projects/matio>.
1533 _ACEOF
1534 ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for configure.gnu first; this name is used for a wrapper for
1579 # Metaconfig's "Configure" on case-insensitive file systems.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 MATIO configure 1.5.30
1597 generated by GNU Autoconf 2.71
1598
1599 Copyright (C) 2021 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603 exit
1604 fi
1605
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext conftest.beam
1617 if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 printf "%s\n" "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext
1636 then :
1637 ac_retval=0
1638 else $as_nop
1639 printf "%s\n" "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_compile
1648
1649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists and can be compiled using the include files in
1652 # INCLUDES, setting the cache variable VAR accordingly.
1653 ac_fn_c_check_header_compile ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 printf %s "checking for $2... " >&6; }
1658 if eval test \${$3+y}
1659 then :
1660 printf %s "(cached) " >&6
1661 else $as_nop
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1664 $4
1665 #include <$2>
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"
1668 then :
1669 eval "$3=yes"
1670 else $as_nop
1671 eval "$3=no"
1672 fi
1673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1674 fi
1675 eval ac_res=\$$3
1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 printf "%s\n" "$ac_res" >&6; }
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680 } # ac_fn_c_check_header_compile
1681
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 printf "%s\n" "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 test -x conftest$ac_exeext
1710 }
1711 then :
1712 ac_retval=0
1713 else $as_nop
1714 printf "%s\n" "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728
1729 # ac_fn_c_check_func LINENO FUNC VAR
1730 # ----------------------------------
1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1732 ac_fn_c_check_func ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 printf %s "checking for $2... " >&6; }
1737 if eval test \${$3+y}
1738 then :
1739 printf %s "(cached) " >&6
1740 else $as_nop
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below. */
1749
1750 #include <limits.h>
1751 #undef $2
1752
1753 /* Override any GCC internal prototype to avoid an error.
1754 Use char because int might match the return type of a GCC
1755 builtin and then its argument prototype would still apply. */
1756 #ifdef __cplusplus
1757 extern "C"
1758 #endif
1759 char $2 ();
1760 /* The GNU C library defines this for functions which it implements
1761 to always fail with ENOSYS. Some functions are actually named
1762 something starting with __ and the normal name is an alias. */
1763 #if defined __stub_$2 || defined __stub___$2
1764 choke me
1765 #endif
1766
1767 int
1768 main (void)
1769 {
1770 return $2 ();
1771 ;
1772 return 0;
1773 }
1774 _ACEOF
1775 if ac_fn_c_try_link "$LINENO"
1776 then :
1777 eval "$3=yes"
1778 else $as_nop
1779 eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1782 conftest$ac_exeext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 printf "%s\n" "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_func
1790
1791 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1792 # ----------------------------------------------------
1793 # Tries to find if the field MEMBER exists in type AGGR, after including
1794 # INCLUDES, setting cache variable VAR accordingly.
1795 ac_fn_c_check_member ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1799 printf %s "checking for $2.$3... " >&6; }
1800 if eval test \${$4+y}
1801 then :
1802 printf %s "(cached) " >&6
1803 else $as_nop
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $5
1807 int
1808 main (void)
1809 {
1810 static $2 ac_aggr;
1811 if (ac_aggr.$3)
1812 return 0;
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"
1818 then :
1819 eval "$4=yes"
1820 else $as_nop
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $5
1824 int
1825 main (void)
1826 {
1827 static $2 ac_aggr;
1828 if (sizeof ac_aggr.$3)
1829 return 0;
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"
1835 then :
1836 eval "$4=yes"
1837 else $as_nop
1838 eval "$4=no"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1843 fi
1844 eval ac_res=\$$4
1845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 printf "%s\n" "$ac_res" >&6; }
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_member
1850
1851 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1852 # -------------------------------------------
1853 # Tests whether TYPE exists after having included INCLUDES, setting cache
1854 # variable VAR accordingly.
1855 ac_fn_c_check_type ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 printf %s "checking for $2... " >&6; }
1860 if eval test \${$3+y}
1861 then :
1862 printf %s "(cached) " >&6
1863 else $as_nop
1864 eval "$3=no"
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 int
1869 main (void)
1870 {
1871 if (sizeof ($2))
1872 return 0;
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"
1878 then :
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $4
1882 int
1883 main (void)
1884 {
1885 if (sizeof (($2)))
1886 return 0;
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"
1892 then :
1893
1894 else $as_nop
1895 eval "$3=yes"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 printf "%s\n" "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906 } # ac_fn_c_check_type
1907
1908 # ac_fn_c_try_run LINENO
1909 # ----------------------
1910 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1911 # executables *can* be run.
1912 ac_fn_c_try_run ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if { { ac_try="$ac_link"
1916 case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 printf "%s\n" "$ac_try_echo"; } >&5
1922 (eval "$ac_link") 2>&5
1923 ac_status=$?
1924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1926 { { case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 printf "%s\n" "$ac_try_echo"; } >&5
1932 (eval "$ac_try") 2>&5
1933 ac_status=$?
1934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; }; }
1936 then :
1937 ac_retval=0
1938 else $as_nop
1939 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1940 printf "%s\n" "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_retval=$ac_status
1944 fi
1945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1948
1949 } # ac_fn_c_try_run
1950
1951 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1952 # --------------------------------------------
1953 # Tries to find the compile-time value of EXPR in a program that includes
1954 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1955 # computed
1956 ac_fn_c_compute_int ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if test "$cross_compiling" = yes; then
1960 # Depending upon the size, compute the lo and hi bounds.
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $4
1964 int
1965 main (void)
1966 {
1967 static int test_array [1 - 2 * !(($2) >= 0)];
1968 test_array [0] = 0;
1969 return test_array [0];
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"
1976 then :
1977 ac_lo=0 ac_mid=0
1978 while :; do
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $4
1982 int
1983 main (void)
1984 {
1985 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1986 test_array [0] = 0;
1987 return test_array [0];
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"
1994 then :
1995 ac_hi=$ac_mid; break
1996 else $as_nop
1997 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1998 if test $ac_lo -le $ac_mid; then
1999 ac_lo= ac_hi=
2000 break
2001 fi
2002 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2005 done
2006 else $as_nop
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 $4
2010 int
2011 main (void)
2012 {
2013 static int test_array [1 - 2 * !(($2) < 0)];
2014 test_array [0] = 0;
2015 return test_array [0];
2016
2017 ;
2018 return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"
2022 then :
2023 ac_hi=-1 ac_mid=-1
2024 while :; do
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 $4
2028 int
2029 main (void)
2030 {
2031 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2032 test_array [0] = 0;
2033 return test_array [0];
2034
2035 ;
2036 return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"
2040 then :
2041 ac_lo=$ac_mid; break
2042 else $as_nop
2043 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2044 if test $ac_mid -le $ac_hi; then
2045 ac_lo= ac_hi=
2046 break
2047 fi
2048 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2051 done
2052 else $as_nop
2053 ac_lo= ac_hi=
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2058 # Binary search between lo and hi bounds.
2059 while test "x$ac_lo" != "x$ac_hi"; do
2060 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 $4
2064 int
2065 main (void)
2066 {
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 test_array [0] = 0;
2069 return test_array [0];
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"
2076 then :
2077 ac_hi=$ac_mid
2078 else $as_nop
2079 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2082 done
2083 case $ac_lo in #((
2084 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2085 '') ac_retval=1 ;;
2086 esac
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 $4
2091 static long int longval (void) { return $2; }
2092 static unsigned long int ulongval (void) { return $2; }
2093 #include <stdio.h>
2094 #include <stdlib.h>
2095 int
2096 main (void)
2097 {
2098
2099 FILE *f = fopen ("conftest.val", "w");
2100 if (! f)
2101 return 1;
2102 if (($2) < 0)
2103 {
2104 long int i = longval ();
2105 if (i != ($2))
2106 return 1;
2107 fprintf (f, "%ld", i);
2108 }
2109 else
2110 {
2111 unsigned long int i = ulongval ();
2112 if (i != ($2))
2113 return 1;
2114 fprintf (f, "%lu", i);
2115 }
2116 /* Do not output a trailing newline, as this causes \r\n confusion
2117 on some platforms. */
2118 return ferror (f) || fclose (f) != 0;
2119
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_run "$LINENO"
2125 then :
2126 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2127 else $as_nop
2128 ac_retval=1
2129 fi
2130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2131 conftest.$ac_objext conftest.beam conftest.$ac_ext
2132 rm -f conftest.val
2133
2134 fi
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2137
2138 } # ac_fn_c_compute_int
2139 ac_configure_args_raw=
2140 for ac_arg
2141 do
2142 case $ac_arg in
2143 *\'*)
2144 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 esac
2146 as_fn_append ac_configure_args_raw " '$ac_arg'"
2147 done
2148
2149 case $ac_configure_args_raw in
2150 *$as_nl*)
2151 ac_safe_unquote= ;;
2152 *)
2153 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2154 ac_unsafe_a="$ac_unsafe_z#~"
2155 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2156 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2157 esac
2158
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2162
2163 It was created by MATIO $as_me 1.5.30, which was
2164 generated by GNU Autoconf 2.71. Invocation command line was
2165
2166 $ $0$ac_configure_args_raw
2167
2168 _ACEOF
2169 exec 5>>config.log
2170 {
2171 cat <<_ASUNAME
2172 ## --------- ##
2173 ## Platform. ##
2174 ## --------- ##
2175
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2184
2185 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2186 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2189 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2190 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2191 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2192
2193 _ASUNAME
2194
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198 IFS=$as_save_IFS
2199 case $as_dir in #(((
2200 '') as_dir=./ ;;
2201 */) ;;
2202 *) as_dir=$as_dir/ ;;
2203 esac
2204 printf "%s\n" "PATH: $as_dir"
2205 done
2206 IFS=$as_save_IFS
2207
2208 } >&5
2209
2210 cat >&5 <<_ACEOF
2211
2212
2213 ## ----------- ##
2214 ## Core tests. ##
2215 ## ----------- ##
2216
2217 _ACEOF
2218
2219
2220 # Keep a trace of the command line.
2221 # Strip out --no-create and --no-recursion so they do not pile up.
2222 # Strip out --silent because we don't want to record it for future runs.
2223 # Also quote any args containing shell meta-characters.
2224 # Make two passes to allow for proper duplicate-argument suppression.
2225 ac_configure_args=
2226 ac_configure_args0=
2227 ac_configure_args1=
2228 ac_must_keep_next=false
2229 for ac_pass in 1 2
2230 do
2231 for ac_arg
2232 do
2233 case $ac_arg in
2234 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2236 | -silent | --silent | --silen | --sile | --sil)
2237 continue ;;
2238 *\'*)
2239 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 esac
2241 case $ac_pass in
2242 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2243 2)
2244 as_fn_append ac_configure_args1 " '$ac_arg'"
2245 if test $ac_must_keep_next = true; then
2246 ac_must_keep_next=false # Got value, back to normal.
2247 else
2248 case $ac_arg in
2249 *=* | --config-cache | -C | -disable-* | --disable-* \
2250 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2251 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2252 | -with-* | --with-* | -without-* | --without-* | --x)
2253 case "$ac_configure_args0 " in
2254 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2255 esac
2256 ;;
2257 -* ) ac_must_keep_next=true ;;
2258 esac
2259 fi
2260 as_fn_append ac_configure_args " '$ac_arg'"
2261 ;;
2262 esac
2263 done
2264 done
2265 { ac_configure_args0=; unset ac_configure_args0;}
2266 { ac_configure_args1=; unset ac_configure_args1;}
2267
2268 # When interrupted or exit'd, cleanup temporary files, and complete
2269 # config.log. We remove comments because anyway the quotes in there
2270 # would cause problems or look ugly.
2271 # WARNING: Use '\'' to represent an apostrophe within the trap.
2272 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2273 trap 'exit_status=$?
2274 # Sanitize IFS.
2275 IFS=" "" $as_nl"
2276 # Save into config.log some information that might help in debugging.
2277 {
2278 echo
2279
2280 printf "%s\n" "## ---------------- ##
2281 ## Cache variables. ##
2282 ## ---------------- ##"
2283 echo
2284 # The following way of writing the cache mishandles newlines in values,
2285 (
2286 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in #(
2289 *${as_nl}*)
2290 case $ac_var in #(
2291 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2292 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2293 esac
2294 case $ac_var in #(
2295 _ | IFS | as_nl) ;; #(
2296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2297 *) { eval $ac_var=; unset $ac_var;} ;;
2298 esac ;;
2299 esac
2300 done
2301 (set) 2>&1 |
2302 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2303 *${as_nl}ac_space=\ *)
2304 sed -n \
2305 "s/'\''/'\''\\\\'\'''\''/g;
2306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2307 ;; #(
2308 *)
2309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2310 ;;
2311 esac |
2312 sort
2313 )
2314 echo
2315
2316 printf "%s\n" "## ----------------- ##
2317 ## Output variables. ##
2318 ## ----------------- ##"
2319 echo
2320 for ac_var in $ac_subst_vars
2321 do
2322 eval ac_val=\$$ac_var
2323 case $ac_val in
2324 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 esac
2326 printf "%s\n" "$ac_var='\''$ac_val'\''"
2327 done | sort
2328 echo
2329
2330 if test -n "$ac_subst_files"; then
2331 printf "%s\n" "## ------------------- ##
2332 ## File substitutions. ##
2333 ## ------------------- ##"
2334 echo
2335 for ac_var in $ac_subst_files
2336 do
2337 eval ac_val=\$$ac_var
2338 case $ac_val in
2339 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 esac
2341 printf "%s\n" "$ac_var='\''$ac_val'\''"
2342 done | sort
2343 echo
2344 fi
2345
2346 if test -s confdefs.h; then
2347 printf "%s\n" "## ----------- ##
2348 ## confdefs.h. ##
2349 ## ----------- ##"
2350 echo
2351 cat confdefs.h
2352 echo
2353 fi
2354 test "$ac_signal" != 0 &&
2355 printf "%s\n" "$as_me: caught signal $ac_signal"
2356 printf "%s\n" "$as_me: exit $exit_status"
2357 } >&5
2358 rm -f core *.core core.conftest.* &&
2359 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2360 exit $exit_status
2361 ' 0
2362 for ac_signal in 1 2 13 15; do
2363 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364 done
2365 ac_signal=0
2366
2367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2368 rm -f -r conftest* confdefs.h
2369
2370 printf "%s\n" "/* confdefs.h */" > confdefs.h
2371
2372 # Predefined preprocessor variables.
2373
2374 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2375
2376 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2377
2378 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2379
2380 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2381
2382 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2383
2384 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2385
2386
2387 # Let the site file select an alternate cache file if it wants to.
2388 # Prefer an explicitly selected file to automatically selected ones.
2389 if test -n "$CONFIG_SITE"; then
2390 ac_site_files="$CONFIG_SITE"
2391 elif test "x$prefix" != xNONE; then
2392 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2393 else
2394 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2395 fi
2396
2397 for ac_site_file in $ac_site_files
2398 do
2399 case $ac_site_file in #(
2400 */*) :
2401 ;; #(
2402 *) :
2403 ac_site_file=./$ac_site_file ;;
2404 esac
2405 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2407 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2408 sed 's/^/| /' "$ac_site_file" >&5
2409 . "$ac_site_file" \
2410 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2412 as_fn_error $? "failed to load site script $ac_site_file
2413 See \`config.log' for more details" "$LINENO" 5; }
2414 fi
2415 done
2416
2417 if test -r "$cache_file"; then
2418 # Some versions of bash will fail to source /dev/null (special files
2419 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2420 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2422 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2423 case $cache_file in
2424 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2425 *) . "./$cache_file";;
2426 esac
2427 fi
2428 else
2429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2430 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2431 >$cache_file
2432 fi
2433
2434 # Test code for whether the C compiler supports C89 (global declarations)
2435 ac_c_conftest_c89_globals='
2436 /* Does the compiler advertise C89 conformance?
2437 Do not test the value of __STDC__, because some compilers set it to 0
2438 while being otherwise adequately conformant. */
2439 #if !defined __STDC__
2440 # error "Compiler does not advertise C89 conformance"
2441 #endif
2442
2443 #include <stddef.h>
2444 #include <stdarg.h>
2445 struct stat;
2446 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2447 struct buf { int x; };
2448 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2450 char **p;
2451 int i;
2452 {
2453 return p[i];
2454 }
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2456 {
2457 char *s;
2458 va_list v;
2459 va_start (v,p);
2460 s = g (p, va_arg (v,int));
2461 va_end (v);
2462 return s;
2463 }
2464
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not \xHH hex character constants.
2467 These do not provoke an error unfortunately, instead are silently treated
2468 as an "x". The following induces an error, until -std is added to get
2469 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2470 array size at least. It is necessary to write \x00 == 0 to get something
2471 that is true only with -std. */
2472 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2473
2474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2475 inside strings and character constants. */
2476 #define FOO(x) '\''x'\''
2477 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2478
2479 int test (int i, double x);
2480 struct s1 {int (*f) (int a);};
2481 struct s2 {int (*f) (double a);};
2482 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2483 int, int);'
2484
2485 # Test code for whether the C compiler supports C89 (body of main).
2486 ac_c_conftest_c89_main='
2487 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2488 '
2489
2490 # Test code for whether the C compiler supports C99 (global declarations)
2491 ac_c_conftest_c99_globals='
2492 // Does the compiler advertise C99 conformance?
2493 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2494 # error "Compiler does not advertise C99 conformance"
2495 #endif
2496
2497 #include <stdbool.h>
2498 extern int puts (const char *);
2499 extern int printf (const char *, ...);
2500 extern int dprintf (int, const char *, ...);
2501 extern void *malloc (size_t);
2502
2503 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2504 // dprintf is used instead of fprintf to avoid needing to declare
2505 // FILE and stderr.
2506 #define debug(...) dprintf (2, __VA_ARGS__)
2507 #define showlist(...) puts (#__VA_ARGS__)
2508 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2509 static void
2510 test_varargs_macros (void)
2511 {
2512 int x = 1234;
2513 int y = 5678;
2514 debug ("Flag");
2515 debug ("X = %d\n", x);
2516 showlist (The first, second, and third items.);
2517 report (x>y, "x is %d but y is %d", x, y);
2518 }
2519
2520 // Check long long types.
2521 #define BIG64 18446744073709551615ull
2522 #define BIG32 4294967295ul
2523 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2524 #if !BIG_OK
2525 #error "your preprocessor is broken"
2526 #endif
2527 #if BIG_OK
2528 #else
2529 #error "your preprocessor is broken"
2530 #endif
2531 static long long int bignum = -9223372036854775807LL;
2532 static unsigned long long int ubignum = BIG64;
2533
2534 struct incomplete_array
2535 {
2536 int datasize;
2537 double data[];
2538 };
2539
2540 struct named_init {
2541 int number;
2542 const wchar_t *name;
2543 double average;
2544 };
2545
2546 typedef const char *ccp;
2547
2548 static inline int
2549 test_restrict (ccp restrict text)
2550 {
2551 // See if C++-style comments work.
2552 // Iterate through items via the restricted pointer.
2553 // Also check for declarations in for loops.
2554 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2555 continue;
2556 return 0;
2557 }
2558
2559 // Check varargs and va_copy.
2560 static bool
2561 test_varargs (const char *format, ...)
2562 {
2563 va_list args;
2564 va_start (args, format);
2565 va_list args_copy;
2566 va_copy (args_copy, args);
2567
2568 const char *str = "";
2569 int number = 0;
2570 float fnumber = 0;
2571
2572 while (*format)
2573 {
2574 switch (*format++)
2575 {
2576 case '\''s'\'': // string
2577 str = va_arg (args_copy, const char *);
2578 break;
2579 case '\''d'\'': // int
2580 number = va_arg (args_copy, int);
2581 break;
2582 case '\''f'\'': // float
2583 fnumber = va_arg (args_copy, double);
2584 break;
2585 default:
2586 break;
2587 }
2588 }
2589 va_end (args_copy);
2590 va_end (args);
2591
2592 return *str && number && fnumber;
2593 }
2594 '
2595
2596 # Test code for whether the C compiler supports C99 (body of main).
2597 ac_c_conftest_c99_main='
2598 // Check bool.
2599 _Bool success = false;
2600 success |= (argc != 0);
2601
2602 // Check restrict.
2603 if (test_restrict ("String literal") == 0)
2604 success = true;
2605 char *restrict newvar = "Another string";
2606
2607 // Check varargs.
2608 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2609 test_varargs_macros ();
2610
2611 // Check flexible array members.
2612 struct incomplete_array *ia =
2613 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2614 ia->datasize = 10;
2615 for (int i = 0; i < ia->datasize; ++i)
2616 ia->data[i] = i * 1.234;
2617
2618 // Check named initializers.
2619 struct named_init ni = {
2620 .number = 34,
2621 .name = L"Test wide string",
2622 .average = 543.34343,
2623 };
2624
2625 ni.number = 58;
2626
2627 int dynamic_array[ni.number];
2628 dynamic_array[0] = argv[0][0];
2629 dynamic_array[ni.number - 1] = 543;
2630
2631 // work around unused variable warnings
2632 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2633 || dynamic_array[ni.number - 1] != 543);
2634 '
2635
2636 # Test code for whether the C compiler supports C11 (global declarations)
2637 ac_c_conftest_c11_globals='
2638 // Does the compiler advertise C11 conformance?
2639 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2640 # error "Compiler does not advertise C11 conformance"
2641 #endif
2642
2643 // Check _Alignas.
2644 char _Alignas (double) aligned_as_double;
2645 char _Alignas (0) no_special_alignment;
2646 extern char aligned_as_int;
2647 char _Alignas (0) _Alignas (int) aligned_as_int;
2648
2649 // Check _Alignof.
2650 enum
2651 {
2652 int_alignment = _Alignof (int),
2653 int_array_alignment = _Alignof (int[100]),
2654 char_alignment = _Alignof (char)
2655 };
2656 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2657
2658 // Check _Noreturn.
2659 int _Noreturn does_not_return (void) { for (;;) continue; }
2660
2661 // Check _Static_assert.
2662 struct test_static_assert
2663 {
2664 int x;
2665 _Static_assert (sizeof (int) <= sizeof (long int),
2666 "_Static_assert does not work in struct");
2667 long int y;
2668 };
2669
2670 // Check UTF-8 literals.
2671 #define u8 syntax error!
2672 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2673
2674 // Check duplicate typedefs.
2675 typedef long *long_ptr;
2676 typedef long int *long_ptr;
2677 typedef long_ptr long_ptr;
2678
2679 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2680 struct anonymous
2681 {
2682 union {
2683 struct { int i; int j; };
2684 struct { int k; long int l; } w;
2685 };
2686 int m;
2687 } v1;
2688 '
2689
2690 # Test code for whether the C compiler supports C11 (body of main).
2691 ac_c_conftest_c11_main='
2692 _Static_assert ((offsetof (struct anonymous, i)
2693 == offsetof (struct anonymous, w.k)),
2694 "Anonymous union alignment botch");
2695 v1.i = 2;
2696 v1.w.k = 5;
2697 ok |= v1.i != 5;
2698 '
2699
2700 # Test code for whether the C compiler supports C11 (complete).
2701 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2702 ${ac_c_conftest_c99_globals}
2703 ${ac_c_conftest_c11_globals}
2704
2705 int
2706 main (int argc, char **argv)
2707 {
2708 int ok = 0;
2709 ${ac_c_conftest_c89_main}
2710 ${ac_c_conftest_c99_main}
2711 ${ac_c_conftest_c11_main}
2712 return ok;
2713 }
2714 "
2715
2716 # Test code for whether the C compiler supports C99 (complete).
2717 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2718 ${ac_c_conftest_c99_globals}
2719
2720 int
2721 main (int argc, char **argv)
2722 {
2723 int ok = 0;
2724 ${ac_c_conftest_c89_main}
2725 ${ac_c_conftest_c99_main}
2726 return ok;
2727 }
2728 "
2729
2730 # Test code for whether the C compiler supports C89 (complete).
2731 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2732
2733 int
2734 main (int argc, char **argv)
2735 {
2736 int ok = 0;
2737 ${ac_c_conftest_c89_main}
2738 return ok;
2739 }
2740 "
2741
2742 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2743 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2744 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2745 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2746 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2747 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2748 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2749 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2750 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2751 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2752 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2753 as_fn_append ac_header_c_list " stdarg.h stdarg_h HAVE_STDARG_H"
2754 as_fn_append ac_header_c_list " varargs.h varargs_h HAVE_VARARGS_H"
2755
2756 # Auxiliary files required by this configure script.
2757 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2758
2759 # Locations in which to look for auxiliary files.
2760 ac_aux_dir_candidates="${srcdir}/config"
2761
2762 # Search for a directory containing all of the required auxiliary files,
2763 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2764 # If we don't find one directory that contains all the files we need,
2765 # we report the set of missing files from the *first* directory in
2766 # $ac_aux_dir_candidates and give up.
2767 ac_missing_aux_files=""
2768 ac_first_candidate=:
2769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 as_found=false
2772 for as_dir in $ac_aux_dir_candidates
2773 do
2774 IFS=$as_save_IFS
2775 case $as_dir in #(((
2776 '') as_dir=./ ;;
2777 */) ;;
2778 *) as_dir=$as_dir/ ;;
2779 esac
2780 as_found=:
2781
2782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2783 ac_aux_dir_found=yes
2784 ac_install_sh=
2785 for ac_aux in $ac_aux_files
2786 do
2787 # As a special case, if "install-sh" is required, that requirement
2788 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2789 # and $ac_install_sh is set appropriately for whichever one is found.
2790 if test x"$ac_aux" = x"install-sh"
2791 then
2792 if test -f "${as_dir}install-sh"; then
2793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2794 ac_install_sh="${as_dir}install-sh -c"
2795 elif test -f "${as_dir}install.sh"; then
2796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2797 ac_install_sh="${as_dir}install.sh -c"
2798 elif test -f "${as_dir}shtool"; then
2799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2800 ac_install_sh="${as_dir}shtool install -c"
2801 else
2802 ac_aux_dir_found=no
2803 if $ac_first_candidate; then
2804 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2805 else
2806 break
2807 fi
2808 fi
2809 else
2810 if test -f "${as_dir}${ac_aux}"; then
2811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2812 else
2813 ac_aux_dir_found=no
2814 if $ac_first_candidate; then
2815 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2816 else
2817 break
2818 fi
2819 fi
2820 fi
2821 done
2822 if test "$ac_aux_dir_found" = yes; then
2823 ac_aux_dir="$as_dir"
2824 break
2825 fi
2826 ac_first_candidate=false
2827
2828 as_found=false
2829 done
2830 IFS=$as_save_IFS
2831 if $as_found
2832 then :
2833
2834 else $as_nop
2835 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2836 fi
2837
2838
2839 # These three variables are undocumented and unsupported,
2840 # and are intended to be withdrawn in a future Autoconf release.
2841 # They can cause serious problems if a builder's source tree is in a directory
2842 # whose full name contains unusual characters.
2843 if test -f "${ac_aux_dir}config.guess"; then
2844 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2845 fi
2846 if test -f "${ac_aux_dir}config.sub"; then
2847 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2848 fi
2849 if test -f "$ac_aux_dir/configure"; then
2850 ac_configure="$SHELL ${ac_aux_dir}configure"
2851 fi
2852
2853 # Check that the precious variables saved in the cache have kept the same
2854 # value.
2855 ac_cache_corrupted=false
2856 for ac_var in $ac_precious_vars; do
2857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2858 eval ac_new_set=\$ac_env_${ac_var}_set
2859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2860 eval ac_new_val=\$ac_env_${ac_var}_value
2861 case $ac_old_set,$ac_new_set in
2862 set,)
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2864 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2865 ac_cache_corrupted=: ;;
2866 ,set)
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2868 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2869 ac_cache_corrupted=: ;;
2870 ,);;
2871 *)
2872 if test "x$ac_old_val" != "x$ac_new_val"; then
2873 # differences in whitespace do not lead to failure.
2874 ac_old_val_w=`echo x $ac_old_val`
2875 ac_new_val_w=`echo x $ac_new_val`
2876 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2878 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2879 ac_cache_corrupted=:
2880 else
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2882 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2883 eval $ac_var=\$ac_old_val
2884 fi
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2886 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2888 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2889 fi;;
2890 esac
2891 # Pass precious variables to config.status.
2892 if test "$ac_new_set" = set; then
2893 case $ac_new_val in
2894 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2895 *) ac_arg=$ac_var=$ac_new_val ;;
2896 esac
2897 case " $ac_configure_args " in
2898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2899 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2900 esac
2901 fi
2902 done
2903 if $ac_cache_corrupted; then
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2907 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2908 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2909 and start over" "$LINENO" 5
2910 fi
2911 ## -------------------- ##
2912 ## Main body of script. ##
2913 ## -------------------- ##
2914
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920
2921
2922
2923
2924
2925 am__api_version='1.16'
2926
2927
2928
2929 # Find a good install program. We prefer a C program (faster),
2930 # so one script is as good as another. But avoid the broken or
2931 # incompatible versions:
2932 # SysV /etc/install, /usr/sbin/install
2933 # SunOS /usr/etc/install
2934 # IRIX /sbin/install
2935 # AIX /bin/install
2936 # AmigaOS /C/install, which installs bootblocks on floppy discs
2937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2940 # OS/2's system install, which has a completely different semantic
2941 # ./install, which can be erroneously created by make from ./install.sh.
2942 # Reject install programs that cannot install multiple files.
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2944 printf %s "checking for a BSD-compatible install... " >&6; }
2945 if test -z "$INSTALL"; then
2946 if test ${ac_cv_path_install+y}
2947 then :
2948 printf %s "(cached) " >&6
2949 else $as_nop
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953 IFS=$as_save_IFS
2954 case $as_dir in #(((
2955 '') as_dir=./ ;;
2956 */) ;;
2957 *) as_dir=$as_dir/ ;;
2958 esac
2959 # Account for fact that we put trailing slashes in our PATH walk.
2960 case $as_dir in #((
2961 ./ | /[cC]/* | \
2962 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2963 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2964 /usr/ucb/* ) ;;
2965 *)
2966 # OSF1 and SCO ODT 3.0 have their own names for install.
2967 # Don't use installbsd from OSF since it installs stuff as root
2968 # by default.
2969 for ac_prog in ginstall scoinst install; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2972 if test $ac_prog = install &&
2973 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # AIX install. It has an incompatible calling convention.
2975 :
2976 elif test $ac_prog = install &&
2977 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2978 # program-specific install script used by HP pwplus--don't use.
2979 :
2980 else
2981 rm -rf conftest.one conftest.two conftest.dir
2982 echo one > conftest.one
2983 echo two > conftest.two
2984 mkdir conftest.dir
2985 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2986 test -s conftest.one && test -s conftest.two &&
2987 test -s conftest.dir/conftest.one &&
2988 test -s conftest.dir/conftest.two
2989 then
2990 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2991 break 3
2992 fi
2993 fi
2994 fi
2995 done
2996 done
2997 ;;
2998 esac
2999
3000 done
3001 IFS=$as_save_IFS
3002
3003 rm -rf conftest.one conftest.two conftest.dir
3004
3005 fi
3006 if test ${ac_cv_path_install+y}; then
3007 INSTALL=$ac_cv_path_install
3008 else
3009 # As a last resort, use the slow shell script. Don't cache a
3010 # value for INSTALL within a source directory, because that will
3011 # break other packages using the cache if that directory is
3012 # removed, or if the value is a relative name.
3013 INSTALL=$ac_install_sh
3014 fi
3015 fi
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3017 printf "%s\n" "$INSTALL" >&6; }
3018
3019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3020 # It thinks the first close brace ends the variable substitution.
3021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3022
3023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3024
3025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3026
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3028 printf %s "checking whether build environment is sane... " >&6; }
3029 # Reject unsafe characters in $srcdir or the absolute working directory
3030 # name. Accept space and tab only in the latter.
3031 am_lf='
3032 '
3033 case `pwd` in
3034 *[\\\"\#\$\&\'\`$am_lf]*)
3035 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3036 esac
3037 case $srcdir in
3038 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3039 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3040 esac
3041
3042 # Do 'set' in a subshell so we don't clobber the current shell's
3043 # arguments. Must try -L first in case configure is actually a
3044 # symlink; some systems play weird games with the mod time of symlinks
3045 # (eg FreeBSD returns the mod time of the symlink's containing
3046 # directory).
3047 if (
3048 am_has_slept=no
3049 for am_try in 1 2; do
3050 echo "timestamp, slept: $am_has_slept" > conftest.file
3051 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3052 if test "$*" = "X"; then
3053 # -L didn't work.
3054 set X `ls -t "$srcdir/configure" conftest.file`
3055 fi
3056 if test "$*" != "X $srcdir/configure conftest.file" \
3057 && test "$*" != "X conftest.file $srcdir/configure"; then
3058
3059 # If neither matched, then we have a broken ls. This can happen
3060 # if, for instance, CONFIG_SHELL is bash and it inherits a
3061 # broken ls alias from the environment. This has actually
3062 # happened. Such a system could not be considered "sane".
3063 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3064 alias in your environment" "$LINENO" 5
3065 fi
3066 if test "$2" = conftest.file || test $am_try -eq 2; then
3067 break
3068 fi
3069 # Just in case.
3070 sleep 1
3071 am_has_slept=yes
3072 done
3073 test "$2" = conftest.file
3074 )
3075 then
3076 # Ok.
3077 :
3078 else
3079 as_fn_error $? "newly created file is older than distributed files!
3080 Check your system clock" "$LINENO" 5
3081 fi
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3083 printf "%s\n" "yes" >&6; }
3084 # If we didn't sleep, we still need to ensure time stamps of config.status and
3085 # generated files are strictly newer.
3086 am_sleep_pid=
3087 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3088 ( sleep 1 ) &
3089 am_sleep_pid=$!
3090 fi
3091
3092 rm -f conftest.file
3093
3094 test "$program_prefix" != NONE &&
3095 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3096 # Use a double $ so make ignores it.
3097 test "$program_suffix" != NONE &&
3098 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3099 # Double any \ or $.
3100 # By default was `s,x,x', remove it if useless.
3101 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3102 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3103
3104
3105 # Expand $ac_aux_dir to an absolute path.
3106 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3107
3108
3109 if test x"${MISSING+set}" != xset; then
3110 MISSING="\${SHELL} '$am_aux_dir/missing'"
3111 fi
3112 # Use eval to expand $SHELL
3113 if eval "$MISSING --is-lightweight"; then
3114 am_missing_run="$MISSING "
3115 else
3116 am_missing_run=
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3118 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3119 fi
3120
3121 if test x"${install_sh+set}" != xset; then
3122 case $am_aux_dir in
3123 *\ * | *\ *)
3124 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3125 *)
3126 install_sh="\${SHELL} $am_aux_dir/install-sh"
3127 esac
3128 fi
3129
3130 # Installed binaries are usually stripped using 'strip' when the user
3131 # run "make install-strip". However 'strip' might not be the right
3132 # tool to use in cross-compilation environments, therefore Automake
3133 # will honor the 'STRIP' environment variable to overrule this program.
3134 if test "$cross_compiling" != no; then
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}strip; ac_word=$2
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 printf %s "checking for $ac_word... " >&6; }
3140 if test ${ac_cv_prog_STRIP+y}
3141 then :
3142 printf %s "(cached) " >&6
3143 else $as_nop
3144 if test -n "$STRIP"; then
3145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 case $as_dir in #(((
3152 '') as_dir=./ ;;
3153 */) ;;
3154 *) as_dir=$as_dir/ ;;
3155 esac
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 STRIP=$ac_cv_prog_STRIP
3169 if test -n "$STRIP"; then
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3171 printf "%s\n" "$STRIP" >&6; }
3172 else
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 printf "%s\n" "no" >&6; }
3175 fi
3176
3177
3178 fi
3179 if test -z "$ac_cv_prog_STRIP"; then
3180 ac_ct_STRIP=$STRIP
3181 # Extract the first word of "strip", so it can be a program name with args.
3182 set dummy strip; ac_word=$2
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 printf %s "checking for $ac_word... " >&6; }
3185 if test ${ac_cv_prog_ac_ct_STRIP+y}
3186 then :
3187 printf %s "(cached) " >&6
3188 else $as_nop
3189 if test -n "$ac_ct_STRIP"; then
3190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 case $as_dir in #(((
3197 '') as_dir=./ ;;
3198 */) ;;
3199 *) as_dir=$as_dir/ ;;
3200 esac
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_ac_ct_STRIP="strip"
3204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 fi
3212 fi
3213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3214 if test -n "$ac_ct_STRIP"; then
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3216 printf "%s\n" "$ac_ct_STRIP" >&6; }
3217 else
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 printf "%s\n" "no" >&6; }
3220 fi
3221
3222 if test "x$ac_ct_STRIP" = x; then
3223 STRIP=":"
3224 else
3225 case $cross_compiling:$ac_tool_warned in
3226 yes:)
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229 ac_tool_warned=yes ;;
3230 esac
3231 STRIP=$ac_ct_STRIP
3232 fi
3233 else
3234 STRIP="$ac_cv_prog_STRIP"
3235 fi
3236
3237 fi
3238 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3239
3240
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3242 printf %s "checking for a race-free mkdir -p... " >&6; }
3243 if test -z "$MKDIR_P"; then
3244 if test ${ac_cv_path_mkdir+y}
3245 then :
3246 printf %s "(cached) " >&6
3247 else $as_nop
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3250 do
3251 IFS=$as_save_IFS
3252 case $as_dir in #(((
3253 '') as_dir=./ ;;
3254 */) ;;
3255 *) as_dir=$as_dir/ ;;
3256 esac
3257 for ac_prog in mkdir gmkdir; do
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3260 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3261 'mkdir ('*'coreutils) '* | \
3262 'BusyBox '* | \
3263 'mkdir (fileutils) '4.1*)
3264 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3265 break 3;;
3266 esac
3267 done
3268 done
3269 done
3270 IFS=$as_save_IFS
3271
3272 fi
3273
3274 test -d ./--version && rmdir ./--version
3275 if test ${ac_cv_path_mkdir+y}; then
3276 MKDIR_P="$ac_cv_path_mkdir -p"
3277 else
3278 # As a last resort, use the slow shell script. Don't cache a
3279 # value for MKDIR_P within a source directory, because that will
3280 # break other packages using the cache if that directory is
3281 # removed, or if the value is a relative name.
3282 MKDIR_P="$ac_install_sh -d"
3283 fi
3284 fi
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3286 printf "%s\n" "$MKDIR_P" >&6; }
3287
3288 for ac_prog in gawk mawk nawk awk
3289 do
3290 # Extract the first word of "$ac_prog", so it can be a program name with args.
3291 set dummy $ac_prog; ac_word=$2
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 printf %s "checking for $ac_word... " >&6; }
3294 if test ${ac_cv_prog_AWK+y}
3295 then :
3296 printf %s "(cached) " >&6
3297 else $as_nop
3298 if test -n "$AWK"; then
3299 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304 IFS=$as_save_IFS
3305 case $as_dir in #(((
3306 '') as_dir=./ ;;
3307 */) ;;
3308 *) as_dir=$as_dir/ ;;
3309 esac
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_AWK="$ac_prog"
3313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 fi
3321 fi
3322 AWK=$ac_cv_prog_AWK
3323 if test -n "$AWK"; then
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3325 printf "%s\n" "$AWK" >&6; }
3326 else
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 printf "%s\n" "no" >&6; }
3329 fi
3330
3331
3332 test -n "$AWK" && break
3333 done
3334
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3336 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3337 set x ${MAKE-make}
3338 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3339 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3340 then :
3341 printf %s "(cached) " >&6
3342 else $as_nop
3343 cat >conftest.make <<\_ACEOF
3344 SHELL = /bin/sh
3345 all:
3346 @echo '@@@%%%=$(MAKE)=@@@%%%'
3347 _ACEOF
3348 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3349 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3350 *@@@%%%=?*=@@@%%%*)
3351 eval ac_cv_prog_make_${ac_make}_set=yes;;
3352 *)
3353 eval ac_cv_prog_make_${ac_make}_set=no;;
3354 esac
3355 rm -f conftest.make
3356 fi
3357 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3359 printf "%s\n" "yes" >&6; }
3360 SET_MAKE=
3361 else
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 printf "%s\n" "no" >&6; }
3364 SET_MAKE="MAKE=${MAKE-make}"
3365 fi
3366
3367 rm -rf .tst 2>/dev/null
3368 mkdir .tst 2>/dev/null
3369 if test -d .tst; then
3370 am__leading_dot=.
3371 else
3372 am__leading_dot=_
3373 fi
3374 rmdir .tst 2>/dev/null
3375
3376 # Check whether --enable-silent-rules was given.
3377 if test ${enable_silent_rules+y}
3378 then :
3379 enableval=$enable_silent_rules;
3380 fi
3381
3382 case $enable_silent_rules in # (((
3383 yes) AM_DEFAULT_VERBOSITY=0;;
3384 no) AM_DEFAULT_VERBOSITY=1;;
3385 *) AM_DEFAULT_VERBOSITY=1;;
3386 esac
3387 am_make=${MAKE-make}
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3389 printf %s "checking whether $am_make supports nested variables... " >&6; }
3390 if test ${am_cv_make_support_nested_variables+y}
3391 then :
3392 printf %s "(cached) " >&6
3393 else $as_nop
3394 if printf "%s\n" 'TRUE=$(BAR$(V))
3395 BAR0=false
3396 BAR1=true
3397 V=1
3398 am__doit:
3399 @$(TRUE)
3400 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3401 am_cv_make_support_nested_variables=yes
3402 else
3403 am_cv_make_support_nested_variables=no
3404 fi
3405 fi
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3407 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3408 if test $am_cv_make_support_nested_variables = yes; then
3409 AM_V='$(V)'
3410 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3411 else
3412 AM_V=$AM_DEFAULT_VERBOSITY
3413 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3414 fi
3415 AM_BACKSLASH='\'
3416
3417 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3418 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3419 # is not polluted with repeated "-I."
3420 am__isrc=' -I$(srcdir)'
3421 # test to see if srcdir already configured
3422 if test -f $srcdir/config.status; then
3423 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3424 fi
3425 fi
3426
3427 # test whether we have cygpath
3428 if test -z "$CYGPATH_W"; then
3429 if (cygpath --version) >/dev/null 2>/dev/null; then
3430 CYGPATH_W='cygpath -w'
3431 else
3432 CYGPATH_W=echo
3433 fi
3434 fi
3435
3436
3437 # Define the identity of the package.
3438 PACKAGE='matio'
3439 VERSION='1.5.30'
3440
3441
3442 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3443
3444
3445 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3446
3447 # Some tools Automake needs.
3448
3449 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3450
3451
3452 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3453
3454
3455 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3456
3457
3458 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3459
3460
3461 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3462
3463 # For better backward compatibility. To be removed once Automake 1.9.x
3464 # dies out for good. For more background, see:
3465 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3466 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3467 mkdir_p='$(MKDIR_P)'
3468
3469 # We need awk for the "check" target (and possibly the TAP driver). The
3470 # system "awk" is bad on some platforms.
3471 # Always define AMTAR for backward compatibility. Yes, it's still used
3472 # in the wild :-( We should find a proper way to deprecate it ...
3473 AMTAR='$${TAR-tar}'
3474
3475
3476 # We'll loop over all known methods to create a tar archive until one works.
3477 _am_tools='gnutar pax cpio none'
3478
3479 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3480
3481
3482
3483
3484
3485 # Variables for tags utilities; see am/tags.am
3486 if test -z "$CTAGS"; then
3487 CTAGS=ctags
3488 fi
3489
3490 if test -z "$ETAGS"; then
3491 ETAGS=etags
3492 fi
3493
3494 if test -z "$CSCOPE"; then
3495 CSCOPE=cscope
3496 fi
3497
3498
3499
3500 # POSIX will say in a future version that running "rm -f" with no argument
3501 # is OK; and we want to be able to make that assumption in our Makefile
3502 # recipes. So use an aggressive probe to check that the usage we want is
3503 # actually supported "in the wild" to an acceptable degree.
3504 # See automake bug#10828.
3505 # To make any issue more visible, cause the running configure to be aborted
3506 # by default if the 'rm' program in use doesn't match our expectations; the
3507 # user can still override this though.
3508 if rm -f && rm -fr && rm -rf; then : OK; else
3509 cat >&2 <<'END'
3510 Oops!
3511
3512 Your 'rm' program seems unable to run without file operands specified
3513 on the command line, even when the '-f' option is present. This is contrary
3514 to the behaviour of most rm programs out there, and not conforming with
3515 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3516
3517 Please tell [email protected] about your system, including the value
3518 of your $PATH and any error possibly output before this message. This
3519 can help us improve future automake versions.
3520
3521 END
3522 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3523 echo 'Configuration will proceed anyway, since you have set the' >&2
3524 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3525 echo >&2
3526 else
3527 cat >&2 <<'END'
3528 Aborting the configuration process, to ensure you take notice of the issue.
3529
3530 You can download and install GNU coreutils to get an 'rm' implementation
3531 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3532
3533 If you want to complete the configuration process using your problematic
3534 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3535 to "yes", and re-run configure.
3536
3537 END
3538 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3539 fi
3540 fi
3541
3542 # Check whether --enable-silent-rules was given.
3543 if test ${enable_silent_rules+y}
3544 then :
3545 enableval=$enable_silent_rules;
3546 fi
3547
3548 case $enable_silent_rules in # (((
3549 yes) AM_DEFAULT_VERBOSITY=0;;
3550 no) AM_DEFAULT_VERBOSITY=1;;
3551 *) AM_DEFAULT_VERBOSITY=1;;
3552 esac
3553 am_make=${MAKE-make}
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3555 printf %s "checking whether $am_make supports nested variables... " >&6; }
3556 if test ${am_cv_make_support_nested_variables+y}
3557 then :
3558 printf %s "(cached) " >&6
3559 else $as_nop
3560 if printf "%s\n" 'TRUE=$(BAR$(V))
3561 BAR0=false
3562 BAR1=true
3563 V=1
3564 am__doit:
3565 @$(TRUE)
3566 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3567 am_cv_make_support_nested_variables=yes
3568 else
3569 am_cv_make_support_nested_variables=no
3570 fi
3571 fi
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3573 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3574 if test $am_cv_make_support_nested_variables = yes; then
3575 AM_V='$(V)'
3576 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3577 else
3578 AM_V=$AM_DEFAULT_VERBOSITY
3579 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3580 fi
3581 AM_BACKSLASH='\'
3582
3583
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3585 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3586 # Check whether --enable-maintainer-mode was given.
3587 if test ${enable_maintainer_mode+y}
3588 then :
3589 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3590 else $as_nop
3591 USE_MAINTAINER_MODE=no
3592 fi
3593
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3595 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3596 if test $USE_MAINTAINER_MODE = yes; then
3597 MAINTAINER_MODE_TRUE=
3598 MAINTAINER_MODE_FALSE='#'
3599 else
3600 MAINTAINER_MODE_TRUE='#'
3601 MAINTAINER_MODE_FALSE=
3602 fi
3603
3604 MAINT=$MAINTAINER_MODE_TRUE
3605
3606
3607
3608
3609
3610 # Make sure we can run config.sub.
3611 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3612 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3613
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3615 printf %s "checking build system type... " >&6; }
3616 if test ${ac_cv_build+y}
3617 then :
3618 printf %s "(cached) " >&6
3619 else $as_nop
3620 ac_build_alias=$build_alias
3621 test "x$ac_build_alias" = x &&
3622 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3623 test "x$ac_build_alias" = x &&
3624 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3625 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3626 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3627
3628 fi
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3630 printf "%s\n" "$ac_cv_build" >&6; }
3631 case $ac_cv_build in
3632 *-*-*) ;;
3633 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3634 esac
3635 build=$ac_cv_build
3636 ac_save_IFS=$IFS; IFS='-'
3637 set x $ac_cv_build
3638 shift
3639 build_cpu=$1
3640 build_vendor=$2
3641 shift; shift
3642 # Remember, the first character of IFS is used to create $*,
3643 # except with old shells:
3644 build_os=$*
3645 IFS=$ac_save_IFS
3646 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3647
3648
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3650 printf %s "checking host system type... " >&6; }
3651 if test ${ac_cv_host+y}
3652 then :
3653 printf %s "(cached) " >&6
3654 else $as_nop
3655 if test "x$host_alias" = x; then
3656 ac_cv_host=$ac_cv_build
3657 else
3658 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3659 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3660 fi
3661
3662 fi
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3664 printf "%s\n" "$ac_cv_host" >&6; }
3665 case $ac_cv_host in
3666 *-*-*) ;;
3667 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3668 esac
3669 host=$ac_cv_host
3670 ac_save_IFS=$IFS; IFS='-'
3671 set x $ac_cv_host
3672 shift
3673 host_cpu=$1
3674 host_vendor=$2
3675 shift; shift
3676 # Remember, the first character of IFS is used to create $*,
3677 # except with old shells:
3678 host_os=$*
3679 IFS=$ac_save_IFS
3680 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3681
3682
3683
3684 printf "%s\n" "#define MATIO_PLATFORM \"${host}\"" >>confdefs.h
3685
3686
3687 printf "%s\n" "#define MATIO_MAJOR_VERSION 1" >>confdefs.h
3688
3689
3690 printf "%s\n" "#define MATIO_MINOR_VERSION 5" >>confdefs.h
3691
3692
3693 printf "%s\n" "#define MATIO_RELEASE_LEVEL 30" >>confdefs.h
3694
3695
3696 printf "%s\n" "#define MATIO_VERSION 1530" >>confdefs.h
3697
3698 PACKAGE_RELEASE_DATE="6 January 2026"
3699
3700 printf "%s\n" "#define MATIO_VERSION_STR \"1.5.30\"" >>confdefs.h
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722 if test -n "$ac_tool_prefix"; then
3723 for ac_prog in pgcc icc gcc cc
3724 do
3725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 printf %s "checking for $ac_word... " >&6; }
3729 if test ${ac_cv_prog_CC+y}
3730 then :
3731 printf %s "(cached) " >&6
3732 else $as_nop
3733 if test -n "$CC"; then
3734 ac_cv_prog_CC="$CC" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3738 do
3739 IFS=$as_save_IFS
3740 case $as_dir in #(((
3741 '') as_dir=./ ;;
3742 */) ;;
3743 *) as_dir=$as_dir/ ;;
3744 esac
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 CC=$ac_cv_prog_CC
3758 if test -n "$CC"; then
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3760 printf "%s\n" "$CC" >&6; }
3761 else
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 printf "%s\n" "no" >&6; }
3764 fi
3765
3766
3767 test -n "$CC" && break
3768 done
3769 fi
3770 if test -z "$CC"; then
3771 ac_ct_CC=$CC
3772 for ac_prog in pgcc icc gcc cc
3773 do
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 printf %s "checking for $ac_word... " >&6; }
3778 if test ${ac_cv_prog_ac_ct_CC+y}
3779 then :
3780 printf %s "(cached) " >&6
3781 else $as_nop
3782 if test -n "$ac_ct_CC"; then
3783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3787 do
3788 IFS=$as_save_IFS
3789 case $as_dir in #(((
3790 '') as_dir=./ ;;
3791 */) ;;
3792 *) as_dir=$as_dir/ ;;
3793 esac
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_ac_ct_CC="$ac_prog"
3797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
3800 done
3801 done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3809 printf "%s\n" "$ac_ct_CC" >&6; }
3810 else
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 printf "%s\n" "no" >&6; }
3813 fi
3814
3815
3816 test -n "$ac_ct_CC" && break
3817 done
3818
3819 if test "x$ac_ct_CC" = x; then
3820 CC=""
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828 CC=$ac_ct_CC
3829 fi
3830 fi
3831
3832
3833 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "no acceptable C compiler found in \$PATH
3836 See \`config.log' for more details" "$LINENO" 5; }
3837
3838 # Provide some information about the compiler.
3839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3840 set X $ac_compile
3841 ac_compiler=$2
3842 for ac_option in --version -v -V -qversion -version; do
3843 { { ac_try="$ac_compiler $ac_option >&5"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 printf "%s\n" "$ac_try_echo"; } >&5
3850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3851 ac_status=$?
3852 if test -s conftest.err; then
3853 sed '10a\
3854 ... rest of stderr output deleted ...
3855 10q' conftest.err >conftest.er1
3856 cat conftest.er1 >&5
3857 fi
3858 rm -f conftest.er1 conftest.err
3859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }
3861 done
3862
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865
3866 int
3867 main (void)
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 ac_clean_files_save=$ac_clean_files
3875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3876 # Try to create an executable without -o first, disregard a.out.
3877 # It will help us diagnose broken compilers, and finding out an intuition
3878 # of exeext.
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3880 printf %s "checking whether the C compiler works... " >&6; }
3881 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3882
3883 # The possible output files:
3884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3885
3886 ac_rmfiles=
3887 for ac_file in $ac_files
3888 do
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3892 esac
3893 done
3894 rm -f $ac_rmfiles
3895
3896 if { { ac_try="$ac_link_default"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 printf "%s\n" "$ac_try_echo"; } >&5
3903 (eval "$ac_link_default") 2>&5
3904 ac_status=$?
3905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }
3907 then :
3908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3910 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3911 # so that the user can short-circuit this test for compilers unknown to
3912 # Autoconf.
3913 for ac_file in $ac_files ''
3914 do
3915 test -f "$ac_file" || continue
3916 case $ac_file in
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3918 ;;
3919 [ab].out )
3920 # We found the default executable, but exeext='' is most
3921 # certainly right.
3922 break;;
3923 *.* )
3924 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3925 then :; else
3926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3927 fi
3928 # We set ac_cv_exeext here because the later test for it is not
3929 # safe: cross compilers may not add the suffix if given an `-o'
3930 # argument, so we may need to know it at that point already.
3931 # Even if this section looks crufty: it has the advantage of
3932 # actually working.
3933 break;;
3934 * )
3935 break;;
3936 esac
3937 done
3938 test "$ac_cv_exeext" = no && ac_cv_exeext=
3939
3940 else $as_nop
3941 ac_file=''
3942 fi
3943 if test -z "$ac_file"
3944 then :
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 printf "%s\n" "no" >&6; }
3947 printf "%s\n" "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3951 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3952 as_fn_error 77 "C compiler cannot create executables
3953 See \`config.log' for more details" "$LINENO" 5; }
3954 else $as_nop
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 printf "%s\n" "yes" >&6; }
3957 fi
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3959 printf %s "checking for C compiler default output file name... " >&6; }
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3961 printf "%s\n" "$ac_file" >&6; }
3962 ac_exeext=$ac_cv_exeext
3963
3964 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3965 ac_clean_files=$ac_clean_files_save
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3967 printf %s "checking for suffix of executables... " >&6; }
3968 if { { ac_try="$ac_link"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 printf "%s\n" "$ac_try_echo"; } >&5
3975 (eval "$ac_link") 2>&5
3976 ac_status=$?
3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }
3979 then :
3980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3982 # work properly (i.e., refer to `conftest.exe'), while it won't with
3983 # `rm'.
3984 for ac_file in conftest.exe conftest conftest.*; do
3985 test -f "$ac_file" || continue
3986 case $ac_file in
3987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3989 break;;
3990 * ) break;;
3991 esac
3992 done
3993 else $as_nop
3994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3997 See \`config.log' for more details" "$LINENO" 5; }
3998 fi
3999 rm -f conftest conftest$ac_cv_exeext
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4001 printf "%s\n" "$ac_cv_exeext" >&6; }
4002
4003 rm -f conftest.$ac_ext
4004 EXEEXT=$ac_cv_exeext
4005 ac_exeext=$EXEEXT
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 #include <stdio.h>
4009 int
4010 main (void)
4011 {
4012 FILE *f = fopen ("conftest.out", "w");
4013 return ferror (f) || fclose (f) != 0;
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 ac_clean_files="$ac_clean_files conftest.out"
4020 # Check that the compiler produces executables we can run. If not, either
4021 # the compiler is broken, or we cross compile.
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4023 printf %s "checking whether we are cross compiling... " >&6; }
4024 if test "$cross_compiling" != yes; then
4025 { { ac_try="$ac_link"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4031 printf "%s\n" "$ac_try_echo"; } >&5
4032 (eval "$ac_link") 2>&5
4033 ac_status=$?
4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035 test $ac_status = 0; }
4036 if { ac_try='./conftest$ac_cv_exeext'
4037 { { case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 printf "%s\n" "$ac_try_echo"; } >&5
4043 (eval "$ac_try") 2>&5
4044 ac_status=$?
4045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }; }; then
4047 cross_compiling=no
4048 else
4049 if test "$cross_compiling" = maybe; then
4050 cross_compiling=yes
4051 else
4052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error 77 "cannot run C compiled programs.
4055 If you meant to cross compile, use \`--host'.
4056 See \`config.log' for more details" "$LINENO" 5; }
4057 fi
4058 fi
4059 fi
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4061 printf "%s\n" "$cross_compiling" >&6; }
4062
4063 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4064 ac_clean_files=$ac_clean_files_save
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4066 printf %s "checking for suffix of object files... " >&6; }
4067 if test ${ac_cv_objext+y}
4068 then :
4069 printf %s "(cached) " >&6
4070 else $as_nop
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073
4074 int
4075 main (void)
4076 {
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 rm -f conftest.o conftest.obj
4083 if { { ac_try="$ac_compile"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 printf "%s\n" "$ac_try_echo"; } >&5
4090 (eval "$ac_compile") 2>&5
4091 ac_status=$?
4092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }
4094 then :
4095 for ac_file in conftest.o conftest.obj conftest.*; do
4096 test -f "$ac_file" || continue;
4097 case $ac_file in
4098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4100 break;;
4101 esac
4102 done
4103 else $as_nop
4104 printf "%s\n" "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error $? "cannot compute suffix of object files: cannot compile
4110 See \`config.log' for more details" "$LINENO" 5; }
4111 fi
4112 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4113 fi
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4115 printf "%s\n" "$ac_cv_objext" >&6; }
4116 OBJEXT=$ac_cv_objext
4117 ac_objext=$OBJEXT
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4119 printf %s "checking whether the compiler supports GNU C... " >&6; }
4120 if test ${ac_cv_c_compiler_gnu+y}
4121 then :
4122 printf %s "(cached) " >&6
4123 else $as_nop
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126
4127 int
4128 main (void)
4129 {
4130 #ifndef __GNUC__
4131 choke me
4132 #endif
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"
4139 then :
4140 ac_compiler_gnu=yes
4141 else $as_nop
4142 ac_compiler_gnu=no
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4145 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4146
4147 fi
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4149 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151
4152 if test $ac_compiler_gnu = yes; then
4153 GCC=yes
4154 else
4155 GCC=
4156 fi
4157 ac_test_CFLAGS=${CFLAGS+y}
4158 ac_save_CFLAGS=$CFLAGS
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4160 printf %s "checking whether $CC accepts -g... " >&6; }
4161 if test ${ac_cv_prog_cc_g+y}
4162 then :
4163 printf %s "(cached) " >&6
4164 else $as_nop
4165 ac_save_c_werror_flag=$ac_c_werror_flag
4166 ac_c_werror_flag=yes
4167 ac_cv_prog_cc_g=no
4168 CFLAGS="-g"
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171
4172 int
4173 main (void)
4174 {
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"
4181 then :
4182 ac_cv_prog_cc_g=yes
4183 else $as_nop
4184 CFLAGS=""
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187
4188 int
4189 main (void)
4190 {
4191
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"
4197 then :
4198
4199 else $as_nop
4200 ac_c_werror_flag=$ac_save_c_werror_flag
4201 CFLAGS="-g"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204
4205 int
4206 main (void)
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"
4214 then :
4215 ac_cv_prog_cc_g=yes
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4222 ac_c_werror_flag=$ac_save_c_werror_flag
4223 fi
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4225 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4226 if test $ac_test_CFLAGS; then
4227 CFLAGS=$ac_save_CFLAGS
4228 elif test $ac_cv_prog_cc_g = yes; then
4229 if test "$GCC" = yes; then
4230 CFLAGS="-g -O2"
4231 else
4232 CFLAGS="-g"
4233 fi
4234 else
4235 if test "$GCC" = yes; then
4236 CFLAGS="-O2"
4237 else
4238 CFLAGS=
4239 fi
4240 fi
4241 ac_prog_cc_stdc=no
4242 if test x$ac_prog_cc_stdc = xno
4243 then :
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4245 printf %s "checking for $CC option to enable C11 features... " >&6; }
4246 if test ${ac_cv_prog_cc_c11+y}
4247 then :
4248 printf %s "(cached) " >&6
4249 else $as_nop
4250 ac_cv_prog_cc_c11=no
4251 ac_save_CC=$CC
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 $ac_c_conftest_c11_program
4255 _ACEOF
4256 for ac_arg in '' -std=gnu11
4257 do
4258 CC="$ac_save_CC $ac_arg"
4259 if ac_fn_c_try_compile "$LINENO"
4260 then :
4261 ac_cv_prog_cc_c11=$ac_arg
4262 fi
4263 rm -f core conftest.err conftest.$ac_objext conftest.beam
4264 test "x$ac_cv_prog_cc_c11" != "xno" && break
4265 done
4266 rm -f conftest.$ac_ext
4267 CC=$ac_save_CC
4268 fi
4269
4270 if test "x$ac_cv_prog_cc_c11" = xno
4271 then :
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4273 printf "%s\n" "unsupported" >&6; }
4274 else $as_nop
4275 if test "x$ac_cv_prog_cc_c11" = x
4276 then :
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4278 printf "%s\n" "none needed" >&6; }
4279 else $as_nop
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4281 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4282 CC="$CC $ac_cv_prog_cc_c11"
4283 fi
4284 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4285 ac_prog_cc_stdc=c11
4286 fi
4287 fi
4288 if test x$ac_prog_cc_stdc = xno
4289 then :
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4291 printf %s "checking for $CC option to enable C99 features... " >&6; }
4292 if test ${ac_cv_prog_cc_c99+y}
4293 then :
4294 printf %s "(cached) " >&6
4295 else $as_nop
4296 ac_cv_prog_cc_c99=no
4297 ac_save_CC=$CC
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 $ac_c_conftest_c99_program
4301 _ACEOF
4302 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4303 do
4304 CC="$ac_save_CC $ac_arg"
4305 if ac_fn_c_try_compile "$LINENO"
4306 then :
4307 ac_cv_prog_cc_c99=$ac_arg
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext conftest.beam
4310 test "x$ac_cv_prog_cc_c99" != "xno" && break
4311 done
4312 rm -f conftest.$ac_ext
4313 CC=$ac_save_CC
4314 fi
4315
4316 if test "x$ac_cv_prog_cc_c99" = xno
4317 then :
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4319 printf "%s\n" "unsupported" >&6; }
4320 else $as_nop
4321 if test "x$ac_cv_prog_cc_c99" = x
4322 then :
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4324 printf "%s\n" "none needed" >&6; }
4325 else $as_nop
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4327 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4328 CC="$CC $ac_cv_prog_cc_c99"
4329 fi
4330 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4331 ac_prog_cc_stdc=c99
4332 fi
4333 fi
4334 if test x$ac_prog_cc_stdc = xno
4335 then :
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4337 printf %s "checking for $CC option to enable C89 features... " >&6; }
4338 if test ${ac_cv_prog_cc_c89+y}
4339 then :
4340 printf %s "(cached) " >&6
4341 else $as_nop
4342 ac_cv_prog_cc_c89=no
4343 ac_save_CC=$CC
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346 $ac_c_conftest_c89_program
4347 _ACEOF
4348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4349 do
4350 CC="$ac_save_CC $ac_arg"
4351 if ac_fn_c_try_compile "$LINENO"
4352 then :
4353 ac_cv_prog_cc_c89=$ac_arg
4354 fi
4355 rm -f core conftest.err conftest.$ac_objext conftest.beam
4356 test "x$ac_cv_prog_cc_c89" != "xno" && break
4357 done
4358 rm -f conftest.$ac_ext
4359 CC=$ac_save_CC
4360 fi
4361
4362 if test "x$ac_cv_prog_cc_c89" = xno
4363 then :
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4365 printf "%s\n" "unsupported" >&6; }
4366 else $as_nop
4367 if test "x$ac_cv_prog_cc_c89" = x
4368 then :
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4370 printf "%s\n" "none needed" >&6; }
4371 else $as_nop
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4373 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4374 CC="$CC $ac_cv_prog_cc_c89"
4375 fi
4376 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4377 ac_prog_cc_stdc=c89
4378 fi
4379 fi
4380
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386
4387
4388 ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4394 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4395 if test ${am_cv_prog_cc_c_o+y}
4396 then :
4397 printf %s "(cached) " >&6
4398 else $as_nop
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401
4402 int
4403 main (void)
4404 {
4405
4406 ;
4407 return 0;
4408 }
4409 _ACEOF
4410 # Make sure it works both with $CC and with simple cc.
4411 # Following AC_PROG_CC_C_O, we do the test twice because some
4412 # compilers refuse to overwrite an existing .o file with -o,
4413 # though they will create one.
4414 am_cv_prog_cc_c_o=yes
4415 for am_i in 1 2; do
4416 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4417 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } \
4421 && test -f conftest2.$ac_objext; then
4422 : OK
4423 else
4424 am_cv_prog_cc_c_o=no
4425 break
4426 fi
4427 done
4428 rm -f core conftest*
4429 unset am_i
4430 fi
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4432 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4433 if test "$am_cv_prog_cc_c_o" != yes; then
4434 # Losing compiler, so override with the script.
4435 # FIXME: It is wrong to rewrite CC.
4436 # But if we don't then we get into trouble of one sort or another.
4437 # A longer-term fix would be to have automake use am__CC in this case,
4438 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4439 CC="$am_aux_dir/compile $CC"
4440 fi
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
4447
4448
4449 ac_header= ac_cache=
4450 for ac_item in $ac_header_c_list
4451 do
4452 if test $ac_cache; then
4453 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4454 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4455 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4456 fi
4457 ac_header= ac_cache=
4458 elif test $ac_header; then
4459 ac_cache=$ac_item
4460 else
4461 ac_header=$ac_item
4462 fi
4463 done
4464
4465
4466
4467
4468
4469
4470
4471
4472 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4473 then :
4474
4475 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4476
4477 fi
4478
4479
4480
4481
4482
4483
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4485 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4486 if test ${ac_cv_safe_to_define___extensions__+y}
4487 then :
4488 printf %s "(cached) " >&6
4489 else $as_nop
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492
4493 # define __EXTENSIONS__ 1
4494 $ac_includes_default
4495 int
4496 main (void)
4497 {
4498
4499 ;
4500 return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"
4504 then :
4505 ac_cv_safe_to_define___extensions__=yes
4506 else $as_nop
4507 ac_cv_safe_to_define___extensions__=no
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4510 fi
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4512 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4513
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4515 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4516 if test ${ac_cv_should_define__xopen_source+y}
4517 then :
4518 printf %s "(cached) " >&6
4519 else $as_nop
4520 ac_cv_should_define__xopen_source=no
4521 if test $ac_cv_header_wchar_h = yes
4522 then :
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 #include <wchar.h>
4527 mbstate_t x;
4528 int
4529 main (void)
4530 {
4531
4532 ;
4533 return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_c_try_compile "$LINENO"
4537 then :
4538
4539 else $as_nop
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542
4543 #define _XOPEN_SOURCE 500
4544 #include <wchar.h>
4545 mbstate_t x;
4546 int
4547 main (void)
4548 {
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_compile "$LINENO"
4555 then :
4556 ac_cv_should_define__xopen_source=yes
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4561 fi
4562 fi
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4564 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4565
4566 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4567
4568 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4569
4570 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4571
4572 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4573
4574 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4575
4576 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4577
4578 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4579
4580 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4581
4582 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4583
4584 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4585
4586 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4587
4588 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4589
4590 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4591
4592 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4593
4594 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4595
4596 if test $ac_cv_header_minix_config_h = yes
4597 then :
4598 MINIX=yes
4599 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4600
4601 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4602
4603 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4604
4605 else $as_nop
4606 MINIX=
4607 fi
4608 if test $ac_cv_safe_to_define___extensions__ = yes
4609 then :
4610 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4611
4612 fi
4613 if test $ac_cv_should_define__xopen_source = yes
4614 then :
4615 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4616
4617 fi
4618
4619
4620 # Check whether --enable-coverage was given.
4621 if test ${enable_coverage+y}
4622 then :
4623 enableval=$enable_coverage; CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4624 fi
4625
4626
4627 # Check whether --enable-debug was given.
4628 if test ${enable_debug+y}
4629 then :
4630 enableval=$enable_debug; debug=$enableval
4631 else $as_nop
4632 debug=no
4633 fi
4634
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking debug mode" >&5
4636 printf %s "checking debug mode... " >&6; }
4637 if test "$debug" = "no"
4638 then
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 printf "%s\n" "no" >&6; }
4641
4642 printf "%s\n" "#define NODEBUG /**/" >>confdefs.h
4643
4644 else
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4646 printf "%s\n" "yes" >&6; }
4647
4648 printf "%s\n" "#define DEBUG /**/" >>confdefs.h
4649
4650 debug=yes
4651 fi
4652
4653 # Check whether --enable-profile was given.
4654 if test ${enable_profile+y}
4655 then :
4656 enableval=$enable_profile; profile=$enableval
4657 else $as_nop
4658 profile=no
4659 fi
4660
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking profile mode" >&5
4662 printf %s "checking profile mode... " >&6; }
4663 if test "$profile" = "no"
4664 then
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 printf "%s\n" "no" >&6; }
4667
4668 printf "%s\n" "#define NODEBUG /**/" >>confdefs.h
4669
4670 else
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4672 printf "%s\n" "yes" >&6; }
4673
4674 printf "%s\n" "#define DEBUG /**/" >>confdefs.h
4675
4676 profile=yes
4677 fi
4678
4679
4680
4681 # Check whether --with-libdir-suffix was given.
4682 if test ${with_libdir_suffix+y}
4683 then :
4684 withval=$with_libdir_suffix;
4685 else $as_nop
4686 with_libdir_suffix=
4687 fi
4688
4689
4690
4691 acl_libdirstem="lib$with_libdir_suffix"
4692
4693 if test "$debug" = "yes"
4694 then
4695 CFLAGS="$CFLAGS $DEBUG_CFLAGS"
4696 FCFLAGS="$FCFLAGS $DEBUG_FCFLAGS"
4697 else
4698 CFLAGS="$REL_CFLAGS $CFLAGS"
4699 FCFLAGS="$REL_FCFLAGS $FCFLAGS"
4700 fi
4701
4702 if test "$profile" = "yes"
4703 then
4704 CFLAGS="$PROFILE_CFLAGS $CFLAGS"
4705 FCFLAGS="$PROFILE_FCFLAGS $FCFLAGS"
4706 fi
4707
4708 # Check whether --enable-shared was given.
4709 if test ${enable_shared+y}
4710 then :
4711 enableval=$enable_shared; p=${PACKAGE-default}
4712 case $enableval in
4713 yes) enable_shared=yes ;;
4714 no) enable_shared=no ;;
4715 *)
4716 enable_shared=no
4717 # Look at the argument we got. We use all the common list separators.
4718 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4719 for pkg in $enableval; do
4720 IFS=$lt_save_ifs
4721 if test "X$pkg" = "X$p"; then
4722 enable_shared=yes
4723 fi
4724 done
4725 IFS=$lt_save_ifs
4726 ;;
4727 esac
4728 else $as_nop
4729 enable_shared=yes
4730 fi
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 # Check whether --enable-static was given.
4741 if test ${enable_static+y}
4742 then :
4743 enableval=$enable_static; p=${PACKAGE-default}
4744 case $enableval in
4745 yes) enable_static=yes ;;
4746 no) enable_static=no ;;
4747 *)
4748 enable_static=no
4749 # Look at the argument we got. We use all the common list separators.
4750 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4751 for pkg in $enableval; do
4752 IFS=$lt_save_ifs
4753 if test "X$pkg" = "X$p"; then
4754 enable_static=yes
4755 fi
4756 done
4757 IFS=$lt_save_ifs
4758 ;;
4759 esac
4760 else $as_nop
4761 enable_static=yes
4762 fi
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772 case `pwd` in
4773 *\ * | *\ *)
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4775 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4776 esac
4777
4778
4779
4780 macro_version='2.4.7'
4781 macro_revision='2.4.7'
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796 ltmain=$ac_aux_dir/ltmain.sh
4797
4798 # Backslashify metacharacters that are still active within
4799 # double-quoted strings.
4800 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4801
4802 # Same as above, but do not quote variable references.
4803 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4804
4805 # Sed substitution to delay expansion of an escaped shell variable in a
4806 # double_quote_subst'ed string.
4807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4808
4809 # Sed substitution to delay expansion of an escaped single quote.
4810 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4811
4812 # Sed substitution to avoid accidental globbing in evaled expressions
4813 no_glob_subst='s/\*/\\\*/g'
4814
4815 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4818
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4820 printf %s "checking how to print strings... " >&6; }
4821 # Test print first, because it will be a builtin if present.
4822 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4823 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4824 ECHO='print -r --'
4825 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4826 ECHO='printf %s\n'
4827 else
4828 # Use this function as a fallback that always works.
4829 func_fallback_echo ()
4830 {
4831 eval 'cat <<_LTECHO_EOF
4832 $1
4833 _LTECHO_EOF'
4834 }
4835 ECHO='func_fallback_echo'
4836 fi
4837
4838 # func_echo_all arg...
4839 # Invoke $ECHO with all args, space-separated.
4840 func_echo_all ()
4841 {
4842 $ECHO ""
4843 }
4844
4845 case $ECHO in
4846 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4847 printf "%s\n" "printf" >&6; } ;;
4848 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4849 printf "%s\n" "print -r" >&6; } ;;
4850 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4851 printf "%s\n" "cat" >&6; } ;;
4852 esac
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4868 printf %s "checking for a sed that does not truncate output... " >&6; }
4869 if test ${ac_cv_path_SED+y}
4870 then :
4871 printf %s "(cached) " >&6
4872 else $as_nop
4873 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4874 for ac_i in 1 2 3 4 5 6 7; do
4875 ac_script="$ac_script$as_nl$ac_script"
4876 done
4877 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4878 { ac_script=; unset ac_script;}
4879 if test -z "$SED"; then
4880 ac_path_SED_found=false
4881 # Loop through the user's path and test for each of PROGNAME-LIST
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885 IFS=$as_save_IFS
4886 case $as_dir in #(((
4887 '') as_dir=./ ;;
4888 */) ;;
4889 *) as_dir=$as_dir/ ;;
4890 esac
4891 for ac_prog in sed gsed
4892 do
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4895 as_fn_executable_p "$ac_path_SED" || continue
4896 # Check for GNU ac_path_SED and select it if it is found.
4897 # Check for GNU $ac_path_SED
4898 case `"$ac_path_SED" --version 2>&1` in
4899 *GNU*)
4900 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4901 *)
4902 ac_count=0
4903 printf %s 0123456789 >"conftest.in"
4904 while :
4905 do
4906 cat "conftest.in" "conftest.in" >"conftest.tmp"
4907 mv "conftest.tmp" "conftest.in"
4908 cp "conftest.in" "conftest.nl"
4909 printf "%s\n" '' >> "conftest.nl"
4910 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4912 as_fn_arith $ac_count + 1 && ac_count=$as_val
4913 if test $ac_count -gt ${ac_path_SED_max-0}; then
4914 # Best one so far, save it but keep looking for a better one
4915 ac_cv_path_SED="$ac_path_SED"
4916 ac_path_SED_max=$ac_count
4917 fi
4918 # 10*(2^10) chars as input seems more than enough
4919 test $ac_count -gt 10 && break
4920 done
4921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922 esac
4923
4924 $ac_path_SED_found && break 3
4925 done
4926 done
4927 done
4928 IFS=$as_save_IFS
4929 if test -z "$ac_cv_path_SED"; then
4930 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4931 fi
4932 else
4933 ac_cv_path_SED=$SED
4934 fi
4935
4936 fi
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4938 printf "%s\n" "$ac_cv_path_SED" >&6; }
4939 SED="$ac_cv_path_SED"
4940 rm -f conftest.sed
4941
4942 test -z "$SED" && SED=sed
4943 Xsed="$SED -e 1s/^X//"
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4956 printf %s "checking for grep that handles long lines and -e... " >&6; }
4957 if test ${ac_cv_path_GREP+y}
4958 then :
4959 printf %s "(cached) " >&6
4960 else $as_nop
4961 if test -z "$GREP"; then
4962 ac_path_GREP_found=false
4963 # Loop through the user's path and test for each of PROGNAME-LIST
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4966 do
4967 IFS=$as_save_IFS
4968 case $as_dir in #(((
4969 '') as_dir=./ ;;
4970 */) ;;
4971 *) as_dir=$as_dir/ ;;
4972 esac
4973 for ac_prog in grep ggrep
4974 do
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4977 as_fn_executable_p "$ac_path_GREP" || continue
4978 # Check for GNU ac_path_GREP and select it if it is found.
4979 # Check for GNU $ac_path_GREP
4980 case `"$ac_path_GREP" --version 2>&1` in
4981 *GNU*)
4982 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4983 *)
4984 ac_count=0
4985 printf %s 0123456789 >"conftest.in"
4986 while :
4987 do
4988 cat "conftest.in" "conftest.in" >"conftest.tmp"
4989 mv "conftest.tmp" "conftest.in"
4990 cp "conftest.in" "conftest.nl"
4991 printf "%s\n" 'GREP' >> "conftest.nl"
4992 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4994 as_fn_arith $ac_count + 1 && ac_count=$as_val
4995 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4996 # Best one so far, save it but keep looking for a better one
4997 ac_cv_path_GREP="$ac_path_GREP"
4998 ac_path_GREP_max=$ac_count
4999 fi
5000 # 10*(2^10) chars as input seems more than enough
5001 test $ac_count -gt 10 && break
5002 done
5003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5004 esac
5005
5006 $ac_path_GREP_found && break 3
5007 done
5008 done
5009 done
5010 IFS=$as_save_IFS
5011 if test -z "$ac_cv_path_GREP"; then
5012 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5013 fi
5014 else
5015 ac_cv_path_GREP=$GREP
5016 fi
5017
5018 fi
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5020 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5021 GREP="$ac_cv_path_GREP"
5022
5023
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5025 printf %s "checking for egrep... " >&6; }
5026 if test ${ac_cv_path_EGREP+y}
5027 then :
5028 printf %s "(cached) " >&6
5029 else $as_nop
5030 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5031 then ac_cv_path_EGREP="$GREP -E"
5032 else
5033 if test -z "$EGREP"; then
5034 ac_path_EGREP_found=false
5035 # Loop through the user's path and test for each of PROGNAME-LIST
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5038 do
5039 IFS=$as_save_IFS
5040 case $as_dir in #(((
5041 '') as_dir=./ ;;
5042 */) ;;
5043 *) as_dir=$as_dir/ ;;
5044 esac
5045 for ac_prog in egrep
5046 do
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5049 as_fn_executable_p "$ac_path_EGREP" || continue
5050 # Check for GNU ac_path_EGREP and select it if it is found.
5051 # Check for GNU $ac_path_EGREP
5052 case `"$ac_path_EGREP" --version 2>&1` in
5053 *GNU*)
5054 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5055 *)
5056 ac_count=0
5057 printf %s 0123456789 >"conftest.in"
5058 while :
5059 do
5060 cat "conftest.in" "conftest.in" >"conftest.tmp"
5061 mv "conftest.tmp" "conftest.in"
5062 cp "conftest.in" "conftest.nl"
5063 printf "%s\n" 'EGREP' >> "conftest.nl"
5064 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5066 as_fn_arith $ac_count + 1 && ac_count=$as_val
5067 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5068 # Best one so far, save it but keep looking for a better one
5069 ac_cv_path_EGREP="$ac_path_EGREP"
5070 ac_path_EGREP_max=$ac_count
5071 fi
5072 # 10*(2^10) chars as input seems more than enough
5073 test $ac_count -gt 10 && break
5074 done
5075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5076 esac
5077
5078 $ac_path_EGREP_found && break 3
5079 done
5080 done
5081 done
5082 IFS=$as_save_IFS
5083 if test -z "$ac_cv_path_EGREP"; then
5084 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5085 fi
5086 else
5087 ac_cv_path_EGREP=$EGREP
5088 fi
5089
5090 fi
5091 fi
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5093 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5094 EGREP="$ac_cv_path_EGREP"
5095
5096
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5098 printf %s "checking for fgrep... " >&6; }
5099 if test ${ac_cv_path_FGREP+y}
5100 then :
5101 printf %s "(cached) " >&6
5102 else $as_nop
5103 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5104 then ac_cv_path_FGREP="$GREP -F"
5105 else
5106 if test -z "$FGREP"; then
5107 ac_path_FGREP_found=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 do
5112 IFS=$as_save_IFS
5113 case $as_dir in #(((
5114 '') as_dir=./ ;;
5115 */) ;;
5116 *) as_dir=$as_dir/ ;;
5117 esac
5118 for ac_prog in fgrep
5119 do
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5122 as_fn_executable_p "$ac_path_FGREP" || continue
5123 # Check for GNU ac_path_FGREP and select it if it is found.
5124 # Check for GNU $ac_path_FGREP
5125 case `"$ac_path_FGREP" --version 2>&1` in
5126 *GNU*)
5127 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5128 *)
5129 ac_count=0
5130 printf %s 0123456789 >"conftest.in"
5131 while :
5132 do
5133 cat "conftest.in" "conftest.in" >"conftest.tmp"
5134 mv "conftest.tmp" "conftest.in"
5135 cp "conftest.in" "conftest.nl"
5136 printf "%s\n" 'FGREP' >> "conftest.nl"
5137 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5139 as_fn_arith $ac_count + 1 && ac_count=$as_val
5140 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5141 # Best one so far, save it but keep looking for a better one
5142 ac_cv_path_FGREP="$ac_path_FGREP"
5143 ac_path_FGREP_max=$ac_count
5144 fi
5145 # 10*(2^10) chars as input seems more than enough
5146 test $ac_count -gt 10 && break
5147 done
5148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5149 esac
5150
5151 $ac_path_FGREP_found && break 3
5152 done
5153 done
5154 done
5155 IFS=$as_save_IFS
5156 if test -z "$ac_cv_path_FGREP"; then
5157 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5158 fi
5159 else
5160 ac_cv_path_FGREP=$FGREP
5161 fi
5162
5163 fi
5164 fi
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5166 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5167 FGREP="$ac_cv_path_FGREP"
5168
5169
5170 test -z "$GREP" && GREP=grep
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190 # Check whether --with-gnu-ld was given.
5191 if test ${with_gnu_ld+y}
5192 then :
5193 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5194 else $as_nop
5195 with_gnu_ld=no
5196 fi
5197
5198 ac_prog=ld
5199 if test yes = "$GCC"; then
5200 # Check if gcc -print-prog-name=ld gives a path.
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5202 printf %s "checking for ld used by $CC... " >&6; }
5203 case $host in
5204 *-*-mingw*)
5205 # gcc leaves a trailing carriage return, which upsets mingw
5206 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5207 *)
5208 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5209 esac
5210 case $ac_prog in
5211 # Accept absolute paths.
5212 [\\/]* | ?:[\\/]*)
5213 re_direlt='/[^/][^/]*/\.\./'
5214 # Canonicalize the pathname of ld
5215 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5216 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5217 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5218 done
5219 test -z "$LD" && LD=$ac_prog
5220 ;;
5221 "")
5222 # If it fails, then pretend we aren't using GCC.
5223 ac_prog=ld
5224 ;;
5225 *)
5226 # If it is relative, then search for the first ld in PATH.
5227 with_gnu_ld=unknown
5228 ;;
5229 esac
5230 elif test yes = "$with_gnu_ld"; then
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5232 printf %s "checking for GNU ld... " >&6; }
5233 else
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5235 printf %s "checking for non-GNU ld... " >&6; }
5236 fi
5237 if test ${lt_cv_path_LD+y}
5238 then :
5239 printf %s "(cached) " >&6
5240 else $as_nop
5241 if test -z "$LD"; then
5242 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5243 for ac_dir in $PATH; do
5244 IFS=$lt_save_ifs
5245 test -z "$ac_dir" && ac_dir=.
5246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5247 lt_cv_path_LD=$ac_dir/$ac_prog
5248 # Check to see if the program is GNU ld. I'd rather use --version,
5249 # but apparently some variants of GNU ld only accept -v.
5250 # Break only if it was the GNU/non-GNU ld that we prefer.
5251 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253 test no != "$with_gnu_ld" && break
5254 ;;
5255 *)
5256 test yes != "$with_gnu_ld" && break
5257 ;;
5258 esac
5259 fi
5260 done
5261 IFS=$lt_save_ifs
5262 else
5263 lt_cv_path_LD=$LD # Let the user override the test with a path.
5264 fi
5265 fi
5266
5267 LD=$lt_cv_path_LD
5268 if test -n "$LD"; then
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5270 printf "%s\n" "$LD" >&6; }
5271 else
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 printf "%s\n" "no" >&6; }
5274 fi
5275 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5277 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5278 if test ${lt_cv_prog_gnu_ld+y}
5279 then :
5280 printf %s "(cached) " >&6
5281 else $as_nop
5282 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5283 case `$LD -v 2>&1 </dev/null` in
5284 *GNU* | *'with BFD'*)
5285 lt_cv_prog_gnu_ld=yes
5286 ;;
5287 *)
5288 lt_cv_prog_gnu_ld=no
5289 ;;
5290 esac
5291 fi
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5293 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5294 with_gnu_ld=$lt_cv_prog_gnu_ld
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5305 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5306 if test ${lt_cv_path_NM+y}
5307 then :
5308 printf %s "(cached) " >&6
5309 else $as_nop
5310 if test -n "$NM"; then
5311 # Let the user override the test.
5312 lt_cv_path_NM=$NM
5313 else
5314 lt_nm_to_check=${ac_tool_prefix}nm
5315 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5316 lt_nm_to_check="$lt_nm_to_check nm"
5317 fi
5318 for lt_tmp_nm in $lt_nm_to_check; do
5319 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5320 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5321 IFS=$lt_save_ifs
5322 test -z "$ac_dir" && ac_dir=.
5323 tmp_nm=$ac_dir/$lt_tmp_nm
5324 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5325 # Check to see if the nm accepts a BSD-compat flag.
5326 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5327 # nm: unknown option "B" ignored
5328 # Tru64's nm complains that /dev/null is an invalid object file
5329 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5330 case $build_os in
5331 mingw*) lt_bad_file=conftest.nm/nofile ;;
5332 *) lt_bad_file=/dev/null ;;
5333 esac
5334 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5335 *$lt_bad_file* | *'Invalid file or object type'*)
5336 lt_cv_path_NM="$tmp_nm -B"
5337 break 2
5338 ;;
5339 *)
5340 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5341 */dev/null*)
5342 lt_cv_path_NM="$tmp_nm -p"
5343 break 2
5344 ;;
5345 *)
5346 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5347 continue # so that we can try to find one that supports BSD flags
5348 ;;
5349 esac
5350 ;;
5351 esac
5352 fi
5353 done
5354 IFS=$lt_save_ifs
5355 done
5356 : ${lt_cv_path_NM=no}
5357 fi
5358 fi
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5360 printf "%s\n" "$lt_cv_path_NM" >&6; }
5361 if test no != "$lt_cv_path_NM"; then
5362 NM=$lt_cv_path_NM
5363 else
5364 # Didn't find any BSD compatible name lister, look for dumpbin.
5365 if test -n "$DUMPBIN"; then :
5366 # Let the user override the test.
5367 else
5368 if test -n "$ac_tool_prefix"; then
5369 for ac_prog in dumpbin "link -dump"
5370 do
5371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 printf %s "checking for $ac_word... " >&6; }
5375 if test ${ac_cv_prog_DUMPBIN+y}
5376 then :
5377 printf %s "(cached) " >&6
5378 else $as_nop
5379 if test -n "$DUMPBIN"; then
5380 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385 IFS=$as_save_IFS
5386 case $as_dir in #(((
5387 '') as_dir=./ ;;
5388 */) ;;
5389 *) as_dir=$as_dir/ ;;
5390 esac
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi
5402 fi
5403 DUMPBIN=$ac_cv_prog_DUMPBIN
5404 if test -n "$DUMPBIN"; then
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5406 printf "%s\n" "$DUMPBIN" >&6; }
5407 else
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 printf "%s\n" "no" >&6; }
5410 fi
5411
5412
5413 test -n "$DUMPBIN" && break
5414 done
5415 fi
5416 if test -z "$DUMPBIN"; then
5417 ac_ct_DUMPBIN=$DUMPBIN
5418 for ac_prog in dumpbin "link -dump"
5419 do
5420 # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 printf %s "checking for $ac_word... " >&6; }
5424 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5425 then :
5426 printf %s "(cached) " >&6
5427 else $as_nop
5428 if test -n "$ac_ct_DUMPBIN"; then
5429 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 case $as_dir in #(((
5436 '') as_dir=./ ;;
5437 */) ;;
5438 *) as_dir=$as_dir/ ;;
5439 esac
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5442 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 fi
5451 fi
5452 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5453 if test -n "$ac_ct_DUMPBIN"; then
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5455 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5456 else
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 printf "%s\n" "no" >&6; }
5459 fi
5460
5461
5462 test -n "$ac_ct_DUMPBIN" && break
5463 done
5464
5465 if test "x$ac_ct_DUMPBIN" = x; then
5466 DUMPBIN=":"
5467 else
5468 case $cross_compiling:$ac_tool_warned in
5469 yes:)
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5471 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472 ac_tool_warned=yes ;;
5473 esac
5474 DUMPBIN=$ac_ct_DUMPBIN
5475 fi
5476 fi
5477
5478 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5479 *COFF*)
5480 DUMPBIN="$DUMPBIN -symbols -headers"
5481 ;;
5482 *)
5483 DUMPBIN=:
5484 ;;
5485 esac
5486 fi
5487
5488 if test : != "$DUMPBIN"; then
5489 NM=$DUMPBIN
5490 fi
5491 fi
5492 test -z "$NM" && NM=nm
5493
5494
5495
5496
5497
5498
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5500 printf %s "checking the name lister ($NM) interface... " >&6; }
5501 if test ${lt_cv_nm_interface+y}
5502 then :
5503 printf %s "(cached) " >&6
5504 else $as_nop
5505 lt_cv_nm_interface="BSD nm"
5506 echo "int some_variable = 0;" > conftest.$ac_ext
5507 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5508 (eval "$ac_compile" 2>conftest.err)
5509 cat conftest.err >&5
5510 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5511 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5512 cat conftest.err >&5
5513 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5514 cat conftest.out >&5
5515 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5516 lt_cv_nm_interface="MS dumpbin"
5517 fi
5518 rm -f conftest*
5519 fi
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5521 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5522
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5524 printf %s "checking whether ln -s works... " >&6; }
5525 LN_S=$as_ln_s
5526 if test "$LN_S" = "ln -s"; then
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528 printf "%s\n" "yes" >&6; }
5529 else
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5531 printf "%s\n" "no, using $LN_S" >&6; }
5532 fi
5533
5534 # find the maximum length of command line arguments
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5536 printf %s "checking the maximum length of command line arguments... " >&6; }
5537 if test ${lt_cv_sys_max_cmd_len+y}
5538 then :
5539 printf %s "(cached) " >&6
5540 else $as_nop
5541 i=0
5542 teststring=ABCD
5543
5544 case $build_os in
5545 msdosdjgpp*)
5546 # On DJGPP, this test can blow up pretty badly due to problems in libc
5547 # (any single argument exceeding 2000 bytes causes a buffer overrun
5548 # during glob expansion). Even if it were fixed, the result of this
5549 # check would be larger than it should be.
5550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5551 ;;
5552
5553 gnu*)
5554 # Under GNU Hurd, this test is not required because there is
5555 # no limit to the length of command line arguments.
5556 # Libtool will interpret -1 as no limit whatsoever
5557 lt_cv_sys_max_cmd_len=-1;
5558 ;;
5559
5560 cygwin* | mingw* | cegcc*)
5561 # On Win9x/ME, this test blows up -- it succeeds, but takes
5562 # about 5 minutes as the teststring grows exponentially.
5563 # Worse, since 9x/ME are not pre-emptively multitasking,
5564 # you end up with a "frozen" computer, even though with patience
5565 # the test eventually succeeds (with a max line length of 256k).
5566 # Instead, let's just punt: use the minimum linelength reported by
5567 # all of the supported platforms: 8192 (on NT/2K/XP).
5568 lt_cv_sys_max_cmd_len=8192;
5569 ;;
5570
5571 mint*)
5572 # On MiNT this can take a long time and run out of memory.
5573 lt_cv_sys_max_cmd_len=8192;
5574 ;;
5575
5576 amigaos*)
5577 # On AmigaOS with pdksh, this test takes hours, literally.
5578 # So we just punt and use a minimum line length of 8192.
5579 lt_cv_sys_max_cmd_len=8192;
5580 ;;
5581
5582 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5583 # This has been around since 386BSD, at least. Likely further.
5584 if test -x /sbin/sysctl; then
5585 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5586 elif test -x /usr/sbin/sysctl; then
5587 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5588 else
5589 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5590 fi
5591 # And add a safety zone
5592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5594 ;;
5595
5596 interix*)
5597 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5598 lt_cv_sys_max_cmd_len=196608
5599 ;;
5600
5601 os2*)
5602 # The test takes a long time on OS/2.
5603 lt_cv_sys_max_cmd_len=8192
5604 ;;
5605
5606 osf*)
5607 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5608 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5609 # nice to cause kernel panics so lets avoid the loop below.
5610 # First set a reasonable default.
5611 lt_cv_sys_max_cmd_len=16384
5612 #
5613 if test -x /sbin/sysconfig; then
5614 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5615 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5616 esac
5617 fi
5618 ;;
5619 sco3.2v5*)
5620 lt_cv_sys_max_cmd_len=102400
5621 ;;
5622 sysv5* | sco5v6* | sysv4.2uw2*)
5623 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5624 if test -n "$kargmax"; then
5625 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5626 else
5627 lt_cv_sys_max_cmd_len=32768
5628 fi
5629 ;;
5630 *)
5631 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5632 if test -n "$lt_cv_sys_max_cmd_len" && \
5633 test undefined != "$lt_cv_sys_max_cmd_len"; then
5634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5636 else
5637 # Make teststring a little bigger before we do anything with it.
5638 # a 1K string should be a reasonable start.
5639 for i in 1 2 3 4 5 6 7 8; do
5640 teststring=$teststring$teststring
5641 done
5642 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5643 # If test is not a shell built-in, we'll probably end up computing a
5644 # maximum length that is only half of the actual maximum length, but
5645 # we can't tell.
5646 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5647 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5648 test 17 != "$i" # 1/2 MB should be enough
5649 do
5650 i=`expr $i + 1`
5651 teststring=$teststring$teststring
5652 done
5653 # Only check the string length outside the loop.
5654 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5655 teststring=
5656 # Add a significant safety factor because C++ compilers can tack on
5657 # massive amounts of additional arguments before passing them to the
5658 # linker. It appears as though 1/2 is a usable value.
5659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5660 fi
5661 ;;
5662 esac
5663
5664 fi
5665
5666 if test -n "$lt_cv_sys_max_cmd_len"; then
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5668 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5669 else
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5671 printf "%s\n" "none" >&6; }
5672 fi
5673 max_cmd_len=$lt_cv_sys_max_cmd_len
5674
5675
5676
5677
5678
5679
5680 : ${CP="cp -f"}
5681 : ${MV="mv -f"}
5682 : ${RM="rm -f"}
5683
5684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5685 lt_unset=unset
5686 else
5687 lt_unset=false
5688 fi
5689
5690
5691
5692
5693
5694 # test EBCDIC or ASCII
5695 case `echo X|tr X '\101'` in
5696 A) # ASCII based system
5697 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5698 lt_SP2NL='tr \040 \012'
5699 lt_NL2SP='tr \015\012 \040\040'
5700 ;;
5701 *) # EBCDIC based system
5702 lt_SP2NL='tr \100 \n'
5703 lt_NL2SP='tr \r\n \100\100'
5704 ;;
5705 esac
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5716 printf %s "checking how to convert $build file names to $host format... " >&6; }
5717 if test ${lt_cv_to_host_file_cmd+y}
5718 then :
5719 printf %s "(cached) " >&6
5720 else $as_nop
5721 case $host in
5722 *-*-mingw* )
5723 case $build in
5724 *-*-mingw* ) # actually msys
5725 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5726 ;;
5727 *-*-cygwin* )
5728 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5729 ;;
5730 * ) # otherwise, assume *nix
5731 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5732 ;;
5733 esac
5734 ;;
5735 *-*-cygwin* )
5736 case $build in
5737 *-*-mingw* ) # actually msys
5738 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5739 ;;
5740 *-*-cygwin* )
5741 lt_cv_to_host_file_cmd=func_convert_file_noop
5742 ;;
5743 * ) # otherwise, assume *nix
5744 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5745 ;;
5746 esac
5747 ;;
5748 * ) # unhandled hosts (and "normal" native builds)
5749 lt_cv_to_host_file_cmd=func_convert_file_noop
5750 ;;
5751 esac
5752
5753 fi
5754
5755 to_host_file_cmd=$lt_cv_to_host_file_cmd
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5757 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5758
5759
5760
5761
5762
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5764 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5765 if test ${lt_cv_to_tool_file_cmd+y}
5766 then :
5767 printf %s "(cached) " >&6
5768 else $as_nop
5769 #assume ordinary cross tools, or native build.
5770 lt_cv_to_tool_file_cmd=func_convert_file_noop
5771 case $host in
5772 *-*-mingw* )
5773 case $build in
5774 *-*-mingw* ) # actually msys
5775 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5776 ;;
5777 esac
5778 ;;
5779 esac
5780
5781 fi
5782
5783 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5785 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5786
5787
5788
5789
5790
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5792 printf %s "checking for $LD option to reload object files... " >&6; }
5793 if test ${lt_cv_ld_reload_flag+y}
5794 then :
5795 printf %s "(cached) " >&6
5796 else $as_nop
5797 lt_cv_ld_reload_flag='-r'
5798 fi
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5800 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5801 reload_flag=$lt_cv_ld_reload_flag
5802 case $reload_flag in
5803 "" | " "*) ;;
5804 *) reload_flag=" $reload_flag" ;;
5805 esac
5806 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5807 case $host_os in
5808 cygwin* | mingw* | pw32* | cegcc*)
5809 if test yes != "$GCC"; then
5810 reload_cmds=false
5811 fi
5812 ;;
5813 darwin*)
5814 if test yes = "$GCC"; then
5815 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5816 else
5817 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5818 fi
5819 ;;
5820 esac
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830 if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5832 set dummy ${ac_tool_prefix}file; ac_word=$2
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 printf %s "checking for $ac_word... " >&6; }
5835 if test ${ac_cv_prog_FILECMD+y}
5836 then :
5837 printf %s "(cached) " >&6
5838 else $as_nop
5839 if test -n "$FILECMD"; then
5840 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 case $as_dir in #(((
5847 '') as_dir=./ ;;
5848 */) ;;
5849 *) as_dir=$as_dir/ ;;
5850 esac
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5853 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 FILECMD=$ac_cv_prog_FILECMD
5864 if test -n "$FILECMD"; then
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5866 printf "%s\n" "$FILECMD" >&6; }
5867 else
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 printf "%s\n" "no" >&6; }
5870 fi
5871
5872
5873 fi
5874 if test -z "$ac_cv_prog_FILECMD"; then
5875 ac_ct_FILECMD=$FILECMD
5876 # Extract the first word of "file", so it can be a program name with args.
5877 set dummy file; ac_word=$2
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 printf %s "checking for $ac_word... " >&6; }
5880 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5881 then :
5882 printf %s "(cached) " >&6
5883 else $as_nop
5884 if test -n "$ac_ct_FILECMD"; then
5885 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 case $as_dir in #(((
5892 '') as_dir=./ ;;
5893 */) ;;
5894 *) as_dir=$as_dir/ ;;
5895 esac
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5898 ac_cv_prog_ac_ct_FILECMD="file"
5899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5900 break 2
5901 fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5909 if test -n "$ac_ct_FILECMD"; then
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5911 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5912 else
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 printf "%s\n" "no" >&6; }
5915 fi
5916
5917 if test "x$ac_ct_FILECMD" = x; then
5918 FILECMD=":"
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921 yes:)
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned=yes ;;
5925 esac
5926 FILECMD=$ac_ct_FILECMD
5927 fi
5928 else
5929 FILECMD="$ac_cv_prog_FILECMD"
5930 fi
5931
5932
5933
5934
5935
5936
5937
5938 if test -n "$ac_tool_prefix"; then
5939 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5940 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 printf %s "checking for $ac_word... " >&6; }
5943 if test ${ac_cv_prog_OBJDUMP+y}
5944 then :
5945 printf %s "(cached) " >&6
5946 else $as_nop
5947 if test -n "$OBJDUMP"; then
5948 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953 IFS=$as_save_IFS
5954 case $as_dir in #(((
5955 '') as_dir=./ ;;
5956 */) ;;
5957 *) as_dir=$as_dir/ ;;
5958 esac
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 OBJDUMP=$ac_cv_prog_OBJDUMP
5972 if test -n "$OBJDUMP"; then
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5974 printf "%s\n" "$OBJDUMP" >&6; }
5975 else
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 printf "%s\n" "no" >&6; }
5978 fi
5979
5980
5981 fi
5982 if test -z "$ac_cv_prog_OBJDUMP"; then
5983 ac_ct_OBJDUMP=$OBJDUMP
5984 # Extract the first word of "objdump", so it can be a program name with args.
5985 set dummy objdump; ac_word=$2
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 printf %s "checking for $ac_word... " >&6; }
5988 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5989 then :
5990 printf %s "(cached) " >&6
5991 else $as_nop
5992 if test -n "$ac_ct_OBJDUMP"; then
5993 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998 IFS=$as_save_IFS
5999 case $as_dir in #(((
6000 '') as_dir=./ ;;
6001 */) ;;
6002 *) as_dir=$as_dir/ ;;
6003 esac
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6006 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010 done
6011 done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6017 if test -n "$ac_ct_OBJDUMP"; then
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6019 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6020 else
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 printf "%s\n" "no" >&6; }
6023 fi
6024
6025 if test "x$ac_ct_OBJDUMP" = x; then
6026 OBJDUMP="false"
6027 else
6028 case $cross_compiling:$ac_tool_warned in
6029 yes:)
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6032 ac_tool_warned=yes ;;
6033 esac
6034 OBJDUMP=$ac_ct_OBJDUMP
6035 fi
6036 else
6037 OBJDUMP="$ac_cv_prog_OBJDUMP"
6038 fi
6039
6040 test -z "$OBJDUMP" && OBJDUMP=objdump
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6051 printf %s "checking how to recognize dependent libraries... " >&6; }
6052 if test ${lt_cv_deplibs_check_method+y}
6053 then :
6054 printf %s "(cached) " >&6
6055 else $as_nop
6056 lt_cv_file_magic_cmd='$MAGIC_CMD'
6057 lt_cv_file_magic_test_file=
6058 lt_cv_deplibs_check_method='unknown'
6059 # Need to set the preceding variable on all platforms that support
6060 # interlibrary dependencies.
6061 # 'none' -- dependencies not supported.
6062 # 'unknown' -- same as none, but documents that we really don't know.
6063 # 'pass_all' -- all dependencies passed with no checks.
6064 # 'test_compile' -- check by making test program.
6065 # 'file_magic [[regex]]' -- check by looking for files in library path
6066 # that responds to the $file_magic_cmd with a given extended regex.
6067 # If you have 'file' or equivalent on your system and you're not sure
6068 # whether 'pass_all' will *always* work, you probably want this one.
6069
6070 case $host_os in
6071 aix[4-9]*)
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074
6075 beos*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079 bsdi[45]*)
6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6081 lt_cv_file_magic_cmd='$FILECMD -L'
6082 lt_cv_file_magic_test_file=/shlib/libc.so
6083 ;;
6084
6085 cygwin*)
6086 # func_win32_libid is a shell function defined in ltmain.sh
6087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6088 lt_cv_file_magic_cmd='func_win32_libid'
6089 ;;
6090
6091 mingw* | pw32*)
6092 # Base MSYS/MinGW do not provide the 'file' command needed by
6093 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6094 # unless we find 'file', for example because we are cross-compiling.
6095 if ( file / ) >/dev/null 2>&1; then
6096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6097 lt_cv_file_magic_cmd='func_win32_libid'
6098 else
6099 # Keep this pattern in sync with the one in func_win32_libid.
6100 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6101 lt_cv_file_magic_cmd='$OBJDUMP -f'
6102 fi
6103 ;;
6104
6105 cegcc*)
6106 # use the weaker test based on 'objdump'. See mingw*.
6107 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6108 lt_cv_file_magic_cmd='$OBJDUMP -f'
6109 ;;
6110
6111 darwin* | rhapsody*)
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114
6115 freebsd* | dragonfly* | midnightbsd*)
6116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6117 case $host_cpu in
6118 i*86 )
6119 # Not sure whether the presence of OpenBSD here was a mistake.
6120 # Let's accept both of them until this is cleared up.
6121 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6122 lt_cv_file_magic_cmd=$FILECMD
6123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6124 ;;
6125 esac
6126 else
6127 lt_cv_deplibs_check_method=pass_all
6128 fi
6129 ;;
6130
6131 haiku*)
6132 lt_cv_deplibs_check_method=pass_all
6133 ;;
6134
6135 hpux10.20* | hpux11*)
6136 lt_cv_file_magic_cmd=$FILECMD
6137 case $host_cpu in
6138 ia64*)
6139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6140 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6141 ;;
6142 hppa*64*)
6143 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]'
6144 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6145 ;;
6146 *)
6147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6148 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6149 ;;
6150 esac
6151 ;;
6152
6153 interix[3-9]*)
6154 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6156 ;;
6157
6158 irix5* | irix6* | nonstopux*)
6159 case $LD in
6160 *-32|*"-32 ") libmagic=32-bit;;
6161 *-n32|*"-n32 ") libmagic=N32;;
6162 *-64|*"-64 ") libmagic=64-bit;;
6163 *) libmagic=never-match;;
6164 esac
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167
6168 # This must be glibc/ELF.
6169 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172
6173 netbsd* | netbsdelf*-gnu)
6174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6176 else
6177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6178 fi
6179 ;;
6180
6181 newos6*)
6182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6183 lt_cv_file_magic_cmd=$FILECMD
6184 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6185 ;;
6186
6187 *nto* | *qnx*)
6188 lt_cv_deplibs_check_method=pass_all
6189 ;;
6190
6191 openbsd* | bitrig*)
6192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6194 else
6195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6196 fi
6197 ;;
6198
6199 osf3* | osf4* | osf5*)
6200 lt_cv_deplibs_check_method=pass_all
6201 ;;
6202
6203 rdos*)
6204 lt_cv_deplibs_check_method=pass_all
6205 ;;
6206
6207 solaris*)
6208 lt_cv_deplibs_check_method=pass_all
6209 ;;
6210
6211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6212 lt_cv_deplibs_check_method=pass_all
6213 ;;
6214
6215 sysv4 | sysv4.3*)
6216 case $host_vendor in
6217 motorola)
6218 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]'
6219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6220 ;;
6221 ncr)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224 sequent)
6225 lt_cv_file_magic_cmd='/bin/file'
6226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6227 ;;
6228 sni)
6229 lt_cv_file_magic_cmd='/bin/file'
6230 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6231 lt_cv_file_magic_test_file=/lib/libc.so
6232 ;;
6233 siemens)
6234 lt_cv_deplibs_check_method=pass_all
6235 ;;
6236 pc)
6237 lt_cv_deplibs_check_method=pass_all
6238 ;;
6239 esac
6240 ;;
6241
6242 tpf*)
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245 os2*)
6246 lt_cv_deplibs_check_method=pass_all
6247 ;;
6248 esac
6249
6250 fi
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6252 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6253
6254 file_magic_glob=
6255 want_nocaseglob=no
6256 if test "$build" = "$host"; then
6257 case $host_os in
6258 mingw* | pw32*)
6259 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6260 want_nocaseglob=yes
6261 else
6262 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6263 fi
6264 ;;
6265 esac
6266 fi
6267
6268 file_magic_cmd=$lt_cv_file_magic_cmd
6269 deplibs_check_method=$lt_cv_deplibs_check_method
6270 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6295 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 printf %s "checking for $ac_word... " >&6; }
6298 if test ${ac_cv_prog_DLLTOOL+y}
6299 then :
6300 printf %s "(cached) " >&6
6301 else $as_nop
6302 if test -n "$DLLTOOL"; then
6303 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308 IFS=$as_save_IFS
6309 case $as_dir in #(((
6310 '') as_dir=./ ;;
6311 */) ;;
6312 *) as_dir=$as_dir/ ;;
6313 esac
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 DLLTOOL=$ac_cv_prog_DLLTOOL
6327 if test -n "$DLLTOOL"; then
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6329 printf "%s\n" "$DLLTOOL" >&6; }
6330 else
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 printf "%s\n" "no" >&6; }
6333 fi
6334
6335
6336 fi
6337 if test -z "$ac_cv_prog_DLLTOOL"; then
6338 ac_ct_DLLTOOL=$DLLTOOL
6339 # Extract the first word of "dlltool", so it can be a program name with args.
6340 set dummy dlltool; ac_word=$2
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 printf %s "checking for $ac_word... " >&6; }
6343 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6344 then :
6345 printf %s "(cached) " >&6
6346 else $as_nop
6347 if test -n "$ac_ct_DLLTOOL"; then
6348 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 case $as_dir in #(((
6355 '') as_dir=./ ;;
6356 */) ;;
6357 *) as_dir=$as_dir/ ;;
6358 esac
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6372 if test -n "$ac_ct_DLLTOOL"; then
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6374 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6375 else
6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 printf "%s\n" "no" >&6; }
6378 fi
6379
6380 if test "x$ac_ct_DLLTOOL" = x; then
6381 DLLTOOL="false"
6382 else
6383 case $cross_compiling:$ac_tool_warned in
6384 yes:)
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned=yes ;;
6388 esac
6389 DLLTOOL=$ac_ct_DLLTOOL
6390 fi
6391 else
6392 DLLTOOL="$ac_cv_prog_DLLTOOL"
6393 fi
6394
6395 test -z "$DLLTOOL" && DLLTOOL=dlltool
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6407 printf %s "checking how to associate runtime and link libraries... " >&6; }
6408 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6409 then :
6410 printf %s "(cached) " >&6
6411 else $as_nop
6412 lt_cv_sharedlib_from_linklib_cmd='unknown'
6413
6414 case $host_os in
6415 cygwin* | mingw* | pw32* | cegcc*)
6416 # two different shell functions defined in ltmain.sh;
6417 # decide which one to use based on capabilities of $DLLTOOL
6418 case `$DLLTOOL --help 2>&1` in
6419 *--identify-strict*)
6420 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6421 ;;
6422 *)
6423 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6424 ;;
6425 esac
6426 ;;
6427 *)
6428 # fallback: assume linklib IS sharedlib
6429 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6430 ;;
6431 esac
6432
6433 fi
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6435 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6436 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6437 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6438
6439
6440
6441
6442
6443
6444
6445 if test -n "$ac_tool_prefix"; then
6446 for ac_prog in ar
6447 do
6448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 printf %s "checking for $ac_word... " >&6; }
6452 if test ${ac_cv_prog_AR+y}
6453 then :
6454 printf %s "(cached) " >&6
6455 else $as_nop
6456 if test -n "$AR"; then
6457 ac_cv_prog_AR="$AR" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462 IFS=$as_save_IFS
6463 case $as_dir in #(((
6464 '') as_dir=./ ;;
6465 */) ;;
6466 *) as_dir=$as_dir/ ;;
6467 esac
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6472 break 2
6473 fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 AR=$ac_cv_prog_AR
6481 if test -n "$AR"; then
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6483 printf "%s\n" "$AR" >&6; }
6484 else
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 printf "%s\n" "no" >&6; }
6487 fi
6488
6489
6490 test -n "$AR" && break
6491 done
6492 fi
6493 if test -z "$AR"; then
6494 ac_ct_AR=$AR
6495 for ac_prog in ar
6496 do
6497 # Extract the first word of "$ac_prog", so it can be a program name with args.
6498 set dummy $ac_prog; ac_word=$2
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 printf %s "checking for $ac_word... " >&6; }
6501 if test ${ac_cv_prog_ac_ct_AR+y}
6502 then :
6503 printf %s "(cached) " >&6
6504 else $as_nop
6505 if test -n "$ac_ct_AR"; then
6506 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511 IFS=$as_save_IFS
6512 case $as_dir in #(((
6513 '') as_dir=./ ;;
6514 */) ;;
6515 *) as_dir=$as_dir/ ;;
6516 esac
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_ac_ct_AR="$ac_prog"
6520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6521 break 2
6522 fi
6523 done
6524 done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6530 if test -n "$ac_ct_AR"; then
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6532 printf "%s\n" "$ac_ct_AR" >&6; }
6533 else
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 printf "%s\n" "no" >&6; }
6536 fi
6537
6538
6539 test -n "$ac_ct_AR" && break
6540 done
6541
6542 if test "x$ac_ct_AR" = x; then
6543 AR="false"
6544 else
6545 case $cross_compiling:$ac_tool_warned in
6546 yes:)
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6548 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6549 ac_tool_warned=yes ;;
6550 esac
6551 AR=$ac_ct_AR
6552 fi
6553 fi
6554
6555 : ${AR=ar}
6556
6557
6558
6559
6560
6561
6562 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6563 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6564 # higher priority because thats what people were doing historically (setting
6565 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6566 # variable obsoleted/removed.
6567
6568 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6569 lt_ar_flags=$AR_FLAGS
6570
6571
6572
6573
6574
6575
6576 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6577 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6578
6579
6580
6581
6582
6583
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6585 printf %s "checking for archiver @FILE support... " >&6; }
6586 if test ${lt_cv_ar_at_file+y}
6587 then :
6588 printf %s "(cached) " >&6
6589 else $as_nop
6590 lt_cv_ar_at_file=no
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593
6594 int
6595 main (void)
6596 {
6597
6598 ;
6599 return 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"
6603 then :
6604 echo conftest.$ac_objext > conftest.lst
6605 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6607 (eval $lt_ar_try) 2>&5
6608 ac_status=$?
6609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610 test $ac_status = 0; }
6611 if test 0 -eq "$ac_status"; then
6612 # Ensure the archiver fails upon bogus file names.
6613 rm -f conftest.$ac_objext libconftest.a
6614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6615 (eval $lt_ar_try) 2>&5
6616 ac_status=$?
6617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6618 test $ac_status = 0; }
6619 if test 0 -ne "$ac_status"; then
6620 lt_cv_ar_at_file=@
6621 fi
6622 fi
6623 rm -f conftest.* libconftest.a
6624
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6627
6628 fi
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6630 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6631
6632 if test no = "$lt_cv_ar_at_file"; then
6633 archiver_list_spec=
6634 else
6635 archiver_list_spec=$lt_cv_ar_at_file
6636 fi
6637
6638
6639
6640
6641
6642
6643
6644 if test -n "$ac_tool_prefix"; then
6645 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6646 set dummy ${ac_tool_prefix}strip; ac_word=$2
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 printf %s "checking for $ac_word... " >&6; }
6649 if test ${ac_cv_prog_STRIP+y}
6650 then :
6651 printf %s "(cached) " >&6
6652 else $as_nop
6653 if test -n "$STRIP"; then
6654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659 IFS=$as_save_IFS
6660 case $as_dir in #(((
6661 '') as_dir=./ ;;
6662 */) ;;
6663 *) as_dir=$as_dir/ ;;
6664 esac
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6667 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 STRIP=$ac_cv_prog_STRIP
6678 if test -n "$STRIP"; then
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6680 printf "%s\n" "$STRIP" >&6; }
6681 else
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 printf "%s\n" "no" >&6; }
6684 fi
6685
6686
6687 fi
6688 if test -z "$ac_cv_prog_STRIP"; then
6689 ac_ct_STRIP=$STRIP
6690 # Extract the first word of "strip", so it can be a program name with args.
6691 set dummy strip; ac_word=$2
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 printf %s "checking for $ac_word... " >&6; }
6694 if test ${ac_cv_prog_ac_ct_STRIP+y}
6695 then :
6696 printf %s "(cached) " >&6
6697 else $as_nop
6698 if test -n "$ac_ct_STRIP"; then
6699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704 IFS=$as_save_IFS
6705 case $as_dir in #(((
6706 '') as_dir=./ ;;
6707 */) ;;
6708 *) as_dir=$as_dir/ ;;
6709 esac
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_ac_ct_STRIP="strip"
6713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6723 if test -n "$ac_ct_STRIP"; then
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6725 printf "%s\n" "$ac_ct_STRIP" >&6; }
6726 else
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 printf "%s\n" "no" >&6; }
6729 fi
6730
6731 if test "x$ac_ct_STRIP" = x; then
6732 STRIP=":"
6733 else
6734 case $cross_compiling:$ac_tool_warned in
6735 yes:)
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6739 esac
6740 STRIP=$ac_ct_STRIP
6741 fi
6742 else
6743 STRIP="$ac_cv_prog_STRIP"
6744 fi
6745
6746 test -z "$STRIP" && STRIP=:
6747
6748
6749
6750
6751
6752
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 printf %s "checking for $ac_word... " >&6; }
6758 if test ${ac_cv_prog_RANLIB+y}
6759 then :
6760 printf %s "(cached) " >&6
6761 else $as_nop
6762 if test -n "$RANLIB"; then
6763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 case $as_dir in #(((
6770 '') as_dir=./ ;;
6771 */) ;;
6772 *) as_dir=$as_dir/ ;;
6773 esac
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 RANLIB=$ac_cv_prog_RANLIB
6787 if test -n "$RANLIB"; then
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6789 printf "%s\n" "$RANLIB" >&6; }
6790 else
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 printf "%s\n" "no" >&6; }
6793 fi
6794
6795
6796 fi
6797 if test -z "$ac_cv_prog_RANLIB"; then
6798 ac_ct_RANLIB=$RANLIB
6799 # Extract the first word of "ranlib", so it can be a program name with args.
6800 set dummy ranlib; ac_word=$2
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 printf %s "checking for $ac_word... " >&6; }
6803 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6804 then :
6805 printf %s "(cached) " >&6
6806 else $as_nop
6807 if test -n "$ac_ct_RANLIB"; then
6808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 case $as_dir in #(((
6815 '') as_dir=./ ;;
6816 */) ;;
6817 *) as_dir=$as_dir/ ;;
6818 esac
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6821 ac_cv_prog_ac_ct_RANLIB="ranlib"
6822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6832 if test -n "$ac_ct_RANLIB"; then
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6834 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6835 else
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 printf "%s\n" "no" >&6; }
6838 fi
6839
6840 if test "x$ac_ct_RANLIB" = x; then
6841 RANLIB=":"
6842 else
6843 case $cross_compiling:$ac_tool_warned in
6844 yes:)
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847 ac_tool_warned=yes ;;
6848 esac
6849 RANLIB=$ac_ct_RANLIB
6850 fi
6851 else
6852 RANLIB="$ac_cv_prog_RANLIB"
6853 fi
6854
6855 test -z "$RANLIB" && RANLIB=:
6856
6857
6858
6859
6860
6861
6862 # Determine commands to create old-style static archives.
6863 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6864 old_postinstall_cmds='chmod 644 $oldlib'
6865 old_postuninstall_cmds=
6866
6867 if test -n "$RANLIB"; then
6868 case $host_os in
6869 bitrig* | openbsd*)
6870 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6871 ;;
6872 *)
6873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6874 ;;
6875 esac
6876 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6877 fi
6878
6879 case $host_os in
6880 darwin*)
6881 lock_old_archive_extraction=yes ;;
6882 *)
6883 lock_old_archive_extraction=no ;;
6884 esac
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924 # If no C compiler was specified, use CC.
6925 LTCC=${LTCC-"$CC"}
6926
6927 # If no C compiler flags were specified, use CFLAGS.
6928 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6929
6930 # Allow CC to be a program name with arguments.
6931 compiler=$CC
6932
6933
6934 # Check for command to grab the raw symbol name followed by C symbol from nm.
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6936 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6937 if test ${lt_cv_sys_global_symbol_pipe+y}
6938 then :
6939 printf %s "(cached) " >&6
6940 else $as_nop
6941
6942 # These are sane defaults that work on at least a few old systems.
6943 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6944
6945 # Character class describing NM global symbol codes.
6946 symcode='[BCDEGRST]'
6947
6948 # Regexp to match symbols that can be accessed directly from C.
6949 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6950
6951 # Define system-specific variables.
6952 case $host_os in
6953 aix*)
6954 symcode='[BCDT]'
6955 ;;
6956 cygwin* | mingw* | pw32* | cegcc*)
6957 symcode='[ABCDGISTW]'
6958 ;;
6959 hpux*)
6960 if test ia64 = "$host_cpu"; then
6961 symcode='[ABCDEGRST]'
6962 fi
6963 ;;
6964 irix* | nonstopux*)
6965 symcode='[BCDEGRST]'
6966 ;;
6967 osf*)
6968 symcode='[BCDEGQRST]'
6969 ;;
6970 solaris*)
6971 symcode='[BDRT]'
6972 ;;
6973 sco3.2v5*)
6974 symcode='[DT]'
6975 ;;
6976 sysv4.2uw2*)
6977 symcode='[DT]'
6978 ;;
6979 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6980 symcode='[ABDT]'
6981 ;;
6982 sysv4)
6983 symcode='[DFNSTU]'
6984 ;;
6985 esac
6986
6987 # If we're using GNU nm, then use its standard symbol codes.
6988 case `$NM -V 2>&1` in
6989 *GNU* | *'with BFD'*)
6990 symcode='[ABCDGIRSTW]' ;;
6991 esac
6992
6993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6994 # Gets list of data symbols to import.
6995 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6996 # Adjust the below global symbol transforms to fixup imported variables.
6997 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6998 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6999 lt_c_name_lib_hook="\
7000 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7001 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7002 else
7003 # Disable hooks by default.
7004 lt_cv_sys_global_symbol_to_import=
7005 lt_cdecl_hook=
7006 lt_c_name_hook=
7007 lt_c_name_lib_hook=
7008 fi
7009
7010 # Transform an extracted symbol line into a proper C declaration.
7011 # Some systems (esp. on ia64) link data and code symbols differently,
7012 # so use this general approach.
7013 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7014 $lt_cdecl_hook\
7015 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7016 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7017
7018 # Transform an extracted symbol line into symbol name and symbol address
7019 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7020 $lt_c_name_hook\
7021 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7022 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7023
7024 # Transform an extracted symbol line into symbol name with lib prefix and
7025 # symbol address.
7026 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7027 $lt_c_name_lib_hook\
7028 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7029 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7030 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7031
7032 # Handle CRLF in mingw tool chain
7033 opt_cr=
7034 case $build_os in
7035 mingw*)
7036 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7037 ;;
7038 esac
7039
7040 # Try without a prefix underscore, then with it.
7041 for ac_symprfx in "" "_"; do
7042
7043 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7044 symxfrm="\\1 $ac_symprfx\\2 \\2"
7045
7046 # Write the raw and C identifiers.
7047 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7048 # Fake it for dumpbin and say T for any non-static function,
7049 # D for any global variable and I for any imported variable.
7050 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7051 # which start with @ or ?.
7052 lt_cv_sys_global_symbol_pipe="$AWK '"\
7053 " {last_section=section; section=\$ 3};"\
7054 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7055 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7056 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7057 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7058 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7059 " \$ 0!~/External *\|/{next};"\
7060 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7061 " {if(hide[section]) next};"\
7062 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7063 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7064 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7065 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7066 " ' prfx=^$ac_symprfx"
7067 else
7068 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7069 fi
7070 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7071
7072 # Check to see that the pipe works correctly.
7073 pipe_works=no
7074
7075 rm -f conftest*
7076 cat > conftest.$ac_ext <<_LT_EOF
7077 #ifdef __cplusplus
7078 extern "C" {
7079 #endif
7080 char nm_test_var;
7081 void nm_test_func(void);
7082 void nm_test_func(void){}
7083 #ifdef __cplusplus
7084 }
7085 #endif
7086 int main(){nm_test_var='a';nm_test_func();return(0);}
7087 _LT_EOF
7088
7089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7090 (eval $ac_compile) 2>&5
7091 ac_status=$?
7092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093 test $ac_status = 0; }; then
7094 # Now try to grab the symbols.
7095 nlist=conftest.nm
7096 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7097 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7098 # Try sorting and uniquifying the output.
7099 if sort "$nlist" | uniq > "$nlist"T; then
7100 mv -f "$nlist"T "$nlist"
7101 else
7102 rm -f "$nlist"T
7103 fi
7104
7105 # Make sure that we snagged all the symbols we need.
7106 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7107 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7108 cat <<_LT_EOF > conftest.$ac_ext
7109 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7110 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7111 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7112 relocations are performed -- see ld's documentation on pseudo-relocs. */
7113 # define LT_DLSYM_CONST
7114 #elif defined __osf__
7115 /* This system does not cope well with relocations in const data. */
7116 # define LT_DLSYM_CONST
7117 #else
7118 # define LT_DLSYM_CONST const
7119 #endif
7120
7121 #ifdef __cplusplus
7122 extern "C" {
7123 #endif
7124
7125 _LT_EOF
7126 # Now generate the symbol file.
7127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7128
7129 cat <<_LT_EOF >> conftest.$ac_ext
7130
7131 /* The mapping between symbol names and symbols. */
7132 LT_DLSYM_CONST struct {
7133 const char *name;
7134 void *address;
7135 }
7136 lt__PROGRAM__LTX_preloaded_symbols[] =
7137 {
7138 { "@PROGRAM@", (void *) 0 },
7139 _LT_EOF
7140 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7141 cat <<\_LT_EOF >> conftest.$ac_ext
7142 {0, (void *) 0}
7143 };
7144
7145 /* This works around a problem in FreeBSD linker */
7146 #ifdef FREEBSD_WORKAROUND
7147 static const void *lt_preloaded_setup() {
7148 return lt__PROGRAM__LTX_preloaded_symbols;
7149 }
7150 #endif
7151
7152 #ifdef __cplusplus
7153 }
7154 #endif
7155 _LT_EOF
7156 # Now try linking the two files.
7157 mv conftest.$ac_objext conftstm.$ac_objext
7158 lt_globsym_save_LIBS=$LIBS
7159 lt_globsym_save_CFLAGS=$CFLAGS
7160 LIBS=conftstm.$ac_objext
7161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7163 (eval $ac_link) 2>&5
7164 ac_status=$?
7165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7167 pipe_works=yes
7168 fi
7169 LIBS=$lt_globsym_save_LIBS
7170 CFLAGS=$lt_globsym_save_CFLAGS
7171 else
7172 echo "cannot find nm_test_func in $nlist" >&5
7173 fi
7174 else
7175 echo "cannot find nm_test_var in $nlist" >&5
7176 fi
7177 else
7178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7179 fi
7180 else
7181 echo "$progname: failed program was:" >&5
7182 cat conftest.$ac_ext >&5
7183 fi
7184 rm -rf conftest* conftst*
7185
7186 # Do not use the global_symbol_pipe unless it works.
7187 if test yes = "$pipe_works"; then
7188 break
7189 else
7190 lt_cv_sys_global_symbol_pipe=
7191 fi
7192 done
7193
7194 fi
7195
7196 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7197 lt_cv_sys_global_symbol_to_cdecl=
7198 fi
7199 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7201 printf "%s\n" "failed" >&6; }
7202 else
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7204 printf "%s\n" "ok" >&6; }
7205 fi
7206
7207 # Response file support.
7208 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7209 nm_file_list_spec='@'
7210 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7211 nm_file_list_spec='@'
7212 fi
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7251 printf %s "checking for sysroot... " >&6; }
7252
7253 # Check whether --with-sysroot was given.
7254 if test ${with_sysroot+y}
7255 then :
7256 withval=$with_sysroot;
7257 else $as_nop
7258 with_sysroot=no
7259 fi
7260
7261
7262 lt_sysroot=
7263 case $with_sysroot in #(
7264 yes)
7265 if test yes = "$GCC"; then
7266 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7267 fi
7268 ;; #(
7269 /*)
7270 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7271 ;; #(
7272 no|'')
7273 ;; #(
7274 *)
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7276 printf "%s\n" "$with_sysroot" >&6; }
7277 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7278 ;;
7279 esac
7280
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7282 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7283
7284
7285
7286
7287
7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7289 printf %s "checking for a working dd... " >&6; }
7290 if test ${ac_cv_path_lt_DD+y}
7291 then :
7292 printf %s "(cached) " >&6
7293 else $as_nop
7294 printf 0123456789abcdef0123456789abcdef >conftest.i
7295 cat conftest.i conftest.i >conftest2.i
7296 : ${lt_DD:=$DD}
7297 if test -z "$lt_DD"; then
7298 ac_path_lt_DD_found=false
7299 # Loop through the user's path and test for each of PROGNAME-LIST
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303 IFS=$as_save_IFS
7304 case $as_dir in #(((
7305 '') as_dir=./ ;;
7306 */) ;;
7307 *) as_dir=$as_dir/ ;;
7308 esac
7309 for ac_prog in dd
7310 do
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7313 as_fn_executable_p "$ac_path_lt_DD" || continue
7314 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7315 cmp -s conftest.i conftest.out \
7316 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7317 fi
7318 $ac_path_lt_DD_found && break 3
7319 done
7320 done
7321 done
7322 IFS=$as_save_IFS
7323 if test -z "$ac_cv_path_lt_DD"; then
7324 :
7325 fi
7326 else
7327 ac_cv_path_lt_DD=$lt_DD
7328 fi
7329
7330 rm -f conftest.i conftest2.i conftest.out
7331 fi
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7333 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7334
7335
7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7337 printf %s "checking how to truncate binary pipes... " >&6; }
7338 if test ${lt_cv_truncate_bin+y}
7339 then :
7340 printf %s "(cached) " >&6
7341 else $as_nop
7342 printf 0123456789abcdef0123456789abcdef >conftest.i
7343 cat conftest.i conftest.i >conftest2.i
7344 lt_cv_truncate_bin=
7345 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7346 cmp -s conftest.i conftest.out \
7347 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7348 fi
7349 rm -f conftest.i conftest2.i conftest.out
7350 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7351 fi
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7353 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7354
7355
7356
7357
7358
7359
7360
7361 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7362 func_cc_basename ()
7363 {
7364 for cc_temp in $*""; do
7365 case $cc_temp in
7366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7368 \-*) ;;
7369 *) break;;
7370 esac
7371 done
7372 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7373 }
7374
7375 # Check whether --enable-libtool-lock was given.
7376 if test ${enable_libtool_lock+y}
7377 then :
7378 enableval=$enable_libtool_lock;
7379 fi
7380
7381 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7382
7383 # Some flags need to be propagated to the compiler or linker for good
7384 # libtool support.
7385 case $host in
7386 ia64-*-hpux*)
7387 # Find out what ABI is being produced by ac_compile, and set mode
7388 # options accordingly.
7389 echo 'int i;' > conftest.$ac_ext
7390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7391 (eval $ac_compile) 2>&5
7392 ac_status=$?
7393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; }; then
7395 case `$FILECMD conftest.$ac_objext` in
7396 *ELF-32*)
7397 HPUX_IA64_MODE=32
7398 ;;
7399 *ELF-64*)
7400 HPUX_IA64_MODE=64
7401 ;;
7402 esac
7403 fi
7404 rm -rf conftest*
7405 ;;
7406 *-*-irix6*)
7407 # Find out what ABI is being produced by ac_compile, and set linker
7408 # options accordingly.
7409 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
7413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 if test yes = "$lt_cv_prog_gnu_ld"; then
7416 case `$FILECMD conftest.$ac_objext` in
7417 *32-bit*)
7418 LD="${LD-ld} -melf32bsmip"
7419 ;;
7420 *N32*)
7421 LD="${LD-ld} -melf32bmipn32"
7422 ;;
7423 *64-bit*)
7424 LD="${LD-ld} -melf64bmip"
7425 ;;
7426 esac
7427 else
7428 case `$FILECMD conftest.$ac_objext` in
7429 *32-bit*)
7430 LD="${LD-ld} -32"
7431 ;;
7432 *N32*)
7433 LD="${LD-ld} -n32"
7434 ;;
7435 *64-bit*)
7436 LD="${LD-ld} -64"
7437 ;;
7438 esac
7439 fi
7440 fi
7441 rm -rf conftest*
7442 ;;
7443
7444 mips64*-*linux*)
7445 # Find out what ABI is being produced by ac_compile, and set linker
7446 # options accordingly.
7447 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7449 (eval $ac_compile) 2>&5
7450 ac_status=$?
7451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452 test $ac_status = 0; }; then
7453 emul=elf
7454 case `$FILECMD conftest.$ac_objext` in
7455 *32-bit*)
7456 emul="${emul}32"
7457 ;;
7458 *64-bit*)
7459 emul="${emul}64"
7460 ;;
7461 esac
7462 case `$FILECMD conftest.$ac_objext` in
7463 *MSB*)
7464 emul="${emul}btsmip"
7465 ;;
7466 *LSB*)
7467 emul="${emul}ltsmip"
7468 ;;
7469 esac
7470 case `$FILECMD conftest.$ac_objext` in
7471 *N32*)
7472 emul="${emul}n32"
7473 ;;
7474 esac
7475 LD="${LD-ld} -m $emul"
7476 fi
7477 rm -rf conftest*
7478 ;;
7479
7480 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7481 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7482 # Find out what ABI is being produced by ac_compile, and set linker
7483 # options accordingly. Note that the listed cases only cover the
7484 # situations where additional linker options are needed (such as when
7485 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7486 # vice versa); the common cases where no linker options are needed do
7487 # not appear in the list.
7488 echo 'int i;' > conftest.$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7491 ac_status=$?
7492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 case `$FILECMD conftest.o` in
7495 *32-bit*)
7496 case $host in
7497 x86_64-*kfreebsd*-gnu)
7498 LD="${LD-ld} -m elf_i386_fbsd"
7499 ;;
7500 x86_64-*linux*)
7501 case `$FILECMD conftest.o` in
7502 *x86-64*)
7503 LD="${LD-ld} -m elf32_x86_64"
7504 ;;
7505 *)
7506 LD="${LD-ld} -m elf_i386"
7507 ;;
7508 esac
7509 ;;
7510 powerpc64le-*linux*)
7511 LD="${LD-ld} -m elf32lppclinux"
7512 ;;
7513 powerpc64-*linux*)
7514 LD="${LD-ld} -m elf32ppclinux"
7515 ;;
7516 s390x-*linux*)
7517 LD="${LD-ld} -m elf_s390"
7518 ;;
7519 sparc64-*linux*)
7520 LD="${LD-ld} -m elf32_sparc"
7521 ;;
7522 esac
7523 ;;
7524 *64-bit*)
7525 case $host in
7526 x86_64-*kfreebsd*-gnu)
7527 LD="${LD-ld} -m elf_x86_64_fbsd"
7528 ;;
7529 x86_64-*linux*)
7530 LD="${LD-ld} -m elf_x86_64"
7531 ;;
7532 powerpcle-*linux*)
7533 LD="${LD-ld} -m elf64lppc"
7534 ;;
7535 powerpc-*linux*)
7536 LD="${LD-ld} -m elf64ppc"
7537 ;;
7538 s390*-*linux*|s390*-*tpf*)
7539 LD="${LD-ld} -m elf64_s390"
7540 ;;
7541 sparc*-*linux*)
7542 LD="${LD-ld} -m elf64_sparc"
7543 ;;
7544 esac
7545 ;;
7546 esac
7547 fi
7548 rm -rf conftest*
7549 ;;
7550
7551 *-*-sco3.2v5*)
7552 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7553 SAVE_CFLAGS=$CFLAGS
7554 CFLAGS="$CFLAGS -belf"
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7556 printf %s "checking whether the C compiler needs -belf... " >&6; }
7557 if test ${lt_cv_cc_needs_belf+y}
7558 then :
7559 printf %s "(cached) " >&6
7560 else $as_nop
7561 ac_ext=c
7562 ac_cpp='$CPP $CPPFLAGS'
7563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7566
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569
7570 int
7571 main (void)
7572 {
7573
7574 ;
7575 return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_link "$LINENO"
7579 then :
7580 lt_cv_cc_needs_belf=yes
7581 else $as_nop
7582 lt_cv_cc_needs_belf=no
7583 fi
7584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7585 conftest$ac_exeext conftest.$ac_ext
7586 ac_ext=c
7587 ac_cpp='$CPP $CPPFLAGS'
7588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7591
7592 fi
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7594 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7595 if test yes != "$lt_cv_cc_needs_belf"; then
7596 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7597 CFLAGS=$SAVE_CFLAGS
7598 fi
7599 ;;
7600 *-*solaris*)
7601 # Find out what ABI is being produced by ac_compile, and set linker
7602 # options accordingly.
7603 echo 'int i;' > conftest.$ac_ext
7604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7605 (eval $ac_compile) 2>&5
7606 ac_status=$?
7607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; }; then
7609 case `$FILECMD conftest.o` in
7610 *64-bit*)
7611 case $lt_cv_prog_gnu_ld in
7612 yes*)
7613 case $host in
7614 i?86-*-solaris*|x86_64-*-solaris*)
7615 LD="${LD-ld} -m elf_x86_64"
7616 ;;
7617 sparc*-*-solaris*)
7618 LD="${LD-ld} -m elf64_sparc"
7619 ;;
7620 esac
7621 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7622 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7623 LD=${LD-ld}_sol2
7624 fi
7625 ;;
7626 *)
7627 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7628 LD="${LD-ld} -64"
7629 fi
7630 ;;
7631 esac
7632 ;;
7633 esac
7634 fi
7635 rm -rf conftest*
7636 ;;
7637 esac
7638
7639 need_locks=$enable_libtool_lock
7640
7641 if test -n "$ac_tool_prefix"; then
7642 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}mt; ac_word=$2
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 printf %s "checking for $ac_word... " >&6; }
7646 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7647 then :
7648 printf %s "(cached) " >&6
7649 else $as_nop
7650 if test -n "$MANIFEST_TOOL"; then
7651 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656 IFS=$as_save_IFS
7657 case $as_dir in #(((
7658 '') as_dir=./ ;;
7659 */) ;;
7660 *) as_dir=$as_dir/ ;;
7661 esac
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7664 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672 fi
7673 fi
7674 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7675 if test -n "$MANIFEST_TOOL"; then
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7677 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7678 else
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 printf "%s\n" "no" >&6; }
7681 fi
7682
7683
7684 fi
7685 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7686 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7687 # Extract the first word of "mt", so it can be a program name with args.
7688 set dummy mt; ac_word=$2
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 printf %s "checking for $ac_word... " >&6; }
7691 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7692 then :
7693 printf %s "(cached) " >&6
7694 else $as_nop
7695 if test -n "$ac_ct_MANIFEST_TOOL"; then
7696 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701 IFS=$as_save_IFS
7702 case $as_dir in #(((
7703 '') as_dir=./ ;;
7704 */) ;;
7705 *) as_dir=$as_dir/ ;;
7706 esac
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7711 break 2
7712 fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7720 if test -n "$ac_ct_MANIFEST_TOOL"; then
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7722 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7723 else
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 printf "%s\n" "no" >&6; }
7726 fi
7727
7728 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7729 MANIFEST_TOOL=":"
7730 else
7731 case $cross_compiling:$ac_tool_warned in
7732 yes:)
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7734 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7735 ac_tool_warned=yes ;;
7736 esac
7737 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7738 fi
7739 else
7740 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7741 fi
7742
7743 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7745 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7746 if test ${lt_cv_path_mainfest_tool+y}
7747 then :
7748 printf %s "(cached) " >&6
7749 else $as_nop
7750 lt_cv_path_mainfest_tool=no
7751 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7752 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7753 cat conftest.err >&5
7754 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7755 lt_cv_path_mainfest_tool=yes
7756 fi
7757 rm -f conftest*
7758 fi
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7760 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7761 if test yes != "$lt_cv_path_mainfest_tool"; then
7762 MANIFEST_TOOL=:
7763 fi
7764
7765
7766
7767
7768
7769
7770 case $host_os in
7771 rhapsody* | darwin*)
7772 if test -n "$ac_tool_prefix"; then
7773 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7774 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 printf %s "checking for $ac_word... " >&6; }
7777 if test ${ac_cv_prog_DSYMUTIL+y}
7778 then :
7779 printf %s "(cached) " >&6
7780 else $as_nop
7781 if test -n "$DSYMUTIL"; then
7782 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787 IFS=$as_save_IFS
7788 case $as_dir in #(((
7789 '') as_dir=./ ;;
7790 */) ;;
7791 *) as_dir=$as_dir/ ;;
7792 esac
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7795 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7806 if test -n "$DSYMUTIL"; then
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7808 printf "%s\n" "$DSYMUTIL" >&6; }
7809 else
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 printf "%s\n" "no" >&6; }
7812 fi
7813
7814
7815 fi
7816 if test -z "$ac_cv_prog_DSYMUTIL"; then
7817 ac_ct_DSYMUTIL=$DSYMUTIL
7818 # Extract the first word of "dsymutil", so it can be a program name with args.
7819 set dummy dsymutil; ac_word=$2
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 printf %s "checking for $ac_word... " >&6; }
7822 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7823 then :
7824 printf %s "(cached) " >&6
7825 else $as_nop
7826 if test -n "$ac_ct_DSYMUTIL"; then
7827 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832 IFS=$as_save_IFS
7833 case $as_dir in #(((
7834 '') as_dir=./ ;;
7835 */) ;;
7836 *) as_dir=$as_dir/ ;;
7837 esac
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7840 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7851 if test -n "$ac_ct_DSYMUTIL"; then
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7853 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7854 else
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 printf "%s\n" "no" >&6; }
7857 fi
7858
7859 if test "x$ac_ct_DSYMUTIL" = x; then
7860 DSYMUTIL=":"
7861 else
7862 case $cross_compiling:$ac_tool_warned in
7863 yes:)
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7865 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7866 ac_tool_warned=yes ;;
7867 esac
7868 DSYMUTIL=$ac_ct_DSYMUTIL
7869 fi
7870 else
7871 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7872 fi
7873
7874 if test -n "$ac_tool_prefix"; then
7875 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 printf %s "checking for $ac_word... " >&6; }
7879 if test ${ac_cv_prog_NMEDIT+y}
7880 then :
7881 printf %s "(cached) " >&6
7882 else $as_nop
7883 if test -n "$NMEDIT"; then
7884 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889 IFS=$as_save_IFS
7890 case $as_dir in #(((
7891 '') as_dir=./ ;;
7892 */) ;;
7893 *) as_dir=$as_dir/ ;;
7894 esac
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901 done
7902 done
7903 IFS=$as_save_IFS
7904
7905 fi
7906 fi
7907 NMEDIT=$ac_cv_prog_NMEDIT
7908 if test -n "$NMEDIT"; then
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7910 printf "%s\n" "$NMEDIT" >&6; }
7911 else
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 printf "%s\n" "no" >&6; }
7914 fi
7915
7916
7917 fi
7918 if test -z "$ac_cv_prog_NMEDIT"; then
7919 ac_ct_NMEDIT=$NMEDIT
7920 # Extract the first word of "nmedit", so it can be a program name with args.
7921 set dummy nmedit; ac_word=$2
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 printf %s "checking for $ac_word... " >&6; }
7924 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7925 then :
7926 printf %s "(cached) " >&6
7927 else $as_nop
7928 if test -n "$ac_ct_NMEDIT"; then
7929 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 case $as_dir in #(((
7936 '') as_dir=./ ;;
7937 */) ;;
7938 *) as_dir=$as_dir/ ;;
7939 esac
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7942 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 fi
7951 fi
7952 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7953 if test -n "$ac_ct_NMEDIT"; then
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7955 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7956 else
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 printf "%s\n" "no" >&6; }
7959 fi
7960
7961 if test "x$ac_ct_NMEDIT" = x; then
7962 NMEDIT=":"
7963 else
7964 case $cross_compiling:$ac_tool_warned in
7965 yes:)
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7968 ac_tool_warned=yes ;;
7969 esac
7970 NMEDIT=$ac_ct_NMEDIT
7971 fi
7972 else
7973 NMEDIT="$ac_cv_prog_NMEDIT"
7974 fi
7975
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 printf %s "checking for $ac_word... " >&6; }
7981 if test ${ac_cv_prog_LIPO+y}
7982 then :
7983 printf %s "(cached) " >&6
7984 else $as_nop
7985 if test -n "$LIPO"; then
7986 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 case $as_dir in #(((
7993 '') as_dir=./ ;;
7994 */) ;;
7995 *) as_dir=$as_dir/ ;;
7996 esac
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7999 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003 done
8004 done
8005 IFS=$as_save_IFS
8006
8007 fi
8008 fi
8009 LIPO=$ac_cv_prog_LIPO
8010 if test -n "$LIPO"; then
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8012 printf "%s\n" "$LIPO" >&6; }
8013 else
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 printf "%s\n" "no" >&6; }
8016 fi
8017
8018
8019 fi
8020 if test -z "$ac_cv_prog_LIPO"; then
8021 ac_ct_LIPO=$LIPO
8022 # Extract the first word of "lipo", so it can be a program name with args.
8023 set dummy lipo; ac_word=$2
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 printf %s "checking for $ac_word... " >&6; }
8026 if test ${ac_cv_prog_ac_ct_LIPO+y}
8027 then :
8028 printf %s "(cached) " >&6
8029 else $as_nop
8030 if test -n "$ac_ct_LIPO"; then
8031 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036 IFS=$as_save_IFS
8037 case $as_dir in #(((
8038 '') as_dir=./ ;;
8039 */) ;;
8040 *) as_dir=$as_dir/ ;;
8041 esac
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8044 ac_cv_prog_ac_ct_LIPO="lipo"
8045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048 done
8049 done
8050 IFS=$as_save_IFS
8051
8052 fi
8053 fi
8054 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8055 if test -n "$ac_ct_LIPO"; then
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8057 printf "%s\n" "$ac_ct_LIPO" >&6; }
8058 else
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 printf "%s\n" "no" >&6; }
8061 fi
8062
8063 if test "x$ac_ct_LIPO" = x; then
8064 LIPO=":"
8065 else
8066 case $cross_compiling:$ac_tool_warned in
8067 yes:)
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8069 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8070 ac_tool_warned=yes ;;
8071 esac
8072 LIPO=$ac_ct_LIPO
8073 fi
8074 else
8075 LIPO="$ac_cv_prog_LIPO"
8076 fi
8077
8078 if test -n "$ac_tool_prefix"; then
8079 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8080 set dummy ${ac_tool_prefix}otool; ac_word=$2
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 printf %s "checking for $ac_word... " >&6; }
8083 if test ${ac_cv_prog_OTOOL+y}
8084 then :
8085 printf %s "(cached) " >&6
8086 else $as_nop
8087 if test -n "$OTOOL"; then
8088 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093 IFS=$as_save_IFS
8094 case $as_dir in #(((
8095 '') as_dir=./ ;;
8096 */) ;;
8097 *) as_dir=$as_dir/ ;;
8098 esac
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105 done
8106 done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 OTOOL=$ac_cv_prog_OTOOL
8112 if test -n "$OTOOL"; then
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8114 printf "%s\n" "$OTOOL" >&6; }
8115 else
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 printf "%s\n" "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_OTOOL"; then
8123 ac_ct_OTOOL=$OTOOL
8124 # Extract the first word of "otool", so it can be a program name with args.
8125 set dummy otool; ac_word=$2
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 printf %s "checking for $ac_word... " >&6; }
8128 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8129 then :
8130 printf %s "(cached) " >&6
8131 else $as_nop
8132 if test -n "$ac_ct_OTOOL"; then
8133 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138 IFS=$as_save_IFS
8139 case $as_dir in #(((
8140 '') as_dir=./ ;;
8141 */) ;;
8142 *) as_dir=$as_dir/ ;;
8143 esac
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8146 ac_cv_prog_ac_ct_OTOOL="otool"
8147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8148 break 2
8149 fi
8150 done
8151 done
8152 IFS=$as_save_IFS
8153
8154 fi
8155 fi
8156 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8157 if test -n "$ac_ct_OTOOL"; then
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8159 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8160 else
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 printf "%s\n" "no" >&6; }
8163 fi
8164
8165 if test "x$ac_ct_OTOOL" = x; then
8166 OTOOL=":"
8167 else
8168 case $cross_compiling:$ac_tool_warned in
8169 yes:)
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8172 ac_tool_warned=yes ;;
8173 esac
8174 OTOOL=$ac_ct_OTOOL
8175 fi
8176 else
8177 OTOOL="$ac_cv_prog_OTOOL"
8178 fi
8179
8180 if test -n "$ac_tool_prefix"; then
8181 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8182 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8184 printf %s "checking for $ac_word... " >&6; }
8185 if test ${ac_cv_prog_OTOOL64+y}
8186 then :
8187 printf %s "(cached) " >&6
8188 else $as_nop
8189 if test -n "$OTOOL64"; then
8190 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8191 else
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195 IFS=$as_save_IFS
8196 case $as_dir in #(((
8197 '') as_dir=./ ;;
8198 */) ;;
8199 *) as_dir=$as_dir/ ;;
8200 esac
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8203 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8205 break 2
8206 fi
8207 done
8208 done
8209 IFS=$as_save_IFS
8210
8211 fi
8212 fi
8213 OTOOL64=$ac_cv_prog_OTOOL64
8214 if test -n "$OTOOL64"; then
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8216 printf "%s\n" "$OTOOL64" >&6; }
8217 else
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 printf "%s\n" "no" >&6; }
8220 fi
8221
8222
8223 fi
8224 if test -z "$ac_cv_prog_OTOOL64"; then
8225 ac_ct_OTOOL64=$OTOOL64
8226 # Extract the first word of "otool64", so it can be a program name with args.
8227 set dummy otool64; ac_word=$2
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 printf %s "checking for $ac_word... " >&6; }
8230 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8231 then :
8232 printf %s "(cached) " >&6
8233 else $as_nop
8234 if test -n "$ac_ct_OTOOL64"; then
8235 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240 IFS=$as_save_IFS
8241 case $as_dir in #(((
8242 '') as_dir=./ ;;
8243 */) ;;
8244 *) as_dir=$as_dir/ ;;
8245 esac
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8248 ac_cv_prog_ac_ct_OTOOL64="otool64"
8249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252 done
8253 done
8254 IFS=$as_save_IFS
8255
8256 fi
8257 fi
8258 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8259 if test -n "$ac_ct_OTOOL64"; then
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8261 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8262 else
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 printf "%s\n" "no" >&6; }
8265 fi
8266
8267 if test "x$ac_ct_OTOOL64" = x; then
8268 OTOOL64=":"
8269 else
8270 case $cross_compiling:$ac_tool_warned in
8271 yes:)
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8273 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8274 ac_tool_warned=yes ;;
8275 esac
8276 OTOOL64=$ac_ct_OTOOL64
8277 fi
8278 else
8279 OTOOL64="$ac_cv_prog_OTOOL64"
8280 fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8309 printf %s "checking for -single_module linker flag... " >&6; }
8310 if test ${lt_cv_apple_cc_single_mod+y}
8311 then :
8312 printf %s "(cached) " >&6
8313 else $as_nop
8314 lt_cv_apple_cc_single_mod=no
8315 if test -z "$LT_MULTI_MODULE"; then
8316 # By default we will add the -single_module flag. You can override
8317 # by either setting the environment variable LT_MULTI_MODULE
8318 # non-empty at configure time, or by adding -multi_module to the
8319 # link flags.
8320 rm -rf libconftest.dylib*
8321 echo "int foo(void){return 1;}" > conftest.c
8322 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8323 -dynamiclib -Wl,-single_module conftest.c" >&5
8324 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8325 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8326 _lt_result=$?
8327 # If there is a non-empty error log, and "single_module"
8328 # appears in it, assume the flag caused a linker warning
8329 if test -s conftest.err && $GREP single_module conftest.err; then
8330 cat conftest.err >&5
8331 # Otherwise, if the output was created with a 0 exit code from
8332 # the compiler, it worked.
8333 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8334 lt_cv_apple_cc_single_mod=yes
8335 else
8336 cat conftest.err >&5
8337 fi
8338 rm -rf libconftest.dylib*
8339 rm -f conftest.*
8340 fi
8341 fi
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8343 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8344
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8346 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8347 if test ${lt_cv_ld_exported_symbols_list+y}
8348 then :
8349 printf %s "(cached) " >&6
8350 else $as_nop
8351 lt_cv_ld_exported_symbols_list=no
8352 save_LDFLAGS=$LDFLAGS
8353 echo "_main" > conftest.sym
8354 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357
8358 int
8359 main (void)
8360 {
8361
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_link "$LINENO"
8367 then :
8368 lt_cv_ld_exported_symbols_list=yes
8369 else $as_nop
8370 lt_cv_ld_exported_symbols_list=no
8371 fi
8372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8373 conftest$ac_exeext conftest.$ac_ext
8374 LDFLAGS=$save_LDFLAGS
8375
8376 fi
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8378 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8379
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8381 printf %s "checking for -force_load linker flag... " >&6; }
8382 if test ${lt_cv_ld_force_load+y}
8383 then :
8384 printf %s "(cached) " >&6
8385 else $as_nop
8386 lt_cv_ld_force_load=no
8387 cat > conftest.c << _LT_EOF
8388 int forced_loaded() { return 2;}
8389 _LT_EOF
8390 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8391 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8392 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8393 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8394 echo "$RANLIB libconftest.a" >&5
8395 $RANLIB libconftest.a 2>&5
8396 cat > conftest.c << _LT_EOF
8397 int main() { return 0;}
8398 _LT_EOF
8399 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8400 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8401 _lt_result=$?
8402 if test -s conftest.err && $GREP force_load conftest.err; then
8403 cat conftest.err >&5
8404 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8405 lt_cv_ld_force_load=yes
8406 else
8407 cat conftest.err >&5
8408 fi
8409 rm -f conftest.err libconftest.a conftest conftest.c
8410 rm -rf conftest.dSYM
8411
8412 fi
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8414 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8415 case $host_os in
8416 rhapsody* | darwin1.[012])
8417 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8418 darwin1.*)
8419 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8420 darwin*)
8421 case $MACOSX_DEPLOYMENT_TARGET,$host in
8422 10.[012],*|,*powerpc*-darwin[5-8]*)
8423 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8424 *)
8425 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8426 esac
8427 ;;
8428 esac
8429 if test yes = "$lt_cv_apple_cc_single_mod"; then
8430 _lt_dar_single_mod='$single_module'
8431 fi
8432 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8433 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8434 else
8435 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8436 fi
8437 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8438 _lt_dsymutil='~$DSYMUTIL $lib || :'
8439 else
8440 _lt_dsymutil=
8441 fi
8442 ;;
8443 esac
8444
8445 # func_munge_path_list VARIABLE PATH
8446 # -----------------------------------
8447 # VARIABLE is name of variable containing _space_ separated list of
8448 # directories to be munged by the contents of PATH, which is string
8449 # having a format:
8450 # "DIR[:DIR]:"
8451 # string "DIR[ DIR]" will be prepended to VARIABLE
8452 # ":DIR[:DIR]"
8453 # string "DIR[ DIR]" will be appended to VARIABLE
8454 # "DIRP[:DIRP]::[DIRA:]DIRA"
8455 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8456 # "DIRA[ DIRA]" will be appended to VARIABLE
8457 # "DIR[:DIR]"
8458 # VARIABLE will be replaced by "DIR[ DIR]"
8459 func_munge_path_list ()
8460 {
8461 case x$2 in
8462 x)
8463 ;;
8464 *:)
8465 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8466 ;;
8467 x:*)
8468 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8469 ;;
8470 *::*)
8471 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8472 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8473 ;;
8474 *)
8475 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8476 ;;
8477 esac
8478 }
8479
8480 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8481 "
8482 if test "x$ac_cv_header_dlfcn_h" = xyes
8483 then :
8484 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8485
8486 fi
8487
8488
8489
8490
8491
8492 # Set options
8493
8494
8495
8496 enable_dlopen=no
8497
8498
8499 enable_win32_dll=no
8500
8501
8502
8503
8504
8505 # Check whether --with-pic was given.
8506 if test ${with_pic+y}
8507 then :
8508 withval=$with_pic; lt_p=${PACKAGE-default}
8509 case $withval in
8510 yes|no) pic_mode=$withval ;;
8511 *)
8512 pic_mode=default
8513 # Look at the argument we got. We use all the common list separators.
8514 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8515 for lt_pkg in $withval; do
8516 IFS=$lt_save_ifs
8517 if test "X$lt_pkg" = "X$lt_p"; then
8518 pic_mode=yes
8519 fi
8520 done
8521 IFS=$lt_save_ifs
8522 ;;
8523 esac
8524 else $as_nop
8525 pic_mode=default
8526 fi
8527
8528
8529
8530
8531
8532
8533
8534
8535 # Check whether --enable-fast-install was given.
8536 if test ${enable_fast_install+y}
8537 then :
8538 enableval=$enable_fast_install; p=${PACKAGE-default}
8539 case $enableval in
8540 yes) enable_fast_install=yes ;;
8541 no) enable_fast_install=no ;;
8542 *)
8543 enable_fast_install=no
8544 # Look at the argument we got. We use all the common list separators.
8545 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8546 for pkg in $enableval; do
8547 IFS=$lt_save_ifs
8548 if test "X$pkg" = "X$p"; then
8549 enable_fast_install=yes
8550 fi
8551 done
8552 IFS=$lt_save_ifs
8553 ;;
8554 esac
8555 else $as_nop
8556 enable_fast_install=yes
8557 fi
8558
8559
8560
8561
8562
8563
8564
8565
8566 shared_archive_member_spec=
8567 case $host,$enable_shared in
8568 power*-*-aix[5-9]*,yes)
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8570 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8571
8572 # Check whether --with-aix-soname was given.
8573 if test ${with_aix_soname+y}
8574 then :
8575 withval=$with_aix_soname; case $withval in
8576 aix|svr4|both)
8577 ;;
8578 *)
8579 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8580 ;;
8581 esac
8582 lt_cv_with_aix_soname=$with_aix_soname
8583 else $as_nop
8584 if test ${lt_cv_with_aix_soname+y}
8585 then :
8586 printf %s "(cached) " >&6
8587 else $as_nop
8588 lt_cv_with_aix_soname=aix
8589 fi
8590
8591 with_aix_soname=$lt_cv_with_aix_soname
8592 fi
8593
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8595 printf "%s\n" "$with_aix_soname" >&6; }
8596 if test aix != "$with_aix_soname"; then
8597 # For the AIX way of multilib, we name the shared archive member
8598 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8599 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8600 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8601 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8602 if test 64 = "${OBJECT_MODE-32}"; then
8603 shared_archive_member_spec=shr_64
8604 else
8605 shared_archive_member_spec=shr
8606 fi
8607 fi
8608 ;;
8609 *)
8610 with_aix_soname=aix
8611 ;;
8612 esac
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623 # This can be used to rebuild libtool when needed
8624 LIBTOOL_DEPS=$ltmain
8625
8626 # Always use our own libtool.
8627 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658 test -z "$LN_S" && LN_S="ln -s"
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673 if test -n "${ZSH_VERSION+set}"; then
8674 setopt NO_GLOB_SUBST
8675 fi
8676
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8678 printf %s "checking for objdir... " >&6; }
8679 if test ${lt_cv_objdir+y}
8680 then :
8681 printf %s "(cached) " >&6
8682 else $as_nop
8683 rm -f .libs 2>/dev/null
8684 mkdir .libs 2>/dev/null
8685 if test -d .libs; then
8686 lt_cv_objdir=.libs
8687 else
8688 # MS-DOS does not allow filenames that begin with a dot.
8689 lt_cv_objdir=_libs
8690 fi
8691 rmdir .libs 2>/dev/null
8692 fi
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8694 printf "%s\n" "$lt_cv_objdir" >&6; }
8695 objdir=$lt_cv_objdir
8696
8697
8698
8699
8700
8701 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8702
8703
8704
8705
8706 case $host_os in
8707 aix3*)
8708 # AIX sometimes has problems with the GCC collect2 program. For some
8709 # reason, if we set the COLLECT_NAMES environment variable, the problems
8710 # vanish in a puff of smoke.
8711 if test set != "${COLLECT_NAMES+set}"; then
8712 COLLECT_NAMES=
8713 export COLLECT_NAMES
8714 fi
8715 ;;
8716 esac
8717
8718 # Global variables:
8719 ofile=libtool
8720 can_build_shared=yes
8721
8722 # All known linkers require a '.a' archive for static linking (except MSVC and
8723 # ICC, which need '.lib').
8724 libext=a
8725
8726 with_gnu_ld=$lt_cv_prog_gnu_ld
8727
8728 old_CC=$CC
8729 old_CFLAGS=$CFLAGS
8730
8731 # Set sane defaults for various variables
8732 test -z "$CC" && CC=cc
8733 test -z "$LTCC" && LTCC=$CC
8734 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8735 test -z "$LD" && LD=ld
8736 test -z "$ac_objext" && ac_objext=o
8737
8738 func_cc_basename $compiler
8739 cc_basename=$func_cc_basename_result
8740
8741
8742 # Only perform the check for file, if the check method requires it
8743 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8744 case $deplibs_check_method in
8745 file_magic*)
8746 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8748 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8749 if test ${lt_cv_path_MAGIC_CMD+y}
8750 then :
8751 printf %s "(cached) " >&6
8752 else $as_nop
8753 case $MAGIC_CMD in
8754 [\\/*] | ?:[\\/]*)
8755 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8756 ;;
8757 *)
8758 lt_save_MAGIC_CMD=$MAGIC_CMD
8759 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8761 for ac_dir in $ac_dummy; do
8762 IFS=$lt_save_ifs
8763 test -z "$ac_dir" && ac_dir=.
8764 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8765 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8766 if test -n "$file_magic_test_file"; then
8767 case $deplibs_check_method in
8768 "file_magic "*)
8769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8770 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8772 $EGREP "$file_magic_regex" > /dev/null; then
8773 :
8774 else
8775 cat <<_LT_EOF 1>&2
8776
8777 *** Warning: the command libtool uses to detect shared libraries,
8778 *** $file_magic_cmd, produces output that libtool cannot recognize.
8779 *** The result is that libtool may fail to recognize shared libraries
8780 *** as such. This will affect the creation of libtool libraries that
8781 *** depend on shared libraries, but programs linked with such libtool
8782 *** libraries will work regardless of this problem. Nevertheless, you
8783 *** may want to report the problem to your system manager and/or to
8784 *** [email protected]
8785
8786 _LT_EOF
8787 fi ;;
8788 esac
8789 fi
8790 break
8791 fi
8792 done
8793 IFS=$lt_save_ifs
8794 MAGIC_CMD=$lt_save_MAGIC_CMD
8795 ;;
8796 esac
8797 fi
8798
8799 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8800 if test -n "$MAGIC_CMD"; then
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8802 printf "%s\n" "$MAGIC_CMD" >&6; }
8803 else
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 printf "%s\n" "no" >&6; }
8806 fi
8807
8808
8809
8810
8811
8812 if test -z "$lt_cv_path_MAGIC_CMD"; then
8813 if test -n "$ac_tool_prefix"; then
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8815 printf %s "checking for file... " >&6; }
8816 if test ${lt_cv_path_MAGIC_CMD+y}
8817 then :
8818 printf %s "(cached) " >&6
8819 else $as_nop
8820 case $MAGIC_CMD in
8821 [\\/*] | ?:[\\/]*)
8822 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8823 ;;
8824 *)
8825 lt_save_MAGIC_CMD=$MAGIC_CMD
8826 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8828 for ac_dir in $ac_dummy; do
8829 IFS=$lt_save_ifs
8830 test -z "$ac_dir" && ac_dir=.
8831 if test -f "$ac_dir/file"; then
8832 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8833 if test -n "$file_magic_test_file"; then
8834 case $deplibs_check_method in
8835 "file_magic "*)
8836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8837 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8839 $EGREP "$file_magic_regex" > /dev/null; then
8840 :
8841 else
8842 cat <<_LT_EOF 1>&2
8843
8844 *** Warning: the command libtool uses to detect shared libraries,
8845 *** $file_magic_cmd, produces output that libtool cannot recognize.
8846 *** The result is that libtool may fail to recognize shared libraries
8847 *** as such. This will affect the creation of libtool libraries that
8848 *** depend on shared libraries, but programs linked with such libtool
8849 *** libraries will work regardless of this problem. Nevertheless, you
8850 *** may want to report the problem to your system manager and/or to
8851 *** [email protected]
8852
8853 _LT_EOF
8854 fi ;;
8855 esac
8856 fi
8857 break
8858 fi
8859 done
8860 IFS=$lt_save_ifs
8861 MAGIC_CMD=$lt_save_MAGIC_CMD
8862 ;;
8863 esac
8864 fi
8865
8866 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8867 if test -n "$MAGIC_CMD"; then
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8869 printf "%s\n" "$MAGIC_CMD" >&6; }
8870 else
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 printf "%s\n" "no" >&6; }
8873 fi
8874
8875
8876 else
8877 MAGIC_CMD=:
8878 fi
8879 fi
8880
8881 fi
8882 ;;
8883 esac
8884
8885 # Use C for the default configuration in the libtool script
8886
8887 lt_save_CC=$CC
8888 ac_ext=c
8889 ac_cpp='$CPP $CPPFLAGS'
8890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8893
8894
8895 # Source file extension for C test sources.
8896 ac_ext=c
8897
8898 # Object file extension for compiled C test sources.
8899 objext=o
8900 objext=$objext
8901
8902 # Code to be used in simple compile tests
8903 lt_simple_compile_test_code="int some_variable = 0;"
8904
8905 # Code to be used in simple link tests
8906 lt_simple_link_test_code='int main(){return(0);}'
8907
8908
8909
8910
8911
8912
8913
8914 # If no C compiler was specified, use CC.
8915 LTCC=${LTCC-"$CC"}
8916
8917 # If no C compiler flags were specified, use CFLAGS.
8918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8919
8920 # Allow CC to be a program name with arguments.
8921 compiler=$CC
8922
8923 # Save the default compiler, since it gets overwritten when the other
8924 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8925 compiler_DEFAULT=$CC
8926
8927 # save warnings/boilerplate of simple test code
8928 ac_outfile=conftest.$ac_objext
8929 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8930 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8931 _lt_compiler_boilerplate=`cat conftest.err`
8932 $RM conftest*
8933
8934 ac_outfile=conftest.$ac_objext
8935 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8936 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8937 _lt_linker_boilerplate=`cat conftest.err`
8938 $RM -r conftest*
8939
8940
8941 ## CAVEAT EMPTOR:
8942 ## There is no encapsulation within the following macros, do not change
8943 ## the running order or otherwise move them around unless you know exactly
8944 ## what you are doing...
8945 if test -n "$compiler"; then
8946
8947 lt_prog_compiler_no_builtin_flag=
8948
8949 if test yes = "$GCC"; then
8950 case $cc_basename in
8951 nvcc*)
8952 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8953 *)
8954 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8955 esac
8956
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8958 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8959 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8960 then :
8961 printf %s "(cached) " >&6
8962 else $as_nop
8963 lt_cv_prog_compiler_rtti_exceptions=no
8964 ac_outfile=conftest.$ac_objext
8965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8966 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8967 # Insert the option either (1) after the last *FLAGS variable, or
8968 # (2) before a word containing "conftest.", or (3) at the end.
8969 # Note that $ac_compile itself does not contain backslashes and begins
8970 # with a dollar sign (not a hyphen), so the echo should work correctly.
8971 # The option is referenced via a variable to avoid confusing sed.
8972 lt_compile=`echo "$ac_compile" | $SED \
8973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8975 -e 's:$: $lt_compiler_flag:'`
8976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8977 (eval "$lt_compile" 2>conftest.err)
8978 ac_status=$?
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 if (exit $ac_status) && test -s "$ac_outfile"; then
8982 # The compiler can only warn and ignore the option if not recognized
8983 # So say no if there are warnings other than the usual output.
8984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8987 lt_cv_prog_compiler_rtti_exceptions=yes
8988 fi
8989 fi
8990 $RM conftest*
8991
8992 fi
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8994 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8995
8996 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8998 else
8999 :
9000 fi
9001
9002 fi
9003
9004
9005
9006
9007
9008
9009 lt_prog_compiler_wl=
9010 lt_prog_compiler_pic=
9011 lt_prog_compiler_static=
9012
9013
9014 if test yes = "$GCC"; then
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_static='-static'
9017
9018 case $host_os in
9019 aix*)
9020 # All AIX code is PIC.
9021 if test ia64 = "$host_cpu"; then
9022 # AIX 5 now supports IA64 processor
9023 lt_prog_compiler_static='-Bstatic'
9024 fi
9025 lt_prog_compiler_pic='-fPIC'
9026 ;;
9027
9028 amigaos*)
9029 case $host_cpu in
9030 powerpc)
9031 # see comment about AmigaOS4 .so support
9032 lt_prog_compiler_pic='-fPIC'
9033 ;;
9034 m68k)
9035 # FIXME: we need at least 68020 code to build shared libraries, but
9036 # adding the '-m68020' flag to GCC prevents building anything better,
9037 # like '-m68040'.
9038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9039 ;;
9040 esac
9041 ;;
9042
9043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9044 # PIC is the default for these OSes.
9045 ;;
9046
9047 mingw* | cygwin* | pw32* | os2* | cegcc*)
9048 # This hack is so that the source file can tell whether it is being
9049 # built for inclusion in a dll (and should export symbols for example).
9050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9051 # (--disable-auto-import) libraries
9052 lt_prog_compiler_pic='-DDLL_EXPORT'
9053 case $host_os in
9054 os2*)
9055 lt_prog_compiler_static='$wl-static'
9056 ;;
9057 esac
9058 ;;
9059
9060 darwin* | rhapsody*)
9061 # PIC is the default on this platform
9062 # Common symbols not allowed in MH_DYLIB files
9063 lt_prog_compiler_pic='-fno-common'
9064 ;;
9065
9066 haiku*)
9067 # PIC is the default for Haiku.
9068 # The "-static" flag exists, but is broken.
9069 lt_prog_compiler_static=
9070 ;;
9071
9072 hpux*)
9073 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9074 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9075 # sets the default TLS model and affects inlining.
9076 case $host_cpu in
9077 hppa*64*)
9078 # +Z the default
9079 ;;
9080 *)
9081 lt_prog_compiler_pic='-fPIC'
9082 ;;
9083 esac
9084 ;;
9085
9086 interix[3-9]*)
9087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9088 # Instead, we relocate shared libraries at runtime.
9089 ;;
9090
9091 msdosdjgpp*)
9092 # Just because we use GCC doesn't mean we suddenly get shared libraries
9093 # on systems that don't support them.
9094 lt_prog_compiler_can_build_shared=no
9095 enable_shared=no
9096 ;;
9097
9098 *nto* | *qnx*)
9099 # QNX uses GNU C++, but need to define -shared option too, otherwise
9100 # it will coredump.
9101 lt_prog_compiler_pic='-fPIC -shared'
9102 ;;
9103
9104 sysv4*MP*)
9105 if test -d /usr/nec; then
9106 lt_prog_compiler_pic=-Kconform_pic
9107 fi
9108 ;;
9109
9110 *)
9111 lt_prog_compiler_pic='-fPIC'
9112 ;;
9113 esac
9114
9115 case $cc_basename in
9116 nvcc*) # Cuda Compiler Driver 2.2
9117 lt_prog_compiler_wl='-Xlinker '
9118 if test -n "$lt_prog_compiler_pic"; then
9119 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9120 fi
9121 ;;
9122 esac
9123 else
9124 # PORTME Check for flag to pass linker flags through the system compiler.
9125 case $host_os in
9126 aix*)
9127 lt_prog_compiler_wl='-Wl,'
9128 if test ia64 = "$host_cpu"; then
9129 # AIX 5 now supports IA64 processor
9130 lt_prog_compiler_static='-Bstatic'
9131 else
9132 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9133 fi
9134 ;;
9135
9136 darwin* | rhapsody*)
9137 # PIC is the default on this platform
9138 # Common symbols not allowed in MH_DYLIB files
9139 lt_prog_compiler_pic='-fno-common'
9140 case $cc_basename in
9141 nagfor*)
9142 # NAG Fortran compiler
9143 lt_prog_compiler_wl='-Wl,-Wl,,'
9144 lt_prog_compiler_pic='-PIC'
9145 lt_prog_compiler_static='-Bstatic'
9146 ;;
9147 esac
9148 ;;
9149
9150 mingw* | cygwin* | pw32* | os2* | cegcc*)
9151 # This hack is so that the source file can tell whether it is being
9152 # built for inclusion in a dll (and should export symbols for example).
9153 lt_prog_compiler_pic='-DDLL_EXPORT'
9154 case $host_os in
9155 os2*)
9156 lt_prog_compiler_static='$wl-static'
9157 ;;
9158 esac
9159 ;;
9160
9161 hpux9* | hpux10* | hpux11*)
9162 lt_prog_compiler_wl='-Wl,'
9163 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9164 # not for PA HP-UX.
9165 case $host_cpu in
9166 hppa*64*|ia64*)
9167 # +Z the default
9168 ;;
9169 *)
9170 lt_prog_compiler_pic='+Z'
9171 ;;
9172 esac
9173 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9174 lt_prog_compiler_static='$wl-a ${wl}archive'
9175 ;;
9176
9177 irix5* | irix6* | nonstopux*)
9178 lt_prog_compiler_wl='-Wl,'
9179 # PIC (with -KPIC) is the default.
9180 lt_prog_compiler_static='-non_shared'
9181 ;;
9182
9183 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9184 case $cc_basename in
9185 # old Intel for x86_64, which still supported -KPIC.
9186 ecc*)
9187 lt_prog_compiler_wl='-Wl,'
9188 lt_prog_compiler_pic='-KPIC'
9189 lt_prog_compiler_static='-static'
9190 ;;
9191 # flang / f18. f95 an alias for gfortran or flang on Debian
9192 flang* | f18* | f95*)
9193 lt_prog_compiler_wl='-Wl,'
9194 lt_prog_compiler_pic='-fPIC'
9195 lt_prog_compiler_static='-static'
9196 ;;
9197 # icc used to be incompatible with GCC.
9198 # ICC 10 doesn't accept -KPIC any more.
9199 icc* | ifort*)
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-fPIC'
9202 lt_prog_compiler_static='-static'
9203 ;;
9204 # Lahey Fortran 8.1.
9205 lf95*)
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_pic='--shared'
9208 lt_prog_compiler_static='--static'
9209 ;;
9210 nagfor*)
9211 # NAG Fortran compiler
9212 lt_prog_compiler_wl='-Wl,-Wl,,'
9213 lt_prog_compiler_pic='-PIC'
9214 lt_prog_compiler_static='-Bstatic'
9215 ;;
9216 tcc*)
9217 # Fabrice Bellard et al's Tiny C Compiler
9218 lt_prog_compiler_wl='-Wl,'
9219 lt_prog_compiler_pic='-fPIC'
9220 lt_prog_compiler_static='-static'
9221 ;;
9222 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9223 # Portland Group compilers (*not* the Pentium gcc compiler,
9224 # which looks to be a dead project)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='-fpic'
9227 lt_prog_compiler_static='-Bstatic'
9228 ;;
9229 ccc*)
9230 lt_prog_compiler_wl='-Wl,'
9231 # All Alpha code is PIC.
9232 lt_prog_compiler_static='-non_shared'
9233 ;;
9234 xl* | bgxl* | bgf* | mpixl*)
9235 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9236 lt_prog_compiler_wl='-Wl,'
9237 lt_prog_compiler_pic='-qpic'
9238 lt_prog_compiler_static='-qstaticlink'
9239 ;;
9240 *)
9241 case `$CC -V 2>&1 | $SED 5q` in
9242 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9243 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9244 lt_prog_compiler_pic='-KPIC'
9245 lt_prog_compiler_static='-Bstatic'
9246 lt_prog_compiler_wl=''
9247 ;;
9248 *Sun\ F* | *Sun*Fortran*)
9249 lt_prog_compiler_pic='-KPIC'
9250 lt_prog_compiler_static='-Bstatic'
9251 lt_prog_compiler_wl='-Qoption ld '
9252 ;;
9253 *Sun\ C*)
9254 # Sun C 5.9
9255 lt_prog_compiler_pic='-KPIC'
9256 lt_prog_compiler_static='-Bstatic'
9257 lt_prog_compiler_wl='-Wl,'
9258 ;;
9259 *Intel*\ [CF]*Compiler*)
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_pic='-fPIC'
9262 lt_prog_compiler_static='-static'
9263 ;;
9264 *Portland\ Group*)
9265 lt_prog_compiler_wl='-Wl,'
9266 lt_prog_compiler_pic='-fpic'
9267 lt_prog_compiler_static='-Bstatic'
9268 ;;
9269 esac
9270 ;;
9271 esac
9272 ;;
9273
9274 newsos6)
9275 lt_prog_compiler_pic='-KPIC'
9276 lt_prog_compiler_static='-Bstatic'
9277 ;;
9278
9279 *nto* | *qnx*)
9280 # QNX uses GNU C++, but need to define -shared option too, otherwise
9281 # it will coredump.
9282 lt_prog_compiler_pic='-fPIC -shared'
9283 ;;
9284
9285 osf3* | osf4* | osf5*)
9286 lt_prog_compiler_wl='-Wl,'
9287 # All OSF/1 code is PIC.
9288 lt_prog_compiler_static='-non_shared'
9289 ;;
9290
9291 rdos*)
9292 lt_prog_compiler_static='-non_shared'
9293 ;;
9294
9295 solaris*)
9296 lt_prog_compiler_pic='-KPIC'
9297 lt_prog_compiler_static='-Bstatic'
9298 case $cc_basename in
9299 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9300 lt_prog_compiler_wl='-Qoption ld ';;
9301 *)
9302 lt_prog_compiler_wl='-Wl,';;
9303 esac
9304 ;;
9305
9306 sunos4*)
9307 lt_prog_compiler_wl='-Qoption ld '
9308 lt_prog_compiler_pic='-PIC'
9309 lt_prog_compiler_static='-Bstatic'
9310 ;;
9311
9312 sysv4 | sysv4.2uw2* | sysv4.3*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-KPIC'
9315 lt_prog_compiler_static='-Bstatic'
9316 ;;
9317
9318 sysv4*MP*)
9319 if test -d /usr/nec; then
9320 lt_prog_compiler_pic='-Kconform_pic'
9321 lt_prog_compiler_static='-Bstatic'
9322 fi
9323 ;;
9324
9325 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-Bstatic'
9329 ;;
9330
9331 unicos*)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_can_build_shared=no
9334 ;;
9335
9336 uts4*)
9337 lt_prog_compiler_pic='-pic'
9338 lt_prog_compiler_static='-Bstatic'
9339 ;;
9340
9341 *)
9342 lt_prog_compiler_can_build_shared=no
9343 ;;
9344 esac
9345 fi
9346
9347 case $host_os in
9348 # For platforms that do not support PIC, -DPIC is meaningless:
9349 *djgpp*)
9350 lt_prog_compiler_pic=
9351 ;;
9352 *)
9353 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9354 ;;
9355 esac
9356
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9358 printf %s "checking for $compiler option to produce PIC... " >&6; }
9359 if test ${lt_cv_prog_compiler_pic+y}
9360 then :
9361 printf %s "(cached) " >&6
9362 else $as_nop
9363 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9364 fi
9365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9366 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9367 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9368
9369 #
9370 # Check to make sure the PIC flag actually works.
9371 #
9372 if test -n "$lt_prog_compiler_pic"; then
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9374 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9375 if test ${lt_cv_prog_compiler_pic_works+y}
9376 then :
9377 printf %s "(cached) " >&6
9378 else $as_nop
9379 lt_cv_prog_compiler_pic_works=no
9380 ac_outfile=conftest.$ac_objext
9381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9382 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9383 # Insert the option either (1) after the last *FLAGS variable, or
9384 # (2) before a word containing "conftest.", or (3) at the end.
9385 # Note that $ac_compile itself does not contain backslashes and begins
9386 # with a dollar sign (not a hyphen), so the echo should work correctly.
9387 # The option is referenced via a variable to avoid confusing sed.
9388 lt_compile=`echo "$ac_compile" | $SED \
9389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9391 -e 's:$: $lt_compiler_flag:'`
9392 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9393 (eval "$lt_compile" 2>conftest.err)
9394 ac_status=$?
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 if (exit $ac_status) && test -s "$ac_outfile"; then
9398 # The compiler can only warn and ignore the option if not recognized
9399 # So say no if there are warnings other than the usual output.
9400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9402 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9403 lt_cv_prog_compiler_pic_works=yes
9404 fi
9405 fi
9406 $RM conftest*
9407
9408 fi
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9410 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9411
9412 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9413 case $lt_prog_compiler_pic in
9414 "" | " "*) ;;
9415 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9416 esac
9417 else
9418 lt_prog_compiler_pic=
9419 lt_prog_compiler_can_build_shared=no
9420 fi
9421
9422 fi
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434 #
9435 # Check to make sure the static flag actually works.
9436 #
9437 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9439 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9440 if test ${lt_cv_prog_compiler_static_works+y}
9441 then :
9442 printf %s "(cached) " >&6
9443 else $as_nop
9444 lt_cv_prog_compiler_static_works=no
9445 save_LDFLAGS=$LDFLAGS
9446 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9447 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9449 # The linker can only warn and ignore the option if not recognized
9450 # So say no if there are warnings
9451 if test -s conftest.err; then
9452 # Append any errors to the config.log.
9453 cat conftest.err 1>&5
9454 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9456 if diff conftest.exp conftest.er2 >/dev/null; then
9457 lt_cv_prog_compiler_static_works=yes
9458 fi
9459 else
9460 lt_cv_prog_compiler_static_works=yes
9461 fi
9462 fi
9463 $RM -r conftest*
9464 LDFLAGS=$save_LDFLAGS
9465
9466 fi
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9468 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9469
9470 if test yes = "$lt_cv_prog_compiler_static_works"; then
9471 :
9472 else
9473 lt_prog_compiler_static=
9474 fi
9475
9476
9477
9478
9479
9480
9481
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9483 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9484 if test ${lt_cv_prog_compiler_c_o+y}
9485 then :
9486 printf %s "(cached) " >&6
9487 else $as_nop
9488 lt_cv_prog_compiler_c_o=no
9489 $RM -r conftest 2>/dev/null
9490 mkdir conftest
9491 cd conftest
9492 mkdir out
9493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9494
9495 lt_compiler_flag="-o out/conftest2.$ac_objext"
9496 # Insert the option either (1) after the last *FLAGS variable, or
9497 # (2) before a word containing "conftest.", or (3) at the end.
9498 # Note that $ac_compile itself does not contain backslashes and begins
9499 # with a dollar sign (not a hyphen), so the echo should work correctly.
9500 lt_compile=`echo "$ac_compile" | $SED \
9501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9503 -e 's:$: $lt_compiler_flag:'`
9504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9505 (eval "$lt_compile" 2>out/conftest.err)
9506 ac_status=$?
9507 cat out/conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9510 then
9511 # The compiler can only warn and ignore the option if not recognized
9512 # So say no if there are warnings
9513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9514 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9515 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9516 lt_cv_prog_compiler_c_o=yes
9517 fi
9518 fi
9519 chmod u+w . 2>&5
9520 $RM conftest*
9521 # SGI C++ compiler will create directory out/ii_files/ for
9522 # template instantiation
9523 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9524 $RM out/* && rmdir out
9525 cd ..
9526 $RM -r conftest
9527 $RM conftest*
9528
9529 fi
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9531 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9532
9533
9534
9535
9536
9537
9538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9539 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9540 if test ${lt_cv_prog_compiler_c_o+y}
9541 then :
9542 printf %s "(cached) " >&6
9543 else $as_nop
9544 lt_cv_prog_compiler_c_o=no
9545 $RM -r conftest 2>/dev/null
9546 mkdir conftest
9547 cd conftest
9548 mkdir out
9549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9550
9551 lt_compiler_flag="-o out/conftest2.$ac_objext"
9552 # Insert the option either (1) after the last *FLAGS variable, or
9553 # (2) before a word containing "conftest.", or (3) at the end.
9554 # Note that $ac_compile itself does not contain backslashes and begins
9555 # with a dollar sign (not a hyphen), so the echo should work correctly.
9556 lt_compile=`echo "$ac_compile" | $SED \
9557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9559 -e 's:$: $lt_compiler_flag:'`
9560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9561 (eval "$lt_compile" 2>out/conftest.err)
9562 ac_status=$?
9563 cat out/conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9566 then
9567 # The compiler can only warn and ignore the option if not recognized
9568 # So say no if there are warnings
9569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9572 lt_cv_prog_compiler_c_o=yes
9573 fi
9574 fi
9575 chmod u+w . 2>&5
9576 $RM conftest*
9577 # SGI C++ compiler will create directory out/ii_files/ for
9578 # template instantiation
9579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9580 $RM out/* && rmdir out
9581 cd ..
9582 $RM -r conftest
9583 $RM conftest*
9584
9585 fi
9586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9587 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9588
9589
9590
9591
9592 hard_links=nottested
9593 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9594 # do not overwrite the value of need_locks provided by the user
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9596 printf %s "checking if we can lock with hard links... " >&6; }
9597 hard_links=yes
9598 $RM conftest*
9599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9600 touch conftest.a
9601 ln conftest.a conftest.b 2>&5 || hard_links=no
9602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9604 printf "%s\n" "$hard_links" >&6; }
9605 if test no = "$hard_links"; then
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9607 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9608 need_locks=warn
9609 fi
9610 else
9611 need_locks=no
9612 fi
9613
9614
9615
9616
9617
9618
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9620 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9621
9622 runpath_var=
9623 allow_undefined_flag=
9624 always_export_symbols=no
9625 archive_cmds=
9626 archive_expsym_cmds=
9627 compiler_needs_object=no
9628 enable_shared_with_static_runtimes=no
9629 export_dynamic_flag_spec=
9630 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9631 hardcode_automatic=no
9632 hardcode_direct=no
9633 hardcode_direct_absolute=no
9634 hardcode_libdir_flag_spec=
9635 hardcode_libdir_separator=
9636 hardcode_minus_L=no
9637 hardcode_shlibpath_var=unsupported
9638 inherit_rpath=no
9639 link_all_deplibs=unknown
9640 module_cmds=
9641 module_expsym_cmds=
9642 old_archive_from_new_cmds=
9643 old_archive_from_expsyms_cmds=
9644 thread_safe_flag_spec=
9645 whole_archive_flag_spec=
9646 # include_expsyms should be a list of space-separated symbols to be *always*
9647 # included in the symbol list
9648 include_expsyms=
9649 # exclude_expsyms can be an extended regexp of symbols to exclude
9650 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9651 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9652 # as well as any symbol that contains 'd'.
9653 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9655 # platforms (ab)use it in PIC code, but their linkers get confused if
9656 # the symbol is explicitly referenced. Since portable code cannot
9657 # rely on this symbol name, it's probably fine to never include it in
9658 # preloaded symbol tables.
9659 # Exclude shared library initialization/finalization symbols.
9660 extract_expsyms_cmds=
9661
9662 case $host_os in
9663 cygwin* | mingw* | pw32* | cegcc*)
9664 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9665 # When not using gcc, we currently assume that we are using
9666 # Microsoft Visual C++ or Intel C++ Compiler.
9667 if test yes != "$GCC"; then
9668 with_gnu_ld=no
9669 fi
9670 ;;
9671 interix*)
9672 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9673 with_gnu_ld=yes
9674 ;;
9675 openbsd* | bitrig*)
9676 with_gnu_ld=no
9677 ;;
9678 linux* | k*bsd*-gnu | gnu*)
9679 link_all_deplibs=no
9680 ;;
9681 esac
9682
9683 ld_shlibs=yes
9684
9685 # On some targets, GNU ld is compatible enough with the native linker
9686 # that we're better off using the native interface for both.
9687 lt_use_gnu_ld_interface=no
9688 if test yes = "$with_gnu_ld"; then
9689 case $host_os in
9690 aix*)
9691 # The AIX port of GNU ld has always aspired to compatibility
9692 # with the native linker. However, as the warning in the GNU ld
9693 # block says, versions before 2.19.5* couldn't really create working
9694 # shared libraries, regardless of the interface used.
9695 case `$LD -v 2>&1` in
9696 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9697 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9698 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9699 *)
9700 lt_use_gnu_ld_interface=yes
9701 ;;
9702 esac
9703 ;;
9704 *)
9705 lt_use_gnu_ld_interface=yes
9706 ;;
9707 esac
9708 fi
9709
9710 if test yes = "$lt_use_gnu_ld_interface"; then
9711 # If archive_cmds runs LD, not CC, wlarc should be empty
9712 wlarc='$wl'
9713
9714 # Set some defaults for GNU ld with shared library support. These
9715 # are reset later if shared libraries are not supported. Putting them
9716 # here allows them to be overridden if necessary.
9717 runpath_var=LD_RUN_PATH
9718 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9719 export_dynamic_flag_spec='$wl--export-dynamic'
9720 # ancient GNU ld didn't support --whole-archive et. al.
9721 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9722 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9723 else
9724 whole_archive_flag_spec=
9725 fi
9726 supports_anon_versioning=no
9727 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9728 *GNU\ gold*) supports_anon_versioning=yes ;;
9729 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9730 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9731 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9732 *\ 2.11.*) ;; # other 2.11 versions
9733 *) supports_anon_versioning=yes ;;
9734 esac
9735
9736 # See if GNU ld supports shared libraries.
9737 case $host_os in
9738 aix[3-9]*)
9739 # On AIX/PPC, the GNU linker is very broken
9740 if test ia64 != "$host_cpu"; then
9741 ld_shlibs=no
9742 cat <<_LT_EOF 1>&2
9743
9744 *** Warning: the GNU linker, at least up to release 2.19, is reported
9745 *** to be unable to reliably create shared libraries on AIX.
9746 *** Therefore, libtool is disabling shared libraries support. If you
9747 *** really care for shared libraries, you may want to install binutils
9748 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9749 *** You will then need to restart the configuration process.
9750
9751 _LT_EOF
9752 fi
9753 ;;
9754
9755 amigaos*)
9756 case $host_cpu in
9757 powerpc)
9758 # see comment about AmigaOS4 .so support
9759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9760 archive_expsym_cmds=''
9761 ;;
9762 m68k)
9763 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)'
9764 hardcode_libdir_flag_spec='-L$libdir'
9765 hardcode_minus_L=yes
9766 ;;
9767 esac
9768 ;;
9769
9770 beos*)
9771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9772 allow_undefined_flag=unsupported
9773 # Joseph Beckenbach <[email protected]> says some releases of gcc
9774 # support --undefined. This deserves some investigation. FIXME
9775 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9776 else
9777 ld_shlibs=no
9778 fi
9779 ;;
9780
9781 cygwin* | mingw* | pw32* | cegcc*)
9782 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9783 # as there is no search path for DLLs.
9784 hardcode_libdir_flag_spec='-L$libdir'
9785 export_dynamic_flag_spec='$wl--export-all-symbols'
9786 allow_undefined_flag=unsupported
9787 always_export_symbols=no
9788 enable_shared_with_static_runtimes=yes
9789 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'
9790 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9791
9792 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9794 # If the export-symbols file already is a .def file, use it as
9795 # is; otherwise, prepend EXPORTS...
9796 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9797 cp $export_symbols $output_objdir/$soname.def;
9798 else
9799 echo EXPORTS > $output_objdir/$soname.def;
9800 cat $export_symbols >> $output_objdir/$soname.def;
9801 fi~
9802 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9803 else
9804 ld_shlibs=no
9805 fi
9806 ;;
9807
9808 haiku*)
9809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9810 link_all_deplibs=yes
9811 ;;
9812
9813 os2*)
9814 hardcode_libdir_flag_spec='-L$libdir'
9815 hardcode_minus_L=yes
9816 allow_undefined_flag=unsupported
9817 shrext_cmds=.dll
9818 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9819 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9820 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9821 $ECHO EXPORTS >> $output_objdir/$libname.def~
9822 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9823 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9824 emximp -o $lib $output_objdir/$libname.def'
9825 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9826 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9827 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9828 $ECHO EXPORTS >> $output_objdir/$libname.def~
9829 prefix_cmds="$SED"~
9830 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9831 prefix_cmds="$prefix_cmds -e 1d";
9832 fi~
9833 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9834 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9835 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9836 emximp -o $lib $output_objdir/$libname.def'
9837 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9838 enable_shared_with_static_runtimes=yes
9839 file_list_spec='@'
9840 ;;
9841
9842 interix[3-9]*)
9843 hardcode_direct=no
9844 hardcode_shlibpath_var=no
9845 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9846 export_dynamic_flag_spec='$wl-E'
9847 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9848 # Instead, shared libraries are loaded at an image base (0x10000000 by
9849 # default) and relocated if they conflict, which is a slow very memory
9850 # consuming and fragmenting process. To avoid this, we pick a random,
9851 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9852 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9854 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'
9855 ;;
9856
9857 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9858 tmp_diet=no
9859 if test linux-dietlibc = "$host_os"; then
9860 case $cc_basename in
9861 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9862 esac
9863 fi
9864 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9865 && test no = "$tmp_diet"
9866 then
9867 tmp_addflag=' $pic_flag'
9868 tmp_sharedflag='-shared'
9869 case $cc_basename,$host_cpu in
9870 pgcc*) # Portland Group C compiler
9871 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'
9872 tmp_addflag=' $pic_flag'
9873 ;;
9874 pgf77* | pgf90* | pgf95* | pgfortran*)
9875 # Portland Group f77 and f90 compilers
9876 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'
9877 tmp_addflag=' $pic_flag -Mnomain' ;;
9878 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9879 tmp_addflag=' -i_dynamic' ;;
9880 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9881 tmp_addflag=' -i_dynamic -nofor_main' ;;
9882 ifc* | ifort*) # Intel Fortran compiler
9883 tmp_addflag=' -nofor_main' ;;
9884 lf95*) # Lahey Fortran 8.1
9885 whole_archive_flag_spec=
9886 tmp_sharedflag='--shared' ;;
9887 nagfor*) # NAGFOR 5.3
9888 tmp_sharedflag='-Wl,-shared' ;;
9889 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9890 tmp_sharedflag='-qmkshrobj'
9891 tmp_addflag= ;;
9892 nvcc*) # Cuda Compiler Driver 2.2
9893 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'
9894 compiler_needs_object=yes
9895 ;;
9896 esac
9897 case `$CC -V 2>&1 | $SED 5q` in
9898 *Sun\ C*) # Sun C 5.9
9899 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'
9900 compiler_needs_object=yes
9901 tmp_sharedflag='-G' ;;
9902 *Sun\ F*) # Sun Fortran 8.3
9903 tmp_sharedflag='-G' ;;
9904 esac
9905 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9906
9907 if test yes = "$supports_anon_versioning"; then
9908 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9909 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9910 echo "local: *; };" >> $output_objdir/$libname.ver~
9911 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9912 fi
9913
9914 case $cc_basename in
9915 tcc*)
9916 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9917 export_dynamic_flag_spec='-rdynamic'
9918 ;;
9919 xlf* | bgf* | bgxlf* | mpixlf*)
9920 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9921 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9922 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9923 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9924 if test yes = "$supports_anon_versioning"; then
9925 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9926 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9927 echo "local: *; };" >> $output_objdir/$libname.ver~
9928 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9929 fi
9930 ;;
9931 esac
9932 else
9933 ld_shlibs=no
9934 fi
9935 ;;
9936
9937 netbsd* | netbsdelf*-gnu)
9938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9939 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9940 wlarc=
9941 else
9942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9943 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9944 fi
9945 ;;
9946
9947 solaris*)
9948 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9949 ld_shlibs=no
9950 cat <<_LT_EOF 1>&2
9951
9952 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9953 *** create shared libraries on Solaris systems. Therefore, libtool
9954 *** is disabling shared libraries support. We urge you to upgrade GNU
9955 *** binutils to release 2.9.1 or newer. Another option is to modify
9956 *** your PATH or compiler configuration so that the native linker is
9957 *** used, and then restart.
9958
9959 _LT_EOF
9960 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9963 else
9964 ld_shlibs=no
9965 fi
9966 ;;
9967
9968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9969 case `$LD -v 2>&1` in
9970 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9971 ld_shlibs=no
9972 cat <<_LT_EOF 1>&2
9973
9974 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9975 *** reliably create shared libraries on SCO systems. Therefore, libtool
9976 *** is disabling shared libraries support. We urge you to upgrade GNU
9977 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9978 *** your PATH or compiler configuration so that the native linker is
9979 *** used, and then restart.
9980
9981 _LT_EOF
9982 ;;
9983 *)
9984 # For security reasons, it is highly recommended that you always
9985 # use absolute paths for naming shared libraries, and exclude the
9986 # DT_RUNPATH tag from executables and libraries. But doing so
9987 # requires that you compile everything twice, which is a pain.
9988 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9989 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9992 else
9993 ld_shlibs=no
9994 fi
9995 ;;
9996 esac
9997 ;;
9998
9999 sunos4*)
10000 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10001 wlarc=
10002 hardcode_direct=yes
10003 hardcode_shlibpath_var=no
10004 ;;
10005
10006 *)
10007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10008 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10009 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10010 else
10011 ld_shlibs=no
10012 fi
10013 ;;
10014 esac
10015
10016 if test no = "$ld_shlibs"; then
10017 runpath_var=
10018 hardcode_libdir_flag_spec=
10019 export_dynamic_flag_spec=
10020 whole_archive_flag_spec=
10021 fi
10022 else
10023 # PORTME fill in a description of your system's linker (not GNU ld)
10024 case $host_os in
10025 aix3*)
10026 allow_undefined_flag=unsupported
10027 always_export_symbols=yes
10028 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'
10029 # Note: this linker hardcodes the directories in LIBPATH if there
10030 # are no directories specified by -L.
10031 hardcode_minus_L=yes
10032 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10033 # Neither direct hardcoding nor static linking is supported with a
10034 # broken collect2.
10035 hardcode_direct=unsupported
10036 fi
10037 ;;
10038
10039 aix[4-9]*)
10040 if test ia64 = "$host_cpu"; then
10041 # On IA64, the linker does run time linking by default, so we don't
10042 # have to do anything special.
10043 aix_use_runtimelinking=no
10044 exp_sym_flag='-Bexport'
10045 no_entry_flag=
10046 else
10047 # If we're using GNU nm, then we don't want the "-C" option.
10048 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10049 # Without the "-l" option, or with the "-B" option, AIX nm treats
10050 # weak defined symbols like other global defined symbols, whereas
10051 # GNU nm marks them as "W".
10052 # While the 'weak' keyword is ignored in the Export File, we need
10053 # it in the Import File for the 'aix-soname' feature, so we have
10054 # to replace the "-B" option with "-P" for AIX nm.
10055 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10056 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'
10057 else
10058 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'
10059 fi
10060 aix_use_runtimelinking=no
10061
10062 # Test if we are trying to use run time linking or normal
10063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10064 # have runtime linking enabled, and use it for executables.
10065 # For shared libraries, we enable/disable runtime linking
10066 # depending on the kind of the shared library created -
10067 # when "with_aix_soname,aix_use_runtimelinking" is:
10068 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10069 # "aix,yes" lib.so shared, rtl:yes, for executables
10070 # lib.a static archive
10071 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10072 # lib.a(lib.so.V) shared, rtl:no, for executables
10073 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10074 # lib.a(lib.so.V) shared, rtl:no
10075 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10076 # lib.a static archive
10077 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10078 for ld_flag in $LDFLAGS; do
10079 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10080 aix_use_runtimelinking=yes
10081 break
10082 fi
10083 done
10084 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10085 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10086 # so we don't have lib.a shared libs to link our executables.
10087 # We have to force runtime linking in this case.
10088 aix_use_runtimelinking=yes
10089 LDFLAGS="$LDFLAGS -Wl,-brtl"
10090 fi
10091 ;;
10092 esac
10093
10094 exp_sym_flag='-bexport'
10095 no_entry_flag='-bnoentry'
10096 fi
10097
10098 # When large executables or shared objects are built, AIX ld can
10099 # have problems creating the table of contents. If linking a library
10100 # or program results in "error TOC overflow" add -mminimal-toc to
10101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10103
10104 archive_cmds=''
10105 hardcode_direct=yes
10106 hardcode_direct_absolute=yes
10107 hardcode_libdir_separator=':'
10108 link_all_deplibs=yes
10109 file_list_spec='$wl-f,'
10110 case $with_aix_soname,$aix_use_runtimelinking in
10111 aix,*) ;; # traditional, no import file
10112 svr4,* | *,yes) # use import file
10113 # The Import File defines what to hardcode.
10114 hardcode_direct=no
10115 hardcode_direct_absolute=no
10116 ;;
10117 esac
10118
10119 if test yes = "$GCC"; then
10120 case $host_os in aix4.[012]|aix4.[012].*)
10121 # We only want to do this on AIX 4.2 and lower, the check
10122 # below for broken collect2 doesn't work under 4.3+
10123 collect2name=`$CC -print-prog-name=collect2`
10124 if test -f "$collect2name" &&
10125 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10126 then
10127 # We have reworked collect2
10128 :
10129 else
10130 # We have old collect2
10131 hardcode_direct=unsupported
10132 # It fails to find uninstalled libraries when the uninstalled
10133 # path is not listed in the libpath. Setting hardcode_minus_L
10134 # to unsupported forces relinking
10135 hardcode_minus_L=yes
10136 hardcode_libdir_flag_spec='-L$libdir'
10137 hardcode_libdir_separator=
10138 fi
10139 ;;
10140 esac
10141 shared_flag='-shared'
10142 if test yes = "$aix_use_runtimelinking"; then
10143 shared_flag="$shared_flag "'$wl-G'
10144 fi
10145 # Need to ensure runtime linking is disabled for the traditional
10146 # shared library, or the linker may eventually find shared libraries
10147 # /with/ Import File - we do not want to mix them.
10148 shared_flag_aix='-shared'
10149 shared_flag_svr4='-shared $wl-G'
10150 else
10151 # not using gcc
10152 if test ia64 = "$host_cpu"; then
10153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10154 # chokes on -Wl,-G. The following line is correct:
10155 shared_flag='-G'
10156 else
10157 if test yes = "$aix_use_runtimelinking"; then
10158 shared_flag='$wl-G'
10159 else
10160 shared_flag='$wl-bM:SRE'
10161 fi
10162 shared_flag_aix='$wl-bM:SRE'
10163 shared_flag_svr4='$wl-G'
10164 fi
10165 fi
10166
10167 export_dynamic_flag_spec='$wl-bexpall'
10168 # It seems that -bexpall does not export symbols beginning with
10169 # underscore (_), so it is better to generate a list of symbols to export.
10170 always_export_symbols=yes
10171 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10172 # Warning - without using the other runtime loading flags (-brtl),
10173 # -berok will link without error, but may produce a broken library.
10174 allow_undefined_flag='-berok'
10175 # Determine the default libpath from the value encoded in an
10176 # empty executable.
10177 if test set = "${lt_cv_aix_libpath+set}"; then
10178 aix_libpath=$lt_cv_aix_libpath
10179 else
10180 if test ${lt_cv_aix_libpath_+y}
10181 then :
10182 printf %s "(cached) " >&6
10183 else $as_nop
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186
10187 int
10188 main (void)
10189 {
10190
10191 ;
10192 return 0;
10193 }
10194 _ACEOF
10195 if ac_fn_c_try_link "$LINENO"
10196 then :
10197
10198 lt_aix_libpath_sed='
10199 /Import File Strings/,/^$/ {
10200 /^0/ {
10201 s/^0 *\([^ ]*\) *$/\1/
10202 p
10203 }
10204 }'
10205 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10206 # Check for a 64-bit object if we didn't find anything.
10207 if test -z "$lt_cv_aix_libpath_"; then
10208 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10209 fi
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10212 conftest$ac_exeext conftest.$ac_ext
10213 if test -z "$lt_cv_aix_libpath_"; then
10214 lt_cv_aix_libpath_=/usr/lib:/lib
10215 fi
10216
10217 fi
10218
10219 aix_libpath=$lt_cv_aix_libpath_
10220 fi
10221
10222 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10223 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
10224 else
10225 if test ia64 = "$host_cpu"; then
10226 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10227 allow_undefined_flag="-z nodefs"
10228 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"
10229 else
10230 # Determine the default libpath from the value encoded in an
10231 # empty executable.
10232 if test set = "${lt_cv_aix_libpath+set}"; then
10233 aix_libpath=$lt_cv_aix_libpath
10234 else
10235 if test ${lt_cv_aix_libpath_+y}
10236 then :
10237 printf %s "(cached) " >&6
10238 else $as_nop
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241
10242 int
10243 main (void)
10244 {
10245
10246 ;
10247 return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"
10251 then :
10252
10253 lt_aix_libpath_sed='
10254 /Import File Strings/,/^$/ {
10255 /^0/ {
10256 s/^0 *\([^ ]*\) *$/\1/
10257 p
10258 }
10259 }'
10260 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10261 # Check for a 64-bit object if we didn't find anything.
10262 if test -z "$lt_cv_aix_libpath_"; then
10263 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10264 fi
10265 fi
10266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10267 conftest$ac_exeext conftest.$ac_ext
10268 if test -z "$lt_cv_aix_libpath_"; then
10269 lt_cv_aix_libpath_=/usr/lib:/lib
10270 fi
10271
10272 fi
10273
10274 aix_libpath=$lt_cv_aix_libpath_
10275 fi
10276
10277 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10278 # Warning - without using the other run time loading flags,
10279 # -berok will link without error, but may produce a broken library.
10280 no_undefined_flag=' $wl-bernotok'
10281 allow_undefined_flag=' $wl-berok'
10282 if test yes = "$with_gnu_ld"; then
10283 # We only use this code for GNU lds that support --whole-archive.
10284 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10285 else
10286 # Exported symbols can be pulled into shared objects from archives
10287 whole_archive_flag_spec='$convenience'
10288 fi
10289 archive_cmds_need_lc=yes
10290 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10291 # -brtl affects multiple linker settings, -berok does not and is overridden later
10292 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10293 if test svr4 != "$with_aix_soname"; then
10294 # This is similar to how AIX traditionally builds its shared libraries.
10295 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'
10296 fi
10297 if test aix != "$with_aix_soname"; then
10298 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'
10299 else
10300 # used by -dlpreopen to get the symbols
10301 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10302 fi
10303 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10304 fi
10305 fi
10306 ;;
10307
10308 amigaos*)
10309 case $host_cpu in
10310 powerpc)
10311 # see comment about AmigaOS4 .so support
10312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10313 archive_expsym_cmds=''
10314 ;;
10315 m68k)
10316 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)'
10317 hardcode_libdir_flag_spec='-L$libdir'
10318 hardcode_minus_L=yes
10319 ;;
10320 esac
10321 ;;
10322
10323 bsdi[45]*)
10324 export_dynamic_flag_spec=-rdynamic
10325 ;;
10326
10327 cygwin* | mingw* | pw32* | cegcc*)
10328 # When not using gcc, we currently assume that we are using
10329 # Microsoft Visual C++ or Intel C++ Compiler.
10330 # hardcode_libdir_flag_spec is actually meaningless, as there is
10331 # no search path for DLLs.
10332 case $cc_basename in
10333 cl* | icl*)
10334 # Native MSVC or ICC
10335 hardcode_libdir_flag_spec=' '
10336 allow_undefined_flag=unsupported
10337 always_export_symbols=yes
10338 file_list_spec='@'
10339 # Tell ltmain to make .lib files, not .a files.
10340 libext=lib
10341 # Tell ltmain to make .dll files, not .so files.
10342 shrext_cmds=.dll
10343 # FIXME: Setting linknames here is a bad hack.
10344 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10345 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10346 cp "$export_symbols" "$output_objdir/$soname.def";
10347 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10348 else
10349 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10350 fi~
10351 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10352 linknames='
10353 # The linker will not automatically build a static lib if we build a DLL.
10354 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10355 enable_shared_with_static_runtimes=yes
10356 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10358 # Don't use ranlib
10359 old_postinstall_cmds='chmod 644 $oldlib'
10360 postlink_cmds='lt_outputfile="@OUTPUT@"~
10361 lt_tool_outputfile="@TOOL_OUTPUT@"~
10362 case $lt_outputfile in
10363 *.exe|*.EXE) ;;
10364 *)
10365 lt_outputfile=$lt_outputfile.exe
10366 lt_tool_outputfile=$lt_tool_outputfile.exe
10367 ;;
10368 esac~
10369 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10370 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10371 $RM "$lt_outputfile.manifest";
10372 fi'
10373 ;;
10374 *)
10375 # Assume MSVC and ICC wrapper
10376 hardcode_libdir_flag_spec=' '
10377 allow_undefined_flag=unsupported
10378 # Tell ltmain to make .lib files, not .a files.
10379 libext=lib
10380 # Tell ltmain to make .dll files, not .so files.
10381 shrext_cmds=.dll
10382 # FIXME: Setting linknames here is a bad hack.
10383 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10384 # The linker will automatically build a .lib file if we build a DLL.
10385 old_archive_from_new_cmds='true'
10386 # FIXME: Should let the user specify the lib program.
10387 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10388 enable_shared_with_static_runtimes=yes
10389 ;;
10390 esac
10391 ;;
10392
10393 darwin* | rhapsody*)
10394
10395
10396 archive_cmds_need_lc=no
10397 hardcode_direct=no
10398 hardcode_automatic=yes
10399 hardcode_shlibpath_var=unsupported
10400 if test yes = "$lt_cv_ld_force_load"; then
10401 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\"`'
10402
10403 else
10404 whole_archive_flag_spec=''
10405 fi
10406 link_all_deplibs=yes
10407 allow_undefined_flag=$_lt_dar_allow_undefined
10408 case $cc_basename in
10409 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10410 *) _lt_dar_can_shared=$GCC ;;
10411 esac
10412 if test yes = "$_lt_dar_can_shared"; then
10413 output_verbose_link_cmd=func_echo_all
10414 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10415 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10416 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10417 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"
10418
10419 else
10420 ld_shlibs=no
10421 fi
10422
10423 ;;
10424
10425 dgux*)
10426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 hardcode_shlibpath_var=no
10429 ;;
10430
10431 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10432 # support. Future versions do this automatically, but an explicit c++rt0.o
10433 # does not break anything, and helps significantly (at the cost of a little
10434 # extra space).
10435 freebsd2.2*)
10436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10437 hardcode_libdir_flag_spec='-R$libdir'
10438 hardcode_direct=yes
10439 hardcode_shlibpath_var=no
10440 ;;
10441
10442 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10443 freebsd2.*)
10444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10445 hardcode_direct=yes
10446 hardcode_minus_L=yes
10447 hardcode_shlibpath_var=no
10448 ;;
10449
10450 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10451 freebsd* | dragonfly* | midnightbsd*)
10452 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10453 hardcode_libdir_flag_spec='-R$libdir'
10454 hardcode_direct=yes
10455 hardcode_shlibpath_var=no
10456 ;;
10457
10458 hpux9*)
10459 if test yes = "$GCC"; then
10460 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'
10461 else
10462 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'
10463 fi
10464 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10465 hardcode_libdir_separator=:
10466 hardcode_direct=yes
10467
10468 # hardcode_minus_L: Not really in the search PATH,
10469 # but as the default location of the library.
10470 hardcode_minus_L=yes
10471 export_dynamic_flag_spec='$wl-E'
10472 ;;
10473
10474 hpux10*)
10475 if test yes,no = "$GCC,$with_gnu_ld"; then
10476 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10477 else
10478 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10479 fi
10480 if test no = "$with_gnu_ld"; then
10481 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10482 hardcode_libdir_separator=:
10483 hardcode_direct=yes
10484 hardcode_direct_absolute=yes
10485 export_dynamic_flag_spec='$wl-E'
10486 # hardcode_minus_L: Not really in the search PATH,
10487 # but as the default location of the library.
10488 hardcode_minus_L=yes
10489 fi
10490 ;;
10491
10492 hpux11*)
10493 if test yes,no = "$GCC,$with_gnu_ld"; then
10494 case $host_cpu in
10495 hppa*64*)
10496 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10497 ;;
10498 ia64*)
10499 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10500 ;;
10501 *)
10502 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10503 ;;
10504 esac
10505 else
10506 case $host_cpu in
10507 hppa*64*)
10508 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10509 ;;
10510 ia64*)
10511 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10512 ;;
10513 *)
10514
10515 # Older versions of the 11.00 compiler do not understand -b yet
10516 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10518 printf %s "checking if $CC understands -b... " >&6; }
10519 if test ${lt_cv_prog_compiler__b+y}
10520 then :
10521 printf %s "(cached) " >&6
10522 else $as_nop
10523 lt_cv_prog_compiler__b=no
10524 save_LDFLAGS=$LDFLAGS
10525 LDFLAGS="$LDFLAGS -b"
10526 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10528 # The linker can only warn and ignore the option if not recognized
10529 # So say no if there are warnings
10530 if test -s conftest.err; then
10531 # Append any errors to the config.log.
10532 cat conftest.err 1>&5
10533 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10535 if diff conftest.exp conftest.er2 >/dev/null; then
10536 lt_cv_prog_compiler__b=yes
10537 fi
10538 else
10539 lt_cv_prog_compiler__b=yes
10540 fi
10541 fi
10542 $RM -r conftest*
10543 LDFLAGS=$save_LDFLAGS
10544
10545 fi
10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10547 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10548
10549 if test yes = "$lt_cv_prog_compiler__b"; then
10550 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10551 else
10552 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10553 fi
10554
10555 ;;
10556 esac
10557 fi
10558 if test no = "$with_gnu_ld"; then
10559 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10560 hardcode_libdir_separator=:
10561
10562 case $host_cpu in
10563 hppa*64*|ia64*)
10564 hardcode_direct=no
10565 hardcode_shlibpath_var=no
10566 ;;
10567 *)
10568 hardcode_direct=yes
10569 hardcode_direct_absolute=yes
10570 export_dynamic_flag_spec='$wl-E'
10571
10572 # hardcode_minus_L: Not really in the search PATH,
10573 # but as the default location of the library.
10574 hardcode_minus_L=yes
10575 ;;
10576 esac
10577 fi
10578 ;;
10579
10580 irix5* | irix6* | nonstopux*)
10581 if test yes = "$GCC"; then
10582 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'
10583 # Try to use the -exported_symbol ld option, if it does not
10584 # work, assume that -exports_file does not work either and
10585 # implicitly export all symbols.
10586 # This should be the same for all languages, so no per-tag cache variable.
10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10588 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10589 if test ${lt_cv_irix_exported_symbol+y}
10590 then :
10591 printf %s "(cached) " >&6
10592 else $as_nop
10593 save_LDFLAGS=$LDFLAGS
10594 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 int foo (void) { return 0; }
10598 _ACEOF
10599 if ac_fn_c_try_link "$LINENO"
10600 then :
10601 lt_cv_irix_exported_symbol=yes
10602 else $as_nop
10603 lt_cv_irix_exported_symbol=no
10604 fi
10605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10606 conftest$ac_exeext conftest.$ac_ext
10607 LDFLAGS=$save_LDFLAGS
10608 fi
10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10610 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10611 if test yes = "$lt_cv_irix_exported_symbol"; then
10612 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'
10613 fi
10614 link_all_deplibs=no
10615 else
10616 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'
10617 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'
10618 fi
10619 archive_cmds_need_lc='no'
10620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10621 hardcode_libdir_separator=:
10622 inherit_rpath=yes
10623 link_all_deplibs=yes
10624 ;;
10625
10626 linux*)
10627 case $cc_basename in
10628 tcc*)
10629 # Fabrice Bellard et al's Tiny C Compiler
10630 ld_shlibs=yes
10631 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10633 ;;
10634 esac
10635 ;;
10636
10637 netbsd* | netbsdelf*-gnu)
10638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10640 else
10641 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10642 fi
10643 hardcode_libdir_flag_spec='-R$libdir'
10644 hardcode_direct=yes
10645 hardcode_shlibpath_var=no
10646 ;;
10647
10648 newsos6)
10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_direct=yes
10651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10652 hardcode_libdir_separator=:
10653 hardcode_shlibpath_var=no
10654 ;;
10655
10656 *nto* | *qnx*)
10657 ;;
10658
10659 openbsd* | bitrig*)
10660 if test -f /usr/libexec/ld.so; then
10661 hardcode_direct=yes
10662 hardcode_shlibpath_var=no
10663 hardcode_direct_absolute=yes
10664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10665 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10666 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10667 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10668 export_dynamic_flag_spec='$wl-E'
10669 else
10670 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10671 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10672 fi
10673 else
10674 ld_shlibs=no
10675 fi
10676 ;;
10677
10678 os2*)
10679 hardcode_libdir_flag_spec='-L$libdir'
10680 hardcode_minus_L=yes
10681 allow_undefined_flag=unsupported
10682 shrext_cmds=.dll
10683 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10684 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10685 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10686 $ECHO EXPORTS >> $output_objdir/$libname.def~
10687 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10688 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10689 emximp -o $lib $output_objdir/$libname.def'
10690 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10691 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10692 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10693 $ECHO EXPORTS >> $output_objdir/$libname.def~
10694 prefix_cmds="$SED"~
10695 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10696 prefix_cmds="$prefix_cmds -e 1d";
10697 fi~
10698 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10699 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10700 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10701 emximp -o $lib $output_objdir/$libname.def'
10702 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10703 enable_shared_with_static_runtimes=yes
10704 file_list_spec='@'
10705 ;;
10706
10707 osf3*)
10708 if test yes = "$GCC"; then
10709 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10710 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'
10711 else
10712 allow_undefined_flag=' -expect_unresolved \*'
10713 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'
10714 fi
10715 archive_cmds_need_lc='no'
10716 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10717 hardcode_libdir_separator=:
10718 ;;
10719
10720 osf4* | osf5*) # as osf3* with the addition of -msym flag
10721 if test yes = "$GCC"; then
10722 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10723 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'
10724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10725 else
10726 allow_undefined_flag=' -expect_unresolved \*'
10727 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'
10728 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~
10729 $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'
10730
10731 # Both c and cxx compiler support -rpath directly
10732 hardcode_libdir_flag_spec='-rpath $libdir'
10733 fi
10734 archive_cmds_need_lc='no'
10735 hardcode_libdir_separator=:
10736 ;;
10737
10738 solaris*)
10739 no_undefined_flag=' -z defs'
10740 if test yes = "$GCC"; then
10741 wlarc='$wl'
10742 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10744 $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'
10745 else
10746 case `$CC -V 2>&1` in
10747 *"Compilers 5.0"*)
10748 wlarc=''
10749 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10751 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10752 ;;
10753 *)
10754 wlarc='$wl'
10755 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10757 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10758 ;;
10759 esac
10760 fi
10761 hardcode_libdir_flag_spec='-R$libdir'
10762 hardcode_shlibpath_var=no
10763 case $host_os in
10764 solaris2.[0-5] | solaris2.[0-5].*) ;;
10765 *)
10766 # The compiler driver will combine and reorder linker options,
10767 # but understands '-z linker_flag'. GCC discards it without '$wl',
10768 # but is careful enough not to reorder.
10769 # Supported since Solaris 2.6 (maybe 2.5.1?)
10770 if test yes = "$GCC"; then
10771 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10772 else
10773 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10774 fi
10775 ;;
10776 esac
10777 link_all_deplibs=yes
10778 ;;
10779
10780 sunos4*)
10781 if test sequent = "$host_vendor"; then
10782 # Use $CC to link under sequent, because it throws in some extra .o
10783 # files that make .init and .fini sections work.
10784 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10785 else
10786 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10787 fi
10788 hardcode_libdir_flag_spec='-L$libdir'
10789 hardcode_direct=yes
10790 hardcode_minus_L=yes
10791 hardcode_shlibpath_var=no
10792 ;;
10793
10794 sysv4)
10795 case $host_vendor in
10796 sni)
10797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798 hardcode_direct=yes # is this really true???
10799 ;;
10800 siemens)
10801 ## LD is ld it makes a PLAMLIB
10802 ## CC just makes a GrossModule.
10803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10804 reload_cmds='$CC -r -o $output$reload_objs'
10805 hardcode_direct=no
10806 ;;
10807 motorola)
10808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10809 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10810 ;;
10811 esac
10812 runpath_var='LD_RUN_PATH'
10813 hardcode_shlibpath_var=no
10814 ;;
10815
10816 sysv4.3*)
10817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818 hardcode_shlibpath_var=no
10819 export_dynamic_flag_spec='-Bexport'
10820 ;;
10821
10822 sysv4*MP*)
10823 if test -d /usr/nec; then
10824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825 hardcode_shlibpath_var=no
10826 runpath_var=LD_RUN_PATH
10827 hardcode_runpath_var=yes
10828 ld_shlibs=yes
10829 fi
10830 ;;
10831
10832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10833 no_undefined_flag='$wl-z,text'
10834 archive_cmds_need_lc=no
10835 hardcode_shlibpath_var=no
10836 runpath_var='LD_RUN_PATH'
10837
10838 if test yes = "$GCC"; then
10839 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10840 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10841 else
10842 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 fi
10845 ;;
10846
10847 sysv5* | sco3.2v5* | sco5v6*)
10848 # Note: We CANNOT use -z defs as we might desire, because we do not
10849 # link with -lc, and that would cause any symbols used from libc to
10850 # always be unresolved, which means just about no library would
10851 # ever link correctly. If we're not using GNU ld we use -z text
10852 # though, which does catch some bad symbols but isn't as heavy-handed
10853 # as -z defs.
10854 no_undefined_flag='$wl-z,text'
10855 allow_undefined_flag='$wl-z,nodefs'
10856 archive_cmds_need_lc=no
10857 hardcode_shlibpath_var=no
10858 hardcode_libdir_flag_spec='$wl-R,$libdir'
10859 hardcode_libdir_separator=':'
10860 link_all_deplibs=yes
10861 export_dynamic_flag_spec='$wl-Bexport'
10862 runpath_var='LD_RUN_PATH'
10863
10864 if test yes = "$GCC"; then
10865 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10866 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10867 else
10868 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 fi
10871 ;;
10872
10873 uts4*)
10874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10875 hardcode_libdir_flag_spec='-L$libdir'
10876 hardcode_shlibpath_var=no
10877 ;;
10878
10879 *)
10880 ld_shlibs=no
10881 ;;
10882 esac
10883
10884 if test sni = "$host_vendor"; then
10885 case $host in
10886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10887 export_dynamic_flag_spec='$wl-Blargedynsym'
10888 ;;
10889 esac
10890 fi
10891 fi
10892
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10894 printf "%s\n" "$ld_shlibs" >&6; }
10895 test no = "$ld_shlibs" && can_build_shared=no
10896
10897 with_gnu_ld=$with_gnu_ld
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913 #
10914 # Do we need to explicitly link libc?
10915 #
10916 case "x$archive_cmds_need_lc" in
10917 x|xyes)
10918 # Assume -lc should be added
10919 archive_cmds_need_lc=yes
10920
10921 if test yes,yes = "$GCC,$enable_shared"; then
10922 case $archive_cmds in
10923 *'~'*)
10924 # FIXME: we may have to deal with multi-command sequences.
10925 ;;
10926 '$CC '*)
10927 # Test whether the compiler implicitly links with -lc since on some
10928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10929 # to ld, don't add -lc before -lgcc.
10930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10931 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10932 if test ${lt_cv_archive_cmds_need_lc+y}
10933 then :
10934 printf %s "(cached) " >&6
10935 else $as_nop
10936 $RM conftest*
10937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10938
10939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10940 (eval $ac_compile) 2>&5
10941 ac_status=$?
10942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943 test $ac_status = 0; } 2>conftest.err; then
10944 soname=conftest
10945 lib=conftest
10946 libobjs=conftest.$ac_objext
10947 deplibs=
10948 wl=$lt_prog_compiler_wl
10949 pic_flag=$lt_prog_compiler_pic
10950 compiler_flags=-v
10951 linker_flags=-v
10952 verstring=
10953 output_objdir=.
10954 libname=conftest
10955 lt_save_allow_undefined_flag=$allow_undefined_flag
10956 allow_undefined_flag=
10957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10958 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10959 ac_status=$?
10960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10961 test $ac_status = 0; }
10962 then
10963 lt_cv_archive_cmds_need_lc=no
10964 else
10965 lt_cv_archive_cmds_need_lc=yes
10966 fi
10967 allow_undefined_flag=$lt_save_allow_undefined_flag
10968 else
10969 cat conftest.err 1>&5
10970 fi
10971 $RM conftest*
10972
10973 fi
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10975 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10976 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10977 ;;
10978 esac
10979 fi
10980 ;;
10981 esac
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11135 printf %s "checking dynamic linker characteristics... " >&6; }
11136
11137 if test yes = "$GCC"; then
11138 case $host_os in
11139 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11140 *) lt_awk_arg='/^libraries:/' ;;
11141 esac
11142 case $host_os in
11143 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11144 *) lt_sed_strip_eq='s|=/|/|g' ;;
11145 esac
11146 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11147 case $lt_search_path_spec in
11148 *\;*)
11149 # if the path contains ";" then we assume it to be the separator
11150 # otherwise default to the standard path separator (i.e. ":") - it is
11151 # assumed that no part of a normal pathname contains ";" but that should
11152 # okay in the real world where ";" in dirpaths is itself problematic.
11153 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11154 ;;
11155 *)
11156 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11157 ;;
11158 esac
11159 # Ok, now we have the path, separated by spaces, we can step through it
11160 # and add multilib dir if necessary...
11161 lt_tmp_lt_search_path_spec=
11162 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11163 # ...but if some path component already ends with the multilib dir we assume
11164 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11165 case "$lt_multi_os_dir; $lt_search_path_spec " in
11166 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11167 lt_multi_os_dir=
11168 ;;
11169 esac
11170 for lt_sys_path in $lt_search_path_spec; do
11171 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11172 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11173 elif test -n "$lt_multi_os_dir"; then
11174 test -d "$lt_sys_path" && \
11175 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11176 fi
11177 done
11178 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11179 BEGIN {RS = " "; FS = "/|\n";} {
11180 lt_foo = "";
11181 lt_count = 0;
11182 for (lt_i = NF; lt_i > 0; lt_i--) {
11183 if ($lt_i != "" && $lt_i != ".") {
11184 if ($lt_i == "..") {
11185 lt_count++;
11186 } else {
11187 if (lt_count == 0) {
11188 lt_foo = "/" $lt_i lt_foo;
11189 } else {
11190 lt_count--;
11191 }
11192 }
11193 }
11194 }
11195 if (lt_foo != "") { lt_freq[lt_foo]++; }
11196 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11197 }'`
11198 # AWK program above erroneously prepends '/' to C:/dos/paths
11199 # for these hosts.
11200 case $host_os in
11201 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11202 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11203 esac
11204 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11205 else
11206 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11207 fi
11208 library_names_spec=
11209 libname_spec='lib$name'
11210 soname_spec=
11211 shrext_cmds=.so
11212 postinstall_cmds=
11213 postuninstall_cmds=
11214 finish_cmds=
11215 finish_eval=
11216 shlibpath_var=
11217 shlibpath_overrides_runpath=unknown
11218 version_type=none
11219 dynamic_linker="$host_os ld.so"
11220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11221 need_lib_prefix=unknown
11222 hardcode_into_libs=no
11223
11224 # when you set need_version to no, make sure it does not cause -set_version
11225 # flags to be left without arguments
11226 need_version=unknown
11227
11228
11229
11230 case $host_os in
11231 aix3*)
11232 version_type=linux # correct to gnu/linux during the next big refactor
11233 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11234 shlibpath_var=LIBPATH
11235
11236 # AIX 3 has no versioning support, so we append a major version to the name.
11237 soname_spec='$libname$release$shared_ext$major'
11238 ;;
11239
11240 aix[4-9]*)
11241 version_type=linux # correct to gnu/linux during the next big refactor
11242 need_lib_prefix=no
11243 need_version=no
11244 hardcode_into_libs=yes
11245 if test ia64 = "$host_cpu"; then
11246 # AIX 5 supports IA64
11247 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 else
11250 # With GCC up to 2.95.x, collect2 would create an import file
11251 # for dependence libraries. The import file would start with
11252 # the line '#! .'. This would cause the generated library to
11253 # depend on '.', always an invalid library. This was fixed in
11254 # development snapshots of GCC prior to 3.0.
11255 case $host_os in
11256 aix4 | aix4.[01] | aix4.[01].*)
11257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11258 echo ' yes '
11259 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11260 :
11261 else
11262 can_build_shared=no
11263 fi
11264 ;;
11265 esac
11266 # Using Import Files as archive members, it is possible to support
11267 # filename-based versioning of shared library archives on AIX. While
11268 # this would work for both with and without runtime linking, it will
11269 # prevent static linking of such archives. So we do filename-based
11270 # shared library versioning with .so extension only, which is used
11271 # when both runtime linking and shared linking is enabled.
11272 # Unfortunately, runtime linking may impact performance, so we do
11273 # not want this to be the default eventually. Also, we use the
11274 # versioned .so libs for executables only if there is the -brtl
11275 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11276 # To allow for filename-based versioning support, we need to create
11277 # libNAME.so.V as an archive file, containing:
11278 # *) an Import File, referring to the versioned filename of the
11279 # archive as well as the shared archive member, telling the
11280 # bitwidth (32 or 64) of that shared object, and providing the
11281 # list of exported symbols of that shared object, eventually
11282 # decorated with the 'weak' keyword
11283 # *) the shared object with the F_LOADONLY flag set, to really avoid
11284 # it being seen by the linker.
11285 # At run time we better use the real file rather than another symlink,
11286 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11287
11288 case $with_aix_soname,$aix_use_runtimelinking in
11289 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11290 # soname into executable. Probably we can add versioning support to
11291 # collect2, so additional links can be useful in future.
11292 aix,yes) # traditional libtool
11293 dynamic_linker='AIX unversionable lib.so'
11294 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11295 # instead of lib<name>.a to let people know that these are not
11296 # typical AIX shared libraries.
11297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11298 ;;
11299 aix,no) # traditional AIX only
11300 dynamic_linker='AIX lib.a(lib.so.V)'
11301 # We preserve .a as extension for shared libraries through AIX4.2
11302 # and later when we are not doing run time linking.
11303 library_names_spec='$libname$release.a $libname.a'
11304 soname_spec='$libname$release$shared_ext$major'
11305 ;;
11306 svr4,*) # full svr4 only
11307 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11308 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11309 # We do not specify a path in Import Files, so LIBPATH fires.
11310 shlibpath_overrides_runpath=yes
11311 ;;
11312 *,yes) # both, prefer svr4
11313 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11314 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11315 # unpreferred sharedlib libNAME.a needs extra handling
11316 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"'
11317 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"'
11318 # We do not specify a path in Import Files, so LIBPATH fires.
11319 shlibpath_overrides_runpath=yes
11320 ;;
11321 *,no) # both, prefer aix
11322 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11323 library_names_spec='$libname$release.a $libname.a'
11324 soname_spec='$libname$release$shared_ext$major'
11325 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11326 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)'
11327 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"'
11328 ;;
11329 esac
11330 shlibpath_var=LIBPATH
11331 fi
11332 ;;
11333
11334 amigaos*)
11335 case $host_cpu in
11336 powerpc)
11337 # Since July 2007 AmigaOS4 officially supports .so libraries.
11338 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11340 ;;
11341 m68k)
11342 library_names_spec='$libname.ixlibrary $libname.a'
11343 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11344 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'
11345 ;;
11346 esac
11347 ;;
11348
11349 beos*)
11350 library_names_spec='$libname$shared_ext'
11351 dynamic_linker="$host_os ld.so"
11352 shlibpath_var=LIBRARY_PATH
11353 ;;
11354
11355 bsdi[45]*)
11356 version_type=linux # correct to gnu/linux during the next big refactor
11357 need_version=no
11358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359 soname_spec='$libname$release$shared_ext$major'
11360 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11363 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11364 # the default ld.so.conf also contains /usr/contrib/lib and
11365 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11366 # libtool to hard-code these into programs
11367 ;;
11368
11369 cygwin* | mingw* | pw32* | cegcc*)
11370 version_type=windows
11371 shrext_cmds=.dll
11372 need_version=no
11373 need_lib_prefix=no
11374
11375 case $GCC,$cc_basename in
11376 yes,*)
11377 # gcc
11378 library_names_spec='$libname.dll.a'
11379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11380 postinstall_cmds='base_file=`basename \$file`~
11381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11382 dldir=$destdir/`dirname \$dlpath`~
11383 test -d \$dldir || mkdir -p \$dldir~
11384 $install_prog $dir/$dlname \$dldir/$dlname~
11385 chmod a+x \$dldir/$dlname~
11386 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11387 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11388 fi'
11389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11390 dlpath=$dir/\$dldll~
11391 $RM \$dlpath'
11392 shlibpath_overrides_runpath=yes
11393
11394 case $host_os in
11395 cygwin*)
11396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11397 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11398
11399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11400 ;;
11401 mingw* | cegcc*)
11402 # MinGW DLLs use traditional 'lib' prefix
11403 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11404 ;;
11405 pw32*)
11406 # pw32 DLLs use 'pw' prefix rather than 'lib'
11407 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11408 ;;
11409 esac
11410 dynamic_linker='Win32 ld.exe'
11411 ;;
11412
11413 *,cl* | *,icl*)
11414 # Native MSVC or ICC
11415 libname_spec='$name'
11416 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11417 library_names_spec='$libname.dll.lib'
11418
11419 case $build_os in
11420 mingw*)
11421 sys_lib_search_path_spec=
11422 lt_save_ifs=$IFS
11423 IFS=';'
11424 for lt_path in $LIB
11425 do
11426 IFS=$lt_save_ifs
11427 # Let DOS variable expansion print the short 8.3 style file name.
11428 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11429 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11430 done
11431 IFS=$lt_save_ifs
11432 # Convert to MSYS style.
11433 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11434 ;;
11435 cygwin*)
11436 # Convert to unix form, then to dos form, then back to unix form
11437 # but this time dos style (no spaces!) so that the unix form looks
11438 # like /cygdrive/c/PROGRA~1:/cygdr...
11439 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11440 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11441 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11442 ;;
11443 *)
11444 sys_lib_search_path_spec=$LIB
11445 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11446 # It is most probably a Windows format PATH.
11447 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11448 else
11449 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11450 fi
11451 # FIXME: find the short name or the path components, as spaces are
11452 # common. (e.g. "Program Files" -> "PROGRA~1")
11453 ;;
11454 esac
11455
11456 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11457 postinstall_cmds='base_file=`basename \$file`~
11458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11459 dldir=$destdir/`dirname \$dlpath`~
11460 test -d \$dldir || mkdir -p \$dldir~
11461 $install_prog $dir/$dlname \$dldir/$dlname'
11462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11463 dlpath=$dir/\$dldll~
11464 $RM \$dlpath'
11465 shlibpath_overrides_runpath=yes
11466 dynamic_linker='Win32 link.exe'
11467 ;;
11468
11469 *)
11470 # Assume MSVC and ICC wrapper
11471 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11472 dynamic_linker='Win32 ld.exe'
11473 ;;
11474 esac
11475 # FIXME: first we should search . and the directory the executable is in
11476 shlibpath_var=PATH
11477 ;;
11478
11479 darwin* | rhapsody*)
11480 dynamic_linker="$host_os dyld"
11481 version_type=darwin
11482 need_lib_prefix=no
11483 need_version=no
11484 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11485 soname_spec='$libname$release$major$shared_ext'
11486 shlibpath_overrides_runpath=yes
11487 shlibpath_var=DYLD_LIBRARY_PATH
11488 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11489
11490 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11491 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11492 ;;
11493
11494 dgux*)
11495 version_type=linux # correct to gnu/linux during the next big refactor
11496 need_lib_prefix=no
11497 need_version=no
11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499 soname_spec='$libname$release$shared_ext$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 ;;
11502
11503 freebsd* | dragonfly* | midnightbsd*)
11504 # DragonFly does not have aout. When/if they implement a new
11505 # versioning mechanism, adjust this.
11506 if test -x /usr/bin/objformat; then
11507 objformat=`/usr/bin/objformat`
11508 else
11509 case $host_os in
11510 freebsd[23].*) objformat=aout ;;
11511 *) objformat=elf ;;
11512 esac
11513 fi
11514 version_type=freebsd-$objformat
11515 case $version_type in
11516 freebsd-elf*)
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518 soname_spec='$libname$release$shared_ext$major'
11519 need_version=no
11520 need_lib_prefix=no
11521 ;;
11522 freebsd-*)
11523 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11524 need_version=yes
11525 ;;
11526 esac
11527 shlibpath_var=LD_LIBRARY_PATH
11528 case $host_os in
11529 freebsd2.*)
11530 shlibpath_overrides_runpath=yes
11531 ;;
11532 freebsd3.[01]* | freebsdelf3.[01]*)
11533 shlibpath_overrides_runpath=yes
11534 hardcode_into_libs=yes
11535 ;;
11536 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11537 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11538 shlibpath_overrides_runpath=no
11539 hardcode_into_libs=yes
11540 ;;
11541 *) # from 4.6 on, and DragonFly
11542 shlibpath_overrides_runpath=yes
11543 hardcode_into_libs=yes
11544 ;;
11545 esac
11546 ;;
11547
11548 haiku*)
11549 version_type=linux # correct to gnu/linux during the next big refactor
11550 need_lib_prefix=no
11551 need_version=no
11552 dynamic_linker="$host_os runtime_loader"
11553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11554 soname_spec='$libname$release$shared_ext$major'
11555 shlibpath_var=LIBRARY_PATH
11556 shlibpath_overrides_runpath=no
11557 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11558 hardcode_into_libs=yes
11559 ;;
11560
11561 hpux9* | hpux10* | hpux11*)
11562 # Give a soname corresponding to the major version so that dld.sl refuses to
11563 # link against other versions.
11564 version_type=sunos
11565 need_lib_prefix=no
11566 need_version=no
11567 case $host_cpu in
11568 ia64*)
11569 shrext_cmds='.so'
11570 hardcode_into_libs=yes
11571 dynamic_linker="$host_os dld.so"
11572 shlibpath_var=LD_LIBRARY_PATH
11573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11575 soname_spec='$libname$release$shared_ext$major'
11576 if test 32 = "$HPUX_IA64_MODE"; then
11577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11578 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11579 else
11580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11581 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11582 fi
11583 ;;
11584 hppa*64*)
11585 shrext_cmds='.sl'
11586 hardcode_into_libs=yes
11587 dynamic_linker="$host_os dld.sl"
11588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591 soname_spec='$libname$release$shared_ext$major'
11592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11594 ;;
11595 *)
11596 shrext_cmds='.sl'
11597 dynamic_linker="$host_os dld.sl"
11598 shlibpath_var=SHLIB_PATH
11599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11601 soname_spec='$libname$release$shared_ext$major'
11602 ;;
11603 esac
11604 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11605 postinstall_cmds='chmod 555 $lib'
11606 # or fails outright, so override atomically:
11607 install_override_mode=555
11608 ;;
11609
11610 interix[3-9]*)
11611 version_type=linux # correct to gnu/linux during the next big refactor
11612 need_lib_prefix=no
11613 need_version=no
11614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11615 soname_spec='$libname$release$shared_ext$major'
11616 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=no
11619 hardcode_into_libs=yes
11620 ;;
11621
11622 irix5* | irix6* | nonstopux*)
11623 case $host_os in
11624 nonstopux*) version_type=nonstopux ;;
11625 *)
11626 if test yes = "$lt_cv_prog_gnu_ld"; then
11627 version_type=linux # correct to gnu/linux during the next big refactor
11628 else
11629 version_type=irix
11630 fi ;;
11631 esac
11632 need_lib_prefix=no
11633 need_version=no
11634 soname_spec='$libname$release$shared_ext$major'
11635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11636 case $host_os in
11637 irix5* | nonstopux*)
11638 libsuff= shlibsuff=
11639 ;;
11640 *)
11641 case $LD in # libtool.m4 will add one of these switches to LD
11642 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11643 libsuff= shlibsuff= libmagic=32-bit;;
11644 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11645 libsuff=32 shlibsuff=N32 libmagic=N32;;
11646 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11647 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11648 *) libsuff= shlibsuff= libmagic=never-match;;
11649 esac
11650 ;;
11651 esac
11652 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11653 shlibpath_overrides_runpath=no
11654 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11655 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11656 hardcode_into_libs=yes
11657 ;;
11658
11659 # No shared lib support for Linux oldld, aout, or coff.
11660 linux*oldld* | linux*aout* | linux*coff*)
11661 dynamic_linker=no
11662 ;;
11663
11664 linux*android*)
11665 version_type=none # Android doesn't support versioned libraries.
11666 need_lib_prefix=no
11667 need_version=no
11668 library_names_spec='$libname$release$shared_ext'
11669 soname_spec='$libname$release$shared_ext'
11670 finish_cmds=
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=yes
11673
11674 # This implies no fast_install, which is unacceptable.
11675 # Some rework will be needed to allow for fast_install
11676 # before this can be enabled.
11677 hardcode_into_libs=yes
11678
11679 dynamic_linker='Android linker'
11680 # Don't embed -rpath directories since the linker doesn't support them.
11681 hardcode_libdir_flag_spec='-L$libdir'
11682 ;;
11683
11684 # This must be glibc/ELF.
11685 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11686 version_type=linux # correct to gnu/linux during the next big refactor
11687 need_lib_prefix=no
11688 need_version=no
11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11690 soname_spec='$libname$release$shared_ext$major'
11691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11692 shlibpath_var=LD_LIBRARY_PATH
11693 shlibpath_overrides_runpath=no
11694
11695 # Some binutils ld are patched to set DT_RUNPATH
11696 if test ${lt_cv_shlibpath_overrides_runpath+y}
11697 then :
11698 printf %s "(cached) " >&6
11699 else $as_nop
11700 lt_cv_shlibpath_overrides_runpath=no
11701 save_LDFLAGS=$LDFLAGS
11702 save_libdir=$libdir
11703 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11704 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11707
11708 int
11709 main (void)
11710 {
11711
11712 ;
11713 return 0;
11714 }
11715 _ACEOF
11716 if ac_fn_c_try_link "$LINENO"
11717 then :
11718 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11719 then :
11720 lt_cv_shlibpath_overrides_runpath=yes
11721 fi
11722 fi
11723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11724 conftest$ac_exeext conftest.$ac_ext
11725 LDFLAGS=$save_LDFLAGS
11726 libdir=$save_libdir
11727
11728 fi
11729
11730 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11731
11732 # This implies no fast_install, which is unacceptable.
11733 # Some rework will be needed to allow for fast_install
11734 # before this can be enabled.
11735 hardcode_into_libs=yes
11736
11737 # Ideally, we could use ldconfig to report *all* directores which are
11738 # searched for libraries, however this is still not possible. Aside from not
11739 # being certain /sbin/ldconfig is available, command
11740 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11741 # even though it is searched at run-time. Try to do the best guess by
11742 # appending ld.so.conf contents (and includes) to the search path.
11743 if test -f /etc/ld.so.conf; then
11744 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' ' '`
11745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11746 fi
11747
11748 # We used to test for /lib/ld.so.1 and disable shared libraries on
11749 # powerpc, because MkLinux only supported shared libraries with the
11750 # GNU dynamic linker. Since this was broken with cross compilers,
11751 # most powerpc-linux boxes support dynamic linking these days and
11752 # people can always --disable-shared, the test was removed, and we
11753 # assume the GNU/Linux dynamic linker is in use.
11754 dynamic_linker='GNU/Linux ld.so'
11755 ;;
11756
11757 netbsdelf*-gnu)
11758 version_type=linux
11759 need_lib_prefix=no
11760 need_version=no
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=no
11765 hardcode_into_libs=yes
11766 dynamic_linker='NetBSD ld.elf_so'
11767 ;;
11768
11769 netbsd*)
11770 version_type=sunos
11771 need_lib_prefix=no
11772 need_version=no
11773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11776 dynamic_linker='NetBSD (a.out) ld.so'
11777 else
11778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11779 soname_spec='$libname$release$shared_ext$major'
11780 dynamic_linker='NetBSD ld.elf_so'
11781 fi
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=yes
11784 hardcode_into_libs=yes
11785 ;;
11786
11787 newsos6)
11788 version_type=linux # correct to gnu/linux during the next big refactor
11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=yes
11792 ;;
11793
11794 *nto* | *qnx*)
11795 version_type=qnx
11796 need_lib_prefix=no
11797 need_version=no
11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11799 soname_spec='$libname$release$shared_ext$major'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 shlibpath_overrides_runpath=no
11802 hardcode_into_libs=yes
11803 dynamic_linker='ldqnx.so'
11804 ;;
11805
11806 openbsd* | bitrig*)
11807 version_type=sunos
11808 sys_lib_dlsearch_path_spec=/usr/lib
11809 need_lib_prefix=no
11810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11811 need_version=no
11812 else
11813 need_version=yes
11814 fi
11815 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=yes
11819 ;;
11820
11821 os2*)
11822 libname_spec='$name'
11823 version_type=windows
11824 shrext_cmds=.dll
11825 need_version=no
11826 need_lib_prefix=no
11827 # OS/2 can only load a DLL with a base name of 8 characters or less.
11828 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11829 v=$($ECHO $release$versuffix | tr -d .-);
11830 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11831 $ECHO $n$v`$shared_ext'
11832 library_names_spec='${libname}_dll.$libext'
11833 dynamic_linker='OS/2 ld.exe'
11834 shlibpath_var=BEGINLIBPATH
11835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11837 postinstall_cmds='base_file=`basename \$file`~
11838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11839 dldir=$destdir/`dirname \$dlpath`~
11840 test -d \$dldir || mkdir -p \$dldir~
11841 $install_prog $dir/$dlname \$dldir/$dlname~
11842 chmod a+x \$dldir/$dlname~
11843 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11844 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11845 fi'
11846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11847 dlpath=$dir/\$dldll~
11848 $RM \$dlpath'
11849 ;;
11850
11851 osf3* | osf4* | osf5*)
11852 version_type=osf
11853 need_lib_prefix=no
11854 need_version=no
11855 soname_spec='$libname$release$shared_ext$major'
11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11857 shlibpath_var=LD_LIBRARY_PATH
11858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11860 ;;
11861
11862 rdos*)
11863 dynamic_linker=no
11864 ;;
11865
11866 solaris*)
11867 version_type=linux # correct to gnu/linux during the next big refactor
11868 need_lib_prefix=no
11869 need_version=no
11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11871 soname_spec='$libname$release$shared_ext$major'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 shlibpath_overrides_runpath=yes
11874 hardcode_into_libs=yes
11875 # ldd complains unless libraries are executable
11876 postinstall_cmds='chmod +x $lib'
11877 ;;
11878
11879 sunos4*)
11880 version_type=sunos
11881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes
11885 if test yes = "$with_gnu_ld"; then
11886 need_lib_prefix=no
11887 fi
11888 need_version=yes
11889 ;;
11890
11891 sysv4 | sysv4.3*)
11892 version_type=linux # correct to gnu/linux during the next big refactor
11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11894 soname_spec='$libname$release$shared_ext$major'
11895 shlibpath_var=LD_LIBRARY_PATH
11896 case $host_vendor in
11897 sni)
11898 shlibpath_overrides_runpath=no
11899 need_lib_prefix=no
11900 runpath_var=LD_RUN_PATH
11901 ;;
11902 siemens)
11903 need_lib_prefix=no
11904 ;;
11905 motorola)
11906 need_lib_prefix=no
11907 need_version=no
11908 shlibpath_overrides_runpath=no
11909 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11910 ;;
11911 esac
11912 ;;
11913
11914 sysv4*MP*)
11915 if test -d /usr/nec; then
11916 version_type=linux # correct to gnu/linux during the next big refactor
11917 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11918 soname_spec='$libname$shared_ext.$major'
11919 shlibpath_var=LD_LIBRARY_PATH
11920 fi
11921 ;;
11922
11923 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11924 version_type=sco
11925 need_lib_prefix=no
11926 need_version=no
11927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11928 soname_spec='$libname$release$shared_ext$major'
11929 shlibpath_var=LD_LIBRARY_PATH
11930 shlibpath_overrides_runpath=yes
11931 hardcode_into_libs=yes
11932 if test yes = "$with_gnu_ld"; then
11933 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11934 else
11935 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11936 case $host_os in
11937 sco3.2v5*)
11938 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11939 ;;
11940 esac
11941 fi
11942 sys_lib_dlsearch_path_spec='/usr/lib'
11943 ;;
11944
11945 tpf*)
11946 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11947 version_type=linux # correct to gnu/linux during the next big refactor
11948 need_lib_prefix=no
11949 need_version=no
11950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11951 shlibpath_var=LD_LIBRARY_PATH
11952 shlibpath_overrides_runpath=no
11953 hardcode_into_libs=yes
11954 ;;
11955
11956 uts4*)
11957 version_type=linux # correct to gnu/linux during the next big refactor
11958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11959 soname_spec='$libname$release$shared_ext$major'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 ;;
11962
11963 *)
11964 dynamic_linker=no
11965 ;;
11966 esac
11967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11968 printf "%s\n" "$dynamic_linker" >&6; }
11969 test no = "$dynamic_linker" && can_build_shared=no
11970
11971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11972 if test yes = "$GCC"; then
11973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11974 fi
11975
11976 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11977 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11978 fi
11979
11980 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11981 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11982 fi
11983
11984 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11985 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11986
11987 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11988 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11989
11990 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11991 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12090 printf %s "checking how to hardcode library paths into programs... " >&6; }
12091 hardcode_action=
12092 if test -n "$hardcode_libdir_flag_spec" ||
12093 test -n "$runpath_var" ||
12094 test yes = "$hardcode_automatic"; then
12095
12096 # We can hardcode non-existent directories.
12097 if test no != "$hardcode_direct" &&
12098 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12099 # have to relink, otherwise we might link with an installed library
12100 # when we should be linking with a yet-to-be-installed one
12101 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12102 test no != "$hardcode_minus_L"; then
12103 # Linking always hardcodes the temporary library directory.
12104 hardcode_action=relink
12105 else
12106 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12107 hardcode_action=immediate
12108 fi
12109 else
12110 # We cannot hardcode anything, or else we can only hardcode existing
12111 # directories.
12112 hardcode_action=unsupported
12113 fi
12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12115 printf "%s\n" "$hardcode_action" >&6; }
12116
12117 if test relink = "$hardcode_action" ||
12118 test yes = "$inherit_rpath"; then
12119 # Fast installation is not supported
12120 enable_fast_install=no
12121 elif test yes = "$shlibpath_overrides_runpath" ||
12122 test no = "$enable_shared"; then
12123 # Fast installation is not necessary
12124 enable_fast_install=needless
12125 fi
12126
12127
12128
12129
12130
12131
12132 if test yes != "$enable_dlopen"; then
12133 enable_dlopen=unknown
12134 enable_dlopen_self=unknown
12135 enable_dlopen_self_static=unknown
12136 else
12137 lt_cv_dlopen=no
12138 lt_cv_dlopen_libs=
12139
12140 case $host_os in
12141 beos*)
12142 lt_cv_dlopen=load_add_on
12143 lt_cv_dlopen_libs=
12144 lt_cv_dlopen_self=yes
12145 ;;
12146
12147 mingw* | pw32* | cegcc*)
12148 lt_cv_dlopen=LoadLibrary
12149 lt_cv_dlopen_libs=
12150 ;;
12151
12152 cygwin*)
12153 lt_cv_dlopen=dlopen
12154 lt_cv_dlopen_libs=
12155 ;;
12156
12157 darwin*)
12158 # if libdl is installed we need to link against it
12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12160 printf %s "checking for dlopen in -ldl... " >&6; }
12161 if test ${ac_cv_lib_dl_dlopen+y}
12162 then :
12163 printf %s "(cached) " >&6
12164 else $as_nop
12165 ac_check_lib_save_LIBS=$LIBS
12166 LIBS="-ldl $LIBS"
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169
12170 /* Override any GCC internal prototype to avoid an error.
12171 Use char because int might match the return type of a GCC
12172 builtin and then its argument prototype would still apply. */
12173 char dlopen ();
12174 int
12175 main (void)
12176 {
12177 return dlopen ();
12178 ;
12179 return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"
12183 then :
12184 ac_cv_lib_dl_dlopen=yes
12185 else $as_nop
12186 ac_cv_lib_dl_dlopen=no
12187 fi
12188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12191 fi
12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12193 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12194 if test "x$ac_cv_lib_dl_dlopen" = xyes
12195 then :
12196 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12197 else $as_nop
12198
12199 lt_cv_dlopen=dyld
12200 lt_cv_dlopen_libs=
12201 lt_cv_dlopen_self=yes
12202
12203 fi
12204
12205 ;;
12206
12207 tpf*)
12208 # Don't try to run any link tests for TPF. We know it's impossible
12209 # because TPF is a cross-compiler, and we know how we open DSOs.
12210 lt_cv_dlopen=dlopen
12211 lt_cv_dlopen_libs=
12212 lt_cv_dlopen_self=no
12213 ;;
12214
12215 *)
12216 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12217 if test "x$ac_cv_func_shl_load" = xyes
12218 then :
12219 lt_cv_dlopen=shl_load
12220 else $as_nop
12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12222 printf %s "checking for shl_load in -ldld... " >&6; }
12223 if test ${ac_cv_lib_dld_shl_load+y}
12224 then :
12225 printf %s "(cached) " >&6
12226 else $as_nop
12227 ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-ldld $LIBS"
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231
12232 /* Override any GCC internal prototype to avoid an error.
12233 Use char because int might match the return type of a GCC
12234 builtin and then its argument prototype would still apply. */
12235 char shl_load ();
12236 int
12237 main (void)
12238 {
12239 return shl_load ();
12240 ;
12241 return 0;
12242 }
12243 _ACEOF
12244 if ac_fn_c_try_link "$LINENO"
12245 then :
12246 ac_cv_lib_dld_shl_load=yes
12247 else $as_nop
12248 ac_cv_lib_dld_shl_load=no
12249 fi
12250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12251 conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12253 fi
12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12255 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12256 if test "x$ac_cv_lib_dld_shl_load" = xyes
12257 then :
12258 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12259 else $as_nop
12260 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12261 if test "x$ac_cv_func_dlopen" = xyes
12262 then :
12263 lt_cv_dlopen=dlopen
12264 else $as_nop
12265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12266 printf %s "checking for dlopen in -ldl... " >&6; }
12267 if test ${ac_cv_lib_dl_dlopen+y}
12268 then :
12269 printf %s "(cached) " >&6
12270 else $as_nop
12271 ac_check_lib_save_LIBS=$LIBS
12272 LIBS="-ldl $LIBS"
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 char dlopen ();
12280 int
12281 main (void)
12282 {
12283 return dlopen ();
12284 ;
12285 return 0;
12286 }
12287 _ACEOF
12288 if ac_fn_c_try_link "$LINENO"
12289 then :
12290 ac_cv_lib_dl_dlopen=yes
12291 else $as_nop
12292 ac_cv_lib_dl_dlopen=no
12293 fi
12294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12295 conftest$ac_exeext conftest.$ac_ext
12296 LIBS=$ac_check_lib_save_LIBS
12297 fi
12298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12299 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12300 if test "x$ac_cv_lib_dl_dlopen" = xyes
12301 then :
12302 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12303 else $as_nop
12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12305 printf %s "checking for dlopen in -lsvld... " >&6; }
12306 if test ${ac_cv_lib_svld_dlopen+y}
12307 then :
12308 printf %s "(cached) " >&6
12309 else $as_nop
12310 ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-lsvld $LIBS"
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12318 char dlopen ();
12319 int
12320 main (void)
12321 {
12322 return dlopen ();
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 if ac_fn_c_try_link "$LINENO"
12328 then :
12329 ac_cv_lib_svld_dlopen=yes
12330 else $as_nop
12331 ac_cv_lib_svld_dlopen=no
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12334 conftest$ac_exeext conftest.$ac_ext
12335 LIBS=$ac_check_lib_save_LIBS
12336 fi
12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12338 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12339 if test "x$ac_cv_lib_svld_dlopen" = xyes
12340 then :
12341 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12342 else $as_nop
12343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12344 printf %s "checking for dld_link in -ldld... " >&6; }
12345 if test ${ac_cv_lib_dld_dld_link+y}
12346 then :
12347 printf %s "(cached) " >&6
12348 else $as_nop
12349 ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-ldld $LIBS"
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353
12354 /* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12357 char dld_link ();
12358 int
12359 main (void)
12360 {
12361 return dld_link ();
12362 ;
12363 return 0;
12364 }
12365 _ACEOF
12366 if ac_fn_c_try_link "$LINENO"
12367 then :
12368 ac_cv_lib_dld_dld_link=yes
12369 else $as_nop
12370 ac_cv_lib_dld_dld_link=no
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12373 conftest$ac_exeext conftest.$ac_ext
12374 LIBS=$ac_check_lib_save_LIBS
12375 fi
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12377 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12378 if test "x$ac_cv_lib_dld_dld_link" = xyes
12379 then :
12380 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12381 fi
12382
12383
12384 fi
12385
12386
12387 fi
12388
12389
12390 fi
12391
12392
12393 fi
12394
12395
12396 fi
12397
12398 ;;
12399 esac
12400
12401 if test no = "$lt_cv_dlopen"; then
12402 enable_dlopen=no
12403 else
12404 enable_dlopen=yes
12405 fi
12406
12407 case $lt_cv_dlopen in
12408 dlopen)
12409 save_CPPFLAGS=$CPPFLAGS
12410 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12411
12412 save_LDFLAGS=$LDFLAGS
12413 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12414
12415 save_LIBS=$LIBS
12416 LIBS="$lt_cv_dlopen_libs $LIBS"
12417
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12419 printf %s "checking whether a program can dlopen itself... " >&6; }
12420 if test ${lt_cv_dlopen_self+y}
12421 then :
12422 printf %s "(cached) " >&6
12423 else $as_nop
12424 if test yes = "$cross_compiling"; then :
12425 lt_cv_dlopen_self=cross
12426 else
12427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12428 lt_status=$lt_dlunknown
12429 cat > conftest.$ac_ext <<_LT_EOF
12430 #line $LINENO "configure"
12431 #include "confdefs.h"
12432
12433 #if HAVE_DLFCN_H
12434 #include <dlfcn.h>
12435 #endif
12436
12437 #include <stdio.h>
12438
12439 #ifdef RTLD_GLOBAL
12440 # define LT_DLGLOBAL RTLD_GLOBAL
12441 #else
12442 # ifdef DL_GLOBAL
12443 # define LT_DLGLOBAL DL_GLOBAL
12444 # else
12445 # define LT_DLGLOBAL 0
12446 # endif
12447 #endif
12448
12449 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12450 find out it does not work in some platform. */
12451 #ifndef LT_DLLAZY_OR_NOW
12452 # ifdef RTLD_LAZY
12453 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12454 # else
12455 # ifdef DL_LAZY
12456 # define LT_DLLAZY_OR_NOW DL_LAZY
12457 # else
12458 # ifdef RTLD_NOW
12459 # define LT_DLLAZY_OR_NOW RTLD_NOW
12460 # else
12461 # ifdef DL_NOW
12462 # define LT_DLLAZY_OR_NOW DL_NOW
12463 # else
12464 # define LT_DLLAZY_OR_NOW 0
12465 # endif
12466 # endif
12467 # endif
12468 # endif
12469 #endif
12470
12471 /* When -fvisibility=hidden is used, assume the code has been annotated
12472 correspondingly for the symbols needed. */
12473 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12474 int fnord () __attribute__((visibility("default")));
12475 #endif
12476
12477 int fnord () { return 42; }
12478 int main ()
12479 {
12480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12481 int status = $lt_dlunknown;
12482
12483 if (self)
12484 {
12485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12486 else
12487 {
12488 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12489 else puts (dlerror ());
12490 }
12491 /* dlclose (self); */
12492 }
12493 else
12494 puts (dlerror ());
12495
12496 return status;
12497 }
12498 _LT_EOF
12499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12500 (eval $ac_link) 2>&5
12501 ac_status=$?
12502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12503 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12504 (./conftest; exit; ) >&5 2>/dev/null
12505 lt_status=$?
12506 case x$lt_status in
12507 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12508 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12509 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12510 esac
12511 else :
12512 # compilation failed
12513 lt_cv_dlopen_self=no
12514 fi
12515 fi
12516 rm -fr conftest*
12517
12518
12519 fi
12520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12521 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12522
12523 if test yes = "$lt_cv_dlopen_self"; then
12524 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12526 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12527 if test ${lt_cv_dlopen_self_static+y}
12528 then :
12529 printf %s "(cached) " >&6
12530 else $as_nop
12531 if test yes = "$cross_compiling"; then :
12532 lt_cv_dlopen_self_static=cross
12533 else
12534 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12535 lt_status=$lt_dlunknown
12536 cat > conftest.$ac_ext <<_LT_EOF
12537 #line $LINENO "configure"
12538 #include "confdefs.h"
12539
12540 #if HAVE_DLFCN_H
12541 #include <dlfcn.h>
12542 #endif
12543
12544 #include <stdio.h>
12545
12546 #ifdef RTLD_GLOBAL
12547 # define LT_DLGLOBAL RTLD_GLOBAL
12548 #else
12549 # ifdef DL_GLOBAL
12550 # define LT_DLGLOBAL DL_GLOBAL
12551 # else
12552 # define LT_DLGLOBAL 0
12553 # endif
12554 #endif
12555
12556 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12557 find out it does not work in some platform. */
12558 #ifndef LT_DLLAZY_OR_NOW
12559 # ifdef RTLD_LAZY
12560 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12561 # else
12562 # ifdef DL_LAZY
12563 # define LT_DLLAZY_OR_NOW DL_LAZY
12564 # else
12565 # ifdef RTLD_NOW
12566 # define LT_DLLAZY_OR_NOW RTLD_NOW
12567 # else
12568 # ifdef DL_NOW
12569 # define LT_DLLAZY_OR_NOW DL_NOW
12570 # else
12571 # define LT_DLLAZY_OR_NOW 0
12572 # endif
12573 # endif
12574 # endif
12575 # endif
12576 #endif
12577
12578 /* When -fvisibility=hidden is used, assume the code has been annotated
12579 correspondingly for the symbols needed. */
12580 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12581 int fnord () __attribute__((visibility("default")));
12582 #endif
12583
12584 int fnord () { return 42; }
12585 int main ()
12586 {
12587 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12588 int status = $lt_dlunknown;
12589
12590 if (self)
12591 {
12592 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12593 else
12594 {
12595 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12596 else puts (dlerror ());
12597 }
12598 /* dlclose (self); */
12599 }
12600 else
12601 puts (dlerror ());
12602
12603 return status;
12604 }
12605 _LT_EOF
12606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12607 (eval $ac_link) 2>&5
12608 ac_status=$?
12609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12610 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12611 (./conftest; exit; ) >&5 2>/dev/null
12612 lt_status=$?
12613 case x$lt_status in
12614 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12615 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12616 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12617 esac
12618 else :
12619 # compilation failed
12620 lt_cv_dlopen_self_static=no
12621 fi
12622 fi
12623 rm -fr conftest*
12624
12625
12626 fi
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12628 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12629 fi
12630
12631 CPPFLAGS=$save_CPPFLAGS
12632 LDFLAGS=$save_LDFLAGS
12633 LIBS=$save_LIBS
12634 ;;
12635 esac
12636
12637 case $lt_cv_dlopen_self in
12638 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12639 *) enable_dlopen_self=unknown ;;
12640 esac
12641
12642 case $lt_cv_dlopen_self_static in
12643 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12644 *) enable_dlopen_self_static=unknown ;;
12645 esac
12646 fi
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664 striplib=
12665 old_striplib=
12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12667 printf %s "checking whether stripping libraries is possible... " >&6; }
12668 if test -z "$STRIP"; then
12669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 printf "%s\n" "no" >&6; }
12671 else
12672 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12673 old_striplib="$STRIP --strip-debug"
12674 striplib="$STRIP --strip-unneeded"
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12676 printf "%s\n" "yes" >&6; }
12677 else
12678 case $host_os in
12679 darwin*)
12680 # FIXME - insert some real tests, host_os isn't really good enough
12681 striplib="$STRIP -x"
12682 old_striplib="$STRIP -S"
12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12684 printf "%s\n" "yes" >&6; }
12685 ;;
12686 freebsd*)
12687 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12688 old_striplib="$STRIP --strip-debug"
12689 striplib="$STRIP --strip-unneeded"
12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12691 printf "%s\n" "yes" >&6; }
12692 else
12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 printf "%s\n" "no" >&6; }
12695 fi
12696 ;;
12697 *)
12698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699 printf "%s\n" "no" >&6; }
12700 ;;
12701 esac
12702 fi
12703 fi
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716 # Report what library types will actually be built
12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12718 printf %s "checking if libtool supports shared libraries... " >&6; }
12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12720 printf "%s\n" "$can_build_shared" >&6; }
12721
12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12723 printf %s "checking whether to build shared libraries... " >&6; }
12724 test no = "$can_build_shared" && enable_shared=no
12725
12726 # On AIX, shared libraries and static libraries use the same namespace, and
12727 # are all built from PIC.
12728 case $host_os in
12729 aix3*)
12730 test yes = "$enable_shared" && enable_static=no
12731 if test -n "$RANLIB"; then
12732 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12733 postinstall_cmds='$RANLIB $lib'
12734 fi
12735 ;;
12736
12737 aix[4-9]*)
12738 if test ia64 != "$host_cpu"; then
12739 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12740 yes,aix,yes) ;; # shared object as lib.so file only
12741 yes,svr4,*) ;; # shared object as lib.so archive member only
12742 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12743 esac
12744 fi
12745 ;;
12746 esac
12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12748 printf "%s\n" "$enable_shared" >&6; }
12749
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12751 printf %s "checking whether to build static libraries... " >&6; }
12752 # Make sure either enable_shared or enable_static is yes.
12753 test yes = "$enable_shared" || enable_static=yes
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12755 printf "%s\n" "$enable_static" >&6; }
12756
12757
12758
12759
12760 fi
12761 ac_ext=c
12762 ac_cpp='$CPP $CPPFLAGS'
12763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12766
12767 CC=$lt_save_CC
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783 ac_config_commands="$ac_config_commands libtool"
12784
12785
12786
12787
12788 # Only expand once:
12789
12790
12791
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12793 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12794 set x ${MAKE-make}
12795 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12796 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
12797 then :
12798 printf %s "(cached) " >&6
12799 else $as_nop
12800 cat >conftest.make <<\_ACEOF
12801 SHELL = /bin/sh
12802 all:
12803 @echo '@@@%%%=$(MAKE)=@@@%%%'
12804 _ACEOF
12805 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12806 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12807 *@@@%%%=?*=@@@%%%*)
12808 eval ac_cv_prog_make_${ac_make}_set=yes;;
12809 *)
12810 eval ac_cv_prog_make_${ac_make}_set=no;;
12811 esac
12812 rm -f conftest.make
12813 fi
12814 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12816 printf "%s\n" "yes" >&6; }
12817 SET_MAKE=
12818 else
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 printf "%s\n" "no" >&6; }
12821 SET_MAKE="MAKE=${MAKE-make}"
12822 fi
12823
12824
12825
12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12827 printf %s "checking for grep that handles long lines and -e... " >&6; }
12828 if test ${ac_cv_path_GREP+y}
12829 then :
12830 printf %s "(cached) " >&6
12831 else $as_nop
12832 if test -z "$GREP"; then
12833 ac_path_GREP_found=false
12834 # Loop through the user's path and test for each of PROGNAME-LIST
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12837 do
12838 IFS=$as_save_IFS
12839 case $as_dir in #(((
12840 '') as_dir=./ ;;
12841 */) ;;
12842 *) as_dir=$as_dir/ ;;
12843 esac
12844 for ac_prog in grep ggrep
12845 do
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
12848 as_fn_executable_p "$ac_path_GREP" || continue
12849 # Check for GNU ac_path_GREP and select it if it is found.
12850 # Check for GNU $ac_path_GREP
12851 case `"$ac_path_GREP" --version 2>&1` in
12852 *GNU*)
12853 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12854 *)
12855 ac_count=0
12856 printf %s 0123456789 >"conftest.in"
12857 while :
12858 do
12859 cat "conftest.in" "conftest.in" >"conftest.tmp"
12860 mv "conftest.tmp" "conftest.in"
12861 cp "conftest.in" "conftest.nl"
12862 printf "%s\n" 'GREP' >> "conftest.nl"
12863 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12865 as_fn_arith $ac_count + 1 && ac_count=$as_val
12866 if test $ac_count -gt ${ac_path_GREP_max-0}; then
12867 # Best one so far, save it but keep looking for a better one
12868 ac_cv_path_GREP="$ac_path_GREP"
12869 ac_path_GREP_max=$ac_count
12870 fi
12871 # 10*(2^10) chars as input seems more than enough
12872 test $ac_count -gt 10 && break
12873 done
12874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12875 esac
12876
12877 $ac_path_GREP_found && break 3
12878 done
12879 done
12880 done
12881 IFS=$as_save_IFS
12882 if test -z "$ac_cv_path_GREP"; then
12883 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12884 fi
12885 else
12886 ac_cv_path_GREP=$GREP
12887 fi
12888
12889 fi
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12891 printf "%s\n" "$ac_cv_path_GREP" >&6; }
12892 GREP="$ac_cv_path_GREP"
12893
12894
12895
12896 # Check whether --enable-largefile was given.
12897 if test ${enable_largefile+y}
12898 then :
12899 enableval=$enable_largefile;
12900 fi
12901
12902 if test "$enable_largefile" != no; then
12903
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12905 printf %s "checking for special C compiler options needed for large files... " >&6; }
12906 if test ${ac_cv_sys_largefile_CC+y}
12907 then :
12908 printf %s "(cached) " >&6
12909 else $as_nop
12910 ac_cv_sys_largefile_CC=no
12911 if test "$GCC" != yes; then
12912 ac_save_CC=$CC
12913 while :; do
12914 # IRIX 6.2 and later do not support large files by default,
12915 # so use the C compiler's -n32 option if that helps.
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 #include <sys/types.h>
12919 /* Check that off_t can represent 2**63 - 1 correctly.
12920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12921 since some C++ compilers masquerading as C compilers
12922 incorrectly reject 9223372036854775807. */
12923 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12925 && LARGE_OFF_T % 2147483647 == 1)
12926 ? 1 : -1];
12927 int
12928 main (void)
12929 {
12930
12931 ;
12932 return 0;
12933 }
12934 _ACEOF
12935 if ac_fn_c_try_compile "$LINENO"
12936 then :
12937 break
12938 fi
12939 rm -f core conftest.err conftest.$ac_objext conftest.beam
12940 CC="$CC -n32"
12941 if ac_fn_c_try_compile "$LINENO"
12942 then :
12943 ac_cv_sys_largefile_CC=' -n32'; break
12944 fi
12945 rm -f core conftest.err conftest.$ac_objext conftest.beam
12946 break
12947 done
12948 CC=$ac_save_CC
12949 rm -f conftest.$ac_ext
12950 fi
12951 fi
12952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12953 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12954 if test "$ac_cv_sys_largefile_CC" != no; then
12955 CC=$CC$ac_cv_sys_largefile_CC
12956 fi
12957
12958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12959 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12960 if test ${ac_cv_sys_file_offset_bits+y}
12961 then :
12962 printf %s "(cached) " >&6
12963 else $as_nop
12964 while :; do
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967 #include <sys/types.h>
12968 /* Check that off_t can represent 2**63 - 1 correctly.
12969 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12970 since some C++ compilers masquerading as C compilers
12971 incorrectly reject 9223372036854775807. */
12972 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12974 && LARGE_OFF_T % 2147483647 == 1)
12975 ? 1 : -1];
12976 int
12977 main (void)
12978 {
12979
12980 ;
12981 return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_compile "$LINENO"
12985 then :
12986 ac_cv_sys_file_offset_bits=no; break
12987 fi
12988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12991 #define _FILE_OFFSET_BITS 64
12992 #include <sys/types.h>
12993 /* Check that off_t can represent 2**63 - 1 correctly.
12994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12995 since some C++ compilers masquerading as C compilers
12996 incorrectly reject 9223372036854775807. */
12997 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12999 && LARGE_OFF_T % 2147483647 == 1)
13000 ? 1 : -1];
13001 int
13002 main (void)
13003 {
13004
13005 ;
13006 return 0;
13007 }
13008 _ACEOF
13009 if ac_fn_c_try_compile "$LINENO"
13010 then :
13011 ac_cv_sys_file_offset_bits=64; break
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13014 ac_cv_sys_file_offset_bits=unknown
13015 break
13016 done
13017 fi
13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13019 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13020 case $ac_cv_sys_file_offset_bits in #(
13021 no | unknown) ;;
13022 *)
13023 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13024 ;;
13025 esac
13026 rm -rf conftest*
13027 if test $ac_cv_sys_file_offset_bits = unknown; then
13028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13029 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13030 if test ${ac_cv_sys_large_files+y}
13031 then :
13032 printf %s "(cached) " >&6
13033 else $as_nop
13034 while :; do
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037 #include <sys/types.h>
13038 /* Check that off_t can represent 2**63 - 1 correctly.
13039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13040 since some C++ compilers masquerading as C compilers
13041 incorrectly reject 9223372036854775807. */
13042 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13044 && LARGE_OFF_T % 2147483647 == 1)
13045 ? 1 : -1];
13046 int
13047 main (void)
13048 {
13049
13050 ;
13051 return 0;
13052 }
13053 _ACEOF
13054 if ac_fn_c_try_compile "$LINENO"
13055 then :
13056 ac_cv_sys_large_files=no; break
13057 fi
13058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 #define _LARGE_FILES 1
13062 #include <sys/types.h>
13063 /* Check that off_t can represent 2**63 - 1 correctly.
13064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13065 since some C++ compilers masquerading as C compilers
13066 incorrectly reject 9223372036854775807. */
13067 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13069 && LARGE_OFF_T % 2147483647 == 1)
13070 ? 1 : -1];
13071 int
13072 main (void)
13073 {
13074
13075 ;
13076 return 0;
13077 }
13078 _ACEOF
13079 if ac_fn_c_try_compile "$LINENO"
13080 then :
13081 ac_cv_sys_large_files=1; break
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13084 ac_cv_sys_large_files=unknown
13085 break
13086 done
13087 fi
13088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13089 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13090 case $ac_cv_sys_large_files in #(
13091 no | unknown) ;;
13092 *)
13093 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13094 ;;
13095 esac
13096 rm -rf conftest*
13097 fi
13098 fi
13099
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for large file support in 32-bit OS" >&5
13101 printf %s "checking for large file support in 32-bit OS... " >&6; }
13102 if test "$ac_cv_sys_file_offset_bits" != no \
13103 -o "$ac_cv_sys_large_files" != no ; then
13104
13105 printf "%s\n" "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
13106
13107
13108 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
13109
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13111 printf "%s\n" "yes" >&6; }
13112 else
13113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 printf "%s\n" "no" >&6; }
13115 fi
13116 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
13117 if test "x$ac_cv_func_fseeko" = xyes
13118 then :
13119 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
13120
13121 fi
13122
13123 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
13124 if test "x$ac_cv_func_ftello" = xyes
13125 then :
13126 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
13127
13128 fi
13129
13130 ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
13131 if test "x$ac_cv_func_fseeko64" = xyes
13132 then :
13133 printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
13134
13135 fi
13136
13137 ac_fn_c_check_func "$LINENO" "ftello64" "ac_cv_func_ftello64"
13138 if test "x$ac_cv_func_ftello64" = xyes
13139 then :
13140 printf "%s\n" "#define HAVE_FTELLO64 1" >>confdefs.h
13141
13142 fi
13143
13144 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
13145 if test "x$ac_cv_func__fseeki64" = xyes
13146 then :
13147 printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h
13148
13149 fi
13150
13151 ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
13152 if test "x$ac_cv_func__ftelli64" = xyes
13153 then :
13154 printf "%s\n" "#define HAVE__FTELLI64 1" >>confdefs.h
13155
13156 fi
13157
13158
13159
13160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13161 printf %s "checking for pow in -lm... " >&6; }
13162 if test ${ac_cv_lib_m_pow+y}
13163 then :
13164 printf %s "(cached) " >&6
13165 else $as_nop
13166 ac_check_lib_save_LIBS=$LIBS
13167 LIBS="-lm $LIBS"
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174 char pow ();
13175 int
13176 main (void)
13177 {
13178 return pow ();
13179 ;
13180 return 0;
13181 }
13182 _ACEOF
13183 if ac_fn_c_try_link "$LINENO"
13184 then :
13185 ac_cv_lib_m_pow=yes
13186 else $as_nop
13187 ac_cv_lib_m_pow=no
13188 fi
13189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13190 conftest$ac_exeext conftest.$ac_ext
13191 LIBS=$ac_check_lib_save_LIBS
13192 fi
13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13194 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
13195 if test "x$ac_cv_lib_m_pow" = xyes
13196 then :
13197 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
13198
13199 LIBS="-lm $LIBS"
13200
13201 fi
13202
13203
13204
13205 ac_config_headers="$ac_config_headers src/matioConfig.h src/matio_pubconf.h"
13206
13207
13208
13209
13210
13211 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13212 if test "x$ac_cv_header_inttypes_h" = xyes
13213 then :
13214
13215 printf "%s\n" "#define MATIO_HAVE_INTTYPES_H 1" >>confdefs.h
13216
13217 fi
13218
13219 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13220 if test "x$ac_cv_header_stdint_h" = xyes
13221 then :
13222
13223 printf "%s\n" "#define MATIO_HAVE_STDINT_H 1" >>confdefs.h
13224
13225 fi
13226
13227 ac_fn_c_check_header_compile "$LINENO" "intsafe.h" "ac_cv_header_intsafe_h" "$ac_includes_default"
13228 if test "x$ac_cv_header_intsafe_h" = xyes
13229 then :
13230
13231 printf "%s\n" "#define HAVE_INTSAFE_H 1" >>confdefs.h
13232
13233 fi
13234
13235 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
13236 if test "x$ac_cv_header_strings_h" = xyes
13237 then :
13238
13239 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
13240
13241 fi
13242
13243 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13244 if test "x$ac_cv_header_unistd_h" = xyes
13245 then :
13246
13247 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13248
13249 fi
13250
13251 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
13252 if test "x$ac_cv_header_float_h" = xyes
13253 then :
13254 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
13255
13256 fi
13257 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13258 if test "x$ac_cv_header_locale_h" = xyes
13259 then :
13260 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
13261
13262 fi
13263 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
13264 if test "x$ac_cv_header_stddef_h" = xyes
13265 then :
13266 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
13267
13268 fi
13269
13270 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
13271 "
13272 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
13273 then :
13274
13275 printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h
13276
13277
13278 fi
13279 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
13280 "
13281 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes
13282 then :
13283
13284 printf "%s\n" "#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1" >>confdefs.h
13285
13286
13287 fi
13288
13289
13290 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
13291 if test "x$ac_cv_type_ptrdiff_t" = xyes
13292 then :
13293
13294 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
13295
13296
13297 fi
13298
13299 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
13300 if test "x$ac_cv_func_localeconv" = xyes
13301 then :
13302 printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h
13303
13304 fi
13305
13306
13307
13308
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getopt_long" >&5
13310 printf %s "checking for getopt_long... " >&6; }
13311
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314 #include <stdio.h>
13315 #include <stdlib.h>
13316 #ifdef HAVE_STDDEF_H
13317 #include <stddef.h>
13318 #endif
13319 #ifdef HAVE_UNISTD_H
13320 #include <unistd.h>
13321 #endif
13322 #define _GNU_SOURCE /* For getopt_long on GNU systems */
13323 #include <getopt.h>
13324
13325 int
13326 main (void)
13327 {
13328 int opt = getopt_long(0,NULL,NULL,NULL,NULL);
13329 ;
13330 return 0;
13331 }
13332 _ACEOF
13333 if ac_fn_c_try_link "$LINENO"
13334 then :
13335 ac_have_getopt_long=yes
13336 else $as_nop
13337 ac_have_getopt_long=no
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13340 conftest$ac_exeext conftest.$ac_ext
13341
13342 if test "x$ac_have_getopt_long" = "xyes"
13343 then
13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: system" >&5
13345 printf "%s\n" "system" >&6; }
13346 else
13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal" >&5
13348 printf "%s\n" "internal" >&6; }
13349 fi
13350 if test "x$ac_have_getopt_long" = "xno" ; then
13351 NEED_GETOPT_TRUE=
13352 NEED_GETOPT_FALSE='#'
13353 else
13354 NEED_GETOPT_TRUE='#'
13355 NEED_GETOPT_FALSE=
13356 fi
13357
13358
13359
13360 # The cast to long int works around a bug in the HP C Compiler
13361 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13362 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13363 # This bug is HP SR number 8606223364.
13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
13365 printf %s "checking size of double... " >&6; }
13366 if test ${ac_cv_sizeof_double+y}
13367 then :
13368 printf %s "(cached) " >&6
13369 else $as_nop
13370 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
13371 then :
13372
13373 else $as_nop
13374 if test "$ac_cv_type_double" = yes; then
13375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13376 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13377 as_fn_error 77 "cannot compute sizeof (double)
13378 See \`config.log' for more details" "$LINENO" 5; }
13379 else
13380 ac_cv_sizeof_double=0
13381 fi
13382 fi
13383
13384 fi
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
13386 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
13387
13388
13389
13390 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
13391
13392
13393 # The cast to long int works around a bug in the HP C Compiler
13394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13396 # This bug is HP SR number 8606223364.
13397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
13398 printf %s "checking size of float... " >&6; }
13399 if test ${ac_cv_sizeof_float+y}
13400 then :
13401 printf %s "(cached) " >&6
13402 else $as_nop
13403 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
13404 then :
13405
13406 else $as_nop
13407 if test "$ac_cv_type_float" = yes; then
13408 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13409 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13410 as_fn_error 77 "cannot compute sizeof (float)
13411 See \`config.log' for more details" "$LINENO" 5; }
13412 else
13413 ac_cv_sizeof_float=0
13414 fi
13415 fi
13416
13417 fi
13418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
13419 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
13420
13421
13422
13423 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
13424
13425
13426 # The cast to long int works around a bug in the HP C Compiler
13427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13429 # This bug is HP SR number 8606223364.
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13431 printf %s "checking size of long long... " >&6; }
13432 if test ${ac_cv_sizeof_long_long+y}
13433 then :
13434 printf %s "(cached) " >&6
13435 else $as_nop
13436 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
13437 then :
13438
13439 else $as_nop
13440 if test "$ac_cv_type_long_long" = yes; then
13441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13442 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13443 as_fn_error 77 "cannot compute sizeof (long long)
13444 See \`config.log' for more details" "$LINENO" 5; }
13445 else
13446 ac_cv_sizeof_long_long=0
13447 fi
13448 fi
13449
13450 fi
13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13452 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
13453
13454
13455
13456 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
13457
13458
13459 # The cast to long int works around a bug in the HP C Compiler
13460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13462 # This bug is HP SR number 8606223364.
13463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13464 printf %s "checking size of long... " >&6; }
13465 if test ${ac_cv_sizeof_long+y}
13466 then :
13467 printf %s "(cached) " >&6
13468 else $as_nop
13469 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
13470 then :
13471
13472 else $as_nop
13473 if test "$ac_cv_type_long" = yes; then
13474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13476 as_fn_error 77 "cannot compute sizeof (long)
13477 See \`config.log' for more details" "$LINENO" 5; }
13478 else
13479 ac_cv_sizeof_long=0
13480 fi
13481 fi
13482
13483 fi
13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13485 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
13486
13487
13488
13489 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
13490
13491
13492 # The cast to long int works around a bug in the HP C Compiler
13493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13495 # This bug is HP SR number 8606223364.
13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13497 printf %s "checking size of int... " >&6; }
13498 if test ${ac_cv_sizeof_int+y}
13499 then :
13500 printf %s "(cached) " >&6
13501 else $as_nop
13502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
13503 then :
13504
13505 else $as_nop
13506 if test "$ac_cv_type_int" = yes; then
13507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13508 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13509 as_fn_error 77 "cannot compute sizeof (int)
13510 See \`config.log' for more details" "$LINENO" 5; }
13511 else
13512 ac_cv_sizeof_int=0
13513 fi
13514 fi
13515
13516 fi
13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13518 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
13519
13520
13521
13522 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
13523
13524
13525 # The cast to long int works around a bug in the HP C Compiler
13526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13528 # This bug is HP SR number 8606223364.
13529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13530 printf %s "checking size of short... " >&6; }
13531 if test ${ac_cv_sizeof_short+y}
13532 then :
13533 printf %s "(cached) " >&6
13534 else $as_nop
13535 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
13536 then :
13537
13538 else $as_nop
13539 if test "$ac_cv_type_short" = yes; then
13540 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13541 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13542 as_fn_error 77 "cannot compute sizeof (short)
13543 See \`config.log' for more details" "$LINENO" 5; }
13544 else
13545 ac_cv_sizeof_short=0
13546 fi
13547 fi
13548
13549 fi
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13551 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
13552
13553
13554
13555 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
13556
13557
13558 # The cast to long int works around a bug in the HP C Compiler
13559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13561 # This bug is HP SR number 8606223364.
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13563 printf %s "checking size of char... " >&6; }
13564 if test ${ac_cv_sizeof_char+y}
13565 then :
13566 printf %s "(cached) " >&6
13567 else $as_nop
13568 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
13569 then :
13570
13571 else $as_nop
13572 if test "$ac_cv_type_char" = yes; then
13573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13574 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13575 as_fn_error 77 "cannot compute sizeof (char)
13576 See \`config.log' for more details" "$LINENO" 5; }
13577 else
13578 ac_cv_sizeof_char=0
13579 fi
13580 fi
13581
13582 fi
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13584 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
13585
13586
13587
13588 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
13589
13590
13591 # The cast to long int works around a bug in the HP C Compiler
13592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13594 # This bug is HP SR number 8606223364.
13595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13596 printf %s "checking size of void *... " >&6; }
13597 if test ${ac_cv_sizeof_void_p+y}
13598 then :
13599 printf %s "(cached) " >&6
13600 else $as_nop
13601 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
13602 then :
13603
13604 else $as_nop
13605 if test "$ac_cv_type_void_p" = yes; then
13606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13608 as_fn_error 77 "cannot compute sizeof (void *)
13609 See \`config.log' for more details" "$LINENO" 5; }
13610 else
13611 ac_cv_sizeof_void_p=0
13612 fi
13613 fi
13614
13615 fi
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13617 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
13618
13619
13620
13621 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
13622
13623
13624 # The cast to long int works around a bug in the HP C Compiler
13625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13627 # This bug is HP SR number 8606223364.
13628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13629 printf %s "checking size of off_t... " >&6; }
13630 if test ${ac_cv_sizeof_off_t+y}
13631 then :
13632 printf %s "(cached) " >&6
13633 else $as_nop
13634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
13635 then :
13636
13637 else $as_nop
13638 if test "$ac_cv_type_off_t" = yes; then
13639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13640 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13641 as_fn_error 77 "cannot compute sizeof (off_t)
13642 See \`config.log' for more details" "$LINENO" 5; }
13643 else
13644 ac_cv_sizeof_off_t=0
13645 fi
13646 fi
13647
13648 fi
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
13650 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
13651
13652
13653
13654 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
13655
13656
13657 # The cast to long int works around a bug in the HP C Compiler
13658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13660 # This bug is HP SR number 8606223364.
13661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13662 printf %s "checking size of size_t... " >&6; }
13663 if test ${ac_cv_sizeof_size_t+y}
13664 then :
13665 printf %s "(cached) " >&6
13666 else $as_nop
13667 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
13668 then :
13669
13670 else $as_nop
13671 if test "$ac_cv_type_size_t" = yes; then
13672 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13673 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13674 as_fn_error 77 "cannot compute sizeof (size_t)
13675 See \`config.log' for more details" "$LINENO" 5; }
13676 else
13677 ac_cv_sizeof_size_t=0
13678 fi
13679 fi
13680
13681 fi
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13683 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
13684
13685
13686
13687 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
13688
13689
13690
13691 SIZEOF_INT="$ac_cv_sizeof_int"
13692 SIZEOF_SIZE_T="$ac_cv_sizeof_size_t"
13693 SIZEOF_VOID_P="$ac_cv_sizeof_void_p"
13694
13695
13696
13697
13698
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mat_int64_t" >&5
13700 printf %s "checking for mat_int64_t... " >&6; }
13701
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704
13705 #include <stdlib.h>
13706 #ifdef HAVE_INTTYPES_H
13707 # include <inttypes.h>
13708 #endif
13709 #ifdef HAVE_STDINT_H
13710 # include <stdint.h>
13711 #endif
13712
13713 int
13714 main (void)
13715 {
13716 int64_t i = 0;
13717 ;
13718 return 0;
13719 }
13720 _ACEOF
13721 if ac_fn_c_try_link "$LINENO"
13722 then :
13723 ac_have_mat_int64_t=yes
13724 else $as_nop
13725 ac_have_mat_int64_t=no
13726 fi
13727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13728 conftest$ac_exeext conftest.$ac_ext
13729
13730 if test "x$ac_have_mat_int64_t" = "xyes"
13731 then
13732 ac_have_mat_int64_t=yes
13733
13734 printf "%s\n" "#define HAVE_MAT_INT64_T /**/" >>confdefs.h
13735
13736
13737 printf "%s\n" "#define _mat_int64_t int64_t" >>confdefs.h
13738
13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int64_t" >&5
13740 printf "%s\n" "int64_t" >&6; }
13741 fi
13742 if test "x$ac_have_mat_int64_t" != "xyes"
13743 then
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746
13747 #include <stdlib.h>
13748 #ifdef HAVE_INTTYPES_H
13749 # include <inttypes.h>
13750 #endif
13751 #ifdef HAVE_STDINT_H
13752 # include <stdint.h>
13753 #endif
13754 #include <limits.h>
13755 #if CHAR_BIT != 64
13756 #matio sizeof(signed char) not 64 bits
13757 #endif
13758
13759 int
13760 main (void)
13761 {
13762 signed char i = 0;
13763 ;
13764 return 0;
13765 }
13766 _ACEOF
13767 if ac_fn_c_try_link "$LINENO"
13768 then :
13769 ac_have_mat_int64_t=yes
13770 else $as_nop
13771 ac_have_mat_int64_t=no
13772 fi
13773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13774 conftest$ac_exeext conftest.$ac_ext
13775
13776 if test "x$ac_have_mat_int64_t" = "xyes"
13777 then
13778
13779 printf "%s\n" "#define HAVE_MAT_INT64_T /**/" >>confdefs.h
13780
13781
13782 printf "%s\n" "#define _mat_int64_t signed char" >>confdefs.h
13783
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: signed char" >&5
13785 printf "%s\n" "signed char" >&6; }
13786 fi
13787 fi
13788 if test "x$ac_have_mat_int64_t" != "xyes"
13789 then
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792
13793 #include <stdlib.h>
13794 #ifdef HAVE_INTTYPES_H
13795 # include <inttypes.h>
13796 #endif
13797 #ifdef HAVE_STDINT_H
13798 # include <stdint.h>
13799 #endif
13800 #include <limits.h>
13801 #if CHAR_BIT*SIZEOF_SHORT != 64
13802 #matio sizeof(short) not 64 bits
13803 #endif
13804
13805 int
13806 main (void)
13807 {
13808 short i = 0;
13809 ;
13810 return 0;
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"
13814 then :
13815 ac_have_mat_int64_t=yes
13816 else $as_nop
13817 ac_have_mat_int64_t=no
13818 fi
13819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13820 conftest$ac_exeext conftest.$ac_ext
13821
13822 if test "x$ac_have_mat_int64_t" = "xyes"
13823 then
13824
13825 printf "%s\n" "#define HAVE_MAT_INT64_T /**/" >>confdefs.h
13826
13827
13828 printf "%s\n" "#define _mat_int64_t short" >>confdefs.h
13829
13830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: short" >&5
13831 printf "%s\n" "short" >&6; }
13832 fi
13833 fi
13834 if test "x$ac_have_mat_int64_t" != "xyes"
13835 then
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838
13839 #include <stdlib.h>
13840 #ifdef HAVE_INTTYPES_H
13841 # include <inttypes.h>
13842 #endif
13843 #ifdef HAVE_STDINT_H
13844 # include <stdint.h>
13845 #endif
13846 #include <limits.h>
13847 #if CHAR_BIT*SIZEOF_INT != 64
13848 #matio sizeof(int) not 64 bits
13849 #endif
13850
13851 int
13852 main (void)
13853 {
13854 int i = 0;
13855 ;
13856 return 0;
13857 }
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"
13860 then :
13861 ac_have_mat_int64_t=yes
13862 else $as_nop
13863 ac_have_mat_int64_t=no
13864 fi
13865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13866 conftest$ac_exeext conftest.$ac_ext
13867
13868 if test "x$ac_have_mat_int64_t" = "xyes"
13869 then
13870
13871 printf "%s\n" "#define HAVE_MAT_INT64_T /**/" >>confdefs.h
13872
13873
13874 printf "%s\n" "#define _mat_int64_t int" >>confdefs.h
13875
13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
13877 printf "%s\n" "int" >&6; }
13878 fi
13879 fi
13880 if test "x$ac_have_mat_int64_t" != "xyes"
13881 then
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884
13885 #include <stdlib.h>
13886 #ifdef HAVE_INTTYPES_H
13887 # include <inttypes.h>
13888 #endif
13889 #ifdef HAVE_STDINT_H
13890 # include <stdint.h>
13891 #endif
13892 #include <limits.h>
13893 #if CHAR_BIT*SIZEOF_LONG != 64
13894 #matio sizeof(long) not 64 bits
13895 #endif
13896
13897 int
13898 main (void)
13899 {
13900 long i = 0;
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 if ac_fn_c_try_link "$LINENO"
13906 then :
13907 ac_have_mat_int64_t=yes
13908 else $as_nop
13909 ac_have_mat_int64_t=no
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13912 conftest$ac_exeext conftest.$ac_ext
13913
13914 if test "x$ac_have_mat_int64_t" = "xyes"
13915 then
13916
13917 printf "%s\n" "#define HAVE_MAT_INT64_T /**/" >>confdefs.h
13918
13919
13920 printf "%s\n" "#define _mat_int64_t long" >>confdefs.h
13921
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long" >&5
13923 printf "%s\n" "long" >&6; }
13924 fi
13925 fi
13926 if test "x$ac_have_mat_int64_t" != "xyes"
13927 then
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930
13931 #include <stdlib.h>
13932 #ifdef HAVE_INTTYPES_H
13933 # include <inttypes.h>
13934 #endif
13935 #ifdef HAVE_STDINT_H
13936 # include <stdint.h>
13937 #endif
13938 #include <limits.h>
13939 #if CHAR_BIT*SIZEOF_LONG_LONG != 64
13940 #matio sizeof(long long) not 64 bits
13941 #endif
13942
13943 int
13944 main (void)
13945 {
13946 long long i = 0;
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 if ac_fn_c_try_link "$LINENO"
13952 then :
13953 ac_have_mat_int64_t=yes
13954 else $as_nop
13955 ac_have_mat_int64_t=no
13956 fi
13957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13958 conftest$ac_exeext conftest.$ac_ext
13959
13960 if test "x$ac_have_mat_int64_t" = "xyes"
13961 then
13962
13963 printf "%s\n" "#define HAVE_MAT_INT64_T /**/" >>confdefs.h
13964
13965
13966 printf "%s\n" "#define _mat_int64_t long long" >>confdefs.h
13967
13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long long" >&5
13969 printf "%s\n" "long long" >&6; }
13970 fi
13971 fi
13972 if test "x$ac_have_mat_int64_t" != "xyes"
13973 then
13974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
13975 printf "%s\n" "" >&6; }
13976 fi
13977
13978
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mat_uint64_t" >&5
13980 printf %s "checking for mat_uint64_t... " >&6; }
13981
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13984
13985 #include <stdlib.h>
13986 #ifdef HAVE_INTTYPES_H
13987 # include <inttypes.h>
13988 #endif
13989 #ifdef HAVE_STDINT_H
13990 # include <stdint.h>
13991 #endif
13992
13993 int
13994 main (void)
13995 {
13996 uint64_t i = 0;
13997 ;
13998 return 0;
13999 }
14000 _ACEOF
14001 if ac_fn_c_try_link "$LINENO"
14002 then :
14003 ac_have_mat_uint64_t=yes
14004 else $as_nop
14005 ac_have_mat_uint64_t=no
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14008 conftest$ac_exeext conftest.$ac_ext
14009
14010 if test "x$ac_have_mat_uint64_t" = "xyes"
14011 then
14012 ac_have_mat_uint64_t=yes
14013
14014 printf "%s\n" "#define HAVE_MAT_UINT64_T /**/" >>confdefs.h
14015
14016
14017 printf "%s\n" "#define _mat_uint64_t uint64_t" >>confdefs.h
14018
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: uint64_t" >&5
14020 printf "%s\n" "uint64_t" >&6; }
14021 fi
14022 if test "x$ac_have_mat_uint64_t" != "xyes"
14023 then
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14026
14027 #include <stdlib.h>
14028 #ifdef HAVE_INTTYPES_H
14029 # include <inttypes.h>
14030 #endif
14031 #ifdef HAVE_STDINT_H
14032 # include <stdint.h>
14033 #endif
14034 #include <limits.h>
14035 #if CHAR_BIT != 64
14036 #matio sizeof(signed char) not 64 bits
14037 #endif
14038
14039 int
14040 main (void)
14041 {
14042 unsigned char i = 0;
14043 ;
14044 return 0;
14045 }
14046 _ACEOF
14047 if ac_fn_c_try_link "$LINENO"
14048 then :
14049 ac_have_mat_uint64_t=yes
14050 else $as_nop
14051 ac_have_mat_uint64_t=no
14052 fi
14053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14054 conftest$ac_exeext conftest.$ac_ext
14055
14056 if test "x$ac_have_mat_uint64_t" = "xyes"
14057 then
14058
14059 printf "%s\n" "#define HAVE_MAT_UINT64_T /**/" >>confdefs.h
14060
14061
14062 printf "%s\n" "#define _mat_uint64_t unsigned char" >>confdefs.h
14063
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned char" >&5
14065 printf "%s\n" "unsigned char" >&6; }
14066 fi
14067 fi
14068 if test "x$ac_have_mat_uint64_t" != "xyes"
14069 then
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14072
14073 #include <stdlib.h>
14074 #ifdef HAVE_INTTYPES_H
14075 # include <inttypes.h>
14076 #endif
14077 #ifdef HAVE_STDINT_H
14078 # include <stdint.h>
14079 #endif
14080 #include <limits.h>
14081 #if CHAR_BIT*SIZEOF_SHORT != 64
14082 #matio sizeof(short) not 64 bits
14083 #endif
14084
14085 int
14086 main (void)
14087 {
14088 unsigned short i = 0;
14089 ;
14090 return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_link "$LINENO"
14094 then :
14095 ac_have_mat_uint64_t=yes
14096 else $as_nop
14097 ac_have_mat_uint64_t=no
14098 fi
14099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14100 conftest$ac_exeext conftest.$ac_ext
14101
14102 if test "x$ac_have_mat_uint64_t" = "xyes"
14103 then
14104
14105 printf "%s\n" "#define HAVE_MAT_UINT64_T /**/" >>confdefs.h
14106
14107
14108 printf "%s\n" "#define _mat_uint64_t unsigned short" >>confdefs.h
14109
14110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned short" >&5
14111 printf "%s\n" "unsigned short" >&6; }
14112 fi
14113 fi
14114 if test "x$ac_have_mat_uint64_t" != "xyes"
14115 then
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118
14119 #include <stdlib.h>
14120 #ifdef HAVE_INTTYPES_H
14121 # include <inttypes.h>
14122 #endif
14123 #ifdef HAVE_STDINT_H
14124 # include <stdint.h>
14125 #endif
14126 #include <limits.h>
14127 #if CHAR_BIT*SIZEOF_INT != 64
14128 #matio sizeof(int) not 64 bits
14129 #endif
14130
14131 int
14132 main (void)
14133 {
14134 unsigned int i = 0;
14135 ;
14136 return 0;
14137 }
14138 _ACEOF
14139 if ac_fn_c_try_link "$LINENO"
14140 then :
14141 ac_have_mat_uint64_t=yes
14142 else $as_nop
14143 ac_have_mat_uint64_t=no
14144 fi
14145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14146 conftest$ac_exeext conftest.$ac_ext
14147
14148 if test "x$ac_have_mat_uint64_t" = "xyes"
14149 then
14150
14151 printf "%s\n" "#define HAVE_MAT_UINT64_T /**/" >>confdefs.h
14152
14153
14154 printf "%s\n" "#define _mat_uint64_t unsigned int" >>confdefs.h
14155
14156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned int" >&5
14157 printf "%s\n" "unsigned int" >&6; }
14158 fi
14159 fi
14160 if test "x$ac_have_mat_uint64_t" != "xyes"
14161 then
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164
14165 #include <stdlib.h>
14166 #ifdef HAVE_INTTYPES_H
14167 # include <inttypes.h>
14168 #endif
14169 #ifdef HAVE_STDINT_H
14170 # include <stdint.h>
14171 #endif
14172 #include <limits.h>
14173 #if CHAR_BIT*SIZEOF_LONG != 64
14174 #matio sizeof(long) not 64 bits
14175 #endif
14176
14177 int
14178 main (void)
14179 {
14180 unsigned long i = 0;
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_link "$LINENO"
14186 then :
14187 ac_have_mat_uint64_t=yes
14188 else $as_nop
14189 ac_have_mat_uint64_t=no
14190 fi
14191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14192 conftest$ac_exeext conftest.$ac_ext
14193
14194 if test "x$ac_have_mat_uint64_t" = "xyes"
14195 then
14196
14197 printf "%s\n" "#define HAVE_MAT_UINT64_T /**/" >>confdefs.h
14198
14199
14200 printf "%s\n" "#define _mat_uint64_t unsigned long" >>confdefs.h
14201
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned long" >&5
14203 printf "%s\n" "unsigned long" >&6; }
14204 fi
14205 fi
14206 if test "x$ac_have_mat_uint64_t" != "xyes"
14207 then
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210
14211 #include <stdlib.h>
14212 #ifdef HAVE_INTTYPES_H
14213 # include <inttypes.h>
14214 #endif
14215 #ifdef HAVE_STDINT_H
14216 # include <stdint.h>
14217 #endif
14218 #include <limits.h>
14219 #if CHAR_BIT*SIZEOF_LONG_LONG != 64
14220 #matio sizeof(long long) not 64 bits
14221 #endif
14222
14223 int
14224 main (void)
14225 {
14226 unsigned long long i = 0;
14227 ;
14228 return 0;
14229 }
14230 _ACEOF
14231 if ac_fn_c_try_link "$LINENO"
14232 then :
14233 ac_have_mat_uint64_t=yes
14234 else $as_nop
14235 ac_have_mat_uint64_t=no
14236 fi
14237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14238 conftest$ac_exeext conftest.$ac_ext
14239
14240 if test "x$ac_have_mat_uint64_t" = "xyes"
14241 then
14242
14243 printf "%s\n" "#define HAVE_MAT_UINT64_T /**/" >>confdefs.h
14244
14245
14246 printf "%s\n" "#define _mat_uint64_t unsigned long long" >>confdefs.h
14247
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned long long" >&5
14249 printf "%s\n" "unsigned long long" >&6; }
14250 fi
14251 fi
14252 if test "x$ac_have_mat_uint64_t" != "xyes"
14253 then
14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
14255 printf "%s\n" "" >&6; }
14256 fi
14257
14258
14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mat_int32_t" >&5
14260 printf %s "checking for mat_int32_t... " >&6; }
14261
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14264
14265 #include <stdlib.h>
14266 #ifdef HAVE_INTTYPES_H
14267 # include <inttypes.h>
14268 #endif
14269 #ifdef HAVE_STDINT_H
14270 # include <stdint.h>
14271 #endif
14272
14273 int
14274 main (void)
14275 {
14276 int32_t i = 0;
14277 ;
14278 return 0;
14279 }
14280 _ACEOF
14281 if ac_fn_c_try_link "$LINENO"
14282 then :
14283 ac_have_mat_int32_t=yes
14284 else $as_nop
14285 ac_have_mat_int32_t=no
14286 fi
14287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14288 conftest$ac_exeext conftest.$ac_ext
14289
14290 if test "x$ac_have_mat_int32_t" = "xyes"
14291 then
14292 ac_have_mat_int32_t=yes
14293
14294 printf "%s\n" "#define HAVE_MAT_INT32_T /**/" >>confdefs.h
14295
14296
14297 printf "%s\n" "#define _mat_int32_t int32_t" >>confdefs.h
14298
14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int32_t" >&5
14300 printf "%s\n" "int32_t" >&6; }
14301 fi
14302 if test "x$ac_have_mat_int32_t" != "xyes"
14303 then
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306
14307 #include <stdlib.h>
14308 #ifdef HAVE_INTTYPES_H
14309 # include <inttypes.h>
14310 #endif
14311 #ifdef HAVE_STDINT_H
14312 # include <stdint.h>
14313 #endif
14314 #include <limits.h>
14315 #if CHAR_BIT != 32
14316 #matio sizeof(signed char) not 32 bits
14317 #endif
14318
14319 int
14320 main (void)
14321 {
14322 signed char i = 0;
14323 ;
14324 return 0;
14325 }
14326 _ACEOF
14327 if ac_fn_c_try_link "$LINENO"
14328 then :
14329 ac_have_mat_int32_t=yes
14330 else $as_nop
14331 ac_have_mat_int32_t=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14334 conftest$ac_exeext conftest.$ac_ext
14335
14336 if test "x$ac_have_mat_int32_t" = "xyes"
14337 then
14338
14339 printf "%s\n" "#define HAVE_MAT_INT32_T /**/" >>confdefs.h
14340
14341
14342 printf "%s\n" "#define _mat_int32_t signed char" >>confdefs.h
14343
14344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: signed char" >&5
14345 printf "%s\n" "signed char" >&6; }
14346 fi
14347 fi
14348 if test "x$ac_have_mat_int32_t" != "xyes"
14349 then
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352
14353 #include <stdlib.h>
14354 #ifdef HAVE_INTTYPES_H
14355 # include <inttypes.h>
14356 #endif
14357 #ifdef HAVE_STDINT_H
14358 # include <stdint.h>
14359 #endif
14360 #include <limits.h>
14361 #if CHAR_BIT*SIZEOF_SHORT != 32
14362 #matio sizeof(short) not 32 bits
14363 #endif
14364
14365 int
14366 main (void)
14367 {
14368 short i = 0;
14369 ;
14370 return 0;
14371 }
14372 _ACEOF
14373 if ac_fn_c_try_link "$LINENO"
14374 then :
14375 ac_have_mat_int32_t=yes
14376 else $as_nop
14377 ac_have_mat_int32_t=no
14378 fi
14379 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14380 conftest$ac_exeext conftest.$ac_ext
14381
14382 if test "x$ac_have_mat_int32_t" = "xyes"
14383 then
14384
14385 printf "%s\n" "#define HAVE_MAT_INT32_T /**/" >>confdefs.h
14386
14387
14388 printf "%s\n" "#define _mat_int32_t short" >>confdefs.h
14389
14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: short" >&5
14391 printf "%s\n" "short" >&6; }
14392 fi
14393 fi
14394 if test "x$ac_have_mat_int32_t" != "xyes"
14395 then
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14398
14399 #include <stdlib.h>
14400 #ifdef HAVE_INTTYPES_H
14401 # include <inttypes.h>
14402 #endif
14403 #ifdef HAVE_STDINT_H
14404 # include <stdint.h>
14405 #endif
14406 #include <limits.h>
14407 #if CHAR_BIT*SIZEOF_INT != 32
14408 #matio sizeof(int) not 32 bits
14409 #endif
14410
14411 int
14412 main (void)
14413 {
14414 int i = 0;
14415 ;
14416 return 0;
14417 }
14418 _ACEOF
14419 if ac_fn_c_try_link "$LINENO"
14420 then :
14421 ac_have_mat_int32_t=yes
14422 else $as_nop
14423 ac_have_mat_int32_t=no
14424 fi
14425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14426 conftest$ac_exeext conftest.$ac_ext
14427
14428 if test "x$ac_have_mat_int32_t" = "xyes"
14429 then
14430
14431 printf "%s\n" "#define HAVE_MAT_INT32_T /**/" >>confdefs.h
14432
14433
14434 printf "%s\n" "#define _mat_int32_t int" >>confdefs.h
14435
14436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
14437 printf "%s\n" "int" >&6; }
14438 fi
14439 fi
14440 if test "x$ac_have_mat_int32_t" != "xyes"
14441 then
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444
14445 #include <stdlib.h>
14446 #ifdef HAVE_INTTYPES_H
14447 # include <inttypes.h>
14448 #endif
14449 #ifdef HAVE_STDINT_H
14450 # include <stdint.h>
14451 #endif
14452 #include <limits.h>
14453 #if CHAR_BIT*SIZEOF_LONG != 32
14454 #matio sizeof(long) not 32 bits
14455 #endif
14456
14457 int
14458 main (void)
14459 {
14460 long i = 0;
14461 ;
14462 return 0;
14463 }
14464 _ACEOF
14465 if ac_fn_c_try_link "$LINENO"
14466 then :
14467 ac_have_mat_int32_t=yes
14468 else $as_nop
14469 ac_have_mat_int32_t=no
14470 fi
14471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14472 conftest$ac_exeext conftest.$ac_ext
14473
14474 if test "x$ac_have_mat_int32_t" = "xyes"
14475 then
14476
14477 printf "%s\n" "#define HAVE_MAT_INT32_T /**/" >>confdefs.h
14478
14479
14480 printf "%s\n" "#define _mat_int32_t long" >>confdefs.h
14481
14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long" >&5
14483 printf "%s\n" "long" >&6; }
14484 fi
14485 fi
14486 if test "x$ac_have_mat_int32_t" != "xyes"
14487 then
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14490
14491 #include <stdlib.h>
14492 #ifdef HAVE_INTTYPES_H
14493 # include <inttypes.h>
14494 #endif
14495 #ifdef HAVE_STDINT_H
14496 # include <stdint.h>
14497 #endif
14498 #include <limits.h>
14499 #if CHAR_BIT*SIZEOF_LONG_LONG != 32
14500 #matio sizeof(long long) not 32 bits
14501 #endif
14502
14503 int
14504 main (void)
14505 {
14506 long long i = 0;
14507 ;
14508 return 0;
14509 }
14510 _ACEOF
14511 if ac_fn_c_try_link "$LINENO"
14512 then :
14513 ac_have_mat_int32_t=yes
14514 else $as_nop
14515 ac_have_mat_int32_t=no
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14518 conftest$ac_exeext conftest.$ac_ext
14519
14520 if test "x$ac_have_mat_int32_t" = "xyes"
14521 then
14522
14523 printf "%s\n" "#define HAVE_MAT_INT32_T /**/" >>confdefs.h
14524
14525
14526 printf "%s\n" "#define _mat_int32_t long long" >>confdefs.h
14527
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long long" >&5
14529 printf "%s\n" "long long" >&6; }
14530 fi
14531 fi
14532 if test "x$ac_have_mat_int32_t" != "xyes"
14533 then
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
14535 printf "%s\n" "" >&6; }
14536 fi
14537
14538
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mat_uint32_t" >&5
14540 printf %s "checking for mat_uint32_t... " >&6; }
14541
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544
14545 #include <stdlib.h>
14546 #ifdef HAVE_INTTYPES_H
14547 # include <inttypes.h>
14548 #endif
14549 #ifdef HAVE_STDINT_H
14550 # include <stdint.h>
14551 #endif
14552
14553 int
14554 main (void)
14555 {
14556 uint32_t i = 0;
14557 ;
14558 return 0;
14559 }
14560 _ACEOF
14561 if ac_fn_c_try_link "$LINENO"
14562 then :
14563 ac_have_mat_uint32_t=yes
14564 else $as_nop
14565 ac_have_mat_uint32_t=no
14566 fi
14567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14568 conftest$ac_exeext conftest.$ac_ext
14569
14570 if test "x$ac_have_mat_uint32_t" = "xyes"
14571 then
14572 ac_have_mat_uint32_t=yes
14573
14574 printf "%s\n" "#define HAVE_MAT_UINT32_T /**/" >>confdefs.h
14575
14576
14577 printf "%s\n" "#define _mat_uint32_t uint32_t" >>confdefs.h
14578
14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: uint32_t" >&5
14580 printf "%s\n" "uint32_t" >&6; }
14581 fi
14582 if test "x$ac_have_mat_uint32_t" != "xyes"
14583 then
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14586
14587 #include <stdlib.h>
14588 #ifdef HAVE_INTTYPES_H
14589 # include <inttypes.h>
14590 #endif
14591 #ifdef HAVE_STDINT_H
14592 # include <stdint.h>
14593 #endif
14594 #include <limits.h>
14595 #if CHAR_BIT != 32
14596 #matio sizeof(signed char) not 32 bits
14597 #endif
14598
14599 int
14600 main (void)
14601 {
14602 unsigned char i = 0;
14603 ;
14604 return 0;
14605 }
14606 _ACEOF
14607 if ac_fn_c_try_link "$LINENO"
14608 then :
14609 ac_have_mat_uint32_t=yes
14610 else $as_nop
14611 ac_have_mat_uint32_t=no
14612 fi
14613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14614 conftest$ac_exeext conftest.$ac_ext
14615
14616 if test "x$ac_have_mat_uint32_t" = "xyes"
14617 then
14618
14619 printf "%s\n" "#define HAVE_MAT_UINT32_T /**/" >>confdefs.h
14620
14621
14622 printf "%s\n" "#define _mat_uint32_t unsigned char" >>confdefs.h
14623
14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned char" >&5
14625 printf "%s\n" "unsigned char" >&6; }
14626 fi
14627 fi
14628 if test "x$ac_have_mat_uint32_t" != "xyes"
14629 then
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632
14633 #include <stdlib.h>
14634 #ifdef HAVE_INTTYPES_H
14635 # include <inttypes.h>
14636 #endif
14637 #ifdef HAVE_STDINT_H
14638 # include <stdint.h>
14639 #endif
14640 #include <limits.h>
14641 #if CHAR_BIT*SIZEOF_SHORT != 32
14642 #matio sizeof(short) not 32 bits
14643 #endif
14644
14645 int
14646 main (void)
14647 {
14648 unsigned short i = 0;
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_link "$LINENO"
14654 then :
14655 ac_have_mat_uint32_t=yes
14656 else $as_nop
14657 ac_have_mat_uint32_t=no
14658 fi
14659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14660 conftest$ac_exeext conftest.$ac_ext
14661
14662 if test "x$ac_have_mat_uint32_t" = "xyes"
14663 then
14664
14665 printf "%s\n" "#define HAVE_MAT_UINT32_T /**/" >>confdefs.h
14666
14667
14668 printf "%s\n" "#define _mat_uint32_t unsigned short" >>confdefs.h
14669
14670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned short" >&5
14671 printf "%s\n" "unsigned short" >&6; }
14672 fi
14673 fi
14674 if test "x$ac_have_mat_uint32_t" != "xyes"
14675 then
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14678
14679 #include <stdlib.h>
14680 #ifdef HAVE_INTTYPES_H
14681 # include <inttypes.h>
14682 #endif
14683 #ifdef HAVE_STDINT_H
14684 # include <stdint.h>
14685 #endif
14686 #include <limits.h>
14687 #if CHAR_BIT*SIZEOF_INT != 32
14688 #matio sizeof(int) not 32 bits
14689 #endif
14690
14691 int
14692 main (void)
14693 {
14694 unsigned int i = 0;
14695 ;
14696 return 0;
14697 }
14698 _ACEOF
14699 if ac_fn_c_try_link "$LINENO"
14700 then :
14701 ac_have_mat_uint32_t=yes
14702 else $as_nop
14703 ac_have_mat_uint32_t=no
14704 fi
14705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14706 conftest$ac_exeext conftest.$ac_ext
14707
14708 if test "x$ac_have_mat_uint32_t" = "xyes"
14709 then
14710
14711 printf "%s\n" "#define HAVE_MAT_UINT32_T /**/" >>confdefs.h
14712
14713
14714 printf "%s\n" "#define _mat_uint32_t unsigned int" >>confdefs.h
14715
14716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned int" >&5
14717 printf "%s\n" "unsigned int" >&6; }
14718 fi
14719 fi
14720 if test "x$ac_have_mat_uint32_t" != "xyes"
14721 then
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h. */
14724
14725 #include <stdlib.h>
14726 #ifdef HAVE_INTTYPES_H
14727 # include <inttypes.h>
14728 #endif
14729 #ifdef HAVE_STDINT_H
14730 # include <stdint.h>
14731 #endif
14732 #include <limits.h>
14733 #if CHAR_BIT*SIZEOF_LONG != 32
14734 #matio sizeof(long) not 32 bits
14735 #endif
14736
14737 int
14738 main (void)
14739 {
14740 unsigned long i = 0;
14741 ;
14742 return 0;
14743 }
14744 _ACEOF
14745 if ac_fn_c_try_link "$LINENO"
14746 then :
14747 ac_have_mat_uint32_t=yes
14748 else $as_nop
14749 ac_have_mat_uint32_t=no
14750 fi
14751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14752 conftest$ac_exeext conftest.$ac_ext
14753
14754 if test "x$ac_have_mat_uint32_t" = "xyes"
14755 then
14756
14757 printf "%s\n" "#define HAVE_MAT_UINT32_T /**/" >>confdefs.h
14758
14759
14760 printf "%s\n" "#define _mat_uint32_t unsigned long" >>confdefs.h
14761
14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned long" >&5
14763 printf "%s\n" "unsigned long" >&6; }
14764 fi
14765 fi
14766 if test "x$ac_have_mat_uint32_t" != "xyes"
14767 then
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770
14771 #include <stdlib.h>
14772 #ifdef HAVE_INTTYPES_H
14773 # include <inttypes.h>
14774 #endif
14775 #ifdef HAVE_STDINT_H
14776 # include <stdint.h>
14777 #endif
14778 #include <limits.h>
14779 #if CHAR_BIT*SIZEOF_LONG_LONG != 32
14780 #matio sizeof(long long) not 32 bits
14781 #endif
14782
14783 int
14784 main (void)
14785 {
14786 unsigned long long i = 0;
14787 ;
14788 return 0;
14789 }
14790 _ACEOF
14791 if ac_fn_c_try_link "$LINENO"
14792 then :
14793 ac_have_mat_uint32_t=yes
14794 else $as_nop
14795 ac_have_mat_uint32_t=no
14796 fi
14797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14798 conftest$ac_exeext conftest.$ac_ext
14799
14800 if test "x$ac_have_mat_uint32_t" = "xyes"
14801 then
14802
14803 printf "%s\n" "#define HAVE_MAT_UINT32_T /**/" >>confdefs.h
14804
14805
14806 printf "%s\n" "#define _mat_uint32_t unsigned long long" >>confdefs.h
14807
14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned long long" >&5
14809 printf "%s\n" "unsigned long long" >&6; }
14810 fi
14811 fi
14812 if test "x$ac_have_mat_uint32_t" != "xyes"
14813 then
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
14815 printf "%s\n" "" >&6; }
14816 fi
14817
14818
14819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mat_int16_t" >&5
14820 printf %s "checking for mat_int16_t... " >&6; }
14821
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824
14825 #include <stdlib.h>
14826 #ifdef HAVE_INTTYPES_H
14827 # include <inttypes.h>
14828 #endif
14829 #ifdef HAVE_STDINT_H
14830 # include <stdint.h>
14831 #endif
14832
14833 int
14834 main (void)
14835 {
14836 int16_t i = 0;
14837 ;
14838 return 0;
14839 }
14840 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"
14842 then :
14843 ac_have_mat_int16_t=yes
14844 else $as_nop
14845 ac_have_mat_int16_t=no
14846 fi
14847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14848 conftest$ac_exeext conftest.$ac_ext
14849
14850 if test "x$ac_have_mat_int16_t" = "xyes"
14851 then
14852 ac_have_mat_int16_t=yes
14853
14854 printf "%s\n" "#define HAVE_MAT_INT16_T /**/" >>confdefs.h
14855
14856
14857 printf "%s\n" "#define _mat_int16_t int16_t" >>confdefs.h
14858
14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int16_t" >&5
14860 printf "%s\n" "int16_t" >&6; }
14861 fi
14862 if test "x$ac_have_mat_int16_t" != "xyes"
14863 then
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866
14867 #include <stdlib.h>
14868 #ifdef HAVE_INTTYPES_H
14869 # include <inttypes.h>
14870 #endif
14871 #ifdef HAVE_STDINT_H
14872 # include <stdint.h>
14873 #endif
14874 #include <limits.h>
14875 #if CHAR_BIT != 16
14876 #matio sizeof(signed char) not 16 bits
14877 #endif
14878
14879 int
14880 main (void)
14881 {
14882 signed char i = 0;
14883 ;
14884 return 0;
14885 }
14886 _ACEOF
14887 if ac_fn_c_try_link "$LINENO"
14888 then :
14889 ac_have_mat_int16_t=yes
14890 else $as_nop
14891 ac_have_mat_int16_t=no
14892 fi
14893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14894 conftest$ac_exeext conftest.$ac_ext
14895
14896 if test "x$ac_have_mat_int16_t" = "xyes"
14897 then
14898
14899 printf "%s\n" "#define HAVE_MAT_INT16_T /**/" >>confdefs.h
14900
14901
14902 printf "%s\n" "#define _mat_int16_t signed char" >>confdefs.h
14903
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: signed char" >&5
14905 printf "%s\n" "signed char" >&6; }
14906 fi
14907 fi
14908 if test "x$ac_have_mat_int16_t" != "xyes"
14909 then
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912
14913 #include <stdlib.h>
14914 #ifdef HAVE_INTTYPES_H
14915 # include <inttypes.h>
14916 #endif
14917 #ifdef HAVE_STDINT_H
14918 # include <stdint.h>
14919 #endif
14920 #include <limits.h>
14921 #if CHAR_BIT*SIZEOF_SHORT != 16
14922 #matio sizeof(short) not 16 bits
14923 #endif
14924
14925 int
14926 main (void)
14927 {
14928 short i = 0;
14929 ;
14930 return 0;
14931 }
14932 _ACEOF
14933 if ac_fn_c_try_link "$LINENO"
14934 then :
14935 ac_have_mat_int16_t=yes
14936 else $as_nop
14937 ac_have_mat_int16_t=no
14938 fi
14939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14940 conftest$ac_exeext conftest.$ac_ext
14941
14942 if test "x$ac_have_mat_int16_t" = "xyes"
14943 then
14944
14945 printf "%s\n" "#define HAVE_MAT_INT16_T /**/" >>confdefs.h
14946
14947
14948 printf "%s\n" "#define _mat_int16_t short" >>confdefs.h
14949
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: short" >&5
14951 printf "%s\n" "short" >&6; }
14952 fi
14953 fi
14954 if test "x$ac_have_mat_int16_t" != "xyes"
14955 then
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958
14959 #include <stdlib.h>
14960 #ifdef HAVE_INTTYPES_H
14961 # include <inttypes.h>
14962 #endif
14963 #ifdef HAVE_STDINT_H
14964 # include <stdint.h>
14965 #endif
14966 #include <limits.h>
14967 #if CHAR_BIT*SIZEOF_INT != 16
14968 #matio sizeof(int) not 16 bits
14969 #endif
14970
14971 int
14972 main (void)
14973 {
14974 int i = 0;
14975 ;
14976 return 0;
14977 }
14978 _ACEOF
14979 if ac_fn_c_try_link "$LINENO"
14980 then :
14981 ac_have_mat_int16_t=yes
14982 else $as_nop
14983 ac_have_mat_int16_t=no
14984 fi
14985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14986 conftest$ac_exeext conftest.$ac_ext
14987
14988 if test "x$ac_have_mat_int16_t" = "xyes"
14989 then
14990
14991 printf "%s\n" "#define HAVE_MAT_INT16_T /**/" >>confdefs.h
14992
14993
14994 printf "%s\n" "#define _mat_int16_t int" >>confdefs.h
14995
14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
14997 printf "%s\n" "int" >&6; }
14998 fi
14999 fi
15000 if test "x$ac_have_mat_int16_t" != "xyes"
15001 then
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004
15005 #include <stdlib.h>
15006 #ifdef HAVE_INTTYPES_H
15007 # include <inttypes.h>
15008 #endif
15009 #ifdef HAVE_STDINT_H
15010 # include <stdint.h>
15011 #endif
15012 #include <limits.h>
15013 #if CHAR_BIT*SIZEOF_LONG != 16
15014 #matio sizeof(long) not 16 bits
15015 #endif
15016
15017 int
15018 main (void)
15019 {
15020 long i = 0;
15021 ;
15022 return 0;
15023 }
15024 _ACEOF
15025 if ac_fn_c_try_link "$LINENO"
15026 then :
15027 ac_have_mat_int16_t=yes
15028 else $as_nop
15029 ac_have_mat_int16_t=no
15030 fi
15031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15032 conftest$ac_exeext conftest.$ac_ext
15033
15034 if test "x$ac_have_mat_int16_t" = "xyes"
15035 then
15036
15037 printf "%s\n" "#define HAVE_MAT_INT16_T /**/" >>confdefs.h
15038
15039
15040 printf "%s\n" "#define _mat_int16_t long" >>confdefs.h
15041
15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long" >&5
15043 printf "%s\n" "long" >&6; }
15044 fi
15045 fi
15046 if test "x$ac_have_mat_int16_t" != "xyes"
15047 then
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15050
15051 #include <stdlib.h>
15052 #ifdef HAVE_INTTYPES_H
15053 # include <inttypes.h>
15054 #endif
15055 #ifdef HAVE_STDINT_H
15056 # include <stdint.h>
15057 #endif
15058 #include <limits.h>
15059 #if CHAR_BIT*SIZEOF_LONG_LONG != 16
15060 #matio sizeof(long long) not 16 bits
15061 #endif
15062
15063 int
15064 main (void)
15065 {
15066 long long i = 0;
15067 ;
15068 return 0;
15069 }
15070 _ACEOF
15071 if ac_fn_c_try_link "$LINENO"
15072 then :
15073 ac_have_mat_int16_t=yes
15074 else $as_nop
15075 ac_have_mat_int16_t=no
15076 fi
15077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15078 conftest$ac_exeext conftest.$ac_ext
15079
15080 if test "x$ac_have_mat_int16_t" = "xyes"
15081 then
15082
15083 printf "%s\n" "#define HAVE_MAT_INT16_T /**/" >>confdefs.h
15084
15085
15086 printf "%s\n" "#define _mat_int16_t long long" >>confdefs.h
15087
15088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long long" >&5
15089 printf "%s\n" "long long" >&6; }
15090 fi
15091 fi
15092 if test "x$ac_have_mat_int16_t" != "xyes"
15093 then
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
15095 printf "%s\n" "" >&6; }
15096 fi
15097
15098
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mat_uint16_t" >&5
15100 printf %s "checking for mat_uint16_t... " >&6; }
15101
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104
15105 #include <stdlib.h>
15106 #ifdef HAVE_INTTYPES_H
15107 # include <inttypes.h>
15108 #endif
15109 #ifdef HAVE_STDINT_H
15110 # include <stdint.h>
15111 #endif
15112
15113 int
15114 main (void)
15115 {
15116 uint16_t i = 0;
15117 ;
15118 return 0;
15119 }
15120 _ACEOF
15121 if ac_fn_c_try_link "$LINENO"
15122 then :
15123 ac_have_mat_uint16_t=yes
15124 else $as_nop
15125 ac_have_mat_uint16_t=no
15126 fi
15127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15128 conftest$ac_exeext conftest.$ac_ext
15129
15130 if test "x$ac_have_mat_uint16_t" = "xyes"
15131 then
15132 ac_have_mat_uint16_t=yes
15133
15134 printf "%s\n" "#define HAVE_MAT_UINT16_T /**/" >>confdefs.h
15135
15136
15137 printf "%s\n" "#define _mat_uint16_t uint16_t" >>confdefs.h
15138
15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: uint16_t" >&5
15140 printf "%s\n" "uint16_t" >&6; }
15141 fi
15142 if test "x$ac_have_mat_uint16_t" != "xyes"
15143 then
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15146
15147 #include <stdlib.h>
15148 #ifdef HAVE_INTTYPES_H
15149 # include <inttypes.h>
15150 #endif
15151 #ifdef HAVE_STDINT_H
15152 # include <stdint.h>
15153 #endif
15154 #include <limits.h>
15155 #if CHAR_BIT != 16
15156 #matio sizeof(signed char) not 16 bits
15157 #endif
15158
15159 int
15160 main (void)
15161 {
15162 unsigned char i = 0;
15163 ;
15164 return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_c_try_link "$LINENO"
15168 then :
15169 ac_have_mat_uint16_t=yes
15170 else $as_nop
15171 ac_have_mat_uint16_t=no
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15174 conftest$ac_exeext conftest.$ac_ext
15175
15176 if test "x$ac_have_mat_uint16_t" = "xyes"
15177 then
15178
15179 printf "%s\n" "#define HAVE_MAT_UINT16_T /**/" >>confdefs.h
15180
15181
15182 printf "%s\n" "#define _mat_uint16_t unsigned char" >>confdefs.h
15183
15184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned char" >&5
15185 printf "%s\n" "unsigned char" >&6; }
15186 fi
15187 fi
15188 if test "x$ac_have_mat_uint16_t" != "xyes"
15189 then
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15192
15193 #include <stdlib.h>
15194 #ifdef HAVE_INTTYPES_H
15195 # include <inttypes.h>
15196 #endif
15197 #ifdef HAVE_STDINT_H
15198 # include <stdint.h>
15199 #endif
15200 #include <limits.h>
15201 #if CHAR_BIT*SIZEOF_SHORT != 16
15202 #matio sizeof(short) not 16 bits
15203 #endif
15204
15205 int
15206 main (void)
15207 {
15208 unsigned short i = 0;
15209 ;
15210 return 0;
15211 }
15212 _ACEOF
15213 if ac_fn_c_try_link "$LINENO"
15214 then :
15215 ac_have_mat_uint16_t=yes
15216 else $as_nop
15217 ac_have_mat_uint16_t=no
15218 fi
15219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15220 conftest$ac_exeext conftest.$ac_ext
15221
15222 if test "x$ac_have_mat_uint16_t" = "xyes"
15223 then
15224
15225 printf "%s\n" "#define HAVE_MAT_UINT16_T /**/" >>confdefs.h
15226
15227
15228 printf "%s\n" "#define _mat_uint16_t unsigned short" >>confdefs.h
15229
15230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned short" >&5
15231 printf "%s\n" "unsigned short" >&6; }
15232 fi
15233 fi
15234 if test "x$ac_have_mat_uint16_t" != "xyes"
15235 then
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238
15239 #include <stdlib.h>
15240 #ifdef HAVE_INTTYPES_H
15241 # include <inttypes.h>
15242 #endif
15243 #ifdef HAVE_STDINT_H
15244 # include <stdint.h>
15245 #endif
15246 #include <limits.h>
15247 #if CHAR_BIT*SIZEOF_INT != 16
15248 #matio sizeof(int) not 16 bits
15249 #endif
15250
15251 int
15252 main (void)
15253 {
15254 unsigned int i = 0;
15255 ;
15256 return 0;
15257 }
15258 _ACEOF
15259 if ac_fn_c_try_link "$LINENO"
15260 then :
15261 ac_have_mat_uint16_t=yes
15262 else $as_nop
15263 ac_have_mat_uint16_t=no
15264 fi
15265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15266 conftest$ac_exeext conftest.$ac_ext
15267
15268 if test "x$ac_have_mat_uint16_t" = "xyes"
15269 then
15270
15271 printf "%s\n" "#define HAVE_MAT_UINT16_T /**/" >>confdefs.h
15272
15273
15274 printf "%s\n" "#define _mat_uint16_t unsigned int" >>confdefs.h
15275
15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned int" >&5
15277 printf "%s\n" "unsigned int" >&6; }
15278 fi
15279 fi
15280 if test "x$ac_have_mat_uint16_t" != "xyes"
15281 then
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284
15285 #include <stdlib.h>
15286 #ifdef HAVE_INTTYPES_H
15287 # include <inttypes.h>
15288 #endif
15289 #ifdef HAVE_STDINT_H
15290 # include <stdint.h>
15291 #endif
15292 #include <limits.h>
15293 #if CHAR_BIT*SIZEOF_LONG != 16
15294 #matio sizeof(long) not 16 bits
15295 #endif
15296
15297 int
15298 main (void)
15299 {
15300 unsigned long i = 0;
15301 ;
15302 return 0;
15303 }
15304 _ACEOF
15305 if ac_fn_c_try_link "$LINENO"
15306 then :
15307 ac_have_mat_uint16_t=yes
15308 else $as_nop
15309 ac_have_mat_uint16_t=no
15310 fi
15311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15312 conftest$ac_exeext conftest.$ac_ext
15313
15314 if test "x$ac_have_mat_uint16_t" = "xyes"
15315 then
15316
15317 printf "%s\n" "#define HAVE_MAT_UINT16_T /**/" >>confdefs.h
15318
15319
15320 printf "%s\n" "#define _mat_uint16_t unsigned long" >>confdefs.h
15321
15322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned long" >&5
15323 printf "%s\n" "unsigned long" >&6; }
15324 fi
15325 fi
15326 if test "x$ac_have_mat_uint16_t" != "xyes"
15327 then
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330
15331 #include <stdlib.h>
15332 #ifdef HAVE_INTTYPES_H
15333 # include <inttypes.h>
15334 #endif
15335 #ifdef HAVE_STDINT_H
15336 # include <stdint.h>
15337 #endif
15338 #include <limits.h>
15339 #if CHAR_BIT*SIZEOF_LONG_LONG != 16
15340 #matio sizeof(long long) not 16 bits
15341 #endif
15342
15343 int
15344 main (void)
15345 {
15346 unsigned long long i = 0;
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 if ac_fn_c_try_link "$LINENO"
15352 then :
15353 ac_have_mat_uint16_t=yes
15354 else $as_nop
15355 ac_have_mat_uint16_t=no
15356 fi
15357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15358 conftest$ac_exeext conftest.$ac_ext
15359
15360 if test "x$ac_have_mat_uint16_t" = "xyes"
15361 then
15362
15363 printf "%s\n" "#define HAVE_MAT_UINT16_T /**/" >>confdefs.h
15364
15365
15366 printf "%s\n" "#define _mat_uint16_t unsigned long long" >>confdefs.h
15367
15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned long long" >&5
15369 printf "%s\n" "unsigned long long" >&6; }
15370 fi
15371 fi
15372 if test "x$ac_have_mat_uint16_t" != "xyes"
15373 then
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
15375 printf "%s\n" "" >&6; }
15376 fi
15377
15378
15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mat_int8_t" >&5
15380 printf %s "checking for mat_int8_t... " >&6; }
15381
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384
15385 #include <stdlib.h>
15386 #ifdef HAVE_INTTYPES_H
15387 # include <inttypes.h>
15388 #endif
15389 #ifdef HAVE_STDINT_H
15390 # include <stdint.h>
15391 #endif
15392
15393 int
15394 main (void)
15395 {
15396 int8_t i = 0;
15397 ;
15398 return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"
15402 then :
15403 ac_have_mat_int8_t=yes
15404 else $as_nop
15405 ac_have_mat_int8_t=no
15406 fi
15407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15408 conftest$ac_exeext conftest.$ac_ext
15409
15410 if test "x$ac_have_mat_int8_t" = "xyes"
15411 then
15412 ac_have_mat_int8_t=yes
15413
15414 printf "%s\n" "#define HAVE_MAT_INT8_T /**/" >>confdefs.h
15415
15416
15417 printf "%s\n" "#define _mat_int8_t int8_t" >>confdefs.h
15418
15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int8_t" >&5
15420 printf "%s\n" "int8_t" >&6; }
15421 fi
15422 if test "x$ac_have_mat_int8_t" != "xyes"
15423 then
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426
15427 #include <stdlib.h>
15428 #ifdef HAVE_INTTYPES_H
15429 # include <inttypes.h>
15430 #endif
15431 #ifdef HAVE_STDINT_H
15432 # include <stdint.h>
15433 #endif
15434 #include <limits.h>
15435 #if CHAR_BIT != 8
15436 #matio sizeof(signed char) not 8 bits
15437 #endif
15438
15439 int
15440 main (void)
15441 {
15442 signed char i = 0;
15443 ;
15444 return 0;
15445 }
15446 _ACEOF
15447 if ac_fn_c_try_link "$LINENO"
15448 then :
15449 ac_have_mat_int8_t=yes
15450 else $as_nop
15451 ac_have_mat_int8_t=no
15452 fi
15453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15454 conftest$ac_exeext conftest.$ac_ext
15455
15456 if test "x$ac_have_mat_int8_t" = "xyes"
15457 then
15458
15459 printf "%s\n" "#define HAVE_MAT_INT8_T /**/" >>confdefs.h
15460
15461
15462 printf "%s\n" "#define _mat_int8_t signed char" >>confdefs.h
15463
15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: signed char" >&5
15465 printf "%s\n" "signed char" >&6; }
15466 fi
15467 fi
15468 if test "x$ac_have_mat_int8_t" != "xyes"
15469 then
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15472
15473 #include <stdlib.h>
15474 #ifdef HAVE_INTTYPES_H
15475 # include <inttypes.h>
15476 #endif
15477 #ifdef HAVE_STDINT_H
15478 # include <stdint.h>
15479 #endif
15480 #include <limits.h>
15481 #if CHAR_BIT*SIZEOF_SHORT != 8
15482 #matio sizeof(short) not 8 bits
15483 #endif
15484
15485 int
15486 main (void)
15487 {
15488 short i = 0;
15489 ;
15490 return 0;
15491 }
15492 _ACEOF
15493 if ac_fn_c_try_link "$LINENO"
15494 then :
15495 ac_have_mat_int8_t=yes
15496 else $as_nop
15497 ac_have_mat_int8_t=no
15498 fi
15499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15500 conftest$ac_exeext conftest.$ac_ext
15501
15502 if test "x$ac_have_mat_int8_t" = "xyes"
15503 then
15504
15505 printf "%s\n" "#define HAVE_MAT_INT8_T /**/" >>confdefs.h
15506
15507
15508 printf "%s\n" "#define _mat_int8_t short" >>confdefs.h
15509
15510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: short" >&5
15511 printf "%s\n" "short" >&6; }
15512 fi
15513 fi
15514 if test "x$ac_have_mat_int8_t" != "xyes"
15515 then
15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15518
15519 #include <stdlib.h>
15520 #ifdef HAVE_INTTYPES_H
15521 # include <inttypes.h>
15522 #endif
15523 #ifdef HAVE_STDINT_H
15524 # include <stdint.h>
15525 #endif
15526 #include <limits.h>
15527 #if CHAR_BIT*SIZEOF_INT != 8
15528 #matio sizeof(int) not 8 bits
15529 #endif
15530
15531 int
15532 main (void)
15533 {
15534 int i = 0;
15535 ;
15536 return 0;
15537 }
15538 _ACEOF
15539 if ac_fn_c_try_link "$LINENO"
15540 then :
15541 ac_have_mat_int8_t=yes
15542 else $as_nop
15543 ac_have_mat_int8_t=no
15544 fi
15545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15546 conftest$ac_exeext conftest.$ac_ext
15547
15548 if test "x$ac_have_mat_int8_t" = "xyes"
15549 then
15550
15551 printf "%s\n" "#define HAVE_MAT_INT8_T /**/" >>confdefs.h
15552
15553
15554 printf "%s\n" "#define _mat_int8_t int" >>confdefs.h
15555
15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
15557 printf "%s\n" "int" >&6; }
15558 fi
15559 fi
15560 if test "x$ac_have_mat_int8_t" != "xyes"
15561 then
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564
15565 #include <stdlib.h>
15566 #ifdef HAVE_INTTYPES_H
15567 # include <inttypes.h>
15568 #endif
15569 #ifdef HAVE_STDINT_H
15570 # include <stdint.h>
15571 #endif
15572 #include <limits.h>
15573 #if CHAR_BIT*SIZEOF_LONG != 8
15574 #matio sizeof(long) not 8 bits
15575 #endif
15576
15577 int
15578 main (void)
15579 {
15580 long i = 0;
15581 ;
15582 return 0;
15583 }
15584 _ACEOF
15585 if ac_fn_c_try_link "$LINENO"
15586 then :
15587 ac_have_mat_int8_t=yes
15588 else $as_nop
15589 ac_have_mat_int8_t=no
15590 fi
15591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15592 conftest$ac_exeext conftest.$ac_ext
15593
15594 if test "x$ac_have_mat_int8_t" = "xyes"
15595 then
15596
15597 printf "%s\n" "#define HAVE_MAT_INT8_T /**/" >>confdefs.h
15598
15599
15600 printf "%s\n" "#define _mat_int8_t long" >>confdefs.h
15601
15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long" >&5
15603 printf "%s\n" "long" >&6; }
15604 fi
15605 fi
15606 if test "x$ac_have_mat_int8_t" != "xyes"
15607 then
15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15610
15611 #include <stdlib.h>
15612 #ifdef HAVE_INTTYPES_H
15613 # include <inttypes.h>
15614 #endif
15615 #ifdef HAVE_STDINT_H
15616 # include <stdint.h>
15617 #endif
15618 #include <limits.h>
15619 #if CHAR_BIT*SIZEOF_LONG_LONG != 8
15620 #matio sizeof(long long) not 8 bits
15621 #endif
15622
15623 int
15624 main (void)
15625 {
15626 long long i = 0;
15627 ;
15628 return 0;
15629 }
15630 _ACEOF
15631 if ac_fn_c_try_link "$LINENO"
15632 then :
15633 ac_have_mat_int8_t=yes
15634 else $as_nop
15635 ac_have_mat_int8_t=no
15636 fi
15637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15638 conftest$ac_exeext conftest.$ac_ext
15639
15640 if test "x$ac_have_mat_int8_t" = "xyes"
15641 then
15642
15643 printf "%s\n" "#define HAVE_MAT_INT8_T /**/" >>confdefs.h
15644
15645
15646 printf "%s\n" "#define _mat_int8_t long long" >>confdefs.h
15647
15648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: long long" >&5
15649 printf "%s\n" "long long" >&6; }
15650 fi
15651 fi
15652 if test "x$ac_have_mat_int8_t" != "xyes"
15653 then
15654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
15655 printf "%s\n" "" >&6; }
15656 fi
15657
15658
15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mat_uint8_t" >&5
15660 printf %s "checking for mat_uint8_t... " >&6; }
15661
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664
15665 #include <stdlib.h>
15666 #ifdef HAVE_INTTYPES_H
15667 # include <inttypes.h>
15668 #endif
15669 #ifdef HAVE_STDINT_H
15670 # include <stdint.h>
15671 #endif
15672
15673 int
15674 main (void)
15675 {
15676 uint8_t i = 0;
15677 ;
15678 return 0;
15679 }
15680 _ACEOF
15681 if ac_fn_c_try_link "$LINENO"
15682 then :
15683 ac_have_mat_uint8_t=yes
15684 else $as_nop
15685 ac_have_mat_uint8_t=no
15686 fi
15687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15688 conftest$ac_exeext conftest.$ac_ext
15689
15690 if test "x$ac_have_mat_uint8_t" = "xyes"
15691 then
15692 ac_have_mat_uint8_t=yes
15693
15694 printf "%s\n" "#define HAVE_MAT_UINT8_T /**/" >>confdefs.h
15695
15696
15697 printf "%s\n" "#define _mat_uint8_t uint8_t" >>confdefs.h
15698
15699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: uint8_t" >&5
15700 printf "%s\n" "uint8_t" >&6; }
15701 fi
15702 if test "x$ac_have_mat_uint8_t" != "xyes"
15703 then
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706
15707 #include <stdlib.h>
15708 #ifdef HAVE_INTTYPES_H
15709 # include <inttypes.h>
15710 #endif
15711 #ifdef HAVE_STDINT_H
15712 # include <stdint.h>
15713 #endif
15714 #include <limits.h>
15715 #if CHAR_BIT != 8
15716 #matio sizeof(signed char) not 8 bits
15717 #endif
15718
15719 int
15720 main (void)
15721 {
15722 unsigned char i = 0;
15723 ;
15724 return 0;
15725 }
15726 _ACEOF
15727 if ac_fn_c_try_link "$LINENO"
15728 then :
15729 ac_have_mat_uint8_t=yes
15730 else $as_nop
15731 ac_have_mat_uint8_t=no
15732 fi
15733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15734 conftest$ac_exeext conftest.$ac_ext
15735
15736 if test "x$ac_have_mat_uint8_t" = "xyes"
15737 then
15738
15739 printf "%s\n" "#define HAVE_MAT_UINT8_T /**/" >>confdefs.h
15740
15741
15742 printf "%s\n" "#define _mat_uint8_t unsigned char" >>confdefs.h
15743
15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned char" >&5
15745 printf "%s\n" "unsigned char" >&6; }
15746 fi
15747 fi
15748 if test "x$ac_have_mat_uint8_t" != "xyes"
15749 then
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752
15753 #include <stdlib.h>
15754 #ifdef HAVE_INTTYPES_H
15755 # include <inttypes.h>
15756 #endif
15757 #ifdef HAVE_STDINT_H
15758 # include <stdint.h>
15759 #endif
15760 #include <limits.h>
15761 #if CHAR_BIT*SIZEOF_SHORT != 8
15762 #matio sizeof(short) not 8 bits
15763 #endif
15764
15765 int
15766 main (void)
15767 {
15768 unsigned short i = 0;
15769 ;
15770 return 0;
15771 }
15772 _ACEOF
15773 if ac_fn_c_try_link "$LINENO"
15774 then :
15775 ac_have_mat_uint8_t=yes
15776 else $as_nop
15777 ac_have_mat_uint8_t=no
15778 fi
15779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15780 conftest$ac_exeext conftest.$ac_ext
15781
15782 if test "x$ac_have_mat_uint8_t" = "xyes"
15783 then
15784
15785 printf "%s\n" "#define HAVE_MAT_UINT8_T /**/" >>confdefs.h
15786
15787
15788 printf "%s\n" "#define _mat_uint8_t unsigned short" >>confdefs.h
15789
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned short" >&5
15791 printf "%s\n" "unsigned short" >&6; }
15792 fi
15793 fi
15794 if test "x$ac_have_mat_uint8_t" != "xyes"
15795 then
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798
15799 #include <stdlib.h>
15800 #ifdef HAVE_INTTYPES_H
15801 # include <inttypes.h>
15802 #endif
15803 #ifdef HAVE_STDINT_H
15804 # include <stdint.h>
15805 #endif
15806 #include <limits.h>
15807 #if CHAR_BIT*SIZEOF_INT != 8
15808 #matio sizeof(int) not 8 bits
15809 #endif
15810
15811 int
15812 main (void)
15813 {
15814 unsigned int i = 0;
15815 ;
15816 return 0;
15817 }
15818 _ACEOF
15819 if ac_fn_c_try_link "$LINENO"
15820 then :
15821 ac_have_mat_uint8_t=yes
15822 else $as_nop
15823 ac_have_mat_uint8_t=no
15824 fi
15825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15826 conftest$ac_exeext conftest.$ac_ext
15827
15828 if test "x$ac_have_mat_uint8_t" = "xyes"
15829 then
15830
15831 printf "%s\n" "#define HAVE_MAT_UINT8_T /**/" >>confdefs.h
15832
15833
15834 printf "%s\n" "#define _mat_uint8_t unsigned int" >>confdefs.h
15835
15836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned int" >&5
15837 printf "%s\n" "unsigned int" >&6; }
15838 fi
15839 fi
15840 if test "x$ac_have_mat_uint8_t" != "xyes"
15841 then
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15844
15845 #include <stdlib.h>
15846 #ifdef HAVE_INTTYPES_H
15847 # include <inttypes.h>
15848 #endif
15849 #ifdef HAVE_STDINT_H
15850 # include <stdint.h>
15851 #endif
15852 #include <limits.h>
15853 #if CHAR_BIT*SIZEOF_LONG != 8
15854 #matio sizeof(long) not 8 bits
15855 #endif
15856
15857 int
15858 main (void)
15859 {
15860 unsigned long i = 0;
15861 ;
15862 return 0;
15863 }
15864 _ACEOF
15865 if ac_fn_c_try_link "$LINENO"
15866 then :
15867 ac_have_mat_uint8_t=yes
15868 else $as_nop
15869 ac_have_mat_uint8_t=no
15870 fi
15871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15872 conftest$ac_exeext conftest.$ac_ext
15873
15874 if test "x$ac_have_mat_uint8_t" = "xyes"
15875 then
15876
15877 printf "%s\n" "#define HAVE_MAT_UINT8_T /**/" >>confdefs.h
15878
15879
15880 printf "%s\n" "#define _mat_uint8_t unsigned long" >>confdefs.h
15881
15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned long" >&5
15883 printf "%s\n" "unsigned long" >&6; }
15884 fi
15885 fi
15886 if test "x$ac_have_mat_uint8_t" != "xyes"
15887 then
15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890
15891 #include <stdlib.h>
15892 #ifdef HAVE_INTTYPES_H
15893 # include <inttypes.h>
15894 #endif
15895 #ifdef HAVE_STDINT_H
15896 # include <stdint.h>
15897 #endif
15898 #include <limits.h>
15899 #if CHAR_BIT*SIZEOF_LONG_LONG != 8
15900 #matio sizeof(long long) not 8 bits
15901 #endif
15902
15903 int
15904 main (void)
15905 {
15906 unsigned long long i = 0;
15907 ;
15908 return 0;
15909 }
15910 _ACEOF
15911 if ac_fn_c_try_link "$LINENO"
15912 then :
15913 ac_have_mat_uint8_t=yes
15914 else $as_nop
15915 ac_have_mat_uint8_t=no
15916 fi
15917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15918 conftest$ac_exeext conftest.$ac_ext
15919
15920 if test "x$ac_have_mat_uint8_t" = "xyes"
15921 then
15922
15923 printf "%s\n" "#define HAVE_MAT_UINT8_T /**/" >>confdefs.h
15924
15925 printf "%s\n" "#define _mat_uint8_t unsigned long longint8 type" >>confdefs.h
15926
15927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsigned long long" >&5
15928 printf "%s\n" "unsigned long long" >&6; }
15929 fi
15930 fi
15931 if test "x$ac_have_mat_uint8_t" != "xyes"
15932 then
15933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
15934 printf "%s\n" "" >&6; }
15935 fi
15936
15937
15938 if test "x$ac_have_mat_uint64_t" = "xyes"; then
15939 HAVE_UINT64=1
15940 else
15941 HAVE_UINT64=0
15942 fi
15943 if test "x$ac_have_mat_int64_t" = "xyes"; then
15944 HAVE_INT64=1
15945 else
15946 HAVE_INT64=0
15947 fi
15948 HAVE_UINT64=$HAVE_UINT64
15949
15950 HAVE_INT64=$HAVE_INT64
15951
15952
15953 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15954 if test "x$ac_cv_type_off_t" = xyes
15955 then :
15956
15957 else $as_nop
15958
15959 printf "%s\n" "#define off_t long int" >>confdefs.h
15960
15961 fi
15962
15963
15964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
15965 printf %s "checking for off64_t... " >&6; }
15966
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969
15970 #define _FILE_OFFSET_BITS 64
15971 #include <sys/types.h>
15972
15973 int
15974 main (void)
15975 {
15976 off64_t off = 42;
15977 ;
15978 return 0;
15979 }
15980 _ACEOF
15981 if ac_fn_c_try_compile "$LINENO"
15982 then :
15983 ac_cv_type_off64_t=yes
15984 else $as_nop
15985 ac_cv_type_off64_t=no
15986 fi
15987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15988 if test $ac_cv_type_off64_t = yes;
15989 then
15990
15991 printf "%s\n" "#define HAVE_OFF64_T /**/" >>confdefs.h
15992
15993 fi
15994 if test "x$ac_cv_type_off64_t" != "xyes"
15995 then
15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15997 printf "%s\n" "yes" >&6; }
15998 else
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16000 printf "%s\n" "no" >&6; }
16001 fi
16002
16003
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
16005 printf %s "checking for long double... " >&6; }
16006 if test ${ac_cv_type_long_double+y}
16007 then :
16008 printf %s "(cached) " >&6
16009 else $as_nop
16010 if test "$GCC" = yes; then
16011 ac_cv_type_long_double=yes
16012 else
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 /* The Stardent Vistra knows sizeof (long double), but does
16016 not support it. */
16017 long double foo = 0.0L;
16018 int
16019 main (void)
16020 {
16021 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
16022 sizeof (double) <= sizeof (long double))];
16023 test_array [0] = 0;
16024 return test_array [0];
16025
16026 ;
16027 return 0;
16028 }
16029 _ACEOF
16030 if ac_fn_c_try_compile "$LINENO"
16031 then :
16032 ac_cv_type_long_double=yes
16033 else $as_nop
16034 ac_cv_type_long_double=no
16035 fi
16036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16037 fi
16038 fi
16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
16040 printf "%s\n" "$ac_cv_type_long_double" >&6; }
16041 if test $ac_cv_type_long_double = yes; then
16042
16043 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16044
16045 fi
16046
16047
16048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16049 printf %s "checking for unsigned long long int... " >&6; }
16050 if test ${ac_cv_type_unsigned_long_long_int+y}
16051 then :
16052 printf %s "(cached) " >&6
16053 else $as_nop
16054 ac_cv_type_unsigned_long_long_int=yes
16055 case $ac_prog_cc_stdc in
16056 no | c89) ;;
16057 *)
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060
16061 /* For now, do not test the preprocessor; as of 2007 there are too many
16062 implementations with broken preprocessors. Perhaps this can
16063 be revisited in 2012. In the meantime, code should not expect
16064 #if to work with literals wider than 32 bits. */
16065 /* Test literals. */
16066 long long int ll = 9223372036854775807ll;
16067 long long int nll = -9223372036854775807LL;
16068 unsigned long long int ull = 18446744073709551615ULL;
16069 /* Test constant expressions. */
16070 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16071 ? 1 : -1)];
16072 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16073 ? 1 : -1)];
16074 int i = 63;
16075 int
16076 main (void)
16077 {
16078 /* Test availability of runtime routines for shift and division. */
16079 long long int llmax = 9223372036854775807ll;
16080 unsigned long long int ullmax = 18446744073709551615ull;
16081 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16082 | (llmax / ll) | (llmax % ll)
16083 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16084 | (ullmax / ull) | (ullmax % ull));
16085 ;
16086 return 0;
16087 }
16088
16089 _ACEOF
16090 if ac_fn_c_try_link "$LINENO"
16091 then :
16092
16093 else $as_nop
16094 ac_cv_type_unsigned_long_long_int=no
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16097 conftest$ac_exeext conftest.$ac_ext;;
16098 esac
16099 fi
16100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16101 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
16102 if test $ac_cv_type_unsigned_long_long_int = yes; then
16103
16104 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16105
16106 fi
16107
16108
16109
16110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16111 printf %s "checking for long long int... " >&6; }
16112 if test ${ac_cv_type_long_long_int+y}
16113 then :
16114 printf %s "(cached) " >&6
16115 else $as_nop
16116 ac_cv_type_long_long_int=yes
16117 case $ac_prog_cc_stdc in
16118 no | c89) ;;
16119 *)
16120 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16121 if test $ac_cv_type_long_long_int = yes; then
16122 if test "$cross_compiling" = yes
16123 then :
16124 :
16125 else $as_nop
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16128 #include <limits.h>
16129 #ifndef LLONG_MAX
16130 # define HALF \
16131 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16132 # define LLONG_MAX (HALF - 1 + HALF)
16133 #endif
16134 int
16135 main (void)
16136 {
16137 long long int n = 1;
16138 int i;
16139 for (i = 0; ; i++)
16140 {
16141 long long int m = n << i;
16142 if (m >> i != n)
16143 return 1;
16144 if (LLONG_MAX / 2 < m)
16145 break;
16146 }
16147 return 0;
16148 ;
16149 return 0;
16150 }
16151 _ACEOF
16152 if ac_fn_c_try_run "$LINENO"
16153 then :
16154
16155 else $as_nop
16156 ac_cv_type_long_long_int=no
16157 fi
16158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16159 conftest.$ac_objext conftest.beam conftest.$ac_ext
16160 fi
16161
16162 fi;;
16163 esac
16164 fi
16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16166 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
16167 if test $ac_cv_type_long_long_int = yes; then
16168
16169 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16170
16171 fi
16172
16173
16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16175 printf %s "checking for unsigned long long int... " >&6; }
16176 if test ${ac_cv_type_unsigned_long_long_int+y}
16177 then :
16178 printf %s "(cached) " >&6
16179 else $as_nop
16180 ac_cv_type_unsigned_long_long_int=yes
16181 case $ac_prog_cc_stdc in
16182 no | c89) ;;
16183 *)
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186
16187 /* For now, do not test the preprocessor; as of 2007 there are too many
16188 implementations with broken preprocessors. Perhaps this can
16189 be revisited in 2012. In the meantime, code should not expect
16190 #if to work with literals wider than 32 bits. */
16191 /* Test literals. */
16192 long long int ll = 9223372036854775807ll;
16193 long long int nll = -9223372036854775807LL;
16194 unsigned long long int ull = 18446744073709551615ULL;
16195 /* Test constant expressions. */
16196 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16197 ? 1 : -1)];
16198 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16199 ? 1 : -1)];
16200 int i = 63;
16201 int
16202 main (void)
16203 {
16204 /* Test availability of runtime routines for shift and division. */
16205 long long int llmax = 9223372036854775807ll;
16206 unsigned long long int ullmax = 18446744073709551615ull;
16207 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16208 | (llmax / ll) | (llmax % ll)
16209 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16210 | (ullmax / ull) | (ullmax % ull));
16211 ;
16212 return 0;
16213 }
16214
16215 _ACEOF
16216 if ac_fn_c_try_link "$LINENO"
16217 then :
16218
16219 else $as_nop
16220 ac_cv_type_unsigned_long_long_int=no
16221 fi
16222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16223 conftest$ac_exeext conftest.$ac_ext;;
16224 esac
16225 fi
16226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16227 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
16228 if test $ac_cv_type_unsigned_long_long_int = yes; then
16229
16230 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16231
16232 fi
16233
16234 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16235 if test "x$ac_cv_type_size_t" = xyes
16236 then :
16237
16238 else $as_nop
16239
16240 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
16241
16242 fi
16243
16244
16245
16246 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16247 if test "x$ac_cv_type_intmax_t" = xyes
16248 then :
16249
16250 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
16251
16252 else $as_nop
16253 test $ac_cv_type_long_long_int = yes \
16254 && ac_type='long long int' \
16255 || ac_type='long int'
16256
16257 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
16258
16259 fi
16260
16261
16262
16263
16264 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16265 if test "x$ac_cv_type_uintmax_t" = xyes
16266 then :
16267
16268 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
16269
16270 else $as_nop
16271 test $ac_cv_type_unsigned_long_long_int = yes \
16272 && ac_type='unsigned long long int' \
16273 || ac_type='unsigned long int'
16274
16275 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
16276
16277 fi
16278
16279
16280
16281 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16282 if test "x$ac_cv_type_uintptr_t" = xyes
16283 then :
16284
16285 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
16286
16287 else $as_nop
16288 for ac_type in 'unsigned int' 'unsigned long int' \
16289 'unsigned long long int'; do
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 $ac_includes_default
16293 int
16294 main (void)
16295 {
16296 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16297 test_array [0] = 0;
16298 return test_array [0];
16299
16300 ;
16301 return 0;
16302 }
16303 _ACEOF
16304 if ac_fn_c_try_compile "$LINENO"
16305 then :
16306
16307 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
16308
16309 ac_type=
16310 fi
16311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16312 test -z "$ac_type" && break
16313 done
16314 fi
16315
16316
16317
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy() function" >&5
16319 printf %s "checking for va_copy() function... " >&6; }
16320 if test ${ac_cv_va_copy+y}
16321 then :
16322 printf %s "(cached) " >&6
16323 else $as_nop
16324
16325 ac_cv_va_copy=""
16326
16327
16328 if test ".$ac_cv_va_copy" = .; then
16329 if test "$cross_compiling" = yes
16330 then :
16331 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16332 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16333 as_fn_error $? "cannot run test program while cross compiling
16334 See \`config.log' for more details" "$LINENO" 5; }
16335 else $as_nop
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16338
16339 #include <stdlib.h>
16340 #include <stdarg.h>
16341 #include <string.h>
16342 #define DO_VA_COPY(d, s) va_copy((d), (s))
16343 void test(char *str, ...)
16344 {
16345 va_list ap, ap2;
16346 int i;
16347 va_start(ap, str);
16348 DO_VA_COPY(ap2, ap);
16349 for (i = 1; i <= 9; i++) {
16350 int k = (int)va_arg(ap, int);
16351 if (k != i)
16352 abort();
16353 }
16354 DO_VA_COPY(ap, ap2);
16355 for (i = 1; i <= 9; i++) {
16356 int k = (int)va_arg(ap, int);
16357 if (k != i)
16358 abort();
16359 }
16360 va_end(ap);
16361 }
16362 int main(int argc, char *argv[])
16363 {
16364 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
16365 exit(0);
16366 }
16367
16368 _ACEOF
16369 if ac_fn_c_try_run "$LINENO"
16370 then :
16371 ac_cv_va_copy="C99"
16372 fi
16373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16374 conftest.$ac_objext conftest.beam conftest.$ac_ext
16375 fi
16376
16377 fi
16378
16379
16380
16381 if test ".$ac_cv_va_copy" = .; then
16382 if test "$cross_compiling" = yes
16383 then :
16384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16385 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16386 as_fn_error $? "cannot run test program while cross compiling
16387 See \`config.log' for more details" "$LINENO" 5; }
16388 else $as_nop
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391
16392 #include <stdlib.h>
16393 #include <stdarg.h>
16394 #include <string.h>
16395 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
16396 void test(char *str, ...)
16397 {
16398 va_list ap, ap2;
16399 int i;
16400 va_start(ap, str);
16401 DO_VA_COPY(ap2, ap);
16402 for (i = 1; i <= 9; i++) {
16403 int k = (int)va_arg(ap, int);
16404 if (k != i)
16405 abort();
16406 }
16407 DO_VA_COPY(ap, ap2);
16408 for (i = 1; i <= 9; i++) {
16409 int k = (int)va_arg(ap, int);
16410 if (k != i)
16411 abort();
16412 }
16413 va_end(ap);
16414 }
16415 int main(int argc, char *argv[])
16416 {
16417 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
16418 exit(0);
16419 }
16420
16421 _ACEOF
16422 if ac_fn_c_try_run "$LINENO"
16423 then :
16424 ac_cv_va_copy="GCM"
16425 fi
16426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16427 conftest.$ac_objext conftest.beam conftest.$ac_ext
16428 fi
16429
16430 fi
16431
16432
16433
16434 if test ".$ac_cv_va_copy" = .; then
16435 if test "$cross_compiling" = yes
16436 then :
16437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16438 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16439 as_fn_error $? "cannot run test program while cross compiling
16440 See \`config.log' for more details" "$LINENO" 5; }
16441 else $as_nop
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16444
16445 #include <stdlib.h>
16446 #include <stdarg.h>
16447 #include <string.h>
16448 #define DO_VA_COPY(d, s) __va_copy((d), (s))
16449 void test(char *str, ...)
16450 {
16451 va_list ap, ap2;
16452 int i;
16453 va_start(ap, str);
16454 DO_VA_COPY(ap2, ap);
16455 for (i = 1; i <= 9; i++) {
16456 int k = (int)va_arg(ap, int);
16457 if (k != i)
16458 abort();
16459 }
16460 DO_VA_COPY(ap, ap2);
16461 for (i = 1; i <= 9; i++) {
16462 int k = (int)va_arg(ap, int);
16463 if (k != i)
16464 abort();
16465 }
16466 va_end(ap);
16467 }
16468 int main(int argc, char *argv[])
16469 {
16470 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
16471 exit(0);
16472 }
16473
16474 _ACEOF
16475 if ac_fn_c_try_run "$LINENO"
16476 then :
16477 ac_cv_va_copy="GCH"
16478 fi
16479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16480 conftest.$ac_objext conftest.beam conftest.$ac_ext
16481 fi
16482
16483 fi
16484
16485
16486
16487 if test ".$ac_cv_va_copy" = .; then
16488 if test "$cross_compiling" = yes
16489 then :
16490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16491 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16492 as_fn_error $? "cannot run test program while cross compiling
16493 See \`config.log' for more details" "$LINENO" 5; }
16494 else $as_nop
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h. */
16497
16498 #include <stdlib.h>
16499 #include <stdarg.h>
16500 #include <string.h>
16501 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
16502 void test(char *str, ...)
16503 {
16504 va_list ap, ap2;
16505 int i;
16506 va_start(ap, str);
16507 DO_VA_COPY(ap2, ap);
16508 for (i = 1; i <= 9; i++) {
16509 int k = (int)va_arg(ap, int);
16510 if (k != i)
16511 abort();
16512 }
16513 DO_VA_COPY(ap, ap2);
16514 for (i = 1; i <= 9; i++) {
16515 int k = (int)va_arg(ap, int);
16516 if (k != i)
16517 abort();
16518 }
16519 va_end(ap);
16520 }
16521 int main(int argc, char *argv[])
16522 {
16523 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
16524 exit(0);
16525 }
16526
16527 _ACEOF
16528 if ac_fn_c_try_run "$LINENO"
16529 then :
16530 ac_cv_va_copy="GCB"
16531 fi
16532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16533 conftest.$ac_objext conftest.beam conftest.$ac_ext
16534 fi
16535
16536 fi
16537
16538
16539
16540 if test ".$ac_cv_va_copy" = .; then
16541 if test "$cross_compiling" = yes
16542 then :
16543 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16544 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16545 as_fn_error $? "cannot run test program while cross compiling
16546 See \`config.log' for more details" "$LINENO" 5; }
16547 else $as_nop
16548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549 /* end confdefs.h. */
16550
16551 #include <stdlib.h>
16552 #include <stdarg.h>
16553 #include <string.h>
16554 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
16555 void test(char *str, ...)
16556 {
16557 va_list ap, ap2;
16558 int i;
16559 va_start(ap, str);
16560 DO_VA_COPY(ap2, ap);
16561 for (i = 1; i <= 9; i++) {
16562 int k = (int)va_arg(ap, int);
16563 if (k != i)
16564 abort();
16565 }
16566 DO_VA_COPY(ap, ap2);
16567 for (i = 1; i <= 9; i++) {
16568 int k = (int)va_arg(ap, int);
16569 if (k != i)
16570 abort();
16571 }
16572 va_end(ap);
16573 }
16574 int main(int argc, char *argv[])
16575 {
16576 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
16577 exit(0);
16578 }
16579
16580 _ACEOF
16581 if ac_fn_c_try_run "$LINENO"
16582 then :
16583 ac_cv_va_copy="ASS"
16584 fi
16585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16586 conftest.$ac_objext conftest.beam conftest.$ac_ext
16587 fi
16588
16589 fi
16590
16591
16592
16593 if test ".$ac_cv_va_copy" = .; then
16594 if test "$cross_compiling" = yes
16595 then :
16596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16597 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16598 as_fn_error $? "cannot run test program while cross compiling
16599 See \`config.log' for more details" "$LINENO" 5; }
16600 else $as_nop
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16603
16604 #include <stdlib.h>
16605 #include <stdarg.h>
16606 #include <string.h>
16607 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
16608 void test(char *str, ...)
16609 {
16610 va_list ap, ap2;
16611 int i;
16612 va_start(ap, str);
16613 DO_VA_COPY(ap2, ap);
16614 for (i = 1; i <= 9; i++) {
16615 int k = (int)va_arg(ap, int);
16616 if (k != i)
16617 abort();
16618 }
16619 DO_VA_COPY(ap, ap2);
16620 for (i = 1; i <= 9; i++) {
16621 int k = (int)va_arg(ap, int);
16622 if (k != i)
16623 abort();
16624 }
16625 va_end(ap);
16626 }
16627 int main(int argc, char *argv[])
16628 {
16629 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
16630 exit(0);
16631 }
16632
16633 _ACEOF
16634 if ac_fn_c_try_run "$LINENO"
16635 then :
16636 ac_cv_va_copy="ASP"
16637 fi
16638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16639 conftest.$ac_objext conftest.beam conftest.$ac_ext
16640 fi
16641
16642 fi
16643
16644
16645
16646 if test ".$ac_cv_va_copy" = .; then
16647 if test "$cross_compiling" = yes
16648 then :
16649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16651 as_fn_error $? "cannot run test program while cross compiling
16652 See \`config.log' for more details" "$LINENO" 5; }
16653 else $as_nop
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16656
16657 #include <stdlib.h>
16658 #include <stdarg.h>
16659 #include <string.h>
16660 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
16661 void test(char *str, ...)
16662 {
16663 va_list ap, ap2;
16664 int i;
16665 va_start(ap, str);
16666 DO_VA_COPY(ap2, ap);
16667 for (i = 1; i <= 9; i++) {
16668 int k = (int)va_arg(ap, int);
16669 if (k != i)
16670 abort();
16671 }
16672 DO_VA_COPY(ap, ap2);
16673 for (i = 1; i <= 9; i++) {
16674 int k = (int)va_arg(ap, int);
16675 if (k != i)
16676 abort();
16677 }
16678 va_end(ap);
16679 }
16680 int main(int argc, char *argv[])
16681 {
16682 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
16683 exit(0);
16684 }
16685
16686 _ACEOF
16687 if ac_fn_c_try_run "$LINENO"
16688 then :
16689 ac_cv_va_copy="CPS"
16690 fi
16691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16692 conftest.$ac_objext conftest.beam conftest.$ac_ext
16693 fi
16694
16695 fi
16696
16697
16698
16699 if test ".$ac_cv_va_copy" = .; then
16700 if test "$cross_compiling" = yes
16701 then :
16702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16703 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16704 as_fn_error $? "cannot run test program while cross compiling
16705 See \`config.log' for more details" "$LINENO" 5; }
16706 else $as_nop
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h. */
16709
16710 #include <stdlib.h>
16711 #include <stdarg.h>
16712 #include <string.h>
16713 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
16714 void test(char *str, ...)
16715 {
16716 va_list ap, ap2;
16717 int i;
16718 va_start(ap, str);
16719 DO_VA_COPY(ap2, ap);
16720 for (i = 1; i <= 9; i++) {
16721 int k = (int)va_arg(ap, int);
16722 if (k != i)
16723 abort();
16724 }
16725 DO_VA_COPY(ap, ap2);
16726 for (i = 1; i <= 9; i++) {
16727 int k = (int)va_arg(ap, int);
16728 if (k != i)
16729 abort();
16730 }
16731 va_end(ap);
16732 }
16733 int main(int argc, char *argv[])
16734 {
16735 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
16736 exit(0);
16737 }
16738
16739 _ACEOF
16740 if ac_fn_c_try_run "$LINENO"
16741 then :
16742 ac_cv_va_copy="CPP"
16743 fi
16744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16745 conftest.$ac_objext conftest.beam conftest.$ac_ext
16746 fi
16747
16748 fi
16749
16750 if test ".$ac_cv_va_copy" = .; then
16751 as_fn_error $? "no working implementation found" "$LINENO" 5
16752 fi
16753
16754 fi
16755
16756 if test ".$ac_cv_va_copy" = ".C99"; then
16757
16758 printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h
16759
16760 fi
16761
16762 printf "%s\n" "#define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy" >>confdefs.h
16763
16764
16765 if test ".$ac_cv_va_copy" = ".C99"; then
16766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16767 printf "%s\n" "yes" >&6; }
16768 else
16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using fallback implementation)" >&5
16770 printf "%s\n" "no (using fallback implementation)" >&6; }
16771 fi
16772
16773
16774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vsnprintf()" >&5
16775 printf %s "checking for vsnprintf()... " >&6; }
16776 if test ${matio_cv_have_vsnprintf+y}
16777 then :
16778 printf %s "(cached) " >&6
16779 else $as_nop
16780
16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16783
16784 #include <stdlib.h>
16785 #include <stdarg.h>
16786 #include <stdio.h>
16787 int main() {
16788 va_list ap;
16789 vsnprintf(NULL,0,"%d",ap);
16790 return 0;
16791 }
16792 _ACEOF
16793 if ac_fn_c_try_link "$LINENO"
16794 then :
16795 matio_cv_have_vsnprintf=yes
16796 else $as_nop
16797 matio_cv_have_vsnprintf=no
16798 fi
16799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16800 conftest$ac_exeext conftest.$ac_ext
16801
16802 fi
16803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $matio_cv_have_vsnprintf" >&5
16804 printf "%s\n" "$matio_cv_have_vsnprintf" >&6; }
16805
16806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snprintf()" >&5
16807 printf %s "checking for snprintf()... " >&6; }
16808 if test ${matio_cv_have_snprintf+y}
16809 then :
16810 printf %s "(cached) " >&6
16811 else $as_nop
16812
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815
16816 #include <stdlib.h>
16817 #include <stdarg.h>
16818 #include <stdio.h>
16819 int main() {
16820 snprintf(NULL,0,"%d",0);
16821 return 0;
16822 }
16823 _ACEOF
16824 if ac_fn_c_try_link "$LINENO"
16825 then :
16826 matio_cv_have_snprintf=yes
16827 else $as_nop
16828 matio_cv_have_snprintf=no
16829 fi
16830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16831 conftest$ac_exeext conftest.$ac_ext
16832
16833 fi
16834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $matio_cv_have_snprintf" >&5
16835 printf "%s\n" "$matio_cv_have_snprintf" >&6; }
16836
16837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vasprintf()" >&5
16838 printf %s "checking for vasprintf()... " >&6; }
16839 if test ${matio_cv_have_vasprintf+y}
16840 then :
16841 printf %s "(cached) " >&6
16842 else $as_nop
16843
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846
16847 #include <stdlib.h>
16848 #include <stdarg.h>
16849 #include <stdio.h>
16850 int main() {
16851 va_list ap;
16852 vasprintf(NULL,"%d",ap);
16853 return 0;
16854 }
16855 _ACEOF
16856 if ac_fn_c_try_link "$LINENO"
16857 then :
16858 matio_cv_have_vasprintf=yes
16859 else $as_nop
16860 matio_cv_have_vasprintf=no
16861 fi
16862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16863 conftest$ac_exeext conftest.$ac_ext
16864
16865 fi
16866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $matio_cv_have_vasprintf" >&5
16867 printf "%s\n" "$matio_cv_have_vasprintf" >&6; }
16868
16869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for asprintf()" >&5
16870 printf %s "checking for asprintf()... " >&6; }
16871 if test ${matio_cv_have_asprintf+y}
16872 then :
16873 printf %s "(cached) " >&6
16874 else $as_nop
16875
16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877 /* end confdefs.h. */
16878
16879 #include <stdlib.h>
16880 #include <stdarg.h>
16881 #include <stdio.h>
16882 int main() {
16883 asprintf(NULL,0,"%d",0);
16884 return 0;
16885 }
16886 _ACEOF
16887 if ac_fn_c_try_link "$LINENO"
16888 then :
16889 matio_cv_have_asprintf=yes
16890 else $as_nop
16891 matio_cv_have_asprintf=no
16892 fi
16893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16894 conftest$ac_exeext conftest.$ac_ext
16895
16896 fi
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $matio_cv_have_asprintf" >&5
16898 printf "%s\n" "$matio_cv_have_asprintf" >&6; }
16899
16900 if test "$matio_cv_have_vsnprintf" = "yes"
16901 then
16902
16903 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
16904
16905 fi
16906 if test "$matio_cv_have_snprintf" = "yes"
16907 then
16908
16909 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
16910
16911 fi
16912 if test "$matio_cv_have_vasprintf" = "yes"
16913 then
16914
16915 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
16916
16917 fi
16918 if test "$matio_cv_have_asprintf" = "yes"
16919 then
16920
16921 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
16922
16923 fi
16924
16925
16926
16927 # Check whether --with-matlab was given.
16928 if test ${with_matlab+y}
16929 then :
16930 withval=$with_matlab; MATLAB_DIR="$withval"
16931 else $as_nop
16932 MATLAB_DIR=""
16933 fi
16934
16935
16936 if test -n "$MATLAB_DIR" -a -d "$MATLAB_DIR"; then
16937 MATLAB_PATH="$PATH_SEPARATOR$MATLAB_DIR"
16938 fi
16939 # Do not use MATLAB as the program name because it can cause the matlab
16940 # script to fail
16941 # Extract the first word of "matlab", so it can be a program name with args.
16942 set dummy matlab; ac_word=$2
16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16944 printf %s "checking for $ac_word... " >&6; }
16945 if test ${ac_cv_path_MATLABEXE+y}
16946 then :
16947 printf %s "(cached) " >&6
16948 else $as_nop
16949 case $MATLABEXE in
16950 [\\/]* | ?:[\\/]*)
16951 ac_cv_path_MATLABEXE="$MATLABEXE" # Let the user override the test with a path.
16952 ;;
16953 *)
16954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16955 for as_dir in $PATH$MATLAB_PATH
16956 do
16957 IFS=$as_save_IFS
16958 case $as_dir in #(((
16959 '') as_dir=./ ;;
16960 */) ;;
16961 *) as_dir=$as_dir/ ;;
16962 esac
16963 for ac_exec_ext in '' $ac_executable_extensions; do
16964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16965 ac_cv_path_MATLABEXE="$as_dir$ac_word$ac_exec_ext"
16966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16967 break 2
16968 fi
16969 done
16970 done
16971 IFS=$as_save_IFS
16972
16973 ;;
16974 esac
16975 fi
16976 MATLABEXE=$ac_cv_path_MATLABEXE
16977 if test -n "$MATLABEXE"; then
16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MATLABEXE" >&5
16979 printf "%s\n" "$MATLABEXE" >&6; }
16980 else
16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16982 printf "%s\n" "no" >&6; }
16983 fi
16984
16985
16986
16987
16988 if test -n "$MATLABEXE"
16989 then
16990 matio_cv_have_matlab=yes
16991 else
16992 matio_cv_have_matlab=no
16993 fi
16994
16995
16996
16997
16998 # Check whether --with-zlib was given.
16999 if test ${with_zlib+y}
17000 then :
17001 withval=$with_zlib;
17002 fi
17003
17004 if test "x$with_zlib" != "xno"
17005 then
17006 saved_LIBS="$LIBS"
17007 saved_CFLAGS="$CFLAGS"
17008
17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib Library" >&5
17010 printf %s "checking for zlib Library... " >&6; }
17011
17012 if test "x$with_zlib" = "x" -o "x$with_zlib" = "xyes"
17013 then
17014 # Try system zlib
17015 ZLIB_LDOPTS="-lz"
17016 ZLIB_CFLAGS=""
17017 else
17018 ZLIB_LDOPTS="-L$with_zlib/$acl_libdirstem -lz"
17019 ZLIB_CFLAGS="-I$with_zlib/include"
17020 fi
17021 LIBS="$saved_LIBS $ZLIB_LDOPTS"
17022 CFLAGS="$saved_CFLAGS $ZLIB_CFLAGS"
17023
17024 Z_PREFIX=0
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17027
17028 #include <stdlib.h>
17029 #include <zlib.h>
17030
17031 int
17032 main (void)
17033 {
17034 inflateCopy(NULL,NULL);
17035 ;
17036 return 0;
17037 }
17038 _ACEOF
17039 if ac_fn_c_try_link "$LINENO"
17040 then :
17041 ac_have_zlib=yes
17042 else $as_nop
17043 ac_have_zlib=no
17044 fi
17045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17046 conftest$ac_exeext conftest.$ac_ext
17047
17048 if test "$ac_have_zlib" = "no"
17049 then
17050 # Try again with Z_PREFIX
17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h. */
17053
17054 #include <stdlib.h>
17055 #define Z_PREFIX
17056 #include <zlib.h>
17057
17058 int
17059 main (void)
17060 {
17061 inflateCopy(NULL,NULL);
17062 ;
17063 return 0;
17064 }
17065 _ACEOF
17066 if ac_fn_c_try_link "$LINENO"
17067 then :
17068 ac_have_zlib=yes
17069 else $as_nop
17070 ac_have_zlib=no
17071 fi
17072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17073 conftest$ac_exeext conftest.$ac_ext
17074 Z_PREFIX=1
17075 fi
17076
17077 LIBS="$saved_LIBS"
17078 CFLAGS="$saved_CFLAGS"
17079
17080 if test "$ac_have_zlib" = "yes"
17081 then
17082 ZLIB_LIBS="$ZLIB_LDOPTS"
17083
17084 printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h
17085
17086 ZLIB_REQUIRES_PRIVATE="zlib >= 1.2.3"
17087
17088
17089 if test "$Z_PREFIX" = "1"
17090 then
17091
17092 printf "%s\n" "#define Z_PREFIX 1" >>confdefs.h
17093
17094 fi
17095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZLIB_LIBS" >&5
17096 printf "%s\n" "$ZLIB_LIBS" >&6; }
17097 else
17098 ZLIB_REQUIRES_PRIVATE=""
17099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_have_zlib" >&5
17100 printf "%s\n" "$as_me: $ac_have_zlib" >&6;}
17101 fi
17102 else
17103 ZLIB_REQUIRES_PRIVATE=""
17104 ac_have_zlib=no
17105 fi
17106
17107
17108 if test "$ac_have_zlib" = "yes" ; then
17109 HAVE_ZLIB_TRUE=
17110 HAVE_ZLIB_FALSE='#'
17111 else
17112 HAVE_ZLIB_TRUE='#'
17113 HAVE_ZLIB_FALSE=
17114 fi
17115
17116
17117
17118
17119
17120 # Check whether --with-hdf5 was given.
17121 if test ${with_hdf5+y}
17122 then :
17123 withval=$with_hdf5; HDF5_DIR=${withval}
17124 else $as_nop
17125 HDF5_DIR=
17126 fi
17127
17128
17129 ac_have_hdf5=no
17130 if test "x${HDF5_DIR}" != "xno"
17131 then
17132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5 software" >&5
17133 printf %s "checking for HDF5 software... " >&6; }
17134
17135 if test "x$HDF5_DIR" != "x" -a "x$HDF5_DIR" != "xyes"
17136 then
17137 HDF5_CFLAGS="-I${HDF5_DIR}/include"
17138 if test "$acl_libdirstem" != "lib" -a -d "${HDF5_DIR}/$acl_libdirstem"
17139 then
17140 HDF5_LIBS="-L${HDF5_DIR}/$acl_libdirstem -lhdf5"
17141 else
17142 HDF5_LIBS="-L${HDF5_DIR}/lib -lhdf5"
17143 fi
17144 else
17145 HDF5_LIBS="-lhdf5"
17146 fi
17147
17148 saved_CFLAGS="$CFLAGS"
17149 saved_LDFLAGS="$LDFLAGS"
17150 saved_LIBS="$LIBS"
17151
17152 CFLAGS="$HDF5_CFLAGS $saved_CFLAGS"
17153 LDFLAGS="$saved_LDFLAGS"
17154 LIBS="$HDF5_LIBS $ZLIB_LIBS $saved_LIBS"
17155 HDF5_REQUIRES_PRIVATE="hdf5 >= 1.8"
17156
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17159
17160 #include <stdio.h>
17161 #include <stdlib.h>
17162 #include <hdf5.h>
17163
17164 int
17165 main (void)
17166 {
17167 H5open()
17168 ;
17169 return 0;
17170 }
17171 _ACEOF
17172 if ac_fn_c_try_link "$LINENO"
17173 then :
17174 ac_have_hdf5=yes
17175 else $as_nop
17176 ac_have_hdf5=no
17177 fi
17178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17179 conftest$ac_exeext conftest.$ac_ext
17180
17181 CFLAGS="$saved_CFLAGS"
17182 LDFLAGS="$saved_LDFLAGS"
17183 LIBS="$saved_LIBS"
17184 if test "x$ac_have_hdf5" = "xyes"
17185 then
17186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HDF5_LIBS" >&5
17187 printf "%s\n" "$HDF5_LIBS" >&6; }
17188 else
17189 HDF5_LIBS=
17190 HDF5_CFLAGS=
17191 HDF5_REQUIRES_PRIVATE=""
17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193 printf "%s\n" "no" >&6; }
17194 fi
17195 else
17196 HDF5_LIBS=
17197 HDF5_CFLAGS=
17198 HDF5_REQUIRES_PRIVATE=""
17199 fi
17200
17201 if test "x$ac_have_hdf5" = "xyes"
17202 then
17203
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if HDF5 interface is >= v1.8" >&5
17205 printf %s "checking if HDF5 interface is >= v1.8... " >&6; }
17206 saved_CFLAGS="$CFLAGS"
17207 saved_LDFLAGS="$LDFLAGS"
17208 saved_LIBS="$LIBS"
17209
17210 CFLAGS="$HDF5_CFLAGS $saved_CFLAGS"
17211 LDFLAGS="$saved_LDFLAGS"
17212 LIBS="$HDF5_LIBS $ZLIB_LIBS $saved_LIBS"
17213
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17216
17217 #include <stdio.h>
17218 #include <stdlib.h>
17219 #include <hdf5.h>
17220
17221 int
17222 main (void)
17223 {
17224 #if defined(H5Rdereference)
17225 /* HDF5 1.10.0 */
17226 #define H5RDEREFERENCE(obj_id, ref_type, _ref) H5Rdereference2((obj_id), H5P_DATASET_ACCESS_DEFAULT, (ref_type), (_ref))
17227 #else
17228 /* HDF5 prior to 1.10.0 */
17229 #define H5RDEREFERENCE(obj_id, ref_type, _ref) H5Rdereference((obj_id), (ref_type), (_ref))
17230 #endif
17231 hid_t dset_id = H5Dcreate(0,NULL,0,0,H5P_DEFAULT,H5P_DEFAULT,H5P_DEFAULT);
17232 hobj_ref_t ref_ids[1];
17233 hid_t ref_id = H5RDEREFERENCE(dset_id,H5R_OBJECT,ref_ids);
17234
17235 ;
17236 return 0;
17237 }
17238 _ACEOF
17239 if ac_fn_c_try_link "$LINENO"
17240 then :
17241 matio_hdf5_is_v18=yes
17242 else $as_nop
17243 matio_hdf5_is_v18=no
17244 fi
17245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17246 conftest$ac_exeext conftest.$ac_ext
17247
17248 CFLAGS="$saved_CFLAGS"
17249 LDFLAGS="$saved_LDFLAGS"
17250 LIBS="$saved_LIBS"
17251
17252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $matio_hdf5_is_v18" >&5
17253 printf "%s\n" "$matio_hdf5_is_v18" >&6; }
17254
17255 if test "x$matio_hdf5_is_v18" = "xyes"; then
17256
17257 printf "%s\n" "#define HAVE_HDF5 1" >>confdefs.h
17258
17259 else
17260 HDF5_LIBS=""
17261 HDF5_CFLAGS=""
17262 HDF5_REQUIRES_PRIVATE=""
17263 fi
17264 fi
17265
17266
17267
17268
17269 if test "x$ac_have_hdf5" = "xyes" -a "x$matio_hdf5_is_v18" = "xyes" ; then
17270 HAVE_HDF5_TRUE=
17271 HAVE_HDF5_FALSE='#'
17272 else
17273 HAVE_HDF5_TRUE='#'
17274 HAVE_HDF5_FALSE=
17275 fi
17276
17277
17278 # Check whether --enable-mat73 was given.
17279 if test ${enable_mat73+y}
17280 then :
17281 enableval=$enable_mat73; mat73=$enableval
17282 else $as_nop
17283 mat73=yes
17284 fi
17285
17286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking enable MAT v7.3 file support" >&5
17287 printf %s "checking enable MAT v7.3 file support... " >&6; }
17288 if test "x$mat73" = "xno" -o "x$ac_have_hdf5" = "xno" -o "x$matio_hdf5_is_v18" = "xno"
17289 then
17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291 printf "%s\n" "no" >&6; }
17292 mat73=no
17293 else
17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17295 printf "%s\n" "yes" >&6; }
17296
17297 printf "%s\n" "#define MAT73 1" >>confdefs.h
17298
17299 mat73=yes
17300 fi
17301 if test "x$mat73" = "xyes"; then
17302 MAT73_TRUE=
17303 MAT73_FALSE='#'
17304 else
17305 MAT73_TRUE='#'
17306 MAT73_FALSE=
17307 fi
17308
17309
17310
17311
17312 # Check whether --with-default-file-ver was given.
17313 if test ${with_default_file_ver+y}
17314 then :
17315 withval=$with_default_file_ver;
17316 else $as_nop
17317 with_default_file_ver=5
17318 fi
17319
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default MAT file version" >&5
17321 printf %s "checking for default MAT file version... " >&6; }
17322 file_ver=
17323 case "$with_default_file_ver" in
17324 "4")
17325 file_ver=MAT_FT_MAT4
17326 ;;
17327 "5")
17328 file_ver=MAT_FT_MAT5
17329 ;;
17330 "7.3")
17331 file_ver=MAT_FT_MAT73
17332 ;;
17333 esac
17334 if test "x$file_ver" != "x"; then
17335
17336 printf "%s\n" "#define MAT_FT_DEFAULT $file_ver" >>confdefs.h
17337
17338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $file_ver" >&5
17339 printf "%s\n" "$file_ver" >&6; }
17340 else
17341 as_fn_error $? "Unrecognized MAT file version" "$LINENO" 5
17342 fi
17343
17344
17345 # Check whether --enable-extended-sparse was given.
17346 if test ${enable_extended_sparse+y}
17347 then :
17348 enableval=$enable_extended_sparse; extended_sparse=$enableval
17349 else $as_nop
17350 extended_sparse=yes
17351 fi
17352
17353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking enable extended sparse types" >&5
17354 printf %s "checking enable extended sparse types... " >&6; }
17355 if test "$extended_sparse" = "no"
17356 then
17357 extended_sparse=no
17358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17359 printf "%s\n" "no" >&6; }
17360 else
17361 extended_sparse=yes
17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17363 printf "%s\n" "yes" >&6; }
17364
17365 printf "%s\n" "#define EXTENDED_SPARSE /**/" >>confdefs.h
17366
17367 fi
17368 if test "x$extended_sparse" = "xyes"; then
17369 EXTENDED_SPARSE_TRUE=
17370 EXTENDED_SPARSE_FALSE='#'
17371 else
17372 EXTENDED_SPARSE_TRUE='#'
17373 EXTENDED_SPARSE_FALSE=
17374 fi
17375
17376
17377 linux="no"
17378 winnt="no"
17379 sun="no"
17380 case $build_os in
17381 *linux*)
17382 linux="yes"
17383
17384 printf "%s\n" "#define LINUX /**/" >>confdefs.h
17385 ;;
17386 *mingw*)
17387 winnt="yes"
17388
17389 printf "%s\n" "#define WINNT /**/" >>confdefs.h
17390 ;;
17391 *cygwin*)
17392 winnt="yes"
17393
17394 printf "%s\n" "#define WINNT /**/" >>confdefs.h
17395 ;;
17396 *sun*)
17397 sun="yes"
17398
17399 printf "%s\n" "#define SUN /**/" >>confdefs.h
17400 ;;
17401 *solaris*)
17402 sun="yes"
17403
17404 printf "%s\n" "#define SUN /**/" >>confdefs.h
17405 ;;
17406 esac
17407
17408 if test "x$linux" = "xyes"; then
17409 LINUX_TRUE=
17410 LINUX_FALSE='#'
17411 else
17412 LINUX_TRUE='#'
17413 LINUX_FALSE=
17414 fi
17415
17416 if test "x$winnt" = "xyes"; then
17417 WINNT_TRUE=
17418 WINNT_FALSE='#'
17419 else
17420 WINNT_TRUE='#'
17421 WINNT_FALSE=
17422 fi
17423
17424 if test "x$sun" = "xyes"; then
17425 SUN_TRUE=
17426 SUN_FALSE='#'
17427 else
17428 SUN_TRUE='#'
17429 SUN_FALSE=
17430 fi
17431
17432
17433 winnt="no"
17434 case "${host_os}" in
17435 cygwin*|mingw*)
17436 winnt=yes;;
17437 esac
17438
17439 if test "x$winnt" = "xyes"; then
17440 IS_WIN32_TRUE=
17441 IS_WIN32_FALSE='#'
17442 else
17443 IS_WIN32_TRUE='#'
17444 IS_WIN32_FALSE=
17445 fi
17446
17447
17448 # Initialize the test suite.
17449 ac_config_commands="$ac_config_commands test/atconfig"
17450
17451 AUTOM4TE=${AUTOM4TE=autom4te}
17452
17453 AUTOTEST='$(AUTOM4TE) --language=Autotest'
17454
17455
17456 ac_config_files="$ac_config_files Makefile matio.pc snprintf/Makefile src/Makefile getopt/Makefile tools/Makefile test/Makefile documentation/Makefile"
17457
17458 cat >confcache <<\_ACEOF
17459 # This file is a shell script that caches the results of configure
17460 # tests run on this system so they can be shared between configure
17461 # scripts and configure runs, see configure's option --config-cache.
17462 # It is not useful on other systems. If it contains results you don't
17463 # want to keep, you may remove or edit it.
17464 #
17465 # config.status only pays attention to the cache file if you give it
17466 # the --recheck option to rerun configure.
17467 #
17468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17470 # following values.
17471
17472 _ACEOF
17473
17474 # The following way of writing the cache mishandles newlines in values,
17475 # but we know of no workaround that is simple, portable, and efficient.
17476 # So, we kill variables containing newlines.
17477 # Ultrix sh set writes to stderr and can't be redirected directly,
17478 # and sets the high bit in the cache file unless we assign to the vars.
17479 (
17480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17481 eval ac_val=\$$ac_var
17482 case $ac_val in #(
17483 *${as_nl}*)
17484 case $ac_var in #(
17485 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17486 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17487 esac
17488 case $ac_var in #(
17489 _ | IFS | as_nl) ;; #(
17490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17491 *) { eval $ac_var=; unset $ac_var;} ;;
17492 esac ;;
17493 esac
17494 done
17495
17496 (set) 2>&1 |
17497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17498 *${as_nl}ac_space=\ *)
17499 # `set' does not quote correctly, so add quotes: double-quote
17500 # substitution turns \\\\ into \\, and sed turns \\ into \.
17501 sed -n \
17502 "s/'/'\\\\''/g;
17503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17504 ;; #(
17505 *)
17506 # `set' quotes correctly as required by POSIX, so do not add quotes.
17507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17508 ;;
17509 esac |
17510 sort
17511 ) |
17512 sed '
17513 /^ac_cv_env_/b end
17514 t clear
17515 :clear
17516 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17517 t end
17518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17519 :end' >>confcache
17520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17521 if test -w "$cache_file"; then
17522 if test "x$cache_file" != "x/dev/null"; then
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17524 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17525 if test ! -f "$cache_file" || test -h "$cache_file"; then
17526 cat confcache >"$cache_file"
17527 else
17528 case $cache_file in #(
17529 */* | ?:*)
17530 mv -f confcache "$cache_file"$$ &&
17531 mv -f "$cache_file"$$ "$cache_file" ;; #(
17532 *)
17533 mv -f confcache "$cache_file" ;;
17534 esac
17535 fi
17536 fi
17537 else
17538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17539 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17540 fi
17541 fi
17542 rm -f confcache
17543
17544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17545 # Let make expand exec_prefix.
17546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17547
17548 DEFS=-DHAVE_CONFIG_H
17549
17550 ac_libobjs=
17551 ac_ltlibobjs=
17552 U=
17553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17554 # 1. Remove the extension, and $U if already installed.
17555 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17556 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17558 # will be set to the directory where LIBOBJS objects are built.
17559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17561 done
17562 LIBOBJS=$ac_libobjs
17563
17564 LTLIBOBJS=$ac_ltlibobjs
17565
17566
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17568 printf %s "checking that generated files are newer than configure... " >&6; }
17569 if test -n "$am_sleep_pid"; then
17570 # Hide warnings about reused PIDs.
17571 wait $am_sleep_pid 2>/dev/null
17572 fi
17573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17574 printf "%s\n" "done" >&6; }
17575 if test -n "$EXEEXT"; then
17576 am__EXEEXT_TRUE=
17577 am__EXEEXT_FALSE='#'
17578 else
17579 am__EXEEXT_TRUE='#'
17580 am__EXEEXT_FALSE=
17581 fi
17582
17583 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17584 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17586 fi
17587 if test -z "${NEED_GETOPT_TRUE}" && test -z "${NEED_GETOPT_FALSE}"; then
17588 as_fn_error $? "conditional \"NEED_GETOPT\" was never defined.
17589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17590 fi
17591 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
17592 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
17593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17594 fi
17595 if test -z "${HAVE_HDF5_TRUE}" && test -z "${HAVE_HDF5_FALSE}"; then
17596 as_fn_error $? "conditional \"HAVE_HDF5\" was never defined.
17597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17598 fi
17599 if test -z "${MAT73_TRUE}" && test -z "${MAT73_FALSE}"; then
17600 as_fn_error $? "conditional \"MAT73\" was never defined.
17601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17602 fi
17603 if test -z "${EXTENDED_SPARSE_TRUE}" && test -z "${EXTENDED_SPARSE_FALSE}"; then
17604 as_fn_error $? "conditional \"EXTENDED_SPARSE\" was never defined.
17605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17606 fi
17607 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
17608 as_fn_error $? "conditional \"LINUX\" was never defined.
17609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17610 fi
17611 if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
17612 as_fn_error $? "conditional \"WINNT\" was never defined.
17613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17614 fi
17615 if test -z "${SUN_TRUE}" && test -z "${SUN_FALSE}"; then
17616 as_fn_error $? "conditional \"SUN\" was never defined.
17617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17618 fi
17619 if test -z "${IS_WIN32_TRUE}" && test -z "${IS_WIN32_FALSE}"; then
17620 as_fn_error $? "conditional \"IS_WIN32\" was never defined.
17621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17622 fi
17623
17624 : "${CONFIG_STATUS=./config.status}"
17625 ac_write_fail=0
17626 ac_clean_files_save=$ac_clean_files
17627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17629 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17630 as_write_fail=0
17631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17632 #! $SHELL
17633 # Generated by $as_me.
17634 # Run this file to recreate the current configuration.
17635 # Compiler output produced by configure, useful for debugging
17636 # configure, is in config.log if it exists.
17637
17638 debug=false
17639 ac_cs_recheck=false
17640 ac_cs_silent=false
17641
17642 SHELL=\${CONFIG_SHELL-$SHELL}
17643 export SHELL
17644 _ASEOF
17645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17646 ## -------------------- ##
17647 ## M4sh Initialization. ##
17648 ## -------------------- ##
17649
17650 # Be more Bourne compatible
17651 DUALCASE=1; export DUALCASE # for MKS sh
17652 as_nop=:
17653 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17654 then :
17655 emulate sh
17656 NULLCMD=:
17657 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17658 # is contrary to our usage. Disable this feature.
17659 alias -g '${1+"$@"}'='"$@"'
17660 setopt NO_GLOB_SUBST
17661 else $as_nop
17662 case `(set -o) 2>/dev/null` in #(
17663 *posix*) :
17664 set -o posix ;; #(
17665 *) :
17666 ;;
17667 esac
17668 fi
17669
17670
17671
17672 # Reset variables that may have inherited troublesome values from
17673 # the environment.
17674
17675 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17676 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17677 # side effect of setting IFS to empty, thus disabling word splitting.)
17678 # Quoting is to prevent editors from complaining about space-tab.
17679 as_nl='
17680 '
17681 export as_nl
17682 IFS=" "" $as_nl"
17683
17684 PS1='$ '
17685 PS2='> '
17686 PS4='+ '
17687
17688 # Ensure predictable behavior from utilities with locale-dependent output.
17689 LC_ALL=C
17690 export LC_ALL
17691 LANGUAGE=C
17692 export LANGUAGE
17693
17694 # We cannot yet rely on "unset" to work, but we need these variables
17695 # to be unset--not just set to an empty or harmless value--now, to
17696 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17697 # also avoids known problems related to "unset" and subshell syntax
17698 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17699 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17700 do eval test \${$as_var+y} \
17701 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17702 done
17703
17704 # Ensure that fds 0, 1, and 2 are open.
17705 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17706 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17707 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17708
17709 # The user is always right.
17710 if ${PATH_SEPARATOR+false} :; then
17711 PATH_SEPARATOR=:
17712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17713 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17714 PATH_SEPARATOR=';'
17715 }
17716 fi
17717
17718
17719 # Find who we are. Look in the path if we contain no directory separator.
17720 as_myself=
17721 case $0 in #((
17722 *[\\/]* ) as_myself=$0 ;;
17723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17724 for as_dir in $PATH
17725 do
17726 IFS=$as_save_IFS
17727 case $as_dir in #(((
17728 '') as_dir=./ ;;
17729 */) ;;
17730 *) as_dir=$as_dir/ ;;
17731 esac
17732 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17733 done
17734 IFS=$as_save_IFS
17735
17736 ;;
17737 esac
17738 # We did not find ourselves, most probably we were run as `sh COMMAND'
17739 # in which case we are not to be found in the path.
17740 if test "x$as_myself" = x; then
17741 as_myself=$0
17742 fi
17743 if test ! -f "$as_myself"; then
17744 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17745 exit 1
17746 fi
17747
17748
17749
17750 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17751 # ----------------------------------------
17752 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17753 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17754 # script with STATUS, using 1 if that was 0.
17755 as_fn_error ()
17756 {
17757 as_status=$1; test $as_status -eq 0 && as_status=1
17758 if test "$4"; then
17759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17761 fi
17762 printf "%s\n" "$as_me: error: $2" >&2
17763 as_fn_exit $as_status
17764 } # as_fn_error
17765
17766
17767
17768 # as_fn_set_status STATUS
17769 # -----------------------
17770 # Set $? to STATUS, without forking.
17771 as_fn_set_status ()
17772 {
17773 return $1
17774 } # as_fn_set_status
17775
17776 # as_fn_exit STATUS
17777 # -----------------
17778 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17779 as_fn_exit ()
17780 {
17781 set +e
17782 as_fn_set_status $1
17783 exit $1
17784 } # as_fn_exit
17785
17786 # as_fn_unset VAR
17787 # ---------------
17788 # Portably unset VAR.
17789 as_fn_unset ()
17790 {
17791 { eval $1=; unset $1;}
17792 }
17793 as_unset=as_fn_unset
17794
17795 # as_fn_append VAR VALUE
17796 # ----------------------
17797 # Append the text in VALUE to the end of the definition contained in VAR. Take
17798 # advantage of any shell optimizations that allow amortized linear growth over
17799 # repeated appends, instead of the typical quadratic growth present in naive
17800 # implementations.
17801 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17802 then :
17803 eval 'as_fn_append ()
17804 {
17805 eval $1+=\$2
17806 }'
17807 else $as_nop
17808 as_fn_append ()
17809 {
17810 eval $1=\$$1\$2
17811 }
17812 fi # as_fn_append
17813
17814 # as_fn_arith ARG...
17815 # ------------------
17816 # Perform arithmetic evaluation on the ARGs, and store the result in the
17817 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17818 # must be portable across $(()) and expr.
17819 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17820 then :
17821 eval 'as_fn_arith ()
17822 {
17823 as_val=$(( $* ))
17824 }'
17825 else $as_nop
17826 as_fn_arith ()
17827 {
17828 as_val=`expr "$@" || test $? -eq 1`
17829 }
17830 fi # as_fn_arith
17831
17832
17833 if expr a : '\(a\)' >/dev/null 2>&1 &&
17834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17835 as_expr=expr
17836 else
17837 as_expr=false
17838 fi
17839
17840 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17841 as_basename=basename
17842 else
17843 as_basename=false
17844 fi
17845
17846 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17847 as_dirname=dirname
17848 else
17849 as_dirname=false
17850 fi
17851
17852 as_me=`$as_basename -- "$0" ||
17853 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17854 X"$0" : 'X\(//\)$' \| \
17855 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17856 printf "%s\n" X/"$0" |
17857 sed '/^.*\/\([^/][^/]*\)\/*$/{
17858 s//\1/
17859 q
17860 }
17861 /^X\/\(\/\/\)$/{
17862 s//\1/
17863 q
17864 }
17865 /^X\/\(\/\).*/{
17866 s//\1/
17867 q
17868 }
17869 s/.*/./; q'`
17870
17871 # Avoid depending upon Character Ranges.
17872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17875 as_cr_digits='0123456789'
17876 as_cr_alnum=$as_cr_Letters$as_cr_digits
17877
17878
17879 # Determine whether it's possible to make 'echo' print without a newline.
17880 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17881 # for compatibility with existing Makefiles.
17882 ECHO_C= ECHO_N= ECHO_T=
17883 case `echo -n x` in #(((((
17884 -n*)
17885 case `echo 'xy\c'` in
17886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17887 xy) ECHO_C='\c';;
17888 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17889 ECHO_T=' ';;
17890 esac;;
17891 *)
17892 ECHO_N='-n';;
17893 esac
17894
17895 # For backward compatibility with old third-party macros, we provide
17896 # the shell variables $as_echo and $as_echo_n. New code should use
17897 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17898 as_echo='printf %s\n'
17899 as_echo_n='printf %s'
17900
17901 rm -f conf$$ conf$$.exe conf$$.file
17902 if test -d conf$$.dir; then
17903 rm -f conf$$.dir/conf$$.file
17904 else
17905 rm -f conf$$.dir
17906 mkdir conf$$.dir 2>/dev/null
17907 fi
17908 if (echo >conf$$.file) 2>/dev/null; then
17909 if ln -s conf$$.file conf$$ 2>/dev/null; then
17910 as_ln_s='ln -s'
17911 # ... but there are two gotchas:
17912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17914 # In both cases, we have to default to `cp -pR'.
17915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17916 as_ln_s='cp -pR'
17917 elif ln conf$$.file conf$$ 2>/dev/null; then
17918 as_ln_s=ln
17919 else
17920 as_ln_s='cp -pR'
17921 fi
17922 else
17923 as_ln_s='cp -pR'
17924 fi
17925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17926 rmdir conf$$.dir 2>/dev/null
17927
17928
17929 # as_fn_mkdir_p
17930 # -------------
17931 # Create "$as_dir" as a directory, including parents if necessary.
17932 as_fn_mkdir_p ()
17933 {
17934
17935 case $as_dir in #(
17936 -*) as_dir=./$as_dir;;
17937 esac
17938 test -d "$as_dir" || eval $as_mkdir_p || {
17939 as_dirs=
17940 while :; do
17941 case $as_dir in #(
17942 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17943 *) as_qdir=$as_dir;;
17944 esac
17945 as_dirs="'$as_qdir' $as_dirs"
17946 as_dir=`$as_dirname -- "$as_dir" ||
17947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17948 X"$as_dir" : 'X\(//\)[^/]' \| \
17949 X"$as_dir" : 'X\(//\)$' \| \
17950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17951 printf "%s\n" X"$as_dir" |
17952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17953 s//\1/
17954 q
17955 }
17956 /^X\(\/\/\)[^/].*/{
17957 s//\1/
17958 q
17959 }
17960 /^X\(\/\/\)$/{
17961 s//\1/
17962 q
17963 }
17964 /^X\(\/\).*/{
17965 s//\1/
17966 q
17967 }
17968 s/.*/./; q'`
17969 test -d "$as_dir" && break
17970 done
17971 test -z "$as_dirs" || eval "mkdir $as_dirs"
17972 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17973
17974
17975 } # as_fn_mkdir_p
17976 if mkdir -p . 2>/dev/null; then
17977 as_mkdir_p='mkdir -p "$as_dir"'
17978 else
17979 test -d ./-p && rmdir ./-p
17980 as_mkdir_p=false
17981 fi
17982
17983
17984 # as_fn_executable_p FILE
17985 # -----------------------
17986 # Test if FILE is an executable regular file.
17987 as_fn_executable_p ()
17988 {
17989 test -f "$1" && test -x "$1"
17990 } # as_fn_executable_p
17991 as_test_x='test -x'
17992 as_executable_p=as_fn_executable_p
17993
17994 # Sed expression to map a string onto a valid CPP name.
17995 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17996
17997 # Sed expression to map a string onto a valid variable name.
17998 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17999
18000
18001 exec 6>&1
18002 ## ----------------------------------- ##
18003 ## Main body of $CONFIG_STATUS script. ##
18004 ## ----------------------------------- ##
18005 _ASEOF
18006 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18007
18008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18009 # Save the log message, to keep $0 and so on meaningful, and to
18010 # report actual input values of CONFIG_FILES etc. instead of their
18011 # values after options handling.
18012 ac_log="
18013 This file was extended by MATIO $as_me 1.5.30, which was
18014 generated by GNU Autoconf 2.71. Invocation command line was
18015
18016 CONFIG_FILES = $CONFIG_FILES
18017 CONFIG_HEADERS = $CONFIG_HEADERS
18018 CONFIG_LINKS = $CONFIG_LINKS
18019 CONFIG_COMMANDS = $CONFIG_COMMANDS
18020 $ $0 $@
18021
18022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18023 "
18024
18025 _ACEOF
18026
18027 case $ac_config_files in *"
18028 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18029 esac
18030
18031 case $ac_config_headers in *"
18032 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18033 esac
18034
18035
18036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18037 # Files that config.status was made for.
18038 config_files="$ac_config_files"
18039 config_headers="$ac_config_headers"
18040 config_commands="$ac_config_commands"
18041
18042 _ACEOF
18043
18044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18045 ac_cs_usage="\
18046 \`$as_me' instantiates files and other configuration actions
18047 from templates according to the current configuration. Unless the files
18048 and actions are specified as TAGs, all are instantiated by default.
18049
18050 Usage: $0 [OPTION]... [TAG]...
18051
18052 -h, --help print this help, then exit
18053 -V, --version print version number and configuration settings, then exit
18054 --config print configuration, then exit
18055 -q, --quiet, --silent
18056 do not print progress messages
18057 -d, --debug don't remove temporary files
18058 --recheck update $as_me by reconfiguring in the same conditions
18059 --file=FILE[:TEMPLATE]
18060 instantiate the configuration file FILE
18061 --header=FILE[:TEMPLATE]
18062 instantiate the configuration header FILE
18063
18064 Configuration files:
18065 $config_files
18066
18067 Configuration headers:
18068 $config_headers
18069
18070 Configuration commands:
18071 $config_commands
18072
18073 Report bugs to <[email protected]>.
18074 MATIO home page: <https://sourceforge.net/projects/matio>."
18075
18076 _ACEOF
18077 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18078 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18080 ac_cs_config='$ac_cs_config_escaped'
18081 ac_cs_version="\\
18082 MATIO config.status 1.5.30
18083 configured by $0, generated by GNU Autoconf 2.71,
18084 with options \\"\$ac_cs_config\\"
18085
18086 Copyright (C) 2021 Free Software Foundation, Inc.
18087 This config.status script is free software; the Free Software Foundation
18088 gives unlimited permission to copy, distribute and modify it."
18089
18090 ac_pwd='$ac_pwd'
18091 srcdir='$srcdir'
18092 INSTALL='$INSTALL'
18093 MKDIR_P='$MKDIR_P'
18094 AWK='$AWK'
18095 test -n "\$AWK" || AWK=awk
18096 _ACEOF
18097
18098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18099 # The default lists apply if the user does not specify any file.
18100 ac_need_defaults=:
18101 while test $# != 0
18102 do
18103 case $1 in
18104 --*=?*)
18105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18106 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18107 ac_shift=:
18108 ;;
18109 --*=)
18110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18111 ac_optarg=
18112 ac_shift=:
18113 ;;
18114 *)
18115 ac_option=$1
18116 ac_optarg=$2
18117 ac_shift=shift
18118 ;;
18119 esac
18120
18121 case $ac_option in
18122 # Handling of the options.
18123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18124 ac_cs_recheck=: ;;
18125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18126 printf "%s\n" "$ac_cs_version"; exit ;;
18127 --config | --confi | --conf | --con | --co | --c )
18128 printf "%s\n" "$ac_cs_config"; exit ;;
18129 --debug | --debu | --deb | --de | --d | -d )
18130 debug=: ;;
18131 --file | --fil | --fi | --f )
18132 $ac_shift
18133 case $ac_optarg in
18134 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18135 '') as_fn_error $? "missing file argument" ;;
18136 esac
18137 as_fn_append CONFIG_FILES " '$ac_optarg'"
18138 ac_need_defaults=false;;
18139 --header | --heade | --head | --hea )
18140 $ac_shift
18141 case $ac_optarg in
18142 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18143 esac
18144 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18145 ac_need_defaults=false;;
18146 --he | --h)
18147 # Conflict between --help and --header
18148 as_fn_error $? "ambiguous option: \`$1'
18149 Try \`$0 --help' for more information.";;
18150 --help | --hel | -h )
18151 printf "%s\n" "$ac_cs_usage"; exit ;;
18152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18153 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18154 ac_cs_silent=: ;;
18155
18156 # This is an error.
18157 -*) as_fn_error $? "unrecognized option: \`$1'
18158 Try \`$0 --help' for more information." ;;
18159
18160 *) as_fn_append ac_config_targets " $1"
18161 ac_need_defaults=false ;;
18162
18163 esac
18164 shift
18165 done
18166
18167 ac_configure_extra_args=
18168
18169 if $ac_cs_silent; then
18170 exec 6>/dev/null
18171 ac_configure_extra_args="$ac_configure_extra_args --silent"
18172 fi
18173
18174 _ACEOF
18175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18176 if \$ac_cs_recheck; then
18177 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18178 shift
18179 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18180 CONFIG_SHELL='$SHELL'
18181 export CONFIG_SHELL
18182 exec "\$@"
18183 fi
18184
18185 _ACEOF
18186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18187 exec 5>>config.log
18188 {
18189 echo
18190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18191 ## Running $as_me. ##
18192 _ASBOX
18193 printf "%s\n" "$ac_log"
18194 } >&5
18195
18196 _ACEOF
18197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18198 #
18199 # INIT-COMMANDS
18200 #
18201
18202
18203 # The HP-UX ksh and POSIX shell print the target directory to stdout
18204 # if CDPATH is set.
18205 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18206
18207 sed_quote_subst='$sed_quote_subst'
18208 double_quote_subst='$double_quote_subst'
18209 delay_variable_subst='$delay_variable_subst'
18210 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18211 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18212 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18213 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18214 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18215 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18216 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18217 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18218 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18219 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18220 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18221 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18222 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18223 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18224 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18225 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18226 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18227 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18228 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18229 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18230 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18231 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18232 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18233 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18234 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18235 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18236 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18237 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18238 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18239 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18240 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18241 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18242 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18243 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18244 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18245 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18246 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18247 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18248 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18249 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18250 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18251 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18252 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18253 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18254 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18255 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18256 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18257 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18258 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18259 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18260 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18261 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18262 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18263 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18264 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18265 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18266 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18267 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18268 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18269 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18270 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"`'
18271 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18272 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18273 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18274 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18275 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18276 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18277 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18278 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18279 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18280 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18281 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18282 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18283 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18284 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18285 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18286 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18287 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18288 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18289 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18290 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18291 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18292 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18293 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18294 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18295 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18296 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18297 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18298 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18299 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18300 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18301 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18302 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18303 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18304 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18305 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18306 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18307 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18308 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18309 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18310 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18311 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18312 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18313 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18314 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18315 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18316 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18317 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18318 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18319 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18320 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18321 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18322 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18323 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18324 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18325 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18326 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18327 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18328 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18329 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18330 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18331 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18332 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18333 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18334 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18335 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18336 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18337 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18338 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18339 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18340 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18341 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18342 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18343 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18344 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18345 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18346 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18347
18348 LTCC='$LTCC'
18349 LTCFLAGS='$LTCFLAGS'
18350 compiler='$compiler_DEFAULT'
18351
18352 # A function that is used when there is no print builtin or printf.
18353 func_fallback_echo ()
18354 {
18355 eval 'cat <<_LTECHO_EOF
18356 \$1
18357 _LTECHO_EOF'
18358 }
18359
18360 # Quote evaled strings.
18361 for var in SHELL \
18362 ECHO \
18363 PATH_SEPARATOR \
18364 SED \
18365 GREP \
18366 EGREP \
18367 FGREP \
18368 LD \
18369 NM \
18370 LN_S \
18371 lt_SP2NL \
18372 lt_NL2SP \
18373 reload_flag \
18374 FILECMD \
18375 OBJDUMP \
18376 deplibs_check_method \
18377 file_magic_cmd \
18378 file_magic_glob \
18379 want_nocaseglob \
18380 DLLTOOL \
18381 sharedlib_from_linklib_cmd \
18382 AR \
18383 archiver_list_spec \
18384 STRIP \
18385 RANLIB \
18386 CC \
18387 CFLAGS \
18388 compiler \
18389 lt_cv_sys_global_symbol_pipe \
18390 lt_cv_sys_global_symbol_to_cdecl \
18391 lt_cv_sys_global_symbol_to_import \
18392 lt_cv_sys_global_symbol_to_c_name_address \
18393 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18394 lt_cv_nm_interface \
18395 nm_file_list_spec \
18396 lt_cv_truncate_bin \
18397 lt_prog_compiler_no_builtin_flag \
18398 lt_prog_compiler_pic \
18399 lt_prog_compiler_wl \
18400 lt_prog_compiler_static \
18401 lt_cv_prog_compiler_c_o \
18402 need_locks \
18403 MANIFEST_TOOL \
18404 DSYMUTIL \
18405 NMEDIT \
18406 LIPO \
18407 OTOOL \
18408 OTOOL64 \
18409 shrext_cmds \
18410 export_dynamic_flag_spec \
18411 whole_archive_flag_spec \
18412 compiler_needs_object \
18413 with_gnu_ld \
18414 allow_undefined_flag \
18415 no_undefined_flag \
18416 hardcode_libdir_flag_spec \
18417 hardcode_libdir_separator \
18418 exclude_expsyms \
18419 include_expsyms \
18420 file_list_spec \
18421 variables_saved_for_relink \
18422 libname_spec \
18423 library_names_spec \
18424 soname_spec \
18425 install_override_mode \
18426 finish_eval \
18427 old_striplib \
18428 striplib; do
18429 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18430 *[\\\\\\\`\\"\\\$]*)
18431 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18432 ;;
18433 *)
18434 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18435 ;;
18436 esac
18437 done
18438
18439 # Double-quote double-evaled strings.
18440 for var in reload_cmds \
18441 old_postinstall_cmds \
18442 old_postuninstall_cmds \
18443 old_archive_cmds \
18444 extract_expsyms_cmds \
18445 old_archive_from_new_cmds \
18446 old_archive_from_expsyms_cmds \
18447 archive_cmds \
18448 archive_expsym_cmds \
18449 module_cmds \
18450 module_expsym_cmds \
18451 export_symbols_cmds \
18452 prelink_cmds \
18453 postlink_cmds \
18454 postinstall_cmds \
18455 postuninstall_cmds \
18456 finish_cmds \
18457 sys_lib_search_path_spec \
18458 configure_time_dlsearch_path \
18459 configure_time_lt_sys_library_path; do
18460 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18461 *[\\\\\\\`\\"\\\$]*)
18462 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18463 ;;
18464 *)
18465 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18466 ;;
18467 esac
18468 done
18469
18470 ac_aux_dir='$ac_aux_dir'
18471
18472 # See if we are running on zsh, and set the options that allow our
18473 # commands through without removal of \ escapes INIT.
18474 if test -n "\${ZSH_VERSION+set}"; then
18475 setopt NO_GLOB_SUBST
18476 fi
18477
18478
18479 PACKAGE='$PACKAGE'
18480 VERSION='$VERSION'
18481 RM='$RM'
18482 ofile='$ofile'
18483
18484
18485
18486 ac_cv_exeext="$ac_cv_exeext"
18487
18488
18489 _ACEOF
18490
18491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18492
18493 # Handling of arguments.
18494 for ac_config_target in $ac_config_targets
18495 do
18496 case $ac_config_target in
18497 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18498 "src/matioConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/matioConfig.h" ;;
18499 "src/matio_pubconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/matio_pubconf.h" ;;
18500 "test/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS test/atconfig" ;;
18501 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18502 "matio.pc") CONFIG_FILES="$CONFIG_FILES matio.pc" ;;
18503 "snprintf/Makefile") CONFIG_FILES="$CONFIG_FILES snprintf/Makefile" ;;
18504 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18505 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
18506 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18507 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18508 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
18509
18510 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18511 esac
18512 done
18513
18514
18515 # If the user did not use the arguments to specify the items to instantiate,
18516 # then the envvar interface is used. Set only those that are not.
18517 # We use the long form for the default assignment because of an extremely
18518 # bizarre bug on SunOS 4.1.3.
18519 if $ac_need_defaults; then
18520 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18521 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18522 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18523 fi
18524
18525 # Have a temporary directory for convenience. Make it in the build tree
18526 # simply because there is no reason against having it here, and in addition,
18527 # creating and moving files from /tmp can sometimes cause problems.
18528 # Hook for its removal unless debugging.
18529 # Note that there is a small window in which the directory will not be cleaned:
18530 # after its creation but before its name has been assigned to `$tmp'.
18531 $debug ||
18532 {
18533 tmp= ac_tmp=
18534 trap 'exit_status=$?
18535 : "${ac_tmp:=$tmp}"
18536 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18537 ' 0
18538 trap 'as_fn_exit 1' 1 2 13 15
18539 }
18540 # Create a (secure) tmp directory for tmp files.
18541
18542 {
18543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18544 test -d "$tmp"
18545 } ||
18546 {
18547 tmp=./conf$$-$RANDOM
18548 (umask 077 && mkdir "$tmp")
18549 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18550 ac_tmp=$tmp
18551
18552 # Set up the scripts for CONFIG_FILES section.
18553 # No need to generate them if there are no CONFIG_FILES.
18554 # This happens for instance with `./config.status config.h'.
18555 if test -n "$CONFIG_FILES"; then
18556
18557
18558 ac_cr=`echo X | tr X '\015'`
18559 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18560 # But we know of no other shell where ac_cr would be empty at this
18561 # point, so we can use a bashism as a fallback.
18562 if test "x$ac_cr" = x; then
18563 eval ac_cr=\$\'\\r\'
18564 fi
18565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18567 ac_cs_awk_cr='\\r'
18568 else
18569 ac_cs_awk_cr=$ac_cr
18570 fi
18571
18572 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18573 _ACEOF
18574
18575
18576 {
18577 echo "cat >conf$$subs.awk <<_ACEOF" &&
18578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18579 echo "_ACEOF"
18580 } >conf$$subs.sh ||
18581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18582 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18583 ac_delim='%!_!# '
18584 for ac_last_try in false false false false false :; do
18585 . ./conf$$subs.sh ||
18586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18587
18588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18589 if test $ac_delim_n = $ac_delim_num; then
18590 break
18591 elif $ac_last_try; then
18592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18593 else
18594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18595 fi
18596 done
18597 rm -f conf$$subs.sh
18598
18599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18600 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18601 _ACEOF
18602 sed -n '
18603 h
18604 s/^/S["/; s/!.*/"]=/
18605 p
18606 g
18607 s/^[^!]*!//
18608 :repl
18609 t repl
18610 s/'"$ac_delim"'$//
18611 t delim
18612 :nl
18613 h
18614 s/\(.\{148\}\)..*/\1/
18615 t more1
18616 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18617 p
18618 n
18619 b repl
18620 :more1
18621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18622 p
18623 g
18624 s/.\{148\}//
18625 t nl
18626 :delim
18627 h
18628 s/\(.\{148\}\)..*/\1/
18629 t more2
18630 s/["\\]/\\&/g; s/^/"/; s/$/"/
18631 p
18632 b
18633 :more2
18634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18635 p
18636 g
18637 s/.\{148\}//
18638 t delim
18639 ' <conf$$subs.awk | sed '
18640 /^[^""]/{
18641 N
18642 s/\n//
18643 }
18644 ' >>$CONFIG_STATUS || ac_write_fail=1
18645 rm -f conf$$subs.awk
18646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18647 _ACAWK
18648 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18649 for (key in S) S_is_set[key] = 1
18650 FS = ""
18651
18652 }
18653 {
18654 line = $ 0
18655 nfields = split(line, field, "@")
18656 substed = 0
18657 len = length(field[1])
18658 for (i = 2; i < nfields; i++) {
18659 key = field[i]
18660 keylen = length(key)
18661 if (S_is_set[key]) {
18662 value = S[key]
18663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18664 len += length(value) + length(field[++i])
18665 substed = 1
18666 } else
18667 len += 1 + keylen
18668 }
18669
18670 print line
18671 }
18672
18673 _ACAWK
18674 _ACEOF
18675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18676 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18678 else
18679 cat
18680 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18681 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18682 _ACEOF
18683
18684 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18685 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18686 # trailing colons and then remove the whole line if VPATH becomes empty
18687 # (actually we leave an empty line to preserve line numbers).
18688 if test "x$srcdir" = x.; then
18689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18690 h
18691 s///
18692 s/^/:/
18693 s/[ ]*$/:/
18694 s/:\$(srcdir):/:/g
18695 s/:\${srcdir}:/:/g
18696 s/:@srcdir@:/:/g
18697 s/^:*//
18698 s/:*$//
18699 x
18700 s/\(=[ ]*\).*/\1/
18701 G
18702 s/\n//
18703 s/^[^=]*=[ ]*$//
18704 }'
18705 fi
18706
18707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18708 fi # test -n "$CONFIG_FILES"
18709
18710 # Set up the scripts for CONFIG_HEADERS section.
18711 # No need to generate them if there are no CONFIG_HEADERS.
18712 # This happens for instance with `./config.status Makefile'.
18713 if test -n "$CONFIG_HEADERS"; then
18714 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18715 BEGIN {
18716 _ACEOF
18717
18718 # Transform confdefs.h into an awk script `defines.awk', embedded as
18719 # here-document in config.status, that substitutes the proper values into
18720 # config.h.in to produce config.h.
18721
18722 # Create a delimiter string that does not exist in confdefs.h, to ease
18723 # handling of long lines.
18724 ac_delim='%!_!# '
18725 for ac_last_try in false false :; do
18726 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18727 if test -z "$ac_tt"; then
18728 break
18729 elif $ac_last_try; then
18730 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18731 else
18732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18733 fi
18734 done
18735
18736 # For the awk script, D is an array of macro values keyed by name,
18737 # likewise P contains macro parameters if any. Preserve backslash
18738 # newline sequences.
18739
18740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18741 sed -n '
18742 s/.\{148\}/&'"$ac_delim"'/g
18743 t rset
18744 :rset
18745 s/^[ ]*#[ ]*define[ ][ ]*/ /
18746 t def
18747 d
18748 :def
18749 s/\\$//
18750 t bsnl
18751 s/["\\]/\\&/g
18752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18753 D["\1"]=" \3"/p
18754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18755 d
18756 :bsnl
18757 s/["\\]/\\&/g
18758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18759 D["\1"]=" \3\\\\\\n"\\/p
18760 t cont
18761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18762 t cont
18763 d
18764 :cont
18765 n
18766 s/.\{148\}/&'"$ac_delim"'/g
18767 t clear
18768 :clear
18769 s/\\$//
18770 t bsnlc
18771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18772 d
18773 :bsnlc
18774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18775 b cont
18776 ' <confdefs.h | sed '
18777 s/'"$ac_delim"'/"\\\
18778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18779
18780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18781 for (key in D) D_is_set[key] = 1
18782 FS = ""
18783 }
18784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18785 line = \$ 0
18786 split(line, arg, " ")
18787 if (arg[1] == "#") {
18788 defundef = arg[2]
18789 mac1 = arg[3]
18790 } else {
18791 defundef = substr(arg[1], 2)
18792 mac1 = arg[2]
18793 }
18794 split(mac1, mac2, "(") #)
18795 macro = mac2[1]
18796 prefix = substr(line, 1, index(line, defundef) - 1)
18797 if (D_is_set[macro]) {
18798 # Preserve the white space surrounding the "#".
18799 print prefix "define", macro P[macro] D[macro]
18800 next
18801 } else {
18802 # Replace #undef with comments. This is necessary, for example,
18803 # in the case of _POSIX_SOURCE, which is predefined and required
18804 # on some systems where configure will not decide to define it.
18805 if (defundef == "undef") {
18806 print "/*", prefix defundef, macro, "*/"
18807 next
18808 }
18809 }
18810 }
18811 { print }
18812 _ACAWK
18813 _ACEOF
18814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18815 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18816 fi # test -n "$CONFIG_HEADERS"
18817
18818
18819 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18820 shift
18821 for ac_tag
18822 do
18823 case $ac_tag in
18824 :[FHLC]) ac_mode=$ac_tag; continue;;
18825 esac
18826 case $ac_mode$ac_tag in
18827 :[FHL]*:*);;
18828 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18829 :[FH]-) ac_tag=-:-;;
18830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18831 esac
18832 ac_save_IFS=$IFS
18833 IFS=:
18834 set x $ac_tag
18835 IFS=$ac_save_IFS
18836 shift
18837 ac_file=$1
18838 shift
18839
18840 case $ac_mode in
18841 :L) ac_source=$1;;
18842 :[FH])
18843 ac_file_inputs=
18844 for ac_f
18845 do
18846 case $ac_f in
18847 -) ac_f="$ac_tmp/stdin";;
18848 *) # Look for the file first in the build tree, then in the source tree
18849 # (if the path is not absolute). The absolute path cannot be DOS-style,
18850 # because $ac_f cannot contain `:'.
18851 test -f "$ac_f" ||
18852 case $ac_f in
18853 [\\/$]*) false;;
18854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18855 esac ||
18856 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18857 esac
18858 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18859 as_fn_append ac_file_inputs " '$ac_f'"
18860 done
18861
18862 # Let's still pretend it is `configure' which instantiates (i.e., don't
18863 # use $as_me), people would be surprised to read:
18864 # /* config.h. Generated by config.status. */
18865 configure_input='Generated from '`
18866 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18867 `' by configure.'
18868 if test x"$ac_file" != x-; then
18869 configure_input="$ac_file. $configure_input"
18870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18871 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18872 fi
18873 # Neutralize special characters interpreted by sed in replacement strings.
18874 case $configure_input in #(
18875 *\&* | *\|* | *\\* )
18876 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18878 *) ac_sed_conf_input=$configure_input;;
18879 esac
18880
18881 case $ac_tag in
18882 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18884 esac
18885 ;;
18886 esac
18887
18888 ac_dir=`$as_dirname -- "$ac_file" ||
18889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18890 X"$ac_file" : 'X\(//\)[^/]' \| \
18891 X"$ac_file" : 'X\(//\)$' \| \
18892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18893 printf "%s\n" X"$ac_file" |
18894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18895 s//\1/
18896 q
18897 }
18898 /^X\(\/\/\)[^/].*/{
18899 s//\1/
18900 q
18901 }
18902 /^X\(\/\/\)$/{
18903 s//\1/
18904 q
18905 }
18906 /^X\(\/\).*/{
18907 s//\1/
18908 q
18909 }
18910 s/.*/./; q'`
18911 as_dir="$ac_dir"; as_fn_mkdir_p
18912 ac_builddir=.
18913
18914 case "$ac_dir" in
18915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18916 *)
18917 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18918 # A ".." for each directory in $ac_dir_suffix.
18919 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18920 case $ac_top_builddir_sub in
18921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18923 esac ;;
18924 esac
18925 ac_abs_top_builddir=$ac_pwd
18926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18927 # for backward compatibility:
18928 ac_top_builddir=$ac_top_build_prefix
18929
18930 case $srcdir in
18931 .) # We are building in place.
18932 ac_srcdir=.
18933 ac_top_srcdir=$ac_top_builddir_sub
18934 ac_abs_top_srcdir=$ac_pwd ;;
18935 [\\/]* | ?:[\\/]* ) # Absolute name.
18936 ac_srcdir=$srcdir$ac_dir_suffix;
18937 ac_top_srcdir=$srcdir
18938 ac_abs_top_srcdir=$srcdir ;;
18939 *) # Relative name.
18940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18941 ac_top_srcdir=$ac_top_build_prefix$srcdir
18942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18943 esac
18944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18945
18946
18947 case $ac_mode in
18948 :F)
18949 #
18950 # CONFIG_FILE
18951 #
18952
18953 case $INSTALL in
18954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18956 esac
18957 ac_MKDIR_P=$MKDIR_P
18958 case $MKDIR_P in
18959 [\\/$]* | ?:[\\/]* ) ;;
18960 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18961 esac
18962 _ACEOF
18963
18964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18965 # If the template does not know about datarootdir, expand it.
18966 # FIXME: This hack should be removed a few years after 2.60.
18967 ac_datarootdir_hack=; ac_datarootdir_seen=
18968 ac_sed_dataroot='
18969 /datarootdir/ {
18970 p
18971 q
18972 }
18973 /@datadir@/p
18974 /@docdir@/p
18975 /@infodir@/p
18976 /@localedir@/p
18977 /@mandir@/p'
18978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18979 *datarootdir*) ac_datarootdir_seen=yes;;
18980 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18982 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18983 _ACEOF
18984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18985 ac_datarootdir_hack='
18986 s&@datadir@&$datadir&g
18987 s&@docdir@&$docdir&g
18988 s&@infodir@&$infodir&g
18989 s&@localedir@&$localedir&g
18990 s&@mandir@&$mandir&g
18991 s&\\\${datarootdir}&$datarootdir&g' ;;
18992 esac
18993 _ACEOF
18994
18995 # Neutralize VPATH when `$srcdir' = `.'.
18996 # Shell code in configure.ac might set extrasub.
18997 # FIXME: do we really want to maintain this feature?
18998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18999 ac_sed_extra="$ac_vpsub
19000 $extrasub
19001 _ACEOF
19002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19003 :t
19004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19005 s|@configure_input@|$ac_sed_conf_input|;t t
19006 s&@top_builddir@&$ac_top_builddir_sub&;t t
19007 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19008 s&@srcdir@&$ac_srcdir&;t t
19009 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19010 s&@top_srcdir@&$ac_top_srcdir&;t t
19011 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19012 s&@builddir@&$ac_builddir&;t t
19013 s&@abs_builddir@&$ac_abs_builddir&;t t
19014 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19015 s&@INSTALL@&$ac_INSTALL&;t t
19016 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19017 $ac_datarootdir_hack
19018 "
19019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19020 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19021
19022 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19023 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19024 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19025 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19027 which seems to be undefined. Please make sure it is defined" >&5
19028 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19029 which seems to be undefined. Please make sure it is defined" >&2;}
19030
19031 rm -f "$ac_tmp/stdin"
19032 case $ac_file in
19033 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19034 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19035 esac \
19036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19037 ;;
19038 :H)
19039 #
19040 # CONFIG_HEADER
19041 #
19042 if test x"$ac_file" != x-; then
19043 {
19044 printf "%s\n" "/* $configure_input */" >&1 \
19045 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19046 } >"$ac_tmp/config.h" \
19047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19048 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19050 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19051 else
19052 rm -f "$ac_file"
19053 mv "$ac_tmp/config.h" "$ac_file" \
19054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19055 fi
19056 else
19057 printf "%s\n" "/* $configure_input */" >&1 \
19058 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19059 || as_fn_error $? "could not create -" "$LINENO" 5
19060 fi
19061 # Compute "$ac_file"'s index in $config_headers.
19062 _am_arg="$ac_file"
19063 _am_stamp_count=1
19064 for _am_header in $config_headers :; do
19065 case $_am_header in
19066 $_am_arg | $_am_arg:* )
19067 break ;;
19068 * )
19069 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19070 esac
19071 done
19072 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19073 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19074 X"$_am_arg" : 'X\(//\)[^/]' \| \
19075 X"$_am_arg" : 'X\(//\)$' \| \
19076 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19077 printf "%s\n" X"$_am_arg" |
19078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19079 s//\1/
19080 q
19081 }
19082 /^X\(\/\/\)[^/].*/{
19083 s//\1/
19084 q
19085 }
19086 /^X\(\/\/\)$/{
19087 s//\1/
19088 q
19089 }
19090 /^X\(\/\).*/{
19091 s//\1/
19092 q
19093 }
19094 s/.*/./; q'`/stamp-h$_am_stamp_count
19095 ;;
19096
19097 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19098 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19099 ;;
19100 esac
19101
19102
19103 case $ac_file$ac_mode in
19104 "libtool":C)
19105
19106 # See if we are running on zsh, and set the options that allow our
19107 # commands through without removal of \ escapes.
19108 if test -n "${ZSH_VERSION+set}"; then
19109 setopt NO_GLOB_SUBST
19110 fi
19111
19112 cfgfile=${ofile}T
19113 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19114 $RM "$cfgfile"
19115
19116 cat <<_LT_EOF >> "$cfgfile"
19117 #! $SHELL
19118 # Generated automatically by $as_me ($PACKAGE) $VERSION
19119 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19120
19121 # Provide generalized library-building support services.
19122 # Written by Gordon Matzigkeit, 1996
19123
19124 # Copyright (C) 2014 Free Software Foundation, Inc.
19125 # This is free software; see the source for copying conditions. There is NO
19126 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19127
19128 # GNU Libtool is free software; you can redistribute it and/or modify
19129 # it under the terms of the GNU General Public License as published by
19130 # the Free Software Foundation; either version 2 of of the License, or
19131 # (at your option) any later version.
19132 #
19133 # As a special exception to the GNU General Public License, if you
19134 # distribute this file as part of a program or library that is built
19135 # using GNU Libtool, you may include this file under the same
19136 # distribution terms that you use for the rest of that program.
19137 #
19138 # GNU Libtool is distributed in the hope that it will be useful, but
19139 # WITHOUT ANY WARRANTY; without even the implied warranty of
19140 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19141 # GNU General Public License for more details.
19142 #
19143 # You should have received a copy of the GNU General Public License
19144 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19145
19146
19147 # The names of the tagged configurations supported by this script.
19148 available_tags=''
19149
19150 # Configured defaults for sys_lib_dlsearch_path munging.
19151 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19152
19153 # ### BEGIN LIBTOOL CONFIG
19154
19155 # Whether or not to build shared libraries.
19156 build_libtool_libs=$enable_shared
19157
19158 # Whether or not to build static libraries.
19159 build_old_libs=$enable_static
19160
19161 # Which release of libtool.m4 was used?
19162 macro_version=$macro_version
19163 macro_revision=$macro_revision
19164
19165 # What type of objects to build.
19166 pic_mode=$pic_mode
19167
19168 # Whether or not to optimize for fast installation.
19169 fast_install=$enable_fast_install
19170
19171 # Shared archive member basename,for filename based shared library versioning on AIX.
19172 shared_archive_member_spec=$shared_archive_member_spec
19173
19174 # Shell to use when invoking shell scripts.
19175 SHELL=$lt_SHELL
19176
19177 # An echo program that protects backslashes.
19178 ECHO=$lt_ECHO
19179
19180 # The PATH separator for the build system.
19181 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19182
19183 # The host system.
19184 host_alias=$host_alias
19185 host=$host
19186 host_os=$host_os
19187
19188 # The build system.
19189 build_alias=$build_alias
19190 build=$build
19191 build_os=$build_os
19192
19193 # A sed program that does not truncate output.
19194 SED=$lt_SED
19195
19196 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19197 Xsed="\$SED -e 1s/^X//"
19198
19199 # A grep program that handles long lines.
19200 GREP=$lt_GREP
19201
19202 # An ERE matcher.
19203 EGREP=$lt_EGREP
19204
19205 # A literal string matcher.
19206 FGREP=$lt_FGREP
19207
19208 # A BSD- or MS-compatible name lister.
19209 NM=$lt_NM
19210
19211 # Whether we need soft or hard links.
19212 LN_S=$lt_LN_S
19213
19214 # What is the maximum length of a command?
19215 max_cmd_len=$max_cmd_len
19216
19217 # Object file suffix (normally "o").
19218 objext=$ac_objext
19219
19220 # Executable file suffix (normally "").
19221 exeext=$exeext
19222
19223 # whether the shell understands "unset".
19224 lt_unset=$lt_unset
19225
19226 # turn spaces into newlines.
19227 SP2NL=$lt_lt_SP2NL
19228
19229 # turn newlines into spaces.
19230 NL2SP=$lt_lt_NL2SP
19231
19232 # convert \$build file names to \$host format.
19233 to_host_file_cmd=$lt_cv_to_host_file_cmd
19234
19235 # convert \$build files to toolchain format.
19236 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19237
19238 # A file(cmd) program that detects file types.
19239 FILECMD=$lt_FILECMD
19240
19241 # An object symbol dumper.
19242 OBJDUMP=$lt_OBJDUMP
19243
19244 # Method to check whether dependent libraries are shared objects.
19245 deplibs_check_method=$lt_deplibs_check_method
19246
19247 # Command to use when deplibs_check_method = "file_magic".
19248 file_magic_cmd=$lt_file_magic_cmd
19249
19250 # How to find potential files when deplibs_check_method = "file_magic".
19251 file_magic_glob=$lt_file_magic_glob
19252
19253 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19254 want_nocaseglob=$lt_want_nocaseglob
19255
19256 # DLL creation program.
19257 DLLTOOL=$lt_DLLTOOL
19258
19259 # Command to associate shared and link libraries.
19260 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19261
19262 # The archiver.
19263 AR=$lt_AR
19264
19265 # Flags to create an archive (by configure).
19266 lt_ar_flags=$lt_ar_flags
19267
19268 # Flags to create an archive.
19269 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19270
19271 # How to feed a file listing to the archiver.
19272 archiver_list_spec=$lt_archiver_list_spec
19273
19274 # A symbol stripping program.
19275 STRIP=$lt_STRIP
19276
19277 # Commands used to install an old-style archive.
19278 RANLIB=$lt_RANLIB
19279 old_postinstall_cmds=$lt_old_postinstall_cmds
19280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19281
19282 # Whether to use a lock for old archive extraction.
19283 lock_old_archive_extraction=$lock_old_archive_extraction
19284
19285 # A C compiler.
19286 LTCC=$lt_CC
19287
19288 # LTCC compiler flags.
19289 LTCFLAGS=$lt_CFLAGS
19290
19291 # Take the output of nm and produce a listing of raw symbols and C names.
19292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19293
19294 # Transform the output of nm in a proper C declaration.
19295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19296
19297 # Transform the output of nm into a list of symbols to manually relocate.
19298 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19299
19300 # Transform the output of nm in a C name address pair.
19301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19302
19303 # Transform the output of nm in a C name address pair when lib prefix is needed.
19304 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19305
19306 # The name lister interface.
19307 nm_interface=$lt_lt_cv_nm_interface
19308
19309 # Specify filename containing input files for \$NM.
19310 nm_file_list_spec=$lt_nm_file_list_spec
19311
19312 # The root where to search for dependent libraries,and where our libraries should be installed.
19313 lt_sysroot=$lt_sysroot
19314
19315 # Command to truncate a binary pipe.
19316 lt_truncate_bin=$lt_lt_cv_truncate_bin
19317
19318 # The name of the directory that contains temporary libtool files.
19319 objdir=$objdir
19320
19321 # Used to examine libraries when file_magic_cmd begins with "file".
19322 MAGIC_CMD=$MAGIC_CMD
19323
19324 # Must we lock files when doing compilation?
19325 need_locks=$lt_need_locks
19326
19327 # Manifest tool.
19328 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19329
19330 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19331 DSYMUTIL=$lt_DSYMUTIL
19332
19333 # Tool to change global to local symbols on Mac OS X.
19334 NMEDIT=$lt_NMEDIT
19335
19336 # Tool to manipulate fat objects and archives on Mac OS X.
19337 LIPO=$lt_LIPO
19338
19339 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19340 OTOOL=$lt_OTOOL
19341
19342 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19343 OTOOL64=$lt_OTOOL64
19344
19345 # Old archive suffix (normally "a").
19346 libext=$libext
19347
19348 # Shared library suffix (normally ".so").
19349 shrext_cmds=$lt_shrext_cmds
19350
19351 # The commands to extract the exported symbol list from a shared archive.
19352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19353
19354 # Variables whose values should be saved in libtool wrapper scripts and
19355 # restored at link time.
19356 variables_saved_for_relink=$lt_variables_saved_for_relink
19357
19358 # Do we need the "lib" prefix for modules?
19359 need_lib_prefix=$need_lib_prefix
19360
19361 # Do we need a version for libraries?
19362 need_version=$need_version
19363
19364 # Library versioning type.
19365 version_type=$version_type
19366
19367 # Shared library runtime path variable.
19368 runpath_var=$runpath_var
19369
19370 # Shared library path variable.
19371 shlibpath_var=$shlibpath_var
19372
19373 # Is shlibpath searched before the hard-coded library search path?
19374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19375
19376 # Format of library name prefix.
19377 libname_spec=$lt_libname_spec
19378
19379 # List of archive names. First name is the real one, the rest are links.
19380 # The last name is the one that the linker finds with -lNAME
19381 library_names_spec=$lt_library_names_spec
19382
19383 # The coded name of the library, if different from the real name.
19384 soname_spec=$lt_soname_spec
19385
19386 # Permission mode override for installation of shared libraries.
19387 install_override_mode=$lt_install_override_mode
19388
19389 # Command to use after installation of a shared archive.
19390 postinstall_cmds=$lt_postinstall_cmds
19391
19392 # Command to use after uninstallation of a shared archive.
19393 postuninstall_cmds=$lt_postuninstall_cmds
19394
19395 # Commands used to finish a libtool library installation in a directory.
19396 finish_cmds=$lt_finish_cmds
19397
19398 # As "finish_cmds", except a single script fragment to be evaled but
19399 # not shown.
19400 finish_eval=$lt_finish_eval
19401
19402 # Whether we should hardcode library paths into libraries.
19403 hardcode_into_libs=$hardcode_into_libs
19404
19405 # Compile-time system search path for libraries.
19406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19407
19408 # Detected run-time system search path for libraries.
19409 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19410
19411 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19412 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19413
19414 # Whether dlopen is supported.
19415 dlopen_support=$enable_dlopen
19416
19417 # Whether dlopen of programs is supported.
19418 dlopen_self=$enable_dlopen_self
19419
19420 # Whether dlopen of statically linked programs is supported.
19421 dlopen_self_static=$enable_dlopen_self_static
19422
19423 # Commands to strip libraries.
19424 old_striplib=$lt_old_striplib
19425 striplib=$lt_striplib
19426
19427
19428 # The linker used to build libraries.
19429 LD=$lt_LD
19430
19431 # How to create reloadable object files.
19432 reload_flag=$lt_reload_flag
19433 reload_cmds=$lt_reload_cmds
19434
19435 # Commands used to build an old-style archive.
19436 old_archive_cmds=$lt_old_archive_cmds
19437
19438 # A language specific compiler.
19439 CC=$lt_compiler
19440
19441 # Is the compiler the GNU compiler?
19442 with_gcc=$GCC
19443
19444 # Compiler flag to turn off builtin functions.
19445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19446
19447 # Additional compiler flags for building library objects.
19448 pic_flag=$lt_lt_prog_compiler_pic
19449
19450 # How to pass a linker flag through the compiler.
19451 wl=$lt_lt_prog_compiler_wl
19452
19453 # Compiler flag to prevent dynamic linking.
19454 link_static_flag=$lt_lt_prog_compiler_static
19455
19456 # Does compiler simultaneously support -c and -o options?
19457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19458
19459 # Whether or not to add -lc for building shared libraries.
19460 build_libtool_need_lc=$archive_cmds_need_lc
19461
19462 # Whether or not to disallow shared libs when runtime libs are static.
19463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19464
19465 # Compiler flag to allow reflexive dlopens.
19466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19467
19468 # Compiler flag to generate shared objects directly from archives.
19469 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19470
19471 # Whether the compiler copes with passing no objects directly.
19472 compiler_needs_object=$lt_compiler_needs_object
19473
19474 # Create an old-style archive from a shared archive.
19475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19476
19477 # Create a temporary old-style archive to link instead of a shared archive.
19478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19479
19480 # Commands used to build a shared archive.
19481 archive_cmds=$lt_archive_cmds
19482 archive_expsym_cmds=$lt_archive_expsym_cmds
19483
19484 # Commands used to build a loadable module if different from building
19485 # a shared archive.
19486 module_cmds=$lt_module_cmds
19487 module_expsym_cmds=$lt_module_expsym_cmds
19488
19489 # Whether we are building with GNU ld or not.
19490 with_gnu_ld=$lt_with_gnu_ld
19491
19492 # Flag that allows shared libraries with undefined symbols to be built.
19493 allow_undefined_flag=$lt_allow_undefined_flag
19494
19495 # Flag that enforces no undefined symbols.
19496 no_undefined_flag=$lt_no_undefined_flag
19497
19498 # Flag to hardcode \$libdir into a binary during linking.
19499 # This must work even if \$libdir does not exist
19500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19501
19502 # Whether we need a single "-rpath" flag with a separated argument.
19503 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19504
19505 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19506 # DIR into the resulting binary.
19507 hardcode_direct=$hardcode_direct
19508
19509 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19510 # DIR into the resulting binary and the resulting library dependency is
19511 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19512 # library is relocated.
19513 hardcode_direct_absolute=$hardcode_direct_absolute
19514
19515 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19516 # into the resulting binary.
19517 hardcode_minus_L=$hardcode_minus_L
19518
19519 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19520 # into the resulting binary.
19521 hardcode_shlibpath_var=$hardcode_shlibpath_var
19522
19523 # Set to "yes" if building a shared library automatically hardcodes DIR
19524 # into the library and all subsequent libraries and executables linked
19525 # against it.
19526 hardcode_automatic=$hardcode_automatic
19527
19528 # Set to yes if linker adds runtime paths of dependent libraries
19529 # to runtime path list.
19530 inherit_rpath=$inherit_rpath
19531
19532 # Whether libtool must link a program against all its dependency libraries.
19533 link_all_deplibs=$link_all_deplibs
19534
19535 # Set to "yes" if exported symbols are required.
19536 always_export_symbols=$always_export_symbols
19537
19538 # The commands to list exported symbols.
19539 export_symbols_cmds=$lt_export_symbols_cmds
19540
19541 # Symbols that should not be listed in the preloaded symbols.
19542 exclude_expsyms=$lt_exclude_expsyms
19543
19544 # Symbols that must always be exported.
19545 include_expsyms=$lt_include_expsyms
19546
19547 # Commands necessary for linking programs (against libraries) with templates.
19548 prelink_cmds=$lt_prelink_cmds
19549
19550 # Commands necessary for finishing linking programs.
19551 postlink_cmds=$lt_postlink_cmds
19552
19553 # Specify filename containing input files.
19554 file_list_spec=$lt_file_list_spec
19555
19556 # How to hardcode a shared library path into an executable.
19557 hardcode_action=$hardcode_action
19558
19559 # ### END LIBTOOL CONFIG
19560
19561 _LT_EOF
19562
19563 cat <<'_LT_EOF' >> "$cfgfile"
19564
19565 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19566
19567 # func_munge_path_list VARIABLE PATH
19568 # -----------------------------------
19569 # VARIABLE is name of variable containing _space_ separated list of
19570 # directories to be munged by the contents of PATH, which is string
19571 # having a format:
19572 # "DIR[:DIR]:"
19573 # string "DIR[ DIR]" will be prepended to VARIABLE
19574 # ":DIR[:DIR]"
19575 # string "DIR[ DIR]" will be appended to VARIABLE
19576 # "DIRP[:DIRP]::[DIRA:]DIRA"
19577 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19578 # "DIRA[ DIRA]" will be appended to VARIABLE
19579 # "DIR[:DIR]"
19580 # VARIABLE will be replaced by "DIR[ DIR]"
19581 func_munge_path_list ()
19582 {
19583 case x$2 in
19584 x)
19585 ;;
19586 *:)
19587 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19588 ;;
19589 x:*)
19590 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19591 ;;
19592 *::*)
19593 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19594 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19595 ;;
19596 *)
19597 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19598 ;;
19599 esac
19600 }
19601
19602
19603 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19604 func_cc_basename ()
19605 {
19606 for cc_temp in $*""; do
19607 case $cc_temp in
19608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19610 \-*) ;;
19611 *) break;;
19612 esac
19613 done
19614 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19615 }
19616
19617
19618 # ### END FUNCTIONS SHARED WITH CONFIGURE
19619
19620 _LT_EOF
19621
19622 case $host_os in
19623 aix3*)
19624 cat <<\_LT_EOF >> "$cfgfile"
19625 # AIX sometimes has problems with the GCC collect2 program. For some
19626 # reason, if we set the COLLECT_NAMES environment variable, the problems
19627 # vanish in a puff of smoke.
19628 if test set != "${COLLECT_NAMES+set}"; then
19629 COLLECT_NAMES=
19630 export COLLECT_NAMES
19631 fi
19632 _LT_EOF
19633 ;;
19634 esac
19635
19636
19637
19638 ltmain=$ac_aux_dir/ltmain.sh
19639
19640
19641 # We use sed instead of cat because bash on DJGPP gets confused if
19642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19643 # text mode, it properly converts lines to CR/LF. This bash problem
19644 # is reportedly fixed, but why not run on old versions too?
19645 $SED '$q' "$ltmain" >> "$cfgfile" \
19646 || (rm -f "$cfgfile"; exit 1)
19647
19648 mv -f "$cfgfile" "$ofile" ||
19649 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19650 chmod +x "$ofile"
19651
19652 ;;
19653 "test/atconfig":C) cat >test/atconfig <<ATEOF
19654 # Configurable variable values for building test suites.
19655 # Generated by $0.
19656 # Copyright (C) 2021 Free Software Foundation, Inc.
19657
19658 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
19659 at_testdir='test'
19660 abs_builddir='$ac_abs_builddir'
19661 at_srcdir='$ac_srcdir'
19662 abs_srcdir='$ac_abs_srcdir'
19663 at_top_srcdir='$ac_top_srcdir'
19664 abs_top_srcdir='$ac_abs_top_srcdir'
19665 at_top_build_prefix='$ac_top_build_prefix'
19666 abs_top_builddir='$ac_abs_top_builddir'
19667
19668 # Backward compatibility with Autotest <= 2.59b:
19669 at_top_builddir=\$at_top_build_prefix
19670
19671
19672 EXEEXT='$ac_cv_exeext'
19673 AUTOTEST_PATH='test'
19674
19675 SHELL=\${CONFIG_SHELL-'$SHELL'}
19676 ATEOF
19677 ;;
19678
19679 esac
19680 done # for ac_tag
19681
19682
19683 as_fn_exit 0
19684 _ACEOF
19685 ac_clean_files=$ac_clean_files_save
19686
19687 test $ac_write_fail = 0 ||
19688 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19689
19690
19691 # configure is writing to config.log, and then calls config.status.
19692 # config.status does its own redirection, appending to config.log.
19693 # Unfortunately, on DOS this fails, as config.log is still kept open
19694 # by configure, so config.status won't be able to write to it; its
19695 # output is simply discarded. So we exec the FD to /dev/null,
19696 # effectively closing config.log, so it can be properly (re)opened and
19697 # appended to by config.status. When coming back to configure, we
19698 # need to make the FD available again.
19699 if test "$no_create" != yes; then
19700 ac_cs_success=:
19701 ac_config_status_args=
19702 test "$silent" = yes &&
19703 ac_config_status_args="$ac_config_status_args --quiet"
19704 exec 5>/dev/null
19705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19706 exec 5>>config.log
19707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19708 # would make configure fail if this is the last instruction.
19709 $ac_cs_success || as_fn_exit 1
19710 fi
19711 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19713 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19714 fi
19715
19716
19717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19718 printf "%s\n" "" >&6; }
19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: MATIO Configuration Summary " >&5
19720 printf "%s\n" " MATIO Configuration Summary " >&6; }
19721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ==============================================================" >&5
19722 printf "%s\n" "==============================================================" >&6; }
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: C Compiler: $CC" >&5
19724 printf "%s\n" " C Compiler: $CC" >&6; }
19725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CFLAGS: $CFLAGS" >&5
19726 printf "%s\n" " CFLAGS: $CFLAGS" >&6; }
19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Shared Libraries: $enable_shared" >&5
19728 printf "%s\n" " Shared Libraries: $enable_shared" >&6; }
19729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Static Libraries: $enable_static" >&5
19730 printf "%s\n" " Static Libraries: $enable_static" >&6; }
19731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default MAT version: $file_ver" >&5
19732 printf "%s\n" " default MAT version: $file_ver" >&6; }
19733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19734 printf "%s\n" "" >&6; }
19735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Features --------------------------------------------" >&5
19736 printf "%s\n" "Features --------------------------------------------" >&6; }
19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: MAT v7.3 file support: $mat73" >&5
19738 printf "%s\n" " MAT v7.3 file support: $mat73" >&6; }
19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Extended sparse support: $extended_sparse" >&5
19740 printf "%s\n" "Extended sparse support: $extended_sparse" >&6; }
19741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19742 printf "%s\n" "" >&6; }
19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Packages --------------------------------------------" >&5
19744 printf "%s\n" "Packages --------------------------------------------" >&6; }
19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: zlib: $ZLIB_LIBS" >&5
19746 printf "%s\n" " zlib: $ZLIB_LIBS" >&6; }
19747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: hdf5: $HDF5_LIBS" >&5
19748 printf "%s\n" " hdf5: $HDF5_LIBS" >&6; }
19749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: MATLAB: $MATLABEXE" >&5
19750 printf "%s\n" " MATLAB: $MATLABEXE" >&6; }
19751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19752 printf "%s\n" "" >&6; }
19753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19754 printf "%s\n" "" >&6; }
19755