comparison src/fftw-3.3.8/configure @ 167:bd3cc4d1df30

Add FFTW 3.3.8 source, and a Linux build
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 19 Nov 2019 14:52:55 +0000
parents
children
comparison
equal deleted inserted replaced
166:cbd6d7e562c7 167:bd3cc4d1df30
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fftw 3.3.8.
4 #
5 # Report bugs to <fftw@fftw.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and fftw@fftw.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='fftw'
592 PACKAGE_TARNAME='fftw'
593 PACKAGE_VERSION='3.3.8'
594 PACKAGE_STRING='fftw 3.3.8'
595 PACKAGE_BUGREPORT='fftw@fftw.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="kernel/ifftw.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 COMBINED_THREADS_FALSE
639 COMBINED_THREADS_TRUE
640 SMP_FALSE
641 SMP_TRUE
642 OPENMP_FALSE
643 OPENMP_TRUE
644 THREADS_FALSE
645 THREADS_TRUE
646 THREADLIBS
647 PTHREAD_CFLAGS
648 PTHREAD_LIBS
649 PTHREAD_CC
650 acx_pthread_config
651 OPENMP_CFLAGS
652 FLIBS
653 ac_ct_F77
654 FFLAGS
655 F77
656 INDENT
657 LIBQUADMATH
658 LIBOBJS
659 POW_LIB
660 ALLOCA
661 C_FFTW_R2R_KIND
662 STACK_ALIGN_CFLAGS
663 NEON_CFLAGS
664 VSX_CFLAGS
665 ALTIVEC_CFLAGS
666 KCVI_CFLAGS
667 AVX512_CFLAGS
668 AVX2_CFLAGS
669 AVX_CFLAGS
670 SSE2_CFLAGS
671 MPI_FALSE
672 MPI_TRUE
673 C_MPI_FINT
674 MPIRUN
675 MPILIBS
676 MPICC
677 OCAMLBUILD
678 CPP
679 LT_SYS_LIBRARY_PATH
680 OTOOL64
681 OTOOL
682 LIPO
683 NMEDIT
684 DSYMUTIL
685 MANIFEST_TOOL
686 RANLIB
687 ac_ct_AR
688 AR
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 EGREP
695 GREP
696 SED
697 LIBTOOL
698 OBJDUMP
699 DLLTOOL
700 AS
701 LN_S
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 PREC_SUFFIX
720 HAVE_GENERIC_SIMD256_FALSE
721 HAVE_GENERIC_SIMD256_TRUE
722 HAVE_GENERIC_SIMD128_FALSE
723 HAVE_GENERIC_SIMD128_TRUE
724 HAVE_NEON_FALSE
725 HAVE_NEON_TRUE
726 HAVE_VSX_FALSE
727 HAVE_VSX_TRUE
728 HAVE_ALTIVEC_FALSE
729 HAVE_ALTIVEC_TRUE
730 HAVE_KCVI_FALSE
731 HAVE_KCVI_TRUE
732 HAVE_AVX_128_FMA_FALSE
733 HAVE_AVX_128_FMA_TRUE
734 AVX_128_FMA_CFLAGS
735 HAVE_AVX512_FALSE
736 HAVE_AVX512_TRUE
737 HAVE_AVX2_FALSE
738 HAVE_AVX2_TRUE
739 HAVE_AVX_FALSE
740 HAVE_AVX_TRUE
741 HAVE_SSE2_FALSE
742 HAVE_SSE2_TRUE
743 CHECK_PL_OPTS
744 PRECISION
745 QUAD_FALSE
746 QUAD_TRUE
747 LDOUBLE_FALSE
748 LDOUBLE_TRUE
749 SINGLE_FALSE
750 SINGLE_TRUE
751 BUILD_DOC_FALSE
752 BUILD_DOC_TRUE
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 SHARED_VERSION_INFO
762 MAINT
763 MAINTAINER_MODE_FALSE
764 MAINTAINER_MODE_TRUE
765 AM_BACKSLASH
766 AM_DEFAULT_VERBOSITY
767 AM_DEFAULT_V
768 AM_V
769 am__untar
770 am__tar
771 AMTAR
772 am__leading_dot
773 SET_MAKE
774 AWK
775 mkdir_p
776 MKDIR_P
777 INSTALL_STRIP_PROGRAM
778 STRIP
779 install_sh
780 MAKEINFO
781 AUTOHEADER
782 AUTOMAKE
783 AUTOCONF
784 ACLOCAL
785 VERSION
786 PACKAGE
787 CYGPATH_W
788 am__isrc
789 INSTALL_DATA
790 INSTALL_SCRIPT
791 INSTALL_PROGRAM
792 target_alias
793 host_alias
794 build_alias
795 LIBS
796 ECHO_T
797 ECHO_N
798 ECHO_C
799 DEFS
800 mandir
801 localedir
802 libdir
803 psdir
804 pdfdir
805 dvidir
806 htmldir
807 infodir
808 docdir
809 oldincludedir
810 includedir
811 runstatedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_silent_rules
835 enable_maintainer_mode
836 enable_shared
837 enable_debug
838 enable_doc
839 enable_random_estimator
840 enable_alloca
841 enable_single
842 enable_float
843 enable_long_double
844 enable_quad_precision
845 enable_sse
846 enable_sse2
847 enable_avx
848 enable_avx2
849 enable_avx512
850 enable_avx_128_fma
851 enable_kcvi
852 enable_altivec
853 enable_vsx
854 enable_neon
855 enable_armv8_pmccntr_el0
856 enable_armv8_cntvct_el0
857 enable_armv7a_cntvct
858 enable_armv7a_pmccntr
859 enable_generic_simd128
860 enable_generic_simd256
861 with_slow_timer
862 enable_mips_zbus_timer
863 with_our_malloc
864 with_our_malloc16
865 with_windows_f77_mangling
866 with_incoming_stack_boundary
867 enable_fma
868 enable_dependency_tracking
869 enable_static
870 with_pic
871 enable_fast_install
872 with_aix_soname
873 with_gnu_ld
874 with_sysroot
875 enable_libtool_lock
876 enable_mpi
877 enable_fortran
878 with_g77_wrappers
879 enable_openmp
880 enable_threads
881 with_combined_threads
882 '
883 ac_precious_vars='build_alias
884 host_alias
885 target_alias
886 CC
887 CFLAGS
888 LDFLAGS
889 LIBS
890 CPPFLAGS
891 LT_SYS_LIBRARY_PATH
892 CPP
893 MPICC
894 F77
895 FFLAGS'
896
897
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 ac_unrecognized_opts=
902 ac_unrecognized_sep=
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
905 cache_file=/dev/null
906 exec_prefix=NONE
907 no_create=
908 no_recursion=
909 prefix=NONE
910 program_prefix=NONE
911 program_suffix=NONE
912 program_transform_name=s,x,x,
913 silent=
914 site=
915 srcdir=
916 verbose=
917 x_includes=NONE
918 x_libraries=NONE
919
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 runstatedir='${localstatedir}/run'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
956 fi
957
958 case $ac_option in
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
994
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1027
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1063
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1068
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1098
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1172
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -runstatedir | --runstatedir | --runstatedi | --runstated \
1188 | --runstate | --runstat | --runsta | --runst | --runs \
1189 | --run | --ru | --r)
1190 ac_prev=runstatedir ;;
1191 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1192 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1193 | --run=* | --ru=* | --r=*)
1194 runstatedir=$ac_optarg ;;
1195
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 ac_prev=sbindir ;;
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 | --sbi=* | --sb=*)
1200 sbindir=$ac_optarg ;;
1201
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1205 | --sha | --sh)
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 | --sha=* | --sh=*)
1211 sharedstatedir=$ac_optarg ;;
1212
1213 -site | --site | --sit)
1214 ac_prev=site ;;
1215 -site=* | --site=* | --sit=*)
1216 site=$ac_optarg ;;
1217
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 ac_prev=srcdir ;;
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1222
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1229
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1234
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 verbose=yes ;;
1237
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1240
1241 -with-* | --with-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=\$ac_optarg ;;
1256
1257 -without-* | --without-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=no ;;
1272
1273 --x)
1274 # Obsolete; use --with-x.
1275 with_x=yes ;;
1276
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1283
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1290
1291 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1293 ;;
1294
1295 *=*)
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
1300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1301 esac
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1304
1305 *)
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 ;;
1312
1313 esac
1314 done
1315
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $? "missing argument to $ac_option"
1319 fi
1320
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1323 no) ;;
1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 esac
1327 fi
1328
1329 # Check all directory arguments for consistency.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir runstatedir
1334 do
1335 eval ac_val=\$$ac_var
1336 # Remove trailing slashes.
1337 case $ac_val in
1338 */ )
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1341 esac
1342 # Be sure to have absolute directory names.
1343 case $ac_val in
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 esac
1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1348 done
1349
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1356
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $? "working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $? "pwd does not report name of working directory"
1378
1379
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 $as_echo X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
1407 srcdir=$ac_confdir
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 srcdir=..
1410 fi
1411 else
1412 ac_srcdir_defaulted=no
1413 fi
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1417 fi
1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 ac_abs_confdir=`(
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421 pwd)`
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1425 fi
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1429 case $srcdir in
1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 esac
1432 for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 done
1438
1439 #
1440 # Report the --help message.
1441 #
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446 \`configure' configures fftw 3.3.8 to adapt to many kinds of systems.
1447
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1452
1453 Defaults for the options are specified in brackets.
1454
1455 Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470 [PREFIX]
1471
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1476
1477 For better control, use the options below.
1478
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/fftw]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1500 _ACEOF
1501
1502 cat <<\_ACEOF
1503
1504 Program names:
1505 --program-prefix=PREFIX prepend PREFIX to installed program names
1506 --program-suffix=SUFFIX append SUFFIX to installed program names
1507 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508
1509 System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 _ACEOF
1513 fi
1514
1515 if test -n "$ac_init_help"; then
1516 case $ac_init_help in
1517 short | recursive ) echo "Configuration of fftw 3.3.8:";;
1518 esac
1519 cat <<\_ACEOF
1520
1521 Optional Features:
1522 --disable-option-checking ignore unrecognized --enable/--with options
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1525 --enable-silent-rules less verbose build output (undo: "make V=1")
1526 --disable-silent-rules verbose build output (undo: "make V=0")
1527 --enable-maintainer-mode
1528 enable make rules and dependencies not useful (and
1529 sometimes confusing) to the casual installer
1530 --enable-shared[=PKGS] build shared libraries [default=no]
1531 --enable-debug compile fftw with extra runtime checks for debugging
1532 --disable-doc disable building the documentation
1533 --enable-random-estimator
1534 enable pseudorandom estimator (debugging hack)
1535 --disable-alloca disable use of the alloca() function (may be broken
1536 on mingw64)
1537 --enable-single compile fftw in single precision
1538 --enable-float synonym for --enable-single
1539 --enable-long-double compile fftw in long-double precision
1540 --enable-quad-precision compile fftw in quadruple precision if available
1541 --enable-sse enable SSE optimizations
1542 --enable-sse2 enable SSE/SSE2 optimizations
1543 --enable-avx enable AVX optimizations
1544 --enable-avx2 enable AVX2 optimizations
1545 --enable-avx512 enable AVX512 optimizations
1546 --enable-avx-128-fma enable AVX128/FMA optimizations
1547 --enable-kcvi enable Knights Corner vector instructions
1548 optimizations
1549 --enable-altivec enable Altivec optimizations
1550 --enable-vsx enable IBM VSX optimizations
1551 --enable-neon enable ARM NEON optimizations
1552 --enable-armv8-pmccntr-el0
1553 enable the cycle counter on ARMv8 via the
1554 PMCCNTR_EL0 register (see README-perfcounters for
1555 details and mandatory instructions)
1556 --enable-armv8-cntvct-el0
1557 enable the cycle counter on ARMv8 via the CNTVCT_EL0
1558 register (see README-perfcounters for details and
1559 mandatory instructions)
1560 --enable-armv7a-cntvct enable the cycle counter on Armv7a via the CNTVCT
1561 register (see README-perfcounters for details and
1562 mandatory instructions)
1563 --enable-armv7a-pmccntr enable the cycle counter on Armv7a via the PMCCNTR
1564 register (see README-perfcounters for details and
1565 mandatory instructions)
1566 --enable-generic-simd128
1567 enable generic (gcc) 128-bit SIMD optimizations
1568 --enable-generic-simd256
1569 enable generic (gcc) 256-bit SIMD optimizations
1570 --enable-mips-zbus-timer
1571 use MIPS ZBus cycle-counter
1572 --enable-fma enable if the machine architecture "naturally"
1573 prefers fused multiply-add instructions
1574 --enable-dependency-tracking
1575 do not reject slow dependency extractors
1576 --disable-dependency-tracking
1577 speeds up one-time build
1578 --enable-static[=PKGS] build static libraries [default=yes]
1579 --enable-fast-install[=PKGS]
1580 optimize for fast installation [default=yes]
1581 --disable-libtool-lock avoid locking (might break parallel builds)
1582 --enable-mpi compile FFTW MPI library
1583 --disable-fortran don't include Fortran-callable wrappers
1584 --enable-openmp use OpenMP directives for parallelism
1585 --enable-threads compile FFTW SMP threads library
1586
1587 Optional Packages:
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-slow-timer use low-precision timers (SLOW)
1591 --with-our-malloc use our aligned malloc (helpful for Win32)
1592 --with-our-malloc16 Obsolete alias for --with-our-malloc16
1593 --with-windows-f77-mangling
1594 use common Win32 Fortran interface styles
1595 --with-incoming-stack-boundary=X
1596 Assume that stack is aligned to (1<<X) bytes
1597 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1598 both]
1599 --with-aix-soname=aix|svr4|both
1600 shared library versioning (aka "SONAME") variant to
1601 provide on AIX, [default=aix].
1602 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1603 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1604 compiler's sysroot if not specified).
1605 --with-g77-wrappers force inclusion of g77-compatible wrappers in
1606 addition to any other Fortran compiler that is
1607 detected
1608 --with-combined-threads combine threads into main libfftw3
1609
1610 Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1618 LT_SYS_LIBRARY_PATH
1619 User-defined run-time library search path.
1620 CPP C preprocessor
1621 MPICC MPI C compiler command
1622 F77 Fortran 77 compiler command
1623 FFLAGS Fortran 77 compiler flags
1624
1625 Use these variables to override the choices made by `configure' or to help
1626 it to find libraries and programs with nonstandard names/locations.
1627
1628 Report bugs to <fftw@fftw.org>.
1629 _ACEOF
1630 ac_status=$?
1631 fi
1632
1633 if test "$ac_init_help" = "recursive"; then
1634 # If there are subdirs, report their specific --help.
1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636 test -d "$ac_dir" ||
1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638 continue
1639 ac_builddir=.
1640
1641 case "$ac_dir" in
1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *)
1644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645 # A ".." for each directory in $ac_dir_suffix.
1646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647 case $ac_top_builddir_sub in
1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650 esac ;;
1651 esac
1652 ac_abs_top_builddir=$ac_pwd
1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654 # for backward compatibility:
1655 ac_top_builddir=$ac_top_build_prefix
1656
1657 case $srcdir in
1658 .) # We are building in place.
1659 ac_srcdir=.
1660 ac_top_srcdir=$ac_top_builddir_sub
1661 ac_abs_top_srcdir=$ac_pwd ;;
1662 [\\/]* | ?:[\\/]* ) # Absolute name.
1663 ac_srcdir=$srcdir$ac_dir_suffix;
1664 ac_top_srcdir=$srcdir
1665 ac_abs_top_srcdir=$srcdir ;;
1666 *) # Relative name.
1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668 ac_top_srcdir=$ac_top_build_prefix$srcdir
1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 esac
1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673 cd "$ac_dir" || { ac_status=$?; continue; }
1674 # Check for guested configure.
1675 if test -f "$ac_srcdir/configure.gnu"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678 elif test -f "$ac_srcdir/configure"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure" --help=recursive
1681 else
1682 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 fi || ac_status=$?
1684 cd "$ac_pwd" || { ac_status=$?; break; }
1685 done
1686 fi
1687
1688 test -n "$ac_init_help" && exit $ac_status
1689 if $ac_init_version; then
1690 cat <<\_ACEOF
1691 fftw configure 3.3.8
1692 generated by GNU Autoconf 2.69
1693
1694 Copyright (C) 2012 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1697 _ACEOF
1698 exit
1699 fi
1700
1701 ## ------------------------ ##
1702 ## Autoconf initialization. ##
1703 ## ------------------------ ##
1704
1705 # ac_fn_c_try_compile LINENO
1706 # --------------------------
1707 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_compile ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext
1712 if { { ac_try="$ac_compile"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_compile") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest.$ac_objext; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_compile
1742
1743 # ac_fn_c_try_link LINENO
1744 # -----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_link ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
1770 test -x conftest$ac_exeext
1771 }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778 fi
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_link
1788
1789 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists and can be compiled using the include files in
1792 # INCLUDES, setting the cache variable VAR accordingly.
1793 ac_fn_c_check_header_compile ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1800 else
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 $4
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 eval "$3=yes"
1808 else
1809 eval "$3=no"
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 fi
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818 } # ac_fn_c_check_header_compile
1819
1820 # ac_fn_c_try_cpp LINENO
1821 # ----------------------
1822 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_cpp ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_cpp conftest.$ac_ext"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } > conftest.i && {
1842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851 fi
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855 } # ac_fn_c_try_cpp
1856
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860 # that executables *can* be run.
1861 ac_fn_c_try_run ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875 { { case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_try") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; }; }; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: program exited with status $ac_status" >&5
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=$ac_status
1892 fi
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_try_run
1898
1899 # ac_fn_c_check_func LINENO FUNC VAR
1900 # ----------------------------------
1901 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1902 ac_fn_c_check_func ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1914 #define $2 innocuous_$2
1915
1916 /* System header to define __stub macros and hopefully few prototypes,
1917 which can conflict with char $2 (); below.
1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1919 <limits.h> exists even on freestanding compilers. */
1920
1921 #ifdef __STDC__
1922 # include <limits.h>
1923 #else
1924 # include <assert.h>
1925 #endif
1926
1927 #undef $2
1928
1929 /* Override any GCC internal prototype to avoid an error.
1930 Use char because int might match the return type of a GCC
1931 builtin and then its argument prototype would still apply. */
1932 #ifdef __cplusplus
1933 extern "C"
1934 #endif
1935 char $2 ();
1936 /* The GNU C library defines this for functions which it implements
1937 to always fail with ENOSYS. Some functions are actually named
1938 something starting with __ and the normal name is an alias. */
1939 #if defined __stub_$2 || defined __stub___$2
1940 choke me
1941 #endif
1942
1943 int
1944 main ()
1945 {
1946 return $2 ();
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_link "$LINENO"; then :
1952 eval "$3=yes"
1953 else
1954 eval "$3=no"
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext \
1957 conftest$ac_exeext conftest.$ac_ext
1958 fi
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964 } # ac_fn_c_check_func
1965
1966 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1967 # --------------------------------------------
1968 # Tries to find the compile-time value of EXPR in a program that includes
1969 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1970 # computed
1971 ac_fn_c_compute_int ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if test "$cross_compiling" = yes; then
1975 # Depending upon the size, compute the lo and hi bounds.
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $4
1979 int
1980 main ()
1981 {
1982 static int test_array [1 - 2 * !(($2) >= 0)];
1983 test_array [0] = 0;
1984 return test_array [0];
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_lo=0 ac_mid=0
1992 while :; do
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 int
1997 main ()
1998 {
1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000 test_array [0] = 0;
2001 return test_array [0];
2002
2003 ;
2004 return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_hi=$ac_mid; break
2009 else
2010 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2011 if test $ac_lo -le $ac_mid; then
2012 ac_lo= ac_hi=
2013 break
2014 fi
2015 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 done
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main ()
2025 {
2026 static int test_array [1 - 2 * !(($2) < 0)];
2027 test_array [0] = 0;
2028 return test_array [0];
2029
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 ac_hi=-1 ac_mid=-1
2036 while :; do
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 $4
2040 int
2041 main ()
2042 {
2043 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2044 test_array [0] = 0;
2045 return test_array [0];
2046
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_lo=$ac_mid; break
2053 else
2054 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2055 if test $ac_mid -le $ac_hi; then
2056 ac_lo= ac_hi=
2057 break
2058 fi
2059 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 done
2063 else
2064 ac_lo= ac_hi=
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 # Binary search between lo and hi bounds.
2070 while test "x$ac_lo" != "x$ac_hi"; do
2071 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0;
2080 return test_array [0];
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid
2088 else
2089 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 done
2093 case $ac_lo in #((
2094 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2095 '') ac_retval=1 ;;
2096 esac
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 static long int longval () { return $2; }
2102 static unsigned long int ulongval () { return $2; }
2103 #include <stdio.h>
2104 #include <stdlib.h>
2105 int
2106 main ()
2107 {
2108
2109 FILE *f = fopen ("conftest.val", "w");
2110 if (! f)
2111 return 1;
2112 if (($2) < 0)
2113 {
2114 long int i = longval ();
2115 if (i != ($2))
2116 return 1;
2117 fprintf (f, "%ld", i);
2118 }
2119 else
2120 {
2121 unsigned long int i = ulongval ();
2122 if (i != ($2))
2123 return 1;
2124 fprintf (f, "%lu", i);
2125 }
2126 /* Do not output a trailing newline, as this causes \r\n confusion
2127 on some platforms. */
2128 return ferror (f) || fclose (f) != 0;
2129
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_run "$LINENO"; then :
2135 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2136 else
2137 ac_retval=1
2138 fi
2139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2140 conftest.$ac_objext conftest.beam conftest.$ac_ext
2141 rm -f conftest.val
2142
2143 fi
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 as_fn_set_status $ac_retval
2146
2147 } # ac_fn_c_compute_int
2148
2149 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2152 # the include files in INCLUDES and setting the cache variable VAR
2153 # accordingly.
2154 ac_fn_c_check_header_mongrel ()
2155 {
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if eval \${$3+:} false; then :
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval \${$3+:} false; then :
2161 $as_echo_n "(cached) " >&6
2162 fi
2163 eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 else
2167 # Is the header compilable?
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2169 $as_echo_n "checking $2 usability... " >&6; }
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 $4
2173 #include <$2>
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_header_compiler=yes
2177 else
2178 ac_header_compiler=no
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2182 $as_echo "$ac_header_compiler" >&6; }
2183
2184 # Is the header present?
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2186 $as_echo_n "checking $2 presence... " >&6; }
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2189 #include <$2>
2190 _ACEOF
2191 if ac_fn_c_try_cpp "$LINENO"; then :
2192 ac_header_preproc=yes
2193 else
2194 ac_header_preproc=no
2195 fi
2196 rm -f conftest.err conftest.i conftest.$ac_ext
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2198 $as_echo "$ac_header_preproc" >&6; }
2199
2200 # So? What about this header?
2201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2202 yes:no: )
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2204 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2207 ;;
2208 no:yes:* )
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2210 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2212 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2214 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2216 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2218 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2219 ( $as_echo "## ---------------------------- ##
2220 ## Report this to fftw@fftw.org ##
2221 ## ---------------------------- ##"
2222 ) | sed "s/^/$as_me: WARNING: /" >&2
2223 ;;
2224 esac
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2229 else
2230 eval "$3=\$ac_header_compiler"
2231 fi
2232 eval ac_res=\$$3
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2235 fi
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237
2238 } # ac_fn_c_check_header_mongrel
2239
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type ()
2245 {
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \${$3+:} false; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 eval "$3=no"
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2255 $4
2256 int
2257 main ()
2258 {
2259 if (sizeof ($2))
2260 return 0;
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof (($2)))
2273 return 0;
2274 ;
2275 return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279
2280 else
2281 eval "$3=yes"
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 fi
2287 eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291
2292 } # ac_fn_c_check_type
2293
2294 # ac_fn_c_find_uintX_t LINENO BITS VAR
2295 # ------------------------------------
2296 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2297 # accordingly.
2298 ac_fn_c_find_uintX_t ()
2299 {
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2302 $as_echo_n "checking for uint$2_t... " >&6; }
2303 if eval \${$3+:} false; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 eval "$3=no"
2307 # Order is important - never check a type that is potentially smaller
2308 # than half of the expected target width.
2309 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2310 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2313 $ac_includes_default
2314 int
2315 main ()
2316 {
2317 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2318 test_array [0] = 0;
2319 return test_array [0];
2320
2321 ;
2322 return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_compile "$LINENO"; then :
2326 case $ac_type in #(
2327 uint$2_t) :
2328 eval "$3=yes" ;; #(
2329 *) :
2330 eval "$3=\$ac_type" ;;
2331 esac
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 if eval test \"x\$"$3"\" = x"no"; then :
2335
2336 else
2337 break
2338 fi
2339 done
2340 fi
2341 eval ac_res=\$$3
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2345
2346 } # ac_fn_c_find_uintX_t
2347
2348 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2349 # ---------------------------------------------
2350 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2351 # accordingly.
2352 ac_fn_c_check_decl ()
2353 {
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 as_decl_name=`echo $2|sed 's/ *(.*//'`
2356 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2358 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2359 if eval \${$3+:} false; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2364 $4
2365 int
2366 main ()
2367 {
2368 #ifndef $as_decl_name
2369 #ifdef __cplusplus
2370 (void) $as_decl_use;
2371 #else
2372 (void) $as_decl_name;
2373 #endif
2374 #endif
2375
2376 ;
2377 return 0;
2378 }
2379 _ACEOF
2380 if ac_fn_c_try_compile "$LINENO"; then :
2381 eval "$3=yes"
2382 else
2383 eval "$3=no"
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 fi
2387 eval ac_res=\$$3
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391
2392 } # ac_fn_c_check_decl
2393
2394 # ac_fn_f77_try_compile LINENO
2395 # ----------------------------
2396 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2397 ac_fn_f77_try_compile ()
2398 {
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 rm -f conftest.$ac_objext
2401 if { { ac_try="$ac_compile"
2402 case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2405 esac
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408 (eval "$ac_compile") 2>conftest.err
2409 ac_status=$?
2410 if test -s conftest.err; then
2411 grep -v '^ *+' conftest.err >conftest.er1
2412 cat conftest.er1 >&5
2413 mv -f conftest.er1 conftest.err
2414 fi
2415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416 test $ac_status = 0; } && {
2417 test -z "$ac_f77_werror_flag" ||
2418 test ! -s conftest.err
2419 } && test -s conftest.$ac_objext; then :
2420 ac_retval=0
2421 else
2422 $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_retval=1
2426 fi
2427 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428 as_fn_set_status $ac_retval
2429
2430 } # ac_fn_f77_try_compile
2431
2432 # ac_fn_f77_try_link LINENO
2433 # -------------------------
2434 # Try to link conftest.$ac_ext, and return whether this succeeded.
2435 ac_fn_f77_try_link ()
2436 {
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 rm -f conftest.$ac_objext conftest$ac_exeext
2439 if { { ac_try="$ac_link"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2445 $as_echo "$ac_try_echo"; } >&5
2446 (eval "$ac_link") 2>conftest.err
2447 ac_status=$?
2448 if test -s conftest.err; then
2449 grep -v '^ *+' conftest.err >conftest.er1
2450 cat conftest.er1 >&5
2451 mv -f conftest.er1 conftest.err
2452 fi
2453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2454 test $ac_status = 0; } && {
2455 test -z "$ac_f77_werror_flag" ||
2456 test ! -s conftest.err
2457 } && test -s conftest$ac_exeext && {
2458 test "$cross_compiling" = yes ||
2459 test -x conftest$ac_exeext
2460 }; then :
2461 ac_retval=0
2462 else
2463 $as_echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466 ac_retval=1
2467 fi
2468 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2469 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2470 # interfere with the next link command; also delete a directory that is
2471 # left behind by Apple's compiler. We do this before executing the actions.
2472 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474 as_fn_set_status $ac_retval
2475
2476 } # ac_fn_f77_try_link
2477 cat >config.log <<_ACEOF
2478 This file contains any messages produced by compilers while
2479 running configure, to aid debugging if configure makes a mistake.
2480
2481 It was created by fftw $as_me 3.3.8, which was
2482 generated by GNU Autoconf 2.69. Invocation command line was
2483
2484 $ $0 $@
2485
2486 _ACEOF
2487 exec 5>>config.log
2488 {
2489 cat <<_ASUNAME
2490 ## --------- ##
2491 ## Platform. ##
2492 ## --------- ##
2493
2494 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2495 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2496 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2497 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2498 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2499
2500 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2501 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2502
2503 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2504 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2505 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2506 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2507 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2508 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2509 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2510
2511 _ASUNAME
2512
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 $as_echo "PATH: $as_dir"
2519 done
2520 IFS=$as_save_IFS
2521
2522 } >&5
2523
2524 cat >&5 <<_ACEOF
2525
2526
2527 ## ----------- ##
2528 ## Core tests. ##
2529 ## ----------- ##
2530
2531 _ACEOF
2532
2533
2534 # Keep a trace of the command line.
2535 # Strip out --no-create and --no-recursion so they do not pile up.
2536 # Strip out --silent because we don't want to record it for future runs.
2537 # Also quote any args containing shell meta-characters.
2538 # Make two passes to allow for proper duplicate-argument suppression.
2539 ac_configure_args=
2540 ac_configure_args0=
2541 ac_configure_args1=
2542 ac_must_keep_next=false
2543 for ac_pass in 1 2
2544 do
2545 for ac_arg
2546 do
2547 case $ac_arg in
2548 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2550 | -silent | --silent | --silen | --sile | --sil)
2551 continue ;;
2552 *\'*)
2553 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2554 esac
2555 case $ac_pass in
2556 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2557 2)
2558 as_fn_append ac_configure_args1 " '$ac_arg'"
2559 if test $ac_must_keep_next = true; then
2560 ac_must_keep_next=false # Got value, back to normal.
2561 else
2562 case $ac_arg in
2563 *=* | --config-cache | -C | -disable-* | --disable-* \
2564 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2565 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2566 | -with-* | --with-* | -without-* | --without-* | --x)
2567 case "$ac_configure_args0 " in
2568 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2569 esac
2570 ;;
2571 -* ) ac_must_keep_next=true ;;
2572 esac
2573 fi
2574 as_fn_append ac_configure_args " '$ac_arg'"
2575 ;;
2576 esac
2577 done
2578 done
2579 { ac_configure_args0=; unset ac_configure_args0;}
2580 { ac_configure_args1=; unset ac_configure_args1;}
2581
2582 # When interrupted or exit'd, cleanup temporary files, and complete
2583 # config.log. We remove comments because anyway the quotes in there
2584 # would cause problems or look ugly.
2585 # WARNING: Use '\'' to represent an apostrophe within the trap.
2586 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2587 trap 'exit_status=$?
2588 # Save into config.log some information that might help in debugging.
2589 {
2590 echo
2591
2592 $as_echo "## ---------------- ##
2593 ## Cache variables. ##
2594 ## ---------------- ##"
2595 echo
2596 # The following way of writing the cache mishandles newlines in values,
2597 (
2598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2599 eval ac_val=\$$ac_var
2600 case $ac_val in #(
2601 *${as_nl}*)
2602 case $ac_var in #(
2603 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2604 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2605 esac
2606 case $ac_var in #(
2607 _ | IFS | as_nl) ;; #(
2608 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2609 *) { eval $ac_var=; unset $ac_var;} ;;
2610 esac ;;
2611 esac
2612 done
2613 (set) 2>&1 |
2614 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2615 *${as_nl}ac_space=\ *)
2616 sed -n \
2617 "s/'\''/'\''\\\\'\'''\''/g;
2618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2619 ;; #(
2620 *)
2621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2622 ;;
2623 esac |
2624 sort
2625 )
2626 echo
2627
2628 $as_echo "## ----------------- ##
2629 ## Output variables. ##
2630 ## ----------------- ##"
2631 echo
2632 for ac_var in $ac_subst_vars
2633 do
2634 eval ac_val=\$$ac_var
2635 case $ac_val in
2636 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2637 esac
2638 $as_echo "$ac_var='\''$ac_val'\''"
2639 done | sort
2640 echo
2641
2642 if test -n "$ac_subst_files"; then
2643 $as_echo "## ------------------- ##
2644 ## File substitutions. ##
2645 ## ------------------- ##"
2646 echo
2647 for ac_var in $ac_subst_files
2648 do
2649 eval ac_val=\$$ac_var
2650 case $ac_val in
2651 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2652 esac
2653 $as_echo "$ac_var='\''$ac_val'\''"
2654 done | sort
2655 echo
2656 fi
2657
2658 if test -s confdefs.h; then
2659 $as_echo "## ----------- ##
2660 ## confdefs.h. ##
2661 ## ----------- ##"
2662 echo
2663 cat confdefs.h
2664 echo
2665 fi
2666 test "$ac_signal" != 0 &&
2667 $as_echo "$as_me: caught signal $ac_signal"
2668 $as_echo "$as_me: exit $exit_status"
2669 } >&5
2670 rm -f core *.core core.conftest.* &&
2671 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2672 exit $exit_status
2673 ' 0
2674 for ac_signal in 1 2 13 15; do
2675 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2676 done
2677 ac_signal=0
2678
2679 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2680 rm -f -r conftest* confdefs.h
2681
2682 $as_echo "/* confdefs.h */" > confdefs.h
2683
2684 # Predefined preprocessor variables.
2685
2686 cat >>confdefs.h <<_ACEOF
2687 #define PACKAGE_NAME "$PACKAGE_NAME"
2688 _ACEOF
2689
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2692 _ACEOF
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2696 _ACEOF
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_STRING "$PACKAGE_STRING"
2700 _ACEOF
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2704 _ACEOF
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_URL "$PACKAGE_URL"
2708 _ACEOF
2709
2710
2711 # Let the site file select an alternate cache file if it wants to.
2712 # Prefer an explicitly selected file to automatically selected ones.
2713 ac_site_file1=NONE
2714 ac_site_file2=NONE
2715 if test -n "$CONFIG_SITE"; then
2716 # We do not want a PATH search for config.site.
2717 case $CONFIG_SITE in #((
2718 -*) ac_site_file1=./$CONFIG_SITE;;
2719 */*) ac_site_file1=$CONFIG_SITE;;
2720 *) ac_site_file1=./$CONFIG_SITE;;
2721 esac
2722 elif test "x$prefix" != xNONE; then
2723 ac_site_file1=$prefix/share/config.site
2724 ac_site_file2=$prefix/etc/config.site
2725 else
2726 ac_site_file1=$ac_default_prefix/share/config.site
2727 ac_site_file2=$ac_default_prefix/etc/config.site
2728 fi
2729 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2730 do
2731 test "x$ac_site_file" = xNONE && continue
2732 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2734 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2735 sed 's/^/| /' "$ac_site_file" >&5
2736 . "$ac_site_file" \
2737 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739 as_fn_error $? "failed to load site script $ac_site_file
2740 See \`config.log' for more details" "$LINENO" 5; }
2741 fi
2742 done
2743
2744 if test -r "$cache_file"; then
2745 # Some versions of bash will fail to source /dev/null (special files
2746 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2747 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2749 $as_echo "$as_me: loading cache $cache_file" >&6;}
2750 case $cache_file in
2751 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2752 *) . "./$cache_file";;
2753 esac
2754 fi
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2757 $as_echo "$as_me: creating cache $cache_file" >&6;}
2758 >$cache_file
2759 fi
2760
2761 # Check that the precious variables saved in the cache have kept the same
2762 # value.
2763 ac_cache_corrupted=false
2764 for ac_var in $ac_precious_vars; do
2765 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2766 eval ac_new_set=\$ac_env_${ac_var}_set
2767 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2768 eval ac_new_val=\$ac_env_${ac_var}_value
2769 case $ac_old_set,$ac_new_set in
2770 set,)
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2772 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2773 ac_cache_corrupted=: ;;
2774 ,set)
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2776 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2777 ac_cache_corrupted=: ;;
2778 ,);;
2779 *)
2780 if test "x$ac_old_val" != "x$ac_new_val"; then
2781 # differences in whitespace do not lead to failure.
2782 ac_old_val_w=`echo x $ac_old_val`
2783 ac_new_val_w=`echo x $ac_new_val`
2784 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2786 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2787 ac_cache_corrupted=:
2788 else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2790 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2791 eval $ac_var=\$ac_old_val
2792 fi
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2794 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2796 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2797 fi;;
2798 esac
2799 # Pass precious variables to config.status.
2800 if test "$ac_new_set" = set; then
2801 case $ac_new_val in
2802 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2803 *) ac_arg=$ac_var=$ac_new_val ;;
2804 esac
2805 case " $ac_configure_args " in
2806 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2807 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2808 esac
2809 fi
2810 done
2811 if $ac_cache_corrupted; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2815 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2816 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2817 fi
2818 ## -------------------- ##
2819 ## Main body of script. ##
2820 ## -------------------- ##
2821
2822 ac_ext=c
2823 ac_cpp='$CPP $CPPFLAGS'
2824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827
2828
2829
2830
2831 SHARED_VERSION_INFO="8:8:5" # CURRENT:REVISION:AGE
2832
2833 am__api_version='1.15'
2834
2835 ac_aux_dir=
2836 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2837 if test -f "$ac_dir/install-sh"; then
2838 ac_aux_dir=$ac_dir
2839 ac_install_sh="$ac_aux_dir/install-sh -c"
2840 break
2841 elif test -f "$ac_dir/install.sh"; then
2842 ac_aux_dir=$ac_dir
2843 ac_install_sh="$ac_aux_dir/install.sh -c"
2844 break
2845 elif test -f "$ac_dir/shtool"; then
2846 ac_aux_dir=$ac_dir
2847 ac_install_sh="$ac_aux_dir/shtool install -c"
2848 break
2849 fi
2850 done
2851 if test -z "$ac_aux_dir"; then
2852 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2853 fi
2854
2855 # These three variables are undocumented and unsupported,
2856 # and are intended to be withdrawn in a future Autoconf release.
2857 # They can cause serious problems if a builder's source tree is in a directory
2858 # whose full name contains unusual characters.
2859 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2860 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2861 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2862
2863
2864 # Find a good install program. We prefer a C program (faster),
2865 # so one script is as good as another. But avoid the broken or
2866 # incompatible versions:
2867 # SysV /etc/install, /usr/sbin/install
2868 # SunOS /usr/etc/install
2869 # IRIX /sbin/install
2870 # AIX /bin/install
2871 # AmigaOS /C/install, which installs bootblocks on floppy discs
2872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2875 # OS/2's system install, which has a completely different semantic
2876 # ./install, which can be erroneously created by make from ./install.sh.
2877 # Reject install programs that cannot install multiple files.
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2879 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2880 if test -z "$INSTALL"; then
2881 if ${ac_cv_path_install+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 # Account for people who put trailing slashes in PATH elements.
2890 case $as_dir/ in #((
2891 ./ | .// | /[cC]/* | \
2892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2893 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2894 /usr/ucb/* ) ;;
2895 *)
2896 # OSF1 and SCO ODT 3.0 have their own names for install.
2897 # Don't use installbsd from OSF since it installs stuff as root
2898 # by default.
2899 for ac_prog in ginstall scoinst install; do
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2902 if test $ac_prog = install &&
2903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2904 # AIX install. It has an incompatible calling convention.
2905 :
2906 elif test $ac_prog = install &&
2907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908 # program-specific install script used by HP pwplus--don't use.
2909 :
2910 else
2911 rm -rf conftest.one conftest.two conftest.dir
2912 echo one > conftest.one
2913 echo two > conftest.two
2914 mkdir conftest.dir
2915 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2916 test -s conftest.one && test -s conftest.two &&
2917 test -s conftest.dir/conftest.one &&
2918 test -s conftest.dir/conftest.two
2919 then
2920 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2921 break 3
2922 fi
2923 fi
2924 fi
2925 done
2926 done
2927 ;;
2928 esac
2929
2930 done
2931 IFS=$as_save_IFS
2932
2933 rm -rf conftest.one conftest.two conftest.dir
2934
2935 fi
2936 if test "${ac_cv_path_install+set}" = set; then
2937 INSTALL=$ac_cv_path_install
2938 else
2939 # As a last resort, use the slow shell script. Don't cache a
2940 # value for INSTALL within a source directory, because that will
2941 # break other packages using the cache if that directory is
2942 # removed, or if the value is a relative name.
2943 INSTALL=$ac_install_sh
2944 fi
2945 fi
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2947 $as_echo "$INSTALL" >&6; }
2948
2949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2950 # It thinks the first close brace ends the variable substitution.
2951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2952
2953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2954
2955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2958 $as_echo_n "checking whether build environment is sane... " >&6; }
2959 # Reject unsafe characters in $srcdir or the absolute working directory
2960 # name. Accept space and tab only in the latter.
2961 am_lf='
2962 '
2963 case `pwd` in
2964 *[\\\"\#\$\&\'\`$am_lf]*)
2965 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2966 esac
2967 case $srcdir in
2968 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2969 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2970 esac
2971
2972 # Do 'set' in a subshell so we don't clobber the current shell's
2973 # arguments. Must try -L first in case configure is actually a
2974 # symlink; some systems play weird games with the mod time of symlinks
2975 # (eg FreeBSD returns the mod time of the symlink's containing
2976 # directory).
2977 if (
2978 am_has_slept=no
2979 for am_try in 1 2; do
2980 echo "timestamp, slept: $am_has_slept" > conftest.file
2981 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2982 if test "$*" = "X"; then
2983 # -L didn't work.
2984 set X `ls -t "$srcdir/configure" conftest.file`
2985 fi
2986 if test "$*" != "X $srcdir/configure conftest.file" \
2987 && test "$*" != "X conftest.file $srcdir/configure"; then
2988
2989 # If neither matched, then we have a broken ls. This can happen
2990 # if, for instance, CONFIG_SHELL is bash and it inherits a
2991 # broken ls alias from the environment. This has actually
2992 # happened. Such a system could not be considered "sane".
2993 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2994 alias in your environment" "$LINENO" 5
2995 fi
2996 if test "$2" = conftest.file || test $am_try -eq 2; then
2997 break
2998 fi
2999 # Just in case.
3000 sleep 1
3001 am_has_slept=yes
3002 done
3003 test "$2" = conftest.file
3004 )
3005 then
3006 # Ok.
3007 :
3008 else
3009 as_fn_error $? "newly created file is older than distributed files!
3010 Check your system clock" "$LINENO" 5
3011 fi
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013 $as_echo "yes" >&6; }
3014 # If we didn't sleep, we still need to ensure time stamps of config.status and
3015 # generated files are strictly newer.
3016 am_sleep_pid=
3017 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3018 ( sleep 1 ) &
3019 am_sleep_pid=$!
3020 fi
3021
3022 rm -f conftest.file
3023
3024 test "$program_prefix" != NONE &&
3025 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3026 # Use a double $ so make ignores it.
3027 test "$program_suffix" != NONE &&
3028 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3029 # Double any \ or $.
3030 # By default was `s,x,x', remove it if useless.
3031 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3032 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3033
3034 # Expand $ac_aux_dir to an absolute path.
3035 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3036
3037 if test x"${MISSING+set}" != xset; then
3038 case $am_aux_dir in
3039 *\ * | *\ *)
3040 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3041 *)
3042 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3043 esac
3044 fi
3045 # Use eval to expand $SHELL
3046 if eval "$MISSING --is-lightweight"; then
3047 am_missing_run="$MISSING "
3048 else
3049 am_missing_run=
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3051 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3052 fi
3053
3054 if test x"${install_sh+set}" != xset; then
3055 case $am_aux_dir in
3056 *\ * | *\ *)
3057 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3058 *)
3059 install_sh="\${SHELL} $am_aux_dir/install-sh"
3060 esac
3061 fi
3062
3063 # Installed binaries are usually stripped using 'strip' when the user
3064 # run "make install-strip". However 'strip' might not be the right
3065 # tool to use in cross-compilation environments, therefore Automake
3066 # will honor the 'STRIP' environment variable to overrule this program.
3067 if test "$cross_compiling" != no; then
3068 if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3070 set dummy ${ac_tool_prefix}strip; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_STRIP+:} false; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$STRIP"; then
3077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3093
3094 fi
3095 fi
3096 STRIP=$ac_cv_prog_STRIP
3097 if test -n "$STRIP"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3099 $as_echo "$STRIP" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 fi
3104
3105
3106 fi
3107 if test -z "$ac_cv_prog_STRIP"; then
3108 ac_ct_STRIP=$STRIP
3109 # Extract the first word of "strip", so it can be a program name with args.
3110 set dummy strip; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137 if test -n "$ac_ct_STRIP"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3139 $as_echo "$ac_ct_STRIP" >&6; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145 if test "x$ac_ct_STRIP" = x; then
3146 STRIP=":"
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 STRIP=$ac_ct_STRIP
3155 fi
3156 else
3157 STRIP="$ac_cv_prog_STRIP"
3158 fi
3159
3160 fi
3161 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3162
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3164 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3165 if test -z "$MKDIR_P"; then
3166 if ${ac_cv_path_mkdir+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_prog in mkdir gmkdir; do
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3178 'mkdir (GNU coreutils) '* | \
3179 'mkdir (coreutils) '* | \
3180 'mkdir (fileutils) '4.1*)
3181 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3182 break 3;;
3183 esac
3184 done
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190
3191 test -d ./--version && rmdir ./--version
3192 if test "${ac_cv_path_mkdir+set}" = set; then
3193 MKDIR_P="$ac_cv_path_mkdir -p"
3194 else
3195 # As a last resort, use the slow shell script. Don't cache a
3196 # value for MKDIR_P within a source directory, because that will
3197 # break other packages using the cache if that directory is
3198 # removed, or if the value is a relative name.
3199 MKDIR_P="$ac_install_sh -d"
3200 fi
3201 fi
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3203 $as_echo "$MKDIR_P" >&6; }
3204
3205 for ac_prog in gawk mawk nawk awk
3206 do
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_AWK+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test -n "$AWK"; then
3215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_AWK="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228 done
3229 done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 AWK=$ac_cv_prog_AWK
3235 if test -n "$AWK"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3237 $as_echo "$AWK" >&6; }
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244 test -n "$AWK" && break
3245 done
3246
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3249 set x ${MAKE-make}
3250 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3251 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 cat >conftest.make <<\_ACEOF
3255 SHELL = /bin/sh
3256 all:
3257 @echo '@@@%%%=$(MAKE)=@@@%%%'
3258 _ACEOF
3259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3261 *@@@%%%=?*=@@@%%%*)
3262 eval ac_cv_prog_make_${ac_make}_set=yes;;
3263 *)
3264 eval ac_cv_prog_make_${ac_make}_set=no;;
3265 esac
3266 rm -f conftest.make
3267 fi
3268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3271 SET_MAKE=
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 SET_MAKE="MAKE=${MAKE-make}"
3276 fi
3277
3278 rm -rf .tst 2>/dev/null
3279 mkdir .tst 2>/dev/null
3280 if test -d .tst; then
3281 am__leading_dot=.
3282 else
3283 am__leading_dot=_
3284 fi
3285 rmdir .tst 2>/dev/null
3286
3287 # Check whether --enable-silent-rules was given.
3288 if test "${enable_silent_rules+set}" = set; then :
3289 enableval=$enable_silent_rules;
3290 fi
3291
3292 case $enable_silent_rules in # (((
3293 yes) AM_DEFAULT_VERBOSITY=0;;
3294 no) AM_DEFAULT_VERBOSITY=1;;
3295 *) AM_DEFAULT_VERBOSITY=1;;
3296 esac
3297 am_make=${MAKE-make}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3299 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3300 if ${am_cv_make_support_nested_variables+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if $as_echo 'TRUE=$(BAR$(V))
3304 BAR0=false
3305 BAR1=true
3306 V=1
3307 am__doit:
3308 @$(TRUE)
3309 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3310 am_cv_make_support_nested_variables=yes
3311 else
3312 am_cv_make_support_nested_variables=no
3313 fi
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3316 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3317 if test $am_cv_make_support_nested_variables = yes; then
3318 AM_V='$(V)'
3319 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3320 else
3321 AM_V=$AM_DEFAULT_VERBOSITY
3322 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3323 fi
3324 AM_BACKSLASH='\'
3325
3326 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3327 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3328 # is not polluted with repeated "-I."
3329 am__isrc=' -I$(srcdir)'
3330 # test to see if srcdir already configured
3331 if test -f $srcdir/config.status; then
3332 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3333 fi
3334 fi
3335
3336 # test whether we have cygpath
3337 if test -z "$CYGPATH_W"; then
3338 if (cygpath --version) >/dev/null 2>/dev/null; then
3339 CYGPATH_W='cygpath -w'
3340 else
3341 CYGPATH_W=echo
3342 fi
3343 fi
3344
3345
3346 # Define the identity of the package.
3347 PACKAGE='fftw'
3348 VERSION='3.3.8'
3349
3350
3351 cat >>confdefs.h <<_ACEOF
3352 #define PACKAGE "$PACKAGE"
3353 _ACEOF
3354
3355
3356 cat >>confdefs.h <<_ACEOF
3357 #define VERSION "$VERSION"
3358 _ACEOF
3359
3360 # Some tools Automake needs.
3361
3362 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3363
3364
3365 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3366
3367
3368 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3369
3370
3371 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3372
3373
3374 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3375
3376 # For better backward compatibility. To be removed once Automake 1.9.x
3377 # dies out for good. For more background, see:
3378 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3379 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3380 mkdir_p='$(MKDIR_P)'
3381
3382 # We need awk for the "check" target (and possibly the TAP driver). The
3383 # system "awk" is bad on some platforms.
3384 # Always define AMTAR for backward compatibility. Yes, it's still used
3385 # in the wild :-( We should find a proper way to deprecate it ...
3386 AMTAR='$${TAR-tar}'
3387
3388
3389 # We'll loop over all known methods to create a tar archive until one works.
3390 _am_tools='gnutar pax cpio none'
3391
3392 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3393
3394
3395
3396
3397
3398
3399 # POSIX will say in a future version that running "rm -f" with no argument
3400 # is OK; and we want to be able to make that assumption in our Makefile
3401 # recipes. So use an aggressive probe to check that the usage we want is
3402 # actually supported "in the wild" to an acceptable degree.
3403 # See automake bug#10828.
3404 # To make any issue more visible, cause the running configure to be aborted
3405 # by default if the 'rm' program in use doesn't match our expectations; the
3406 # user can still override this though.
3407 if rm -f && rm -fr && rm -rf; then : OK; else
3408 cat >&2 <<'END'
3409 Oops!
3410
3411 Your 'rm' program seems unable to run without file operands specified
3412 on the command line, even when the '-f' option is present. This is contrary
3413 to the behaviour of most rm programs out there, and not conforming with
3414 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3415
3416 Please tell bug-automake@gnu.org about your system, including the value
3417 of your $PATH and any error possibly output before this message. This
3418 can help us improve future automake versions.
3419
3420 END
3421 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3422 echo 'Configuration will proceed anyway, since you have set the' >&2
3423 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3424 echo >&2
3425 else
3426 cat >&2 <<'END'
3427 Aborting the configuration process, to ensure you take notice of the issue.
3428
3429 You can download and install GNU coreutils to get an 'rm' implementation
3430 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3431
3432 If you want to complete the configuration process using your problematic
3433 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3434 to "yes", and re-run configure.
3435
3436 END
3437 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3438 fi
3439 fi
3440
3441 ac_config_headers="$ac_config_headers config.h"
3442
3443
3444
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3446 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3447 # Check whether --enable-maintainer-mode was given.
3448 if test "${enable_maintainer_mode+set}" = set; then :
3449 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3450 else
3451 USE_MAINTAINER_MODE=no
3452 fi
3453
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3455 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3456 if test $USE_MAINTAINER_MODE = yes; then
3457 MAINTAINER_MODE_TRUE=
3458 MAINTAINER_MODE_FALSE='#'
3459 else
3460 MAINTAINER_MODE_TRUE='#'
3461 MAINTAINER_MODE_FALSE=
3462 fi
3463
3464 MAINT=$MAINTAINER_MODE_TRUE
3465
3466
3467
3468 # Check whether --enable-shared was given.
3469 if test "${enable_shared+set}" = set; then :
3470 enableval=$enable_shared; p=${PACKAGE-default}
3471 case $enableval in
3472 yes) enable_shared=yes ;;
3473 no) enable_shared=no ;;
3474 *)
3475 enable_shared=no
3476 # Look at the argument we got. We use all the common list separators.
3477 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3478 for pkg in $enableval; do
3479 IFS=$lt_save_ifs
3480 if test "X$pkg" = "X$p"; then
3481 enable_shared=yes
3482 fi
3483 done
3484 IFS=$lt_save_ifs
3485 ;;
3486 esac
3487 else
3488 enable_shared=no
3489 fi
3490
3491
3492
3493
3494
3495
3496
3497
3498 # Make sure we can run config.sub.
3499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3501
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3503 $as_echo_n "checking build system type... " >&6; }
3504 if ${ac_cv_build+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 ac_build_alias=$build_alias
3508 test "x$ac_build_alias" = x &&
3509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3510 test "x$ac_build_alias" = x &&
3511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3514
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3517 $as_echo "$ac_cv_build" >&6; }
3518 case $ac_cv_build in
3519 *-*-*) ;;
3520 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3521 esac
3522 build=$ac_cv_build
3523 ac_save_IFS=$IFS; IFS='-'
3524 set x $ac_cv_build
3525 shift
3526 build_cpu=$1
3527 build_vendor=$2
3528 shift; shift
3529 # Remember, the first character of IFS is used to create $*,
3530 # except with old shells:
3531 build_os=$*
3532 IFS=$ac_save_IFS
3533 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3534
3535
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3537 $as_echo_n "checking host system type... " >&6; }
3538 if ${ac_cv_host+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test "x$host_alias" = x; then
3542 ac_cv_host=$ac_cv_build
3543 else
3544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3546 fi
3547
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3550 $as_echo "$ac_cv_host" >&6; }
3551 case $ac_cv_host in
3552 *-*-*) ;;
3553 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3554 esac
3555 host=$ac_cv_host
3556 ac_save_IFS=$IFS; IFS='-'
3557 set x $ac_cv_host
3558 shift
3559 host_cpu=$1
3560 host_vendor=$2
3561 shift; shift
3562 # Remember, the first character of IFS is used to create $*,
3563 # except with old shells:
3564 host_os=$*
3565 IFS=$ac_save_IFS
3566 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3567
3568
3569
3570 case "${host_cpu}" in
3571 powerpc*) arch_prefers_fma=yes;;
3572 ia64*) arch_prefers_fma=yes;;
3573 hppa*) arch_prefers_fma=yes;;
3574 mips64*) arch_prefers_fma=yes;;
3575 *) arch_prefers_fma=no;;
3576 esac
3577
3578 # Check whether --enable-debug was given.
3579 if test "${enable_debug+set}" = set; then :
3580 enableval=$enable_debug; ok=$enableval
3581 else
3582 ok=no
3583 fi
3584
3585 if test "$ok" = "yes"; then
3586
3587 $as_echo "#define FFTW_DEBUG 1" >>confdefs.h
3588
3589 fi
3590
3591 # Check whether --enable-doc was given.
3592 if test "${enable_doc+set}" = set; then :
3593 enableval=$enable_doc; build_doc=$enableval
3594 else
3595 build_doc=yes
3596 fi
3597
3598 if test x"$build_doc" = xyes; then
3599 BUILD_DOC_TRUE=
3600 BUILD_DOC_FALSE='#'
3601 else
3602 BUILD_DOC_TRUE='#'
3603 BUILD_DOC_FALSE=
3604 fi
3605
3606
3607 # Check whether --enable-random-estimator was given.
3608 if test "${enable_random_estimator+set}" = set; then :
3609 enableval=$enable_random_estimator; ok=$enableval
3610 else
3611 ok=no
3612 fi
3613
3614 if test "$ok" = "yes"; then
3615
3616 $as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h
3617
3618 CHECK_PL_OPTS="--estimate"
3619 fi
3620
3621 # Check whether --enable-alloca was given.
3622 if test "${enable_alloca+set}" = set; then :
3623 enableval=$enable_alloca; ok=$enableval
3624 else
3625 ok=yes
3626 fi
3627
3628 if test "$ok" = "yes"; then
3629
3630 $as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h
3631
3632 fi
3633
3634 # Check whether --enable-single was given.
3635 if test "${enable_single+set}" = set; then :
3636 enableval=$enable_single; ok=$enableval
3637 else
3638 ok=no
3639 fi
3640
3641 # Check whether --enable-float was given.
3642 if test "${enable_float+set}" = set; then :
3643 enableval=$enable_float; ok=$enableval
3644 fi
3645
3646 if test "$ok" = "yes"; then
3647
3648 $as_echo "#define FFTW_SINGLE 1" >>confdefs.h
3649
3650
3651 $as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h
3652
3653 PRECISION=s
3654 else
3655 PRECISION=d
3656 fi
3657 if test "$ok" = "yes"; then
3658 SINGLE_TRUE=
3659 SINGLE_FALSE='#'
3660 else
3661 SINGLE_TRUE='#'
3662 SINGLE_FALSE=
3663 fi
3664
3665
3666 # Check whether --enable-long-double was given.
3667 if test "${enable_long_double+set}" = set; then :
3668 enableval=$enable_long_double; ok=$enableval
3669 else
3670 ok=no
3671 fi
3672
3673 if test "$ok" = "yes"; then
3674 if test "$PRECISION" = "s"; then
3675 as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5
3676 fi
3677
3678 $as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h
3679
3680
3681 $as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h
3682
3683 PRECISION=l
3684 fi
3685 if test "$ok" = "yes"; then
3686 LDOUBLE_TRUE=
3687 LDOUBLE_FALSE='#'
3688 else
3689 LDOUBLE_TRUE='#'
3690 LDOUBLE_FALSE=
3691 fi
3692
3693
3694 # Check whether --enable-quad-precision was given.
3695 if test "${enable_quad_precision+set}" = set; then :
3696 enableval=$enable_quad_precision; ok=$enableval
3697 else
3698 ok=no
3699 fi
3700
3701 if test "$ok" = "yes"; then
3702 if test "$PRECISION" != "d"; then
3703 as_fn_error $? "conflicting precisions specified" "$LINENO" 5
3704 fi
3705
3706 $as_echo "#define FFTW_QUAD 1" >>confdefs.h
3707
3708
3709 $as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h
3710
3711 PRECISION=q
3712 fi
3713 if test "$ok" = "yes"; then
3714 QUAD_TRUE=
3715 QUAD_FALSE='#'
3716 else
3717 QUAD_TRUE='#'
3718 QUAD_FALSE=
3719 fi
3720
3721
3722
3723
3724
3725 # Check whether --enable-sse was given.
3726 if test "${enable_sse+set}" = set; then :
3727 enableval=$enable_sse; have_sse=$enableval
3728 else
3729 have_sse=no
3730 fi
3731
3732 if test "$have_sse" = "yes"; then
3733 if test "$PRECISION" != "s"; then
3734 as_fn_error $? "SSE requires single precision" "$LINENO" 5
3735 fi
3736 fi
3737
3738 # Check whether --enable-sse2 was given.
3739 if test "${enable_sse2+set}" = set; then :
3740 enableval=$enable_sse2; have_sse2=$enableval
3741 else
3742 have_sse2=no
3743 fi
3744
3745 if test "$have_sse" = "yes"; then have_sse2=yes; fi
3746 if test "$have_sse2" = "yes"; then
3747
3748 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
3749
3750 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3751 as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5
3752 fi
3753 fi
3754 if test "$have_sse2" = "yes"; then
3755 HAVE_SSE2_TRUE=
3756 HAVE_SSE2_FALSE='#'
3757 else
3758 HAVE_SSE2_TRUE='#'
3759 HAVE_SSE2_FALSE=
3760 fi
3761
3762
3763 # Check whether --enable-avx was given.
3764 if test "${enable_avx+set}" = set; then :
3765 enableval=$enable_avx; have_avx=$enableval
3766 else
3767 have_avx=no
3768 fi
3769
3770 if test "$have_avx" = "yes"; then
3771
3772 $as_echo "#define HAVE_AVX 1" >>confdefs.h
3773
3774 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3775 as_fn_error $? "AVX requires single or double precision" "$LINENO" 5
3776 fi
3777 fi
3778 if test "$have_avx" = "yes"; then
3779 HAVE_AVX_TRUE=
3780 HAVE_AVX_FALSE='#'
3781 else
3782 HAVE_AVX_TRUE='#'
3783 HAVE_AVX_FALSE=
3784 fi
3785
3786
3787 # Check whether --enable-avx2 was given.
3788 if test "${enable_avx2+set}" = set; then :
3789 enableval=$enable_avx2; have_avx2=$enableval
3790 else
3791 have_avx2=no
3792 fi
3793
3794 if test "$have_avx2" = "yes"; then
3795
3796 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
3797
3798 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3799 as_fn_error $? "AVX2 requires single or double precision" "$LINENO" 5
3800 fi
3801 fi
3802 if test "$have_avx2" = "yes"; then
3803 HAVE_AVX2_TRUE=
3804 HAVE_AVX2_FALSE='#'
3805 else
3806 HAVE_AVX2_TRUE='#'
3807 HAVE_AVX2_FALSE=
3808 fi
3809
3810
3811 # Check whether --enable-avx512 was given.
3812 if test "${enable_avx512+set}" = set; then :
3813 enableval=$enable_avx512; have_avx512=$enableval
3814 else
3815 have_avx512=no
3816 fi
3817
3818 if test "$have_avx512" = "yes"; then
3819
3820 $as_echo "#define HAVE_AVX512 1" >>confdefs.h
3821
3822 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3823 as_fn_error $? "AVX512 requires single or double precision" "$LINENO" 5
3824 fi
3825 fi
3826 if test "$have_avx512" = "yes"; then
3827 HAVE_AVX512_TRUE=
3828 HAVE_AVX512_FALSE='#'
3829 else
3830 HAVE_AVX512_TRUE='#'
3831 HAVE_AVX512_FALSE=
3832 fi
3833
3834
3835 # Check whether --enable-avx-128-fma was given.
3836 if test "${enable_avx_128_fma+set}" = set; then :
3837 enableval=$enable_avx_128_fma; have_avx_128_fma=$enableval
3838 else
3839 have_avx_128_fma=no
3840 fi
3841
3842 if test "$have_avx_128_fma" = "yes"; then
3843
3844 $as_echo "#define HAVE_AVX_128_FMA 1" >>confdefs.h
3845
3846 AVX_128_FMA_CFLAGS="${AVX_CFLAGS} -mfma4"
3847
3848 fi
3849 if test "$have_avx_128_fma" = "yes"; then
3850 HAVE_AVX_128_FMA_TRUE=
3851 HAVE_AVX_128_FMA_FALSE='#'
3852 else
3853 HAVE_AVX_128_FMA_TRUE='#'
3854 HAVE_AVX_128_FMA_FALSE=
3855 fi
3856
3857
3858 # Check whether --enable-kcvi was given.
3859 if test "${enable_kcvi+set}" = set; then :
3860 enableval=$enable_kcvi; have_kcvi=$enableval
3861 else
3862 have_kcvi=no
3863 fi
3864
3865 if test "$have_kcvi" = "yes"; then
3866
3867 $as_echo "#define HAVE_KCVI 1" >>confdefs.h
3868
3869 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3870 as_fn_error $? "Knights Corner vector instructions requires single or double precision" "$LINENO" 5
3871 fi
3872 fi
3873 if test "$have_kcvi" = "yes"; then
3874 HAVE_KCVI_TRUE=
3875 HAVE_KCVI_FALSE='#'
3876 else
3877 HAVE_KCVI_TRUE='#'
3878 HAVE_KCVI_FALSE=
3879 fi
3880
3881
3882 # Check whether --enable-altivec was given.
3883 if test "${enable_altivec+set}" = set; then :
3884 enableval=$enable_altivec; have_altivec=$enableval
3885 else
3886 have_altivec=no
3887 fi
3888
3889 if test "$have_altivec" = "yes"; then
3890
3891 $as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h
3892
3893 if test "$PRECISION" != "s"; then
3894 as_fn_error $? "Altivec requires single precision" "$LINENO" 5
3895 fi
3896 fi
3897 if test "$have_altivec" = "yes"; then
3898 HAVE_ALTIVEC_TRUE=
3899 HAVE_ALTIVEC_FALSE='#'
3900 else
3901 HAVE_ALTIVEC_TRUE='#'
3902 HAVE_ALTIVEC_FALSE=
3903 fi
3904
3905
3906 # Check whether --enable-vsx was given.
3907 if test "${enable_vsx+set}" = set; then :
3908 enableval=$enable_vsx; have_vsx=$enableval
3909 else
3910 have_vsx=no
3911 fi
3912
3913 if test "$have_vsx" = "yes"; then
3914
3915 $as_echo "#define HAVE_VSX 1" >>confdefs.h
3916
3917 fi
3918 if test "$have_vsx" = "yes"; then
3919 HAVE_VSX_TRUE=
3920 HAVE_VSX_FALSE='#'
3921 else
3922 HAVE_VSX_TRUE='#'
3923 HAVE_VSX_FALSE=
3924 fi
3925
3926
3927 # Check whether --enable-neon was given.
3928 if test "${enable_neon+set}" = set; then :
3929 enableval=$enable_neon; have_neon=$enableval
3930 else
3931 have_neon=no
3932 fi
3933
3934 if test "$have_neon" = "yes"; then
3935
3936 $as_echo "#define HAVE_NEON 1" >>confdefs.h
3937
3938 case "${host_cpu}" in
3939 aarch64)
3940 ;;
3941 *)
3942 if test "$PRECISION" != "s"; then
3943 as_fn_error $? "NEON requires single precision" "$LINENO" 5
3944 fi
3945 ;;
3946 esac
3947 fi
3948 if test "$have_neon" = "yes"; then
3949 HAVE_NEON_TRUE=
3950 HAVE_NEON_FALSE='#'
3951 else
3952 HAVE_NEON_TRUE='#'
3953 HAVE_NEON_FALSE=
3954 fi
3955
3956
3957 # Check whether --enable-armv8-pmccntr-el0 was given.
3958 if test "${enable_armv8_pmccntr_el0+set}" = set; then :
3959 enableval=$enable_armv8_pmccntr_el0; have_armv8pmccntrel0=$enableval
3960 fi
3961
3962 if test "$have_armv8pmccntrel0"x = "yes"x; then
3963
3964 $as_echo "#define HAVE_ARMV8_PMCCNTR_EL0 1" >>confdefs.h
3965
3966 fi
3967
3968 # Check whether --enable-armv8-cntvct-el0 was given.
3969 if test "${enable_armv8_cntvct_el0+set}" = set; then :
3970 enableval=$enable_armv8_cntvct_el0; have_armv8cntvctel0=$enableval
3971 fi
3972
3973 if test "$have_armv8cntvctel0"x = "yes"x; then
3974
3975 $as_echo "#define HAVE_ARMV8_CNTVCT_EL0 1" >>confdefs.h
3976
3977 fi
3978
3979 # Check whether --enable-armv7a-cntvct was given.
3980 if test "${enable_armv7a_cntvct+set}" = set; then :
3981 enableval=$enable_armv7a_cntvct; have_armv7acntvct=$enableval
3982 fi
3983
3984 if test "$have_armv7acntvct"x = "yes"x; then
3985
3986 $as_echo "#define HAVE_ARMV7A_CNTVCT 1" >>confdefs.h
3987
3988 fi
3989
3990 # Check whether --enable-armv7a-pmccntr was given.
3991 if test "${enable_armv7a_pmccntr+set}" = set; then :
3992 enableval=$enable_armv7a_pmccntr; have_armv7apmccntr=$enableval
3993 fi
3994
3995 if test "$have_armv7apmccntr"x = "yes"x; then
3996
3997 $as_echo "#define HAVE_ARMV7A_PMCCNTR 1" >>confdefs.h
3998
3999 fi
4000
4001 # Check whether --enable-generic-simd128 was given.
4002 if test "${enable_generic_simd128+set}" = set; then :
4003 enableval=$enable_generic_simd128; have_generic_simd128=$enableval
4004 else
4005 have_generic_simd128=no
4006 fi
4007
4008 if test "$have_generic_simd128" = "yes"; then
4009
4010 $as_echo "#define HAVE_GENERIC_SIMD128 1" >>confdefs.h
4011
4012 fi
4013 if test "$have_generic_simd128" = "yes"; then
4014 HAVE_GENERIC_SIMD128_TRUE=
4015 HAVE_GENERIC_SIMD128_FALSE='#'
4016 else
4017 HAVE_GENERIC_SIMD128_TRUE='#'
4018 HAVE_GENERIC_SIMD128_FALSE=
4019 fi
4020
4021
4022 # Check whether --enable-generic-simd256 was given.
4023 if test "${enable_generic_simd256+set}" = set; then :
4024 enableval=$enable_generic_simd256; have_generic_simd256=$enableval
4025 else
4026 have_generic_simd256=no
4027 fi
4028
4029 if test "$have_generic_simd256" = "yes"; then
4030
4031 $as_echo "#define HAVE_GENERIC_SIMD256 1" >>confdefs.h
4032
4033 fi
4034 if test "$have_generic_simd256" = "yes"; then
4035 HAVE_GENERIC_SIMD256_TRUE=
4036 HAVE_GENERIC_SIMD256_FALSE='#'
4037 else
4038 HAVE_GENERIC_SIMD256_TRUE='#'
4039 HAVE_GENERIC_SIMD256_FALSE=
4040 fi
4041
4042
4043
4044
4045
4046 # Check whether --with-slow-timer was given.
4047 if test "${with_slow_timer+set}" = set; then :
4048 withval=$with_slow_timer; with_slow_timer=$withval
4049 else
4050 with_slow_timer=no
4051 fi
4052
4053 if test "$with_slow_timer" = "yes"; then
4054
4055 $as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h
4056
4057 fi
4058
4059 # Check whether --enable-mips_zbus_timer was given.
4060 if test "${enable_mips_zbus_timer+set}" = set; then :
4061 enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval
4062 else
4063 have_mips_zbus_timer=no
4064 fi
4065
4066 if test "$have_mips_zbus_timer" = "yes"; then
4067
4068 $as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h
4069
4070 fi
4071
4072
4073 # Check whether --with-our-malloc was given.
4074 if test "${with_our_malloc+set}" = set; then :
4075 withval=$with_our_malloc; with_our_malloc=$withval
4076 else
4077 with_our_malloc=no
4078 fi
4079
4080
4081 # Check whether --with-our-malloc16 was given.
4082 if test "${with_our_malloc16+set}" = set; then :
4083 withval=$with_our_malloc16; with_our_malloc=$withval
4084 fi
4085
4086 if test "$with_our_malloc" = "yes"; then
4087
4088 $as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h
4089
4090 fi
4091
4092
4093 # Check whether --with-windows-f77-mangling was given.
4094 if test "${with_windows_f77_mangling+set}" = set; then :
4095 withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval
4096 else
4097 with_windows_f77_mangling=no
4098 fi
4099
4100 if test "$with_windows_f77_mangling" = "yes"; then
4101
4102 $as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h
4103
4104 fi
4105
4106
4107 # Check whether --with-incoming-stack-boundary was given.
4108 if test "${with_incoming_stack_boundary+set}" = set; then :
4109 withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval
4110 else
4111 with_incoming_stack_boundary=no
4112 fi
4113
4114
4115
4116 # Check whether --enable-fma was given.
4117 if test "${enable_fma+set}" = set; then :
4118 enableval=$enable_fma; arch_prefers_fma=$enableval
4119 fi
4120
4121 if test "$arch_prefers_fma"x = "yes"x; then
4122
4123 $as_echo "#define ARCH_PREFERS_FMA 1" >>confdefs.h
4124
4125 fi
4126
4127 case "$PRECISION" in
4128 s) PREC_SUFFIX=f;;
4129 d) PREC_SUFFIX=;;
4130 l) PREC_SUFFIX=l;;
4131 q) PREC_SUFFIX=q;;
4132 esac
4133
4134
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_CC+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178 fi
4179 if test -z "$ac_cv_prog_CC"; then
4180 ac_ct_CC=$CC
4181 # Extract the first word of "gcc", so it can be a program name with args.
4182 set dummy gcc; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -n "$ac_ct_CC"; then
4189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_ac_ct_CC="gcc"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4201 fi
4202 done
4203 done
4204 IFS=$as_save_IFS
4205
4206 fi
4207 fi
4208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4209 if test -n "$ac_ct_CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211 $as_echo "$ac_ct_CC" >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4215 fi
4216
4217 if test "x$ac_ct_CC" = x; then
4218 CC=""
4219 else
4220 case $cross_compiling:$ac_tool_warned in
4221 yes:)
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4225 esac
4226 CC=$ac_ct_CC
4227 fi
4228 else
4229 CC="$ac_cv_prog_CC"
4230 fi
4231
4232 if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}cc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC="${ac_tool_prefix}cc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271 fi
4272 fi
4273 if test -z "$CC"; then
4274 # Extract the first word of "cc", so it can be a program name with args.
4275 set dummy cc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_CC+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$CC"; then
4282 ac_cv_prog_CC="$CC" # Let the user override the test.
4283 else
4284 ac_prog_rejected=no
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4293 ac_prog_rejected=yes
4294 continue
4295 fi
4296 ac_cv_prog_CC="cc"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300 done
4301 done
4302 IFS=$as_save_IFS
4303
4304 if test $ac_prog_rejected = yes; then
4305 # We found a bogon in the path, so make sure we never use it.
4306 set dummy $ac_cv_prog_CC
4307 shift
4308 if test $# != 0; then
4309 # We chose a different compiler from the bogus one.
4310 # However, it has the same basename, so the bogon will be chosen
4311 # first if we set CC to just the basename; use the full file name.
4312 shift
4313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4314 fi
4315 fi
4316 fi
4317 fi
4318 CC=$ac_cv_prog_CC
4319 if test -n "$CC"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328 fi
4329 if test -z "$CC"; then
4330 if test -n "$ac_tool_prefix"; then
4331 for ac_prog in cl.exe
4332 do
4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CC+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 CC=$ac_cv_prog_CC
4361 if test -n "$CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370 test -n "$CC" && break
4371 done
4372 fi
4373 if test -z "$CC"; then
4374 ac_ct_CC=$CC
4375 for ac_prog in cl.exe
4376 do
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$ac_ct_CC"; then
4385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_CC="$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413
4414 test -n "$ac_ct_CC" && break
4415 done
4416
4417 if test "x$ac_ct_CC" = x; then
4418 CC=""
4419 else
4420 case $cross_compiling:$ac_tool_warned in
4421 yes:)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4425 esac
4426 CC=$ac_ct_CC
4427 fi
4428 fi
4429
4430 fi
4431
4432
4433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "no acceptable C compiler found in \$PATH
4436 See \`config.log' for more details" "$LINENO" 5; }
4437
4438 # Provide some information about the compiler.
4439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4440 set X $ac_compile
4441 ac_compiler=$2
4442 for ac_option in --version -v -V -qversion; do
4443 { { ac_try="$ac_compiler $ac_option >&5"
4444 case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4451 ac_status=$?
4452 if test -s conftest.err; then
4453 sed '10a\
4454 ... rest of stderr output deleted ...
4455 10q' conftest.err >conftest.er1
4456 cat conftest.er1 >&5
4457 fi
4458 rm -f conftest.er1 conftest.err
4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }
4461 done
4462
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465
4466 int
4467 main ()
4468 {
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 ac_clean_files_save=$ac_clean_files
4475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4476 # Try to create an executable without -o first, disregard a.out.
4477 # It will help us diagnose broken compilers, and finding out an intuition
4478 # of exeext.
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4480 $as_echo_n "checking whether the C compiler works... " >&6; }
4481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4482
4483 # The possible output files:
4484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4485
4486 ac_rmfiles=
4487 for ac_file in $ac_files
4488 do
4489 case $ac_file in
4490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4492 esac
4493 done
4494 rm -f $ac_rmfiles
4495
4496 if { { ac_try="$ac_link_default"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_link_default") 2>&5
4504 ac_status=$?
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
4507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4510 # so that the user can short-circuit this test for compilers unknown to
4511 # Autoconf.
4512 for ac_file in $ac_files ''
4513 do
4514 test -f "$ac_file" || continue
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4517 ;;
4518 [ab].out )
4519 # We found the default executable, but exeext='' is most
4520 # certainly right.
4521 break;;
4522 *.* )
4523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4524 then :; else
4525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 fi
4527 # We set ac_cv_exeext here because the later test for it is not
4528 # safe: cross compilers may not add the suffix if given an `-o'
4529 # argument, so we may need to know it at that point already.
4530 # Even if this section looks crufty: it has the advantage of
4531 # actually working.
4532 break;;
4533 * )
4534 break;;
4535 esac
4536 done
4537 test "$ac_cv_exeext" = no && ac_cv_exeext=
4538
4539 else
4540 ac_file=''
4541 fi
4542 if test -z "$ac_file"; then :
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 $as_echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error 77 "C compiler cannot create executables
4551 See \`config.log' for more details" "$LINENO" 5; }
4552 else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554 $as_echo "yes" >&6; }
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4557 $as_echo_n "checking for C compiler default output file name... " >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4559 $as_echo "$ac_file" >&6; }
4560 ac_exeext=$ac_cv_exeext
4561
4562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4563 ac_clean_files=$ac_clean_files_save
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4565 $as_echo_n "checking for suffix of executables... " >&6; }
4566 if { { ac_try="$ac_link"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4578 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4579 # work properly (i.e., refer to `conftest.exe'), while it won't with
4580 # `rm'.
4581 for ac_file in conftest.exe conftest conftest.*; do
4582 test -f "$ac_file" || continue
4583 case $ac_file in
4584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4586 break;;
4587 * ) break;;
4588 esac
4589 done
4590 else
4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4594 See \`config.log' for more details" "$LINENO" 5; }
4595 fi
4596 rm -f conftest conftest$ac_cv_exeext
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4598 $as_echo "$ac_cv_exeext" >&6; }
4599
4600 rm -f conftest.$ac_ext
4601 EXEEXT=$ac_cv_exeext
4602 ac_exeext=$EXEEXT
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #include <stdio.h>
4606 int
4607 main ()
4608 {
4609 FILE *f = fopen ("conftest.out", "w");
4610 return ferror (f) || fclose (f) != 0;
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 ac_clean_files="$ac_clean_files conftest.out"
4617 # Check that the compiler produces executables we can run. If not, either
4618 # the compiler is broken, or we cross compile.
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4620 $as_echo_n "checking whether we are cross compiling... " >&6; }
4621 if test "$cross_compiling" != yes; then
4622 { { ac_try="$ac_link"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_link") 2>&5
4630 ac_status=$?
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 if { ac_try='./conftest$ac_cv_exeext'
4634 { { case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639 $as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_try") 2>&5
4641 ac_status=$?
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }; }; then
4644 cross_compiling=no
4645 else
4646 if test "$cross_compiling" = maybe; then
4647 cross_compiling=yes
4648 else
4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651 as_fn_error $? "cannot run C compiled programs.
4652 If you meant to cross compile, use \`--host'.
4653 See \`config.log' for more details" "$LINENO" 5; }
4654 fi
4655 fi
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4658 $as_echo "$cross_compiling" >&6; }
4659
4660 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4661 ac_clean_files=$ac_clean_files_save
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4663 $as_echo_n "checking for suffix of object files... " >&6; }
4664 if ${ac_cv_objext+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669
4670 int
4671 main ()
4672 {
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.o conftest.obj
4679 if { { ac_try="$ac_compile"
4680 case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683 esac
4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685 $as_echo "$ac_try_echo"; } >&5
4686 (eval "$ac_compile") 2>&5
4687 ac_status=$?
4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689 test $ac_status = 0; }; then :
4690 for ac_file in conftest.o conftest.obj conftest.*; do
4691 test -f "$ac_file" || continue;
4692 case $ac_file in
4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4695 break;;
4696 esac
4697 done
4698 else
4699 $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $? "cannot compute suffix of object files: cannot compile
4705 See \`config.log' for more details" "$LINENO" 5; }
4706 fi
4707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4710 $as_echo "$ac_cv_objext" >&6; }
4711 OBJEXT=$ac_cv_objext
4712 ac_objext=$OBJEXT
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4715 if ${ac_cv_c_compiler_gnu+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724 #ifndef __GNUC__
4725 choke me
4726 #endif
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733 ac_compiler_gnu=yes
4734 else
4735 ac_compiler_gnu=no
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4739
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4743 if test $ac_compiler_gnu = yes; then
4744 GCC=yes
4745 else
4746 GCC=
4747 fi
4748 ac_test_CFLAGS=${CFLAGS+set}
4749 ac_save_CFLAGS=$CFLAGS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4752 if ${ac_cv_prog_cc_g+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_save_c_werror_flag=$ac_c_werror_flag
4756 ac_c_werror_flag=yes
4757 ac_cv_prog_cc_g=no
4758 CFLAGS="-g"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 int
4763 main ()
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_g=yes
4772 else
4773 CFLAGS=""
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776
4777 int
4778 main ()
4779 {
4780
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786
4787 else
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4789 CFLAGS="-g"
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_prog_cc_g=yes
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_c_werror_flag=$ac_save_c_werror_flag
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4812 $as_echo "$ac_cv_prog_cc_g" >&6; }
4813 if test "$ac_test_CFLAGS" = set; then
4814 CFLAGS=$ac_save_CFLAGS
4815 elif test $ac_cv_prog_cc_g = yes; then
4816 if test "$GCC" = yes; then
4817 CFLAGS="-g -O2"
4818 else
4819 CFLAGS="-g"
4820 fi
4821 else
4822 if test "$GCC" = yes; then
4823 CFLAGS="-O2"
4824 else
4825 CFLAGS=
4826 fi
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4830 if ${ac_cv_prog_cc_c89+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 ac_cv_prog_cc_c89=no
4834 ac_save_CC=$CC
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837 #include <stdarg.h>
4838 #include <stdio.h>
4839 struct stat;
4840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4841 struct buf { int x; };
4842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4843 static char *e (p, i)
4844 char **p;
4845 int i;
4846 {
4847 return p[i];
4848 }
4849 static char *f (char * (*g) (char **, int), char **p, ...)
4850 {
4851 char *s;
4852 va_list v;
4853 va_start (v,p);
4854 s = g (p, va_arg (v,int));
4855 va_end (v);
4856 return s;
4857 }
4858
4859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4860 function prototypes and stuff, but not '\xHH' hex character constants.
4861 These don't provoke an error unfortunately, instead are silently treated
4862 as 'x'. The following induces an error, until -std is added to get
4863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4864 array size at least. It's necessary to write '\x00'==0 to get something
4865 that's true only with -std. */
4866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4867
4868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4869 inside strings and character constants. */
4870 #define FOO(x) 'x'
4871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4872
4873 int test (int i, double x);
4874 struct s1 {int (*f) (int a);};
4875 struct s2 {int (*f) (double a);};
4876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4877 int argc;
4878 char **argv;
4879 int
4880 main ()
4881 {
4882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889 do
4890 CC="$ac_save_CC $ac_arg"
4891 if ac_fn_c_try_compile "$LINENO"; then :
4892 ac_cv_prog_cc_c89=$ac_arg
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext
4895 test "x$ac_cv_prog_cc_c89" != "xno" && break
4896 done
4897 rm -f conftest.$ac_ext
4898 CC=$ac_save_CC
4899
4900 fi
4901 # AC_CACHE_VAL
4902 case "x$ac_cv_prog_cc_c89" in
4903 x)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4905 $as_echo "none needed" >&6; } ;;
4906 xno)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4908 $as_echo "unsupported" >&6; } ;;
4909 *)
4910 CC="$CC $ac_cv_prog_cc_c89"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4913 esac
4914 if test "x$ac_cv_prog_cc_c89" != xno; then :
4915
4916 fi
4917
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4930 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4931 if ${am_cv_prog_cc_c_o+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936
4937 int
4938 main ()
4939 {
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 # Make sure it works both with $CC and with simple cc.
4946 # Following AC_PROG_CC_C_O, we do the test twice because some
4947 # compilers refuse to overwrite an existing .o file with -o,
4948 # though they will create one.
4949 am_cv_prog_cc_c_o=yes
4950 for am_i in 1 2; do
4951 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4952 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } \
4956 && test -f conftest2.$ac_objext; then
4957 : OK
4958 else
4959 am_cv_prog_cc_c_o=no
4960 break
4961 fi
4962 done
4963 rm -f core conftest*
4964 unset am_i
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4967 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4968 if test "$am_cv_prog_cc_c_o" != yes; then
4969 # Losing compiler, so override with the script.
4970 # FIXME: It is wrong to rewrite CC.
4971 # But if we don't then we get into trouble of one sort or another.
4972 # A longer-term fix would be to have automake use am__CC in this case,
4973 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4974 CC="$am_aux_dir/compile $CC"
4975 fi
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982 DEPDIR="${am__leading_dot}deps"
4983
4984 ac_config_commands="$ac_config_commands depfiles"
4985
4986
4987 am_make=${MAKE-make}
4988 cat > confinc << 'END'
4989 am__doit:
4990 @echo this is the am__doit target
4991 .PHONY: am__doit
4992 END
4993 # If we don't find an include directive, just comment out the code.
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4995 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4996 am__include="#"
4997 am__quote=
4998 _am_result=none
4999 # First try GNU make style include.
5000 echo "include confinc" > confmf
5001 # Ignore all kinds of additional output from 'make'.
5002 case `$am_make -s -f confmf 2> /dev/null` in #(
5003 *the\ am__doit\ target*)
5004 am__include=include
5005 am__quote=
5006 _am_result=GNU
5007 ;;
5008 esac
5009 # Now try BSD make style include.
5010 if test "$am__include" = "#"; then
5011 echo '.include "confinc"' > confmf
5012 case `$am_make -s -f confmf 2> /dev/null` in #(
5013 *the\ am__doit\ target*)
5014 am__include=.include
5015 am__quote="\""
5016 _am_result=BSD
5017 ;;
5018 esac
5019 fi
5020
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5023 $as_echo "$_am_result" >&6; }
5024 rm -f confinc confmf
5025
5026 # Check whether --enable-dependency-tracking was given.
5027 if test "${enable_dependency_tracking+set}" = set; then :
5028 enableval=$enable_dependency_tracking;
5029 fi
5030
5031 if test "x$enable_dependency_tracking" != xno; then
5032 am_depcomp="$ac_aux_dir/depcomp"
5033 AMDEPBACKSLASH='\'
5034 am__nodep='_no'
5035 fi
5036 if test "x$enable_dependency_tracking" != xno; then
5037 AMDEP_TRUE=
5038 AMDEP_FALSE='#'
5039 else
5040 AMDEP_TRUE='#'
5041 AMDEP_FALSE=
5042 fi
5043
5044
5045
5046 depcc="$CC" am_compiler_list=
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5049 $as_echo_n "checking dependency style of $depcc... " >&6; }
5050 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5054 # We make a subdir and do the tests there. Otherwise we can end up
5055 # making bogus files that we don't know about and never remove. For
5056 # instance it was reported that on HP-UX the gcc test will end up
5057 # making a dummy file named 'D' -- because '-MD' means "put the output
5058 # in D".
5059 rm -rf conftest.dir
5060 mkdir conftest.dir
5061 # Copy depcomp to subdir because otherwise we won't find it if we're
5062 # using a relative directory.
5063 cp "$am_depcomp" conftest.dir
5064 cd conftest.dir
5065 # We will build objects and dependencies in a subdirectory because
5066 # it helps to detect inapplicable dependency modes. For instance
5067 # both Tru64's cc and ICC support -MD to output dependencies as a
5068 # side effect of compilation, but ICC will put the dependencies in
5069 # the current directory while Tru64 will put them in the object
5070 # directory.
5071 mkdir sub
5072
5073 am_cv_CC_dependencies_compiler_type=none
5074 if test "$am_compiler_list" = ""; then
5075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5076 fi
5077 am__universal=false
5078 case " $depcc " in #(
5079 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5080 esac
5081
5082 for depmode in $am_compiler_list; do
5083 # Setup a source with many dependencies, because some compilers
5084 # like to wrap large dependency lists on column 80 (with \), and
5085 # we should not choose a depcomp mode which is confused by this.
5086 #
5087 # We need to recreate these files for each test, as the compiler may
5088 # overwrite some of them when testing with obscure command lines.
5089 # This happens at least with the AIX C compiler.
5090 : > sub/conftest.c
5091 for i in 1 2 3 4 5 6; do
5092 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5093 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5094 # Solaris 10 /bin/sh.
5095 echo '/* dummy */' > sub/conftst$i.h
5096 done
5097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5098
5099 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5100 # mode. It turns out that the SunPro C++ compiler does not properly
5101 # handle '-M -o', and we need to detect this. Also, some Intel
5102 # versions had trouble with output in subdirs.
5103 am__obj=sub/conftest.${OBJEXT-o}
5104 am__minus_obj="-o $am__obj"
5105 case $depmode in
5106 gcc)
5107 # This depmode causes a compiler race in universal mode.
5108 test "$am__universal" = false || continue
5109 ;;
5110 nosideeffect)
5111 # After this tag, mechanisms are not by side-effect, so they'll
5112 # only be used when explicitly requested.
5113 if test "x$enable_dependency_tracking" = xyes; then
5114 continue
5115 else
5116 break
5117 fi
5118 ;;
5119 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5120 # This compiler won't grok '-c -o', but also, the minuso test has
5121 # not run yet. These depmodes are late enough in the game, and
5122 # so weak that their functioning should not be impacted.
5123 am__obj=conftest.${OBJEXT-o}
5124 am__minus_obj=
5125 ;;
5126 none) break ;;
5127 esac
5128 if depmode=$depmode \
5129 source=sub/conftest.c object=$am__obj \
5130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5132 >/dev/null 2>conftest.err &&
5133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5137 # icc doesn't choke on unknown options, it will just issue warnings
5138 # or remarks (even with -Werror). So we grep stderr for any message
5139 # that says an option was ignored or not supported.
5140 # When given -MP, icc 7.0 and 7.1 complain thusly:
5141 # icc: Command line warning: ignoring option '-M'; no argument required
5142 # The diagnosis changed in icc 8.0:
5143 # icc: Command line remark: option '-MP' not supported
5144 if (grep 'ignoring option' conftest.err ||
5145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5146 am_cv_CC_dependencies_compiler_type=$depmode
5147 break
5148 fi
5149 fi
5150 done
5151
5152 cd ..
5153 rm -rf conftest.dir
5154 else
5155 am_cv_CC_dependencies_compiler_type=none
5156 fi
5157
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5160 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5161 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5162
5163 if
5164 test "x$enable_dependency_tracking" != xno \
5165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5166 am__fastdepCC_TRUE=
5167 am__fastdepCC_FALSE='#'
5168 else
5169 am__fastdepCC_TRUE='#'
5170 am__fastdepCC_FALSE=
5171 fi
5172
5173
5174
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
5178 $as_echo_n "checking for C compiler vendor... " >&6; }
5179 if ${ax_cv_c_compiler_vendor+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 ax_cv_c_compiler_vendor=unknown
5183 # note: don't check for gcc first since some other compilers define __GNUC__
5184 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__ibmxl__,__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
5185 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188
5189 int
5190 main ()
5191 {
5192
5193 #if !($vencpp)
5194 thisisanerror;
5195 #endif
5196
5197 ;
5198 return 0;
5199 }
5200 _ACEOF
5201 if ac_fn_c_try_compile "$LINENO"; then :
5202 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 done
5206
5207 fi
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
5209 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
5210
5211 case $ac_cv_prog_cc_stdc in #(
5212 no) :
5213 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5214 *) :
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5216 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5217 if ${ac_cv_prog_cc_c99+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 ac_cv_prog_cc_c99=no
5221 ac_save_CC=$CC
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5224 #include <stdarg.h>
5225 #include <stdbool.h>
5226 #include <stdlib.h>
5227 #include <wchar.h>
5228 #include <stdio.h>
5229
5230 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5231 #define debug(...) fprintf (stderr, __VA_ARGS__)
5232 #define showlist(...) puts (#__VA_ARGS__)
5233 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5234 static void
5235 test_varargs_macros (void)
5236 {
5237 int x = 1234;
5238 int y = 5678;
5239 debug ("Flag");
5240 debug ("X = %d\n", x);
5241 showlist (The first, second, and third items.);
5242 report (x>y, "x is %d but y is %d", x, y);
5243 }
5244
5245 // Check long long types.
5246 #define BIG64 18446744073709551615ull
5247 #define BIG32 4294967295ul
5248 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5249 #if !BIG_OK
5250 your preprocessor is broken;
5251 #endif
5252 #if BIG_OK
5253 #else
5254 your preprocessor is broken;
5255 #endif
5256 static long long int bignum = -9223372036854775807LL;
5257 static unsigned long long int ubignum = BIG64;
5258
5259 struct incomplete_array
5260 {
5261 int datasize;
5262 double data[];
5263 };
5264
5265 struct named_init {
5266 int number;
5267 const wchar_t *name;
5268 double average;
5269 };
5270
5271 typedef const char *ccp;
5272
5273 static inline int
5274 test_restrict (ccp restrict text)
5275 {
5276 // See if C++-style comments work.
5277 // Iterate through items via the restricted pointer.
5278 // Also check for declarations in for loops.
5279 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5280 continue;
5281 return 0;
5282 }
5283
5284 // Check varargs and va_copy.
5285 static void
5286 test_varargs (const char *format, ...)
5287 {
5288 va_list args;
5289 va_start (args, format);
5290 va_list args_copy;
5291 va_copy (args_copy, args);
5292
5293 const char *str;
5294 int number;
5295 float fnumber;
5296
5297 while (*format)
5298 {
5299 switch (*format++)
5300 {
5301 case 's': // string
5302 str = va_arg (args_copy, const char *);
5303 break;
5304 case 'd': // int
5305 number = va_arg (args_copy, int);
5306 break;
5307 case 'f': // float
5308 fnumber = va_arg (args_copy, double);
5309 break;
5310 default:
5311 break;
5312 }
5313 }
5314 va_end (args_copy);
5315 va_end (args);
5316 }
5317
5318 int
5319 main ()
5320 {
5321
5322 // Check bool.
5323 _Bool success = false;
5324
5325 // Check restrict.
5326 if (test_restrict ("String literal") == 0)
5327 success = true;
5328 char *restrict newvar = "Another string";
5329
5330 // Check varargs.
5331 test_varargs ("s, d' f .", "string", 65, 34.234);
5332 test_varargs_macros ();
5333
5334 // Check flexible array members.
5335 struct incomplete_array *ia =
5336 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5337 ia->datasize = 10;
5338 for (int i = 0; i < ia->datasize; ++i)
5339 ia->data[i] = i * 1.234;
5340
5341 // Check named initializers.
5342 struct named_init ni = {
5343 .number = 34,
5344 .name = L"Test wide string",
5345 .average = 543.34343,
5346 };
5347
5348 ni.number = 58;
5349
5350 int dynamic_array[ni.number];
5351 dynamic_array[ni.number - 1] = 543;
5352
5353 // work around unused variable warnings
5354 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5355 || dynamic_array[ni.number - 1] != 543);
5356
5357 ;
5358 return 0;
5359 }
5360 _ACEOF
5361 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5362 do
5363 CC="$ac_save_CC $ac_arg"
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_prog_cc_c99=$ac_arg
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext
5368 test "x$ac_cv_prog_cc_c99" != "xno" && break
5369 done
5370 rm -f conftest.$ac_ext
5371 CC=$ac_save_CC
5372
5373 fi
5374 # AC_CACHE_VAL
5375 case "x$ac_cv_prog_cc_c99" in
5376 x)
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5378 $as_echo "none needed" >&6; } ;;
5379 xno)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5381 $as_echo "unsupported" >&6; } ;;
5382 *)
5383 CC="$CC $ac_cv_prog_cc_c99"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5385 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5386 esac
5387 if test "x$ac_cv_prog_cc_c99" != xno; then :
5388 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5389 else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5391 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5392 if ${ac_cv_prog_cc_c89+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 ac_cv_prog_cc_c89=no
5396 ac_save_CC=$CC
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 #include <stdarg.h>
5400 #include <stdio.h>
5401 struct stat;
5402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5403 struct buf { int x; };
5404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5405 static char *e (p, i)
5406 char **p;
5407 int i;
5408 {
5409 return p[i];
5410 }
5411 static char *f (char * (*g) (char **, int), char **p, ...)
5412 {
5413 char *s;
5414 va_list v;
5415 va_start (v,p);
5416 s = g (p, va_arg (v,int));
5417 va_end (v);
5418 return s;
5419 }
5420
5421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5422 function prototypes and stuff, but not '\xHH' hex character constants.
5423 These don't provoke an error unfortunately, instead are silently treated
5424 as 'x'. The following induces an error, until -std is added to get
5425 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5426 array size at least. It's necessary to write '\x00'==0 to get something
5427 that's true only with -std. */
5428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5429
5430 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5431 inside strings and character constants. */
5432 #define FOO(x) 'x'
5433 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5434
5435 int test (int i, double x);
5436 struct s1 {int (*f) (int a);};
5437 struct s2 {int (*f) (double a);};
5438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5439 int argc;
5440 char **argv;
5441 int
5442 main ()
5443 {
5444 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5450 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5451 do
5452 CC="$ac_save_CC $ac_arg"
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454 ac_cv_prog_cc_c89=$ac_arg
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext
5457 test "x$ac_cv_prog_cc_c89" != "xno" && break
5458 done
5459 rm -f conftest.$ac_ext
5460 CC=$ac_save_CC
5461
5462 fi
5463 # AC_CACHE_VAL
5464 case "x$ac_cv_prog_cc_c89" in
5465 x)
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5467 $as_echo "none needed" >&6; } ;;
5468 xno)
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5470 $as_echo "unsupported" >&6; } ;;
5471 *)
5472 CC="$CC $ac_cv_prog_cc_c89"
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5474 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5475 esac
5476 if test "x$ac_cv_prog_cc_c89" != xno; then :
5477 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5478 else
5479 ac_cv_prog_cc_stdc=no
5480 fi
5481
5482 fi
5483 ;;
5484 esac
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5486 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5487 if ${ac_cv_prog_cc_stdc+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 fi
5490
5491 case $ac_cv_prog_cc_stdc in #(
5492 no) :
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5494 $as_echo "unsupported" >&6; } ;; #(
5495 '') :
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5497 $as_echo "none needed" >&6; } ;; #(
5498 *) :
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5500 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5501 esac
5502
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5505 $as_echo_n "checking whether ln -s works... " >&6; }
5506 LN_S=$as_ln_s
5507 if test "$LN_S" = "ln -s"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5509 $as_echo "yes" >&6; }
5510 else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5512 $as_echo "no, using $LN_S" >&6; }
5513 fi
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5517 set x ${MAKE-make}
5518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5519 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 cat >conftest.make <<\_ACEOF
5523 SHELL = /bin/sh
5524 all:
5525 @echo '@@@%%%=$(MAKE)=@@@%%%'
5526 _ACEOF
5527 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5529 *@@@%%%=?*=@@@%%%*)
5530 eval ac_cv_prog_make_${ac_make}_set=yes;;
5531 *)
5532 eval ac_cv_prog_make_${ac_make}_set=no;;
5533 esac
5534 rm -f conftest.make
5535 fi
5536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538 $as_echo "yes" >&6; }
5539 SET_MAKE=
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 SET_MAKE="MAKE=${MAKE-make}"
5544 fi
5545
5546 enable_win32_dll=yes
5547
5548 case $host in
5549 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5550 if test -n "$ac_tool_prefix"; then
5551 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5552 set dummy ${ac_tool_prefix}as; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_prog_AS+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 if test -n "$AS"; then
5559 ac_cv_prog_AS="$AS" # Let the user override the test.
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568 ac_cv_prog_AS="${ac_tool_prefix}as"
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 break 2
5571 fi
5572 done
5573 done
5574 IFS=$as_save_IFS
5575
5576 fi
5577 fi
5578 AS=$ac_cv_prog_AS
5579 if test -n "$AS"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5581 $as_echo "$AS" >&6; }
5582 else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5585 fi
5586
5587
5588 fi
5589 if test -z "$ac_cv_prog_AS"; then
5590 ac_ct_AS=$AS
5591 # Extract the first word of "as", so it can be a program name with args.
5592 set dummy as; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 if test -n "$ac_ct_AS"; then
5599 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608 ac_cv_prog_ac_ct_AS="as"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612 done
5613 done
5614 IFS=$as_save_IFS
5615
5616 fi
5617 fi
5618 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5619 if test -n "$ac_ct_AS"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5621 $as_echo "$ac_ct_AS" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626
5627 if test "x$ac_ct_AS" = x; then
5628 AS="false"
5629 else
5630 case $cross_compiling:$ac_tool_warned in
5631 yes:)
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5634 ac_tool_warned=yes ;;
5635 esac
5636 AS=$ac_ct_AS
5637 fi
5638 else
5639 AS="$ac_cv_prog_AS"
5640 fi
5641
5642 if test -n "$ac_tool_prefix"; then
5643 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5644 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_DLLTOOL+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 if test -n "$DLLTOOL"; then
5651 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664 done
5665 done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 DLLTOOL=$ac_cv_prog_DLLTOOL
5671 if test -n "$DLLTOOL"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5673 $as_echo "$DLLTOOL" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678
5679
5680 fi
5681 if test -z "$ac_cv_prog_DLLTOOL"; then
5682 ac_ct_DLLTOOL=$DLLTOOL
5683 # Extract the first word of "dlltool", so it can be a program name with args.
5684 set dummy dlltool; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 if test -n "$ac_ct_DLLTOOL"; then
5691 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5711 if test -n "$ac_ct_DLLTOOL"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5713 $as_echo "$ac_ct_DLLTOOL" >&6; }
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719 if test "x$ac_ct_DLLTOOL" = x; then
5720 DLLTOOL="false"
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723 yes:)
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726 ac_tool_warned=yes ;;
5727 esac
5728 DLLTOOL=$ac_ct_DLLTOOL
5729 fi
5730 else
5731 DLLTOOL="$ac_cv_prog_DLLTOOL"
5732 fi
5733
5734 if test -n "$ac_tool_prefix"; then
5735 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5736 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_OBJDUMP+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 if test -n "$OBJDUMP"; then
5743 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5755 fi
5756 done
5757 done
5758 IFS=$as_save_IFS
5759
5760 fi
5761 fi
5762 OBJDUMP=$ac_cv_prog_OBJDUMP
5763 if test -n "$OBJDUMP"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5765 $as_echo "$OBJDUMP" >&6; }
5766 else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770
5771
5772 fi
5773 if test -z "$ac_cv_prog_OBJDUMP"; then
5774 ac_ct_OBJDUMP=$OBJDUMP
5775 # Extract the first word of "objdump", so it can be a program name with args.
5776 set dummy objdump; ac_word=$2
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778 $as_echo_n "checking for $ac_word... " >&6; }
5779 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 if test -n "$ac_ct_OBJDUMP"; then
5783 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5787 do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796 done
5797 done
5798 IFS=$as_save_IFS
5799
5800 fi
5801 fi
5802 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5803 if test -n "$ac_ct_OBJDUMP"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5805 $as_echo "$ac_ct_OBJDUMP" >&6; }
5806 else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5809 fi
5810
5811 if test "x$ac_ct_OBJDUMP" = x; then
5812 OBJDUMP="false"
5813 else
5814 case $cross_compiling:$ac_tool_warned in
5815 yes:)
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818 ac_tool_warned=yes ;;
5819 esac
5820 OBJDUMP=$ac_ct_OBJDUMP
5821 fi
5822 else
5823 OBJDUMP="$ac_cv_prog_OBJDUMP"
5824 fi
5825
5826 ;;
5827 esac
5828
5829 test -z "$AS" && AS=as
5830
5831
5832
5833
5834
5835 test -z "$DLLTOOL" && DLLTOOL=dlltool
5836
5837
5838
5839
5840
5841 test -z "$OBJDUMP" && OBJDUMP=objdump
5842
5843
5844
5845
5846
5847
5848
5849 case `pwd` in
5850 *\ * | *\ *)
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5852 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5853 esac
5854
5855
5856
5857 macro_version='2.4.6'
5858 macro_revision='2.4.6'
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 ltmain=$ac_aux_dir/ltmain.sh
5873
5874 # Backslashify metacharacters that are still active within
5875 # double-quoted strings.
5876 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5877
5878 # Same as above, but do not quote variable references.
5879 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5880
5881 # Sed substitution to delay expansion of an escaped shell variable in a
5882 # double_quote_subst'ed string.
5883 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5884
5885 # Sed substitution to delay expansion of an escaped single quote.
5886 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5887
5888 # Sed substitution to avoid accidental globbing in evaled expressions
5889 no_glob_subst='s/\*/\\\*/g'
5890
5891 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5892 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5893 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5896 $as_echo_n "checking how to print strings... " >&6; }
5897 # Test print first, because it will be a builtin if present.
5898 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5899 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5900 ECHO='print -r --'
5901 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5902 ECHO='printf %s\n'
5903 else
5904 # Use this function as a fallback that always works.
5905 func_fallback_echo ()
5906 {
5907 eval 'cat <<_LTECHO_EOF
5908 $1
5909 _LTECHO_EOF'
5910 }
5911 ECHO='func_fallback_echo'
5912 fi
5913
5914 # func_echo_all arg...
5915 # Invoke $ECHO with all args, space-separated.
5916 func_echo_all ()
5917 {
5918 $ECHO ""
5919 }
5920
5921 case $ECHO in
5922 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5923 $as_echo "printf" >&6; } ;;
5924 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5925 $as_echo "print -r" >&6; } ;;
5926 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5927 $as_echo "cat" >&6; } ;;
5928 esac
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5944 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5945 if ${ac_cv_path_SED+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5949 for ac_i in 1 2 3 4 5 6 7; do
5950 ac_script="$ac_script$as_nl$ac_script"
5951 done
5952 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5953 { ac_script=; unset ac_script;}
5954 if test -z "$SED"; then
5955 ac_path_SED_found=false
5956 # Loop through the user's path and test for each of PROGNAME-LIST
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_prog in sed gsed; do
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5965 as_fn_executable_p "$ac_path_SED" || continue
5966 # Check for GNU ac_path_SED and select it if it is found.
5967 # Check for GNU $ac_path_SED
5968 case `"$ac_path_SED" --version 2>&1` in
5969 *GNU*)
5970 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5971 *)
5972 ac_count=0
5973 $as_echo_n 0123456789 >"conftest.in"
5974 while :
5975 do
5976 cat "conftest.in" "conftest.in" >"conftest.tmp"
5977 mv "conftest.tmp" "conftest.in"
5978 cp "conftest.in" "conftest.nl"
5979 $as_echo '' >> "conftest.nl"
5980 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5982 as_fn_arith $ac_count + 1 && ac_count=$as_val
5983 if test $ac_count -gt ${ac_path_SED_max-0}; then
5984 # Best one so far, save it but keep looking for a better one
5985 ac_cv_path_SED="$ac_path_SED"
5986 ac_path_SED_max=$ac_count
5987 fi
5988 # 10*(2^10) chars as input seems more than enough
5989 test $ac_count -gt 10 && break
5990 done
5991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5992 esac
5993
5994 $ac_path_SED_found && break 3
5995 done
5996 done
5997 done
5998 IFS=$as_save_IFS
5999 if test -z "$ac_cv_path_SED"; then
6000 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6001 fi
6002 else
6003 ac_cv_path_SED=$SED
6004 fi
6005
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6008 $as_echo "$ac_cv_path_SED" >&6; }
6009 SED="$ac_cv_path_SED"
6010 rm -f conftest.sed
6011
6012 test -z "$SED" && SED=sed
6013 Xsed="$SED -e 1s/^X//"
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6026 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6027 if ${ac_cv_path_GREP+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if test -z "$GREP"; then
6031 ac_path_GREP_found=false
6032 # Loop through the user's path and test for each of PROGNAME-LIST
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6035 do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_prog in grep ggrep; do
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6041 as_fn_executable_p "$ac_path_GREP" || continue
6042 # Check for GNU ac_path_GREP and select it if it is found.
6043 # Check for GNU $ac_path_GREP
6044 case `"$ac_path_GREP" --version 2>&1` in
6045 *GNU*)
6046 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6047 *)
6048 ac_count=0
6049 $as_echo_n 0123456789 >"conftest.in"
6050 while :
6051 do
6052 cat "conftest.in" "conftest.in" >"conftest.tmp"
6053 mv "conftest.tmp" "conftest.in"
6054 cp "conftest.in" "conftest.nl"
6055 $as_echo 'GREP' >> "conftest.nl"
6056 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6058 as_fn_arith $ac_count + 1 && ac_count=$as_val
6059 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6060 # Best one so far, save it but keep looking for a better one
6061 ac_cv_path_GREP="$ac_path_GREP"
6062 ac_path_GREP_max=$ac_count
6063 fi
6064 # 10*(2^10) chars as input seems more than enough
6065 test $ac_count -gt 10 && break
6066 done
6067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6068 esac
6069
6070 $ac_path_GREP_found && break 3
6071 done
6072 done
6073 done
6074 IFS=$as_save_IFS
6075 if test -z "$ac_cv_path_GREP"; then
6076 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6077 fi
6078 else
6079 ac_cv_path_GREP=$GREP
6080 fi
6081
6082 fi
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6084 $as_echo "$ac_cv_path_GREP" >&6; }
6085 GREP="$ac_cv_path_GREP"
6086
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6089 $as_echo_n "checking for egrep... " >&6; }
6090 if ${ac_cv_path_EGREP+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6094 then ac_cv_path_EGREP="$GREP -E"
6095 else
6096 if test -z "$EGREP"; then
6097 ac_path_EGREP_found=false
6098 # Loop through the user's path and test for each of PROGNAME-LIST
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6101 do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_prog in egrep; do
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6107 as_fn_executable_p "$ac_path_EGREP" || continue
6108 # Check for GNU ac_path_EGREP and select it if it is found.
6109 # Check for GNU $ac_path_EGREP
6110 case `"$ac_path_EGREP" --version 2>&1` in
6111 *GNU*)
6112 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6113 *)
6114 ac_count=0
6115 $as_echo_n 0123456789 >"conftest.in"
6116 while :
6117 do
6118 cat "conftest.in" "conftest.in" >"conftest.tmp"
6119 mv "conftest.tmp" "conftest.in"
6120 cp "conftest.in" "conftest.nl"
6121 $as_echo 'EGREP' >> "conftest.nl"
6122 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6124 as_fn_arith $ac_count + 1 && ac_count=$as_val
6125 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6126 # Best one so far, save it but keep looking for a better one
6127 ac_cv_path_EGREP="$ac_path_EGREP"
6128 ac_path_EGREP_max=$ac_count
6129 fi
6130 # 10*(2^10) chars as input seems more than enough
6131 test $ac_count -gt 10 && break
6132 done
6133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6134 esac
6135
6136 $ac_path_EGREP_found && break 3
6137 done
6138 done
6139 done
6140 IFS=$as_save_IFS
6141 if test -z "$ac_cv_path_EGREP"; then
6142 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6143 fi
6144 else
6145 ac_cv_path_EGREP=$EGREP
6146 fi
6147
6148 fi
6149 fi
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6151 $as_echo "$ac_cv_path_EGREP" >&6; }
6152 EGREP="$ac_cv_path_EGREP"
6153
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6156 $as_echo_n "checking for fgrep... " >&6; }
6157 if ${ac_cv_path_FGREP+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6161 then ac_cv_path_FGREP="$GREP -F"
6162 else
6163 if test -z "$FGREP"; then
6164 ac_path_FGREP_found=false
6165 # Loop through the user's path and test for each of PROGNAME-LIST
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6168 do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_prog in fgrep; do
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6174 as_fn_executable_p "$ac_path_FGREP" || continue
6175 # Check for GNU ac_path_FGREP and select it if it is found.
6176 # Check for GNU $ac_path_FGREP
6177 case `"$ac_path_FGREP" --version 2>&1` in
6178 *GNU*)
6179 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6180 *)
6181 ac_count=0
6182 $as_echo_n 0123456789 >"conftest.in"
6183 while :
6184 do
6185 cat "conftest.in" "conftest.in" >"conftest.tmp"
6186 mv "conftest.tmp" "conftest.in"
6187 cp "conftest.in" "conftest.nl"
6188 $as_echo 'FGREP' >> "conftest.nl"
6189 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6191 as_fn_arith $ac_count + 1 && ac_count=$as_val
6192 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6193 # Best one so far, save it but keep looking for a better one
6194 ac_cv_path_FGREP="$ac_path_FGREP"
6195 ac_path_FGREP_max=$ac_count
6196 fi
6197 # 10*(2^10) chars as input seems more than enough
6198 test $ac_count -gt 10 && break
6199 done
6200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6201 esac
6202
6203 $ac_path_FGREP_found && break 3
6204 done
6205 done
6206 done
6207 IFS=$as_save_IFS
6208 if test -z "$ac_cv_path_FGREP"; then
6209 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6210 fi
6211 else
6212 ac_cv_path_FGREP=$FGREP
6213 fi
6214
6215 fi
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6218 $as_echo "$ac_cv_path_FGREP" >&6; }
6219 FGREP="$ac_cv_path_FGREP"
6220
6221
6222 test -z "$GREP" && GREP=grep
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242 # Check whether --with-gnu-ld was given.
6243 if test "${with_gnu_ld+set}" = set; then :
6244 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6245 else
6246 with_gnu_ld=no
6247 fi
6248
6249 ac_prog=ld
6250 if test yes = "$GCC"; then
6251 # Check if gcc -print-prog-name=ld gives a path.
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6253 $as_echo_n "checking for ld used by $CC... " >&6; }
6254 case $host in
6255 *-*-mingw*)
6256 # gcc leaves a trailing carriage return, which upsets mingw
6257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6258 *)
6259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6260 esac
6261 case $ac_prog in
6262 # Accept absolute paths.
6263 [\\/]* | ?:[\\/]*)
6264 re_direlt='/[^/][^/]*/\.\./'
6265 # Canonicalize the pathname of ld
6266 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6267 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6268 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6269 done
6270 test -z "$LD" && LD=$ac_prog
6271 ;;
6272 "")
6273 # If it fails, then pretend we aren't using GCC.
6274 ac_prog=ld
6275 ;;
6276 *)
6277 # If it is relative, then search for the first ld in PATH.
6278 with_gnu_ld=unknown
6279 ;;
6280 esac
6281 elif test yes = "$with_gnu_ld"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6283 $as_echo_n "checking for GNU ld... " >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6286 $as_echo_n "checking for non-GNU ld... " >&6; }
6287 fi
6288 if ${lt_cv_path_LD+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 if test -z "$LD"; then
6292 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6293 for ac_dir in $PATH; do
6294 IFS=$lt_save_ifs
6295 test -z "$ac_dir" && ac_dir=.
6296 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6297 lt_cv_path_LD=$ac_dir/$ac_prog
6298 # Check to see if the program is GNU ld. I'd rather use --version,
6299 # but apparently some variants of GNU ld only accept -v.
6300 # Break only if it was the GNU/non-GNU ld that we prefer.
6301 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6302 *GNU* | *'with BFD'*)
6303 test no != "$with_gnu_ld" && break
6304 ;;
6305 *)
6306 test yes != "$with_gnu_ld" && break
6307 ;;
6308 esac
6309 fi
6310 done
6311 IFS=$lt_save_ifs
6312 else
6313 lt_cv_path_LD=$LD # Let the user override the test with a path.
6314 fi
6315 fi
6316
6317 LD=$lt_cv_path_LD
6318 if test -n "$LD"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6320 $as_echo "$LD" >&6; }
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6327 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6328 if ${lt_cv_prog_gnu_ld+:} false; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6332 case `$LD -v 2>&1 </dev/null` in
6333 *GNU* | *'with BFD'*)
6334 lt_cv_prog_gnu_ld=yes
6335 ;;
6336 *)
6337 lt_cv_prog_gnu_ld=no
6338 ;;
6339 esac
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6342 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6343 with_gnu_ld=$lt_cv_prog_gnu_ld
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6354 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6355 if ${lt_cv_path_NM+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$NM"; then
6359 # Let the user override the test.
6360 lt_cv_path_NM=$NM
6361 else
6362 lt_nm_to_check=${ac_tool_prefix}nm
6363 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6364 lt_nm_to_check="$lt_nm_to_check nm"
6365 fi
6366 for lt_tmp_nm in $lt_nm_to_check; do
6367 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6368 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6369 IFS=$lt_save_ifs
6370 test -z "$ac_dir" && ac_dir=.
6371 tmp_nm=$ac_dir/$lt_tmp_nm
6372 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6373 # Check to see if the nm accepts a BSD-compat flag.
6374 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6375 # nm: unknown option "B" ignored
6376 # Tru64's nm complains that /dev/null is an invalid object file
6377 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6378 case $build_os in
6379 mingw*) lt_bad_file=conftest.nm/nofile ;;
6380 *) lt_bad_file=/dev/null ;;
6381 esac
6382 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6383 *$lt_bad_file* | *'Invalid file or object type'*)
6384 lt_cv_path_NM="$tmp_nm -B"
6385 break 2
6386 ;;
6387 *)
6388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6389 */dev/null*)
6390 lt_cv_path_NM="$tmp_nm -p"
6391 break 2
6392 ;;
6393 *)
6394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6395 continue # so that we can try to find one that supports BSD flags
6396 ;;
6397 esac
6398 ;;
6399 esac
6400 fi
6401 done
6402 IFS=$lt_save_ifs
6403 done
6404 : ${lt_cv_path_NM=no}
6405 fi
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6408 $as_echo "$lt_cv_path_NM" >&6; }
6409 if test no != "$lt_cv_path_NM"; then
6410 NM=$lt_cv_path_NM
6411 else
6412 # Didn't find any BSD compatible name lister, look for dumpbin.
6413 if test -n "$DUMPBIN"; then :
6414 # Let the user override the test.
6415 else
6416 if test -n "$ac_tool_prefix"; then
6417 for ac_prog in dumpbin "link -dump"
6418 do
6419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_DUMPBIN+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$DUMPBIN"; then
6427 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 DUMPBIN=$ac_cv_prog_DUMPBIN
6447 if test -n "$DUMPBIN"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6449 $as_echo "$DUMPBIN" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455
6456 test -n "$DUMPBIN" && break
6457 done
6458 fi
6459 if test -z "$DUMPBIN"; then
6460 ac_ct_DUMPBIN=$DUMPBIN
6461 for ac_prog in dumpbin "link -dump"
6462 do
6463 # Extract the first word of "$ac_prog", so it can be a program name with args.
6464 set dummy $ac_prog; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if test -n "$ac_ct_DUMPBIN"; then
6471 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488 fi
6489 fi
6490 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6491 if test -n "$ac_ct_DUMPBIN"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6493 $as_echo "$ac_ct_DUMPBIN" >&6; }
6494 else
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6497 fi
6498
6499
6500 test -n "$ac_ct_DUMPBIN" && break
6501 done
6502
6503 if test "x$ac_ct_DUMPBIN" = x; then
6504 DUMPBIN=":"
6505 else
6506 case $cross_compiling:$ac_tool_warned in
6507 yes:)
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6511 esac
6512 DUMPBIN=$ac_ct_DUMPBIN
6513 fi
6514 fi
6515
6516 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6517 *COFF*)
6518 DUMPBIN="$DUMPBIN -symbols -headers"
6519 ;;
6520 *)
6521 DUMPBIN=:
6522 ;;
6523 esac
6524 fi
6525
6526 if test : != "$DUMPBIN"; then
6527 NM=$DUMPBIN
6528 fi
6529 fi
6530 test -z "$NM" && NM=nm
6531
6532
6533
6534
6535
6536
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6538 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6539 if ${lt_cv_nm_interface+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 lt_cv_nm_interface="BSD nm"
6543 echo "int some_variable = 0;" > conftest.$ac_ext
6544 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6545 (eval "$ac_compile" 2>conftest.err)
6546 cat conftest.err >&5
6547 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6548 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6549 cat conftest.err >&5
6550 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6551 cat conftest.out >&5
6552 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6553 lt_cv_nm_interface="MS dumpbin"
6554 fi
6555 rm -f conftest*
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6558 $as_echo "$lt_cv_nm_interface" >&6; }
6559
6560 # find the maximum length of command line arguments
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6562 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6563 if ${lt_cv_sys_max_cmd_len+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 i=0
6567 teststring=ABCD
6568
6569 case $build_os in
6570 msdosdjgpp*)
6571 # On DJGPP, this test can blow up pretty badly due to problems in libc
6572 # (any single argument exceeding 2000 bytes causes a buffer overrun
6573 # during glob expansion). Even if it were fixed, the result of this
6574 # check would be larger than it should be.
6575 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6576 ;;
6577
6578 gnu*)
6579 # Under GNU Hurd, this test is not required because there is
6580 # no limit to the length of command line arguments.
6581 # Libtool will interpret -1 as no limit whatsoever
6582 lt_cv_sys_max_cmd_len=-1;
6583 ;;
6584
6585 cygwin* | mingw* | cegcc*)
6586 # On Win9x/ME, this test blows up -- it succeeds, but takes
6587 # about 5 minutes as the teststring grows exponentially.
6588 # Worse, since 9x/ME are not pre-emptively multitasking,
6589 # you end up with a "frozen" computer, even though with patience
6590 # the test eventually succeeds (with a max line length of 256k).
6591 # Instead, let's just punt: use the minimum linelength reported by
6592 # all of the supported platforms: 8192 (on NT/2K/XP).
6593 lt_cv_sys_max_cmd_len=8192;
6594 ;;
6595
6596 mint*)
6597 # On MiNT this can take a long time and run out of memory.
6598 lt_cv_sys_max_cmd_len=8192;
6599 ;;
6600
6601 amigaos*)
6602 # On AmigaOS with pdksh, this test takes hours, literally.
6603 # So we just punt and use a minimum line length of 8192.
6604 lt_cv_sys_max_cmd_len=8192;
6605 ;;
6606
6607 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6608 # This has been around since 386BSD, at least. Likely further.
6609 if test -x /sbin/sysctl; then
6610 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6611 elif test -x /usr/sbin/sysctl; then
6612 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6613 else
6614 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6615 fi
6616 # And add a safety zone
6617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6619 ;;
6620
6621 interix*)
6622 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6623 lt_cv_sys_max_cmd_len=196608
6624 ;;
6625
6626 os2*)
6627 # The test takes a long time on OS/2.
6628 lt_cv_sys_max_cmd_len=8192
6629 ;;
6630
6631 osf*)
6632 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6633 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6634 # nice to cause kernel panics so lets avoid the loop below.
6635 # First set a reasonable default.
6636 lt_cv_sys_max_cmd_len=16384
6637 #
6638 if test -x /sbin/sysconfig; then
6639 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6640 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6641 esac
6642 fi
6643 ;;
6644 sco3.2v5*)
6645 lt_cv_sys_max_cmd_len=102400
6646 ;;
6647 sysv5* | sco5v6* | sysv4.2uw2*)
6648 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6649 if test -n "$kargmax"; then
6650 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6651 else
6652 lt_cv_sys_max_cmd_len=32768
6653 fi
6654 ;;
6655 *)
6656 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6657 if test -n "$lt_cv_sys_max_cmd_len" && \
6658 test undefined != "$lt_cv_sys_max_cmd_len"; then
6659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6661 else
6662 # Make teststring a little bigger before we do anything with it.
6663 # a 1K string should be a reasonable start.
6664 for i in 1 2 3 4 5 6 7 8; do
6665 teststring=$teststring$teststring
6666 done
6667 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6668 # If test is not a shell built-in, we'll probably end up computing a
6669 # maximum length that is only half of the actual maximum length, but
6670 # we can't tell.
6671 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6672 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6673 test 17 != "$i" # 1/2 MB should be enough
6674 do
6675 i=`expr $i + 1`
6676 teststring=$teststring$teststring
6677 done
6678 # Only check the string length outside the loop.
6679 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6680 teststring=
6681 # Add a significant safety factor because C++ compilers can tack on
6682 # massive amounts of additional arguments before passing them to the
6683 # linker. It appears as though 1/2 is a usable value.
6684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6685 fi
6686 ;;
6687 esac
6688
6689 fi
6690
6691 if test -n "$lt_cv_sys_max_cmd_len"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6693 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6696 $as_echo "none" >&6; }
6697 fi
6698 max_cmd_len=$lt_cv_sys_max_cmd_len
6699
6700
6701
6702
6703
6704
6705 : ${CP="cp -f"}
6706 : ${MV="mv -f"}
6707 : ${RM="rm -f"}
6708
6709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6710 lt_unset=unset
6711 else
6712 lt_unset=false
6713 fi
6714
6715
6716
6717
6718
6719 # test EBCDIC or ASCII
6720 case `echo X|tr X '\101'` in
6721 A) # ASCII based system
6722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6723 lt_SP2NL='tr \040 \012'
6724 lt_NL2SP='tr \015\012 \040\040'
6725 ;;
6726 *) # EBCDIC based system
6727 lt_SP2NL='tr \100 \n'
6728 lt_NL2SP='tr \r\n \100\100'
6729 ;;
6730 esac
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6741 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6742 if ${lt_cv_to_host_file_cmd+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 case $host in
6746 *-*-mingw* )
6747 case $build in
6748 *-*-mingw* ) # actually msys
6749 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6750 ;;
6751 *-*-cygwin* )
6752 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6753 ;;
6754 * ) # otherwise, assume *nix
6755 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6756 ;;
6757 esac
6758 ;;
6759 *-*-cygwin* )
6760 case $build in
6761 *-*-mingw* ) # actually msys
6762 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6763 ;;
6764 *-*-cygwin* )
6765 lt_cv_to_host_file_cmd=func_convert_file_noop
6766 ;;
6767 * ) # otherwise, assume *nix
6768 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6769 ;;
6770 esac
6771 ;;
6772 * ) # unhandled hosts (and "normal" native builds)
6773 lt_cv_to_host_file_cmd=func_convert_file_noop
6774 ;;
6775 esac
6776
6777 fi
6778
6779 to_host_file_cmd=$lt_cv_to_host_file_cmd
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6781 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6782
6783
6784
6785
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6788 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6789 if ${lt_cv_to_tool_file_cmd+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 #assume ordinary cross tools, or native build.
6793 lt_cv_to_tool_file_cmd=func_convert_file_noop
6794 case $host in
6795 *-*-mingw* )
6796 case $build in
6797 *-*-mingw* ) # actually msys
6798 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6799 ;;
6800 esac
6801 ;;
6802 esac
6803
6804 fi
6805
6806 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6808 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6809
6810
6811
6812
6813
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6815 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6816 if ${lt_cv_ld_reload_flag+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 lt_cv_ld_reload_flag='-r'
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6822 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6823 reload_flag=$lt_cv_ld_reload_flag
6824 case $reload_flag in
6825 "" | " "*) ;;
6826 *) reload_flag=" $reload_flag" ;;
6827 esac
6828 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6829 case $host_os in
6830 cygwin* | mingw* | pw32* | cegcc*)
6831 if test yes != "$GCC"; then
6832 reload_cmds=false
6833 fi
6834 ;;
6835 darwin*)
6836 if test yes = "$GCC"; then
6837 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6838 else
6839 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6840 fi
6841 ;;
6842 esac
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852 if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6854 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if ${ac_cv_prog_OBJDUMP+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 if test -n "$OBJDUMP"; then
6861 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi
6879 fi
6880 OBJDUMP=$ac_cv_prog_OBJDUMP
6881 if test -n "$OBJDUMP"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6883 $as_echo "$OBJDUMP" >&6; }
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6887 fi
6888
6889
6890 fi
6891 if test -z "$ac_cv_prog_OBJDUMP"; then
6892 ac_ct_OBJDUMP=$OBJDUMP
6893 # Extract the first word of "objdump", so it can be a program name with args.
6894 set dummy objdump; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$ac_ct_OBJDUMP"; then
6901 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6921 if test -n "$ac_ct_OBJDUMP"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6923 $as_echo "$ac_ct_OBJDUMP" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929 if test "x$ac_ct_OBJDUMP" = x; then
6930 OBJDUMP="false"
6931 else
6932 case $cross_compiling:$ac_tool_warned in
6933 yes:)
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936 ac_tool_warned=yes ;;
6937 esac
6938 OBJDUMP=$ac_ct_OBJDUMP
6939 fi
6940 else
6941 OBJDUMP="$ac_cv_prog_OBJDUMP"
6942 fi
6943
6944 test -z "$OBJDUMP" && OBJDUMP=objdump
6945
6946
6947
6948
6949
6950
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6952 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6953 if ${lt_cv_deplibs_check_method+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 lt_cv_file_magic_cmd='$MAGIC_CMD'
6957 lt_cv_file_magic_test_file=
6958 lt_cv_deplibs_check_method='unknown'
6959 # Need to set the preceding variable on all platforms that support
6960 # interlibrary dependencies.
6961 # 'none' -- dependencies not supported.
6962 # 'unknown' -- same as none, but documents that we really don't know.
6963 # 'pass_all' -- all dependencies passed with no checks.
6964 # 'test_compile' -- check by making test program.
6965 # 'file_magic [[regex]]' -- check by looking for files in library path
6966 # that responds to the $file_magic_cmd with a given extended regex.
6967 # If you have 'file' or equivalent on your system and you're not sure
6968 # whether 'pass_all' will *always* work, you probably want this one.
6969
6970 case $host_os in
6971 aix[4-9]*)
6972 lt_cv_deplibs_check_method=pass_all
6973 ;;
6974
6975 beos*)
6976 lt_cv_deplibs_check_method=pass_all
6977 ;;
6978
6979 bsdi[45]*)
6980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6981 lt_cv_file_magic_cmd='/usr/bin/file -L'
6982 lt_cv_file_magic_test_file=/shlib/libc.so
6983 ;;
6984
6985 cygwin*)
6986 # func_win32_libid is a shell function defined in ltmain.sh
6987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6988 lt_cv_file_magic_cmd='func_win32_libid'
6989 ;;
6990
6991 mingw* | pw32*)
6992 # Base MSYS/MinGW do not provide the 'file' command needed by
6993 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6994 # unless we find 'file', for example because we are cross-compiling.
6995 if ( file / ) >/dev/null 2>&1; then
6996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6997 lt_cv_file_magic_cmd='func_win32_libid'
6998 else
6999 # Keep this pattern in sync with the one in func_win32_libid.
7000 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7001 lt_cv_file_magic_cmd='$OBJDUMP -f'
7002 fi
7003 ;;
7004
7005 cegcc*)
7006 # use the weaker test based on 'objdump'. See mingw*.
7007 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7008 lt_cv_file_magic_cmd='$OBJDUMP -f'
7009 ;;
7010
7011 darwin* | rhapsody*)
7012 lt_cv_deplibs_check_method=pass_all
7013 ;;
7014
7015 freebsd* | dragonfly*)
7016 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7017 case $host_cpu in
7018 i*86 )
7019 # Not sure whether the presence of OpenBSD here was a mistake.
7020 # Let's accept both of them until this is cleared up.
7021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7022 lt_cv_file_magic_cmd=/usr/bin/file
7023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7024 ;;
7025 esac
7026 else
7027 lt_cv_deplibs_check_method=pass_all
7028 fi
7029 ;;
7030
7031 haiku*)
7032 lt_cv_deplibs_check_method=pass_all
7033 ;;
7034
7035 hpux10.20* | hpux11*)
7036 lt_cv_file_magic_cmd=/usr/bin/file
7037 case $host_cpu in
7038 ia64*)
7039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7041 ;;
7042 hppa*64*)
7043 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]'
7044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7045 ;;
7046 *)
7047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7049 ;;
7050 esac
7051 ;;
7052
7053 interix[3-9]*)
7054 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7056 ;;
7057
7058 irix5* | irix6* | nonstopux*)
7059 case $LD in
7060 *-32|*"-32 ") libmagic=32-bit;;
7061 *-n32|*"-n32 ") libmagic=N32;;
7062 *-64|*"-64 ") libmagic=64-bit;;
7063 *) libmagic=never-match;;
7064 esac
7065 lt_cv_deplibs_check_method=pass_all
7066 ;;
7067
7068 # This must be glibc/ELF.
7069 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7070 lt_cv_deplibs_check_method=pass_all
7071 ;;
7072
7073 netbsd* | netbsdelf*-gnu)
7074 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7076 else
7077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7078 fi
7079 ;;
7080
7081 newos6*)
7082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7083 lt_cv_file_magic_cmd=/usr/bin/file
7084 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7085 ;;
7086
7087 *nto* | *qnx*)
7088 lt_cv_deplibs_check_method=pass_all
7089 ;;
7090
7091 openbsd* | bitrig*)
7092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7094 else
7095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7096 fi
7097 ;;
7098
7099 osf3* | osf4* | osf5*)
7100 lt_cv_deplibs_check_method=pass_all
7101 ;;
7102
7103 rdos*)
7104 lt_cv_deplibs_check_method=pass_all
7105 ;;
7106
7107 solaris*)
7108 lt_cv_deplibs_check_method=pass_all
7109 ;;
7110
7111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7112 lt_cv_deplibs_check_method=pass_all
7113 ;;
7114
7115 sysv4 | sysv4.3*)
7116 case $host_vendor in
7117 motorola)
7118 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]'
7119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7120 ;;
7121 ncr)
7122 lt_cv_deplibs_check_method=pass_all
7123 ;;
7124 sequent)
7125 lt_cv_file_magic_cmd='/bin/file'
7126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7127 ;;
7128 sni)
7129 lt_cv_file_magic_cmd='/bin/file'
7130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7131 lt_cv_file_magic_test_file=/lib/libc.so
7132 ;;
7133 siemens)
7134 lt_cv_deplibs_check_method=pass_all
7135 ;;
7136 pc)
7137 lt_cv_deplibs_check_method=pass_all
7138 ;;
7139 esac
7140 ;;
7141
7142 tpf*)
7143 lt_cv_deplibs_check_method=pass_all
7144 ;;
7145 os2*)
7146 lt_cv_deplibs_check_method=pass_all
7147 ;;
7148 esac
7149
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7153
7154 file_magic_glob=
7155 want_nocaseglob=no
7156 if test "$build" = "$host"; then
7157 case $host_os in
7158 mingw* | pw32*)
7159 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7160 want_nocaseglob=yes
7161 else
7162 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7163 fi
7164 ;;
7165 esac
7166 fi
7167
7168 file_magic_cmd=$lt_cv_file_magic_cmd
7169 deplibs_check_method=$lt_cv_deplibs_check_method
7170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_prog_DLLTOOL+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$DLLTOOL"; then
7202 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 DLLTOOL=$ac_cv_prog_DLLTOOL
7222 if test -n "$DLLTOOL"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7224 $as_echo "$DLLTOOL" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7228 fi
7229
7230
7231 fi
7232 if test -z "$ac_cv_prog_DLLTOOL"; then
7233 ac_ct_DLLTOOL=$DLLTOOL
7234 # Extract the first word of "dlltool", so it can be a program name with args.
7235 set dummy dlltool; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$ac_ct_DLLTOOL"; then
7242 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7262 if test -n "$ac_ct_DLLTOOL"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7264 $as_echo "$ac_ct_DLLTOOL" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270 if test "x$ac_ct_DLLTOOL" = x; then
7271 DLLTOOL="false"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 DLLTOOL=$ac_ct_DLLTOOL
7280 fi
7281 else
7282 DLLTOOL="$ac_cv_prog_DLLTOOL"
7283 fi
7284
7285 test -z "$DLLTOOL" && DLLTOOL=dlltool
7286
7287
7288
7289
7290
7291
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7294 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7295 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 lt_cv_sharedlib_from_linklib_cmd='unknown'
7299
7300 case $host_os in
7301 cygwin* | mingw* | pw32* | cegcc*)
7302 # two different shell functions defined in ltmain.sh;
7303 # decide which one to use based on capabilities of $DLLTOOL
7304 case `$DLLTOOL --help 2>&1` in
7305 *--identify-strict*)
7306 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7307 ;;
7308 *)
7309 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7310 ;;
7311 esac
7312 ;;
7313 *)
7314 # fallback: assume linklib IS sharedlib
7315 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7316 ;;
7317 esac
7318
7319 fi
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7321 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7322 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7323 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7324
7325
7326
7327
7328
7329
7330
7331 if test -n "$ac_tool_prefix"; then
7332 for ac_prog in ar
7333 do
7334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_AR+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$AR"; then
7342 ac_cv_prog_AR="$AR" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 AR=$ac_cv_prog_AR
7362 if test -n "$AR"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7364 $as_echo "$AR" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 test -n "$AR" && break
7372 done
7373 fi
7374 if test -z "$AR"; then
7375 ac_ct_AR=$AR
7376 for ac_prog in ar
7377 do
7378 # Extract the first word of "$ac_prog", so it can be a program name with args.
7379 set dummy $ac_prog; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 if test -n "$ac_ct_AR"; then
7386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_prog_ac_ct_AR="$ac_prog"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403 fi
7404 fi
7405 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7406 if test -n "$ac_ct_AR"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7408 $as_echo "$ac_ct_AR" >&6; }
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7412 fi
7413
7414
7415 test -n "$ac_ct_AR" && break
7416 done
7417
7418 if test "x$ac_ct_AR" = x; then
7419 AR="false"
7420 else
7421 case $cross_compiling:$ac_tool_warned in
7422 yes:)
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425 ac_tool_warned=yes ;;
7426 esac
7427 AR=$ac_ct_AR
7428 fi
7429 fi
7430
7431 : ${AR=ar}
7432 : ${AR_FLAGS=cru}
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7445 $as_echo_n "checking for archiver @FILE support... " >&6; }
7446 if ${lt_cv_ar_at_file+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 lt_cv_ar_at_file=no
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452
7453 int
7454 main ()
7455 {
7456
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 echo conftest.$ac_objext > conftest.lst
7463 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7465 (eval $lt_ar_try) 2>&5
7466 ac_status=$?
7467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468 test $ac_status = 0; }
7469 if test 0 -eq "$ac_status"; then
7470 # Ensure the archiver fails upon bogus file names.
7471 rm -f conftest.$ac_objext libconftest.a
7472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7473 (eval $lt_ar_try) 2>&5
7474 ac_status=$?
7475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476 test $ac_status = 0; }
7477 if test 0 -ne "$ac_status"; then
7478 lt_cv_ar_at_file=@
7479 fi
7480 fi
7481 rm -f conftest.* libconftest.a
7482
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7488 $as_echo "$lt_cv_ar_at_file" >&6; }
7489
7490 if test no = "$lt_cv_ar_at_file"; then
7491 archiver_list_spec=
7492 else
7493 archiver_list_spec=$lt_cv_ar_at_file
7494 fi
7495
7496
7497
7498
7499
7500
7501
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}strip; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_STRIP+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 if test -n "$STRIP"; then
7511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 STRIP=$ac_cv_prog_STRIP
7531 if test -n "$STRIP"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7533 $as_echo "$STRIP" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539
7540 fi
7541 if test -z "$ac_cv_prog_STRIP"; then
7542 ac_ct_STRIP=$STRIP
7543 # Extract the first word of "strip", so it can be a program name with args.
7544 set dummy strip; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 if test -n "$ac_ct_STRIP"; then
7551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_ac_ct_STRIP="strip"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568 fi
7569 fi
7570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7571 if test -n "$ac_ct_STRIP"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7573 $as_echo "$ac_ct_STRIP" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578
7579 if test "x$ac_ct_STRIP" = x; then
7580 STRIP=":"
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588 STRIP=$ac_ct_STRIP
7589 fi
7590 else
7591 STRIP="$ac_cv_prog_STRIP"
7592 fi
7593
7594 test -z "$STRIP" && STRIP=:
7595
7596
7597
7598
7599
7600
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_RANLIB+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 if test -n "$RANLIB"; then
7610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7622 fi
7623 done
7624 done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 RANLIB=$ac_cv_prog_RANLIB
7630 if test -n "$RANLIB"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7632 $as_echo "$RANLIB" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638
7639 fi
7640 if test -z "$ac_cv_prog_RANLIB"; then
7641 ac_ct_RANLIB=$RANLIB
7642 # Extract the first word of "ranlib", so it can be a program name with args.
7643 set dummy ranlib; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 if test -n "$ac_ct_RANLIB"; then
7650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_ac_ct_RANLIB="ranlib"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663 done
7664 done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7670 if test -n "$ac_ct_RANLIB"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7672 $as_echo "$ac_ct_RANLIB" >&6; }
7673 else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678 if test "x$ac_ct_RANLIB" = x; then
7679 RANLIB=":"
7680 else
7681 case $cross_compiling:$ac_tool_warned in
7682 yes:)
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685 ac_tool_warned=yes ;;
7686 esac
7687 RANLIB=$ac_ct_RANLIB
7688 fi
7689 else
7690 RANLIB="$ac_cv_prog_RANLIB"
7691 fi
7692
7693 test -z "$RANLIB" && RANLIB=:
7694
7695
7696
7697
7698
7699
7700 # Determine commands to create old-style static archives.
7701 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7702 old_postinstall_cmds='chmod 644 $oldlib'
7703 old_postuninstall_cmds=
7704
7705 if test -n "$RANLIB"; then
7706 case $host_os in
7707 bitrig* | openbsd*)
7708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7709 ;;
7710 *)
7711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7712 ;;
7713 esac
7714 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7715 fi
7716
7717 case $host_os in
7718 darwin*)
7719 lock_old_archive_extraction=yes ;;
7720 *)
7721 lock_old_archive_extraction=no ;;
7722 esac
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 # If no C compiler was specified, use CC.
7763 LTCC=${LTCC-"$CC"}
7764
7765 # If no C compiler flags were specified, use CFLAGS.
7766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7767
7768 # Allow CC to be a program name with arguments.
7769 compiler=$CC
7770
7771
7772 # Check for command to grab the raw symbol name followed by C symbol from nm.
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7774 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7775 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778
7779 # These are sane defaults that work on at least a few old systems.
7780 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7781
7782 # Character class describing NM global symbol codes.
7783 symcode='[BCDEGRST]'
7784
7785 # Regexp to match symbols that can be accessed directly from C.
7786 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7787
7788 # Define system-specific variables.
7789 case $host_os in
7790 aix*)
7791 symcode='[BCDT]'
7792 ;;
7793 cygwin* | mingw* | pw32* | cegcc*)
7794 symcode='[ABCDGISTW]'
7795 ;;
7796 hpux*)
7797 if test ia64 = "$host_cpu"; then
7798 symcode='[ABCDEGRST]'
7799 fi
7800 ;;
7801 irix* | nonstopux*)
7802 symcode='[BCDEGRST]'
7803 ;;
7804 osf*)
7805 symcode='[BCDEGQRST]'
7806 ;;
7807 solaris*)
7808 symcode='[BDRT]'
7809 ;;
7810 sco3.2v5*)
7811 symcode='[DT]'
7812 ;;
7813 sysv4.2uw2*)
7814 symcode='[DT]'
7815 ;;
7816 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7817 symcode='[ABDT]'
7818 ;;
7819 sysv4)
7820 symcode='[DFNSTU]'
7821 ;;
7822 esac
7823
7824 # If we're using GNU nm, then use its standard symbol codes.
7825 case `$NM -V 2>&1` in
7826 *GNU* | *'with BFD'*)
7827 symcode='[ABCDGIRSTW]' ;;
7828 esac
7829
7830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7831 # Gets list of data symbols to import.
7832 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7833 # Adjust the below global symbol transforms to fixup imported variables.
7834 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7835 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7836 lt_c_name_lib_hook="\
7837 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7838 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7839 else
7840 # Disable hooks by default.
7841 lt_cv_sys_global_symbol_to_import=
7842 lt_cdecl_hook=
7843 lt_c_name_hook=
7844 lt_c_name_lib_hook=
7845 fi
7846
7847 # Transform an extracted symbol line into a proper C declaration.
7848 # Some systems (esp. on ia64) link data and code symbols differently,
7849 # so use this general approach.
7850 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7851 $lt_cdecl_hook\
7852 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7853 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7854
7855 # Transform an extracted symbol line into symbol name and symbol address
7856 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7857 $lt_c_name_hook\
7858 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7859 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7860
7861 # Transform an extracted symbol line into symbol name with lib prefix and
7862 # symbol address.
7863 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7864 $lt_c_name_lib_hook\
7865 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7866 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7867 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7868
7869 # Handle CRLF in mingw tool chain
7870 opt_cr=
7871 case $build_os in
7872 mingw*)
7873 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7874 ;;
7875 esac
7876
7877 # Try without a prefix underscore, then with it.
7878 for ac_symprfx in "" "_"; do
7879
7880 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7881 symxfrm="\\1 $ac_symprfx\\2 \\2"
7882
7883 # Write the raw and C identifiers.
7884 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7885 # Fake it for dumpbin and say T for any non-static function,
7886 # D for any global variable and I for any imported variable.
7887 # Also find C++ and __fastcall symbols from MSVC++,
7888 # which start with @ or ?.
7889 lt_cv_sys_global_symbol_pipe="$AWK '"\
7890 " {last_section=section; section=\$ 3};"\
7891 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7892 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7893 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7894 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7895 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7896 " \$ 0!~/External *\|/{next};"\
7897 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7898 " {if(hide[section]) next};"\
7899 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7900 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7901 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7902 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7903 " ' prfx=^$ac_symprfx"
7904 else
7905 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7906 fi
7907 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7908
7909 # Check to see that the pipe works correctly.
7910 pipe_works=no
7911
7912 rm -f conftest*
7913 cat > conftest.$ac_ext <<_LT_EOF
7914 #ifdef __cplusplus
7915 extern "C" {
7916 #endif
7917 char nm_test_var;
7918 void nm_test_func(void);
7919 void nm_test_func(void){}
7920 #ifdef __cplusplus
7921 }
7922 #endif
7923 int main(){nm_test_var='a';nm_test_func();return(0);}
7924 _LT_EOF
7925
7926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7927 (eval $ac_compile) 2>&5
7928 ac_status=$?
7929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7930 test $ac_status = 0; }; then
7931 # Now try to grab the symbols.
7932 nlist=conftest.nm
7933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7934 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7935 ac_status=$?
7936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937 test $ac_status = 0; } && test -s "$nlist"; then
7938 # Try sorting and uniquifying the output.
7939 if sort "$nlist" | uniq > "$nlist"T; then
7940 mv -f "$nlist"T "$nlist"
7941 else
7942 rm -f "$nlist"T
7943 fi
7944
7945 # Make sure that we snagged all the symbols we need.
7946 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7947 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7948 cat <<_LT_EOF > conftest.$ac_ext
7949 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7950 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7951 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7952 relocations are performed -- see ld's documentation on pseudo-relocs. */
7953 # define LT_DLSYM_CONST
7954 #elif defined __osf__
7955 /* This system does not cope well with relocations in const data. */
7956 # define LT_DLSYM_CONST
7957 #else
7958 # define LT_DLSYM_CONST const
7959 #endif
7960
7961 #ifdef __cplusplus
7962 extern "C" {
7963 #endif
7964
7965 _LT_EOF
7966 # Now generate the symbol file.
7967 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7968
7969 cat <<_LT_EOF >> conftest.$ac_ext
7970
7971 /* The mapping between symbol names and symbols. */
7972 LT_DLSYM_CONST struct {
7973 const char *name;
7974 void *address;
7975 }
7976 lt__PROGRAM__LTX_preloaded_symbols[] =
7977 {
7978 { "@PROGRAM@", (void *) 0 },
7979 _LT_EOF
7980 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7981 cat <<\_LT_EOF >> conftest.$ac_ext
7982 {0, (void *) 0}
7983 };
7984
7985 /* This works around a problem in FreeBSD linker */
7986 #ifdef FREEBSD_WORKAROUND
7987 static const void *lt_preloaded_setup() {
7988 return lt__PROGRAM__LTX_preloaded_symbols;
7989 }
7990 #endif
7991
7992 #ifdef __cplusplus
7993 }
7994 #endif
7995 _LT_EOF
7996 # Now try linking the two files.
7997 mv conftest.$ac_objext conftstm.$ac_objext
7998 lt_globsym_save_LIBS=$LIBS
7999 lt_globsym_save_CFLAGS=$CFLAGS
8000 LIBS=conftstm.$ac_objext
8001 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8003 (eval $ac_link) 2>&5
8004 ac_status=$?
8005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8006 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8007 pipe_works=yes
8008 fi
8009 LIBS=$lt_globsym_save_LIBS
8010 CFLAGS=$lt_globsym_save_CFLAGS
8011 else
8012 echo "cannot find nm_test_func in $nlist" >&5
8013 fi
8014 else
8015 echo "cannot find nm_test_var in $nlist" >&5
8016 fi
8017 else
8018 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8019 fi
8020 else
8021 echo "$progname: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8023 fi
8024 rm -rf conftest* conftst*
8025
8026 # Do not use the global_symbol_pipe unless it works.
8027 if test yes = "$pipe_works"; then
8028 break
8029 else
8030 lt_cv_sys_global_symbol_pipe=
8031 fi
8032 done
8033
8034 fi
8035
8036 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8037 lt_cv_sys_global_symbol_to_cdecl=
8038 fi
8039 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8041 $as_echo "failed" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8044 $as_echo "ok" >&6; }
8045 fi
8046
8047 # Response file support.
8048 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8049 nm_file_list_spec='@'
8050 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8051 nm_file_list_spec='@'
8052 fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8091 $as_echo_n "checking for sysroot... " >&6; }
8092
8093 # Check whether --with-sysroot was given.
8094 if test "${with_sysroot+set}" = set; then :
8095 withval=$with_sysroot;
8096 else
8097 with_sysroot=no
8098 fi
8099
8100
8101 lt_sysroot=
8102 case $with_sysroot in #(
8103 yes)
8104 if test yes = "$GCC"; then
8105 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8106 fi
8107 ;; #(
8108 /*)
8109 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8110 ;; #(
8111 no|'')
8112 ;; #(
8113 *)
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8115 $as_echo "$with_sysroot" >&6; }
8116 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8117 ;;
8118 esac
8119
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8121 $as_echo "${lt_sysroot:-no}" >&6; }
8122
8123
8124
8125
8126
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8128 $as_echo_n "checking for a working dd... " >&6; }
8129 if ${ac_cv_path_lt_DD+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 printf 0123456789abcdef0123456789abcdef >conftest.i
8133 cat conftest.i conftest.i >conftest2.i
8134 : ${lt_DD:=$DD}
8135 if test -z "$lt_DD"; then
8136 ac_path_lt_DD_found=false
8137 # Loop through the user's path and test for each of PROGNAME-LIST
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8140 do
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_prog in dd; do
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8146 as_fn_executable_p "$ac_path_lt_DD" || continue
8147 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8148 cmp -s conftest.i conftest.out \
8149 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8150 fi
8151 $ac_path_lt_DD_found && break 3
8152 done
8153 done
8154 done
8155 IFS=$as_save_IFS
8156 if test -z "$ac_cv_path_lt_DD"; then
8157 :
8158 fi
8159 else
8160 ac_cv_path_lt_DD=$lt_DD
8161 fi
8162
8163 rm -f conftest.i conftest2.i conftest.out
8164 fi
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8166 $as_echo "$ac_cv_path_lt_DD" >&6; }
8167
8168
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8170 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8171 if ${lt_cv_truncate_bin+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 printf 0123456789abcdef0123456789abcdef >conftest.i
8175 cat conftest.i conftest.i >conftest2.i
8176 lt_cv_truncate_bin=
8177 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8178 cmp -s conftest.i conftest.out \
8179 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8180 fi
8181 rm -f conftest.i conftest2.i conftest.out
8182 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8183 fi
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8185 $as_echo "$lt_cv_truncate_bin" >&6; }
8186
8187
8188
8189
8190
8191
8192
8193 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8194 func_cc_basename ()
8195 {
8196 for cc_temp in $*""; do
8197 case $cc_temp in
8198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8200 \-*) ;;
8201 *) break;;
8202 esac
8203 done
8204 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8205 }
8206
8207 # Check whether --enable-libtool-lock was given.
8208 if test "${enable_libtool_lock+set}" = set; then :
8209 enableval=$enable_libtool_lock;
8210 fi
8211
8212 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8213
8214 # Some flags need to be propagated to the compiler or linker for good
8215 # libtool support.
8216 case $host in
8217 ia64-*-hpux*)
8218 # Find out what ABI is being produced by ac_compile, and set mode
8219 # options accordingly.
8220 echo 'int i;' > conftest.$ac_ext
8221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8222 (eval $ac_compile) 2>&5
8223 ac_status=$?
8224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8225 test $ac_status = 0; }; then
8226 case `/usr/bin/file conftest.$ac_objext` in
8227 *ELF-32*)
8228 HPUX_IA64_MODE=32
8229 ;;
8230 *ELF-64*)
8231 HPUX_IA64_MODE=64
8232 ;;
8233 esac
8234 fi
8235 rm -rf conftest*
8236 ;;
8237 *-*-irix6*)
8238 # Find out what ABI is being produced by ac_compile, and set linker
8239 # options accordingly.
8240 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8242 (eval $ac_compile) 2>&5
8243 ac_status=$?
8244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8245 test $ac_status = 0; }; then
8246 if test yes = "$lt_cv_prog_gnu_ld"; then
8247 case `/usr/bin/file conftest.$ac_objext` in
8248 *32-bit*)
8249 LD="${LD-ld} -melf32bsmip"
8250 ;;
8251 *N32*)
8252 LD="${LD-ld} -melf32bmipn32"
8253 ;;
8254 *64-bit*)
8255 LD="${LD-ld} -melf64bmip"
8256 ;;
8257 esac
8258 else
8259 case `/usr/bin/file conftest.$ac_objext` in
8260 *32-bit*)
8261 LD="${LD-ld} -32"
8262 ;;
8263 *N32*)
8264 LD="${LD-ld} -n32"
8265 ;;
8266 *64-bit*)
8267 LD="${LD-ld} -64"
8268 ;;
8269 esac
8270 fi
8271 fi
8272 rm -rf conftest*
8273 ;;
8274
8275 mips64*-*linux*)
8276 # Find out what ABI is being produced by ac_compile, and set linker
8277 # options accordingly.
8278 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8280 (eval $ac_compile) 2>&5
8281 ac_status=$?
8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; }; then
8284 emul=elf
8285 case `/usr/bin/file conftest.$ac_objext` in
8286 *32-bit*)
8287 emul="${emul}32"
8288 ;;
8289 *64-bit*)
8290 emul="${emul}64"
8291 ;;
8292 esac
8293 case `/usr/bin/file conftest.$ac_objext` in
8294 *MSB*)
8295 emul="${emul}btsmip"
8296 ;;
8297 *LSB*)
8298 emul="${emul}ltsmip"
8299 ;;
8300 esac
8301 case `/usr/bin/file conftest.$ac_objext` in
8302 *N32*)
8303 emul="${emul}n32"
8304 ;;
8305 esac
8306 LD="${LD-ld} -m $emul"
8307 fi
8308 rm -rf conftest*
8309 ;;
8310
8311 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8312 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8313 # Find out what ABI is being produced by ac_compile, and set linker
8314 # options accordingly. Note that the listed cases only cover the
8315 # situations where additional linker options are needed (such as when
8316 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8317 # vice versa); the common cases where no linker options are needed do
8318 # not appear in the list.
8319 echo 'int i;' > conftest.$ac_ext
8320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8321 (eval $ac_compile) 2>&5
8322 ac_status=$?
8323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8324 test $ac_status = 0; }; then
8325 case `/usr/bin/file conftest.o` in
8326 *32-bit*)
8327 case $host in
8328 x86_64-*kfreebsd*-gnu)
8329 LD="${LD-ld} -m elf_i386_fbsd"
8330 ;;
8331 x86_64-*linux*)
8332 case `/usr/bin/file conftest.o` in
8333 *x86-64*)
8334 LD="${LD-ld} -m elf32_x86_64"
8335 ;;
8336 *)
8337 LD="${LD-ld} -m elf_i386"
8338 ;;
8339 esac
8340 ;;
8341 powerpc64le-*linux*)
8342 LD="${LD-ld} -m elf32lppclinux"
8343 ;;
8344 powerpc64-*linux*)
8345 LD="${LD-ld} -m elf32ppclinux"
8346 ;;
8347 s390x-*linux*)
8348 LD="${LD-ld} -m elf_s390"
8349 ;;
8350 sparc64-*linux*)
8351 LD="${LD-ld} -m elf32_sparc"
8352 ;;
8353 esac
8354 ;;
8355 *64-bit*)
8356 case $host in
8357 x86_64-*kfreebsd*-gnu)
8358 LD="${LD-ld} -m elf_x86_64_fbsd"
8359 ;;
8360 x86_64-*linux*)
8361 LD="${LD-ld} -m elf_x86_64"
8362 ;;
8363 powerpcle-*linux*)
8364 LD="${LD-ld} -m elf64lppc"
8365 ;;
8366 powerpc-*linux*)
8367 LD="${LD-ld} -m elf64ppc"
8368 ;;
8369 s390*-*linux*|s390*-*tpf*)
8370 LD="${LD-ld} -m elf64_s390"
8371 ;;
8372 sparc*-*linux*)
8373 LD="${LD-ld} -m elf64_sparc"
8374 ;;
8375 esac
8376 ;;
8377 esac
8378 fi
8379 rm -rf conftest*
8380 ;;
8381
8382 *-*-sco3.2v5*)
8383 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8384 SAVE_CFLAGS=$CFLAGS
8385 CFLAGS="$CFLAGS -belf"
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8387 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8388 if ${lt_cv_cc_needs_belf+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 ac_ext=c
8392 ac_cpp='$CPP $CPPFLAGS'
8393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8396
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399
8400 int
8401 main ()
8402 {
8403
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 lt_cv_cc_needs_belf=yes
8410 else
8411 lt_cv_cc_needs_belf=no
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 ac_ext=c
8416 ac_cpp='$CPP $CPPFLAGS'
8417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8420
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8423 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8424 if test yes != "$lt_cv_cc_needs_belf"; then
8425 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8426 CFLAGS=$SAVE_CFLAGS
8427 fi
8428 ;;
8429 *-*solaris*)
8430 # Find out what ABI is being produced by ac_compile, and set linker
8431 # options accordingly.
8432 echo 'int i;' > conftest.$ac_ext
8433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8434 (eval $ac_compile) 2>&5
8435 ac_status=$?
8436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8437 test $ac_status = 0; }; then
8438 case `/usr/bin/file conftest.o` in
8439 *64-bit*)
8440 case $lt_cv_prog_gnu_ld in
8441 yes*)
8442 case $host in
8443 i?86-*-solaris*|x86_64-*-solaris*)
8444 LD="${LD-ld} -m elf_x86_64"
8445 ;;
8446 sparc*-*-solaris*)
8447 LD="${LD-ld} -m elf64_sparc"
8448 ;;
8449 esac
8450 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8451 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8452 LD=${LD-ld}_sol2
8453 fi
8454 ;;
8455 *)
8456 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8457 LD="${LD-ld} -64"
8458 fi
8459 ;;
8460 esac
8461 ;;
8462 esac
8463 fi
8464 rm -rf conftest*
8465 ;;
8466 esac
8467
8468 need_locks=$enable_libtool_lock
8469
8470 if test -n "$ac_tool_prefix"; then
8471 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8472 set dummy ${ac_tool_prefix}mt; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 if test -n "$MANIFEST_TOOL"; then
8479 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8480 else
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492 done
8493 done
8494 IFS=$as_save_IFS
8495
8496 fi
8497 fi
8498 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8499 if test -n "$MANIFEST_TOOL"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8501 $as_echo "$MANIFEST_TOOL" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507
8508 fi
8509 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8510 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8511 # Extract the first word of "mt", so it can be a program name with args.
8512 set dummy mt; ac_word=$2
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 $as_echo_n "checking for $ac_word... " >&6; }
8515 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 if test -n "$ac_ct_MANIFEST_TOOL"; then
8519 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8531 fi
8532 done
8533 done
8534 IFS=$as_save_IFS
8535
8536 fi
8537 fi
8538 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8539 if test -n "$ac_ct_MANIFEST_TOOL"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8541 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546
8547 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8548 MANIFEST_TOOL=":"
8549 else
8550 case $cross_compiling:$ac_tool_warned in
8551 yes:)
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8554 ac_tool_warned=yes ;;
8555 esac
8556 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8557 fi
8558 else
8559 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8560 fi
8561
8562 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8564 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8565 if ${lt_cv_path_mainfest_tool+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 lt_cv_path_mainfest_tool=no
8569 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8570 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8571 cat conftest.err >&5
8572 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8573 lt_cv_path_mainfest_tool=yes
8574 fi
8575 rm -f conftest*
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8578 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8579 if test yes != "$lt_cv_path_mainfest_tool"; then
8580 MANIFEST_TOOL=:
8581 fi
8582
8583
8584
8585
8586
8587
8588 case $host_os in
8589 rhapsody* | darwin*)
8590 if test -n "$ac_tool_prefix"; then
8591 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8592 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 if test -n "$DSYMUTIL"; then
8599 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8603 do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8611 fi
8612 done
8613 done
8614 IFS=$as_save_IFS
8615
8616 fi
8617 fi
8618 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8619 if test -n "$DSYMUTIL"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8621 $as_echo "$DSYMUTIL" >&6; }
8622 else
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8625 fi
8626
8627
8628 fi
8629 if test -z "$ac_cv_prog_DSYMUTIL"; then
8630 ac_ct_DSYMUTIL=$DSYMUTIL
8631 # Extract the first word of "dsymutil", so it can be a program name with args.
8632 set dummy dsymutil; ac_word=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 if test -n "$ac_ct_DSYMUTIL"; then
8639 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8643 do
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8648 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8651 fi
8652 done
8653 done
8654 IFS=$as_save_IFS
8655
8656 fi
8657 fi
8658 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8659 if test -n "$ac_ct_DSYMUTIL"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8661 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8662 else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8665 fi
8666
8667 if test "x$ac_ct_DSYMUTIL" = x; then
8668 DSYMUTIL=":"
8669 else
8670 case $cross_compiling:$ac_tool_warned in
8671 yes:)
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8674 ac_tool_warned=yes ;;
8675 esac
8676 DSYMUTIL=$ac_ct_DSYMUTIL
8677 fi
8678 else
8679 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8680 fi
8681
8682 if test -n "$ac_tool_prefix"; then
8683 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8684 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if ${ac_cv_prog_NMEDIT+:} false; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 if test -n "$NMEDIT"; then
8691 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8692 else
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8695 do
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
8698 for ac_exec_ext in '' $ac_executable_extensions; do
8699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8700 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 break 2
8703 fi
8704 done
8705 done
8706 IFS=$as_save_IFS
8707
8708 fi
8709 fi
8710 NMEDIT=$ac_cv_prog_NMEDIT
8711 if test -n "$NMEDIT"; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8713 $as_echo "$NMEDIT" >&6; }
8714 else
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717 fi
8718
8719
8720 fi
8721 if test -z "$ac_cv_prog_NMEDIT"; then
8722 ac_ct_NMEDIT=$NMEDIT
8723 # Extract the first word of "nmedit", so it can be a program name with args.
8724 set dummy nmedit; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 if test -n "$ac_ct_NMEDIT"; then
8731 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8735 do
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8740 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 break 2
8743 fi
8744 done
8745 done
8746 IFS=$as_save_IFS
8747
8748 fi
8749 fi
8750 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8751 if test -n "$ac_ct_NMEDIT"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8753 $as_echo "$ac_ct_NMEDIT" >&6; }
8754 else
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8757 fi
8758
8759 if test "x$ac_ct_NMEDIT" = x; then
8760 NMEDIT=":"
8761 else
8762 case $cross_compiling:$ac_tool_warned in
8763 yes:)
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8766 ac_tool_warned=yes ;;
8767 esac
8768 NMEDIT=$ac_ct_NMEDIT
8769 fi
8770 else
8771 NMEDIT="$ac_cv_prog_NMEDIT"
8772 fi
8773
8774 if test -n "$ac_tool_prefix"; then
8775 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8776 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if ${ac_cv_prog_LIPO+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 if test -n "$LIPO"; then
8783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8784 else
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8787 do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8792 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8795 fi
8796 done
8797 done
8798 IFS=$as_save_IFS
8799
8800 fi
8801 fi
8802 LIPO=$ac_cv_prog_LIPO
8803 if test -n "$LIPO"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8805 $as_echo "$LIPO" >&6; }
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8809 fi
8810
8811
8812 fi
8813 if test -z "$ac_cv_prog_LIPO"; then
8814 ac_ct_LIPO=$LIPO
8815 # Extract the first word of "lipo", so it can be a program name with args.
8816 set dummy lipo; ac_word=$2
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8818 $as_echo_n "checking for $ac_word... " >&6; }
8819 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 if test -n "$ac_ct_LIPO"; then
8823 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8824 else
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826 for as_dir in $PATH
8827 do
8828 IFS=$as_save_IFS
8829 test -z "$as_dir" && as_dir=.
8830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8832 ac_cv_prog_ac_ct_LIPO="lipo"
8833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 break 2
8835 fi
8836 done
8837 done
8838 IFS=$as_save_IFS
8839
8840 fi
8841 fi
8842 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8843 if test -n "$ac_ct_LIPO"; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8845 $as_echo "$ac_ct_LIPO" >&6; }
8846 else
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8849 fi
8850
8851 if test "x$ac_ct_LIPO" = x; then
8852 LIPO=":"
8853 else
8854 case $cross_compiling:$ac_tool_warned in
8855 yes:)
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8858 ac_tool_warned=yes ;;
8859 esac
8860 LIPO=$ac_ct_LIPO
8861 fi
8862 else
8863 LIPO="$ac_cv_prog_LIPO"
8864 fi
8865
8866 if test -n "$ac_tool_prefix"; then
8867 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8868 set dummy ${ac_tool_prefix}otool; ac_word=$2
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870 $as_echo_n "checking for $ac_word... " >&6; }
8871 if ${ac_cv_prog_OTOOL+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 if test -n "$OTOOL"; then
8875 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8876 else
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8879 do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8884 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 break 2
8887 fi
8888 done
8889 done
8890 IFS=$as_save_IFS
8891
8892 fi
8893 fi
8894 OTOOL=$ac_cv_prog_OTOOL
8895 if test -n "$OTOOL"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8897 $as_echo "$OTOOL" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8901 fi
8902
8903
8904 fi
8905 if test -z "$ac_cv_prog_OTOOL"; then
8906 ac_ct_OTOOL=$OTOOL
8907 # Extract the first word of "otool", so it can be a program name with args.
8908 set dummy otool; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 if test -n "$ac_ct_OTOOL"; then
8915 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8916 else
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 for as_dir in $PATH
8919 do
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8924 ac_cv_prog_ac_ct_OTOOL="otool"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 break 2
8927 fi
8928 done
8929 done
8930 IFS=$as_save_IFS
8931
8932 fi
8933 fi
8934 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8935 if test -n "$ac_ct_OTOOL"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8937 $as_echo "$ac_ct_OTOOL" >&6; }
8938 else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8941 fi
8942
8943 if test "x$ac_ct_OTOOL" = x; then
8944 OTOOL=":"
8945 else
8946 case $cross_compiling:$ac_tool_warned in
8947 yes:)
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8950 ac_tool_warned=yes ;;
8951 esac
8952 OTOOL=$ac_ct_OTOOL
8953 fi
8954 else
8955 OTOOL="$ac_cv_prog_OTOOL"
8956 fi
8957
8958 if test -n "$ac_tool_prefix"; then
8959 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8960 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if ${ac_cv_prog_OTOOL64+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 if test -n "$OTOOL64"; then
8967 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8968 else
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970 for as_dir in $PATH
8971 do
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 break 2
8979 fi
8980 done
8981 done
8982 IFS=$as_save_IFS
8983
8984 fi
8985 fi
8986 OTOOL64=$ac_cv_prog_OTOOL64
8987 if test -n "$OTOOL64"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8989 $as_echo "$OTOOL64" >&6; }
8990 else
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8993 fi
8994
8995
8996 fi
8997 if test -z "$ac_cv_prog_OTOOL64"; then
8998 ac_ct_OTOOL64=$OTOOL64
8999 # Extract the first word of "otool64", so it can be a program name with args.
9000 set dummy otool64; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002 $as_echo_n "checking for $ac_word... " >&6; }
9003 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 if test -n "$ac_ct_OTOOL64"; then
9007 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9008 else
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 for as_dir in $PATH
9011 do
9012 IFS=$as_save_IFS
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016 ac_cv_prog_ac_ct_OTOOL64="otool64"
9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 break 2
9019 fi
9020 done
9021 done
9022 IFS=$as_save_IFS
9023
9024 fi
9025 fi
9026 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9027 if test -n "$ac_ct_OTOOL64"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9029 $as_echo "$ac_ct_OTOOL64" >&6; }
9030 else
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9033 fi
9034
9035 if test "x$ac_ct_OTOOL64" = x; then
9036 OTOOL64=":"
9037 else
9038 case $cross_compiling:$ac_tool_warned in
9039 yes:)
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9042 ac_tool_warned=yes ;;
9043 esac
9044 OTOOL64=$ac_ct_OTOOL64
9045 fi
9046 else
9047 OTOOL64="$ac_cv_prog_OTOOL64"
9048 fi
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9077 $as_echo_n "checking for -single_module linker flag... " >&6; }
9078 if ${lt_cv_apple_cc_single_mod+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 lt_cv_apple_cc_single_mod=no
9082 if test -z "$LT_MULTI_MODULE"; then
9083 # By default we will add the -single_module flag. You can override
9084 # by either setting the environment variable LT_MULTI_MODULE
9085 # non-empty at configure time, or by adding -multi_module to the
9086 # link flags.
9087 rm -rf libconftest.dylib*
9088 echo "int foo(void){return 1;}" > conftest.c
9089 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9090 -dynamiclib -Wl,-single_module conftest.c" >&5
9091 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9092 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9093 _lt_result=$?
9094 # If there is a non-empty error log, and "single_module"
9095 # appears in it, assume the flag caused a linker warning
9096 if test -s conftest.err && $GREP single_module conftest.err; then
9097 cat conftest.err >&5
9098 # Otherwise, if the output was created with a 0 exit code from
9099 # the compiler, it worked.
9100 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9101 lt_cv_apple_cc_single_mod=yes
9102 else
9103 cat conftest.err >&5
9104 fi
9105 rm -rf libconftest.dylib*
9106 rm -f conftest.*
9107 fi
9108 fi
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9110 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9111
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9113 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9114 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 lt_cv_ld_exported_symbols_list=no
9118 save_LDFLAGS=$LDFLAGS
9119 echo "_main" > conftest.sym
9120 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9123
9124 int
9125 main ()
9126 {
9127
9128 ;
9129 return 0;
9130 }
9131 _ACEOF
9132 if ac_fn_c_try_link "$LINENO"; then :
9133 lt_cv_ld_exported_symbols_list=yes
9134 else
9135 lt_cv_ld_exported_symbols_list=no
9136 fi
9137 rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 LDFLAGS=$save_LDFLAGS
9140
9141 fi
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9143 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9146 $as_echo_n "checking for -force_load linker flag... " >&6; }
9147 if ${lt_cv_ld_force_load+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 lt_cv_ld_force_load=no
9151 cat > conftest.c << _LT_EOF
9152 int forced_loaded() { return 2;}
9153 _LT_EOF
9154 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9155 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9156 echo "$AR cru libconftest.a conftest.o" >&5
9157 $AR cru libconftest.a conftest.o 2>&5
9158 echo "$RANLIB libconftest.a" >&5
9159 $RANLIB libconftest.a 2>&5
9160 cat > conftest.c << _LT_EOF
9161 int main() { return 0;}
9162 _LT_EOF
9163 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9164 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9165 _lt_result=$?
9166 if test -s conftest.err && $GREP force_load conftest.err; then
9167 cat conftest.err >&5
9168 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9169 lt_cv_ld_force_load=yes
9170 else
9171 cat conftest.err >&5
9172 fi
9173 rm -f conftest.err libconftest.a conftest conftest.c
9174 rm -rf conftest.dSYM
9175
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9178 $as_echo "$lt_cv_ld_force_load" >&6; }
9179 case $host_os in
9180 rhapsody* | darwin1.[012])
9181 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9182 darwin1.*)
9183 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9184 darwin*) # darwin 5.x on
9185 # if running on 10.5 or later, the deployment target defaults
9186 # to the OS version, if on x86, and 10.4, the deployment
9187 # target defaults to 10.4. Don't you love it?
9188 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9189 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9190 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9191 10.[012][,.]*)
9192 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9193 10.*)
9194 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9195 esac
9196 ;;
9197 esac
9198 if test yes = "$lt_cv_apple_cc_single_mod"; then
9199 _lt_dar_single_mod='$single_module'
9200 fi
9201 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9202 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9203 else
9204 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9205 fi
9206 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9207 _lt_dsymutil='~$DSYMUTIL $lib || :'
9208 else
9209 _lt_dsymutil=
9210 fi
9211 ;;
9212 esac
9213
9214 # func_munge_path_list VARIABLE PATH
9215 # -----------------------------------
9216 # VARIABLE is name of variable containing _space_ separated list of
9217 # directories to be munged by the contents of PATH, which is string
9218 # having a format:
9219 # "DIR[:DIR]:"
9220 # string "DIR[ DIR]" will be prepended to VARIABLE
9221 # ":DIR[:DIR]"
9222 # string "DIR[ DIR]" will be appended to VARIABLE
9223 # "DIRP[:DIRP]::[DIRA:]DIRA"
9224 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9225 # "DIRA[ DIRA]" will be appended to VARIABLE
9226 # "DIR[:DIR]"
9227 # VARIABLE will be replaced by "DIR[ DIR]"
9228 func_munge_path_list ()
9229 {
9230 case x$2 in
9231 x)
9232 ;;
9233 *:)
9234 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9235 ;;
9236 x:*)
9237 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9238 ;;
9239 *::*)
9240 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9241 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9242 ;;
9243 *)
9244 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9245 ;;
9246 esac
9247 }
9248
9249 ac_ext=c
9250 ac_cpp='$CPP $CPPFLAGS'
9251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9255 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9256 # On Suns, sometimes $CPP names a directory.
9257 if test -n "$CPP" && test -d "$CPP"; then
9258 CPP=
9259 fi
9260 if test -z "$CPP"; then
9261 if ${ac_cv_prog_CPP+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 # Double quotes because CPP needs to be expanded
9265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9266 do
9267 ac_preproc_ok=false
9268 for ac_c_preproc_warn_flag in '' yes
9269 do
9270 # Use a header file that comes with gcc, so configuring glibc
9271 # with a fresh cross-compiler works.
9272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9273 # <limits.h> exists even on freestanding compilers.
9274 # On the NeXT, cc -E runs the code through the compiler's parser,
9275 # not just through cpp. "Syntax error" is here to catch this case.
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278 #ifdef __STDC__
9279 # include <limits.h>
9280 #else
9281 # include <assert.h>
9282 #endif
9283 Syntax error
9284 _ACEOF
9285 if ac_fn_c_try_cpp "$LINENO"; then :
9286
9287 else
9288 # Broken: fails on valid input.
9289 continue
9290 fi
9291 rm -f conftest.err conftest.i conftest.$ac_ext
9292
9293 # OK, works on sane cases. Now check whether nonexistent headers
9294 # can be detected and how.
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9297 #include <ac_nonexistent.h>
9298 _ACEOF
9299 if ac_fn_c_try_cpp "$LINENO"; then :
9300 # Broken: success on invalid input.
9301 continue
9302 else
9303 # Passes both tests.
9304 ac_preproc_ok=:
9305 break
9306 fi
9307 rm -f conftest.err conftest.i conftest.$ac_ext
9308
9309 done
9310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9311 rm -f conftest.i conftest.err conftest.$ac_ext
9312 if $ac_preproc_ok; then :
9313 break
9314 fi
9315
9316 done
9317 ac_cv_prog_CPP=$CPP
9318
9319 fi
9320 CPP=$ac_cv_prog_CPP
9321 else
9322 ac_cv_prog_CPP=$CPP
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9325 $as_echo "$CPP" >&6; }
9326 ac_preproc_ok=false
9327 for ac_c_preproc_warn_flag in '' yes
9328 do
9329 # Use a header file that comes with gcc, so configuring glibc
9330 # with a fresh cross-compiler works.
9331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9332 # <limits.h> exists even on freestanding compilers.
9333 # On the NeXT, cc -E runs the code through the compiler's parser,
9334 # not just through cpp. "Syntax error" is here to catch this case.
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337 #ifdef __STDC__
9338 # include <limits.h>
9339 #else
9340 # include <assert.h>
9341 #endif
9342 Syntax error
9343 _ACEOF
9344 if ac_fn_c_try_cpp "$LINENO"; then :
9345
9346 else
9347 # Broken: fails on valid input.
9348 continue
9349 fi
9350 rm -f conftest.err conftest.i conftest.$ac_ext
9351
9352 # OK, works on sane cases. Now check whether nonexistent headers
9353 # can be detected and how.
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 #include <ac_nonexistent.h>
9357 _ACEOF
9358 if ac_fn_c_try_cpp "$LINENO"; then :
9359 # Broken: success on invalid input.
9360 continue
9361 else
9362 # Passes both tests.
9363 ac_preproc_ok=:
9364 break
9365 fi
9366 rm -f conftest.err conftest.i conftest.$ac_ext
9367
9368 done
9369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9370 rm -f conftest.i conftest.err conftest.$ac_ext
9371 if $ac_preproc_ok; then :
9372
9373 else
9374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9376 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9377 See \`config.log' for more details" "$LINENO" 5; }
9378 fi
9379
9380 ac_ext=c
9381 ac_cpp='$CPP $CPPFLAGS'
9382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9385
9386
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9388 $as_echo_n "checking for ANSI C header files... " >&6; }
9389 if ${ac_cv_header_stdc+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 #include <stdlib.h>
9395 #include <stdarg.h>
9396 #include <string.h>
9397 #include <float.h>
9398
9399 int
9400 main ()
9401 {
9402
9403 ;
9404 return 0;
9405 }
9406 _ACEOF
9407 if ac_fn_c_try_compile "$LINENO"; then :
9408 ac_cv_header_stdc=yes
9409 else
9410 ac_cv_header_stdc=no
9411 fi
9412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413
9414 if test $ac_cv_header_stdc = yes; then
9415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9418 #include <string.h>
9419
9420 _ACEOF
9421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9422 $EGREP "memchr" >/dev/null 2>&1; then :
9423
9424 else
9425 ac_cv_header_stdc=no
9426 fi
9427 rm -f conftest*
9428
9429 fi
9430
9431 if test $ac_cv_header_stdc = yes; then
9432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9435 #include <stdlib.h>
9436
9437 _ACEOF
9438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9439 $EGREP "free" >/dev/null 2>&1; then :
9440
9441 else
9442 ac_cv_header_stdc=no
9443 fi
9444 rm -f conftest*
9445
9446 fi
9447
9448 if test $ac_cv_header_stdc = yes; then
9449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9450 if test "$cross_compiling" = yes; then :
9451 :
9452 else
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 #include <ctype.h>
9456 #include <stdlib.h>
9457 #if ((' ' & 0x0FF) == 0x020)
9458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9460 #else
9461 # define ISLOWER(c) \
9462 (('a' <= (c) && (c) <= 'i') \
9463 || ('j' <= (c) && (c) <= 'r') \
9464 || ('s' <= (c) && (c) <= 'z'))
9465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9466 #endif
9467
9468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9469 int
9470 main ()
9471 {
9472 int i;
9473 for (i = 0; i < 256; i++)
9474 if (XOR (islower (i), ISLOWER (i))
9475 || toupper (i) != TOUPPER (i))
9476 return 2;
9477 return 0;
9478 }
9479 _ACEOF
9480 if ac_fn_c_try_run "$LINENO"; then :
9481
9482 else
9483 ac_cv_header_stdc=no
9484 fi
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9486 conftest.$ac_objext conftest.beam conftest.$ac_ext
9487 fi
9488
9489 fi
9490 fi
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9492 $as_echo "$ac_cv_header_stdc" >&6; }
9493 if test $ac_cv_header_stdc = yes; then
9494
9495 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9496
9497 fi
9498
9499 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9500 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9501 inttypes.h stdint.h unistd.h
9502 do :
9503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9505 "
9506 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9507 cat >>confdefs.h <<_ACEOF
9508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9509 _ACEOF
9510
9511 fi
9512
9513 done
9514
9515
9516 for ac_header in dlfcn.h
9517 do :
9518 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9519 "
9520 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9521 cat >>confdefs.h <<_ACEOF
9522 #define HAVE_DLFCN_H 1
9523 _ACEOF
9524
9525 fi
9526
9527 done
9528
9529
9530
9531
9532
9533 # Set options
9534
9535
9536
9537 enable_dlopen=no
9538
9539
9540
9541
9542 # Check whether --enable-static was given.
9543 if test "${enable_static+set}" = set; then :
9544 enableval=$enable_static; p=${PACKAGE-default}
9545 case $enableval in
9546 yes) enable_static=yes ;;
9547 no) enable_static=no ;;
9548 *)
9549 enable_static=no
9550 # Look at the argument we got. We use all the common list separators.
9551 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9552 for pkg in $enableval; do
9553 IFS=$lt_save_ifs
9554 if test "X$pkg" = "X$p"; then
9555 enable_static=yes
9556 fi
9557 done
9558 IFS=$lt_save_ifs
9559 ;;
9560 esac
9561 else
9562 enable_static=yes
9563 fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574 # Check whether --with-pic was given.
9575 if test "${with_pic+set}" = set; then :
9576 withval=$with_pic; lt_p=${PACKAGE-default}
9577 case $withval in
9578 yes|no) pic_mode=$withval ;;
9579 *)
9580 pic_mode=default
9581 # Look at the argument we got. We use all the common list separators.
9582 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9583 for lt_pkg in $withval; do
9584 IFS=$lt_save_ifs
9585 if test "X$lt_pkg" = "X$lt_p"; then
9586 pic_mode=yes
9587 fi
9588 done
9589 IFS=$lt_save_ifs
9590 ;;
9591 esac
9592 else
9593 pic_mode=default
9594 fi
9595
9596
9597
9598
9599
9600
9601
9602
9603 # Check whether --enable-fast-install was given.
9604 if test "${enable_fast_install+set}" = set; then :
9605 enableval=$enable_fast_install; p=${PACKAGE-default}
9606 case $enableval in
9607 yes) enable_fast_install=yes ;;
9608 no) enable_fast_install=no ;;
9609 *)
9610 enable_fast_install=no
9611 # Look at the argument we got. We use all the common list separators.
9612 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9613 for pkg in $enableval; do
9614 IFS=$lt_save_ifs
9615 if test "X$pkg" = "X$p"; then
9616 enable_fast_install=yes
9617 fi
9618 done
9619 IFS=$lt_save_ifs
9620 ;;
9621 esac
9622 else
9623 enable_fast_install=yes
9624 fi
9625
9626
9627
9628
9629
9630
9631
9632
9633 shared_archive_member_spec=
9634 case $host,$enable_shared in
9635 power*-*-aix[5-9]*,yes)
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9637 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9638
9639 # Check whether --with-aix-soname was given.
9640 if test "${with_aix_soname+set}" = set; then :
9641 withval=$with_aix_soname; case $withval in
9642 aix|svr4|both)
9643 ;;
9644 *)
9645 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9646 ;;
9647 esac
9648 lt_cv_with_aix_soname=$with_aix_soname
9649 else
9650 if ${lt_cv_with_aix_soname+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652 else
9653 lt_cv_with_aix_soname=aix
9654 fi
9655
9656 with_aix_soname=$lt_cv_with_aix_soname
9657 fi
9658
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9660 $as_echo "$with_aix_soname" >&6; }
9661 if test aix != "$with_aix_soname"; then
9662 # For the AIX way of multilib, we name the shared archive member
9663 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9664 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9665 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9666 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9667 if test 64 = "${OBJECT_MODE-32}"; then
9668 shared_archive_member_spec=shr_64
9669 else
9670 shared_archive_member_spec=shr
9671 fi
9672 fi
9673 ;;
9674 *)
9675 with_aix_soname=aix
9676 ;;
9677 esac
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688 # This can be used to rebuild libtool when needed
9689 LIBTOOL_DEPS=$ltmain
9690
9691 # Always use our own libtool.
9692 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723 test -z "$LN_S" && LN_S="ln -s"
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738 if test -n "${ZSH_VERSION+set}"; then
9739 setopt NO_GLOB_SUBST
9740 fi
9741
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9743 $as_echo_n "checking for objdir... " >&6; }
9744 if ${lt_cv_objdir+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 rm -f .libs 2>/dev/null
9748 mkdir .libs 2>/dev/null
9749 if test -d .libs; then
9750 lt_cv_objdir=.libs
9751 else
9752 # MS-DOS does not allow filenames that begin with a dot.
9753 lt_cv_objdir=_libs
9754 fi
9755 rmdir .libs 2>/dev/null
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9758 $as_echo "$lt_cv_objdir" >&6; }
9759 objdir=$lt_cv_objdir
9760
9761
9762
9763
9764
9765 cat >>confdefs.h <<_ACEOF
9766 #define LT_OBJDIR "$lt_cv_objdir/"
9767 _ACEOF
9768
9769
9770
9771
9772 case $host_os in
9773 aix3*)
9774 # AIX sometimes has problems with the GCC collect2 program. For some
9775 # reason, if we set the COLLECT_NAMES environment variable, the problems
9776 # vanish in a puff of smoke.
9777 if test set != "${COLLECT_NAMES+set}"; then
9778 COLLECT_NAMES=
9779 export COLLECT_NAMES
9780 fi
9781 ;;
9782 esac
9783
9784 # Global variables:
9785 ofile=libtool
9786 can_build_shared=yes
9787
9788 # All known linkers require a '.a' archive for static linking (except MSVC,
9789 # which needs '.lib').
9790 libext=a
9791
9792 with_gnu_ld=$lt_cv_prog_gnu_ld
9793
9794 old_CC=$CC
9795 old_CFLAGS=$CFLAGS
9796
9797 # Set sane defaults for various variables
9798 test -z "$CC" && CC=cc
9799 test -z "$LTCC" && LTCC=$CC
9800 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9801 test -z "$LD" && LD=ld
9802 test -z "$ac_objext" && ac_objext=o
9803
9804 func_cc_basename $compiler
9805 cc_basename=$func_cc_basename_result
9806
9807
9808 # Only perform the check for file, if the check method requires it
9809 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9810 case $deplibs_check_method in
9811 file_magic*)
9812 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9814 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9815 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 case $MAGIC_CMD in
9819 [\\/*] | ?:[\\/]*)
9820 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9821 ;;
9822 *)
9823 lt_save_MAGIC_CMD=$MAGIC_CMD
9824 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9825 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9826 for ac_dir in $ac_dummy; do
9827 IFS=$lt_save_ifs
9828 test -z "$ac_dir" && ac_dir=.
9829 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9830 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9831 if test -n "$file_magic_test_file"; then
9832 case $deplibs_check_method in
9833 "file_magic "*)
9834 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9835 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9836 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9837 $EGREP "$file_magic_regex" > /dev/null; then
9838 :
9839 else
9840 cat <<_LT_EOF 1>&2
9841
9842 *** Warning: the command libtool uses to detect shared libraries,
9843 *** $file_magic_cmd, produces output that libtool cannot recognize.
9844 *** The result is that libtool may fail to recognize shared libraries
9845 *** as such. This will affect the creation of libtool libraries that
9846 *** depend on shared libraries, but programs linked with such libtool
9847 *** libraries will work regardless of this problem. Nevertheless, you
9848 *** may want to report the problem to your system manager and/or to
9849 *** bug-libtool@gnu.org
9850
9851 _LT_EOF
9852 fi ;;
9853 esac
9854 fi
9855 break
9856 fi
9857 done
9858 IFS=$lt_save_ifs
9859 MAGIC_CMD=$lt_save_MAGIC_CMD
9860 ;;
9861 esac
9862 fi
9863
9864 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9865 if test -n "$MAGIC_CMD"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9867 $as_echo "$MAGIC_CMD" >&6; }
9868 else
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9871 fi
9872
9873
9874
9875
9876
9877 if test -z "$lt_cv_path_MAGIC_CMD"; then
9878 if test -n "$ac_tool_prefix"; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9880 $as_echo_n "checking for file... " >&6; }
9881 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 case $MAGIC_CMD in
9885 [\\/*] | ?:[\\/]*)
9886 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9887 ;;
9888 *)
9889 lt_save_MAGIC_CMD=$MAGIC_CMD
9890 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9892 for ac_dir in $ac_dummy; do
9893 IFS=$lt_save_ifs
9894 test -z "$ac_dir" && ac_dir=.
9895 if test -f "$ac_dir/file"; then
9896 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9897 if test -n "$file_magic_test_file"; then
9898 case $deplibs_check_method in
9899 "file_magic "*)
9900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9901 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9903 $EGREP "$file_magic_regex" > /dev/null; then
9904 :
9905 else
9906 cat <<_LT_EOF 1>&2
9907
9908 *** Warning: the command libtool uses to detect shared libraries,
9909 *** $file_magic_cmd, produces output that libtool cannot recognize.
9910 *** The result is that libtool may fail to recognize shared libraries
9911 *** as such. This will affect the creation of libtool libraries that
9912 *** depend on shared libraries, but programs linked with such libtool
9913 *** libraries will work regardless of this problem. Nevertheless, you
9914 *** may want to report the problem to your system manager and/or to
9915 *** bug-libtool@gnu.org
9916
9917 _LT_EOF
9918 fi ;;
9919 esac
9920 fi
9921 break
9922 fi
9923 done
9924 IFS=$lt_save_ifs
9925 MAGIC_CMD=$lt_save_MAGIC_CMD
9926 ;;
9927 esac
9928 fi
9929
9930 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9931 if test -n "$MAGIC_CMD"; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9933 $as_echo "$MAGIC_CMD" >&6; }
9934 else
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9937 fi
9938
9939
9940 else
9941 MAGIC_CMD=:
9942 fi
9943 fi
9944
9945 fi
9946 ;;
9947 esac
9948
9949 # Use C for the default configuration in the libtool script
9950
9951 lt_save_CC=$CC
9952 ac_ext=c
9953 ac_cpp='$CPP $CPPFLAGS'
9954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9957
9958
9959 # Source file extension for C test sources.
9960 ac_ext=c
9961
9962 # Object file extension for compiled C test sources.
9963 objext=o
9964 objext=$objext
9965
9966 # Code to be used in simple compile tests
9967 lt_simple_compile_test_code="int some_variable = 0;"
9968
9969 # Code to be used in simple link tests
9970 lt_simple_link_test_code='int main(){return(0);}'
9971
9972
9973
9974
9975
9976
9977
9978 # If no C compiler was specified, use CC.
9979 LTCC=${LTCC-"$CC"}
9980
9981 # If no C compiler flags were specified, use CFLAGS.
9982 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9983
9984 # Allow CC to be a program name with arguments.
9985 compiler=$CC
9986
9987 # Save the default compiler, since it gets overwritten when the other
9988 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9989 compiler_DEFAULT=$CC
9990
9991 # save warnings/boilerplate of simple test code
9992 ac_outfile=conftest.$ac_objext
9993 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9995 _lt_compiler_boilerplate=`cat conftest.err`
9996 $RM conftest*
9997
9998 ac_outfile=conftest.$ac_objext
9999 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10001 _lt_linker_boilerplate=`cat conftest.err`
10002 $RM -r conftest*
10003
10004
10005 ## CAVEAT EMPTOR:
10006 ## There is no encapsulation within the following macros, do not change
10007 ## the running order or otherwise move them around unless you know exactly
10008 ## what you are doing...
10009 if test -n "$compiler"; then
10010
10011 lt_prog_compiler_no_builtin_flag=
10012
10013 if test yes = "$GCC"; then
10014 case $cc_basename in
10015 nvcc*)
10016 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10017 *)
10018 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10019 esac
10020
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10022 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10023 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 lt_cv_prog_compiler_rtti_exceptions=no
10027 ac_outfile=conftest.$ac_objext
10028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10029 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10030 # Insert the option either (1) after the last *FLAGS variable, or
10031 # (2) before a word containing "conftest.", or (3) at the end.
10032 # Note that $ac_compile itself does not contain backslashes and begins
10033 # with a dollar sign (not a hyphen), so the echo should work correctly.
10034 # The option is referenced via a variable to avoid confusing sed.
10035 lt_compile=`echo "$ac_compile" | $SED \
10036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10038 -e 's:$: $lt_compiler_flag:'`
10039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10040 (eval "$lt_compile" 2>conftest.err)
10041 ac_status=$?
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 if (exit $ac_status) && test -s "$ac_outfile"; then
10045 # The compiler can only warn and ignore the option if not recognized
10046 # So say no if there are warnings other than the usual output.
10047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10050 lt_cv_prog_compiler_rtti_exceptions=yes
10051 fi
10052 fi
10053 $RM conftest*
10054
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10057 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10058
10059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10060 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10061 else
10062 :
10063 fi
10064
10065 fi
10066
10067
10068
10069
10070
10071
10072 lt_prog_compiler_wl=
10073 lt_prog_compiler_pic=
10074 lt_prog_compiler_static=
10075
10076
10077 if test yes = "$GCC"; then
10078 lt_prog_compiler_wl='-Wl,'
10079 lt_prog_compiler_static='-static'
10080
10081 case $host_os in
10082 aix*)
10083 # All AIX code is PIC.
10084 if test ia64 = "$host_cpu"; then
10085 # AIX 5 now supports IA64 processor
10086 lt_prog_compiler_static='-Bstatic'
10087 fi
10088 lt_prog_compiler_pic='-fPIC'
10089 ;;
10090
10091 amigaos*)
10092 case $host_cpu in
10093 powerpc)
10094 # see comment about AmigaOS4 .so support
10095 lt_prog_compiler_pic='-fPIC'
10096 ;;
10097 m68k)
10098 # FIXME: we need at least 68020 code to build shared libraries, but
10099 # adding the '-m68020' flag to GCC prevents building anything better,
10100 # like '-m68040'.
10101 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10102 ;;
10103 esac
10104 ;;
10105
10106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10107 # PIC is the default for these OSes.
10108 ;;
10109
10110 mingw* | cygwin* | pw32* | os2* | cegcc*)
10111 # This hack is so that the source file can tell whether it is being
10112 # built for inclusion in a dll (and should export symbols for example).
10113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10114 # (--disable-auto-import) libraries
10115 lt_prog_compiler_pic='-DDLL_EXPORT'
10116 case $host_os in
10117 os2*)
10118 lt_prog_compiler_static='$wl-static'
10119 ;;
10120 esac
10121 ;;
10122
10123 darwin* | rhapsody*)
10124 # PIC is the default on this platform
10125 # Common symbols not allowed in MH_DYLIB files
10126 lt_prog_compiler_pic='-fno-common'
10127 ;;
10128
10129 haiku*)
10130 # PIC is the default for Haiku.
10131 # The "-static" flag exists, but is broken.
10132 lt_prog_compiler_static=
10133 ;;
10134
10135 hpux*)
10136 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10137 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10138 # sets the default TLS model and affects inlining.
10139 case $host_cpu in
10140 hppa*64*)
10141 # +Z the default
10142 ;;
10143 *)
10144 lt_prog_compiler_pic='-fPIC'
10145 ;;
10146 esac
10147 ;;
10148
10149 interix[3-9]*)
10150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10151 # Instead, we relocate shared libraries at runtime.
10152 ;;
10153
10154 msdosdjgpp*)
10155 # Just because we use GCC doesn't mean we suddenly get shared libraries
10156 # on systems that don't support them.
10157 lt_prog_compiler_can_build_shared=no
10158 enable_shared=no
10159 ;;
10160
10161 *nto* | *qnx*)
10162 # QNX uses GNU C++, but need to define -shared option too, otherwise
10163 # it will coredump.
10164 lt_prog_compiler_pic='-fPIC -shared'
10165 ;;
10166
10167 sysv4*MP*)
10168 if test -d /usr/nec; then
10169 lt_prog_compiler_pic=-Kconform_pic
10170 fi
10171 ;;
10172
10173 *)
10174 lt_prog_compiler_pic='-fPIC'
10175 ;;
10176 esac
10177
10178 case $cc_basename in
10179 nvcc*) # Cuda Compiler Driver 2.2
10180 lt_prog_compiler_wl='-Xlinker '
10181 if test -n "$lt_prog_compiler_pic"; then
10182 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10183 fi
10184 ;;
10185 esac
10186 else
10187 # PORTME Check for flag to pass linker flags through the system compiler.
10188 case $host_os in
10189 aix*)
10190 lt_prog_compiler_wl='-Wl,'
10191 if test ia64 = "$host_cpu"; then
10192 # AIX 5 now supports IA64 processor
10193 lt_prog_compiler_static='-Bstatic'
10194 else
10195 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10196 fi
10197 ;;
10198
10199 darwin* | rhapsody*)
10200 # PIC is the default on this platform
10201 # Common symbols not allowed in MH_DYLIB files
10202 lt_prog_compiler_pic='-fno-common'
10203 case $cc_basename in
10204 nagfor*)
10205 # NAG Fortran compiler
10206 lt_prog_compiler_wl='-Wl,-Wl,,'
10207 lt_prog_compiler_pic='-PIC'
10208 lt_prog_compiler_static='-Bstatic'
10209 ;;
10210 esac
10211 ;;
10212
10213 mingw* | cygwin* | pw32* | os2* | cegcc*)
10214 # This hack is so that the source file can tell whether it is being
10215 # built for inclusion in a dll (and should export symbols for example).
10216 lt_prog_compiler_pic='-DDLL_EXPORT'
10217 case $host_os in
10218 os2*)
10219 lt_prog_compiler_static='$wl-static'
10220 ;;
10221 esac
10222 ;;
10223
10224 hpux9* | hpux10* | hpux11*)
10225 lt_prog_compiler_wl='-Wl,'
10226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10227 # not for PA HP-UX.
10228 case $host_cpu in
10229 hppa*64*|ia64*)
10230 # +Z the default
10231 ;;
10232 *)
10233 lt_prog_compiler_pic='+Z'
10234 ;;
10235 esac
10236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10237 lt_prog_compiler_static='$wl-a ${wl}archive'
10238 ;;
10239
10240 irix5* | irix6* | nonstopux*)
10241 lt_prog_compiler_wl='-Wl,'
10242 # PIC (with -KPIC) is the default.
10243 lt_prog_compiler_static='-non_shared'
10244 ;;
10245
10246 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10247 case $cc_basename in
10248 # old Intel for x86_64, which still supported -KPIC.
10249 ecc*)
10250 lt_prog_compiler_wl='-Wl,'
10251 lt_prog_compiler_pic='-KPIC'
10252 lt_prog_compiler_static='-static'
10253 ;;
10254 # icc used to be incompatible with GCC.
10255 # ICC 10 doesn't accept -KPIC any more.
10256 icc* | ifort*)
10257 lt_prog_compiler_wl='-Wl,'
10258 lt_prog_compiler_pic='-fPIC'
10259 lt_prog_compiler_static='-static'
10260 ;;
10261 # Lahey Fortran 8.1.
10262 lf95*)
10263 lt_prog_compiler_wl='-Wl,'
10264 lt_prog_compiler_pic='--shared'
10265 lt_prog_compiler_static='--static'
10266 ;;
10267 nagfor*)
10268 # NAG Fortran compiler
10269 lt_prog_compiler_wl='-Wl,-Wl,,'
10270 lt_prog_compiler_pic='-PIC'
10271 lt_prog_compiler_static='-Bstatic'
10272 ;;
10273 tcc*)
10274 # Fabrice Bellard et al's Tiny C Compiler
10275 lt_prog_compiler_wl='-Wl,'
10276 lt_prog_compiler_pic='-fPIC'
10277 lt_prog_compiler_static='-static'
10278 ;;
10279 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10280 # Portland Group compilers (*not* the Pentium gcc compiler,
10281 # which looks to be a dead project)
10282 lt_prog_compiler_wl='-Wl,'
10283 lt_prog_compiler_pic='-fpic'
10284 lt_prog_compiler_static='-Bstatic'
10285 ;;
10286 ccc*)
10287 lt_prog_compiler_wl='-Wl,'
10288 # All Alpha code is PIC.
10289 lt_prog_compiler_static='-non_shared'
10290 ;;
10291 xl* | bgxl* | bgf* | mpixl*)
10292 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10293 lt_prog_compiler_wl='-Wl,'
10294 lt_prog_compiler_pic='-qpic'
10295 lt_prog_compiler_static='-qstaticlink'
10296 ;;
10297 *)
10298 case `$CC -V 2>&1 | sed 5q` in
10299 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10300 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10301 lt_prog_compiler_pic='-KPIC'
10302 lt_prog_compiler_static='-Bstatic'
10303 lt_prog_compiler_wl=''
10304 ;;
10305 *Sun\ F* | *Sun*Fortran*)
10306 lt_prog_compiler_pic='-KPIC'
10307 lt_prog_compiler_static='-Bstatic'
10308 lt_prog_compiler_wl='-Qoption ld '
10309 ;;
10310 *Sun\ C*)
10311 # Sun C 5.9
10312 lt_prog_compiler_pic='-KPIC'
10313 lt_prog_compiler_static='-Bstatic'
10314 lt_prog_compiler_wl='-Wl,'
10315 ;;
10316 *Intel*\ [CF]*Compiler*)
10317 lt_prog_compiler_wl='-Wl,'
10318 lt_prog_compiler_pic='-fPIC'
10319 lt_prog_compiler_static='-static'
10320 ;;
10321 *Portland\ Group*)
10322 lt_prog_compiler_wl='-Wl,'
10323 lt_prog_compiler_pic='-fpic'
10324 lt_prog_compiler_static='-Bstatic'
10325 ;;
10326 esac
10327 ;;
10328 esac
10329 ;;
10330
10331 newsos6)
10332 lt_prog_compiler_pic='-KPIC'
10333 lt_prog_compiler_static='-Bstatic'
10334 ;;
10335
10336 *nto* | *qnx*)
10337 # QNX uses GNU C++, but need to define -shared option too, otherwise
10338 # it will coredump.
10339 lt_prog_compiler_pic='-fPIC -shared'
10340 ;;
10341
10342 osf3* | osf4* | osf5*)
10343 lt_prog_compiler_wl='-Wl,'
10344 # All OSF/1 code is PIC.
10345 lt_prog_compiler_static='-non_shared'
10346 ;;
10347
10348 rdos*)
10349 lt_prog_compiler_static='-non_shared'
10350 ;;
10351
10352 solaris*)
10353 lt_prog_compiler_pic='-KPIC'
10354 lt_prog_compiler_static='-Bstatic'
10355 case $cc_basename in
10356 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10357 lt_prog_compiler_wl='-Qoption ld ';;
10358 *)
10359 lt_prog_compiler_wl='-Wl,';;
10360 esac
10361 ;;
10362
10363 sunos4*)
10364 lt_prog_compiler_wl='-Qoption ld '
10365 lt_prog_compiler_pic='-PIC'
10366 lt_prog_compiler_static='-Bstatic'
10367 ;;
10368
10369 sysv4 | sysv4.2uw2* | sysv4.3*)
10370 lt_prog_compiler_wl='-Wl,'
10371 lt_prog_compiler_pic='-KPIC'
10372 lt_prog_compiler_static='-Bstatic'
10373 ;;
10374
10375 sysv4*MP*)
10376 if test -d /usr/nec; then
10377 lt_prog_compiler_pic='-Kconform_pic'
10378 lt_prog_compiler_static='-Bstatic'
10379 fi
10380 ;;
10381
10382 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10383 lt_prog_compiler_wl='-Wl,'
10384 lt_prog_compiler_pic='-KPIC'
10385 lt_prog_compiler_static='-Bstatic'
10386 ;;
10387
10388 unicos*)
10389 lt_prog_compiler_wl='-Wl,'
10390 lt_prog_compiler_can_build_shared=no
10391 ;;
10392
10393 uts4*)
10394 lt_prog_compiler_pic='-pic'
10395 lt_prog_compiler_static='-Bstatic'
10396 ;;
10397
10398 *)
10399 lt_prog_compiler_can_build_shared=no
10400 ;;
10401 esac
10402 fi
10403
10404 case $host_os in
10405 # For platforms that do not support PIC, -DPIC is meaningless:
10406 *djgpp*)
10407 lt_prog_compiler_pic=
10408 ;;
10409 *)
10410 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10411 ;;
10412 esac
10413
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10415 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10416 if ${lt_cv_prog_compiler_pic+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10420 fi
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10422 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10423 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10424
10425 #
10426 # Check to make sure the PIC flag actually works.
10427 #
10428 if test -n "$lt_prog_compiler_pic"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10430 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10431 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 lt_cv_prog_compiler_pic_works=no
10435 ac_outfile=conftest.$ac_objext
10436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10437 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10438 # Insert the option either (1) after the last *FLAGS variable, or
10439 # (2) before a word containing "conftest.", or (3) at the end.
10440 # Note that $ac_compile itself does not contain backslashes and begins
10441 # with a dollar sign (not a hyphen), so the echo should work correctly.
10442 # The option is referenced via a variable to avoid confusing sed.
10443 lt_compile=`echo "$ac_compile" | $SED \
10444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10446 -e 's:$: $lt_compiler_flag:'`
10447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10448 (eval "$lt_compile" 2>conftest.err)
10449 ac_status=$?
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 if (exit $ac_status) && test -s "$ac_outfile"; then
10453 # The compiler can only warn and ignore the option if not recognized
10454 # So say no if there are warnings other than the usual output.
10455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10458 lt_cv_prog_compiler_pic_works=yes
10459 fi
10460 fi
10461 $RM conftest*
10462
10463 fi
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10465 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10466
10467 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10468 case $lt_prog_compiler_pic in
10469 "" | " "*) ;;
10470 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10471 esac
10472 else
10473 lt_prog_compiler_pic=
10474 lt_prog_compiler_can_build_shared=no
10475 fi
10476
10477 fi
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489 #
10490 # Check to make sure the static flag actually works.
10491 #
10492 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10494 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10495 if ${lt_cv_prog_compiler_static_works+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 lt_cv_prog_compiler_static_works=no
10499 save_LDFLAGS=$LDFLAGS
10500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10501 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10503 # The linker can only warn and ignore the option if not recognized
10504 # So say no if there are warnings
10505 if test -s conftest.err; then
10506 # Append any errors to the config.log.
10507 cat conftest.err 1>&5
10508 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10510 if diff conftest.exp conftest.er2 >/dev/null; then
10511 lt_cv_prog_compiler_static_works=yes
10512 fi
10513 else
10514 lt_cv_prog_compiler_static_works=yes
10515 fi
10516 fi
10517 $RM -r conftest*
10518 LDFLAGS=$save_LDFLAGS
10519
10520 fi
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10522 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10523
10524 if test yes = "$lt_cv_prog_compiler_static_works"; then
10525 :
10526 else
10527 lt_prog_compiler_static=
10528 fi
10529
10530
10531
10532
10533
10534
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10538 if ${lt_cv_prog_compiler_c_o+:} false; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541 lt_cv_prog_compiler_c_o=no
10542 $RM -r conftest 2>/dev/null
10543 mkdir conftest
10544 cd conftest
10545 mkdir out
10546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10547
10548 lt_compiler_flag="-o out/conftest2.$ac_objext"
10549 # Insert the option either (1) after the last *FLAGS variable, or
10550 # (2) before a word containing "conftest.", or (3) at the end.
10551 # Note that $ac_compile itself does not contain backslashes and begins
10552 # with a dollar sign (not a hyphen), so the echo should work correctly.
10553 lt_compile=`echo "$ac_compile" | $SED \
10554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10556 -e 's:$: $lt_compiler_flag:'`
10557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10558 (eval "$lt_compile" 2>out/conftest.err)
10559 ac_status=$?
10560 cat out/conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10563 then
10564 # The compiler can only warn and ignore the option if not recognized
10565 # So say no if there are warnings
10566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10569 lt_cv_prog_compiler_c_o=yes
10570 fi
10571 fi
10572 chmod u+w . 2>&5
10573 $RM conftest*
10574 # SGI C++ compiler will create directory out/ii_files/ for
10575 # template instantiation
10576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10577 $RM out/* && rmdir out
10578 cd ..
10579 $RM -r conftest
10580 $RM conftest*
10581
10582 fi
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10584 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10585
10586
10587
10588
10589
10590
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10592 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10593 if ${lt_cv_prog_compiler_c_o+:} false; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 lt_cv_prog_compiler_c_o=no
10597 $RM -r conftest 2>/dev/null
10598 mkdir conftest
10599 cd conftest
10600 mkdir out
10601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10602
10603 lt_compiler_flag="-o out/conftest2.$ac_objext"
10604 # Insert the option either (1) after the last *FLAGS variable, or
10605 # (2) before a word containing "conftest.", or (3) at the end.
10606 # Note that $ac_compile itself does not contain backslashes and begins
10607 # with a dollar sign (not a hyphen), so the echo should work correctly.
10608 lt_compile=`echo "$ac_compile" | $SED \
10609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10611 -e 's:$: $lt_compiler_flag:'`
10612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10613 (eval "$lt_compile" 2>out/conftest.err)
10614 ac_status=$?
10615 cat out/conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10618 then
10619 # The compiler can only warn and ignore the option if not recognized
10620 # So say no if there are warnings
10621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10624 lt_cv_prog_compiler_c_o=yes
10625 fi
10626 fi
10627 chmod u+w . 2>&5
10628 $RM conftest*
10629 # SGI C++ compiler will create directory out/ii_files/ for
10630 # template instantiation
10631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10632 $RM out/* && rmdir out
10633 cd ..
10634 $RM -r conftest
10635 $RM conftest*
10636
10637 fi
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10639 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10640
10641
10642
10643
10644 hard_links=nottested
10645 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10646 # do not overwrite the value of need_locks provided by the user
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10648 $as_echo_n "checking if we can lock with hard links... " >&6; }
10649 hard_links=yes
10650 $RM conftest*
10651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10652 touch conftest.a
10653 ln conftest.a conftest.b 2>&5 || hard_links=no
10654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10656 $as_echo "$hard_links" >&6; }
10657 if test no = "$hard_links"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10659 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10660 need_locks=warn
10661 fi
10662 else
10663 need_locks=no
10664 fi
10665
10666
10667
10668
10669
10670
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10672 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10673
10674 runpath_var=
10675 allow_undefined_flag=
10676 always_export_symbols=no
10677 archive_cmds=
10678 archive_expsym_cmds=
10679 compiler_needs_object=no
10680 enable_shared_with_static_runtimes=no
10681 export_dynamic_flag_spec=
10682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10683 hardcode_automatic=no
10684 hardcode_direct=no
10685 hardcode_direct_absolute=no
10686 hardcode_libdir_flag_spec=
10687 hardcode_libdir_separator=
10688 hardcode_minus_L=no
10689 hardcode_shlibpath_var=unsupported
10690 inherit_rpath=no
10691 link_all_deplibs=unknown
10692 module_cmds=
10693 module_expsym_cmds=
10694 old_archive_from_new_cmds=
10695 old_archive_from_expsyms_cmds=
10696 thread_safe_flag_spec=
10697 whole_archive_flag_spec=
10698 # include_expsyms should be a list of space-separated symbols to be *always*
10699 # included in the symbol list
10700 include_expsyms=
10701 # exclude_expsyms can be an extended regexp of symbols to exclude
10702 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10703 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10704 # as well as any symbol that contains 'd'.
10705 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10706 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10707 # platforms (ab)use it in PIC code, but their linkers get confused if
10708 # the symbol is explicitly referenced. Since portable code cannot
10709 # rely on this symbol name, it's probably fine to never include it in
10710 # preloaded symbol tables.
10711 # Exclude shared library initialization/finalization symbols.
10712 extract_expsyms_cmds=
10713
10714 case $host_os in
10715 cygwin* | mingw* | pw32* | cegcc*)
10716 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10717 # When not using gcc, we currently assume that we are using
10718 # Microsoft Visual C++.
10719 if test yes != "$GCC"; then
10720 with_gnu_ld=no
10721 fi
10722 ;;
10723 interix*)
10724 # we just hope/assume this is gcc and not c89 (= MSVC++)
10725 with_gnu_ld=yes
10726 ;;
10727 openbsd* | bitrig*)
10728 with_gnu_ld=no
10729 ;;
10730 linux* | k*bsd*-gnu | gnu*)
10731 link_all_deplibs=no
10732 ;;
10733 esac
10734
10735 ld_shlibs=yes
10736
10737 # On some targets, GNU ld is compatible enough with the native linker
10738 # that we're better off using the native interface for both.
10739 lt_use_gnu_ld_interface=no
10740 if test yes = "$with_gnu_ld"; then
10741 case $host_os in
10742 aix*)
10743 # The AIX port of GNU ld has always aspired to compatibility
10744 # with the native linker. However, as the warning in the GNU ld
10745 # block says, versions before 2.19.5* couldn't really create working
10746 # shared libraries, regardless of the interface used.
10747 case `$LD -v 2>&1` in
10748 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10749 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10750 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10751 *)
10752 lt_use_gnu_ld_interface=yes
10753 ;;
10754 esac
10755 ;;
10756 *)
10757 lt_use_gnu_ld_interface=yes
10758 ;;
10759 esac
10760 fi
10761
10762 if test yes = "$lt_use_gnu_ld_interface"; then
10763 # If archive_cmds runs LD, not CC, wlarc should be empty
10764 wlarc='$wl'
10765
10766 # Set some defaults for GNU ld with shared library support. These
10767 # are reset later if shared libraries are not supported. Putting them
10768 # here allows them to be overridden if necessary.
10769 runpath_var=LD_RUN_PATH
10770 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10771 export_dynamic_flag_spec='$wl--export-dynamic'
10772 # ancient GNU ld didn't support --whole-archive et. al.
10773 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10774 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10775 else
10776 whole_archive_flag_spec=
10777 fi
10778 supports_anon_versioning=no
10779 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10780 *GNU\ gold*) supports_anon_versioning=yes ;;
10781 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10782 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10783 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10784 *\ 2.11.*) ;; # other 2.11 versions
10785 *) supports_anon_versioning=yes ;;
10786 esac
10787
10788 # See if GNU ld supports shared libraries.
10789 case $host_os in
10790 aix[3-9]*)
10791 # On AIX/PPC, the GNU linker is very broken
10792 if test ia64 != "$host_cpu"; then
10793 ld_shlibs=no
10794 cat <<_LT_EOF 1>&2
10795
10796 *** Warning: the GNU linker, at least up to release 2.19, is reported
10797 *** to be unable to reliably create shared libraries on AIX.
10798 *** Therefore, libtool is disabling shared libraries support. If you
10799 *** really care for shared libraries, you may want to install binutils
10800 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10801 *** You will then need to restart the configuration process.
10802
10803 _LT_EOF
10804 fi
10805 ;;
10806
10807 amigaos*)
10808 case $host_cpu in
10809 powerpc)
10810 # see comment about AmigaOS4 .so support
10811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10812 archive_expsym_cmds=''
10813 ;;
10814 m68k)
10815 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)'
10816 hardcode_libdir_flag_spec='-L$libdir'
10817 hardcode_minus_L=yes
10818 ;;
10819 esac
10820 ;;
10821
10822 beos*)
10823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10824 allow_undefined_flag=unsupported
10825 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10826 # support --undefined. This deserves some investigation. FIXME
10827 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10828 else
10829 ld_shlibs=no
10830 fi
10831 ;;
10832
10833 cygwin* | mingw* | pw32* | cegcc*)
10834 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10835 # as there is no search path for DLLs.
10836 hardcode_libdir_flag_spec='-L$libdir'
10837 export_dynamic_flag_spec='$wl--export-all-symbols'
10838 allow_undefined_flag=unsupported
10839 always_export_symbols=no
10840 enable_shared_with_static_runtimes=yes
10841 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'
10842 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10843
10844 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10846 # If the export-symbols file already is a .def file, use it as
10847 # is; otherwise, prepend EXPORTS...
10848 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10849 cp $export_symbols $output_objdir/$soname.def;
10850 else
10851 echo EXPORTS > $output_objdir/$soname.def;
10852 cat $export_symbols >> $output_objdir/$soname.def;
10853 fi~
10854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10855 else
10856 ld_shlibs=no
10857 fi
10858 ;;
10859
10860 haiku*)
10861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10862 link_all_deplibs=yes
10863 ;;
10864
10865 os2*)
10866 hardcode_libdir_flag_spec='-L$libdir'
10867 hardcode_minus_L=yes
10868 allow_undefined_flag=unsupported
10869 shrext_cmds=.dll
10870 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10871 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10872 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10873 $ECHO EXPORTS >> $output_objdir/$libname.def~
10874 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10875 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10876 emximp -o $lib $output_objdir/$libname.def'
10877 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10878 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10879 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10880 $ECHO EXPORTS >> $output_objdir/$libname.def~
10881 prefix_cmds="$SED"~
10882 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10883 prefix_cmds="$prefix_cmds -e 1d";
10884 fi~
10885 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10886 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10887 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10888 emximp -o $lib $output_objdir/$libname.def'
10889 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10890 enable_shared_with_static_runtimes=yes
10891 ;;
10892
10893 interix[3-9]*)
10894 hardcode_direct=no
10895 hardcode_shlibpath_var=no
10896 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10897 export_dynamic_flag_spec='$wl-E'
10898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10899 # Instead, shared libraries are loaded at an image base (0x10000000 by
10900 # default) and relocated if they conflict, which is a slow very memory
10901 # consuming and fragmenting process. To avoid this, we pick a random,
10902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10905 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'
10906 ;;
10907
10908 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10909 tmp_diet=no
10910 if test linux-dietlibc = "$host_os"; then
10911 case $cc_basename in
10912 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10913 esac
10914 fi
10915 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10916 && test no = "$tmp_diet"
10917 then
10918 tmp_addflag=' $pic_flag'
10919 tmp_sharedflag='-shared'
10920 case $cc_basename,$host_cpu in
10921 pgcc*) # Portland Group C compiler
10922 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'
10923 tmp_addflag=' $pic_flag'
10924 ;;
10925 pgf77* | pgf90* | pgf95* | pgfortran*)
10926 # Portland Group f77 and f90 compilers
10927 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'
10928 tmp_addflag=' $pic_flag -Mnomain' ;;
10929 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10930 tmp_addflag=' -i_dynamic' ;;
10931 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10932 tmp_addflag=' -i_dynamic -nofor_main' ;;
10933 ifc* | ifort*) # Intel Fortran compiler
10934 tmp_addflag=' -nofor_main' ;;
10935 lf95*) # Lahey Fortran 8.1
10936 whole_archive_flag_spec=
10937 tmp_sharedflag='--shared' ;;
10938 nagfor*) # NAGFOR 5.3
10939 tmp_sharedflag='-Wl,-shared' ;;
10940 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10941 tmp_sharedflag='-qmkshrobj'
10942 tmp_addflag= ;;
10943 nvcc*) # Cuda Compiler Driver 2.2
10944 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'
10945 compiler_needs_object=yes
10946 ;;
10947 esac
10948 case `$CC -V 2>&1 | sed 5q` in
10949 *Sun\ C*) # Sun C 5.9
10950 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'
10951 compiler_needs_object=yes
10952 tmp_sharedflag='-G' ;;
10953 *Sun\ F*) # Sun Fortran 8.3
10954 tmp_sharedflag='-G' ;;
10955 esac
10956 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10957
10958 if test yes = "$supports_anon_versioning"; then
10959 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10960 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10961 echo "local: *; };" >> $output_objdir/$libname.ver~
10962 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10963 fi
10964
10965 case $cc_basename in
10966 tcc*)
10967 export_dynamic_flag_spec='-rdynamic'
10968 ;;
10969 xlf* | bgf* | bgxlf* | mpixlf*)
10970 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10971 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10972 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10973 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10974 if test yes = "$supports_anon_versioning"; then
10975 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10977 echo "local: *; };" >> $output_objdir/$libname.ver~
10978 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10979 fi
10980 ;;
10981 esac
10982 else
10983 ld_shlibs=no
10984 fi
10985 ;;
10986
10987 netbsd* | netbsdelf*-gnu)
10988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10989 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10990 wlarc=
10991 else
10992 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10993 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10994 fi
10995 ;;
10996
10997 solaris*)
10998 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10999 ld_shlibs=no
11000 cat <<_LT_EOF 1>&2
11001
11002 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11003 *** create shared libraries on Solaris systems. Therefore, libtool
11004 *** is disabling shared libraries support. We urge you to upgrade GNU
11005 *** binutils to release 2.9.1 or newer. Another option is to modify
11006 *** your PATH or compiler configuration so that the native linker is
11007 *** used, and then restart.
11008
11009 _LT_EOF
11010 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11011 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11012 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11013 else
11014 ld_shlibs=no
11015 fi
11016 ;;
11017
11018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11019 case `$LD -v 2>&1` in
11020 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11021 ld_shlibs=no
11022 cat <<_LT_EOF 1>&2
11023
11024 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11025 *** reliably create shared libraries on SCO systems. Therefore, libtool
11026 *** is disabling shared libraries support. We urge you to upgrade GNU
11027 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11028 *** your PATH or compiler configuration so that the native linker is
11029 *** used, and then restart.
11030
11031 _LT_EOF
11032 ;;
11033 *)
11034 # For security reasons, it is highly recommended that you always
11035 # use absolute paths for naming shared libraries, and exclude the
11036 # DT_RUNPATH tag from executables and libraries. But doing so
11037 # requires that you compile everything twice, which is a pain.
11038 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11039 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11042 else
11043 ld_shlibs=no
11044 fi
11045 ;;
11046 esac
11047 ;;
11048
11049 sunos4*)
11050 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11051 wlarc=
11052 hardcode_direct=yes
11053 hardcode_shlibpath_var=no
11054 ;;
11055
11056 *)
11057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11059 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11060 else
11061 ld_shlibs=no
11062 fi
11063 ;;
11064 esac
11065
11066 if test no = "$ld_shlibs"; then
11067 runpath_var=
11068 hardcode_libdir_flag_spec=
11069 export_dynamic_flag_spec=
11070 whole_archive_flag_spec=
11071 fi
11072 else
11073 # PORTME fill in a description of your system's linker (not GNU ld)
11074 case $host_os in
11075 aix3*)
11076 allow_undefined_flag=unsupported
11077 always_export_symbols=yes
11078 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'
11079 # Note: this linker hardcodes the directories in LIBPATH if there
11080 # are no directories specified by -L.
11081 hardcode_minus_L=yes
11082 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11083 # Neither direct hardcoding nor static linking is supported with a
11084 # broken collect2.
11085 hardcode_direct=unsupported
11086 fi
11087 ;;
11088
11089 aix[4-9]*)
11090 if test ia64 = "$host_cpu"; then
11091 # On IA64, the linker does run time linking by default, so we don't
11092 # have to do anything special.
11093 aix_use_runtimelinking=no
11094 exp_sym_flag='-Bexport'
11095 no_entry_flag=
11096 else
11097 # If we're using GNU nm, then we don't want the "-C" option.
11098 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11099 # Without the "-l" option, or with the "-B" option, AIX nm treats
11100 # weak defined symbols like other global defined symbols, whereas
11101 # GNU nm marks them as "W".
11102 # While the 'weak' keyword is ignored in the Export File, we need
11103 # it in the Import File for the 'aix-soname' feature, so we have
11104 # to replace the "-B" option with "-P" for AIX nm.
11105 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11106 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'
11107 else
11108 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 == "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'
11109 fi
11110 aix_use_runtimelinking=no
11111
11112 # Test if we are trying to use run time linking or normal
11113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11114 # have runtime linking enabled, and use it for executables.
11115 # For shared libraries, we enable/disable runtime linking
11116 # depending on the kind of the shared library created -
11117 # when "with_aix_soname,aix_use_runtimelinking" is:
11118 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11119 # "aix,yes" lib.so shared, rtl:yes, for executables
11120 # lib.a static archive
11121 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11122 # lib.a(lib.so.V) shared, rtl:no, for executables
11123 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11124 # lib.a(lib.so.V) shared, rtl:no
11125 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11126 # lib.a static archive
11127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11128 for ld_flag in $LDFLAGS; do
11129 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11130 aix_use_runtimelinking=yes
11131 break
11132 fi
11133 done
11134 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11135 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11136 # so we don't have lib.a shared libs to link our executables.
11137 # We have to force runtime linking in this case.
11138 aix_use_runtimelinking=yes
11139 LDFLAGS="$LDFLAGS -Wl,-brtl"
11140 fi
11141 ;;
11142 esac
11143
11144 exp_sym_flag='-bexport'
11145 no_entry_flag='-bnoentry'
11146 fi
11147
11148 # When large executables or shared objects are built, AIX ld can
11149 # have problems creating the table of contents. If linking a library
11150 # or program results in "error TOC overflow" add -mminimal-toc to
11151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11153
11154 archive_cmds=''
11155 hardcode_direct=yes
11156 hardcode_direct_absolute=yes
11157 hardcode_libdir_separator=':'
11158 link_all_deplibs=yes
11159 file_list_spec='$wl-f,'
11160 case $with_aix_soname,$aix_use_runtimelinking in
11161 aix,*) ;; # traditional, no import file
11162 svr4,* | *,yes) # use import file
11163 # The Import File defines what to hardcode.
11164 hardcode_direct=no
11165 hardcode_direct_absolute=no
11166 ;;
11167 esac
11168
11169 if test yes = "$GCC"; then
11170 case $host_os in aix4.[012]|aix4.[012].*)
11171 # We only want to do this on AIX 4.2 and lower, the check
11172 # below for broken collect2 doesn't work under 4.3+
11173 collect2name=`$CC -print-prog-name=collect2`
11174 if test -f "$collect2name" &&
11175 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11176 then
11177 # We have reworked collect2
11178 :
11179 else
11180 # We have old collect2
11181 hardcode_direct=unsupported
11182 # It fails to find uninstalled libraries when the uninstalled
11183 # path is not listed in the libpath. Setting hardcode_minus_L
11184 # to unsupported forces relinking
11185 hardcode_minus_L=yes
11186 hardcode_libdir_flag_spec='-L$libdir'
11187 hardcode_libdir_separator=
11188 fi
11189 ;;
11190 esac
11191 shared_flag='-shared'
11192 if test yes = "$aix_use_runtimelinking"; then
11193 shared_flag="$shared_flag "'$wl-G'
11194 fi
11195 # Need to ensure runtime linking is disabled for the traditional
11196 # shared library, or the linker may eventually find shared libraries
11197 # /with/ Import File - we do not want to mix them.
11198 shared_flag_aix='-shared'
11199 shared_flag_svr4='-shared $wl-G'
11200 else
11201 # not using gcc
11202 if test ia64 = "$host_cpu"; then
11203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11204 # chokes on -Wl,-G. The following line is correct:
11205 shared_flag='-G'
11206 else
11207 if test yes = "$aix_use_runtimelinking"; then
11208 shared_flag='$wl-G'
11209 else
11210 shared_flag='$wl-bM:SRE'
11211 fi
11212 shared_flag_aix='$wl-bM:SRE'
11213 shared_flag_svr4='$wl-G'
11214 fi
11215 fi
11216
11217 export_dynamic_flag_spec='$wl-bexpall'
11218 # It seems that -bexpall does not export symbols beginning with
11219 # underscore (_), so it is better to generate a list of symbols to export.
11220 always_export_symbols=yes
11221 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11222 # Warning - without using the other runtime loading flags (-brtl),
11223 # -berok will link without error, but may produce a broken library.
11224 allow_undefined_flag='-berok'
11225 # Determine the default libpath from the value encoded in an
11226 # empty executable.
11227 if test set = "${lt_cv_aix_libpath+set}"; then
11228 aix_libpath=$lt_cv_aix_libpath
11229 else
11230 if ${lt_cv_aix_libpath_+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235
11236 int
11237 main ()
11238 {
11239
11240 ;
11241 return 0;
11242 }
11243 _ACEOF
11244 if ac_fn_c_try_link "$LINENO"; then :
11245
11246 lt_aix_libpath_sed='
11247 /Import File Strings/,/^$/ {
11248 /^0/ {
11249 s/^0 *\([^ ]*\) *$/\1/
11250 p
11251 }
11252 }'
11253 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11254 # Check for a 64-bit object if we didn't find anything.
11255 if test -z "$lt_cv_aix_libpath_"; then
11256 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11257 fi
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 if test -z "$lt_cv_aix_libpath_"; then
11262 lt_cv_aix_libpath_=/usr/lib:/lib
11263 fi
11264
11265 fi
11266
11267 aix_libpath=$lt_cv_aix_libpath_
11268 fi
11269
11270 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11271 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
11272 else
11273 if test ia64 = "$host_cpu"; then
11274 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11275 allow_undefined_flag="-z nodefs"
11276 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"
11277 else
11278 # Determine the default libpath from the value encoded in an
11279 # empty executable.
11280 if test set = "${lt_cv_aix_libpath+set}"; then
11281 aix_libpath=$lt_cv_aix_libpath
11282 else
11283 if ${lt_cv_aix_libpath_+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288
11289 int
11290 main ()
11291 {
11292
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 if ac_fn_c_try_link "$LINENO"; then :
11298
11299 lt_aix_libpath_sed='
11300 /Import File Strings/,/^$/ {
11301 /^0/ {
11302 s/^0 *\([^ ]*\) *$/\1/
11303 p
11304 }
11305 }'
11306 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11307 # Check for a 64-bit object if we didn't find anything.
11308 if test -z "$lt_cv_aix_libpath_"; then
11309 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11310 fi
11311 fi
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314 if test -z "$lt_cv_aix_libpath_"; then
11315 lt_cv_aix_libpath_=/usr/lib:/lib
11316 fi
11317
11318 fi
11319
11320 aix_libpath=$lt_cv_aix_libpath_
11321 fi
11322
11323 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11324 # Warning - without using the other run time loading flags,
11325 # -berok will link without error, but may produce a broken library.
11326 no_undefined_flag=' $wl-bernotok'
11327 allow_undefined_flag=' $wl-berok'
11328 if test yes = "$with_gnu_ld"; then
11329 # We only use this code for GNU lds that support --whole-archive.
11330 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11331 else
11332 # Exported symbols can be pulled into shared objects from archives
11333 whole_archive_flag_spec='$convenience'
11334 fi
11335 archive_cmds_need_lc=yes
11336 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11337 # -brtl affects multiple linker settings, -berok does not and is overridden later
11338 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11339 if test svr4 != "$with_aix_soname"; then
11340 # This is similar to how AIX traditionally builds its shared libraries.
11341 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'
11342 fi
11343 if test aix != "$with_aix_soname"; then
11344 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'
11345 else
11346 # used by -dlpreopen to get the symbols
11347 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11348 fi
11349 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11350 fi
11351 fi
11352 ;;
11353
11354 amigaos*)
11355 case $host_cpu in
11356 powerpc)
11357 # see comment about AmigaOS4 .so support
11358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11359 archive_expsym_cmds=''
11360 ;;
11361 m68k)
11362 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)'
11363 hardcode_libdir_flag_spec='-L$libdir'
11364 hardcode_minus_L=yes
11365 ;;
11366 esac
11367 ;;
11368
11369 bsdi[45]*)
11370 export_dynamic_flag_spec=-rdynamic
11371 ;;
11372
11373 cygwin* | mingw* | pw32* | cegcc*)
11374 # When not using gcc, we currently assume that we are using
11375 # Microsoft Visual C++.
11376 # hardcode_libdir_flag_spec is actually meaningless, as there is
11377 # no search path for DLLs.
11378 case $cc_basename in
11379 cl*)
11380 # Native MSVC
11381 hardcode_libdir_flag_spec=' '
11382 allow_undefined_flag=unsupported
11383 always_export_symbols=yes
11384 file_list_spec='@'
11385 # Tell ltmain to make .lib files, not .a files.
11386 libext=lib
11387 # Tell ltmain to make .dll files, not .so files.
11388 shrext_cmds=.dll
11389 # FIXME: Setting linknames here is a bad hack.
11390 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11391 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11392 cp "$export_symbols" "$output_objdir/$soname.def";
11393 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11394 else
11395 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11396 fi~
11397 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11398 linknames='
11399 # The linker will not automatically build a static lib if we build a DLL.
11400 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11401 enable_shared_with_static_runtimes=yes
11402 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11404 # Don't use ranlib
11405 old_postinstall_cmds='chmod 644 $oldlib'
11406 postlink_cmds='lt_outputfile="@OUTPUT@"~
11407 lt_tool_outputfile="@TOOL_OUTPUT@"~
11408 case $lt_outputfile in
11409 *.exe|*.EXE) ;;
11410 *)
11411 lt_outputfile=$lt_outputfile.exe
11412 lt_tool_outputfile=$lt_tool_outputfile.exe
11413 ;;
11414 esac~
11415 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11416 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11417 $RM "$lt_outputfile.manifest";
11418 fi'
11419 ;;
11420 *)
11421 # Assume MSVC wrapper
11422 hardcode_libdir_flag_spec=' '
11423 allow_undefined_flag=unsupported
11424 # Tell ltmain to make .lib files, not .a files.
11425 libext=lib
11426 # Tell ltmain to make .dll files, not .so files.
11427 shrext_cmds=.dll
11428 # FIXME: Setting linknames here is a bad hack.
11429 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11430 # The linker will automatically build a .lib file if we build a DLL.
11431 old_archive_from_new_cmds='true'
11432 # FIXME: Should let the user specify the lib program.
11433 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11434 enable_shared_with_static_runtimes=yes
11435 ;;
11436 esac
11437 ;;
11438
11439 darwin* | rhapsody*)
11440
11441
11442 archive_cmds_need_lc=no
11443 hardcode_direct=no
11444 hardcode_automatic=yes
11445 hardcode_shlibpath_var=unsupported
11446 if test yes = "$lt_cv_ld_force_load"; then
11447 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\"`'
11448
11449 else
11450 whole_archive_flag_spec=''
11451 fi
11452 link_all_deplibs=yes
11453 allow_undefined_flag=$_lt_dar_allow_undefined
11454 case $cc_basename in
11455 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11456 *) _lt_dar_can_shared=$GCC ;;
11457 esac
11458 if test yes = "$_lt_dar_can_shared"; then
11459 output_verbose_link_cmd=func_echo_all
11460 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11461 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11462 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"
11463 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"
11464
11465 else
11466 ld_shlibs=no
11467 fi
11468
11469 ;;
11470
11471 dgux*)
11472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11473 hardcode_libdir_flag_spec='-L$libdir'
11474 hardcode_shlibpath_var=no
11475 ;;
11476
11477 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11478 # support. Future versions do this automatically, but an explicit c++rt0.o
11479 # does not break anything, and helps significantly (at the cost of a little
11480 # extra space).
11481 freebsd2.2*)
11482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11483 hardcode_libdir_flag_spec='-R$libdir'
11484 hardcode_direct=yes
11485 hardcode_shlibpath_var=no
11486 ;;
11487
11488 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11489 freebsd2.*)
11490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11491 hardcode_direct=yes
11492 hardcode_minus_L=yes
11493 hardcode_shlibpath_var=no
11494 ;;
11495
11496 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11497 freebsd* | dragonfly*)
11498 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11499 hardcode_libdir_flag_spec='-R$libdir'
11500 hardcode_direct=yes
11501 hardcode_shlibpath_var=no
11502 ;;
11503
11504 hpux9*)
11505 if test yes = "$GCC"; then
11506 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'
11507 else
11508 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'
11509 fi
11510 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11511 hardcode_libdir_separator=:
11512 hardcode_direct=yes
11513
11514 # hardcode_minus_L: Not really in the search PATH,
11515 # but as the default location of the library.
11516 hardcode_minus_L=yes
11517 export_dynamic_flag_spec='$wl-E'
11518 ;;
11519
11520 hpux10*)
11521 if test yes,no = "$GCC,$with_gnu_ld"; then
11522 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11523 else
11524 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11525 fi
11526 if test no = "$with_gnu_ld"; then
11527 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11528 hardcode_libdir_separator=:
11529 hardcode_direct=yes
11530 hardcode_direct_absolute=yes
11531 export_dynamic_flag_spec='$wl-E'
11532 # hardcode_minus_L: Not really in the search PATH,
11533 # but as the default location of the library.
11534 hardcode_minus_L=yes
11535 fi
11536 ;;
11537
11538 hpux11*)
11539 if test yes,no = "$GCC,$with_gnu_ld"; then
11540 case $host_cpu in
11541 hppa*64*)
11542 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11543 ;;
11544 ia64*)
11545 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11546 ;;
11547 *)
11548 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11549 ;;
11550 esac
11551 else
11552 case $host_cpu in
11553 hppa*64*)
11554 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11555 ;;
11556 ia64*)
11557 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11558 ;;
11559 *)
11560
11561 # Older versions of the 11.00 compiler do not understand -b yet
11562 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11564 $as_echo_n "checking if $CC understands -b... " >&6; }
11565 if ${lt_cv_prog_compiler__b+:} false; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 lt_cv_prog_compiler__b=no
11569 save_LDFLAGS=$LDFLAGS
11570 LDFLAGS="$LDFLAGS -b"
11571 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11572 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11573 # The linker can only warn and ignore the option if not recognized
11574 # So say no if there are warnings
11575 if test -s conftest.err; then
11576 # Append any errors to the config.log.
11577 cat conftest.err 1>&5
11578 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11580 if diff conftest.exp conftest.er2 >/dev/null; then
11581 lt_cv_prog_compiler__b=yes
11582 fi
11583 else
11584 lt_cv_prog_compiler__b=yes
11585 fi
11586 fi
11587 $RM -r conftest*
11588 LDFLAGS=$save_LDFLAGS
11589
11590 fi
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11592 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11593
11594 if test yes = "$lt_cv_prog_compiler__b"; then
11595 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11596 else
11597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11598 fi
11599
11600 ;;
11601 esac
11602 fi
11603 if test no = "$with_gnu_ld"; then
11604 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11605 hardcode_libdir_separator=:
11606
11607 case $host_cpu in
11608 hppa*64*|ia64*)
11609 hardcode_direct=no
11610 hardcode_shlibpath_var=no
11611 ;;
11612 *)
11613 hardcode_direct=yes
11614 hardcode_direct_absolute=yes
11615 export_dynamic_flag_spec='$wl-E'
11616
11617 # hardcode_minus_L: Not really in the search PATH,
11618 # but as the default location of the library.
11619 hardcode_minus_L=yes
11620 ;;
11621 esac
11622 fi
11623 ;;
11624
11625 irix5* | irix6* | nonstopux*)
11626 if test yes = "$GCC"; then
11627 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'
11628 # Try to use the -exported_symbol ld option, if it does not
11629 # work, assume that -exports_file does not work either and
11630 # implicitly export all symbols.
11631 # This should be the same for all languages, so no per-tag cache variable.
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11633 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11634 if ${lt_cv_irix_exported_symbol+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 save_LDFLAGS=$LDFLAGS
11638 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 int foo (void) { return 0; }
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644 lt_cv_irix_exported_symbol=yes
11645 else
11646 lt_cv_irix_exported_symbol=no
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 LDFLAGS=$save_LDFLAGS
11651 fi
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11653 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11654 if test yes = "$lt_cv_irix_exported_symbol"; then
11655 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'
11656 fi
11657 link_all_deplibs=no
11658 else
11659 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'
11660 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'
11661 fi
11662 archive_cmds_need_lc='no'
11663 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11664 hardcode_libdir_separator=:
11665 inherit_rpath=yes
11666 link_all_deplibs=yes
11667 ;;
11668
11669 linux*)
11670 case $cc_basename in
11671 tcc*)
11672 # Fabrice Bellard et al's Tiny C Compiler
11673 ld_shlibs=yes
11674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11675 ;;
11676 esac
11677 ;;
11678
11679 netbsd* | netbsdelf*-gnu)
11680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11682 else
11683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11684 fi
11685 hardcode_libdir_flag_spec='-R$libdir'
11686 hardcode_direct=yes
11687 hardcode_shlibpath_var=no
11688 ;;
11689
11690 newsos6)
11691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11692 hardcode_direct=yes
11693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11694 hardcode_libdir_separator=:
11695 hardcode_shlibpath_var=no
11696 ;;
11697
11698 *nto* | *qnx*)
11699 ;;
11700
11701 openbsd* | bitrig*)
11702 if test -f /usr/libexec/ld.so; then
11703 hardcode_direct=yes
11704 hardcode_shlibpath_var=no
11705 hardcode_direct_absolute=yes
11706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11708 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11709 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11710 export_dynamic_flag_spec='$wl-E'
11711 else
11712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11713 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11714 fi
11715 else
11716 ld_shlibs=no
11717 fi
11718 ;;
11719
11720 os2*)
11721 hardcode_libdir_flag_spec='-L$libdir'
11722 hardcode_minus_L=yes
11723 allow_undefined_flag=unsupported
11724 shrext_cmds=.dll
11725 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11726 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11727 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11728 $ECHO EXPORTS >> $output_objdir/$libname.def~
11729 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11730 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11731 emximp -o $lib $output_objdir/$libname.def'
11732 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11733 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11734 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11735 $ECHO EXPORTS >> $output_objdir/$libname.def~
11736 prefix_cmds="$SED"~
11737 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11738 prefix_cmds="$prefix_cmds -e 1d";
11739 fi~
11740 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11741 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11742 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11743 emximp -o $lib $output_objdir/$libname.def'
11744 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11745 enable_shared_with_static_runtimes=yes
11746 ;;
11747
11748 osf3*)
11749 if test yes = "$GCC"; then
11750 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11751 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'
11752 else
11753 allow_undefined_flag=' -expect_unresolved \*'
11754 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'
11755 fi
11756 archive_cmds_need_lc='no'
11757 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11758 hardcode_libdir_separator=:
11759 ;;
11760
11761 osf4* | osf5*) # as osf3* with the addition of -msym flag
11762 if test yes = "$GCC"; then
11763 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11764 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'
11765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11766 else
11767 allow_undefined_flag=' -expect_unresolved \*'
11768 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'
11769 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~
11770 $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'
11771
11772 # Both c and cxx compiler support -rpath directly
11773 hardcode_libdir_flag_spec='-rpath $libdir'
11774 fi
11775 archive_cmds_need_lc='no'
11776 hardcode_libdir_separator=:
11777 ;;
11778
11779 solaris*)
11780 no_undefined_flag=' -z defs'
11781 if test yes = "$GCC"; then
11782 wlarc='$wl'
11783 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11785 $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'
11786 else
11787 case `$CC -V 2>&1` in
11788 *"Compilers 5.0"*)
11789 wlarc=''
11790 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11791 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11792 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11793 ;;
11794 *)
11795 wlarc='$wl'
11796 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11798 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11799 ;;
11800 esac
11801 fi
11802 hardcode_libdir_flag_spec='-R$libdir'
11803 hardcode_shlibpath_var=no
11804 case $host_os in
11805 solaris2.[0-5] | solaris2.[0-5].*) ;;
11806 *)
11807 # The compiler driver will combine and reorder linker options,
11808 # but understands '-z linker_flag'. GCC discards it without '$wl',
11809 # but is careful enough not to reorder.
11810 # Supported since Solaris 2.6 (maybe 2.5.1?)
11811 if test yes = "$GCC"; then
11812 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11813 else
11814 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11815 fi
11816 ;;
11817 esac
11818 link_all_deplibs=yes
11819 ;;
11820
11821 sunos4*)
11822 if test sequent = "$host_vendor"; then
11823 # Use $CC to link under sequent, because it throws in some extra .o
11824 # files that make .init and .fini sections work.
11825 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11826 else
11827 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11828 fi
11829 hardcode_libdir_flag_spec='-L$libdir'
11830 hardcode_direct=yes
11831 hardcode_minus_L=yes
11832 hardcode_shlibpath_var=no
11833 ;;
11834
11835 sysv4)
11836 case $host_vendor in
11837 sni)
11838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11839 hardcode_direct=yes # is this really true???
11840 ;;
11841 siemens)
11842 ## LD is ld it makes a PLAMLIB
11843 ## CC just makes a GrossModule.
11844 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11845 reload_cmds='$CC -r -o $output$reload_objs'
11846 hardcode_direct=no
11847 ;;
11848 motorola)
11849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11850 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11851 ;;
11852 esac
11853 runpath_var='LD_RUN_PATH'
11854 hardcode_shlibpath_var=no
11855 ;;
11856
11857 sysv4.3*)
11858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11859 hardcode_shlibpath_var=no
11860 export_dynamic_flag_spec='-Bexport'
11861 ;;
11862
11863 sysv4*MP*)
11864 if test -d /usr/nec; then
11865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11866 hardcode_shlibpath_var=no
11867 runpath_var=LD_RUN_PATH
11868 hardcode_runpath_var=yes
11869 ld_shlibs=yes
11870 fi
11871 ;;
11872
11873 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11874 no_undefined_flag='$wl-z,text'
11875 archive_cmds_need_lc=no
11876 hardcode_shlibpath_var=no
11877 runpath_var='LD_RUN_PATH'
11878
11879 if test yes = "$GCC"; then
11880 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 else
11883 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11884 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 fi
11886 ;;
11887
11888 sysv5* | sco3.2v5* | sco5v6*)
11889 # Note: We CANNOT use -z defs as we might desire, because we do not
11890 # link with -lc, and that would cause any symbols used from libc to
11891 # always be unresolved, which means just about no library would
11892 # ever link correctly. If we're not using GNU ld we use -z text
11893 # though, which does catch some bad symbols but isn't as heavy-handed
11894 # as -z defs.
11895 no_undefined_flag='$wl-z,text'
11896 allow_undefined_flag='$wl-z,nodefs'
11897 archive_cmds_need_lc=no
11898 hardcode_shlibpath_var=no
11899 hardcode_libdir_flag_spec='$wl-R,$libdir'
11900 hardcode_libdir_separator=':'
11901 link_all_deplibs=yes
11902 export_dynamic_flag_spec='$wl-Bexport'
11903 runpath_var='LD_RUN_PATH'
11904
11905 if test yes = "$GCC"; then
11906 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11908 else
11909 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11910 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911 fi
11912 ;;
11913
11914 uts4*)
11915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11916 hardcode_libdir_flag_spec='-L$libdir'
11917 hardcode_shlibpath_var=no
11918 ;;
11919
11920 *)
11921 ld_shlibs=no
11922 ;;
11923 esac
11924
11925 if test sni = "$host_vendor"; then
11926 case $host in
11927 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11928 export_dynamic_flag_spec='$wl-Blargedynsym'
11929 ;;
11930 esac
11931 fi
11932 fi
11933
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11935 $as_echo "$ld_shlibs" >&6; }
11936 test no = "$ld_shlibs" && can_build_shared=no
11937
11938 with_gnu_ld=$with_gnu_ld
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954 #
11955 # Do we need to explicitly link libc?
11956 #
11957 case "x$archive_cmds_need_lc" in
11958 x|xyes)
11959 # Assume -lc should be added
11960 archive_cmds_need_lc=yes
11961
11962 if test yes,yes = "$GCC,$enable_shared"; then
11963 case $archive_cmds in
11964 *'~'*)
11965 # FIXME: we may have to deal with multi-command sequences.
11966 ;;
11967 '$CC '*)
11968 # Test whether the compiler implicitly links with -lc since on some
11969 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11970 # to ld, don't add -lc before -lgcc.
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11972 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11973 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 $RM conftest*
11977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11978
11979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11980 (eval $ac_compile) 2>&5
11981 ac_status=$?
11982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11983 test $ac_status = 0; } 2>conftest.err; then
11984 soname=conftest
11985 lib=conftest
11986 libobjs=conftest.$ac_objext
11987 deplibs=
11988 wl=$lt_prog_compiler_wl
11989 pic_flag=$lt_prog_compiler_pic
11990 compiler_flags=-v
11991 linker_flags=-v
11992 verstring=
11993 output_objdir=.
11994 libname=conftest
11995 lt_save_allow_undefined_flag=$allow_undefined_flag
11996 allow_undefined_flag=
11997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11998 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11999 ac_status=$?
12000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12001 test $ac_status = 0; }
12002 then
12003 lt_cv_archive_cmds_need_lc=no
12004 else
12005 lt_cv_archive_cmds_need_lc=yes
12006 fi
12007 allow_undefined_flag=$lt_save_allow_undefined_flag
12008 else
12009 cat conftest.err 1>&5
12010 fi
12011 $RM conftest*
12012
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12015 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12016 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12017 ;;
12018 esac
12019 fi
12020 ;;
12021 esac
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
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12175 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12176
12177 if test yes = "$GCC"; then
12178 case $host_os in
12179 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12180 *) lt_awk_arg='/^libraries:/' ;;
12181 esac
12182 case $host_os in
12183 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12184 *) lt_sed_strip_eq='s|=/|/|g' ;;
12185 esac
12186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12187 case $lt_search_path_spec in
12188 *\;*)
12189 # if the path contains ";" then we assume it to be the separator
12190 # otherwise default to the standard path separator (i.e. ":") - it is
12191 # assumed that no part of a normal pathname contains ";" but that should
12192 # okay in the real world where ";" in dirpaths is itself problematic.
12193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12194 ;;
12195 *)
12196 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12197 ;;
12198 esac
12199 # Ok, now we have the path, separated by spaces, we can step through it
12200 # and add multilib dir if necessary...
12201 lt_tmp_lt_search_path_spec=
12202 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12203 # ...but if some path component already ends with the multilib dir we assume
12204 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12205 case "$lt_multi_os_dir; $lt_search_path_spec " in
12206 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12207 lt_multi_os_dir=
12208 ;;
12209 esac
12210 for lt_sys_path in $lt_search_path_spec; do
12211 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12212 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12213 elif test -n "$lt_multi_os_dir"; then
12214 test -d "$lt_sys_path" && \
12215 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12216 fi
12217 done
12218 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12219 BEGIN {RS = " "; FS = "/|\n";} {
12220 lt_foo = "";
12221 lt_count = 0;
12222 for (lt_i = NF; lt_i > 0; lt_i--) {
12223 if ($lt_i != "" && $lt_i != ".") {
12224 if ($lt_i == "..") {
12225 lt_count++;
12226 } else {
12227 if (lt_count == 0) {
12228 lt_foo = "/" $lt_i lt_foo;
12229 } else {
12230 lt_count--;
12231 }
12232 }
12233 }
12234 }
12235 if (lt_foo != "") { lt_freq[lt_foo]++; }
12236 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12237 }'`
12238 # AWK program above erroneously prepends '/' to C:/dos/paths
12239 # for these hosts.
12240 case $host_os in
12241 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12242 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12243 esac
12244 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12245 else
12246 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12247 fi
12248 library_names_spec=
12249 libname_spec='lib$name'
12250 soname_spec=
12251 shrext_cmds=.so
12252 postinstall_cmds=
12253 postuninstall_cmds=
12254 finish_cmds=
12255 finish_eval=
12256 shlibpath_var=
12257 shlibpath_overrides_runpath=unknown
12258 version_type=none
12259 dynamic_linker="$host_os ld.so"
12260 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12261 need_lib_prefix=unknown
12262 hardcode_into_libs=no
12263
12264 # when you set need_version to no, make sure it does not cause -set_version
12265 # flags to be left without arguments
12266 need_version=unknown
12267
12268
12269
12270 case $host_os in
12271 aix3*)
12272 version_type=linux # correct to gnu/linux during the next big refactor
12273 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12274 shlibpath_var=LIBPATH
12275
12276 # AIX 3 has no versioning support, so we append a major version to the name.
12277 soname_spec='$libname$release$shared_ext$major'
12278 ;;
12279
12280 aix[4-9]*)
12281 version_type=linux # correct to gnu/linux during the next big refactor
12282 need_lib_prefix=no
12283 need_version=no
12284 hardcode_into_libs=yes
12285 if test ia64 = "$host_cpu"; then
12286 # AIX 5 supports IA64
12287 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 else
12290 # With GCC up to 2.95.x, collect2 would create an import file
12291 # for dependence libraries. The import file would start with
12292 # the line '#! .'. This would cause the generated library to
12293 # depend on '.', always an invalid library. This was fixed in
12294 # development snapshots of GCC prior to 3.0.
12295 case $host_os in
12296 aix4 | aix4.[01] | aix4.[01].*)
12297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12298 echo ' yes '
12299 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12300 :
12301 else
12302 can_build_shared=no
12303 fi
12304 ;;
12305 esac
12306 # Using Import Files as archive members, it is possible to support
12307 # filename-based versioning of shared library archives on AIX. While
12308 # this would work for both with and without runtime linking, it will
12309 # prevent static linking of such archives. So we do filename-based
12310 # shared library versioning with .so extension only, which is used
12311 # when both runtime linking and shared linking is enabled.
12312 # Unfortunately, runtime linking may impact performance, so we do
12313 # not want this to be the default eventually. Also, we use the
12314 # versioned .so libs for executables only if there is the -brtl
12315 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12316 # To allow for filename-based versioning support, we need to create
12317 # libNAME.so.V as an archive file, containing:
12318 # *) an Import File, referring to the versioned filename of the
12319 # archive as well as the shared archive member, telling the
12320 # bitwidth (32 or 64) of that shared object, and providing the
12321 # list of exported symbols of that shared object, eventually
12322 # decorated with the 'weak' keyword
12323 # *) the shared object with the F_LOADONLY flag set, to really avoid
12324 # it being seen by the linker.
12325 # At run time we better use the real file rather than another symlink,
12326 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12327
12328 case $with_aix_soname,$aix_use_runtimelinking in
12329 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12330 # soname into executable. Probably we can add versioning support to
12331 # collect2, so additional links can be useful in future.
12332 aix,yes) # traditional libtool
12333 dynamic_linker='AIX unversionable lib.so'
12334 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12335 # instead of lib<name>.a to let people know that these are not
12336 # typical AIX shared libraries.
12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12338 ;;
12339 aix,no) # traditional AIX only
12340 dynamic_linker='AIX lib.a(lib.so.V)'
12341 # We preserve .a as extension for shared libraries through AIX4.2
12342 # and later when we are not doing run time linking.
12343 library_names_spec='$libname$release.a $libname.a'
12344 soname_spec='$libname$release$shared_ext$major'
12345 ;;
12346 svr4,*) # full svr4 only
12347 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12348 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12349 # We do not specify a path in Import Files, so LIBPATH fires.
12350 shlibpath_overrides_runpath=yes
12351 ;;
12352 *,yes) # both, prefer svr4
12353 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12354 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12355 # unpreferred sharedlib libNAME.a needs extra handling
12356 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"'
12357 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"'
12358 # We do not specify a path in Import Files, so LIBPATH fires.
12359 shlibpath_overrides_runpath=yes
12360 ;;
12361 *,no) # both, prefer aix
12362 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12363 library_names_spec='$libname$release.a $libname.a'
12364 soname_spec='$libname$release$shared_ext$major'
12365 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12366 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)'
12367 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"'
12368 ;;
12369 esac
12370 shlibpath_var=LIBPATH
12371 fi
12372 ;;
12373
12374 amigaos*)
12375 case $host_cpu in
12376 powerpc)
12377 # Since July 2007 AmigaOS4 officially supports .so libraries.
12378 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12380 ;;
12381 m68k)
12382 library_names_spec='$libname.ixlibrary $libname.a'
12383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12384 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'
12385 ;;
12386 esac
12387 ;;
12388
12389 beos*)
12390 library_names_spec='$libname$shared_ext'
12391 dynamic_linker="$host_os ld.so"
12392 shlibpath_var=LIBRARY_PATH
12393 ;;
12394
12395 bsdi[45]*)
12396 version_type=linux # correct to gnu/linux during the next big refactor
12397 need_version=no
12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12399 soname_spec='$libname$release$shared_ext$major'
12400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12404 # the default ld.so.conf also contains /usr/contrib/lib and
12405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12406 # libtool to hard-code these into programs
12407 ;;
12408
12409 cygwin* | mingw* | pw32* | cegcc*)
12410 version_type=windows
12411 shrext_cmds=.dll
12412 need_version=no
12413 need_lib_prefix=no
12414
12415 case $GCC,$cc_basename in
12416 yes,*)
12417 # gcc
12418 library_names_spec='$libname.dll.a'
12419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12420 postinstall_cmds='base_file=`basename \$file`~
12421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12422 dldir=$destdir/`dirname \$dlpath`~
12423 test -d \$dldir || mkdir -p \$dldir~
12424 $install_prog $dir/$dlname \$dldir/$dlname~
12425 chmod a+x \$dldir/$dlname~
12426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12428 fi'
12429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12430 dlpath=$dir/\$dldll~
12431 $RM \$dlpath'
12432 shlibpath_overrides_runpath=yes
12433
12434 case $host_os in
12435 cygwin*)
12436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12437 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12438
12439 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12440 ;;
12441 mingw* | cegcc*)
12442 # MinGW DLLs use traditional 'lib' prefix
12443 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12444 ;;
12445 pw32*)
12446 # pw32 DLLs use 'pw' prefix rather than 'lib'
12447 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12448 ;;
12449 esac
12450 dynamic_linker='Win32 ld.exe'
12451 ;;
12452
12453 *,cl*)
12454 # Native MSVC
12455 libname_spec='$name'
12456 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12457 library_names_spec='$libname.dll.lib'
12458
12459 case $build_os in
12460 mingw*)
12461 sys_lib_search_path_spec=
12462 lt_save_ifs=$IFS
12463 IFS=';'
12464 for lt_path in $LIB
12465 do
12466 IFS=$lt_save_ifs
12467 # Let DOS variable expansion print the short 8.3 style file name.
12468 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12469 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12470 done
12471 IFS=$lt_save_ifs
12472 # Convert to MSYS style.
12473 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12474 ;;
12475 cygwin*)
12476 # Convert to unix form, then to dos form, then back to unix form
12477 # but this time dos style (no spaces!) so that the unix form looks
12478 # like /cygdrive/c/PROGRA~1:/cygdr...
12479 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12480 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12481 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12482 ;;
12483 *)
12484 sys_lib_search_path_spec=$LIB
12485 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12486 # It is most probably a Windows format PATH.
12487 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12488 else
12489 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12490 fi
12491 # FIXME: find the short name or the path components, as spaces are
12492 # common. (e.g. "Program Files" -> "PROGRA~1")
12493 ;;
12494 esac
12495
12496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12497 postinstall_cmds='base_file=`basename \$file`~
12498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12499 dldir=$destdir/`dirname \$dlpath`~
12500 test -d \$dldir || mkdir -p \$dldir~
12501 $install_prog $dir/$dlname \$dldir/$dlname'
12502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12503 dlpath=$dir/\$dldll~
12504 $RM \$dlpath'
12505 shlibpath_overrides_runpath=yes
12506 dynamic_linker='Win32 link.exe'
12507 ;;
12508
12509 *)
12510 # Assume MSVC wrapper
12511 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12512 dynamic_linker='Win32 ld.exe'
12513 ;;
12514 esac
12515 # FIXME: first we should search . and the directory the executable is in
12516 shlibpath_var=PATH
12517 ;;
12518
12519 darwin* | rhapsody*)
12520 dynamic_linker="$host_os dyld"
12521 version_type=darwin
12522 need_lib_prefix=no
12523 need_version=no
12524 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12525 soname_spec='$libname$release$major$shared_ext'
12526 shlibpath_overrides_runpath=yes
12527 shlibpath_var=DYLD_LIBRARY_PATH
12528 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12529
12530 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12531 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12532 ;;
12533
12534 dgux*)
12535 version_type=linux # correct to gnu/linux during the next big refactor
12536 need_lib_prefix=no
12537 need_version=no
12538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12539 soname_spec='$libname$release$shared_ext$major'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 ;;
12542
12543 freebsd* | dragonfly*)
12544 # DragonFly does not have aout. When/if they implement a new
12545 # versioning mechanism, adjust this.
12546 if test -x /usr/bin/objformat; then
12547 objformat=`/usr/bin/objformat`
12548 else
12549 case $host_os in
12550 freebsd[23].*) objformat=aout ;;
12551 *) objformat=elf ;;
12552 esac
12553 fi
12554 version_type=freebsd-$objformat
12555 case $version_type in
12556 freebsd-elf*)
12557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12558 soname_spec='$libname$release$shared_ext$major'
12559 need_version=no
12560 need_lib_prefix=no
12561 ;;
12562 freebsd-*)
12563 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12564 need_version=yes
12565 ;;
12566 esac
12567 shlibpath_var=LD_LIBRARY_PATH
12568 case $host_os in
12569 freebsd2.*)
12570 shlibpath_overrides_runpath=yes
12571 ;;
12572 freebsd3.[01]* | freebsdelf3.[01]*)
12573 shlibpath_overrides_runpath=yes
12574 hardcode_into_libs=yes
12575 ;;
12576 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12577 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12578 shlibpath_overrides_runpath=no
12579 hardcode_into_libs=yes
12580 ;;
12581 *) # from 4.6 on, and DragonFly
12582 shlibpath_overrides_runpath=yes
12583 hardcode_into_libs=yes
12584 ;;
12585 esac
12586 ;;
12587
12588 haiku*)
12589 version_type=linux # correct to gnu/linux during the next big refactor
12590 need_lib_prefix=no
12591 need_version=no
12592 dynamic_linker="$host_os runtime_loader"
12593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12594 soname_spec='$libname$release$shared_ext$major'
12595 shlibpath_var=LIBRARY_PATH
12596 shlibpath_overrides_runpath=no
12597 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12598 hardcode_into_libs=yes
12599 ;;
12600
12601 hpux9* | hpux10* | hpux11*)
12602 # Give a soname corresponding to the major version so that dld.sl refuses to
12603 # link against other versions.
12604 version_type=sunos
12605 need_lib_prefix=no
12606 need_version=no
12607 case $host_cpu in
12608 ia64*)
12609 shrext_cmds='.so'
12610 hardcode_into_libs=yes
12611 dynamic_linker="$host_os dld.so"
12612 shlibpath_var=LD_LIBRARY_PATH
12613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12615 soname_spec='$libname$release$shared_ext$major'
12616 if test 32 = "$HPUX_IA64_MODE"; then
12617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12618 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12619 else
12620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12621 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12622 fi
12623 ;;
12624 hppa*64*)
12625 shrext_cmds='.sl'
12626 hardcode_into_libs=yes
12627 dynamic_linker="$host_os dld.sl"
12628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12631 soname_spec='$libname$release$shared_ext$major'
12632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12634 ;;
12635 *)
12636 shrext_cmds='.sl'
12637 dynamic_linker="$host_os dld.sl"
12638 shlibpath_var=SHLIB_PATH
12639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12641 soname_spec='$libname$release$shared_ext$major'
12642 ;;
12643 esac
12644 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12645 postinstall_cmds='chmod 555 $lib'
12646 # or fails outright, so override atomically:
12647 install_override_mode=555
12648 ;;
12649
12650 interix[3-9]*)
12651 version_type=linux # correct to gnu/linux during the next big refactor
12652 need_lib_prefix=no
12653 need_version=no
12654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12655 soname_spec='$libname$release$shared_ext$major'
12656 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12657 shlibpath_var=LD_LIBRARY_PATH
12658 shlibpath_overrides_runpath=no
12659 hardcode_into_libs=yes
12660 ;;
12661
12662 irix5* | irix6* | nonstopux*)
12663 case $host_os in
12664 nonstopux*) version_type=nonstopux ;;
12665 *)
12666 if test yes = "$lt_cv_prog_gnu_ld"; then
12667 version_type=linux # correct to gnu/linux during the next big refactor
12668 else
12669 version_type=irix
12670 fi ;;
12671 esac
12672 need_lib_prefix=no
12673 need_version=no
12674 soname_spec='$libname$release$shared_ext$major'
12675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12676 case $host_os in
12677 irix5* | nonstopux*)
12678 libsuff= shlibsuff=
12679 ;;
12680 *)
12681 case $LD in # libtool.m4 will add one of these switches to LD
12682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12683 libsuff= shlibsuff= libmagic=32-bit;;
12684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12685 libsuff=32 shlibsuff=N32 libmagic=N32;;
12686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12687 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12688 *) libsuff= shlibsuff= libmagic=never-match;;
12689 esac
12690 ;;
12691 esac
12692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12693 shlibpath_overrides_runpath=no
12694 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12695 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12696 hardcode_into_libs=yes
12697 ;;
12698
12699 # No shared lib support for Linux oldld, aout, or coff.
12700 linux*oldld* | linux*aout* | linux*coff*)
12701 dynamic_linker=no
12702 ;;
12703
12704 linux*android*)
12705 version_type=none # Android doesn't support versioned libraries.
12706 need_lib_prefix=no
12707 need_version=no
12708 library_names_spec='$libname$release$shared_ext'
12709 soname_spec='$libname$release$shared_ext'
12710 finish_cmds=
12711 shlibpath_var=LD_LIBRARY_PATH
12712 shlibpath_overrides_runpath=yes
12713
12714 # This implies no fast_install, which is unacceptable.
12715 # Some rework will be needed to allow for fast_install
12716 # before this can be enabled.
12717 hardcode_into_libs=yes
12718
12719 dynamic_linker='Android linker'
12720 # Don't embed -rpath directories since the linker doesn't support them.
12721 hardcode_libdir_flag_spec='-L$libdir'
12722 ;;
12723
12724 # This must be glibc/ELF.
12725 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12726 version_type=linux # correct to gnu/linux during the next big refactor
12727 need_lib_prefix=no
12728 need_version=no
12729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12730 soname_spec='$libname$release$shared_ext$major'
12731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12732 shlibpath_var=LD_LIBRARY_PATH
12733 shlibpath_overrides_runpath=no
12734
12735 # Some binutils ld are patched to set DT_RUNPATH
12736 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 lt_cv_shlibpath_overrides_runpath=no
12740 save_LDFLAGS=$LDFLAGS
12741 save_libdir=$libdir
12742 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12743 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12746
12747 int
12748 main ()
12749 {
12750
12751 ;
12752 return 0;
12753 }
12754 _ACEOF
12755 if ac_fn_c_try_link "$LINENO"; then :
12756 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12757 lt_cv_shlibpath_overrides_runpath=yes
12758 fi
12759 fi
12760 rm -f core conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext conftest.$ac_ext
12762 LDFLAGS=$save_LDFLAGS
12763 libdir=$save_libdir
12764
12765 fi
12766
12767 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12768
12769 # This implies no fast_install, which is unacceptable.
12770 # Some rework will be needed to allow for fast_install
12771 # before this can be enabled.
12772 hardcode_into_libs=yes
12773
12774 # Ideally, we could use ldconfig to report *all* directores which are
12775 # searched for libraries, however this is still not possible. Aside from not
12776 # being certain /sbin/ldconfig is available, command
12777 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12778 # even though it is searched at run-time. Try to do the best guess by
12779 # appending ld.so.conf contents (and includes) to the search path.
12780 if test -f /etc/ld.so.conf; then
12781 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' ' '`
12782 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12783 fi
12784
12785 # We used to test for /lib/ld.so.1 and disable shared libraries on
12786 # powerpc, because MkLinux only supported shared libraries with the
12787 # GNU dynamic linker. Since this was broken with cross compilers,
12788 # most powerpc-linux boxes support dynamic linking these days and
12789 # people can always --disable-shared, the test was removed, and we
12790 # assume the GNU/Linux dynamic linker is in use.
12791 dynamic_linker='GNU/Linux ld.so'
12792 ;;
12793
12794 netbsdelf*-gnu)
12795 version_type=linux
12796 need_lib_prefix=no
12797 need_version=no
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 shlibpath_overrides_runpath=no
12802 hardcode_into_libs=yes
12803 dynamic_linker='NetBSD ld.elf_so'
12804 ;;
12805
12806 netbsd*)
12807 version_type=sunos
12808 need_lib_prefix=no
12809 need_version=no
12810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12811 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12813 dynamic_linker='NetBSD (a.out) ld.so'
12814 else
12815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12816 soname_spec='$libname$release$shared_ext$major'
12817 dynamic_linker='NetBSD ld.elf_so'
12818 fi
12819 shlibpath_var=LD_LIBRARY_PATH
12820 shlibpath_overrides_runpath=yes
12821 hardcode_into_libs=yes
12822 ;;
12823
12824 newsos6)
12825 version_type=linux # correct to gnu/linux during the next big refactor
12826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12827 shlibpath_var=LD_LIBRARY_PATH
12828 shlibpath_overrides_runpath=yes
12829 ;;
12830
12831 *nto* | *qnx*)
12832 version_type=qnx
12833 need_lib_prefix=no
12834 need_version=no
12835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12836 soname_spec='$libname$release$shared_ext$major'
12837 shlibpath_var=LD_LIBRARY_PATH
12838 shlibpath_overrides_runpath=no
12839 hardcode_into_libs=yes
12840 dynamic_linker='ldqnx.so'
12841 ;;
12842
12843 openbsd* | bitrig*)
12844 version_type=sunos
12845 sys_lib_dlsearch_path_spec=/usr/lib
12846 need_lib_prefix=no
12847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12848 need_version=no
12849 else
12850 need_version=yes
12851 fi
12852 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12854 shlibpath_var=LD_LIBRARY_PATH
12855 shlibpath_overrides_runpath=yes
12856 ;;
12857
12858 os2*)
12859 libname_spec='$name'
12860 version_type=windows
12861 shrext_cmds=.dll
12862 need_version=no
12863 need_lib_prefix=no
12864 # OS/2 can only load a DLL with a base name of 8 characters or less.
12865 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12866 v=$($ECHO $release$versuffix | tr -d .-);
12867 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12868 $ECHO $n$v`$shared_ext'
12869 library_names_spec='${libname}_dll.$libext'
12870 dynamic_linker='OS/2 ld.exe'
12871 shlibpath_var=BEGINLIBPATH
12872 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12874 postinstall_cmds='base_file=`basename \$file`~
12875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12876 dldir=$destdir/`dirname \$dlpath`~
12877 test -d \$dldir || mkdir -p \$dldir~
12878 $install_prog $dir/$dlname \$dldir/$dlname~
12879 chmod a+x \$dldir/$dlname~
12880 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12881 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12882 fi'
12883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12884 dlpath=$dir/\$dldll~
12885 $RM \$dlpath'
12886 ;;
12887
12888 osf3* | osf4* | osf5*)
12889 version_type=osf
12890 need_lib_prefix=no
12891 need_version=no
12892 soname_spec='$libname$release$shared_ext$major'
12893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12894 shlibpath_var=LD_LIBRARY_PATH
12895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12897 ;;
12898
12899 rdos*)
12900 dynamic_linker=no
12901 ;;
12902
12903 solaris*)
12904 version_type=linux # correct to gnu/linux during the next big refactor
12905 need_lib_prefix=no
12906 need_version=no
12907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12908 soname_spec='$libname$release$shared_ext$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 shlibpath_overrides_runpath=yes
12911 hardcode_into_libs=yes
12912 # ldd complains unless libraries are executable
12913 postinstall_cmds='chmod +x $lib'
12914 ;;
12915
12916 sunos4*)
12917 version_type=sunos
12918 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 shlibpath_overrides_runpath=yes
12922 if test yes = "$with_gnu_ld"; then
12923 need_lib_prefix=no
12924 fi
12925 need_version=yes
12926 ;;
12927
12928 sysv4 | sysv4.3*)
12929 version_type=linux # correct to gnu/linux during the next big refactor
12930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12931 soname_spec='$libname$release$shared_ext$major'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 case $host_vendor in
12934 sni)
12935 shlibpath_overrides_runpath=no
12936 need_lib_prefix=no
12937 runpath_var=LD_RUN_PATH
12938 ;;
12939 siemens)
12940 need_lib_prefix=no
12941 ;;
12942 motorola)
12943 need_lib_prefix=no
12944 need_version=no
12945 shlibpath_overrides_runpath=no
12946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12947 ;;
12948 esac
12949 ;;
12950
12951 sysv4*MP*)
12952 if test -d /usr/nec; then
12953 version_type=linux # correct to gnu/linux during the next big refactor
12954 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12955 soname_spec='$libname$shared_ext.$major'
12956 shlibpath_var=LD_LIBRARY_PATH
12957 fi
12958 ;;
12959
12960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12961 version_type=sco
12962 need_lib_prefix=no
12963 need_version=no
12964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12965 soname_spec='$libname$release$shared_ext$major'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 shlibpath_overrides_runpath=yes
12968 hardcode_into_libs=yes
12969 if test yes = "$with_gnu_ld"; then
12970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12971 else
12972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12973 case $host_os in
12974 sco3.2v5*)
12975 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12976 ;;
12977 esac
12978 fi
12979 sys_lib_dlsearch_path_spec='/usr/lib'
12980 ;;
12981
12982 tpf*)
12983 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12984 version_type=linux # correct to gnu/linux during the next big refactor
12985 need_lib_prefix=no
12986 need_version=no
12987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12988 shlibpath_var=LD_LIBRARY_PATH
12989 shlibpath_overrides_runpath=no
12990 hardcode_into_libs=yes
12991 ;;
12992
12993 uts4*)
12994 version_type=linux # correct to gnu/linux during the next big refactor
12995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12996 soname_spec='$libname$release$shared_ext$major'
12997 shlibpath_var=LD_LIBRARY_PATH
12998 ;;
12999
13000 *)
13001 dynamic_linker=no
13002 ;;
13003 esac
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13005 $as_echo "$dynamic_linker" >&6; }
13006 test no = "$dynamic_linker" && can_build_shared=no
13007
13008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13009 if test yes = "$GCC"; then
13010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13011 fi
13012
13013 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13014 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13015 fi
13016
13017 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13018 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13019 fi
13020
13021 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13022 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13023
13024 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13025 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13026
13027 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13028 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13127 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13128 hardcode_action=
13129 if test -n "$hardcode_libdir_flag_spec" ||
13130 test -n "$runpath_var" ||
13131 test yes = "$hardcode_automatic"; then
13132
13133 # We can hardcode non-existent directories.
13134 if test no != "$hardcode_direct" &&
13135 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13136 # have to relink, otherwise we might link with an installed library
13137 # when we should be linking with a yet-to-be-installed one
13138 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13139 test no != "$hardcode_minus_L"; then
13140 # Linking always hardcodes the temporary library directory.
13141 hardcode_action=relink
13142 else
13143 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13144 hardcode_action=immediate
13145 fi
13146 else
13147 # We cannot hardcode anything, or else we can only hardcode existing
13148 # directories.
13149 hardcode_action=unsupported
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13152 $as_echo "$hardcode_action" >&6; }
13153
13154 if test relink = "$hardcode_action" ||
13155 test yes = "$inherit_rpath"; then
13156 # Fast installation is not supported
13157 enable_fast_install=no
13158 elif test yes = "$shlibpath_overrides_runpath" ||
13159 test no = "$enable_shared"; then
13160 # Fast installation is not necessary
13161 enable_fast_install=needless
13162 fi
13163
13164
13165
13166
13167
13168
13169 if test yes != "$enable_dlopen"; then
13170 enable_dlopen=unknown
13171 enable_dlopen_self=unknown
13172 enable_dlopen_self_static=unknown
13173 else
13174 lt_cv_dlopen=no
13175 lt_cv_dlopen_libs=
13176
13177 case $host_os in
13178 beos*)
13179 lt_cv_dlopen=load_add_on
13180 lt_cv_dlopen_libs=
13181 lt_cv_dlopen_self=yes
13182 ;;
13183
13184 mingw* | pw32* | cegcc*)
13185 lt_cv_dlopen=LoadLibrary
13186 lt_cv_dlopen_libs=
13187 ;;
13188
13189 cygwin*)
13190 lt_cv_dlopen=dlopen
13191 lt_cv_dlopen_libs=
13192 ;;
13193
13194 darwin*)
13195 # if libdl is installed we need to link against it
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13197 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13198 if ${ac_cv_lib_dl_dlopen+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 ac_check_lib_save_LIBS=$LIBS
13202 LIBS="-ldl $LIBS"
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13205
13206 /* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13209 #ifdef __cplusplus
13210 extern "C"
13211 #endif
13212 char dlopen ();
13213 int
13214 main ()
13215 {
13216 return dlopen ();
13217 ;
13218 return 0;
13219 }
13220 _ACEOF
13221 if ac_fn_c_try_link "$LINENO"; then :
13222 ac_cv_lib_dl_dlopen=yes
13223 else
13224 ac_cv_lib_dl_dlopen=no
13225 fi
13226 rm -f core conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext conftest.$ac_ext
13228 LIBS=$ac_check_lib_save_LIBS
13229 fi
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13231 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13232 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13233 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13234 else
13235
13236 lt_cv_dlopen=dyld
13237 lt_cv_dlopen_libs=
13238 lt_cv_dlopen_self=yes
13239
13240 fi
13241
13242 ;;
13243
13244 tpf*)
13245 # Don't try to run any link tests for TPF. We know it's impossible
13246 # because TPF is a cross-compiler, and we know how we open DSOs.
13247 lt_cv_dlopen=dlopen
13248 lt_cv_dlopen_libs=
13249 lt_cv_dlopen_self=no
13250 ;;
13251
13252 *)
13253 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13254 if test "x$ac_cv_func_shl_load" = xyes; then :
13255 lt_cv_dlopen=shl_load
13256 else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13258 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13259 if ${ac_cv_lib_dld_shl_load+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 ac_check_lib_save_LIBS=$LIBS
13263 LIBS="-ldld $LIBS"
13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h. */
13266
13267 /* Override any GCC internal prototype to avoid an error.
13268 Use char because int might match the return type of a GCC
13269 builtin and then its argument prototype would still apply. */
13270 #ifdef __cplusplus
13271 extern "C"
13272 #endif
13273 char shl_load ();
13274 int
13275 main ()
13276 {
13277 return shl_load ();
13278 ;
13279 return 0;
13280 }
13281 _ACEOF
13282 if ac_fn_c_try_link "$LINENO"; then :
13283 ac_cv_lib_dld_shl_load=yes
13284 else
13285 ac_cv_lib_dld_shl_load=no
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289 LIBS=$ac_check_lib_save_LIBS
13290 fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13292 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13293 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13294 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13295 else
13296 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13297 if test "x$ac_cv_func_dlopen" = xyes; then :
13298 lt_cv_dlopen=dlopen
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13302 if ${ac_cv_lib_dl_dlopen+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 ac_check_lib_save_LIBS=$LIBS
13306 LIBS="-ldl $LIBS"
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309
13310 /* Override any GCC internal prototype to avoid an error.
13311 Use char because int might match the return type of a GCC
13312 builtin and then its argument prototype would still apply. */
13313 #ifdef __cplusplus
13314 extern "C"
13315 #endif
13316 char dlopen ();
13317 int
13318 main ()
13319 {
13320 return dlopen ();
13321 ;
13322 return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"; then :
13326 ac_cv_lib_dl_dlopen=yes
13327 else
13328 ac_cv_lib_dl_dlopen=no
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext \
13331 conftest$ac_exeext conftest.$ac_ext
13332 LIBS=$ac_check_lib_save_LIBS
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13335 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13336 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13337 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13338 else
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13340 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13341 if ${ac_cv_lib_svld_dlopen+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 ac_check_lib_save_LIBS=$LIBS
13345 LIBS="-lsvld $LIBS"
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348
13349 /* Override any GCC internal prototype to avoid an error.
13350 Use char because int might match the return type of a GCC
13351 builtin and then its argument prototype would still apply. */
13352 #ifdef __cplusplus
13353 extern "C"
13354 #endif
13355 char dlopen ();
13356 int
13357 main ()
13358 {
13359 return dlopen ();
13360 ;
13361 return 0;
13362 }
13363 _ACEOF
13364 if ac_fn_c_try_link "$LINENO"; then :
13365 ac_cv_lib_svld_dlopen=yes
13366 else
13367 ac_cv_lib_svld_dlopen=no
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13371 LIBS=$ac_check_lib_save_LIBS
13372 fi
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13374 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13375 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13376 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13377 else
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13379 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13380 if ${ac_cv_lib_dld_dld_link+:} false; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 ac_check_lib_save_LIBS=$LIBS
13384 LIBS="-ldld $LIBS"
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387
13388 /* Override any GCC internal prototype to avoid an error.
13389 Use char because int might match the return type of a GCC
13390 builtin and then its argument prototype would still apply. */
13391 #ifdef __cplusplus
13392 extern "C"
13393 #endif
13394 char dld_link ();
13395 int
13396 main ()
13397 {
13398 return dld_link ();
13399 ;
13400 return 0;
13401 }
13402 _ACEOF
13403 if ac_fn_c_try_link "$LINENO"; then :
13404 ac_cv_lib_dld_dld_link=yes
13405 else
13406 ac_cv_lib_dld_dld_link=no
13407 fi
13408 rm -f core conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13410 LIBS=$ac_check_lib_save_LIBS
13411 fi
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13413 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13414 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13415 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13416 fi
13417
13418
13419 fi
13420
13421
13422 fi
13423
13424
13425 fi
13426
13427
13428 fi
13429
13430
13431 fi
13432
13433 ;;
13434 esac
13435
13436 if test no = "$lt_cv_dlopen"; then
13437 enable_dlopen=no
13438 else
13439 enable_dlopen=yes
13440 fi
13441
13442 case $lt_cv_dlopen in
13443 dlopen)
13444 save_CPPFLAGS=$CPPFLAGS
13445 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13446
13447 save_LDFLAGS=$LDFLAGS
13448 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13449
13450 save_LIBS=$LIBS
13451 LIBS="$lt_cv_dlopen_libs $LIBS"
13452
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13454 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13455 if ${lt_cv_dlopen_self+:} false; then :
13456 $as_echo_n "(cached) " >&6
13457 else
13458 if test yes = "$cross_compiling"; then :
13459 lt_cv_dlopen_self=cross
13460 else
13461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13462 lt_status=$lt_dlunknown
13463 cat > conftest.$ac_ext <<_LT_EOF
13464 #line $LINENO "configure"
13465 #include "confdefs.h"
13466
13467 #if HAVE_DLFCN_H
13468 #include <dlfcn.h>
13469 #endif
13470
13471 #include <stdio.h>
13472
13473 #ifdef RTLD_GLOBAL
13474 # define LT_DLGLOBAL RTLD_GLOBAL
13475 #else
13476 # ifdef DL_GLOBAL
13477 # define LT_DLGLOBAL DL_GLOBAL
13478 # else
13479 # define LT_DLGLOBAL 0
13480 # endif
13481 #endif
13482
13483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13484 find out it does not work in some platform. */
13485 #ifndef LT_DLLAZY_OR_NOW
13486 # ifdef RTLD_LAZY
13487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13488 # else
13489 # ifdef DL_LAZY
13490 # define LT_DLLAZY_OR_NOW DL_LAZY
13491 # else
13492 # ifdef RTLD_NOW
13493 # define LT_DLLAZY_OR_NOW RTLD_NOW
13494 # else
13495 # ifdef DL_NOW
13496 # define LT_DLLAZY_OR_NOW DL_NOW
13497 # else
13498 # define LT_DLLAZY_OR_NOW 0
13499 # endif
13500 # endif
13501 # endif
13502 # endif
13503 #endif
13504
13505 /* When -fvisibility=hidden is used, assume the code has been annotated
13506 correspondingly for the symbols needed. */
13507 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13508 int fnord () __attribute__((visibility("default")));
13509 #endif
13510
13511 int fnord () { return 42; }
13512 int main ()
13513 {
13514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13515 int status = $lt_dlunknown;
13516
13517 if (self)
13518 {
13519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13520 else
13521 {
13522 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13523 else puts (dlerror ());
13524 }
13525 /* dlclose (self); */
13526 }
13527 else
13528 puts (dlerror ());
13529
13530 return status;
13531 }
13532 _LT_EOF
13533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13534 (eval $ac_link) 2>&5
13535 ac_status=$?
13536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13537 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13538 (./conftest; exit; ) >&5 2>/dev/null
13539 lt_status=$?
13540 case x$lt_status in
13541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13543 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13544 esac
13545 else :
13546 # compilation failed
13547 lt_cv_dlopen_self=no
13548 fi
13549 fi
13550 rm -fr conftest*
13551
13552
13553 fi
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13555 $as_echo "$lt_cv_dlopen_self" >&6; }
13556
13557 if test yes = "$lt_cv_dlopen_self"; then
13558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13560 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13561 if ${lt_cv_dlopen_self_static+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 if test yes = "$cross_compiling"; then :
13565 lt_cv_dlopen_self_static=cross
13566 else
13567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13568 lt_status=$lt_dlunknown
13569 cat > conftest.$ac_ext <<_LT_EOF
13570 #line $LINENO "configure"
13571 #include "confdefs.h"
13572
13573 #if HAVE_DLFCN_H
13574 #include <dlfcn.h>
13575 #endif
13576
13577 #include <stdio.h>
13578
13579 #ifdef RTLD_GLOBAL
13580 # define LT_DLGLOBAL RTLD_GLOBAL
13581 #else
13582 # ifdef DL_GLOBAL
13583 # define LT_DLGLOBAL DL_GLOBAL
13584 # else
13585 # define LT_DLGLOBAL 0
13586 # endif
13587 #endif
13588
13589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13590 find out it does not work in some platform. */
13591 #ifndef LT_DLLAZY_OR_NOW
13592 # ifdef RTLD_LAZY
13593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13594 # else
13595 # ifdef DL_LAZY
13596 # define LT_DLLAZY_OR_NOW DL_LAZY
13597 # else
13598 # ifdef RTLD_NOW
13599 # define LT_DLLAZY_OR_NOW RTLD_NOW
13600 # else
13601 # ifdef DL_NOW
13602 # define LT_DLLAZY_OR_NOW DL_NOW
13603 # else
13604 # define LT_DLLAZY_OR_NOW 0
13605 # endif
13606 # endif
13607 # endif
13608 # endif
13609 #endif
13610
13611 /* When -fvisibility=hidden is used, assume the code has been annotated
13612 correspondingly for the symbols needed. */
13613 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13614 int fnord () __attribute__((visibility("default")));
13615 #endif
13616
13617 int fnord () { return 42; }
13618 int main ()
13619 {
13620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13621 int status = $lt_dlunknown;
13622
13623 if (self)
13624 {
13625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13626 else
13627 {
13628 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13629 else puts (dlerror ());
13630 }
13631 /* dlclose (self); */
13632 }
13633 else
13634 puts (dlerror ());
13635
13636 return status;
13637 }
13638 _LT_EOF
13639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13640 (eval $ac_link) 2>&5
13641 ac_status=$?
13642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13643 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13644 (./conftest; exit; ) >&5 2>/dev/null
13645 lt_status=$?
13646 case x$lt_status in
13647 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13648 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13649 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13650 esac
13651 else :
13652 # compilation failed
13653 lt_cv_dlopen_self_static=no
13654 fi
13655 fi
13656 rm -fr conftest*
13657
13658
13659 fi
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13661 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13662 fi
13663
13664 CPPFLAGS=$save_CPPFLAGS
13665 LDFLAGS=$save_LDFLAGS
13666 LIBS=$save_LIBS
13667 ;;
13668 esac
13669
13670 case $lt_cv_dlopen_self in
13671 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13672 *) enable_dlopen_self=unknown ;;
13673 esac
13674
13675 case $lt_cv_dlopen_self_static in
13676 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13677 *) enable_dlopen_self_static=unknown ;;
13678 esac
13679 fi
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697 striplib=
13698 old_striplib=
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13700 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13701 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13702 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13703 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13705 $as_echo "yes" >&6; }
13706 else
13707 # FIXME - insert some real tests, host_os isn't really good enough
13708 case $host_os in
13709 darwin*)
13710 if test -n "$STRIP"; then
13711 striplib="$STRIP -x"
13712 old_striplib="$STRIP -S"
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13714 $as_echo "yes" >&6; }
13715 else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 $as_echo "no" >&6; }
13718 fi
13719 ;;
13720 *)
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 $as_echo "no" >&6; }
13723 ;;
13724 esac
13725 fi
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738 # Report what library types will actually be built
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13740 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13742 $as_echo "$can_build_shared" >&6; }
13743
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13745 $as_echo_n "checking whether to build shared libraries... " >&6; }
13746 test no = "$can_build_shared" && enable_shared=no
13747
13748 # On AIX, shared libraries and static libraries use the same namespace, and
13749 # are all built from PIC.
13750 case $host_os in
13751 aix3*)
13752 test yes = "$enable_shared" && enable_static=no
13753 if test -n "$RANLIB"; then
13754 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13755 postinstall_cmds='$RANLIB $lib'
13756 fi
13757 ;;
13758
13759 aix[4-9]*)
13760 if test ia64 != "$host_cpu"; then
13761 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13762 yes,aix,yes) ;; # shared object as lib.so file only
13763 yes,svr4,*) ;; # shared object as lib.so archive member only
13764 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13765 esac
13766 fi
13767 ;;
13768 esac
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13770 $as_echo "$enable_shared" >&6; }
13771
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13773 $as_echo_n "checking whether to build static libraries... " >&6; }
13774 # Make sure either enable_shared or enable_static is yes.
13775 test yes = "$enable_shared" || enable_static=yes
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13777 $as_echo "$enable_static" >&6; }
13778
13779
13780
13781
13782 fi
13783 ac_ext=c
13784 ac_cpp='$CPP $CPPFLAGS'
13785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13788
13789 CC=$lt_save_CC
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805 ac_config_commands="$ac_config_commands libtool"
13806
13807
13808
13809
13810 # Only expand once:
13811
13812
13813 if test -n "$ac_tool_prefix"; then
13814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if ${ac_cv_prog_RANLIB+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -n "$RANLIB"; then
13822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 RANLIB=$ac_cv_prog_RANLIB
13842 if test -n "$RANLIB"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13844 $as_echo "$RANLIB" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850
13851 fi
13852 if test -z "$ac_cv_prog_RANLIB"; then
13853 ac_ct_RANLIB=$RANLIB
13854 # Extract the first word of "ranlib", so it can be a program name with args.
13855 set dummy ranlib; ac_word=$2
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13857 $as_echo_n "checking for $ac_word... " >&6; }
13858 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861 if test -n "$ac_ct_RANLIB"; then
13862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13863 else
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13866 do
13867 IFS=$as_save_IFS
13868 test -z "$as_dir" && as_dir=.
13869 for ac_exec_ext in '' $ac_executable_extensions; do
13870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13871 ac_cv_prog_ac_ct_RANLIB="ranlib"
13872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13873 break 2
13874 fi
13875 done
13876 done
13877 IFS=$as_save_IFS
13878
13879 fi
13880 fi
13881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13882 if test -n "$ac_ct_RANLIB"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13884 $as_echo "$ac_ct_RANLIB" >&6; }
13885 else
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13888 fi
13889
13890 if test "x$ac_ct_RANLIB" = x; then
13891 RANLIB=":"
13892 else
13893 case $cross_compiling:$ac_tool_warned in
13894 yes:)
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13897 ac_tool_warned=yes ;;
13898 esac
13899 RANLIB=$ac_ct_RANLIB
13900 fi
13901 else
13902 RANLIB="$ac_cv_prog_RANLIB"
13903 fi
13904
13905
13906 # Extract the first word of "ocamlbuild", so it can be a program name with args.
13907 set dummy ocamlbuild; ac_word=$2
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13909 $as_echo_n "checking for $ac_word... " >&6; }
13910 if ${ac_cv_prog_OCAMLBUILD+:} false; then :
13911 $as_echo_n "(cached) " >&6
13912 else
13913 if test -n "$OCAMLBUILD"; then
13914 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
13915 else
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13918 do
13919 IFS=$as_save_IFS
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
13922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13923 ac_cv_prog_OCAMLBUILD="ocamlbuild"
13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 break 2
13926 fi
13927 done
13928 done
13929 IFS=$as_save_IFS
13930
13931 fi
13932 fi
13933 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
13934 if test -n "$OCAMLBUILD"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
13936 $as_echo "$OCAMLBUILD" >&6; }
13937 else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939 $as_echo "no" >&6; }
13940 fi
13941
13942
13943
13944
13945 # Check whether --enable-mpi was given.
13946 if test "${enable_mpi+set}" = set; then :
13947 enableval=$enable_mpi; enable_mpi=$enableval
13948 else
13949 enable_mpi=no
13950 fi
13951
13952
13953 if test "$enable_mpi" = "yes"; then
13954 if test $PRECISION = q; then
13955 as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5
13956 fi
13957
13958
13959
13960
13961
13962 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc
13963 do
13964 # Extract the first word of "$ac_prog", so it can be a program name with args.
13965 set dummy $ac_prog; ac_word=$2
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13967 $as_echo_n "checking for $ac_word... " >&6; }
13968 if ${ac_cv_prog_MPICC+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 if test -n "$MPICC"; then
13972 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
13973 else
13974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975 for as_dir in $PATH
13976 do
13977 IFS=$as_save_IFS
13978 test -z "$as_dir" && as_dir=.
13979 for ac_exec_ext in '' $ac_executable_extensions; do
13980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13981 ac_cv_prog_MPICC="$ac_prog"
13982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13983 break 2
13984 fi
13985 done
13986 done
13987 IFS=$as_save_IFS
13988
13989 fi
13990 fi
13991 MPICC=$ac_cv_prog_MPICC
13992 if test -n "$MPICC"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
13994 $as_echo "$MPICC" >&6; }
13995 else
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13997 $as_echo "no" >&6; }
13998 fi
13999
14000
14001 test -n "$MPICC" && break
14002 done
14003 test -n "$MPICC" || MPICC="$CC"
14004
14005 acx_mpi_save_CC="$CC"
14006 CC="$MPICC"
14007
14008
14009
14010 if test x = x"$MPILIBS"; then
14011 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
14012 if test "x$ac_cv_func_MPI_Init" = xyes; then :
14013 MPILIBS=" "
14014 fi
14015
14016 fi
14017 if test x = x"$MPILIBS"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
14019 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
14020 if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
14021 $as_echo_n "(cached) " >&6
14022 else
14023 ac_check_lib_save_LIBS=$LIBS
14024 LIBS="-lmpi $LIBS"
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14031 #ifdef __cplusplus
14032 extern "C"
14033 #endif
14034 char MPI_Init ();
14035 int
14036 main ()
14037 {
14038 return MPI_Init ();
14039 ;
14040 return 0;
14041 }
14042 _ACEOF
14043 if ac_fn_c_try_link "$LINENO"; then :
14044 ac_cv_lib_mpi_MPI_Init=yes
14045 else
14046 ac_cv_lib_mpi_MPI_Init=no
14047 fi
14048 rm -f core conftest.err conftest.$ac_objext \
14049 conftest$ac_exeext conftest.$ac_ext
14050 LIBS=$ac_check_lib_save_LIBS
14051 fi
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
14053 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
14054 if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
14055 MPILIBS="-lmpi"
14056 fi
14057
14058 fi
14059 if test x = x"$MPILIBS"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
14061 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
14062 if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065 ac_check_lib_save_LIBS=$LIBS
14066 LIBS="-lmpich $LIBS"
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14069
14070 /* Override any GCC internal prototype to avoid an error.
14071 Use char because int might match the return type of a GCC
14072 builtin and then its argument prototype would still apply. */
14073 #ifdef __cplusplus
14074 extern "C"
14075 #endif
14076 char MPI_Init ();
14077 int
14078 main ()
14079 {
14080 return MPI_Init ();
14081 ;
14082 return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_c_try_link "$LINENO"; then :
14086 ac_cv_lib_mpich_MPI_Init=yes
14087 else
14088 ac_cv_lib_mpich_MPI_Init=no
14089 fi
14090 rm -f core conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14093 fi
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
14095 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
14096 if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
14097 MPILIBS="-lmpich"
14098 fi
14099
14100 fi
14101
14102 if test x != x"$MPILIBS"; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
14104 $as_echo_n "checking for mpi.h... " >&6; }
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107 #include <mpi.h>
14108 int
14109 main ()
14110 {
14111
14112 ;
14113 return 0;
14114 }
14115 _ACEOF
14116 if ac_fn_c_try_compile "$LINENO"; then :
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14118 $as_echo "yes" >&6; }
14119 else
14120 MPILIBS=""
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14122 $as_echo "no" >&6; }
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 fi
14126
14127 CC="$acx_mpi_save_CC"
14128
14129
14130
14131 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14132 if test x = x"$MPILIBS"; then
14133 as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5
14134 :
14135 else
14136
14137 $as_echo "#define HAVE_MPI 1" >>confdefs.h
14138
14139 :
14140 fi
14141
14142 # Extract the first word of "mpirun", so it can be a program name with args.
14143 set dummy mpirun; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if ${ac_cv_prog_MPIRUN+:} false; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 if test -n "$MPIRUN"; then
14150 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14154 do
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14159 ac_cv_prog_MPIRUN="mpirun"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 break 2
14162 fi
14163 done
14164 done
14165 IFS=$as_save_IFS
14166
14167 fi
14168 fi
14169 MPIRUN=$ac_cv_prog_MPIRUN
14170 if test -n "$MPIRUN"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5
14172 $as_echo "$MPIRUN" >&6; }
14173 else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14176 fi
14177
14178
14179
14180
14181 save_CC=$CC
14182 CC=$MPICC
14183 # The cast to long int works around a bug in the HP C Compiler
14184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14186 # This bug is HP SR number 8606223364.
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5
14188 $as_echo_n "checking size of MPI_Fint... " >&6; }
14189 if ${ac_cv_sizeof_MPI_Fint+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint" "#include <mpi.h>
14193 "; then :
14194
14195 else
14196 if test "$ac_cv_type_MPI_Fint" = yes; then
14197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14199 as_fn_error 77 "cannot compute sizeof (MPI_Fint)
14200 See \`config.log' for more details" "$LINENO" 5; }
14201 else
14202 ac_cv_sizeof_MPI_Fint=0
14203 fi
14204 fi
14205
14206 fi
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5
14208 $as_echo "$ac_cv_sizeof_MPI_Fint" >&6; }
14209
14210
14211
14212 cat >>confdefs.h <<_ACEOF
14213 #define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint
14214 _ACEOF
14215
14216
14217 CC=$save_CC
14218 if test 0 = $ac_cv_sizeof_MPI_Fint; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5
14220 $as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;};
14221 # The cast to long int works around a bug in the HP C Compiler
14222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14224 # This bug is HP SR number 8606223364.
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14226 $as_echo_n "checking size of int... " >&6; }
14227 if ${ac_cv_sizeof_int+:} false; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14231
14232 else
14233 if test "$ac_cv_type_int" = yes; then
14234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14236 as_fn_error 77 "cannot compute sizeof (int)
14237 See \`config.log' for more details" "$LINENO" 5; }
14238 else
14239 ac_cv_sizeof_int=0
14240 fi
14241 fi
14242
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14245 $as_echo "$ac_cv_sizeof_int" >&6; }
14246
14247
14248
14249 cat >>confdefs.h <<_ACEOF
14250 #define SIZEOF_INT $ac_cv_sizeof_int
14251 _ACEOF
14252
14253
14254 if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi
14255 ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int
14256 fi
14257 C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T
14258
14259 fi
14260 if test "$enable_mpi" = "yes"; then
14261 MPI_TRUE=
14262 MPI_FALSE='#'
14263 else
14264 MPI_TRUE='#'
14265 MPI_FALSE=
14266 fi
14267
14268
14269
14270
14271
14272
14273
14274
14275 # Try to determine "good" native compiler flags if none specified via CFLAGS
14276 if test "$ac_test_CFLAGS" != "set"; then
14277 CFLAGS=""
14278 case $ax_cv_c_compiler_vendor in
14279 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
14280 ;;
14281
14282 sun) CFLAGS="-native -fast -xO5 -dalign"
14283 ;;
14284
14285 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
14286 ;;
14287
14288 ibm) xlc_opt="-qarch=auto -qtune=auto"
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
14290 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
14291 ax_save_FLAGS=$CFLAGS
14292 CFLAGS="$xlc_opt"
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295
14296 int
14297 main ()
14298 {
14299
14300 ;
14301 return 0;
14302 }
14303 _ACEOF
14304 if ac_fn_c_try_compile "$LINENO"; then :
14305 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
14306 else
14307 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
14308 fi
14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310 CFLAGS=$ax_save_FLAGS
14311 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14313 $as_echo "$ax_check_compiler_flags" >&6; }
14314 if test "x$ax_check_compiler_flags" = xyes; then
14315 CFLAGS="-O3 -qalias=ansi -w $xlc_opt"
14316 else
14317 CFLAGS="-O3 -qalias=ansi -w"
14318 fi
14319
14320 ;;
14321
14322 intel) CFLAGS="-O3"
14323 # Intel seems to have changed the spelling of this flag recently
14324 icc_ansi_alias="unknown"
14325 for flag in -ansi-alias -ansi_alias; do
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14327 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14328 ax_save_FLAGS=$CFLAGS
14329 CFLAGS="$flag"
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332
14333 int
14334 main ()
14335 {
14336
14337 ;
14338 return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_compile "$LINENO"; then :
14342 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
14343 else
14344 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
14345 fi
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 CFLAGS=$ax_save_FLAGS
14348 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14350 $as_echo "$ax_check_compiler_flags" >&6; }
14351 if test "x$ax_check_compiler_flags" = xyes; then
14352 icc_ansi_alias=$flag; break
14353 else
14354 :
14355 fi
14356
14357 done
14358 if test "x$icc_ansi_alias" != xunknown; then
14359 CFLAGS="$CFLAGS $icc_ansi_alias"
14360 fi
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
14362 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
14363 if ${ax_cv_c_flags__malign_double+:} false; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366
14367 ax_save_FLAGS=$CFLAGS
14368 CFLAGS="-malign-double"
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371
14372 int
14373 main ()
14374 {
14375
14376 ;
14377 return 0;
14378 }
14379 _ACEOF
14380 if ac_fn_c_try_compile "$LINENO"; then :
14381 ax_cv_c_flags__malign_double=yes
14382 else
14383 ax_cv_c_flags__malign_double=no
14384 fi
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 CFLAGS=$ax_save_FLAGS
14387 fi
14388
14389 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14391 $as_echo "$ax_check_compiler_flags" >&6; }
14392 if test "x$ax_check_compiler_flags" = xyes; then
14393 CFLAGS="$CFLAGS -malign-double"
14394 else
14395 :
14396 fi
14397
14398 # We used to check for architecture flags here, e.g. -xHost etc.,
14399 # but these flags are problematic. On icc-12.0.0, "-mavx -xHost"
14400 # overrides -mavx with -xHost, generating SSE2 code instead of AVX
14401 # code. ICC does not seem to support -mtune=host or equivalent
14402 # non-ABI changing flag.
14403 ;;
14404
14405 clang)
14406 CFLAGS="-O3 -fomit-frame-pointer"
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
14408 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
14409 if ${ax_cv_c_flags__mtune_native+:} false; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412
14413 ax_save_FLAGS=$CFLAGS
14414 CFLAGS="-mtune=native"
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14417
14418 int
14419 main ()
14420 {
14421
14422 ;
14423 return 0;
14424 }
14425 _ACEOF
14426 if ac_fn_c_try_compile "$LINENO"; then :
14427 ax_cv_c_flags__mtune_native=yes
14428 else
14429 ax_cv_c_flags__mtune_native=no
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 CFLAGS=$ax_save_FLAGS
14433 fi
14434
14435 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14437 $as_echo "$ax_check_compiler_flags" >&6; }
14438 if test "x$ax_check_compiler_flags" = xyes; then
14439 CFLAGS="$CFLAGS -mtune=native"
14440 else
14441 :
14442 fi
14443
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
14445 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
14446 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
14447 $as_echo_n "(cached) " >&6
14448 else
14449
14450 ax_save_FLAGS=$CFLAGS
14451 CFLAGS="-fstrict-aliasing"
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454
14455 int
14456 main ()
14457 {
14458
14459 ;
14460 return 0;
14461 }
14462 _ACEOF
14463 if ac_fn_c_try_compile "$LINENO"; then :
14464 ax_cv_c_flags__fstrict_aliasing=yes
14465 else
14466 ax_cv_c_flags__fstrict_aliasing=no
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469 CFLAGS=$ax_save_FLAGS
14470 fi
14471
14472 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14474 $as_echo "$ax_check_compiler_flags" >&6; }
14475 if test "x$ax_check_compiler_flags" = xyes; then
14476 CFLAGS="$CFLAGS -fstrict-aliasing"
14477 else
14478 :
14479 fi
14480
14481 ;;
14482
14483 gnu)
14484 # Default optimization flags for gcc on all systems.
14485 # Somehow -O3 does not imply -fomit-frame-pointer on ia32
14486 CFLAGS="-O3 -fomit-frame-pointer"
14487
14488 # tune for the host by default
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
14490 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
14491 if ${ax_cv_c_flags__mtune_native+:} false; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494
14495 ax_save_FLAGS=$CFLAGS
14496 CFLAGS="-mtune=native"
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499
14500 int
14501 main ()
14502 {
14503
14504 ;
14505 return 0;
14506 }
14507 _ACEOF
14508 if ac_fn_c_try_compile "$LINENO"; then :
14509 ax_cv_c_flags__mtune_native=yes
14510 else
14511 ax_cv_c_flags__mtune_native=no
14512 fi
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 CFLAGS=$ax_save_FLAGS
14515 fi
14516
14517 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14519 $as_echo "$ax_check_compiler_flags" >&6; }
14520 if test "x$ax_check_compiler_flags" = xyes; then
14521 CFLAGS="$CFLAGS -mtune=native"
14522 else
14523 :
14524 fi
14525
14526
14527 # -malign-double for x86 systems
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
14529 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
14530 if ${ax_cv_c_flags__malign_double+:} false; then :
14531 $as_echo_n "(cached) " >&6
14532 else
14533
14534 ax_save_FLAGS=$CFLAGS
14535 CFLAGS="-malign-double"
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538
14539 int
14540 main ()
14541 {
14542
14543 ;
14544 return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_compile "$LINENO"; then :
14548 ax_cv_c_flags__malign_double=yes
14549 else
14550 ax_cv_c_flags__malign_double=no
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 CFLAGS=$ax_save_FLAGS
14554 fi
14555
14556 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14558 $as_echo "$ax_check_compiler_flags" >&6; }
14559 if test "x$ax_check_compiler_flags" = xyes; then
14560 CFLAGS="$CFLAGS -malign-double"
14561 else
14562 :
14563 fi
14564
14565
14566 # -fstrict-aliasing for gcc-2.95+
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
14568 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
14569 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572
14573 ax_save_FLAGS=$CFLAGS
14574 CFLAGS="-fstrict-aliasing"
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577
14578 int
14579 main ()
14580 {
14581
14582 ;
14583 return 0;
14584 }
14585 _ACEOF
14586 if ac_fn_c_try_compile "$LINENO"; then :
14587 ax_cv_c_flags__fstrict_aliasing=yes
14588 else
14589 ax_cv_c_flags__fstrict_aliasing=no
14590 fi
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 CFLAGS=$ax_save_FLAGS
14593 fi
14594
14595 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14597 $as_echo "$ax_check_compiler_flags" >&6; }
14598 if test "x$ax_check_compiler_flags" = xyes; then
14599 CFLAGS="$CFLAGS -fstrict-aliasing"
14600 else
14601 :
14602 fi
14603
14604
14605 # -fno-schedule-insns is pretty much required on all risc
14606 # processors.
14607 #
14608 # gcc performs one pass of instruction scheduling, then a pass of
14609 # register allocation, then another pass of instruction
14610 # scheduling. The first pass reorders instructions in a way that
14611 # is pretty much the worst possible for the purposes of register
14612 # allocation. We disable the first pass.
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5
14614 $as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; }
14615 if ${ax_cv_c_flags__fno_schedule_insns+:} false; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618
14619 ax_save_FLAGS=$CFLAGS
14620 CFLAGS="-fno-schedule-insns"
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623
14624 int
14625 main ()
14626 {
14627
14628 ;
14629 return 0;
14630 }
14631 _ACEOF
14632 if ac_fn_c_try_compile "$LINENO"; then :
14633 ax_cv_c_flags__fno_schedule_insns=yes
14634 else
14635 ax_cv_c_flags__fno_schedule_insns=no
14636 fi
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 CFLAGS=$ax_save_FLAGS
14639 fi
14640
14641 eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14643 $as_echo "$ax_check_compiler_flags" >&6; }
14644 if test "x$ax_check_compiler_flags" = xyes; then
14645 CFLAGS="$CFLAGS -fno-schedule-insns"
14646 else
14647 :
14648 fi
14649
14650
14651 # flags to enable power ISA 2.07 instructions with gcc (always true with vsx)
14652 if test "$have_vsx" = "yes"; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mcpu=power8" >&5
14654 $as_echo_n "checking whether C compiler accepts -mcpu=power8... " >&6; }
14655 if ${ax_cv_c_flags__mcpu_power8+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658
14659 ax_save_FLAGS=$CFLAGS
14660 CFLAGS="-mcpu=power8"
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14663
14664 int
14665 main ()
14666 {
14667
14668 ;
14669 return 0;
14670 }
14671 _ACEOF
14672 if ac_fn_c_try_compile "$LINENO"; then :
14673 ax_cv_c_flags__mcpu_power8=yes
14674 else
14675 ax_cv_c_flags__mcpu_power8=no
14676 fi
14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14678 CFLAGS=$ax_save_FLAGS
14679 fi
14680
14681 eval ax_check_compiler_flags=$ax_cv_c_flags__mcpu_power8
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14683 $as_echo "$ax_check_compiler_flags" >&6; }
14684 if test "x$ax_check_compiler_flags" = xyes; then
14685 CFLAGS="$CFLAGS -mcpu=power8"
14686 else
14687 :
14688 fi
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-fusion" >&5
14691 $as_echo_n "checking whether C compiler accepts -mpower8-fusion... " >&6; }
14692 if ${ax_cv_c_flags__mpower8_fusion+:} false; then :
14693 $as_echo_n "(cached) " >&6
14694 else
14695
14696 ax_save_FLAGS=$CFLAGS
14697 CFLAGS="-mpower8-fusion"
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14700
14701 int
14702 main ()
14703 {
14704
14705 ;
14706 return 0;
14707 }
14708 _ACEOF
14709 if ac_fn_c_try_compile "$LINENO"; then :
14710 ax_cv_c_flags__mpower8_fusion=yes
14711 else
14712 ax_cv_c_flags__mpower8_fusion=no
14713 fi
14714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14715 CFLAGS=$ax_save_FLAGS
14716 fi
14717
14718 eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_fusion
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14720 $as_echo "$ax_check_compiler_flags" >&6; }
14721 if test "x$ax_check_compiler_flags" = xyes; then
14722 CFLAGS="$CFLAGS -mpower8-fusion"
14723 else
14724 :
14725 fi
14726
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-vector" >&5
14728 $as_echo_n "checking whether C compiler accepts -mpower8-vector... " >&6; }
14729 if ${ax_cv_c_flags__mpower8_vector+:} false; then :
14730 $as_echo_n "(cached) " >&6
14731 else
14732
14733 ax_save_FLAGS=$CFLAGS
14734 CFLAGS="-mpower8-vector"
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737
14738 int
14739 main ()
14740 {
14741
14742 ;
14743 return 0;
14744 }
14745 _ACEOF
14746 if ac_fn_c_try_compile "$LINENO"; then :
14747 ax_cv_c_flags__mpower8_vector=yes
14748 else
14749 ax_cv_c_flags__mpower8_vector=no
14750 fi
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 CFLAGS=$ax_save_FLAGS
14753 fi
14754
14755 eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_vector
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14757 $as_echo "$ax_check_compiler_flags" >&6; }
14758 if test "x$ax_check_compiler_flags" = xyes; then
14759 CFLAGS="$CFLAGS -mpower8-vector"
14760 else
14761 :
14762 fi
14763
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mdirect-move" >&5
14765 $as_echo_n "checking whether C compiler accepts -mdirect-move... " >&6; }
14766 if ${ax_cv_c_flags__mdirect_move+:} false; then :
14767 $as_echo_n "(cached) " >&6
14768 else
14769
14770 ax_save_FLAGS=$CFLAGS
14771 CFLAGS="-mdirect-move"
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774
14775 int
14776 main ()
14777 {
14778
14779 ;
14780 return 0;
14781 }
14782 _ACEOF
14783 if ac_fn_c_try_compile "$LINENO"; then :
14784 ax_cv_c_flags__mdirect_move=yes
14785 else
14786 ax_cv_c_flags__mdirect_move=no
14787 fi
14788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 CFLAGS=$ax_save_FLAGS
14790 fi
14791
14792 eval ax_check_compiler_flags=$ax_cv_c_flags__mdirect_move
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14794 $as_echo "$ax_check_compiler_flags" >&6; }
14795 if test "x$ax_check_compiler_flags" = xyes; then
14796 CFLAGS="$CFLAGS -mdirect-move"
14797 else
14798 :
14799 fi
14800
14801 fi
14802 ;;
14803 esac
14804
14805 if test -z "$CFLAGS"; then
14806 echo ""
14807 echo "********************************************************"
14808 echo "* WARNING: Don't know the best CFLAGS for this system *"
14809 echo "* Use ./configure CFLAGS=... to specify your own flags *"
14810 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
14811 echo "********************************************************"
14812 echo ""
14813 CFLAGS="-O3"
14814 fi
14815
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
14817 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
14818 ax_save_FLAGS=$CFLAGS
14819 CFLAGS="$CFLAGS"
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14822
14823 int
14824 main ()
14825 {
14826
14827 ;
14828 return 0;
14829 }
14830 _ACEOF
14831 if ac_fn_c_try_compile "$LINENO"; then :
14832 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
14833 else
14834 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
14835 fi
14836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 CFLAGS=$ax_save_FLAGS
14838 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14840 $as_echo "$ax_check_compiler_flags" >&6; }
14841 if test "x$ax_check_compiler_flags" = xyes; then
14842 :
14843 else
14844
14845 echo ""
14846 echo "********************************************************"
14847 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
14848 echo "* your compiler. *"
14849 echo "* Use ./configure CFLAGS=... to specify your own flags *"
14850 echo "********************************************************"
14851 echo ""
14852 CFLAGS=""
14853
14854 fi
14855
14856
14857 fi
14858
14859
14860 case "${ax_cv_c_compiler_vendor}" in
14861 intel) # Stop icc from defining __GNUC__, except on MacOS where this fails
14862 case "${host_os}" in
14863 *darwin*) ;; # icc -no-gcc fails to compile some system headers
14864 *)
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-gcc" >&5
14866 $as_echo_n "checking whether C compiler accepts -no-gcc... " >&6; }
14867 if ${ax_cv_c_flags__no_gcc+:} false; then :
14868 $as_echo_n "(cached) " >&6
14869 else
14870
14871 ax_save_FLAGS=$CFLAGS
14872 CFLAGS="-no-gcc"
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875
14876 int
14877 main ()
14878 {
14879
14880 ;
14881 return 0;
14882 }
14883 _ACEOF
14884 if ac_fn_c_try_compile "$LINENO"; then :
14885 ax_cv_c_flags__no_gcc=yes
14886 else
14887 ax_cv_c_flags__no_gcc=no
14888 fi
14889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14890 CFLAGS=$ax_save_FLAGS
14891 fi
14892
14893 eval ax_check_compiler_flags=$ax_cv_c_flags__no_gcc
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14895 $as_echo "$ax_check_compiler_flags" >&6; }
14896 if test "x$ax_check_compiler_flags" = xyes; then
14897 CC="$CC -no-gcc"
14898 else
14899 :
14900 fi
14901
14902 ;;
14903 esac
14904 ;;
14905
14906 hp) # must (sometimes) manually increase cpp limits to handle fftw3.h
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5
14908 $as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; }
14909 if ${ax_cv_c_flags__Wp+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912
14913 ax_save_FLAGS=$CFLAGS
14914 CFLAGS="-Wp,-H128000"
14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14917
14918 int
14919 main ()
14920 {
14921
14922 ;
14923 return 0;
14924 }
14925 _ACEOF
14926 if ac_fn_c_try_compile "$LINENO"; then :
14927 ax_cv_c_flags__Wp=yes
14928 else
14929 ax_cv_c_flags__Wp=no
14930 fi
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 CFLAGS=$ax_save_FLAGS
14933 fi
14934
14935 eval ax_check_compiler_flags=$ax_cv_c_flags__Wp
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14937 $as_echo "$ax_check_compiler_flags" >&6; }
14938 if test "x$ax_check_compiler_flags" = xyes; then
14939 CC="$CC -Wp,-H128000"
14940 else
14941 :
14942 fi
14943
14944 ;;
14945
14946 portland) # -Masmkeyword required for asm("") cycle counters
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5
14948 $as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; }
14949 if ${ax_cv_c_flags__Masmkeyword+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952
14953 ax_save_FLAGS=$CFLAGS
14954 CFLAGS="-Masmkeyword"
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957
14958 int
14959 main ()
14960 {
14961
14962 ;
14963 return 0;
14964 }
14965 _ACEOF
14966 if ac_fn_c_try_compile "$LINENO"; then :
14967 ax_cv_c_flags__Masmkeyword=yes
14968 else
14969 ax_cv_c_flags__Masmkeyword=no
14970 fi
14971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14972 CFLAGS=$ax_save_FLAGS
14973 fi
14974
14975 eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14977 $as_echo "$ax_check_compiler_flags" >&6; }
14978 if test "x$ax_check_compiler_flags" = xyes; then
14979 CC="$CC -Masmkeyword"
14980 else
14981 :
14982 fi
14983
14984 ;;
14985 esac
14986
14987 case "${ax_cv_c_compiler_vendor}" in
14988 gnu|intel)
14989 # SSE/SSE2
14990 if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
14991 if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5
14993 $as_echo_n "checking whether C compiler accepts -$flag... " >&6; }
14994 ax_save_FLAGS=$CFLAGS
14995 CFLAGS="-$flag"
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998
14999 int
15000 main ()
15001 {
15002
15003 ;
15004 return 0;
15005 }
15006 _ACEOF
15007 if ac_fn_c_try_compile "$LINENO"; then :
15008 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes
15009 else
15010 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no
15011 fi
15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15013 CFLAGS=$ax_save_FLAGS
15014 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15016 $as_echo "$ax_check_compiler_flags" >&6; }
15017 if test "x$ax_check_compiler_flags" = xyes; then
15018 SSE2_CFLAGS="-$flag"
15019 else
15020 as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5
15021 fi
15022
15023 fi
15024
15025 # AVX
15026 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
15028 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
15029 if ${ax_cv_c_flags__mavx+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032
15033 ax_save_FLAGS=$CFLAGS
15034 CFLAGS="-mavx"
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037
15038 int
15039 main ()
15040 {
15041
15042 ;
15043 return 0;
15044 }
15045 _ACEOF
15046 if ac_fn_c_try_compile "$LINENO"; then :
15047 ax_cv_c_flags__mavx=yes
15048 else
15049 ax_cv_c_flags__mavx=no
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 CFLAGS=$ax_save_FLAGS
15053 fi
15054
15055 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15057 $as_echo "$ax_check_compiler_flags" >&6; }
15058 if test "x$ax_check_compiler_flags" = xyes; then
15059 AVX_CFLAGS="-mavx"
15060 else
15061 as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5
15062 fi
15063
15064 fi
15065
15066 # AVX2
15067 # gcc-4.8 works with -march=core-avx2, but -mavx2 is not enough.
15068 # Later versions seem to happy with -mavx2, so try the arch one first.
15069 if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=core-avx2" >&5
15071 $as_echo_n "checking whether C compiler accepts -march=core-avx2... " >&6; }
15072 if ${ax_cv_c_flags__march_core_avx2+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075
15076 ax_save_FLAGS=$CFLAGS
15077 CFLAGS="-march=core-avx2"
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080
15081 int
15082 main ()
15083 {
15084
15085 ;
15086 return 0;
15087 }
15088 _ACEOF
15089 if ac_fn_c_try_compile "$LINENO"; then :
15090 ax_cv_c_flags__march_core_avx2=yes
15091 else
15092 ax_cv_c_flags__march_core_avx2=no
15093 fi
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 CFLAGS=$ax_save_FLAGS
15096 fi
15097
15098 eval ax_check_compiler_flags=$ax_cv_c_flags__march_core_avx2
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15100 $as_echo "$ax_check_compiler_flags" >&6; }
15101 if test "x$ax_check_compiler_flags" = xyes; then
15102 AVX2_CFLAGS="-march=core-avx2"
15103 else
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
15105 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
15106 if ${ax_cv_c_flags__mavx2+:} false; then :
15107 $as_echo_n "(cached) " >&6
15108 else
15109
15110 ax_save_FLAGS=$CFLAGS
15111 CFLAGS="-mavx2"
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15114
15115 int
15116 main ()
15117 {
15118
15119 ;
15120 return 0;
15121 }
15122 _ACEOF
15123 if ac_fn_c_try_compile "$LINENO"; then :
15124 ax_cv_c_flags__mavx2=yes
15125 else
15126 ax_cv_c_flags__mavx2=no
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 CFLAGS=$ax_save_FLAGS
15130 fi
15131
15132 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15134 $as_echo "$ax_check_compiler_flags" >&6; }
15135 if test "x$ax_check_compiler_flags" = xyes; then
15136 AVX2_CFLAGS="-mavx2"
15137 else
15138 as_fn_error $? "Need a version of gcc with either -march=core-avx2 or -mavx2" "$LINENO" 5
15139 fi
15140
15141 fi
15142
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5
15144 $as_echo_n "checking whether C compiler accepts -mfma... " >&6; }
15145 if ${ax_cv_c_flags__mfma+:} false; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148
15149 ax_save_FLAGS=$CFLAGS
15150 CFLAGS="-mfma"
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153
15154 int
15155 main ()
15156 {
15157
15158 ;
15159 return 0;
15160 }
15161 _ACEOF
15162 if ac_fn_c_try_compile "$LINENO"; then :
15163 ax_cv_c_flags__mfma=yes
15164 else
15165 ax_cv_c_flags__mfma=no
15166 fi
15167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168 CFLAGS=$ax_save_FLAGS
15169 fi
15170
15171 eval ax_check_compiler_flags=$ax_cv_c_flags__mfma
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15173 $as_echo "$ax_check_compiler_flags" >&6; }
15174 if test "x$ax_check_compiler_flags" = xyes; then
15175 AVX2_CFLAGS="$AVX2_CFLAGS -mfma"
15176 else
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&5
15178 $as_echo "$as_me: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&2;}
15179 fi
15180
15181 fi
15182
15183 # AVX512
15184 if test "$have_avx512" = "yes" -a "x$AVX512_CFLAGS" = x; then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
15186 $as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
15187 if ${ax_cv_c_flags__mavx512f+:} false; then :
15188 $as_echo_n "(cached) " >&6
15189 else
15190
15191 ax_save_FLAGS=$CFLAGS
15192 CFLAGS="-mavx512f"
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15195
15196 int
15197 main ()
15198 {
15199
15200 ;
15201 return 0;
15202 }
15203 _ACEOF
15204 if ac_fn_c_try_compile "$LINENO"; then :
15205 ax_cv_c_flags__mavx512f=yes
15206 else
15207 ax_cv_c_flags__mavx512f=no
15208 fi
15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15210 CFLAGS=$ax_save_FLAGS
15211 fi
15212
15213 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx512f
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15215 $as_echo "$ax_check_compiler_flags" >&6; }
15216 if test "x$ax_check_compiler_flags" = xyes; then
15217 AVX512_CFLAGS="-mavx512f"
15218 else
15219 as_fn_error $? "Need a version of gcc with -mavx512f" "$LINENO" 5
15220 fi
15221
15222 fi
15223
15224 if test "$host_vendor" = "apple"; then
15225 # We need to tell gcc to use an external assembler to get AVX/AVX2 with gcc on OS X
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wa,-q" >&5
15227 $as_echo_n "checking whether C compiler accepts -Wa,-q... " >&6; }
15228 if ${ax_cv_c_flags__Wa+:} false; then :
15229 $as_echo_n "(cached) " >&6
15230 else
15231
15232 ax_save_FLAGS=$CFLAGS
15233 CFLAGS="-Wa,-q"
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h. */
15236
15237 int
15238 main ()
15239 {
15240
15241 ;
15242 return 0;
15243 }
15244 _ACEOF
15245 if ac_fn_c_try_compile "$LINENO"; then :
15246 ax_cv_c_flags__Wa=yes
15247 else
15248 ax_cv_c_flags__Wa=no
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 CFLAGS=$ax_save_FLAGS
15252 fi
15253
15254 eval ax_check_compiler_flags=$ax_cv_c_flags__Wa
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15256 $as_echo "$ax_check_compiler_flags" >&6; }
15257 if test "x$ax_check_compiler_flags" = xyes; then
15258 CFLAGS="$CFLAGS -Wa,-q"
15259 else
15260 :
15261 fi
15262
15263 # Disable the new compact unwinding format so we avoid warnings/potential errors.
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wl,-no_compact_unwind" >&5
15265 $as_echo_n "checking whether C compiler accepts -Wl,-no_compact_unwind... " >&6; }
15266 if ${ax_cv_c_flags__Wl+:} false; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269
15270 ax_save_FLAGS=$CFLAGS
15271 CFLAGS="-Wl,-no_compact_unwind"
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274
15275 int
15276 main ()
15277 {
15278
15279 ;
15280 return 0;
15281 }
15282 _ACEOF
15283 if ac_fn_c_try_compile "$LINENO"; then :
15284 ax_cv_c_flags__Wl=yes
15285 else
15286 ax_cv_c_flags__Wl=no
15287 fi
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 CFLAGS=$ax_save_FLAGS
15290 fi
15291
15292 eval ax_check_compiler_flags=$ax_cv_c_flags__Wl
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15294 $as_echo "$ax_check_compiler_flags" >&6; }
15295 if test "x$ax_check_compiler_flags" = xyes; then
15296 CFLAGS="$CFLAGS -Wl,-no_compact_unwind"
15297 else
15298 :
15299 fi
15300
15301 fi
15302
15303 # KCVI
15304 if test "$have_kcvi" = "yes" -a "x$KCVI_CFLAGS" = x; then
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmic" >&5
15306 $as_echo_n "checking whether C compiler accepts -mmic... " >&6; }
15307 if ${ax_cv_c_flags__mmic+:} false; then :
15308 $as_echo_n "(cached) " >&6
15309 else
15310
15311 ax_save_FLAGS=$CFLAGS
15312 CFLAGS="-mmic"
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15315
15316 int
15317 main ()
15318 {
15319
15320 ;
15321 return 0;
15322 }
15323 _ACEOF
15324 if ac_fn_c_try_compile "$LINENO"; then :
15325 ax_cv_c_flags__mmic=yes
15326 else
15327 ax_cv_c_flags__mmic=no
15328 fi
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 CFLAGS=$ax_save_FLAGS
15331 fi
15332
15333 eval ax_check_compiler_flags=$ax_cv_c_flags__mmic
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15335 $as_echo "$ax_check_compiler_flags" >&6; }
15336 if test "x$ax_check_compiler_flags" = xyes; then
15337 KCVI_CFLAGS="-mmic"
15338 else
15339 as_fn_error $? "Need a version of icc with -mmic" "$LINENO" 5
15340 fi
15341
15342 fi
15343
15344 if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then
15345 # -DFAKE__VEC__ is a workaround because gcc-3.3 does not
15346 # #define __VEC__ with -maltivec.
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
15348 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
15349 if ${ax_cv_c_flags__faltivec+:} false; then :
15350 $as_echo_n "(cached) " >&6
15351 else
15352
15353 ax_save_FLAGS=$CFLAGS
15354 CFLAGS="-faltivec"
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357
15358 int
15359 main ()
15360 {
15361
15362 ;
15363 return 0;
15364 }
15365 _ACEOF
15366 if ac_fn_c_try_compile "$LINENO"; then :
15367 ax_cv_c_flags__faltivec=yes
15368 else
15369 ax_cv_c_flags__faltivec=no
15370 fi
15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 CFLAGS=$ax_save_FLAGS
15373 fi
15374
15375 eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15377 $as_echo "$ax_check_compiler_flags" >&6; }
15378 if test "x$ax_check_compiler_flags" = xyes; then
15379 ALTIVEC_CFLAGS="-faltivec"
15380 else
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5
15382 $as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; }
15383 if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then :
15384 $as_echo_n "(cached) " >&6
15385 else
15386
15387 ax_save_FLAGS=$CFLAGS
15388 CFLAGS="-maltivec -mabi=altivec"
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15391
15392 int
15393 main ()
15394 {
15395
15396 ;
15397 return 0;
15398 }
15399 _ACEOF
15400 if ac_fn_c_try_compile "$LINENO"; then :
15401 ax_cv_c_flags__maltivec__mabi_altivec=yes
15402 else
15403 ax_cv_c_flags__maltivec__mabi_altivec=no
15404 fi
15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 CFLAGS=$ax_save_FLAGS
15407 fi
15408
15409 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15411 $as_echo "$ax_check_compiler_flags" >&6; }
15412 if test "x$ax_check_compiler_flags" = xyes; then
15413 ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__"
15414 else
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5
15416 $as_echo_n "checking whether C compiler accepts -fvec... " >&6; }
15417 if ${ax_cv_c_flags__fvec+:} false; then :
15418 $as_echo_n "(cached) " >&6
15419 else
15420
15421 ax_save_FLAGS=$CFLAGS
15422 CFLAGS="-fvec"
15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h. */
15425
15426 int
15427 main ()
15428 {
15429
15430 ;
15431 return 0;
15432 }
15433 _ACEOF
15434 if ac_fn_c_try_compile "$LINENO"; then :
15435 ax_cv_c_flags__fvec=yes
15436 else
15437 ax_cv_c_flags__fvec=no
15438 fi
15439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 CFLAGS=$ax_save_FLAGS
15441 fi
15442
15443 eval ax_check_compiler_flags=$ax_cv_c_flags__fvec
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15445 $as_echo "$ax_check_compiler_flags" >&6; }
15446 if test "x$ax_check_compiler_flags" = xyes; then
15447 ALTIVEC_CFLAGS="-fvec"
15448 else
15449 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
15450 fi
15451
15452 fi
15453
15454 fi
15455
15456 fi
15457
15458 case "${host_cpu}" in
15459 aarch64)
15460 ;;
15461 *)
15462 if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5
15464 $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; }
15465 if ${ax_cv_c_flags__mfpu_neon+:} false; then :
15466 $as_echo_n "(cached) " >&6
15467 else
15468
15469 ax_save_FLAGS=$CFLAGS
15470 CFLAGS="-mfpu=neon"
15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472 /* end confdefs.h. */
15473
15474 int
15475 main ()
15476 {
15477
15478 ;
15479 return 0;
15480 }
15481 _ACEOF
15482 if ac_fn_c_try_compile "$LINENO"; then :
15483 ax_cv_c_flags__mfpu_neon=yes
15484 else
15485 ax_cv_c_flags__mfpu_neon=no
15486 fi
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15488 CFLAGS=$ax_save_FLAGS
15489 fi
15490
15491 eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15493 $as_echo "$ax_check_compiler_flags" >&6; }
15494 if test "x$ax_check_compiler_flags" = xyes; then
15495 NEON_CFLAGS="-mfpu=neon"
15496 else
15497 as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5
15498 fi
15499
15500 fi
15501 ;;
15502 esac
15503
15504 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5
15506 $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; }
15507 if ${ax_cv_c_flags__mvsx+:} false; then :
15508 $as_echo_n "(cached) " >&6
15509 else
15510
15511 ax_save_FLAGS=$CFLAGS
15512 CFLAGS="-mvsx"
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515
15516 int
15517 main ()
15518 {
15519
15520 ;
15521 return 0;
15522 }
15523 _ACEOF
15524 if ac_fn_c_try_compile "$LINENO"; then :
15525 ax_cv_c_flags__mvsx=yes
15526 else
15527 ax_cv_c_flags__mvsx=no
15528 fi
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 CFLAGS=$ax_save_FLAGS
15531 fi
15532
15533 eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15535 $as_echo "$ax_check_compiler_flags" >&6; }
15536 if test "x$ax_check_compiler_flags" = xyes; then
15537 VSX_CFLAGS="-mvsx"
15538 else
15539 as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5
15540 fi
15541
15542 fi
15543
15544 ;;
15545
15546 clang)
15547
15548 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
15550 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
15551 if ${ax_cv_c_flags__mavx+:} false; then :
15552 $as_echo_n "(cached) " >&6
15553 else
15554
15555 ax_save_FLAGS=$CFLAGS
15556 CFLAGS="-mavx"
15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15559
15560 int
15561 main ()
15562 {
15563
15564 ;
15565 return 0;
15566 }
15567 _ACEOF
15568 if ac_fn_c_try_compile "$LINENO"; then :
15569 ax_cv_c_flags__mavx=yes
15570 else
15571 ax_cv_c_flags__mavx=no
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574 CFLAGS=$ax_save_FLAGS
15575 fi
15576
15577 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15579 $as_echo "$ax_check_compiler_flags" >&6; }
15580 if test "x$ax_check_compiler_flags" = xyes; then
15581 AVX_CFLAGS="-mavx"
15582 else
15583 as_fn_error $? "Need a version of clang with -mavx" "$LINENO" 5
15584 fi
15585
15586 fi
15587
15588 if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
15590 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
15591 if ${ax_cv_c_flags__mavx2+:} false; then :
15592 $as_echo_n "(cached) " >&6
15593 else
15594
15595 ax_save_FLAGS=$CFLAGS
15596 CFLAGS="-mavx2"
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15599
15600 int
15601 main ()
15602 {
15603
15604 ;
15605 return 0;
15606 }
15607 _ACEOF
15608 if ac_fn_c_try_compile "$LINENO"; then :
15609 ax_cv_c_flags__mavx2=yes
15610 else
15611 ax_cv_c_flags__mavx2=no
15612 fi
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 CFLAGS=$ax_save_FLAGS
15615 fi
15616
15617 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15619 $as_echo "$ax_check_compiler_flags" >&6; }
15620 if test "x$ax_check_compiler_flags" = xyes; then
15621 AVX2_CFLAGS="-mavx2"
15622 else
15623 as_fn_error $? "Need a version of clang with -mavx2" "$LINENO" 5
15624 fi
15625
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5
15627 $as_echo_n "checking whether C compiler accepts -mfma... " >&6; }
15628 if ${ax_cv_c_flags__mfma+:} false; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15631
15632 ax_save_FLAGS=$CFLAGS
15633 CFLAGS="-mfma"
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15636
15637 int
15638 main ()
15639 {
15640
15641 ;
15642 return 0;
15643 }
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 ax_cv_c_flags__mfma=yes
15647 else
15648 ax_cv_c_flags__mfma=no
15649 fi
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 CFLAGS=$ax_save_FLAGS
15652 fi
15653
15654 eval ax_check_compiler_flags=$ax_cv_c_flags__mfma
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15656 $as_echo "$ax_check_compiler_flags" >&6; }
15657 if test "x$ax_check_compiler_flags" = xyes; then
15658 AVX2_CFLAGS="$AVX2_CFLAGS -mfma"
15659 else
15660 :
15661 fi
15662
15663 fi
15664
15665 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
15666 # clang appears to need both -mvsx and -maltivec for VSX
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec" >&5
15668 $as_echo_n "checking whether C compiler accepts -maltivec... " >&6; }
15669 if ${ax_cv_c_flags__maltivec+:} false; then :
15670 $as_echo_n "(cached) " >&6
15671 else
15672
15673 ax_save_FLAGS=$CFLAGS
15674 CFLAGS="-maltivec"
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677
15678 int
15679 main ()
15680 {
15681
15682 ;
15683 return 0;
15684 }
15685 _ACEOF
15686 if ac_fn_c_try_compile "$LINENO"; then :
15687 ax_cv_c_flags__maltivec=yes
15688 else
15689 ax_cv_c_flags__maltivec=no
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692 CFLAGS=$ax_save_FLAGS
15693 fi
15694
15695 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15697 $as_echo "$ax_check_compiler_flags" >&6; }
15698 if test "x$ax_check_compiler_flags" = xyes; then
15699 VSX_CFLAGS="-maltivec"
15700 else
15701 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
15702 fi
15703
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5
15705 $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; }
15706 if ${ax_cv_c_flags__mvsx+:} false; then :
15707 $as_echo_n "(cached) " >&6
15708 else
15709
15710 ax_save_FLAGS=$CFLAGS
15711 CFLAGS="-mvsx"
15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15714
15715 int
15716 main ()
15717 {
15718
15719 ;
15720 return 0;
15721 }
15722 _ACEOF
15723 if ac_fn_c_try_compile "$LINENO"; then :
15724 ax_cv_c_flags__mvsx=yes
15725 else
15726 ax_cv_c_flags__mvsx=no
15727 fi
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 CFLAGS=$ax_save_FLAGS
15730 fi
15731
15732 eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15734 $as_echo "$ax_check_compiler_flags" >&6; }
15735 if test "x$ax_check_compiler_flags" = xyes; then
15736 VSX_CFLAGS="-mvsx $VSX_CFLAGS"
15737 else
15738 as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5
15739 fi
15740
15741 fi
15742 ;;
15743
15744 ibm)
15745 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
15746 # Note that IBM xlC uses -qaltivec for VSX too.
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -qaltivec" >&5
15748 $as_echo_n "checking whether C compiler accepts -qaltivec... " >&6; }
15749 if ${ax_cv_c_flags__qaltivec+:} false; then :
15750 $as_echo_n "(cached) " >&6
15751 else
15752
15753 ax_save_FLAGS=$CFLAGS
15754 CFLAGS="-qaltivec"
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15757
15758 int
15759 main ()
15760 {
15761
15762 ;
15763 return 0;
15764 }
15765 _ACEOF
15766 if ac_fn_c_try_compile "$LINENO"; then :
15767 ax_cv_c_flags__qaltivec=yes
15768 else
15769 ax_cv_c_flags__qaltivec=no
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 CFLAGS=$ax_save_FLAGS
15773 fi
15774
15775 eval ax_check_compiler_flags=$ax_cv_c_flags__qaltivec
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15777 $as_echo "$ax_check_compiler_flags" >&6; }
15778 if test "x$ax_check_compiler_flags" = xyes; then
15779 VSX_CFLAGS="-qaltivec"
15780 else
15781 as_fn_error $? "Need a version of gcc with -qaltivec" "$LINENO" 5
15782 fi
15783
15784 fi
15785 ;;
15786 esac
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797 if test "$with_incoming_stack_boundary"x != "no"x; then
15798 case "${ax_cv_c_compiler_vendor}" in
15799 gnu)
15800 tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary";
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5
15802 $as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; }
15803 ax_save_FLAGS=$CFLAGS
15804 CFLAGS="$tentative_flags"
15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806 /* end confdefs.h. */
15807
15808 int
15809 main ()
15810 {
15811
15812 ;
15813 return 0;
15814 }
15815 _ACEOF
15816 if ac_fn_c_try_compile "$LINENO"; then :
15817 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes
15818 else
15819 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no
15820 fi
15821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822 CFLAGS=$ax_save_FLAGS
15823 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15825 $as_echo "$ax_check_compiler_flags" >&6; }
15826 if test "x$ax_check_compiler_flags" = xyes; then
15827 STACK_ALIGN_CFLAGS=$tentative_flags
15828 else
15829 :
15830 fi
15831
15832 ;;
15833 esac
15834 fi
15835
15836
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15838 $as_echo_n "checking for ANSI C header files... " >&6; }
15839 if ${ac_cv_header_stdc+:} false; then :
15840 $as_echo_n "(cached) " >&6
15841 else
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15844 #include <stdlib.h>
15845 #include <stdarg.h>
15846 #include <string.h>
15847 #include <float.h>
15848
15849 int
15850 main ()
15851 {
15852
15853 ;
15854 return 0;
15855 }
15856 _ACEOF
15857 if ac_fn_c_try_compile "$LINENO"; then :
15858 ac_cv_header_stdc=yes
15859 else
15860 ac_cv_header_stdc=no
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863
15864 if test $ac_cv_header_stdc = yes; then
15865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15867 /* end confdefs.h. */
15868 #include <string.h>
15869
15870 _ACEOF
15871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15872 $EGREP "memchr" >/dev/null 2>&1; then :
15873
15874 else
15875 ac_cv_header_stdc=no
15876 fi
15877 rm -f conftest*
15878
15879 fi
15880
15881 if test $ac_cv_header_stdc = yes; then
15882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15885 #include <stdlib.h>
15886
15887 _ACEOF
15888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15889 $EGREP "free" >/dev/null 2>&1; then :
15890
15891 else
15892 ac_cv_header_stdc=no
15893 fi
15894 rm -f conftest*
15895
15896 fi
15897
15898 if test $ac_cv_header_stdc = yes; then
15899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15900 if test "$cross_compiling" = yes; then :
15901 :
15902 else
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 #include <ctype.h>
15906 #include <stdlib.h>
15907 #if ((' ' & 0x0FF) == 0x020)
15908 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15909 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15910 #else
15911 # define ISLOWER(c) \
15912 (('a' <= (c) && (c) <= 'i') \
15913 || ('j' <= (c) && (c) <= 'r') \
15914 || ('s' <= (c) && (c) <= 'z'))
15915 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15916 #endif
15917
15918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15919 int
15920 main ()
15921 {
15922 int i;
15923 for (i = 0; i < 256; i++)
15924 if (XOR (islower (i), ISLOWER (i))
15925 || toupper (i) != TOUPPER (i))
15926 return 2;
15927 return 0;
15928 }
15929 _ACEOF
15930 if ac_fn_c_try_run "$LINENO"; then :
15931
15932 else
15933 ac_cv_header_stdc=no
15934 fi
15935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15936 conftest.$ac_objext conftest.beam conftest.$ac_ext
15937 fi
15938
15939 fi
15940 fi
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15942 $as_echo "$ac_cv_header_stdc" >&6; }
15943 if test $ac_cv_header_stdc = yes; then
15944
15945 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15946
15947 fi
15948
15949 for ac_header in fcntl.h fenv.h limits.h malloc.h stddef.h sys/time.h
15950 do :
15951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15954 cat >>confdefs.h <<_ACEOF
15955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15956 _ACEOF
15957
15958 fi
15959
15960 done
15961
15962
15963 save_CFLAGS="$CFLAGS"
15964 save_CPPFLAGS="$CPPFLAGS"
15965 CFLAGS="$CFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS"
15966 CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS"
15967 for ac_header in altivec.h
15968 do :
15969 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
15970 if test "x$ac_cv_header_altivec_h" = xyes; then :
15971 cat >>confdefs.h <<_ACEOF
15972 #define HAVE_ALTIVEC_H 1
15973 _ACEOF
15974
15975 fi
15976
15977 done
15978
15979 CFLAGS="$save_CFLAGS"
15980 CPPFLAGS="$save_CPPFLAGS"
15981
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15983 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15984 if ${ac_cv_c_const+:} false; then :
15985 $as_echo_n "(cached) " >&6
15986 else
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989
15990 int
15991 main ()
15992 {
15993
15994 #ifndef __cplusplus
15995 /* Ultrix mips cc rejects this sort of thing. */
15996 typedef int charset[2];
15997 const charset cs = { 0, 0 };
15998 /* SunOS 4.1.1 cc rejects this. */
15999 char const *const *pcpcc;
16000 char **ppc;
16001 /* NEC SVR4.0.2 mips cc rejects this. */
16002 struct point {int x, y;};
16003 static struct point const zero = {0,0};
16004 /* AIX XL C 1.02.0.0 rejects this.
16005 It does not let you subtract one const X* pointer from another in
16006 an arm of an if-expression whose if-part is not a constant
16007 expression */
16008 const char *g = "string";
16009 pcpcc = &g + (g ? g-g : 0);
16010 /* HPUX 7.0 cc rejects these. */
16011 ++pcpcc;
16012 ppc = (char**) pcpcc;
16013 pcpcc = (char const *const *) ppc;
16014 { /* SCO 3.2v4 cc rejects this sort of thing. */
16015 char tx;
16016 char *t = &tx;
16017 char const *s = 0 ? (char *) 0 : (char const *) 0;
16018
16019 *t++ = 0;
16020 if (s) return 0;
16021 }
16022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16023 int x[] = {25, 17};
16024 const int *foo = &x[0];
16025 ++foo;
16026 }
16027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16028 typedef const int *iptr;
16029 iptr p = 0;
16030 ++p;
16031 }
16032 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16034 struct s { int j; const int *ap[3]; } bx;
16035 struct s *b = &bx; b->j = 5;
16036 }
16037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16038 const int foo = 10;
16039 if (!foo) return 0;
16040 }
16041 return !cs[0] && !zero.x;
16042 #endif
16043
16044 ;
16045 return 0;
16046 }
16047 _ACEOF
16048 if ac_fn_c_try_compile "$LINENO"; then :
16049 ac_cv_c_const=yes
16050 else
16051 ac_cv_c_const=no
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 fi
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16056 $as_echo "$ac_cv_c_const" >&6; }
16057 if test $ac_cv_c_const = no; then
16058
16059 $as_echo "#define const /**/" >>confdefs.h
16060
16061 fi
16062
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16064 $as_echo_n "checking for inline... " >&6; }
16065 if ${ac_cv_c_inline+:} false; then :
16066 $as_echo_n "(cached) " >&6
16067 else
16068 ac_cv_c_inline=no
16069 for ac_kw in inline __inline__ __inline; do
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 #ifndef __cplusplus
16073 typedef int foo_t;
16074 static $ac_kw foo_t static_foo () {return 0; }
16075 $ac_kw foo_t foo () {return 0; }
16076 #endif
16077
16078 _ACEOF
16079 if ac_fn_c_try_compile "$LINENO"; then :
16080 ac_cv_c_inline=$ac_kw
16081 fi
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083 test "$ac_cv_c_inline" != no && break
16084 done
16085
16086 fi
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16088 $as_echo "$ac_cv_c_inline" >&6; }
16089
16090 case $ac_cv_c_inline in
16091 inline | yes) ;;
16092 *)
16093 case $ac_cv_c_inline in
16094 no) ac_val=;;
16095 *) ac_val=$ac_cv_c_inline;;
16096 esac
16097 cat >>confdefs.h <<_ACEOF
16098 #ifndef __cplusplus
16099 #define inline $ac_val
16100 #endif
16101 _ACEOF
16102 ;;
16103 esac
16104
16105 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16106 if test "x$ac_cv_type_size_t" = xyes; then :
16107
16108 else
16109
16110 cat >>confdefs.h <<_ACEOF
16111 #define size_t unsigned int
16112 _ACEOF
16113
16114 fi
16115
16116 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16117 case $ac_cv_c_uint32_t in #(
16118 no|yes) ;; #(
16119 *)
16120
16121 $as_echo "#define _UINT32_T 1" >>confdefs.h
16122
16123
16124 cat >>confdefs.h <<_ACEOF
16125 #define uint32_t $ac_cv_c_uint32_t
16126 _ACEOF
16127 ;;
16128 esac
16129
16130 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
16131 case $ac_cv_c_uint64_t in #(
16132 no|yes) ;; #(
16133 *)
16134
16135 $as_echo "#define _UINT64_T 1" >>confdefs.h
16136
16137
16138 cat >>confdefs.h <<_ACEOF
16139 #define uint64_t $ac_cv_c_uint64_t
16140 _ACEOF
16141 ;;
16142 esac
16143
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16145 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16146 if ${ac_cv_header_time+:} false; then :
16147 $as_echo_n "(cached) " >&6
16148 else
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151 #include <sys/types.h>
16152 #include <sys/time.h>
16153 #include <time.h>
16154
16155 int
16156 main ()
16157 {
16158 if ((struct tm *) 0)
16159 return 0;
16160 ;
16161 return 0;
16162 }
16163 _ACEOF
16164 if ac_fn_c_try_compile "$LINENO"; then :
16165 ac_cv_header_time=yes
16166 else
16167 ac_cv_header_time=no
16168 fi
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16170 fi
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16172 $as_echo "$ac_cv_header_time" >&6; }
16173 if test $ac_cv_header_time = yes; then
16174
16175 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16176
16177 fi
16178
16179 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
16180 if test "x$ac_cv_type_long_double" = xyes; then :
16181
16182 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16183
16184 else
16185
16186 if test $PRECISION = l; then
16187 as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5
16188 fi
16189
16190 fi
16191
16192 ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" "
16193 #if HAVE_SYS_TIME_H
16194 #include <sys/time.h>
16195 #endif
16196
16197 "
16198 if test "x$ac_cv_type_hrtime_t" = xyes; then :
16199
16200 $as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h
16201
16202 fi
16203
16204
16205 # The cast to long int works around a bug in the HP C Compiler
16206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16208 # This bug is HP SR number 8606223364.
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16210 $as_echo_n "checking size of int... " >&6; }
16211 if ${ac_cv_sizeof_int+:} false; then :
16212 $as_echo_n "(cached) " >&6
16213 else
16214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16215
16216 else
16217 if test "$ac_cv_type_int" = yes; then
16218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16220 as_fn_error 77 "cannot compute sizeof (int)
16221 See \`config.log' for more details" "$LINENO" 5; }
16222 else
16223 ac_cv_sizeof_int=0
16224 fi
16225 fi
16226
16227 fi
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16229 $as_echo "$ac_cv_sizeof_int" >&6; }
16230
16231
16232
16233 cat >>confdefs.h <<_ACEOF
16234 #define SIZEOF_INT $ac_cv_sizeof_int
16235 _ACEOF
16236
16237
16238 # The cast to long int works around a bug in the HP C Compiler
16239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16241 # This bug is HP SR number 8606223364.
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16243 $as_echo_n "checking size of unsigned int... " >&6; }
16244 if ${ac_cv_sizeof_unsigned_int+:} false; then :
16245 $as_echo_n "(cached) " >&6
16246 else
16247 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
16248
16249 else
16250 if test "$ac_cv_type_unsigned_int" = yes; then
16251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16253 as_fn_error 77 "cannot compute sizeof (unsigned int)
16254 See \`config.log' for more details" "$LINENO" 5; }
16255 else
16256 ac_cv_sizeof_unsigned_int=0
16257 fi
16258 fi
16259
16260 fi
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16262 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16263
16264
16265
16266 cat >>confdefs.h <<_ACEOF
16267 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16268 _ACEOF
16269
16270
16271 # The cast to long int works around a bug in the HP C Compiler
16272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16274 # This bug is HP SR number 8606223364.
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16276 $as_echo_n "checking size of long... " >&6; }
16277 if ${ac_cv_sizeof_long+:} false; then :
16278 $as_echo_n "(cached) " >&6
16279 else
16280 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16281
16282 else
16283 if test "$ac_cv_type_long" = yes; then
16284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16286 as_fn_error 77 "cannot compute sizeof (long)
16287 See \`config.log' for more details" "$LINENO" 5; }
16288 else
16289 ac_cv_sizeof_long=0
16290 fi
16291 fi
16292
16293 fi
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16295 $as_echo "$ac_cv_sizeof_long" >&6; }
16296
16297
16298
16299 cat >>confdefs.h <<_ACEOF
16300 #define SIZEOF_LONG $ac_cv_sizeof_long
16301 _ACEOF
16302
16303
16304 # The cast to long int works around a bug in the HP C Compiler
16305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16307 # This bug is HP SR number 8606223364.
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16309 $as_echo_n "checking size of unsigned long... " >&6; }
16310 if ${ac_cv_sizeof_unsigned_long+:} false; then :
16311 $as_echo_n "(cached) " >&6
16312 else
16313 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
16314
16315 else
16316 if test "$ac_cv_type_unsigned_long" = yes; then
16317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16319 as_fn_error 77 "cannot compute sizeof (unsigned long)
16320 See \`config.log' for more details" "$LINENO" 5; }
16321 else
16322 ac_cv_sizeof_unsigned_long=0
16323 fi
16324 fi
16325
16326 fi
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16328 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16329
16330
16331
16332 cat >>confdefs.h <<_ACEOF
16333 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16334 _ACEOF
16335
16336
16337 # The cast to long int works around a bug in the HP C Compiler
16338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16340 # This bug is HP SR number 8606223364.
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16342 $as_echo_n "checking size of long long... " >&6; }
16343 if ${ac_cv_sizeof_long_long+:} false; then :
16344 $as_echo_n "(cached) " >&6
16345 else
16346 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
16347
16348 else
16349 if test "$ac_cv_type_long_long" = yes; then
16350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16352 as_fn_error 77 "cannot compute sizeof (long long)
16353 See \`config.log' for more details" "$LINENO" 5; }
16354 else
16355 ac_cv_sizeof_long_long=0
16356 fi
16357 fi
16358
16359 fi
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16361 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16362
16363
16364
16365 cat >>confdefs.h <<_ACEOF
16366 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16367 _ACEOF
16368
16369
16370 # The cast to long int works around a bug in the HP C Compiler
16371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16373 # This bug is HP SR number 8606223364.
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
16375 $as_echo_n "checking size of unsigned long long... " >&6; }
16376 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
16380
16381 else
16382 if test "$ac_cv_type_unsigned_long_long" = yes; then
16383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16385 as_fn_error 77 "cannot compute sizeof (unsigned long long)
16386 See \`config.log' for more details" "$LINENO" 5; }
16387 else
16388 ac_cv_sizeof_unsigned_long_long=0
16389 fi
16390 fi
16391
16392 fi
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
16394 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
16395
16396
16397
16398 cat >>confdefs.h <<_ACEOF
16399 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
16400 _ACEOF
16401
16402
16403 # The cast to long int works around a bug in the HP C Compiler
16404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16406 # This bug is HP SR number 8606223364.
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16408 $as_echo_n "checking size of size_t... " >&6; }
16409 if ${ac_cv_sizeof_size_t+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16413
16414 else
16415 if test "$ac_cv_type_size_t" = yes; then
16416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16418 as_fn_error 77 "cannot compute sizeof (size_t)
16419 See \`config.log' for more details" "$LINENO" 5; }
16420 else
16421 ac_cv_sizeof_size_t=0
16422 fi
16423 fi
16424
16425 fi
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16427 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16428
16429
16430
16431 cat >>confdefs.h <<_ACEOF
16432 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16433 _ACEOF
16434
16435
16436 # The cast to long int works around a bug in the HP C Compiler
16437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16439 # This bug is HP SR number 8606223364.
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
16441 $as_echo_n "checking size of ptrdiff_t... " >&6; }
16442 if ${ac_cv_sizeof_ptrdiff_t+:} false; then :
16443 $as_echo_n "(cached) " >&6
16444 else
16445 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
16446
16447 else
16448 if test "$ac_cv_type_ptrdiff_t" = yes; then
16449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16451 as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
16452 See \`config.log' for more details" "$LINENO" 5; }
16453 else
16454 ac_cv_sizeof_ptrdiff_t=0
16455 fi
16456 fi
16457
16458 fi
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
16460 $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
16461
16462
16463
16464 cat >>confdefs.h <<_ACEOF
16465 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
16466 _ACEOF
16467
16468
16469
16470 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16471 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16472
16473 cat >>confdefs.h <<_ACEOF
16474 #define HAVE_PTRDIFF_T 1
16475 _ACEOF
16476
16477
16478 fi
16479
16480 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default
16481 #ifdef HAVE_STDINT_H
16482 # include <stdint.h>
16483 #endif
16484 "
16485 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16486
16487 cat >>confdefs.h <<_ACEOF
16488 #define HAVE_UINTPTR_T 1
16489 _ACEOF
16490
16491
16492 else
16493 # The cast to long int works around a bug in the HP C Compiler
16494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16496 # This bug is HP SR number 8606223364.
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16498 $as_echo_n "checking size of void *... " >&6; }
16499 if ${ac_cv_sizeof_void_p+:} false; then :
16500 $as_echo_n "(cached) " >&6
16501 else
16502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16503
16504 else
16505 if test "$ac_cv_type_void_p" = yes; then
16506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16508 as_fn_error 77 "cannot compute sizeof (void *)
16509 See \`config.log' for more details" "$LINENO" 5; }
16510 else
16511 ac_cv_sizeof_void_p=0
16512 fi
16513 fi
16514
16515 fi
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16517 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16518
16519
16520
16521 cat >>confdefs.h <<_ACEOF
16522 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16523 _ACEOF
16524
16525
16526 fi
16527
16528
16529 # The cast to long int works around a bug in the HP C Compiler
16530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16532 # This bug is HP SR number 8606223364.
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
16534 $as_echo_n "checking size of float... " >&6; }
16535 if ${ac_cv_sizeof_float+:} false; then :
16536 $as_echo_n "(cached) " >&6
16537 else
16538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
16539
16540 else
16541 if test "$ac_cv_type_float" = yes; then
16542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16544 as_fn_error 77 "cannot compute sizeof (float)
16545 See \`config.log' for more details" "$LINENO" 5; }
16546 else
16547 ac_cv_sizeof_float=0
16548 fi
16549 fi
16550
16551 fi
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
16553 $as_echo "$ac_cv_sizeof_float" >&6; }
16554
16555
16556
16557 cat >>confdefs.h <<_ACEOF
16558 #define SIZEOF_FLOAT $ac_cv_sizeof_float
16559 _ACEOF
16560
16561
16562 # The cast to long int works around a bug in the HP C Compiler
16563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16565 # This bug is HP SR number 8606223364.
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
16567 $as_echo_n "checking size of double... " >&6; }
16568 if ${ac_cv_sizeof_double+:} false; then :
16569 $as_echo_n "(cached) " >&6
16570 else
16571 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
16572
16573 else
16574 if test "$ac_cv_type_double" = yes; then
16575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16577 as_fn_error 77 "cannot compute sizeof (double)
16578 See \`config.log' for more details" "$LINENO" 5; }
16579 else
16580 ac_cv_sizeof_double=0
16581 fi
16582 fi
16583
16584 fi
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
16586 $as_echo "$ac_cv_sizeof_double" >&6; }
16587
16588
16589
16590 cat >>confdefs.h <<_ACEOF
16591 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
16592 _ACEOF
16593
16594
16595
16596 # The cast to long int works around a bug in the HP C Compiler
16597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16599 # This bug is HP SR number 8606223364.
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5
16601 $as_echo_n "checking size of fftw_r2r_kind... " >&6; }
16602 if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then :
16603 $as_echo_n "(cached) " >&6
16604 else
16605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind" "typedef enum {
16606 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
16607 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
16608 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
16609 } fftw_r2r_kind;
16610 "; then :
16611
16612 else
16613 if test "$ac_cv_type_fftw_r2r_kind" = yes; then
16614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16616 as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind)
16617 See \`config.log' for more details" "$LINENO" 5; }
16618 else
16619 ac_cv_sizeof_fftw_r2r_kind=0
16620 fi
16621 fi
16622
16623 fi
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5
16625 $as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; }
16626
16627
16628
16629 cat >>confdefs.h <<_ACEOF
16630 #define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind
16631 _ACEOF
16632
16633
16634 if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi
16635 C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T
16636
16637
16638 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16639 # for constant arguments. Useless!
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16641 $as_echo_n "checking for working alloca.h... " >&6; }
16642 if ${ac_cv_working_alloca_h+:} false; then :
16643 $as_echo_n "(cached) " >&6
16644 else
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 #include <alloca.h>
16648 int
16649 main ()
16650 {
16651 char *p = (char *) alloca (2 * sizeof (int));
16652 if (p) return 0;
16653 ;
16654 return 0;
16655 }
16656 _ACEOF
16657 if ac_fn_c_try_link "$LINENO"; then :
16658 ac_cv_working_alloca_h=yes
16659 else
16660 ac_cv_working_alloca_h=no
16661 fi
16662 rm -f core conftest.err conftest.$ac_objext \
16663 conftest$ac_exeext conftest.$ac_ext
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16666 $as_echo "$ac_cv_working_alloca_h" >&6; }
16667 if test $ac_cv_working_alloca_h = yes; then
16668
16669 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16670
16671 fi
16672
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16674 $as_echo_n "checking for alloca... " >&6; }
16675 if ${ac_cv_func_alloca_works+:} false; then :
16676 $as_echo_n "(cached) " >&6
16677 else
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16680 #ifdef __GNUC__
16681 # define alloca __builtin_alloca
16682 #else
16683 # ifdef _MSC_VER
16684 # include <malloc.h>
16685 # define alloca _alloca
16686 # else
16687 # ifdef HAVE_ALLOCA_H
16688 # include <alloca.h>
16689 # else
16690 # ifdef _AIX
16691 #pragma alloca
16692 # else
16693 # ifndef alloca /* predefined by HP cc +Olibcalls */
16694 void *alloca (size_t);
16695 # endif
16696 # endif
16697 # endif
16698 # endif
16699 #endif
16700
16701 int
16702 main ()
16703 {
16704 char *p = (char *) alloca (1);
16705 if (p) return 0;
16706 ;
16707 return 0;
16708 }
16709 _ACEOF
16710 if ac_fn_c_try_link "$LINENO"; then :
16711 ac_cv_func_alloca_works=yes
16712 else
16713 ac_cv_func_alloca_works=no
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext \
16716 conftest$ac_exeext conftest.$ac_ext
16717 fi
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16719 $as_echo "$ac_cv_func_alloca_works" >&6; }
16720
16721 if test $ac_cv_func_alloca_works = yes; then
16722
16723 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16724
16725 else
16726 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16727 # that cause trouble. Some versions do not even contain alloca or
16728 # contain a buggy version. If you still want to use their alloca,
16729 # use ar to extract alloca.o from them instead of compiling alloca.c.
16730
16731 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16732
16733 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16734
16735
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16737 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16738 if ${ac_cv_os_cray+:} false; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 #if defined CRAY && ! defined CRAY2
16744 webecray
16745 #else
16746 wenotbecray
16747 #endif
16748
16749 _ACEOF
16750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16751 $EGREP "webecray" >/dev/null 2>&1; then :
16752 ac_cv_os_cray=yes
16753 else
16754 ac_cv_os_cray=no
16755 fi
16756 rm -f conftest*
16757
16758 fi
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16760 $as_echo "$ac_cv_os_cray" >&6; }
16761 if test $ac_cv_os_cray = yes; then
16762 for ac_func in _getb67 GETB67 getb67; do
16763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16766
16767 cat >>confdefs.h <<_ACEOF
16768 #define CRAY_STACKSEG_END $ac_func
16769 _ACEOF
16770
16771 break
16772 fi
16773
16774 done
16775 fi
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16778 $as_echo_n "checking stack direction for C alloca... " >&6; }
16779 if ${ac_cv_c_stack_direction+:} false; then :
16780 $as_echo_n "(cached) " >&6
16781 else
16782 if test "$cross_compiling" = yes; then :
16783 ac_cv_c_stack_direction=0
16784 else
16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16787 $ac_includes_default
16788 int
16789 find_stack_direction (int *addr, int depth)
16790 {
16791 int dir, dummy = 0;
16792 if (! addr)
16793 addr = &dummy;
16794 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16795 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16796 return dir + dummy;
16797 }
16798
16799 int
16800 main (int argc, char **argv)
16801 {
16802 return find_stack_direction (0, argc + !argv + 20) < 0;
16803 }
16804 _ACEOF
16805 if ac_fn_c_try_run "$LINENO"; then :
16806 ac_cv_c_stack_direction=1
16807 else
16808 ac_cv_c_stack_direction=-1
16809 fi
16810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16811 conftest.$ac_objext conftest.beam conftest.$ac_ext
16812 fi
16813
16814 fi
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16816 $as_echo "$ac_cv_c_stack_direction" >&6; }
16817 cat >>confdefs.h <<_ACEOF
16818 #define STACK_DIRECTION $ac_cv_c_stack_direction
16819 _ACEOF
16820
16821
16822 fi
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16825 $as_echo_n "checking for working strtod... " >&6; }
16826 if ${ac_cv_func_strtod+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 if test "$cross_compiling" = yes; then :
16830 ac_cv_func_strtod=no
16831 else
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834
16835 $ac_includes_default
16836 #ifndef strtod
16837 double strtod ();
16838 #endif
16839 int
16840 main()
16841 {
16842 {
16843 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16844 char *string = " +69";
16845 char *term;
16846 double value;
16847 value = strtod (string, &term);
16848 if (value != 69 || term != (string + 4))
16849 return 1;
16850 }
16851
16852 {
16853 /* Under Solaris 2.4, strtod returns the wrong value for the
16854 terminating character under some conditions. */
16855 char *string = "NaN";
16856 char *term;
16857 strtod (string, &term);
16858 if (term != string && *(term - 1) == 0)
16859 return 1;
16860 }
16861 return 0;
16862 }
16863
16864 _ACEOF
16865 if ac_fn_c_try_run "$LINENO"; then :
16866 ac_cv_func_strtod=yes
16867 else
16868 ac_cv_func_strtod=no
16869 fi
16870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16871 conftest.$ac_objext conftest.beam conftest.$ac_ext
16872 fi
16873
16874 fi
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16876 $as_echo "$ac_cv_func_strtod" >&6; }
16877 if test $ac_cv_func_strtod = no; then
16878 case " $LIBOBJS " in
16879 *" strtod.$ac_objext "* ) ;;
16880 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16881 ;;
16882 esac
16883
16884 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16885 if test "x$ac_cv_func_pow" = xyes; then :
16886
16887 fi
16888
16889 if test $ac_cv_func_pow = no; then
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16891 $as_echo_n "checking for pow in -lm... " >&6; }
16892 if ${ac_cv_lib_m_pow+:} false; then :
16893 $as_echo_n "(cached) " >&6
16894 else
16895 ac_check_lib_save_LIBS=$LIBS
16896 LIBS="-lm $LIBS"
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16899
16900 /* Override any GCC internal prototype to avoid an error.
16901 Use char because int might match the return type of a GCC
16902 builtin and then its argument prototype would still apply. */
16903 #ifdef __cplusplus
16904 extern "C"
16905 #endif
16906 char pow ();
16907 int
16908 main ()
16909 {
16910 return pow ();
16911 ;
16912 return 0;
16913 }
16914 _ACEOF
16915 if ac_fn_c_try_link "$LINENO"; then :
16916 ac_cv_lib_m_pow=yes
16917 else
16918 ac_cv_lib_m_pow=no
16919 fi
16920 rm -f core conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16922 LIBS=$ac_check_lib_save_LIBS
16923 fi
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16925 $as_echo "$ac_cv_lib_m_pow" >&6; }
16926 if test "x$ac_cv_lib_m_pow" = xyes; then :
16927 POW_LIB=-lm
16928 else
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
16930 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16931 fi
16932
16933 fi
16934
16935 fi
16936
16937 for ac_func in vprintf
16938 do :
16939 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16940 if test "x$ac_cv_func_vprintf" = xyes; then :
16941 cat >>confdefs.h <<_ACEOF
16942 #define HAVE_VPRINTF 1
16943 _ACEOF
16944
16945 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16946 if test "x$ac_cv_func__doprnt" = xyes; then :
16947
16948 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16949
16950 fi
16951
16952 fi
16953 done
16954
16955
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16957 $as_echo_n "checking for sin in -lm... " >&6; }
16958 if ${ac_cv_lib_m_sin+:} false; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16961 ac_check_lib_save_LIBS=$LIBS
16962 LIBS="-lm $LIBS"
16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16965
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 char sin ();
16973 int
16974 main ()
16975 {
16976 return sin ();
16977 ;
16978 return 0;
16979 }
16980 _ACEOF
16981 if ac_fn_c_try_link "$LINENO"; then :
16982 ac_cv_lib_m_sin=yes
16983 else
16984 ac_cv_lib_m_sin=no
16985 fi
16986 rm -f core conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16988 LIBS=$ac_check_lib_save_LIBS
16989 fi
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16991 $as_echo "$ac_cv_lib_m_sin" >&6; }
16992 if test "x$ac_cv_lib_m_sin" = xyes; then :
16993 cat >>confdefs.h <<_ACEOF
16994 #define HAVE_LIBM 1
16995 _ACEOF
16996
16997 LIBS="-lm $LIBS"
16998
16999 fi
17000
17001
17002 if test $PRECISION = q; then
17003
17004
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5
17006 $as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; }
17007 if ${ax_cv_gcc_4_6_0+:} false; then :
17008 $as_echo_n "(cached) " >&6
17009 else
17010
17011 ax_cv_gcc_4_6_0=no
17012 if test "$GCC" = "yes"; then
17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h. */
17015
17016 #ifdef __GNUC__
17017 # if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \
17018 || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0)
17019 yes;
17020 # endif
17021 #endif
17022
17023 _ACEOF
17024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17025 $EGREP "yes" >/dev/null 2>&1; then :
17026 ax_cv_gcc_4_6_0=yes
17027 fi
17028 rm -f conftest*
17029
17030 fi
17031
17032 fi
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5
17034 $as_echo "$ax_cv_gcc_4_6_0" >&6; }
17035 if test "$ax_cv_gcc_4_6_0" = yes; then
17036 :
17037 else
17038 as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5
17039 fi
17040
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5
17042 $as_echo_n "checking for sinq in -lquadmath... " >&6; }
17043 if ${ac_cv_lib_quadmath_sinq+:} false; then :
17044 $as_echo_n "(cached) " >&6
17045 else
17046 ac_check_lib_save_LIBS=$LIBS
17047 LIBS="-lquadmath $LIBS"
17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17050
17051 /* Override any GCC internal prototype to avoid an error.
17052 Use char because int might match the return type of a GCC
17053 builtin and then its argument prototype would still apply. */
17054 #ifdef __cplusplus
17055 extern "C"
17056 #endif
17057 char sinq ();
17058 int
17059 main ()
17060 {
17061 return sinq ();
17062 ;
17063 return 0;
17064 }
17065 _ACEOF
17066 if ac_fn_c_try_link "$LINENO"; then :
17067 ac_cv_lib_quadmath_sinq=yes
17068 else
17069 ac_cv_lib_quadmath_sinq=no
17070 fi
17071 rm -f core conftest.err conftest.$ac_objext \
17072 conftest$ac_exeext conftest.$ac_ext
17073 LIBS=$ac_check_lib_save_LIBS
17074 fi
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5
17076 $as_echo "$ac_cv_lib_quadmath_sinq" >&6; }
17077 if test "x$ac_cv_lib_quadmath_sinq" = xyes; then :
17078 cat >>confdefs.h <<_ACEOF
17079 #define HAVE_LIBQUADMATH 1
17080 _ACEOF
17081
17082 LIBS="-lquadmath $LIBS"
17083
17084 else
17085 as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5
17086 fi
17087
17088 LIBQUADMATH=-lquadmath
17089 fi
17090
17091
17092 for ac_func in BSDgettimeofday gettimeofday gethrtime read_real_time time_base_to_time drand48 sqrt memset posix_memalign memalign _mm_malloc _mm_free clock_gettime mach_absolute_time sysctl abort sinl cosl snprintf memmove strchr getpagesize
17093 do :
17094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17096 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17097 cat >>confdefs.h <<_ACEOF
17098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17099 _ACEOF
17100
17101 fi
17102 done
17103
17104 ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "#include <math.h>
17105 "
17106 if test "x$ac_cv_have_decl_sinl" = xyes; then :
17107 ac_have_decl=1
17108 else
17109 ac_have_decl=0
17110 fi
17111
17112 cat >>confdefs.h <<_ACEOF
17113 #define HAVE_DECL_SINL $ac_have_decl
17114 _ACEOF
17115 ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "#include <math.h>
17116 "
17117 if test "x$ac_cv_have_decl_cosl" = xyes; then :
17118 ac_have_decl=1
17119 else
17120 ac_have_decl=0
17121 fi
17122
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_DECL_COSL $ac_have_decl
17125 _ACEOF
17126 ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "#include <math.h>
17127 "
17128 if test "x$ac_cv_have_decl_sinq" = xyes; then :
17129 ac_have_decl=1
17130 else
17131 ac_have_decl=0
17132 fi
17133
17134 cat >>confdefs.h <<_ACEOF
17135 #define HAVE_DECL_SINQ $ac_have_decl
17136 _ACEOF
17137 ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "#include <math.h>
17138 "
17139 if test "x$ac_cv_have_decl_cosq" = xyes; then :
17140 ac_have_decl=1
17141 else
17142 ac_have_decl=0
17143 fi
17144
17145 cat >>confdefs.h <<_ACEOF
17146 #define HAVE_DECL_COSQ $ac_have_decl
17147 _ACEOF
17148
17149 ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "
17150 #ifdef HAVE_MALLOC_H
17151 #include <malloc.h>
17152 #endif
17153 "
17154 if test "x$ac_cv_have_decl_memalign" = xyes; then :
17155 ac_have_decl=1
17156 else
17157 ac_have_decl=0
17158 fi
17159
17160 cat >>confdefs.h <<_ACEOF
17161 #define HAVE_DECL_MEMALIGN $ac_have_decl
17162 _ACEOF
17163
17164 ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default"
17165 if test "x$ac_cv_have_decl_drand48" = xyes; then :
17166 ac_have_decl=1
17167 else
17168 ac_have_decl=0
17169 fi
17170
17171 cat >>confdefs.h <<_ACEOF
17172 #define HAVE_DECL_DRAND48 $ac_have_decl
17173 _ACEOF
17174 ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default"
17175 if test "x$ac_cv_have_decl_srand48" = xyes; then :
17176 ac_have_decl=1
17177 else
17178 ac_have_decl=0
17179 fi
17180
17181 cat >>confdefs.h <<_ACEOF
17182 #define HAVE_DECL_SRAND48 $ac_have_decl
17183 _ACEOF
17184 ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default"
17185 if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
17186 ac_have_decl=1
17187 else
17188 ac_have_decl=0
17189 fi
17190
17191 cat >>confdefs.h <<_ACEOF
17192 #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
17193 _ACEOF
17194
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5
17196 $as_echo_n "checking for _rtc intrinsic... " >&6; }
17197 rtc_ok=yes
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h. */
17200 #ifdef HAVE_INTRINSICS_H
17201 #include <intrinsics.h>
17202 #endif
17203 int
17204 main ()
17205 {
17206 _rtc()
17207 ;
17208 return 0;
17209 }
17210 _ACEOF
17211 if ac_fn_c_try_link "$LINENO"; then :
17212
17213 $as_echo "#define HAVE__RTC 1" >>confdefs.h
17214
17215 else
17216 rtc_ok=no
17217 fi
17218 rm -f core conftest.err conftest.$ac_objext \
17219 conftest$ac_exeext conftest.$ac_ext
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5
17221 $as_echo "$rtc_ok" >&6; }
17222
17223 if test "$PRECISION" = "l"; then
17224 for ac_func in cosl sinl tanl
17225 do :
17226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17229 cat >>confdefs.h <<_ACEOF
17230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17231 _ACEOF
17232
17233 else
17234 as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5
17235 fi
17236 done
17237
17238 fi
17239
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
17241 $as_echo_n "checking for isnan... " >&6; }
17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17244 #include <math.h>
17245
17246 int
17247 main ()
17248 {
17249 if (!isnan(3.14159)) isnan(2.7183);
17250 ;
17251 return 0;
17252 }
17253 _ACEOF
17254 if ac_fn_c_try_link "$LINENO"; then :
17255 ok=yes
17256 else
17257 ok=no
17258 fi
17259 rm -f core conftest.err conftest.$ac_objext \
17260 conftest$ac_exeext conftest.$ac_ext
17261 if test "$ok" = "yes"; then
17262
17263 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
17264
17265 fi
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
17267 $as_echo "${ok}" >&6; }
17268
17269
17270
17271 ax_gcc_aligns_stack=no
17272 if test "$GCC" = "yes"; then
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5
17274 $as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; }
17275 if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then :
17276 $as_echo_n "(cached) " >&6
17277 else
17278
17279 ax_save_FLAGS=$CFLAGS
17280 CFLAGS="-mpreferred-stack-boundary=4"
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283
17284 int
17285 main ()
17286 {
17287
17288 ;
17289 return 0;
17290 }
17291 _ACEOF
17292 if ac_fn_c_try_compile "$LINENO"; then :
17293 ax_cv_c_flags__mpreferred_stack_boundary_4=yes
17294 else
17295 ax_cv_c_flags__mpreferred_stack_boundary_4=no
17296 fi
17297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17298 CFLAGS=$ax_save_FLAGS
17299 fi
17300
17301 eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
17303 $as_echo "$ax_check_compiler_flags" >&6; }
17304 if test "x$ax_check_compiler_flags" = xyes; then
17305
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5
17307 $as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; }
17308 save_CFLAGS="$CFLAGS"
17309 CFLAGS="-O"
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
17311 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
17312 if ${ax_cv_c_flags__malign_double+:} false; then :
17313 $as_echo_n "(cached) " >&6
17314 else
17315
17316 ax_save_FLAGS=$CFLAGS
17317 CFLAGS="-malign-double"
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320
17321 int
17322 main ()
17323 {
17324
17325 ;
17326 return 0;
17327 }
17328 _ACEOF
17329 if ac_fn_c_try_compile "$LINENO"; then :
17330 ax_cv_c_flags__malign_double=yes
17331 else
17332 ax_cv_c_flags__malign_double=no
17333 fi
17334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335 CFLAGS=$ax_save_FLAGS
17336 fi
17337
17338 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
17340 $as_echo "$ax_check_compiler_flags" >&6; }
17341 if test "x$ax_check_compiler_flags" = xyes; then
17342 CFLAGS="$CFLAGS -malign-double"
17343 else
17344 :
17345 fi
17346
17347 if test "$cross_compiling" = yes; then :
17348
17349
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5
17351 $as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; }
17352 if ${ax_cv_gcc_3_0_0+:} false; then :
17353 $as_echo_n "(cached) " >&6
17354 else
17355
17356 ax_cv_gcc_3_0_0=no
17357 if test "$GCC" = "yes"; then
17358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359 /* end confdefs.h. */
17360
17361 #ifdef __GNUC__
17362 # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \
17363 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0)
17364 yes;
17365 # endif
17366 #endif
17367
17368 _ACEOF
17369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17370 $EGREP "yes" >/dev/null 2>&1; then :
17371 ax_cv_gcc_3_0_0=yes
17372 fi
17373 rm -f conftest*
17374
17375 fi
17376
17377 fi
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5
17379 $as_echo "$ax_cv_gcc_3_0_0" >&6; }
17380 if test "$ax_cv_gcc_3_0_0" = yes; then
17381 ax_gcc_stack_align_bug=no
17382 else
17383 ax_gcc_stack_align_bug=yes
17384 fi
17385
17386 else
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17389 #include <stdlib.h>
17390 # include <stdio.h>
17391 struct yuck { int blechh; };
17392 int one(void) { return 1; }
17393 struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; }
17394 # define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); }
17395 void blah(int foo) { double foobar; CHK_ALIGN(foobar); }
17396 int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1);
17397 CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;}
17398 int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); }
17399
17400 _ACEOF
17401 if ac_fn_c_try_run "$LINENO"; then :
17402 ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no
17403 else
17404 ax_gcc_stack_align_bug=yes
17405 fi
17406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17407 conftest.$ac_objext conftest.beam conftest.$ac_ext
17408 fi
17409
17410 CFLAGS="$save_CFLAGS"
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5
17412 $as_echo "$ax_gcc_aligns_stack" >&6; }
17413
17414 else
17415 :
17416 fi
17417
17418 fi
17419 if test "$ax_gcc_aligns_stack" = yes; then
17420 :
17421 else
17422 :
17423 fi
17424
17425
17426 if test "${enable_debug}" = "yes"; then
17427 CFLAGS="-g"
17428 fi
17429
17430 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
17431 if test "$ac_test_CFLAGS" != "set"; then
17432 if test $ac_cv_c_compiler_gnu = yes; then
17433 CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -Wno-long-long -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs" # -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations
17434 fi
17435 fi
17436 fi
17437
17438 if test "$USE_MAINTAINER_MODE" = yes; then
17439 # Extract the first word of "indent", so it can be a program name with args.
17440 set dummy indent; ac_word=$2
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17442 $as_echo_n "checking for $ac_word... " >&6; }
17443 if ${ac_cv_path_INDENT+:} false; then :
17444 $as_echo_n "(cached) " >&6
17445 else
17446 case $INDENT in
17447 [\\/]* | ?:[\\/]*)
17448 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
17449 ;;
17450 *)
17451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17452 for as_dir in $PATH
17453 do
17454 IFS=$as_save_IFS
17455 test -z "$as_dir" && as_dir=.
17456 for ac_exec_ext in '' $ac_executable_extensions; do
17457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17458 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
17459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17460 break 2
17461 fi
17462 done
17463 done
17464 IFS=$as_save_IFS
17465
17466 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
17467 ;;
17468 esac
17469 fi
17470 INDENT=$ac_cv_path_INDENT
17471 if test -n "$INDENT"; then
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
17473 $as_echo "$INDENT" >&6; }
17474 else
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476 $as_echo "no" >&6; }
17477 fi
17478
17479
17480 # if INDENT is set to 'indent' then we didn't find indent
17481 if test "$INDENT" != indent ; then
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
17483 $as_echo_n "checking if $INDENT is GNU indent... " >&6; }
17484 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17486 $as_echo "yes" >&6; }
17487 INDENT="$INDENT -kr -cs -i5 -l800 -fca -nfc1 -sc -sob -cli4 -TR -Tplanner -TV"
17488 else
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17490 $as_echo "no" >&6; }
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5
17492 $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
17493 fi
17494 else
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: codelets will be ugly" >&5
17496 $as_echo "$as_me: WARNING: no indent program found: codelets will be ugly" >&2;}
17497 INDENT=cat
17498 fi
17499 fi
17500
17501
17502 # Check whether --enable-fortran was given.
17503 if test "${enable_fortran+set}" = set; then :
17504 enableval=$enable_fortran; enable_fortran=$enableval
17505 else
17506 enable_fortran=yes
17507 fi
17508
17509
17510 if test "$enable_fortran" = "yes"; then
17511 ac_ext=f
17512 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17513 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17514 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17515 if test -n "$ac_tool_prefix"; then
17516 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
17517 do
17518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17521 $as_echo_n "checking for $ac_word... " >&6; }
17522 if ${ac_cv_prog_F77+:} false; then :
17523 $as_echo_n "(cached) " >&6
17524 else
17525 if test -n "$F77"; then
17526 ac_cv_prog_F77="$F77" # Let the user override the test.
17527 else
17528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17529 for as_dir in $PATH
17530 do
17531 IFS=$as_save_IFS
17532 test -z "$as_dir" && as_dir=.
17533 for ac_exec_ext in '' $ac_executable_extensions; do
17534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17535 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
17536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17537 break 2
17538 fi
17539 done
17540 done
17541 IFS=$as_save_IFS
17542
17543 fi
17544 fi
17545 F77=$ac_cv_prog_F77
17546 if test -n "$F77"; then
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
17548 $as_echo "$F77" >&6; }
17549 else
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17551 $as_echo "no" >&6; }
17552 fi
17553
17554
17555 test -n "$F77" && break
17556 done
17557 fi
17558 if test -z "$F77"; then
17559 ac_ct_F77=$F77
17560 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
17561 do
17562 # Extract the first word of "$ac_prog", so it can be a program name with args.
17563 set dummy $ac_prog; ac_word=$2
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17565 $as_echo_n "checking for $ac_word... " >&6; }
17566 if ${ac_cv_prog_ac_ct_F77+:} false; then :
17567 $as_echo_n "(cached) " >&6
17568 else
17569 if test -n "$ac_ct_F77"; then
17570 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
17571 else
17572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17573 for as_dir in $PATH
17574 do
17575 IFS=$as_save_IFS
17576 test -z "$as_dir" && as_dir=.
17577 for ac_exec_ext in '' $ac_executable_extensions; do
17578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17579 ac_cv_prog_ac_ct_F77="$ac_prog"
17580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17581 break 2
17582 fi
17583 done
17584 done
17585 IFS=$as_save_IFS
17586
17587 fi
17588 fi
17589 ac_ct_F77=$ac_cv_prog_ac_ct_F77
17590 if test -n "$ac_ct_F77"; then
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
17592 $as_echo "$ac_ct_F77" >&6; }
17593 else
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595 $as_echo "no" >&6; }
17596 fi
17597
17598
17599 test -n "$ac_ct_F77" && break
17600 done
17601
17602 if test "x$ac_ct_F77" = x; then
17603 F77=""
17604 else
17605 case $cross_compiling:$ac_tool_warned in
17606 yes:)
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17609 ac_tool_warned=yes ;;
17610 esac
17611 F77=$ac_ct_F77
17612 fi
17613 fi
17614
17615
17616 # Provide some information about the compiler.
17617 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
17618 set X $ac_compile
17619 ac_compiler=$2
17620 for ac_option in --version -v -V -qversion; do
17621 { { ac_try="$ac_compiler $ac_option >&5"
17622 case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17625 esac
17626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17627 $as_echo "$ac_try_echo"; } >&5
17628 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17629 ac_status=$?
17630 if test -s conftest.err; then
17631 sed '10a\
17632 ... rest of stderr output deleted ...
17633 10q' conftest.err >conftest.er1
17634 cat conftest.er1 >&5
17635 fi
17636 rm -f conftest.er1 conftest.err
17637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17638 test $ac_status = 0; }
17639 done
17640 rm -f a.out
17641
17642 # If we don't use `.F' as extension, the preprocessor is not run on the
17643 # input file. (Note that this only needs to work for GNU compilers.)
17644 ac_save_ext=$ac_ext
17645 ac_ext=F
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
17647 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
17648 if ${ac_cv_f77_compiler_gnu+:} false; then :
17649 $as_echo_n "(cached) " >&6
17650 else
17651 cat > conftest.$ac_ext <<_ACEOF
17652 program main
17653 #ifndef __GNUC__
17654 choke me
17655 #endif
17656
17657 end
17658 _ACEOF
17659 if ac_fn_f77_try_compile "$LINENO"; then :
17660 ac_compiler_gnu=yes
17661 else
17662 ac_compiler_gnu=no
17663 fi
17664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
17666
17667 fi
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
17669 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
17670 ac_ext=$ac_save_ext
17671 ac_test_FFLAGS=${FFLAGS+set}
17672 ac_save_FFLAGS=$FFLAGS
17673 FFLAGS=
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
17675 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
17676 if ${ac_cv_prog_f77_g+:} false; then :
17677 $as_echo_n "(cached) " >&6
17678 else
17679 FFLAGS=-g
17680 cat > conftest.$ac_ext <<_ACEOF
17681 program main
17682
17683 end
17684 _ACEOF
17685 if ac_fn_f77_try_compile "$LINENO"; then :
17686 ac_cv_prog_f77_g=yes
17687 else
17688 ac_cv_prog_f77_g=no
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691
17692 fi
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
17694 $as_echo "$ac_cv_prog_f77_g" >&6; }
17695 if test "$ac_test_FFLAGS" = set; then
17696 FFLAGS=$ac_save_FFLAGS
17697 elif test $ac_cv_prog_f77_g = yes; then
17698 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17699 FFLAGS="-g -O2"
17700 else
17701 FFLAGS="-g"
17702 fi
17703 else
17704 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17705 FFLAGS="-O2"
17706 else
17707 FFLAGS=
17708 fi
17709 fi
17710
17711 if test $ac_compiler_gnu = yes; then
17712 G77=yes
17713 else
17714 G77=
17715 fi
17716 ac_ext=c
17717 ac_cpp='$CPP $CPPFLAGS'
17718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17721
17722 ac_ext=f
17723 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17724 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17726
17727 if test -z "$F77" || test no = "$F77"; then
17728 _lt_disable_F77=yes
17729 fi
17730
17731 archive_cmds_need_lc_F77=no
17732 allow_undefined_flag_F77=
17733 always_export_symbols_F77=no
17734 archive_expsym_cmds_F77=
17735 export_dynamic_flag_spec_F77=
17736 hardcode_direct_F77=no
17737 hardcode_direct_absolute_F77=no
17738 hardcode_libdir_flag_spec_F77=
17739 hardcode_libdir_separator_F77=
17740 hardcode_minus_L_F77=no
17741 hardcode_automatic_F77=no
17742 inherit_rpath_F77=no
17743 module_cmds_F77=
17744 module_expsym_cmds_F77=
17745 link_all_deplibs_F77=unknown
17746 old_archive_cmds_F77=$old_archive_cmds
17747 reload_flag_F77=$reload_flag
17748 reload_cmds_F77=$reload_cmds
17749 no_undefined_flag_F77=
17750 whole_archive_flag_spec_F77=
17751 enable_shared_with_static_runtimes_F77=no
17752
17753 # Source file extension for f77 test sources.
17754 ac_ext=f
17755
17756 # Object file extension for compiled f77 test sources.
17757 objext=o
17758 objext_F77=$objext
17759
17760 # No sense in running all these tests if we already determined that
17761 # the F77 compiler isn't working. Some variables (like enable_shared)
17762 # are currently assumed to apply to all compilers on this platform,
17763 # and will be corrupted by setting them based on a non-working compiler.
17764 if test yes != "$_lt_disable_F77"; then
17765 # Code to be used in simple compile tests
17766 lt_simple_compile_test_code="\
17767 subroutine t
17768 return
17769 end
17770 "
17771
17772 # Code to be used in simple link tests
17773 lt_simple_link_test_code="\
17774 program t
17775 end
17776 "
17777
17778 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17779
17780
17781
17782
17783
17784
17785 # If no C compiler was specified, use CC.
17786 LTCC=${LTCC-"$CC"}
17787
17788 # If no C compiler flags were specified, use CFLAGS.
17789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17790
17791 # Allow CC to be a program name with arguments.
17792 compiler=$CC
17793
17794
17795 # save warnings/boilerplate of simple test code
17796 ac_outfile=conftest.$ac_objext
17797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17799 _lt_compiler_boilerplate=`cat conftest.err`
17800 $RM conftest*
17801
17802 ac_outfile=conftest.$ac_objext
17803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17805 _lt_linker_boilerplate=`cat conftest.err`
17806 $RM -r conftest*
17807
17808
17809 # Allow CC to be a program name with arguments.
17810 lt_save_CC=$CC
17811 lt_save_GCC=$GCC
17812 lt_save_CFLAGS=$CFLAGS
17813 CC=${F77-"f77"}
17814 CFLAGS=$FFLAGS
17815 compiler=$CC
17816 compiler_F77=$CC
17817 func_cc_basename $compiler
17818 cc_basename=$func_cc_basename_result
17819
17820 GCC=$G77
17821 if test -n "$compiler"; then
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17823 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17825 $as_echo "$can_build_shared" >&6; }
17826
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17828 $as_echo_n "checking whether to build shared libraries... " >&6; }
17829 test no = "$can_build_shared" && enable_shared=no
17830
17831 # On AIX, shared libraries and static libraries use the same namespace, and
17832 # are all built from PIC.
17833 case $host_os in
17834 aix3*)
17835 test yes = "$enable_shared" && enable_static=no
17836 if test -n "$RANLIB"; then
17837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17838 postinstall_cmds='$RANLIB $lib'
17839 fi
17840 ;;
17841 aix[4-9]*)
17842 if test ia64 != "$host_cpu"; then
17843 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17844 yes,aix,yes) ;; # shared object as lib.so file only
17845 yes,svr4,*) ;; # shared object as lib.so archive member only
17846 yes,*) enable_static=no ;; # shared object in lib.a archive as well
17847 esac
17848 fi
17849 ;;
17850 esac
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17852 $as_echo "$enable_shared" >&6; }
17853
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17855 $as_echo_n "checking whether to build static libraries... " >&6; }
17856 # Make sure either enable_shared or enable_static is yes.
17857 test yes = "$enable_shared" || enable_static=yes
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17859 $as_echo "$enable_static" >&6; }
17860
17861 GCC_F77=$G77
17862 LD_F77=$LD
17863
17864 ## CAVEAT EMPTOR:
17865 ## There is no encapsulation within the following macros, do not change
17866 ## the running order or otherwise move them around unless you know exactly
17867 ## what you are doing...
17868 lt_prog_compiler_wl_F77=
17869 lt_prog_compiler_pic_F77=
17870 lt_prog_compiler_static_F77=
17871
17872
17873 if test yes = "$GCC"; then
17874 lt_prog_compiler_wl_F77='-Wl,'
17875 lt_prog_compiler_static_F77='-static'
17876
17877 case $host_os in
17878 aix*)
17879 # All AIX code is PIC.
17880 if test ia64 = "$host_cpu"; then
17881 # AIX 5 now supports IA64 processor
17882 lt_prog_compiler_static_F77='-Bstatic'
17883 fi
17884 lt_prog_compiler_pic_F77='-fPIC'
17885 ;;
17886
17887 amigaos*)
17888 case $host_cpu in
17889 powerpc)
17890 # see comment about AmigaOS4 .so support
17891 lt_prog_compiler_pic_F77='-fPIC'
17892 ;;
17893 m68k)
17894 # FIXME: we need at least 68020 code to build shared libraries, but
17895 # adding the '-m68020' flag to GCC prevents building anything better,
17896 # like '-m68040'.
17897 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17898 ;;
17899 esac
17900 ;;
17901
17902 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17903 # PIC is the default for these OSes.
17904 ;;
17905
17906 mingw* | cygwin* | pw32* | os2* | cegcc*)
17907 # This hack is so that the source file can tell whether it is being
17908 # built for inclusion in a dll (and should export symbols for example).
17909 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17910 # (--disable-auto-import) libraries
17911 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17912 case $host_os in
17913 os2*)
17914 lt_prog_compiler_static_F77='$wl-static'
17915 ;;
17916 esac
17917 ;;
17918
17919 darwin* | rhapsody*)
17920 # PIC is the default on this platform
17921 # Common symbols not allowed in MH_DYLIB files
17922 lt_prog_compiler_pic_F77='-fno-common'
17923 ;;
17924
17925 haiku*)
17926 # PIC is the default for Haiku.
17927 # The "-static" flag exists, but is broken.
17928 lt_prog_compiler_static_F77=
17929 ;;
17930
17931 hpux*)
17932 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17933 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17934 # sets the default TLS model and affects inlining.
17935 case $host_cpu in
17936 hppa*64*)
17937 # +Z the default
17938 ;;
17939 *)
17940 lt_prog_compiler_pic_F77='-fPIC'
17941 ;;
17942 esac
17943 ;;
17944
17945 interix[3-9]*)
17946 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17947 # Instead, we relocate shared libraries at runtime.
17948 ;;
17949
17950 msdosdjgpp*)
17951 # Just because we use GCC doesn't mean we suddenly get shared libraries
17952 # on systems that don't support them.
17953 lt_prog_compiler_can_build_shared_F77=no
17954 enable_shared=no
17955 ;;
17956
17957 *nto* | *qnx*)
17958 # QNX uses GNU C++, but need to define -shared option too, otherwise
17959 # it will coredump.
17960 lt_prog_compiler_pic_F77='-fPIC -shared'
17961 ;;
17962
17963 sysv4*MP*)
17964 if test -d /usr/nec; then
17965 lt_prog_compiler_pic_F77=-Kconform_pic
17966 fi
17967 ;;
17968
17969 *)
17970 lt_prog_compiler_pic_F77='-fPIC'
17971 ;;
17972 esac
17973
17974 case $cc_basename in
17975 nvcc*) # Cuda Compiler Driver 2.2
17976 lt_prog_compiler_wl_F77='-Xlinker '
17977 if test -n "$lt_prog_compiler_pic_F77"; then
17978 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
17979 fi
17980 ;;
17981 esac
17982 else
17983 # PORTME Check for flag to pass linker flags through the system compiler.
17984 case $host_os in
17985 aix*)
17986 lt_prog_compiler_wl_F77='-Wl,'
17987 if test ia64 = "$host_cpu"; then
17988 # AIX 5 now supports IA64 processor
17989 lt_prog_compiler_static_F77='-Bstatic'
17990 else
17991 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17992 fi
17993 ;;
17994
17995 darwin* | rhapsody*)
17996 # PIC is the default on this platform
17997 # Common symbols not allowed in MH_DYLIB files
17998 lt_prog_compiler_pic_F77='-fno-common'
17999 case $cc_basename in
18000 nagfor*)
18001 # NAG Fortran compiler
18002 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
18003 lt_prog_compiler_pic_F77='-PIC'
18004 lt_prog_compiler_static_F77='-Bstatic'
18005 ;;
18006 esac
18007 ;;
18008
18009 mingw* | cygwin* | pw32* | os2* | cegcc*)
18010 # This hack is so that the source file can tell whether it is being
18011 # built for inclusion in a dll (and should export symbols for example).
18012 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18013 case $host_os in
18014 os2*)
18015 lt_prog_compiler_static_F77='$wl-static'
18016 ;;
18017 esac
18018 ;;
18019
18020 hpux9* | hpux10* | hpux11*)
18021 lt_prog_compiler_wl_F77='-Wl,'
18022 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18023 # not for PA HP-UX.
18024 case $host_cpu in
18025 hppa*64*|ia64*)
18026 # +Z the default
18027 ;;
18028 *)
18029 lt_prog_compiler_pic_F77='+Z'
18030 ;;
18031 esac
18032 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18033 lt_prog_compiler_static_F77='$wl-a ${wl}archive'
18034 ;;
18035
18036 irix5* | irix6* | nonstopux*)
18037 lt_prog_compiler_wl_F77='-Wl,'
18038 # PIC (with -KPIC) is the default.
18039 lt_prog_compiler_static_F77='-non_shared'
18040 ;;
18041
18042 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18043 case $cc_basename in
18044 # old Intel for x86_64, which still supported -KPIC.
18045 ecc*)
18046 lt_prog_compiler_wl_F77='-Wl,'
18047 lt_prog_compiler_pic_F77='-KPIC'
18048 lt_prog_compiler_static_F77='-static'
18049 ;;
18050 # icc used to be incompatible with GCC.
18051 # ICC 10 doesn't accept -KPIC any more.
18052 icc* | ifort*)
18053 lt_prog_compiler_wl_F77='-Wl,'
18054 lt_prog_compiler_pic_F77='-fPIC'
18055 lt_prog_compiler_static_F77='-static'
18056 ;;
18057 # Lahey Fortran 8.1.
18058 lf95*)
18059 lt_prog_compiler_wl_F77='-Wl,'
18060 lt_prog_compiler_pic_F77='--shared'
18061 lt_prog_compiler_static_F77='--static'
18062 ;;
18063 nagfor*)
18064 # NAG Fortran compiler
18065 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
18066 lt_prog_compiler_pic_F77='-PIC'
18067 lt_prog_compiler_static_F77='-Bstatic'
18068 ;;
18069 tcc*)
18070 # Fabrice Bellard et al's Tiny C Compiler
18071 lt_prog_compiler_wl_F77='-Wl,'
18072 lt_prog_compiler_pic_F77='-fPIC'
18073 lt_prog_compiler_static_F77='-static'
18074 ;;
18075 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18076 # Portland Group compilers (*not* the Pentium gcc compiler,
18077 # which looks to be a dead project)
18078 lt_prog_compiler_wl_F77='-Wl,'
18079 lt_prog_compiler_pic_F77='-fpic'
18080 lt_prog_compiler_static_F77='-Bstatic'
18081 ;;
18082 ccc*)
18083 lt_prog_compiler_wl_F77='-Wl,'
18084 # All Alpha code is PIC.
18085 lt_prog_compiler_static_F77='-non_shared'
18086 ;;
18087 xl* | bgxl* | bgf* | mpixl*)
18088 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18089 lt_prog_compiler_wl_F77='-Wl,'
18090 lt_prog_compiler_pic_F77='-qpic'
18091 lt_prog_compiler_static_F77='-qstaticlink'
18092 ;;
18093 *)
18094 case `$CC -V 2>&1 | sed 5q` in
18095 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
18096 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18097 lt_prog_compiler_pic_F77='-KPIC'
18098 lt_prog_compiler_static_F77='-Bstatic'
18099 lt_prog_compiler_wl_F77=''
18100 ;;
18101 *Sun\ F* | *Sun*Fortran*)
18102 lt_prog_compiler_pic_F77='-KPIC'
18103 lt_prog_compiler_static_F77='-Bstatic'
18104 lt_prog_compiler_wl_F77='-Qoption ld '
18105 ;;
18106 *Sun\ C*)
18107 # Sun C 5.9
18108 lt_prog_compiler_pic_F77='-KPIC'
18109 lt_prog_compiler_static_F77='-Bstatic'
18110 lt_prog_compiler_wl_F77='-Wl,'
18111 ;;
18112 *Intel*\ [CF]*Compiler*)
18113 lt_prog_compiler_wl_F77='-Wl,'
18114 lt_prog_compiler_pic_F77='-fPIC'
18115 lt_prog_compiler_static_F77='-static'
18116 ;;
18117 *Portland\ Group*)
18118 lt_prog_compiler_wl_F77='-Wl,'
18119 lt_prog_compiler_pic_F77='-fpic'
18120 lt_prog_compiler_static_F77='-Bstatic'
18121 ;;
18122 esac
18123 ;;
18124 esac
18125 ;;
18126
18127 newsos6)
18128 lt_prog_compiler_pic_F77='-KPIC'
18129 lt_prog_compiler_static_F77='-Bstatic'
18130 ;;
18131
18132 *nto* | *qnx*)
18133 # QNX uses GNU C++, but need to define -shared option too, otherwise
18134 # it will coredump.
18135 lt_prog_compiler_pic_F77='-fPIC -shared'
18136 ;;
18137
18138 osf3* | osf4* | osf5*)
18139 lt_prog_compiler_wl_F77='-Wl,'
18140 # All OSF/1 code is PIC.
18141 lt_prog_compiler_static_F77='-non_shared'
18142 ;;
18143
18144 rdos*)
18145 lt_prog_compiler_static_F77='-non_shared'
18146 ;;
18147
18148 solaris*)
18149 lt_prog_compiler_pic_F77='-KPIC'
18150 lt_prog_compiler_static_F77='-Bstatic'
18151 case $cc_basename in
18152 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
18153 lt_prog_compiler_wl_F77='-Qoption ld ';;
18154 *)
18155 lt_prog_compiler_wl_F77='-Wl,';;
18156 esac
18157 ;;
18158
18159 sunos4*)
18160 lt_prog_compiler_wl_F77='-Qoption ld '
18161 lt_prog_compiler_pic_F77='-PIC'
18162 lt_prog_compiler_static_F77='-Bstatic'
18163 ;;
18164
18165 sysv4 | sysv4.2uw2* | sysv4.3*)
18166 lt_prog_compiler_wl_F77='-Wl,'
18167 lt_prog_compiler_pic_F77='-KPIC'
18168 lt_prog_compiler_static_F77='-Bstatic'
18169 ;;
18170
18171 sysv4*MP*)
18172 if test -d /usr/nec; then
18173 lt_prog_compiler_pic_F77='-Kconform_pic'
18174 lt_prog_compiler_static_F77='-Bstatic'
18175 fi
18176 ;;
18177
18178 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18179 lt_prog_compiler_wl_F77='-Wl,'
18180 lt_prog_compiler_pic_F77='-KPIC'
18181 lt_prog_compiler_static_F77='-Bstatic'
18182 ;;
18183
18184 unicos*)
18185 lt_prog_compiler_wl_F77='-Wl,'
18186 lt_prog_compiler_can_build_shared_F77=no
18187 ;;
18188
18189 uts4*)
18190 lt_prog_compiler_pic_F77='-pic'
18191 lt_prog_compiler_static_F77='-Bstatic'
18192 ;;
18193
18194 *)
18195 lt_prog_compiler_can_build_shared_F77=no
18196 ;;
18197 esac
18198 fi
18199
18200 case $host_os in
18201 # For platforms that do not support PIC, -DPIC is meaningless:
18202 *djgpp*)
18203 lt_prog_compiler_pic_F77=
18204 ;;
18205 *)
18206 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18207 ;;
18208 esac
18209
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18211 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18212 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
18213 $as_echo_n "(cached) " >&6
18214 else
18215 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
18216 fi
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
18218 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
18219 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
18220
18221 #
18222 # Check to make sure the PIC flag actually works.
18223 #
18224 if test -n "$lt_prog_compiler_pic_F77"; then
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18226 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
18227 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
18228 $as_echo_n "(cached) " >&6
18229 else
18230 lt_cv_prog_compiler_pic_works_F77=no
18231 ac_outfile=conftest.$ac_objext
18232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18233 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment
18234 # Insert the option either (1) after the last *FLAGS variable, or
18235 # (2) before a word containing "conftest.", or (3) at the end.
18236 # Note that $ac_compile itself does not contain backslashes and begins
18237 # with a dollar sign (not a hyphen), so the echo should work correctly.
18238 # The option is referenced via a variable to avoid confusing sed.
18239 lt_compile=`echo "$ac_compile" | $SED \
18240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18242 -e 's:$: $lt_compiler_flag:'`
18243 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18244 (eval "$lt_compile" 2>conftest.err)
18245 ac_status=$?
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 if (exit $ac_status) && test -s "$ac_outfile"; then
18249 # The compiler can only warn and ignore the option if not recognized
18250 # So say no if there are warnings other than the usual output.
18251 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18254 lt_cv_prog_compiler_pic_works_F77=yes
18255 fi
18256 fi
18257 $RM conftest*
18258
18259 fi
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
18261 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
18262
18263 if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then
18264 case $lt_prog_compiler_pic_F77 in
18265 "" | " "*) ;;
18266 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18267 esac
18268 else
18269 lt_prog_compiler_pic_F77=
18270 lt_prog_compiler_can_build_shared_F77=no
18271 fi
18272
18273 fi
18274
18275
18276
18277
18278
18279 #
18280 # Check to make sure the static flag actually works.
18281 #
18282 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18284 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18285 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
18286 $as_echo_n "(cached) " >&6
18287 else
18288 lt_cv_prog_compiler_static_works_F77=no
18289 save_LDFLAGS=$LDFLAGS
18290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18293 # The linker can only warn and ignore the option if not recognized
18294 # So say no if there are warnings
18295 if test -s conftest.err; then
18296 # Append any errors to the config.log.
18297 cat conftest.err 1>&5
18298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18300 if diff conftest.exp conftest.er2 >/dev/null; then
18301 lt_cv_prog_compiler_static_works_F77=yes
18302 fi
18303 else
18304 lt_cv_prog_compiler_static_works_F77=yes
18305 fi
18306 fi
18307 $RM -r conftest*
18308 LDFLAGS=$save_LDFLAGS
18309
18310 fi
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
18312 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
18313
18314 if test yes = "$lt_cv_prog_compiler_static_works_F77"; then
18315 :
18316 else
18317 lt_prog_compiler_static_F77=
18318 fi
18319
18320
18321
18322
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18324 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18325 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
18326 $as_echo_n "(cached) " >&6
18327 else
18328 lt_cv_prog_compiler_c_o_F77=no
18329 $RM -r conftest 2>/dev/null
18330 mkdir conftest
18331 cd conftest
18332 mkdir out
18333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18334
18335 lt_compiler_flag="-o out/conftest2.$ac_objext"
18336 # Insert the option either (1) after the last *FLAGS variable, or
18337 # (2) before a word containing "conftest.", or (3) at the end.
18338 # Note that $ac_compile itself does not contain backslashes and begins
18339 # with a dollar sign (not a hyphen), so the echo should work correctly.
18340 lt_compile=`echo "$ac_compile" | $SED \
18341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18343 -e 's:$: $lt_compiler_flag:'`
18344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18345 (eval "$lt_compile" 2>out/conftest.err)
18346 ac_status=$?
18347 cat out/conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18350 then
18351 # The compiler can only warn and ignore the option if not recognized
18352 # So say no if there are warnings
18353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18356 lt_cv_prog_compiler_c_o_F77=yes
18357 fi
18358 fi
18359 chmod u+w . 2>&5
18360 $RM conftest*
18361 # SGI C++ compiler will create directory out/ii_files/ for
18362 # template instantiation
18363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18364 $RM out/* && rmdir out
18365 cd ..
18366 $RM -r conftest
18367 $RM conftest*
18368
18369 fi
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
18371 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18372
18373
18374
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18377 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
18378 $as_echo_n "(cached) " >&6
18379 else
18380 lt_cv_prog_compiler_c_o_F77=no
18381 $RM -r conftest 2>/dev/null
18382 mkdir conftest
18383 cd conftest
18384 mkdir out
18385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18386
18387 lt_compiler_flag="-o out/conftest2.$ac_objext"
18388 # Insert the option either (1) after the last *FLAGS variable, or
18389 # (2) before a word containing "conftest.", or (3) at the end.
18390 # Note that $ac_compile itself does not contain backslashes and begins
18391 # with a dollar sign (not a hyphen), so the echo should work correctly.
18392 lt_compile=`echo "$ac_compile" | $SED \
18393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18395 -e 's:$: $lt_compiler_flag:'`
18396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18397 (eval "$lt_compile" 2>out/conftest.err)
18398 ac_status=$?
18399 cat out/conftest.err >&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18402 then
18403 # The compiler can only warn and ignore the option if not recognized
18404 # So say no if there are warnings
18405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18408 lt_cv_prog_compiler_c_o_F77=yes
18409 fi
18410 fi
18411 chmod u+w . 2>&5
18412 $RM conftest*
18413 # SGI C++ compiler will create directory out/ii_files/ for
18414 # template instantiation
18415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18416 $RM out/* && rmdir out
18417 cd ..
18418 $RM -r conftest
18419 $RM conftest*
18420
18421 fi
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
18423 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18424
18425
18426
18427
18428 hard_links=nottested
18429 if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then
18430 # do not overwrite the value of need_locks provided by the user
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18432 $as_echo_n "checking if we can lock with hard links... " >&6; }
18433 hard_links=yes
18434 $RM conftest*
18435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18436 touch conftest.a
18437 ln conftest.a conftest.b 2>&5 || hard_links=no
18438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18440 $as_echo "$hard_links" >&6; }
18441 if test no = "$hard_links"; then
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18443 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18444 need_locks=warn
18445 fi
18446 else
18447 need_locks=no
18448 fi
18449
18450
18451
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18453 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18454
18455 runpath_var=
18456 allow_undefined_flag_F77=
18457 always_export_symbols_F77=no
18458 archive_cmds_F77=
18459 archive_expsym_cmds_F77=
18460 compiler_needs_object_F77=no
18461 enable_shared_with_static_runtimes_F77=no
18462 export_dynamic_flag_spec_F77=
18463 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18464 hardcode_automatic_F77=no
18465 hardcode_direct_F77=no
18466 hardcode_direct_absolute_F77=no
18467 hardcode_libdir_flag_spec_F77=
18468 hardcode_libdir_separator_F77=
18469 hardcode_minus_L_F77=no
18470 hardcode_shlibpath_var_F77=unsupported
18471 inherit_rpath_F77=no
18472 link_all_deplibs_F77=unknown
18473 module_cmds_F77=
18474 module_expsym_cmds_F77=
18475 old_archive_from_new_cmds_F77=
18476 old_archive_from_expsyms_cmds_F77=
18477 thread_safe_flag_spec_F77=
18478 whole_archive_flag_spec_F77=
18479 # include_expsyms should be a list of space-separated symbols to be *always*
18480 # included in the symbol list
18481 include_expsyms_F77=
18482 # exclude_expsyms can be an extended regexp of symbols to exclude
18483 # it will be wrapped by ' (' and ')$', so one must not match beginning or
18484 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
18485 # as well as any symbol that contains 'd'.
18486 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18487 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18488 # platforms (ab)use it in PIC code, but their linkers get confused if
18489 # the symbol is explicitly referenced. Since portable code cannot
18490 # rely on this symbol name, it's probably fine to never include it in
18491 # preloaded symbol tables.
18492 # Exclude shared library initialization/finalization symbols.
18493 extract_expsyms_cmds=
18494
18495 case $host_os in
18496 cygwin* | mingw* | pw32* | cegcc*)
18497 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18498 # When not using gcc, we currently assume that we are using
18499 # Microsoft Visual C++.
18500 if test yes != "$GCC"; then
18501 with_gnu_ld=no
18502 fi
18503 ;;
18504 interix*)
18505 # we just hope/assume this is gcc and not c89 (= MSVC++)
18506 with_gnu_ld=yes
18507 ;;
18508 openbsd* | bitrig*)
18509 with_gnu_ld=no
18510 ;;
18511 linux* | k*bsd*-gnu | gnu*)
18512 link_all_deplibs_F77=no
18513 ;;
18514 esac
18515
18516 ld_shlibs_F77=yes
18517
18518 # On some targets, GNU ld is compatible enough with the native linker
18519 # that we're better off using the native interface for both.
18520 lt_use_gnu_ld_interface=no
18521 if test yes = "$with_gnu_ld"; then
18522 case $host_os in
18523 aix*)
18524 # The AIX port of GNU ld has always aspired to compatibility
18525 # with the native linker. However, as the warning in the GNU ld
18526 # block says, versions before 2.19.5* couldn't really create working
18527 # shared libraries, regardless of the interface used.
18528 case `$LD -v 2>&1` in
18529 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
18530 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
18531 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
18532 *)
18533 lt_use_gnu_ld_interface=yes
18534 ;;
18535 esac
18536 ;;
18537 *)
18538 lt_use_gnu_ld_interface=yes
18539 ;;
18540 esac
18541 fi
18542
18543 if test yes = "$lt_use_gnu_ld_interface"; then
18544 # If archive_cmds runs LD, not CC, wlarc should be empty
18545 wlarc='$wl'
18546
18547 # Set some defaults for GNU ld with shared library support. These
18548 # are reset later if shared libraries are not supported. Putting them
18549 # here allows them to be overridden if necessary.
18550 runpath_var=LD_RUN_PATH
18551 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
18552 export_dynamic_flag_spec_F77='$wl--export-dynamic'
18553 # ancient GNU ld didn't support --whole-archive et. al.
18554 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18555 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18556 else
18557 whole_archive_flag_spec_F77=
18558 fi
18559 supports_anon_versioning=no
18560 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
18561 *GNU\ gold*) supports_anon_versioning=yes ;;
18562 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18563 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18564 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18565 *\ 2.11.*) ;; # other 2.11 versions
18566 *) supports_anon_versioning=yes ;;
18567 esac
18568
18569 # See if GNU ld supports shared libraries.
18570 case $host_os in
18571 aix[3-9]*)
18572 # On AIX/PPC, the GNU linker is very broken
18573 if test ia64 != "$host_cpu"; then
18574 ld_shlibs_F77=no
18575 cat <<_LT_EOF 1>&2
18576
18577 *** Warning: the GNU linker, at least up to release 2.19, is reported
18578 *** to be unable to reliably create shared libraries on AIX.
18579 *** Therefore, libtool is disabling shared libraries support. If you
18580 *** really care for shared libraries, you may want to install binutils
18581 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18582 *** You will then need to restart the configuration process.
18583
18584 _LT_EOF
18585 fi
18586 ;;
18587
18588 amigaos*)
18589 case $host_cpu in
18590 powerpc)
18591 # see comment about AmigaOS4 .so support
18592 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18593 archive_expsym_cmds_F77=''
18594 ;;
18595 m68k)
18596 archive_cmds_F77='$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)'
18597 hardcode_libdir_flag_spec_F77='-L$libdir'
18598 hardcode_minus_L_F77=yes
18599 ;;
18600 esac
18601 ;;
18602
18603 beos*)
18604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18605 allow_undefined_flag_F77=unsupported
18606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18607 # support --undefined. This deserves some investigation. FIXME
18608 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18609 else
18610 ld_shlibs_F77=no
18611 fi
18612 ;;
18613
18614 cygwin* | mingw* | pw32* | cegcc*)
18615 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18616 # as there is no search path for DLLs.
18617 hardcode_libdir_flag_spec_F77='-L$libdir'
18618 export_dynamic_flag_spec_F77='$wl--export-all-symbols'
18619 allow_undefined_flag_F77=unsupported
18620 always_export_symbols_F77=no
18621 enable_shared_with_static_runtimes_F77=yes
18622 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18623 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18624
18625 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18626 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18627 # If the export-symbols file already is a .def file, use it as
18628 # is; otherwise, prepend EXPORTS...
18629 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
18630 cp $export_symbols $output_objdir/$soname.def;
18631 else
18632 echo EXPORTS > $output_objdir/$soname.def;
18633 cat $export_symbols >> $output_objdir/$soname.def;
18634 fi~
18635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18636 else
18637 ld_shlibs_F77=no
18638 fi
18639 ;;
18640
18641 haiku*)
18642 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18643 link_all_deplibs_F77=yes
18644 ;;
18645
18646 os2*)
18647 hardcode_libdir_flag_spec_F77='-L$libdir'
18648 hardcode_minus_L_F77=yes
18649 allow_undefined_flag_F77=unsupported
18650 shrext_cmds=.dll
18651 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18652 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18653 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18654 $ECHO EXPORTS >> $output_objdir/$libname.def~
18655 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18657 emximp -o $lib $output_objdir/$libname.def'
18658 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18659 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18660 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18661 $ECHO EXPORTS >> $output_objdir/$libname.def~
18662 prefix_cmds="$SED"~
18663 if test EXPORTS = "`$SED 1q $export_symbols`"; then
18664 prefix_cmds="$prefix_cmds -e 1d";
18665 fi~
18666 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18667 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18669 emximp -o $lib $output_objdir/$libname.def'
18670 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18671 enable_shared_with_static_runtimes_F77=yes
18672 ;;
18673
18674 interix[3-9]*)
18675 hardcode_direct_F77=no
18676 hardcode_shlibpath_var_F77=no
18677 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
18678 export_dynamic_flag_spec_F77='$wl-E'
18679 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18680 # Instead, shared libraries are loaded at an image base (0x10000000 by
18681 # default) and relocated if they conflict, which is a slow very memory
18682 # consuming and fragmenting process. To avoid this, we pick a random,
18683 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18684 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18685 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18686 archive_expsym_cmds_F77='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'
18687 ;;
18688
18689 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18690 tmp_diet=no
18691 if test linux-dietlibc = "$host_os"; then
18692 case $cc_basename in
18693 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18694 esac
18695 fi
18696 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18697 && test no = "$tmp_diet"
18698 then
18699 tmp_addflag=' $pic_flag'
18700 tmp_sharedflag='-shared'
18701 case $cc_basename,$host_cpu in
18702 pgcc*) # Portland Group C compiler
18703 whole_archive_flag_spec_F77='$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'
18704 tmp_addflag=' $pic_flag'
18705 ;;
18706 pgf77* | pgf90* | pgf95* | pgfortran*)
18707 # Portland Group f77 and f90 compilers
18708 whole_archive_flag_spec_F77='$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'
18709 tmp_addflag=' $pic_flag -Mnomain' ;;
18710 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18711 tmp_addflag=' -i_dynamic' ;;
18712 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18713 tmp_addflag=' -i_dynamic -nofor_main' ;;
18714 ifc* | ifort*) # Intel Fortran compiler
18715 tmp_addflag=' -nofor_main' ;;
18716 lf95*) # Lahey Fortran 8.1
18717 whole_archive_flag_spec_F77=
18718 tmp_sharedflag='--shared' ;;
18719 nagfor*) # NAGFOR 5.3
18720 tmp_sharedflag='-Wl,-shared' ;;
18721 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18722 tmp_sharedflag='-qmkshrobj'
18723 tmp_addflag= ;;
18724 nvcc*) # Cuda Compiler Driver 2.2
18725 whole_archive_flag_spec_F77='$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'
18726 compiler_needs_object_F77=yes
18727 ;;
18728 esac
18729 case `$CC -V 2>&1 | sed 5q` in
18730 *Sun\ C*) # Sun C 5.9
18731 whole_archive_flag_spec_F77='$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'
18732 compiler_needs_object_F77=yes
18733 tmp_sharedflag='-G' ;;
18734 *Sun\ F*) # Sun Fortran 8.3
18735 tmp_sharedflag='-G' ;;
18736 esac
18737 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18738
18739 if test yes = "$supports_anon_versioning"; then
18740 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18742 echo "local: *; };" >> $output_objdir/$libname.ver~
18743 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18744 fi
18745
18746 case $cc_basename in
18747 tcc*)
18748 export_dynamic_flag_spec_F77='-rdynamic'
18749 ;;
18750 xlf* | bgf* | bgxlf* | mpixlf*)
18751 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18752 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
18753 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
18754 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
18755 if test yes = "$supports_anon_versioning"; then
18756 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18758 echo "local: *; };" >> $output_objdir/$libname.ver~
18759 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18760 fi
18761 ;;
18762 esac
18763 else
18764 ld_shlibs_F77=no
18765 fi
18766 ;;
18767
18768 netbsd* | netbsdelf*-gnu)
18769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18770 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18771 wlarc=
18772 else
18773 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18774 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18775 fi
18776 ;;
18777
18778 solaris*)
18779 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18780 ld_shlibs_F77=no
18781 cat <<_LT_EOF 1>&2
18782
18783 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18784 *** create shared libraries on Solaris systems. Therefore, libtool
18785 *** is disabling shared libraries support. We urge you to upgrade GNU
18786 *** binutils to release 2.9.1 or newer. Another option is to modify
18787 *** your PATH or compiler configuration so that the native linker is
18788 *** used, and then restart.
18789
18790 _LT_EOF
18791 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18792 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18793 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18794 else
18795 ld_shlibs_F77=no
18796 fi
18797 ;;
18798
18799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18800 case `$LD -v 2>&1` in
18801 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18802 ld_shlibs_F77=no
18803 cat <<_LT_EOF 1>&2
18804
18805 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
18806 *** reliably create shared libraries on SCO systems. Therefore, libtool
18807 *** is disabling shared libraries support. We urge you to upgrade GNU
18808 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18809 *** your PATH or compiler configuration so that the native linker is
18810 *** used, and then restart.
18811
18812 _LT_EOF
18813 ;;
18814 *)
18815 # For security reasons, it is highly recommended that you always
18816 # use absolute paths for naming shared libraries, and exclude the
18817 # DT_RUNPATH tag from executables and libraries. But doing so
18818 # requires that you compile everything twice, which is a pain.
18819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18820 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
18821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18822 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18823 else
18824 ld_shlibs_F77=no
18825 fi
18826 ;;
18827 esac
18828 ;;
18829
18830 sunos4*)
18831 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18832 wlarc=
18833 hardcode_direct_F77=yes
18834 hardcode_shlibpath_var_F77=no
18835 ;;
18836
18837 *)
18838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18839 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18840 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18841 else
18842 ld_shlibs_F77=no
18843 fi
18844 ;;
18845 esac
18846
18847 if test no = "$ld_shlibs_F77"; then
18848 runpath_var=
18849 hardcode_libdir_flag_spec_F77=
18850 export_dynamic_flag_spec_F77=
18851 whole_archive_flag_spec_F77=
18852 fi
18853 else
18854 # PORTME fill in a description of your system's linker (not GNU ld)
18855 case $host_os in
18856 aix3*)
18857 allow_undefined_flag_F77=unsupported
18858 always_export_symbols_F77=yes
18859 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18860 # Note: this linker hardcodes the directories in LIBPATH if there
18861 # are no directories specified by -L.
18862 hardcode_minus_L_F77=yes
18863 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
18864 # Neither direct hardcoding nor static linking is supported with a
18865 # broken collect2.
18866 hardcode_direct_F77=unsupported
18867 fi
18868 ;;
18869
18870 aix[4-9]*)
18871 if test ia64 = "$host_cpu"; then
18872 # On IA64, the linker does run time linking by default, so we don't
18873 # have to do anything special.
18874 aix_use_runtimelinking=no
18875 exp_sym_flag='-Bexport'
18876 no_entry_flag=
18877 else
18878 # If we're using GNU nm, then we don't want the "-C" option.
18879 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18880 # Without the "-l" option, or with the "-B" option, AIX nm treats
18881 # weak defined symbols like other global defined symbols, whereas
18882 # GNU nm marks them as "W".
18883 # While the 'weak' keyword is ignored in the Export File, we need
18884 # it in the Import File for the 'aix-soname' feature, so we have
18885 # to replace the "-B" option with "-P" for AIX nm.
18886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18887 export_symbols_cmds_F77='$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'
18888 else
18889 export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 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'
18890 fi
18891 aix_use_runtimelinking=no
18892
18893 # Test if we are trying to use run time linking or normal
18894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18895 # have runtime linking enabled, and use it for executables.
18896 # For shared libraries, we enable/disable runtime linking
18897 # depending on the kind of the shared library created -
18898 # when "with_aix_soname,aix_use_runtimelinking" is:
18899 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
18900 # "aix,yes" lib.so shared, rtl:yes, for executables
18901 # lib.a static archive
18902 # "both,no" lib.so.V(shr.o) shared, rtl:yes
18903 # lib.a(lib.so.V) shared, rtl:no, for executables
18904 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18905 # lib.a(lib.so.V) shared, rtl:no
18906 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
18907 # lib.a static archive
18908 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18909 for ld_flag in $LDFLAGS; do
18910 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
18911 aix_use_runtimelinking=yes
18912 break
18913 fi
18914 done
18915 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18916 # With aix-soname=svr4, we create the lib.so.V shared archives only,
18917 # so we don't have lib.a shared libs to link our executables.
18918 # We have to force runtime linking in this case.
18919 aix_use_runtimelinking=yes
18920 LDFLAGS="$LDFLAGS -Wl,-brtl"
18921 fi
18922 ;;
18923 esac
18924
18925 exp_sym_flag='-bexport'
18926 no_entry_flag='-bnoentry'
18927 fi
18928
18929 # When large executables or shared objects are built, AIX ld can
18930 # have problems creating the table of contents. If linking a library
18931 # or program results in "error TOC overflow" add -mminimal-toc to
18932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18934
18935 archive_cmds_F77=''
18936 hardcode_direct_F77=yes
18937 hardcode_direct_absolute_F77=yes
18938 hardcode_libdir_separator_F77=':'
18939 link_all_deplibs_F77=yes
18940 file_list_spec_F77='$wl-f,'
18941 case $with_aix_soname,$aix_use_runtimelinking in
18942 aix,*) ;; # traditional, no import file
18943 svr4,* | *,yes) # use import file
18944 # The Import File defines what to hardcode.
18945 hardcode_direct_F77=no
18946 hardcode_direct_absolute_F77=no
18947 ;;
18948 esac
18949
18950 if test yes = "$GCC"; then
18951 case $host_os in aix4.[012]|aix4.[012].*)
18952 # We only want to do this on AIX 4.2 and lower, the check
18953 # below for broken collect2 doesn't work under 4.3+
18954 collect2name=`$CC -print-prog-name=collect2`
18955 if test -f "$collect2name" &&
18956 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18957 then
18958 # We have reworked collect2
18959 :
18960 else
18961 # We have old collect2
18962 hardcode_direct_F77=unsupported
18963 # It fails to find uninstalled libraries when the uninstalled
18964 # path is not listed in the libpath. Setting hardcode_minus_L
18965 # to unsupported forces relinking
18966 hardcode_minus_L_F77=yes
18967 hardcode_libdir_flag_spec_F77='-L$libdir'
18968 hardcode_libdir_separator_F77=
18969 fi
18970 ;;
18971 esac
18972 shared_flag='-shared'
18973 if test yes = "$aix_use_runtimelinking"; then
18974 shared_flag="$shared_flag "'$wl-G'
18975 fi
18976 # Need to ensure runtime linking is disabled for the traditional
18977 # shared library, or the linker may eventually find shared libraries
18978 # /with/ Import File - we do not want to mix them.
18979 shared_flag_aix='-shared'
18980 shared_flag_svr4='-shared $wl-G'
18981 else
18982 # not using gcc
18983 if test ia64 = "$host_cpu"; then
18984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18985 # chokes on -Wl,-G. The following line is correct:
18986 shared_flag='-G'
18987 else
18988 if test yes = "$aix_use_runtimelinking"; then
18989 shared_flag='$wl-G'
18990 else
18991 shared_flag='$wl-bM:SRE'
18992 fi
18993 shared_flag_aix='$wl-bM:SRE'
18994 shared_flag_svr4='$wl-G'
18995 fi
18996 fi
18997
18998 export_dynamic_flag_spec_F77='$wl-bexpall'
18999 # It seems that -bexpall does not export symbols beginning with
19000 # underscore (_), so it is better to generate a list of symbols to export.
19001 always_export_symbols_F77=yes
19002 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19003 # Warning - without using the other runtime loading flags (-brtl),
19004 # -berok will link without error, but may produce a broken library.
19005 allow_undefined_flag_F77='-berok'
19006 # Determine the default libpath from the value encoded in an
19007 # empty executable.
19008 if test set = "${lt_cv_aix_libpath+set}"; then
19009 aix_libpath=$lt_cv_aix_libpath
19010 else
19011 if ${lt_cv_aix_libpath__F77+:} false; then :
19012 $as_echo_n "(cached) " >&6
19013 else
19014 cat > conftest.$ac_ext <<_ACEOF
19015 program main
19016
19017 end
19018 _ACEOF
19019 if ac_fn_f77_try_link "$LINENO"; then :
19020
19021 lt_aix_libpath_sed='
19022 /Import File Strings/,/^$/ {
19023 /^0/ {
19024 s/^0 *\([^ ]*\) *$/\1/
19025 p
19026 }
19027 }'
19028 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19029 # Check for a 64-bit object if we didn't find anything.
19030 if test -z "$lt_cv_aix_libpath__F77"; then
19031 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19032 fi
19033 fi
19034 rm -f core conftest.err conftest.$ac_objext \
19035 conftest$ac_exeext conftest.$ac_ext
19036 if test -z "$lt_cv_aix_libpath__F77"; then
19037 lt_cv_aix_libpath__F77=/usr/lib:/lib
19038 fi
19039
19040 fi
19041
19042 aix_libpath=$lt_cv_aix_libpath__F77
19043 fi
19044
19045 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
19046 archive_expsym_cmds_F77='$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
19047 else
19048 if test ia64 = "$host_cpu"; then
19049 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib'
19050 allow_undefined_flag_F77="-z nodefs"
19051 archive_expsym_cmds_F77="\$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"
19052 else
19053 # Determine the default libpath from the value encoded in an
19054 # empty executable.
19055 if test set = "${lt_cv_aix_libpath+set}"; then
19056 aix_libpath=$lt_cv_aix_libpath
19057 else
19058 if ${lt_cv_aix_libpath__F77+:} false; then :
19059 $as_echo_n "(cached) " >&6
19060 else
19061 cat > conftest.$ac_ext <<_ACEOF
19062 program main
19063
19064 end
19065 _ACEOF
19066 if ac_fn_f77_try_link "$LINENO"; then :
19067
19068 lt_aix_libpath_sed='
19069 /Import File Strings/,/^$/ {
19070 /^0/ {
19071 s/^0 *\([^ ]*\) *$/\1/
19072 p
19073 }
19074 }'
19075 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19076 # Check for a 64-bit object if we didn't find anything.
19077 if test -z "$lt_cv_aix_libpath__F77"; then
19078 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19079 fi
19080 fi
19081 rm -f core conftest.err conftest.$ac_objext \
19082 conftest$ac_exeext conftest.$ac_ext
19083 if test -z "$lt_cv_aix_libpath__F77"; then
19084 lt_cv_aix_libpath__F77=/usr/lib:/lib
19085 fi
19086
19087 fi
19088
19089 aix_libpath=$lt_cv_aix_libpath__F77
19090 fi
19091
19092 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
19093 # Warning - without using the other run time loading flags,
19094 # -berok will link without error, but may produce a broken library.
19095 no_undefined_flag_F77=' $wl-bernotok'
19096 allow_undefined_flag_F77=' $wl-berok'
19097 if test yes = "$with_gnu_ld"; then
19098 # We only use this code for GNU lds that support --whole-archive.
19099 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive'
19100 else
19101 # Exported symbols can be pulled into shared objects from archives
19102 whole_archive_flag_spec_F77='$convenience'
19103 fi
19104 archive_cmds_need_lc_F77=yes
19105 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19106 # -brtl affects multiple linker settings, -berok does not and is overridden later
19107 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19108 if test svr4 != "$with_aix_soname"; then
19109 # This is similar to how AIX traditionally builds its shared libraries.
19110 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$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'
19111 fi
19112 if test aix != "$with_aix_soname"; then
19113 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$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'
19114 else
19115 # used by -dlpreopen to get the symbols
19116 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
19117 fi
19118 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d'
19119 fi
19120 fi
19121 ;;
19122
19123 amigaos*)
19124 case $host_cpu in
19125 powerpc)
19126 # see comment about AmigaOS4 .so support
19127 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19128 archive_expsym_cmds_F77=''
19129 ;;
19130 m68k)
19131 archive_cmds_F77='$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)'
19132 hardcode_libdir_flag_spec_F77='-L$libdir'
19133 hardcode_minus_L_F77=yes
19134 ;;
19135 esac
19136 ;;
19137
19138 bsdi[45]*)
19139 export_dynamic_flag_spec_F77=-rdynamic
19140 ;;
19141
19142 cygwin* | mingw* | pw32* | cegcc*)
19143 # When not using gcc, we currently assume that we are using
19144 # Microsoft Visual C++.
19145 # hardcode_libdir_flag_spec is actually meaningless, as there is
19146 # no search path for DLLs.
19147 case $cc_basename in
19148 cl*)
19149 # Native MSVC
19150 hardcode_libdir_flag_spec_F77=' '
19151 allow_undefined_flag_F77=unsupported
19152 always_export_symbols_F77=yes
19153 file_list_spec_F77='@'
19154 # Tell ltmain to make .lib files, not .a files.
19155 libext=lib
19156 # Tell ltmain to make .dll files, not .so files.
19157 shrext_cmds=.dll
19158 # FIXME: Setting linknames here is a bad hack.
19159 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19160 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19161 cp "$export_symbols" "$output_objdir/$soname.def";
19162 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19163 else
19164 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19165 fi~
19166 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19167 linknames='
19168 # The linker will not automatically build a static lib if we build a DLL.
19169 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
19170 enable_shared_with_static_runtimes_F77=yes
19171 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19172 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19173 # Don't use ranlib
19174 old_postinstall_cmds_F77='chmod 644 $oldlib'
19175 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
19176 lt_tool_outputfile="@TOOL_OUTPUT@"~
19177 case $lt_outputfile in
19178 *.exe|*.EXE) ;;
19179 *)
19180 lt_outputfile=$lt_outputfile.exe
19181 lt_tool_outputfile=$lt_tool_outputfile.exe
19182 ;;
19183 esac~
19184 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19185 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19186 $RM "$lt_outputfile.manifest";
19187 fi'
19188 ;;
19189 *)
19190 # Assume MSVC wrapper
19191 hardcode_libdir_flag_spec_F77=' '
19192 allow_undefined_flag_F77=unsupported
19193 # Tell ltmain to make .lib files, not .a files.
19194 libext=lib
19195 # Tell ltmain to make .dll files, not .so files.
19196 shrext_cmds=.dll
19197 # FIXME: Setting linknames here is a bad hack.
19198 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19199 # The linker will automatically build a .lib file if we build a DLL.
19200 old_archive_from_new_cmds_F77='true'
19201 # FIXME: Should let the user specify the lib program.
19202 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
19203 enable_shared_with_static_runtimes_F77=yes
19204 ;;
19205 esac
19206 ;;
19207
19208 darwin* | rhapsody*)
19209
19210
19211 archive_cmds_need_lc_F77=no
19212 hardcode_direct_F77=no
19213 hardcode_automatic_F77=yes
19214 hardcode_shlibpath_var_F77=unsupported
19215 if test yes = "$lt_cv_ld_force_load"; then
19216 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19217 compiler_needs_object_F77=yes
19218 else
19219 whole_archive_flag_spec_F77=''
19220 fi
19221 link_all_deplibs_F77=yes
19222 allow_undefined_flag_F77=$_lt_dar_allow_undefined
19223 case $cc_basename in
19224 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19225 *) _lt_dar_can_shared=$GCC ;;
19226 esac
19227 if test yes = "$_lt_dar_can_shared"; then
19228 output_verbose_link_cmd=func_echo_all
19229 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
19230 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19231 archive_expsym_cmds_F77="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"
19232 module_expsym_cmds_F77="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"
19233
19234 else
19235 ld_shlibs_F77=no
19236 fi
19237
19238 ;;
19239
19240 dgux*)
19241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19242 hardcode_libdir_flag_spec_F77='-L$libdir'
19243 hardcode_shlibpath_var_F77=no
19244 ;;
19245
19246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19247 # support. Future versions do this automatically, but an explicit c++rt0.o
19248 # does not break anything, and helps significantly (at the cost of a little
19249 # extra space).
19250 freebsd2.2*)
19251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19252 hardcode_libdir_flag_spec_F77='-R$libdir'
19253 hardcode_direct_F77=yes
19254 hardcode_shlibpath_var_F77=no
19255 ;;
19256
19257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19258 freebsd2.*)
19259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19260 hardcode_direct_F77=yes
19261 hardcode_minus_L_F77=yes
19262 hardcode_shlibpath_var_F77=no
19263 ;;
19264
19265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19266 freebsd* | dragonfly*)
19267 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19268 hardcode_libdir_flag_spec_F77='-R$libdir'
19269 hardcode_direct_F77=yes
19270 hardcode_shlibpath_var_F77=no
19271 ;;
19272
19273 hpux9*)
19274 if test yes = "$GCC"; then
19275 archive_cmds_F77='$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'
19276 else
19277 archive_cmds_F77='$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'
19278 fi
19279 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
19280 hardcode_libdir_separator_F77=:
19281 hardcode_direct_F77=yes
19282
19283 # hardcode_minus_L: Not really in the search PATH,
19284 # but as the default location of the library.
19285 hardcode_minus_L_F77=yes
19286 export_dynamic_flag_spec_F77='$wl-E'
19287 ;;
19288
19289 hpux10*)
19290 if test yes,no = "$GCC,$with_gnu_ld"; then
19291 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19292 else
19293 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19294 fi
19295 if test no = "$with_gnu_ld"; then
19296 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
19297 hardcode_libdir_separator_F77=:
19298 hardcode_direct_F77=yes
19299 hardcode_direct_absolute_F77=yes
19300 export_dynamic_flag_spec_F77='$wl-E'
19301 # hardcode_minus_L: Not really in the search PATH,
19302 # but as the default location of the library.
19303 hardcode_minus_L_F77=yes
19304 fi
19305 ;;
19306
19307 hpux11*)
19308 if test yes,no = "$GCC,$with_gnu_ld"; then
19309 case $host_cpu in
19310 hppa*64*)
19311 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19312 ;;
19313 ia64*)
19314 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19315 ;;
19316 *)
19317 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19318 ;;
19319 esac
19320 else
19321 case $host_cpu in
19322 hppa*64*)
19323 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 ;;
19325 ia64*)
19326 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19327 ;;
19328 *)
19329 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19330 ;;
19331 esac
19332 fi
19333 if test no = "$with_gnu_ld"; then
19334 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
19335 hardcode_libdir_separator_F77=:
19336
19337 case $host_cpu in
19338 hppa*64*|ia64*)
19339 hardcode_direct_F77=no
19340 hardcode_shlibpath_var_F77=no
19341 ;;
19342 *)
19343 hardcode_direct_F77=yes
19344 hardcode_direct_absolute_F77=yes
19345 export_dynamic_flag_spec_F77='$wl-E'
19346
19347 # hardcode_minus_L: Not really in the search PATH,
19348 # but as the default location of the library.
19349 hardcode_minus_L_F77=yes
19350 ;;
19351 esac
19352 fi
19353 ;;
19354
19355 irix5* | irix6* | nonstopux*)
19356 if test yes = "$GCC"; then
19357 archive_cmds_F77='$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'
19358 # Try to use the -exported_symbol ld option, if it does not
19359 # work, assume that -exports_file does not work either and
19360 # implicitly export all symbols.
19361 # This should be the same for all languages, so no per-tag cache variable.
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19363 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19364 if ${lt_cv_irix_exported_symbol+:} false; then :
19365 $as_echo_n "(cached) " >&6
19366 else
19367 save_LDFLAGS=$LDFLAGS
19368 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
19369 cat > conftest.$ac_ext <<_ACEOF
19370
19371 subroutine foo
19372 end
19373 _ACEOF
19374 if ac_fn_f77_try_link "$LINENO"; then :
19375 lt_cv_irix_exported_symbol=yes
19376 else
19377 lt_cv_irix_exported_symbol=no
19378 fi
19379 rm -f core conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
19381 LDFLAGS=$save_LDFLAGS
19382 fi
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19384 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
19385 if test yes = "$lt_cv_irix_exported_symbol"; then
19386 archive_expsym_cmds_F77='$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'
19387 fi
19388 link_all_deplibs_F77=no
19389 else
19390 archive_cmds_F77='$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'
19391 archive_expsym_cmds_F77='$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'
19392 fi
19393 archive_cmds_need_lc_F77='no'
19394 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19395 hardcode_libdir_separator_F77=:
19396 inherit_rpath_F77=yes
19397 link_all_deplibs_F77=yes
19398 ;;
19399
19400 linux*)
19401 case $cc_basename in
19402 tcc*)
19403 # Fabrice Bellard et al's Tiny C Compiler
19404 ld_shlibs_F77=yes
19405 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19406 ;;
19407 esac
19408 ;;
19409
19410 netbsd* | netbsdelf*-gnu)
19411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19412 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19413 else
19414 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19415 fi
19416 hardcode_libdir_flag_spec_F77='-R$libdir'
19417 hardcode_direct_F77=yes
19418 hardcode_shlibpath_var_F77=no
19419 ;;
19420
19421 newsos6)
19422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19423 hardcode_direct_F77=yes
19424 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19425 hardcode_libdir_separator_F77=:
19426 hardcode_shlibpath_var_F77=no
19427 ;;
19428
19429 *nto* | *qnx*)
19430 ;;
19431
19432 openbsd* | bitrig*)
19433 if test -f /usr/libexec/ld.so; then
19434 hardcode_direct_F77=yes
19435 hardcode_shlibpath_var_F77=no
19436 hardcode_direct_absolute_F77=yes
19437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19438 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19439 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
19440 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
19441 export_dynamic_flag_spec_F77='$wl-E'
19442 else
19443 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19444 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
19445 fi
19446 else
19447 ld_shlibs_F77=no
19448 fi
19449 ;;
19450
19451 os2*)
19452 hardcode_libdir_flag_spec_F77='-L$libdir'
19453 hardcode_minus_L_F77=yes
19454 allow_undefined_flag_F77=unsupported
19455 shrext_cmds=.dll
19456 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19457 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19458 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19459 $ECHO EXPORTS >> $output_objdir/$libname.def~
19460 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19461 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19462 emximp -o $lib $output_objdir/$libname.def'
19463 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19464 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19465 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19466 $ECHO EXPORTS >> $output_objdir/$libname.def~
19467 prefix_cmds="$SED"~
19468 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19469 prefix_cmds="$prefix_cmds -e 1d";
19470 fi~
19471 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19472 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19473 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19474 emximp -o $lib $output_objdir/$libname.def'
19475 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19476 enable_shared_with_static_runtimes_F77=yes
19477 ;;
19478
19479 osf3*)
19480 if test yes = "$GCC"; then
19481 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
19482 archive_cmds_F77='$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'
19483 else
19484 allow_undefined_flag_F77=' -expect_unresolved \*'
19485 archive_cmds_F77='$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'
19486 fi
19487 archive_cmds_need_lc_F77='no'
19488 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19489 hardcode_libdir_separator_F77=:
19490 ;;
19491
19492 osf4* | osf5*) # as osf3* with the addition of -msym flag
19493 if test yes = "$GCC"; then
19494 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
19495 archive_cmds_F77='$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'
19496 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19497 else
19498 allow_undefined_flag_F77=' -expect_unresolved \*'
19499 archive_cmds_F77='$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'
19500 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
19501 $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'
19502
19503 # Both c and cxx compiler support -rpath directly
19504 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19505 fi
19506 archive_cmds_need_lc_F77='no'
19507 hardcode_libdir_separator_F77=:
19508 ;;
19509
19510 solaris*)
19511 no_undefined_flag_F77=' -z defs'
19512 if test yes = "$GCC"; then
19513 wlarc='$wl'
19514 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19515 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19516 $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'
19517 else
19518 case `$CC -V 2>&1` in
19519 *"Compilers 5.0"*)
19520 wlarc=''
19521 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
19522 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19523 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19524 ;;
19525 *)
19526 wlarc='$wl'
19527 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19528 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19529 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19530 ;;
19531 esac
19532 fi
19533 hardcode_libdir_flag_spec_F77='-R$libdir'
19534 hardcode_shlibpath_var_F77=no
19535 case $host_os in
19536 solaris2.[0-5] | solaris2.[0-5].*) ;;
19537 *)
19538 # The compiler driver will combine and reorder linker options,
19539 # but understands '-z linker_flag'. GCC discards it without '$wl',
19540 # but is careful enough not to reorder.
19541 # Supported since Solaris 2.6 (maybe 2.5.1?)
19542 if test yes = "$GCC"; then
19543 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
19544 else
19545 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
19546 fi
19547 ;;
19548 esac
19549 link_all_deplibs_F77=yes
19550 ;;
19551
19552 sunos4*)
19553 if test sequent = "$host_vendor"; then
19554 # Use $CC to link under sequent, because it throws in some extra .o
19555 # files that make .init and .fini sections work.
19556 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19557 else
19558 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19559 fi
19560 hardcode_libdir_flag_spec_F77='-L$libdir'
19561 hardcode_direct_F77=yes
19562 hardcode_minus_L_F77=yes
19563 hardcode_shlibpath_var_F77=no
19564 ;;
19565
19566 sysv4)
19567 case $host_vendor in
19568 sni)
19569 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19570 hardcode_direct_F77=yes # is this really true???
19571 ;;
19572 siemens)
19573 ## LD is ld it makes a PLAMLIB
19574 ## CC just makes a GrossModule.
19575 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19576 reload_cmds_F77='$CC -r -o $output$reload_objs'
19577 hardcode_direct_F77=no
19578 ;;
19579 motorola)
19580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19581 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19582 ;;
19583 esac
19584 runpath_var='LD_RUN_PATH'
19585 hardcode_shlibpath_var_F77=no
19586 ;;
19587
19588 sysv4.3*)
19589 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19590 hardcode_shlibpath_var_F77=no
19591 export_dynamic_flag_spec_F77='-Bexport'
19592 ;;
19593
19594 sysv4*MP*)
19595 if test -d /usr/nec; then
19596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19597 hardcode_shlibpath_var_F77=no
19598 runpath_var=LD_RUN_PATH
19599 hardcode_runpath_var=yes
19600 ld_shlibs_F77=yes
19601 fi
19602 ;;
19603
19604 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19605 no_undefined_flag_F77='$wl-z,text'
19606 archive_cmds_need_lc_F77=no
19607 hardcode_shlibpath_var_F77=no
19608 runpath_var='LD_RUN_PATH'
19609
19610 if test yes = "$GCC"; then
19611 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19612 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19613 else
19614 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19615 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19616 fi
19617 ;;
19618
19619 sysv5* | sco3.2v5* | sco5v6*)
19620 # Note: We CANNOT use -z defs as we might desire, because we do not
19621 # link with -lc, and that would cause any symbols used from libc to
19622 # always be unresolved, which means just about no library would
19623 # ever link correctly. If we're not using GNU ld we use -z text
19624 # though, which does catch some bad symbols but isn't as heavy-handed
19625 # as -z defs.
19626 no_undefined_flag_F77='$wl-z,text'
19627 allow_undefined_flag_F77='$wl-z,nodefs'
19628 archive_cmds_need_lc_F77=no
19629 hardcode_shlibpath_var_F77=no
19630 hardcode_libdir_flag_spec_F77='$wl-R,$libdir'
19631 hardcode_libdir_separator_F77=':'
19632 link_all_deplibs_F77=yes
19633 export_dynamic_flag_spec_F77='$wl-Bexport'
19634 runpath_var='LD_RUN_PATH'
19635
19636 if test yes = "$GCC"; then
19637 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19638 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19639 else
19640 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19641 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19642 fi
19643 ;;
19644
19645 uts4*)
19646 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19647 hardcode_libdir_flag_spec_F77='-L$libdir'
19648 hardcode_shlibpath_var_F77=no
19649 ;;
19650
19651 *)
19652 ld_shlibs_F77=no
19653 ;;
19654 esac
19655
19656 if test sni = "$host_vendor"; then
19657 case $host in
19658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19659 export_dynamic_flag_spec_F77='$wl-Blargedynsym'
19660 ;;
19661 esac
19662 fi
19663 fi
19664
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
19666 $as_echo "$ld_shlibs_F77" >&6; }
19667 test no = "$ld_shlibs_F77" && can_build_shared=no
19668
19669 with_gnu_ld_F77=$with_gnu_ld
19670
19671
19672
19673
19674
19675
19676 #
19677 # Do we need to explicitly link libc?
19678 #
19679 case "x$archive_cmds_need_lc_F77" in
19680 x|xyes)
19681 # Assume -lc should be added
19682 archive_cmds_need_lc_F77=yes
19683
19684 if test yes,yes = "$GCC,$enable_shared"; then
19685 case $archive_cmds_F77 in
19686 *'~'*)
19687 # FIXME: we may have to deal with multi-command sequences.
19688 ;;
19689 '$CC '*)
19690 # Test whether the compiler implicitly links with -lc since on some
19691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19692 # to ld, don't add -lc before -lgcc.
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19694 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19695 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
19696 $as_echo_n "(cached) " >&6
19697 else
19698 $RM conftest*
19699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19700
19701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19702 (eval $ac_compile) 2>&5
19703 ac_status=$?
19704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19705 test $ac_status = 0; } 2>conftest.err; then
19706 soname=conftest
19707 lib=conftest
19708 libobjs=conftest.$ac_objext
19709 deplibs=
19710 wl=$lt_prog_compiler_wl_F77
19711 pic_flag=$lt_prog_compiler_pic_F77
19712 compiler_flags=-v
19713 linker_flags=-v
19714 verstring=
19715 output_objdir=.
19716 libname=conftest
19717 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19718 allow_undefined_flag_F77=
19719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19720 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19721 ac_status=$?
19722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19723 test $ac_status = 0; }
19724 then
19725 lt_cv_archive_cmds_need_lc_F77=no
19726 else
19727 lt_cv_archive_cmds_need_lc_F77=yes
19728 fi
19729 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19730 else
19731 cat conftest.err 1>&5
19732 fi
19733 $RM conftest*
19734
19735 fi
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
19737 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
19738 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
19739 ;;
19740 esac
19741 fi
19742 ;;
19743 esac
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19807 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19808
19809 library_names_spec=
19810 libname_spec='lib$name'
19811 soname_spec=
19812 shrext_cmds=.so
19813 postinstall_cmds=
19814 postuninstall_cmds=
19815 finish_cmds=
19816 finish_eval=
19817 shlibpath_var=
19818 shlibpath_overrides_runpath=unknown
19819 version_type=none
19820 dynamic_linker="$host_os ld.so"
19821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19822 need_lib_prefix=unknown
19823 hardcode_into_libs=no
19824
19825 # when you set need_version to no, make sure it does not cause -set_version
19826 # flags to be left without arguments
19827 need_version=unknown
19828
19829
19830
19831 case $host_os in
19832 aix3*)
19833 version_type=linux # correct to gnu/linux during the next big refactor
19834 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19835 shlibpath_var=LIBPATH
19836
19837 # AIX 3 has no versioning support, so we append a major version to the name.
19838 soname_spec='$libname$release$shared_ext$major'
19839 ;;
19840
19841 aix[4-9]*)
19842 version_type=linux # correct to gnu/linux during the next big refactor
19843 need_lib_prefix=no
19844 need_version=no
19845 hardcode_into_libs=yes
19846 if test ia64 = "$host_cpu"; then
19847 # AIX 5 supports IA64
19848 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19849 shlibpath_var=LD_LIBRARY_PATH
19850 else
19851 # With GCC up to 2.95.x, collect2 would create an import file
19852 # for dependence libraries. The import file would start with
19853 # the line '#! .'. This would cause the generated library to
19854 # depend on '.', always an invalid library. This was fixed in
19855 # development snapshots of GCC prior to 3.0.
19856 case $host_os in
19857 aix4 | aix4.[01] | aix4.[01].*)
19858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19859 echo ' yes '
19860 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19861 :
19862 else
19863 can_build_shared=no
19864 fi
19865 ;;
19866 esac
19867 # Using Import Files as archive members, it is possible to support
19868 # filename-based versioning of shared library archives on AIX. While
19869 # this would work for both with and without runtime linking, it will
19870 # prevent static linking of such archives. So we do filename-based
19871 # shared library versioning with .so extension only, which is used
19872 # when both runtime linking and shared linking is enabled.
19873 # Unfortunately, runtime linking may impact performance, so we do
19874 # not want this to be the default eventually. Also, we use the
19875 # versioned .so libs for executables only if there is the -brtl
19876 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19877 # To allow for filename-based versioning support, we need to create
19878 # libNAME.so.V as an archive file, containing:
19879 # *) an Import File, referring to the versioned filename of the
19880 # archive as well as the shared archive member, telling the
19881 # bitwidth (32 or 64) of that shared object, and providing the
19882 # list of exported symbols of that shared object, eventually
19883 # decorated with the 'weak' keyword
19884 # *) the shared object with the F_LOADONLY flag set, to really avoid
19885 # it being seen by the linker.
19886 # At run time we better use the real file rather than another symlink,
19887 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19888
19889 case $with_aix_soname,$aix_use_runtimelinking in
19890 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19891 # soname into executable. Probably we can add versioning support to
19892 # collect2, so additional links can be useful in future.
19893 aix,yes) # traditional libtool
19894 dynamic_linker='AIX unversionable lib.so'
19895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19896 # instead of lib<name>.a to let people know that these are not
19897 # typical AIX shared libraries.
19898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19899 ;;
19900 aix,no) # traditional AIX only
19901 dynamic_linker='AIX lib.a(lib.so.V)'
19902 # We preserve .a as extension for shared libraries through AIX4.2
19903 # and later when we are not doing run time linking.
19904 library_names_spec='$libname$release.a $libname.a'
19905 soname_spec='$libname$release$shared_ext$major'
19906 ;;
19907 svr4,*) # full svr4 only
19908 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19909 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19910 # We do not specify a path in Import Files, so LIBPATH fires.
19911 shlibpath_overrides_runpath=yes
19912 ;;
19913 *,yes) # both, prefer svr4
19914 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19915 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19916 # unpreferred sharedlib libNAME.a needs extra handling
19917 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"'
19918 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"'
19919 # We do not specify a path in Import Files, so LIBPATH fires.
19920 shlibpath_overrides_runpath=yes
19921 ;;
19922 *,no) # both, prefer aix
19923 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19924 library_names_spec='$libname$release.a $libname.a'
19925 soname_spec='$libname$release$shared_ext$major'
19926 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19927 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)'
19928 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"'
19929 ;;
19930 esac
19931 shlibpath_var=LIBPATH
19932 fi
19933 ;;
19934
19935 amigaos*)
19936 case $host_cpu in
19937 powerpc)
19938 # Since July 2007 AmigaOS4 officially supports .so libraries.
19939 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19941 ;;
19942 m68k)
19943 library_names_spec='$libname.ixlibrary $libname.a'
19944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19945 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'
19946 ;;
19947 esac
19948 ;;
19949
19950 beos*)
19951 library_names_spec='$libname$shared_ext'
19952 dynamic_linker="$host_os ld.so"
19953 shlibpath_var=LIBRARY_PATH
19954 ;;
19955
19956 bsdi[45]*)
19957 version_type=linux # correct to gnu/linux during the next big refactor
19958 need_version=no
19959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19960 soname_spec='$libname$release$shared_ext$major'
19961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19962 shlibpath_var=LD_LIBRARY_PATH
19963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19965 # the default ld.so.conf also contains /usr/contrib/lib and
19966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19967 # libtool to hard-code these into programs
19968 ;;
19969
19970 cygwin* | mingw* | pw32* | cegcc*)
19971 version_type=windows
19972 shrext_cmds=.dll
19973 need_version=no
19974 need_lib_prefix=no
19975
19976 case $GCC,$cc_basename in
19977 yes,*)
19978 # gcc
19979 library_names_spec='$libname.dll.a'
19980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19981 postinstall_cmds='base_file=`basename \$file`~
19982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19983 dldir=$destdir/`dirname \$dlpath`~
19984 test -d \$dldir || mkdir -p \$dldir~
19985 $install_prog $dir/$dlname \$dldir/$dlname~
19986 chmod a+x \$dldir/$dlname~
19987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19989 fi'
19990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19991 dlpath=$dir/\$dldll~
19992 $RM \$dlpath'
19993 shlibpath_overrides_runpath=yes
19994
19995 case $host_os in
19996 cygwin*)
19997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19998 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19999
20000 ;;
20001 mingw* | cegcc*)
20002 # MinGW DLLs use traditional 'lib' prefix
20003 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20004 ;;
20005 pw32*)
20006 # pw32 DLLs use 'pw' prefix rather than 'lib'
20007 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20008 ;;
20009 esac
20010 dynamic_linker='Win32 ld.exe'
20011 ;;
20012
20013 *,cl*)
20014 # Native MSVC
20015 libname_spec='$name'
20016 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20017 library_names_spec='$libname.dll.lib'
20018
20019 case $build_os in
20020 mingw*)
20021 sys_lib_search_path_spec=
20022 lt_save_ifs=$IFS
20023 IFS=';'
20024 for lt_path in $LIB
20025 do
20026 IFS=$lt_save_ifs
20027 # Let DOS variable expansion print the short 8.3 style file name.
20028 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20029 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20030 done
20031 IFS=$lt_save_ifs
20032 # Convert to MSYS style.
20033 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20034 ;;
20035 cygwin*)
20036 # Convert to unix form, then to dos form, then back to unix form
20037 # but this time dos style (no spaces!) so that the unix form looks
20038 # like /cygdrive/c/PROGRA~1:/cygdr...
20039 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20040 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20041 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20042 ;;
20043 *)
20044 sys_lib_search_path_spec=$LIB
20045 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20046 # It is most probably a Windows format PATH.
20047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20048 else
20049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20050 fi
20051 # FIXME: find the short name or the path components, as spaces are
20052 # common. (e.g. "Program Files" -> "PROGRA~1")
20053 ;;
20054 esac
20055
20056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20057 postinstall_cmds='base_file=`basename \$file`~
20058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20059 dldir=$destdir/`dirname \$dlpath`~
20060 test -d \$dldir || mkdir -p \$dldir~
20061 $install_prog $dir/$dlname \$dldir/$dlname'
20062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20063 dlpath=$dir/\$dldll~
20064 $RM \$dlpath'
20065 shlibpath_overrides_runpath=yes
20066 dynamic_linker='Win32 link.exe'
20067 ;;
20068
20069 *)
20070 # Assume MSVC wrapper
20071 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
20072 dynamic_linker='Win32 ld.exe'
20073 ;;
20074 esac
20075 # FIXME: first we should search . and the directory the executable is in
20076 shlibpath_var=PATH
20077 ;;
20078
20079 darwin* | rhapsody*)
20080 dynamic_linker="$host_os dyld"
20081 version_type=darwin
20082 need_lib_prefix=no
20083 need_version=no
20084 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
20085 soname_spec='$libname$release$major$shared_ext'
20086 shlibpath_overrides_runpath=yes
20087 shlibpath_var=DYLD_LIBRARY_PATH
20088 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20089
20090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20091 ;;
20092
20093 dgux*)
20094 version_type=linux # correct to gnu/linux during the next big refactor
20095 need_lib_prefix=no
20096 need_version=no
20097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20098 soname_spec='$libname$release$shared_ext$major'
20099 shlibpath_var=LD_LIBRARY_PATH
20100 ;;
20101
20102 freebsd* | dragonfly*)
20103 # DragonFly does not have aout. When/if they implement a new
20104 # versioning mechanism, adjust this.
20105 if test -x /usr/bin/objformat; then
20106 objformat=`/usr/bin/objformat`
20107 else
20108 case $host_os in
20109 freebsd[23].*) objformat=aout ;;
20110 *) objformat=elf ;;
20111 esac
20112 fi
20113 version_type=freebsd-$objformat
20114 case $version_type in
20115 freebsd-elf*)
20116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20117 soname_spec='$libname$release$shared_ext$major'
20118 need_version=no
20119 need_lib_prefix=no
20120 ;;
20121 freebsd-*)
20122 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20123 need_version=yes
20124 ;;
20125 esac
20126 shlibpath_var=LD_LIBRARY_PATH
20127 case $host_os in
20128 freebsd2.*)
20129 shlibpath_overrides_runpath=yes
20130 ;;
20131 freebsd3.[01]* | freebsdelf3.[01]*)
20132 shlibpath_overrides_runpath=yes
20133 hardcode_into_libs=yes
20134 ;;
20135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20137 shlibpath_overrides_runpath=no
20138 hardcode_into_libs=yes
20139 ;;
20140 *) # from 4.6 on, and DragonFly
20141 shlibpath_overrides_runpath=yes
20142 hardcode_into_libs=yes
20143 ;;
20144 esac
20145 ;;
20146
20147 haiku*)
20148 version_type=linux # correct to gnu/linux during the next big refactor
20149 need_lib_prefix=no
20150 need_version=no
20151 dynamic_linker="$host_os runtime_loader"
20152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20153 soname_spec='$libname$release$shared_ext$major'
20154 shlibpath_var=LIBRARY_PATH
20155 shlibpath_overrides_runpath=no
20156 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20157 hardcode_into_libs=yes
20158 ;;
20159
20160 hpux9* | hpux10* | hpux11*)
20161 # Give a soname corresponding to the major version so that dld.sl refuses to
20162 # link against other versions.
20163 version_type=sunos
20164 need_lib_prefix=no
20165 need_version=no
20166 case $host_cpu in
20167 ia64*)
20168 shrext_cmds='.so'
20169 hardcode_into_libs=yes
20170 dynamic_linker="$host_os dld.so"
20171 shlibpath_var=LD_LIBRARY_PATH
20172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20174 soname_spec='$libname$release$shared_ext$major'
20175 if test 32 = "$HPUX_IA64_MODE"; then
20176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20177 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
20178 else
20179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20180 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
20181 fi
20182 ;;
20183 hppa*64*)
20184 shrext_cmds='.sl'
20185 hardcode_into_libs=yes
20186 dynamic_linker="$host_os dld.sl"
20187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20190 soname_spec='$libname$release$shared_ext$major'
20191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20193 ;;
20194 *)
20195 shrext_cmds='.sl'
20196 dynamic_linker="$host_os dld.sl"
20197 shlibpath_var=SHLIB_PATH
20198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20200 soname_spec='$libname$release$shared_ext$major'
20201 ;;
20202 esac
20203 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20204 postinstall_cmds='chmod 555 $lib'
20205 # or fails outright, so override atomically:
20206 install_override_mode=555
20207 ;;
20208
20209 interix[3-9]*)
20210 version_type=linux # correct to gnu/linux during the next big refactor
20211 need_lib_prefix=no
20212 need_version=no
20213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20214 soname_spec='$libname$release$shared_ext$major'
20215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20216 shlibpath_var=LD_LIBRARY_PATH
20217 shlibpath_overrides_runpath=no
20218 hardcode_into_libs=yes
20219 ;;
20220
20221 irix5* | irix6* | nonstopux*)
20222 case $host_os in
20223 nonstopux*) version_type=nonstopux ;;
20224 *)
20225 if test yes = "$lt_cv_prog_gnu_ld"; then
20226 version_type=linux # correct to gnu/linux during the next big refactor
20227 else
20228 version_type=irix
20229 fi ;;
20230 esac
20231 need_lib_prefix=no
20232 need_version=no
20233 soname_spec='$libname$release$shared_ext$major'
20234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20235 case $host_os in
20236 irix5* | nonstopux*)
20237 libsuff= shlibsuff=
20238 ;;
20239 *)
20240 case $LD in # libtool.m4 will add one of these switches to LD
20241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20242 libsuff= shlibsuff= libmagic=32-bit;;
20243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20244 libsuff=32 shlibsuff=N32 libmagic=N32;;
20245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20247 *) libsuff= shlibsuff= libmagic=never-match;;
20248 esac
20249 ;;
20250 esac
20251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20252 shlibpath_overrides_runpath=no
20253 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
20254 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
20255 hardcode_into_libs=yes
20256 ;;
20257
20258 # No shared lib support for Linux oldld, aout, or coff.
20259 linux*oldld* | linux*aout* | linux*coff*)
20260 dynamic_linker=no
20261 ;;
20262
20263 linux*android*)
20264 version_type=none # Android doesn't support versioned libraries.
20265 need_lib_prefix=no
20266 need_version=no
20267 library_names_spec='$libname$release$shared_ext'
20268 soname_spec='$libname$release$shared_ext'
20269 finish_cmds=
20270 shlibpath_var=LD_LIBRARY_PATH
20271 shlibpath_overrides_runpath=yes
20272
20273 # This implies no fast_install, which is unacceptable.
20274 # Some rework will be needed to allow for fast_install
20275 # before this can be enabled.
20276 hardcode_into_libs=yes
20277
20278 dynamic_linker='Android linker'
20279 # Don't embed -rpath directories since the linker doesn't support them.
20280 hardcode_libdir_flag_spec_F77='-L$libdir'
20281 ;;
20282
20283 # This must be glibc/ELF.
20284 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20285 version_type=linux # correct to gnu/linux during the next big refactor
20286 need_lib_prefix=no
20287 need_version=no
20288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20289 soname_spec='$libname$release$shared_ext$major'
20290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 shlibpath_overrides_runpath=no
20293
20294 # Some binutils ld are patched to set DT_RUNPATH
20295 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20296 $as_echo_n "(cached) " >&6
20297 else
20298 lt_cv_shlibpath_overrides_runpath=no
20299 save_LDFLAGS=$LDFLAGS
20300 save_libdir=$libdir
20301 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
20302 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
20303 cat > conftest.$ac_ext <<_ACEOF
20304 program main
20305
20306 end
20307 _ACEOF
20308 if ac_fn_f77_try_link "$LINENO"; then :
20309 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20310 lt_cv_shlibpath_overrides_runpath=yes
20311 fi
20312 fi
20313 rm -f core conftest.err conftest.$ac_objext \
20314 conftest$ac_exeext conftest.$ac_ext
20315 LDFLAGS=$save_LDFLAGS
20316 libdir=$save_libdir
20317
20318 fi
20319
20320 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20321
20322 # This implies no fast_install, which is unacceptable.
20323 # Some rework will be needed to allow for fast_install
20324 # before this can be enabled.
20325 hardcode_into_libs=yes
20326
20327 # Ideally, we could use ldconfig to report *all* directores which are
20328 # searched for libraries, however this is still not possible. Aside from not
20329 # being certain /sbin/ldconfig is available, command
20330 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20331 # even though it is searched at run-time. Try to do the best guess by
20332 # appending ld.so.conf contents (and includes) to the search path.
20333 if test -f /etc/ld.so.conf; then
20334 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' ' '`
20335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20336 fi
20337
20338 # We used to test for /lib/ld.so.1 and disable shared libraries on
20339 # powerpc, because MkLinux only supported shared libraries with the
20340 # GNU dynamic linker. Since this was broken with cross compilers,
20341 # most powerpc-linux boxes support dynamic linking these days and
20342 # people can always --disable-shared, the test was removed, and we
20343 # assume the GNU/Linux dynamic linker is in use.
20344 dynamic_linker='GNU/Linux ld.so'
20345 ;;
20346
20347 netbsdelf*-gnu)
20348 version_type=linux
20349 need_lib_prefix=no
20350 need_version=no
20351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20352 soname_spec='${libname}${release}${shared_ext}$major'
20353 shlibpath_var=LD_LIBRARY_PATH
20354 shlibpath_overrides_runpath=no
20355 hardcode_into_libs=yes
20356 dynamic_linker='NetBSD ld.elf_so'
20357 ;;
20358
20359 netbsd*)
20360 version_type=sunos
20361 need_lib_prefix=no
20362 need_version=no
20363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20364 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20366 dynamic_linker='NetBSD (a.out) ld.so'
20367 else
20368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20369 soname_spec='$libname$release$shared_ext$major'
20370 dynamic_linker='NetBSD ld.elf_so'
20371 fi
20372 shlibpath_var=LD_LIBRARY_PATH
20373 shlibpath_overrides_runpath=yes
20374 hardcode_into_libs=yes
20375 ;;
20376
20377 newsos6)
20378 version_type=linux # correct to gnu/linux during the next big refactor
20379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20380 shlibpath_var=LD_LIBRARY_PATH
20381 shlibpath_overrides_runpath=yes
20382 ;;
20383
20384 *nto* | *qnx*)
20385 version_type=qnx
20386 need_lib_prefix=no
20387 need_version=no
20388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20389 soname_spec='$libname$release$shared_ext$major'
20390 shlibpath_var=LD_LIBRARY_PATH
20391 shlibpath_overrides_runpath=no
20392 hardcode_into_libs=yes
20393 dynamic_linker='ldqnx.so'
20394 ;;
20395
20396 openbsd* | bitrig*)
20397 version_type=sunos
20398 sys_lib_dlsearch_path_spec=/usr/lib
20399 need_lib_prefix=no
20400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20401 need_version=no
20402 else
20403 need_version=yes
20404 fi
20405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20407 shlibpath_var=LD_LIBRARY_PATH
20408 shlibpath_overrides_runpath=yes
20409 ;;
20410
20411 os2*)
20412 libname_spec='$name'
20413 version_type=windows
20414 shrext_cmds=.dll
20415 need_version=no
20416 need_lib_prefix=no
20417 # OS/2 can only load a DLL with a base name of 8 characters or less.
20418 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20419 v=$($ECHO $release$versuffix | tr -d .-);
20420 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20421 $ECHO $n$v`$shared_ext'
20422 library_names_spec='${libname}_dll.$libext'
20423 dynamic_linker='OS/2 ld.exe'
20424 shlibpath_var=BEGINLIBPATH
20425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20427 postinstall_cmds='base_file=`basename \$file`~
20428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20429 dldir=$destdir/`dirname \$dlpath`~
20430 test -d \$dldir || mkdir -p \$dldir~
20431 $install_prog $dir/$dlname \$dldir/$dlname~
20432 chmod a+x \$dldir/$dlname~
20433 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20434 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20435 fi'
20436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20437 dlpath=$dir/\$dldll~
20438 $RM \$dlpath'
20439 ;;
20440
20441 osf3* | osf4* | osf5*)
20442 version_type=osf
20443 need_lib_prefix=no
20444 need_version=no
20445 soname_spec='$libname$release$shared_ext$major'
20446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20447 shlibpath_var=LD_LIBRARY_PATH
20448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20450 ;;
20451
20452 rdos*)
20453 dynamic_linker=no
20454 ;;
20455
20456 solaris*)
20457 version_type=linux # correct to gnu/linux during the next big refactor
20458 need_lib_prefix=no
20459 need_version=no
20460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20461 soname_spec='$libname$release$shared_ext$major'
20462 shlibpath_var=LD_LIBRARY_PATH
20463 shlibpath_overrides_runpath=yes
20464 hardcode_into_libs=yes
20465 # ldd complains unless libraries are executable
20466 postinstall_cmds='chmod +x $lib'
20467 ;;
20468
20469 sunos4*)
20470 version_type=sunos
20471 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20473 shlibpath_var=LD_LIBRARY_PATH
20474 shlibpath_overrides_runpath=yes
20475 if test yes = "$with_gnu_ld"; then
20476 need_lib_prefix=no
20477 fi
20478 need_version=yes
20479 ;;
20480
20481 sysv4 | sysv4.3*)
20482 version_type=linux # correct to gnu/linux during the next big refactor
20483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20484 soname_spec='$libname$release$shared_ext$major'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 case $host_vendor in
20487 sni)
20488 shlibpath_overrides_runpath=no
20489 need_lib_prefix=no
20490 runpath_var=LD_RUN_PATH
20491 ;;
20492 siemens)
20493 need_lib_prefix=no
20494 ;;
20495 motorola)
20496 need_lib_prefix=no
20497 need_version=no
20498 shlibpath_overrides_runpath=no
20499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20500 ;;
20501 esac
20502 ;;
20503
20504 sysv4*MP*)
20505 if test -d /usr/nec; then
20506 version_type=linux # correct to gnu/linux during the next big refactor
20507 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20508 soname_spec='$libname$shared_ext.$major'
20509 shlibpath_var=LD_LIBRARY_PATH
20510 fi
20511 ;;
20512
20513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20514 version_type=sco
20515 need_lib_prefix=no
20516 need_version=no
20517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20518 soname_spec='$libname$release$shared_ext$major'
20519 shlibpath_var=LD_LIBRARY_PATH
20520 shlibpath_overrides_runpath=yes
20521 hardcode_into_libs=yes
20522 if test yes = "$with_gnu_ld"; then
20523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20524 else
20525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20526 case $host_os in
20527 sco3.2v5*)
20528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20529 ;;
20530 esac
20531 fi
20532 sys_lib_dlsearch_path_spec='/usr/lib'
20533 ;;
20534
20535 tpf*)
20536 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20537 version_type=linux # correct to gnu/linux during the next big refactor
20538 need_lib_prefix=no
20539 need_version=no
20540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20541 shlibpath_var=LD_LIBRARY_PATH
20542 shlibpath_overrides_runpath=no
20543 hardcode_into_libs=yes
20544 ;;
20545
20546 uts4*)
20547 version_type=linux # correct to gnu/linux during the next big refactor
20548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20549 soname_spec='$libname$release$shared_ext$major'
20550 shlibpath_var=LD_LIBRARY_PATH
20551 ;;
20552
20553 *)
20554 dynamic_linker=no
20555 ;;
20556 esac
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20558 $as_echo "$dynamic_linker" >&6; }
20559 test no = "$dynamic_linker" && can_build_shared=no
20560
20561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20562 if test yes = "$GCC"; then
20563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20564 fi
20565
20566 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20567 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20568 fi
20569
20570 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20571 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20572 fi
20573
20574 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20575 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20576
20577 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20578 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20579
20580 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20581 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20623 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20624 hardcode_action_F77=
20625 if test -n "$hardcode_libdir_flag_spec_F77" ||
20626 test -n "$runpath_var_F77" ||
20627 test yes = "$hardcode_automatic_F77"; then
20628
20629 # We can hardcode non-existent directories.
20630 if test no != "$hardcode_direct_F77" &&
20631 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20632 # have to relink, otherwise we might link with an installed library
20633 # when we should be linking with a yet-to-be-installed one
20634 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" &&
20635 test no != "$hardcode_minus_L_F77"; then
20636 # Linking always hardcodes the temporary library directory.
20637 hardcode_action_F77=relink
20638 else
20639 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20640 hardcode_action_F77=immediate
20641 fi
20642 else
20643 # We cannot hardcode anything, or else we can only hardcode existing
20644 # directories.
20645 hardcode_action_F77=unsupported
20646 fi
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
20648 $as_echo "$hardcode_action_F77" >&6; }
20649
20650 if test relink = "$hardcode_action_F77" ||
20651 test yes = "$inherit_rpath_F77"; then
20652 # Fast installation is not supported
20653 enable_fast_install=no
20654 elif test yes = "$shlibpath_overrides_runpath" ||
20655 test no = "$enable_shared"; then
20656 # Fast installation is not necessary
20657 enable_fast_install=needless
20658 fi
20659
20660
20661
20662
20663
20664
20665
20666 fi # test -n "$compiler"
20667
20668 GCC=$lt_save_GCC
20669 CC=$lt_save_CC
20670 CFLAGS=$lt_save_CFLAGS
20671 fi # test yes != "$_lt_disable_F77"
20672
20673 ac_ext=c
20674 ac_cpp='$CPP $CPPFLAGS'
20675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20678
20679
20680 if test -z "$F77"; then
20681 enable_fortran=no
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5
20683 $as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;}
20684 else
20685 ac_ext=f
20686 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20687 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20688 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
20690 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
20691 if ${ac_cv_prog_f77_v+:} false; then :
20692 $as_echo_n "(cached) " >&6
20693 else
20694 cat > conftest.$ac_ext <<_ACEOF
20695 program main
20696
20697 end
20698 _ACEOF
20699 if ac_fn_f77_try_compile "$LINENO"; then :
20700 ac_cv_prog_f77_v=
20701 # Try some options frequently used verbose output
20702 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
20703 cat > conftest.$ac_ext <<_ACEOF
20704 program main
20705
20706 end
20707 _ACEOF
20708
20709 # Compile and link our simple test program by passing a flag (argument
20710 # 1 to this macro) to the Fortran compiler in order to get
20711 # "verbose" output that we can then parse for the Fortran linker
20712 # flags.
20713 ac_save_FFLAGS=$FFLAGS
20714 FFLAGS="$FFLAGS $ac_verb"
20715 eval "set x $ac_link"
20716 shift
20717 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
20718 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
20719 # LIBRARY_PATH; skip all such settings.
20720 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
20721 sed '/^Driving:/d; /^Configured with:/d;
20722 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
20723 $as_echo "$ac_f77_v_output" >&5
20724 FFLAGS=$ac_save_FFLAGS
20725
20726 rm -rf conftest*
20727
20728 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20729 # /foo, /bar, and /baz are search directories for the Fortran linker.
20730 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20731 ac_f77_v_output="`echo $ac_f77_v_output |
20732 grep 'LPATH is:' |
20733 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
20734
20735 # FIXME: we keep getting bitten by quoted arguments; a more general fix
20736 # that detects unbalanced quotes in FLIBS should be implemented
20737 # and (ugh) tested at some point.
20738 case $ac_f77_v_output in
20739 # With xlf replace commas with spaces,
20740 # and remove "-link" and closing parenthesis.
20741 *xlfentry*)
20742 ac_f77_v_output=`echo $ac_f77_v_output |
20743 sed '
20744 s/,/ /g
20745 s/ -link / /g
20746 s/) *$//
20747 '
20748 ` ;;
20749
20750 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20751 # $LIBS confuse us, and the libraries appear later in the output anyway).
20752 *mGLOB_options_string*)
20753 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
20754
20755 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
20756 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
20757 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
20758 *-cmdline\ * | *-ignore\ * | *-def\ *)
20759 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
20760 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
20761 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
20762 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
20763
20764 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
20765 *fort77*f2c*gcc*)
20766 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
20767 /:[ ]\+Running[ ]\{1,\}"gcc"/{
20768 /"-c"/d
20769 /[.]c"*/d
20770 s/^.*"gcc"/"gcc"/
20771 s/"//gp
20772 }'` ;;
20773
20774 # If we are using Cray Fortran then delete quotes.
20775 *cft90*)
20776 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
20777 esac
20778
20779
20780 # look for -l* and *.a constructs in the output
20781 for ac_arg in $ac_f77_v_output; do
20782 case $ac_arg in
20783 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
20784 ac_cv_prog_f77_v=$ac_verb
20785 break 2 ;;
20786 esac
20787 done
20788 done
20789 if test -z "$ac_cv_prog_f77_v"; then
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
20791 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
20792 fi
20793 else
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
20795 $as_echo "$as_me: WARNING: compilation failed" >&2;}
20796 fi
20797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20798
20799 fi
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
20801 $as_echo "$ac_cv_prog_f77_v" >&6; }
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
20803 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
20804 if ${ac_cv_f77_libs+:} false; then :
20805 $as_echo_n "(cached) " >&6
20806 else
20807 if test "x$FLIBS" != "x"; then
20808 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
20809 else
20810
20811 cat > conftest.$ac_ext <<_ACEOF
20812 program main
20813
20814 end
20815 _ACEOF
20816
20817 # Compile and link our simple test program by passing a flag (argument
20818 # 1 to this macro) to the Fortran compiler in order to get
20819 # "verbose" output that we can then parse for the Fortran linker
20820 # flags.
20821 ac_save_FFLAGS=$FFLAGS
20822 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
20823 eval "set x $ac_link"
20824 shift
20825 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
20826 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
20827 # LIBRARY_PATH; skip all such settings.
20828 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
20829 sed '/^Driving:/d; /^Configured with:/d;
20830 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
20831 $as_echo "$ac_f77_v_output" >&5
20832 FFLAGS=$ac_save_FFLAGS
20833
20834 rm -rf conftest*
20835
20836 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20837 # /foo, /bar, and /baz are search directories for the Fortran linker.
20838 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20839 ac_f77_v_output="`echo $ac_f77_v_output |
20840 grep 'LPATH is:' |
20841 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
20842
20843 # FIXME: we keep getting bitten by quoted arguments; a more general fix
20844 # that detects unbalanced quotes in FLIBS should be implemented
20845 # and (ugh) tested at some point.
20846 case $ac_f77_v_output in
20847 # With xlf replace commas with spaces,
20848 # and remove "-link" and closing parenthesis.
20849 *xlfentry*)
20850 ac_f77_v_output=`echo $ac_f77_v_output |
20851 sed '
20852 s/,/ /g
20853 s/ -link / /g
20854 s/) *$//
20855 '
20856 ` ;;
20857
20858 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20859 # $LIBS confuse us, and the libraries appear later in the output anyway).
20860 *mGLOB_options_string*)
20861 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
20862
20863 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
20864 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
20865 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
20866 *-cmdline\ * | *-ignore\ * | *-def\ *)
20867 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
20868 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
20869 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
20870 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
20871
20872 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
20873 *fort77*f2c*gcc*)
20874 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
20875 /:[ ]\+Running[ ]\{1,\}"gcc"/{
20876 /"-c"/d
20877 /[.]c"*/d
20878 s/^.*"gcc"/"gcc"/
20879 s/"//gp
20880 }'` ;;
20881
20882 # If we are using Cray Fortran then delete quotes.
20883 *cft90*)
20884 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
20885 esac
20886
20887
20888
20889 ac_cv_f77_libs=
20890
20891 # Save positional arguments (if any)
20892 ac_save_positional="$@"
20893
20894 set X $ac_f77_v_output
20895 while test $# != 1; do
20896 shift
20897 ac_arg=$1
20898 case $ac_arg in
20899 [\\/]*.a | ?:[\\/]*.a)
20900 ac_exists=false
20901 for ac_i in $ac_cv_f77_libs; do
20902 if test x"$ac_arg" = x"$ac_i"; then
20903 ac_exists=true
20904 break
20905 fi
20906 done
20907
20908 if test x"$ac_exists" = xtrue; then :
20909
20910 else
20911 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20912 fi
20913 ;;
20914 -bI:*)
20915 ac_exists=false
20916 for ac_i in $ac_cv_f77_libs; do
20917 if test x"$ac_arg" = x"$ac_i"; then
20918 ac_exists=true
20919 break
20920 fi
20921 done
20922
20923 if test x"$ac_exists" = xtrue; then :
20924
20925 else
20926 if test "$ac_compiler_gnu" = yes; then
20927 for ac_link_opt in $ac_arg; do
20928 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20929 done
20930 else
20931 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20932 fi
20933 fi
20934 ;;
20935 # Ignore these flags.
20936 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
20937 |-LANG:=* | -LIST:* | -LNO:* | -link)
20938 ;;
20939 -lkernel32)
20940 case $host_os in
20941 *cygwin*) ;;
20942 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20943 ;;
20944 esac
20945 ;;
20946 -[LRuYz])
20947 # These flags, when seen by themselves, take an argument.
20948 # We remove the space between option and argument and re-iterate
20949 # unless we find an empty arg or a new option (starting with -)
20950 case $2 in
20951 "" | -*);;
20952 *)
20953 ac_arg="$ac_arg$2"
20954 shift; shift
20955 set X $ac_arg "$@"
20956 ;;
20957 esac
20958 ;;
20959 -YP,*)
20960 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
20961 ac_exists=false
20962 for ac_i in $ac_cv_f77_libs; do
20963 if test x"$ac_j" = x"$ac_i"; then
20964 ac_exists=true
20965 break
20966 fi
20967 done
20968
20969 if test x"$ac_exists" = xtrue; then :
20970
20971 else
20972 ac_arg="$ac_arg $ac_j"
20973 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
20974 fi
20975 done
20976 ;;
20977 -[lLR]*)
20978 ac_exists=false
20979 for ac_i in $ac_cv_f77_libs; do
20980 if test x"$ac_arg" = x"$ac_i"; then
20981 ac_exists=true
20982 break
20983 fi
20984 done
20985
20986 if test x"$ac_exists" = xtrue; then :
20987
20988 else
20989 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20990 fi
20991 ;;
20992 -zallextract*| -zdefaultextract)
20993 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20994 ;;
20995 # Ignore everything else.
20996 esac
20997 done
20998 # restore positional arguments
20999 set X $ac_save_positional; shift
21000
21001 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
21002 # then we insist that the "run path" must be an absolute path (i.e. it
21003 # must begin with a "/").
21004 case `(uname -sr) 2>/dev/null` in
21005 "SunOS 5"*)
21006 ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
21007 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
21008 test "x$ac_ld_run_path" != x &&
21009 if test "$ac_compiler_gnu" = yes; then
21010 for ac_link_opt in $ac_ld_run_path; do
21011 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21012 done
21013 else
21014 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
21015 fi
21016 ;;
21017 esac
21018 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
21019
21020 fi
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
21022 $as_echo "$ac_cv_f77_libs" >&6; }
21023 FLIBS="$ac_cv_f77_libs"
21024
21025
21026 ac_ext=c
21027 ac_cpp='$CPP $CPPFLAGS'
21028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21031
21032 ac_ext=f
21033 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21034 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21036
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
21038 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
21039 if ${ac_cv_f77_dummy_main+:} false; then :
21040 $as_echo_n "(cached) " >&6
21041 else
21042 ac_f77_dm_save_LIBS=$LIBS
21043 LIBS="$LIBS $FLIBS"
21044 ac_fortran_dm_var=F77_DUMMY_MAIN
21045 ac_ext=c
21046 ac_cpp='$CPP $CPPFLAGS'
21047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21050
21051 # First, try linking without a dummy main:
21052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21053 /* end confdefs.h. */
21054
21055 #ifdef F77_DUMMY_MAIN
21056
21057 # ifdef __cplusplus
21058 extern "C"
21059 # endif
21060 int F77_DUMMY_MAIN() { return 1; }
21061
21062 #endif
21063 int
21064 main ()
21065 {
21066
21067 ;
21068 return 0;
21069 }
21070 _ACEOF
21071 if ac_fn_c_try_link "$LINENO"; then :
21072 ac_cv_fortran_dummy_main=none
21073 else
21074 ac_cv_fortran_dummy_main=unknown
21075 fi
21076 rm -f core conftest.err conftest.$ac_objext \
21077 conftest$ac_exeext conftest.$ac_ext
21078
21079 if test $ac_cv_fortran_dummy_main = unknown; then
21080 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
21081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21082 /* end confdefs.h. */
21083 #define $ac_fortran_dm_var $ac_func
21084 #ifdef F77_DUMMY_MAIN
21085
21086 # ifdef __cplusplus
21087 extern "C"
21088 # endif
21089 int F77_DUMMY_MAIN() { return 1; }
21090
21091 #endif
21092 int
21093 main ()
21094 {
21095
21096 ;
21097 return 0;
21098 }
21099 _ACEOF
21100 if ac_fn_c_try_link "$LINENO"; then :
21101 ac_cv_fortran_dummy_main=$ac_func; break
21102 fi
21103 rm -f core conftest.err conftest.$ac_objext \
21104 conftest$ac_exeext conftest.$ac_ext
21105 done
21106 fi
21107 ac_ext=f
21108 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21109 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21111 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
21112 rm -rf conftest*
21113 LIBS=$ac_f77_dm_save_LIBS
21114
21115 fi
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
21117 $as_echo "$ac_cv_f77_dummy_main" >&6; }
21118 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
21119 if test "$F77_DUMMY_MAIN" != unknown; then :
21120 if test $F77_DUMMY_MAIN != none; then
21121
21122 cat >>confdefs.h <<_ACEOF
21123 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
21124 _ACEOF
21125
21126 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
21127
21128 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
21129
21130 fi
21131 fi
21132 else
21133 enable_fortran=no
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5
21135 $as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;}
21136 fi
21137
21138 ac_ext=c
21139 ac_cpp='$CPP $CPPFLAGS'
21140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21143
21144 fi
21145 else
21146
21147 $as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h
21148
21149 fi
21150
21151 if test "x$enable_fortran" = xyes; then
21152 ac_ext=f
21153 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21154 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21155 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
21157 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
21158 if ${ac_cv_f77_mangling+:} false; then :
21159 $as_echo_n "(cached) " >&6
21160 else
21161 cat > conftest.$ac_ext <<_ACEOF
21162 subroutine foobar()
21163 return
21164 end
21165 subroutine foo_bar()
21166 return
21167 end
21168 _ACEOF
21169 if ac_fn_f77_try_compile "$LINENO"; then :
21170 mv conftest.$ac_objext cfortran_test.$ac_objext
21171
21172 ac_save_LIBS=$LIBS
21173 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
21174
21175 ac_ext=c
21176 ac_cpp='$CPP $CPPFLAGS'
21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21180 ac_success=no
21181 for ac_foobar in foobar FOOBAR; do
21182 for ac_underscore in "" "_"; do
21183 ac_func="$ac_foobar$ac_underscore"
21184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21185 /* end confdefs.h. */
21186
21187 /* Override any GCC internal prototype to avoid an error.
21188 Use char because int might match the return type of a GCC
21189 builtin and then its argument prototype would still apply. */
21190 #ifdef __cplusplus
21191 extern "C"
21192 #endif
21193 char $ac_func ();
21194 #ifdef F77_DUMMY_MAIN
21195
21196 # ifdef __cplusplus
21197 extern "C"
21198 # endif
21199 int F77_DUMMY_MAIN() { return 1; }
21200
21201 #endif
21202 int
21203 main ()
21204 {
21205 return $ac_func ();
21206 ;
21207 return 0;
21208 }
21209 _ACEOF
21210 if ac_fn_c_try_link "$LINENO"; then :
21211 ac_success=yes; break 2
21212 fi
21213 rm -f core conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
21215 done
21216 done
21217 ac_ext=f
21218 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21219 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21221
21222 if test "$ac_success" = "yes"; then
21223 case $ac_foobar in
21224 foobar)
21225 ac_case=lower
21226 ac_foo_bar=foo_bar
21227 ;;
21228 FOOBAR)
21229 ac_case=upper
21230 ac_foo_bar=FOO_BAR
21231 ;;
21232 esac
21233
21234 ac_ext=c
21235 ac_cpp='$CPP $CPPFLAGS'
21236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21239 ac_success_extra=no
21240 for ac_extra in "" "_"; do
21241 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
21242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21243 /* end confdefs.h. */
21244
21245 /* Override any GCC internal prototype to avoid an error.
21246 Use char because int might match the return type of a GCC
21247 builtin and then its argument prototype would still apply. */
21248 #ifdef __cplusplus
21249 extern "C"
21250 #endif
21251 char $ac_func ();
21252 #ifdef F77_DUMMY_MAIN
21253
21254 # ifdef __cplusplus
21255 extern "C"
21256 # endif
21257 int F77_DUMMY_MAIN() { return 1; }
21258
21259 #endif
21260 int
21261 main ()
21262 {
21263 return $ac_func ();
21264 ;
21265 return 0;
21266 }
21267 _ACEOF
21268 if ac_fn_c_try_link "$LINENO"; then :
21269 ac_success_extra=yes; break
21270 fi
21271 rm -f core conftest.err conftest.$ac_objext \
21272 conftest$ac_exeext conftest.$ac_ext
21273 done
21274 ac_ext=f
21275 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21276 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21277 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21278
21279 if test "$ac_success_extra" = "yes"; then
21280 ac_cv_f77_mangling="$ac_case case"
21281 if test -z "$ac_underscore"; then
21282 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
21283 else
21284 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
21285 fi
21286 if test -z "$ac_extra"; then
21287 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
21288 else
21289 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
21290 fi
21291 else
21292 ac_cv_f77_mangling="unknown"
21293 fi
21294 else
21295 ac_cv_f77_mangling="unknown"
21296 fi
21297
21298 LIBS=$ac_save_LIBS
21299 rm -rf conftest*
21300 rm -f cfortran_test*
21301 else
21302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21304 as_fn_error $? "cannot compile a simple Fortran program
21305 See \`config.log' for more details" "$LINENO" 5; }
21306 fi
21307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21308
21309 fi
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
21311 $as_echo "$ac_cv_f77_mangling" >&6; }
21312
21313 ac_ext=c
21314 ac_cpp='$CPP $CPPFLAGS'
21315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21318
21319 ac_ext=f
21320 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21321 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21322 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21323 case $ac_cv_f77_mangling in
21324 "lower case, no underscore, no extra underscore")
21325 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
21326
21327 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
21328 ;;
21329 "lower case, no underscore, extra underscore")
21330 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
21331
21332 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
21333 ;;
21334 "lower case, underscore, no extra underscore")
21335 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
21336
21337 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
21338 ;;
21339 "lower case, underscore, extra underscore")
21340 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
21341
21342 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
21343 ;;
21344 "upper case, no underscore, no extra underscore")
21345 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
21346
21347 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
21348 ;;
21349 "upper case, no underscore, extra underscore")
21350 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
21351
21352 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
21353 ;;
21354 "upper case, underscore, no extra underscore")
21355 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
21356
21357 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
21358 ;;
21359 "upper case, underscore, extra underscore")
21360 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
21361
21362 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
21363 ;;
21364 *)
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
21366 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
21367 ;;
21368 esac
21369
21370 ac_ext=c
21371 ac_cpp='$CPP $CPPFLAGS'
21372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21375
21376 ac_ext=f
21377 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21378 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21379 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21380 case $ac_cv_f77_mangling in
21381 upper*) ac_val="F77FOO" ;;
21382 lower*) ac_val="f77foo" ;;
21383 *) ac_val="unknown" ;;
21384 esac
21385 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
21386
21387 f77foo="$ac_val"
21388
21389 ac_ext=c
21390 ac_cpp='$CPP $CPPFLAGS'
21391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21394
21395 ac_ext=f
21396 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21397 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21398 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21399 case $ac_cv_f77_mangling in
21400 upper*) ac_val="F77_FOO" ;;
21401 lower*) ac_val="f77_foo" ;;
21402 *) ac_val="unknown" ;;
21403 esac
21404 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
21405 case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
21406
21407 f77_foo="$ac_val"
21408
21409 ac_ext=c
21410 ac_cpp='$CPP $CPPFLAGS'
21411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21414
21415 f77_foo2=`echo $f77foo | sed 's/77/77_/'`
21416 if test "$f77_foo" = "$f77_foo2"; then
21417
21418 $as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h
21419
21420
21421 # Include g77 wrappers by default for GNU systems or gfortran
21422 with_g77_wrappers=$ac_cv_f77_compiler_gnu
21423 case $host_os in *gnu*) with_g77_wrappers=yes ;; esac
21424 fi
21425 else
21426 with_g77_wrappers=no
21427 fi
21428
21429
21430 # Check whether --with-g77-wrappers was given.
21431 if test "${with_g77_wrappers+set}" = set; then :
21432 withval=$with_g77_wrappers; with_g77_wrappers=$withval
21433 fi
21434
21435 if test "x$with_g77_wrappers" = "xyes"; then
21436
21437 $as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h
21438
21439 fi
21440
21441 have_smp="no"
21442 # Check whether --enable-openmp was given.
21443 if test "${enable_openmp+set}" = set; then :
21444 enableval=$enable_openmp; enable_openmp=$enableval
21445 else
21446 enable_openmp=no
21447 fi
21448
21449
21450 if test "$enable_openmp" = "yes"; then
21451
21452 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
21453
21454
21455
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
21457 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
21458 if ${ax_cv_c_openmp+:} false; then :
21459 $as_echo_n "(cached) " >&6
21460 else
21461 saveCFLAGS=$CFLAGS
21462 ax_cv_c_openmp=unknown
21463 # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
21464 # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
21465 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
21466 if test "x$OPENMP_CFLAGS" != x; then
21467 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
21468 fi
21469 for ax_openmp_flag in $ax_openmp_flags; do
21470 case $ax_openmp_flag in
21471 none) CFLAGS=$saveC ;;
21472 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
21473 esac
21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21475 /* end confdefs.h. */
21476
21477 /* Override any GCC internal prototype to avoid an error.
21478 Use char because int might match the return type of a GCC
21479 builtin and then its argument prototype would still apply. */
21480 #ifdef __cplusplus
21481 extern "C"
21482 #endif
21483 char omp_set_num_threads ();
21484 #ifdef F77_DUMMY_MAIN
21485
21486 # ifdef __cplusplus
21487 extern "C"
21488 # endif
21489 int F77_DUMMY_MAIN() { return 1; }
21490
21491 #endif
21492 int
21493 main ()
21494 {
21495 return omp_set_num_threads ();
21496 ;
21497 return 0;
21498 }
21499 _ACEOF
21500 if ac_fn_c_try_link "$LINENO"; then :
21501 ax_cv_c_openmp=$ax_openmp_flag; break
21502 fi
21503 rm -f core conftest.err conftest.$ac_objext \
21504 conftest$ac_exeext conftest.$ac_ext
21505 done
21506 CFLAGS=$saveCFLAGS
21507
21508 fi
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
21510 $as_echo "$ax_cv_c_openmp" >&6; }
21511 if test "x$ax_cv_c_openmp" = "xunknown"; then
21512 as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5
21513 else
21514 if test "x$ax_cv_c_openmp" != "xnone"; then
21515 OPENMP_CFLAGS=$ax_cv_c_openmp
21516 fi
21517
21518 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
21519
21520 fi
21521
21522
21523 fi
21524
21525 # Check whether --enable-threads was given.
21526 if test "${enable_threads+set}" = set; then :
21527 enableval=$enable_threads; enable_threads=$enableval
21528 else
21529 enable_threads=no
21530 fi
21531
21532
21533 if test "$enable_threads" = "yes"; then
21534
21535 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
21536
21537 fi
21538
21539
21540 # Check whether --with-combined-threads was given.
21541 if test "${with_combined_threads+set}" = set; then :
21542 withval=$with_combined_threads; with_combined_threads=$withval
21543 else
21544 with_combined_threads=no
21545 fi
21546
21547
21548 if test "$with_combined_threads" = yes; then
21549 if test "$enable_openmp" = "yes"; then
21550 as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5
21551 fi
21552 if test "$enable_threads" != "yes"; then
21553 as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5
21554 fi
21555 fi
21556
21557 THREADLIBS=""
21558 if test "$enable_threads" = "yes"; then
21559 # Win32 threads are the default on Windows:
21560 if test -z "$THREADLIBS"; then
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5
21562 $as_echo_n "checking for Win32 threads... " >&6; }
21563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21564 /* end confdefs.h. */
21565 #include <windows.h>
21566 #ifdef F77_DUMMY_MAIN
21567
21568 # ifdef __cplusplus
21569 extern "C"
21570 # endif
21571 int F77_DUMMY_MAIN() { return 1; }
21572
21573 #endif
21574 int
21575 main ()
21576 {
21577 _beginthreadex(0,0,0,0,0,0);
21578 ;
21579 return 0;
21580 }
21581 _ACEOF
21582 if ac_fn_c_try_link "$LINENO"; then :
21583 THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21584 $as_echo "yes" >&6; }
21585 else
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21587 $as_echo "no" >&6; }
21588 fi
21589 rm -f core conftest.err conftest.$ac_objext \
21590 conftest$ac_exeext conftest.$ac_ext
21591 fi
21592
21593 # POSIX threads, the default choice everywhere else:
21594 if test -z "$THREADLIBS"; then
21595
21596
21597
21598 ac_ext=c
21599 ac_cpp='$CPP $CPPFLAGS'
21600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21603
21604 acx_pthread_ok=no
21605
21606 # We used to check for pthread.h first, but this fails if pthread.h
21607 # requires special compiler flags (e.g. on True64 or Sequent).
21608 # It gets checked for in the link test anyway.
21609
21610 # First of all, check if the user has set any of the PTHREAD_LIBS,
21611 # etcetera environment variables, and if threads linking works using
21612 # them:
21613 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21614 save_CFLAGS="$CFLAGS"
21615 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21616 save_LIBS="$LIBS"
21617 LIBS="$PTHREAD_LIBS $LIBS"
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21619 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21621 /* end confdefs.h. */
21622
21623 /* Override any GCC internal prototype to avoid an error.
21624 Use char because int might match the return type of a GCC
21625 builtin and then its argument prototype would still apply. */
21626 #ifdef __cplusplus
21627 extern "C"
21628 #endif
21629 char pthread_join ();
21630 #ifdef F77_DUMMY_MAIN
21631
21632 # ifdef __cplusplus
21633 extern "C"
21634 # endif
21635 int F77_DUMMY_MAIN() { return 1; }
21636
21637 #endif
21638 int
21639 main ()
21640 {
21641 return pthread_join ();
21642 ;
21643 return 0;
21644 }
21645 _ACEOF
21646 if ac_fn_c_try_link "$LINENO"; then :
21647 acx_pthread_ok=yes
21648 fi
21649 rm -f core conftest.err conftest.$ac_objext \
21650 conftest$ac_exeext conftest.$ac_ext
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
21652 $as_echo "$acx_pthread_ok" >&6; }
21653 if test x"$acx_pthread_ok" = xno; then
21654 PTHREAD_LIBS=""
21655 PTHREAD_CFLAGS=""
21656 fi
21657 LIBS="$save_LIBS"
21658 CFLAGS="$save_CFLAGS"
21659 fi
21660
21661 # We must check for the threads library under a number of different
21662 # names; the ordering is very important because some systems
21663 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21664 # libraries is broken (non-POSIX).
21665
21666 # Create a list of thread flags to try. Items starting with a "-" are
21667 # C compiler flags, and other items are library names, except for "none"
21668 # which indicates that we try without any flags at all, and "pthread-config"
21669 # which is a program returning the flags for the Pth emulation library.
21670
21671 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
21672
21673 # The ordering *is* (sometimes) important. Some notes on the
21674 # individual items follow:
21675
21676 # pthreads: AIX (must check this before -lpthread)
21677 # none: in case threads are in libc; should be tried before -Kthread and
21678 # other compiler flags to prevent continual compiler warnings
21679 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21680 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21681 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21682 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21683 # -pthreads: Solaris/gcc
21684 # -mthreads: Mingw32/gcc, Lynx/gcc
21685 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21686 # doesn't hurt to check since this sometimes defines pthreads too;
21687 # also defines -D_REENTRANT)
21688 # ... -mt is also the pthreads flag for HP/aCC
21689 # (where it should come before -mthreads to avoid spurious warnings)
21690 # pthread: Linux, etcetera
21691 # --thread-safe: KAI C++
21692 # pthread-config: use pthread-config program (for GNU Pth library)
21693
21694 case "${host_cpu}-${host_os}" in
21695 *solaris*)
21696
21697 # On Solaris (at least, for some versions), libc contains stubbed
21698 # (non-functional) versions of the pthreads routines, so link-based
21699 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
21700 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21701 # a function called by this macro, so we could check for that, but
21702 # who knows whether they'll stub that too in a future libc.) So,
21703 # we'll just look for -pthreads and -lpthread first:
21704
21705 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
21706 ;;
21707 esac
21708
21709 if test x"$acx_pthread_ok" = xno; then
21710 for flag in $acx_pthread_flags; do
21711
21712 case $flag in
21713 none)
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21715 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
21716 ;;
21717
21718 -*)
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21720 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
21721 PTHREAD_CFLAGS="$flag"
21722 ;;
21723
21724 pthread-config)
21725 # Extract the first word of "pthread-config", so it can be a program name with args.
21726 set dummy pthread-config; ac_word=$2
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21728 $as_echo_n "checking for $ac_word... " >&6; }
21729 if ${ac_cv_prog_acx_pthread_config+:} false; then :
21730 $as_echo_n "(cached) " >&6
21731 else
21732 if test -n "$acx_pthread_config"; then
21733 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21734 else
21735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21736 for as_dir in $PATH
21737 do
21738 IFS=$as_save_IFS
21739 test -z "$as_dir" && as_dir=.
21740 for ac_exec_ext in '' $ac_executable_extensions; do
21741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21742 ac_cv_prog_acx_pthread_config="yes"
21743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21744 break 2
21745 fi
21746 done
21747 done
21748 IFS=$as_save_IFS
21749
21750 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21751 fi
21752 fi
21753 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21754 if test -n "$acx_pthread_config"; then
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
21756 $as_echo "$acx_pthread_config" >&6; }
21757 else
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21759 $as_echo "no" >&6; }
21760 fi
21761
21762
21763 if test x"$acx_pthread_config" = xno; then continue; fi
21764 PTHREAD_CFLAGS="`pthread-config --cflags`"
21765 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21766 ;;
21767
21768 *)
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21770 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21771 PTHREAD_LIBS="-l$flag"
21772 ;;
21773 esac
21774
21775 save_LIBS="$LIBS"
21776 save_CFLAGS="$CFLAGS"
21777 LIBS="$PTHREAD_LIBS $LIBS"
21778 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21779
21780 # Check for various functions. We must include pthread.h,
21781 # since some functions may be macros. (On the Sequent, we
21782 # need a special flag -Kthread to make this header compile.)
21783 # We check for pthread_join because it is in -lpthread on IRIX
21784 # while pthread_create is in libc. We check for pthread_attr_init
21785 # due to DEC craziness with -lpthreads. We check for
21786 # pthread_cleanup_push because it is one of the few pthread
21787 # functions on Solaris that doesn't have a non-functional libc stub.
21788 # We try pthread_create on general principles.
21789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21790 /* end confdefs.h. */
21791 #include <pthread.h>
21792 #ifdef F77_DUMMY_MAIN
21793
21794 # ifdef __cplusplus
21795 extern "C"
21796 # endif
21797 int F77_DUMMY_MAIN() { return 1; }
21798
21799 #endif
21800 int
21801 main ()
21802 {
21803 pthread_t th; pthread_join(th, (void**) 0);
21804 pthread_attr_init((pthread_attr_t*) 0);
21805 pthread_cleanup_push((void(*)(void *)) 0, (void*) 0);
21806 pthread_create((pthread_t*) 0, (pthread_attr_t*) 0,
21807 (void*(*)(void *)) 0, (void*) 0);
21808 pthread_cleanup_pop(0);
21809 ;
21810 return 0;
21811 }
21812 _ACEOF
21813 if ac_fn_c_try_link "$LINENO"; then :
21814 acx_pthread_ok=yes
21815 fi
21816 rm -f core conftest.err conftest.$ac_objext \
21817 conftest$ac_exeext conftest.$ac_ext
21818
21819 LIBS="$save_LIBS"
21820 CFLAGS="$save_CFLAGS"
21821
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
21823 $as_echo "$acx_pthread_ok" >&6; }
21824 if test "x$acx_pthread_ok" = xyes; then
21825 break;
21826 fi
21827
21828 PTHREAD_LIBS=""
21829 PTHREAD_CFLAGS=""
21830 done
21831 fi
21832
21833 # Various other checks:
21834 if test "x$acx_pthread_ok" = xyes; then
21835 save_LIBS="$LIBS"
21836 LIBS="$PTHREAD_LIBS $LIBS"
21837 save_CFLAGS="$CFLAGS"
21838 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21839
21840 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21842 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21843 attr_name=unknown
21844 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h. */
21847 #include <pthread.h>
21848 #ifdef F77_DUMMY_MAIN
21849
21850 # ifdef __cplusplus
21851 extern "C"
21852 # endif
21853 int F77_DUMMY_MAIN() { return 1; }
21854
21855 #endif
21856 int
21857 main ()
21858 {
21859 int attr=$attr; return attr;
21860 ;
21861 return 0;
21862 }
21863 _ACEOF
21864 if ac_fn_c_try_link "$LINENO"; then :
21865 attr_name=$attr; break
21866 fi
21867 rm -f core conftest.err conftest.$ac_objext \
21868 conftest$ac_exeext conftest.$ac_ext
21869 done
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
21871 $as_echo "$attr_name" >&6; }
21872 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
21873
21874 cat >>confdefs.h <<_ACEOF
21875 #define PTHREAD_CREATE_JOINABLE $attr_name
21876 _ACEOF
21877
21878 fi
21879
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21881 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21882 flag=no
21883 case "${host_cpu}-${host_os}" in
21884 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21885 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21886 esac
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
21888 $as_echo "${flag}" >&6; }
21889 if test "x$flag" != xno; then
21890 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21891 fi
21892
21893 LIBS="$save_LIBS"
21894 CFLAGS="$save_CFLAGS"
21895
21896 # More AIX lossage: must compile with xlc_r or cc_r
21897 if test x"$GCC" != xyes; then
21898 for ac_prog in xlc_r cc_r
21899 do
21900 # Extract the first word of "$ac_prog", so it can be a program name with args.
21901 set dummy $ac_prog; ac_word=$2
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21903 $as_echo_n "checking for $ac_word... " >&6; }
21904 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21905 $as_echo_n "(cached) " >&6
21906 else
21907 if test -n "$PTHREAD_CC"; then
21908 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21909 else
21910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21911 for as_dir in $PATH
21912 do
21913 IFS=$as_save_IFS
21914 test -z "$as_dir" && as_dir=.
21915 for ac_exec_ext in '' $ac_executable_extensions; do
21916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21917 ac_cv_prog_PTHREAD_CC="$ac_prog"
21918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21919 break 2
21920 fi
21921 done
21922 done
21923 IFS=$as_save_IFS
21924
21925 fi
21926 fi
21927 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21928 if test -n "$PTHREAD_CC"; then
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21930 $as_echo "$PTHREAD_CC" >&6; }
21931 else
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21934 fi
21935
21936
21937 test -n "$PTHREAD_CC" && break
21938 done
21939 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
21940
21941 else
21942 PTHREAD_CC=$CC
21943 fi
21944 else
21945 PTHREAD_CC="$CC"
21946 fi
21947
21948
21949
21950
21951
21952 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21953 if test x"$acx_pthread_ok" = xyes; then
21954 THREADLIBS="$PTHREAD_LIBS "
21955 CC="$PTHREAD_CC"
21956
21957 $as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h
21958
21959 :
21960 else
21961 acx_pthread_ok=no
21962
21963 fi
21964 ac_ext=c
21965 ac_cpp='$CPP $CPPFLAGS'
21966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21969
21970
21971 fi
21972
21973 if test -z "$THREADLIBS"; then
21974 as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5
21975 fi
21976
21977 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
21978
21979 fi
21980
21981 if test "$enable_threads" = "yes"; then
21982 THREADS_TRUE=
21983 THREADS_FALSE='#'
21984 else
21985 THREADS_TRUE='#'
21986 THREADS_FALSE=
21987 fi
21988
21989 if test "$enable_openmp" = "yes"; then
21990 OPENMP_TRUE=
21991 OPENMP_FALSE='#'
21992 else
21993 OPENMP_TRUE='#'
21994 OPENMP_FALSE=
21995 fi
21996
21997 if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then
21998 SMP_TRUE=
21999 SMP_FALSE='#'
22000 else
22001 SMP_TRUE='#'
22002 SMP_FALSE=
22003 fi
22004
22005 if test x"$with_combined_threads" = xyes; then
22006 COMBINED_THREADS_TRUE=
22007 COMBINED_THREADS_FALSE='#'
22008 else
22009 COMBINED_THREADS_TRUE='#'
22010 COMBINED_THREADS_FALSE=
22011 fi
22012
22013
22014
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5
22016 $as_echo_n "checking whether a cycle counter is available... " >&6; }
22017 save_CPPFLAGS=$CPPFLAGS
22018 CPPFLAGS="$CPPFLAGS -I$srcdir/kernel"
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22021 #include "cycle.h"
22022 #ifndef HAVE_TICK_COUNTER
22023 # error No cycle counter
22024 #endif
22025 _ACEOF
22026 if ac_fn_c_try_cpp "$LINENO"; then :
22027 ok=yes
22028 else
22029 ok=no
22030 fi
22031 rm -f conftest.err conftest.i conftest.$ac_ext
22032 CPPFLAGS=$save_CPPFLAGS
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5
22034 $as_echo "$ok" >&6; }
22035 if test $ok = no && test "x$with_slow_timer" = xno; then
22036 echo "***************************************************************"
22037 echo "WARNING: No cycle counter found. FFTW will use ESTIMATE mode "
22038 echo " for all plans. See the manual for more information."
22039 echo "***************************************************************"
22040 fi
22041
22042
22043
22044 cat >>confdefs.h <<_ACEOF
22045 #define FFTW_CC "$CC $CFLAGS"
22046 _ACEOF
22047
22048
22049 ac_config_files="$ac_config_files Makefile support/Makefile genfft/Makefile kernel/Makefile simd-support/Makefile dft/Makefile dft/scalar/Makefile dft/scalar/codelets/Makefile dft/simd/Makefile dft/simd/common/Makefile dft/simd/sse2/Makefile dft/simd/avx/Makefile dft/simd/avx-128-fma/Makefile dft/simd/avx2/Makefile dft/simd/avx2-128/Makefile dft/simd/avx512/Makefile dft/simd/kcvi/Makefile dft/simd/altivec/Makefile dft/simd/vsx/Makefile dft/simd/neon/Makefile dft/simd/generic-simd128/Makefile dft/simd/generic-simd256/Makefile rdft/Makefile rdft/scalar/Makefile rdft/scalar/r2cf/Makefile rdft/scalar/r2cb/Makefile rdft/scalar/r2r/Makefile rdft/simd/Makefile rdft/simd/common/Makefile rdft/simd/sse2/Makefile rdft/simd/avx/Makefile rdft/simd/avx-128-fma/Makefile rdft/simd/avx2/Makefile rdft/simd/avx2-128/Makefile rdft/simd/avx512/Makefile rdft/simd/kcvi/Makefile rdft/simd/altivec/Makefile rdft/simd/vsx/Makefile rdft/simd/neon/Makefile rdft/simd/generic-simd128/Makefile rdft/simd/generic-simd256/Makefile reodft/Makefile threads/Makefile api/Makefile mpi/Makefile libbench2/Makefile tests/Makefile doc/Makefile doc/FAQ/Makefile tools/Makefile tools/fftw_wisdom.1 tools/fftw-wisdom-to-conf m4/Makefile fftw.pc"
22050
22051
22052 cat >confcache <<\_ACEOF
22053 # This file is a shell script that caches the results of configure
22054 # tests run on this system so they can be shared between configure
22055 # scripts and configure runs, see configure's option --config-cache.
22056 # It is not useful on other systems. If it contains results you don't
22057 # want to keep, you may remove or edit it.
22058 #
22059 # config.status only pays attention to the cache file if you give it
22060 # the --recheck option to rerun configure.
22061 #
22062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22064 # following values.
22065
22066 _ACEOF
22067
22068 # The following way of writing the cache mishandles newlines in values,
22069 # but we know of no workaround that is simple, portable, and efficient.
22070 # So, we kill variables containing newlines.
22071 # Ultrix sh set writes to stderr and can't be redirected directly,
22072 # and sets the high bit in the cache file unless we assign to the vars.
22073 (
22074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22075 eval ac_val=\$$ac_var
22076 case $ac_val in #(
22077 *${as_nl}*)
22078 case $ac_var in #(
22079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22081 esac
22082 case $ac_var in #(
22083 _ | IFS | as_nl) ;; #(
22084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22085 *) { eval $ac_var=; unset $ac_var;} ;;
22086 esac ;;
22087 esac
22088 done
22089
22090 (set) 2>&1 |
22091 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22092 *${as_nl}ac_space=\ *)
22093 # `set' does not quote correctly, so add quotes: double-quote
22094 # substitution turns \\\\ into \\, and sed turns \\ into \.
22095 sed -n \
22096 "s/'/'\\\\''/g;
22097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22098 ;; #(
22099 *)
22100 # `set' quotes correctly as required by POSIX, so do not add quotes.
22101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22102 ;;
22103 esac |
22104 sort
22105 ) |
22106 sed '
22107 /^ac_cv_env_/b end
22108 t clear
22109 :clear
22110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22111 t end
22112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22113 :end' >>confcache
22114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22115 if test -w "$cache_file"; then
22116 if test "x$cache_file" != "x/dev/null"; then
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22118 $as_echo "$as_me: updating cache $cache_file" >&6;}
22119 if test ! -f "$cache_file" || test -h "$cache_file"; then
22120 cat confcache >"$cache_file"
22121 else
22122 case $cache_file in #(
22123 */* | ?:*)
22124 mv -f confcache "$cache_file"$$ &&
22125 mv -f "$cache_file"$$ "$cache_file" ;; #(
22126 *)
22127 mv -f confcache "$cache_file" ;;
22128 esac
22129 fi
22130 fi
22131 else
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22133 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22134 fi
22135 fi
22136 rm -f confcache
22137
22138 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22139 # Let make expand exec_prefix.
22140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22141
22142 DEFS=-DHAVE_CONFIG_H
22143
22144 ac_libobjs=
22145 ac_ltlibobjs=
22146 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22147 # 1. Remove the extension, and $U if already installed.
22148 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22149 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22150 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22151 # will be set to the directory where LIBOBJS objects are built.
22152 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22153 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22154 done
22155 LIBOBJS=$ac_libobjs
22156
22157 LTLIBOBJS=$ac_ltlibobjs
22158
22159
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22161 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22162 if test -n "$am_sleep_pid"; then
22163 # Hide warnings about reused PIDs.
22164 wait $am_sleep_pid 2>/dev/null
22165 fi
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22167 $as_echo "done" >&6; }
22168 if test -n "$EXEEXT"; then
22169 am__EXEEXT_TRUE=
22170 am__EXEEXT_FALSE='#'
22171 else
22172 am__EXEEXT_TRUE='#'
22173 am__EXEEXT_FALSE=
22174 fi
22175
22176 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22177 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22179 fi
22180 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
22181 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
22182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22183 fi
22184 if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then
22185 as_fn_error $? "conditional \"SINGLE\" was never defined.
22186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22187 fi
22188 if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then
22189 as_fn_error $? "conditional \"LDOUBLE\" was never defined.
22190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22191 fi
22192 if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then
22193 as_fn_error $? "conditional \"QUAD\" was never defined.
22194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22195 fi
22196 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
22197 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
22198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22199 fi
22200 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
22201 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
22202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22203 fi
22204 if test -z "${HAVE_AVX2_TRUE}" && test -z "${HAVE_AVX2_FALSE}"; then
22205 as_fn_error $? "conditional \"HAVE_AVX2\" was never defined.
22206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22207 fi
22208 if test -z "${HAVE_AVX512_TRUE}" && test -z "${HAVE_AVX512_FALSE}"; then
22209 as_fn_error $? "conditional \"HAVE_AVX512\" was never defined.
22210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22211 fi
22212 if test -z "${HAVE_AVX_128_FMA_TRUE}" && test -z "${HAVE_AVX_128_FMA_FALSE}"; then
22213 as_fn_error $? "conditional \"HAVE_AVX_128_FMA\" was never defined.
22214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22215 fi
22216 if test -z "${HAVE_KCVI_TRUE}" && test -z "${HAVE_KCVI_FALSE}"; then
22217 as_fn_error $? "conditional \"HAVE_KCVI\" was never defined.
22218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22219 fi
22220 if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then
22221 as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined.
22222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22223 fi
22224 if test -z "${HAVE_VSX_TRUE}" && test -z "${HAVE_VSX_FALSE}"; then
22225 as_fn_error $? "conditional \"HAVE_VSX\" was never defined.
22226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22227 fi
22228 if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then
22229 as_fn_error $? "conditional \"HAVE_NEON\" was never defined.
22230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22231 fi
22232 if test -z "${HAVE_GENERIC_SIMD128_TRUE}" && test -z "${HAVE_GENERIC_SIMD128_FALSE}"; then
22233 as_fn_error $? "conditional \"HAVE_GENERIC_SIMD128\" was never defined.
22234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22235 fi
22236 if test -z "${HAVE_GENERIC_SIMD256_TRUE}" && test -z "${HAVE_GENERIC_SIMD256_FALSE}"; then
22237 as_fn_error $? "conditional \"HAVE_GENERIC_SIMD256\" was never defined.
22238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22239 fi
22240 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22241 as_fn_error $? "conditional \"AMDEP\" was never defined.
22242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22243 fi
22244 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22245 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22247 fi
22248 if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then
22249 as_fn_error $? "conditional \"MPI\" was never defined.
22250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22251 fi
22252 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
22253 as_fn_error $? "conditional \"THREADS\" was never defined.
22254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22255 fi
22256 if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then
22257 as_fn_error $? "conditional \"OPENMP\" was never defined.
22258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22259 fi
22260 if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then
22261 as_fn_error $? "conditional \"SMP\" was never defined.
22262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22263 fi
22264 if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then
22265 as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined.
22266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22267 fi
22268
22269 : "${CONFIG_STATUS=./config.status}"
22270 ac_write_fail=0
22271 ac_clean_files_save=$ac_clean_files
22272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22274 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22275 as_write_fail=0
22276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22277 #! $SHELL
22278 # Generated by $as_me.
22279 # Run this file to recreate the current configuration.
22280 # Compiler output produced by configure, useful for debugging
22281 # configure, is in config.log if it exists.
22282
22283 debug=false
22284 ac_cs_recheck=false
22285 ac_cs_silent=false
22286
22287 SHELL=\${CONFIG_SHELL-$SHELL}
22288 export SHELL
22289 _ASEOF
22290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22291 ## -------------------- ##
22292 ## M4sh Initialization. ##
22293 ## -------------------- ##
22294
22295 # Be more Bourne compatible
22296 DUALCASE=1; export DUALCASE # for MKS sh
22297 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22298 emulate sh
22299 NULLCMD=:
22300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22301 # is contrary to our usage. Disable this feature.
22302 alias -g '${1+"$@"}'='"$@"'
22303 setopt NO_GLOB_SUBST
22304 else
22305 case `(set -o) 2>/dev/null` in #(
22306 *posix*) :
22307 set -o posix ;; #(
22308 *) :
22309 ;;
22310 esac
22311 fi
22312
22313
22314 as_nl='
22315 '
22316 export as_nl
22317 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22318 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22321 # Prefer a ksh shell builtin over an external printf program on Solaris,
22322 # but without wasting forks for bash or zsh.
22323 if test -z "$BASH_VERSION$ZSH_VERSION" \
22324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22325 as_echo='print -r --'
22326 as_echo_n='print -rn --'
22327 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22328 as_echo='printf %s\n'
22329 as_echo_n='printf %s'
22330 else
22331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22332 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22333 as_echo_n='/usr/ucb/echo -n'
22334 else
22335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22336 as_echo_n_body='eval
22337 arg=$1;
22338 case $arg in #(
22339 *"$as_nl"*)
22340 expr "X$arg" : "X\\(.*\\)$as_nl";
22341 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22342 esac;
22343 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22344 '
22345 export as_echo_n_body
22346 as_echo_n='sh -c $as_echo_n_body as_echo'
22347 fi
22348 export as_echo_body
22349 as_echo='sh -c $as_echo_body as_echo'
22350 fi
22351
22352 # The user is always right.
22353 if test "${PATH_SEPARATOR+set}" != set; then
22354 PATH_SEPARATOR=:
22355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22356 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22357 PATH_SEPARATOR=';'
22358 }
22359 fi
22360
22361
22362 # IFS
22363 # We need space, tab and new line, in precisely that order. Quoting is
22364 # there to prevent editors from complaining about space-tab.
22365 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22366 # splitting by setting IFS to empty value.)
22367 IFS=" "" $as_nl"
22368
22369 # Find who we are. Look in the path if we contain no directory separator.
22370 as_myself=
22371 case $0 in #((
22372 *[\\/]* ) as_myself=$0 ;;
22373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22374 for as_dir in $PATH
22375 do
22376 IFS=$as_save_IFS
22377 test -z "$as_dir" && as_dir=.
22378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22379 done
22380 IFS=$as_save_IFS
22381
22382 ;;
22383 esac
22384 # We did not find ourselves, most probably we were run as `sh COMMAND'
22385 # in which case we are not to be found in the path.
22386 if test "x$as_myself" = x; then
22387 as_myself=$0
22388 fi
22389 if test ! -f "$as_myself"; then
22390 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22391 exit 1
22392 fi
22393
22394 # Unset variables that we do not need and which cause bugs (e.g. in
22395 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22396 # suppresses any "Segmentation fault" message there. '((' could
22397 # trigger a bug in pdksh 5.2.14.
22398 for as_var in BASH_ENV ENV MAIL MAILPATH
22399 do eval test x\${$as_var+set} = xset \
22400 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22401 done
22402 PS1='$ '
22403 PS2='> '
22404 PS4='+ '
22405
22406 # NLS nuisances.
22407 LC_ALL=C
22408 export LC_ALL
22409 LANGUAGE=C
22410 export LANGUAGE
22411
22412 # CDPATH.
22413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22414
22415
22416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22417 # ----------------------------------------
22418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22420 # script with STATUS, using 1 if that was 0.
22421 as_fn_error ()
22422 {
22423 as_status=$1; test $as_status -eq 0 && as_status=1
22424 if test "$4"; then
22425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22427 fi
22428 $as_echo "$as_me: error: $2" >&2
22429 as_fn_exit $as_status
22430 } # as_fn_error
22431
22432
22433 # as_fn_set_status STATUS
22434 # -----------------------
22435 # Set $? to STATUS, without forking.
22436 as_fn_set_status ()
22437 {
22438 return $1
22439 } # as_fn_set_status
22440
22441 # as_fn_exit STATUS
22442 # -----------------
22443 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22444 as_fn_exit ()
22445 {
22446 set +e
22447 as_fn_set_status $1
22448 exit $1
22449 } # as_fn_exit
22450
22451 # as_fn_unset VAR
22452 # ---------------
22453 # Portably unset VAR.
22454 as_fn_unset ()
22455 {
22456 { eval $1=; unset $1;}
22457 }
22458 as_unset=as_fn_unset
22459 # as_fn_append VAR VALUE
22460 # ----------------------
22461 # Append the text in VALUE to the end of the definition contained in VAR. Take
22462 # advantage of any shell optimizations that allow amortized linear growth over
22463 # repeated appends, instead of the typical quadratic growth present in naive
22464 # implementations.
22465 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22466 eval 'as_fn_append ()
22467 {
22468 eval $1+=\$2
22469 }'
22470 else
22471 as_fn_append ()
22472 {
22473 eval $1=\$$1\$2
22474 }
22475 fi # as_fn_append
22476
22477 # as_fn_arith ARG...
22478 # ------------------
22479 # Perform arithmetic evaluation on the ARGs, and store the result in the
22480 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22481 # must be portable across $(()) and expr.
22482 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22483 eval 'as_fn_arith ()
22484 {
22485 as_val=$(( $* ))
22486 }'
22487 else
22488 as_fn_arith ()
22489 {
22490 as_val=`expr "$@" || test $? -eq 1`
22491 }
22492 fi # as_fn_arith
22493
22494
22495 if expr a : '\(a\)' >/dev/null 2>&1 &&
22496 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22497 as_expr=expr
22498 else
22499 as_expr=false
22500 fi
22501
22502 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22503 as_basename=basename
22504 else
22505 as_basename=false
22506 fi
22507
22508 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22509 as_dirname=dirname
22510 else
22511 as_dirname=false
22512 fi
22513
22514 as_me=`$as_basename -- "$0" ||
22515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22516 X"$0" : 'X\(//\)$' \| \
22517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22518 $as_echo X/"$0" |
22519 sed '/^.*\/\([^/][^/]*\)\/*$/{
22520 s//\1/
22521 q
22522 }
22523 /^X\/\(\/\/\)$/{
22524 s//\1/
22525 q
22526 }
22527 /^X\/\(\/\).*/{
22528 s//\1/
22529 q
22530 }
22531 s/.*/./; q'`
22532
22533 # Avoid depending upon Character Ranges.
22534 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22535 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22536 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22537 as_cr_digits='0123456789'
22538 as_cr_alnum=$as_cr_Letters$as_cr_digits
22539
22540 ECHO_C= ECHO_N= ECHO_T=
22541 case `echo -n x` in #(((((
22542 -n*)
22543 case `echo 'xy\c'` in
22544 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22545 xy) ECHO_C='\c';;
22546 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22547 ECHO_T=' ';;
22548 esac;;
22549 *)
22550 ECHO_N='-n';;
22551 esac
22552
22553 rm -f conf$$ conf$$.exe conf$$.file
22554 if test -d conf$$.dir; then
22555 rm -f conf$$.dir/conf$$.file
22556 else
22557 rm -f conf$$.dir
22558 mkdir conf$$.dir 2>/dev/null
22559 fi
22560 if (echo >conf$$.file) 2>/dev/null; then
22561 if ln -s conf$$.file conf$$ 2>/dev/null; then
22562 as_ln_s='ln -s'
22563 # ... but there are two gotchas:
22564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22566 # In both cases, we have to default to `cp -pR'.
22567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22568 as_ln_s='cp -pR'
22569 elif ln conf$$.file conf$$ 2>/dev/null; then
22570 as_ln_s=ln
22571 else
22572 as_ln_s='cp -pR'
22573 fi
22574 else
22575 as_ln_s='cp -pR'
22576 fi
22577 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22578 rmdir conf$$.dir 2>/dev/null
22579
22580
22581 # as_fn_mkdir_p
22582 # -------------
22583 # Create "$as_dir" as a directory, including parents if necessary.
22584 as_fn_mkdir_p ()
22585 {
22586
22587 case $as_dir in #(
22588 -*) as_dir=./$as_dir;;
22589 esac
22590 test -d "$as_dir" || eval $as_mkdir_p || {
22591 as_dirs=
22592 while :; do
22593 case $as_dir in #(
22594 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22595 *) as_qdir=$as_dir;;
22596 esac
22597 as_dirs="'$as_qdir' $as_dirs"
22598 as_dir=`$as_dirname -- "$as_dir" ||
22599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600 X"$as_dir" : 'X\(//\)[^/]' \| \
22601 X"$as_dir" : 'X\(//\)$' \| \
22602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22603 $as_echo X"$as_dir" |
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22605 s//\1/
22606 q
22607 }
22608 /^X\(\/\/\)[^/].*/{
22609 s//\1/
22610 q
22611 }
22612 /^X\(\/\/\)$/{
22613 s//\1/
22614 q
22615 }
22616 /^X\(\/\).*/{
22617 s//\1/
22618 q
22619 }
22620 s/.*/./; q'`
22621 test -d "$as_dir" && break
22622 done
22623 test -z "$as_dirs" || eval "mkdir $as_dirs"
22624 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22625
22626
22627 } # as_fn_mkdir_p
22628 if mkdir -p . 2>/dev/null; then
22629 as_mkdir_p='mkdir -p "$as_dir"'
22630 else
22631 test -d ./-p && rmdir ./-p
22632 as_mkdir_p=false
22633 fi
22634
22635
22636 # as_fn_executable_p FILE
22637 # -----------------------
22638 # Test if FILE is an executable regular file.
22639 as_fn_executable_p ()
22640 {
22641 test -f "$1" && test -x "$1"
22642 } # as_fn_executable_p
22643 as_test_x='test -x'
22644 as_executable_p=as_fn_executable_p
22645
22646 # Sed expression to map a string onto a valid CPP name.
22647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22648
22649 # Sed expression to map a string onto a valid variable name.
22650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22651
22652
22653 exec 6>&1
22654 ## ----------------------------------- ##
22655 ## Main body of $CONFIG_STATUS script. ##
22656 ## ----------------------------------- ##
22657 _ASEOF
22658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22659
22660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22661 # Save the log message, to keep $0 and so on meaningful, and to
22662 # report actual input values of CONFIG_FILES etc. instead of their
22663 # values after options handling.
22664 ac_log="
22665 This file was extended by fftw $as_me 3.3.8, which was
22666 generated by GNU Autoconf 2.69. Invocation command line was
22667
22668 CONFIG_FILES = $CONFIG_FILES
22669 CONFIG_HEADERS = $CONFIG_HEADERS
22670 CONFIG_LINKS = $CONFIG_LINKS
22671 CONFIG_COMMANDS = $CONFIG_COMMANDS
22672 $ $0 $@
22673
22674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22675 "
22676
22677 _ACEOF
22678
22679 case $ac_config_files in *"
22680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22681 esac
22682
22683 case $ac_config_headers in *"
22684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22685 esac
22686
22687
22688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22689 # Files that config.status was made for.
22690 config_files="$ac_config_files"
22691 config_headers="$ac_config_headers"
22692 config_commands="$ac_config_commands"
22693
22694 _ACEOF
22695
22696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22697 ac_cs_usage="\
22698 \`$as_me' instantiates files and other configuration actions
22699 from templates according to the current configuration. Unless the files
22700 and actions are specified as TAGs, all are instantiated by default.
22701
22702 Usage: $0 [OPTION]... [TAG]...
22703
22704 -h, --help print this help, then exit
22705 -V, --version print version number and configuration settings, then exit
22706 --config print configuration, then exit
22707 -q, --quiet, --silent
22708 do not print progress messages
22709 -d, --debug don't remove temporary files
22710 --recheck update $as_me by reconfiguring in the same conditions
22711 --file=FILE[:TEMPLATE]
22712 instantiate the configuration file FILE
22713 --header=FILE[:TEMPLATE]
22714 instantiate the configuration header FILE
22715
22716 Configuration files:
22717 $config_files
22718
22719 Configuration headers:
22720 $config_headers
22721
22722 Configuration commands:
22723 $config_commands
22724
22725 Report bugs to <fftw@fftw.org>."
22726
22727 _ACEOF
22728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22729 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22730 ac_cs_version="\\
22731 fftw config.status 3.3.8
22732 configured by $0, generated by GNU Autoconf 2.69,
22733 with options \\"\$ac_cs_config\\"
22734
22735 Copyright (C) 2012 Free Software Foundation, Inc.
22736 This config.status script is free software; the Free Software Foundation
22737 gives unlimited permission to copy, distribute and modify it."
22738
22739 ac_pwd='$ac_pwd'
22740 srcdir='$srcdir'
22741 INSTALL='$INSTALL'
22742 MKDIR_P='$MKDIR_P'
22743 AWK='$AWK'
22744 test -n "\$AWK" || AWK=awk
22745 _ACEOF
22746
22747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22748 # The default lists apply if the user does not specify any file.
22749 ac_need_defaults=:
22750 while test $# != 0
22751 do
22752 case $1 in
22753 --*=?*)
22754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22756 ac_shift=:
22757 ;;
22758 --*=)
22759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22760 ac_optarg=
22761 ac_shift=:
22762 ;;
22763 *)
22764 ac_option=$1
22765 ac_optarg=$2
22766 ac_shift=shift
22767 ;;
22768 esac
22769
22770 case $ac_option in
22771 # Handling of the options.
22772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22773 ac_cs_recheck=: ;;
22774 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22775 $as_echo "$ac_cs_version"; exit ;;
22776 --config | --confi | --conf | --con | --co | --c )
22777 $as_echo "$ac_cs_config"; exit ;;
22778 --debug | --debu | --deb | --de | --d | -d )
22779 debug=: ;;
22780 --file | --fil | --fi | --f )
22781 $ac_shift
22782 case $ac_optarg in
22783 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22784 '') as_fn_error $? "missing file argument" ;;
22785 esac
22786 as_fn_append CONFIG_FILES " '$ac_optarg'"
22787 ac_need_defaults=false;;
22788 --header | --heade | --head | --hea )
22789 $ac_shift
22790 case $ac_optarg in
22791 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22792 esac
22793 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22794 ac_need_defaults=false;;
22795 --he | --h)
22796 # Conflict between --help and --header
22797 as_fn_error $? "ambiguous option: \`$1'
22798 Try \`$0 --help' for more information.";;
22799 --help | --hel | -h )
22800 $as_echo "$ac_cs_usage"; exit ;;
22801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22802 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22803 ac_cs_silent=: ;;
22804
22805 # This is an error.
22806 -*) as_fn_error $? "unrecognized option: \`$1'
22807 Try \`$0 --help' for more information." ;;
22808
22809 *) as_fn_append ac_config_targets " $1"
22810 ac_need_defaults=false ;;
22811
22812 esac
22813 shift
22814 done
22815
22816 ac_configure_extra_args=
22817
22818 if $ac_cs_silent; then
22819 exec 6>/dev/null
22820 ac_configure_extra_args="$ac_configure_extra_args --silent"
22821 fi
22822
22823 _ACEOF
22824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22825 if \$ac_cs_recheck; then
22826 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22827 shift
22828 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22829 CONFIG_SHELL='$SHELL'
22830 export CONFIG_SHELL
22831 exec "\$@"
22832 fi
22833
22834 _ACEOF
22835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22836 exec 5>>config.log
22837 {
22838 echo
22839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22840 ## Running $as_me. ##
22841 _ASBOX
22842 $as_echo "$ac_log"
22843 } >&5
22844
22845 _ACEOF
22846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22847 #
22848 # INIT-COMMANDS
22849 #
22850 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22851
22852
22853 # The HP-UX ksh and POSIX shell print the target directory to stdout
22854 # if CDPATH is set.
22855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22856
22857 sed_quote_subst='$sed_quote_subst'
22858 double_quote_subst='$double_quote_subst'
22859 delay_variable_subst='$delay_variable_subst'
22860 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22861 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22862 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22863 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22864 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22865 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22866 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22867 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22868 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22869 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22870 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22871 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22872 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22873 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22874 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22875 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22876 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22877 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22878 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22879 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22880 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22881 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22882 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22883 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22884 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22885 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22886 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22887 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22888 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22889 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22890 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22891 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22892 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22893 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22894 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22895 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22896 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22897 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22898 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22899 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22900 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22901 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22902 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22903 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22904 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22905 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22906 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22907 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22908 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22909 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22910 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22911 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22912 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22913 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22914 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22915 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22916 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22917 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22918 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22919 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"`'
22920 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22921 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22922 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22923 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22924 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22925 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22926 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22927 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22928 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22929 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22930 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22931 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22932 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22933 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22934 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22935 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22936 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22937 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22938 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22939 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22940 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22941 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22942 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22943 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22944 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22945 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22946 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22947 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22948 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22949 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22950 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22951 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22952 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22953 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22954 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22955 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22956 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22957 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22958 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22959 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22960 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22961 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22962 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22963 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22964 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22965 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22966 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22967 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22968 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22969 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22970 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22971 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22972 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22973 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22974 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22975 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22976 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22977 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22978 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22979 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22980 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22981 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22982 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22983 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22984 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22985 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22986 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22987 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22988 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22989 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22990 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22991 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22992 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22993 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22994 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22995 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22996 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
22997 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
22998 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
22999 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
23000 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
23001 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
23002 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
23003 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
23004 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
23005 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
23006 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
23007 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
23008 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
23009 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23010 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23011 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
23012 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
23013 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
23014 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
23015 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
23016 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
23017 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
23018 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
23019 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
23020 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
23021 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23022 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
23023 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
23024 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
23025 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
23026 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
23027 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
23028 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
23029 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
23030 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
23031 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
23032 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
23033 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
23034 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
23035 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
23036 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
23037 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
23038
23039 LTCC='$LTCC'
23040 LTCFLAGS='$LTCFLAGS'
23041 compiler='$compiler_DEFAULT'
23042
23043 # A function that is used when there is no print builtin or printf.
23044 func_fallback_echo ()
23045 {
23046 eval 'cat <<_LTECHO_EOF
23047 \$1
23048 _LTECHO_EOF'
23049 }
23050
23051 # Quote evaled strings.
23052 for var in AS \
23053 DLLTOOL \
23054 OBJDUMP \
23055 SHELL \
23056 ECHO \
23057 PATH_SEPARATOR \
23058 SED \
23059 GREP \
23060 EGREP \
23061 FGREP \
23062 LD \
23063 NM \
23064 LN_S \
23065 lt_SP2NL \
23066 lt_NL2SP \
23067 reload_flag \
23068 deplibs_check_method \
23069 file_magic_cmd \
23070 file_magic_glob \
23071 want_nocaseglob \
23072 sharedlib_from_linklib_cmd \
23073 AR \
23074 AR_FLAGS \
23075 archiver_list_spec \
23076 STRIP \
23077 RANLIB \
23078 CC \
23079 CFLAGS \
23080 compiler \
23081 lt_cv_sys_global_symbol_pipe \
23082 lt_cv_sys_global_symbol_to_cdecl \
23083 lt_cv_sys_global_symbol_to_import \
23084 lt_cv_sys_global_symbol_to_c_name_address \
23085 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23086 lt_cv_nm_interface \
23087 nm_file_list_spec \
23088 lt_cv_truncate_bin \
23089 lt_prog_compiler_no_builtin_flag \
23090 lt_prog_compiler_pic \
23091 lt_prog_compiler_wl \
23092 lt_prog_compiler_static \
23093 lt_cv_prog_compiler_c_o \
23094 need_locks \
23095 MANIFEST_TOOL \
23096 DSYMUTIL \
23097 NMEDIT \
23098 LIPO \
23099 OTOOL \
23100 OTOOL64 \
23101 shrext_cmds \
23102 export_dynamic_flag_spec \
23103 whole_archive_flag_spec \
23104 compiler_needs_object \
23105 with_gnu_ld \
23106 allow_undefined_flag \
23107 no_undefined_flag \
23108 hardcode_libdir_flag_spec \
23109 hardcode_libdir_separator \
23110 exclude_expsyms \
23111 include_expsyms \
23112 file_list_spec \
23113 variables_saved_for_relink \
23114 libname_spec \
23115 library_names_spec \
23116 soname_spec \
23117 install_override_mode \
23118 finish_eval \
23119 old_striplib \
23120 striplib \
23121 LD_F77 \
23122 reload_flag_F77 \
23123 compiler_F77 \
23124 lt_prog_compiler_no_builtin_flag_F77 \
23125 lt_prog_compiler_pic_F77 \
23126 lt_prog_compiler_wl_F77 \
23127 lt_prog_compiler_static_F77 \
23128 lt_cv_prog_compiler_c_o_F77 \
23129 export_dynamic_flag_spec_F77 \
23130 whole_archive_flag_spec_F77 \
23131 compiler_needs_object_F77 \
23132 with_gnu_ld_F77 \
23133 allow_undefined_flag_F77 \
23134 no_undefined_flag_F77 \
23135 hardcode_libdir_flag_spec_F77 \
23136 hardcode_libdir_separator_F77 \
23137 exclude_expsyms_F77 \
23138 include_expsyms_F77 \
23139 file_list_spec_F77; do
23140 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23141 *[\\\\\\\`\\"\\\$]*)
23142 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23143 ;;
23144 *)
23145 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23146 ;;
23147 esac
23148 done
23149
23150 # Double-quote double-evaled strings.
23151 for var in reload_cmds \
23152 old_postinstall_cmds \
23153 old_postuninstall_cmds \
23154 old_archive_cmds \
23155 extract_expsyms_cmds \
23156 old_archive_from_new_cmds \
23157 old_archive_from_expsyms_cmds \
23158 archive_cmds \
23159 archive_expsym_cmds \
23160 module_cmds \
23161 module_expsym_cmds \
23162 export_symbols_cmds \
23163 prelink_cmds \
23164 postlink_cmds \
23165 postinstall_cmds \
23166 postuninstall_cmds \
23167 finish_cmds \
23168 sys_lib_search_path_spec \
23169 configure_time_dlsearch_path \
23170 configure_time_lt_sys_library_path \
23171 reload_cmds_F77 \
23172 old_archive_cmds_F77 \
23173 old_archive_from_new_cmds_F77 \
23174 old_archive_from_expsyms_cmds_F77 \
23175 archive_cmds_F77 \
23176 archive_expsym_cmds_F77 \
23177 module_cmds_F77 \
23178 module_expsym_cmds_F77 \
23179 export_symbols_cmds_F77 \
23180 prelink_cmds_F77 \
23181 postlink_cmds_F77; do
23182 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23183 *[\\\\\\\`\\"\\\$]*)
23184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23185 ;;
23186 *)
23187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23188 ;;
23189 esac
23190 done
23191
23192 ac_aux_dir='$ac_aux_dir'
23193
23194 # See if we are running on zsh, and set the options that allow our
23195 # commands through without removal of \ escapes INIT.
23196 if test -n "\${ZSH_VERSION+set}"; then
23197 setopt NO_GLOB_SUBST
23198 fi
23199
23200
23201 PACKAGE='$PACKAGE'
23202 VERSION='$VERSION'
23203 RM='$RM'
23204 ofile='$ofile'
23205
23206
23207
23208
23209
23210
23211 _ACEOF
23212
23213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23214
23215 # Handling of arguments.
23216 for ac_config_target in $ac_config_targets
23217 do
23218 case $ac_config_target in
23219 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23220 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23221 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23222 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23223 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
23224 "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;;
23225 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
23226 "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;;
23227 "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;;
23228 "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;;
23229 "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;;
23230 "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;;
23231 "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;;
23232 "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;;
23233 "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;;
23234 "dft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx-128-fma/Makefile" ;;
23235 "dft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2/Makefile" ;;
23236 "dft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2-128/Makefile" ;;
23237 "dft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx512/Makefile" ;;
23238 "dft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/kcvi/Makefile" ;;
23239 "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;;
23240 "dft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/vsx/Makefile" ;;
23241 "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;;
23242 "dft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd128/Makefile" ;;
23243 "dft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd256/Makefile" ;;
23244 "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;;
23245 "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;;
23246 "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;;
23247 "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;;
23248 "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;;
23249 "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;;
23250 "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;;
23251 "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;;
23252 "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;;
23253 "rdft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx-128-fma/Makefile" ;;
23254 "rdft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2/Makefile" ;;
23255 "rdft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2-128/Makefile" ;;
23256 "rdft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx512/Makefile" ;;
23257 "rdft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/kcvi/Makefile" ;;
23258 "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;;
23259 "rdft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/vsx/Makefile" ;;
23260 "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;;
23261 "rdft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd128/Makefile" ;;
23262 "rdft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd256/Makefile" ;;
23263 "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;;
23264 "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;;
23265 "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;;
23266 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
23267 "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;;
23268 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23269 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23270 "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;;
23271 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23272 "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;;
23273 "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;;
23274 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23275 "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;;
23276
23277 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23278 esac
23279 done
23280
23281
23282 # If the user did not use the arguments to specify the items to instantiate,
23283 # then the envvar interface is used. Set only those that are not.
23284 # We use the long form for the default assignment because of an extremely
23285 # bizarre bug on SunOS 4.1.3.
23286 if $ac_need_defaults; then
23287 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23288 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23289 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23290 fi
23291
23292 # Have a temporary directory for convenience. Make it in the build tree
23293 # simply because there is no reason against having it here, and in addition,
23294 # creating and moving files from /tmp can sometimes cause problems.
23295 # Hook for its removal unless debugging.
23296 # Note that there is a small window in which the directory will not be cleaned:
23297 # after its creation but before its name has been assigned to `$tmp'.
23298 $debug ||
23299 {
23300 tmp= ac_tmp=
23301 trap 'exit_status=$?
23302 : "${ac_tmp:=$tmp}"
23303 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23304 ' 0
23305 trap 'as_fn_exit 1' 1 2 13 15
23306 }
23307 # Create a (secure) tmp directory for tmp files.
23308
23309 {
23310 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23311 test -d "$tmp"
23312 } ||
23313 {
23314 tmp=./conf$$-$RANDOM
23315 (umask 077 && mkdir "$tmp")
23316 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23317 ac_tmp=$tmp
23318
23319 # Set up the scripts for CONFIG_FILES section.
23320 # No need to generate them if there are no CONFIG_FILES.
23321 # This happens for instance with `./config.status config.h'.
23322 if test -n "$CONFIG_FILES"; then
23323
23324
23325 ac_cr=`echo X | tr X '\015'`
23326 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23327 # But we know of no other shell where ac_cr would be empty at this
23328 # point, so we can use a bashism as a fallback.
23329 if test "x$ac_cr" = x; then
23330 eval ac_cr=\$\'\\r\'
23331 fi
23332 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23333 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23334 ac_cs_awk_cr='\\r'
23335 else
23336 ac_cs_awk_cr=$ac_cr
23337 fi
23338
23339 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23340 _ACEOF
23341
23342
23343 {
23344 echo "cat >conf$$subs.awk <<_ACEOF" &&
23345 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23346 echo "_ACEOF"
23347 } >conf$$subs.sh ||
23348 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23349 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23350 ac_delim='%!_!# '
23351 for ac_last_try in false false false false false :; do
23352 . ./conf$$subs.sh ||
23353 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23354
23355 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23356 if test $ac_delim_n = $ac_delim_num; then
23357 break
23358 elif $ac_last_try; then
23359 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23360 else
23361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23362 fi
23363 done
23364 rm -f conf$$subs.sh
23365
23366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23367 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23368 _ACEOF
23369 sed -n '
23370 h
23371 s/^/S["/; s/!.*/"]=/
23372 p
23373 g
23374 s/^[^!]*!//
23375 :repl
23376 t repl
23377 s/'"$ac_delim"'$//
23378 t delim
23379 :nl
23380 h
23381 s/\(.\{148\}\)..*/\1/
23382 t more1
23383 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23384 p
23385 n
23386 b repl
23387 :more1
23388 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23389 p
23390 g
23391 s/.\{148\}//
23392 t nl
23393 :delim
23394 h
23395 s/\(.\{148\}\)..*/\1/
23396 t more2
23397 s/["\\]/\\&/g; s/^/"/; s/$/"/
23398 p
23399 b
23400 :more2
23401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23402 p
23403 g
23404 s/.\{148\}//
23405 t delim
23406 ' <conf$$subs.awk | sed '
23407 /^[^""]/{
23408 N
23409 s/\n//
23410 }
23411 ' >>$CONFIG_STATUS || ac_write_fail=1
23412 rm -f conf$$subs.awk
23413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23414 _ACAWK
23415 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23416 for (key in S) S_is_set[key] = 1
23417 FS = ""
23418
23419 }
23420 {
23421 line = $ 0
23422 nfields = split(line, field, "@")
23423 substed = 0
23424 len = length(field[1])
23425 for (i = 2; i < nfields; i++) {
23426 key = field[i]
23427 keylen = length(key)
23428 if (S_is_set[key]) {
23429 value = S[key]
23430 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23431 len += length(value) + length(field[++i])
23432 substed = 1
23433 } else
23434 len += 1 + keylen
23435 }
23436
23437 print line
23438 }
23439
23440 _ACAWK
23441 _ACEOF
23442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23443 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23444 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23445 else
23446 cat
23447 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23448 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23449 _ACEOF
23450
23451 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23452 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23453 # trailing colons and then remove the whole line if VPATH becomes empty
23454 # (actually we leave an empty line to preserve line numbers).
23455 if test "x$srcdir" = x.; then
23456 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23457 h
23458 s///
23459 s/^/:/
23460 s/[ ]*$/:/
23461 s/:\$(srcdir):/:/g
23462 s/:\${srcdir}:/:/g
23463 s/:@srcdir@:/:/g
23464 s/^:*//
23465 s/:*$//
23466 x
23467 s/\(=[ ]*\).*/\1/
23468 G
23469 s/\n//
23470 s/^[^=]*=[ ]*$//
23471 }'
23472 fi
23473
23474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23475 fi # test -n "$CONFIG_FILES"
23476
23477 # Set up the scripts for CONFIG_HEADERS section.
23478 # No need to generate them if there are no CONFIG_HEADERS.
23479 # This happens for instance with `./config.status Makefile'.
23480 if test -n "$CONFIG_HEADERS"; then
23481 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23482 BEGIN {
23483 _ACEOF
23484
23485 # Transform confdefs.h into an awk script `defines.awk', embedded as
23486 # here-document in config.status, that substitutes the proper values into
23487 # config.h.in to produce config.h.
23488
23489 # Create a delimiter string that does not exist in confdefs.h, to ease
23490 # handling of long lines.
23491 ac_delim='%!_!# '
23492 for ac_last_try in false false :; do
23493 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23494 if test -z "$ac_tt"; then
23495 break
23496 elif $ac_last_try; then
23497 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23498 else
23499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23500 fi
23501 done
23502
23503 # For the awk script, D is an array of macro values keyed by name,
23504 # likewise P contains macro parameters if any. Preserve backslash
23505 # newline sequences.
23506
23507 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23508 sed -n '
23509 s/.\{148\}/&'"$ac_delim"'/g
23510 t rset
23511 :rset
23512 s/^[ ]*#[ ]*define[ ][ ]*/ /
23513 t def
23514 d
23515 :def
23516 s/\\$//
23517 t bsnl
23518 s/["\\]/\\&/g
23519 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23520 D["\1"]=" \3"/p
23521 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23522 d
23523 :bsnl
23524 s/["\\]/\\&/g
23525 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23526 D["\1"]=" \3\\\\\\n"\\/p
23527 t cont
23528 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23529 t cont
23530 d
23531 :cont
23532 n
23533 s/.\{148\}/&'"$ac_delim"'/g
23534 t clear
23535 :clear
23536 s/\\$//
23537 t bsnlc
23538 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23539 d
23540 :bsnlc
23541 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23542 b cont
23543 ' <confdefs.h | sed '
23544 s/'"$ac_delim"'/"\\\
23545 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23546
23547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23548 for (key in D) D_is_set[key] = 1
23549 FS = ""
23550 }
23551 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23552 line = \$ 0
23553 split(line, arg, " ")
23554 if (arg[1] == "#") {
23555 defundef = arg[2]
23556 mac1 = arg[3]
23557 } else {
23558 defundef = substr(arg[1], 2)
23559 mac1 = arg[2]
23560 }
23561 split(mac1, mac2, "(") #)
23562 macro = mac2[1]
23563 prefix = substr(line, 1, index(line, defundef) - 1)
23564 if (D_is_set[macro]) {
23565 # Preserve the white space surrounding the "#".
23566 print prefix "define", macro P[macro] D[macro]
23567 next
23568 } else {
23569 # Replace #undef with comments. This is necessary, for example,
23570 # in the case of _POSIX_SOURCE, which is predefined and required
23571 # on some systems where configure will not decide to define it.
23572 if (defundef == "undef") {
23573 print "/*", prefix defundef, macro, "*/"
23574 next
23575 }
23576 }
23577 }
23578 { print }
23579 _ACAWK
23580 _ACEOF
23581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23582 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23583 fi # test -n "$CONFIG_HEADERS"
23584
23585
23586 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23587 shift
23588 for ac_tag
23589 do
23590 case $ac_tag in
23591 :[FHLC]) ac_mode=$ac_tag; continue;;
23592 esac
23593 case $ac_mode$ac_tag in
23594 :[FHL]*:*);;
23595 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23596 :[FH]-) ac_tag=-:-;;
23597 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23598 esac
23599 ac_save_IFS=$IFS
23600 IFS=:
23601 set x $ac_tag
23602 IFS=$ac_save_IFS
23603 shift
23604 ac_file=$1
23605 shift
23606
23607 case $ac_mode in
23608 :L) ac_source=$1;;
23609 :[FH])
23610 ac_file_inputs=
23611 for ac_f
23612 do
23613 case $ac_f in
23614 -) ac_f="$ac_tmp/stdin";;
23615 *) # Look for the file first in the build tree, then in the source tree
23616 # (if the path is not absolute). The absolute path cannot be DOS-style,
23617 # because $ac_f cannot contain `:'.
23618 test -f "$ac_f" ||
23619 case $ac_f in
23620 [\\/$]*) false;;
23621 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23622 esac ||
23623 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23624 esac
23625 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23626 as_fn_append ac_file_inputs " '$ac_f'"
23627 done
23628
23629 # Let's still pretend it is `configure' which instantiates (i.e., don't
23630 # use $as_me), people would be surprised to read:
23631 # /* config.h. Generated by config.status. */
23632 configure_input='Generated from '`
23633 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23634 `' by configure.'
23635 if test x"$ac_file" != x-; then
23636 configure_input="$ac_file. $configure_input"
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23638 $as_echo "$as_me: creating $ac_file" >&6;}
23639 fi
23640 # Neutralize special characters interpreted by sed in replacement strings.
23641 case $configure_input in #(
23642 *\&* | *\|* | *\\* )
23643 ac_sed_conf_input=`$as_echo "$configure_input" |
23644 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23645 *) ac_sed_conf_input=$configure_input;;
23646 esac
23647
23648 case $ac_tag in
23649 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23651 esac
23652 ;;
23653 esac
23654
23655 ac_dir=`$as_dirname -- "$ac_file" ||
23656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23657 X"$ac_file" : 'X\(//\)[^/]' \| \
23658 X"$ac_file" : 'X\(//\)$' \| \
23659 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23660 $as_echo X"$ac_file" |
23661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23662 s//\1/
23663 q
23664 }
23665 /^X\(\/\/\)[^/].*/{
23666 s//\1/
23667 q
23668 }
23669 /^X\(\/\/\)$/{
23670 s//\1/
23671 q
23672 }
23673 /^X\(\/\).*/{
23674 s//\1/
23675 q
23676 }
23677 s/.*/./; q'`
23678 as_dir="$ac_dir"; as_fn_mkdir_p
23679 ac_builddir=.
23680
23681 case "$ac_dir" in
23682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23683 *)
23684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23685 # A ".." for each directory in $ac_dir_suffix.
23686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23687 case $ac_top_builddir_sub in
23688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23690 esac ;;
23691 esac
23692 ac_abs_top_builddir=$ac_pwd
23693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23694 # for backward compatibility:
23695 ac_top_builddir=$ac_top_build_prefix
23696
23697 case $srcdir in
23698 .) # We are building in place.
23699 ac_srcdir=.
23700 ac_top_srcdir=$ac_top_builddir_sub
23701 ac_abs_top_srcdir=$ac_pwd ;;
23702 [\\/]* | ?:[\\/]* ) # Absolute name.
23703 ac_srcdir=$srcdir$ac_dir_suffix;
23704 ac_top_srcdir=$srcdir
23705 ac_abs_top_srcdir=$srcdir ;;
23706 *) # Relative name.
23707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23708 ac_top_srcdir=$ac_top_build_prefix$srcdir
23709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23710 esac
23711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23712
23713
23714 case $ac_mode in
23715 :F)
23716 #
23717 # CONFIG_FILE
23718 #
23719
23720 case $INSTALL in
23721 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23722 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23723 esac
23724 ac_MKDIR_P=$MKDIR_P
23725 case $MKDIR_P in
23726 [\\/$]* | ?:[\\/]* ) ;;
23727 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23728 esac
23729 _ACEOF
23730
23731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23732 # If the template does not know about datarootdir, expand it.
23733 # FIXME: This hack should be removed a few years after 2.60.
23734 ac_datarootdir_hack=; ac_datarootdir_seen=
23735 ac_sed_dataroot='
23736 /datarootdir/ {
23737 p
23738 q
23739 }
23740 /@datadir@/p
23741 /@docdir@/p
23742 /@infodir@/p
23743 /@localedir@/p
23744 /@mandir@/p'
23745 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23746 *datarootdir*) ac_datarootdir_seen=yes;;
23747 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23749 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23750 _ACEOF
23751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23752 ac_datarootdir_hack='
23753 s&@datadir@&$datadir&g
23754 s&@docdir@&$docdir&g
23755 s&@infodir@&$infodir&g
23756 s&@localedir@&$localedir&g
23757 s&@mandir@&$mandir&g
23758 s&\\\${datarootdir}&$datarootdir&g' ;;
23759 esac
23760 _ACEOF
23761
23762 # Neutralize VPATH when `$srcdir' = `.'.
23763 # Shell code in configure.ac might set extrasub.
23764 # FIXME: do we really want to maintain this feature?
23765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23766 ac_sed_extra="$ac_vpsub
23767 $extrasub
23768 _ACEOF
23769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23770 :t
23771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23772 s|@configure_input@|$ac_sed_conf_input|;t t
23773 s&@top_builddir@&$ac_top_builddir_sub&;t t
23774 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23775 s&@srcdir@&$ac_srcdir&;t t
23776 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23777 s&@top_srcdir@&$ac_top_srcdir&;t t
23778 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23779 s&@builddir@&$ac_builddir&;t t
23780 s&@abs_builddir@&$ac_abs_builddir&;t t
23781 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23782 s&@INSTALL@&$ac_INSTALL&;t t
23783 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23784 $ac_datarootdir_hack
23785 "
23786 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23787 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23788
23789 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23790 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23791 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23792 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23794 which seems to be undefined. Please make sure it is defined" >&5
23795 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23796 which seems to be undefined. Please make sure it is defined" >&2;}
23797
23798 rm -f "$ac_tmp/stdin"
23799 case $ac_file in
23800 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23801 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23802 esac \
23803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23804 ;;
23805 :H)
23806 #
23807 # CONFIG_HEADER
23808 #
23809 if test x"$ac_file" != x-; then
23810 {
23811 $as_echo "/* $configure_input */" \
23812 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23813 } >"$ac_tmp/config.h" \
23814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23815 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23817 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23818 else
23819 rm -f "$ac_file"
23820 mv "$ac_tmp/config.h" "$ac_file" \
23821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23822 fi
23823 else
23824 $as_echo "/* $configure_input */" \
23825 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23826 || as_fn_error $? "could not create -" "$LINENO" 5
23827 fi
23828 # Compute "$ac_file"'s index in $config_headers.
23829 _am_arg="$ac_file"
23830 _am_stamp_count=1
23831 for _am_header in $config_headers :; do
23832 case $_am_header in
23833 $_am_arg | $_am_arg:* )
23834 break ;;
23835 * )
23836 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23837 esac
23838 done
23839 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23840 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23841 X"$_am_arg" : 'X\(//\)[^/]' \| \
23842 X"$_am_arg" : 'X\(//\)$' \| \
23843 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23844 $as_echo X"$_am_arg" |
23845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23846 s//\1/
23847 q
23848 }
23849 /^X\(\/\/\)[^/].*/{
23850 s//\1/
23851 q
23852 }
23853 /^X\(\/\/\)$/{
23854 s//\1/
23855 q
23856 }
23857 /^X\(\/\).*/{
23858 s//\1/
23859 q
23860 }
23861 s/.*/./; q'`/stamp-h$_am_stamp_count
23862 ;;
23863
23864 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23865 $as_echo "$as_me: executing $ac_file commands" >&6;}
23866 ;;
23867 esac
23868
23869
23870 case $ac_file$ac_mode in
23871 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23872 # Older Autoconf quotes --file arguments for eval, but not when files
23873 # are listed without --file. Let's play safe and only enable the eval
23874 # if we detect the quoting.
23875 case $CONFIG_FILES in
23876 *\'*) eval set x "$CONFIG_FILES" ;;
23877 *) set x $CONFIG_FILES ;;
23878 esac
23879 shift
23880 for mf
23881 do
23882 # Strip MF so we end up with the name of the file.
23883 mf=`echo "$mf" | sed -e 's/:.*$//'`
23884 # Check whether this is an Automake generated Makefile or not.
23885 # We used to match only the files named 'Makefile.in', but
23886 # some people rename them; so instead we look at the file content.
23887 # Grep'ing the first line is not enough: some people post-process
23888 # each Makefile.in and add a new line on top of each file to say so.
23889 # Grep'ing the whole file is not good either: AIX grep has a line
23890 # limit of 2048, but all sed's we know have understand at least 4000.
23891 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23892 dirpart=`$as_dirname -- "$mf" ||
23893 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23894 X"$mf" : 'X\(//\)[^/]' \| \
23895 X"$mf" : 'X\(//\)$' \| \
23896 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23897 $as_echo X"$mf" |
23898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23899 s//\1/
23900 q
23901 }
23902 /^X\(\/\/\)[^/].*/{
23903 s//\1/
23904 q
23905 }
23906 /^X\(\/\/\)$/{
23907 s//\1/
23908 q
23909 }
23910 /^X\(\/\).*/{
23911 s//\1/
23912 q
23913 }
23914 s/.*/./; q'`
23915 else
23916 continue
23917 fi
23918 # Extract the definition of DEPDIR, am__include, and am__quote
23919 # from the Makefile without running 'make'.
23920 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23921 test -z "$DEPDIR" && continue
23922 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23923 test -z "$am__include" && continue
23924 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23925 # Find all dependency output files, they are included files with
23926 # $(DEPDIR) in their names. We invoke sed twice because it is the
23927 # simplest approach to changing $(DEPDIR) to its actual value in the
23928 # expansion.
23929 for file in `sed -n "
23930 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23931 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23932 # Make sure the directory exists.
23933 test -f "$dirpart/$file" && continue
23934 fdir=`$as_dirname -- "$file" ||
23935 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23936 X"$file" : 'X\(//\)[^/]' \| \
23937 X"$file" : 'X\(//\)$' \| \
23938 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23939 $as_echo X"$file" |
23940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23941 s//\1/
23942 q
23943 }
23944 /^X\(\/\/\)[^/].*/{
23945 s//\1/
23946 q
23947 }
23948 /^X\(\/\/\)$/{
23949 s//\1/
23950 q
23951 }
23952 /^X\(\/\).*/{
23953 s//\1/
23954 q
23955 }
23956 s/.*/./; q'`
23957 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23958 # echo "creating $dirpart/$file"
23959 echo '# dummy' > "$dirpart/$file"
23960 done
23961 done
23962 }
23963 ;;
23964 "libtool":C)
23965
23966 # See if we are running on zsh, and set the options that allow our
23967 # commands through without removal of \ escapes.
23968 if test -n "${ZSH_VERSION+set}"; then
23969 setopt NO_GLOB_SUBST
23970 fi
23971
23972 cfgfile=${ofile}T
23973 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23974 $RM "$cfgfile"
23975
23976 cat <<_LT_EOF >> "$cfgfile"
23977 #! $SHELL
23978 # Generated automatically by $as_me ($PACKAGE) $VERSION
23979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23980
23981 # Provide generalized library-building support services.
23982 # Written by Gordon Matzigkeit, 1996
23983
23984 # Copyright (C) 2014 Free Software Foundation, Inc.
23985 # This is free software; see the source for copying conditions. There is NO
23986 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23987
23988 # GNU Libtool is free software; you can redistribute it and/or modify
23989 # it under the terms of the GNU General Public License as published by
23990 # the Free Software Foundation; either version 2 of of the License, or
23991 # (at your option) any later version.
23992 #
23993 # As a special exception to the GNU General Public License, if you
23994 # distribute this file as part of a program or library that is built
23995 # using GNU Libtool, you may include this file under the same
23996 # distribution terms that you use for the rest of that program.
23997 #
23998 # GNU Libtool is distributed in the hope that it will be useful, but
23999 # WITHOUT ANY WARRANTY; without even the implied warranty of
24000 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24001 # GNU General Public License for more details.
24002 #
24003 # You should have received a copy of the GNU General Public License
24004 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24005
24006
24007 # The names of the tagged configurations supported by this script.
24008 available_tags='F77 '
24009
24010 # Configured defaults for sys_lib_dlsearch_path munging.
24011 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24012
24013 # ### BEGIN LIBTOOL CONFIG
24014
24015 # Whether or not to build shared libraries.
24016 build_libtool_libs=$enable_shared
24017
24018 # Assembler program.
24019 AS=$lt_AS
24020
24021 # DLL creation program.
24022 DLLTOOL=$lt_DLLTOOL
24023
24024 # Object dumper program.
24025 OBJDUMP=$lt_OBJDUMP
24026
24027 # Which release of libtool.m4 was used?
24028 macro_version=$macro_version
24029 macro_revision=$macro_revision
24030
24031 # Whether or not to build static libraries.
24032 build_old_libs=$enable_static
24033
24034 # What type of objects to build.
24035 pic_mode=$pic_mode
24036
24037 # Whether or not to optimize for fast installation.
24038 fast_install=$enable_fast_install
24039
24040 # Shared archive member basename,for filename based shared library versioning on AIX.
24041 shared_archive_member_spec=$shared_archive_member_spec
24042
24043 # Shell to use when invoking shell scripts.
24044 SHELL=$lt_SHELL
24045
24046 # An echo program that protects backslashes.
24047 ECHO=$lt_ECHO
24048
24049 # The PATH separator for the build system.
24050 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24051
24052 # The host system.
24053 host_alias=$host_alias
24054 host=$host
24055 host_os=$host_os
24056
24057 # The build system.
24058 build_alias=$build_alias
24059 build=$build
24060 build_os=$build_os
24061
24062 # A sed program that does not truncate output.
24063 SED=$lt_SED
24064
24065 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24066 Xsed="\$SED -e 1s/^X//"
24067
24068 # A grep program that handles long lines.
24069 GREP=$lt_GREP
24070
24071 # An ERE matcher.
24072 EGREP=$lt_EGREP
24073
24074 # A literal string matcher.
24075 FGREP=$lt_FGREP
24076
24077 # A BSD- or MS-compatible name lister.
24078 NM=$lt_NM
24079
24080 # Whether we need soft or hard links.
24081 LN_S=$lt_LN_S
24082
24083 # What is the maximum length of a command?
24084 max_cmd_len=$max_cmd_len
24085
24086 # Object file suffix (normally "o").
24087 objext=$ac_objext
24088
24089 # Executable file suffix (normally "").
24090 exeext=$exeext
24091
24092 # whether the shell understands "unset".
24093 lt_unset=$lt_unset
24094
24095 # turn spaces into newlines.
24096 SP2NL=$lt_lt_SP2NL
24097
24098 # turn newlines into spaces.
24099 NL2SP=$lt_lt_NL2SP
24100
24101 # convert \$build file names to \$host format.
24102 to_host_file_cmd=$lt_cv_to_host_file_cmd
24103
24104 # convert \$build files to toolchain format.
24105 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24106
24107 # Method to check whether dependent libraries are shared objects.
24108 deplibs_check_method=$lt_deplibs_check_method
24109
24110 # Command to use when deplibs_check_method = "file_magic".
24111 file_magic_cmd=$lt_file_magic_cmd
24112
24113 # How to find potential files when deplibs_check_method = "file_magic".
24114 file_magic_glob=$lt_file_magic_glob
24115
24116 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24117 want_nocaseglob=$lt_want_nocaseglob
24118
24119 # Command to associate shared and link libraries.
24120 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24121
24122 # The archiver.
24123 AR=$lt_AR
24124
24125 # Flags to create an archive.
24126 AR_FLAGS=$lt_AR_FLAGS
24127
24128 # How to feed a file listing to the archiver.
24129 archiver_list_spec=$lt_archiver_list_spec
24130
24131 # A symbol stripping program.
24132 STRIP=$lt_STRIP
24133
24134 # Commands used to install an old-style archive.
24135 RANLIB=$lt_RANLIB
24136 old_postinstall_cmds=$lt_old_postinstall_cmds
24137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24138
24139 # Whether to use a lock for old archive extraction.
24140 lock_old_archive_extraction=$lock_old_archive_extraction
24141
24142 # A C compiler.
24143 LTCC=$lt_CC
24144
24145 # LTCC compiler flags.
24146 LTCFLAGS=$lt_CFLAGS
24147
24148 # Take the output of nm and produce a listing of raw symbols and C names.
24149 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24150
24151 # Transform the output of nm in a proper C declaration.
24152 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24153
24154 # Transform the output of nm into a list of symbols to manually relocate.
24155 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24156
24157 # Transform the output of nm in a C name address pair.
24158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24159
24160 # Transform the output of nm in a C name address pair when lib prefix is needed.
24161 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24162
24163 # The name lister interface.
24164 nm_interface=$lt_lt_cv_nm_interface
24165
24166 # Specify filename containing input files for \$NM.
24167 nm_file_list_spec=$lt_nm_file_list_spec
24168
24169 # The root where to search for dependent libraries,and where our libraries should be installed.
24170 lt_sysroot=$lt_sysroot
24171
24172 # Command to truncate a binary pipe.
24173 lt_truncate_bin=$lt_lt_cv_truncate_bin
24174
24175 # The name of the directory that contains temporary libtool files.
24176 objdir=$objdir
24177
24178 # Used to examine libraries when file_magic_cmd begins with "file".
24179 MAGIC_CMD=$MAGIC_CMD
24180
24181 # Must we lock files when doing compilation?
24182 need_locks=$lt_need_locks
24183
24184 # Manifest tool.
24185 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24186
24187 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24188 DSYMUTIL=$lt_DSYMUTIL
24189
24190 # Tool to change global to local symbols on Mac OS X.
24191 NMEDIT=$lt_NMEDIT
24192
24193 # Tool to manipulate fat objects and archives on Mac OS X.
24194 LIPO=$lt_LIPO
24195
24196 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24197 OTOOL=$lt_OTOOL
24198
24199 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24200 OTOOL64=$lt_OTOOL64
24201
24202 # Old archive suffix (normally "a").
24203 libext=$libext
24204
24205 # Shared library suffix (normally ".so").
24206 shrext_cmds=$lt_shrext_cmds
24207
24208 # The commands to extract the exported symbol list from a shared archive.
24209 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24210
24211 # Variables whose values should be saved in libtool wrapper scripts and
24212 # restored at link time.
24213 variables_saved_for_relink=$lt_variables_saved_for_relink
24214
24215 # Do we need the "lib" prefix for modules?
24216 need_lib_prefix=$need_lib_prefix
24217
24218 # Do we need a version for libraries?
24219 need_version=$need_version
24220
24221 # Library versioning type.
24222 version_type=$version_type
24223
24224 # Shared library runtime path variable.
24225 runpath_var=$runpath_var
24226
24227 # Shared library path variable.
24228 shlibpath_var=$shlibpath_var
24229
24230 # Is shlibpath searched before the hard-coded library search path?
24231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24232
24233 # Format of library name prefix.
24234 libname_spec=$lt_libname_spec
24235
24236 # List of archive names. First name is the real one, the rest are links.
24237 # The last name is the one that the linker finds with -lNAME
24238 library_names_spec=$lt_library_names_spec
24239
24240 # The coded name of the library, if different from the real name.
24241 soname_spec=$lt_soname_spec
24242
24243 # Permission mode override for installation of shared libraries.
24244 install_override_mode=$lt_install_override_mode
24245
24246 # Command to use after installation of a shared archive.
24247 postinstall_cmds=$lt_postinstall_cmds
24248
24249 # Command to use after uninstallation of a shared archive.
24250 postuninstall_cmds=$lt_postuninstall_cmds
24251
24252 # Commands used to finish a libtool library installation in a directory.
24253 finish_cmds=$lt_finish_cmds
24254
24255 # As "finish_cmds", except a single script fragment to be evaled but
24256 # not shown.
24257 finish_eval=$lt_finish_eval
24258
24259 # Whether we should hardcode library paths into libraries.
24260 hardcode_into_libs=$hardcode_into_libs
24261
24262 # Compile-time system search path for libraries.
24263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24264
24265 # Detected run-time system search path for libraries.
24266 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24267
24268 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24269 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24270
24271 # Whether dlopen is supported.
24272 dlopen_support=$enable_dlopen
24273
24274 # Whether dlopen of programs is supported.
24275 dlopen_self=$enable_dlopen_self
24276
24277 # Whether dlopen of statically linked programs is supported.
24278 dlopen_self_static=$enable_dlopen_self_static
24279
24280 # Commands to strip libraries.
24281 old_striplib=$lt_old_striplib
24282 striplib=$lt_striplib
24283
24284
24285 # The linker used to build libraries.
24286 LD=$lt_LD
24287
24288 # How to create reloadable object files.
24289 reload_flag=$lt_reload_flag
24290 reload_cmds=$lt_reload_cmds
24291
24292 # Commands used to build an old-style archive.
24293 old_archive_cmds=$lt_old_archive_cmds
24294
24295 # A language specific compiler.
24296 CC=$lt_compiler
24297
24298 # Is the compiler the GNU compiler?
24299 with_gcc=$GCC
24300
24301 # Compiler flag to turn off builtin functions.
24302 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24303
24304 # Additional compiler flags for building library objects.
24305 pic_flag=$lt_lt_prog_compiler_pic
24306
24307 # How to pass a linker flag through the compiler.
24308 wl=$lt_lt_prog_compiler_wl
24309
24310 # Compiler flag to prevent dynamic linking.
24311 link_static_flag=$lt_lt_prog_compiler_static
24312
24313 # Does compiler simultaneously support -c and -o options?
24314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24315
24316 # Whether or not to add -lc for building shared libraries.
24317 build_libtool_need_lc=$archive_cmds_need_lc
24318
24319 # Whether or not to disallow shared libs when runtime libs are static.
24320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24321
24322 # Compiler flag to allow reflexive dlopens.
24323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24324
24325 # Compiler flag to generate shared objects directly from archives.
24326 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24327
24328 # Whether the compiler copes with passing no objects directly.
24329 compiler_needs_object=$lt_compiler_needs_object
24330
24331 # Create an old-style archive from a shared archive.
24332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24333
24334 # Create a temporary old-style archive to link instead of a shared archive.
24335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24336
24337 # Commands used to build a shared archive.
24338 archive_cmds=$lt_archive_cmds
24339 archive_expsym_cmds=$lt_archive_expsym_cmds
24340
24341 # Commands used to build a loadable module if different from building
24342 # a shared archive.
24343 module_cmds=$lt_module_cmds
24344 module_expsym_cmds=$lt_module_expsym_cmds
24345
24346 # Whether we are building with GNU ld or not.
24347 with_gnu_ld=$lt_with_gnu_ld
24348
24349 # Flag that allows shared libraries with undefined symbols to be built.
24350 allow_undefined_flag=$lt_allow_undefined_flag
24351
24352 # Flag that enforces no undefined symbols.
24353 no_undefined_flag=$lt_no_undefined_flag
24354
24355 # Flag to hardcode \$libdir into a binary during linking.
24356 # This must work even if \$libdir does not exist
24357 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24358
24359 # Whether we need a single "-rpath" flag with a separated argument.
24360 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24361
24362 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24363 # DIR into the resulting binary.
24364 hardcode_direct=$hardcode_direct
24365
24366 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24367 # DIR into the resulting binary and the resulting library dependency is
24368 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24369 # library is relocated.
24370 hardcode_direct_absolute=$hardcode_direct_absolute
24371
24372 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24373 # into the resulting binary.
24374 hardcode_minus_L=$hardcode_minus_L
24375
24376 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24377 # into the resulting binary.
24378 hardcode_shlibpath_var=$hardcode_shlibpath_var
24379
24380 # Set to "yes" if building a shared library automatically hardcodes DIR
24381 # into the library and all subsequent libraries and executables linked
24382 # against it.
24383 hardcode_automatic=$hardcode_automatic
24384
24385 # Set to yes if linker adds runtime paths of dependent libraries
24386 # to runtime path list.
24387 inherit_rpath=$inherit_rpath
24388
24389 # Whether libtool must link a program against all its dependency libraries.
24390 link_all_deplibs=$link_all_deplibs
24391
24392 # Set to "yes" if exported symbols are required.
24393 always_export_symbols=$always_export_symbols
24394
24395 # The commands to list exported symbols.
24396 export_symbols_cmds=$lt_export_symbols_cmds
24397
24398 # Symbols that should not be listed in the preloaded symbols.
24399 exclude_expsyms=$lt_exclude_expsyms
24400
24401 # Symbols that must always be exported.
24402 include_expsyms=$lt_include_expsyms
24403
24404 # Commands necessary for linking programs (against libraries) with templates.
24405 prelink_cmds=$lt_prelink_cmds
24406
24407 # Commands necessary for finishing linking programs.
24408 postlink_cmds=$lt_postlink_cmds
24409
24410 # Specify filename containing input files.
24411 file_list_spec=$lt_file_list_spec
24412
24413 # How to hardcode a shared library path into an executable.
24414 hardcode_action=$hardcode_action
24415
24416 # ### END LIBTOOL CONFIG
24417
24418 _LT_EOF
24419
24420 cat <<'_LT_EOF' >> "$cfgfile"
24421
24422 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24423
24424 # func_munge_path_list VARIABLE PATH
24425 # -----------------------------------
24426 # VARIABLE is name of variable containing _space_ separated list of
24427 # directories to be munged by the contents of PATH, which is string
24428 # having a format:
24429 # "DIR[:DIR]:"
24430 # string "DIR[ DIR]" will be prepended to VARIABLE
24431 # ":DIR[:DIR]"
24432 # string "DIR[ DIR]" will be appended to VARIABLE
24433 # "DIRP[:DIRP]::[DIRA:]DIRA"
24434 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24435 # "DIRA[ DIRA]" will be appended to VARIABLE
24436 # "DIR[:DIR]"
24437 # VARIABLE will be replaced by "DIR[ DIR]"
24438 func_munge_path_list ()
24439 {
24440 case x$2 in
24441 x)
24442 ;;
24443 *:)
24444 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24445 ;;
24446 x:*)
24447 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24448 ;;
24449 *::*)
24450 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24451 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24452 ;;
24453 *)
24454 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24455 ;;
24456 esac
24457 }
24458
24459
24460 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24461 func_cc_basename ()
24462 {
24463 for cc_temp in $*""; do
24464 case $cc_temp in
24465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24467 \-*) ;;
24468 *) break;;
24469 esac
24470 done
24471 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24472 }
24473
24474
24475 # ### END FUNCTIONS SHARED WITH CONFIGURE
24476
24477 _LT_EOF
24478
24479 case $host_os in
24480 aix3*)
24481 cat <<\_LT_EOF >> "$cfgfile"
24482 # AIX sometimes has problems with the GCC collect2 program. For some
24483 # reason, if we set the COLLECT_NAMES environment variable, the problems
24484 # vanish in a puff of smoke.
24485 if test set != "${COLLECT_NAMES+set}"; then
24486 COLLECT_NAMES=
24487 export COLLECT_NAMES
24488 fi
24489 _LT_EOF
24490 ;;
24491 esac
24492
24493
24494 ltmain=$ac_aux_dir/ltmain.sh
24495
24496
24497 # We use sed instead of cat because bash on DJGPP gets confused if
24498 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24499 # text mode, it properly converts lines to CR/LF. This bash problem
24500 # is reportedly fixed, but why not run on old versions too?
24501 sed '$q' "$ltmain" >> "$cfgfile" \
24502 || (rm -f "$cfgfile"; exit 1)
24503
24504 mv -f "$cfgfile" "$ofile" ||
24505 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24506 chmod +x "$ofile"
24507
24508
24509 cat <<_LT_EOF >> "$ofile"
24510
24511 # ### BEGIN LIBTOOL TAG CONFIG: F77
24512
24513 # The linker used to build libraries.
24514 LD=$lt_LD_F77
24515
24516 # How to create reloadable object files.
24517 reload_flag=$lt_reload_flag_F77
24518 reload_cmds=$lt_reload_cmds_F77
24519
24520 # Commands used to build an old-style archive.
24521 old_archive_cmds=$lt_old_archive_cmds_F77
24522
24523 # A language specific compiler.
24524 CC=$lt_compiler_F77
24525
24526 # Is the compiler the GNU compiler?
24527 with_gcc=$GCC_F77
24528
24529 # Compiler flag to turn off builtin functions.
24530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24531
24532 # Additional compiler flags for building library objects.
24533 pic_flag=$lt_lt_prog_compiler_pic_F77
24534
24535 # How to pass a linker flag through the compiler.
24536 wl=$lt_lt_prog_compiler_wl_F77
24537
24538 # Compiler flag to prevent dynamic linking.
24539 link_static_flag=$lt_lt_prog_compiler_static_F77
24540
24541 # Does compiler simultaneously support -c and -o options?
24542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24543
24544 # Whether or not to add -lc for building shared libraries.
24545 build_libtool_need_lc=$archive_cmds_need_lc_F77
24546
24547 # Whether or not to disallow shared libs when runtime libs are static.
24548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24549
24550 # Compiler flag to allow reflexive dlopens.
24551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24552
24553 # Compiler flag to generate shared objects directly from archives.
24554 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24555
24556 # Whether the compiler copes with passing no objects directly.
24557 compiler_needs_object=$lt_compiler_needs_object_F77
24558
24559 # Create an old-style archive from a shared archive.
24560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24561
24562 # Create a temporary old-style archive to link instead of a shared archive.
24563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24564
24565 # Commands used to build a shared archive.
24566 archive_cmds=$lt_archive_cmds_F77
24567 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24568
24569 # Commands used to build a loadable module if different from building
24570 # a shared archive.
24571 module_cmds=$lt_module_cmds_F77
24572 module_expsym_cmds=$lt_module_expsym_cmds_F77
24573
24574 # Whether we are building with GNU ld or not.
24575 with_gnu_ld=$lt_with_gnu_ld_F77
24576
24577 # Flag that allows shared libraries with undefined symbols to be built.
24578 allow_undefined_flag=$lt_allow_undefined_flag_F77
24579
24580 # Flag that enforces no undefined symbols.
24581 no_undefined_flag=$lt_no_undefined_flag_F77
24582
24583 # Flag to hardcode \$libdir into a binary during linking.
24584 # This must work even if \$libdir does not exist
24585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24586
24587 # Whether we need a single "-rpath" flag with a separated argument.
24588 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24589
24590 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24591 # DIR into the resulting binary.
24592 hardcode_direct=$hardcode_direct_F77
24593
24594 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24595 # DIR into the resulting binary and the resulting library dependency is
24596 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24597 # library is relocated.
24598 hardcode_direct_absolute=$hardcode_direct_absolute_F77
24599
24600 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24601 # into the resulting binary.
24602 hardcode_minus_L=$hardcode_minus_L_F77
24603
24604 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24605 # into the resulting binary.
24606 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24607
24608 # Set to "yes" if building a shared library automatically hardcodes DIR
24609 # into the library and all subsequent libraries and executables linked
24610 # against it.
24611 hardcode_automatic=$hardcode_automatic_F77
24612
24613 # Set to yes if linker adds runtime paths of dependent libraries
24614 # to runtime path list.
24615 inherit_rpath=$inherit_rpath_F77
24616
24617 # Whether libtool must link a program against all its dependency libraries.
24618 link_all_deplibs=$link_all_deplibs_F77
24619
24620 # Set to "yes" if exported symbols are required.
24621 always_export_symbols=$always_export_symbols_F77
24622
24623 # The commands to list exported symbols.
24624 export_symbols_cmds=$lt_export_symbols_cmds_F77
24625
24626 # Symbols that should not be listed in the preloaded symbols.
24627 exclude_expsyms=$lt_exclude_expsyms_F77
24628
24629 # Symbols that must always be exported.
24630 include_expsyms=$lt_include_expsyms_F77
24631
24632 # Commands necessary for linking programs (against libraries) with templates.
24633 prelink_cmds=$lt_prelink_cmds_F77
24634
24635 # Commands necessary for finishing linking programs.
24636 postlink_cmds=$lt_postlink_cmds_F77
24637
24638 # Specify filename containing input files.
24639 file_list_spec=$lt_file_list_spec_F77
24640
24641 # How to hardcode a shared library path into an executable.
24642 hardcode_action=$hardcode_action_F77
24643
24644 # ### END LIBTOOL TAG CONFIG: F77
24645 _LT_EOF
24646
24647 ;;
24648
24649 esac
24650 done # for ac_tag
24651
24652
24653 as_fn_exit 0
24654 _ACEOF
24655 ac_clean_files=$ac_clean_files_save
24656
24657 test $ac_write_fail = 0 ||
24658 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24659
24660
24661 # configure is writing to config.log, and then calls config.status.
24662 # config.status does its own redirection, appending to config.log.
24663 # Unfortunately, on DOS this fails, as config.log is still kept open
24664 # by configure, so config.status won't be able to write to it; its
24665 # output is simply discarded. So we exec the FD to /dev/null,
24666 # effectively closing config.log, so it can be properly (re)opened and
24667 # appended to by config.status. When coming back to configure, we
24668 # need to make the FD available again.
24669 if test "$no_create" != yes; then
24670 ac_cs_success=:
24671 ac_config_status_args=
24672 test "$silent" = yes &&
24673 ac_config_status_args="$ac_config_status_args --quiet"
24674 exec 5>/dev/null
24675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24676 exec 5>>config.log
24677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24678 # would make configure fail if this is the last instruction.
24679 $ac_cs_success || as_fn_exit 1
24680 fi
24681 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24683 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24684 fi
24685