Chris@42
|
1 #! /bin/sh
|
Chris@42
|
2 # Guess values for system-dependent variables and create Makefiles.
|
Chris@42
|
3 # Generated by GNU Autoconf 2.69 for fftw 3.3.5.
|
Chris@42
|
4 #
|
Chris@42
|
5 # Report bugs to <fftw@fftw.org>.
|
Chris@42
|
6 #
|
Chris@42
|
7 #
|
Chris@42
|
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
Chris@42
|
9 #
|
Chris@42
|
10 #
|
Chris@42
|
11 # This configure script is free software; the Free Software Foundation
|
Chris@42
|
12 # gives unlimited permission to copy, distribute and modify it.
|
Chris@42
|
13 ## -------------------- ##
|
Chris@42
|
14 ## M4sh Initialization. ##
|
Chris@42
|
15 ## -------------------- ##
|
Chris@42
|
16
|
Chris@42
|
17 # Be more Bourne compatible
|
Chris@42
|
18 DUALCASE=1; export DUALCASE # for MKS sh
|
Chris@42
|
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
Chris@42
|
20 emulate sh
|
Chris@42
|
21 NULLCMD=:
|
Chris@42
|
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
Chris@42
|
23 # is contrary to our usage. Disable this feature.
|
Chris@42
|
24 alias -g '${1+"$@"}'='"$@"'
|
Chris@42
|
25 setopt NO_GLOB_SUBST
|
Chris@42
|
26 else
|
Chris@42
|
27 case `(set -o) 2>/dev/null` in #(
|
Chris@42
|
28 *posix*) :
|
Chris@42
|
29 set -o posix ;; #(
|
Chris@42
|
30 *) :
|
Chris@42
|
31 ;;
|
Chris@42
|
32 esac
|
Chris@42
|
33 fi
|
Chris@42
|
34
|
Chris@42
|
35
|
Chris@42
|
36 as_nl='
|
Chris@42
|
37 '
|
Chris@42
|
38 export as_nl
|
Chris@42
|
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
Chris@42
|
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
Chris@42
|
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
Chris@42
|
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
Chris@42
|
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
Chris@42
|
44 # but without wasting forks for bash or zsh.
|
Chris@42
|
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
Chris@42
|
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
Chris@42
|
47 as_echo='print -r --'
|
Chris@42
|
48 as_echo_n='print -rn --'
|
Chris@42
|
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
Chris@42
|
50 as_echo='printf %s\n'
|
Chris@42
|
51 as_echo_n='printf %s'
|
Chris@42
|
52 else
|
Chris@42
|
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
Chris@42
|
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
Chris@42
|
55 as_echo_n='/usr/ucb/echo -n'
|
Chris@42
|
56 else
|
Chris@42
|
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
Chris@42
|
58 as_echo_n_body='eval
|
Chris@42
|
59 arg=$1;
|
Chris@42
|
60 case $arg in #(
|
Chris@42
|
61 *"$as_nl"*)
|
Chris@42
|
62 expr "X$arg" : "X\\(.*\\)$as_nl";
|
Chris@42
|
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
Chris@42
|
64 esac;
|
Chris@42
|
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
Chris@42
|
66 '
|
Chris@42
|
67 export as_echo_n_body
|
Chris@42
|
68 as_echo_n='sh -c $as_echo_n_body as_echo'
|
Chris@42
|
69 fi
|
Chris@42
|
70 export as_echo_body
|
Chris@42
|
71 as_echo='sh -c $as_echo_body as_echo'
|
Chris@42
|
72 fi
|
Chris@42
|
73
|
Chris@42
|
74 # The user is always right.
|
Chris@42
|
75 if test "${PATH_SEPARATOR+set}" != set; then
|
Chris@42
|
76 PATH_SEPARATOR=:
|
Chris@42
|
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
Chris@42
|
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
Chris@42
|
79 PATH_SEPARATOR=';'
|
Chris@42
|
80 }
|
Chris@42
|
81 fi
|
Chris@42
|
82
|
Chris@42
|
83
|
Chris@42
|
84 # IFS
|
Chris@42
|
85 # We need space, tab and new line, in precisely that order. Quoting is
|
Chris@42
|
86 # there to prevent editors from complaining about space-tab.
|
Chris@42
|
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
Chris@42
|
88 # splitting by setting IFS to empty value.)
|
Chris@42
|
89 IFS=" "" $as_nl"
|
Chris@42
|
90
|
Chris@42
|
91 # Find who we are. Look in the path if we contain no directory separator.
|
Chris@42
|
92 as_myself=
|
Chris@42
|
93 case $0 in #((
|
Chris@42
|
94 *[\\/]* ) as_myself=$0 ;;
|
Chris@42
|
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
96 for as_dir in $PATH
|
Chris@42
|
97 do
|
Chris@42
|
98 IFS=$as_save_IFS
|
Chris@42
|
99 test -z "$as_dir" && as_dir=.
|
Chris@42
|
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
Chris@42
|
101 done
|
Chris@42
|
102 IFS=$as_save_IFS
|
Chris@42
|
103
|
Chris@42
|
104 ;;
|
Chris@42
|
105 esac
|
Chris@42
|
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
Chris@42
|
107 # in which case we are not to be found in the path.
|
Chris@42
|
108 if test "x$as_myself" = x; then
|
Chris@42
|
109 as_myself=$0
|
Chris@42
|
110 fi
|
Chris@42
|
111 if test ! -f "$as_myself"; then
|
Chris@42
|
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
Chris@42
|
113 exit 1
|
Chris@42
|
114 fi
|
Chris@42
|
115
|
Chris@42
|
116 # Unset variables that we do not need and which cause bugs (e.g. in
|
Chris@42
|
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
Chris@42
|
118 # suppresses any "Segmentation fault" message there. '((' could
|
Chris@42
|
119 # trigger a bug in pdksh 5.2.14.
|
Chris@42
|
120 for as_var in BASH_ENV ENV MAIL MAILPATH
|
Chris@42
|
121 do eval test x\${$as_var+set} = xset \
|
Chris@42
|
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
Chris@42
|
123 done
|
Chris@42
|
124 PS1='$ '
|
Chris@42
|
125 PS2='> '
|
Chris@42
|
126 PS4='+ '
|
Chris@42
|
127
|
Chris@42
|
128 # NLS nuisances.
|
Chris@42
|
129 LC_ALL=C
|
Chris@42
|
130 export LC_ALL
|
Chris@42
|
131 LANGUAGE=C
|
Chris@42
|
132 export LANGUAGE
|
Chris@42
|
133
|
Chris@42
|
134 # CDPATH.
|
Chris@42
|
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
Chris@42
|
136
|
Chris@42
|
137 # Use a proper internal environment variable to ensure we don't fall
|
Chris@42
|
138 # into an infinite loop, continuously re-executing ourselves.
|
Chris@42
|
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
Chris@42
|
140 _as_can_reexec=no; export _as_can_reexec;
|
Chris@42
|
141 # We cannot yet assume a decent shell, so we have to provide a
|
Chris@42
|
142 # neutralization value for shells without unset; and this also
|
Chris@42
|
143 # works around shells that cannot unset nonexistent variables.
|
Chris@42
|
144 # Preserve -v and -x to the replacement shell.
|
Chris@42
|
145 BASH_ENV=/dev/null
|
Chris@42
|
146 ENV=/dev/null
|
Chris@42
|
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
Chris@42
|
148 case $- in # ((((
|
Chris@42
|
149 *v*x* | *x*v* ) as_opts=-vx ;;
|
Chris@42
|
150 *v* ) as_opts=-v ;;
|
Chris@42
|
151 *x* ) as_opts=-x ;;
|
Chris@42
|
152 * ) as_opts= ;;
|
Chris@42
|
153 esac
|
Chris@42
|
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
Chris@42
|
155 # Admittedly, this is quite paranoid, since all the known shells bail
|
Chris@42
|
156 # out after a failed `exec'.
|
Chris@42
|
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
Chris@42
|
158 as_fn_exit 255
|
Chris@42
|
159 fi
|
Chris@42
|
160 # We don't want this to propagate to other subprocesses.
|
Chris@42
|
161 { _as_can_reexec=; unset _as_can_reexec;}
|
Chris@42
|
162 if test "x$CONFIG_SHELL" = x; then
|
Chris@42
|
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
Chris@42
|
164 emulate sh
|
Chris@42
|
165 NULLCMD=:
|
Chris@42
|
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
Chris@42
|
167 # is contrary to our usage. Disable this feature.
|
Chris@42
|
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
Chris@42
|
169 setopt NO_GLOB_SUBST
|
Chris@42
|
170 else
|
Chris@42
|
171 case \`(set -o) 2>/dev/null\` in #(
|
Chris@42
|
172 *posix*) :
|
Chris@42
|
173 set -o posix ;; #(
|
Chris@42
|
174 *) :
|
Chris@42
|
175 ;;
|
Chris@42
|
176 esac
|
Chris@42
|
177 fi
|
Chris@42
|
178 "
|
Chris@42
|
179 as_required="as_fn_return () { (exit \$1); }
|
Chris@42
|
180 as_fn_success () { as_fn_return 0; }
|
Chris@42
|
181 as_fn_failure () { as_fn_return 1; }
|
Chris@42
|
182 as_fn_ret_success () { return 0; }
|
Chris@42
|
183 as_fn_ret_failure () { return 1; }
|
Chris@42
|
184
|
Chris@42
|
185 exitcode=0
|
Chris@42
|
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
Chris@42
|
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
Chris@42
|
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
Chris@42
|
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
Chris@42
|
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
Chris@42
|
191
|
Chris@42
|
192 else
|
Chris@42
|
193 exitcode=1; echo positional parameters were not saved.
|
Chris@42
|
194 fi
|
Chris@42
|
195 test x\$exitcode = x0 || exit 1
|
Chris@42
|
196 test -x / || exit 1"
|
Chris@42
|
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
Chris@42
|
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
Chris@42
|
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
Chris@42
|
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
Chris@42
|
201
|
Chris@42
|
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
|
Chris@42
|
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
Chris@42
|
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
Chris@42
|
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
Chris@42
|
206 PATH=/empty FPATH=/empty; export PATH FPATH
|
Chris@42
|
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
|
Chris@42
|
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
|
Chris@42
|
209 test \$(( 1 + 1 )) = 2 || exit 1"
|
Chris@42
|
210 if (eval "$as_required") 2>/dev/null; then :
|
Chris@42
|
211 as_have_required=yes
|
Chris@42
|
212 else
|
Chris@42
|
213 as_have_required=no
|
Chris@42
|
214 fi
|
Chris@42
|
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
Chris@42
|
216
|
Chris@42
|
217 else
|
Chris@42
|
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
219 as_found=false
|
Chris@42
|
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
Chris@42
|
221 do
|
Chris@42
|
222 IFS=$as_save_IFS
|
Chris@42
|
223 test -z "$as_dir" && as_dir=.
|
Chris@42
|
224 as_found=:
|
Chris@42
|
225 case $as_dir in #(
|
Chris@42
|
226 /*)
|
Chris@42
|
227 for as_base in sh bash ksh sh5; do
|
Chris@42
|
228 # Try only shells that exist, to save several forks.
|
Chris@42
|
229 as_shell=$as_dir/$as_base
|
Chris@42
|
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
Chris@42
|
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
Chris@42
|
232 CONFIG_SHELL=$as_shell as_have_required=yes
|
Chris@42
|
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
Chris@42
|
234 break 2
|
Chris@42
|
235 fi
|
Chris@42
|
236 fi
|
Chris@42
|
237 done;;
|
Chris@42
|
238 esac
|
Chris@42
|
239 as_found=false
|
Chris@42
|
240 done
|
Chris@42
|
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
Chris@42
|
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
Chris@42
|
243 CONFIG_SHELL=$SHELL as_have_required=yes
|
Chris@42
|
244 fi; }
|
Chris@42
|
245 IFS=$as_save_IFS
|
Chris@42
|
246
|
Chris@42
|
247
|
Chris@42
|
248 if test "x$CONFIG_SHELL" != x; then :
|
Chris@42
|
249 export CONFIG_SHELL
|
Chris@42
|
250 # We cannot yet assume a decent shell, so we have to provide a
|
Chris@42
|
251 # neutralization value for shells without unset; and this also
|
Chris@42
|
252 # works around shells that cannot unset nonexistent variables.
|
Chris@42
|
253 # Preserve -v and -x to the replacement shell.
|
Chris@42
|
254 BASH_ENV=/dev/null
|
Chris@42
|
255 ENV=/dev/null
|
Chris@42
|
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
Chris@42
|
257 case $- in # ((((
|
Chris@42
|
258 *v*x* | *x*v* ) as_opts=-vx ;;
|
Chris@42
|
259 *v* ) as_opts=-v ;;
|
Chris@42
|
260 *x* ) as_opts=-x ;;
|
Chris@42
|
261 * ) as_opts= ;;
|
Chris@42
|
262 esac
|
Chris@42
|
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
Chris@42
|
264 # Admittedly, this is quite paranoid, since all the known shells bail
|
Chris@42
|
265 # out after a failed `exec'.
|
Chris@42
|
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
Chris@42
|
267 exit 255
|
Chris@42
|
268 fi
|
Chris@42
|
269
|
Chris@42
|
270 if test x$as_have_required = xno; then :
|
Chris@42
|
271 $as_echo "$0: This script requires a shell more modern than all"
|
Chris@42
|
272 $as_echo "$0: the shells that I found on your system."
|
Chris@42
|
273 if test x${ZSH_VERSION+set} = xset ; then
|
Chris@42
|
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
Chris@42
|
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
Chris@42
|
276 else
|
Chris@42
|
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and fftw@fftw.org
|
Chris@42
|
278 $0: about your system, including any error possibly output
|
Chris@42
|
279 $0: before this message. Then install a modern shell, or
|
Chris@42
|
280 $0: manually run the script under such a shell if you do
|
Chris@42
|
281 $0: have one."
|
Chris@42
|
282 fi
|
Chris@42
|
283 exit 1
|
Chris@42
|
284 fi
|
Chris@42
|
285 fi
|
Chris@42
|
286 fi
|
Chris@42
|
287 SHELL=${CONFIG_SHELL-/bin/sh}
|
Chris@42
|
288 export SHELL
|
Chris@42
|
289 # Unset more variables known to interfere with behavior of common tools.
|
Chris@42
|
290 CLICOLOR_FORCE= GREP_OPTIONS=
|
Chris@42
|
291 unset CLICOLOR_FORCE GREP_OPTIONS
|
Chris@42
|
292
|
Chris@42
|
293 ## --------------------- ##
|
Chris@42
|
294 ## M4sh Shell Functions. ##
|
Chris@42
|
295 ## --------------------- ##
|
Chris@42
|
296 # as_fn_unset VAR
|
Chris@42
|
297 # ---------------
|
Chris@42
|
298 # Portably unset VAR.
|
Chris@42
|
299 as_fn_unset ()
|
Chris@42
|
300 {
|
Chris@42
|
301 { eval $1=; unset $1;}
|
Chris@42
|
302 }
|
Chris@42
|
303 as_unset=as_fn_unset
|
Chris@42
|
304
|
Chris@42
|
305 # as_fn_set_status STATUS
|
Chris@42
|
306 # -----------------------
|
Chris@42
|
307 # Set $? to STATUS, without forking.
|
Chris@42
|
308 as_fn_set_status ()
|
Chris@42
|
309 {
|
Chris@42
|
310 return $1
|
Chris@42
|
311 } # as_fn_set_status
|
Chris@42
|
312
|
Chris@42
|
313 # as_fn_exit STATUS
|
Chris@42
|
314 # -----------------
|
Chris@42
|
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
Chris@42
|
316 as_fn_exit ()
|
Chris@42
|
317 {
|
Chris@42
|
318 set +e
|
Chris@42
|
319 as_fn_set_status $1
|
Chris@42
|
320 exit $1
|
Chris@42
|
321 } # as_fn_exit
|
Chris@42
|
322
|
Chris@42
|
323 # as_fn_mkdir_p
|
Chris@42
|
324 # -------------
|
Chris@42
|
325 # Create "$as_dir" as a directory, including parents if necessary.
|
Chris@42
|
326 as_fn_mkdir_p ()
|
Chris@42
|
327 {
|
Chris@42
|
328
|
Chris@42
|
329 case $as_dir in #(
|
Chris@42
|
330 -*) as_dir=./$as_dir;;
|
Chris@42
|
331 esac
|
Chris@42
|
332 test -d "$as_dir" || eval $as_mkdir_p || {
|
Chris@42
|
333 as_dirs=
|
Chris@42
|
334 while :; do
|
Chris@42
|
335 case $as_dir in #(
|
Chris@42
|
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
Chris@42
|
337 *) as_qdir=$as_dir;;
|
Chris@42
|
338 esac
|
Chris@42
|
339 as_dirs="'$as_qdir' $as_dirs"
|
Chris@42
|
340 as_dir=`$as_dirname -- "$as_dir" ||
|
Chris@42
|
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
Chris@42
|
342 X"$as_dir" : 'X\(//\)[^/]' \| \
|
Chris@42
|
343 X"$as_dir" : 'X\(//\)$' \| \
|
Chris@42
|
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
Chris@42
|
345 $as_echo X"$as_dir" |
|
Chris@42
|
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
Chris@42
|
347 s//\1/
|
Chris@42
|
348 q
|
Chris@42
|
349 }
|
Chris@42
|
350 /^X\(\/\/\)[^/].*/{
|
Chris@42
|
351 s//\1/
|
Chris@42
|
352 q
|
Chris@42
|
353 }
|
Chris@42
|
354 /^X\(\/\/\)$/{
|
Chris@42
|
355 s//\1/
|
Chris@42
|
356 q
|
Chris@42
|
357 }
|
Chris@42
|
358 /^X\(\/\).*/{
|
Chris@42
|
359 s//\1/
|
Chris@42
|
360 q
|
Chris@42
|
361 }
|
Chris@42
|
362 s/.*/./; q'`
|
Chris@42
|
363 test -d "$as_dir" && break
|
Chris@42
|
364 done
|
Chris@42
|
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
Chris@42
|
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
Chris@42
|
367
|
Chris@42
|
368
|
Chris@42
|
369 } # as_fn_mkdir_p
|
Chris@42
|
370
|
Chris@42
|
371 # as_fn_executable_p FILE
|
Chris@42
|
372 # -----------------------
|
Chris@42
|
373 # Test if FILE is an executable regular file.
|
Chris@42
|
374 as_fn_executable_p ()
|
Chris@42
|
375 {
|
Chris@42
|
376 test -f "$1" && test -x "$1"
|
Chris@42
|
377 } # as_fn_executable_p
|
Chris@42
|
378 # as_fn_append VAR VALUE
|
Chris@42
|
379 # ----------------------
|
Chris@42
|
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
Chris@42
|
381 # advantage of any shell optimizations that allow amortized linear growth over
|
Chris@42
|
382 # repeated appends, instead of the typical quadratic growth present in naive
|
Chris@42
|
383 # implementations.
|
Chris@42
|
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
Chris@42
|
385 eval 'as_fn_append ()
|
Chris@42
|
386 {
|
Chris@42
|
387 eval $1+=\$2
|
Chris@42
|
388 }'
|
Chris@42
|
389 else
|
Chris@42
|
390 as_fn_append ()
|
Chris@42
|
391 {
|
Chris@42
|
392 eval $1=\$$1\$2
|
Chris@42
|
393 }
|
Chris@42
|
394 fi # as_fn_append
|
Chris@42
|
395
|
Chris@42
|
396 # as_fn_arith ARG...
|
Chris@42
|
397 # ------------------
|
Chris@42
|
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
Chris@42
|
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
Chris@42
|
400 # must be portable across $(()) and expr.
|
Chris@42
|
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
Chris@42
|
402 eval 'as_fn_arith ()
|
Chris@42
|
403 {
|
Chris@42
|
404 as_val=$(( $* ))
|
Chris@42
|
405 }'
|
Chris@42
|
406 else
|
Chris@42
|
407 as_fn_arith ()
|
Chris@42
|
408 {
|
Chris@42
|
409 as_val=`expr "$@" || test $? -eq 1`
|
Chris@42
|
410 }
|
Chris@42
|
411 fi # as_fn_arith
|
Chris@42
|
412
|
Chris@42
|
413
|
Chris@42
|
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
Chris@42
|
415 # ----------------------------------------
|
Chris@42
|
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
Chris@42
|
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
Chris@42
|
418 # script with STATUS, using 1 if that was 0.
|
Chris@42
|
419 as_fn_error ()
|
Chris@42
|
420 {
|
Chris@42
|
421 as_status=$1; test $as_status -eq 0 && as_status=1
|
Chris@42
|
422 if test "$4"; then
|
Chris@42
|
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
Chris@42
|
425 fi
|
Chris@42
|
426 $as_echo "$as_me: error: $2" >&2
|
Chris@42
|
427 as_fn_exit $as_status
|
Chris@42
|
428 } # as_fn_error
|
Chris@42
|
429
|
Chris@42
|
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
Chris@42
|
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
Chris@42
|
432 as_expr=expr
|
Chris@42
|
433 else
|
Chris@42
|
434 as_expr=false
|
Chris@42
|
435 fi
|
Chris@42
|
436
|
Chris@42
|
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
Chris@42
|
438 as_basename=basename
|
Chris@42
|
439 else
|
Chris@42
|
440 as_basename=false
|
Chris@42
|
441 fi
|
Chris@42
|
442
|
Chris@42
|
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
Chris@42
|
444 as_dirname=dirname
|
Chris@42
|
445 else
|
Chris@42
|
446 as_dirname=false
|
Chris@42
|
447 fi
|
Chris@42
|
448
|
Chris@42
|
449 as_me=`$as_basename -- "$0" ||
|
Chris@42
|
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
Chris@42
|
451 X"$0" : 'X\(//\)$' \| \
|
Chris@42
|
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
Chris@42
|
453 $as_echo X/"$0" |
|
Chris@42
|
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
Chris@42
|
455 s//\1/
|
Chris@42
|
456 q
|
Chris@42
|
457 }
|
Chris@42
|
458 /^X\/\(\/\/\)$/{
|
Chris@42
|
459 s//\1/
|
Chris@42
|
460 q
|
Chris@42
|
461 }
|
Chris@42
|
462 /^X\/\(\/\).*/{
|
Chris@42
|
463 s//\1/
|
Chris@42
|
464 q
|
Chris@42
|
465 }
|
Chris@42
|
466 s/.*/./; q'`
|
Chris@42
|
467
|
Chris@42
|
468 # Avoid depending upon Character Ranges.
|
Chris@42
|
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
Chris@42
|
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
Chris@42
|
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
Chris@42
|
472 as_cr_digits='0123456789'
|
Chris@42
|
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
Chris@42
|
474
|
Chris@42
|
475
|
Chris@42
|
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
Chris@42
|
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
Chris@42
|
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
Chris@42
|
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
Chris@42
|
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
Chris@42
|
481 sed -n '
|
Chris@42
|
482 p
|
Chris@42
|
483 /[$]LINENO/=
|
Chris@42
|
484 ' <$as_myself |
|
Chris@42
|
485 sed '
|
Chris@42
|
486 s/[$]LINENO.*/&-/
|
Chris@42
|
487 t lineno
|
Chris@42
|
488 b
|
Chris@42
|
489 :lineno
|
Chris@42
|
490 N
|
Chris@42
|
491 :loop
|
Chris@42
|
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
Chris@42
|
493 t loop
|
Chris@42
|
494 s/-\n.*//
|
Chris@42
|
495 ' >$as_me.lineno &&
|
Chris@42
|
496 chmod +x "$as_me.lineno" ||
|
Chris@42
|
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
Chris@42
|
498
|
Chris@42
|
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
Chris@42
|
500 # already done that, so ensure we don't try to do so again and fall
|
Chris@42
|
501 # in an infinite loop. This has already happened in practice.
|
Chris@42
|
502 _as_can_reexec=no; export _as_can_reexec
|
Chris@42
|
503 # Don't try to exec as it changes $[0], causing all sort of problems
|
Chris@42
|
504 # (the dirname of $[0] is not the place where we might find the
|
Chris@42
|
505 # original and so on. Autoconf is especially sensitive to this).
|
Chris@42
|
506 . "./$as_me.lineno"
|
Chris@42
|
507 # Exit status is that of the last command.
|
Chris@42
|
508 exit
|
Chris@42
|
509 }
|
Chris@42
|
510
|
Chris@42
|
511 ECHO_C= ECHO_N= ECHO_T=
|
Chris@42
|
512 case `echo -n x` in #(((((
|
Chris@42
|
513 -n*)
|
Chris@42
|
514 case `echo 'xy\c'` in
|
Chris@42
|
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
Chris@42
|
516 xy) ECHO_C='\c';;
|
Chris@42
|
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
Chris@42
|
518 ECHO_T=' ';;
|
Chris@42
|
519 esac;;
|
Chris@42
|
520 *)
|
Chris@42
|
521 ECHO_N='-n';;
|
Chris@42
|
522 esac
|
Chris@42
|
523
|
Chris@42
|
524 rm -f conf$$ conf$$.exe conf$$.file
|
Chris@42
|
525 if test -d conf$$.dir; then
|
Chris@42
|
526 rm -f conf$$.dir/conf$$.file
|
Chris@42
|
527 else
|
Chris@42
|
528 rm -f conf$$.dir
|
Chris@42
|
529 mkdir conf$$.dir 2>/dev/null
|
Chris@42
|
530 fi
|
Chris@42
|
531 if (echo >conf$$.file) 2>/dev/null; then
|
Chris@42
|
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
Chris@42
|
533 as_ln_s='ln -s'
|
Chris@42
|
534 # ... but there are two gotchas:
|
Chris@42
|
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
Chris@42
|
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
Chris@42
|
537 # In both cases, we have to default to `cp -pR'.
|
Chris@42
|
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
Chris@42
|
539 as_ln_s='cp -pR'
|
Chris@42
|
540 elif ln conf$$.file conf$$ 2>/dev/null; then
|
Chris@42
|
541 as_ln_s=ln
|
Chris@42
|
542 else
|
Chris@42
|
543 as_ln_s='cp -pR'
|
Chris@42
|
544 fi
|
Chris@42
|
545 else
|
Chris@42
|
546 as_ln_s='cp -pR'
|
Chris@42
|
547 fi
|
Chris@42
|
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
Chris@42
|
549 rmdir conf$$.dir 2>/dev/null
|
Chris@42
|
550
|
Chris@42
|
551 if mkdir -p . 2>/dev/null; then
|
Chris@42
|
552 as_mkdir_p='mkdir -p "$as_dir"'
|
Chris@42
|
553 else
|
Chris@42
|
554 test -d ./-p && rmdir ./-p
|
Chris@42
|
555 as_mkdir_p=false
|
Chris@42
|
556 fi
|
Chris@42
|
557
|
Chris@42
|
558 as_test_x='test -x'
|
Chris@42
|
559 as_executable_p=as_fn_executable_p
|
Chris@42
|
560
|
Chris@42
|
561 # Sed expression to map a string onto a valid CPP name.
|
Chris@42
|
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
Chris@42
|
563
|
Chris@42
|
564 # Sed expression to map a string onto a valid variable name.
|
Chris@42
|
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
Chris@42
|
566
|
Chris@42
|
567 SHELL=${CONFIG_SHELL-/bin/sh}
|
Chris@42
|
568
|
Chris@42
|
569
|
Chris@42
|
570 test -n "$DJDIR" || exec 7<&0 </dev/null
|
Chris@42
|
571 exec 6>&1
|
Chris@42
|
572
|
Chris@42
|
573 # Name of the host.
|
Chris@42
|
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
Chris@42
|
575 # so uname gets run too.
|
Chris@42
|
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
Chris@42
|
577
|
Chris@42
|
578 #
|
Chris@42
|
579 # Initializations.
|
Chris@42
|
580 #
|
Chris@42
|
581 ac_default_prefix=/usr/local
|
Chris@42
|
582 ac_clean_files=
|
Chris@42
|
583 ac_config_libobj_dir=.
|
Chris@42
|
584 LIBOBJS=
|
Chris@42
|
585 cross_compiling=no
|
Chris@42
|
586 subdirs=
|
Chris@42
|
587 MFLAGS=
|
Chris@42
|
588 MAKEFLAGS=
|
Chris@42
|
589
|
Chris@42
|
590 # Identity of this package.
|
Chris@42
|
591 PACKAGE_NAME='fftw'
|
Chris@42
|
592 PACKAGE_TARNAME='fftw'
|
Chris@42
|
593 PACKAGE_VERSION='3.3.5'
|
Chris@42
|
594 PACKAGE_STRING='fftw 3.3.5'
|
Chris@42
|
595 PACKAGE_BUGREPORT='fftw@fftw.org'
|
Chris@42
|
596 PACKAGE_URL=''
|
Chris@42
|
597
|
Chris@42
|
598 ac_unique_file="kernel/ifftw.h"
|
Chris@42
|
599 # Factoring default headers for most tests.
|
Chris@42
|
600 ac_includes_default="\
|
Chris@42
|
601 #include <stdio.h>
|
Chris@42
|
602 #ifdef HAVE_SYS_TYPES_H
|
Chris@42
|
603 # include <sys/types.h>
|
Chris@42
|
604 #endif
|
Chris@42
|
605 #ifdef HAVE_SYS_STAT_H
|
Chris@42
|
606 # include <sys/stat.h>
|
Chris@42
|
607 #endif
|
Chris@42
|
608 #ifdef STDC_HEADERS
|
Chris@42
|
609 # include <stdlib.h>
|
Chris@42
|
610 # include <stddef.h>
|
Chris@42
|
611 #else
|
Chris@42
|
612 # ifdef HAVE_STDLIB_H
|
Chris@42
|
613 # include <stdlib.h>
|
Chris@42
|
614 # endif
|
Chris@42
|
615 #endif
|
Chris@42
|
616 #ifdef HAVE_STRING_H
|
Chris@42
|
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
Chris@42
|
618 # include <memory.h>
|
Chris@42
|
619 # endif
|
Chris@42
|
620 # include <string.h>
|
Chris@42
|
621 #endif
|
Chris@42
|
622 #ifdef HAVE_STRINGS_H
|
Chris@42
|
623 # include <strings.h>
|
Chris@42
|
624 #endif
|
Chris@42
|
625 #ifdef HAVE_INTTYPES_H
|
Chris@42
|
626 # include <inttypes.h>
|
Chris@42
|
627 #endif
|
Chris@42
|
628 #ifdef HAVE_STDINT_H
|
Chris@42
|
629 # include <stdint.h>
|
Chris@42
|
630 #endif
|
Chris@42
|
631 #ifdef HAVE_UNISTD_H
|
Chris@42
|
632 # include <unistd.h>
|
Chris@42
|
633 #endif"
|
Chris@42
|
634
|
Chris@42
|
635 ac_subst_vars='am__EXEEXT_FALSE
|
Chris@42
|
636 am__EXEEXT_TRUE
|
Chris@42
|
637 LTLIBOBJS
|
Chris@42
|
638 COMBINED_THREADS_FALSE
|
Chris@42
|
639 COMBINED_THREADS_TRUE
|
Chris@42
|
640 SMP_FALSE
|
Chris@42
|
641 SMP_TRUE
|
Chris@42
|
642 OPENMP_FALSE
|
Chris@42
|
643 OPENMP_TRUE
|
Chris@42
|
644 THREADS_FALSE
|
Chris@42
|
645 THREADS_TRUE
|
Chris@42
|
646 THREADLIBS
|
Chris@42
|
647 PTHREAD_CFLAGS
|
Chris@42
|
648 PTHREAD_LIBS
|
Chris@42
|
649 PTHREAD_CC
|
Chris@42
|
650 acx_pthread_config
|
Chris@42
|
651 OPENMP_CFLAGS
|
Chris@42
|
652 FLIBS
|
Chris@42
|
653 ac_ct_F77
|
Chris@42
|
654 FFLAGS
|
Chris@42
|
655 F77
|
Chris@42
|
656 INDENT
|
Chris@42
|
657 LIBQUADMATH
|
Chris@42
|
658 LIBOBJS
|
Chris@42
|
659 POW_LIB
|
Chris@42
|
660 ALLOCA
|
Chris@42
|
661 C_FFTW_R2R_KIND
|
Chris@42
|
662 STACK_ALIGN_CFLAGS
|
Chris@42
|
663 NEON_CFLAGS
|
Chris@42
|
664 VSX_CFLAGS
|
Chris@42
|
665 ALTIVEC_CFLAGS
|
Chris@42
|
666 KCVI_CFLAGS
|
Chris@42
|
667 AVX512_CFLAGS
|
Chris@42
|
668 AVX2_CFLAGS
|
Chris@42
|
669 AVX_CFLAGS
|
Chris@42
|
670 SSE2_CFLAGS
|
Chris@42
|
671 MPI_FALSE
|
Chris@42
|
672 MPI_TRUE
|
Chris@42
|
673 C_MPI_FINT
|
Chris@42
|
674 MPIRUN
|
Chris@42
|
675 MPILIBS
|
Chris@42
|
676 MPICC
|
Chris@42
|
677 OCAMLBUILD
|
Chris@42
|
678 CPP
|
Chris@42
|
679 OTOOL64
|
Chris@42
|
680 OTOOL
|
Chris@42
|
681 LIPO
|
Chris@42
|
682 NMEDIT
|
Chris@42
|
683 DSYMUTIL
|
Chris@42
|
684 MANIFEST_TOOL
|
Chris@42
|
685 RANLIB
|
Chris@42
|
686 ac_ct_AR
|
Chris@42
|
687 AR
|
Chris@42
|
688 NM
|
Chris@42
|
689 ac_ct_DUMPBIN
|
Chris@42
|
690 DUMPBIN
|
Chris@42
|
691 LD
|
Chris@42
|
692 FGREP
|
Chris@42
|
693 EGREP
|
Chris@42
|
694 GREP
|
Chris@42
|
695 SED
|
Chris@42
|
696 LIBTOOL
|
Chris@42
|
697 OBJDUMP
|
Chris@42
|
698 DLLTOOL
|
Chris@42
|
699 AS
|
Chris@42
|
700 LN_S
|
Chris@42
|
701 am__fastdepCC_FALSE
|
Chris@42
|
702 am__fastdepCC_TRUE
|
Chris@42
|
703 CCDEPMODE
|
Chris@42
|
704 am__nodep
|
Chris@42
|
705 AMDEPBACKSLASH
|
Chris@42
|
706 AMDEP_FALSE
|
Chris@42
|
707 AMDEP_TRUE
|
Chris@42
|
708 am__quote
|
Chris@42
|
709 am__include
|
Chris@42
|
710 DEPDIR
|
Chris@42
|
711 OBJEXT
|
Chris@42
|
712 EXEEXT
|
Chris@42
|
713 ac_ct_CC
|
Chris@42
|
714 CPPFLAGS
|
Chris@42
|
715 LDFLAGS
|
Chris@42
|
716 CFLAGS
|
Chris@42
|
717 CC
|
Chris@42
|
718 PREC_SUFFIX
|
Chris@42
|
719 HAVE_GENERIC_SIMD256_FALSE
|
Chris@42
|
720 HAVE_GENERIC_SIMD256_TRUE
|
Chris@42
|
721 HAVE_GENERIC_SIMD128_FALSE
|
Chris@42
|
722 HAVE_GENERIC_SIMD128_TRUE
|
Chris@42
|
723 HAVE_NEON_FALSE
|
Chris@42
|
724 HAVE_NEON_TRUE
|
Chris@42
|
725 HAVE_VSX_FALSE
|
Chris@42
|
726 HAVE_VSX_TRUE
|
Chris@42
|
727 HAVE_ALTIVEC_FALSE
|
Chris@42
|
728 HAVE_ALTIVEC_TRUE
|
Chris@42
|
729 HAVE_KCVI_FALSE
|
Chris@42
|
730 HAVE_KCVI_TRUE
|
Chris@42
|
731 HAVE_AVX_128_FMA_FALSE
|
Chris@42
|
732 HAVE_AVX_128_FMA_TRUE
|
Chris@42
|
733 AVX_128_FMA_CFLAGS
|
Chris@42
|
734 HAVE_AVX512_FALSE
|
Chris@42
|
735 HAVE_AVX512_TRUE
|
Chris@42
|
736 HAVE_AVX2_FALSE
|
Chris@42
|
737 HAVE_AVX2_TRUE
|
Chris@42
|
738 HAVE_AVX_FALSE
|
Chris@42
|
739 HAVE_AVX_TRUE
|
Chris@42
|
740 HAVE_SSE2_FALSE
|
Chris@42
|
741 HAVE_SSE2_TRUE
|
Chris@42
|
742 CHECK_PL_OPTS
|
Chris@42
|
743 PRECISION
|
Chris@42
|
744 QUAD_FALSE
|
Chris@42
|
745 QUAD_TRUE
|
Chris@42
|
746 LDOUBLE_FALSE
|
Chris@42
|
747 LDOUBLE_TRUE
|
Chris@42
|
748 SINGLE_FALSE
|
Chris@42
|
749 SINGLE_TRUE
|
Chris@42
|
750 BUILD_DOC_FALSE
|
Chris@42
|
751 BUILD_DOC_TRUE
|
Chris@42
|
752 host_os
|
Chris@42
|
753 host_vendor
|
Chris@42
|
754 host_cpu
|
Chris@42
|
755 host
|
Chris@42
|
756 build_os
|
Chris@42
|
757 build_vendor
|
Chris@42
|
758 build_cpu
|
Chris@42
|
759 build
|
Chris@42
|
760 SHARED_VERSION_INFO
|
Chris@42
|
761 MAINT
|
Chris@42
|
762 MAINTAINER_MODE_FALSE
|
Chris@42
|
763 MAINTAINER_MODE_TRUE
|
Chris@42
|
764 AM_BACKSLASH
|
Chris@42
|
765 AM_DEFAULT_VERBOSITY
|
Chris@42
|
766 AM_DEFAULT_V
|
Chris@42
|
767 AM_V
|
Chris@42
|
768 am__untar
|
Chris@42
|
769 am__tar
|
Chris@42
|
770 AMTAR
|
Chris@42
|
771 am__leading_dot
|
Chris@42
|
772 SET_MAKE
|
Chris@42
|
773 AWK
|
Chris@42
|
774 mkdir_p
|
Chris@42
|
775 MKDIR_P
|
Chris@42
|
776 INSTALL_STRIP_PROGRAM
|
Chris@42
|
777 STRIP
|
Chris@42
|
778 install_sh
|
Chris@42
|
779 MAKEINFO
|
Chris@42
|
780 AUTOHEADER
|
Chris@42
|
781 AUTOMAKE
|
Chris@42
|
782 AUTOCONF
|
Chris@42
|
783 ACLOCAL
|
Chris@42
|
784 VERSION
|
Chris@42
|
785 PACKAGE
|
Chris@42
|
786 CYGPATH_W
|
Chris@42
|
787 am__isrc
|
Chris@42
|
788 INSTALL_DATA
|
Chris@42
|
789 INSTALL_SCRIPT
|
Chris@42
|
790 INSTALL_PROGRAM
|
Chris@42
|
791 target_alias
|
Chris@42
|
792 host_alias
|
Chris@42
|
793 build_alias
|
Chris@42
|
794 LIBS
|
Chris@42
|
795 ECHO_T
|
Chris@42
|
796 ECHO_N
|
Chris@42
|
797 ECHO_C
|
Chris@42
|
798 DEFS
|
Chris@42
|
799 mandir
|
Chris@42
|
800 localedir
|
Chris@42
|
801 libdir
|
Chris@42
|
802 psdir
|
Chris@42
|
803 pdfdir
|
Chris@42
|
804 dvidir
|
Chris@42
|
805 htmldir
|
Chris@42
|
806 infodir
|
Chris@42
|
807 docdir
|
Chris@42
|
808 oldincludedir
|
Chris@42
|
809 includedir
|
Chris@42
|
810 localstatedir
|
Chris@42
|
811 sharedstatedir
|
Chris@42
|
812 sysconfdir
|
Chris@42
|
813 datadir
|
Chris@42
|
814 datarootdir
|
Chris@42
|
815 libexecdir
|
Chris@42
|
816 sbindir
|
Chris@42
|
817 bindir
|
Chris@42
|
818 program_transform_name
|
Chris@42
|
819 prefix
|
Chris@42
|
820 exec_prefix
|
Chris@42
|
821 PACKAGE_URL
|
Chris@42
|
822 PACKAGE_BUGREPORT
|
Chris@42
|
823 PACKAGE_STRING
|
Chris@42
|
824 PACKAGE_VERSION
|
Chris@42
|
825 PACKAGE_TARNAME
|
Chris@42
|
826 PACKAGE_NAME
|
Chris@42
|
827 PATH_SEPARATOR
|
Chris@42
|
828 SHELL'
|
Chris@42
|
829 ac_subst_files=''
|
Chris@42
|
830 ac_user_opts='
|
Chris@42
|
831 enable_option_checking
|
Chris@42
|
832 enable_silent_rules
|
Chris@42
|
833 enable_maintainer_mode
|
Chris@42
|
834 enable_shared
|
Chris@42
|
835 enable_debug
|
Chris@42
|
836 enable_doc
|
Chris@42
|
837 enable_debug_malloc
|
Chris@42
|
838 enable_debug_alignment
|
Chris@42
|
839 enable_random_estimator
|
Chris@42
|
840 enable_alloca
|
Chris@42
|
841 enable_single
|
Chris@42
|
842 enable_float
|
Chris@42
|
843 enable_long_double
|
Chris@42
|
844 enable_quad_precision
|
Chris@42
|
845 enable_sse
|
Chris@42
|
846 enable_sse2
|
Chris@42
|
847 enable_avx
|
Chris@42
|
848 enable_avx2
|
Chris@42
|
849 enable_avx512
|
Chris@42
|
850 enable_avx_128_fma
|
Chris@42
|
851 enable_kcvi
|
Chris@42
|
852 enable_altivec
|
Chris@42
|
853 enable_vsx
|
Chris@42
|
854 enable_neon
|
Chris@42
|
855 enable_armv8cyclecounter
|
Chris@42
|
856 enable_generic_simd128
|
Chris@42
|
857 enable_generic_simd256
|
Chris@42
|
858 with_slow_timer
|
Chris@42
|
859 enable_mips_zbus_timer
|
Chris@42
|
860 with_our_malloc
|
Chris@42
|
861 with_our_malloc16
|
Chris@42
|
862 with_windows_f77_mangling
|
Chris@42
|
863 with_incoming_stack_boundary
|
Chris@42
|
864 enable_fma
|
Chris@42
|
865 enable_dependency_tracking
|
Chris@42
|
866 enable_static
|
Chris@42
|
867 with_pic
|
Chris@42
|
868 enable_fast_install
|
Chris@42
|
869 with_gnu_ld
|
Chris@42
|
870 with_sysroot
|
Chris@42
|
871 enable_libtool_lock
|
Chris@42
|
872 enable_mpi
|
Chris@42
|
873 enable_fortran
|
Chris@42
|
874 with_g77_wrappers
|
Chris@42
|
875 enable_openmp
|
Chris@42
|
876 enable_threads
|
Chris@42
|
877 with_combined_threads
|
Chris@42
|
878 '
|
Chris@42
|
879 ac_precious_vars='build_alias
|
Chris@42
|
880 host_alias
|
Chris@42
|
881 target_alias
|
Chris@42
|
882 CC
|
Chris@42
|
883 CFLAGS
|
Chris@42
|
884 LDFLAGS
|
Chris@42
|
885 LIBS
|
Chris@42
|
886 CPPFLAGS
|
Chris@42
|
887 CPP
|
Chris@42
|
888 MPICC
|
Chris@42
|
889 F77
|
Chris@42
|
890 FFLAGS'
|
Chris@42
|
891
|
Chris@42
|
892
|
Chris@42
|
893 # Initialize some variables set by options.
|
Chris@42
|
894 ac_init_help=
|
Chris@42
|
895 ac_init_version=false
|
Chris@42
|
896 ac_unrecognized_opts=
|
Chris@42
|
897 ac_unrecognized_sep=
|
Chris@42
|
898 # The variables have the same names as the options, with
|
Chris@42
|
899 # dashes changed to underlines.
|
Chris@42
|
900 cache_file=/dev/null
|
Chris@42
|
901 exec_prefix=NONE
|
Chris@42
|
902 no_create=
|
Chris@42
|
903 no_recursion=
|
Chris@42
|
904 prefix=NONE
|
Chris@42
|
905 program_prefix=NONE
|
Chris@42
|
906 program_suffix=NONE
|
Chris@42
|
907 program_transform_name=s,x,x,
|
Chris@42
|
908 silent=
|
Chris@42
|
909 site=
|
Chris@42
|
910 srcdir=
|
Chris@42
|
911 verbose=
|
Chris@42
|
912 x_includes=NONE
|
Chris@42
|
913 x_libraries=NONE
|
Chris@42
|
914
|
Chris@42
|
915 # Installation directory options.
|
Chris@42
|
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
|
Chris@42
|
917 # and all the variables that are supposed to be based on exec_prefix
|
Chris@42
|
918 # by default will actually change.
|
Chris@42
|
919 # Use braces instead of parens because sh, perl, etc. also accept them.
|
Chris@42
|
920 # (The list follows the same order as the GNU Coding Standards.)
|
Chris@42
|
921 bindir='${exec_prefix}/bin'
|
Chris@42
|
922 sbindir='${exec_prefix}/sbin'
|
Chris@42
|
923 libexecdir='${exec_prefix}/libexec'
|
Chris@42
|
924 datarootdir='${prefix}/share'
|
Chris@42
|
925 datadir='${datarootdir}'
|
Chris@42
|
926 sysconfdir='${prefix}/etc'
|
Chris@42
|
927 sharedstatedir='${prefix}/com'
|
Chris@42
|
928 localstatedir='${prefix}/var'
|
Chris@42
|
929 includedir='${prefix}/include'
|
Chris@42
|
930 oldincludedir='/usr/include'
|
Chris@42
|
931 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
Chris@42
|
932 infodir='${datarootdir}/info'
|
Chris@42
|
933 htmldir='${docdir}'
|
Chris@42
|
934 dvidir='${docdir}'
|
Chris@42
|
935 pdfdir='${docdir}'
|
Chris@42
|
936 psdir='${docdir}'
|
Chris@42
|
937 libdir='${exec_prefix}/lib'
|
Chris@42
|
938 localedir='${datarootdir}/locale'
|
Chris@42
|
939 mandir='${datarootdir}/man'
|
Chris@42
|
940
|
Chris@42
|
941 ac_prev=
|
Chris@42
|
942 ac_dashdash=
|
Chris@42
|
943 for ac_option
|
Chris@42
|
944 do
|
Chris@42
|
945 # If the previous option needs an argument, assign it.
|
Chris@42
|
946 if test -n "$ac_prev"; then
|
Chris@42
|
947 eval $ac_prev=\$ac_option
|
Chris@42
|
948 ac_prev=
|
Chris@42
|
949 continue
|
Chris@42
|
950 fi
|
Chris@42
|
951
|
Chris@42
|
952 case $ac_option in
|
Chris@42
|
953 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
Chris@42
|
954 *=) ac_optarg= ;;
|
Chris@42
|
955 *) ac_optarg=yes ;;
|
Chris@42
|
956 esac
|
Chris@42
|
957
|
Chris@42
|
958 # Accept the important Cygnus configure options, so we can diagnose typos.
|
Chris@42
|
959
|
Chris@42
|
960 case $ac_dashdash$ac_option in
|
Chris@42
|
961 --)
|
Chris@42
|
962 ac_dashdash=yes ;;
|
Chris@42
|
963
|
Chris@42
|
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
Chris@42
|
965 ac_prev=bindir ;;
|
Chris@42
|
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
Chris@42
|
967 bindir=$ac_optarg ;;
|
Chris@42
|
968
|
Chris@42
|
969 -build | --build | --buil | --bui | --bu)
|
Chris@42
|
970 ac_prev=build_alias ;;
|
Chris@42
|
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
Chris@42
|
972 build_alias=$ac_optarg ;;
|
Chris@42
|
973
|
Chris@42
|
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
|
Chris@42
|
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
Chris@42
|
976 ac_prev=cache_file ;;
|
Chris@42
|
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
Chris@42
|
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
Chris@42
|
979 cache_file=$ac_optarg ;;
|
Chris@42
|
980
|
Chris@42
|
981 --config-cache | -C)
|
Chris@42
|
982 cache_file=config.cache ;;
|
Chris@42
|
983
|
Chris@42
|
984 -datadir | --datadir | --datadi | --datad)
|
Chris@42
|
985 ac_prev=datadir ;;
|
Chris@42
|
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
Chris@42
|
987 datadir=$ac_optarg ;;
|
Chris@42
|
988
|
Chris@42
|
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
Chris@42
|
990 | --dataroo | --dataro | --datar)
|
Chris@42
|
991 ac_prev=datarootdir ;;
|
Chris@42
|
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
Chris@42
|
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
Chris@42
|
994 datarootdir=$ac_optarg ;;
|
Chris@42
|
995
|
Chris@42
|
996 -disable-* | --disable-*)
|
Chris@42
|
997 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
Chris@42
|
998 # Reject names that are not valid shell variable names.
|
Chris@42
|
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
Chris@42
|
1000 as_fn_error $? "invalid feature name: $ac_useropt"
|
Chris@42
|
1001 ac_useropt_orig=$ac_useropt
|
Chris@42
|
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
Chris@42
|
1003 case $ac_user_opts in
|
Chris@42
|
1004 *"
|
Chris@42
|
1005 "enable_$ac_useropt"
|
Chris@42
|
1006 "*) ;;
|
Chris@42
|
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
Chris@42
|
1008 ac_unrecognized_sep=', ';;
|
Chris@42
|
1009 esac
|
Chris@42
|
1010 eval enable_$ac_useropt=no ;;
|
Chris@42
|
1011
|
Chris@42
|
1012 -docdir | --docdir | --docdi | --doc | --do)
|
Chris@42
|
1013 ac_prev=docdir ;;
|
Chris@42
|
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
Chris@42
|
1015 docdir=$ac_optarg ;;
|
Chris@42
|
1016
|
Chris@42
|
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
Chris@42
|
1018 ac_prev=dvidir ;;
|
Chris@42
|
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
Chris@42
|
1020 dvidir=$ac_optarg ;;
|
Chris@42
|
1021
|
Chris@42
|
1022 -enable-* | --enable-*)
|
Chris@42
|
1023 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
Chris@42
|
1024 # Reject names that are not valid shell variable names.
|
Chris@42
|
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
Chris@42
|
1026 as_fn_error $? "invalid feature name: $ac_useropt"
|
Chris@42
|
1027 ac_useropt_orig=$ac_useropt
|
Chris@42
|
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
Chris@42
|
1029 case $ac_user_opts in
|
Chris@42
|
1030 *"
|
Chris@42
|
1031 "enable_$ac_useropt"
|
Chris@42
|
1032 "*) ;;
|
Chris@42
|
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
Chris@42
|
1034 ac_unrecognized_sep=', ';;
|
Chris@42
|
1035 esac
|
Chris@42
|
1036 eval enable_$ac_useropt=\$ac_optarg ;;
|
Chris@42
|
1037
|
Chris@42
|
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
Chris@42
|
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
Chris@42
|
1040 | --exec | --exe | --ex)
|
Chris@42
|
1041 ac_prev=exec_prefix ;;
|
Chris@42
|
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
Chris@42
|
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
Chris@42
|
1044 | --exec=* | --exe=* | --ex=*)
|
Chris@42
|
1045 exec_prefix=$ac_optarg ;;
|
Chris@42
|
1046
|
Chris@42
|
1047 -gas | --gas | --ga | --g)
|
Chris@42
|
1048 # Obsolete; use --with-gas.
|
Chris@42
|
1049 with_gas=yes ;;
|
Chris@42
|
1050
|
Chris@42
|
1051 -help | --help | --hel | --he | -h)
|
Chris@42
|
1052 ac_init_help=long ;;
|
Chris@42
|
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
Chris@42
|
1054 ac_init_help=recursive ;;
|
Chris@42
|
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
Chris@42
|
1056 ac_init_help=short ;;
|
Chris@42
|
1057
|
Chris@42
|
1058 -host | --host | --hos | --ho)
|
Chris@42
|
1059 ac_prev=host_alias ;;
|
Chris@42
|
1060 -host=* | --host=* | --hos=* | --ho=*)
|
Chris@42
|
1061 host_alias=$ac_optarg ;;
|
Chris@42
|
1062
|
Chris@42
|
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
Chris@42
|
1064 ac_prev=htmldir ;;
|
Chris@42
|
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
Chris@42
|
1066 | --ht=*)
|
Chris@42
|
1067 htmldir=$ac_optarg ;;
|
Chris@42
|
1068
|
Chris@42
|
1069 -includedir | --includedir | --includedi | --included | --include \
|
Chris@42
|
1070 | --includ | --inclu | --incl | --inc)
|
Chris@42
|
1071 ac_prev=includedir ;;
|
Chris@42
|
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
Chris@42
|
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
|
Chris@42
|
1074 includedir=$ac_optarg ;;
|
Chris@42
|
1075
|
Chris@42
|
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
|
Chris@42
|
1077 ac_prev=infodir ;;
|
Chris@42
|
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
Chris@42
|
1079 infodir=$ac_optarg ;;
|
Chris@42
|
1080
|
Chris@42
|
1081 -libdir | --libdir | --libdi | --libd)
|
Chris@42
|
1082 ac_prev=libdir ;;
|
Chris@42
|
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
Chris@42
|
1084 libdir=$ac_optarg ;;
|
Chris@42
|
1085
|
Chris@42
|
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
Chris@42
|
1087 | --libexe | --libex | --libe)
|
Chris@42
|
1088 ac_prev=libexecdir ;;
|
Chris@42
|
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
Chris@42
|
1090 | --libexe=* | --libex=* | --libe=*)
|
Chris@42
|
1091 libexecdir=$ac_optarg ;;
|
Chris@42
|
1092
|
Chris@42
|
1093 -localedir | --localedir | --localedi | --localed | --locale)
|
Chris@42
|
1094 ac_prev=localedir ;;
|
Chris@42
|
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
Chris@42
|
1096 localedir=$ac_optarg ;;
|
Chris@42
|
1097
|
Chris@42
|
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
|
Chris@42
|
1099 | --localstate | --localstat | --localsta | --localst | --locals)
|
Chris@42
|
1100 ac_prev=localstatedir ;;
|
Chris@42
|
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
Chris@42
|
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
Chris@42
|
1103 localstatedir=$ac_optarg ;;
|
Chris@42
|
1104
|
Chris@42
|
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
Chris@42
|
1106 ac_prev=mandir ;;
|
Chris@42
|
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
Chris@42
|
1108 mandir=$ac_optarg ;;
|
Chris@42
|
1109
|
Chris@42
|
1110 -nfp | --nfp | --nf)
|
Chris@42
|
1111 # Obsolete; use --without-fp.
|
Chris@42
|
1112 with_fp=no ;;
|
Chris@42
|
1113
|
Chris@42
|
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
Chris@42
|
1115 | --no-cr | --no-c | -n)
|
Chris@42
|
1116 no_create=yes ;;
|
Chris@42
|
1117
|
Chris@42
|
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
Chris@42
|
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
Chris@42
|
1120 no_recursion=yes ;;
|
Chris@42
|
1121
|
Chris@42
|
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
Chris@42
|
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
Chris@42
|
1124 | --oldin | --oldi | --old | --ol | --o)
|
Chris@42
|
1125 ac_prev=oldincludedir ;;
|
Chris@42
|
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
Chris@42
|
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
Chris@42
|
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
Chris@42
|
1129 oldincludedir=$ac_optarg ;;
|
Chris@42
|
1130
|
Chris@42
|
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
Chris@42
|
1132 ac_prev=prefix ;;
|
Chris@42
|
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
Chris@42
|
1134 prefix=$ac_optarg ;;
|
Chris@42
|
1135
|
Chris@42
|
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
Chris@42
|
1137 | --program-pre | --program-pr | --program-p)
|
Chris@42
|
1138 ac_prev=program_prefix ;;
|
Chris@42
|
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
Chris@42
|
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
Chris@42
|
1141 program_prefix=$ac_optarg ;;
|
Chris@42
|
1142
|
Chris@42
|
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
Chris@42
|
1144 | --program-suf | --program-su | --program-s)
|
Chris@42
|
1145 ac_prev=program_suffix ;;
|
Chris@42
|
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
Chris@42
|
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
Chris@42
|
1148 program_suffix=$ac_optarg ;;
|
Chris@42
|
1149
|
Chris@42
|
1150 -program-transform-name | --program-transform-name \
|
Chris@42
|
1151 | --program-transform-nam | --program-transform-na \
|
Chris@42
|
1152 | --program-transform-n | --program-transform- \
|
Chris@42
|
1153 | --program-transform | --program-transfor \
|
Chris@42
|
1154 | --program-transfo | --program-transf \
|
Chris@42
|
1155 | --program-trans | --program-tran \
|
Chris@42
|
1156 | --progr-tra | --program-tr | --program-t)
|
Chris@42
|
1157 ac_prev=program_transform_name ;;
|
Chris@42
|
1158 -program-transform-name=* | --program-transform-name=* \
|
Chris@42
|
1159 | --program-transform-nam=* | --program-transform-na=* \
|
Chris@42
|
1160 | --program-transform-n=* | --program-transform-=* \
|
Chris@42
|
1161 | --program-transform=* | --program-transfor=* \
|
Chris@42
|
1162 | --program-transfo=* | --program-transf=* \
|
Chris@42
|
1163 | --program-trans=* | --program-tran=* \
|
Chris@42
|
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
|
Chris@42
|
1165 program_transform_name=$ac_optarg ;;
|
Chris@42
|
1166
|
Chris@42
|
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
Chris@42
|
1168 ac_prev=pdfdir ;;
|
Chris@42
|
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
Chris@42
|
1170 pdfdir=$ac_optarg ;;
|
Chris@42
|
1171
|
Chris@42
|
1172 -psdir | --psdir | --psdi | --psd | --ps)
|
Chris@42
|
1173 ac_prev=psdir ;;
|
Chris@42
|
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
Chris@42
|
1175 psdir=$ac_optarg ;;
|
Chris@42
|
1176
|
Chris@42
|
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
Chris@42
|
1178 | -silent | --silent | --silen | --sile | --sil)
|
Chris@42
|
1179 silent=yes ;;
|
Chris@42
|
1180
|
Chris@42
|
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
Chris@42
|
1182 ac_prev=sbindir ;;
|
Chris@42
|
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
Chris@42
|
1184 | --sbi=* | --sb=*)
|
Chris@42
|
1185 sbindir=$ac_optarg ;;
|
Chris@42
|
1186
|
Chris@42
|
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
Chris@42
|
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
Chris@42
|
1189 | --sharedst | --shareds | --shared | --share | --shar \
|
Chris@42
|
1190 | --sha | --sh)
|
Chris@42
|
1191 ac_prev=sharedstatedir ;;
|
Chris@42
|
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
Chris@42
|
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
Chris@42
|
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
Chris@42
|
1195 | --sha=* | --sh=*)
|
Chris@42
|
1196 sharedstatedir=$ac_optarg ;;
|
Chris@42
|
1197
|
Chris@42
|
1198 -site | --site | --sit)
|
Chris@42
|
1199 ac_prev=site ;;
|
Chris@42
|
1200 -site=* | --site=* | --sit=*)
|
Chris@42
|
1201 site=$ac_optarg ;;
|
Chris@42
|
1202
|
Chris@42
|
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
Chris@42
|
1204 ac_prev=srcdir ;;
|
Chris@42
|
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
Chris@42
|
1206 srcdir=$ac_optarg ;;
|
Chris@42
|
1207
|
Chris@42
|
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
Chris@42
|
1209 | --syscon | --sysco | --sysc | --sys | --sy)
|
Chris@42
|
1210 ac_prev=sysconfdir ;;
|
Chris@42
|
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
Chris@42
|
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
Chris@42
|
1213 sysconfdir=$ac_optarg ;;
|
Chris@42
|
1214
|
Chris@42
|
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
|
Chris@42
|
1216 ac_prev=target_alias ;;
|
Chris@42
|
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
Chris@42
|
1218 target_alias=$ac_optarg ;;
|
Chris@42
|
1219
|
Chris@42
|
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
Chris@42
|
1221 verbose=yes ;;
|
Chris@42
|
1222
|
Chris@42
|
1223 -version | --version | --versio | --versi | --vers | -V)
|
Chris@42
|
1224 ac_init_version=: ;;
|
Chris@42
|
1225
|
Chris@42
|
1226 -with-* | --with-*)
|
Chris@42
|
1227 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
Chris@42
|
1228 # Reject names that are not valid shell variable names.
|
Chris@42
|
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
Chris@42
|
1230 as_fn_error $? "invalid package name: $ac_useropt"
|
Chris@42
|
1231 ac_useropt_orig=$ac_useropt
|
Chris@42
|
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
Chris@42
|
1233 case $ac_user_opts in
|
Chris@42
|
1234 *"
|
Chris@42
|
1235 "with_$ac_useropt"
|
Chris@42
|
1236 "*) ;;
|
Chris@42
|
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
Chris@42
|
1238 ac_unrecognized_sep=', ';;
|
Chris@42
|
1239 esac
|
Chris@42
|
1240 eval with_$ac_useropt=\$ac_optarg ;;
|
Chris@42
|
1241
|
Chris@42
|
1242 -without-* | --without-*)
|
Chris@42
|
1243 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
Chris@42
|
1244 # Reject names that are not valid shell variable names.
|
Chris@42
|
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
Chris@42
|
1246 as_fn_error $? "invalid package name: $ac_useropt"
|
Chris@42
|
1247 ac_useropt_orig=$ac_useropt
|
Chris@42
|
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
Chris@42
|
1249 case $ac_user_opts in
|
Chris@42
|
1250 *"
|
Chris@42
|
1251 "with_$ac_useropt"
|
Chris@42
|
1252 "*) ;;
|
Chris@42
|
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
Chris@42
|
1254 ac_unrecognized_sep=', ';;
|
Chris@42
|
1255 esac
|
Chris@42
|
1256 eval with_$ac_useropt=no ;;
|
Chris@42
|
1257
|
Chris@42
|
1258 --x)
|
Chris@42
|
1259 # Obsolete; use --with-x.
|
Chris@42
|
1260 with_x=yes ;;
|
Chris@42
|
1261
|
Chris@42
|
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
Chris@42
|
1263 | --x-incl | --x-inc | --x-in | --x-i)
|
Chris@42
|
1264 ac_prev=x_includes ;;
|
Chris@42
|
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
Chris@42
|
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
Chris@42
|
1267 x_includes=$ac_optarg ;;
|
Chris@42
|
1268
|
Chris@42
|
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
Chris@42
|
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
Chris@42
|
1271 ac_prev=x_libraries ;;
|
Chris@42
|
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
Chris@42
|
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
Chris@42
|
1274 x_libraries=$ac_optarg ;;
|
Chris@42
|
1275
|
Chris@42
|
1276 -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
Chris@42
|
1277 Try \`$0 --help' for more information"
|
Chris@42
|
1278 ;;
|
Chris@42
|
1279
|
Chris@42
|
1280 *=*)
|
Chris@42
|
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
Chris@42
|
1282 # Reject names that are not valid shell variable names.
|
Chris@42
|
1283 case $ac_envvar in #(
|
Chris@42
|
1284 '' | [0-9]* | *[!_$as_cr_alnum]* )
|
Chris@42
|
1285 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
Chris@42
|
1286 esac
|
Chris@42
|
1287 eval $ac_envvar=\$ac_optarg
|
Chris@42
|
1288 export $ac_envvar ;;
|
Chris@42
|
1289
|
Chris@42
|
1290 *)
|
Chris@42
|
1291 # FIXME: should be removed in autoconf 3.0.
|
Chris@42
|
1292 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
Chris@42
|
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
Chris@42
|
1294 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
Chris@42
|
1295 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
Chris@42
|
1296 ;;
|
Chris@42
|
1297
|
Chris@42
|
1298 esac
|
Chris@42
|
1299 done
|
Chris@42
|
1300
|
Chris@42
|
1301 if test -n "$ac_prev"; then
|
Chris@42
|
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
Chris@42
|
1303 as_fn_error $? "missing argument to $ac_option"
|
Chris@42
|
1304 fi
|
Chris@42
|
1305
|
Chris@42
|
1306 if test -n "$ac_unrecognized_opts"; then
|
Chris@42
|
1307 case $enable_option_checking in
|
Chris@42
|
1308 no) ;;
|
Chris@42
|
1309 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
Chris@42
|
1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
Chris@42
|
1311 esac
|
Chris@42
|
1312 fi
|
Chris@42
|
1313
|
Chris@42
|
1314 # Check all directory arguments for consistency.
|
Chris@42
|
1315 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
Chris@42
|
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
|
Chris@42
|
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
Chris@42
|
1318 libdir localedir mandir
|
Chris@42
|
1319 do
|
Chris@42
|
1320 eval ac_val=\$$ac_var
|
Chris@42
|
1321 # Remove trailing slashes.
|
Chris@42
|
1322 case $ac_val in
|
Chris@42
|
1323 */ )
|
Chris@42
|
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
Chris@42
|
1325 eval $ac_var=\$ac_val;;
|
Chris@42
|
1326 esac
|
Chris@42
|
1327 # Be sure to have absolute directory names.
|
Chris@42
|
1328 case $ac_val in
|
Chris@42
|
1329 [\\/$]* | ?:[\\/]* ) continue;;
|
Chris@42
|
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
Chris@42
|
1331 esac
|
Chris@42
|
1332 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
Chris@42
|
1333 done
|
Chris@42
|
1334
|
Chris@42
|
1335 # There might be people who depend on the old broken behavior: `$host'
|
Chris@42
|
1336 # used to hold the argument of --host etc.
|
Chris@42
|
1337 # FIXME: To remove some day.
|
Chris@42
|
1338 build=$build_alias
|
Chris@42
|
1339 host=$host_alias
|
Chris@42
|
1340 target=$target_alias
|
Chris@42
|
1341
|
Chris@42
|
1342 # FIXME: To remove some day.
|
Chris@42
|
1343 if test "x$host_alias" != x; then
|
Chris@42
|
1344 if test "x$build_alias" = x; then
|
Chris@42
|
1345 cross_compiling=maybe
|
Chris@42
|
1346 elif test "x$build_alias" != "x$host_alias"; then
|
Chris@42
|
1347 cross_compiling=yes
|
Chris@42
|
1348 fi
|
Chris@42
|
1349 fi
|
Chris@42
|
1350
|
Chris@42
|
1351 ac_tool_prefix=
|
Chris@42
|
1352 test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
Chris@42
|
1353
|
Chris@42
|
1354 test "$silent" = yes && exec 6>/dev/null
|
Chris@42
|
1355
|
Chris@42
|
1356
|
Chris@42
|
1357 ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
Chris@42
|
1358 ac_ls_di=`ls -di .` &&
|
Chris@42
|
1359 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
Chris@42
|
1360 as_fn_error $? "working directory cannot be determined"
|
Chris@42
|
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
Chris@42
|
1362 as_fn_error $? "pwd does not report name of working directory"
|
Chris@42
|
1363
|
Chris@42
|
1364
|
Chris@42
|
1365 # Find the source files, if location was not specified.
|
Chris@42
|
1366 if test -z "$srcdir"; then
|
Chris@42
|
1367 ac_srcdir_defaulted=yes
|
Chris@42
|
1368 # Try the directory containing this script, then the parent directory.
|
Chris@42
|
1369 ac_confdir=`$as_dirname -- "$as_myself" ||
|
Chris@42
|
1370 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
Chris@42
|
1371 X"$as_myself" : 'X\(//\)[^/]' \| \
|
Chris@42
|
1372 X"$as_myself" : 'X\(//\)$' \| \
|
Chris@42
|
1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
Chris@42
|
1374 $as_echo X"$as_myself" |
|
Chris@42
|
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
Chris@42
|
1376 s//\1/
|
Chris@42
|
1377 q
|
Chris@42
|
1378 }
|
Chris@42
|
1379 /^X\(\/\/\)[^/].*/{
|
Chris@42
|
1380 s//\1/
|
Chris@42
|
1381 q
|
Chris@42
|
1382 }
|
Chris@42
|
1383 /^X\(\/\/\)$/{
|
Chris@42
|
1384 s//\1/
|
Chris@42
|
1385 q
|
Chris@42
|
1386 }
|
Chris@42
|
1387 /^X\(\/\).*/{
|
Chris@42
|
1388 s//\1/
|
Chris@42
|
1389 q
|
Chris@42
|
1390 }
|
Chris@42
|
1391 s/.*/./; q'`
|
Chris@42
|
1392 srcdir=$ac_confdir
|
Chris@42
|
1393 if test ! -r "$srcdir/$ac_unique_file"; then
|
Chris@42
|
1394 srcdir=..
|
Chris@42
|
1395 fi
|
Chris@42
|
1396 else
|
Chris@42
|
1397 ac_srcdir_defaulted=no
|
Chris@42
|
1398 fi
|
Chris@42
|
1399 if test ! -r "$srcdir/$ac_unique_file"; then
|
Chris@42
|
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
Chris@42
|
1401 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
Chris@42
|
1402 fi
|
Chris@42
|
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
Chris@42
|
1404 ac_abs_confdir=`(
|
Chris@42
|
1405 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
Chris@42
|
1406 pwd)`
|
Chris@42
|
1407 # When building in place, set srcdir=.
|
Chris@42
|
1408 if test "$ac_abs_confdir" = "$ac_pwd"; then
|
Chris@42
|
1409 srcdir=.
|
Chris@42
|
1410 fi
|
Chris@42
|
1411 # Remove unnecessary trailing slashes from srcdir.
|
Chris@42
|
1412 # Double slashes in file names in object file debugging info
|
Chris@42
|
1413 # mess up M-x gdb in Emacs.
|
Chris@42
|
1414 case $srcdir in
|
Chris@42
|
1415 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
Chris@42
|
1416 esac
|
Chris@42
|
1417 for ac_var in $ac_precious_vars; do
|
Chris@42
|
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
Chris@42
|
1419 eval ac_env_${ac_var}_value=\$${ac_var}
|
Chris@42
|
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
Chris@42
|
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
Chris@42
|
1422 done
|
Chris@42
|
1423
|
Chris@42
|
1424 #
|
Chris@42
|
1425 # Report the --help message.
|
Chris@42
|
1426 #
|
Chris@42
|
1427 if test "$ac_init_help" = "long"; then
|
Chris@42
|
1428 # Omit some internal or obsolete options to make the list less imposing.
|
Chris@42
|
1429 # This message is too long to be a string in the A/UX 3.1 sh.
|
Chris@42
|
1430 cat <<_ACEOF
|
Chris@42
|
1431 \`configure' configures fftw 3.3.5 to adapt to many kinds of systems.
|
Chris@42
|
1432
|
Chris@42
|
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
|
Chris@42
|
1434
|
Chris@42
|
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
Chris@42
|
1436 VAR=VALUE. See below for descriptions of some of the useful variables.
|
Chris@42
|
1437
|
Chris@42
|
1438 Defaults for the options are specified in brackets.
|
Chris@42
|
1439
|
Chris@42
|
1440 Configuration:
|
Chris@42
|
1441 -h, --help display this help and exit
|
Chris@42
|
1442 --help=short display options specific to this package
|
Chris@42
|
1443 --help=recursive display the short help of all the included packages
|
Chris@42
|
1444 -V, --version display version information and exit
|
Chris@42
|
1445 -q, --quiet, --silent do not print \`checking ...' messages
|
Chris@42
|
1446 --cache-file=FILE cache test results in FILE [disabled]
|
Chris@42
|
1447 -C, --config-cache alias for \`--cache-file=config.cache'
|
Chris@42
|
1448 -n, --no-create do not create output files
|
Chris@42
|
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
Chris@42
|
1450
|
Chris@42
|
1451 Installation directories:
|
Chris@42
|
1452 --prefix=PREFIX install architecture-independent files in PREFIX
|
Chris@42
|
1453 [$ac_default_prefix]
|
Chris@42
|
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
Chris@42
|
1455 [PREFIX]
|
Chris@42
|
1456
|
Chris@42
|
1457 By default, \`make install' will install all the files in
|
Chris@42
|
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
Chris@42
|
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
Chris@42
|
1460 for instance \`--prefix=\$HOME'.
|
Chris@42
|
1461
|
Chris@42
|
1462 For better control, use the options below.
|
Chris@42
|
1463
|
Chris@42
|
1464 Fine tuning of the installation directories:
|
Chris@42
|
1465 --bindir=DIR user executables [EPREFIX/bin]
|
Chris@42
|
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
|
Chris@42
|
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
|
Chris@42
|
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
Chris@42
|
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
Chris@42
|
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
Chris@42
|
1471 --libdir=DIR object code libraries [EPREFIX/lib]
|
Chris@42
|
1472 --includedir=DIR C header files [PREFIX/include]
|
Chris@42
|
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
Chris@42
|
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
Chris@42
|
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
Chris@42
|
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
|
Chris@42
|
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
Chris@42
|
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
|
Chris@42
|
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/fftw]
|
Chris@42
|
1480 --htmldir=DIR html documentation [DOCDIR]
|
Chris@42
|
1481 --dvidir=DIR dvi documentation [DOCDIR]
|
Chris@42
|
1482 --pdfdir=DIR pdf documentation [DOCDIR]
|
Chris@42
|
1483 --psdir=DIR ps documentation [DOCDIR]
|
Chris@42
|
1484 _ACEOF
|
Chris@42
|
1485
|
Chris@42
|
1486 cat <<\_ACEOF
|
Chris@42
|
1487
|
Chris@42
|
1488 Program names:
|
Chris@42
|
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
|
Chris@42
|
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
|
Chris@42
|
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
Chris@42
|
1492
|
Chris@42
|
1493 System types:
|
Chris@42
|
1494 --build=BUILD configure for building on BUILD [guessed]
|
Chris@42
|
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
Chris@42
|
1496 _ACEOF
|
Chris@42
|
1497 fi
|
Chris@42
|
1498
|
Chris@42
|
1499 if test -n "$ac_init_help"; then
|
Chris@42
|
1500 case $ac_init_help in
|
Chris@42
|
1501 short | recursive ) echo "Configuration of fftw 3.3.5:";;
|
Chris@42
|
1502 esac
|
Chris@42
|
1503 cat <<\_ACEOF
|
Chris@42
|
1504
|
Chris@42
|
1505 Optional Features:
|
Chris@42
|
1506 --disable-option-checking ignore unrecognized --enable/--with options
|
Chris@42
|
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
Chris@42
|
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
Chris@42
|
1509 --enable-silent-rules less verbose build output (undo: "make V=1")
|
Chris@42
|
1510 --disable-silent-rules verbose build output (undo: "make V=0")
|
Chris@42
|
1511 --enable-maintainer-mode
|
Chris@42
|
1512 enable make rules and dependencies not useful (and
|
Chris@42
|
1513 sometimes confusing) to the casual installer
|
Chris@42
|
1514 --enable-shared[=PKGS] build shared libraries [default=no]
|
Chris@42
|
1515 --enable-debug compile fftw with extra runtime checks for debugging
|
Chris@42
|
1516 --disable-doc disable building the documentation
|
Chris@42
|
1517 --enable-debug-malloc enable malloc debugging version
|
Chris@42
|
1518 --enable-debug-alignment
|
Chris@42
|
1519 enable alignment debugging hacks
|
Chris@42
|
1520 --enable-random-estimator
|
Chris@42
|
1521 enable pseudorandom estimator (debugging hack)
|
Chris@42
|
1522 --disable-alloca disable use of the alloca() function (may be broken
|
Chris@42
|
1523 on mingw64)
|
Chris@42
|
1524 --enable-single compile fftw in single precision
|
Chris@42
|
1525 --enable-float synonym for --enable-single
|
Chris@42
|
1526 --enable-long-double compile fftw in long-double precision
|
Chris@42
|
1527 --enable-quad-precision compile fftw in quadruple precision if available
|
Chris@42
|
1528 --enable-sse enable SSE optimizations
|
Chris@42
|
1529 --enable-sse2 enable SSE/SSE2 optimizations
|
Chris@42
|
1530 --enable-avx enable AVX optimizations
|
Chris@42
|
1531 --enable-avx2 enable AVX2 optimizations
|
Chris@42
|
1532 --enable-avx512 enable AVX512 optimizations
|
Chris@42
|
1533 --enable-avx-128-fma enable AVX128/FMA optimizations
|
Chris@42
|
1534 --enable-kcvi enable Knights Corner vector instructions
|
Chris@42
|
1535 optimizations
|
Chris@42
|
1536 --enable-altivec enable Altivec optimizations
|
Chris@42
|
1537 --enable-vsx enable IBM VSX optimizations
|
Chris@42
|
1538 --enable-neon enable ARM NEON optimizations
|
Chris@42
|
1539 --enable-armv8cyclecounter
|
Chris@42
|
1540 enable the cycle counter on ARMv8 ; require enabling
|
Chris@42
|
1541 in kernel mode, see
|
Chris@42
|
1542 <https://github.com/rdolbeau/enable_arm_pmu>
|
Chris@42
|
1543 --enable-generic-simd128
|
Chris@42
|
1544 enable generic (gcc) 128-bit SIMD optimizations
|
Chris@42
|
1545 --enable-generic-simd256
|
Chris@42
|
1546 enable generic (gcc) 256-bit SIMD optimizations
|
Chris@42
|
1547 --enable-mips-zbus-timer
|
Chris@42
|
1548 use MIPS ZBus cycle-counter
|
Chris@42
|
1549 --enable-fma enable optimizations for machines with fused
|
Chris@42
|
1550 multiply-add
|
Chris@42
|
1551 --enable-dependency-tracking
|
Chris@42
|
1552 do not reject slow dependency extractors
|
Chris@42
|
1553 --disable-dependency-tracking
|
Chris@42
|
1554 speeds up one-time build
|
Chris@42
|
1555 --enable-static[=PKGS] build static libraries [default=yes]
|
Chris@42
|
1556 --enable-fast-install[=PKGS]
|
Chris@42
|
1557 optimize for fast installation [default=yes]
|
Chris@42
|
1558 --disable-libtool-lock avoid locking (might break parallel builds)
|
Chris@42
|
1559 --enable-mpi compile FFTW MPI library
|
Chris@42
|
1560 --disable-fortran don't include Fortran-callable wrappers
|
Chris@42
|
1561 --enable-openmp use OpenMP directives for parallelism
|
Chris@42
|
1562 --enable-threads compile FFTW SMP threads library
|
Chris@42
|
1563
|
Chris@42
|
1564 Optional Packages:
|
Chris@42
|
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
Chris@42
|
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
Chris@42
|
1567 --with-slow-timer use low-precision timers (SLOW)
|
Chris@42
|
1568 --with-our-malloc use our aligned malloc (helpful for Win32)
|
Chris@42
|
1569 --with-our-malloc16 Obsolete alias for --with-our-malloc16
|
Chris@42
|
1570 --with-windows-f77-mangling
|
Chris@42
|
1571 use common Win32 Fortran interface styles
|
Chris@42
|
1572 --with-incoming-stack-boundary=X
|
Chris@42
|
1573 Assume that stack is aligned to (1<<X) bytes
|
Chris@42
|
1574 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
|
Chris@42
|
1575 both]
|
Chris@42
|
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
Chris@42
|
1577 --with-sysroot=DIR Search for dependent libraries within DIR
|
Chris@42
|
1578 (or the compiler's sysroot if not specified).
|
Chris@42
|
1579 --with-g77-wrappers force inclusion of g77-compatible wrappers in
|
Chris@42
|
1580 addition to any other Fortran compiler that is
|
Chris@42
|
1581 detected
|
Chris@42
|
1582 --with-combined-threads combine threads into main libfftw3
|
Chris@42
|
1583
|
Chris@42
|
1584 Some influential environment variables:
|
Chris@42
|
1585 CC C compiler command
|
Chris@42
|
1586 CFLAGS C compiler flags
|
Chris@42
|
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
Chris@42
|
1588 nonstandard directory <lib dir>
|
Chris@42
|
1589 LIBS libraries to pass to the linker, e.g. -l<library>
|
Chris@42
|
1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
Chris@42
|
1591 you have headers in a nonstandard directory <include dir>
|
Chris@42
|
1592 CPP C preprocessor
|
Chris@42
|
1593 MPICC MPI C compiler command
|
Chris@42
|
1594 F77 Fortran 77 compiler command
|
Chris@42
|
1595 FFLAGS Fortran 77 compiler flags
|
Chris@42
|
1596
|
Chris@42
|
1597 Use these variables to override the choices made by `configure' or to help
|
Chris@42
|
1598 it to find libraries and programs with nonstandard names/locations.
|
Chris@42
|
1599
|
Chris@42
|
1600 Report bugs to <fftw@fftw.org>.
|
Chris@42
|
1601 _ACEOF
|
Chris@42
|
1602 ac_status=$?
|
Chris@42
|
1603 fi
|
Chris@42
|
1604
|
Chris@42
|
1605 if test "$ac_init_help" = "recursive"; then
|
Chris@42
|
1606 # If there are subdirs, report their specific --help.
|
Chris@42
|
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
Chris@42
|
1608 test -d "$ac_dir" ||
|
Chris@42
|
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
Chris@42
|
1610 continue
|
Chris@42
|
1611 ac_builddir=.
|
Chris@42
|
1612
|
Chris@42
|
1613 case "$ac_dir" in
|
Chris@42
|
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
Chris@42
|
1615 *)
|
Chris@42
|
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
Chris@42
|
1617 # A ".." for each directory in $ac_dir_suffix.
|
Chris@42
|
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
Chris@42
|
1619 case $ac_top_builddir_sub in
|
Chris@42
|
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
Chris@42
|
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
Chris@42
|
1622 esac ;;
|
Chris@42
|
1623 esac
|
Chris@42
|
1624 ac_abs_top_builddir=$ac_pwd
|
Chris@42
|
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
Chris@42
|
1626 # for backward compatibility:
|
Chris@42
|
1627 ac_top_builddir=$ac_top_build_prefix
|
Chris@42
|
1628
|
Chris@42
|
1629 case $srcdir in
|
Chris@42
|
1630 .) # We are building in place.
|
Chris@42
|
1631 ac_srcdir=.
|
Chris@42
|
1632 ac_top_srcdir=$ac_top_builddir_sub
|
Chris@42
|
1633 ac_abs_top_srcdir=$ac_pwd ;;
|
Chris@42
|
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
|
Chris@42
|
1635 ac_srcdir=$srcdir$ac_dir_suffix;
|
Chris@42
|
1636 ac_top_srcdir=$srcdir
|
Chris@42
|
1637 ac_abs_top_srcdir=$srcdir ;;
|
Chris@42
|
1638 *) # Relative name.
|
Chris@42
|
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
Chris@42
|
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
Chris@42
|
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
Chris@42
|
1642 esac
|
Chris@42
|
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
Chris@42
|
1644
|
Chris@42
|
1645 cd "$ac_dir" || { ac_status=$?; continue; }
|
Chris@42
|
1646 # Check for guested configure.
|
Chris@42
|
1647 if test -f "$ac_srcdir/configure.gnu"; then
|
Chris@42
|
1648 echo &&
|
Chris@42
|
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
Chris@42
|
1650 elif test -f "$ac_srcdir/configure"; then
|
Chris@42
|
1651 echo &&
|
Chris@42
|
1652 $SHELL "$ac_srcdir/configure" --help=recursive
|
Chris@42
|
1653 else
|
Chris@42
|
1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
Chris@42
|
1655 fi || ac_status=$?
|
Chris@42
|
1656 cd "$ac_pwd" || { ac_status=$?; break; }
|
Chris@42
|
1657 done
|
Chris@42
|
1658 fi
|
Chris@42
|
1659
|
Chris@42
|
1660 test -n "$ac_init_help" && exit $ac_status
|
Chris@42
|
1661 if $ac_init_version; then
|
Chris@42
|
1662 cat <<\_ACEOF
|
Chris@42
|
1663 fftw configure 3.3.5
|
Chris@42
|
1664 generated by GNU Autoconf 2.69
|
Chris@42
|
1665
|
Chris@42
|
1666 Copyright (C) 2012 Free Software Foundation, Inc.
|
Chris@42
|
1667 This configure script is free software; the Free Software Foundation
|
Chris@42
|
1668 gives unlimited permission to copy, distribute and modify it.
|
Chris@42
|
1669 _ACEOF
|
Chris@42
|
1670 exit
|
Chris@42
|
1671 fi
|
Chris@42
|
1672
|
Chris@42
|
1673 ## ------------------------ ##
|
Chris@42
|
1674 ## Autoconf initialization. ##
|
Chris@42
|
1675 ## ------------------------ ##
|
Chris@42
|
1676
|
Chris@42
|
1677 # ac_fn_c_try_compile LINENO
|
Chris@42
|
1678 # --------------------------
|
Chris@42
|
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
Chris@42
|
1680 ac_fn_c_try_compile ()
|
Chris@42
|
1681 {
|
Chris@42
|
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
1683 rm -f conftest.$ac_objext
|
Chris@42
|
1684 if { { ac_try="$ac_compile"
|
Chris@42
|
1685 case "(($ac_try" in
|
Chris@42
|
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
1687 *) ac_try_echo=$ac_try;;
|
Chris@42
|
1688 esac
|
Chris@42
|
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
1690 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
1691 (eval "$ac_compile") 2>conftest.err
|
Chris@42
|
1692 ac_status=$?
|
Chris@42
|
1693 if test -s conftest.err; then
|
Chris@42
|
1694 grep -v '^ *+' conftest.err >conftest.er1
|
Chris@42
|
1695 cat conftest.er1 >&5
|
Chris@42
|
1696 mv -f conftest.er1 conftest.err
|
Chris@42
|
1697 fi
|
Chris@42
|
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
1699 test $ac_status = 0; } && {
|
Chris@42
|
1700 test -z "$ac_c_werror_flag" ||
|
Chris@42
|
1701 test ! -s conftest.err
|
Chris@42
|
1702 } && test -s conftest.$ac_objext; then :
|
Chris@42
|
1703 ac_retval=0
|
Chris@42
|
1704 else
|
Chris@42
|
1705 $as_echo "$as_me: failed program was:" >&5
|
Chris@42
|
1706 sed 's/^/| /' conftest.$ac_ext >&5
|
Chris@42
|
1707
|
Chris@42
|
1708 ac_retval=1
|
Chris@42
|
1709 fi
|
Chris@42
|
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
1711 as_fn_set_status $ac_retval
|
Chris@42
|
1712
|
Chris@42
|
1713 } # ac_fn_c_try_compile
|
Chris@42
|
1714
|
Chris@42
|
1715 # ac_fn_c_try_link LINENO
|
Chris@42
|
1716 # -----------------------
|
Chris@42
|
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
|
Chris@42
|
1718 ac_fn_c_try_link ()
|
Chris@42
|
1719 {
|
Chris@42
|
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
1721 rm -f conftest.$ac_objext conftest$ac_exeext
|
Chris@42
|
1722 if { { ac_try="$ac_link"
|
Chris@42
|
1723 case "(($ac_try" in
|
Chris@42
|
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
1725 *) ac_try_echo=$ac_try;;
|
Chris@42
|
1726 esac
|
Chris@42
|
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
1728 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
1729 (eval "$ac_link") 2>conftest.err
|
Chris@42
|
1730 ac_status=$?
|
Chris@42
|
1731 if test -s conftest.err; then
|
Chris@42
|
1732 grep -v '^ *+' conftest.err >conftest.er1
|
Chris@42
|
1733 cat conftest.er1 >&5
|
Chris@42
|
1734 mv -f conftest.er1 conftest.err
|
Chris@42
|
1735 fi
|
Chris@42
|
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
1737 test $ac_status = 0; } && {
|
Chris@42
|
1738 test -z "$ac_c_werror_flag" ||
|
Chris@42
|
1739 test ! -s conftest.err
|
Chris@42
|
1740 } && test -s conftest$ac_exeext && {
|
Chris@42
|
1741 test "$cross_compiling" = yes ||
|
Chris@42
|
1742 test -x conftest$ac_exeext
|
Chris@42
|
1743 }; then :
|
Chris@42
|
1744 ac_retval=0
|
Chris@42
|
1745 else
|
Chris@42
|
1746 $as_echo "$as_me: failed program was:" >&5
|
Chris@42
|
1747 sed 's/^/| /' conftest.$ac_ext >&5
|
Chris@42
|
1748
|
Chris@42
|
1749 ac_retval=1
|
Chris@42
|
1750 fi
|
Chris@42
|
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
Chris@42
|
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
Chris@42
|
1753 # interfere with the next link command; also delete a directory that is
|
Chris@42
|
1754 # left behind by Apple's compiler. We do this before executing the actions.
|
Chris@42
|
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
Chris@42
|
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
1757 as_fn_set_status $ac_retval
|
Chris@42
|
1758
|
Chris@42
|
1759 } # ac_fn_c_try_link
|
Chris@42
|
1760
|
Chris@42
|
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
Chris@42
|
1762 # -------------------------------------------------------
|
Chris@42
|
1763 # Tests whether HEADER exists and can be compiled using the include files in
|
Chris@42
|
1764 # INCLUDES, setting the cache variable VAR accordingly.
|
Chris@42
|
1765 ac_fn_c_check_header_compile ()
|
Chris@42
|
1766 {
|
Chris@42
|
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
Chris@42
|
1769 $as_echo_n "checking for $2... " >&6; }
|
Chris@42
|
1770 if eval \${$3+:} false; then :
|
Chris@42
|
1771 $as_echo_n "(cached) " >&6
|
Chris@42
|
1772 else
|
Chris@42
|
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
1774 /* end confdefs.h. */
|
Chris@42
|
1775 $4
|
Chris@42
|
1776 #include <$2>
|
Chris@42
|
1777 _ACEOF
|
Chris@42
|
1778 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
1779 eval "$3=yes"
|
Chris@42
|
1780 else
|
Chris@42
|
1781 eval "$3=no"
|
Chris@42
|
1782 fi
|
Chris@42
|
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
1784 fi
|
Chris@42
|
1785 eval ac_res=\$$3
|
Chris@42
|
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
Chris@42
|
1787 $as_echo "$ac_res" >&6; }
|
Chris@42
|
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
1789
|
Chris@42
|
1790 } # ac_fn_c_check_header_compile
|
Chris@42
|
1791
|
Chris@42
|
1792 # ac_fn_c_try_cpp LINENO
|
Chris@42
|
1793 # ----------------------
|
Chris@42
|
1794 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
Chris@42
|
1795 ac_fn_c_try_cpp ()
|
Chris@42
|
1796 {
|
Chris@42
|
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
1798 if { { ac_try="$ac_cpp conftest.$ac_ext"
|
Chris@42
|
1799 case "(($ac_try" in
|
Chris@42
|
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
1801 *) ac_try_echo=$ac_try;;
|
Chris@42
|
1802 esac
|
Chris@42
|
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
1804 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
Chris@42
|
1806 ac_status=$?
|
Chris@42
|
1807 if test -s conftest.err; then
|
Chris@42
|
1808 grep -v '^ *+' conftest.err >conftest.er1
|
Chris@42
|
1809 cat conftest.er1 >&5
|
Chris@42
|
1810 mv -f conftest.er1 conftest.err
|
Chris@42
|
1811 fi
|
Chris@42
|
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
1813 test $ac_status = 0; } > conftest.i && {
|
Chris@42
|
1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
Chris@42
|
1815 test ! -s conftest.err
|
Chris@42
|
1816 }; then :
|
Chris@42
|
1817 ac_retval=0
|
Chris@42
|
1818 else
|
Chris@42
|
1819 $as_echo "$as_me: failed program was:" >&5
|
Chris@42
|
1820 sed 's/^/| /' conftest.$ac_ext >&5
|
Chris@42
|
1821
|
Chris@42
|
1822 ac_retval=1
|
Chris@42
|
1823 fi
|
Chris@42
|
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
1825 as_fn_set_status $ac_retval
|
Chris@42
|
1826
|
Chris@42
|
1827 } # ac_fn_c_try_cpp
|
Chris@42
|
1828
|
Chris@42
|
1829 # ac_fn_c_try_run LINENO
|
Chris@42
|
1830 # ----------------------
|
Chris@42
|
1831 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
Chris@42
|
1832 # that executables *can* be run.
|
Chris@42
|
1833 ac_fn_c_try_run ()
|
Chris@42
|
1834 {
|
Chris@42
|
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
1836 if { { ac_try="$ac_link"
|
Chris@42
|
1837 case "(($ac_try" in
|
Chris@42
|
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
1839 *) ac_try_echo=$ac_try;;
|
Chris@42
|
1840 esac
|
Chris@42
|
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
1842 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
1843 (eval "$ac_link") 2>&5
|
Chris@42
|
1844 ac_status=$?
|
Chris@42
|
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
1846 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
Chris@42
|
1847 { { case "(($ac_try" in
|
Chris@42
|
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
1849 *) ac_try_echo=$ac_try;;
|
Chris@42
|
1850 esac
|
Chris@42
|
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
1852 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
1853 (eval "$ac_try") 2>&5
|
Chris@42
|
1854 ac_status=$?
|
Chris@42
|
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
1856 test $ac_status = 0; }; }; then :
|
Chris@42
|
1857 ac_retval=0
|
Chris@42
|
1858 else
|
Chris@42
|
1859 $as_echo "$as_me: program exited with status $ac_status" >&5
|
Chris@42
|
1860 $as_echo "$as_me: failed program was:" >&5
|
Chris@42
|
1861 sed 's/^/| /' conftest.$ac_ext >&5
|
Chris@42
|
1862
|
Chris@42
|
1863 ac_retval=$ac_status
|
Chris@42
|
1864 fi
|
Chris@42
|
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
Chris@42
|
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
1867 as_fn_set_status $ac_retval
|
Chris@42
|
1868
|
Chris@42
|
1869 } # ac_fn_c_try_run
|
Chris@42
|
1870
|
Chris@42
|
1871 # ac_fn_c_check_func LINENO FUNC VAR
|
Chris@42
|
1872 # ----------------------------------
|
Chris@42
|
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
Chris@42
|
1874 ac_fn_c_check_func ()
|
Chris@42
|
1875 {
|
Chris@42
|
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
Chris@42
|
1878 $as_echo_n "checking for $2... " >&6; }
|
Chris@42
|
1879 if eval \${$3+:} false; then :
|
Chris@42
|
1880 $as_echo_n "(cached) " >&6
|
Chris@42
|
1881 else
|
Chris@42
|
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
1883 /* end confdefs.h. */
|
Chris@42
|
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
Chris@42
|
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
Chris@42
|
1886 #define $2 innocuous_$2
|
Chris@42
|
1887
|
Chris@42
|
1888 /* System header to define __stub macros and hopefully few prototypes,
|
Chris@42
|
1889 which can conflict with char $2 (); below.
|
Chris@42
|
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Chris@42
|
1891 <limits.h> exists even on freestanding compilers. */
|
Chris@42
|
1892
|
Chris@42
|
1893 #ifdef __STDC__
|
Chris@42
|
1894 # include <limits.h>
|
Chris@42
|
1895 #else
|
Chris@42
|
1896 # include <assert.h>
|
Chris@42
|
1897 #endif
|
Chris@42
|
1898
|
Chris@42
|
1899 #undef $2
|
Chris@42
|
1900
|
Chris@42
|
1901 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
1902 Use char because int might match the return type of a GCC
|
Chris@42
|
1903 builtin and then its argument prototype would still apply. */
|
Chris@42
|
1904 #ifdef __cplusplus
|
Chris@42
|
1905 extern "C"
|
Chris@42
|
1906 #endif
|
Chris@42
|
1907 char $2 ();
|
Chris@42
|
1908 /* The GNU C library defines this for functions which it implements
|
Chris@42
|
1909 to always fail with ENOSYS. Some functions are actually named
|
Chris@42
|
1910 something starting with __ and the normal name is an alias. */
|
Chris@42
|
1911 #if defined __stub_$2 || defined __stub___$2
|
Chris@42
|
1912 choke me
|
Chris@42
|
1913 #endif
|
Chris@42
|
1914
|
Chris@42
|
1915 int
|
Chris@42
|
1916 main ()
|
Chris@42
|
1917 {
|
Chris@42
|
1918 return $2 ();
|
Chris@42
|
1919 ;
|
Chris@42
|
1920 return 0;
|
Chris@42
|
1921 }
|
Chris@42
|
1922 _ACEOF
|
Chris@42
|
1923 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
1924 eval "$3=yes"
|
Chris@42
|
1925 else
|
Chris@42
|
1926 eval "$3=no"
|
Chris@42
|
1927 fi
|
Chris@42
|
1928 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
1929 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
1930 fi
|
Chris@42
|
1931 eval ac_res=\$$3
|
Chris@42
|
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
Chris@42
|
1933 $as_echo "$ac_res" >&6; }
|
Chris@42
|
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
1935
|
Chris@42
|
1936 } # ac_fn_c_check_func
|
Chris@42
|
1937
|
Chris@42
|
1938 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
Chris@42
|
1939 # --------------------------------------------
|
Chris@42
|
1940 # Tries to find the compile-time value of EXPR in a program that includes
|
Chris@42
|
1941 # INCLUDES, setting VAR accordingly. Returns whether the value could be
|
Chris@42
|
1942 # computed
|
Chris@42
|
1943 ac_fn_c_compute_int ()
|
Chris@42
|
1944 {
|
Chris@42
|
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
1946 if test "$cross_compiling" = yes; then
|
Chris@42
|
1947 # Depending upon the size, compute the lo and hi bounds.
|
Chris@42
|
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
1949 /* end confdefs.h. */
|
Chris@42
|
1950 $4
|
Chris@42
|
1951 int
|
Chris@42
|
1952 main ()
|
Chris@42
|
1953 {
|
Chris@42
|
1954 static int test_array [1 - 2 * !(($2) >= 0)];
|
Chris@42
|
1955 test_array [0] = 0;
|
Chris@42
|
1956 return test_array [0];
|
Chris@42
|
1957
|
Chris@42
|
1958 ;
|
Chris@42
|
1959 return 0;
|
Chris@42
|
1960 }
|
Chris@42
|
1961 _ACEOF
|
Chris@42
|
1962 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
1963 ac_lo=0 ac_mid=0
|
Chris@42
|
1964 while :; do
|
Chris@42
|
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
1966 /* end confdefs.h. */
|
Chris@42
|
1967 $4
|
Chris@42
|
1968 int
|
Chris@42
|
1969 main ()
|
Chris@42
|
1970 {
|
Chris@42
|
1971 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
Chris@42
|
1972 test_array [0] = 0;
|
Chris@42
|
1973 return test_array [0];
|
Chris@42
|
1974
|
Chris@42
|
1975 ;
|
Chris@42
|
1976 return 0;
|
Chris@42
|
1977 }
|
Chris@42
|
1978 _ACEOF
|
Chris@42
|
1979 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
1980 ac_hi=$ac_mid; break
|
Chris@42
|
1981 else
|
Chris@42
|
1982 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
Chris@42
|
1983 if test $ac_lo -le $ac_mid; then
|
Chris@42
|
1984 ac_lo= ac_hi=
|
Chris@42
|
1985 break
|
Chris@42
|
1986 fi
|
Chris@42
|
1987 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
Chris@42
|
1988 fi
|
Chris@42
|
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
1990 done
|
Chris@42
|
1991 else
|
Chris@42
|
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
1993 /* end confdefs.h. */
|
Chris@42
|
1994 $4
|
Chris@42
|
1995 int
|
Chris@42
|
1996 main ()
|
Chris@42
|
1997 {
|
Chris@42
|
1998 static int test_array [1 - 2 * !(($2) < 0)];
|
Chris@42
|
1999 test_array [0] = 0;
|
Chris@42
|
2000 return test_array [0];
|
Chris@42
|
2001
|
Chris@42
|
2002 ;
|
Chris@42
|
2003 return 0;
|
Chris@42
|
2004 }
|
Chris@42
|
2005 _ACEOF
|
Chris@42
|
2006 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
2007 ac_hi=-1 ac_mid=-1
|
Chris@42
|
2008 while :; do
|
Chris@42
|
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
2010 /* end confdefs.h. */
|
Chris@42
|
2011 $4
|
Chris@42
|
2012 int
|
Chris@42
|
2013 main ()
|
Chris@42
|
2014 {
|
Chris@42
|
2015 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
Chris@42
|
2016 test_array [0] = 0;
|
Chris@42
|
2017 return test_array [0];
|
Chris@42
|
2018
|
Chris@42
|
2019 ;
|
Chris@42
|
2020 return 0;
|
Chris@42
|
2021 }
|
Chris@42
|
2022 _ACEOF
|
Chris@42
|
2023 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
2024 ac_lo=$ac_mid; break
|
Chris@42
|
2025 else
|
Chris@42
|
2026 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
Chris@42
|
2027 if test $ac_mid -le $ac_hi; then
|
Chris@42
|
2028 ac_lo= ac_hi=
|
Chris@42
|
2029 break
|
Chris@42
|
2030 fi
|
Chris@42
|
2031 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
Chris@42
|
2032 fi
|
Chris@42
|
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
2034 done
|
Chris@42
|
2035 else
|
Chris@42
|
2036 ac_lo= ac_hi=
|
Chris@42
|
2037 fi
|
Chris@42
|
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
2039 fi
|
Chris@42
|
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
2041 # Binary search between lo and hi bounds.
|
Chris@42
|
2042 while test "x$ac_lo" != "x$ac_hi"; do
|
Chris@42
|
2043 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
Chris@42
|
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
2045 /* end confdefs.h. */
|
Chris@42
|
2046 $4
|
Chris@42
|
2047 int
|
Chris@42
|
2048 main ()
|
Chris@42
|
2049 {
|
Chris@42
|
2050 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
Chris@42
|
2051 test_array [0] = 0;
|
Chris@42
|
2052 return test_array [0];
|
Chris@42
|
2053
|
Chris@42
|
2054 ;
|
Chris@42
|
2055 return 0;
|
Chris@42
|
2056 }
|
Chris@42
|
2057 _ACEOF
|
Chris@42
|
2058 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
2059 ac_hi=$ac_mid
|
Chris@42
|
2060 else
|
Chris@42
|
2061 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
Chris@42
|
2062 fi
|
Chris@42
|
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
2064 done
|
Chris@42
|
2065 case $ac_lo in #((
|
Chris@42
|
2066 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
Chris@42
|
2067 '') ac_retval=1 ;;
|
Chris@42
|
2068 esac
|
Chris@42
|
2069 else
|
Chris@42
|
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
2071 /* end confdefs.h. */
|
Chris@42
|
2072 $4
|
Chris@42
|
2073 static long int longval () { return $2; }
|
Chris@42
|
2074 static unsigned long int ulongval () { return $2; }
|
Chris@42
|
2075 #include <stdio.h>
|
Chris@42
|
2076 #include <stdlib.h>
|
Chris@42
|
2077 int
|
Chris@42
|
2078 main ()
|
Chris@42
|
2079 {
|
Chris@42
|
2080
|
Chris@42
|
2081 FILE *f = fopen ("conftest.val", "w");
|
Chris@42
|
2082 if (! f)
|
Chris@42
|
2083 return 1;
|
Chris@42
|
2084 if (($2) < 0)
|
Chris@42
|
2085 {
|
Chris@42
|
2086 long int i = longval ();
|
Chris@42
|
2087 if (i != ($2))
|
Chris@42
|
2088 return 1;
|
Chris@42
|
2089 fprintf (f, "%ld", i);
|
Chris@42
|
2090 }
|
Chris@42
|
2091 else
|
Chris@42
|
2092 {
|
Chris@42
|
2093 unsigned long int i = ulongval ();
|
Chris@42
|
2094 if (i != ($2))
|
Chris@42
|
2095 return 1;
|
Chris@42
|
2096 fprintf (f, "%lu", i);
|
Chris@42
|
2097 }
|
Chris@42
|
2098 /* Do not output a trailing newline, as this causes \r\n confusion
|
Chris@42
|
2099 on some platforms. */
|
Chris@42
|
2100 return ferror (f) || fclose (f) != 0;
|
Chris@42
|
2101
|
Chris@42
|
2102 ;
|
Chris@42
|
2103 return 0;
|
Chris@42
|
2104 }
|
Chris@42
|
2105 _ACEOF
|
Chris@42
|
2106 if ac_fn_c_try_run "$LINENO"; then :
|
Chris@42
|
2107 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
Chris@42
|
2108 else
|
Chris@42
|
2109 ac_retval=1
|
Chris@42
|
2110 fi
|
Chris@42
|
2111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
Chris@42
|
2112 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
Chris@42
|
2113 rm -f conftest.val
|
Chris@42
|
2114
|
Chris@42
|
2115 fi
|
Chris@42
|
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
2117 as_fn_set_status $ac_retval
|
Chris@42
|
2118
|
Chris@42
|
2119 } # ac_fn_c_compute_int
|
Chris@42
|
2120
|
Chris@42
|
2121 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
Chris@42
|
2122 # -------------------------------------------------------
|
Chris@42
|
2123 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
Chris@42
|
2124 # the include files in INCLUDES and setting the cache variable VAR
|
Chris@42
|
2125 # accordingly.
|
Chris@42
|
2126 ac_fn_c_check_header_mongrel ()
|
Chris@42
|
2127 {
|
Chris@42
|
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
2129 if eval \${$3+:} false; then :
|
Chris@42
|
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
Chris@42
|
2131 $as_echo_n "checking for $2... " >&6; }
|
Chris@42
|
2132 if eval \${$3+:} false; then :
|
Chris@42
|
2133 $as_echo_n "(cached) " >&6
|
Chris@42
|
2134 fi
|
Chris@42
|
2135 eval ac_res=\$$3
|
Chris@42
|
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
Chris@42
|
2137 $as_echo "$ac_res" >&6; }
|
Chris@42
|
2138 else
|
Chris@42
|
2139 # Is the header compilable?
|
Chris@42
|
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
Chris@42
|
2141 $as_echo_n "checking $2 usability... " >&6; }
|
Chris@42
|
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
2143 /* end confdefs.h. */
|
Chris@42
|
2144 $4
|
Chris@42
|
2145 #include <$2>
|
Chris@42
|
2146 _ACEOF
|
Chris@42
|
2147 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
2148 ac_header_compiler=yes
|
Chris@42
|
2149 else
|
Chris@42
|
2150 ac_header_compiler=no
|
Chris@42
|
2151 fi
|
Chris@42
|
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
Chris@42
|
2154 $as_echo "$ac_header_compiler" >&6; }
|
Chris@42
|
2155
|
Chris@42
|
2156 # Is the header present?
|
Chris@42
|
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
Chris@42
|
2158 $as_echo_n "checking $2 presence... " >&6; }
|
Chris@42
|
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
2160 /* end confdefs.h. */
|
Chris@42
|
2161 #include <$2>
|
Chris@42
|
2162 _ACEOF
|
Chris@42
|
2163 if ac_fn_c_try_cpp "$LINENO"; then :
|
Chris@42
|
2164 ac_header_preproc=yes
|
Chris@42
|
2165 else
|
Chris@42
|
2166 ac_header_preproc=no
|
Chris@42
|
2167 fi
|
Chris@42
|
2168 rm -f conftest.err conftest.i conftest.$ac_ext
|
Chris@42
|
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
Chris@42
|
2170 $as_echo "$ac_header_preproc" >&6; }
|
Chris@42
|
2171
|
Chris@42
|
2172 # So? What about this header?
|
Chris@42
|
2173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
Chris@42
|
2174 yes:no: )
|
Chris@42
|
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
Chris@42
|
2176 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
Chris@42
|
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
Chris@42
|
2178 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
Chris@42
|
2179 ;;
|
Chris@42
|
2180 no:yes:* )
|
Chris@42
|
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
Chris@42
|
2182 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
Chris@42
|
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
Chris@42
|
2184 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
Chris@42
|
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
Chris@42
|
2186 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
Chris@42
|
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
Chris@42
|
2188 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
Chris@42
|
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
Chris@42
|
2190 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
Chris@42
|
2191 ( $as_echo "## ---------------------------- ##
|
Chris@42
|
2192 ## Report this to fftw@fftw.org ##
|
Chris@42
|
2193 ## ---------------------------- ##"
|
Chris@42
|
2194 ) | sed "s/^/$as_me: WARNING: /" >&2
|
Chris@42
|
2195 ;;
|
Chris@42
|
2196 esac
|
Chris@42
|
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
Chris@42
|
2198 $as_echo_n "checking for $2... " >&6; }
|
Chris@42
|
2199 if eval \${$3+:} false; then :
|
Chris@42
|
2200 $as_echo_n "(cached) " >&6
|
Chris@42
|
2201 else
|
Chris@42
|
2202 eval "$3=\$ac_header_compiler"
|
Chris@42
|
2203 fi
|
Chris@42
|
2204 eval ac_res=\$$3
|
Chris@42
|
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
Chris@42
|
2206 $as_echo "$ac_res" >&6; }
|
Chris@42
|
2207 fi
|
Chris@42
|
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
2209
|
Chris@42
|
2210 } # ac_fn_c_check_header_mongrel
|
Chris@42
|
2211
|
Chris@42
|
2212 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
Chris@42
|
2213 # -------------------------------------------
|
Chris@42
|
2214 # Tests whether TYPE exists after having included INCLUDES, setting cache
|
Chris@42
|
2215 # variable VAR accordingly.
|
Chris@42
|
2216 ac_fn_c_check_type ()
|
Chris@42
|
2217 {
|
Chris@42
|
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
Chris@42
|
2220 $as_echo_n "checking for $2... " >&6; }
|
Chris@42
|
2221 if eval \${$3+:} false; then :
|
Chris@42
|
2222 $as_echo_n "(cached) " >&6
|
Chris@42
|
2223 else
|
Chris@42
|
2224 eval "$3=no"
|
Chris@42
|
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
2226 /* end confdefs.h. */
|
Chris@42
|
2227 $4
|
Chris@42
|
2228 int
|
Chris@42
|
2229 main ()
|
Chris@42
|
2230 {
|
Chris@42
|
2231 if (sizeof ($2))
|
Chris@42
|
2232 return 0;
|
Chris@42
|
2233 ;
|
Chris@42
|
2234 return 0;
|
Chris@42
|
2235 }
|
Chris@42
|
2236 _ACEOF
|
Chris@42
|
2237 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
2239 /* end confdefs.h. */
|
Chris@42
|
2240 $4
|
Chris@42
|
2241 int
|
Chris@42
|
2242 main ()
|
Chris@42
|
2243 {
|
Chris@42
|
2244 if (sizeof (($2)))
|
Chris@42
|
2245 return 0;
|
Chris@42
|
2246 ;
|
Chris@42
|
2247 return 0;
|
Chris@42
|
2248 }
|
Chris@42
|
2249 _ACEOF
|
Chris@42
|
2250 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
2251
|
Chris@42
|
2252 else
|
Chris@42
|
2253 eval "$3=yes"
|
Chris@42
|
2254 fi
|
Chris@42
|
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
2256 fi
|
Chris@42
|
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
2258 fi
|
Chris@42
|
2259 eval ac_res=\$$3
|
Chris@42
|
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
Chris@42
|
2261 $as_echo "$ac_res" >&6; }
|
Chris@42
|
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
2263
|
Chris@42
|
2264 } # ac_fn_c_check_type
|
Chris@42
|
2265
|
Chris@42
|
2266 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
|
Chris@42
|
2267 # ---------------------------------------------
|
Chris@42
|
2268 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
|
Chris@42
|
2269 # accordingly.
|
Chris@42
|
2270 ac_fn_c_check_decl ()
|
Chris@42
|
2271 {
|
Chris@42
|
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
2273 as_decl_name=`echo $2|sed 's/ *(.*//'`
|
Chris@42
|
2274 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
|
Chris@42
|
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
|
Chris@42
|
2276 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
|
Chris@42
|
2277 if eval \${$3+:} false; then :
|
Chris@42
|
2278 $as_echo_n "(cached) " >&6
|
Chris@42
|
2279 else
|
Chris@42
|
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
2281 /* end confdefs.h. */
|
Chris@42
|
2282 $4
|
Chris@42
|
2283 int
|
Chris@42
|
2284 main ()
|
Chris@42
|
2285 {
|
Chris@42
|
2286 #ifndef $as_decl_name
|
Chris@42
|
2287 #ifdef __cplusplus
|
Chris@42
|
2288 (void) $as_decl_use;
|
Chris@42
|
2289 #else
|
Chris@42
|
2290 (void) $as_decl_name;
|
Chris@42
|
2291 #endif
|
Chris@42
|
2292 #endif
|
Chris@42
|
2293
|
Chris@42
|
2294 ;
|
Chris@42
|
2295 return 0;
|
Chris@42
|
2296 }
|
Chris@42
|
2297 _ACEOF
|
Chris@42
|
2298 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
2299 eval "$3=yes"
|
Chris@42
|
2300 else
|
Chris@42
|
2301 eval "$3=no"
|
Chris@42
|
2302 fi
|
Chris@42
|
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
2304 fi
|
Chris@42
|
2305 eval ac_res=\$$3
|
Chris@42
|
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
Chris@42
|
2307 $as_echo "$ac_res" >&6; }
|
Chris@42
|
2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
2309
|
Chris@42
|
2310 } # ac_fn_c_check_decl
|
Chris@42
|
2311
|
Chris@42
|
2312 # ac_fn_f77_try_compile LINENO
|
Chris@42
|
2313 # ----------------------------
|
Chris@42
|
2314 # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
Chris@42
|
2315 ac_fn_f77_try_compile ()
|
Chris@42
|
2316 {
|
Chris@42
|
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
2318 rm -f conftest.$ac_objext
|
Chris@42
|
2319 if { { ac_try="$ac_compile"
|
Chris@42
|
2320 case "(($ac_try" in
|
Chris@42
|
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
2322 *) ac_try_echo=$ac_try;;
|
Chris@42
|
2323 esac
|
Chris@42
|
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
2325 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
2326 (eval "$ac_compile") 2>conftest.err
|
Chris@42
|
2327 ac_status=$?
|
Chris@42
|
2328 if test -s conftest.err; then
|
Chris@42
|
2329 grep -v '^ *+' conftest.err >conftest.er1
|
Chris@42
|
2330 cat conftest.er1 >&5
|
Chris@42
|
2331 mv -f conftest.er1 conftest.err
|
Chris@42
|
2332 fi
|
Chris@42
|
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
2334 test $ac_status = 0; } && {
|
Chris@42
|
2335 test -z "$ac_f77_werror_flag" ||
|
Chris@42
|
2336 test ! -s conftest.err
|
Chris@42
|
2337 } && test -s conftest.$ac_objext; then :
|
Chris@42
|
2338 ac_retval=0
|
Chris@42
|
2339 else
|
Chris@42
|
2340 $as_echo "$as_me: failed program was:" >&5
|
Chris@42
|
2341 sed 's/^/| /' conftest.$ac_ext >&5
|
Chris@42
|
2342
|
Chris@42
|
2343 ac_retval=1
|
Chris@42
|
2344 fi
|
Chris@42
|
2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
2346 as_fn_set_status $ac_retval
|
Chris@42
|
2347
|
Chris@42
|
2348 } # ac_fn_f77_try_compile
|
Chris@42
|
2349
|
Chris@42
|
2350 # ac_fn_f77_try_link LINENO
|
Chris@42
|
2351 # -------------------------
|
Chris@42
|
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
|
Chris@42
|
2353 ac_fn_f77_try_link ()
|
Chris@42
|
2354 {
|
Chris@42
|
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
2356 rm -f conftest.$ac_objext conftest$ac_exeext
|
Chris@42
|
2357 if { { ac_try="$ac_link"
|
Chris@42
|
2358 case "(($ac_try" in
|
Chris@42
|
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
2360 *) ac_try_echo=$ac_try;;
|
Chris@42
|
2361 esac
|
Chris@42
|
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
2363 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
2364 (eval "$ac_link") 2>conftest.err
|
Chris@42
|
2365 ac_status=$?
|
Chris@42
|
2366 if test -s conftest.err; then
|
Chris@42
|
2367 grep -v '^ *+' conftest.err >conftest.er1
|
Chris@42
|
2368 cat conftest.er1 >&5
|
Chris@42
|
2369 mv -f conftest.er1 conftest.err
|
Chris@42
|
2370 fi
|
Chris@42
|
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
2372 test $ac_status = 0; } && {
|
Chris@42
|
2373 test -z "$ac_f77_werror_flag" ||
|
Chris@42
|
2374 test ! -s conftest.err
|
Chris@42
|
2375 } && test -s conftest$ac_exeext && {
|
Chris@42
|
2376 test "$cross_compiling" = yes ||
|
Chris@42
|
2377 test -x conftest$ac_exeext
|
Chris@42
|
2378 }; then :
|
Chris@42
|
2379 ac_retval=0
|
Chris@42
|
2380 else
|
Chris@42
|
2381 $as_echo "$as_me: failed program was:" >&5
|
Chris@42
|
2382 sed 's/^/| /' conftest.$ac_ext >&5
|
Chris@42
|
2383
|
Chris@42
|
2384 ac_retval=1
|
Chris@42
|
2385 fi
|
Chris@42
|
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
Chris@42
|
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
Chris@42
|
2388 # interfere with the next link command; also delete a directory that is
|
Chris@42
|
2389 # left behind by Apple's compiler. We do this before executing the actions.
|
Chris@42
|
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
Chris@42
|
2391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
Chris@42
|
2392 as_fn_set_status $ac_retval
|
Chris@42
|
2393
|
Chris@42
|
2394 } # ac_fn_f77_try_link
|
Chris@42
|
2395 cat >config.log <<_ACEOF
|
Chris@42
|
2396 This file contains any messages produced by compilers while
|
Chris@42
|
2397 running configure, to aid debugging if configure makes a mistake.
|
Chris@42
|
2398
|
Chris@42
|
2399 It was created by fftw $as_me 3.3.5, which was
|
Chris@42
|
2400 generated by GNU Autoconf 2.69. Invocation command line was
|
Chris@42
|
2401
|
Chris@42
|
2402 $ $0 $@
|
Chris@42
|
2403
|
Chris@42
|
2404 _ACEOF
|
Chris@42
|
2405 exec 5>>config.log
|
Chris@42
|
2406 {
|
Chris@42
|
2407 cat <<_ASUNAME
|
Chris@42
|
2408 ## --------- ##
|
Chris@42
|
2409 ## Platform. ##
|
Chris@42
|
2410 ## --------- ##
|
Chris@42
|
2411
|
Chris@42
|
2412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
Chris@42
|
2413 uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
Chris@42
|
2414 uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
Chris@42
|
2415 uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
Chris@42
|
2416 uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
Chris@42
|
2417
|
Chris@42
|
2418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
Chris@42
|
2419 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
Chris@42
|
2420
|
Chris@42
|
2421 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
Chris@42
|
2422 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
Chris@42
|
2423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
Chris@42
|
2424 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
Chris@42
|
2425 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
Chris@42
|
2426 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
Chris@42
|
2427 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
Chris@42
|
2428
|
Chris@42
|
2429 _ASUNAME
|
Chris@42
|
2430
|
Chris@42
|
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
2432 for as_dir in $PATH
|
Chris@42
|
2433 do
|
Chris@42
|
2434 IFS=$as_save_IFS
|
Chris@42
|
2435 test -z "$as_dir" && as_dir=.
|
Chris@42
|
2436 $as_echo "PATH: $as_dir"
|
Chris@42
|
2437 done
|
Chris@42
|
2438 IFS=$as_save_IFS
|
Chris@42
|
2439
|
Chris@42
|
2440 } >&5
|
Chris@42
|
2441
|
Chris@42
|
2442 cat >&5 <<_ACEOF
|
Chris@42
|
2443
|
Chris@42
|
2444
|
Chris@42
|
2445 ## ----------- ##
|
Chris@42
|
2446 ## Core tests. ##
|
Chris@42
|
2447 ## ----------- ##
|
Chris@42
|
2448
|
Chris@42
|
2449 _ACEOF
|
Chris@42
|
2450
|
Chris@42
|
2451
|
Chris@42
|
2452 # Keep a trace of the command line.
|
Chris@42
|
2453 # Strip out --no-create and --no-recursion so they do not pile up.
|
Chris@42
|
2454 # Strip out --silent because we don't want to record it for future runs.
|
Chris@42
|
2455 # Also quote any args containing shell meta-characters.
|
Chris@42
|
2456 # Make two passes to allow for proper duplicate-argument suppression.
|
Chris@42
|
2457 ac_configure_args=
|
Chris@42
|
2458 ac_configure_args0=
|
Chris@42
|
2459 ac_configure_args1=
|
Chris@42
|
2460 ac_must_keep_next=false
|
Chris@42
|
2461 for ac_pass in 1 2
|
Chris@42
|
2462 do
|
Chris@42
|
2463 for ac_arg
|
Chris@42
|
2464 do
|
Chris@42
|
2465 case $ac_arg in
|
Chris@42
|
2466 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
Chris@42
|
2467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
Chris@42
|
2468 | -silent | --silent | --silen | --sile | --sil)
|
Chris@42
|
2469 continue ;;
|
Chris@42
|
2470 *\'*)
|
Chris@42
|
2471 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
Chris@42
|
2472 esac
|
Chris@42
|
2473 case $ac_pass in
|
Chris@42
|
2474 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
Chris@42
|
2475 2)
|
Chris@42
|
2476 as_fn_append ac_configure_args1 " '$ac_arg'"
|
Chris@42
|
2477 if test $ac_must_keep_next = true; then
|
Chris@42
|
2478 ac_must_keep_next=false # Got value, back to normal.
|
Chris@42
|
2479 else
|
Chris@42
|
2480 case $ac_arg in
|
Chris@42
|
2481 *=* | --config-cache | -C | -disable-* | --disable-* \
|
Chris@42
|
2482 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
Chris@42
|
2483 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
Chris@42
|
2484 | -with-* | --with-* | -without-* | --without-* | --x)
|
Chris@42
|
2485 case "$ac_configure_args0 " in
|
Chris@42
|
2486 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
Chris@42
|
2487 esac
|
Chris@42
|
2488 ;;
|
Chris@42
|
2489 -* ) ac_must_keep_next=true ;;
|
Chris@42
|
2490 esac
|
Chris@42
|
2491 fi
|
Chris@42
|
2492 as_fn_append ac_configure_args " '$ac_arg'"
|
Chris@42
|
2493 ;;
|
Chris@42
|
2494 esac
|
Chris@42
|
2495 done
|
Chris@42
|
2496 done
|
Chris@42
|
2497 { ac_configure_args0=; unset ac_configure_args0;}
|
Chris@42
|
2498 { ac_configure_args1=; unset ac_configure_args1;}
|
Chris@42
|
2499
|
Chris@42
|
2500 # When interrupted or exit'd, cleanup temporary files, and complete
|
Chris@42
|
2501 # config.log. We remove comments because anyway the quotes in there
|
Chris@42
|
2502 # would cause problems or look ugly.
|
Chris@42
|
2503 # WARNING: Use '\'' to represent an apostrophe within the trap.
|
Chris@42
|
2504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
Chris@42
|
2505 trap 'exit_status=$?
|
Chris@42
|
2506 # Save into config.log some information that might help in debugging.
|
Chris@42
|
2507 {
|
Chris@42
|
2508 echo
|
Chris@42
|
2509
|
Chris@42
|
2510 $as_echo "## ---------------- ##
|
Chris@42
|
2511 ## Cache variables. ##
|
Chris@42
|
2512 ## ---------------- ##"
|
Chris@42
|
2513 echo
|
Chris@42
|
2514 # The following way of writing the cache mishandles newlines in values,
|
Chris@42
|
2515 (
|
Chris@42
|
2516 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
Chris@42
|
2517 eval ac_val=\$$ac_var
|
Chris@42
|
2518 case $ac_val in #(
|
Chris@42
|
2519 *${as_nl}*)
|
Chris@42
|
2520 case $ac_var in #(
|
Chris@42
|
2521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
Chris@42
|
2522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
Chris@42
|
2523 esac
|
Chris@42
|
2524 case $ac_var in #(
|
Chris@42
|
2525 _ | IFS | as_nl) ;; #(
|
Chris@42
|
2526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
Chris@42
|
2527 *) { eval $ac_var=; unset $ac_var;} ;;
|
Chris@42
|
2528 esac ;;
|
Chris@42
|
2529 esac
|
Chris@42
|
2530 done
|
Chris@42
|
2531 (set) 2>&1 |
|
Chris@42
|
2532 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
Chris@42
|
2533 *${as_nl}ac_space=\ *)
|
Chris@42
|
2534 sed -n \
|
Chris@42
|
2535 "s/'\''/'\''\\\\'\'''\''/g;
|
Chris@42
|
2536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
Chris@42
|
2537 ;; #(
|
Chris@42
|
2538 *)
|
Chris@42
|
2539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
Chris@42
|
2540 ;;
|
Chris@42
|
2541 esac |
|
Chris@42
|
2542 sort
|
Chris@42
|
2543 )
|
Chris@42
|
2544 echo
|
Chris@42
|
2545
|
Chris@42
|
2546 $as_echo "## ----------------- ##
|
Chris@42
|
2547 ## Output variables. ##
|
Chris@42
|
2548 ## ----------------- ##"
|
Chris@42
|
2549 echo
|
Chris@42
|
2550 for ac_var in $ac_subst_vars
|
Chris@42
|
2551 do
|
Chris@42
|
2552 eval ac_val=\$$ac_var
|
Chris@42
|
2553 case $ac_val in
|
Chris@42
|
2554 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
Chris@42
|
2555 esac
|
Chris@42
|
2556 $as_echo "$ac_var='\''$ac_val'\''"
|
Chris@42
|
2557 done | sort
|
Chris@42
|
2558 echo
|
Chris@42
|
2559
|
Chris@42
|
2560 if test -n "$ac_subst_files"; then
|
Chris@42
|
2561 $as_echo "## ------------------- ##
|
Chris@42
|
2562 ## File substitutions. ##
|
Chris@42
|
2563 ## ------------------- ##"
|
Chris@42
|
2564 echo
|
Chris@42
|
2565 for ac_var in $ac_subst_files
|
Chris@42
|
2566 do
|
Chris@42
|
2567 eval ac_val=\$$ac_var
|
Chris@42
|
2568 case $ac_val in
|
Chris@42
|
2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
Chris@42
|
2570 esac
|
Chris@42
|
2571 $as_echo "$ac_var='\''$ac_val'\''"
|
Chris@42
|
2572 done | sort
|
Chris@42
|
2573 echo
|
Chris@42
|
2574 fi
|
Chris@42
|
2575
|
Chris@42
|
2576 if test -s confdefs.h; then
|
Chris@42
|
2577 $as_echo "## ----------- ##
|
Chris@42
|
2578 ## confdefs.h. ##
|
Chris@42
|
2579 ## ----------- ##"
|
Chris@42
|
2580 echo
|
Chris@42
|
2581 cat confdefs.h
|
Chris@42
|
2582 echo
|
Chris@42
|
2583 fi
|
Chris@42
|
2584 test "$ac_signal" != 0 &&
|
Chris@42
|
2585 $as_echo "$as_me: caught signal $ac_signal"
|
Chris@42
|
2586 $as_echo "$as_me: exit $exit_status"
|
Chris@42
|
2587 } >&5
|
Chris@42
|
2588 rm -f core *.core core.conftest.* &&
|
Chris@42
|
2589 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
Chris@42
|
2590 exit $exit_status
|
Chris@42
|
2591 ' 0
|
Chris@42
|
2592 for ac_signal in 1 2 13 15; do
|
Chris@42
|
2593 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
Chris@42
|
2594 done
|
Chris@42
|
2595 ac_signal=0
|
Chris@42
|
2596
|
Chris@42
|
2597 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
Chris@42
|
2598 rm -f -r conftest* confdefs.h
|
Chris@42
|
2599
|
Chris@42
|
2600 $as_echo "/* confdefs.h */" > confdefs.h
|
Chris@42
|
2601
|
Chris@42
|
2602 # Predefined preprocessor variables.
|
Chris@42
|
2603
|
Chris@42
|
2604 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
2605 #define PACKAGE_NAME "$PACKAGE_NAME"
|
Chris@42
|
2606 _ACEOF
|
Chris@42
|
2607
|
Chris@42
|
2608 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
2609 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
Chris@42
|
2610 _ACEOF
|
Chris@42
|
2611
|
Chris@42
|
2612 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
2613 #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
Chris@42
|
2614 _ACEOF
|
Chris@42
|
2615
|
Chris@42
|
2616 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
2617 #define PACKAGE_STRING "$PACKAGE_STRING"
|
Chris@42
|
2618 _ACEOF
|
Chris@42
|
2619
|
Chris@42
|
2620 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
2621 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
Chris@42
|
2622 _ACEOF
|
Chris@42
|
2623
|
Chris@42
|
2624 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
2625 #define PACKAGE_URL "$PACKAGE_URL"
|
Chris@42
|
2626 _ACEOF
|
Chris@42
|
2627
|
Chris@42
|
2628
|
Chris@42
|
2629 # Let the site file select an alternate cache file if it wants to.
|
Chris@42
|
2630 # Prefer an explicitly selected file to automatically selected ones.
|
Chris@42
|
2631 ac_site_file1=NONE
|
Chris@42
|
2632 ac_site_file2=NONE
|
Chris@42
|
2633 if test -n "$CONFIG_SITE"; then
|
Chris@42
|
2634 # We do not want a PATH search for config.site.
|
Chris@42
|
2635 case $CONFIG_SITE in #((
|
Chris@42
|
2636 -*) ac_site_file1=./$CONFIG_SITE;;
|
Chris@42
|
2637 */*) ac_site_file1=$CONFIG_SITE;;
|
Chris@42
|
2638 *) ac_site_file1=./$CONFIG_SITE;;
|
Chris@42
|
2639 esac
|
Chris@42
|
2640 elif test "x$prefix" != xNONE; then
|
Chris@42
|
2641 ac_site_file1=$prefix/share/config.site
|
Chris@42
|
2642 ac_site_file2=$prefix/etc/config.site
|
Chris@42
|
2643 else
|
Chris@42
|
2644 ac_site_file1=$ac_default_prefix/share/config.site
|
Chris@42
|
2645 ac_site_file2=$ac_default_prefix/etc/config.site
|
Chris@42
|
2646 fi
|
Chris@42
|
2647 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
Chris@42
|
2648 do
|
Chris@42
|
2649 test "x$ac_site_file" = xNONE && continue
|
Chris@42
|
2650 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
Chris@42
|
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
Chris@42
|
2652 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
Chris@42
|
2653 sed 's/^/| /' "$ac_site_file" >&5
|
Chris@42
|
2654 . "$ac_site_file" \
|
Chris@42
|
2655 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
2657 as_fn_error $? "failed to load site script $ac_site_file
|
Chris@42
|
2658 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
2659 fi
|
Chris@42
|
2660 done
|
Chris@42
|
2661
|
Chris@42
|
2662 if test -r "$cache_file"; then
|
Chris@42
|
2663 # Some versions of bash will fail to source /dev/null (special files
|
Chris@42
|
2664 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
Chris@42
|
2665 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
Chris@42
|
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
Chris@42
|
2667 $as_echo "$as_me: loading cache $cache_file" >&6;}
|
Chris@42
|
2668 case $cache_file in
|
Chris@42
|
2669 [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
Chris@42
|
2670 *) . "./$cache_file";;
|
Chris@42
|
2671 esac
|
Chris@42
|
2672 fi
|
Chris@42
|
2673 else
|
Chris@42
|
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
Chris@42
|
2675 $as_echo "$as_me: creating cache $cache_file" >&6;}
|
Chris@42
|
2676 >$cache_file
|
Chris@42
|
2677 fi
|
Chris@42
|
2678
|
Chris@42
|
2679 # Check that the precious variables saved in the cache have kept the same
|
Chris@42
|
2680 # value.
|
Chris@42
|
2681 ac_cache_corrupted=false
|
Chris@42
|
2682 for ac_var in $ac_precious_vars; do
|
Chris@42
|
2683 eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
Chris@42
|
2684 eval ac_new_set=\$ac_env_${ac_var}_set
|
Chris@42
|
2685 eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
Chris@42
|
2686 eval ac_new_val=\$ac_env_${ac_var}_value
|
Chris@42
|
2687 case $ac_old_set,$ac_new_set in
|
Chris@42
|
2688 set,)
|
Chris@42
|
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
Chris@42
|
2690 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
Chris@42
|
2691 ac_cache_corrupted=: ;;
|
Chris@42
|
2692 ,set)
|
Chris@42
|
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
Chris@42
|
2694 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
Chris@42
|
2695 ac_cache_corrupted=: ;;
|
Chris@42
|
2696 ,);;
|
Chris@42
|
2697 *)
|
Chris@42
|
2698 if test "x$ac_old_val" != "x$ac_new_val"; then
|
Chris@42
|
2699 # differences in whitespace do not lead to failure.
|
Chris@42
|
2700 ac_old_val_w=`echo x $ac_old_val`
|
Chris@42
|
2701 ac_new_val_w=`echo x $ac_new_val`
|
Chris@42
|
2702 if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
Chris@42
|
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
Chris@42
|
2704 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
Chris@42
|
2705 ac_cache_corrupted=:
|
Chris@42
|
2706 else
|
Chris@42
|
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
Chris@42
|
2708 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
Chris@42
|
2709 eval $ac_var=\$ac_old_val
|
Chris@42
|
2710 fi
|
Chris@42
|
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
Chris@42
|
2712 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
Chris@42
|
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
Chris@42
|
2714 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
Chris@42
|
2715 fi;;
|
Chris@42
|
2716 esac
|
Chris@42
|
2717 # Pass precious variables to config.status.
|
Chris@42
|
2718 if test "$ac_new_set" = set; then
|
Chris@42
|
2719 case $ac_new_val in
|
Chris@42
|
2720 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
Chris@42
|
2721 *) ac_arg=$ac_var=$ac_new_val ;;
|
Chris@42
|
2722 esac
|
Chris@42
|
2723 case " $ac_configure_args " in
|
Chris@42
|
2724 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
Chris@42
|
2725 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
Chris@42
|
2726 esac
|
Chris@42
|
2727 fi
|
Chris@42
|
2728 done
|
Chris@42
|
2729 if $ac_cache_corrupted; then
|
Chris@42
|
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
Chris@42
|
2733 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
Chris@42
|
2734 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
Chris@42
|
2735 fi
|
Chris@42
|
2736 ## -------------------- ##
|
Chris@42
|
2737 ## Main body of script. ##
|
Chris@42
|
2738 ## -------------------- ##
|
Chris@42
|
2739
|
Chris@42
|
2740 ac_ext=c
|
Chris@42
|
2741 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
2745
|
Chris@42
|
2746
|
Chris@42
|
2747
|
Chris@42
|
2748
|
Chris@42
|
2749 SHARED_VERSION_INFO="8:5:5" # CURRENT:REVISION:AGE
|
Chris@42
|
2750
|
Chris@42
|
2751 am__api_version='1.14'
|
Chris@42
|
2752
|
Chris@42
|
2753 ac_aux_dir=
|
Chris@42
|
2754 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
Chris@42
|
2755 if test -f "$ac_dir/install-sh"; then
|
Chris@42
|
2756 ac_aux_dir=$ac_dir
|
Chris@42
|
2757 ac_install_sh="$ac_aux_dir/install-sh -c"
|
Chris@42
|
2758 break
|
Chris@42
|
2759 elif test -f "$ac_dir/install.sh"; then
|
Chris@42
|
2760 ac_aux_dir=$ac_dir
|
Chris@42
|
2761 ac_install_sh="$ac_aux_dir/install.sh -c"
|
Chris@42
|
2762 break
|
Chris@42
|
2763 elif test -f "$ac_dir/shtool"; then
|
Chris@42
|
2764 ac_aux_dir=$ac_dir
|
Chris@42
|
2765 ac_install_sh="$ac_aux_dir/shtool install -c"
|
Chris@42
|
2766 break
|
Chris@42
|
2767 fi
|
Chris@42
|
2768 done
|
Chris@42
|
2769 if test -z "$ac_aux_dir"; then
|
Chris@42
|
2770 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
Chris@42
|
2771 fi
|
Chris@42
|
2772
|
Chris@42
|
2773 # These three variables are undocumented and unsupported,
|
Chris@42
|
2774 # and are intended to be withdrawn in a future Autoconf release.
|
Chris@42
|
2775 # They can cause serious problems if a builder's source tree is in a directory
|
Chris@42
|
2776 # whose full name contains unusual characters.
|
Chris@42
|
2777 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
Chris@42
|
2778 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
Chris@42
|
2779 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
Chris@42
|
2780
|
Chris@42
|
2781
|
Chris@42
|
2782 # Find a good install program. We prefer a C program (faster),
|
Chris@42
|
2783 # so one script is as good as another. But avoid the broken or
|
Chris@42
|
2784 # incompatible versions:
|
Chris@42
|
2785 # SysV /etc/install, /usr/sbin/install
|
Chris@42
|
2786 # SunOS /usr/etc/install
|
Chris@42
|
2787 # IRIX /sbin/install
|
Chris@42
|
2788 # AIX /bin/install
|
Chris@42
|
2789 # AmigaOS /C/install, which installs bootblocks on floppy discs
|
Chris@42
|
2790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
Chris@42
|
2791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
Chris@42
|
2792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
Chris@42
|
2793 # OS/2's system install, which has a completely different semantic
|
Chris@42
|
2794 # ./install, which can be erroneously created by make from ./install.sh.
|
Chris@42
|
2795 # Reject install programs that cannot install multiple files.
|
Chris@42
|
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
Chris@42
|
2797 $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
Chris@42
|
2798 if test -z "$INSTALL"; then
|
Chris@42
|
2799 if ${ac_cv_path_install+:} false; then :
|
Chris@42
|
2800 $as_echo_n "(cached) " >&6
|
Chris@42
|
2801 else
|
Chris@42
|
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
2803 for as_dir in $PATH
|
Chris@42
|
2804 do
|
Chris@42
|
2805 IFS=$as_save_IFS
|
Chris@42
|
2806 test -z "$as_dir" && as_dir=.
|
Chris@42
|
2807 # Account for people who put trailing slashes in PATH elements.
|
Chris@42
|
2808 case $as_dir/ in #((
|
Chris@42
|
2809 ./ | .// | /[cC]/* | \
|
Chris@42
|
2810 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
Chris@42
|
2811 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
Chris@42
|
2812 /usr/ucb/* ) ;;
|
Chris@42
|
2813 *)
|
Chris@42
|
2814 # OSF1 and SCO ODT 3.0 have their own names for install.
|
Chris@42
|
2815 # Don't use installbsd from OSF since it installs stuff as root
|
Chris@42
|
2816 # by default.
|
Chris@42
|
2817 for ac_prog in ginstall scoinst install; do
|
Chris@42
|
2818 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
2819 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
Chris@42
|
2820 if test $ac_prog = install &&
|
Chris@42
|
2821 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
Chris@42
|
2822 # AIX install. It has an incompatible calling convention.
|
Chris@42
|
2823 :
|
Chris@42
|
2824 elif test $ac_prog = install &&
|
Chris@42
|
2825 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
Chris@42
|
2826 # program-specific install script used by HP pwplus--don't use.
|
Chris@42
|
2827 :
|
Chris@42
|
2828 else
|
Chris@42
|
2829 rm -rf conftest.one conftest.two conftest.dir
|
Chris@42
|
2830 echo one > conftest.one
|
Chris@42
|
2831 echo two > conftest.two
|
Chris@42
|
2832 mkdir conftest.dir
|
Chris@42
|
2833 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
Chris@42
|
2834 test -s conftest.one && test -s conftest.two &&
|
Chris@42
|
2835 test -s conftest.dir/conftest.one &&
|
Chris@42
|
2836 test -s conftest.dir/conftest.two
|
Chris@42
|
2837 then
|
Chris@42
|
2838 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
Chris@42
|
2839 break 3
|
Chris@42
|
2840 fi
|
Chris@42
|
2841 fi
|
Chris@42
|
2842 fi
|
Chris@42
|
2843 done
|
Chris@42
|
2844 done
|
Chris@42
|
2845 ;;
|
Chris@42
|
2846 esac
|
Chris@42
|
2847
|
Chris@42
|
2848 done
|
Chris@42
|
2849 IFS=$as_save_IFS
|
Chris@42
|
2850
|
Chris@42
|
2851 rm -rf conftest.one conftest.two conftest.dir
|
Chris@42
|
2852
|
Chris@42
|
2853 fi
|
Chris@42
|
2854 if test "${ac_cv_path_install+set}" = set; then
|
Chris@42
|
2855 INSTALL=$ac_cv_path_install
|
Chris@42
|
2856 else
|
Chris@42
|
2857 # As a last resort, use the slow shell script. Don't cache a
|
Chris@42
|
2858 # value for INSTALL within a source directory, because that will
|
Chris@42
|
2859 # break other packages using the cache if that directory is
|
Chris@42
|
2860 # removed, or if the value is a relative name.
|
Chris@42
|
2861 INSTALL=$ac_install_sh
|
Chris@42
|
2862 fi
|
Chris@42
|
2863 fi
|
Chris@42
|
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
Chris@42
|
2865 $as_echo "$INSTALL" >&6; }
|
Chris@42
|
2866
|
Chris@42
|
2867 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
Chris@42
|
2868 # It thinks the first close brace ends the variable substitution.
|
Chris@42
|
2869 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
Chris@42
|
2870
|
Chris@42
|
2871 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
Chris@42
|
2872
|
Chris@42
|
2873 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
Chris@42
|
2874
|
Chris@42
|
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
Chris@42
|
2876 $as_echo_n "checking whether build environment is sane... " >&6; }
|
Chris@42
|
2877 # Reject unsafe characters in $srcdir or the absolute working directory
|
Chris@42
|
2878 # name. Accept space and tab only in the latter.
|
Chris@42
|
2879 am_lf='
|
Chris@42
|
2880 '
|
Chris@42
|
2881 case `pwd` in
|
Chris@42
|
2882 *[\\\"\#\$\&\'\`$am_lf]*)
|
Chris@42
|
2883 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
|
Chris@42
|
2884 esac
|
Chris@42
|
2885 case $srcdir in
|
Chris@42
|
2886 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
Chris@42
|
2887 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
|
Chris@42
|
2888 esac
|
Chris@42
|
2889
|
Chris@42
|
2890 # Do 'set' in a subshell so we don't clobber the current shell's
|
Chris@42
|
2891 # arguments. Must try -L first in case configure is actually a
|
Chris@42
|
2892 # symlink; some systems play weird games with the mod time of symlinks
|
Chris@42
|
2893 # (eg FreeBSD returns the mod time of the symlink's containing
|
Chris@42
|
2894 # directory).
|
Chris@42
|
2895 if (
|
Chris@42
|
2896 am_has_slept=no
|
Chris@42
|
2897 for am_try in 1 2; do
|
Chris@42
|
2898 echo "timestamp, slept: $am_has_slept" > conftest.file
|
Chris@42
|
2899 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
Chris@42
|
2900 if test "$*" = "X"; then
|
Chris@42
|
2901 # -L didn't work.
|
Chris@42
|
2902 set X `ls -t "$srcdir/configure" conftest.file`
|
Chris@42
|
2903 fi
|
Chris@42
|
2904 if test "$*" != "X $srcdir/configure conftest.file" \
|
Chris@42
|
2905 && test "$*" != "X conftest.file $srcdir/configure"; then
|
Chris@42
|
2906
|
Chris@42
|
2907 # If neither matched, then we have a broken ls. This can happen
|
Chris@42
|
2908 # if, for instance, CONFIG_SHELL is bash and it inherits a
|
Chris@42
|
2909 # broken ls alias from the environment. This has actually
|
Chris@42
|
2910 # happened. Such a system could not be considered "sane".
|
Chris@42
|
2911 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
|
Chris@42
|
2912 alias in your environment" "$LINENO" 5
|
Chris@42
|
2913 fi
|
Chris@42
|
2914 if test "$2" = conftest.file || test $am_try -eq 2; then
|
Chris@42
|
2915 break
|
Chris@42
|
2916 fi
|
Chris@42
|
2917 # Just in case.
|
Chris@42
|
2918 sleep 1
|
Chris@42
|
2919 am_has_slept=yes
|
Chris@42
|
2920 done
|
Chris@42
|
2921 test "$2" = conftest.file
|
Chris@42
|
2922 )
|
Chris@42
|
2923 then
|
Chris@42
|
2924 # Ok.
|
Chris@42
|
2925 :
|
Chris@42
|
2926 else
|
Chris@42
|
2927 as_fn_error $? "newly created file is older than distributed files!
|
Chris@42
|
2928 Check your system clock" "$LINENO" 5
|
Chris@42
|
2929 fi
|
Chris@42
|
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
2931 $as_echo "yes" >&6; }
|
Chris@42
|
2932 # If we didn't sleep, we still need to ensure time stamps of config.status and
|
Chris@42
|
2933 # generated files are strictly newer.
|
Chris@42
|
2934 am_sleep_pid=
|
Chris@42
|
2935 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
Chris@42
|
2936 ( sleep 1 ) &
|
Chris@42
|
2937 am_sleep_pid=$!
|
Chris@42
|
2938 fi
|
Chris@42
|
2939
|
Chris@42
|
2940 rm -f conftest.file
|
Chris@42
|
2941
|
Chris@42
|
2942 test "$program_prefix" != NONE &&
|
Chris@42
|
2943 program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
Chris@42
|
2944 # Use a double $ so make ignores it.
|
Chris@42
|
2945 test "$program_suffix" != NONE &&
|
Chris@42
|
2946 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
Chris@42
|
2947 # Double any \ or $.
|
Chris@42
|
2948 # By default was `s,x,x', remove it if useless.
|
Chris@42
|
2949 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
Chris@42
|
2950 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
Chris@42
|
2951
|
Chris@42
|
2952 # Expand $ac_aux_dir to an absolute path.
|
Chris@42
|
2953 am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
Chris@42
|
2954
|
Chris@42
|
2955 if test x"${MISSING+set}" != xset; then
|
Chris@42
|
2956 case $am_aux_dir in
|
Chris@42
|
2957 *\ * | *\ *)
|
Chris@42
|
2958 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
Chris@42
|
2959 *)
|
Chris@42
|
2960 MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
Chris@42
|
2961 esac
|
Chris@42
|
2962 fi
|
Chris@42
|
2963 # Use eval to expand $SHELL
|
Chris@42
|
2964 if eval "$MISSING --is-lightweight"; then
|
Chris@42
|
2965 am_missing_run="$MISSING "
|
Chris@42
|
2966 else
|
Chris@42
|
2967 am_missing_run=
|
Chris@42
|
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
Chris@42
|
2969 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
Chris@42
|
2970 fi
|
Chris@42
|
2971
|
Chris@42
|
2972 if test x"${install_sh}" != xset; then
|
Chris@42
|
2973 case $am_aux_dir in
|
Chris@42
|
2974 *\ * | *\ *)
|
Chris@42
|
2975 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
Chris@42
|
2976 *)
|
Chris@42
|
2977 install_sh="\${SHELL} $am_aux_dir/install-sh"
|
Chris@42
|
2978 esac
|
Chris@42
|
2979 fi
|
Chris@42
|
2980
|
Chris@42
|
2981 # Installed binaries are usually stripped using 'strip' when the user
|
Chris@42
|
2982 # run "make install-strip". However 'strip' might not be the right
|
Chris@42
|
2983 # tool to use in cross-compilation environments, therefore Automake
|
Chris@42
|
2984 # will honor the 'STRIP' environment variable to overrule this program.
|
Chris@42
|
2985 if test "$cross_compiling" != no; then
|
Chris@42
|
2986 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
2987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
Chris@42
|
2988 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
Chris@42
|
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
2990 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
2991 if ${ac_cv_prog_STRIP+:} false; then :
|
Chris@42
|
2992 $as_echo_n "(cached) " >&6
|
Chris@42
|
2993 else
|
Chris@42
|
2994 if test -n "$STRIP"; then
|
Chris@42
|
2995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
Chris@42
|
2996 else
|
Chris@42
|
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
2998 for as_dir in $PATH
|
Chris@42
|
2999 do
|
Chris@42
|
3000 IFS=$as_save_IFS
|
Chris@42
|
3001 test -z "$as_dir" && as_dir=.
|
Chris@42
|
3002 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
3004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
Chris@42
|
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
3006 break 2
|
Chris@42
|
3007 fi
|
Chris@42
|
3008 done
|
Chris@42
|
3009 done
|
Chris@42
|
3010 IFS=$as_save_IFS
|
Chris@42
|
3011
|
Chris@42
|
3012 fi
|
Chris@42
|
3013 fi
|
Chris@42
|
3014 STRIP=$ac_cv_prog_STRIP
|
Chris@42
|
3015 if test -n "$STRIP"; then
|
Chris@42
|
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
Chris@42
|
3017 $as_echo "$STRIP" >&6; }
|
Chris@42
|
3018 else
|
Chris@42
|
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
3020 $as_echo "no" >&6; }
|
Chris@42
|
3021 fi
|
Chris@42
|
3022
|
Chris@42
|
3023
|
Chris@42
|
3024 fi
|
Chris@42
|
3025 if test -z "$ac_cv_prog_STRIP"; then
|
Chris@42
|
3026 ac_ct_STRIP=$STRIP
|
Chris@42
|
3027 # Extract the first word of "strip", so it can be a program name with args.
|
Chris@42
|
3028 set dummy strip; ac_word=$2
|
Chris@42
|
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
3030 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
3031 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
Chris@42
|
3032 $as_echo_n "(cached) " >&6
|
Chris@42
|
3033 else
|
Chris@42
|
3034 if test -n "$ac_ct_STRIP"; then
|
Chris@42
|
3035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
Chris@42
|
3036 else
|
Chris@42
|
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
3038 for as_dir in $PATH
|
Chris@42
|
3039 do
|
Chris@42
|
3040 IFS=$as_save_IFS
|
Chris@42
|
3041 test -z "$as_dir" && as_dir=.
|
Chris@42
|
3042 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
3044 ac_cv_prog_ac_ct_STRIP="strip"
|
Chris@42
|
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
3046 break 2
|
Chris@42
|
3047 fi
|
Chris@42
|
3048 done
|
Chris@42
|
3049 done
|
Chris@42
|
3050 IFS=$as_save_IFS
|
Chris@42
|
3051
|
Chris@42
|
3052 fi
|
Chris@42
|
3053 fi
|
Chris@42
|
3054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
Chris@42
|
3055 if test -n "$ac_ct_STRIP"; then
|
Chris@42
|
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
Chris@42
|
3057 $as_echo "$ac_ct_STRIP" >&6; }
|
Chris@42
|
3058 else
|
Chris@42
|
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
3060 $as_echo "no" >&6; }
|
Chris@42
|
3061 fi
|
Chris@42
|
3062
|
Chris@42
|
3063 if test "x$ac_ct_STRIP" = x; then
|
Chris@42
|
3064 STRIP=":"
|
Chris@42
|
3065 else
|
Chris@42
|
3066 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
3067 yes:)
|
Chris@42
|
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
3070 ac_tool_warned=yes ;;
|
Chris@42
|
3071 esac
|
Chris@42
|
3072 STRIP=$ac_ct_STRIP
|
Chris@42
|
3073 fi
|
Chris@42
|
3074 else
|
Chris@42
|
3075 STRIP="$ac_cv_prog_STRIP"
|
Chris@42
|
3076 fi
|
Chris@42
|
3077
|
Chris@42
|
3078 fi
|
Chris@42
|
3079 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
Chris@42
|
3080
|
Chris@42
|
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
Chris@42
|
3082 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
Chris@42
|
3083 if test -z "$MKDIR_P"; then
|
Chris@42
|
3084 if ${ac_cv_path_mkdir+:} false; then :
|
Chris@42
|
3085 $as_echo_n "(cached) " >&6
|
Chris@42
|
3086 else
|
Chris@42
|
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
3088 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
Chris@42
|
3089 do
|
Chris@42
|
3090 IFS=$as_save_IFS
|
Chris@42
|
3091 test -z "$as_dir" && as_dir=.
|
Chris@42
|
3092 for ac_prog in mkdir gmkdir; do
|
Chris@42
|
3093 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
3094 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
|
Chris@42
|
3095 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
Chris@42
|
3096 'mkdir (GNU coreutils) '* | \
|
Chris@42
|
3097 'mkdir (coreutils) '* | \
|
Chris@42
|
3098 'mkdir (fileutils) '4.1*)
|
Chris@42
|
3099 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
Chris@42
|
3100 break 3;;
|
Chris@42
|
3101 esac
|
Chris@42
|
3102 done
|
Chris@42
|
3103 done
|
Chris@42
|
3104 done
|
Chris@42
|
3105 IFS=$as_save_IFS
|
Chris@42
|
3106
|
Chris@42
|
3107 fi
|
Chris@42
|
3108
|
Chris@42
|
3109 test -d ./--version && rmdir ./--version
|
Chris@42
|
3110 if test "${ac_cv_path_mkdir+set}" = set; then
|
Chris@42
|
3111 MKDIR_P="$ac_cv_path_mkdir -p"
|
Chris@42
|
3112 else
|
Chris@42
|
3113 # As a last resort, use the slow shell script. Don't cache a
|
Chris@42
|
3114 # value for MKDIR_P within a source directory, because that will
|
Chris@42
|
3115 # break other packages using the cache if that directory is
|
Chris@42
|
3116 # removed, or if the value is a relative name.
|
Chris@42
|
3117 MKDIR_P="$ac_install_sh -d"
|
Chris@42
|
3118 fi
|
Chris@42
|
3119 fi
|
Chris@42
|
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
Chris@42
|
3121 $as_echo "$MKDIR_P" >&6; }
|
Chris@42
|
3122
|
Chris@42
|
3123 for ac_prog in gawk mawk nawk awk
|
Chris@42
|
3124 do
|
Chris@42
|
3125 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
Chris@42
|
3126 set dummy $ac_prog; ac_word=$2
|
Chris@42
|
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
3128 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
3129 if ${ac_cv_prog_AWK+:} false; then :
|
Chris@42
|
3130 $as_echo_n "(cached) " >&6
|
Chris@42
|
3131 else
|
Chris@42
|
3132 if test -n "$AWK"; then
|
Chris@42
|
3133 ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
Chris@42
|
3134 else
|
Chris@42
|
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
3136 for as_dir in $PATH
|
Chris@42
|
3137 do
|
Chris@42
|
3138 IFS=$as_save_IFS
|
Chris@42
|
3139 test -z "$as_dir" && as_dir=.
|
Chris@42
|
3140 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
3142 ac_cv_prog_AWK="$ac_prog"
|
Chris@42
|
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
3144 break 2
|
Chris@42
|
3145 fi
|
Chris@42
|
3146 done
|
Chris@42
|
3147 done
|
Chris@42
|
3148 IFS=$as_save_IFS
|
Chris@42
|
3149
|
Chris@42
|
3150 fi
|
Chris@42
|
3151 fi
|
Chris@42
|
3152 AWK=$ac_cv_prog_AWK
|
Chris@42
|
3153 if test -n "$AWK"; then
|
Chris@42
|
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
Chris@42
|
3155 $as_echo "$AWK" >&6; }
|
Chris@42
|
3156 else
|
Chris@42
|
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
3158 $as_echo "no" >&6; }
|
Chris@42
|
3159 fi
|
Chris@42
|
3160
|
Chris@42
|
3161
|
Chris@42
|
3162 test -n "$AWK" && break
|
Chris@42
|
3163 done
|
Chris@42
|
3164
|
Chris@42
|
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
Chris@42
|
3166 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
Chris@42
|
3167 set x ${MAKE-make}
|
Chris@42
|
3168 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
Chris@42
|
3169 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
Chris@42
|
3170 $as_echo_n "(cached) " >&6
|
Chris@42
|
3171 else
|
Chris@42
|
3172 cat >conftest.make <<\_ACEOF
|
Chris@42
|
3173 SHELL = /bin/sh
|
Chris@42
|
3174 all:
|
Chris@42
|
3175 @echo '@@@%%%=$(MAKE)=@@@%%%'
|
Chris@42
|
3176 _ACEOF
|
Chris@42
|
3177 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
Chris@42
|
3178 case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
Chris@42
|
3179 *@@@%%%=?*=@@@%%%*)
|
Chris@42
|
3180 eval ac_cv_prog_make_${ac_make}_set=yes;;
|
Chris@42
|
3181 *)
|
Chris@42
|
3182 eval ac_cv_prog_make_${ac_make}_set=no;;
|
Chris@42
|
3183 esac
|
Chris@42
|
3184 rm -f conftest.make
|
Chris@42
|
3185 fi
|
Chris@42
|
3186 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
Chris@42
|
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
3188 $as_echo "yes" >&6; }
|
Chris@42
|
3189 SET_MAKE=
|
Chris@42
|
3190 else
|
Chris@42
|
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
3192 $as_echo "no" >&6; }
|
Chris@42
|
3193 SET_MAKE="MAKE=${MAKE-make}"
|
Chris@42
|
3194 fi
|
Chris@42
|
3195
|
Chris@42
|
3196 rm -rf .tst 2>/dev/null
|
Chris@42
|
3197 mkdir .tst 2>/dev/null
|
Chris@42
|
3198 if test -d .tst; then
|
Chris@42
|
3199 am__leading_dot=.
|
Chris@42
|
3200 else
|
Chris@42
|
3201 am__leading_dot=_
|
Chris@42
|
3202 fi
|
Chris@42
|
3203 rmdir .tst 2>/dev/null
|
Chris@42
|
3204
|
Chris@42
|
3205 # Check whether --enable-silent-rules was given.
|
Chris@42
|
3206 if test "${enable_silent_rules+set}" = set; then :
|
Chris@42
|
3207 enableval=$enable_silent_rules;
|
Chris@42
|
3208 fi
|
Chris@42
|
3209
|
Chris@42
|
3210 case $enable_silent_rules in # (((
|
Chris@42
|
3211 yes) AM_DEFAULT_VERBOSITY=0;;
|
Chris@42
|
3212 no) AM_DEFAULT_VERBOSITY=1;;
|
Chris@42
|
3213 *) AM_DEFAULT_VERBOSITY=1;;
|
Chris@42
|
3214 esac
|
Chris@42
|
3215 am_make=${MAKE-make}
|
Chris@42
|
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
Chris@42
|
3217 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
|
Chris@42
|
3218 if ${am_cv_make_support_nested_variables+:} false; then :
|
Chris@42
|
3219 $as_echo_n "(cached) " >&6
|
Chris@42
|
3220 else
|
Chris@42
|
3221 if $as_echo 'TRUE=$(BAR$(V))
|
Chris@42
|
3222 BAR0=false
|
Chris@42
|
3223 BAR1=true
|
Chris@42
|
3224 V=1
|
Chris@42
|
3225 am__doit:
|
Chris@42
|
3226 @$(TRUE)
|
Chris@42
|
3227 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
Chris@42
|
3228 am_cv_make_support_nested_variables=yes
|
Chris@42
|
3229 else
|
Chris@42
|
3230 am_cv_make_support_nested_variables=no
|
Chris@42
|
3231 fi
|
Chris@42
|
3232 fi
|
Chris@42
|
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
Chris@42
|
3234 $as_echo "$am_cv_make_support_nested_variables" >&6; }
|
Chris@42
|
3235 if test $am_cv_make_support_nested_variables = yes; then
|
Chris@42
|
3236 AM_V='$(V)'
|
Chris@42
|
3237 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
Chris@42
|
3238 else
|
Chris@42
|
3239 AM_V=$AM_DEFAULT_VERBOSITY
|
Chris@42
|
3240 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
Chris@42
|
3241 fi
|
Chris@42
|
3242 AM_BACKSLASH='\'
|
Chris@42
|
3243
|
Chris@42
|
3244 if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
Chris@42
|
3245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
Chris@42
|
3246 # is not polluted with repeated "-I."
|
Chris@42
|
3247 am__isrc=' -I$(srcdir)'
|
Chris@42
|
3248 # test to see if srcdir already configured
|
Chris@42
|
3249 if test -f $srcdir/config.status; then
|
Chris@42
|
3250 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
Chris@42
|
3251 fi
|
Chris@42
|
3252 fi
|
Chris@42
|
3253
|
Chris@42
|
3254 # test whether we have cygpath
|
Chris@42
|
3255 if test -z "$CYGPATH_W"; then
|
Chris@42
|
3256 if (cygpath --version) >/dev/null 2>/dev/null; then
|
Chris@42
|
3257 CYGPATH_W='cygpath -w'
|
Chris@42
|
3258 else
|
Chris@42
|
3259 CYGPATH_W=echo
|
Chris@42
|
3260 fi
|
Chris@42
|
3261 fi
|
Chris@42
|
3262
|
Chris@42
|
3263
|
Chris@42
|
3264 # Define the identity of the package.
|
Chris@42
|
3265 PACKAGE='fftw'
|
Chris@42
|
3266 VERSION='3.3.5'
|
Chris@42
|
3267
|
Chris@42
|
3268
|
Chris@42
|
3269 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
3270 #define PACKAGE "$PACKAGE"
|
Chris@42
|
3271 _ACEOF
|
Chris@42
|
3272
|
Chris@42
|
3273
|
Chris@42
|
3274 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
3275 #define VERSION "$VERSION"
|
Chris@42
|
3276 _ACEOF
|
Chris@42
|
3277
|
Chris@42
|
3278 # Some tools Automake needs.
|
Chris@42
|
3279
|
Chris@42
|
3280 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
Chris@42
|
3281
|
Chris@42
|
3282
|
Chris@42
|
3283 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
Chris@42
|
3284
|
Chris@42
|
3285
|
Chris@42
|
3286 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
Chris@42
|
3287
|
Chris@42
|
3288
|
Chris@42
|
3289 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
Chris@42
|
3290
|
Chris@42
|
3291
|
Chris@42
|
3292 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
Chris@42
|
3293
|
Chris@42
|
3294 # For better backward compatibility. To be removed once Automake 1.9.x
|
Chris@42
|
3295 # dies out for good. For more background, see:
|
Chris@42
|
3296 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
Chris@42
|
3297 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
Chris@42
|
3298 mkdir_p='$(MKDIR_P)'
|
Chris@42
|
3299
|
Chris@42
|
3300 # We need awk for the "check" target. The system "awk" is bad on
|
Chris@42
|
3301 # some platforms.
|
Chris@42
|
3302 # Always define AMTAR for backward compatibility. Yes, it's still used
|
Chris@42
|
3303 # in the wild :-( We should find a proper way to deprecate it ...
|
Chris@42
|
3304 AMTAR='$${TAR-tar}'
|
Chris@42
|
3305
|
Chris@42
|
3306
|
Chris@42
|
3307 # We'll loop over all known methods to create a tar archive until one works.
|
Chris@42
|
3308 _am_tools='gnutar pax cpio none'
|
Chris@42
|
3309
|
Chris@42
|
3310 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
|
Chris@42
|
3311
|
Chris@42
|
3312
|
Chris@42
|
3313
|
Chris@42
|
3314
|
Chris@42
|
3315
|
Chris@42
|
3316
|
Chris@42
|
3317 # POSIX will say in a future version that running "rm -f" with no argument
|
Chris@42
|
3318 # is OK; and we want to be able to make that assumption in our Makefile
|
Chris@42
|
3319 # recipes. So use an aggressive probe to check that the usage we want is
|
Chris@42
|
3320 # actually supported "in the wild" to an acceptable degree.
|
Chris@42
|
3321 # See automake bug#10828.
|
Chris@42
|
3322 # To make any issue more visible, cause the running configure to be aborted
|
Chris@42
|
3323 # by default if the 'rm' program in use doesn't match our expectations; the
|
Chris@42
|
3324 # user can still override this though.
|
Chris@42
|
3325 if rm -f && rm -fr && rm -rf; then : OK; else
|
Chris@42
|
3326 cat >&2 <<'END'
|
Chris@42
|
3327 Oops!
|
Chris@42
|
3328
|
Chris@42
|
3329 Your 'rm' program seems unable to run without file operands specified
|
Chris@42
|
3330 on the command line, even when the '-f' option is present. This is contrary
|
Chris@42
|
3331 to the behaviour of most rm programs out there, and not conforming with
|
Chris@42
|
3332 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
Chris@42
|
3333
|
Chris@42
|
3334 Please tell bug-automake@gnu.org about your system, including the value
|
Chris@42
|
3335 of your $PATH and any error possibly output before this message. This
|
Chris@42
|
3336 can help us improve future automake versions.
|
Chris@42
|
3337
|
Chris@42
|
3338 END
|
Chris@42
|
3339 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
Chris@42
|
3340 echo 'Configuration will proceed anyway, since you have set the' >&2
|
Chris@42
|
3341 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
Chris@42
|
3342 echo >&2
|
Chris@42
|
3343 else
|
Chris@42
|
3344 cat >&2 <<'END'
|
Chris@42
|
3345 Aborting the configuration process, to ensure you take notice of the issue.
|
Chris@42
|
3346
|
Chris@42
|
3347 You can download and install GNU coreutils to get an 'rm' implementation
|
Chris@42
|
3348 that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
Chris@42
|
3349
|
Chris@42
|
3350 If you want to complete the configuration process using your problematic
|
Chris@42
|
3351 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
Chris@42
|
3352 to "yes", and re-run configure.
|
Chris@42
|
3353
|
Chris@42
|
3354 END
|
Chris@42
|
3355 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
|
Chris@42
|
3356 fi
|
Chris@42
|
3357 fi
|
Chris@42
|
3358
|
Chris@42
|
3359 ac_config_headers="$ac_config_headers config.h"
|
Chris@42
|
3360
|
Chris@42
|
3361
|
Chris@42
|
3362
|
Chris@42
|
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
Chris@42
|
3364 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
|
Chris@42
|
3365 # Check whether --enable-maintainer-mode was given.
|
Chris@42
|
3366 if test "${enable_maintainer_mode+set}" = set; then :
|
Chris@42
|
3367 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
|
Chris@42
|
3368 else
|
Chris@42
|
3369 USE_MAINTAINER_MODE=no
|
Chris@42
|
3370 fi
|
Chris@42
|
3371
|
Chris@42
|
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
|
Chris@42
|
3373 $as_echo "$USE_MAINTAINER_MODE" >&6; }
|
Chris@42
|
3374 if test $USE_MAINTAINER_MODE = yes; then
|
Chris@42
|
3375 MAINTAINER_MODE_TRUE=
|
Chris@42
|
3376 MAINTAINER_MODE_FALSE='#'
|
Chris@42
|
3377 else
|
Chris@42
|
3378 MAINTAINER_MODE_TRUE='#'
|
Chris@42
|
3379 MAINTAINER_MODE_FALSE=
|
Chris@42
|
3380 fi
|
Chris@42
|
3381
|
Chris@42
|
3382 MAINT=$MAINTAINER_MODE_TRUE
|
Chris@42
|
3383
|
Chris@42
|
3384
|
Chris@42
|
3385
|
Chris@42
|
3386 # Check whether --enable-shared was given.
|
Chris@42
|
3387 if test "${enable_shared+set}" = set; then :
|
Chris@42
|
3388 enableval=$enable_shared; p=${PACKAGE-default}
|
Chris@42
|
3389 case $enableval in
|
Chris@42
|
3390 yes) enable_shared=yes ;;
|
Chris@42
|
3391 no) enable_shared=no ;;
|
Chris@42
|
3392 *)
|
Chris@42
|
3393 enable_shared=no
|
Chris@42
|
3394 # Look at the argument we got. We use all the common list separators.
|
Chris@42
|
3395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
Chris@42
|
3396 for pkg in $enableval; do
|
Chris@42
|
3397 IFS="$lt_save_ifs"
|
Chris@42
|
3398 if test "X$pkg" = "X$p"; then
|
Chris@42
|
3399 enable_shared=yes
|
Chris@42
|
3400 fi
|
Chris@42
|
3401 done
|
Chris@42
|
3402 IFS="$lt_save_ifs"
|
Chris@42
|
3403 ;;
|
Chris@42
|
3404 esac
|
Chris@42
|
3405 else
|
Chris@42
|
3406 enable_shared=no
|
Chris@42
|
3407 fi
|
Chris@42
|
3408
|
Chris@42
|
3409
|
Chris@42
|
3410
|
Chris@42
|
3411
|
Chris@42
|
3412
|
Chris@42
|
3413
|
Chris@42
|
3414
|
Chris@42
|
3415
|
Chris@42
|
3416 # Make sure we can run config.sub.
|
Chris@42
|
3417 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
Chris@42
|
3418 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
Chris@42
|
3419
|
Chris@42
|
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
Chris@42
|
3421 $as_echo_n "checking build system type... " >&6; }
|
Chris@42
|
3422 if ${ac_cv_build+:} false; then :
|
Chris@42
|
3423 $as_echo_n "(cached) " >&6
|
Chris@42
|
3424 else
|
Chris@42
|
3425 ac_build_alias=$build_alias
|
Chris@42
|
3426 test "x$ac_build_alias" = x &&
|
Chris@42
|
3427 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
Chris@42
|
3428 test "x$ac_build_alias" = x &&
|
Chris@42
|
3429 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
Chris@42
|
3430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
Chris@42
|
3431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
Chris@42
|
3432
|
Chris@42
|
3433 fi
|
Chris@42
|
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
Chris@42
|
3435 $as_echo "$ac_cv_build" >&6; }
|
Chris@42
|
3436 case $ac_cv_build in
|
Chris@42
|
3437 *-*-*) ;;
|
Chris@42
|
3438 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
Chris@42
|
3439 esac
|
Chris@42
|
3440 build=$ac_cv_build
|
Chris@42
|
3441 ac_save_IFS=$IFS; IFS='-'
|
Chris@42
|
3442 set x $ac_cv_build
|
Chris@42
|
3443 shift
|
Chris@42
|
3444 build_cpu=$1
|
Chris@42
|
3445 build_vendor=$2
|
Chris@42
|
3446 shift; shift
|
Chris@42
|
3447 # Remember, the first character of IFS is used to create $*,
|
Chris@42
|
3448 # except with old shells:
|
Chris@42
|
3449 build_os=$*
|
Chris@42
|
3450 IFS=$ac_save_IFS
|
Chris@42
|
3451 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
Chris@42
|
3452
|
Chris@42
|
3453
|
Chris@42
|
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
Chris@42
|
3455 $as_echo_n "checking host system type... " >&6; }
|
Chris@42
|
3456 if ${ac_cv_host+:} false; then :
|
Chris@42
|
3457 $as_echo_n "(cached) " >&6
|
Chris@42
|
3458 else
|
Chris@42
|
3459 if test "x$host_alias" = x; then
|
Chris@42
|
3460 ac_cv_host=$ac_cv_build
|
Chris@42
|
3461 else
|
Chris@42
|
3462 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
Chris@42
|
3463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
Chris@42
|
3464 fi
|
Chris@42
|
3465
|
Chris@42
|
3466 fi
|
Chris@42
|
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
Chris@42
|
3468 $as_echo "$ac_cv_host" >&6; }
|
Chris@42
|
3469 case $ac_cv_host in
|
Chris@42
|
3470 *-*-*) ;;
|
Chris@42
|
3471 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
Chris@42
|
3472 esac
|
Chris@42
|
3473 host=$ac_cv_host
|
Chris@42
|
3474 ac_save_IFS=$IFS; IFS='-'
|
Chris@42
|
3475 set x $ac_cv_host
|
Chris@42
|
3476 shift
|
Chris@42
|
3477 host_cpu=$1
|
Chris@42
|
3478 host_vendor=$2
|
Chris@42
|
3479 shift; shift
|
Chris@42
|
3480 # Remember, the first character of IFS is used to create $*,
|
Chris@42
|
3481 # except with old shells:
|
Chris@42
|
3482 host_os=$*
|
Chris@42
|
3483 IFS=$ac_save_IFS
|
Chris@42
|
3484 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
Chris@42
|
3485
|
Chris@42
|
3486
|
Chris@42
|
3487
|
Chris@42
|
3488 case "${host_cpu}" in
|
Chris@42
|
3489 powerpc*) have_fma=yes;;
|
Chris@42
|
3490 ia64*) have_fma=yes;;
|
Chris@42
|
3491 hppa*) have_fma=yes;;
|
Chris@42
|
3492 mips64*) have_fma=yes;;
|
Chris@42
|
3493 *) have_fma=no;;
|
Chris@42
|
3494 esac
|
Chris@42
|
3495
|
Chris@42
|
3496 # Check whether --enable-debug was given.
|
Chris@42
|
3497 if test "${enable_debug+set}" = set; then :
|
Chris@42
|
3498 enableval=$enable_debug; ok=$enableval
|
Chris@42
|
3499 else
|
Chris@42
|
3500 ok=no
|
Chris@42
|
3501 fi
|
Chris@42
|
3502
|
Chris@42
|
3503 if test "$ok" = "yes"; then
|
Chris@42
|
3504
|
Chris@42
|
3505 $as_echo "#define FFTW_DEBUG 1" >>confdefs.h
|
Chris@42
|
3506
|
Chris@42
|
3507 debug_malloc=yes
|
Chris@42
|
3508 else
|
Chris@42
|
3509 debug_malloc=no
|
Chris@42
|
3510 fi
|
Chris@42
|
3511
|
Chris@42
|
3512 # Check whether --enable-doc was given.
|
Chris@42
|
3513 if test "${enable_doc+set}" = set; then :
|
Chris@42
|
3514 enableval=$enable_doc; build_doc=$enableval
|
Chris@42
|
3515 else
|
Chris@42
|
3516 build_doc=yes
|
Chris@42
|
3517 fi
|
Chris@42
|
3518
|
Chris@42
|
3519 if test x"$build_doc" = xyes; then
|
Chris@42
|
3520 BUILD_DOC_TRUE=
|
Chris@42
|
3521 BUILD_DOC_FALSE='#'
|
Chris@42
|
3522 else
|
Chris@42
|
3523 BUILD_DOC_TRUE='#'
|
Chris@42
|
3524 BUILD_DOC_FALSE=
|
Chris@42
|
3525 fi
|
Chris@42
|
3526
|
Chris@42
|
3527
|
Chris@42
|
3528 # Check whether --enable-debug-malloc was given.
|
Chris@42
|
3529 if test "${enable_debug_malloc+set}" = set; then :
|
Chris@42
|
3530 enableval=$enable_debug_malloc; ok=$enableval
|
Chris@42
|
3531 else
|
Chris@42
|
3532 ok=$debug_malloc
|
Chris@42
|
3533 fi
|
Chris@42
|
3534
|
Chris@42
|
3535 if test "$ok" = "yes"; then
|
Chris@42
|
3536
|
Chris@42
|
3537 $as_echo "#define FFTW_DEBUG_MALLOC 1" >>confdefs.h
|
Chris@42
|
3538
|
Chris@42
|
3539 fi
|
Chris@42
|
3540
|
Chris@42
|
3541 # Check whether --enable-debug-alignment was given.
|
Chris@42
|
3542 if test "${enable_debug_alignment+set}" = set; then :
|
Chris@42
|
3543 enableval=$enable_debug_alignment; ok=$enableval
|
Chris@42
|
3544 else
|
Chris@42
|
3545 ok=no
|
Chris@42
|
3546 fi
|
Chris@42
|
3547
|
Chris@42
|
3548 if test "$ok" = "yes"; then
|
Chris@42
|
3549
|
Chris@42
|
3550 $as_echo "#define FFTW_DEBUG_ALIGNMENT 1" >>confdefs.h
|
Chris@42
|
3551
|
Chris@42
|
3552 fi
|
Chris@42
|
3553
|
Chris@42
|
3554 # Check whether --enable-random-estimator was given.
|
Chris@42
|
3555 if test "${enable_random_estimator+set}" = set; then :
|
Chris@42
|
3556 enableval=$enable_random_estimator; ok=$enableval
|
Chris@42
|
3557 else
|
Chris@42
|
3558 ok=no
|
Chris@42
|
3559 fi
|
Chris@42
|
3560
|
Chris@42
|
3561 if test "$ok" = "yes"; then
|
Chris@42
|
3562
|
Chris@42
|
3563 $as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h
|
Chris@42
|
3564
|
Chris@42
|
3565 CHECK_PL_OPTS="--estimate"
|
Chris@42
|
3566 fi
|
Chris@42
|
3567
|
Chris@42
|
3568 # Check whether --enable-alloca was given.
|
Chris@42
|
3569 if test "${enable_alloca+set}" = set; then :
|
Chris@42
|
3570 enableval=$enable_alloca; ok=$enableval
|
Chris@42
|
3571 else
|
Chris@42
|
3572 ok=yes
|
Chris@42
|
3573 fi
|
Chris@42
|
3574
|
Chris@42
|
3575 if test "$ok" = "yes"; then
|
Chris@42
|
3576
|
Chris@42
|
3577 $as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h
|
Chris@42
|
3578
|
Chris@42
|
3579 fi
|
Chris@42
|
3580
|
Chris@42
|
3581 # Check whether --enable-single was given.
|
Chris@42
|
3582 if test "${enable_single+set}" = set; then :
|
Chris@42
|
3583 enableval=$enable_single; ok=$enableval
|
Chris@42
|
3584 else
|
Chris@42
|
3585 ok=no
|
Chris@42
|
3586 fi
|
Chris@42
|
3587
|
Chris@42
|
3588 # Check whether --enable-float was given.
|
Chris@42
|
3589 if test "${enable_float+set}" = set; then :
|
Chris@42
|
3590 enableval=$enable_float; ok=$enableval
|
Chris@42
|
3591 fi
|
Chris@42
|
3592
|
Chris@42
|
3593 if test "$ok" = "yes"; then
|
Chris@42
|
3594
|
Chris@42
|
3595 $as_echo "#define FFTW_SINGLE 1" >>confdefs.h
|
Chris@42
|
3596
|
Chris@42
|
3597
|
Chris@42
|
3598 $as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h
|
Chris@42
|
3599
|
Chris@42
|
3600 PRECISION=s
|
Chris@42
|
3601 else
|
Chris@42
|
3602 PRECISION=d
|
Chris@42
|
3603 fi
|
Chris@42
|
3604 if test "$ok" = "yes"; then
|
Chris@42
|
3605 SINGLE_TRUE=
|
Chris@42
|
3606 SINGLE_FALSE='#'
|
Chris@42
|
3607 else
|
Chris@42
|
3608 SINGLE_TRUE='#'
|
Chris@42
|
3609 SINGLE_FALSE=
|
Chris@42
|
3610 fi
|
Chris@42
|
3611
|
Chris@42
|
3612
|
Chris@42
|
3613 # Check whether --enable-long-double was given.
|
Chris@42
|
3614 if test "${enable_long_double+set}" = set; then :
|
Chris@42
|
3615 enableval=$enable_long_double; ok=$enableval
|
Chris@42
|
3616 else
|
Chris@42
|
3617 ok=no
|
Chris@42
|
3618 fi
|
Chris@42
|
3619
|
Chris@42
|
3620 if test "$ok" = "yes"; then
|
Chris@42
|
3621 if test "$PRECISION" = "s"; then
|
Chris@42
|
3622 as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5
|
Chris@42
|
3623 fi
|
Chris@42
|
3624
|
Chris@42
|
3625 $as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h
|
Chris@42
|
3626
|
Chris@42
|
3627
|
Chris@42
|
3628 $as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h
|
Chris@42
|
3629
|
Chris@42
|
3630 PRECISION=l
|
Chris@42
|
3631 fi
|
Chris@42
|
3632 if test "$ok" = "yes"; then
|
Chris@42
|
3633 LDOUBLE_TRUE=
|
Chris@42
|
3634 LDOUBLE_FALSE='#'
|
Chris@42
|
3635 else
|
Chris@42
|
3636 LDOUBLE_TRUE='#'
|
Chris@42
|
3637 LDOUBLE_FALSE=
|
Chris@42
|
3638 fi
|
Chris@42
|
3639
|
Chris@42
|
3640
|
Chris@42
|
3641 # Check whether --enable-quad-precision was given.
|
Chris@42
|
3642 if test "${enable_quad_precision+set}" = set; then :
|
Chris@42
|
3643 enableval=$enable_quad_precision; ok=$enableval
|
Chris@42
|
3644 else
|
Chris@42
|
3645 ok=no
|
Chris@42
|
3646 fi
|
Chris@42
|
3647
|
Chris@42
|
3648 if test "$ok" = "yes"; then
|
Chris@42
|
3649 if test "$PRECISION" != "d"; then
|
Chris@42
|
3650 as_fn_error $? "conflicting precisions specified" "$LINENO" 5
|
Chris@42
|
3651 fi
|
Chris@42
|
3652
|
Chris@42
|
3653 $as_echo "#define FFTW_QUAD 1" >>confdefs.h
|
Chris@42
|
3654
|
Chris@42
|
3655
|
Chris@42
|
3656 $as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h
|
Chris@42
|
3657
|
Chris@42
|
3658 PRECISION=q
|
Chris@42
|
3659 fi
|
Chris@42
|
3660 if test "$ok" = "yes"; then
|
Chris@42
|
3661 QUAD_TRUE=
|
Chris@42
|
3662 QUAD_FALSE='#'
|
Chris@42
|
3663 else
|
Chris@42
|
3664 QUAD_TRUE='#'
|
Chris@42
|
3665 QUAD_FALSE=
|
Chris@42
|
3666 fi
|
Chris@42
|
3667
|
Chris@42
|
3668
|
Chris@42
|
3669
|
Chris@42
|
3670
|
Chris@42
|
3671
|
Chris@42
|
3672 # Check whether --enable-sse was given.
|
Chris@42
|
3673 if test "${enable_sse+set}" = set; then :
|
Chris@42
|
3674 enableval=$enable_sse; have_sse=$enableval
|
Chris@42
|
3675 else
|
Chris@42
|
3676 have_sse=no
|
Chris@42
|
3677 fi
|
Chris@42
|
3678
|
Chris@42
|
3679 if test "$have_sse" = "yes"; then
|
Chris@42
|
3680 if test "$PRECISION" != "s"; then
|
Chris@42
|
3681 as_fn_error $? "SSE requires single precision" "$LINENO" 5
|
Chris@42
|
3682 fi
|
Chris@42
|
3683 fi
|
Chris@42
|
3684
|
Chris@42
|
3685 # Check whether --enable-sse2 was given.
|
Chris@42
|
3686 if test "${enable_sse2+set}" = set; then :
|
Chris@42
|
3687 enableval=$enable_sse2; have_sse2=$enableval
|
Chris@42
|
3688 else
|
Chris@42
|
3689 have_sse2=no
|
Chris@42
|
3690 fi
|
Chris@42
|
3691
|
Chris@42
|
3692 if test "$have_sse" = "yes"; then have_sse2=yes; fi
|
Chris@42
|
3693 if test "$have_sse2" = "yes"; then
|
Chris@42
|
3694
|
Chris@42
|
3695 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
|
Chris@42
|
3696
|
Chris@42
|
3697 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
|
Chris@42
|
3698 as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5
|
Chris@42
|
3699 fi
|
Chris@42
|
3700 fi
|
Chris@42
|
3701 if test "$have_sse2" = "yes"; then
|
Chris@42
|
3702 HAVE_SSE2_TRUE=
|
Chris@42
|
3703 HAVE_SSE2_FALSE='#'
|
Chris@42
|
3704 else
|
Chris@42
|
3705 HAVE_SSE2_TRUE='#'
|
Chris@42
|
3706 HAVE_SSE2_FALSE=
|
Chris@42
|
3707 fi
|
Chris@42
|
3708
|
Chris@42
|
3709
|
Chris@42
|
3710 # Check whether --enable-avx was given.
|
Chris@42
|
3711 if test "${enable_avx+set}" = set; then :
|
Chris@42
|
3712 enableval=$enable_avx; have_avx=$enableval
|
Chris@42
|
3713 else
|
Chris@42
|
3714 have_avx=no
|
Chris@42
|
3715 fi
|
Chris@42
|
3716
|
Chris@42
|
3717 if test "$have_avx" = "yes"; then
|
Chris@42
|
3718
|
Chris@42
|
3719 $as_echo "#define HAVE_AVX 1" >>confdefs.h
|
Chris@42
|
3720
|
Chris@42
|
3721 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
|
Chris@42
|
3722 as_fn_error $? "AVX requires single or double precision" "$LINENO" 5
|
Chris@42
|
3723 fi
|
Chris@42
|
3724 fi
|
Chris@42
|
3725 if test "$have_avx" = "yes"; then
|
Chris@42
|
3726 HAVE_AVX_TRUE=
|
Chris@42
|
3727 HAVE_AVX_FALSE='#'
|
Chris@42
|
3728 else
|
Chris@42
|
3729 HAVE_AVX_TRUE='#'
|
Chris@42
|
3730 HAVE_AVX_FALSE=
|
Chris@42
|
3731 fi
|
Chris@42
|
3732
|
Chris@42
|
3733
|
Chris@42
|
3734 # Check whether --enable-avx2 was given.
|
Chris@42
|
3735 if test "${enable_avx2+set}" = set; then :
|
Chris@42
|
3736 enableval=$enable_avx2; have_avx2=$enableval
|
Chris@42
|
3737 else
|
Chris@42
|
3738 have_avx2=no
|
Chris@42
|
3739 fi
|
Chris@42
|
3740
|
Chris@42
|
3741 if test "$have_avx2" = "yes"; then
|
Chris@42
|
3742
|
Chris@42
|
3743 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
|
Chris@42
|
3744
|
Chris@42
|
3745 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
|
Chris@42
|
3746 as_fn_error $? "AVX2 requires single or double precision" "$LINENO" 5
|
Chris@42
|
3747 fi
|
Chris@42
|
3748 have_fma="yes"
|
Chris@42
|
3749 fi
|
Chris@42
|
3750 if test "$have_avx2" = "yes"; then
|
Chris@42
|
3751 HAVE_AVX2_TRUE=
|
Chris@42
|
3752 HAVE_AVX2_FALSE='#'
|
Chris@42
|
3753 else
|
Chris@42
|
3754 HAVE_AVX2_TRUE='#'
|
Chris@42
|
3755 HAVE_AVX2_FALSE=
|
Chris@42
|
3756 fi
|
Chris@42
|
3757
|
Chris@42
|
3758
|
Chris@42
|
3759 # Check whether --enable-avx512 was given.
|
Chris@42
|
3760 if test "${enable_avx512+set}" = set; then :
|
Chris@42
|
3761 enableval=$enable_avx512; have_avx512=$enableval
|
Chris@42
|
3762 else
|
Chris@42
|
3763 have_avx512=no
|
Chris@42
|
3764 fi
|
Chris@42
|
3765
|
Chris@42
|
3766 if test "$have_avx512" = "yes"; then
|
Chris@42
|
3767
|
Chris@42
|
3768 $as_echo "#define HAVE_AVX512 1" >>confdefs.h
|
Chris@42
|
3769
|
Chris@42
|
3770 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
|
Chris@42
|
3771 as_fn_error $? "AVX512 requires single or double precision" "$LINENO" 5
|
Chris@42
|
3772 fi
|
Chris@42
|
3773 have_fma="yes"
|
Chris@42
|
3774 fi
|
Chris@42
|
3775 if test "$have_avx512" = "yes"; then
|
Chris@42
|
3776 HAVE_AVX512_TRUE=
|
Chris@42
|
3777 HAVE_AVX512_FALSE='#'
|
Chris@42
|
3778 else
|
Chris@42
|
3779 HAVE_AVX512_TRUE='#'
|
Chris@42
|
3780 HAVE_AVX512_FALSE=
|
Chris@42
|
3781 fi
|
Chris@42
|
3782
|
Chris@42
|
3783
|
Chris@42
|
3784 # Check whether --enable-avx-128-fma was given.
|
Chris@42
|
3785 if test "${enable_avx_128_fma+set}" = set; then :
|
Chris@42
|
3786 enableval=$enable_avx_128_fma; have_avx_128_fma=$enableval
|
Chris@42
|
3787 else
|
Chris@42
|
3788 have_avx_128_fma=no
|
Chris@42
|
3789 fi
|
Chris@42
|
3790
|
Chris@42
|
3791 if test "$have_avx_128_fma" = "yes"; then
|
Chris@42
|
3792
|
Chris@42
|
3793 $as_echo "#define HAVE_AVX_128_FMA 1" >>confdefs.h
|
Chris@42
|
3794
|
Chris@42
|
3795 AVX_128_FMA_CFLAGS="${AVX_CFLAGS} -mfma4"
|
Chris@42
|
3796
|
Chris@42
|
3797 fi
|
Chris@42
|
3798 if test "$have_avx_128_fma" = "yes"; then
|
Chris@42
|
3799 HAVE_AVX_128_FMA_TRUE=
|
Chris@42
|
3800 HAVE_AVX_128_FMA_FALSE='#'
|
Chris@42
|
3801 else
|
Chris@42
|
3802 HAVE_AVX_128_FMA_TRUE='#'
|
Chris@42
|
3803 HAVE_AVX_128_FMA_FALSE=
|
Chris@42
|
3804 fi
|
Chris@42
|
3805
|
Chris@42
|
3806
|
Chris@42
|
3807 # Check whether --enable-kcvi was given.
|
Chris@42
|
3808 if test "${enable_kcvi+set}" = set; then :
|
Chris@42
|
3809 enableval=$enable_kcvi; have_kcvi=$enableval
|
Chris@42
|
3810 else
|
Chris@42
|
3811 have_kcvi=no
|
Chris@42
|
3812 fi
|
Chris@42
|
3813
|
Chris@42
|
3814 if test "$have_kcvi" = "yes"; then
|
Chris@42
|
3815
|
Chris@42
|
3816 $as_echo "#define HAVE_KCVI 1" >>confdefs.h
|
Chris@42
|
3817
|
Chris@42
|
3818 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
|
Chris@42
|
3819 as_fn_error $? "Knights Corner vector instructions requires single or double precision" "$LINENO" 5
|
Chris@42
|
3820 fi
|
Chris@42
|
3821 fi
|
Chris@42
|
3822 if test "$have_kcvi" = "yes"; then
|
Chris@42
|
3823 HAVE_KCVI_TRUE=
|
Chris@42
|
3824 HAVE_KCVI_FALSE='#'
|
Chris@42
|
3825 else
|
Chris@42
|
3826 HAVE_KCVI_TRUE='#'
|
Chris@42
|
3827 HAVE_KCVI_FALSE=
|
Chris@42
|
3828 fi
|
Chris@42
|
3829
|
Chris@42
|
3830
|
Chris@42
|
3831 # Check whether --enable-altivec was given.
|
Chris@42
|
3832 if test "${enable_altivec+set}" = set; then :
|
Chris@42
|
3833 enableval=$enable_altivec; have_altivec=$enableval
|
Chris@42
|
3834 else
|
Chris@42
|
3835 have_altivec=no
|
Chris@42
|
3836 fi
|
Chris@42
|
3837
|
Chris@42
|
3838 if test "$have_altivec" = "yes"; then
|
Chris@42
|
3839
|
Chris@42
|
3840 $as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h
|
Chris@42
|
3841
|
Chris@42
|
3842 if test "$PRECISION" != "s"; then
|
Chris@42
|
3843 as_fn_error $? "Altivec requires single precision" "$LINENO" 5
|
Chris@42
|
3844 fi
|
Chris@42
|
3845 fi
|
Chris@42
|
3846 if test "$have_altivec" = "yes"; then
|
Chris@42
|
3847 HAVE_ALTIVEC_TRUE=
|
Chris@42
|
3848 HAVE_ALTIVEC_FALSE='#'
|
Chris@42
|
3849 else
|
Chris@42
|
3850 HAVE_ALTIVEC_TRUE='#'
|
Chris@42
|
3851 HAVE_ALTIVEC_FALSE=
|
Chris@42
|
3852 fi
|
Chris@42
|
3853
|
Chris@42
|
3854
|
Chris@42
|
3855 # Check whether --enable-vsx was given.
|
Chris@42
|
3856 if test "${enable_vsx+set}" = set; then :
|
Chris@42
|
3857 enableval=$enable_vsx; have_vsx=$enableval
|
Chris@42
|
3858 else
|
Chris@42
|
3859 have_vsx=no
|
Chris@42
|
3860 fi
|
Chris@42
|
3861
|
Chris@42
|
3862 if test "$have_vsx" = "yes"; then
|
Chris@42
|
3863
|
Chris@42
|
3864 $as_echo "#define HAVE_VSX 1" >>confdefs.h
|
Chris@42
|
3865
|
Chris@42
|
3866 fi
|
Chris@42
|
3867 if test "$have_vsx" = "yes"; then
|
Chris@42
|
3868 HAVE_VSX_TRUE=
|
Chris@42
|
3869 HAVE_VSX_FALSE='#'
|
Chris@42
|
3870 else
|
Chris@42
|
3871 HAVE_VSX_TRUE='#'
|
Chris@42
|
3872 HAVE_VSX_FALSE=
|
Chris@42
|
3873 fi
|
Chris@42
|
3874
|
Chris@42
|
3875
|
Chris@42
|
3876 # Check whether --enable-neon was given.
|
Chris@42
|
3877 if test "${enable_neon+set}" = set; then :
|
Chris@42
|
3878 enableval=$enable_neon; have_neon=$enableval
|
Chris@42
|
3879 else
|
Chris@42
|
3880 have_neon=no
|
Chris@42
|
3881 fi
|
Chris@42
|
3882
|
Chris@42
|
3883 if test "$have_neon" = "yes"; then
|
Chris@42
|
3884
|
Chris@42
|
3885 $as_echo "#define HAVE_NEON 1" >>confdefs.h
|
Chris@42
|
3886
|
Chris@42
|
3887 case "${host_cpu}" in
|
Chris@42
|
3888 aarch64)
|
Chris@42
|
3889 ;;
|
Chris@42
|
3890 *)
|
Chris@42
|
3891 if test "$PRECISION" != "s"; then
|
Chris@42
|
3892 as_fn_error $? "NEON requires single precision" "$LINENO" 5
|
Chris@42
|
3893 fi
|
Chris@42
|
3894 ;;
|
Chris@42
|
3895 esac
|
Chris@42
|
3896 fi
|
Chris@42
|
3897 if test "$have_neon" = "yes"; then
|
Chris@42
|
3898 HAVE_NEON_TRUE=
|
Chris@42
|
3899 HAVE_NEON_FALSE='#'
|
Chris@42
|
3900 else
|
Chris@42
|
3901 HAVE_NEON_TRUE='#'
|
Chris@42
|
3902 HAVE_NEON_FALSE=
|
Chris@42
|
3903 fi
|
Chris@42
|
3904
|
Chris@42
|
3905
|
Chris@42
|
3906 # Check whether --enable-armv8cyclecounter was given.
|
Chris@42
|
3907 if test "${enable_armv8cyclecounter+set}" = set; then :
|
Chris@42
|
3908 enableval=$enable_armv8cyclecounter; have_armv8cyclecounter=$enableval
|
Chris@42
|
3909 fi
|
Chris@42
|
3910
|
Chris@42
|
3911 if test "$have_armv8cyclecounter"x = "yes"x; then
|
Chris@42
|
3912
|
Chris@42
|
3913 $as_echo "#define HAVE_ARMV8CC 1" >>confdefs.h
|
Chris@42
|
3914
|
Chris@42
|
3915 fi
|
Chris@42
|
3916
|
Chris@42
|
3917 # Check whether --enable-generic-simd128 was given.
|
Chris@42
|
3918 if test "${enable_generic_simd128+set}" = set; then :
|
Chris@42
|
3919 enableval=$enable_generic_simd128; have_generic_simd128=$enableval
|
Chris@42
|
3920 else
|
Chris@42
|
3921 have_generic_simd128=no
|
Chris@42
|
3922 fi
|
Chris@42
|
3923
|
Chris@42
|
3924 if test "$have_generic_simd128" = "yes"; then
|
Chris@42
|
3925
|
Chris@42
|
3926 $as_echo "#define HAVE_GENERIC_SIMD128 1" >>confdefs.h
|
Chris@42
|
3927
|
Chris@42
|
3928 fi
|
Chris@42
|
3929 if test "$have_generic_simd128" = "yes"; then
|
Chris@42
|
3930 HAVE_GENERIC_SIMD128_TRUE=
|
Chris@42
|
3931 HAVE_GENERIC_SIMD128_FALSE='#'
|
Chris@42
|
3932 else
|
Chris@42
|
3933 HAVE_GENERIC_SIMD128_TRUE='#'
|
Chris@42
|
3934 HAVE_GENERIC_SIMD128_FALSE=
|
Chris@42
|
3935 fi
|
Chris@42
|
3936
|
Chris@42
|
3937
|
Chris@42
|
3938 # Check whether --enable-generic-simd256 was given.
|
Chris@42
|
3939 if test "${enable_generic_simd256+set}" = set; then :
|
Chris@42
|
3940 enableval=$enable_generic_simd256; have_generic_simd256=$enableval
|
Chris@42
|
3941 else
|
Chris@42
|
3942 have_generic_simd256=no
|
Chris@42
|
3943 fi
|
Chris@42
|
3944
|
Chris@42
|
3945 if test "$have_generic_simd256" = "yes"; then
|
Chris@42
|
3946
|
Chris@42
|
3947 $as_echo "#define HAVE_GENERIC_SIMD256 1" >>confdefs.h
|
Chris@42
|
3948
|
Chris@42
|
3949 fi
|
Chris@42
|
3950 if test "$have_generic_simd256" = "yes"; then
|
Chris@42
|
3951 HAVE_GENERIC_SIMD256_TRUE=
|
Chris@42
|
3952 HAVE_GENERIC_SIMD256_FALSE='#'
|
Chris@42
|
3953 else
|
Chris@42
|
3954 HAVE_GENERIC_SIMD256_TRUE='#'
|
Chris@42
|
3955 HAVE_GENERIC_SIMD256_FALSE=
|
Chris@42
|
3956 fi
|
Chris@42
|
3957
|
Chris@42
|
3958
|
Chris@42
|
3959
|
Chris@42
|
3960
|
Chris@42
|
3961
|
Chris@42
|
3962 # Check whether --with-slow-timer was given.
|
Chris@42
|
3963 if test "${with_slow_timer+set}" = set; then :
|
Chris@42
|
3964 withval=$with_slow_timer; with_slow_timer=$withval
|
Chris@42
|
3965 else
|
Chris@42
|
3966 with_slow_timer=no
|
Chris@42
|
3967 fi
|
Chris@42
|
3968
|
Chris@42
|
3969 if test "$with_slow_timer" = "yes"; then
|
Chris@42
|
3970
|
Chris@42
|
3971 $as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h
|
Chris@42
|
3972
|
Chris@42
|
3973 fi
|
Chris@42
|
3974
|
Chris@42
|
3975 # Check whether --enable-mips_zbus_timer was given.
|
Chris@42
|
3976 if test "${enable_mips_zbus_timer+set}" = set; then :
|
Chris@42
|
3977 enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval
|
Chris@42
|
3978 else
|
Chris@42
|
3979 have_mips_zbus_timer=no
|
Chris@42
|
3980 fi
|
Chris@42
|
3981
|
Chris@42
|
3982 if test "$have_mips_zbus_timer" = "yes"; then
|
Chris@42
|
3983
|
Chris@42
|
3984 $as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h
|
Chris@42
|
3985
|
Chris@42
|
3986 fi
|
Chris@42
|
3987
|
Chris@42
|
3988
|
Chris@42
|
3989 # Check whether --with-our-malloc was given.
|
Chris@42
|
3990 if test "${with_our_malloc+set}" = set; then :
|
Chris@42
|
3991 withval=$with_our_malloc; with_our_malloc=$withval
|
Chris@42
|
3992 else
|
Chris@42
|
3993 with_our_malloc=no
|
Chris@42
|
3994 fi
|
Chris@42
|
3995
|
Chris@42
|
3996
|
Chris@42
|
3997 # Check whether --with-our-malloc16 was given.
|
Chris@42
|
3998 if test "${with_our_malloc16+set}" = set; then :
|
Chris@42
|
3999 withval=$with_our_malloc16; with_our_malloc=$withval
|
Chris@42
|
4000 fi
|
Chris@42
|
4001
|
Chris@42
|
4002 if test "$with_our_malloc" = "yes"; then
|
Chris@42
|
4003
|
Chris@42
|
4004 $as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h
|
Chris@42
|
4005
|
Chris@42
|
4006 fi
|
Chris@42
|
4007
|
Chris@42
|
4008
|
Chris@42
|
4009 # Check whether --with-windows-f77-mangling was given.
|
Chris@42
|
4010 if test "${with_windows_f77_mangling+set}" = set; then :
|
Chris@42
|
4011 withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval
|
Chris@42
|
4012 else
|
Chris@42
|
4013 with_windows_f77_mangling=no
|
Chris@42
|
4014 fi
|
Chris@42
|
4015
|
Chris@42
|
4016 if test "$with_windows_f77_mangling" = "yes"; then
|
Chris@42
|
4017
|
Chris@42
|
4018 $as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h
|
Chris@42
|
4019
|
Chris@42
|
4020 fi
|
Chris@42
|
4021
|
Chris@42
|
4022
|
Chris@42
|
4023 # Check whether --with-incoming-stack-boundary was given.
|
Chris@42
|
4024 if test "${with_incoming_stack_boundary+set}" = set; then :
|
Chris@42
|
4025 withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval
|
Chris@42
|
4026 else
|
Chris@42
|
4027 with_incoming_stack_boundary=no
|
Chris@42
|
4028 fi
|
Chris@42
|
4029
|
Chris@42
|
4030
|
Chris@42
|
4031
|
Chris@42
|
4032 # Check whether --enable-fma was given.
|
Chris@42
|
4033 if test "${enable_fma+set}" = set; then :
|
Chris@42
|
4034 enableval=$enable_fma; have_fma=$enableval
|
Chris@42
|
4035 fi
|
Chris@42
|
4036
|
Chris@42
|
4037 if test "$have_fma"x = "yes"x; then
|
Chris@42
|
4038
|
Chris@42
|
4039 $as_echo "#define HAVE_FMA 1" >>confdefs.h
|
Chris@42
|
4040
|
Chris@42
|
4041 fi
|
Chris@42
|
4042
|
Chris@42
|
4043 case "$PRECISION" in
|
Chris@42
|
4044 s) PREC_SUFFIX=f;;
|
Chris@42
|
4045 d) PREC_SUFFIX=;;
|
Chris@42
|
4046 l) PREC_SUFFIX=l;;
|
Chris@42
|
4047 q) PREC_SUFFIX=q;;
|
Chris@42
|
4048 esac
|
Chris@42
|
4049
|
Chris@42
|
4050
|
Chris@42
|
4051 ac_ext=c
|
Chris@42
|
4052 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
4056 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
4057 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
Chris@42
|
4058 set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
Chris@42
|
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
4060 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
4061 if ${ac_cv_prog_CC+:} false; then :
|
Chris@42
|
4062 $as_echo_n "(cached) " >&6
|
Chris@42
|
4063 else
|
Chris@42
|
4064 if test -n "$CC"; then
|
Chris@42
|
4065 ac_cv_prog_CC="$CC" # Let the user override the test.
|
Chris@42
|
4066 else
|
Chris@42
|
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
4068 for as_dir in $PATH
|
Chris@42
|
4069 do
|
Chris@42
|
4070 IFS=$as_save_IFS
|
Chris@42
|
4071 test -z "$as_dir" && as_dir=.
|
Chris@42
|
4072 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
4074 ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
Chris@42
|
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
4076 break 2
|
Chris@42
|
4077 fi
|
Chris@42
|
4078 done
|
Chris@42
|
4079 done
|
Chris@42
|
4080 IFS=$as_save_IFS
|
Chris@42
|
4081
|
Chris@42
|
4082 fi
|
Chris@42
|
4083 fi
|
Chris@42
|
4084 CC=$ac_cv_prog_CC
|
Chris@42
|
4085 if test -n "$CC"; then
|
Chris@42
|
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
Chris@42
|
4087 $as_echo "$CC" >&6; }
|
Chris@42
|
4088 else
|
Chris@42
|
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
4090 $as_echo "no" >&6; }
|
Chris@42
|
4091 fi
|
Chris@42
|
4092
|
Chris@42
|
4093
|
Chris@42
|
4094 fi
|
Chris@42
|
4095 if test -z "$ac_cv_prog_CC"; then
|
Chris@42
|
4096 ac_ct_CC=$CC
|
Chris@42
|
4097 # Extract the first word of "gcc", so it can be a program name with args.
|
Chris@42
|
4098 set dummy gcc; ac_word=$2
|
Chris@42
|
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
4100 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
4101 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
Chris@42
|
4102 $as_echo_n "(cached) " >&6
|
Chris@42
|
4103 else
|
Chris@42
|
4104 if test -n "$ac_ct_CC"; then
|
Chris@42
|
4105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
Chris@42
|
4106 else
|
Chris@42
|
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
4108 for as_dir in $PATH
|
Chris@42
|
4109 do
|
Chris@42
|
4110 IFS=$as_save_IFS
|
Chris@42
|
4111 test -z "$as_dir" && as_dir=.
|
Chris@42
|
4112 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
4114 ac_cv_prog_ac_ct_CC="gcc"
|
Chris@42
|
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
4116 break 2
|
Chris@42
|
4117 fi
|
Chris@42
|
4118 done
|
Chris@42
|
4119 done
|
Chris@42
|
4120 IFS=$as_save_IFS
|
Chris@42
|
4121
|
Chris@42
|
4122 fi
|
Chris@42
|
4123 fi
|
Chris@42
|
4124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
Chris@42
|
4125 if test -n "$ac_ct_CC"; then
|
Chris@42
|
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
Chris@42
|
4127 $as_echo "$ac_ct_CC" >&6; }
|
Chris@42
|
4128 else
|
Chris@42
|
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
4130 $as_echo "no" >&6; }
|
Chris@42
|
4131 fi
|
Chris@42
|
4132
|
Chris@42
|
4133 if test "x$ac_ct_CC" = x; then
|
Chris@42
|
4134 CC=""
|
Chris@42
|
4135 else
|
Chris@42
|
4136 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
4137 yes:)
|
Chris@42
|
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
4139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
4140 ac_tool_warned=yes ;;
|
Chris@42
|
4141 esac
|
Chris@42
|
4142 CC=$ac_ct_CC
|
Chris@42
|
4143 fi
|
Chris@42
|
4144 else
|
Chris@42
|
4145 CC="$ac_cv_prog_CC"
|
Chris@42
|
4146 fi
|
Chris@42
|
4147
|
Chris@42
|
4148 if test -z "$CC"; then
|
Chris@42
|
4149 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
4150 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
Chris@42
|
4151 set dummy ${ac_tool_prefix}cc; ac_word=$2
|
Chris@42
|
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
4153 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
4154 if ${ac_cv_prog_CC+:} false; then :
|
Chris@42
|
4155 $as_echo_n "(cached) " >&6
|
Chris@42
|
4156 else
|
Chris@42
|
4157 if test -n "$CC"; then
|
Chris@42
|
4158 ac_cv_prog_CC="$CC" # Let the user override the test.
|
Chris@42
|
4159 else
|
Chris@42
|
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
4161 for as_dir in $PATH
|
Chris@42
|
4162 do
|
Chris@42
|
4163 IFS=$as_save_IFS
|
Chris@42
|
4164 test -z "$as_dir" && as_dir=.
|
Chris@42
|
4165 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
4166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
4167 ac_cv_prog_CC="${ac_tool_prefix}cc"
|
Chris@42
|
4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
4169 break 2
|
Chris@42
|
4170 fi
|
Chris@42
|
4171 done
|
Chris@42
|
4172 done
|
Chris@42
|
4173 IFS=$as_save_IFS
|
Chris@42
|
4174
|
Chris@42
|
4175 fi
|
Chris@42
|
4176 fi
|
Chris@42
|
4177 CC=$ac_cv_prog_CC
|
Chris@42
|
4178 if test -n "$CC"; then
|
Chris@42
|
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
Chris@42
|
4180 $as_echo "$CC" >&6; }
|
Chris@42
|
4181 else
|
Chris@42
|
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
4183 $as_echo "no" >&6; }
|
Chris@42
|
4184 fi
|
Chris@42
|
4185
|
Chris@42
|
4186
|
Chris@42
|
4187 fi
|
Chris@42
|
4188 fi
|
Chris@42
|
4189 if test -z "$CC"; then
|
Chris@42
|
4190 # Extract the first word of "cc", so it can be a program name with args.
|
Chris@42
|
4191 set dummy cc; ac_word=$2
|
Chris@42
|
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
4193 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
4194 if ${ac_cv_prog_CC+:} false; then :
|
Chris@42
|
4195 $as_echo_n "(cached) " >&6
|
Chris@42
|
4196 else
|
Chris@42
|
4197 if test -n "$CC"; then
|
Chris@42
|
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
|
Chris@42
|
4199 else
|
Chris@42
|
4200 ac_prog_rejected=no
|
Chris@42
|
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
4202 for as_dir in $PATH
|
Chris@42
|
4203 do
|
Chris@42
|
4204 IFS=$as_save_IFS
|
Chris@42
|
4205 test -z "$as_dir" && as_dir=.
|
Chris@42
|
4206 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
4207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
4208 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
Chris@42
|
4209 ac_prog_rejected=yes
|
Chris@42
|
4210 continue
|
Chris@42
|
4211 fi
|
Chris@42
|
4212 ac_cv_prog_CC="cc"
|
Chris@42
|
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
4214 break 2
|
Chris@42
|
4215 fi
|
Chris@42
|
4216 done
|
Chris@42
|
4217 done
|
Chris@42
|
4218 IFS=$as_save_IFS
|
Chris@42
|
4219
|
Chris@42
|
4220 if test $ac_prog_rejected = yes; then
|
Chris@42
|
4221 # We found a bogon in the path, so make sure we never use it.
|
Chris@42
|
4222 set dummy $ac_cv_prog_CC
|
Chris@42
|
4223 shift
|
Chris@42
|
4224 if test $# != 0; then
|
Chris@42
|
4225 # We chose a different compiler from the bogus one.
|
Chris@42
|
4226 # However, it has the same basename, so the bogon will be chosen
|
Chris@42
|
4227 # first if we set CC to just the basename; use the full file name.
|
Chris@42
|
4228 shift
|
Chris@42
|
4229 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
Chris@42
|
4230 fi
|
Chris@42
|
4231 fi
|
Chris@42
|
4232 fi
|
Chris@42
|
4233 fi
|
Chris@42
|
4234 CC=$ac_cv_prog_CC
|
Chris@42
|
4235 if test -n "$CC"; then
|
Chris@42
|
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
Chris@42
|
4237 $as_echo "$CC" >&6; }
|
Chris@42
|
4238 else
|
Chris@42
|
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
4240 $as_echo "no" >&6; }
|
Chris@42
|
4241 fi
|
Chris@42
|
4242
|
Chris@42
|
4243
|
Chris@42
|
4244 fi
|
Chris@42
|
4245 if test -z "$CC"; then
|
Chris@42
|
4246 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
4247 for ac_prog in cl.exe
|
Chris@42
|
4248 do
|
Chris@42
|
4249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
Chris@42
|
4250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
Chris@42
|
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
4252 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
4253 if ${ac_cv_prog_CC+:} false; then :
|
Chris@42
|
4254 $as_echo_n "(cached) " >&6
|
Chris@42
|
4255 else
|
Chris@42
|
4256 if test -n "$CC"; then
|
Chris@42
|
4257 ac_cv_prog_CC="$CC" # Let the user override the test.
|
Chris@42
|
4258 else
|
Chris@42
|
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
4260 for as_dir in $PATH
|
Chris@42
|
4261 do
|
Chris@42
|
4262 IFS=$as_save_IFS
|
Chris@42
|
4263 test -z "$as_dir" && as_dir=.
|
Chris@42
|
4264 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
4266 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
Chris@42
|
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
4268 break 2
|
Chris@42
|
4269 fi
|
Chris@42
|
4270 done
|
Chris@42
|
4271 done
|
Chris@42
|
4272 IFS=$as_save_IFS
|
Chris@42
|
4273
|
Chris@42
|
4274 fi
|
Chris@42
|
4275 fi
|
Chris@42
|
4276 CC=$ac_cv_prog_CC
|
Chris@42
|
4277 if test -n "$CC"; then
|
Chris@42
|
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
Chris@42
|
4279 $as_echo "$CC" >&6; }
|
Chris@42
|
4280 else
|
Chris@42
|
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
4282 $as_echo "no" >&6; }
|
Chris@42
|
4283 fi
|
Chris@42
|
4284
|
Chris@42
|
4285
|
Chris@42
|
4286 test -n "$CC" && break
|
Chris@42
|
4287 done
|
Chris@42
|
4288 fi
|
Chris@42
|
4289 if test -z "$CC"; then
|
Chris@42
|
4290 ac_ct_CC=$CC
|
Chris@42
|
4291 for ac_prog in cl.exe
|
Chris@42
|
4292 do
|
Chris@42
|
4293 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
Chris@42
|
4294 set dummy $ac_prog; ac_word=$2
|
Chris@42
|
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
4296 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
4297 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
Chris@42
|
4298 $as_echo_n "(cached) " >&6
|
Chris@42
|
4299 else
|
Chris@42
|
4300 if test -n "$ac_ct_CC"; then
|
Chris@42
|
4301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
Chris@42
|
4302 else
|
Chris@42
|
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
4304 for as_dir in $PATH
|
Chris@42
|
4305 do
|
Chris@42
|
4306 IFS=$as_save_IFS
|
Chris@42
|
4307 test -z "$as_dir" && as_dir=.
|
Chris@42
|
4308 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
4310 ac_cv_prog_ac_ct_CC="$ac_prog"
|
Chris@42
|
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
4312 break 2
|
Chris@42
|
4313 fi
|
Chris@42
|
4314 done
|
Chris@42
|
4315 done
|
Chris@42
|
4316 IFS=$as_save_IFS
|
Chris@42
|
4317
|
Chris@42
|
4318 fi
|
Chris@42
|
4319 fi
|
Chris@42
|
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
Chris@42
|
4321 if test -n "$ac_ct_CC"; then
|
Chris@42
|
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
Chris@42
|
4323 $as_echo "$ac_ct_CC" >&6; }
|
Chris@42
|
4324 else
|
Chris@42
|
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
4326 $as_echo "no" >&6; }
|
Chris@42
|
4327 fi
|
Chris@42
|
4328
|
Chris@42
|
4329
|
Chris@42
|
4330 test -n "$ac_ct_CC" && break
|
Chris@42
|
4331 done
|
Chris@42
|
4332
|
Chris@42
|
4333 if test "x$ac_ct_CC" = x; then
|
Chris@42
|
4334 CC=""
|
Chris@42
|
4335 else
|
Chris@42
|
4336 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
4337 yes:)
|
Chris@42
|
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
4339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
4340 ac_tool_warned=yes ;;
|
Chris@42
|
4341 esac
|
Chris@42
|
4342 CC=$ac_ct_CC
|
Chris@42
|
4343 fi
|
Chris@42
|
4344 fi
|
Chris@42
|
4345
|
Chris@42
|
4346 fi
|
Chris@42
|
4347
|
Chris@42
|
4348
|
Chris@42
|
4349 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
4350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
4351 as_fn_error $? "no acceptable C compiler found in \$PATH
|
Chris@42
|
4352 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
4353
|
Chris@42
|
4354 # Provide some information about the compiler.
|
Chris@42
|
4355 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
Chris@42
|
4356 set X $ac_compile
|
Chris@42
|
4357 ac_compiler=$2
|
Chris@42
|
4358 for ac_option in --version -v -V -qversion; do
|
Chris@42
|
4359 { { ac_try="$ac_compiler $ac_option >&5"
|
Chris@42
|
4360 case "(($ac_try" in
|
Chris@42
|
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
4362 *) ac_try_echo=$ac_try;;
|
Chris@42
|
4363 esac
|
Chris@42
|
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
4365 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
4366 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
Chris@42
|
4367 ac_status=$?
|
Chris@42
|
4368 if test -s conftest.err; then
|
Chris@42
|
4369 sed '10a\
|
Chris@42
|
4370 ... rest of stderr output deleted ...
|
Chris@42
|
4371 10q' conftest.err >conftest.er1
|
Chris@42
|
4372 cat conftest.er1 >&5
|
Chris@42
|
4373 fi
|
Chris@42
|
4374 rm -f conftest.er1 conftest.err
|
Chris@42
|
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
4376 test $ac_status = 0; }
|
Chris@42
|
4377 done
|
Chris@42
|
4378
|
Chris@42
|
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
4380 /* end confdefs.h. */
|
Chris@42
|
4381
|
Chris@42
|
4382 int
|
Chris@42
|
4383 main ()
|
Chris@42
|
4384 {
|
Chris@42
|
4385
|
Chris@42
|
4386 ;
|
Chris@42
|
4387 return 0;
|
Chris@42
|
4388 }
|
Chris@42
|
4389 _ACEOF
|
Chris@42
|
4390 ac_clean_files_save=$ac_clean_files
|
Chris@42
|
4391 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
Chris@42
|
4392 # Try to create an executable without -o first, disregard a.out.
|
Chris@42
|
4393 # It will help us diagnose broken compilers, and finding out an intuition
|
Chris@42
|
4394 # of exeext.
|
Chris@42
|
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
Chris@42
|
4396 $as_echo_n "checking whether the C compiler works... " >&6; }
|
Chris@42
|
4397 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
Chris@42
|
4398
|
Chris@42
|
4399 # The possible output files:
|
Chris@42
|
4400 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
Chris@42
|
4401
|
Chris@42
|
4402 ac_rmfiles=
|
Chris@42
|
4403 for ac_file in $ac_files
|
Chris@42
|
4404 do
|
Chris@42
|
4405 case $ac_file in
|
Chris@42
|
4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
Chris@42
|
4407 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
Chris@42
|
4408 esac
|
Chris@42
|
4409 done
|
Chris@42
|
4410 rm -f $ac_rmfiles
|
Chris@42
|
4411
|
Chris@42
|
4412 if { { ac_try="$ac_link_default"
|
Chris@42
|
4413 case "(($ac_try" in
|
Chris@42
|
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
4415 *) ac_try_echo=$ac_try;;
|
Chris@42
|
4416 esac
|
Chris@42
|
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
4418 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
4419 (eval "$ac_link_default") 2>&5
|
Chris@42
|
4420 ac_status=$?
|
Chris@42
|
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
4422 test $ac_status = 0; }; then :
|
Chris@42
|
4423 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
Chris@42
|
4424 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
Chris@42
|
4425 # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
Chris@42
|
4426 # so that the user can short-circuit this test for compilers unknown to
|
Chris@42
|
4427 # Autoconf.
|
Chris@42
|
4428 for ac_file in $ac_files ''
|
Chris@42
|
4429 do
|
Chris@42
|
4430 test -f "$ac_file" || continue
|
Chris@42
|
4431 case $ac_file in
|
Chris@42
|
4432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
Chris@42
|
4433 ;;
|
Chris@42
|
4434 [ab].out )
|
Chris@42
|
4435 # We found the default executable, but exeext='' is most
|
Chris@42
|
4436 # certainly right.
|
Chris@42
|
4437 break;;
|
Chris@42
|
4438 *.* )
|
Chris@42
|
4439 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
Chris@42
|
4440 then :; else
|
Chris@42
|
4441 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
Chris@42
|
4442 fi
|
Chris@42
|
4443 # We set ac_cv_exeext here because the later test for it is not
|
Chris@42
|
4444 # safe: cross compilers may not add the suffix if given an `-o'
|
Chris@42
|
4445 # argument, so we may need to know it at that point already.
|
Chris@42
|
4446 # Even if this section looks crufty: it has the advantage of
|
Chris@42
|
4447 # actually working.
|
Chris@42
|
4448 break;;
|
Chris@42
|
4449 * )
|
Chris@42
|
4450 break;;
|
Chris@42
|
4451 esac
|
Chris@42
|
4452 done
|
Chris@42
|
4453 test "$ac_cv_exeext" = no && ac_cv_exeext=
|
Chris@42
|
4454
|
Chris@42
|
4455 else
|
Chris@42
|
4456 ac_file=''
|
Chris@42
|
4457 fi
|
Chris@42
|
4458 if test -z "$ac_file"; then :
|
Chris@42
|
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
4460 $as_echo "no" >&6; }
|
Chris@42
|
4461 $as_echo "$as_me: failed program was:" >&5
|
Chris@42
|
4462 sed 's/^/| /' conftest.$ac_ext >&5
|
Chris@42
|
4463
|
Chris@42
|
4464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
4465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
4466 as_fn_error 77 "C compiler cannot create executables
|
Chris@42
|
4467 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
4468 else
|
Chris@42
|
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
4470 $as_echo "yes" >&6; }
|
Chris@42
|
4471 fi
|
Chris@42
|
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
Chris@42
|
4473 $as_echo_n "checking for C compiler default output file name... " >&6; }
|
Chris@42
|
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
Chris@42
|
4475 $as_echo "$ac_file" >&6; }
|
Chris@42
|
4476 ac_exeext=$ac_cv_exeext
|
Chris@42
|
4477
|
Chris@42
|
4478 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
Chris@42
|
4479 ac_clean_files=$ac_clean_files_save
|
Chris@42
|
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
Chris@42
|
4481 $as_echo_n "checking for suffix of executables... " >&6; }
|
Chris@42
|
4482 if { { ac_try="$ac_link"
|
Chris@42
|
4483 case "(($ac_try" in
|
Chris@42
|
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
4485 *) ac_try_echo=$ac_try;;
|
Chris@42
|
4486 esac
|
Chris@42
|
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
4488 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
4489 (eval "$ac_link") 2>&5
|
Chris@42
|
4490 ac_status=$?
|
Chris@42
|
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
4492 test $ac_status = 0; }; then :
|
Chris@42
|
4493 # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
Chris@42
|
4494 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
Chris@42
|
4495 # work properly (i.e., refer to `conftest.exe'), while it won't with
|
Chris@42
|
4496 # `rm'.
|
Chris@42
|
4497 for ac_file in conftest.exe conftest conftest.*; do
|
Chris@42
|
4498 test -f "$ac_file" || continue
|
Chris@42
|
4499 case $ac_file in
|
Chris@42
|
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
Chris@42
|
4501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
Chris@42
|
4502 break;;
|
Chris@42
|
4503 * ) break;;
|
Chris@42
|
4504 esac
|
Chris@42
|
4505 done
|
Chris@42
|
4506 else
|
Chris@42
|
4507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
4508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
4509 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
Chris@42
|
4510 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
4511 fi
|
Chris@42
|
4512 rm -f conftest conftest$ac_cv_exeext
|
Chris@42
|
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
Chris@42
|
4514 $as_echo "$ac_cv_exeext" >&6; }
|
Chris@42
|
4515
|
Chris@42
|
4516 rm -f conftest.$ac_ext
|
Chris@42
|
4517 EXEEXT=$ac_cv_exeext
|
Chris@42
|
4518 ac_exeext=$EXEEXT
|
Chris@42
|
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
4520 /* end confdefs.h. */
|
Chris@42
|
4521 #include <stdio.h>
|
Chris@42
|
4522 int
|
Chris@42
|
4523 main ()
|
Chris@42
|
4524 {
|
Chris@42
|
4525 FILE *f = fopen ("conftest.out", "w");
|
Chris@42
|
4526 return ferror (f) || fclose (f) != 0;
|
Chris@42
|
4527
|
Chris@42
|
4528 ;
|
Chris@42
|
4529 return 0;
|
Chris@42
|
4530 }
|
Chris@42
|
4531 _ACEOF
|
Chris@42
|
4532 ac_clean_files="$ac_clean_files conftest.out"
|
Chris@42
|
4533 # Check that the compiler produces executables we can run. If not, either
|
Chris@42
|
4534 # the compiler is broken, or we cross compile.
|
Chris@42
|
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
Chris@42
|
4536 $as_echo_n "checking whether we are cross compiling... " >&6; }
|
Chris@42
|
4537 if test "$cross_compiling" != yes; then
|
Chris@42
|
4538 { { ac_try="$ac_link"
|
Chris@42
|
4539 case "(($ac_try" in
|
Chris@42
|
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
4541 *) ac_try_echo=$ac_try;;
|
Chris@42
|
4542 esac
|
Chris@42
|
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
4544 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
4545 (eval "$ac_link") 2>&5
|
Chris@42
|
4546 ac_status=$?
|
Chris@42
|
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
4548 test $ac_status = 0; }
|
Chris@42
|
4549 if { ac_try='./conftest$ac_cv_exeext'
|
Chris@42
|
4550 { { case "(($ac_try" in
|
Chris@42
|
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
4552 *) ac_try_echo=$ac_try;;
|
Chris@42
|
4553 esac
|
Chris@42
|
4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
4555 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
4556 (eval "$ac_try") 2>&5
|
Chris@42
|
4557 ac_status=$?
|
Chris@42
|
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
4559 test $ac_status = 0; }; }; then
|
Chris@42
|
4560 cross_compiling=no
|
Chris@42
|
4561 else
|
Chris@42
|
4562 if test "$cross_compiling" = maybe; then
|
Chris@42
|
4563 cross_compiling=yes
|
Chris@42
|
4564 else
|
Chris@42
|
4565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
4566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
4567 as_fn_error $? "cannot run C compiled programs.
|
Chris@42
|
4568 If you meant to cross compile, use \`--host'.
|
Chris@42
|
4569 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
4570 fi
|
Chris@42
|
4571 fi
|
Chris@42
|
4572 fi
|
Chris@42
|
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
Chris@42
|
4574 $as_echo "$cross_compiling" >&6; }
|
Chris@42
|
4575
|
Chris@42
|
4576 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
Chris@42
|
4577 ac_clean_files=$ac_clean_files_save
|
Chris@42
|
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
Chris@42
|
4579 $as_echo_n "checking for suffix of object files... " >&6; }
|
Chris@42
|
4580 if ${ac_cv_objext+:} false; then :
|
Chris@42
|
4581 $as_echo_n "(cached) " >&6
|
Chris@42
|
4582 else
|
Chris@42
|
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
4584 /* end confdefs.h. */
|
Chris@42
|
4585
|
Chris@42
|
4586 int
|
Chris@42
|
4587 main ()
|
Chris@42
|
4588 {
|
Chris@42
|
4589
|
Chris@42
|
4590 ;
|
Chris@42
|
4591 return 0;
|
Chris@42
|
4592 }
|
Chris@42
|
4593 _ACEOF
|
Chris@42
|
4594 rm -f conftest.o conftest.obj
|
Chris@42
|
4595 if { { ac_try="$ac_compile"
|
Chris@42
|
4596 case "(($ac_try" in
|
Chris@42
|
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
4598 *) ac_try_echo=$ac_try;;
|
Chris@42
|
4599 esac
|
Chris@42
|
4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
4601 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
4602 (eval "$ac_compile") 2>&5
|
Chris@42
|
4603 ac_status=$?
|
Chris@42
|
4604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
4605 test $ac_status = 0; }; then :
|
Chris@42
|
4606 for ac_file in conftest.o conftest.obj conftest.*; do
|
Chris@42
|
4607 test -f "$ac_file" || continue;
|
Chris@42
|
4608 case $ac_file in
|
Chris@42
|
4609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
Chris@42
|
4610 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
Chris@42
|
4611 break;;
|
Chris@42
|
4612 esac
|
Chris@42
|
4613 done
|
Chris@42
|
4614 else
|
Chris@42
|
4615 $as_echo "$as_me: failed program was:" >&5
|
Chris@42
|
4616 sed 's/^/| /' conftest.$ac_ext >&5
|
Chris@42
|
4617
|
Chris@42
|
4618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
4619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
4620 as_fn_error $? "cannot compute suffix of object files: cannot compile
|
Chris@42
|
4621 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
4622 fi
|
Chris@42
|
4623 rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
Chris@42
|
4624 fi
|
Chris@42
|
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
Chris@42
|
4626 $as_echo "$ac_cv_objext" >&6; }
|
Chris@42
|
4627 OBJEXT=$ac_cv_objext
|
Chris@42
|
4628 ac_objext=$OBJEXT
|
Chris@42
|
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
Chris@42
|
4630 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
Chris@42
|
4631 if ${ac_cv_c_compiler_gnu+:} false; then :
|
Chris@42
|
4632 $as_echo_n "(cached) " >&6
|
Chris@42
|
4633 else
|
Chris@42
|
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
4635 /* end confdefs.h. */
|
Chris@42
|
4636
|
Chris@42
|
4637 int
|
Chris@42
|
4638 main ()
|
Chris@42
|
4639 {
|
Chris@42
|
4640 #ifndef __GNUC__
|
Chris@42
|
4641 choke me
|
Chris@42
|
4642 #endif
|
Chris@42
|
4643
|
Chris@42
|
4644 ;
|
Chris@42
|
4645 return 0;
|
Chris@42
|
4646 }
|
Chris@42
|
4647 _ACEOF
|
Chris@42
|
4648 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
4649 ac_compiler_gnu=yes
|
Chris@42
|
4650 else
|
Chris@42
|
4651 ac_compiler_gnu=no
|
Chris@42
|
4652 fi
|
Chris@42
|
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
4654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
Chris@42
|
4655
|
Chris@42
|
4656 fi
|
Chris@42
|
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
Chris@42
|
4658 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
Chris@42
|
4659 if test $ac_compiler_gnu = yes; then
|
Chris@42
|
4660 GCC=yes
|
Chris@42
|
4661 else
|
Chris@42
|
4662 GCC=
|
Chris@42
|
4663 fi
|
Chris@42
|
4664 ac_test_CFLAGS=${CFLAGS+set}
|
Chris@42
|
4665 ac_save_CFLAGS=$CFLAGS
|
Chris@42
|
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
Chris@42
|
4667 $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
Chris@42
|
4668 if ${ac_cv_prog_cc_g+:} false; then :
|
Chris@42
|
4669 $as_echo_n "(cached) " >&6
|
Chris@42
|
4670 else
|
Chris@42
|
4671 ac_save_c_werror_flag=$ac_c_werror_flag
|
Chris@42
|
4672 ac_c_werror_flag=yes
|
Chris@42
|
4673 ac_cv_prog_cc_g=no
|
Chris@42
|
4674 CFLAGS="-g"
|
Chris@42
|
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
4676 /* end confdefs.h. */
|
Chris@42
|
4677
|
Chris@42
|
4678 int
|
Chris@42
|
4679 main ()
|
Chris@42
|
4680 {
|
Chris@42
|
4681
|
Chris@42
|
4682 ;
|
Chris@42
|
4683 return 0;
|
Chris@42
|
4684 }
|
Chris@42
|
4685 _ACEOF
|
Chris@42
|
4686 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
4687 ac_cv_prog_cc_g=yes
|
Chris@42
|
4688 else
|
Chris@42
|
4689 CFLAGS=""
|
Chris@42
|
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
4691 /* end confdefs.h. */
|
Chris@42
|
4692
|
Chris@42
|
4693 int
|
Chris@42
|
4694 main ()
|
Chris@42
|
4695 {
|
Chris@42
|
4696
|
Chris@42
|
4697 ;
|
Chris@42
|
4698 return 0;
|
Chris@42
|
4699 }
|
Chris@42
|
4700 _ACEOF
|
Chris@42
|
4701 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
4702
|
Chris@42
|
4703 else
|
Chris@42
|
4704 ac_c_werror_flag=$ac_save_c_werror_flag
|
Chris@42
|
4705 CFLAGS="-g"
|
Chris@42
|
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
4707 /* end confdefs.h. */
|
Chris@42
|
4708
|
Chris@42
|
4709 int
|
Chris@42
|
4710 main ()
|
Chris@42
|
4711 {
|
Chris@42
|
4712
|
Chris@42
|
4713 ;
|
Chris@42
|
4714 return 0;
|
Chris@42
|
4715 }
|
Chris@42
|
4716 _ACEOF
|
Chris@42
|
4717 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
4718 ac_cv_prog_cc_g=yes
|
Chris@42
|
4719 fi
|
Chris@42
|
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
4721 fi
|
Chris@42
|
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
4723 fi
|
Chris@42
|
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
4725 ac_c_werror_flag=$ac_save_c_werror_flag
|
Chris@42
|
4726 fi
|
Chris@42
|
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
Chris@42
|
4728 $as_echo "$ac_cv_prog_cc_g" >&6; }
|
Chris@42
|
4729 if test "$ac_test_CFLAGS" = set; then
|
Chris@42
|
4730 CFLAGS=$ac_save_CFLAGS
|
Chris@42
|
4731 elif test $ac_cv_prog_cc_g = yes; then
|
Chris@42
|
4732 if test "$GCC" = yes; then
|
Chris@42
|
4733 CFLAGS="-g -O2"
|
Chris@42
|
4734 else
|
Chris@42
|
4735 CFLAGS="-g"
|
Chris@42
|
4736 fi
|
Chris@42
|
4737 else
|
Chris@42
|
4738 if test "$GCC" = yes; then
|
Chris@42
|
4739 CFLAGS="-O2"
|
Chris@42
|
4740 else
|
Chris@42
|
4741 CFLAGS=
|
Chris@42
|
4742 fi
|
Chris@42
|
4743 fi
|
Chris@42
|
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
Chris@42
|
4745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
Chris@42
|
4746 if ${ac_cv_prog_cc_c89+:} false; then :
|
Chris@42
|
4747 $as_echo_n "(cached) " >&6
|
Chris@42
|
4748 else
|
Chris@42
|
4749 ac_cv_prog_cc_c89=no
|
Chris@42
|
4750 ac_save_CC=$CC
|
Chris@42
|
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
4752 /* end confdefs.h. */
|
Chris@42
|
4753 #include <stdarg.h>
|
Chris@42
|
4754 #include <stdio.h>
|
Chris@42
|
4755 struct stat;
|
Chris@42
|
4756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
Chris@42
|
4757 struct buf { int x; };
|
Chris@42
|
4758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
Chris@42
|
4759 static char *e (p, i)
|
Chris@42
|
4760 char **p;
|
Chris@42
|
4761 int i;
|
Chris@42
|
4762 {
|
Chris@42
|
4763 return p[i];
|
Chris@42
|
4764 }
|
Chris@42
|
4765 static char *f (char * (*g) (char **, int), char **p, ...)
|
Chris@42
|
4766 {
|
Chris@42
|
4767 char *s;
|
Chris@42
|
4768 va_list v;
|
Chris@42
|
4769 va_start (v,p);
|
Chris@42
|
4770 s = g (p, va_arg (v,int));
|
Chris@42
|
4771 va_end (v);
|
Chris@42
|
4772 return s;
|
Chris@42
|
4773 }
|
Chris@42
|
4774
|
Chris@42
|
4775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
Chris@42
|
4776 function prototypes and stuff, but not '\xHH' hex character constants.
|
Chris@42
|
4777 These don't provoke an error unfortunately, instead are silently treated
|
Chris@42
|
4778 as 'x'. The following induces an error, until -std is added to get
|
Chris@42
|
4779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
Chris@42
|
4780 array size at least. It's necessary to write '\x00'==0 to get something
|
Chris@42
|
4781 that's true only with -std. */
|
Chris@42
|
4782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
Chris@42
|
4783
|
Chris@42
|
4784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
Chris@42
|
4785 inside strings and character constants. */
|
Chris@42
|
4786 #define FOO(x) 'x'
|
Chris@42
|
4787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
Chris@42
|
4788
|
Chris@42
|
4789 int test (int i, double x);
|
Chris@42
|
4790 struct s1 {int (*f) (int a);};
|
Chris@42
|
4791 struct s2 {int (*f) (double a);};
|
Chris@42
|
4792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
Chris@42
|
4793 int argc;
|
Chris@42
|
4794 char **argv;
|
Chris@42
|
4795 int
|
Chris@42
|
4796 main ()
|
Chris@42
|
4797 {
|
Chris@42
|
4798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
Chris@42
|
4799 ;
|
Chris@42
|
4800 return 0;
|
Chris@42
|
4801 }
|
Chris@42
|
4802 _ACEOF
|
Chris@42
|
4803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
Chris@42
|
4804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
Chris@42
|
4805 do
|
Chris@42
|
4806 CC="$ac_save_CC $ac_arg"
|
Chris@42
|
4807 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
4808 ac_cv_prog_cc_c89=$ac_arg
|
Chris@42
|
4809 fi
|
Chris@42
|
4810 rm -f core conftest.err conftest.$ac_objext
|
Chris@42
|
4811 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
Chris@42
|
4812 done
|
Chris@42
|
4813 rm -f conftest.$ac_ext
|
Chris@42
|
4814 CC=$ac_save_CC
|
Chris@42
|
4815
|
Chris@42
|
4816 fi
|
Chris@42
|
4817 # AC_CACHE_VAL
|
Chris@42
|
4818 case "x$ac_cv_prog_cc_c89" in
|
Chris@42
|
4819 x)
|
Chris@42
|
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
Chris@42
|
4821 $as_echo "none needed" >&6; } ;;
|
Chris@42
|
4822 xno)
|
Chris@42
|
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
Chris@42
|
4824 $as_echo "unsupported" >&6; } ;;
|
Chris@42
|
4825 *)
|
Chris@42
|
4826 CC="$CC $ac_cv_prog_cc_c89"
|
Chris@42
|
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
Chris@42
|
4828 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
Chris@42
|
4829 esac
|
Chris@42
|
4830 if test "x$ac_cv_prog_cc_c89" != xno; then :
|
Chris@42
|
4831
|
Chris@42
|
4832 fi
|
Chris@42
|
4833
|
Chris@42
|
4834 ac_ext=c
|
Chris@42
|
4835 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
4836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
4837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
4838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
4839
|
Chris@42
|
4840 ac_ext=c
|
Chris@42
|
4841 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
Chris@42
|
4846 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
|
Chris@42
|
4847 if ${am_cv_prog_cc_c_o+:} false; then :
|
Chris@42
|
4848 $as_echo_n "(cached) " >&6
|
Chris@42
|
4849 else
|
Chris@42
|
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
4851 /* end confdefs.h. */
|
Chris@42
|
4852
|
Chris@42
|
4853 int
|
Chris@42
|
4854 main ()
|
Chris@42
|
4855 {
|
Chris@42
|
4856
|
Chris@42
|
4857 ;
|
Chris@42
|
4858 return 0;
|
Chris@42
|
4859 }
|
Chris@42
|
4860 _ACEOF
|
Chris@42
|
4861 # Make sure it works both with $CC and with simple cc.
|
Chris@42
|
4862 # Following AC_PROG_CC_C_O, we do the test twice because some
|
Chris@42
|
4863 # compilers refuse to overwrite an existing .o file with -o,
|
Chris@42
|
4864 # though they will create one.
|
Chris@42
|
4865 am_cv_prog_cc_c_o=yes
|
Chris@42
|
4866 for am_i in 1 2; do
|
Chris@42
|
4867 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
|
Chris@42
|
4868 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
|
Chris@42
|
4869 ac_status=$?
|
Chris@42
|
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
Chris@42
|
4871 (exit $ac_status); } \
|
Chris@42
|
4872 && test -f conftest2.$ac_objext; then
|
Chris@42
|
4873 : OK
|
Chris@42
|
4874 else
|
Chris@42
|
4875 am_cv_prog_cc_c_o=no
|
Chris@42
|
4876 break
|
Chris@42
|
4877 fi
|
Chris@42
|
4878 done
|
Chris@42
|
4879 rm -f core conftest*
|
Chris@42
|
4880 unset am_i
|
Chris@42
|
4881 fi
|
Chris@42
|
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
Chris@42
|
4883 $as_echo "$am_cv_prog_cc_c_o" >&6; }
|
Chris@42
|
4884 if test "$am_cv_prog_cc_c_o" != yes; then
|
Chris@42
|
4885 # Losing compiler, so override with the script.
|
Chris@42
|
4886 # FIXME: It is wrong to rewrite CC.
|
Chris@42
|
4887 # But if we don't then we get into trouble of one sort or another.
|
Chris@42
|
4888 # A longer-term fix would be to have automake use am__CC in this case,
|
Chris@42
|
4889 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
Chris@42
|
4890 CC="$am_aux_dir/compile $CC"
|
Chris@42
|
4891 fi
|
Chris@42
|
4892 ac_ext=c
|
Chris@42
|
4893 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
4894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
4895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
4896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
4897
|
Chris@42
|
4898 DEPDIR="${am__leading_dot}deps"
|
Chris@42
|
4899
|
Chris@42
|
4900 ac_config_commands="$ac_config_commands depfiles"
|
Chris@42
|
4901
|
Chris@42
|
4902
|
Chris@42
|
4903 am_make=${MAKE-make}
|
Chris@42
|
4904 cat > confinc << 'END'
|
Chris@42
|
4905 am__doit:
|
Chris@42
|
4906 @echo this is the am__doit target
|
Chris@42
|
4907 .PHONY: am__doit
|
Chris@42
|
4908 END
|
Chris@42
|
4909 # If we don't find an include directive, just comment out the code.
|
Chris@42
|
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
|
Chris@42
|
4911 $as_echo_n "checking for style of include used by $am_make... " >&6; }
|
Chris@42
|
4912 am__include="#"
|
Chris@42
|
4913 am__quote=
|
Chris@42
|
4914 _am_result=none
|
Chris@42
|
4915 # First try GNU make style include.
|
Chris@42
|
4916 echo "include confinc" > confmf
|
Chris@42
|
4917 # Ignore all kinds of additional output from 'make'.
|
Chris@42
|
4918 case `$am_make -s -f confmf 2> /dev/null` in #(
|
Chris@42
|
4919 *the\ am__doit\ target*)
|
Chris@42
|
4920 am__include=include
|
Chris@42
|
4921 am__quote=
|
Chris@42
|
4922 _am_result=GNU
|
Chris@42
|
4923 ;;
|
Chris@42
|
4924 esac
|
Chris@42
|
4925 # Now try BSD make style include.
|
Chris@42
|
4926 if test "$am__include" = "#"; then
|
Chris@42
|
4927 echo '.include "confinc"' > confmf
|
Chris@42
|
4928 case `$am_make -s -f confmf 2> /dev/null` in #(
|
Chris@42
|
4929 *the\ am__doit\ target*)
|
Chris@42
|
4930 am__include=.include
|
Chris@42
|
4931 am__quote="\""
|
Chris@42
|
4932 _am_result=BSD
|
Chris@42
|
4933 ;;
|
Chris@42
|
4934 esac
|
Chris@42
|
4935 fi
|
Chris@42
|
4936
|
Chris@42
|
4937
|
Chris@42
|
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
|
Chris@42
|
4939 $as_echo "$_am_result" >&6; }
|
Chris@42
|
4940 rm -f confinc confmf
|
Chris@42
|
4941
|
Chris@42
|
4942 # Check whether --enable-dependency-tracking was given.
|
Chris@42
|
4943 if test "${enable_dependency_tracking+set}" = set; then :
|
Chris@42
|
4944 enableval=$enable_dependency_tracking;
|
Chris@42
|
4945 fi
|
Chris@42
|
4946
|
Chris@42
|
4947 if test "x$enable_dependency_tracking" != xno; then
|
Chris@42
|
4948 am_depcomp="$ac_aux_dir/depcomp"
|
Chris@42
|
4949 AMDEPBACKSLASH='\'
|
Chris@42
|
4950 am__nodep='_no'
|
Chris@42
|
4951 fi
|
Chris@42
|
4952 if test "x$enable_dependency_tracking" != xno; then
|
Chris@42
|
4953 AMDEP_TRUE=
|
Chris@42
|
4954 AMDEP_FALSE='#'
|
Chris@42
|
4955 else
|
Chris@42
|
4956 AMDEP_TRUE='#'
|
Chris@42
|
4957 AMDEP_FALSE=
|
Chris@42
|
4958 fi
|
Chris@42
|
4959
|
Chris@42
|
4960
|
Chris@42
|
4961
|
Chris@42
|
4962 depcc="$CC" am_compiler_list=
|
Chris@42
|
4963
|
Chris@42
|
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
Chris@42
|
4965 $as_echo_n "checking dependency style of $depcc... " >&6; }
|
Chris@42
|
4966 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
|
Chris@42
|
4967 $as_echo_n "(cached) " >&6
|
Chris@42
|
4968 else
|
Chris@42
|
4969 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
Chris@42
|
4970 # We make a subdir and do the tests there. Otherwise we can end up
|
Chris@42
|
4971 # making bogus files that we don't know about and never remove. For
|
Chris@42
|
4972 # instance it was reported that on HP-UX the gcc test will end up
|
Chris@42
|
4973 # making a dummy file named 'D' -- because '-MD' means "put the output
|
Chris@42
|
4974 # in D".
|
Chris@42
|
4975 rm -rf conftest.dir
|
Chris@42
|
4976 mkdir conftest.dir
|
Chris@42
|
4977 # Copy depcomp to subdir because otherwise we won't find it if we're
|
Chris@42
|
4978 # using a relative directory.
|
Chris@42
|
4979 cp "$am_depcomp" conftest.dir
|
Chris@42
|
4980 cd conftest.dir
|
Chris@42
|
4981 # We will build objects and dependencies in a subdirectory because
|
Chris@42
|
4982 # it helps to detect inapplicable dependency modes. For instance
|
Chris@42
|
4983 # both Tru64's cc and ICC support -MD to output dependencies as a
|
Chris@42
|
4984 # side effect of compilation, but ICC will put the dependencies in
|
Chris@42
|
4985 # the current directory while Tru64 will put them in the object
|
Chris@42
|
4986 # directory.
|
Chris@42
|
4987 mkdir sub
|
Chris@42
|
4988
|
Chris@42
|
4989 am_cv_CC_dependencies_compiler_type=none
|
Chris@42
|
4990 if test "$am_compiler_list" = ""; then
|
Chris@42
|
4991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
Chris@42
|
4992 fi
|
Chris@42
|
4993 am__universal=false
|
Chris@42
|
4994 case " $depcc " in #(
|
Chris@42
|
4995 *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
Chris@42
|
4996 esac
|
Chris@42
|
4997
|
Chris@42
|
4998 for depmode in $am_compiler_list; do
|
Chris@42
|
4999 # Setup a source with many dependencies, because some compilers
|
Chris@42
|
5000 # like to wrap large dependency lists on column 80 (with \), and
|
Chris@42
|
5001 # we should not choose a depcomp mode which is confused by this.
|
Chris@42
|
5002 #
|
Chris@42
|
5003 # We need to recreate these files for each test, as the compiler may
|
Chris@42
|
5004 # overwrite some of them when testing with obscure command lines.
|
Chris@42
|
5005 # This happens at least with the AIX C compiler.
|
Chris@42
|
5006 : > sub/conftest.c
|
Chris@42
|
5007 for i in 1 2 3 4 5 6; do
|
Chris@42
|
5008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
Chris@42
|
5009 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
Chris@42
|
5010 # Solaris 10 /bin/sh.
|
Chris@42
|
5011 echo '/* dummy */' > sub/conftst$i.h
|
Chris@42
|
5012 done
|
Chris@42
|
5013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
Chris@42
|
5014
|
Chris@42
|
5015 # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
Chris@42
|
5016 # mode. It turns out that the SunPro C++ compiler does not properly
|
Chris@42
|
5017 # handle '-M -o', and we need to detect this. Also, some Intel
|
Chris@42
|
5018 # versions had trouble with output in subdirs.
|
Chris@42
|
5019 am__obj=sub/conftest.${OBJEXT-o}
|
Chris@42
|
5020 am__minus_obj="-o $am__obj"
|
Chris@42
|
5021 case $depmode in
|
Chris@42
|
5022 gcc)
|
Chris@42
|
5023 # This depmode causes a compiler race in universal mode.
|
Chris@42
|
5024 test "$am__universal" = false || continue
|
Chris@42
|
5025 ;;
|
Chris@42
|
5026 nosideeffect)
|
Chris@42
|
5027 # After this tag, mechanisms are not by side-effect, so they'll
|
Chris@42
|
5028 # only be used when explicitly requested.
|
Chris@42
|
5029 if test "x$enable_dependency_tracking" = xyes; then
|
Chris@42
|
5030 continue
|
Chris@42
|
5031 else
|
Chris@42
|
5032 break
|
Chris@42
|
5033 fi
|
Chris@42
|
5034 ;;
|
Chris@42
|
5035 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
Chris@42
|
5036 # This compiler won't grok '-c -o', but also, the minuso test has
|
Chris@42
|
5037 # not run yet. These depmodes are late enough in the game, and
|
Chris@42
|
5038 # so weak that their functioning should not be impacted.
|
Chris@42
|
5039 am__obj=conftest.${OBJEXT-o}
|
Chris@42
|
5040 am__minus_obj=
|
Chris@42
|
5041 ;;
|
Chris@42
|
5042 none) break ;;
|
Chris@42
|
5043 esac
|
Chris@42
|
5044 if depmode=$depmode \
|
Chris@42
|
5045 source=sub/conftest.c object=$am__obj \
|
Chris@42
|
5046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
Chris@42
|
5047 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
Chris@42
|
5048 >/dev/null 2>conftest.err &&
|
Chris@42
|
5049 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
Chris@42
|
5050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
Chris@42
|
5051 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
Chris@42
|
5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
Chris@42
|
5053 # icc doesn't choke on unknown options, it will just issue warnings
|
Chris@42
|
5054 # or remarks (even with -Werror). So we grep stderr for any message
|
Chris@42
|
5055 # that says an option was ignored or not supported.
|
Chris@42
|
5056 # When given -MP, icc 7.0 and 7.1 complain thusly:
|
Chris@42
|
5057 # icc: Command line warning: ignoring option '-M'; no argument required
|
Chris@42
|
5058 # The diagnosis changed in icc 8.0:
|
Chris@42
|
5059 # icc: Command line remark: option '-MP' not supported
|
Chris@42
|
5060 if (grep 'ignoring option' conftest.err ||
|
Chris@42
|
5061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
Chris@42
|
5062 am_cv_CC_dependencies_compiler_type=$depmode
|
Chris@42
|
5063 break
|
Chris@42
|
5064 fi
|
Chris@42
|
5065 fi
|
Chris@42
|
5066 done
|
Chris@42
|
5067
|
Chris@42
|
5068 cd ..
|
Chris@42
|
5069 rm -rf conftest.dir
|
Chris@42
|
5070 else
|
Chris@42
|
5071 am_cv_CC_dependencies_compiler_type=none
|
Chris@42
|
5072 fi
|
Chris@42
|
5073
|
Chris@42
|
5074 fi
|
Chris@42
|
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
Chris@42
|
5076 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
Chris@42
|
5077 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
Chris@42
|
5078
|
Chris@42
|
5079 if
|
Chris@42
|
5080 test "x$enable_dependency_tracking" != xno \
|
Chris@42
|
5081 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
Chris@42
|
5082 am__fastdepCC_TRUE=
|
Chris@42
|
5083 am__fastdepCC_FALSE='#'
|
Chris@42
|
5084 else
|
Chris@42
|
5085 am__fastdepCC_TRUE='#'
|
Chris@42
|
5086 am__fastdepCC_FALSE=
|
Chris@42
|
5087 fi
|
Chris@42
|
5088
|
Chris@42
|
5089
|
Chris@42
|
5090
|
Chris@42
|
5091
|
Chris@42
|
5092
|
Chris@42
|
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
|
Chris@42
|
5094 $as_echo_n "checking for C compiler vendor... " >&6; }
|
Chris@42
|
5095 if ${ax_cv_c_compiler_vendor+:} false; then :
|
Chris@42
|
5096 $as_echo_n "(cached) " >&6
|
Chris@42
|
5097 else
|
Chris@42
|
5098 ax_cv_c_compiler_vendor=unknown
|
Chris@42
|
5099 # note: don't check for gcc first since some other compilers define __GNUC__
|
Chris@42
|
5100 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
|
Chris@42
|
5101 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
|
Chris@42
|
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
5103 /* end confdefs.h. */
|
Chris@42
|
5104
|
Chris@42
|
5105 int
|
Chris@42
|
5106 main ()
|
Chris@42
|
5107 {
|
Chris@42
|
5108
|
Chris@42
|
5109 #if !($vencpp)
|
Chris@42
|
5110 thisisanerror;
|
Chris@42
|
5111 #endif
|
Chris@42
|
5112
|
Chris@42
|
5113 ;
|
Chris@42
|
5114 return 0;
|
Chris@42
|
5115 }
|
Chris@42
|
5116 _ACEOF
|
Chris@42
|
5117 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
5118 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
|
Chris@42
|
5119 fi
|
Chris@42
|
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
5121 done
|
Chris@42
|
5122
|
Chris@42
|
5123 fi
|
Chris@42
|
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
|
Chris@42
|
5125 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
|
Chris@42
|
5126
|
Chris@42
|
5127 case $ac_cv_prog_cc_stdc in #(
|
Chris@42
|
5128 no) :
|
Chris@42
|
5129 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
|
Chris@42
|
5130 *) :
|
Chris@42
|
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
|
Chris@42
|
5132 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
|
Chris@42
|
5133 if ${ac_cv_prog_cc_c99+:} false; then :
|
Chris@42
|
5134 $as_echo_n "(cached) " >&6
|
Chris@42
|
5135 else
|
Chris@42
|
5136 ac_cv_prog_cc_c99=no
|
Chris@42
|
5137 ac_save_CC=$CC
|
Chris@42
|
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
5139 /* end confdefs.h. */
|
Chris@42
|
5140 #include <stdarg.h>
|
Chris@42
|
5141 #include <stdbool.h>
|
Chris@42
|
5142 #include <stdlib.h>
|
Chris@42
|
5143 #include <wchar.h>
|
Chris@42
|
5144 #include <stdio.h>
|
Chris@42
|
5145
|
Chris@42
|
5146 // Check varargs macros. These examples are taken from C99 6.10.3.5.
|
Chris@42
|
5147 #define debug(...) fprintf (stderr, __VA_ARGS__)
|
Chris@42
|
5148 #define showlist(...) puts (#__VA_ARGS__)
|
Chris@42
|
5149 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
|
Chris@42
|
5150 static void
|
Chris@42
|
5151 test_varargs_macros (void)
|
Chris@42
|
5152 {
|
Chris@42
|
5153 int x = 1234;
|
Chris@42
|
5154 int y = 5678;
|
Chris@42
|
5155 debug ("Flag");
|
Chris@42
|
5156 debug ("X = %d\n", x);
|
Chris@42
|
5157 showlist (The first, second, and third items.);
|
Chris@42
|
5158 report (x>y, "x is %d but y is %d", x, y);
|
Chris@42
|
5159 }
|
Chris@42
|
5160
|
Chris@42
|
5161 // Check long long types.
|
Chris@42
|
5162 #define BIG64 18446744073709551615ull
|
Chris@42
|
5163 #define BIG32 4294967295ul
|
Chris@42
|
5164 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
|
Chris@42
|
5165 #if !BIG_OK
|
Chris@42
|
5166 your preprocessor is broken;
|
Chris@42
|
5167 #endif
|
Chris@42
|
5168 #if BIG_OK
|
Chris@42
|
5169 #else
|
Chris@42
|
5170 your preprocessor is broken;
|
Chris@42
|
5171 #endif
|
Chris@42
|
5172 static long long int bignum = -9223372036854775807LL;
|
Chris@42
|
5173 static unsigned long long int ubignum = BIG64;
|
Chris@42
|
5174
|
Chris@42
|
5175 struct incomplete_array
|
Chris@42
|
5176 {
|
Chris@42
|
5177 int datasize;
|
Chris@42
|
5178 double data[];
|
Chris@42
|
5179 };
|
Chris@42
|
5180
|
Chris@42
|
5181 struct named_init {
|
Chris@42
|
5182 int number;
|
Chris@42
|
5183 const wchar_t *name;
|
Chris@42
|
5184 double average;
|
Chris@42
|
5185 };
|
Chris@42
|
5186
|
Chris@42
|
5187 typedef const char *ccp;
|
Chris@42
|
5188
|
Chris@42
|
5189 static inline int
|
Chris@42
|
5190 test_restrict (ccp restrict text)
|
Chris@42
|
5191 {
|
Chris@42
|
5192 // See if C++-style comments work.
|
Chris@42
|
5193 // Iterate through items via the restricted pointer.
|
Chris@42
|
5194 // Also check for declarations in for loops.
|
Chris@42
|
5195 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
|
Chris@42
|
5196 continue;
|
Chris@42
|
5197 return 0;
|
Chris@42
|
5198 }
|
Chris@42
|
5199
|
Chris@42
|
5200 // Check varargs and va_copy.
|
Chris@42
|
5201 static void
|
Chris@42
|
5202 test_varargs (const char *format, ...)
|
Chris@42
|
5203 {
|
Chris@42
|
5204 va_list args;
|
Chris@42
|
5205 va_start (args, format);
|
Chris@42
|
5206 va_list args_copy;
|
Chris@42
|
5207 va_copy (args_copy, args);
|
Chris@42
|
5208
|
Chris@42
|
5209 const char *str;
|
Chris@42
|
5210 int number;
|
Chris@42
|
5211 float fnumber;
|
Chris@42
|
5212
|
Chris@42
|
5213 while (*format)
|
Chris@42
|
5214 {
|
Chris@42
|
5215 switch (*format++)
|
Chris@42
|
5216 {
|
Chris@42
|
5217 case 's': // string
|
Chris@42
|
5218 str = va_arg (args_copy, const char *);
|
Chris@42
|
5219 break;
|
Chris@42
|
5220 case 'd': // int
|
Chris@42
|
5221 number = va_arg (args_copy, int);
|
Chris@42
|
5222 break;
|
Chris@42
|
5223 case 'f': // float
|
Chris@42
|
5224 fnumber = va_arg (args_copy, double);
|
Chris@42
|
5225 break;
|
Chris@42
|
5226 default:
|
Chris@42
|
5227 break;
|
Chris@42
|
5228 }
|
Chris@42
|
5229 }
|
Chris@42
|
5230 va_end (args_copy);
|
Chris@42
|
5231 va_end (args);
|
Chris@42
|
5232 }
|
Chris@42
|
5233
|
Chris@42
|
5234 int
|
Chris@42
|
5235 main ()
|
Chris@42
|
5236 {
|
Chris@42
|
5237
|
Chris@42
|
5238 // Check bool.
|
Chris@42
|
5239 _Bool success = false;
|
Chris@42
|
5240
|
Chris@42
|
5241 // Check restrict.
|
Chris@42
|
5242 if (test_restrict ("String literal") == 0)
|
Chris@42
|
5243 success = true;
|
Chris@42
|
5244 char *restrict newvar = "Another string";
|
Chris@42
|
5245
|
Chris@42
|
5246 // Check varargs.
|
Chris@42
|
5247 test_varargs ("s, d' f .", "string", 65, 34.234);
|
Chris@42
|
5248 test_varargs_macros ();
|
Chris@42
|
5249
|
Chris@42
|
5250 // Check flexible array members.
|
Chris@42
|
5251 struct incomplete_array *ia =
|
Chris@42
|
5252 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
|
Chris@42
|
5253 ia->datasize = 10;
|
Chris@42
|
5254 for (int i = 0; i < ia->datasize; ++i)
|
Chris@42
|
5255 ia->data[i] = i * 1.234;
|
Chris@42
|
5256
|
Chris@42
|
5257 // Check named initializers.
|
Chris@42
|
5258 struct named_init ni = {
|
Chris@42
|
5259 .number = 34,
|
Chris@42
|
5260 .name = L"Test wide string",
|
Chris@42
|
5261 .average = 543.34343,
|
Chris@42
|
5262 };
|
Chris@42
|
5263
|
Chris@42
|
5264 ni.number = 58;
|
Chris@42
|
5265
|
Chris@42
|
5266 int dynamic_array[ni.number];
|
Chris@42
|
5267 dynamic_array[ni.number - 1] = 543;
|
Chris@42
|
5268
|
Chris@42
|
5269 // work around unused variable warnings
|
Chris@42
|
5270 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
|
Chris@42
|
5271 || dynamic_array[ni.number - 1] != 543);
|
Chris@42
|
5272
|
Chris@42
|
5273 ;
|
Chris@42
|
5274 return 0;
|
Chris@42
|
5275 }
|
Chris@42
|
5276 _ACEOF
|
Chris@42
|
5277 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
|
Chris@42
|
5278 do
|
Chris@42
|
5279 CC="$ac_save_CC $ac_arg"
|
Chris@42
|
5280 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
5281 ac_cv_prog_cc_c99=$ac_arg
|
Chris@42
|
5282 fi
|
Chris@42
|
5283 rm -f core conftest.err conftest.$ac_objext
|
Chris@42
|
5284 test "x$ac_cv_prog_cc_c99" != "xno" && break
|
Chris@42
|
5285 done
|
Chris@42
|
5286 rm -f conftest.$ac_ext
|
Chris@42
|
5287 CC=$ac_save_CC
|
Chris@42
|
5288
|
Chris@42
|
5289 fi
|
Chris@42
|
5290 # AC_CACHE_VAL
|
Chris@42
|
5291 case "x$ac_cv_prog_cc_c99" in
|
Chris@42
|
5292 x)
|
Chris@42
|
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
Chris@42
|
5294 $as_echo "none needed" >&6; } ;;
|
Chris@42
|
5295 xno)
|
Chris@42
|
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
Chris@42
|
5297 $as_echo "unsupported" >&6; } ;;
|
Chris@42
|
5298 *)
|
Chris@42
|
5299 CC="$CC $ac_cv_prog_cc_c99"
|
Chris@42
|
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
|
Chris@42
|
5301 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
|
Chris@42
|
5302 esac
|
Chris@42
|
5303 if test "x$ac_cv_prog_cc_c99" != xno; then :
|
Chris@42
|
5304 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
|
Chris@42
|
5305 else
|
Chris@42
|
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
Chris@42
|
5307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
Chris@42
|
5308 if ${ac_cv_prog_cc_c89+:} false; then :
|
Chris@42
|
5309 $as_echo_n "(cached) " >&6
|
Chris@42
|
5310 else
|
Chris@42
|
5311 ac_cv_prog_cc_c89=no
|
Chris@42
|
5312 ac_save_CC=$CC
|
Chris@42
|
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
5314 /* end confdefs.h. */
|
Chris@42
|
5315 #include <stdarg.h>
|
Chris@42
|
5316 #include <stdio.h>
|
Chris@42
|
5317 struct stat;
|
Chris@42
|
5318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
Chris@42
|
5319 struct buf { int x; };
|
Chris@42
|
5320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
Chris@42
|
5321 static char *e (p, i)
|
Chris@42
|
5322 char **p;
|
Chris@42
|
5323 int i;
|
Chris@42
|
5324 {
|
Chris@42
|
5325 return p[i];
|
Chris@42
|
5326 }
|
Chris@42
|
5327 static char *f (char * (*g) (char **, int), char **p, ...)
|
Chris@42
|
5328 {
|
Chris@42
|
5329 char *s;
|
Chris@42
|
5330 va_list v;
|
Chris@42
|
5331 va_start (v,p);
|
Chris@42
|
5332 s = g (p, va_arg (v,int));
|
Chris@42
|
5333 va_end (v);
|
Chris@42
|
5334 return s;
|
Chris@42
|
5335 }
|
Chris@42
|
5336
|
Chris@42
|
5337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
Chris@42
|
5338 function prototypes and stuff, but not '\xHH' hex character constants.
|
Chris@42
|
5339 These don't provoke an error unfortunately, instead are silently treated
|
Chris@42
|
5340 as 'x'. The following induces an error, until -std is added to get
|
Chris@42
|
5341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
Chris@42
|
5342 array size at least. It's necessary to write '\x00'==0 to get something
|
Chris@42
|
5343 that's true only with -std. */
|
Chris@42
|
5344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
Chris@42
|
5345
|
Chris@42
|
5346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
Chris@42
|
5347 inside strings and character constants. */
|
Chris@42
|
5348 #define FOO(x) 'x'
|
Chris@42
|
5349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
Chris@42
|
5350
|
Chris@42
|
5351 int test (int i, double x);
|
Chris@42
|
5352 struct s1 {int (*f) (int a);};
|
Chris@42
|
5353 struct s2 {int (*f) (double a);};
|
Chris@42
|
5354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
Chris@42
|
5355 int argc;
|
Chris@42
|
5356 char **argv;
|
Chris@42
|
5357 int
|
Chris@42
|
5358 main ()
|
Chris@42
|
5359 {
|
Chris@42
|
5360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
Chris@42
|
5361 ;
|
Chris@42
|
5362 return 0;
|
Chris@42
|
5363 }
|
Chris@42
|
5364 _ACEOF
|
Chris@42
|
5365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
Chris@42
|
5366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
Chris@42
|
5367 do
|
Chris@42
|
5368 CC="$ac_save_CC $ac_arg"
|
Chris@42
|
5369 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
5370 ac_cv_prog_cc_c89=$ac_arg
|
Chris@42
|
5371 fi
|
Chris@42
|
5372 rm -f core conftest.err conftest.$ac_objext
|
Chris@42
|
5373 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
Chris@42
|
5374 done
|
Chris@42
|
5375 rm -f conftest.$ac_ext
|
Chris@42
|
5376 CC=$ac_save_CC
|
Chris@42
|
5377
|
Chris@42
|
5378 fi
|
Chris@42
|
5379 # AC_CACHE_VAL
|
Chris@42
|
5380 case "x$ac_cv_prog_cc_c89" in
|
Chris@42
|
5381 x)
|
Chris@42
|
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
Chris@42
|
5383 $as_echo "none needed" >&6; } ;;
|
Chris@42
|
5384 xno)
|
Chris@42
|
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
Chris@42
|
5386 $as_echo "unsupported" >&6; } ;;
|
Chris@42
|
5387 *)
|
Chris@42
|
5388 CC="$CC $ac_cv_prog_cc_c89"
|
Chris@42
|
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
Chris@42
|
5390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
Chris@42
|
5391 esac
|
Chris@42
|
5392 if test "x$ac_cv_prog_cc_c89" != xno; then :
|
Chris@42
|
5393 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
|
Chris@42
|
5394 else
|
Chris@42
|
5395 ac_cv_prog_cc_stdc=no
|
Chris@42
|
5396 fi
|
Chris@42
|
5397
|
Chris@42
|
5398 fi
|
Chris@42
|
5399 ;;
|
Chris@42
|
5400 esac
|
Chris@42
|
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
|
Chris@42
|
5402 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
|
Chris@42
|
5403 if ${ac_cv_prog_cc_stdc+:} false; then :
|
Chris@42
|
5404 $as_echo_n "(cached) " >&6
|
Chris@42
|
5405 fi
|
Chris@42
|
5406
|
Chris@42
|
5407 case $ac_cv_prog_cc_stdc in #(
|
Chris@42
|
5408 no) :
|
Chris@42
|
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
Chris@42
|
5410 $as_echo "unsupported" >&6; } ;; #(
|
Chris@42
|
5411 '') :
|
Chris@42
|
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
Chris@42
|
5413 $as_echo "none needed" >&6; } ;; #(
|
Chris@42
|
5414 *) :
|
Chris@42
|
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
Chris@42
|
5416 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
|
Chris@42
|
5417 esac
|
Chris@42
|
5418
|
Chris@42
|
5419
|
Chris@42
|
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
Chris@42
|
5421 $as_echo_n "checking whether ln -s works... " >&6; }
|
Chris@42
|
5422 LN_S=$as_ln_s
|
Chris@42
|
5423 if test "$LN_S" = "ln -s"; then
|
Chris@42
|
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
5425 $as_echo "yes" >&6; }
|
Chris@42
|
5426 else
|
Chris@42
|
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
Chris@42
|
5428 $as_echo "no, using $LN_S" >&6; }
|
Chris@42
|
5429 fi
|
Chris@42
|
5430
|
Chris@42
|
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
Chris@42
|
5432 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
Chris@42
|
5433 set x ${MAKE-make}
|
Chris@42
|
5434 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
Chris@42
|
5435 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
Chris@42
|
5436 $as_echo_n "(cached) " >&6
|
Chris@42
|
5437 else
|
Chris@42
|
5438 cat >conftest.make <<\_ACEOF
|
Chris@42
|
5439 SHELL = /bin/sh
|
Chris@42
|
5440 all:
|
Chris@42
|
5441 @echo '@@@%%%=$(MAKE)=@@@%%%'
|
Chris@42
|
5442 _ACEOF
|
Chris@42
|
5443 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
Chris@42
|
5444 case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
Chris@42
|
5445 *@@@%%%=?*=@@@%%%*)
|
Chris@42
|
5446 eval ac_cv_prog_make_${ac_make}_set=yes;;
|
Chris@42
|
5447 *)
|
Chris@42
|
5448 eval ac_cv_prog_make_${ac_make}_set=no;;
|
Chris@42
|
5449 esac
|
Chris@42
|
5450 rm -f conftest.make
|
Chris@42
|
5451 fi
|
Chris@42
|
5452 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
Chris@42
|
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
5454 $as_echo "yes" >&6; }
|
Chris@42
|
5455 SET_MAKE=
|
Chris@42
|
5456 else
|
Chris@42
|
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
5458 $as_echo "no" >&6; }
|
Chris@42
|
5459 SET_MAKE="MAKE=${MAKE-make}"
|
Chris@42
|
5460 fi
|
Chris@42
|
5461
|
Chris@42
|
5462 enable_win32_dll=yes
|
Chris@42
|
5463
|
Chris@42
|
5464 case $host in
|
Chris@42
|
5465 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
Chris@42
|
5466 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
5467 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
Chris@42
|
5468 set dummy ${ac_tool_prefix}as; ac_word=$2
|
Chris@42
|
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
5470 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
5471 if ${ac_cv_prog_AS+:} false; then :
|
Chris@42
|
5472 $as_echo_n "(cached) " >&6
|
Chris@42
|
5473 else
|
Chris@42
|
5474 if test -n "$AS"; then
|
Chris@42
|
5475 ac_cv_prog_AS="$AS" # Let the user override the test.
|
Chris@42
|
5476 else
|
Chris@42
|
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
5478 for as_dir in $PATH
|
Chris@42
|
5479 do
|
Chris@42
|
5480 IFS=$as_save_IFS
|
Chris@42
|
5481 test -z "$as_dir" && as_dir=.
|
Chris@42
|
5482 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
5484 ac_cv_prog_AS="${ac_tool_prefix}as"
|
Chris@42
|
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
5486 break 2
|
Chris@42
|
5487 fi
|
Chris@42
|
5488 done
|
Chris@42
|
5489 done
|
Chris@42
|
5490 IFS=$as_save_IFS
|
Chris@42
|
5491
|
Chris@42
|
5492 fi
|
Chris@42
|
5493 fi
|
Chris@42
|
5494 AS=$ac_cv_prog_AS
|
Chris@42
|
5495 if test -n "$AS"; then
|
Chris@42
|
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
|
Chris@42
|
5497 $as_echo "$AS" >&6; }
|
Chris@42
|
5498 else
|
Chris@42
|
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
5500 $as_echo "no" >&6; }
|
Chris@42
|
5501 fi
|
Chris@42
|
5502
|
Chris@42
|
5503
|
Chris@42
|
5504 fi
|
Chris@42
|
5505 if test -z "$ac_cv_prog_AS"; then
|
Chris@42
|
5506 ac_ct_AS=$AS
|
Chris@42
|
5507 # Extract the first word of "as", so it can be a program name with args.
|
Chris@42
|
5508 set dummy as; ac_word=$2
|
Chris@42
|
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
5510 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
5511 if ${ac_cv_prog_ac_ct_AS+:} false; then :
|
Chris@42
|
5512 $as_echo_n "(cached) " >&6
|
Chris@42
|
5513 else
|
Chris@42
|
5514 if test -n "$ac_ct_AS"; then
|
Chris@42
|
5515 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
|
Chris@42
|
5516 else
|
Chris@42
|
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
5518 for as_dir in $PATH
|
Chris@42
|
5519 do
|
Chris@42
|
5520 IFS=$as_save_IFS
|
Chris@42
|
5521 test -z "$as_dir" && as_dir=.
|
Chris@42
|
5522 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
5524 ac_cv_prog_ac_ct_AS="as"
|
Chris@42
|
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
5526 break 2
|
Chris@42
|
5527 fi
|
Chris@42
|
5528 done
|
Chris@42
|
5529 done
|
Chris@42
|
5530 IFS=$as_save_IFS
|
Chris@42
|
5531
|
Chris@42
|
5532 fi
|
Chris@42
|
5533 fi
|
Chris@42
|
5534 ac_ct_AS=$ac_cv_prog_ac_ct_AS
|
Chris@42
|
5535 if test -n "$ac_ct_AS"; then
|
Chris@42
|
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
|
Chris@42
|
5537 $as_echo "$ac_ct_AS" >&6; }
|
Chris@42
|
5538 else
|
Chris@42
|
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
5540 $as_echo "no" >&6; }
|
Chris@42
|
5541 fi
|
Chris@42
|
5542
|
Chris@42
|
5543 if test "x$ac_ct_AS" = x; then
|
Chris@42
|
5544 AS="false"
|
Chris@42
|
5545 else
|
Chris@42
|
5546 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
5547 yes:)
|
Chris@42
|
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
5549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
5550 ac_tool_warned=yes ;;
|
Chris@42
|
5551 esac
|
Chris@42
|
5552 AS=$ac_ct_AS
|
Chris@42
|
5553 fi
|
Chris@42
|
5554 else
|
Chris@42
|
5555 AS="$ac_cv_prog_AS"
|
Chris@42
|
5556 fi
|
Chris@42
|
5557
|
Chris@42
|
5558 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
5559 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
Chris@42
|
5560 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
Chris@42
|
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
5562 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
5563 if ${ac_cv_prog_DLLTOOL+:} false; then :
|
Chris@42
|
5564 $as_echo_n "(cached) " >&6
|
Chris@42
|
5565 else
|
Chris@42
|
5566 if test -n "$DLLTOOL"; then
|
Chris@42
|
5567 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
Chris@42
|
5568 else
|
Chris@42
|
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
5570 for as_dir in $PATH
|
Chris@42
|
5571 do
|
Chris@42
|
5572 IFS=$as_save_IFS
|
Chris@42
|
5573 test -z "$as_dir" && as_dir=.
|
Chris@42
|
5574 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
5576 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
Chris@42
|
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
5578 break 2
|
Chris@42
|
5579 fi
|
Chris@42
|
5580 done
|
Chris@42
|
5581 done
|
Chris@42
|
5582 IFS=$as_save_IFS
|
Chris@42
|
5583
|
Chris@42
|
5584 fi
|
Chris@42
|
5585 fi
|
Chris@42
|
5586 DLLTOOL=$ac_cv_prog_DLLTOOL
|
Chris@42
|
5587 if test -n "$DLLTOOL"; then
|
Chris@42
|
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
Chris@42
|
5589 $as_echo "$DLLTOOL" >&6; }
|
Chris@42
|
5590 else
|
Chris@42
|
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
5592 $as_echo "no" >&6; }
|
Chris@42
|
5593 fi
|
Chris@42
|
5594
|
Chris@42
|
5595
|
Chris@42
|
5596 fi
|
Chris@42
|
5597 if test -z "$ac_cv_prog_DLLTOOL"; then
|
Chris@42
|
5598 ac_ct_DLLTOOL=$DLLTOOL
|
Chris@42
|
5599 # Extract the first word of "dlltool", so it can be a program name with args.
|
Chris@42
|
5600 set dummy dlltool; ac_word=$2
|
Chris@42
|
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
5602 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
5603 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
Chris@42
|
5604 $as_echo_n "(cached) " >&6
|
Chris@42
|
5605 else
|
Chris@42
|
5606 if test -n "$ac_ct_DLLTOOL"; then
|
Chris@42
|
5607 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
Chris@42
|
5608 else
|
Chris@42
|
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
5610 for as_dir in $PATH
|
Chris@42
|
5611 do
|
Chris@42
|
5612 IFS=$as_save_IFS
|
Chris@42
|
5613 test -z "$as_dir" && as_dir=.
|
Chris@42
|
5614 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
5616 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
Chris@42
|
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
5618 break 2
|
Chris@42
|
5619 fi
|
Chris@42
|
5620 done
|
Chris@42
|
5621 done
|
Chris@42
|
5622 IFS=$as_save_IFS
|
Chris@42
|
5623
|
Chris@42
|
5624 fi
|
Chris@42
|
5625 fi
|
Chris@42
|
5626 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
Chris@42
|
5627 if test -n "$ac_ct_DLLTOOL"; then
|
Chris@42
|
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
Chris@42
|
5629 $as_echo "$ac_ct_DLLTOOL" >&6; }
|
Chris@42
|
5630 else
|
Chris@42
|
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
5632 $as_echo "no" >&6; }
|
Chris@42
|
5633 fi
|
Chris@42
|
5634
|
Chris@42
|
5635 if test "x$ac_ct_DLLTOOL" = x; then
|
Chris@42
|
5636 DLLTOOL="false"
|
Chris@42
|
5637 else
|
Chris@42
|
5638 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
5639 yes:)
|
Chris@42
|
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
5642 ac_tool_warned=yes ;;
|
Chris@42
|
5643 esac
|
Chris@42
|
5644 DLLTOOL=$ac_ct_DLLTOOL
|
Chris@42
|
5645 fi
|
Chris@42
|
5646 else
|
Chris@42
|
5647 DLLTOOL="$ac_cv_prog_DLLTOOL"
|
Chris@42
|
5648 fi
|
Chris@42
|
5649
|
Chris@42
|
5650 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
5651 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
Chris@42
|
5652 set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
Chris@42
|
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
5654 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
5655 if ${ac_cv_prog_OBJDUMP+:} false; then :
|
Chris@42
|
5656 $as_echo_n "(cached) " >&6
|
Chris@42
|
5657 else
|
Chris@42
|
5658 if test -n "$OBJDUMP"; then
|
Chris@42
|
5659 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
Chris@42
|
5660 else
|
Chris@42
|
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
5662 for as_dir in $PATH
|
Chris@42
|
5663 do
|
Chris@42
|
5664 IFS=$as_save_IFS
|
Chris@42
|
5665 test -z "$as_dir" && as_dir=.
|
Chris@42
|
5666 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
5668 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
Chris@42
|
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
5670 break 2
|
Chris@42
|
5671 fi
|
Chris@42
|
5672 done
|
Chris@42
|
5673 done
|
Chris@42
|
5674 IFS=$as_save_IFS
|
Chris@42
|
5675
|
Chris@42
|
5676 fi
|
Chris@42
|
5677 fi
|
Chris@42
|
5678 OBJDUMP=$ac_cv_prog_OBJDUMP
|
Chris@42
|
5679 if test -n "$OBJDUMP"; then
|
Chris@42
|
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
Chris@42
|
5681 $as_echo "$OBJDUMP" >&6; }
|
Chris@42
|
5682 else
|
Chris@42
|
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
5684 $as_echo "no" >&6; }
|
Chris@42
|
5685 fi
|
Chris@42
|
5686
|
Chris@42
|
5687
|
Chris@42
|
5688 fi
|
Chris@42
|
5689 if test -z "$ac_cv_prog_OBJDUMP"; then
|
Chris@42
|
5690 ac_ct_OBJDUMP=$OBJDUMP
|
Chris@42
|
5691 # Extract the first word of "objdump", so it can be a program name with args.
|
Chris@42
|
5692 set dummy objdump; ac_word=$2
|
Chris@42
|
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
5694 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
5695 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
Chris@42
|
5696 $as_echo_n "(cached) " >&6
|
Chris@42
|
5697 else
|
Chris@42
|
5698 if test -n "$ac_ct_OBJDUMP"; then
|
Chris@42
|
5699 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
Chris@42
|
5700 else
|
Chris@42
|
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
5702 for as_dir in $PATH
|
Chris@42
|
5703 do
|
Chris@42
|
5704 IFS=$as_save_IFS
|
Chris@42
|
5705 test -z "$as_dir" && as_dir=.
|
Chris@42
|
5706 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
5708 ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
Chris@42
|
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
5710 break 2
|
Chris@42
|
5711 fi
|
Chris@42
|
5712 done
|
Chris@42
|
5713 done
|
Chris@42
|
5714 IFS=$as_save_IFS
|
Chris@42
|
5715
|
Chris@42
|
5716 fi
|
Chris@42
|
5717 fi
|
Chris@42
|
5718 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
Chris@42
|
5719 if test -n "$ac_ct_OBJDUMP"; then
|
Chris@42
|
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
Chris@42
|
5721 $as_echo "$ac_ct_OBJDUMP" >&6; }
|
Chris@42
|
5722 else
|
Chris@42
|
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
5724 $as_echo "no" >&6; }
|
Chris@42
|
5725 fi
|
Chris@42
|
5726
|
Chris@42
|
5727 if test "x$ac_ct_OBJDUMP" = x; then
|
Chris@42
|
5728 OBJDUMP="false"
|
Chris@42
|
5729 else
|
Chris@42
|
5730 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
5731 yes:)
|
Chris@42
|
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
5733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
5734 ac_tool_warned=yes ;;
|
Chris@42
|
5735 esac
|
Chris@42
|
5736 OBJDUMP=$ac_ct_OBJDUMP
|
Chris@42
|
5737 fi
|
Chris@42
|
5738 else
|
Chris@42
|
5739 OBJDUMP="$ac_cv_prog_OBJDUMP"
|
Chris@42
|
5740 fi
|
Chris@42
|
5741
|
Chris@42
|
5742 ;;
|
Chris@42
|
5743 esac
|
Chris@42
|
5744
|
Chris@42
|
5745 test -z "$AS" && AS=as
|
Chris@42
|
5746
|
Chris@42
|
5747
|
Chris@42
|
5748
|
Chris@42
|
5749
|
Chris@42
|
5750
|
Chris@42
|
5751 test -z "$DLLTOOL" && DLLTOOL=dlltool
|
Chris@42
|
5752
|
Chris@42
|
5753
|
Chris@42
|
5754
|
Chris@42
|
5755
|
Chris@42
|
5756
|
Chris@42
|
5757 test -z "$OBJDUMP" && OBJDUMP=objdump
|
Chris@42
|
5758
|
Chris@42
|
5759
|
Chris@42
|
5760
|
Chris@42
|
5761
|
Chris@42
|
5762
|
Chris@42
|
5763
|
Chris@42
|
5764
|
Chris@42
|
5765 case `pwd` in
|
Chris@42
|
5766 *\ * | *\ *)
|
Chris@42
|
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
Chris@42
|
5768 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
Chris@42
|
5769 esac
|
Chris@42
|
5770
|
Chris@42
|
5771
|
Chris@42
|
5772
|
Chris@42
|
5773 macro_version='2.4.2'
|
Chris@42
|
5774 macro_revision='1.3337'
|
Chris@42
|
5775
|
Chris@42
|
5776
|
Chris@42
|
5777
|
Chris@42
|
5778
|
Chris@42
|
5779
|
Chris@42
|
5780
|
Chris@42
|
5781
|
Chris@42
|
5782
|
Chris@42
|
5783
|
Chris@42
|
5784
|
Chris@42
|
5785
|
Chris@42
|
5786
|
Chris@42
|
5787
|
Chris@42
|
5788 ltmain="$ac_aux_dir/ltmain.sh"
|
Chris@42
|
5789
|
Chris@42
|
5790 # Backslashify metacharacters that are still active within
|
Chris@42
|
5791 # double-quoted strings.
|
Chris@42
|
5792 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
Chris@42
|
5793
|
Chris@42
|
5794 # Same as above, but do not quote variable references.
|
Chris@42
|
5795 double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
Chris@42
|
5796
|
Chris@42
|
5797 # Sed substitution to delay expansion of an escaped shell variable in a
|
Chris@42
|
5798 # double_quote_subst'ed string.
|
Chris@42
|
5799 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
Chris@42
|
5800
|
Chris@42
|
5801 # Sed substitution to delay expansion of an escaped single quote.
|
Chris@42
|
5802 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
Chris@42
|
5803
|
Chris@42
|
5804 # Sed substitution to avoid accidental globbing in evaled expressions
|
Chris@42
|
5805 no_glob_subst='s/\*/\\\*/g'
|
Chris@42
|
5806
|
Chris@42
|
5807 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
Chris@42
|
5808 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
Chris@42
|
5809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
Chris@42
|
5810
|
Chris@42
|
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
Chris@42
|
5812 $as_echo_n "checking how to print strings... " >&6; }
|
Chris@42
|
5813 # Test print first, because it will be a builtin if present.
|
Chris@42
|
5814 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
Chris@42
|
5815 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
Chris@42
|
5816 ECHO='print -r --'
|
Chris@42
|
5817 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
Chris@42
|
5818 ECHO='printf %s\n'
|
Chris@42
|
5819 else
|
Chris@42
|
5820 # Use this function as a fallback that always works.
|
Chris@42
|
5821 func_fallback_echo ()
|
Chris@42
|
5822 {
|
Chris@42
|
5823 eval 'cat <<_LTECHO_EOF
|
Chris@42
|
5824 $1
|
Chris@42
|
5825 _LTECHO_EOF'
|
Chris@42
|
5826 }
|
Chris@42
|
5827 ECHO='func_fallback_echo'
|
Chris@42
|
5828 fi
|
Chris@42
|
5829
|
Chris@42
|
5830 # func_echo_all arg...
|
Chris@42
|
5831 # Invoke $ECHO with all args, space-separated.
|
Chris@42
|
5832 func_echo_all ()
|
Chris@42
|
5833 {
|
Chris@42
|
5834 $ECHO ""
|
Chris@42
|
5835 }
|
Chris@42
|
5836
|
Chris@42
|
5837 case "$ECHO" in
|
Chris@42
|
5838 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
Chris@42
|
5839 $as_echo "printf" >&6; } ;;
|
Chris@42
|
5840 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
Chris@42
|
5841 $as_echo "print -r" >&6; } ;;
|
Chris@42
|
5842 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
Chris@42
|
5843 $as_echo "cat" >&6; } ;;
|
Chris@42
|
5844 esac
|
Chris@42
|
5845
|
Chris@42
|
5846
|
Chris@42
|
5847
|
Chris@42
|
5848
|
Chris@42
|
5849
|
Chris@42
|
5850
|
Chris@42
|
5851
|
Chris@42
|
5852
|
Chris@42
|
5853
|
Chris@42
|
5854
|
Chris@42
|
5855
|
Chris@42
|
5856
|
Chris@42
|
5857
|
Chris@42
|
5858
|
Chris@42
|
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
Chris@42
|
5860 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
Chris@42
|
5861 if ${ac_cv_path_SED+:} false; then :
|
Chris@42
|
5862 $as_echo_n "(cached) " >&6
|
Chris@42
|
5863 else
|
Chris@42
|
5864 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
Chris@42
|
5865 for ac_i in 1 2 3 4 5 6 7; do
|
Chris@42
|
5866 ac_script="$ac_script$as_nl$ac_script"
|
Chris@42
|
5867 done
|
Chris@42
|
5868 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
Chris@42
|
5869 { ac_script=; unset ac_script;}
|
Chris@42
|
5870 if test -z "$SED"; then
|
Chris@42
|
5871 ac_path_SED_found=false
|
Chris@42
|
5872 # Loop through the user's path and test for each of PROGNAME-LIST
|
Chris@42
|
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
5874 for as_dir in $PATH
|
Chris@42
|
5875 do
|
Chris@42
|
5876 IFS=$as_save_IFS
|
Chris@42
|
5877 test -z "$as_dir" && as_dir=.
|
Chris@42
|
5878 for ac_prog in sed gsed; do
|
Chris@42
|
5879 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
5880 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
Chris@42
|
5881 as_fn_executable_p "$ac_path_SED" || continue
|
Chris@42
|
5882 # Check for GNU ac_path_SED and select it if it is found.
|
Chris@42
|
5883 # Check for GNU $ac_path_SED
|
Chris@42
|
5884 case `"$ac_path_SED" --version 2>&1` in
|
Chris@42
|
5885 *GNU*)
|
Chris@42
|
5886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
Chris@42
|
5887 *)
|
Chris@42
|
5888 ac_count=0
|
Chris@42
|
5889 $as_echo_n 0123456789 >"conftest.in"
|
Chris@42
|
5890 while :
|
Chris@42
|
5891 do
|
Chris@42
|
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
Chris@42
|
5893 mv "conftest.tmp" "conftest.in"
|
Chris@42
|
5894 cp "conftest.in" "conftest.nl"
|
Chris@42
|
5895 $as_echo '' >> "conftest.nl"
|
Chris@42
|
5896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
Chris@42
|
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
Chris@42
|
5898 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
Chris@42
|
5899 if test $ac_count -gt ${ac_path_SED_max-0}; then
|
Chris@42
|
5900 # Best one so far, save it but keep looking for a better one
|
Chris@42
|
5901 ac_cv_path_SED="$ac_path_SED"
|
Chris@42
|
5902 ac_path_SED_max=$ac_count
|
Chris@42
|
5903 fi
|
Chris@42
|
5904 # 10*(2^10) chars as input seems more than enough
|
Chris@42
|
5905 test $ac_count -gt 10 && break
|
Chris@42
|
5906 done
|
Chris@42
|
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
Chris@42
|
5908 esac
|
Chris@42
|
5909
|
Chris@42
|
5910 $ac_path_SED_found && break 3
|
Chris@42
|
5911 done
|
Chris@42
|
5912 done
|
Chris@42
|
5913 done
|
Chris@42
|
5914 IFS=$as_save_IFS
|
Chris@42
|
5915 if test -z "$ac_cv_path_SED"; then
|
Chris@42
|
5916 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
Chris@42
|
5917 fi
|
Chris@42
|
5918 else
|
Chris@42
|
5919 ac_cv_path_SED=$SED
|
Chris@42
|
5920 fi
|
Chris@42
|
5921
|
Chris@42
|
5922 fi
|
Chris@42
|
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
Chris@42
|
5924 $as_echo "$ac_cv_path_SED" >&6; }
|
Chris@42
|
5925 SED="$ac_cv_path_SED"
|
Chris@42
|
5926 rm -f conftest.sed
|
Chris@42
|
5927
|
Chris@42
|
5928 test -z "$SED" && SED=sed
|
Chris@42
|
5929 Xsed="$SED -e 1s/^X//"
|
Chris@42
|
5930
|
Chris@42
|
5931
|
Chris@42
|
5932
|
Chris@42
|
5933
|
Chris@42
|
5934
|
Chris@42
|
5935
|
Chris@42
|
5936
|
Chris@42
|
5937
|
Chris@42
|
5938
|
Chris@42
|
5939
|
Chris@42
|
5940
|
Chris@42
|
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
Chris@42
|
5942 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
Chris@42
|
5943 if ${ac_cv_path_GREP+:} false; then :
|
Chris@42
|
5944 $as_echo_n "(cached) " >&6
|
Chris@42
|
5945 else
|
Chris@42
|
5946 if test -z "$GREP"; then
|
Chris@42
|
5947 ac_path_GREP_found=false
|
Chris@42
|
5948 # Loop through the user's path and test for each of PROGNAME-LIST
|
Chris@42
|
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
Chris@42
|
5951 do
|
Chris@42
|
5952 IFS=$as_save_IFS
|
Chris@42
|
5953 test -z "$as_dir" && as_dir=.
|
Chris@42
|
5954 for ac_prog in grep ggrep; do
|
Chris@42
|
5955 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
5956 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
Chris@42
|
5957 as_fn_executable_p "$ac_path_GREP" || continue
|
Chris@42
|
5958 # Check for GNU ac_path_GREP and select it if it is found.
|
Chris@42
|
5959 # Check for GNU $ac_path_GREP
|
Chris@42
|
5960 case `"$ac_path_GREP" --version 2>&1` in
|
Chris@42
|
5961 *GNU*)
|
Chris@42
|
5962 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
Chris@42
|
5963 *)
|
Chris@42
|
5964 ac_count=0
|
Chris@42
|
5965 $as_echo_n 0123456789 >"conftest.in"
|
Chris@42
|
5966 while :
|
Chris@42
|
5967 do
|
Chris@42
|
5968 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
Chris@42
|
5969 mv "conftest.tmp" "conftest.in"
|
Chris@42
|
5970 cp "conftest.in" "conftest.nl"
|
Chris@42
|
5971 $as_echo 'GREP' >> "conftest.nl"
|
Chris@42
|
5972 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
Chris@42
|
5973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
Chris@42
|
5974 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
Chris@42
|
5975 if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
Chris@42
|
5976 # Best one so far, save it but keep looking for a better one
|
Chris@42
|
5977 ac_cv_path_GREP="$ac_path_GREP"
|
Chris@42
|
5978 ac_path_GREP_max=$ac_count
|
Chris@42
|
5979 fi
|
Chris@42
|
5980 # 10*(2^10) chars as input seems more than enough
|
Chris@42
|
5981 test $ac_count -gt 10 && break
|
Chris@42
|
5982 done
|
Chris@42
|
5983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
Chris@42
|
5984 esac
|
Chris@42
|
5985
|
Chris@42
|
5986 $ac_path_GREP_found && break 3
|
Chris@42
|
5987 done
|
Chris@42
|
5988 done
|
Chris@42
|
5989 done
|
Chris@42
|
5990 IFS=$as_save_IFS
|
Chris@42
|
5991 if test -z "$ac_cv_path_GREP"; then
|
Chris@42
|
5992 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
Chris@42
|
5993 fi
|
Chris@42
|
5994 else
|
Chris@42
|
5995 ac_cv_path_GREP=$GREP
|
Chris@42
|
5996 fi
|
Chris@42
|
5997
|
Chris@42
|
5998 fi
|
Chris@42
|
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
Chris@42
|
6000 $as_echo "$ac_cv_path_GREP" >&6; }
|
Chris@42
|
6001 GREP="$ac_cv_path_GREP"
|
Chris@42
|
6002
|
Chris@42
|
6003
|
Chris@42
|
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
Chris@42
|
6005 $as_echo_n "checking for egrep... " >&6; }
|
Chris@42
|
6006 if ${ac_cv_path_EGREP+:} false; then :
|
Chris@42
|
6007 $as_echo_n "(cached) " >&6
|
Chris@42
|
6008 else
|
Chris@42
|
6009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
Chris@42
|
6010 then ac_cv_path_EGREP="$GREP -E"
|
Chris@42
|
6011 else
|
Chris@42
|
6012 if test -z "$EGREP"; then
|
Chris@42
|
6013 ac_path_EGREP_found=false
|
Chris@42
|
6014 # Loop through the user's path and test for each of PROGNAME-LIST
|
Chris@42
|
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
6016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
Chris@42
|
6017 do
|
Chris@42
|
6018 IFS=$as_save_IFS
|
Chris@42
|
6019 test -z "$as_dir" && as_dir=.
|
Chris@42
|
6020 for ac_prog in egrep; do
|
Chris@42
|
6021 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
6022 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
Chris@42
|
6023 as_fn_executable_p "$ac_path_EGREP" || continue
|
Chris@42
|
6024 # Check for GNU ac_path_EGREP and select it if it is found.
|
Chris@42
|
6025 # Check for GNU $ac_path_EGREP
|
Chris@42
|
6026 case `"$ac_path_EGREP" --version 2>&1` in
|
Chris@42
|
6027 *GNU*)
|
Chris@42
|
6028 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
Chris@42
|
6029 *)
|
Chris@42
|
6030 ac_count=0
|
Chris@42
|
6031 $as_echo_n 0123456789 >"conftest.in"
|
Chris@42
|
6032 while :
|
Chris@42
|
6033 do
|
Chris@42
|
6034 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
Chris@42
|
6035 mv "conftest.tmp" "conftest.in"
|
Chris@42
|
6036 cp "conftest.in" "conftest.nl"
|
Chris@42
|
6037 $as_echo 'EGREP' >> "conftest.nl"
|
Chris@42
|
6038 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
Chris@42
|
6039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
Chris@42
|
6040 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
Chris@42
|
6041 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
Chris@42
|
6042 # Best one so far, save it but keep looking for a better one
|
Chris@42
|
6043 ac_cv_path_EGREP="$ac_path_EGREP"
|
Chris@42
|
6044 ac_path_EGREP_max=$ac_count
|
Chris@42
|
6045 fi
|
Chris@42
|
6046 # 10*(2^10) chars as input seems more than enough
|
Chris@42
|
6047 test $ac_count -gt 10 && break
|
Chris@42
|
6048 done
|
Chris@42
|
6049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
Chris@42
|
6050 esac
|
Chris@42
|
6051
|
Chris@42
|
6052 $ac_path_EGREP_found && break 3
|
Chris@42
|
6053 done
|
Chris@42
|
6054 done
|
Chris@42
|
6055 done
|
Chris@42
|
6056 IFS=$as_save_IFS
|
Chris@42
|
6057 if test -z "$ac_cv_path_EGREP"; then
|
Chris@42
|
6058 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
Chris@42
|
6059 fi
|
Chris@42
|
6060 else
|
Chris@42
|
6061 ac_cv_path_EGREP=$EGREP
|
Chris@42
|
6062 fi
|
Chris@42
|
6063
|
Chris@42
|
6064 fi
|
Chris@42
|
6065 fi
|
Chris@42
|
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
Chris@42
|
6067 $as_echo "$ac_cv_path_EGREP" >&6; }
|
Chris@42
|
6068 EGREP="$ac_cv_path_EGREP"
|
Chris@42
|
6069
|
Chris@42
|
6070
|
Chris@42
|
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
Chris@42
|
6072 $as_echo_n "checking for fgrep... " >&6; }
|
Chris@42
|
6073 if ${ac_cv_path_FGREP+:} false; then :
|
Chris@42
|
6074 $as_echo_n "(cached) " >&6
|
Chris@42
|
6075 else
|
Chris@42
|
6076 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
Chris@42
|
6077 then ac_cv_path_FGREP="$GREP -F"
|
Chris@42
|
6078 else
|
Chris@42
|
6079 if test -z "$FGREP"; then
|
Chris@42
|
6080 ac_path_FGREP_found=false
|
Chris@42
|
6081 # Loop through the user's path and test for each of PROGNAME-LIST
|
Chris@42
|
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
6083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
Chris@42
|
6084 do
|
Chris@42
|
6085 IFS=$as_save_IFS
|
Chris@42
|
6086 test -z "$as_dir" && as_dir=.
|
Chris@42
|
6087 for ac_prog in fgrep; do
|
Chris@42
|
6088 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
6089 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
Chris@42
|
6090 as_fn_executable_p "$ac_path_FGREP" || continue
|
Chris@42
|
6091 # Check for GNU ac_path_FGREP and select it if it is found.
|
Chris@42
|
6092 # Check for GNU $ac_path_FGREP
|
Chris@42
|
6093 case `"$ac_path_FGREP" --version 2>&1` in
|
Chris@42
|
6094 *GNU*)
|
Chris@42
|
6095 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
Chris@42
|
6096 *)
|
Chris@42
|
6097 ac_count=0
|
Chris@42
|
6098 $as_echo_n 0123456789 >"conftest.in"
|
Chris@42
|
6099 while :
|
Chris@42
|
6100 do
|
Chris@42
|
6101 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
Chris@42
|
6102 mv "conftest.tmp" "conftest.in"
|
Chris@42
|
6103 cp "conftest.in" "conftest.nl"
|
Chris@42
|
6104 $as_echo 'FGREP' >> "conftest.nl"
|
Chris@42
|
6105 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
Chris@42
|
6106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
Chris@42
|
6107 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
Chris@42
|
6108 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
Chris@42
|
6109 # Best one so far, save it but keep looking for a better one
|
Chris@42
|
6110 ac_cv_path_FGREP="$ac_path_FGREP"
|
Chris@42
|
6111 ac_path_FGREP_max=$ac_count
|
Chris@42
|
6112 fi
|
Chris@42
|
6113 # 10*(2^10) chars as input seems more than enough
|
Chris@42
|
6114 test $ac_count -gt 10 && break
|
Chris@42
|
6115 done
|
Chris@42
|
6116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
Chris@42
|
6117 esac
|
Chris@42
|
6118
|
Chris@42
|
6119 $ac_path_FGREP_found && break 3
|
Chris@42
|
6120 done
|
Chris@42
|
6121 done
|
Chris@42
|
6122 done
|
Chris@42
|
6123 IFS=$as_save_IFS
|
Chris@42
|
6124 if test -z "$ac_cv_path_FGREP"; then
|
Chris@42
|
6125 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
Chris@42
|
6126 fi
|
Chris@42
|
6127 else
|
Chris@42
|
6128 ac_cv_path_FGREP=$FGREP
|
Chris@42
|
6129 fi
|
Chris@42
|
6130
|
Chris@42
|
6131 fi
|
Chris@42
|
6132 fi
|
Chris@42
|
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
Chris@42
|
6134 $as_echo "$ac_cv_path_FGREP" >&6; }
|
Chris@42
|
6135 FGREP="$ac_cv_path_FGREP"
|
Chris@42
|
6136
|
Chris@42
|
6137
|
Chris@42
|
6138 test -z "$GREP" && GREP=grep
|
Chris@42
|
6139
|
Chris@42
|
6140
|
Chris@42
|
6141
|
Chris@42
|
6142
|
Chris@42
|
6143
|
Chris@42
|
6144
|
Chris@42
|
6145
|
Chris@42
|
6146
|
Chris@42
|
6147
|
Chris@42
|
6148
|
Chris@42
|
6149
|
Chris@42
|
6150
|
Chris@42
|
6151
|
Chris@42
|
6152
|
Chris@42
|
6153
|
Chris@42
|
6154
|
Chris@42
|
6155
|
Chris@42
|
6156
|
Chris@42
|
6157
|
Chris@42
|
6158 # Check whether --with-gnu-ld was given.
|
Chris@42
|
6159 if test "${with_gnu_ld+set}" = set; then :
|
Chris@42
|
6160 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
Chris@42
|
6161 else
|
Chris@42
|
6162 with_gnu_ld=no
|
Chris@42
|
6163 fi
|
Chris@42
|
6164
|
Chris@42
|
6165 ac_prog=ld
|
Chris@42
|
6166 if test "$GCC" = yes; then
|
Chris@42
|
6167 # Check if gcc -print-prog-name=ld gives a path.
|
Chris@42
|
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
Chris@42
|
6169 $as_echo_n "checking for ld used by $CC... " >&6; }
|
Chris@42
|
6170 case $host in
|
Chris@42
|
6171 *-*-mingw*)
|
Chris@42
|
6172 # gcc leaves a trailing carriage return which upsets mingw
|
Chris@42
|
6173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
Chris@42
|
6174 *)
|
Chris@42
|
6175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
Chris@42
|
6176 esac
|
Chris@42
|
6177 case $ac_prog in
|
Chris@42
|
6178 # Accept absolute paths.
|
Chris@42
|
6179 [\\/]* | ?:[\\/]*)
|
Chris@42
|
6180 re_direlt='/[^/][^/]*/\.\./'
|
Chris@42
|
6181 # Canonicalize the pathname of ld
|
Chris@42
|
6182 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
Chris@42
|
6183 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
Chris@42
|
6184 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
Chris@42
|
6185 done
|
Chris@42
|
6186 test -z "$LD" && LD="$ac_prog"
|
Chris@42
|
6187 ;;
|
Chris@42
|
6188 "")
|
Chris@42
|
6189 # If it fails, then pretend we aren't using GCC.
|
Chris@42
|
6190 ac_prog=ld
|
Chris@42
|
6191 ;;
|
Chris@42
|
6192 *)
|
Chris@42
|
6193 # If it is relative, then search for the first ld in PATH.
|
Chris@42
|
6194 with_gnu_ld=unknown
|
Chris@42
|
6195 ;;
|
Chris@42
|
6196 esac
|
Chris@42
|
6197 elif test "$with_gnu_ld" = yes; then
|
Chris@42
|
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
Chris@42
|
6199 $as_echo_n "checking for GNU ld... " >&6; }
|
Chris@42
|
6200 else
|
Chris@42
|
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
Chris@42
|
6202 $as_echo_n "checking for non-GNU ld... " >&6; }
|
Chris@42
|
6203 fi
|
Chris@42
|
6204 if ${lt_cv_path_LD+:} false; then :
|
Chris@42
|
6205 $as_echo_n "(cached) " >&6
|
Chris@42
|
6206 else
|
Chris@42
|
6207 if test -z "$LD"; then
|
Chris@42
|
6208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
Chris@42
|
6209 for ac_dir in $PATH; do
|
Chris@42
|
6210 IFS="$lt_save_ifs"
|
Chris@42
|
6211 test -z "$ac_dir" && ac_dir=.
|
Chris@42
|
6212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
Chris@42
|
6213 lt_cv_path_LD="$ac_dir/$ac_prog"
|
Chris@42
|
6214 # Check to see if the program is GNU ld. I'd rather use --version,
|
Chris@42
|
6215 # but apparently some variants of GNU ld only accept -v.
|
Chris@42
|
6216 # Break only if it was the GNU/non-GNU ld that we prefer.
|
Chris@42
|
6217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
Chris@42
|
6218 *GNU* | *'with BFD'*)
|
Chris@42
|
6219 test "$with_gnu_ld" != no && break
|
Chris@42
|
6220 ;;
|
Chris@42
|
6221 *)
|
Chris@42
|
6222 test "$with_gnu_ld" != yes && break
|
Chris@42
|
6223 ;;
|
Chris@42
|
6224 esac
|
Chris@42
|
6225 fi
|
Chris@42
|
6226 done
|
Chris@42
|
6227 IFS="$lt_save_ifs"
|
Chris@42
|
6228 else
|
Chris@42
|
6229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
Chris@42
|
6230 fi
|
Chris@42
|
6231 fi
|
Chris@42
|
6232
|
Chris@42
|
6233 LD="$lt_cv_path_LD"
|
Chris@42
|
6234 if test -n "$LD"; then
|
Chris@42
|
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
Chris@42
|
6236 $as_echo "$LD" >&6; }
|
Chris@42
|
6237 else
|
Chris@42
|
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
6239 $as_echo "no" >&6; }
|
Chris@42
|
6240 fi
|
Chris@42
|
6241 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
Chris@42
|
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
Chris@42
|
6243 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
Chris@42
|
6244 if ${lt_cv_prog_gnu_ld+:} false; then :
|
Chris@42
|
6245 $as_echo_n "(cached) " >&6
|
Chris@42
|
6246 else
|
Chris@42
|
6247 # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
Chris@42
|
6248 case `$LD -v 2>&1 </dev/null` in
|
Chris@42
|
6249 *GNU* | *'with BFD'*)
|
Chris@42
|
6250 lt_cv_prog_gnu_ld=yes
|
Chris@42
|
6251 ;;
|
Chris@42
|
6252 *)
|
Chris@42
|
6253 lt_cv_prog_gnu_ld=no
|
Chris@42
|
6254 ;;
|
Chris@42
|
6255 esac
|
Chris@42
|
6256 fi
|
Chris@42
|
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
Chris@42
|
6258 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
Chris@42
|
6259 with_gnu_ld=$lt_cv_prog_gnu_ld
|
Chris@42
|
6260
|
Chris@42
|
6261
|
Chris@42
|
6262
|
Chris@42
|
6263
|
Chris@42
|
6264
|
Chris@42
|
6265
|
Chris@42
|
6266
|
Chris@42
|
6267
|
Chris@42
|
6268
|
Chris@42
|
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
Chris@42
|
6270 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
Chris@42
|
6271 if ${lt_cv_path_NM+:} false; then :
|
Chris@42
|
6272 $as_echo_n "(cached) " >&6
|
Chris@42
|
6273 else
|
Chris@42
|
6274 if test -n "$NM"; then
|
Chris@42
|
6275 # Let the user override the test.
|
Chris@42
|
6276 lt_cv_path_NM="$NM"
|
Chris@42
|
6277 else
|
Chris@42
|
6278 lt_nm_to_check="${ac_tool_prefix}nm"
|
Chris@42
|
6279 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
Chris@42
|
6280 lt_nm_to_check="$lt_nm_to_check nm"
|
Chris@42
|
6281 fi
|
Chris@42
|
6282 for lt_tmp_nm in $lt_nm_to_check; do
|
Chris@42
|
6283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
Chris@42
|
6284 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
Chris@42
|
6285 IFS="$lt_save_ifs"
|
Chris@42
|
6286 test -z "$ac_dir" && ac_dir=.
|
Chris@42
|
6287 tmp_nm="$ac_dir/$lt_tmp_nm"
|
Chris@42
|
6288 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
Chris@42
|
6289 # Check to see if the nm accepts a BSD-compat flag.
|
Chris@42
|
6290 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
Chris@42
|
6291 # nm: unknown option "B" ignored
|
Chris@42
|
6292 # Tru64's nm complains that /dev/null is an invalid object file
|
Chris@42
|
6293 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
Chris@42
|
6294 */dev/null* | *'Invalid file or object type'*)
|
Chris@42
|
6295 lt_cv_path_NM="$tmp_nm -B"
|
Chris@42
|
6296 break
|
Chris@42
|
6297 ;;
|
Chris@42
|
6298 *)
|
Chris@42
|
6299 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
Chris@42
|
6300 */dev/null*)
|
Chris@42
|
6301 lt_cv_path_NM="$tmp_nm -p"
|
Chris@42
|
6302 break
|
Chris@42
|
6303 ;;
|
Chris@42
|
6304 *)
|
Chris@42
|
6305 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
Chris@42
|
6306 continue # so that we can try to find one that supports BSD flags
|
Chris@42
|
6307 ;;
|
Chris@42
|
6308 esac
|
Chris@42
|
6309 ;;
|
Chris@42
|
6310 esac
|
Chris@42
|
6311 fi
|
Chris@42
|
6312 done
|
Chris@42
|
6313 IFS="$lt_save_ifs"
|
Chris@42
|
6314 done
|
Chris@42
|
6315 : ${lt_cv_path_NM=no}
|
Chris@42
|
6316 fi
|
Chris@42
|
6317 fi
|
Chris@42
|
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
|
Chris@42
|
6319 $as_echo "$lt_cv_path_NM" >&6; }
|
Chris@42
|
6320 if test "$lt_cv_path_NM" != "no"; then
|
Chris@42
|
6321 NM="$lt_cv_path_NM"
|
Chris@42
|
6322 else
|
Chris@42
|
6323 # Didn't find any BSD compatible name lister, look for dumpbin.
|
Chris@42
|
6324 if test -n "$DUMPBIN"; then :
|
Chris@42
|
6325 # Let the user override the test.
|
Chris@42
|
6326 else
|
Chris@42
|
6327 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
6328 for ac_prog in dumpbin "link -dump"
|
Chris@42
|
6329 do
|
Chris@42
|
6330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
Chris@42
|
6331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
Chris@42
|
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
6333 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
6334 if ${ac_cv_prog_DUMPBIN+:} false; then :
|
Chris@42
|
6335 $as_echo_n "(cached) " >&6
|
Chris@42
|
6336 else
|
Chris@42
|
6337 if test -n "$DUMPBIN"; then
|
Chris@42
|
6338 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
Chris@42
|
6339 else
|
Chris@42
|
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
6341 for as_dir in $PATH
|
Chris@42
|
6342 do
|
Chris@42
|
6343 IFS=$as_save_IFS
|
Chris@42
|
6344 test -z "$as_dir" && as_dir=.
|
Chris@42
|
6345 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
6347 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
Chris@42
|
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
6349 break 2
|
Chris@42
|
6350 fi
|
Chris@42
|
6351 done
|
Chris@42
|
6352 done
|
Chris@42
|
6353 IFS=$as_save_IFS
|
Chris@42
|
6354
|
Chris@42
|
6355 fi
|
Chris@42
|
6356 fi
|
Chris@42
|
6357 DUMPBIN=$ac_cv_prog_DUMPBIN
|
Chris@42
|
6358 if test -n "$DUMPBIN"; then
|
Chris@42
|
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
|
Chris@42
|
6360 $as_echo "$DUMPBIN" >&6; }
|
Chris@42
|
6361 else
|
Chris@42
|
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
6363 $as_echo "no" >&6; }
|
Chris@42
|
6364 fi
|
Chris@42
|
6365
|
Chris@42
|
6366
|
Chris@42
|
6367 test -n "$DUMPBIN" && break
|
Chris@42
|
6368 done
|
Chris@42
|
6369 fi
|
Chris@42
|
6370 if test -z "$DUMPBIN"; then
|
Chris@42
|
6371 ac_ct_DUMPBIN=$DUMPBIN
|
Chris@42
|
6372 for ac_prog in dumpbin "link -dump"
|
Chris@42
|
6373 do
|
Chris@42
|
6374 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
Chris@42
|
6375 set dummy $ac_prog; ac_word=$2
|
Chris@42
|
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
6377 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
6378 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
|
Chris@42
|
6379 $as_echo_n "(cached) " >&6
|
Chris@42
|
6380 else
|
Chris@42
|
6381 if test -n "$ac_ct_DUMPBIN"; then
|
Chris@42
|
6382 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
Chris@42
|
6383 else
|
Chris@42
|
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
6385 for as_dir in $PATH
|
Chris@42
|
6386 do
|
Chris@42
|
6387 IFS=$as_save_IFS
|
Chris@42
|
6388 test -z "$as_dir" && as_dir=.
|
Chris@42
|
6389 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
6391 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
Chris@42
|
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
6393 break 2
|
Chris@42
|
6394 fi
|
Chris@42
|
6395 done
|
Chris@42
|
6396 done
|
Chris@42
|
6397 IFS=$as_save_IFS
|
Chris@42
|
6398
|
Chris@42
|
6399 fi
|
Chris@42
|
6400 fi
|
Chris@42
|
6401 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
Chris@42
|
6402 if test -n "$ac_ct_DUMPBIN"; then
|
Chris@42
|
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
|
Chris@42
|
6404 $as_echo "$ac_ct_DUMPBIN" >&6; }
|
Chris@42
|
6405 else
|
Chris@42
|
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
6407 $as_echo "no" >&6; }
|
Chris@42
|
6408 fi
|
Chris@42
|
6409
|
Chris@42
|
6410
|
Chris@42
|
6411 test -n "$ac_ct_DUMPBIN" && break
|
Chris@42
|
6412 done
|
Chris@42
|
6413
|
Chris@42
|
6414 if test "x$ac_ct_DUMPBIN" = x; then
|
Chris@42
|
6415 DUMPBIN=":"
|
Chris@42
|
6416 else
|
Chris@42
|
6417 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
6418 yes:)
|
Chris@42
|
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
6421 ac_tool_warned=yes ;;
|
Chris@42
|
6422 esac
|
Chris@42
|
6423 DUMPBIN=$ac_ct_DUMPBIN
|
Chris@42
|
6424 fi
|
Chris@42
|
6425 fi
|
Chris@42
|
6426
|
Chris@42
|
6427 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
|
Chris@42
|
6428 *COFF*)
|
Chris@42
|
6429 DUMPBIN="$DUMPBIN -symbols"
|
Chris@42
|
6430 ;;
|
Chris@42
|
6431 *)
|
Chris@42
|
6432 DUMPBIN=:
|
Chris@42
|
6433 ;;
|
Chris@42
|
6434 esac
|
Chris@42
|
6435 fi
|
Chris@42
|
6436
|
Chris@42
|
6437 if test "$DUMPBIN" != ":"; then
|
Chris@42
|
6438 NM="$DUMPBIN"
|
Chris@42
|
6439 fi
|
Chris@42
|
6440 fi
|
Chris@42
|
6441 test -z "$NM" && NM=nm
|
Chris@42
|
6442
|
Chris@42
|
6443
|
Chris@42
|
6444
|
Chris@42
|
6445
|
Chris@42
|
6446
|
Chris@42
|
6447
|
Chris@42
|
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
|
Chris@42
|
6449 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
|
Chris@42
|
6450 if ${lt_cv_nm_interface+:} false; then :
|
Chris@42
|
6451 $as_echo_n "(cached) " >&6
|
Chris@42
|
6452 else
|
Chris@42
|
6453 lt_cv_nm_interface="BSD nm"
|
Chris@42
|
6454 echo "int some_variable = 0;" > conftest.$ac_ext
|
Chris@42
|
6455 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
|
Chris@42
|
6456 (eval "$ac_compile" 2>conftest.err)
|
Chris@42
|
6457 cat conftest.err >&5
|
Chris@42
|
6458 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
Chris@42
|
6459 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
Chris@42
|
6460 cat conftest.err >&5
|
Chris@42
|
6461 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
|
Chris@42
|
6462 cat conftest.out >&5
|
Chris@42
|
6463 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
Chris@42
|
6464 lt_cv_nm_interface="MS dumpbin"
|
Chris@42
|
6465 fi
|
Chris@42
|
6466 rm -f conftest*
|
Chris@42
|
6467 fi
|
Chris@42
|
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
|
Chris@42
|
6469 $as_echo "$lt_cv_nm_interface" >&6; }
|
Chris@42
|
6470
|
Chris@42
|
6471 # find the maximum length of command line arguments
|
Chris@42
|
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
|
Chris@42
|
6473 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
|
Chris@42
|
6474 if ${lt_cv_sys_max_cmd_len+:} false; then :
|
Chris@42
|
6475 $as_echo_n "(cached) " >&6
|
Chris@42
|
6476 else
|
Chris@42
|
6477 i=0
|
Chris@42
|
6478 teststring="ABCD"
|
Chris@42
|
6479
|
Chris@42
|
6480 case $build_os in
|
Chris@42
|
6481 msdosdjgpp*)
|
Chris@42
|
6482 # On DJGPP, this test can blow up pretty badly due to problems in libc
|
Chris@42
|
6483 # (any single argument exceeding 2000 bytes causes a buffer overrun
|
Chris@42
|
6484 # during glob expansion). Even if it were fixed, the result of this
|
Chris@42
|
6485 # check would be larger than it should be.
|
Chris@42
|
6486 lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
Chris@42
|
6487 ;;
|
Chris@42
|
6488
|
Chris@42
|
6489 gnu*)
|
Chris@42
|
6490 # Under GNU Hurd, this test is not required because there is
|
Chris@42
|
6491 # no limit to the length of command line arguments.
|
Chris@42
|
6492 # Libtool will interpret -1 as no limit whatsoever
|
Chris@42
|
6493 lt_cv_sys_max_cmd_len=-1;
|
Chris@42
|
6494 ;;
|
Chris@42
|
6495
|
Chris@42
|
6496 cygwin* | mingw* | cegcc*)
|
Chris@42
|
6497 # On Win9x/ME, this test blows up -- it succeeds, but takes
|
Chris@42
|
6498 # about 5 minutes as the teststring grows exponentially.
|
Chris@42
|
6499 # Worse, since 9x/ME are not pre-emptively multitasking,
|
Chris@42
|
6500 # you end up with a "frozen" computer, even though with patience
|
Chris@42
|
6501 # the test eventually succeeds (with a max line length of 256k).
|
Chris@42
|
6502 # Instead, let's just punt: use the minimum linelength reported by
|
Chris@42
|
6503 # all of the supported platforms: 8192 (on NT/2K/XP).
|
Chris@42
|
6504 lt_cv_sys_max_cmd_len=8192;
|
Chris@42
|
6505 ;;
|
Chris@42
|
6506
|
Chris@42
|
6507 mint*)
|
Chris@42
|
6508 # On MiNT this can take a long time and run out of memory.
|
Chris@42
|
6509 lt_cv_sys_max_cmd_len=8192;
|
Chris@42
|
6510 ;;
|
Chris@42
|
6511
|
Chris@42
|
6512 amigaos*)
|
Chris@42
|
6513 # On AmigaOS with pdksh, this test takes hours, literally.
|
Chris@42
|
6514 # So we just punt and use a minimum line length of 8192.
|
Chris@42
|
6515 lt_cv_sys_max_cmd_len=8192;
|
Chris@42
|
6516 ;;
|
Chris@42
|
6517
|
Chris@42
|
6518 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
Chris@42
|
6519 # This has been around since 386BSD, at least. Likely further.
|
Chris@42
|
6520 if test -x /sbin/sysctl; then
|
Chris@42
|
6521 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
Chris@42
|
6522 elif test -x /usr/sbin/sysctl; then
|
Chris@42
|
6523 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
Chris@42
|
6524 else
|
Chris@42
|
6525 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
Chris@42
|
6526 fi
|
Chris@42
|
6527 # And add a safety zone
|
Chris@42
|
6528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
Chris@42
|
6529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
Chris@42
|
6530 ;;
|
Chris@42
|
6531
|
Chris@42
|
6532 interix*)
|
Chris@42
|
6533 # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
Chris@42
|
6534 lt_cv_sys_max_cmd_len=196608
|
Chris@42
|
6535 ;;
|
Chris@42
|
6536
|
Chris@42
|
6537 os2*)
|
Chris@42
|
6538 # The test takes a long time on OS/2.
|
Chris@42
|
6539 lt_cv_sys_max_cmd_len=8192
|
Chris@42
|
6540 ;;
|
Chris@42
|
6541
|
Chris@42
|
6542 osf*)
|
Chris@42
|
6543 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
Chris@42
|
6544 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
Chris@42
|
6545 # nice to cause kernel panics so lets avoid the loop below.
|
Chris@42
|
6546 # First set a reasonable default.
|
Chris@42
|
6547 lt_cv_sys_max_cmd_len=16384
|
Chris@42
|
6548 #
|
Chris@42
|
6549 if test -x /sbin/sysconfig; then
|
Chris@42
|
6550 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
Chris@42
|
6551 *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
Chris@42
|
6552 esac
|
Chris@42
|
6553 fi
|
Chris@42
|
6554 ;;
|
Chris@42
|
6555 sco3.2v5*)
|
Chris@42
|
6556 lt_cv_sys_max_cmd_len=102400
|
Chris@42
|
6557 ;;
|
Chris@42
|
6558 sysv5* | sco5v6* | sysv4.2uw2*)
|
Chris@42
|
6559 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
Chris@42
|
6560 if test -n "$kargmax"; then
|
Chris@42
|
6561 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
Chris@42
|
6562 else
|
Chris@42
|
6563 lt_cv_sys_max_cmd_len=32768
|
Chris@42
|
6564 fi
|
Chris@42
|
6565 ;;
|
Chris@42
|
6566 *)
|
Chris@42
|
6567 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
Chris@42
|
6568 if test -n "$lt_cv_sys_max_cmd_len" && \
|
Chris@42
|
6569 test undefined != "$lt_cv_sys_max_cmd_len"; then
|
Chris@42
|
6570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
Chris@42
|
6571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
Chris@42
|
6572 else
|
Chris@42
|
6573 # Make teststring a little bigger before we do anything with it.
|
Chris@42
|
6574 # a 1K string should be a reasonable start.
|
Chris@42
|
6575 for i in 1 2 3 4 5 6 7 8 ; do
|
Chris@42
|
6576 teststring=$teststring$teststring
|
Chris@42
|
6577 done
|
Chris@42
|
6578 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
Chris@42
|
6579 # If test is not a shell built-in, we'll probably end up computing a
|
Chris@42
|
6580 # maximum length that is only half of the actual maximum length, but
|
Chris@42
|
6581 # we can't tell.
|
Chris@42
|
6582 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
|
Chris@42
|
6583 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
Chris@42
|
6584 test $i != 17 # 1/2 MB should be enough
|
Chris@42
|
6585 do
|
Chris@42
|
6586 i=`expr $i + 1`
|
Chris@42
|
6587 teststring=$teststring$teststring
|
Chris@42
|
6588 done
|
Chris@42
|
6589 # Only check the string length outside the loop.
|
Chris@42
|
6590 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
Chris@42
|
6591 teststring=
|
Chris@42
|
6592 # Add a significant safety factor because C++ compilers can tack on
|
Chris@42
|
6593 # massive amounts of additional arguments before passing them to the
|
Chris@42
|
6594 # linker. It appears as though 1/2 is a usable value.
|
Chris@42
|
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
Chris@42
|
6596 fi
|
Chris@42
|
6597 ;;
|
Chris@42
|
6598 esac
|
Chris@42
|
6599
|
Chris@42
|
6600 fi
|
Chris@42
|
6601
|
Chris@42
|
6602 if test -n $lt_cv_sys_max_cmd_len ; then
|
Chris@42
|
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
|
Chris@42
|
6604 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
|
Chris@42
|
6605 else
|
Chris@42
|
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
|
Chris@42
|
6607 $as_echo "none" >&6; }
|
Chris@42
|
6608 fi
|
Chris@42
|
6609 max_cmd_len=$lt_cv_sys_max_cmd_len
|
Chris@42
|
6610
|
Chris@42
|
6611
|
Chris@42
|
6612
|
Chris@42
|
6613
|
Chris@42
|
6614
|
Chris@42
|
6615
|
Chris@42
|
6616 : ${CP="cp -f"}
|
Chris@42
|
6617 : ${MV="mv -f"}
|
Chris@42
|
6618 : ${RM="rm -f"}
|
Chris@42
|
6619
|
Chris@42
|
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
|
Chris@42
|
6621 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
|
Chris@42
|
6622 # Try some XSI features
|
Chris@42
|
6623 xsi_shell=no
|
Chris@42
|
6624 ( _lt_dummy="a/b/c"
|
Chris@42
|
6625 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
Chris@42
|
6626 = c,a/b,b/c, \
|
Chris@42
|
6627 && eval 'test $(( 1 + 1 )) -eq 2 \
|
Chris@42
|
6628 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
Chris@42
|
6629 && xsi_shell=yes
|
Chris@42
|
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
|
Chris@42
|
6631 $as_echo "$xsi_shell" >&6; }
|
Chris@42
|
6632
|
Chris@42
|
6633
|
Chris@42
|
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
|
Chris@42
|
6635 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
|
Chris@42
|
6636 lt_shell_append=no
|
Chris@42
|
6637 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
|
Chris@42
|
6638 >/dev/null 2>&1 \
|
Chris@42
|
6639 && lt_shell_append=yes
|
Chris@42
|
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
|
Chris@42
|
6641 $as_echo "$lt_shell_append" >&6; }
|
Chris@42
|
6642
|
Chris@42
|
6643
|
Chris@42
|
6644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
Chris@42
|
6645 lt_unset=unset
|
Chris@42
|
6646 else
|
Chris@42
|
6647 lt_unset=false
|
Chris@42
|
6648 fi
|
Chris@42
|
6649
|
Chris@42
|
6650
|
Chris@42
|
6651
|
Chris@42
|
6652
|
Chris@42
|
6653
|
Chris@42
|
6654 # test EBCDIC or ASCII
|
Chris@42
|
6655 case `echo X|tr X '\101'` in
|
Chris@42
|
6656 A) # ASCII based system
|
Chris@42
|
6657 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
Chris@42
|
6658 lt_SP2NL='tr \040 \012'
|
Chris@42
|
6659 lt_NL2SP='tr \015\012 \040\040'
|
Chris@42
|
6660 ;;
|
Chris@42
|
6661 *) # EBCDIC based system
|
Chris@42
|
6662 lt_SP2NL='tr \100 \n'
|
Chris@42
|
6663 lt_NL2SP='tr \r\n \100\100'
|
Chris@42
|
6664 ;;
|
Chris@42
|
6665 esac
|
Chris@42
|
6666
|
Chris@42
|
6667
|
Chris@42
|
6668
|
Chris@42
|
6669
|
Chris@42
|
6670
|
Chris@42
|
6671
|
Chris@42
|
6672
|
Chris@42
|
6673
|
Chris@42
|
6674
|
Chris@42
|
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
Chris@42
|
6676 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
Chris@42
|
6677 if ${lt_cv_to_host_file_cmd+:} false; then :
|
Chris@42
|
6678 $as_echo_n "(cached) " >&6
|
Chris@42
|
6679 else
|
Chris@42
|
6680 case $host in
|
Chris@42
|
6681 *-*-mingw* )
|
Chris@42
|
6682 case $build in
|
Chris@42
|
6683 *-*-mingw* ) # actually msys
|
Chris@42
|
6684 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
Chris@42
|
6685 ;;
|
Chris@42
|
6686 *-*-cygwin* )
|
Chris@42
|
6687 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
Chris@42
|
6688 ;;
|
Chris@42
|
6689 * ) # otherwise, assume *nix
|
Chris@42
|
6690 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
Chris@42
|
6691 ;;
|
Chris@42
|
6692 esac
|
Chris@42
|
6693 ;;
|
Chris@42
|
6694 *-*-cygwin* )
|
Chris@42
|
6695 case $build in
|
Chris@42
|
6696 *-*-mingw* ) # actually msys
|
Chris@42
|
6697 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
Chris@42
|
6698 ;;
|
Chris@42
|
6699 *-*-cygwin* )
|
Chris@42
|
6700 lt_cv_to_host_file_cmd=func_convert_file_noop
|
Chris@42
|
6701 ;;
|
Chris@42
|
6702 * ) # otherwise, assume *nix
|
Chris@42
|
6703 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
Chris@42
|
6704 ;;
|
Chris@42
|
6705 esac
|
Chris@42
|
6706 ;;
|
Chris@42
|
6707 * ) # unhandled hosts (and "normal" native builds)
|
Chris@42
|
6708 lt_cv_to_host_file_cmd=func_convert_file_noop
|
Chris@42
|
6709 ;;
|
Chris@42
|
6710 esac
|
Chris@42
|
6711
|
Chris@42
|
6712 fi
|
Chris@42
|
6713
|
Chris@42
|
6714 to_host_file_cmd=$lt_cv_to_host_file_cmd
|
Chris@42
|
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
Chris@42
|
6716 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
Chris@42
|
6717
|
Chris@42
|
6718
|
Chris@42
|
6719
|
Chris@42
|
6720
|
Chris@42
|
6721
|
Chris@42
|
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
Chris@42
|
6723 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
Chris@42
|
6724 if ${lt_cv_to_tool_file_cmd+:} false; then :
|
Chris@42
|
6725 $as_echo_n "(cached) " >&6
|
Chris@42
|
6726 else
|
Chris@42
|
6727 #assume ordinary cross tools, or native build.
|
Chris@42
|
6728 lt_cv_to_tool_file_cmd=func_convert_file_noop
|
Chris@42
|
6729 case $host in
|
Chris@42
|
6730 *-*-mingw* )
|
Chris@42
|
6731 case $build in
|
Chris@42
|
6732 *-*-mingw* ) # actually msys
|
Chris@42
|
6733 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
Chris@42
|
6734 ;;
|
Chris@42
|
6735 esac
|
Chris@42
|
6736 ;;
|
Chris@42
|
6737 esac
|
Chris@42
|
6738
|
Chris@42
|
6739 fi
|
Chris@42
|
6740
|
Chris@42
|
6741 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
Chris@42
|
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
Chris@42
|
6743 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
Chris@42
|
6744
|
Chris@42
|
6745
|
Chris@42
|
6746
|
Chris@42
|
6747
|
Chris@42
|
6748
|
Chris@42
|
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
Chris@42
|
6750 $as_echo_n "checking for $LD option to reload object files... " >&6; }
|
Chris@42
|
6751 if ${lt_cv_ld_reload_flag+:} false; then :
|
Chris@42
|
6752 $as_echo_n "(cached) " >&6
|
Chris@42
|
6753 else
|
Chris@42
|
6754 lt_cv_ld_reload_flag='-r'
|
Chris@42
|
6755 fi
|
Chris@42
|
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
|
Chris@42
|
6757 $as_echo "$lt_cv_ld_reload_flag" >&6; }
|
Chris@42
|
6758 reload_flag=$lt_cv_ld_reload_flag
|
Chris@42
|
6759 case $reload_flag in
|
Chris@42
|
6760 "" | " "*) ;;
|
Chris@42
|
6761 *) reload_flag=" $reload_flag" ;;
|
Chris@42
|
6762 esac
|
Chris@42
|
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
Chris@42
|
6764 case $host_os in
|
Chris@42
|
6765 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
6766 if test "$GCC" != yes; then
|
Chris@42
|
6767 reload_cmds=false
|
Chris@42
|
6768 fi
|
Chris@42
|
6769 ;;
|
Chris@42
|
6770 darwin*)
|
Chris@42
|
6771 if test "$GCC" = yes; then
|
Chris@42
|
6772 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
Chris@42
|
6773 else
|
Chris@42
|
6774 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
Chris@42
|
6775 fi
|
Chris@42
|
6776 ;;
|
Chris@42
|
6777 esac
|
Chris@42
|
6778
|
Chris@42
|
6779
|
Chris@42
|
6780
|
Chris@42
|
6781
|
Chris@42
|
6782
|
Chris@42
|
6783
|
Chris@42
|
6784
|
Chris@42
|
6785
|
Chris@42
|
6786
|
Chris@42
|
6787 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
6788 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
Chris@42
|
6789 set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
Chris@42
|
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
6791 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
6792 if ${ac_cv_prog_OBJDUMP+:} false; then :
|
Chris@42
|
6793 $as_echo_n "(cached) " >&6
|
Chris@42
|
6794 else
|
Chris@42
|
6795 if test -n "$OBJDUMP"; then
|
Chris@42
|
6796 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
Chris@42
|
6797 else
|
Chris@42
|
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
6799 for as_dir in $PATH
|
Chris@42
|
6800 do
|
Chris@42
|
6801 IFS=$as_save_IFS
|
Chris@42
|
6802 test -z "$as_dir" && as_dir=.
|
Chris@42
|
6803 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
6805 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
Chris@42
|
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
6807 break 2
|
Chris@42
|
6808 fi
|
Chris@42
|
6809 done
|
Chris@42
|
6810 done
|
Chris@42
|
6811 IFS=$as_save_IFS
|
Chris@42
|
6812
|
Chris@42
|
6813 fi
|
Chris@42
|
6814 fi
|
Chris@42
|
6815 OBJDUMP=$ac_cv_prog_OBJDUMP
|
Chris@42
|
6816 if test -n "$OBJDUMP"; then
|
Chris@42
|
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
Chris@42
|
6818 $as_echo "$OBJDUMP" >&6; }
|
Chris@42
|
6819 else
|
Chris@42
|
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
6821 $as_echo "no" >&6; }
|
Chris@42
|
6822 fi
|
Chris@42
|
6823
|
Chris@42
|
6824
|
Chris@42
|
6825 fi
|
Chris@42
|
6826 if test -z "$ac_cv_prog_OBJDUMP"; then
|
Chris@42
|
6827 ac_ct_OBJDUMP=$OBJDUMP
|
Chris@42
|
6828 # Extract the first word of "objdump", so it can be a program name with args.
|
Chris@42
|
6829 set dummy objdump; ac_word=$2
|
Chris@42
|
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
6831 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
6832 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
Chris@42
|
6833 $as_echo_n "(cached) " >&6
|
Chris@42
|
6834 else
|
Chris@42
|
6835 if test -n "$ac_ct_OBJDUMP"; then
|
Chris@42
|
6836 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
Chris@42
|
6837 else
|
Chris@42
|
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
6839 for as_dir in $PATH
|
Chris@42
|
6840 do
|
Chris@42
|
6841 IFS=$as_save_IFS
|
Chris@42
|
6842 test -z "$as_dir" && as_dir=.
|
Chris@42
|
6843 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
6845 ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
Chris@42
|
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
6847 break 2
|
Chris@42
|
6848 fi
|
Chris@42
|
6849 done
|
Chris@42
|
6850 done
|
Chris@42
|
6851 IFS=$as_save_IFS
|
Chris@42
|
6852
|
Chris@42
|
6853 fi
|
Chris@42
|
6854 fi
|
Chris@42
|
6855 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
Chris@42
|
6856 if test -n "$ac_ct_OBJDUMP"; then
|
Chris@42
|
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
Chris@42
|
6858 $as_echo "$ac_ct_OBJDUMP" >&6; }
|
Chris@42
|
6859 else
|
Chris@42
|
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
6861 $as_echo "no" >&6; }
|
Chris@42
|
6862 fi
|
Chris@42
|
6863
|
Chris@42
|
6864 if test "x$ac_ct_OBJDUMP" = x; then
|
Chris@42
|
6865 OBJDUMP="false"
|
Chris@42
|
6866 else
|
Chris@42
|
6867 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
6868 yes:)
|
Chris@42
|
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
6871 ac_tool_warned=yes ;;
|
Chris@42
|
6872 esac
|
Chris@42
|
6873 OBJDUMP=$ac_ct_OBJDUMP
|
Chris@42
|
6874 fi
|
Chris@42
|
6875 else
|
Chris@42
|
6876 OBJDUMP="$ac_cv_prog_OBJDUMP"
|
Chris@42
|
6877 fi
|
Chris@42
|
6878
|
Chris@42
|
6879 test -z "$OBJDUMP" && OBJDUMP=objdump
|
Chris@42
|
6880
|
Chris@42
|
6881
|
Chris@42
|
6882
|
Chris@42
|
6883
|
Chris@42
|
6884
|
Chris@42
|
6885
|
Chris@42
|
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
|
Chris@42
|
6887 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
|
Chris@42
|
6888 if ${lt_cv_deplibs_check_method+:} false; then :
|
Chris@42
|
6889 $as_echo_n "(cached) " >&6
|
Chris@42
|
6890 else
|
Chris@42
|
6891 lt_cv_file_magic_cmd='$MAGIC_CMD'
|
Chris@42
|
6892 lt_cv_file_magic_test_file=
|
Chris@42
|
6893 lt_cv_deplibs_check_method='unknown'
|
Chris@42
|
6894 # Need to set the preceding variable on all platforms that support
|
Chris@42
|
6895 # interlibrary dependencies.
|
Chris@42
|
6896 # 'none' -- dependencies not supported.
|
Chris@42
|
6897 # `unknown' -- same as none, but documents that we really don't know.
|
Chris@42
|
6898 # 'pass_all' -- all dependencies passed with no checks.
|
Chris@42
|
6899 # 'test_compile' -- check by making test program.
|
Chris@42
|
6900 # 'file_magic [[regex]]' -- check by looking for files in library path
|
Chris@42
|
6901 # which responds to the $file_magic_cmd with a given extended regex.
|
Chris@42
|
6902 # If you have `file' or equivalent on your system and you're not sure
|
Chris@42
|
6903 # whether `pass_all' will *always* work, you probably want this one.
|
Chris@42
|
6904
|
Chris@42
|
6905 case $host_os in
|
Chris@42
|
6906 aix[4-9]*)
|
Chris@42
|
6907 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
6908 ;;
|
Chris@42
|
6909
|
Chris@42
|
6910 beos*)
|
Chris@42
|
6911 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
6912 ;;
|
Chris@42
|
6913
|
Chris@42
|
6914 bsdi[45]*)
|
Chris@42
|
6915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
Chris@42
|
6916 lt_cv_file_magic_cmd='/usr/bin/file -L'
|
Chris@42
|
6917 lt_cv_file_magic_test_file=/shlib/libc.so
|
Chris@42
|
6918 ;;
|
Chris@42
|
6919
|
Chris@42
|
6920 cygwin*)
|
Chris@42
|
6921 # func_win32_libid is a shell function defined in ltmain.sh
|
Chris@42
|
6922 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
Chris@42
|
6923 lt_cv_file_magic_cmd='func_win32_libid'
|
Chris@42
|
6924 ;;
|
Chris@42
|
6925
|
Chris@42
|
6926 mingw* | pw32*)
|
Chris@42
|
6927 # Base MSYS/MinGW do not provide the 'file' command needed by
|
Chris@42
|
6928 # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
Chris@42
|
6929 # unless we find 'file', for example because we are cross-compiling.
|
Chris@42
|
6930 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
|
Chris@42
|
6931 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
|
Chris@42
|
6932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
Chris@42
|
6933 lt_cv_file_magic_cmd='func_win32_libid'
|
Chris@42
|
6934 else
|
Chris@42
|
6935 # Keep this pattern in sync with the one in func_win32_libid.
|
Chris@42
|
6936 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
Chris@42
|
6937 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
Chris@42
|
6938 fi
|
Chris@42
|
6939 ;;
|
Chris@42
|
6940
|
Chris@42
|
6941 cegcc*)
|
Chris@42
|
6942 # use the weaker test based on 'objdump'. See mingw*.
|
Chris@42
|
6943 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
Chris@42
|
6944 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
Chris@42
|
6945 ;;
|
Chris@42
|
6946
|
Chris@42
|
6947 darwin* | rhapsody*)
|
Chris@42
|
6948 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
6949 ;;
|
Chris@42
|
6950
|
Chris@42
|
6951 freebsd* | dragonfly*)
|
Chris@42
|
6952 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
Chris@42
|
6953 case $host_cpu in
|
Chris@42
|
6954 i*86 )
|
Chris@42
|
6955 # Not sure whether the presence of OpenBSD here was a mistake.
|
Chris@42
|
6956 # Let's accept both of them until this is cleared up.
|
Chris@42
|
6957 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
Chris@42
|
6958 lt_cv_file_magic_cmd=/usr/bin/file
|
Chris@42
|
6959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
Chris@42
|
6960 ;;
|
Chris@42
|
6961 esac
|
Chris@42
|
6962 else
|
Chris@42
|
6963 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
6964 fi
|
Chris@42
|
6965 ;;
|
Chris@42
|
6966
|
Chris@42
|
6967 haiku*)
|
Chris@42
|
6968 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
6969 ;;
|
Chris@42
|
6970
|
Chris@42
|
6971 hpux10.20* | hpux11*)
|
Chris@42
|
6972 lt_cv_file_magic_cmd=/usr/bin/file
|
Chris@42
|
6973 case $host_cpu in
|
Chris@42
|
6974 ia64*)
|
Chris@42
|
6975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
Chris@42
|
6976 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
Chris@42
|
6977 ;;
|
Chris@42
|
6978 hppa*64*)
|
Chris@42
|
6979 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]'
|
Chris@42
|
6980 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
Chris@42
|
6981 ;;
|
Chris@42
|
6982 *)
|
Chris@42
|
6983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
|
Chris@42
|
6984 lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
Chris@42
|
6985 ;;
|
Chris@42
|
6986 esac
|
Chris@42
|
6987 ;;
|
Chris@42
|
6988
|
Chris@42
|
6989 interix[3-9]*)
|
Chris@42
|
6990 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
Chris@42
|
6991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
Chris@42
|
6992 ;;
|
Chris@42
|
6993
|
Chris@42
|
6994 irix5* | irix6* | nonstopux*)
|
Chris@42
|
6995 case $LD in
|
Chris@42
|
6996 *-32|*"-32 ") libmagic=32-bit;;
|
Chris@42
|
6997 *-n32|*"-n32 ") libmagic=N32;;
|
Chris@42
|
6998 *-64|*"-64 ") libmagic=64-bit;;
|
Chris@42
|
6999 *) libmagic=never-match;;
|
Chris@42
|
7000 esac
|
Chris@42
|
7001 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7002 ;;
|
Chris@42
|
7003
|
Chris@42
|
7004 # This must be glibc/ELF.
|
Chris@42
|
7005 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
Chris@42
|
7006 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7007 ;;
|
Chris@42
|
7008
|
Chris@42
|
7009 netbsd* | netbsdelf*-gnu)
|
Chris@42
|
7010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
Chris@42
|
7011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
Chris@42
|
7012 else
|
Chris@42
|
7013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
Chris@42
|
7014 fi
|
Chris@42
|
7015 ;;
|
Chris@42
|
7016
|
Chris@42
|
7017 newos6*)
|
Chris@42
|
7018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
Chris@42
|
7019 lt_cv_file_magic_cmd=/usr/bin/file
|
Chris@42
|
7020 lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
Chris@42
|
7021 ;;
|
Chris@42
|
7022
|
Chris@42
|
7023 *nto* | *qnx*)
|
Chris@42
|
7024 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7025 ;;
|
Chris@42
|
7026
|
Chris@42
|
7027 openbsd*)
|
Chris@42
|
7028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
Chris@42
|
7029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
Chris@42
|
7030 else
|
Chris@42
|
7031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
Chris@42
|
7032 fi
|
Chris@42
|
7033 ;;
|
Chris@42
|
7034
|
Chris@42
|
7035 osf3* | osf4* | osf5*)
|
Chris@42
|
7036 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7037 ;;
|
Chris@42
|
7038
|
Chris@42
|
7039 rdos*)
|
Chris@42
|
7040 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7041 ;;
|
Chris@42
|
7042
|
Chris@42
|
7043 solaris*)
|
Chris@42
|
7044 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7045 ;;
|
Chris@42
|
7046
|
Chris@42
|
7047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
Chris@42
|
7048 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7049 ;;
|
Chris@42
|
7050
|
Chris@42
|
7051 sysv4 | sysv4.3*)
|
Chris@42
|
7052 case $host_vendor in
|
Chris@42
|
7053 motorola)
|
Chris@42
|
7054 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]'
|
Chris@42
|
7055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
Chris@42
|
7056 ;;
|
Chris@42
|
7057 ncr)
|
Chris@42
|
7058 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7059 ;;
|
Chris@42
|
7060 sequent)
|
Chris@42
|
7061 lt_cv_file_magic_cmd='/bin/file'
|
Chris@42
|
7062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
Chris@42
|
7063 ;;
|
Chris@42
|
7064 sni)
|
Chris@42
|
7065 lt_cv_file_magic_cmd='/bin/file'
|
Chris@42
|
7066 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
Chris@42
|
7067 lt_cv_file_magic_test_file=/lib/libc.so
|
Chris@42
|
7068 ;;
|
Chris@42
|
7069 siemens)
|
Chris@42
|
7070 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7071 ;;
|
Chris@42
|
7072 pc)
|
Chris@42
|
7073 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7074 ;;
|
Chris@42
|
7075 esac
|
Chris@42
|
7076 ;;
|
Chris@42
|
7077
|
Chris@42
|
7078 tpf*)
|
Chris@42
|
7079 lt_cv_deplibs_check_method=pass_all
|
Chris@42
|
7080 ;;
|
Chris@42
|
7081 esac
|
Chris@42
|
7082
|
Chris@42
|
7083 fi
|
Chris@42
|
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
Chris@42
|
7085 $as_echo "$lt_cv_deplibs_check_method" >&6; }
|
Chris@42
|
7086
|
Chris@42
|
7087 file_magic_glob=
|
Chris@42
|
7088 want_nocaseglob=no
|
Chris@42
|
7089 if test "$build" = "$host"; then
|
Chris@42
|
7090 case $host_os in
|
Chris@42
|
7091 mingw* | pw32*)
|
Chris@42
|
7092 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
Chris@42
|
7093 want_nocaseglob=yes
|
Chris@42
|
7094 else
|
Chris@42
|
7095 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
Chris@42
|
7096 fi
|
Chris@42
|
7097 ;;
|
Chris@42
|
7098 esac
|
Chris@42
|
7099 fi
|
Chris@42
|
7100
|
Chris@42
|
7101 file_magic_cmd=$lt_cv_file_magic_cmd
|
Chris@42
|
7102 deplibs_check_method=$lt_cv_deplibs_check_method
|
Chris@42
|
7103 test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
Chris@42
|
7104
|
Chris@42
|
7105
|
Chris@42
|
7106
|
Chris@42
|
7107
|
Chris@42
|
7108
|
Chris@42
|
7109
|
Chris@42
|
7110
|
Chris@42
|
7111
|
Chris@42
|
7112
|
Chris@42
|
7113
|
Chris@42
|
7114
|
Chris@42
|
7115
|
Chris@42
|
7116
|
Chris@42
|
7117
|
Chris@42
|
7118
|
Chris@42
|
7119
|
Chris@42
|
7120
|
Chris@42
|
7121
|
Chris@42
|
7122
|
Chris@42
|
7123
|
Chris@42
|
7124
|
Chris@42
|
7125
|
Chris@42
|
7126 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
7127 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
Chris@42
|
7128 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
Chris@42
|
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
7130 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
7131 if ${ac_cv_prog_DLLTOOL+:} false; then :
|
Chris@42
|
7132 $as_echo_n "(cached) " >&6
|
Chris@42
|
7133 else
|
Chris@42
|
7134 if test -n "$DLLTOOL"; then
|
Chris@42
|
7135 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
Chris@42
|
7136 else
|
Chris@42
|
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
7138 for as_dir in $PATH
|
Chris@42
|
7139 do
|
Chris@42
|
7140 IFS=$as_save_IFS
|
Chris@42
|
7141 test -z "$as_dir" && as_dir=.
|
Chris@42
|
7142 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
7144 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
Chris@42
|
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
7146 break 2
|
Chris@42
|
7147 fi
|
Chris@42
|
7148 done
|
Chris@42
|
7149 done
|
Chris@42
|
7150 IFS=$as_save_IFS
|
Chris@42
|
7151
|
Chris@42
|
7152 fi
|
Chris@42
|
7153 fi
|
Chris@42
|
7154 DLLTOOL=$ac_cv_prog_DLLTOOL
|
Chris@42
|
7155 if test -n "$DLLTOOL"; then
|
Chris@42
|
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
Chris@42
|
7157 $as_echo "$DLLTOOL" >&6; }
|
Chris@42
|
7158 else
|
Chris@42
|
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
7160 $as_echo "no" >&6; }
|
Chris@42
|
7161 fi
|
Chris@42
|
7162
|
Chris@42
|
7163
|
Chris@42
|
7164 fi
|
Chris@42
|
7165 if test -z "$ac_cv_prog_DLLTOOL"; then
|
Chris@42
|
7166 ac_ct_DLLTOOL=$DLLTOOL
|
Chris@42
|
7167 # Extract the first word of "dlltool", so it can be a program name with args.
|
Chris@42
|
7168 set dummy dlltool; ac_word=$2
|
Chris@42
|
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
7170 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
7171 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
Chris@42
|
7172 $as_echo_n "(cached) " >&6
|
Chris@42
|
7173 else
|
Chris@42
|
7174 if test -n "$ac_ct_DLLTOOL"; then
|
Chris@42
|
7175 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
Chris@42
|
7176 else
|
Chris@42
|
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
7178 for as_dir in $PATH
|
Chris@42
|
7179 do
|
Chris@42
|
7180 IFS=$as_save_IFS
|
Chris@42
|
7181 test -z "$as_dir" && as_dir=.
|
Chris@42
|
7182 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
7184 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
Chris@42
|
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
7186 break 2
|
Chris@42
|
7187 fi
|
Chris@42
|
7188 done
|
Chris@42
|
7189 done
|
Chris@42
|
7190 IFS=$as_save_IFS
|
Chris@42
|
7191
|
Chris@42
|
7192 fi
|
Chris@42
|
7193 fi
|
Chris@42
|
7194 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
Chris@42
|
7195 if test -n "$ac_ct_DLLTOOL"; then
|
Chris@42
|
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
Chris@42
|
7197 $as_echo "$ac_ct_DLLTOOL" >&6; }
|
Chris@42
|
7198 else
|
Chris@42
|
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
7200 $as_echo "no" >&6; }
|
Chris@42
|
7201 fi
|
Chris@42
|
7202
|
Chris@42
|
7203 if test "x$ac_ct_DLLTOOL" = x; then
|
Chris@42
|
7204 DLLTOOL="false"
|
Chris@42
|
7205 else
|
Chris@42
|
7206 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
7207 yes:)
|
Chris@42
|
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
7209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
7210 ac_tool_warned=yes ;;
|
Chris@42
|
7211 esac
|
Chris@42
|
7212 DLLTOOL=$ac_ct_DLLTOOL
|
Chris@42
|
7213 fi
|
Chris@42
|
7214 else
|
Chris@42
|
7215 DLLTOOL="$ac_cv_prog_DLLTOOL"
|
Chris@42
|
7216 fi
|
Chris@42
|
7217
|
Chris@42
|
7218 test -z "$DLLTOOL" && DLLTOOL=dlltool
|
Chris@42
|
7219
|
Chris@42
|
7220
|
Chris@42
|
7221
|
Chris@42
|
7222
|
Chris@42
|
7223
|
Chris@42
|
7224
|
Chris@42
|
7225
|
Chris@42
|
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
Chris@42
|
7227 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
Chris@42
|
7228 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
Chris@42
|
7229 $as_echo_n "(cached) " >&6
|
Chris@42
|
7230 else
|
Chris@42
|
7231 lt_cv_sharedlib_from_linklib_cmd='unknown'
|
Chris@42
|
7232
|
Chris@42
|
7233 case $host_os in
|
Chris@42
|
7234 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
7235 # two different shell functions defined in ltmain.sh
|
Chris@42
|
7236 # decide which to use based on capabilities of $DLLTOOL
|
Chris@42
|
7237 case `$DLLTOOL --help 2>&1` in
|
Chris@42
|
7238 *--identify-strict*)
|
Chris@42
|
7239 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
Chris@42
|
7240 ;;
|
Chris@42
|
7241 *)
|
Chris@42
|
7242 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
Chris@42
|
7243 ;;
|
Chris@42
|
7244 esac
|
Chris@42
|
7245 ;;
|
Chris@42
|
7246 *)
|
Chris@42
|
7247 # fallback: assume linklib IS sharedlib
|
Chris@42
|
7248 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
Chris@42
|
7249 ;;
|
Chris@42
|
7250 esac
|
Chris@42
|
7251
|
Chris@42
|
7252 fi
|
Chris@42
|
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
Chris@42
|
7254 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
Chris@42
|
7255 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
Chris@42
|
7256 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
Chris@42
|
7257
|
Chris@42
|
7258
|
Chris@42
|
7259
|
Chris@42
|
7260
|
Chris@42
|
7261
|
Chris@42
|
7262
|
Chris@42
|
7263
|
Chris@42
|
7264 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
7265 for ac_prog in ar
|
Chris@42
|
7266 do
|
Chris@42
|
7267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
Chris@42
|
7268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
Chris@42
|
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
7270 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
7271 if ${ac_cv_prog_AR+:} false; then :
|
Chris@42
|
7272 $as_echo_n "(cached) " >&6
|
Chris@42
|
7273 else
|
Chris@42
|
7274 if test -n "$AR"; then
|
Chris@42
|
7275 ac_cv_prog_AR="$AR" # Let the user override the test.
|
Chris@42
|
7276 else
|
Chris@42
|
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
7278 for as_dir in $PATH
|
Chris@42
|
7279 do
|
Chris@42
|
7280 IFS=$as_save_IFS
|
Chris@42
|
7281 test -z "$as_dir" && as_dir=.
|
Chris@42
|
7282 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
7284 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
Chris@42
|
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
7286 break 2
|
Chris@42
|
7287 fi
|
Chris@42
|
7288 done
|
Chris@42
|
7289 done
|
Chris@42
|
7290 IFS=$as_save_IFS
|
Chris@42
|
7291
|
Chris@42
|
7292 fi
|
Chris@42
|
7293 fi
|
Chris@42
|
7294 AR=$ac_cv_prog_AR
|
Chris@42
|
7295 if test -n "$AR"; then
|
Chris@42
|
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
Chris@42
|
7297 $as_echo "$AR" >&6; }
|
Chris@42
|
7298 else
|
Chris@42
|
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
7300 $as_echo "no" >&6; }
|
Chris@42
|
7301 fi
|
Chris@42
|
7302
|
Chris@42
|
7303
|
Chris@42
|
7304 test -n "$AR" && break
|
Chris@42
|
7305 done
|
Chris@42
|
7306 fi
|
Chris@42
|
7307 if test -z "$AR"; then
|
Chris@42
|
7308 ac_ct_AR=$AR
|
Chris@42
|
7309 for ac_prog in ar
|
Chris@42
|
7310 do
|
Chris@42
|
7311 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
Chris@42
|
7312 set dummy $ac_prog; ac_word=$2
|
Chris@42
|
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
7314 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
7315 if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
Chris@42
|
7316 $as_echo_n "(cached) " >&6
|
Chris@42
|
7317 else
|
Chris@42
|
7318 if test -n "$ac_ct_AR"; then
|
Chris@42
|
7319 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
Chris@42
|
7320 else
|
Chris@42
|
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
7322 for as_dir in $PATH
|
Chris@42
|
7323 do
|
Chris@42
|
7324 IFS=$as_save_IFS
|
Chris@42
|
7325 test -z "$as_dir" && as_dir=.
|
Chris@42
|
7326 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
7328 ac_cv_prog_ac_ct_AR="$ac_prog"
|
Chris@42
|
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
7330 break 2
|
Chris@42
|
7331 fi
|
Chris@42
|
7332 done
|
Chris@42
|
7333 done
|
Chris@42
|
7334 IFS=$as_save_IFS
|
Chris@42
|
7335
|
Chris@42
|
7336 fi
|
Chris@42
|
7337 fi
|
Chris@42
|
7338 ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
Chris@42
|
7339 if test -n "$ac_ct_AR"; then
|
Chris@42
|
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
Chris@42
|
7341 $as_echo "$ac_ct_AR" >&6; }
|
Chris@42
|
7342 else
|
Chris@42
|
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
7344 $as_echo "no" >&6; }
|
Chris@42
|
7345 fi
|
Chris@42
|
7346
|
Chris@42
|
7347
|
Chris@42
|
7348 test -n "$ac_ct_AR" && break
|
Chris@42
|
7349 done
|
Chris@42
|
7350
|
Chris@42
|
7351 if test "x$ac_ct_AR" = x; then
|
Chris@42
|
7352 AR="false"
|
Chris@42
|
7353 else
|
Chris@42
|
7354 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
7355 yes:)
|
Chris@42
|
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
7358 ac_tool_warned=yes ;;
|
Chris@42
|
7359 esac
|
Chris@42
|
7360 AR=$ac_ct_AR
|
Chris@42
|
7361 fi
|
Chris@42
|
7362 fi
|
Chris@42
|
7363
|
Chris@42
|
7364 : ${AR=ar}
|
Chris@42
|
7365 : ${AR_FLAGS=cru}
|
Chris@42
|
7366
|
Chris@42
|
7367
|
Chris@42
|
7368
|
Chris@42
|
7369
|
Chris@42
|
7370
|
Chris@42
|
7371
|
Chris@42
|
7372
|
Chris@42
|
7373
|
Chris@42
|
7374
|
Chris@42
|
7375
|
Chris@42
|
7376
|
Chris@42
|
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
Chris@42
|
7378 $as_echo_n "checking for archiver @FILE support... " >&6; }
|
Chris@42
|
7379 if ${lt_cv_ar_at_file+:} false; then :
|
Chris@42
|
7380 $as_echo_n "(cached) " >&6
|
Chris@42
|
7381 else
|
Chris@42
|
7382 lt_cv_ar_at_file=no
|
Chris@42
|
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
7384 /* end confdefs.h. */
|
Chris@42
|
7385
|
Chris@42
|
7386 int
|
Chris@42
|
7387 main ()
|
Chris@42
|
7388 {
|
Chris@42
|
7389
|
Chris@42
|
7390 ;
|
Chris@42
|
7391 return 0;
|
Chris@42
|
7392 }
|
Chris@42
|
7393 _ACEOF
|
Chris@42
|
7394 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
7395 echo conftest.$ac_objext > conftest.lst
|
Chris@42
|
7396 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
Chris@42
|
7397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
Chris@42
|
7398 (eval $lt_ar_try) 2>&5
|
Chris@42
|
7399 ac_status=$?
|
Chris@42
|
7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
7401 test $ac_status = 0; }
|
Chris@42
|
7402 if test "$ac_status" -eq 0; then
|
Chris@42
|
7403 # Ensure the archiver fails upon bogus file names.
|
Chris@42
|
7404 rm -f conftest.$ac_objext libconftest.a
|
Chris@42
|
7405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
Chris@42
|
7406 (eval $lt_ar_try) 2>&5
|
Chris@42
|
7407 ac_status=$?
|
Chris@42
|
7408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
7409 test $ac_status = 0; }
|
Chris@42
|
7410 if test "$ac_status" -ne 0; then
|
Chris@42
|
7411 lt_cv_ar_at_file=@
|
Chris@42
|
7412 fi
|
Chris@42
|
7413 fi
|
Chris@42
|
7414 rm -f conftest.* libconftest.a
|
Chris@42
|
7415
|
Chris@42
|
7416 fi
|
Chris@42
|
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
7418
|
Chris@42
|
7419 fi
|
Chris@42
|
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
Chris@42
|
7421 $as_echo "$lt_cv_ar_at_file" >&6; }
|
Chris@42
|
7422
|
Chris@42
|
7423 if test "x$lt_cv_ar_at_file" = xno; then
|
Chris@42
|
7424 archiver_list_spec=
|
Chris@42
|
7425 else
|
Chris@42
|
7426 archiver_list_spec=$lt_cv_ar_at_file
|
Chris@42
|
7427 fi
|
Chris@42
|
7428
|
Chris@42
|
7429
|
Chris@42
|
7430
|
Chris@42
|
7431
|
Chris@42
|
7432
|
Chris@42
|
7433
|
Chris@42
|
7434
|
Chris@42
|
7435 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
7436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
Chris@42
|
7437 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
Chris@42
|
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
7439 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
7440 if ${ac_cv_prog_STRIP+:} false; then :
|
Chris@42
|
7441 $as_echo_n "(cached) " >&6
|
Chris@42
|
7442 else
|
Chris@42
|
7443 if test -n "$STRIP"; then
|
Chris@42
|
7444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
Chris@42
|
7445 else
|
Chris@42
|
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
7447 for as_dir in $PATH
|
Chris@42
|
7448 do
|
Chris@42
|
7449 IFS=$as_save_IFS
|
Chris@42
|
7450 test -z "$as_dir" && as_dir=.
|
Chris@42
|
7451 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
7453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
Chris@42
|
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
7455 break 2
|
Chris@42
|
7456 fi
|
Chris@42
|
7457 done
|
Chris@42
|
7458 done
|
Chris@42
|
7459 IFS=$as_save_IFS
|
Chris@42
|
7460
|
Chris@42
|
7461 fi
|
Chris@42
|
7462 fi
|
Chris@42
|
7463 STRIP=$ac_cv_prog_STRIP
|
Chris@42
|
7464 if test -n "$STRIP"; then
|
Chris@42
|
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
Chris@42
|
7466 $as_echo "$STRIP" >&6; }
|
Chris@42
|
7467 else
|
Chris@42
|
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
7469 $as_echo "no" >&6; }
|
Chris@42
|
7470 fi
|
Chris@42
|
7471
|
Chris@42
|
7472
|
Chris@42
|
7473 fi
|
Chris@42
|
7474 if test -z "$ac_cv_prog_STRIP"; then
|
Chris@42
|
7475 ac_ct_STRIP=$STRIP
|
Chris@42
|
7476 # Extract the first word of "strip", so it can be a program name with args.
|
Chris@42
|
7477 set dummy strip; ac_word=$2
|
Chris@42
|
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
7479 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
7480 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
Chris@42
|
7481 $as_echo_n "(cached) " >&6
|
Chris@42
|
7482 else
|
Chris@42
|
7483 if test -n "$ac_ct_STRIP"; then
|
Chris@42
|
7484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
Chris@42
|
7485 else
|
Chris@42
|
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
7487 for as_dir in $PATH
|
Chris@42
|
7488 do
|
Chris@42
|
7489 IFS=$as_save_IFS
|
Chris@42
|
7490 test -z "$as_dir" && as_dir=.
|
Chris@42
|
7491 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
7493 ac_cv_prog_ac_ct_STRIP="strip"
|
Chris@42
|
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
7495 break 2
|
Chris@42
|
7496 fi
|
Chris@42
|
7497 done
|
Chris@42
|
7498 done
|
Chris@42
|
7499 IFS=$as_save_IFS
|
Chris@42
|
7500
|
Chris@42
|
7501 fi
|
Chris@42
|
7502 fi
|
Chris@42
|
7503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
Chris@42
|
7504 if test -n "$ac_ct_STRIP"; then
|
Chris@42
|
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
Chris@42
|
7506 $as_echo "$ac_ct_STRIP" >&6; }
|
Chris@42
|
7507 else
|
Chris@42
|
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
7509 $as_echo "no" >&6; }
|
Chris@42
|
7510 fi
|
Chris@42
|
7511
|
Chris@42
|
7512 if test "x$ac_ct_STRIP" = x; then
|
Chris@42
|
7513 STRIP=":"
|
Chris@42
|
7514 else
|
Chris@42
|
7515 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
7516 yes:)
|
Chris@42
|
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
7518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
7519 ac_tool_warned=yes ;;
|
Chris@42
|
7520 esac
|
Chris@42
|
7521 STRIP=$ac_ct_STRIP
|
Chris@42
|
7522 fi
|
Chris@42
|
7523 else
|
Chris@42
|
7524 STRIP="$ac_cv_prog_STRIP"
|
Chris@42
|
7525 fi
|
Chris@42
|
7526
|
Chris@42
|
7527 test -z "$STRIP" && STRIP=:
|
Chris@42
|
7528
|
Chris@42
|
7529
|
Chris@42
|
7530
|
Chris@42
|
7531
|
Chris@42
|
7532
|
Chris@42
|
7533
|
Chris@42
|
7534 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
7535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
Chris@42
|
7536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
Chris@42
|
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
7538 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
7539 if ${ac_cv_prog_RANLIB+:} false; then :
|
Chris@42
|
7540 $as_echo_n "(cached) " >&6
|
Chris@42
|
7541 else
|
Chris@42
|
7542 if test -n "$RANLIB"; then
|
Chris@42
|
7543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
Chris@42
|
7544 else
|
Chris@42
|
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
7546 for as_dir in $PATH
|
Chris@42
|
7547 do
|
Chris@42
|
7548 IFS=$as_save_IFS
|
Chris@42
|
7549 test -z "$as_dir" && as_dir=.
|
Chris@42
|
7550 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
7552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
Chris@42
|
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
7554 break 2
|
Chris@42
|
7555 fi
|
Chris@42
|
7556 done
|
Chris@42
|
7557 done
|
Chris@42
|
7558 IFS=$as_save_IFS
|
Chris@42
|
7559
|
Chris@42
|
7560 fi
|
Chris@42
|
7561 fi
|
Chris@42
|
7562 RANLIB=$ac_cv_prog_RANLIB
|
Chris@42
|
7563 if test -n "$RANLIB"; then
|
Chris@42
|
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
Chris@42
|
7565 $as_echo "$RANLIB" >&6; }
|
Chris@42
|
7566 else
|
Chris@42
|
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
7568 $as_echo "no" >&6; }
|
Chris@42
|
7569 fi
|
Chris@42
|
7570
|
Chris@42
|
7571
|
Chris@42
|
7572 fi
|
Chris@42
|
7573 if test -z "$ac_cv_prog_RANLIB"; then
|
Chris@42
|
7574 ac_ct_RANLIB=$RANLIB
|
Chris@42
|
7575 # Extract the first word of "ranlib", so it can be a program name with args.
|
Chris@42
|
7576 set dummy ranlib; ac_word=$2
|
Chris@42
|
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
7578 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
7579 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
Chris@42
|
7580 $as_echo_n "(cached) " >&6
|
Chris@42
|
7581 else
|
Chris@42
|
7582 if test -n "$ac_ct_RANLIB"; then
|
Chris@42
|
7583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
Chris@42
|
7584 else
|
Chris@42
|
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
7586 for as_dir in $PATH
|
Chris@42
|
7587 do
|
Chris@42
|
7588 IFS=$as_save_IFS
|
Chris@42
|
7589 test -z "$as_dir" && as_dir=.
|
Chris@42
|
7590 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
7592 ac_cv_prog_ac_ct_RANLIB="ranlib"
|
Chris@42
|
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
7594 break 2
|
Chris@42
|
7595 fi
|
Chris@42
|
7596 done
|
Chris@42
|
7597 done
|
Chris@42
|
7598 IFS=$as_save_IFS
|
Chris@42
|
7599
|
Chris@42
|
7600 fi
|
Chris@42
|
7601 fi
|
Chris@42
|
7602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
Chris@42
|
7603 if test -n "$ac_ct_RANLIB"; then
|
Chris@42
|
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
Chris@42
|
7605 $as_echo "$ac_ct_RANLIB" >&6; }
|
Chris@42
|
7606 else
|
Chris@42
|
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
7608 $as_echo "no" >&6; }
|
Chris@42
|
7609 fi
|
Chris@42
|
7610
|
Chris@42
|
7611 if test "x$ac_ct_RANLIB" = x; then
|
Chris@42
|
7612 RANLIB=":"
|
Chris@42
|
7613 else
|
Chris@42
|
7614 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
7615 yes:)
|
Chris@42
|
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
7618 ac_tool_warned=yes ;;
|
Chris@42
|
7619 esac
|
Chris@42
|
7620 RANLIB=$ac_ct_RANLIB
|
Chris@42
|
7621 fi
|
Chris@42
|
7622 else
|
Chris@42
|
7623 RANLIB="$ac_cv_prog_RANLIB"
|
Chris@42
|
7624 fi
|
Chris@42
|
7625
|
Chris@42
|
7626 test -z "$RANLIB" && RANLIB=:
|
Chris@42
|
7627
|
Chris@42
|
7628
|
Chris@42
|
7629
|
Chris@42
|
7630
|
Chris@42
|
7631
|
Chris@42
|
7632
|
Chris@42
|
7633 # Determine commands to create old-style static archives.
|
Chris@42
|
7634 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
Chris@42
|
7635 old_postinstall_cmds='chmod 644 $oldlib'
|
Chris@42
|
7636 old_postuninstall_cmds=
|
Chris@42
|
7637
|
Chris@42
|
7638 if test -n "$RANLIB"; then
|
Chris@42
|
7639 case $host_os in
|
Chris@42
|
7640 openbsd*)
|
Chris@42
|
7641 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
Chris@42
|
7642 ;;
|
Chris@42
|
7643 *)
|
Chris@42
|
7644 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
Chris@42
|
7645 ;;
|
Chris@42
|
7646 esac
|
Chris@42
|
7647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
Chris@42
|
7648 fi
|
Chris@42
|
7649
|
Chris@42
|
7650 case $host_os in
|
Chris@42
|
7651 darwin*)
|
Chris@42
|
7652 lock_old_archive_extraction=yes ;;
|
Chris@42
|
7653 *)
|
Chris@42
|
7654 lock_old_archive_extraction=no ;;
|
Chris@42
|
7655 esac
|
Chris@42
|
7656
|
Chris@42
|
7657
|
Chris@42
|
7658
|
Chris@42
|
7659
|
Chris@42
|
7660
|
Chris@42
|
7661
|
Chris@42
|
7662
|
Chris@42
|
7663
|
Chris@42
|
7664
|
Chris@42
|
7665
|
Chris@42
|
7666
|
Chris@42
|
7667
|
Chris@42
|
7668
|
Chris@42
|
7669
|
Chris@42
|
7670
|
Chris@42
|
7671
|
Chris@42
|
7672
|
Chris@42
|
7673
|
Chris@42
|
7674
|
Chris@42
|
7675
|
Chris@42
|
7676
|
Chris@42
|
7677
|
Chris@42
|
7678
|
Chris@42
|
7679
|
Chris@42
|
7680
|
Chris@42
|
7681
|
Chris@42
|
7682
|
Chris@42
|
7683
|
Chris@42
|
7684
|
Chris@42
|
7685
|
Chris@42
|
7686
|
Chris@42
|
7687
|
Chris@42
|
7688
|
Chris@42
|
7689
|
Chris@42
|
7690
|
Chris@42
|
7691
|
Chris@42
|
7692
|
Chris@42
|
7693
|
Chris@42
|
7694
|
Chris@42
|
7695 # If no C compiler was specified, use CC.
|
Chris@42
|
7696 LTCC=${LTCC-"$CC"}
|
Chris@42
|
7697
|
Chris@42
|
7698 # If no C compiler flags were specified, use CFLAGS.
|
Chris@42
|
7699 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
Chris@42
|
7700
|
Chris@42
|
7701 # Allow CC to be a program name with arguments.
|
Chris@42
|
7702 compiler=$CC
|
Chris@42
|
7703
|
Chris@42
|
7704
|
Chris@42
|
7705 # Check for command to grab the raw symbol name followed by C symbol from nm.
|
Chris@42
|
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
|
Chris@42
|
7707 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
|
Chris@42
|
7708 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
|
Chris@42
|
7709 $as_echo_n "(cached) " >&6
|
Chris@42
|
7710 else
|
Chris@42
|
7711
|
Chris@42
|
7712 # These are sane defaults that work on at least a few old systems.
|
Chris@42
|
7713 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
Chris@42
|
7714
|
Chris@42
|
7715 # Character class describing NM global symbol codes.
|
Chris@42
|
7716 symcode='[BCDEGRST]'
|
Chris@42
|
7717
|
Chris@42
|
7718 # Regexp to match symbols that can be accessed directly from C.
|
Chris@42
|
7719 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
Chris@42
|
7720
|
Chris@42
|
7721 # Define system-specific variables.
|
Chris@42
|
7722 case $host_os in
|
Chris@42
|
7723 aix*)
|
Chris@42
|
7724 symcode='[BCDT]'
|
Chris@42
|
7725 ;;
|
Chris@42
|
7726 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
7727 symcode='[ABCDGISTW]'
|
Chris@42
|
7728 ;;
|
Chris@42
|
7729 hpux*)
|
Chris@42
|
7730 if test "$host_cpu" = ia64; then
|
Chris@42
|
7731 symcode='[ABCDEGRST]'
|
Chris@42
|
7732 fi
|
Chris@42
|
7733 ;;
|
Chris@42
|
7734 irix* | nonstopux*)
|
Chris@42
|
7735 symcode='[BCDEGRST]'
|
Chris@42
|
7736 ;;
|
Chris@42
|
7737 osf*)
|
Chris@42
|
7738 symcode='[BCDEGQRST]'
|
Chris@42
|
7739 ;;
|
Chris@42
|
7740 solaris*)
|
Chris@42
|
7741 symcode='[BDRT]'
|
Chris@42
|
7742 ;;
|
Chris@42
|
7743 sco3.2v5*)
|
Chris@42
|
7744 symcode='[DT]'
|
Chris@42
|
7745 ;;
|
Chris@42
|
7746 sysv4.2uw2*)
|
Chris@42
|
7747 symcode='[DT]'
|
Chris@42
|
7748 ;;
|
Chris@42
|
7749 sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
Chris@42
|
7750 symcode='[ABDT]'
|
Chris@42
|
7751 ;;
|
Chris@42
|
7752 sysv4)
|
Chris@42
|
7753 symcode='[DFNSTU]'
|
Chris@42
|
7754 ;;
|
Chris@42
|
7755 esac
|
Chris@42
|
7756
|
Chris@42
|
7757 # If we're using GNU nm, then use its standard symbol codes.
|
Chris@42
|
7758 case `$NM -V 2>&1` in
|
Chris@42
|
7759 *GNU* | *'with BFD'*)
|
Chris@42
|
7760 symcode='[ABCDGIRSTW]' ;;
|
Chris@42
|
7761 esac
|
Chris@42
|
7762
|
Chris@42
|
7763 # Transform an extracted symbol line into a proper C declaration.
|
Chris@42
|
7764 # Some systems (esp. on ia64) link data and code symbols differently,
|
Chris@42
|
7765 # so use this general approach.
|
Chris@42
|
7766 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
Chris@42
|
7767
|
Chris@42
|
7768 # Transform an extracted symbol line into symbol name and symbol address
|
Chris@42
|
7769 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
Chris@42
|
7770 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
Chris@42
|
7771
|
Chris@42
|
7772 # Handle CRLF in mingw tool chain
|
Chris@42
|
7773 opt_cr=
|
Chris@42
|
7774 case $build_os in
|
Chris@42
|
7775 mingw*)
|
Chris@42
|
7776 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
Chris@42
|
7777 ;;
|
Chris@42
|
7778 esac
|
Chris@42
|
7779
|
Chris@42
|
7780 # Try without a prefix underscore, then with it.
|
Chris@42
|
7781 for ac_symprfx in "" "_"; do
|
Chris@42
|
7782
|
Chris@42
|
7783 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
Chris@42
|
7784 symxfrm="\\1 $ac_symprfx\\2 \\2"
|
Chris@42
|
7785
|
Chris@42
|
7786 # Write the raw and C identifiers.
|
Chris@42
|
7787 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
Chris@42
|
7788 # Fake it for dumpbin and say T for any non-static function
|
Chris@42
|
7789 # and D for any global variable.
|
Chris@42
|
7790 # Also find C++ and __fastcall symbols from MSVC++,
|
Chris@42
|
7791 # which start with @ or ?.
|
Chris@42
|
7792 lt_cv_sys_global_symbol_pipe="$AWK '"\
|
Chris@42
|
7793 " {last_section=section; section=\$ 3};"\
|
Chris@42
|
7794 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
Chris@42
|
7795 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
Chris@42
|
7796 " \$ 0!~/External *\|/{next};"\
|
Chris@42
|
7797 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
Chris@42
|
7798 " {if(hide[section]) next};"\
|
Chris@42
|
7799 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
|
Chris@42
|
7800 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
|
Chris@42
|
7801 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
|
Chris@42
|
7802 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
|
Chris@42
|
7803 " ' prfx=^$ac_symprfx"
|
Chris@42
|
7804 else
|
Chris@42
|
7805 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
Chris@42
|
7806 fi
|
Chris@42
|
7807 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
Chris@42
|
7808
|
Chris@42
|
7809 # Check to see that the pipe works correctly.
|
Chris@42
|
7810 pipe_works=no
|
Chris@42
|
7811
|
Chris@42
|
7812 rm -f conftest*
|
Chris@42
|
7813 cat > conftest.$ac_ext <<_LT_EOF
|
Chris@42
|
7814 #ifdef __cplusplus
|
Chris@42
|
7815 extern "C" {
|
Chris@42
|
7816 #endif
|
Chris@42
|
7817 char nm_test_var;
|
Chris@42
|
7818 void nm_test_func(void);
|
Chris@42
|
7819 void nm_test_func(void){}
|
Chris@42
|
7820 #ifdef __cplusplus
|
Chris@42
|
7821 }
|
Chris@42
|
7822 #endif
|
Chris@42
|
7823 int main(){nm_test_var='a';nm_test_func();return(0);}
|
Chris@42
|
7824 _LT_EOF
|
Chris@42
|
7825
|
Chris@42
|
7826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
Chris@42
|
7827 (eval $ac_compile) 2>&5
|
Chris@42
|
7828 ac_status=$?
|
Chris@42
|
7829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
7830 test $ac_status = 0; }; then
|
Chris@42
|
7831 # Now try to grab the symbols.
|
Chris@42
|
7832 nlist=conftest.nm
|
Chris@42
|
7833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
|
Chris@42
|
7834 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
|
Chris@42
|
7835 ac_status=$?
|
Chris@42
|
7836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
7837 test $ac_status = 0; } && test -s "$nlist"; then
|
Chris@42
|
7838 # Try sorting and uniquifying the output.
|
Chris@42
|
7839 if sort "$nlist" | uniq > "$nlist"T; then
|
Chris@42
|
7840 mv -f "$nlist"T "$nlist"
|
Chris@42
|
7841 else
|
Chris@42
|
7842 rm -f "$nlist"T
|
Chris@42
|
7843 fi
|
Chris@42
|
7844
|
Chris@42
|
7845 # Make sure that we snagged all the symbols we need.
|
Chris@42
|
7846 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
Chris@42
|
7847 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
Chris@42
|
7848 cat <<_LT_EOF > conftest.$ac_ext
|
Chris@42
|
7849 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
Chris@42
|
7850 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
Chris@42
|
7851 /* DATA imports from DLLs on WIN32 con't be const, because runtime
|
Chris@42
|
7852 relocations are performed -- see ld's documentation on pseudo-relocs. */
|
Chris@42
|
7853 # define LT_DLSYM_CONST
|
Chris@42
|
7854 #elif defined(__osf__)
|
Chris@42
|
7855 /* This system does not cope well with relocations in const data. */
|
Chris@42
|
7856 # define LT_DLSYM_CONST
|
Chris@42
|
7857 #else
|
Chris@42
|
7858 # define LT_DLSYM_CONST const
|
Chris@42
|
7859 #endif
|
Chris@42
|
7860
|
Chris@42
|
7861 #ifdef __cplusplus
|
Chris@42
|
7862 extern "C" {
|
Chris@42
|
7863 #endif
|
Chris@42
|
7864
|
Chris@42
|
7865 _LT_EOF
|
Chris@42
|
7866 # Now generate the symbol file.
|
Chris@42
|
7867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
Chris@42
|
7868
|
Chris@42
|
7869 cat <<_LT_EOF >> conftest.$ac_ext
|
Chris@42
|
7870
|
Chris@42
|
7871 /* The mapping between symbol names and symbols. */
|
Chris@42
|
7872 LT_DLSYM_CONST struct {
|
Chris@42
|
7873 const char *name;
|
Chris@42
|
7874 void *address;
|
Chris@42
|
7875 }
|
Chris@42
|
7876 lt__PROGRAM__LTX_preloaded_symbols[] =
|
Chris@42
|
7877 {
|
Chris@42
|
7878 { "@PROGRAM@", (void *) 0 },
|
Chris@42
|
7879 _LT_EOF
|
Chris@42
|
7880 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
Chris@42
|
7881 cat <<\_LT_EOF >> conftest.$ac_ext
|
Chris@42
|
7882 {0, (void *) 0}
|
Chris@42
|
7883 };
|
Chris@42
|
7884
|
Chris@42
|
7885 /* This works around a problem in FreeBSD linker */
|
Chris@42
|
7886 #ifdef FREEBSD_WORKAROUND
|
Chris@42
|
7887 static const void *lt_preloaded_setup() {
|
Chris@42
|
7888 return lt__PROGRAM__LTX_preloaded_symbols;
|
Chris@42
|
7889 }
|
Chris@42
|
7890 #endif
|
Chris@42
|
7891
|
Chris@42
|
7892 #ifdef __cplusplus
|
Chris@42
|
7893 }
|
Chris@42
|
7894 #endif
|
Chris@42
|
7895 _LT_EOF
|
Chris@42
|
7896 # Now try linking the two files.
|
Chris@42
|
7897 mv conftest.$ac_objext conftstm.$ac_objext
|
Chris@42
|
7898 lt_globsym_save_LIBS=$LIBS
|
Chris@42
|
7899 lt_globsym_save_CFLAGS=$CFLAGS
|
Chris@42
|
7900 LIBS="conftstm.$ac_objext"
|
Chris@42
|
7901 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
Chris@42
|
7902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
Chris@42
|
7903 (eval $ac_link) 2>&5
|
Chris@42
|
7904 ac_status=$?
|
Chris@42
|
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
7906 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
Chris@42
|
7907 pipe_works=yes
|
Chris@42
|
7908 fi
|
Chris@42
|
7909 LIBS=$lt_globsym_save_LIBS
|
Chris@42
|
7910 CFLAGS=$lt_globsym_save_CFLAGS
|
Chris@42
|
7911 else
|
Chris@42
|
7912 echo "cannot find nm_test_func in $nlist" >&5
|
Chris@42
|
7913 fi
|
Chris@42
|
7914 else
|
Chris@42
|
7915 echo "cannot find nm_test_var in $nlist" >&5
|
Chris@42
|
7916 fi
|
Chris@42
|
7917 else
|
Chris@42
|
7918 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
Chris@42
|
7919 fi
|
Chris@42
|
7920 else
|
Chris@42
|
7921 echo "$progname: failed program was:" >&5
|
Chris@42
|
7922 cat conftest.$ac_ext >&5
|
Chris@42
|
7923 fi
|
Chris@42
|
7924 rm -rf conftest* conftst*
|
Chris@42
|
7925
|
Chris@42
|
7926 # Do not use the global_symbol_pipe unless it works.
|
Chris@42
|
7927 if test "$pipe_works" = yes; then
|
Chris@42
|
7928 break
|
Chris@42
|
7929 else
|
Chris@42
|
7930 lt_cv_sys_global_symbol_pipe=
|
Chris@42
|
7931 fi
|
Chris@42
|
7932 done
|
Chris@42
|
7933
|
Chris@42
|
7934 fi
|
Chris@42
|
7935
|
Chris@42
|
7936 if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
Chris@42
|
7937 lt_cv_sys_global_symbol_to_cdecl=
|
Chris@42
|
7938 fi
|
Chris@42
|
7939 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
Chris@42
|
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
|
Chris@42
|
7941 $as_echo "failed" >&6; }
|
Chris@42
|
7942 else
|
Chris@42
|
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
Chris@42
|
7944 $as_echo "ok" >&6; }
|
Chris@42
|
7945 fi
|
Chris@42
|
7946
|
Chris@42
|
7947 # Response file support.
|
Chris@42
|
7948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
Chris@42
|
7949 nm_file_list_spec='@'
|
Chris@42
|
7950 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
Chris@42
|
7951 nm_file_list_spec='@'
|
Chris@42
|
7952 fi
|
Chris@42
|
7953
|
Chris@42
|
7954
|
Chris@42
|
7955
|
Chris@42
|
7956
|
Chris@42
|
7957
|
Chris@42
|
7958
|
Chris@42
|
7959
|
Chris@42
|
7960
|
Chris@42
|
7961
|
Chris@42
|
7962
|
Chris@42
|
7963
|
Chris@42
|
7964
|
Chris@42
|
7965
|
Chris@42
|
7966
|
Chris@42
|
7967
|
Chris@42
|
7968
|
Chris@42
|
7969
|
Chris@42
|
7970
|
Chris@42
|
7971
|
Chris@42
|
7972
|
Chris@42
|
7973
|
Chris@42
|
7974
|
Chris@42
|
7975
|
Chris@42
|
7976
|
Chris@42
|
7977
|
Chris@42
|
7978
|
Chris@42
|
7979
|
Chris@42
|
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
Chris@42
|
7981 $as_echo_n "checking for sysroot... " >&6; }
|
Chris@42
|
7982
|
Chris@42
|
7983 # Check whether --with-sysroot was given.
|
Chris@42
|
7984 if test "${with_sysroot+set}" = set; then :
|
Chris@42
|
7985 withval=$with_sysroot;
|
Chris@42
|
7986 else
|
Chris@42
|
7987 with_sysroot=no
|
Chris@42
|
7988 fi
|
Chris@42
|
7989
|
Chris@42
|
7990
|
Chris@42
|
7991 lt_sysroot=
|
Chris@42
|
7992 case ${with_sysroot} in #(
|
Chris@42
|
7993 yes)
|
Chris@42
|
7994 if test "$GCC" = yes; then
|
Chris@42
|
7995 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
Chris@42
|
7996 fi
|
Chris@42
|
7997 ;; #(
|
Chris@42
|
7998 /*)
|
Chris@42
|
7999 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
Chris@42
|
8000 ;; #(
|
Chris@42
|
8001 no|'')
|
Chris@42
|
8002 ;; #(
|
Chris@42
|
8003 *)
|
Chris@42
|
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
|
Chris@42
|
8005 $as_echo "${with_sysroot}" >&6; }
|
Chris@42
|
8006 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
Chris@42
|
8007 ;;
|
Chris@42
|
8008 esac
|
Chris@42
|
8009
|
Chris@42
|
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
Chris@42
|
8011 $as_echo "${lt_sysroot:-no}" >&6; }
|
Chris@42
|
8012
|
Chris@42
|
8013
|
Chris@42
|
8014
|
Chris@42
|
8015
|
Chris@42
|
8016
|
Chris@42
|
8017 # Check whether --enable-libtool-lock was given.
|
Chris@42
|
8018 if test "${enable_libtool_lock+set}" = set; then :
|
Chris@42
|
8019 enableval=$enable_libtool_lock;
|
Chris@42
|
8020 fi
|
Chris@42
|
8021
|
Chris@42
|
8022 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
Chris@42
|
8023
|
Chris@42
|
8024 # Some flags need to be propagated to the compiler or linker for good
|
Chris@42
|
8025 # libtool support.
|
Chris@42
|
8026 case $host in
|
Chris@42
|
8027 ia64-*-hpux*)
|
Chris@42
|
8028 # Find out which ABI we are using.
|
Chris@42
|
8029 echo 'int i;' > conftest.$ac_ext
|
Chris@42
|
8030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
Chris@42
|
8031 (eval $ac_compile) 2>&5
|
Chris@42
|
8032 ac_status=$?
|
Chris@42
|
8033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
8034 test $ac_status = 0; }; then
|
Chris@42
|
8035 case `/usr/bin/file conftest.$ac_objext` in
|
Chris@42
|
8036 *ELF-32*)
|
Chris@42
|
8037 HPUX_IA64_MODE="32"
|
Chris@42
|
8038 ;;
|
Chris@42
|
8039 *ELF-64*)
|
Chris@42
|
8040 HPUX_IA64_MODE="64"
|
Chris@42
|
8041 ;;
|
Chris@42
|
8042 esac
|
Chris@42
|
8043 fi
|
Chris@42
|
8044 rm -rf conftest*
|
Chris@42
|
8045 ;;
|
Chris@42
|
8046 *-*-irix6*)
|
Chris@42
|
8047 # Find out which ABI we are using.
|
Chris@42
|
8048 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
Chris@42
|
8049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
Chris@42
|
8050 (eval $ac_compile) 2>&5
|
Chris@42
|
8051 ac_status=$?
|
Chris@42
|
8052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
8053 test $ac_status = 0; }; then
|
Chris@42
|
8054 if test "$lt_cv_prog_gnu_ld" = yes; then
|
Chris@42
|
8055 case `/usr/bin/file conftest.$ac_objext` in
|
Chris@42
|
8056 *32-bit*)
|
Chris@42
|
8057 LD="${LD-ld} -melf32bsmip"
|
Chris@42
|
8058 ;;
|
Chris@42
|
8059 *N32*)
|
Chris@42
|
8060 LD="${LD-ld} -melf32bmipn32"
|
Chris@42
|
8061 ;;
|
Chris@42
|
8062 *64-bit*)
|
Chris@42
|
8063 LD="${LD-ld} -melf64bmip"
|
Chris@42
|
8064 ;;
|
Chris@42
|
8065 esac
|
Chris@42
|
8066 else
|
Chris@42
|
8067 case `/usr/bin/file conftest.$ac_objext` in
|
Chris@42
|
8068 *32-bit*)
|
Chris@42
|
8069 LD="${LD-ld} -32"
|
Chris@42
|
8070 ;;
|
Chris@42
|
8071 *N32*)
|
Chris@42
|
8072 LD="${LD-ld} -n32"
|
Chris@42
|
8073 ;;
|
Chris@42
|
8074 *64-bit*)
|
Chris@42
|
8075 LD="${LD-ld} -64"
|
Chris@42
|
8076 ;;
|
Chris@42
|
8077 esac
|
Chris@42
|
8078 fi
|
Chris@42
|
8079 fi
|
Chris@42
|
8080 rm -rf conftest*
|
Chris@42
|
8081 ;;
|
Chris@42
|
8082
|
Chris@42
|
8083 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
|
Chris@42
|
8084 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
Chris@42
|
8085 # Find out which ABI we are using.
|
Chris@42
|
8086 echo 'int i;' > conftest.$ac_ext
|
Chris@42
|
8087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
Chris@42
|
8088 (eval $ac_compile) 2>&5
|
Chris@42
|
8089 ac_status=$?
|
Chris@42
|
8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
8091 test $ac_status = 0; }; then
|
Chris@42
|
8092 case `/usr/bin/file conftest.o` in
|
Chris@42
|
8093 *32-bit*)
|
Chris@42
|
8094 case $host in
|
Chris@42
|
8095 x86_64-*kfreebsd*-gnu)
|
Chris@42
|
8096 LD="${LD-ld} -m elf_i386_fbsd"
|
Chris@42
|
8097 ;;
|
Chris@42
|
8098 x86_64-*linux*)
|
Chris@42
|
8099 case `/usr/bin/file conftest.o` in
|
Chris@42
|
8100 *x86-64*)
|
Chris@42
|
8101 LD="${LD-ld} -m elf32_x86_64"
|
Chris@42
|
8102 ;;
|
Chris@42
|
8103 *)
|
Chris@42
|
8104 LD="${LD-ld} -m elf_i386"
|
Chris@42
|
8105 ;;
|
Chris@42
|
8106 esac
|
Chris@42
|
8107 ;;
|
Chris@42
|
8108 powerpc64le-*)
|
Chris@42
|
8109 LD="${LD-ld} -m elf32lppclinux"
|
Chris@42
|
8110 ;;
|
Chris@42
|
8111 powerpc64-*)
|
Chris@42
|
8112 LD="${LD-ld} -m elf32ppclinux"
|
Chris@42
|
8113 ;;
|
Chris@42
|
8114 s390x-*linux*)
|
Chris@42
|
8115 LD="${LD-ld} -m elf_s390"
|
Chris@42
|
8116 ;;
|
Chris@42
|
8117 sparc64-*linux*)
|
Chris@42
|
8118 LD="${LD-ld} -m elf32_sparc"
|
Chris@42
|
8119 ;;
|
Chris@42
|
8120 esac
|
Chris@42
|
8121 ;;
|
Chris@42
|
8122 *64-bit*)
|
Chris@42
|
8123 case $host in
|
Chris@42
|
8124 x86_64-*kfreebsd*-gnu)
|
Chris@42
|
8125 LD="${LD-ld} -m elf_x86_64_fbsd"
|
Chris@42
|
8126 ;;
|
Chris@42
|
8127 x86_64-*linux*)
|
Chris@42
|
8128 LD="${LD-ld} -m elf_x86_64"
|
Chris@42
|
8129 ;;
|
Chris@42
|
8130 powerpcle-*)
|
Chris@42
|
8131 LD="${LD-ld} -m elf64lppc"
|
Chris@42
|
8132 ;;
|
Chris@42
|
8133 powerpc-*)
|
Chris@42
|
8134 LD="${LD-ld} -m elf64ppc"
|
Chris@42
|
8135 ;;
|
Chris@42
|
8136 s390*-*linux*|s390*-*tpf*)
|
Chris@42
|
8137 LD="${LD-ld} -m elf64_s390"
|
Chris@42
|
8138 ;;
|
Chris@42
|
8139 sparc*-*linux*)
|
Chris@42
|
8140 LD="${LD-ld} -m elf64_sparc"
|
Chris@42
|
8141 ;;
|
Chris@42
|
8142 esac
|
Chris@42
|
8143 ;;
|
Chris@42
|
8144 esac
|
Chris@42
|
8145 fi
|
Chris@42
|
8146 rm -rf conftest*
|
Chris@42
|
8147 ;;
|
Chris@42
|
8148
|
Chris@42
|
8149 *-*-sco3.2v5*)
|
Chris@42
|
8150 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
Chris@42
|
8151 SAVE_CFLAGS="$CFLAGS"
|
Chris@42
|
8152 CFLAGS="$CFLAGS -belf"
|
Chris@42
|
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
|
Chris@42
|
8154 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
|
Chris@42
|
8155 if ${lt_cv_cc_needs_belf+:} false; then :
|
Chris@42
|
8156 $as_echo_n "(cached) " >&6
|
Chris@42
|
8157 else
|
Chris@42
|
8158 ac_ext=c
|
Chris@42
|
8159 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
8160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
8161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
8162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
8163
|
Chris@42
|
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
8165 /* end confdefs.h. */
|
Chris@42
|
8166
|
Chris@42
|
8167 int
|
Chris@42
|
8168 main ()
|
Chris@42
|
8169 {
|
Chris@42
|
8170
|
Chris@42
|
8171 ;
|
Chris@42
|
8172 return 0;
|
Chris@42
|
8173 }
|
Chris@42
|
8174 _ACEOF
|
Chris@42
|
8175 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
8176 lt_cv_cc_needs_belf=yes
|
Chris@42
|
8177 else
|
Chris@42
|
8178 lt_cv_cc_needs_belf=no
|
Chris@42
|
8179 fi
|
Chris@42
|
8180 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
8181 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
8182 ac_ext=c
|
Chris@42
|
8183 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
8184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
8185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
8186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
8187
|
Chris@42
|
8188 fi
|
Chris@42
|
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
Chris@42
|
8190 $as_echo "$lt_cv_cc_needs_belf" >&6; }
|
Chris@42
|
8191 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
Chris@42
|
8192 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
Chris@42
|
8193 CFLAGS="$SAVE_CFLAGS"
|
Chris@42
|
8194 fi
|
Chris@42
|
8195 ;;
|
Chris@42
|
8196 *-*solaris*)
|
Chris@42
|
8197 # Find out which ABI we are using.
|
Chris@42
|
8198 echo 'int i;' > conftest.$ac_ext
|
Chris@42
|
8199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
Chris@42
|
8200 (eval $ac_compile) 2>&5
|
Chris@42
|
8201 ac_status=$?
|
Chris@42
|
8202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
8203 test $ac_status = 0; }; then
|
Chris@42
|
8204 case `/usr/bin/file conftest.o` in
|
Chris@42
|
8205 *64-bit*)
|
Chris@42
|
8206 case $lt_cv_prog_gnu_ld in
|
Chris@42
|
8207 yes*)
|
Chris@42
|
8208 case $host in
|
Chris@42
|
8209 i?86-*-solaris*)
|
Chris@42
|
8210 LD="${LD-ld} -m elf_x86_64"
|
Chris@42
|
8211 ;;
|
Chris@42
|
8212 sparc*-*-solaris*)
|
Chris@42
|
8213 LD="${LD-ld} -m elf64_sparc"
|
Chris@42
|
8214 ;;
|
Chris@42
|
8215 esac
|
Chris@42
|
8216 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
Chris@42
|
8217 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
Chris@42
|
8218 LD="${LD-ld}_sol2"
|
Chris@42
|
8219 fi
|
Chris@42
|
8220 ;;
|
Chris@42
|
8221 *)
|
Chris@42
|
8222 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
Chris@42
|
8223 LD="${LD-ld} -64"
|
Chris@42
|
8224 fi
|
Chris@42
|
8225 ;;
|
Chris@42
|
8226 esac
|
Chris@42
|
8227 ;;
|
Chris@42
|
8228 esac
|
Chris@42
|
8229 fi
|
Chris@42
|
8230 rm -rf conftest*
|
Chris@42
|
8231 ;;
|
Chris@42
|
8232 esac
|
Chris@42
|
8233
|
Chris@42
|
8234 need_locks="$enable_libtool_lock"
|
Chris@42
|
8235
|
Chris@42
|
8236 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
8237 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
Chris@42
|
8238 set dummy ${ac_tool_prefix}mt; ac_word=$2
|
Chris@42
|
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8240 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8241 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
Chris@42
|
8242 $as_echo_n "(cached) " >&6
|
Chris@42
|
8243 else
|
Chris@42
|
8244 if test -n "$MANIFEST_TOOL"; then
|
Chris@42
|
8245 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
Chris@42
|
8246 else
|
Chris@42
|
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8248 for as_dir in $PATH
|
Chris@42
|
8249 do
|
Chris@42
|
8250 IFS=$as_save_IFS
|
Chris@42
|
8251 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8252 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8254 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
Chris@42
|
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8256 break 2
|
Chris@42
|
8257 fi
|
Chris@42
|
8258 done
|
Chris@42
|
8259 done
|
Chris@42
|
8260 IFS=$as_save_IFS
|
Chris@42
|
8261
|
Chris@42
|
8262 fi
|
Chris@42
|
8263 fi
|
Chris@42
|
8264 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
Chris@42
|
8265 if test -n "$MANIFEST_TOOL"; then
|
Chris@42
|
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
Chris@42
|
8267 $as_echo "$MANIFEST_TOOL" >&6; }
|
Chris@42
|
8268 else
|
Chris@42
|
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8270 $as_echo "no" >&6; }
|
Chris@42
|
8271 fi
|
Chris@42
|
8272
|
Chris@42
|
8273
|
Chris@42
|
8274 fi
|
Chris@42
|
8275 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
Chris@42
|
8276 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
Chris@42
|
8277 # Extract the first word of "mt", so it can be a program name with args.
|
Chris@42
|
8278 set dummy mt; ac_word=$2
|
Chris@42
|
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8280 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8281 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
Chris@42
|
8282 $as_echo_n "(cached) " >&6
|
Chris@42
|
8283 else
|
Chris@42
|
8284 if test -n "$ac_ct_MANIFEST_TOOL"; then
|
Chris@42
|
8285 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
Chris@42
|
8286 else
|
Chris@42
|
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8288 for as_dir in $PATH
|
Chris@42
|
8289 do
|
Chris@42
|
8290 IFS=$as_save_IFS
|
Chris@42
|
8291 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8292 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8294 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
Chris@42
|
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8296 break 2
|
Chris@42
|
8297 fi
|
Chris@42
|
8298 done
|
Chris@42
|
8299 done
|
Chris@42
|
8300 IFS=$as_save_IFS
|
Chris@42
|
8301
|
Chris@42
|
8302 fi
|
Chris@42
|
8303 fi
|
Chris@42
|
8304 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
Chris@42
|
8305 if test -n "$ac_ct_MANIFEST_TOOL"; then
|
Chris@42
|
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
Chris@42
|
8307 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
Chris@42
|
8308 else
|
Chris@42
|
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8310 $as_echo "no" >&6; }
|
Chris@42
|
8311 fi
|
Chris@42
|
8312
|
Chris@42
|
8313 if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
Chris@42
|
8314 MANIFEST_TOOL=":"
|
Chris@42
|
8315 else
|
Chris@42
|
8316 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
8317 yes:)
|
Chris@42
|
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
8319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
8320 ac_tool_warned=yes ;;
|
Chris@42
|
8321 esac
|
Chris@42
|
8322 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
Chris@42
|
8323 fi
|
Chris@42
|
8324 else
|
Chris@42
|
8325 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
Chris@42
|
8326 fi
|
Chris@42
|
8327
|
Chris@42
|
8328 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
Chris@42
|
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
Chris@42
|
8330 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
Chris@42
|
8331 if ${lt_cv_path_mainfest_tool+:} false; then :
|
Chris@42
|
8332 $as_echo_n "(cached) " >&6
|
Chris@42
|
8333 else
|
Chris@42
|
8334 lt_cv_path_mainfest_tool=no
|
Chris@42
|
8335 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
Chris@42
|
8336 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
Chris@42
|
8337 cat conftest.err >&5
|
Chris@42
|
8338 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
Chris@42
|
8339 lt_cv_path_mainfest_tool=yes
|
Chris@42
|
8340 fi
|
Chris@42
|
8341 rm -f conftest*
|
Chris@42
|
8342 fi
|
Chris@42
|
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
Chris@42
|
8344 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
Chris@42
|
8345 if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
Chris@42
|
8346 MANIFEST_TOOL=:
|
Chris@42
|
8347 fi
|
Chris@42
|
8348
|
Chris@42
|
8349
|
Chris@42
|
8350
|
Chris@42
|
8351
|
Chris@42
|
8352
|
Chris@42
|
8353
|
Chris@42
|
8354 case $host_os in
|
Chris@42
|
8355 rhapsody* | darwin*)
|
Chris@42
|
8356 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
8357 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
Chris@42
|
8358 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
Chris@42
|
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8360 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8361 if ${ac_cv_prog_DSYMUTIL+:} false; then :
|
Chris@42
|
8362 $as_echo_n "(cached) " >&6
|
Chris@42
|
8363 else
|
Chris@42
|
8364 if test -n "$DSYMUTIL"; then
|
Chris@42
|
8365 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
Chris@42
|
8366 else
|
Chris@42
|
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8368 for as_dir in $PATH
|
Chris@42
|
8369 do
|
Chris@42
|
8370 IFS=$as_save_IFS
|
Chris@42
|
8371 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8372 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8374 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
Chris@42
|
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8376 break 2
|
Chris@42
|
8377 fi
|
Chris@42
|
8378 done
|
Chris@42
|
8379 done
|
Chris@42
|
8380 IFS=$as_save_IFS
|
Chris@42
|
8381
|
Chris@42
|
8382 fi
|
Chris@42
|
8383 fi
|
Chris@42
|
8384 DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
Chris@42
|
8385 if test -n "$DSYMUTIL"; then
|
Chris@42
|
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
|
Chris@42
|
8387 $as_echo "$DSYMUTIL" >&6; }
|
Chris@42
|
8388 else
|
Chris@42
|
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8390 $as_echo "no" >&6; }
|
Chris@42
|
8391 fi
|
Chris@42
|
8392
|
Chris@42
|
8393
|
Chris@42
|
8394 fi
|
Chris@42
|
8395 if test -z "$ac_cv_prog_DSYMUTIL"; then
|
Chris@42
|
8396 ac_ct_DSYMUTIL=$DSYMUTIL
|
Chris@42
|
8397 # Extract the first word of "dsymutil", so it can be a program name with args.
|
Chris@42
|
8398 set dummy dsymutil; ac_word=$2
|
Chris@42
|
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8400 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8401 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
|
Chris@42
|
8402 $as_echo_n "(cached) " >&6
|
Chris@42
|
8403 else
|
Chris@42
|
8404 if test -n "$ac_ct_DSYMUTIL"; then
|
Chris@42
|
8405 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
Chris@42
|
8406 else
|
Chris@42
|
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8408 for as_dir in $PATH
|
Chris@42
|
8409 do
|
Chris@42
|
8410 IFS=$as_save_IFS
|
Chris@42
|
8411 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8412 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8414 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
Chris@42
|
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8416 break 2
|
Chris@42
|
8417 fi
|
Chris@42
|
8418 done
|
Chris@42
|
8419 done
|
Chris@42
|
8420 IFS=$as_save_IFS
|
Chris@42
|
8421
|
Chris@42
|
8422 fi
|
Chris@42
|
8423 fi
|
Chris@42
|
8424 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
Chris@42
|
8425 if test -n "$ac_ct_DSYMUTIL"; then
|
Chris@42
|
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
|
Chris@42
|
8427 $as_echo "$ac_ct_DSYMUTIL" >&6; }
|
Chris@42
|
8428 else
|
Chris@42
|
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8430 $as_echo "no" >&6; }
|
Chris@42
|
8431 fi
|
Chris@42
|
8432
|
Chris@42
|
8433 if test "x$ac_ct_DSYMUTIL" = x; then
|
Chris@42
|
8434 DSYMUTIL=":"
|
Chris@42
|
8435 else
|
Chris@42
|
8436 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
8437 yes:)
|
Chris@42
|
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
8439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
8440 ac_tool_warned=yes ;;
|
Chris@42
|
8441 esac
|
Chris@42
|
8442 DSYMUTIL=$ac_ct_DSYMUTIL
|
Chris@42
|
8443 fi
|
Chris@42
|
8444 else
|
Chris@42
|
8445 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
Chris@42
|
8446 fi
|
Chris@42
|
8447
|
Chris@42
|
8448 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
8449 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
Chris@42
|
8450 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
Chris@42
|
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8452 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8453 if ${ac_cv_prog_NMEDIT+:} false; then :
|
Chris@42
|
8454 $as_echo_n "(cached) " >&6
|
Chris@42
|
8455 else
|
Chris@42
|
8456 if test -n "$NMEDIT"; then
|
Chris@42
|
8457 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
Chris@42
|
8458 else
|
Chris@42
|
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8460 for as_dir in $PATH
|
Chris@42
|
8461 do
|
Chris@42
|
8462 IFS=$as_save_IFS
|
Chris@42
|
8463 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8464 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8466 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
Chris@42
|
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8468 break 2
|
Chris@42
|
8469 fi
|
Chris@42
|
8470 done
|
Chris@42
|
8471 done
|
Chris@42
|
8472 IFS=$as_save_IFS
|
Chris@42
|
8473
|
Chris@42
|
8474 fi
|
Chris@42
|
8475 fi
|
Chris@42
|
8476 NMEDIT=$ac_cv_prog_NMEDIT
|
Chris@42
|
8477 if test -n "$NMEDIT"; then
|
Chris@42
|
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
|
Chris@42
|
8479 $as_echo "$NMEDIT" >&6; }
|
Chris@42
|
8480 else
|
Chris@42
|
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8482 $as_echo "no" >&6; }
|
Chris@42
|
8483 fi
|
Chris@42
|
8484
|
Chris@42
|
8485
|
Chris@42
|
8486 fi
|
Chris@42
|
8487 if test -z "$ac_cv_prog_NMEDIT"; then
|
Chris@42
|
8488 ac_ct_NMEDIT=$NMEDIT
|
Chris@42
|
8489 # Extract the first word of "nmedit", so it can be a program name with args.
|
Chris@42
|
8490 set dummy nmedit; ac_word=$2
|
Chris@42
|
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8492 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8493 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
|
Chris@42
|
8494 $as_echo_n "(cached) " >&6
|
Chris@42
|
8495 else
|
Chris@42
|
8496 if test -n "$ac_ct_NMEDIT"; then
|
Chris@42
|
8497 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
Chris@42
|
8498 else
|
Chris@42
|
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8500 for as_dir in $PATH
|
Chris@42
|
8501 do
|
Chris@42
|
8502 IFS=$as_save_IFS
|
Chris@42
|
8503 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8504 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8506 ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
Chris@42
|
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8508 break 2
|
Chris@42
|
8509 fi
|
Chris@42
|
8510 done
|
Chris@42
|
8511 done
|
Chris@42
|
8512 IFS=$as_save_IFS
|
Chris@42
|
8513
|
Chris@42
|
8514 fi
|
Chris@42
|
8515 fi
|
Chris@42
|
8516 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
Chris@42
|
8517 if test -n "$ac_ct_NMEDIT"; then
|
Chris@42
|
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
|
Chris@42
|
8519 $as_echo "$ac_ct_NMEDIT" >&6; }
|
Chris@42
|
8520 else
|
Chris@42
|
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8522 $as_echo "no" >&6; }
|
Chris@42
|
8523 fi
|
Chris@42
|
8524
|
Chris@42
|
8525 if test "x$ac_ct_NMEDIT" = x; then
|
Chris@42
|
8526 NMEDIT=":"
|
Chris@42
|
8527 else
|
Chris@42
|
8528 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
8529 yes:)
|
Chris@42
|
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
8531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
8532 ac_tool_warned=yes ;;
|
Chris@42
|
8533 esac
|
Chris@42
|
8534 NMEDIT=$ac_ct_NMEDIT
|
Chris@42
|
8535 fi
|
Chris@42
|
8536 else
|
Chris@42
|
8537 NMEDIT="$ac_cv_prog_NMEDIT"
|
Chris@42
|
8538 fi
|
Chris@42
|
8539
|
Chris@42
|
8540 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
8541 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
Chris@42
|
8542 set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
Chris@42
|
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8544 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8545 if ${ac_cv_prog_LIPO+:} false; then :
|
Chris@42
|
8546 $as_echo_n "(cached) " >&6
|
Chris@42
|
8547 else
|
Chris@42
|
8548 if test -n "$LIPO"; then
|
Chris@42
|
8549 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
Chris@42
|
8550 else
|
Chris@42
|
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8552 for as_dir in $PATH
|
Chris@42
|
8553 do
|
Chris@42
|
8554 IFS=$as_save_IFS
|
Chris@42
|
8555 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8556 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8558 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
Chris@42
|
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8560 break 2
|
Chris@42
|
8561 fi
|
Chris@42
|
8562 done
|
Chris@42
|
8563 done
|
Chris@42
|
8564 IFS=$as_save_IFS
|
Chris@42
|
8565
|
Chris@42
|
8566 fi
|
Chris@42
|
8567 fi
|
Chris@42
|
8568 LIPO=$ac_cv_prog_LIPO
|
Chris@42
|
8569 if test -n "$LIPO"; then
|
Chris@42
|
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
|
Chris@42
|
8571 $as_echo "$LIPO" >&6; }
|
Chris@42
|
8572 else
|
Chris@42
|
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8574 $as_echo "no" >&6; }
|
Chris@42
|
8575 fi
|
Chris@42
|
8576
|
Chris@42
|
8577
|
Chris@42
|
8578 fi
|
Chris@42
|
8579 if test -z "$ac_cv_prog_LIPO"; then
|
Chris@42
|
8580 ac_ct_LIPO=$LIPO
|
Chris@42
|
8581 # Extract the first word of "lipo", so it can be a program name with args.
|
Chris@42
|
8582 set dummy lipo; ac_word=$2
|
Chris@42
|
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8584 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8585 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
|
Chris@42
|
8586 $as_echo_n "(cached) " >&6
|
Chris@42
|
8587 else
|
Chris@42
|
8588 if test -n "$ac_ct_LIPO"; then
|
Chris@42
|
8589 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
Chris@42
|
8590 else
|
Chris@42
|
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8592 for as_dir in $PATH
|
Chris@42
|
8593 do
|
Chris@42
|
8594 IFS=$as_save_IFS
|
Chris@42
|
8595 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8596 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8598 ac_cv_prog_ac_ct_LIPO="lipo"
|
Chris@42
|
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8600 break 2
|
Chris@42
|
8601 fi
|
Chris@42
|
8602 done
|
Chris@42
|
8603 done
|
Chris@42
|
8604 IFS=$as_save_IFS
|
Chris@42
|
8605
|
Chris@42
|
8606 fi
|
Chris@42
|
8607 fi
|
Chris@42
|
8608 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
Chris@42
|
8609 if test -n "$ac_ct_LIPO"; then
|
Chris@42
|
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
|
Chris@42
|
8611 $as_echo "$ac_ct_LIPO" >&6; }
|
Chris@42
|
8612 else
|
Chris@42
|
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8614 $as_echo "no" >&6; }
|
Chris@42
|
8615 fi
|
Chris@42
|
8616
|
Chris@42
|
8617 if test "x$ac_ct_LIPO" = x; then
|
Chris@42
|
8618 LIPO=":"
|
Chris@42
|
8619 else
|
Chris@42
|
8620 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
8621 yes:)
|
Chris@42
|
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
8623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
8624 ac_tool_warned=yes ;;
|
Chris@42
|
8625 esac
|
Chris@42
|
8626 LIPO=$ac_ct_LIPO
|
Chris@42
|
8627 fi
|
Chris@42
|
8628 else
|
Chris@42
|
8629 LIPO="$ac_cv_prog_LIPO"
|
Chris@42
|
8630 fi
|
Chris@42
|
8631
|
Chris@42
|
8632 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
8633 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
Chris@42
|
8634 set dummy ${ac_tool_prefix}otool; ac_word=$2
|
Chris@42
|
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8636 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8637 if ${ac_cv_prog_OTOOL+:} false; then :
|
Chris@42
|
8638 $as_echo_n "(cached) " >&6
|
Chris@42
|
8639 else
|
Chris@42
|
8640 if test -n "$OTOOL"; then
|
Chris@42
|
8641 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
Chris@42
|
8642 else
|
Chris@42
|
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8644 for as_dir in $PATH
|
Chris@42
|
8645 do
|
Chris@42
|
8646 IFS=$as_save_IFS
|
Chris@42
|
8647 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8648 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8650 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
Chris@42
|
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8652 break 2
|
Chris@42
|
8653 fi
|
Chris@42
|
8654 done
|
Chris@42
|
8655 done
|
Chris@42
|
8656 IFS=$as_save_IFS
|
Chris@42
|
8657
|
Chris@42
|
8658 fi
|
Chris@42
|
8659 fi
|
Chris@42
|
8660 OTOOL=$ac_cv_prog_OTOOL
|
Chris@42
|
8661 if test -n "$OTOOL"; then
|
Chris@42
|
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
|
Chris@42
|
8663 $as_echo "$OTOOL" >&6; }
|
Chris@42
|
8664 else
|
Chris@42
|
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8666 $as_echo "no" >&6; }
|
Chris@42
|
8667 fi
|
Chris@42
|
8668
|
Chris@42
|
8669
|
Chris@42
|
8670 fi
|
Chris@42
|
8671 if test -z "$ac_cv_prog_OTOOL"; then
|
Chris@42
|
8672 ac_ct_OTOOL=$OTOOL
|
Chris@42
|
8673 # Extract the first word of "otool", so it can be a program name with args.
|
Chris@42
|
8674 set dummy otool; ac_word=$2
|
Chris@42
|
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8676 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8677 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
|
Chris@42
|
8678 $as_echo_n "(cached) " >&6
|
Chris@42
|
8679 else
|
Chris@42
|
8680 if test -n "$ac_ct_OTOOL"; then
|
Chris@42
|
8681 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
Chris@42
|
8682 else
|
Chris@42
|
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8684 for as_dir in $PATH
|
Chris@42
|
8685 do
|
Chris@42
|
8686 IFS=$as_save_IFS
|
Chris@42
|
8687 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8688 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8690 ac_cv_prog_ac_ct_OTOOL="otool"
|
Chris@42
|
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8692 break 2
|
Chris@42
|
8693 fi
|
Chris@42
|
8694 done
|
Chris@42
|
8695 done
|
Chris@42
|
8696 IFS=$as_save_IFS
|
Chris@42
|
8697
|
Chris@42
|
8698 fi
|
Chris@42
|
8699 fi
|
Chris@42
|
8700 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
Chris@42
|
8701 if test -n "$ac_ct_OTOOL"; then
|
Chris@42
|
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
|
Chris@42
|
8703 $as_echo "$ac_ct_OTOOL" >&6; }
|
Chris@42
|
8704 else
|
Chris@42
|
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8706 $as_echo "no" >&6; }
|
Chris@42
|
8707 fi
|
Chris@42
|
8708
|
Chris@42
|
8709 if test "x$ac_ct_OTOOL" = x; then
|
Chris@42
|
8710 OTOOL=":"
|
Chris@42
|
8711 else
|
Chris@42
|
8712 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
8713 yes:)
|
Chris@42
|
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
8715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
8716 ac_tool_warned=yes ;;
|
Chris@42
|
8717 esac
|
Chris@42
|
8718 OTOOL=$ac_ct_OTOOL
|
Chris@42
|
8719 fi
|
Chris@42
|
8720 else
|
Chris@42
|
8721 OTOOL="$ac_cv_prog_OTOOL"
|
Chris@42
|
8722 fi
|
Chris@42
|
8723
|
Chris@42
|
8724 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
8725 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
Chris@42
|
8726 set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
Chris@42
|
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8728 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8729 if ${ac_cv_prog_OTOOL64+:} false; then :
|
Chris@42
|
8730 $as_echo_n "(cached) " >&6
|
Chris@42
|
8731 else
|
Chris@42
|
8732 if test -n "$OTOOL64"; then
|
Chris@42
|
8733 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
Chris@42
|
8734 else
|
Chris@42
|
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8736 for as_dir in $PATH
|
Chris@42
|
8737 do
|
Chris@42
|
8738 IFS=$as_save_IFS
|
Chris@42
|
8739 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8740 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8742 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
Chris@42
|
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8744 break 2
|
Chris@42
|
8745 fi
|
Chris@42
|
8746 done
|
Chris@42
|
8747 done
|
Chris@42
|
8748 IFS=$as_save_IFS
|
Chris@42
|
8749
|
Chris@42
|
8750 fi
|
Chris@42
|
8751 fi
|
Chris@42
|
8752 OTOOL64=$ac_cv_prog_OTOOL64
|
Chris@42
|
8753 if test -n "$OTOOL64"; then
|
Chris@42
|
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
|
Chris@42
|
8755 $as_echo "$OTOOL64" >&6; }
|
Chris@42
|
8756 else
|
Chris@42
|
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8758 $as_echo "no" >&6; }
|
Chris@42
|
8759 fi
|
Chris@42
|
8760
|
Chris@42
|
8761
|
Chris@42
|
8762 fi
|
Chris@42
|
8763 if test -z "$ac_cv_prog_OTOOL64"; then
|
Chris@42
|
8764 ac_ct_OTOOL64=$OTOOL64
|
Chris@42
|
8765 # Extract the first word of "otool64", so it can be a program name with args.
|
Chris@42
|
8766 set dummy otool64; ac_word=$2
|
Chris@42
|
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
8768 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
8769 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
|
Chris@42
|
8770 $as_echo_n "(cached) " >&6
|
Chris@42
|
8771 else
|
Chris@42
|
8772 if test -n "$ac_ct_OTOOL64"; then
|
Chris@42
|
8773 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
Chris@42
|
8774 else
|
Chris@42
|
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
8776 for as_dir in $PATH
|
Chris@42
|
8777 do
|
Chris@42
|
8778 IFS=$as_save_IFS
|
Chris@42
|
8779 test -z "$as_dir" && as_dir=.
|
Chris@42
|
8780 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
8781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
8782 ac_cv_prog_ac_ct_OTOOL64="otool64"
|
Chris@42
|
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
8784 break 2
|
Chris@42
|
8785 fi
|
Chris@42
|
8786 done
|
Chris@42
|
8787 done
|
Chris@42
|
8788 IFS=$as_save_IFS
|
Chris@42
|
8789
|
Chris@42
|
8790 fi
|
Chris@42
|
8791 fi
|
Chris@42
|
8792 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
Chris@42
|
8793 if test -n "$ac_ct_OTOOL64"; then
|
Chris@42
|
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
|
Chris@42
|
8795 $as_echo "$ac_ct_OTOOL64" >&6; }
|
Chris@42
|
8796 else
|
Chris@42
|
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
8798 $as_echo "no" >&6; }
|
Chris@42
|
8799 fi
|
Chris@42
|
8800
|
Chris@42
|
8801 if test "x$ac_ct_OTOOL64" = x; then
|
Chris@42
|
8802 OTOOL64=":"
|
Chris@42
|
8803 else
|
Chris@42
|
8804 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
8805 yes:)
|
Chris@42
|
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
8807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
8808 ac_tool_warned=yes ;;
|
Chris@42
|
8809 esac
|
Chris@42
|
8810 OTOOL64=$ac_ct_OTOOL64
|
Chris@42
|
8811 fi
|
Chris@42
|
8812 else
|
Chris@42
|
8813 OTOOL64="$ac_cv_prog_OTOOL64"
|
Chris@42
|
8814 fi
|
Chris@42
|
8815
|
Chris@42
|
8816
|
Chris@42
|
8817
|
Chris@42
|
8818
|
Chris@42
|
8819
|
Chris@42
|
8820
|
Chris@42
|
8821
|
Chris@42
|
8822
|
Chris@42
|
8823
|
Chris@42
|
8824
|
Chris@42
|
8825
|
Chris@42
|
8826
|
Chris@42
|
8827
|
Chris@42
|
8828
|
Chris@42
|
8829
|
Chris@42
|
8830
|
Chris@42
|
8831
|
Chris@42
|
8832
|
Chris@42
|
8833
|
Chris@42
|
8834
|
Chris@42
|
8835
|
Chris@42
|
8836
|
Chris@42
|
8837
|
Chris@42
|
8838
|
Chris@42
|
8839
|
Chris@42
|
8840
|
Chris@42
|
8841
|
Chris@42
|
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
|
Chris@42
|
8843 $as_echo_n "checking for -single_module linker flag... " >&6; }
|
Chris@42
|
8844 if ${lt_cv_apple_cc_single_mod+:} false; then :
|
Chris@42
|
8845 $as_echo_n "(cached) " >&6
|
Chris@42
|
8846 else
|
Chris@42
|
8847 lt_cv_apple_cc_single_mod=no
|
Chris@42
|
8848 if test -z "${LT_MULTI_MODULE}"; then
|
Chris@42
|
8849 # By default we will add the -single_module flag. You can override
|
Chris@42
|
8850 # by either setting the environment variable LT_MULTI_MODULE
|
Chris@42
|
8851 # non-empty at configure time, or by adding -multi_module to the
|
Chris@42
|
8852 # link flags.
|
Chris@42
|
8853 rm -rf libconftest.dylib*
|
Chris@42
|
8854 echo "int foo(void){return 1;}" > conftest.c
|
Chris@42
|
8855 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
Chris@42
|
8856 -dynamiclib -Wl,-single_module conftest.c" >&5
|
Chris@42
|
8857 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
Chris@42
|
8858 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
Chris@42
|
8859 _lt_result=$?
|
Chris@42
|
8860 # If there is a non-empty error log, and "single_module"
|
Chris@42
|
8861 # appears in it, assume the flag caused a linker warning
|
Chris@42
|
8862 if test -s conftest.err && $GREP single_module conftest.err; then
|
Chris@42
|
8863 cat conftest.err >&5
|
Chris@42
|
8864 # Otherwise, if the output was created with a 0 exit code from
|
Chris@42
|
8865 # the compiler, it worked.
|
Chris@42
|
8866 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
|
Chris@42
|
8867 lt_cv_apple_cc_single_mod=yes
|
Chris@42
|
8868 else
|
Chris@42
|
8869 cat conftest.err >&5
|
Chris@42
|
8870 fi
|
Chris@42
|
8871 rm -rf libconftest.dylib*
|
Chris@42
|
8872 rm -f conftest.*
|
Chris@42
|
8873 fi
|
Chris@42
|
8874 fi
|
Chris@42
|
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
|
Chris@42
|
8876 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
|
Chris@42
|
8877
|
Chris@42
|
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
|
Chris@42
|
8879 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
|
Chris@42
|
8880 if ${lt_cv_ld_exported_symbols_list+:} false; then :
|
Chris@42
|
8881 $as_echo_n "(cached) " >&6
|
Chris@42
|
8882 else
|
Chris@42
|
8883 lt_cv_ld_exported_symbols_list=no
|
Chris@42
|
8884 save_LDFLAGS=$LDFLAGS
|
Chris@42
|
8885 echo "_main" > conftest.sym
|
Chris@42
|
8886 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
Chris@42
|
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
8888 /* end confdefs.h. */
|
Chris@42
|
8889
|
Chris@42
|
8890 int
|
Chris@42
|
8891 main ()
|
Chris@42
|
8892 {
|
Chris@42
|
8893
|
Chris@42
|
8894 ;
|
Chris@42
|
8895 return 0;
|
Chris@42
|
8896 }
|
Chris@42
|
8897 _ACEOF
|
Chris@42
|
8898 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
8899 lt_cv_ld_exported_symbols_list=yes
|
Chris@42
|
8900 else
|
Chris@42
|
8901 lt_cv_ld_exported_symbols_list=no
|
Chris@42
|
8902 fi
|
Chris@42
|
8903 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
8904 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
8905 LDFLAGS="$save_LDFLAGS"
|
Chris@42
|
8906
|
Chris@42
|
8907 fi
|
Chris@42
|
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
|
Chris@42
|
8909 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
|
Chris@42
|
8910
|
Chris@42
|
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
|
Chris@42
|
8912 $as_echo_n "checking for -force_load linker flag... " >&6; }
|
Chris@42
|
8913 if ${lt_cv_ld_force_load+:} false; then :
|
Chris@42
|
8914 $as_echo_n "(cached) " >&6
|
Chris@42
|
8915 else
|
Chris@42
|
8916 lt_cv_ld_force_load=no
|
Chris@42
|
8917 cat > conftest.c << _LT_EOF
|
Chris@42
|
8918 int forced_loaded() { return 2;}
|
Chris@42
|
8919 _LT_EOF
|
Chris@42
|
8920 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
|
Chris@42
|
8921 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
Chris@42
|
8922 echo "$AR cru libconftest.a conftest.o" >&5
|
Chris@42
|
8923 $AR cru libconftest.a conftest.o 2>&5
|
Chris@42
|
8924 echo "$RANLIB libconftest.a" >&5
|
Chris@42
|
8925 $RANLIB libconftest.a 2>&5
|
Chris@42
|
8926 cat > conftest.c << _LT_EOF
|
Chris@42
|
8927 int main() { return 0;}
|
Chris@42
|
8928 _LT_EOF
|
Chris@42
|
8929 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
|
Chris@42
|
8930 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
Chris@42
|
8931 _lt_result=$?
|
Chris@42
|
8932 if test -s conftest.err && $GREP force_load conftest.err; then
|
Chris@42
|
8933 cat conftest.err >&5
|
Chris@42
|
8934 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
|
Chris@42
|
8935 lt_cv_ld_force_load=yes
|
Chris@42
|
8936 else
|
Chris@42
|
8937 cat conftest.err >&5
|
Chris@42
|
8938 fi
|
Chris@42
|
8939 rm -f conftest.err libconftest.a conftest conftest.c
|
Chris@42
|
8940 rm -rf conftest.dSYM
|
Chris@42
|
8941
|
Chris@42
|
8942 fi
|
Chris@42
|
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
|
Chris@42
|
8944 $as_echo "$lt_cv_ld_force_load" >&6; }
|
Chris@42
|
8945 case $host_os in
|
Chris@42
|
8946 rhapsody* | darwin1.[012])
|
Chris@42
|
8947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
Chris@42
|
8948 darwin1.*)
|
Chris@42
|
8949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
Chris@42
|
8950 darwin*) # darwin 5.x on
|
Chris@42
|
8951 # if running on 10.5 or later, the deployment target defaults
|
Chris@42
|
8952 # to the OS version, if on x86, and 10.4, the deployment
|
Chris@42
|
8953 # target defaults to 10.4. Don't you love it?
|
Chris@42
|
8954 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
Chris@42
|
8955 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
Chris@42
|
8956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
Chris@42
|
8957 10.[012]*)
|
Chris@42
|
8958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
Chris@42
|
8959 10.*)
|
Chris@42
|
8960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
Chris@42
|
8961 esac
|
Chris@42
|
8962 ;;
|
Chris@42
|
8963 esac
|
Chris@42
|
8964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
Chris@42
|
8965 _lt_dar_single_mod='$single_module'
|
Chris@42
|
8966 fi
|
Chris@42
|
8967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
Chris@42
|
8968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
Chris@42
|
8969 else
|
Chris@42
|
8970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
Chris@42
|
8971 fi
|
Chris@42
|
8972 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
|
Chris@42
|
8973 _lt_dsymutil='~$DSYMUTIL $lib || :'
|
Chris@42
|
8974 else
|
Chris@42
|
8975 _lt_dsymutil=
|
Chris@42
|
8976 fi
|
Chris@42
|
8977 ;;
|
Chris@42
|
8978 esac
|
Chris@42
|
8979
|
Chris@42
|
8980 ac_ext=c
|
Chris@42
|
8981 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
8982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
8983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
8984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
Chris@42
|
8986 $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
Chris@42
|
8987 # On Suns, sometimes $CPP names a directory.
|
Chris@42
|
8988 if test -n "$CPP" && test -d "$CPP"; then
|
Chris@42
|
8989 CPP=
|
Chris@42
|
8990 fi
|
Chris@42
|
8991 if test -z "$CPP"; then
|
Chris@42
|
8992 if ${ac_cv_prog_CPP+:} false; then :
|
Chris@42
|
8993 $as_echo_n "(cached) " >&6
|
Chris@42
|
8994 else
|
Chris@42
|
8995 # Double quotes because CPP needs to be expanded
|
Chris@42
|
8996 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
Chris@42
|
8997 do
|
Chris@42
|
8998 ac_preproc_ok=false
|
Chris@42
|
8999 for ac_c_preproc_warn_flag in '' yes
|
Chris@42
|
9000 do
|
Chris@42
|
9001 # Use a header file that comes with gcc, so configuring glibc
|
Chris@42
|
9002 # with a fresh cross-compiler works.
|
Chris@42
|
9003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Chris@42
|
9004 # <limits.h> exists even on freestanding compilers.
|
Chris@42
|
9005 # On the NeXT, cc -E runs the code through the compiler's parser,
|
Chris@42
|
9006 # not just through cpp. "Syntax error" is here to catch this case.
|
Chris@42
|
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
9008 /* end confdefs.h. */
|
Chris@42
|
9009 #ifdef __STDC__
|
Chris@42
|
9010 # include <limits.h>
|
Chris@42
|
9011 #else
|
Chris@42
|
9012 # include <assert.h>
|
Chris@42
|
9013 #endif
|
Chris@42
|
9014 Syntax error
|
Chris@42
|
9015 _ACEOF
|
Chris@42
|
9016 if ac_fn_c_try_cpp "$LINENO"; then :
|
Chris@42
|
9017
|
Chris@42
|
9018 else
|
Chris@42
|
9019 # Broken: fails on valid input.
|
Chris@42
|
9020 continue
|
Chris@42
|
9021 fi
|
Chris@42
|
9022 rm -f conftest.err conftest.i conftest.$ac_ext
|
Chris@42
|
9023
|
Chris@42
|
9024 # OK, works on sane cases. Now check whether nonexistent headers
|
Chris@42
|
9025 # can be detected and how.
|
Chris@42
|
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
9027 /* end confdefs.h. */
|
Chris@42
|
9028 #include <ac_nonexistent.h>
|
Chris@42
|
9029 _ACEOF
|
Chris@42
|
9030 if ac_fn_c_try_cpp "$LINENO"; then :
|
Chris@42
|
9031 # Broken: success on invalid input.
|
Chris@42
|
9032 continue
|
Chris@42
|
9033 else
|
Chris@42
|
9034 # Passes both tests.
|
Chris@42
|
9035 ac_preproc_ok=:
|
Chris@42
|
9036 break
|
Chris@42
|
9037 fi
|
Chris@42
|
9038 rm -f conftest.err conftest.i conftest.$ac_ext
|
Chris@42
|
9039
|
Chris@42
|
9040 done
|
Chris@42
|
9041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
Chris@42
|
9042 rm -f conftest.i conftest.err conftest.$ac_ext
|
Chris@42
|
9043 if $ac_preproc_ok; then :
|
Chris@42
|
9044 break
|
Chris@42
|
9045 fi
|
Chris@42
|
9046
|
Chris@42
|
9047 done
|
Chris@42
|
9048 ac_cv_prog_CPP=$CPP
|
Chris@42
|
9049
|
Chris@42
|
9050 fi
|
Chris@42
|
9051 CPP=$ac_cv_prog_CPP
|
Chris@42
|
9052 else
|
Chris@42
|
9053 ac_cv_prog_CPP=$CPP
|
Chris@42
|
9054 fi
|
Chris@42
|
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
Chris@42
|
9056 $as_echo "$CPP" >&6; }
|
Chris@42
|
9057 ac_preproc_ok=false
|
Chris@42
|
9058 for ac_c_preproc_warn_flag in '' yes
|
Chris@42
|
9059 do
|
Chris@42
|
9060 # Use a header file that comes with gcc, so configuring glibc
|
Chris@42
|
9061 # with a fresh cross-compiler works.
|
Chris@42
|
9062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
Chris@42
|
9063 # <limits.h> exists even on freestanding compilers.
|
Chris@42
|
9064 # On the NeXT, cc -E runs the code through the compiler's parser,
|
Chris@42
|
9065 # not just through cpp. "Syntax error" is here to catch this case.
|
Chris@42
|
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
9067 /* end confdefs.h. */
|
Chris@42
|
9068 #ifdef __STDC__
|
Chris@42
|
9069 # include <limits.h>
|
Chris@42
|
9070 #else
|
Chris@42
|
9071 # include <assert.h>
|
Chris@42
|
9072 #endif
|
Chris@42
|
9073 Syntax error
|
Chris@42
|
9074 _ACEOF
|
Chris@42
|
9075 if ac_fn_c_try_cpp "$LINENO"; then :
|
Chris@42
|
9076
|
Chris@42
|
9077 else
|
Chris@42
|
9078 # Broken: fails on valid input.
|
Chris@42
|
9079 continue
|
Chris@42
|
9080 fi
|
Chris@42
|
9081 rm -f conftest.err conftest.i conftest.$ac_ext
|
Chris@42
|
9082
|
Chris@42
|
9083 # OK, works on sane cases. Now check whether nonexistent headers
|
Chris@42
|
9084 # can be detected and how.
|
Chris@42
|
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
9086 /* end confdefs.h. */
|
Chris@42
|
9087 #include <ac_nonexistent.h>
|
Chris@42
|
9088 _ACEOF
|
Chris@42
|
9089 if ac_fn_c_try_cpp "$LINENO"; then :
|
Chris@42
|
9090 # Broken: success on invalid input.
|
Chris@42
|
9091 continue
|
Chris@42
|
9092 else
|
Chris@42
|
9093 # Passes both tests.
|
Chris@42
|
9094 ac_preproc_ok=:
|
Chris@42
|
9095 break
|
Chris@42
|
9096 fi
|
Chris@42
|
9097 rm -f conftest.err conftest.i conftest.$ac_ext
|
Chris@42
|
9098
|
Chris@42
|
9099 done
|
Chris@42
|
9100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
Chris@42
|
9101 rm -f conftest.i conftest.err conftest.$ac_ext
|
Chris@42
|
9102 if $ac_preproc_ok; then :
|
Chris@42
|
9103
|
Chris@42
|
9104 else
|
Chris@42
|
9105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
9106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
9107 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
Chris@42
|
9108 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
9109 fi
|
Chris@42
|
9110
|
Chris@42
|
9111 ac_ext=c
|
Chris@42
|
9112 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
9113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
9114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
9115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
9116
|
Chris@42
|
9117
|
Chris@42
|
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
Chris@42
|
9119 $as_echo_n "checking for ANSI C header files... " >&6; }
|
Chris@42
|
9120 if ${ac_cv_header_stdc+:} false; then :
|
Chris@42
|
9121 $as_echo_n "(cached) " >&6
|
Chris@42
|
9122 else
|
Chris@42
|
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
9124 /* end confdefs.h. */
|
Chris@42
|
9125 #include <stdlib.h>
|
Chris@42
|
9126 #include <stdarg.h>
|
Chris@42
|
9127 #include <string.h>
|
Chris@42
|
9128 #include <float.h>
|
Chris@42
|
9129
|
Chris@42
|
9130 int
|
Chris@42
|
9131 main ()
|
Chris@42
|
9132 {
|
Chris@42
|
9133
|
Chris@42
|
9134 ;
|
Chris@42
|
9135 return 0;
|
Chris@42
|
9136 }
|
Chris@42
|
9137 _ACEOF
|
Chris@42
|
9138 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
9139 ac_cv_header_stdc=yes
|
Chris@42
|
9140 else
|
Chris@42
|
9141 ac_cv_header_stdc=no
|
Chris@42
|
9142 fi
|
Chris@42
|
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
9144
|
Chris@42
|
9145 if test $ac_cv_header_stdc = yes; then
|
Chris@42
|
9146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
Chris@42
|
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
9148 /* end confdefs.h. */
|
Chris@42
|
9149 #include <string.h>
|
Chris@42
|
9150
|
Chris@42
|
9151 _ACEOF
|
Chris@42
|
9152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
Chris@42
|
9153 $EGREP "memchr" >/dev/null 2>&1; then :
|
Chris@42
|
9154
|
Chris@42
|
9155 else
|
Chris@42
|
9156 ac_cv_header_stdc=no
|
Chris@42
|
9157 fi
|
Chris@42
|
9158 rm -f conftest*
|
Chris@42
|
9159
|
Chris@42
|
9160 fi
|
Chris@42
|
9161
|
Chris@42
|
9162 if test $ac_cv_header_stdc = yes; then
|
Chris@42
|
9163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
Chris@42
|
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
9165 /* end confdefs.h. */
|
Chris@42
|
9166 #include <stdlib.h>
|
Chris@42
|
9167
|
Chris@42
|
9168 _ACEOF
|
Chris@42
|
9169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
Chris@42
|
9170 $EGREP "free" >/dev/null 2>&1; then :
|
Chris@42
|
9171
|
Chris@42
|
9172 else
|
Chris@42
|
9173 ac_cv_header_stdc=no
|
Chris@42
|
9174 fi
|
Chris@42
|
9175 rm -f conftest*
|
Chris@42
|
9176
|
Chris@42
|
9177 fi
|
Chris@42
|
9178
|
Chris@42
|
9179 if test $ac_cv_header_stdc = yes; then
|
Chris@42
|
9180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
Chris@42
|
9181 if test "$cross_compiling" = yes; then :
|
Chris@42
|
9182 :
|
Chris@42
|
9183 else
|
Chris@42
|
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
9185 /* end confdefs.h. */
|
Chris@42
|
9186 #include <ctype.h>
|
Chris@42
|
9187 #include <stdlib.h>
|
Chris@42
|
9188 #if ((' ' & 0x0FF) == 0x020)
|
Chris@42
|
9189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
Chris@42
|
9190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
Chris@42
|
9191 #else
|
Chris@42
|
9192 # define ISLOWER(c) \
|
Chris@42
|
9193 (('a' <= (c) && (c) <= 'i') \
|
Chris@42
|
9194 || ('j' <= (c) && (c) <= 'r') \
|
Chris@42
|
9195 || ('s' <= (c) && (c) <= 'z'))
|
Chris@42
|
9196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
Chris@42
|
9197 #endif
|
Chris@42
|
9198
|
Chris@42
|
9199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
Chris@42
|
9200 int
|
Chris@42
|
9201 main ()
|
Chris@42
|
9202 {
|
Chris@42
|
9203 int i;
|
Chris@42
|
9204 for (i = 0; i < 256; i++)
|
Chris@42
|
9205 if (XOR (islower (i), ISLOWER (i))
|
Chris@42
|
9206 || toupper (i) != TOUPPER (i))
|
Chris@42
|
9207 return 2;
|
Chris@42
|
9208 return 0;
|
Chris@42
|
9209 }
|
Chris@42
|
9210 _ACEOF
|
Chris@42
|
9211 if ac_fn_c_try_run "$LINENO"; then :
|
Chris@42
|
9212
|
Chris@42
|
9213 else
|
Chris@42
|
9214 ac_cv_header_stdc=no
|
Chris@42
|
9215 fi
|
Chris@42
|
9216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
Chris@42
|
9217 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
Chris@42
|
9218 fi
|
Chris@42
|
9219
|
Chris@42
|
9220 fi
|
Chris@42
|
9221 fi
|
Chris@42
|
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
Chris@42
|
9223 $as_echo "$ac_cv_header_stdc" >&6; }
|
Chris@42
|
9224 if test $ac_cv_header_stdc = yes; then
|
Chris@42
|
9225
|
Chris@42
|
9226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
Chris@42
|
9227
|
Chris@42
|
9228 fi
|
Chris@42
|
9229
|
Chris@42
|
9230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
Chris@42
|
9231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
Chris@42
|
9232 inttypes.h stdint.h unistd.h
|
Chris@42
|
9233 do :
|
Chris@42
|
9234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
Chris@42
|
9235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
Chris@42
|
9236 "
|
Chris@42
|
9237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
Chris@42
|
9238 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
9239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
Chris@42
|
9240 _ACEOF
|
Chris@42
|
9241
|
Chris@42
|
9242 fi
|
Chris@42
|
9243
|
Chris@42
|
9244 done
|
Chris@42
|
9245
|
Chris@42
|
9246
|
Chris@42
|
9247 for ac_header in dlfcn.h
|
Chris@42
|
9248 do :
|
Chris@42
|
9249 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
|
Chris@42
|
9250 "
|
Chris@42
|
9251 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
|
Chris@42
|
9252 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
9253 #define HAVE_DLFCN_H 1
|
Chris@42
|
9254 _ACEOF
|
Chris@42
|
9255
|
Chris@42
|
9256 fi
|
Chris@42
|
9257
|
Chris@42
|
9258 done
|
Chris@42
|
9259
|
Chris@42
|
9260
|
Chris@42
|
9261
|
Chris@42
|
9262
|
Chris@42
|
9263
|
Chris@42
|
9264 # Set options
|
Chris@42
|
9265
|
Chris@42
|
9266
|
Chris@42
|
9267
|
Chris@42
|
9268 enable_dlopen=no
|
Chris@42
|
9269
|
Chris@42
|
9270
|
Chris@42
|
9271
|
Chris@42
|
9272
|
Chris@42
|
9273 # Check whether --enable-static was given.
|
Chris@42
|
9274 if test "${enable_static+set}" = set; then :
|
Chris@42
|
9275 enableval=$enable_static; p=${PACKAGE-default}
|
Chris@42
|
9276 case $enableval in
|
Chris@42
|
9277 yes) enable_static=yes ;;
|
Chris@42
|
9278 no) enable_static=no ;;
|
Chris@42
|
9279 *)
|
Chris@42
|
9280 enable_static=no
|
Chris@42
|
9281 # Look at the argument we got. We use all the common list separators.
|
Chris@42
|
9282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
Chris@42
|
9283 for pkg in $enableval; do
|
Chris@42
|
9284 IFS="$lt_save_ifs"
|
Chris@42
|
9285 if test "X$pkg" = "X$p"; then
|
Chris@42
|
9286 enable_static=yes
|
Chris@42
|
9287 fi
|
Chris@42
|
9288 done
|
Chris@42
|
9289 IFS="$lt_save_ifs"
|
Chris@42
|
9290 ;;
|
Chris@42
|
9291 esac
|
Chris@42
|
9292 else
|
Chris@42
|
9293 enable_static=yes
|
Chris@42
|
9294 fi
|
Chris@42
|
9295
|
Chris@42
|
9296
|
Chris@42
|
9297
|
Chris@42
|
9298
|
Chris@42
|
9299
|
Chris@42
|
9300
|
Chris@42
|
9301
|
Chris@42
|
9302
|
Chris@42
|
9303
|
Chris@42
|
9304
|
Chris@42
|
9305 # Check whether --with-pic was given.
|
Chris@42
|
9306 if test "${with_pic+set}" = set; then :
|
Chris@42
|
9307 withval=$with_pic; lt_p=${PACKAGE-default}
|
Chris@42
|
9308 case $withval in
|
Chris@42
|
9309 yes|no) pic_mode=$withval ;;
|
Chris@42
|
9310 *)
|
Chris@42
|
9311 pic_mode=default
|
Chris@42
|
9312 # Look at the argument we got. We use all the common list separators.
|
Chris@42
|
9313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
Chris@42
|
9314 for lt_pkg in $withval; do
|
Chris@42
|
9315 IFS="$lt_save_ifs"
|
Chris@42
|
9316 if test "X$lt_pkg" = "X$lt_p"; then
|
Chris@42
|
9317 pic_mode=yes
|
Chris@42
|
9318 fi
|
Chris@42
|
9319 done
|
Chris@42
|
9320 IFS="$lt_save_ifs"
|
Chris@42
|
9321 ;;
|
Chris@42
|
9322 esac
|
Chris@42
|
9323 else
|
Chris@42
|
9324 pic_mode=default
|
Chris@42
|
9325 fi
|
Chris@42
|
9326
|
Chris@42
|
9327
|
Chris@42
|
9328 test -z "$pic_mode" && pic_mode=default
|
Chris@42
|
9329
|
Chris@42
|
9330
|
Chris@42
|
9331
|
Chris@42
|
9332
|
Chris@42
|
9333
|
Chris@42
|
9334
|
Chris@42
|
9335
|
Chris@42
|
9336 # Check whether --enable-fast-install was given.
|
Chris@42
|
9337 if test "${enable_fast_install+set}" = set; then :
|
Chris@42
|
9338 enableval=$enable_fast_install; p=${PACKAGE-default}
|
Chris@42
|
9339 case $enableval in
|
Chris@42
|
9340 yes) enable_fast_install=yes ;;
|
Chris@42
|
9341 no) enable_fast_install=no ;;
|
Chris@42
|
9342 *)
|
Chris@42
|
9343 enable_fast_install=no
|
Chris@42
|
9344 # Look at the argument we got. We use all the common list separators.
|
Chris@42
|
9345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
Chris@42
|
9346 for pkg in $enableval; do
|
Chris@42
|
9347 IFS="$lt_save_ifs"
|
Chris@42
|
9348 if test "X$pkg" = "X$p"; then
|
Chris@42
|
9349 enable_fast_install=yes
|
Chris@42
|
9350 fi
|
Chris@42
|
9351 done
|
Chris@42
|
9352 IFS="$lt_save_ifs"
|
Chris@42
|
9353 ;;
|
Chris@42
|
9354 esac
|
Chris@42
|
9355 else
|
Chris@42
|
9356 enable_fast_install=yes
|
Chris@42
|
9357 fi
|
Chris@42
|
9358
|
Chris@42
|
9359
|
Chris@42
|
9360
|
Chris@42
|
9361
|
Chris@42
|
9362
|
Chris@42
|
9363
|
Chris@42
|
9364
|
Chris@42
|
9365
|
Chris@42
|
9366
|
Chris@42
|
9367
|
Chris@42
|
9368
|
Chris@42
|
9369 # This can be used to rebuild libtool when needed
|
Chris@42
|
9370 LIBTOOL_DEPS="$ltmain"
|
Chris@42
|
9371
|
Chris@42
|
9372 # Always use our own libtool.
|
Chris@42
|
9373 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
Chris@42
|
9374
|
Chris@42
|
9375
|
Chris@42
|
9376
|
Chris@42
|
9377
|
Chris@42
|
9378
|
Chris@42
|
9379
|
Chris@42
|
9380
|
Chris@42
|
9381
|
Chris@42
|
9382
|
Chris@42
|
9383
|
Chris@42
|
9384
|
Chris@42
|
9385
|
Chris@42
|
9386
|
Chris@42
|
9387
|
Chris@42
|
9388
|
Chris@42
|
9389
|
Chris@42
|
9390
|
Chris@42
|
9391
|
Chris@42
|
9392
|
Chris@42
|
9393
|
Chris@42
|
9394
|
Chris@42
|
9395
|
Chris@42
|
9396
|
Chris@42
|
9397
|
Chris@42
|
9398
|
Chris@42
|
9399
|
Chris@42
|
9400
|
Chris@42
|
9401
|
Chris@42
|
9402
|
Chris@42
|
9403
|
Chris@42
|
9404 test -z "$LN_S" && LN_S="ln -s"
|
Chris@42
|
9405
|
Chris@42
|
9406
|
Chris@42
|
9407
|
Chris@42
|
9408
|
Chris@42
|
9409
|
Chris@42
|
9410
|
Chris@42
|
9411
|
Chris@42
|
9412
|
Chris@42
|
9413
|
Chris@42
|
9414
|
Chris@42
|
9415
|
Chris@42
|
9416
|
Chris@42
|
9417
|
Chris@42
|
9418
|
Chris@42
|
9419 if test -n "${ZSH_VERSION+set}" ; then
|
Chris@42
|
9420 setopt NO_GLOB_SUBST
|
Chris@42
|
9421 fi
|
Chris@42
|
9422
|
Chris@42
|
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
|
Chris@42
|
9424 $as_echo_n "checking for objdir... " >&6; }
|
Chris@42
|
9425 if ${lt_cv_objdir+:} false; then :
|
Chris@42
|
9426 $as_echo_n "(cached) " >&6
|
Chris@42
|
9427 else
|
Chris@42
|
9428 rm -f .libs 2>/dev/null
|
Chris@42
|
9429 mkdir .libs 2>/dev/null
|
Chris@42
|
9430 if test -d .libs; then
|
Chris@42
|
9431 lt_cv_objdir=.libs
|
Chris@42
|
9432 else
|
Chris@42
|
9433 # MS-DOS does not allow filenames that begin with a dot.
|
Chris@42
|
9434 lt_cv_objdir=_libs
|
Chris@42
|
9435 fi
|
Chris@42
|
9436 rmdir .libs 2>/dev/null
|
Chris@42
|
9437 fi
|
Chris@42
|
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
|
Chris@42
|
9439 $as_echo "$lt_cv_objdir" >&6; }
|
Chris@42
|
9440 objdir=$lt_cv_objdir
|
Chris@42
|
9441
|
Chris@42
|
9442
|
Chris@42
|
9443
|
Chris@42
|
9444
|
Chris@42
|
9445
|
Chris@42
|
9446 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
9447 #define LT_OBJDIR "$lt_cv_objdir/"
|
Chris@42
|
9448 _ACEOF
|
Chris@42
|
9449
|
Chris@42
|
9450
|
Chris@42
|
9451
|
Chris@42
|
9452
|
Chris@42
|
9453 case $host_os in
|
Chris@42
|
9454 aix3*)
|
Chris@42
|
9455 # AIX sometimes has problems with the GCC collect2 program. For some
|
Chris@42
|
9456 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
Chris@42
|
9457 # vanish in a puff of smoke.
|
Chris@42
|
9458 if test "X${COLLECT_NAMES+set}" != Xset; then
|
Chris@42
|
9459 COLLECT_NAMES=
|
Chris@42
|
9460 export COLLECT_NAMES
|
Chris@42
|
9461 fi
|
Chris@42
|
9462 ;;
|
Chris@42
|
9463 esac
|
Chris@42
|
9464
|
Chris@42
|
9465 # Global variables:
|
Chris@42
|
9466 ofile=libtool
|
Chris@42
|
9467 can_build_shared=yes
|
Chris@42
|
9468
|
Chris@42
|
9469 # All known linkers require a `.a' archive for static linking (except MSVC,
|
Chris@42
|
9470 # which needs '.lib').
|
Chris@42
|
9471 libext=a
|
Chris@42
|
9472
|
Chris@42
|
9473 with_gnu_ld="$lt_cv_prog_gnu_ld"
|
Chris@42
|
9474
|
Chris@42
|
9475 old_CC="$CC"
|
Chris@42
|
9476 old_CFLAGS="$CFLAGS"
|
Chris@42
|
9477
|
Chris@42
|
9478 # Set sane defaults for various variables
|
Chris@42
|
9479 test -z "$CC" && CC=cc
|
Chris@42
|
9480 test -z "$LTCC" && LTCC=$CC
|
Chris@42
|
9481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
Chris@42
|
9482 test -z "$LD" && LD=ld
|
Chris@42
|
9483 test -z "$ac_objext" && ac_objext=o
|
Chris@42
|
9484
|
Chris@42
|
9485 for cc_temp in $compiler""; do
|
Chris@42
|
9486 case $cc_temp in
|
Chris@42
|
9487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
Chris@42
|
9488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
Chris@42
|
9489 \-*) ;;
|
Chris@42
|
9490 *) break;;
|
Chris@42
|
9491 esac
|
Chris@42
|
9492 done
|
Chris@42
|
9493 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
Chris@42
|
9494
|
Chris@42
|
9495
|
Chris@42
|
9496 # Only perform the check for file, if the check method requires it
|
Chris@42
|
9497 test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
Chris@42
|
9498 case $deplibs_check_method in
|
Chris@42
|
9499 file_magic*)
|
Chris@42
|
9500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
Chris@42
|
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
|
Chris@42
|
9502 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
|
Chris@42
|
9503 if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
Chris@42
|
9504 $as_echo_n "(cached) " >&6
|
Chris@42
|
9505 else
|
Chris@42
|
9506 case $MAGIC_CMD in
|
Chris@42
|
9507 [\\/*] | ?:[\\/]*)
|
Chris@42
|
9508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
Chris@42
|
9509 ;;
|
Chris@42
|
9510 *)
|
Chris@42
|
9511 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
Chris@42
|
9512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
Chris@42
|
9513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
Chris@42
|
9514 for ac_dir in $ac_dummy; do
|
Chris@42
|
9515 IFS="$lt_save_ifs"
|
Chris@42
|
9516 test -z "$ac_dir" && ac_dir=.
|
Chris@42
|
9517 if test -f $ac_dir/${ac_tool_prefix}file; then
|
Chris@42
|
9518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
Chris@42
|
9519 if test -n "$file_magic_test_file"; then
|
Chris@42
|
9520 case $deplibs_check_method in
|
Chris@42
|
9521 "file_magic "*)
|
Chris@42
|
9522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
Chris@42
|
9523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
Chris@42
|
9524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
Chris@42
|
9525 $EGREP "$file_magic_regex" > /dev/null; then
|
Chris@42
|
9526 :
|
Chris@42
|
9527 else
|
Chris@42
|
9528 cat <<_LT_EOF 1>&2
|
Chris@42
|
9529
|
Chris@42
|
9530 *** Warning: the command libtool uses to detect shared libraries,
|
Chris@42
|
9531 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
Chris@42
|
9532 *** The result is that libtool may fail to recognize shared libraries
|
Chris@42
|
9533 *** as such. This will affect the creation of libtool libraries that
|
Chris@42
|
9534 *** depend on shared libraries, but programs linked with such libtool
|
Chris@42
|
9535 *** libraries will work regardless of this problem. Nevertheless, you
|
Chris@42
|
9536 *** may want to report the problem to your system manager and/or to
|
Chris@42
|
9537 *** bug-libtool@gnu.org
|
Chris@42
|
9538
|
Chris@42
|
9539 _LT_EOF
|
Chris@42
|
9540 fi ;;
|
Chris@42
|
9541 esac
|
Chris@42
|
9542 fi
|
Chris@42
|
9543 break
|
Chris@42
|
9544 fi
|
Chris@42
|
9545 done
|
Chris@42
|
9546 IFS="$lt_save_ifs"
|
Chris@42
|
9547 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
Chris@42
|
9548 ;;
|
Chris@42
|
9549 esac
|
Chris@42
|
9550 fi
|
Chris@42
|
9551
|
Chris@42
|
9552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
Chris@42
|
9553 if test -n "$MAGIC_CMD"; then
|
Chris@42
|
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
Chris@42
|
9555 $as_echo "$MAGIC_CMD" >&6; }
|
Chris@42
|
9556 else
|
Chris@42
|
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
9558 $as_echo "no" >&6; }
|
Chris@42
|
9559 fi
|
Chris@42
|
9560
|
Chris@42
|
9561
|
Chris@42
|
9562
|
Chris@42
|
9563
|
Chris@42
|
9564
|
Chris@42
|
9565 if test -z "$lt_cv_path_MAGIC_CMD"; then
|
Chris@42
|
9566 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
|
Chris@42
|
9568 $as_echo_n "checking for file... " >&6; }
|
Chris@42
|
9569 if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
Chris@42
|
9570 $as_echo_n "(cached) " >&6
|
Chris@42
|
9571 else
|
Chris@42
|
9572 case $MAGIC_CMD in
|
Chris@42
|
9573 [\\/*] | ?:[\\/]*)
|
Chris@42
|
9574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
Chris@42
|
9575 ;;
|
Chris@42
|
9576 *)
|
Chris@42
|
9577 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
Chris@42
|
9578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
Chris@42
|
9579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
Chris@42
|
9580 for ac_dir in $ac_dummy; do
|
Chris@42
|
9581 IFS="$lt_save_ifs"
|
Chris@42
|
9582 test -z "$ac_dir" && ac_dir=.
|
Chris@42
|
9583 if test -f $ac_dir/file; then
|
Chris@42
|
9584 lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
Chris@42
|
9585 if test -n "$file_magic_test_file"; then
|
Chris@42
|
9586 case $deplibs_check_method in
|
Chris@42
|
9587 "file_magic "*)
|
Chris@42
|
9588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
Chris@42
|
9589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
Chris@42
|
9590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
Chris@42
|
9591 $EGREP "$file_magic_regex" > /dev/null; then
|
Chris@42
|
9592 :
|
Chris@42
|
9593 else
|
Chris@42
|
9594 cat <<_LT_EOF 1>&2
|
Chris@42
|
9595
|
Chris@42
|
9596 *** Warning: the command libtool uses to detect shared libraries,
|
Chris@42
|
9597 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
Chris@42
|
9598 *** The result is that libtool may fail to recognize shared libraries
|
Chris@42
|
9599 *** as such. This will affect the creation of libtool libraries that
|
Chris@42
|
9600 *** depend on shared libraries, but programs linked with such libtool
|
Chris@42
|
9601 *** libraries will work regardless of this problem. Nevertheless, you
|
Chris@42
|
9602 *** may want to report the problem to your system manager and/or to
|
Chris@42
|
9603 *** bug-libtool@gnu.org
|
Chris@42
|
9604
|
Chris@42
|
9605 _LT_EOF
|
Chris@42
|
9606 fi ;;
|
Chris@42
|
9607 esac
|
Chris@42
|
9608 fi
|
Chris@42
|
9609 break
|
Chris@42
|
9610 fi
|
Chris@42
|
9611 done
|
Chris@42
|
9612 IFS="$lt_save_ifs"
|
Chris@42
|
9613 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
Chris@42
|
9614 ;;
|
Chris@42
|
9615 esac
|
Chris@42
|
9616 fi
|
Chris@42
|
9617
|
Chris@42
|
9618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
Chris@42
|
9619 if test -n "$MAGIC_CMD"; then
|
Chris@42
|
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
Chris@42
|
9621 $as_echo "$MAGIC_CMD" >&6; }
|
Chris@42
|
9622 else
|
Chris@42
|
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
9624 $as_echo "no" >&6; }
|
Chris@42
|
9625 fi
|
Chris@42
|
9626
|
Chris@42
|
9627
|
Chris@42
|
9628 else
|
Chris@42
|
9629 MAGIC_CMD=:
|
Chris@42
|
9630 fi
|
Chris@42
|
9631 fi
|
Chris@42
|
9632
|
Chris@42
|
9633 fi
|
Chris@42
|
9634 ;;
|
Chris@42
|
9635 esac
|
Chris@42
|
9636
|
Chris@42
|
9637 # Use C for the default configuration in the libtool script
|
Chris@42
|
9638
|
Chris@42
|
9639 lt_save_CC="$CC"
|
Chris@42
|
9640 ac_ext=c
|
Chris@42
|
9641 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
9642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
9643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
9644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
9645
|
Chris@42
|
9646
|
Chris@42
|
9647 # Source file extension for C test sources.
|
Chris@42
|
9648 ac_ext=c
|
Chris@42
|
9649
|
Chris@42
|
9650 # Object file extension for compiled C test sources.
|
Chris@42
|
9651 objext=o
|
Chris@42
|
9652 objext=$objext
|
Chris@42
|
9653
|
Chris@42
|
9654 # Code to be used in simple compile tests
|
Chris@42
|
9655 lt_simple_compile_test_code="int some_variable = 0;"
|
Chris@42
|
9656
|
Chris@42
|
9657 # Code to be used in simple link tests
|
Chris@42
|
9658 lt_simple_link_test_code='int main(){return(0);}'
|
Chris@42
|
9659
|
Chris@42
|
9660
|
Chris@42
|
9661
|
Chris@42
|
9662
|
Chris@42
|
9663
|
Chris@42
|
9664
|
Chris@42
|
9665
|
Chris@42
|
9666 # If no C compiler was specified, use CC.
|
Chris@42
|
9667 LTCC=${LTCC-"$CC"}
|
Chris@42
|
9668
|
Chris@42
|
9669 # If no C compiler flags were specified, use CFLAGS.
|
Chris@42
|
9670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
Chris@42
|
9671
|
Chris@42
|
9672 # Allow CC to be a program name with arguments.
|
Chris@42
|
9673 compiler=$CC
|
Chris@42
|
9674
|
Chris@42
|
9675 # Save the default compiler, since it gets overwritten when the other
|
Chris@42
|
9676 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
Chris@42
|
9677 compiler_DEFAULT=$CC
|
Chris@42
|
9678
|
Chris@42
|
9679 # save warnings/boilerplate of simple test code
|
Chris@42
|
9680 ac_outfile=conftest.$ac_objext
|
Chris@42
|
9681 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
Chris@42
|
9682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
Chris@42
|
9683 _lt_compiler_boilerplate=`cat conftest.err`
|
Chris@42
|
9684 $RM conftest*
|
Chris@42
|
9685
|
Chris@42
|
9686 ac_outfile=conftest.$ac_objext
|
Chris@42
|
9687 echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
Chris@42
|
9688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
Chris@42
|
9689 _lt_linker_boilerplate=`cat conftest.err`
|
Chris@42
|
9690 $RM -r conftest*
|
Chris@42
|
9691
|
Chris@42
|
9692
|
Chris@42
|
9693 ## CAVEAT EMPTOR:
|
Chris@42
|
9694 ## There is no encapsulation within the following macros, do not change
|
Chris@42
|
9695 ## the running order or otherwise move them around unless you know exactly
|
Chris@42
|
9696 ## what you are doing...
|
Chris@42
|
9697 if test -n "$compiler"; then
|
Chris@42
|
9698
|
Chris@42
|
9699 lt_prog_compiler_no_builtin_flag=
|
Chris@42
|
9700
|
Chris@42
|
9701 if test "$GCC" = yes; then
|
Chris@42
|
9702 case $cc_basename in
|
Chris@42
|
9703 nvcc*)
|
Chris@42
|
9704 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
|
Chris@42
|
9705 *)
|
Chris@42
|
9706 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
|
Chris@42
|
9707 esac
|
Chris@42
|
9708
|
Chris@42
|
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
Chris@42
|
9710 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
|
Chris@42
|
9711 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
|
Chris@42
|
9712 $as_echo_n "(cached) " >&6
|
Chris@42
|
9713 else
|
Chris@42
|
9714 lt_cv_prog_compiler_rtti_exceptions=no
|
Chris@42
|
9715 ac_outfile=conftest.$ac_objext
|
Chris@42
|
9716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
Chris@42
|
9717 lt_compiler_flag="-fno-rtti -fno-exceptions"
|
Chris@42
|
9718 # Insert the option either (1) after the last *FLAGS variable, or
|
Chris@42
|
9719 # (2) before a word containing "conftest.", or (3) at the end.
|
Chris@42
|
9720 # Note that $ac_compile itself does not contain backslashes and begins
|
Chris@42
|
9721 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
Chris@42
|
9722 # The option is referenced via a variable to avoid confusing sed.
|
Chris@42
|
9723 lt_compile=`echo "$ac_compile" | $SED \
|
Chris@42
|
9724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
Chris@42
|
9725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
Chris@42
|
9726 -e 's:$: $lt_compiler_flag:'`
|
Chris@42
|
9727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
Chris@42
|
9728 (eval "$lt_compile" 2>conftest.err)
|
Chris@42
|
9729 ac_status=$?
|
Chris@42
|
9730 cat conftest.err >&5
|
Chris@42
|
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
Chris@42
|
9732 if (exit $ac_status) && test -s "$ac_outfile"; then
|
Chris@42
|
9733 # The compiler can only warn and ignore the option if not recognized
|
Chris@42
|
9734 # So say no if there are warnings other than the usual output.
|
Chris@42
|
9735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
Chris@42
|
9736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
Chris@42
|
9737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
Chris@42
|
9738 lt_cv_prog_compiler_rtti_exceptions=yes
|
Chris@42
|
9739 fi
|
Chris@42
|
9740 fi
|
Chris@42
|
9741 $RM conftest*
|
Chris@42
|
9742
|
Chris@42
|
9743 fi
|
Chris@42
|
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
Chris@42
|
9745 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
Chris@42
|
9746
|
Chris@42
|
9747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
Chris@42
|
9748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
Chris@42
|
9749 else
|
Chris@42
|
9750 :
|
Chris@42
|
9751 fi
|
Chris@42
|
9752
|
Chris@42
|
9753 fi
|
Chris@42
|
9754
|
Chris@42
|
9755
|
Chris@42
|
9756
|
Chris@42
|
9757
|
Chris@42
|
9758
|
Chris@42
|
9759
|
Chris@42
|
9760 lt_prog_compiler_wl=
|
Chris@42
|
9761 lt_prog_compiler_pic=
|
Chris@42
|
9762 lt_prog_compiler_static=
|
Chris@42
|
9763
|
Chris@42
|
9764
|
Chris@42
|
9765 if test "$GCC" = yes; then
|
Chris@42
|
9766 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9767 lt_prog_compiler_static='-static'
|
Chris@42
|
9768
|
Chris@42
|
9769 case $host_os in
|
Chris@42
|
9770 aix*)
|
Chris@42
|
9771 # All AIX code is PIC.
|
Chris@42
|
9772 if test "$host_cpu" = ia64; then
|
Chris@42
|
9773 # AIX 5 now supports IA64 processor
|
Chris@42
|
9774 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
9775 fi
|
Chris@42
|
9776 ;;
|
Chris@42
|
9777
|
Chris@42
|
9778 amigaos*)
|
Chris@42
|
9779 case $host_cpu in
|
Chris@42
|
9780 powerpc)
|
Chris@42
|
9781 # see comment about AmigaOS4 .so support
|
Chris@42
|
9782 lt_prog_compiler_pic='-fPIC'
|
Chris@42
|
9783 ;;
|
Chris@42
|
9784 m68k)
|
Chris@42
|
9785 # FIXME: we need at least 68020 code to build shared libraries, but
|
Chris@42
|
9786 # adding the `-m68020' flag to GCC prevents building anything better,
|
Chris@42
|
9787 # like `-m68040'.
|
Chris@42
|
9788 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
Chris@42
|
9789 ;;
|
Chris@42
|
9790 esac
|
Chris@42
|
9791 ;;
|
Chris@42
|
9792
|
Chris@42
|
9793 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
Chris@42
|
9794 # PIC is the default for these OSes.
|
Chris@42
|
9795 ;;
|
Chris@42
|
9796
|
Chris@42
|
9797 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
Chris@42
|
9798 # This hack is so that the source file can tell whether it is being
|
Chris@42
|
9799 # built for inclusion in a dll (and should export symbols for example).
|
Chris@42
|
9800 # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
Chris@42
|
9801 # (--disable-auto-import) libraries
|
Chris@42
|
9802 lt_prog_compiler_pic='-DDLL_EXPORT'
|
Chris@42
|
9803 ;;
|
Chris@42
|
9804
|
Chris@42
|
9805 darwin* | rhapsody*)
|
Chris@42
|
9806 # PIC is the default on this platform
|
Chris@42
|
9807 # Common symbols not allowed in MH_DYLIB files
|
Chris@42
|
9808 lt_prog_compiler_pic='-fno-common'
|
Chris@42
|
9809 ;;
|
Chris@42
|
9810
|
Chris@42
|
9811 haiku*)
|
Chris@42
|
9812 # PIC is the default for Haiku.
|
Chris@42
|
9813 # The "-static" flag exists, but is broken.
|
Chris@42
|
9814 lt_prog_compiler_static=
|
Chris@42
|
9815 ;;
|
Chris@42
|
9816
|
Chris@42
|
9817 hpux*)
|
Chris@42
|
9818 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
Chris@42
|
9819 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
Chris@42
|
9820 # sets the default TLS model and affects inlining.
|
Chris@42
|
9821 case $host_cpu in
|
Chris@42
|
9822 hppa*64*)
|
Chris@42
|
9823 # +Z the default
|
Chris@42
|
9824 ;;
|
Chris@42
|
9825 *)
|
Chris@42
|
9826 lt_prog_compiler_pic='-fPIC'
|
Chris@42
|
9827 ;;
|
Chris@42
|
9828 esac
|
Chris@42
|
9829 ;;
|
Chris@42
|
9830
|
Chris@42
|
9831 interix[3-9]*)
|
Chris@42
|
9832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
Chris@42
|
9833 # Instead, we relocate shared libraries at runtime.
|
Chris@42
|
9834 ;;
|
Chris@42
|
9835
|
Chris@42
|
9836 msdosdjgpp*)
|
Chris@42
|
9837 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
Chris@42
|
9838 # on systems that don't support them.
|
Chris@42
|
9839 lt_prog_compiler_can_build_shared=no
|
Chris@42
|
9840 enable_shared=no
|
Chris@42
|
9841 ;;
|
Chris@42
|
9842
|
Chris@42
|
9843 *nto* | *qnx*)
|
Chris@42
|
9844 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
Chris@42
|
9845 # it will coredump.
|
Chris@42
|
9846 lt_prog_compiler_pic='-fPIC -shared'
|
Chris@42
|
9847 ;;
|
Chris@42
|
9848
|
Chris@42
|
9849 sysv4*MP*)
|
Chris@42
|
9850 if test -d /usr/nec; then
|
Chris@42
|
9851 lt_prog_compiler_pic=-Kconform_pic
|
Chris@42
|
9852 fi
|
Chris@42
|
9853 ;;
|
Chris@42
|
9854
|
Chris@42
|
9855 *)
|
Chris@42
|
9856 lt_prog_compiler_pic='-fPIC'
|
Chris@42
|
9857 ;;
|
Chris@42
|
9858 esac
|
Chris@42
|
9859
|
Chris@42
|
9860 case $cc_basename in
|
Chris@42
|
9861 nvcc*) # Cuda Compiler Driver 2.2
|
Chris@42
|
9862 lt_prog_compiler_wl='-Xlinker '
|
Chris@42
|
9863 if test -n "$lt_prog_compiler_pic"; then
|
Chris@42
|
9864 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
|
Chris@42
|
9865 fi
|
Chris@42
|
9866 ;;
|
Chris@42
|
9867 esac
|
Chris@42
|
9868 else
|
Chris@42
|
9869 # PORTME Check for flag to pass linker flags through the system compiler.
|
Chris@42
|
9870 case $host_os in
|
Chris@42
|
9871 aix*)
|
Chris@42
|
9872 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9873 if test "$host_cpu" = ia64; then
|
Chris@42
|
9874 # AIX 5 now supports IA64 processor
|
Chris@42
|
9875 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
9876 else
|
Chris@42
|
9877 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
Chris@42
|
9878 fi
|
Chris@42
|
9879 ;;
|
Chris@42
|
9880
|
Chris@42
|
9881 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
Chris@42
|
9882 # This hack is so that the source file can tell whether it is being
|
Chris@42
|
9883 # built for inclusion in a dll (and should export symbols for example).
|
Chris@42
|
9884 lt_prog_compiler_pic='-DDLL_EXPORT'
|
Chris@42
|
9885 ;;
|
Chris@42
|
9886
|
Chris@42
|
9887 hpux9* | hpux10* | hpux11*)
|
Chris@42
|
9888 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
Chris@42
|
9890 # not for PA HP-UX.
|
Chris@42
|
9891 case $host_cpu in
|
Chris@42
|
9892 hppa*64*|ia64*)
|
Chris@42
|
9893 # +Z the default
|
Chris@42
|
9894 ;;
|
Chris@42
|
9895 *)
|
Chris@42
|
9896 lt_prog_compiler_pic='+Z'
|
Chris@42
|
9897 ;;
|
Chris@42
|
9898 esac
|
Chris@42
|
9899 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
Chris@42
|
9900 lt_prog_compiler_static='${wl}-a ${wl}archive'
|
Chris@42
|
9901 ;;
|
Chris@42
|
9902
|
Chris@42
|
9903 irix5* | irix6* | nonstopux*)
|
Chris@42
|
9904 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9905 # PIC (with -KPIC) is the default.
|
Chris@42
|
9906 lt_prog_compiler_static='-non_shared'
|
Chris@42
|
9907 ;;
|
Chris@42
|
9908
|
Chris@42
|
9909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
Chris@42
|
9910 case $cc_basename in
|
Chris@42
|
9911 # old Intel for x86_64 which still supported -KPIC.
|
Chris@42
|
9912 ecc*)
|
Chris@42
|
9913 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9914 lt_prog_compiler_pic='-KPIC'
|
Chris@42
|
9915 lt_prog_compiler_static='-static'
|
Chris@42
|
9916 ;;
|
Chris@42
|
9917 # icc used to be incompatible with GCC.
|
Chris@42
|
9918 # ICC 10 doesn't accept -KPIC any more.
|
Chris@42
|
9919 icc* | ifort*)
|
Chris@42
|
9920 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9921 lt_prog_compiler_pic='-fPIC'
|
Chris@42
|
9922 lt_prog_compiler_static='-static'
|
Chris@42
|
9923 ;;
|
Chris@42
|
9924 # Lahey Fortran 8.1.
|
Chris@42
|
9925 lf95*)
|
Chris@42
|
9926 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9927 lt_prog_compiler_pic='--shared'
|
Chris@42
|
9928 lt_prog_compiler_static='--static'
|
Chris@42
|
9929 ;;
|
Chris@42
|
9930 nagfor*)
|
Chris@42
|
9931 # NAG Fortran compiler
|
Chris@42
|
9932 lt_prog_compiler_wl='-Wl,-Wl,,'
|
Chris@42
|
9933 lt_prog_compiler_pic='-PIC'
|
Chris@42
|
9934 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
9935 ;;
|
Chris@42
|
9936 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
Chris@42
|
9937 # Portland Group compilers (*not* the Pentium gcc compiler,
|
Chris@42
|
9938 # which looks to be a dead project)
|
Chris@42
|
9939 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9940 lt_prog_compiler_pic='-fpic'
|
Chris@42
|
9941 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
9942 ;;
|
Chris@42
|
9943 ccc*)
|
Chris@42
|
9944 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9945 # All Alpha code is PIC.
|
Chris@42
|
9946 lt_prog_compiler_static='-non_shared'
|
Chris@42
|
9947 ;;
|
Chris@42
|
9948 xl* | bgxl* | bgf* | mpixl*)
|
Chris@42
|
9949 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
Chris@42
|
9950 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9951 lt_prog_compiler_pic='-qpic'
|
Chris@42
|
9952 lt_prog_compiler_static='-qstaticlink'
|
Chris@42
|
9953 ;;
|
Chris@42
|
9954 *)
|
Chris@42
|
9955 case `$CC -V 2>&1 | sed 5q` in
|
Chris@42
|
9956 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
Chris@42
|
9957 # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
Chris@42
|
9958 lt_prog_compiler_pic='-KPIC'
|
Chris@42
|
9959 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
9960 lt_prog_compiler_wl=''
|
Chris@42
|
9961 ;;
|
Chris@42
|
9962 *Sun\ F* | *Sun*Fortran*)
|
Chris@42
|
9963 lt_prog_compiler_pic='-KPIC'
|
Chris@42
|
9964 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
9965 lt_prog_compiler_wl='-Qoption ld '
|
Chris@42
|
9966 ;;
|
Chris@42
|
9967 *Sun\ C*)
|
Chris@42
|
9968 # Sun C 5.9
|
Chris@42
|
9969 lt_prog_compiler_pic='-KPIC'
|
Chris@42
|
9970 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
9971 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9972 ;;
|
Chris@42
|
9973 *Intel*\ [CF]*Compiler*)
|
Chris@42
|
9974 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9975 lt_prog_compiler_pic='-fPIC'
|
Chris@42
|
9976 lt_prog_compiler_static='-static'
|
Chris@42
|
9977 ;;
|
Chris@42
|
9978 *Portland\ Group*)
|
Chris@42
|
9979 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
9980 lt_prog_compiler_pic='-fpic'
|
Chris@42
|
9981 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
9982 ;;
|
Chris@42
|
9983 esac
|
Chris@42
|
9984 ;;
|
Chris@42
|
9985 esac
|
Chris@42
|
9986 ;;
|
Chris@42
|
9987
|
Chris@42
|
9988 newsos6)
|
Chris@42
|
9989 lt_prog_compiler_pic='-KPIC'
|
Chris@42
|
9990 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
9991 ;;
|
Chris@42
|
9992
|
Chris@42
|
9993 *nto* | *qnx*)
|
Chris@42
|
9994 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
Chris@42
|
9995 # it will coredump.
|
Chris@42
|
9996 lt_prog_compiler_pic='-fPIC -shared'
|
Chris@42
|
9997 ;;
|
Chris@42
|
9998
|
Chris@42
|
9999 osf3* | osf4* | osf5*)
|
Chris@42
|
10000 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
10001 # All OSF/1 code is PIC.
|
Chris@42
|
10002 lt_prog_compiler_static='-non_shared'
|
Chris@42
|
10003 ;;
|
Chris@42
|
10004
|
Chris@42
|
10005 rdos*)
|
Chris@42
|
10006 lt_prog_compiler_static='-non_shared'
|
Chris@42
|
10007 ;;
|
Chris@42
|
10008
|
Chris@42
|
10009 solaris*)
|
Chris@42
|
10010 lt_prog_compiler_pic='-KPIC'
|
Chris@42
|
10011 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
10012 case $cc_basename in
|
Chris@42
|
10013 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
Chris@42
|
10014 lt_prog_compiler_wl='-Qoption ld ';;
|
Chris@42
|
10015 *)
|
Chris@42
|
10016 lt_prog_compiler_wl='-Wl,';;
|
Chris@42
|
10017 esac
|
Chris@42
|
10018 ;;
|
Chris@42
|
10019
|
Chris@42
|
10020 sunos4*)
|
Chris@42
|
10021 lt_prog_compiler_wl='-Qoption ld '
|
Chris@42
|
10022 lt_prog_compiler_pic='-PIC'
|
Chris@42
|
10023 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
10024 ;;
|
Chris@42
|
10025
|
Chris@42
|
10026 sysv4 | sysv4.2uw2* | sysv4.3*)
|
Chris@42
|
10027 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
10028 lt_prog_compiler_pic='-KPIC'
|
Chris@42
|
10029 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
10030 ;;
|
Chris@42
|
10031
|
Chris@42
|
10032 sysv4*MP*)
|
Chris@42
|
10033 if test -d /usr/nec ;then
|
Chris@42
|
10034 lt_prog_compiler_pic='-Kconform_pic'
|
Chris@42
|
10035 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
10036 fi
|
Chris@42
|
10037 ;;
|
Chris@42
|
10038
|
Chris@42
|
10039 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
Chris@42
|
10040 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
10041 lt_prog_compiler_pic='-KPIC'
|
Chris@42
|
10042 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
10043 ;;
|
Chris@42
|
10044
|
Chris@42
|
10045 unicos*)
|
Chris@42
|
10046 lt_prog_compiler_wl='-Wl,'
|
Chris@42
|
10047 lt_prog_compiler_can_build_shared=no
|
Chris@42
|
10048 ;;
|
Chris@42
|
10049
|
Chris@42
|
10050 uts4*)
|
Chris@42
|
10051 lt_prog_compiler_pic='-pic'
|
Chris@42
|
10052 lt_prog_compiler_static='-Bstatic'
|
Chris@42
|
10053 ;;
|
Chris@42
|
10054
|
Chris@42
|
10055 *)
|
Chris@42
|
10056 lt_prog_compiler_can_build_shared=no
|
Chris@42
|
10057 ;;
|
Chris@42
|
10058 esac
|
Chris@42
|
10059 fi
|
Chris@42
|
10060
|
Chris@42
|
10061 case $host_os in
|
Chris@42
|
10062 # For platforms which do not support PIC, -DPIC is meaningless:
|
Chris@42
|
10063 *djgpp*)
|
Chris@42
|
10064 lt_prog_compiler_pic=
|
Chris@42
|
10065 ;;
|
Chris@42
|
10066 *)
|
Chris@42
|
10067 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
Chris@42
|
10068 ;;
|
Chris@42
|
10069 esac
|
Chris@42
|
10070
|
Chris@42
|
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
Chris@42
|
10072 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
Chris@42
|
10073 if ${lt_cv_prog_compiler_pic+:} false; then :
|
Chris@42
|
10074 $as_echo_n "(cached) " >&6
|
Chris@42
|
10075 else
|
Chris@42
|
10076 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
Chris@42
|
10077 fi
|
Chris@42
|
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
Chris@42
|
10079 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
Chris@42
|
10080 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
Chris@42
|
10081
|
Chris@42
|
10082 #
|
Chris@42
|
10083 # Check to make sure the PIC flag actually works.
|
Chris@42
|
10084 #
|
Chris@42
|
10085 if test -n "$lt_prog_compiler_pic"; then
|
Chris@42
|
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
Chris@42
|
10087 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
Chris@42
|
10088 if ${lt_cv_prog_compiler_pic_works+:} false; then :
|
Chris@42
|
10089 $as_echo_n "(cached) " >&6
|
Chris@42
|
10090 else
|
Chris@42
|
10091 lt_cv_prog_compiler_pic_works=no
|
Chris@42
|
10092 ac_outfile=conftest.$ac_objext
|
Chris@42
|
10093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
Chris@42
|
10094 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
Chris@42
|
10095 # Insert the option either (1) after the last *FLAGS variable, or
|
Chris@42
|
10096 # (2) before a word containing "conftest.", or (3) at the end.
|
Chris@42
|
10097 # Note that $ac_compile itself does not contain backslashes and begins
|
Chris@42
|
10098 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
Chris@42
|
10099 # The option is referenced via a variable to avoid confusing sed.
|
Chris@42
|
10100 lt_compile=`echo "$ac_compile" | $SED \
|
Chris@42
|
10101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
Chris@42
|
10102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
Chris@42
|
10103 -e 's:$: $lt_compiler_flag:'`
|
Chris@42
|
10104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
Chris@42
|
10105 (eval "$lt_compile" 2>conftest.err)
|
Chris@42
|
10106 ac_status=$?
|
Chris@42
|
10107 cat conftest.err >&5
|
Chris@42
|
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
Chris@42
|
10109 if (exit $ac_status) && test -s "$ac_outfile"; then
|
Chris@42
|
10110 # The compiler can only warn and ignore the option if not recognized
|
Chris@42
|
10111 # So say no if there are warnings other than the usual output.
|
Chris@42
|
10112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
Chris@42
|
10113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
Chris@42
|
10114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
Chris@42
|
10115 lt_cv_prog_compiler_pic_works=yes
|
Chris@42
|
10116 fi
|
Chris@42
|
10117 fi
|
Chris@42
|
10118 $RM conftest*
|
Chris@42
|
10119
|
Chris@42
|
10120 fi
|
Chris@42
|
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
Chris@42
|
10122 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
|
Chris@42
|
10123
|
Chris@42
|
10124 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
|
Chris@42
|
10125 case $lt_prog_compiler_pic in
|
Chris@42
|
10126 "" | " "*) ;;
|
Chris@42
|
10127 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
Chris@42
|
10128 esac
|
Chris@42
|
10129 else
|
Chris@42
|
10130 lt_prog_compiler_pic=
|
Chris@42
|
10131 lt_prog_compiler_can_build_shared=no
|
Chris@42
|
10132 fi
|
Chris@42
|
10133
|
Chris@42
|
10134 fi
|
Chris@42
|
10135
|
Chris@42
|
10136
|
Chris@42
|
10137
|
Chris@42
|
10138
|
Chris@42
|
10139
|
Chris@42
|
10140
|
Chris@42
|
10141
|
Chris@42
|
10142
|
Chris@42
|
10143
|
Chris@42
|
10144
|
Chris@42
|
10145
|
Chris@42
|
10146 #
|
Chris@42
|
10147 # Check to make sure the static flag actually works.
|
Chris@42
|
10148 #
|
Chris@42
|
10149 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
Chris@42
|
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
Chris@42
|
10151 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
Chris@42
|
10152 if ${lt_cv_prog_compiler_static_works+:} false; then :
|
Chris@42
|
10153 $as_echo_n "(cached) " >&6
|
Chris@42
|
10154 else
|
Chris@42
|
10155 lt_cv_prog_compiler_static_works=no
|
Chris@42
|
10156 save_LDFLAGS="$LDFLAGS"
|
Chris@42
|
10157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
Chris@42
|
10158 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
Chris@42
|
10159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
Chris@42
|
10160 # The linker can only warn and ignore the option if not recognized
|
Chris@42
|
10161 # So say no if there are warnings
|
Chris@42
|
10162 if test -s conftest.err; then
|
Chris@42
|
10163 # Append any errors to the config.log.
|
Chris@42
|
10164 cat conftest.err 1>&5
|
Chris@42
|
10165 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
Chris@42
|
10166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
Chris@42
|
10167 if diff conftest.exp conftest.er2 >/dev/null; then
|
Chris@42
|
10168 lt_cv_prog_compiler_static_works=yes
|
Chris@42
|
10169 fi
|
Chris@42
|
10170 else
|
Chris@42
|
10171 lt_cv_prog_compiler_static_works=yes
|
Chris@42
|
10172 fi
|
Chris@42
|
10173 fi
|
Chris@42
|
10174 $RM -r conftest*
|
Chris@42
|
10175 LDFLAGS="$save_LDFLAGS"
|
Chris@42
|
10176
|
Chris@42
|
10177 fi
|
Chris@42
|
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
Chris@42
|
10179 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
|
Chris@42
|
10180
|
Chris@42
|
10181 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
|
Chris@42
|
10182 :
|
Chris@42
|
10183 else
|
Chris@42
|
10184 lt_prog_compiler_static=
|
Chris@42
|
10185 fi
|
Chris@42
|
10186
|
Chris@42
|
10187
|
Chris@42
|
10188
|
Chris@42
|
10189
|
Chris@42
|
10190
|
Chris@42
|
10191
|
Chris@42
|
10192
|
Chris@42
|
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
Chris@42
|
10194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
Chris@42
|
10195 if ${lt_cv_prog_compiler_c_o+:} false; then :
|
Chris@42
|
10196 $as_echo_n "(cached) " >&6
|
Chris@42
|
10197 else
|
Chris@42
|
10198 lt_cv_prog_compiler_c_o=no
|
Chris@42
|
10199 $RM -r conftest 2>/dev/null
|
Chris@42
|
10200 mkdir conftest
|
Chris@42
|
10201 cd conftest
|
Chris@42
|
10202 mkdir out
|
Chris@42
|
10203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
Chris@42
|
10204
|
Chris@42
|
10205 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
Chris@42
|
10206 # Insert the option either (1) after the last *FLAGS variable, or
|
Chris@42
|
10207 # (2) before a word containing "conftest.", or (3) at the end.
|
Chris@42
|
10208 # Note that $ac_compile itself does not contain backslashes and begins
|
Chris@42
|
10209 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
Chris@42
|
10210 lt_compile=`echo "$ac_compile" | $SED \
|
Chris@42
|
10211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
Chris@42
|
10212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
Chris@42
|
10213 -e 's:$: $lt_compiler_flag:'`
|
Chris@42
|
10214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
Chris@42
|
10215 (eval "$lt_compile" 2>out/conftest.err)
|
Chris@42
|
10216 ac_status=$?
|
Chris@42
|
10217 cat out/conftest.err >&5
|
Chris@42
|
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
Chris@42
|
10219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
Chris@42
|
10220 then
|
Chris@42
|
10221 # The compiler can only warn and ignore the option if not recognized
|
Chris@42
|
10222 # So say no if there are warnings
|
Chris@42
|
10223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
Chris@42
|
10224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
Chris@42
|
10225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
Chris@42
|
10226 lt_cv_prog_compiler_c_o=yes
|
Chris@42
|
10227 fi
|
Chris@42
|
10228 fi
|
Chris@42
|
10229 chmod u+w . 2>&5
|
Chris@42
|
10230 $RM conftest*
|
Chris@42
|
10231 # SGI C++ compiler will create directory out/ii_files/ for
|
Chris@42
|
10232 # template instantiation
|
Chris@42
|
10233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
Chris@42
|
10234 $RM out/* && rmdir out
|
Chris@42
|
10235 cd ..
|
Chris@42
|
10236 $RM -r conftest
|
Chris@42
|
10237 $RM conftest*
|
Chris@42
|
10238
|
Chris@42
|
10239 fi
|
Chris@42
|
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
Chris@42
|
10241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
Chris@42
|
10242
|
Chris@42
|
10243
|
Chris@42
|
10244
|
Chris@42
|
10245
|
Chris@42
|
10246
|
Chris@42
|
10247
|
Chris@42
|
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
Chris@42
|
10249 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
Chris@42
|
10250 if ${lt_cv_prog_compiler_c_o+:} false; then :
|
Chris@42
|
10251 $as_echo_n "(cached) " >&6
|
Chris@42
|
10252 else
|
Chris@42
|
10253 lt_cv_prog_compiler_c_o=no
|
Chris@42
|
10254 $RM -r conftest 2>/dev/null
|
Chris@42
|
10255 mkdir conftest
|
Chris@42
|
10256 cd conftest
|
Chris@42
|
10257 mkdir out
|
Chris@42
|
10258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
Chris@42
|
10259
|
Chris@42
|
10260 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
Chris@42
|
10261 # Insert the option either (1) after the last *FLAGS variable, or
|
Chris@42
|
10262 # (2) before a word containing "conftest.", or (3) at the end.
|
Chris@42
|
10263 # Note that $ac_compile itself does not contain backslashes and begins
|
Chris@42
|
10264 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
Chris@42
|
10265 lt_compile=`echo "$ac_compile" | $SED \
|
Chris@42
|
10266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
Chris@42
|
10267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
Chris@42
|
10268 -e 's:$: $lt_compiler_flag:'`
|
Chris@42
|
10269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
Chris@42
|
10270 (eval "$lt_compile" 2>out/conftest.err)
|
Chris@42
|
10271 ac_status=$?
|
Chris@42
|
10272 cat out/conftest.err >&5
|
Chris@42
|
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
Chris@42
|
10274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
Chris@42
|
10275 then
|
Chris@42
|
10276 # The compiler can only warn and ignore the option if not recognized
|
Chris@42
|
10277 # So say no if there are warnings
|
Chris@42
|
10278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
Chris@42
|
10279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
Chris@42
|
10280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
Chris@42
|
10281 lt_cv_prog_compiler_c_o=yes
|
Chris@42
|
10282 fi
|
Chris@42
|
10283 fi
|
Chris@42
|
10284 chmod u+w . 2>&5
|
Chris@42
|
10285 $RM conftest*
|
Chris@42
|
10286 # SGI C++ compiler will create directory out/ii_files/ for
|
Chris@42
|
10287 # template instantiation
|
Chris@42
|
10288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
Chris@42
|
10289 $RM out/* && rmdir out
|
Chris@42
|
10290 cd ..
|
Chris@42
|
10291 $RM -r conftest
|
Chris@42
|
10292 $RM conftest*
|
Chris@42
|
10293
|
Chris@42
|
10294 fi
|
Chris@42
|
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
Chris@42
|
10296 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
Chris@42
|
10297
|
Chris@42
|
10298
|
Chris@42
|
10299
|
Chris@42
|
10300
|
Chris@42
|
10301 hard_links="nottested"
|
Chris@42
|
10302 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
|
Chris@42
|
10303 # do not overwrite the value of need_locks provided by the user
|
Chris@42
|
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
Chris@42
|
10305 $as_echo_n "checking if we can lock with hard links... " >&6; }
|
Chris@42
|
10306 hard_links=yes
|
Chris@42
|
10307 $RM conftest*
|
Chris@42
|
10308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
Chris@42
|
10309 touch conftest.a
|
Chris@42
|
10310 ln conftest.a conftest.b 2>&5 || hard_links=no
|
Chris@42
|
10311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
Chris@42
|
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
Chris@42
|
10313 $as_echo "$hard_links" >&6; }
|
Chris@42
|
10314 if test "$hard_links" = no; then
|
Chris@42
|
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
Chris@42
|
10316 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
Chris@42
|
10317 need_locks=warn
|
Chris@42
|
10318 fi
|
Chris@42
|
10319 else
|
Chris@42
|
10320 need_locks=no
|
Chris@42
|
10321 fi
|
Chris@42
|
10322
|
Chris@42
|
10323
|
Chris@42
|
10324
|
Chris@42
|
10325
|
Chris@42
|
10326
|
Chris@42
|
10327
|
Chris@42
|
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
Chris@42
|
10329 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
Chris@42
|
10330
|
Chris@42
|
10331 runpath_var=
|
Chris@42
|
10332 allow_undefined_flag=
|
Chris@42
|
10333 always_export_symbols=no
|
Chris@42
|
10334 archive_cmds=
|
Chris@42
|
10335 archive_expsym_cmds=
|
Chris@42
|
10336 compiler_needs_object=no
|
Chris@42
|
10337 enable_shared_with_static_runtimes=no
|
Chris@42
|
10338 export_dynamic_flag_spec=
|
Chris@42
|
10339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
Chris@42
|
10340 hardcode_automatic=no
|
Chris@42
|
10341 hardcode_direct=no
|
Chris@42
|
10342 hardcode_direct_absolute=no
|
Chris@42
|
10343 hardcode_libdir_flag_spec=
|
Chris@42
|
10344 hardcode_libdir_separator=
|
Chris@42
|
10345 hardcode_minus_L=no
|
Chris@42
|
10346 hardcode_shlibpath_var=unsupported
|
Chris@42
|
10347 inherit_rpath=no
|
Chris@42
|
10348 link_all_deplibs=unknown
|
Chris@42
|
10349 module_cmds=
|
Chris@42
|
10350 module_expsym_cmds=
|
Chris@42
|
10351 old_archive_from_new_cmds=
|
Chris@42
|
10352 old_archive_from_expsyms_cmds=
|
Chris@42
|
10353 thread_safe_flag_spec=
|
Chris@42
|
10354 whole_archive_flag_spec=
|
Chris@42
|
10355 # include_expsyms should be a list of space-separated symbols to be *always*
|
Chris@42
|
10356 # included in the symbol list
|
Chris@42
|
10357 include_expsyms=
|
Chris@42
|
10358 # exclude_expsyms can be an extended regexp of symbols to exclude
|
Chris@42
|
10359 # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
Chris@42
|
10360 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
Chris@42
|
10361 # as well as any symbol that contains `d'.
|
Chris@42
|
10362 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
Chris@42
|
10363 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
Chris@42
|
10364 # platforms (ab)use it in PIC code, but their linkers get confused if
|
Chris@42
|
10365 # the symbol is explicitly referenced. Since portable code cannot
|
Chris@42
|
10366 # rely on this symbol name, it's probably fine to never include it in
|
Chris@42
|
10367 # preloaded symbol tables.
|
Chris@42
|
10368 # Exclude shared library initialization/finalization symbols.
|
Chris@42
|
10369 extract_expsyms_cmds=
|
Chris@42
|
10370
|
Chris@42
|
10371 case $host_os in
|
Chris@42
|
10372 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
10373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
Chris@42
|
10374 # When not using gcc, we currently assume that we are using
|
Chris@42
|
10375 # Microsoft Visual C++.
|
Chris@42
|
10376 if test "$GCC" != yes; then
|
Chris@42
|
10377 with_gnu_ld=no
|
Chris@42
|
10378 fi
|
Chris@42
|
10379 ;;
|
Chris@42
|
10380 interix*)
|
Chris@42
|
10381 # we just hope/assume this is gcc and not c89 (= MSVC++)
|
Chris@42
|
10382 with_gnu_ld=yes
|
Chris@42
|
10383 ;;
|
Chris@42
|
10384 openbsd*)
|
Chris@42
|
10385 with_gnu_ld=no
|
Chris@42
|
10386 ;;
|
Chris@42
|
10387 linux* | k*bsd*-gnu | gnu*)
|
Chris@42
|
10388 link_all_deplibs=no
|
Chris@42
|
10389 ;;
|
Chris@42
|
10390 esac
|
Chris@42
|
10391
|
Chris@42
|
10392 ld_shlibs=yes
|
Chris@42
|
10393
|
Chris@42
|
10394 # On some targets, GNU ld is compatible enough with the native linker
|
Chris@42
|
10395 # that we're better off using the native interface for both.
|
Chris@42
|
10396 lt_use_gnu_ld_interface=no
|
Chris@42
|
10397 if test "$with_gnu_ld" = yes; then
|
Chris@42
|
10398 case $host_os in
|
Chris@42
|
10399 aix*)
|
Chris@42
|
10400 # The AIX port of GNU ld has always aspired to compatibility
|
Chris@42
|
10401 # with the native linker. However, as the warning in the GNU ld
|
Chris@42
|
10402 # block says, versions before 2.19.5* couldn't really create working
|
Chris@42
|
10403 # shared libraries, regardless of the interface used.
|
Chris@42
|
10404 case `$LD -v 2>&1` in
|
Chris@42
|
10405 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
Chris@42
|
10406 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
Chris@42
|
10407 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
Chris@42
|
10408 *)
|
Chris@42
|
10409 lt_use_gnu_ld_interface=yes
|
Chris@42
|
10410 ;;
|
Chris@42
|
10411 esac
|
Chris@42
|
10412 ;;
|
Chris@42
|
10413 *)
|
Chris@42
|
10414 lt_use_gnu_ld_interface=yes
|
Chris@42
|
10415 ;;
|
Chris@42
|
10416 esac
|
Chris@42
|
10417 fi
|
Chris@42
|
10418
|
Chris@42
|
10419 if test "$lt_use_gnu_ld_interface" = yes; then
|
Chris@42
|
10420 # If archive_cmds runs LD, not CC, wlarc should be empty
|
Chris@42
|
10421 wlarc='${wl}'
|
Chris@42
|
10422
|
Chris@42
|
10423 # Set some defaults for GNU ld with shared library support. These
|
Chris@42
|
10424 # are reset later if shared libraries are not supported. Putting them
|
Chris@42
|
10425 # here allows them to be overridden if necessary.
|
Chris@42
|
10426 runpath_var=LD_RUN_PATH
|
Chris@42
|
10427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
10428 export_dynamic_flag_spec='${wl}--export-dynamic'
|
Chris@42
|
10429 # ancient GNU ld didn't support --whole-archive et. al.
|
Chris@42
|
10430 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
Chris@42
|
10431 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
Chris@42
|
10432 else
|
Chris@42
|
10433 whole_archive_flag_spec=
|
Chris@42
|
10434 fi
|
Chris@42
|
10435 supports_anon_versioning=no
|
Chris@42
|
10436 case `$LD -v 2>&1` in
|
Chris@42
|
10437 *GNU\ gold*) supports_anon_versioning=yes ;;
|
Chris@42
|
10438 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
Chris@42
|
10439 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
Chris@42
|
10440 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
Chris@42
|
10441 *\ 2.11.*) ;; # other 2.11 versions
|
Chris@42
|
10442 *) supports_anon_versioning=yes ;;
|
Chris@42
|
10443 esac
|
Chris@42
|
10444
|
Chris@42
|
10445 # See if GNU ld supports shared libraries.
|
Chris@42
|
10446 case $host_os in
|
Chris@42
|
10447 aix[3-9]*)
|
Chris@42
|
10448 # On AIX/PPC, the GNU linker is very broken
|
Chris@42
|
10449 if test "$host_cpu" != ia64; then
|
Chris@42
|
10450 ld_shlibs=no
|
Chris@42
|
10451 cat <<_LT_EOF 1>&2
|
Chris@42
|
10452
|
Chris@42
|
10453 *** Warning: the GNU linker, at least up to release 2.19, is reported
|
Chris@42
|
10454 *** to be unable to reliably create shared libraries on AIX.
|
Chris@42
|
10455 *** Therefore, libtool is disabling shared libraries support. If you
|
Chris@42
|
10456 *** really care for shared libraries, you may want to install binutils
|
Chris@42
|
10457 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
Chris@42
|
10458 *** You will then need to restart the configuration process.
|
Chris@42
|
10459
|
Chris@42
|
10460 _LT_EOF
|
Chris@42
|
10461 fi
|
Chris@42
|
10462 ;;
|
Chris@42
|
10463
|
Chris@42
|
10464 amigaos*)
|
Chris@42
|
10465 case $host_cpu in
|
Chris@42
|
10466 powerpc)
|
Chris@42
|
10467 # see comment about AmigaOS4 .so support
|
Chris@42
|
10468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
10469 archive_expsym_cmds=''
|
Chris@42
|
10470 ;;
|
Chris@42
|
10471 m68k)
|
Chris@42
|
10472 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)'
|
Chris@42
|
10473 hardcode_libdir_flag_spec='-L$libdir'
|
Chris@42
|
10474 hardcode_minus_L=yes
|
Chris@42
|
10475 ;;
|
Chris@42
|
10476 esac
|
Chris@42
|
10477 ;;
|
Chris@42
|
10478
|
Chris@42
|
10479 beos*)
|
Chris@42
|
10480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
Chris@42
|
10481 allow_undefined_flag=unsupported
|
Chris@42
|
10482 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
Chris@42
|
10483 # support --undefined. This deserves some investigation. FIXME
|
Chris@42
|
10484 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
10485 else
|
Chris@42
|
10486 ld_shlibs=no
|
Chris@42
|
10487 fi
|
Chris@42
|
10488 ;;
|
Chris@42
|
10489
|
Chris@42
|
10490 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
10491 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
Chris@42
|
10492 # as there is no search path for DLLs.
|
Chris@42
|
10493 hardcode_libdir_flag_spec='-L$libdir'
|
Chris@42
|
10494 export_dynamic_flag_spec='${wl}--export-all-symbols'
|
Chris@42
|
10495 allow_undefined_flag=unsupported
|
Chris@42
|
10496 always_export_symbols=no
|
Chris@42
|
10497 enable_shared_with_static_runtimes=yes
|
Chris@42
|
10498 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'
|
Chris@42
|
10499 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
Chris@42
|
10500
|
Chris@42
|
10501 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
Chris@42
|
10502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
Chris@42
|
10503 # If the export-symbols file already is a .def file (1st line
|
Chris@42
|
10504 # is EXPORTS), use it as is; otherwise, prepend...
|
Chris@42
|
10505 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
Chris@42
|
10506 cp $export_symbols $output_objdir/$soname.def;
|
Chris@42
|
10507 else
|
Chris@42
|
10508 echo EXPORTS > $output_objdir/$soname.def;
|
Chris@42
|
10509 cat $export_symbols >> $output_objdir/$soname.def;
|
Chris@42
|
10510 fi~
|
Chris@42
|
10511 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
Chris@42
|
10512 else
|
Chris@42
|
10513 ld_shlibs=no
|
Chris@42
|
10514 fi
|
Chris@42
|
10515 ;;
|
Chris@42
|
10516
|
Chris@42
|
10517 haiku*)
|
Chris@42
|
10518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
10519 link_all_deplibs=yes
|
Chris@42
|
10520 ;;
|
Chris@42
|
10521
|
Chris@42
|
10522 interix[3-9]*)
|
Chris@42
|
10523 hardcode_direct=no
|
Chris@42
|
10524 hardcode_shlibpath_var=no
|
Chris@42
|
10525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
Chris@42
|
10526 export_dynamic_flag_spec='${wl}-E'
|
Chris@42
|
10527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
Chris@42
|
10528 # Instead, shared libraries are loaded at an image base (0x10000000 by
|
Chris@42
|
10529 # default) and relocated if they conflict, which is a slow very memory
|
Chris@42
|
10530 # consuming and fragmenting process. To avoid this, we pick a random,
|
Chris@42
|
10531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
Chris@42
|
10532 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
Chris@42
|
10533 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
Chris@42
|
10534 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'
|
Chris@42
|
10535 ;;
|
Chris@42
|
10536
|
Chris@42
|
10537 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
Chris@42
|
10538 tmp_diet=no
|
Chris@42
|
10539 if test "$host_os" = linux-dietlibc; then
|
Chris@42
|
10540 case $cc_basename in
|
Chris@42
|
10541 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
Chris@42
|
10542 esac
|
Chris@42
|
10543 fi
|
Chris@42
|
10544 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
Chris@42
|
10545 && test "$tmp_diet" = no
|
Chris@42
|
10546 then
|
Chris@42
|
10547 tmp_addflag=' $pic_flag'
|
Chris@42
|
10548 tmp_sharedflag='-shared'
|
Chris@42
|
10549 case $cc_basename,$host_cpu in
|
Chris@42
|
10550 pgcc*) # Portland Group C compiler
|
Chris@42
|
10551 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'
|
Chris@42
|
10552 tmp_addflag=' $pic_flag'
|
Chris@42
|
10553 ;;
|
Chris@42
|
10554 pgf77* | pgf90* | pgf95* | pgfortran*)
|
Chris@42
|
10555 # Portland Group f77 and f90 compilers
|
Chris@42
|
10556 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'
|
Chris@42
|
10557 tmp_addflag=' $pic_flag -Mnomain' ;;
|
Chris@42
|
10558 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
Chris@42
|
10559 tmp_addflag=' -i_dynamic' ;;
|
Chris@42
|
10560 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
Chris@42
|
10561 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
Chris@42
|
10562 ifc* | ifort*) # Intel Fortran compiler
|
Chris@42
|
10563 tmp_addflag=' -nofor_main' ;;
|
Chris@42
|
10564 lf95*) # Lahey Fortran 8.1
|
Chris@42
|
10565 whole_archive_flag_spec=
|
Chris@42
|
10566 tmp_sharedflag='--shared' ;;
|
Chris@42
|
10567 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
Chris@42
|
10568 tmp_sharedflag='-qmkshrobj'
|
Chris@42
|
10569 tmp_addflag= ;;
|
Chris@42
|
10570 nvcc*) # Cuda Compiler Driver 2.2
|
Chris@42
|
10571 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'
|
Chris@42
|
10572 compiler_needs_object=yes
|
Chris@42
|
10573 ;;
|
Chris@42
|
10574 esac
|
Chris@42
|
10575 case `$CC -V 2>&1 | sed 5q` in
|
Chris@42
|
10576 *Sun\ C*) # Sun C 5.9
|
Chris@42
|
10577 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'
|
Chris@42
|
10578 compiler_needs_object=yes
|
Chris@42
|
10579 tmp_sharedflag='-G' ;;
|
Chris@42
|
10580 *Sun\ F*) # Sun Fortran 8.3
|
Chris@42
|
10581 tmp_sharedflag='-G' ;;
|
Chris@42
|
10582 esac
|
Chris@42
|
10583 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
10584
|
Chris@42
|
10585 if test "x$supports_anon_versioning" = xyes; then
|
Chris@42
|
10586 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
Chris@42
|
10587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
Chris@42
|
10588 echo "local: *; };" >> $output_objdir/$libname.ver~
|
Chris@42
|
10589 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
Chris@42
|
10590 fi
|
Chris@42
|
10591
|
Chris@42
|
10592 case $cc_basename in
|
Chris@42
|
10593 xlf* | bgf* | bgxlf* | mpixlf*)
|
Chris@42
|
10594 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
Chris@42
|
10595 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
Chris@42
|
10596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
10597 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
Chris@42
|
10598 if test "x$supports_anon_versioning" = xyes; then
|
Chris@42
|
10599 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
Chris@42
|
10600 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
Chris@42
|
10601 echo "local: *; };" >> $output_objdir/$libname.ver~
|
Chris@42
|
10602 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
Chris@42
|
10603 fi
|
Chris@42
|
10604 ;;
|
Chris@42
|
10605 esac
|
Chris@42
|
10606 else
|
Chris@42
|
10607 ld_shlibs=no
|
Chris@42
|
10608 fi
|
Chris@42
|
10609 ;;
|
Chris@42
|
10610
|
Chris@42
|
10611 netbsd* | netbsdelf*-gnu)
|
Chris@42
|
10612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
Chris@42
|
10613 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
Chris@42
|
10614 wlarc=
|
Chris@42
|
10615 else
|
Chris@42
|
10616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
10617 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
Chris@42
|
10618 fi
|
Chris@42
|
10619 ;;
|
Chris@42
|
10620
|
Chris@42
|
10621 solaris*)
|
Chris@42
|
10622 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
Chris@42
|
10623 ld_shlibs=no
|
Chris@42
|
10624 cat <<_LT_EOF 1>&2
|
Chris@42
|
10625
|
Chris@42
|
10626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
Chris@42
|
10627 *** create shared libraries on Solaris systems. Therefore, libtool
|
Chris@42
|
10628 *** is disabling shared libraries support. We urge you to upgrade GNU
|
Chris@42
|
10629 *** binutils to release 2.9.1 or newer. Another option is to modify
|
Chris@42
|
10630 *** your PATH or compiler configuration so that the native linker is
|
Chris@42
|
10631 *** used, and then restart.
|
Chris@42
|
10632
|
Chris@42
|
10633 _LT_EOF
|
Chris@42
|
10634 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
Chris@42
|
10635 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
10636 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
Chris@42
|
10637 else
|
Chris@42
|
10638 ld_shlibs=no
|
Chris@42
|
10639 fi
|
Chris@42
|
10640 ;;
|
Chris@42
|
10641
|
Chris@42
|
10642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
Chris@42
|
10643 case `$LD -v 2>&1` in
|
Chris@42
|
10644 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
Chris@42
|
10645 ld_shlibs=no
|
Chris@42
|
10646 cat <<_LT_EOF 1>&2
|
Chris@42
|
10647
|
Chris@42
|
10648 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
Chris@42
|
10649 *** reliably create shared libraries on SCO systems. Therefore, libtool
|
Chris@42
|
10650 *** is disabling shared libraries support. We urge you to upgrade GNU
|
Chris@42
|
10651 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
Chris@42
|
10652 *** your PATH or compiler configuration so that the native linker is
|
Chris@42
|
10653 *** used, and then restart.
|
Chris@42
|
10654
|
Chris@42
|
10655 _LT_EOF
|
Chris@42
|
10656 ;;
|
Chris@42
|
10657 *)
|
Chris@42
|
10658 # For security reasons, it is highly recommended that you always
|
Chris@42
|
10659 # use absolute paths for naming shared libraries, and exclude the
|
Chris@42
|
10660 # DT_RUNPATH tag from executables and libraries. But doing so
|
Chris@42
|
10661 # requires that you compile everything twice, which is a pain.
|
Chris@42
|
10662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
Chris@42
|
10663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
10664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
10665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
Chris@42
|
10666 else
|
Chris@42
|
10667 ld_shlibs=no
|
Chris@42
|
10668 fi
|
Chris@42
|
10669 ;;
|
Chris@42
|
10670 esac
|
Chris@42
|
10671 ;;
|
Chris@42
|
10672
|
Chris@42
|
10673 sunos4*)
|
Chris@42
|
10674 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
10675 wlarc=
|
Chris@42
|
10676 hardcode_direct=yes
|
Chris@42
|
10677 hardcode_shlibpath_var=no
|
Chris@42
|
10678 ;;
|
Chris@42
|
10679
|
Chris@42
|
10680 *)
|
Chris@42
|
10681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
Chris@42
|
10682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
10683 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
Chris@42
|
10684 else
|
Chris@42
|
10685 ld_shlibs=no
|
Chris@42
|
10686 fi
|
Chris@42
|
10687 ;;
|
Chris@42
|
10688 esac
|
Chris@42
|
10689
|
Chris@42
|
10690 if test "$ld_shlibs" = no; then
|
Chris@42
|
10691 runpath_var=
|
Chris@42
|
10692 hardcode_libdir_flag_spec=
|
Chris@42
|
10693 export_dynamic_flag_spec=
|
Chris@42
|
10694 whole_archive_flag_spec=
|
Chris@42
|
10695 fi
|
Chris@42
|
10696 else
|
Chris@42
|
10697 # PORTME fill in a description of your system's linker (not GNU ld)
|
Chris@42
|
10698 case $host_os in
|
Chris@42
|
10699 aix3*)
|
Chris@42
|
10700 allow_undefined_flag=unsupported
|
Chris@42
|
10701 always_export_symbols=yes
|
Chris@42
|
10702 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'
|
Chris@42
|
10703 # Note: this linker hardcodes the directories in LIBPATH if there
|
Chris@42
|
10704 # are no directories specified by -L.
|
Chris@42
|
10705 hardcode_minus_L=yes
|
Chris@42
|
10706 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
Chris@42
|
10707 # Neither direct hardcoding nor static linking is supported with a
|
Chris@42
|
10708 # broken collect2.
|
Chris@42
|
10709 hardcode_direct=unsupported
|
Chris@42
|
10710 fi
|
Chris@42
|
10711 ;;
|
Chris@42
|
10712
|
Chris@42
|
10713 aix[4-9]*)
|
Chris@42
|
10714 if test "$host_cpu" = ia64; then
|
Chris@42
|
10715 # On IA64, the linker does run time linking by default, so we don't
|
Chris@42
|
10716 # have to do anything special.
|
Chris@42
|
10717 aix_use_runtimelinking=no
|
Chris@42
|
10718 exp_sym_flag='-Bexport'
|
Chris@42
|
10719 no_entry_flag=""
|
Chris@42
|
10720 else
|
Chris@42
|
10721 # If we're using GNU nm, then we don't want the "-C" option.
|
Chris@42
|
10722 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
Chris@42
|
10723 # Also, AIX nm treats weak defined symbols like other global
|
Chris@42
|
10724 # defined symbols, whereas GNU nm marks them as "W".
|
Chris@42
|
10725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
Chris@42
|
10726 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
Chris@42
|
10727 else
|
Chris@42
|
10728 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
Chris@42
|
10729 fi
|
Chris@42
|
10730 aix_use_runtimelinking=no
|
Chris@42
|
10731
|
Chris@42
|
10732 # Test if we are trying to use run time linking or normal
|
Chris@42
|
10733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
Chris@42
|
10734 # need to do runtime linking.
|
Chris@42
|
10735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
Chris@42
|
10736 for ld_flag in $LDFLAGS; do
|
Chris@42
|
10737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
Chris@42
|
10738 aix_use_runtimelinking=yes
|
Chris@42
|
10739 break
|
Chris@42
|
10740 fi
|
Chris@42
|
10741 done
|
Chris@42
|
10742 ;;
|
Chris@42
|
10743 esac
|
Chris@42
|
10744
|
Chris@42
|
10745 exp_sym_flag='-bexport'
|
Chris@42
|
10746 no_entry_flag='-bnoentry'
|
Chris@42
|
10747 fi
|
Chris@42
|
10748
|
Chris@42
|
10749 # When large executables or shared objects are built, AIX ld can
|
Chris@42
|
10750 # have problems creating the table of contents. If linking a library
|
Chris@42
|
10751 # or program results in "error TOC overflow" add -mminimal-toc to
|
Chris@42
|
10752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
Chris@42
|
10753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
Chris@42
|
10754
|
Chris@42
|
10755 archive_cmds=''
|
Chris@42
|
10756 hardcode_direct=yes
|
Chris@42
|
10757 hardcode_direct_absolute=yes
|
Chris@42
|
10758 hardcode_libdir_separator=':'
|
Chris@42
|
10759 link_all_deplibs=yes
|
Chris@42
|
10760 file_list_spec='${wl}-f,'
|
Chris@42
|
10761
|
Chris@42
|
10762 if test "$GCC" = yes; then
|
Chris@42
|
10763 case $host_os in aix4.[012]|aix4.[012].*)
|
Chris@42
|
10764 # We only want to do this on AIX 4.2 and lower, the check
|
Chris@42
|
10765 # below for broken collect2 doesn't work under 4.3+
|
Chris@42
|
10766 collect2name=`${CC} -print-prog-name=collect2`
|
Chris@42
|
10767 if test -f "$collect2name" &&
|
Chris@42
|
10768 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
Chris@42
|
10769 then
|
Chris@42
|
10770 # We have reworked collect2
|
Chris@42
|
10771 :
|
Chris@42
|
10772 else
|
Chris@42
|
10773 # We have old collect2
|
Chris@42
|
10774 hardcode_direct=unsupported
|
Chris@42
|
10775 # It fails to find uninstalled libraries when the uninstalled
|
Chris@42
|
10776 # path is not listed in the libpath. Setting hardcode_minus_L
|
Chris@42
|
10777 # to unsupported forces relinking
|
Chris@42
|
10778 hardcode_minus_L=yes
|
Chris@42
|
10779 hardcode_libdir_flag_spec='-L$libdir'
|
Chris@42
|
10780 hardcode_libdir_separator=
|
Chris@42
|
10781 fi
|
Chris@42
|
10782 ;;
|
Chris@42
|
10783 esac
|
Chris@42
|
10784 shared_flag='-shared'
|
Chris@42
|
10785 if test "$aix_use_runtimelinking" = yes; then
|
Chris@42
|
10786 shared_flag="$shared_flag "'${wl}-G'
|
Chris@42
|
10787 fi
|
Chris@42
|
10788 link_all_deplibs=no
|
Chris@42
|
10789 else
|
Chris@42
|
10790 # not using gcc
|
Chris@42
|
10791 if test "$host_cpu" = ia64; then
|
Chris@42
|
10792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
Chris@42
|
10793 # chokes on -Wl,-G. The following line is correct:
|
Chris@42
|
10794 shared_flag='-G'
|
Chris@42
|
10795 else
|
Chris@42
|
10796 if test "$aix_use_runtimelinking" = yes; then
|
Chris@42
|
10797 shared_flag='${wl}-G'
|
Chris@42
|
10798 else
|
Chris@42
|
10799 shared_flag='${wl}-bM:SRE'
|
Chris@42
|
10800 fi
|
Chris@42
|
10801 fi
|
Chris@42
|
10802 fi
|
Chris@42
|
10803
|
Chris@42
|
10804 export_dynamic_flag_spec='${wl}-bexpall'
|
Chris@42
|
10805 # It seems that -bexpall does not export symbols beginning with
|
Chris@42
|
10806 # underscore (_), so it is better to generate a list of symbols to export.
|
Chris@42
|
10807 always_export_symbols=yes
|
Chris@42
|
10808 if test "$aix_use_runtimelinking" = yes; then
|
Chris@42
|
10809 # Warning - without using the other runtime loading flags (-brtl),
|
Chris@42
|
10810 # -berok will link without error, but may produce a broken library.
|
Chris@42
|
10811 allow_undefined_flag='-berok'
|
Chris@42
|
10812 # Determine the default libpath from the value encoded in an
|
Chris@42
|
10813 # empty executable.
|
Chris@42
|
10814 if test "${lt_cv_aix_libpath+set}" = set; then
|
Chris@42
|
10815 aix_libpath=$lt_cv_aix_libpath
|
Chris@42
|
10816 else
|
Chris@42
|
10817 if ${lt_cv_aix_libpath_+:} false; then :
|
Chris@42
|
10818 $as_echo_n "(cached) " >&6
|
Chris@42
|
10819 else
|
Chris@42
|
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
10821 /* end confdefs.h. */
|
Chris@42
|
10822
|
Chris@42
|
10823 int
|
Chris@42
|
10824 main ()
|
Chris@42
|
10825 {
|
Chris@42
|
10826
|
Chris@42
|
10827 ;
|
Chris@42
|
10828 return 0;
|
Chris@42
|
10829 }
|
Chris@42
|
10830 _ACEOF
|
Chris@42
|
10831 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
10832
|
Chris@42
|
10833 lt_aix_libpath_sed='
|
Chris@42
|
10834 /Import File Strings/,/^$/ {
|
Chris@42
|
10835 /^0/ {
|
Chris@42
|
10836 s/^0 *\([^ ]*\) *$/\1/
|
Chris@42
|
10837 p
|
Chris@42
|
10838 }
|
Chris@42
|
10839 }'
|
Chris@42
|
10840 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
Chris@42
|
10841 # Check for a 64-bit object if we didn't find anything.
|
Chris@42
|
10842 if test -z "$lt_cv_aix_libpath_"; then
|
Chris@42
|
10843 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
Chris@42
|
10844 fi
|
Chris@42
|
10845 fi
|
Chris@42
|
10846 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
10847 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
10848 if test -z "$lt_cv_aix_libpath_"; then
|
Chris@42
|
10849 lt_cv_aix_libpath_="/usr/lib:/lib"
|
Chris@42
|
10850 fi
|
Chris@42
|
10851
|
Chris@42
|
10852 fi
|
Chris@42
|
10853
|
Chris@42
|
10854 aix_libpath=$lt_cv_aix_libpath_
|
Chris@42
|
10855 fi
|
Chris@42
|
10856
|
Chris@42
|
10857 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
Chris@42
|
10858 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
Chris@42
|
10859 else
|
Chris@42
|
10860 if test "$host_cpu" = ia64; then
|
Chris@42
|
10861 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
Chris@42
|
10862 allow_undefined_flag="-z nodefs"
|
Chris@42
|
10863 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"
|
Chris@42
|
10864 else
|
Chris@42
|
10865 # Determine the default libpath from the value encoded in an
|
Chris@42
|
10866 # empty executable.
|
Chris@42
|
10867 if test "${lt_cv_aix_libpath+set}" = set; then
|
Chris@42
|
10868 aix_libpath=$lt_cv_aix_libpath
|
Chris@42
|
10869 else
|
Chris@42
|
10870 if ${lt_cv_aix_libpath_+:} false; then :
|
Chris@42
|
10871 $as_echo_n "(cached) " >&6
|
Chris@42
|
10872 else
|
Chris@42
|
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
10874 /* end confdefs.h. */
|
Chris@42
|
10875
|
Chris@42
|
10876 int
|
Chris@42
|
10877 main ()
|
Chris@42
|
10878 {
|
Chris@42
|
10879
|
Chris@42
|
10880 ;
|
Chris@42
|
10881 return 0;
|
Chris@42
|
10882 }
|
Chris@42
|
10883 _ACEOF
|
Chris@42
|
10884 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
10885
|
Chris@42
|
10886 lt_aix_libpath_sed='
|
Chris@42
|
10887 /Import File Strings/,/^$/ {
|
Chris@42
|
10888 /^0/ {
|
Chris@42
|
10889 s/^0 *\([^ ]*\) *$/\1/
|
Chris@42
|
10890 p
|
Chris@42
|
10891 }
|
Chris@42
|
10892 }'
|
Chris@42
|
10893 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
Chris@42
|
10894 # Check for a 64-bit object if we didn't find anything.
|
Chris@42
|
10895 if test -z "$lt_cv_aix_libpath_"; then
|
Chris@42
|
10896 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
Chris@42
|
10897 fi
|
Chris@42
|
10898 fi
|
Chris@42
|
10899 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
10900 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
10901 if test -z "$lt_cv_aix_libpath_"; then
|
Chris@42
|
10902 lt_cv_aix_libpath_="/usr/lib:/lib"
|
Chris@42
|
10903 fi
|
Chris@42
|
10904
|
Chris@42
|
10905 fi
|
Chris@42
|
10906
|
Chris@42
|
10907 aix_libpath=$lt_cv_aix_libpath_
|
Chris@42
|
10908 fi
|
Chris@42
|
10909
|
Chris@42
|
10910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
Chris@42
|
10911 # Warning - without using the other run time loading flags,
|
Chris@42
|
10912 # -berok will link without error, but may produce a broken library.
|
Chris@42
|
10913 no_undefined_flag=' ${wl}-bernotok'
|
Chris@42
|
10914 allow_undefined_flag=' ${wl}-berok'
|
Chris@42
|
10915 if test "$with_gnu_ld" = yes; then
|
Chris@42
|
10916 # We only use this code for GNU lds that support --whole-archive.
|
Chris@42
|
10917 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
Chris@42
|
10918 else
|
Chris@42
|
10919 # Exported symbols can be pulled into shared objects from archives
|
Chris@42
|
10920 whole_archive_flag_spec='$convenience'
|
Chris@42
|
10921 fi
|
Chris@42
|
10922 archive_cmds_need_lc=yes
|
Chris@42
|
10923 # This is similar to how AIX traditionally builds its shared libraries.
|
Chris@42
|
10924 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
Chris@42
|
10925 fi
|
Chris@42
|
10926 fi
|
Chris@42
|
10927 ;;
|
Chris@42
|
10928
|
Chris@42
|
10929 amigaos*)
|
Chris@42
|
10930 case $host_cpu in
|
Chris@42
|
10931 powerpc)
|
Chris@42
|
10932 # see comment about AmigaOS4 .so support
|
Chris@42
|
10933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
10934 archive_expsym_cmds=''
|
Chris@42
|
10935 ;;
|
Chris@42
|
10936 m68k)
|
Chris@42
|
10937 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)'
|
Chris@42
|
10938 hardcode_libdir_flag_spec='-L$libdir'
|
Chris@42
|
10939 hardcode_minus_L=yes
|
Chris@42
|
10940 ;;
|
Chris@42
|
10941 esac
|
Chris@42
|
10942 ;;
|
Chris@42
|
10943
|
Chris@42
|
10944 bsdi[45]*)
|
Chris@42
|
10945 export_dynamic_flag_spec=-rdynamic
|
Chris@42
|
10946 ;;
|
Chris@42
|
10947
|
Chris@42
|
10948 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
10949 # When not using gcc, we currently assume that we are using
|
Chris@42
|
10950 # Microsoft Visual C++.
|
Chris@42
|
10951 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
Chris@42
|
10952 # no search path for DLLs.
|
Chris@42
|
10953 case $cc_basename in
|
Chris@42
|
10954 cl*)
|
Chris@42
|
10955 # Native MSVC
|
Chris@42
|
10956 hardcode_libdir_flag_spec=' '
|
Chris@42
|
10957 allow_undefined_flag=unsupported
|
Chris@42
|
10958 always_export_symbols=yes
|
Chris@42
|
10959 file_list_spec='@'
|
Chris@42
|
10960 # Tell ltmain to make .lib files, not .a files.
|
Chris@42
|
10961 libext=lib
|
Chris@42
|
10962 # Tell ltmain to make .dll files, not .so files.
|
Chris@42
|
10963 shrext_cmds=".dll"
|
Chris@42
|
10964 # FIXME: Setting linknames here is a bad hack.
|
Chris@42
|
10965 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
Chris@42
|
10966 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
Chris@42
|
10967 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
Chris@42
|
10968 else
|
Chris@42
|
10969 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
Chris@42
|
10970 fi~
|
Chris@42
|
10971 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
Chris@42
|
10972 linknames='
|
Chris@42
|
10973 # The linker will not automatically build a static lib if we build a DLL.
|
Chris@42
|
10974 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
Chris@42
|
10975 enable_shared_with_static_runtimes=yes
|
Chris@42
|
10976 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
Chris@42
|
10977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
Chris@42
|
10978 # Don't use ranlib
|
Chris@42
|
10979 old_postinstall_cmds='chmod 644 $oldlib'
|
Chris@42
|
10980 postlink_cmds='lt_outputfile="@OUTPUT@"~
|
Chris@42
|
10981 lt_tool_outputfile="@TOOL_OUTPUT@"~
|
Chris@42
|
10982 case $lt_outputfile in
|
Chris@42
|
10983 *.exe|*.EXE) ;;
|
Chris@42
|
10984 *)
|
Chris@42
|
10985 lt_outputfile="$lt_outputfile.exe"
|
Chris@42
|
10986 lt_tool_outputfile="$lt_tool_outputfile.exe"
|
Chris@42
|
10987 ;;
|
Chris@42
|
10988 esac~
|
Chris@42
|
10989 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
Chris@42
|
10990 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
Chris@42
|
10991 $RM "$lt_outputfile.manifest";
|
Chris@42
|
10992 fi'
|
Chris@42
|
10993 ;;
|
Chris@42
|
10994 *)
|
Chris@42
|
10995 # Assume MSVC wrapper
|
Chris@42
|
10996 hardcode_libdir_flag_spec=' '
|
Chris@42
|
10997 allow_undefined_flag=unsupported
|
Chris@42
|
10998 # Tell ltmain to make .lib files, not .a files.
|
Chris@42
|
10999 libext=lib
|
Chris@42
|
11000 # Tell ltmain to make .dll files, not .so files.
|
Chris@42
|
11001 shrext_cmds=".dll"
|
Chris@42
|
11002 # FIXME: Setting linknames here is a bad hack.
|
Chris@42
|
11003 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
Chris@42
|
11004 # The linker will automatically build a .lib file if we build a DLL.
|
Chris@42
|
11005 old_archive_from_new_cmds='true'
|
Chris@42
|
11006 # FIXME: Should let the user specify the lib program.
|
Chris@42
|
11007 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
Chris@42
|
11008 enable_shared_with_static_runtimes=yes
|
Chris@42
|
11009 ;;
|
Chris@42
|
11010 esac
|
Chris@42
|
11011 ;;
|
Chris@42
|
11012
|
Chris@42
|
11013 darwin* | rhapsody*)
|
Chris@42
|
11014
|
Chris@42
|
11015
|
Chris@42
|
11016 archive_cmds_need_lc=no
|
Chris@42
|
11017 hardcode_direct=no
|
Chris@42
|
11018 hardcode_automatic=yes
|
Chris@42
|
11019 hardcode_shlibpath_var=unsupported
|
Chris@42
|
11020 if test "$lt_cv_ld_force_load" = "yes"; then
|
Chris@42
|
11021 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\"`'
|
Chris@42
|
11022
|
Chris@42
|
11023 else
|
Chris@42
|
11024 whole_archive_flag_spec=''
|
Chris@42
|
11025 fi
|
Chris@42
|
11026 link_all_deplibs=yes
|
Chris@42
|
11027 allow_undefined_flag="$_lt_dar_allow_undefined"
|
Chris@42
|
11028 case $cc_basename in
|
Chris@42
|
11029 ifort*) _lt_dar_can_shared=yes ;;
|
Chris@42
|
11030 *) _lt_dar_can_shared=$GCC ;;
|
Chris@42
|
11031 esac
|
Chris@42
|
11032 if test "$_lt_dar_can_shared" = "yes"; then
|
Chris@42
|
11033 output_verbose_link_cmd=func_echo_all
|
Chris@42
|
11034 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
|
Chris@42
|
11035 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
Chris@42
|
11036 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}"
|
Chris@42
|
11037 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}"
|
Chris@42
|
11038
|
Chris@42
|
11039 else
|
Chris@42
|
11040 ld_shlibs=no
|
Chris@42
|
11041 fi
|
Chris@42
|
11042
|
Chris@42
|
11043 ;;
|
Chris@42
|
11044
|
Chris@42
|
11045 dgux*)
|
Chris@42
|
11046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11047 hardcode_libdir_flag_spec='-L$libdir'
|
Chris@42
|
11048 hardcode_shlibpath_var=no
|
Chris@42
|
11049 ;;
|
Chris@42
|
11050
|
Chris@42
|
11051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
Chris@42
|
11052 # support. Future versions do this automatically, but an explicit c++rt0.o
|
Chris@42
|
11053 # does not break anything, and helps significantly (at the cost of a little
|
Chris@42
|
11054 # extra space).
|
Chris@42
|
11055 freebsd2.2*)
|
Chris@42
|
11056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
Chris@42
|
11057 hardcode_libdir_flag_spec='-R$libdir'
|
Chris@42
|
11058 hardcode_direct=yes
|
Chris@42
|
11059 hardcode_shlibpath_var=no
|
Chris@42
|
11060 ;;
|
Chris@42
|
11061
|
Chris@42
|
11062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
Chris@42
|
11063 freebsd2.*)
|
Chris@42
|
11064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11065 hardcode_direct=yes
|
Chris@42
|
11066 hardcode_minus_L=yes
|
Chris@42
|
11067 hardcode_shlibpath_var=no
|
Chris@42
|
11068 ;;
|
Chris@42
|
11069
|
Chris@42
|
11070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
Chris@42
|
11071 freebsd* | dragonfly*)
|
Chris@42
|
11072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11073 hardcode_libdir_flag_spec='-R$libdir'
|
Chris@42
|
11074 hardcode_direct=yes
|
Chris@42
|
11075 hardcode_shlibpath_var=no
|
Chris@42
|
11076 ;;
|
Chris@42
|
11077
|
Chris@42
|
11078 hpux9*)
|
Chris@42
|
11079 if test "$GCC" = yes; then
|
Chris@42
|
11080 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
Chris@42
|
11081 else
|
Chris@42
|
11082 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
Chris@42
|
11083 fi
|
Chris@42
|
11084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
Chris@42
|
11085 hardcode_libdir_separator=:
|
Chris@42
|
11086 hardcode_direct=yes
|
Chris@42
|
11087
|
Chris@42
|
11088 # hardcode_minus_L: Not really in the search PATH,
|
Chris@42
|
11089 # but as the default location of the library.
|
Chris@42
|
11090 hardcode_minus_L=yes
|
Chris@42
|
11091 export_dynamic_flag_spec='${wl}-E'
|
Chris@42
|
11092 ;;
|
Chris@42
|
11093
|
Chris@42
|
11094 hpux10*)
|
Chris@42
|
11095 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
Chris@42
|
11096 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11097 else
|
Chris@42
|
11098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11099 fi
|
Chris@42
|
11100 if test "$with_gnu_ld" = no; then
|
Chris@42
|
11101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
Chris@42
|
11102 hardcode_libdir_separator=:
|
Chris@42
|
11103 hardcode_direct=yes
|
Chris@42
|
11104 hardcode_direct_absolute=yes
|
Chris@42
|
11105 export_dynamic_flag_spec='${wl}-E'
|
Chris@42
|
11106 # hardcode_minus_L: Not really in the search PATH,
|
Chris@42
|
11107 # but as the default location of the library.
|
Chris@42
|
11108 hardcode_minus_L=yes
|
Chris@42
|
11109 fi
|
Chris@42
|
11110 ;;
|
Chris@42
|
11111
|
Chris@42
|
11112 hpux11*)
|
Chris@42
|
11113 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
Chris@42
|
11114 case $host_cpu in
|
Chris@42
|
11115 hppa*64*)
|
Chris@42
|
11116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11117 ;;
|
Chris@42
|
11118 ia64*)
|
Chris@42
|
11119 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11120 ;;
|
Chris@42
|
11121 *)
|
Chris@42
|
11122 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11123 ;;
|
Chris@42
|
11124 esac
|
Chris@42
|
11125 else
|
Chris@42
|
11126 case $host_cpu in
|
Chris@42
|
11127 hppa*64*)
|
Chris@42
|
11128 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11129 ;;
|
Chris@42
|
11130 ia64*)
|
Chris@42
|
11131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11132 ;;
|
Chris@42
|
11133 *)
|
Chris@42
|
11134
|
Chris@42
|
11135 # Older versions of the 11.00 compiler do not understand -b yet
|
Chris@42
|
11136 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
Chris@42
|
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
|
Chris@42
|
11138 $as_echo_n "checking if $CC understands -b... " >&6; }
|
Chris@42
|
11139 if ${lt_cv_prog_compiler__b+:} false; then :
|
Chris@42
|
11140 $as_echo_n "(cached) " >&6
|
Chris@42
|
11141 else
|
Chris@42
|
11142 lt_cv_prog_compiler__b=no
|
Chris@42
|
11143 save_LDFLAGS="$LDFLAGS"
|
Chris@42
|
11144 LDFLAGS="$LDFLAGS -b"
|
Chris@42
|
11145 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
Chris@42
|
11146 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
Chris@42
|
11147 # The linker can only warn and ignore the option if not recognized
|
Chris@42
|
11148 # So say no if there are warnings
|
Chris@42
|
11149 if test -s conftest.err; then
|
Chris@42
|
11150 # Append any errors to the config.log.
|
Chris@42
|
11151 cat conftest.err 1>&5
|
Chris@42
|
11152 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
Chris@42
|
11153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
Chris@42
|
11154 if diff conftest.exp conftest.er2 >/dev/null; then
|
Chris@42
|
11155 lt_cv_prog_compiler__b=yes
|
Chris@42
|
11156 fi
|
Chris@42
|
11157 else
|
Chris@42
|
11158 lt_cv_prog_compiler__b=yes
|
Chris@42
|
11159 fi
|
Chris@42
|
11160 fi
|
Chris@42
|
11161 $RM -r conftest*
|
Chris@42
|
11162 LDFLAGS="$save_LDFLAGS"
|
Chris@42
|
11163
|
Chris@42
|
11164 fi
|
Chris@42
|
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
|
Chris@42
|
11166 $as_echo "$lt_cv_prog_compiler__b" >&6; }
|
Chris@42
|
11167
|
Chris@42
|
11168 if test x"$lt_cv_prog_compiler__b" = xyes; then
|
Chris@42
|
11169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11170 else
|
Chris@42
|
11171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11172 fi
|
Chris@42
|
11173
|
Chris@42
|
11174 ;;
|
Chris@42
|
11175 esac
|
Chris@42
|
11176 fi
|
Chris@42
|
11177 if test "$with_gnu_ld" = no; then
|
Chris@42
|
11178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
Chris@42
|
11179 hardcode_libdir_separator=:
|
Chris@42
|
11180
|
Chris@42
|
11181 case $host_cpu in
|
Chris@42
|
11182 hppa*64*|ia64*)
|
Chris@42
|
11183 hardcode_direct=no
|
Chris@42
|
11184 hardcode_shlibpath_var=no
|
Chris@42
|
11185 ;;
|
Chris@42
|
11186 *)
|
Chris@42
|
11187 hardcode_direct=yes
|
Chris@42
|
11188 hardcode_direct_absolute=yes
|
Chris@42
|
11189 export_dynamic_flag_spec='${wl}-E'
|
Chris@42
|
11190
|
Chris@42
|
11191 # hardcode_minus_L: Not really in the search PATH,
|
Chris@42
|
11192 # but as the default location of the library.
|
Chris@42
|
11193 hardcode_minus_L=yes
|
Chris@42
|
11194 ;;
|
Chris@42
|
11195 esac
|
Chris@42
|
11196 fi
|
Chris@42
|
11197 ;;
|
Chris@42
|
11198
|
Chris@42
|
11199 irix5* | irix6* | nonstopux*)
|
Chris@42
|
11200 if test "$GCC" = yes; then
|
Chris@42
|
11201 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'
|
Chris@42
|
11202 # Try to use the -exported_symbol ld option, if it does not
|
Chris@42
|
11203 # work, assume that -exports_file does not work either and
|
Chris@42
|
11204 # implicitly export all symbols.
|
Chris@42
|
11205 # This should be the same for all languages, so no per-tag cache variable.
|
Chris@42
|
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
Chris@42
|
11207 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
Chris@42
|
11208 if ${lt_cv_irix_exported_symbol+:} false; then :
|
Chris@42
|
11209 $as_echo_n "(cached) " >&6
|
Chris@42
|
11210 else
|
Chris@42
|
11211 save_LDFLAGS="$LDFLAGS"
|
Chris@42
|
11212 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
Chris@42
|
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
11214 /* end confdefs.h. */
|
Chris@42
|
11215 int foo (void) { return 0; }
|
Chris@42
|
11216 _ACEOF
|
Chris@42
|
11217 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
11218 lt_cv_irix_exported_symbol=yes
|
Chris@42
|
11219 else
|
Chris@42
|
11220 lt_cv_irix_exported_symbol=no
|
Chris@42
|
11221 fi
|
Chris@42
|
11222 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
11223 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
11224 LDFLAGS="$save_LDFLAGS"
|
Chris@42
|
11225 fi
|
Chris@42
|
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
Chris@42
|
11227 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
Chris@42
|
11228 if test "$lt_cv_irix_exported_symbol" = yes; then
|
Chris@42
|
11229 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'
|
Chris@42
|
11230 fi
|
Chris@42
|
11231 else
|
Chris@42
|
11232 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'
|
Chris@42
|
11233 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'
|
Chris@42
|
11234 fi
|
Chris@42
|
11235 archive_cmds_need_lc='no'
|
Chris@42
|
11236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
11237 hardcode_libdir_separator=:
|
Chris@42
|
11238 inherit_rpath=yes
|
Chris@42
|
11239 link_all_deplibs=yes
|
Chris@42
|
11240 ;;
|
Chris@42
|
11241
|
Chris@42
|
11242 netbsd* | netbsdelf*-gnu)
|
Chris@42
|
11243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
Chris@42
|
11244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
Chris@42
|
11245 else
|
Chris@42
|
11246 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
Chris@42
|
11247 fi
|
Chris@42
|
11248 hardcode_libdir_flag_spec='-R$libdir'
|
Chris@42
|
11249 hardcode_direct=yes
|
Chris@42
|
11250 hardcode_shlibpath_var=no
|
Chris@42
|
11251 ;;
|
Chris@42
|
11252
|
Chris@42
|
11253 newsos6)
|
Chris@42
|
11254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11255 hardcode_direct=yes
|
Chris@42
|
11256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
11257 hardcode_libdir_separator=:
|
Chris@42
|
11258 hardcode_shlibpath_var=no
|
Chris@42
|
11259 ;;
|
Chris@42
|
11260
|
Chris@42
|
11261 *nto* | *qnx*)
|
Chris@42
|
11262 ;;
|
Chris@42
|
11263
|
Chris@42
|
11264 openbsd*)
|
Chris@42
|
11265 if test -f /usr/libexec/ld.so; then
|
Chris@42
|
11266 hardcode_direct=yes
|
Chris@42
|
11267 hardcode_shlibpath_var=no
|
Chris@42
|
11268 hardcode_direct_absolute=yes
|
Chris@42
|
11269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
Chris@42
|
11270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11271 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
Chris@42
|
11272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
Chris@42
|
11273 export_dynamic_flag_spec='${wl}-E'
|
Chris@42
|
11274 else
|
Chris@42
|
11275 case $host_os in
|
Chris@42
|
11276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
Chris@42
|
11277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11278 hardcode_libdir_flag_spec='-R$libdir'
|
Chris@42
|
11279 ;;
|
Chris@42
|
11280 *)
|
Chris@42
|
11281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
Chris@42
|
11283 ;;
|
Chris@42
|
11284 esac
|
Chris@42
|
11285 fi
|
Chris@42
|
11286 else
|
Chris@42
|
11287 ld_shlibs=no
|
Chris@42
|
11288 fi
|
Chris@42
|
11289 ;;
|
Chris@42
|
11290
|
Chris@42
|
11291 os2*)
|
Chris@42
|
11292 hardcode_libdir_flag_spec='-L$libdir'
|
Chris@42
|
11293 hardcode_minus_L=yes
|
Chris@42
|
11294 allow_undefined_flag=unsupported
|
Chris@42
|
11295 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
Chris@42
|
11296 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
Chris@42
|
11297 ;;
|
Chris@42
|
11298
|
Chris@42
|
11299 osf3*)
|
Chris@42
|
11300 if test "$GCC" = yes; then
|
Chris@42
|
11301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
Chris@42
|
11302 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'
|
Chris@42
|
11303 else
|
Chris@42
|
11304 allow_undefined_flag=' -expect_unresolved \*'
|
Chris@42
|
11305 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'
|
Chris@42
|
11306 fi
|
Chris@42
|
11307 archive_cmds_need_lc='no'
|
Chris@42
|
11308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
11309 hardcode_libdir_separator=:
|
Chris@42
|
11310 ;;
|
Chris@42
|
11311
|
Chris@42
|
11312 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
Chris@42
|
11313 if test "$GCC" = yes; then
|
Chris@42
|
11314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
Chris@42
|
11315 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'
|
Chris@42
|
11316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
11317 else
|
Chris@42
|
11318 allow_undefined_flag=' -expect_unresolved \*'
|
Chris@42
|
11319 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'
|
Chris@42
|
11320 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~
|
Chris@42
|
11321 $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'
|
Chris@42
|
11322
|
Chris@42
|
11323 # Both c and cxx compiler support -rpath directly
|
Chris@42
|
11324 hardcode_libdir_flag_spec='-rpath $libdir'
|
Chris@42
|
11325 fi
|
Chris@42
|
11326 archive_cmds_need_lc='no'
|
Chris@42
|
11327 hardcode_libdir_separator=:
|
Chris@42
|
11328 ;;
|
Chris@42
|
11329
|
Chris@42
|
11330 solaris*)
|
Chris@42
|
11331 no_undefined_flag=' -z defs'
|
Chris@42
|
11332 if test "$GCC" = yes; then
|
Chris@42
|
11333 wlarc='${wl}'
|
Chris@42
|
11334 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
Chris@42
|
11336 $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'
|
Chris@42
|
11337 else
|
Chris@42
|
11338 case `$CC -V 2>&1` in
|
Chris@42
|
11339 *"Compilers 5.0"*)
|
Chris@42
|
11340 wlarc=''
|
Chris@42
|
11341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
Chris@42
|
11343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
Chris@42
|
11344 ;;
|
Chris@42
|
11345 *)
|
Chris@42
|
11346 wlarc='${wl}'
|
Chris@42
|
11347 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
Chris@42
|
11349 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
Chris@42
|
11350 ;;
|
Chris@42
|
11351 esac
|
Chris@42
|
11352 fi
|
Chris@42
|
11353 hardcode_libdir_flag_spec='-R$libdir'
|
Chris@42
|
11354 hardcode_shlibpath_var=no
|
Chris@42
|
11355 case $host_os in
|
Chris@42
|
11356 solaris2.[0-5] | solaris2.[0-5].*) ;;
|
Chris@42
|
11357 *)
|
Chris@42
|
11358 # The compiler driver will combine and reorder linker options,
|
Chris@42
|
11359 # but understands `-z linker_flag'. GCC discards it without `$wl',
|
Chris@42
|
11360 # but is careful enough not to reorder.
|
Chris@42
|
11361 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
Chris@42
|
11362 if test "$GCC" = yes; then
|
Chris@42
|
11363 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
Chris@42
|
11364 else
|
Chris@42
|
11365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
Chris@42
|
11366 fi
|
Chris@42
|
11367 ;;
|
Chris@42
|
11368 esac
|
Chris@42
|
11369 link_all_deplibs=yes
|
Chris@42
|
11370 ;;
|
Chris@42
|
11371
|
Chris@42
|
11372 sunos4*)
|
Chris@42
|
11373 if test "x$host_vendor" = xsequent; then
|
Chris@42
|
11374 # Use $CC to link under sequent, because it throws in some extra .o
|
Chris@42
|
11375 # files that make .init and .fini sections work.
|
Chris@42
|
11376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11377 else
|
Chris@42
|
11378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11379 fi
|
Chris@42
|
11380 hardcode_libdir_flag_spec='-L$libdir'
|
Chris@42
|
11381 hardcode_direct=yes
|
Chris@42
|
11382 hardcode_minus_L=yes
|
Chris@42
|
11383 hardcode_shlibpath_var=no
|
Chris@42
|
11384 ;;
|
Chris@42
|
11385
|
Chris@42
|
11386 sysv4)
|
Chris@42
|
11387 case $host_vendor in
|
Chris@42
|
11388 sni)
|
Chris@42
|
11389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11390 hardcode_direct=yes # is this really true???
|
Chris@42
|
11391 ;;
|
Chris@42
|
11392 siemens)
|
Chris@42
|
11393 ## LD is ld it makes a PLAMLIB
|
Chris@42
|
11394 ## CC just makes a GrossModule.
|
Chris@42
|
11395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11396 reload_cmds='$CC -r -o $output$reload_objs'
|
Chris@42
|
11397 hardcode_direct=no
|
Chris@42
|
11398 ;;
|
Chris@42
|
11399 motorola)
|
Chris@42
|
11400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
Chris@42
|
11402 ;;
|
Chris@42
|
11403 esac
|
Chris@42
|
11404 runpath_var='LD_RUN_PATH'
|
Chris@42
|
11405 hardcode_shlibpath_var=no
|
Chris@42
|
11406 ;;
|
Chris@42
|
11407
|
Chris@42
|
11408 sysv4.3*)
|
Chris@42
|
11409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11410 hardcode_shlibpath_var=no
|
Chris@42
|
11411 export_dynamic_flag_spec='-Bexport'
|
Chris@42
|
11412 ;;
|
Chris@42
|
11413
|
Chris@42
|
11414 sysv4*MP*)
|
Chris@42
|
11415 if test -d /usr/nec; then
|
Chris@42
|
11416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11417 hardcode_shlibpath_var=no
|
Chris@42
|
11418 runpath_var=LD_RUN_PATH
|
Chris@42
|
11419 hardcode_runpath_var=yes
|
Chris@42
|
11420 ld_shlibs=yes
|
Chris@42
|
11421 fi
|
Chris@42
|
11422 ;;
|
Chris@42
|
11423
|
Chris@42
|
11424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
Chris@42
|
11425 no_undefined_flag='${wl}-z,text'
|
Chris@42
|
11426 archive_cmds_need_lc=no
|
Chris@42
|
11427 hardcode_shlibpath_var=no
|
Chris@42
|
11428 runpath_var='LD_RUN_PATH'
|
Chris@42
|
11429
|
Chris@42
|
11430 if test "$GCC" = yes; then
|
Chris@42
|
11431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11433 else
|
Chris@42
|
11434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11436 fi
|
Chris@42
|
11437 ;;
|
Chris@42
|
11438
|
Chris@42
|
11439 sysv5* | sco3.2v5* | sco5v6*)
|
Chris@42
|
11440 # Note: We can NOT use -z defs as we might desire, because we do not
|
Chris@42
|
11441 # link with -lc, and that would cause any symbols used from libc to
|
Chris@42
|
11442 # always be unresolved, which means just about no library would
|
Chris@42
|
11443 # ever link correctly. If we're not using GNU ld we use -z text
|
Chris@42
|
11444 # though, which does catch some bad symbols but isn't as heavy-handed
|
Chris@42
|
11445 # as -z defs.
|
Chris@42
|
11446 no_undefined_flag='${wl}-z,text'
|
Chris@42
|
11447 allow_undefined_flag='${wl}-z,nodefs'
|
Chris@42
|
11448 archive_cmds_need_lc=no
|
Chris@42
|
11449 hardcode_shlibpath_var=no
|
Chris@42
|
11450 hardcode_libdir_flag_spec='${wl}-R,$libdir'
|
Chris@42
|
11451 hardcode_libdir_separator=':'
|
Chris@42
|
11452 link_all_deplibs=yes
|
Chris@42
|
11453 export_dynamic_flag_spec='${wl}-Bexport'
|
Chris@42
|
11454 runpath_var='LD_RUN_PATH'
|
Chris@42
|
11455
|
Chris@42
|
11456 if test "$GCC" = yes; then
|
Chris@42
|
11457 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11459 else
|
Chris@42
|
11460 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
11462 fi
|
Chris@42
|
11463 ;;
|
Chris@42
|
11464
|
Chris@42
|
11465 uts4*)
|
Chris@42
|
11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
11467 hardcode_libdir_flag_spec='-L$libdir'
|
Chris@42
|
11468 hardcode_shlibpath_var=no
|
Chris@42
|
11469 ;;
|
Chris@42
|
11470
|
Chris@42
|
11471 *)
|
Chris@42
|
11472 ld_shlibs=no
|
Chris@42
|
11473 ;;
|
Chris@42
|
11474 esac
|
Chris@42
|
11475
|
Chris@42
|
11476 if test x$host_vendor = xsni; then
|
Chris@42
|
11477 case $host in
|
Chris@42
|
11478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
Chris@42
|
11479 export_dynamic_flag_spec='${wl}-Blargedynsym'
|
Chris@42
|
11480 ;;
|
Chris@42
|
11481 esac
|
Chris@42
|
11482 fi
|
Chris@42
|
11483 fi
|
Chris@42
|
11484
|
Chris@42
|
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
|
Chris@42
|
11486 $as_echo "$ld_shlibs" >&6; }
|
Chris@42
|
11487 test "$ld_shlibs" = no && can_build_shared=no
|
Chris@42
|
11488
|
Chris@42
|
11489 with_gnu_ld=$with_gnu_ld
|
Chris@42
|
11490
|
Chris@42
|
11491
|
Chris@42
|
11492
|
Chris@42
|
11493
|
Chris@42
|
11494
|
Chris@42
|
11495
|
Chris@42
|
11496
|
Chris@42
|
11497
|
Chris@42
|
11498
|
Chris@42
|
11499
|
Chris@42
|
11500
|
Chris@42
|
11501
|
Chris@42
|
11502
|
Chris@42
|
11503
|
Chris@42
|
11504
|
Chris@42
|
11505 #
|
Chris@42
|
11506 # Do we need to explicitly link libc?
|
Chris@42
|
11507 #
|
Chris@42
|
11508 case "x$archive_cmds_need_lc" in
|
Chris@42
|
11509 x|xyes)
|
Chris@42
|
11510 # Assume -lc should be added
|
Chris@42
|
11511 archive_cmds_need_lc=yes
|
Chris@42
|
11512
|
Chris@42
|
11513 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
Chris@42
|
11514 case $archive_cmds in
|
Chris@42
|
11515 *'~'*)
|
Chris@42
|
11516 # FIXME: we may have to deal with multi-command sequences.
|
Chris@42
|
11517 ;;
|
Chris@42
|
11518 '$CC '*)
|
Chris@42
|
11519 # Test whether the compiler implicitly links with -lc since on some
|
Chris@42
|
11520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
Chris@42
|
11521 # to ld, don't add -lc before -lgcc.
|
Chris@42
|
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
|
Chris@42
|
11523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
|
Chris@42
|
11524 if ${lt_cv_archive_cmds_need_lc+:} false; then :
|
Chris@42
|
11525 $as_echo_n "(cached) " >&6
|
Chris@42
|
11526 else
|
Chris@42
|
11527 $RM conftest*
|
Chris@42
|
11528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
Chris@42
|
11529
|
Chris@42
|
11530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
Chris@42
|
11531 (eval $ac_compile) 2>&5
|
Chris@42
|
11532 ac_status=$?
|
Chris@42
|
11533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
11534 test $ac_status = 0; } 2>conftest.err; then
|
Chris@42
|
11535 soname=conftest
|
Chris@42
|
11536 lib=conftest
|
Chris@42
|
11537 libobjs=conftest.$ac_objext
|
Chris@42
|
11538 deplibs=
|
Chris@42
|
11539 wl=$lt_prog_compiler_wl
|
Chris@42
|
11540 pic_flag=$lt_prog_compiler_pic
|
Chris@42
|
11541 compiler_flags=-v
|
Chris@42
|
11542 linker_flags=-v
|
Chris@42
|
11543 verstring=
|
Chris@42
|
11544 output_objdir=.
|
Chris@42
|
11545 libname=conftest
|
Chris@42
|
11546 lt_save_allow_undefined_flag=$allow_undefined_flag
|
Chris@42
|
11547 allow_undefined_flag=
|
Chris@42
|
11548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
|
Chris@42
|
11549 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
Chris@42
|
11550 ac_status=$?
|
Chris@42
|
11551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
11552 test $ac_status = 0; }
|
Chris@42
|
11553 then
|
Chris@42
|
11554 lt_cv_archive_cmds_need_lc=no
|
Chris@42
|
11555 else
|
Chris@42
|
11556 lt_cv_archive_cmds_need_lc=yes
|
Chris@42
|
11557 fi
|
Chris@42
|
11558 allow_undefined_flag=$lt_save_allow_undefined_flag
|
Chris@42
|
11559 else
|
Chris@42
|
11560 cat conftest.err 1>&5
|
Chris@42
|
11561 fi
|
Chris@42
|
11562 $RM conftest*
|
Chris@42
|
11563
|
Chris@42
|
11564 fi
|
Chris@42
|
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
|
Chris@42
|
11566 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
|
Chris@42
|
11567 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
|
Chris@42
|
11568 ;;
|
Chris@42
|
11569 esac
|
Chris@42
|
11570 fi
|
Chris@42
|
11571 ;;
|
Chris@42
|
11572 esac
|
Chris@42
|
11573
|
Chris@42
|
11574
|
Chris@42
|
11575
|
Chris@42
|
11576
|
Chris@42
|
11577
|
Chris@42
|
11578
|
Chris@42
|
11579
|
Chris@42
|
11580
|
Chris@42
|
11581
|
Chris@42
|
11582
|
Chris@42
|
11583
|
Chris@42
|
11584
|
Chris@42
|
11585
|
Chris@42
|
11586
|
Chris@42
|
11587
|
Chris@42
|
11588
|
Chris@42
|
11589
|
Chris@42
|
11590
|
Chris@42
|
11591
|
Chris@42
|
11592
|
Chris@42
|
11593
|
Chris@42
|
11594
|
Chris@42
|
11595
|
Chris@42
|
11596
|
Chris@42
|
11597
|
Chris@42
|
11598
|
Chris@42
|
11599
|
Chris@42
|
11600
|
Chris@42
|
11601
|
Chris@42
|
11602
|
Chris@42
|
11603
|
Chris@42
|
11604
|
Chris@42
|
11605
|
Chris@42
|
11606
|
Chris@42
|
11607
|
Chris@42
|
11608
|
Chris@42
|
11609
|
Chris@42
|
11610
|
Chris@42
|
11611
|
Chris@42
|
11612
|
Chris@42
|
11613
|
Chris@42
|
11614
|
Chris@42
|
11615
|
Chris@42
|
11616
|
Chris@42
|
11617
|
Chris@42
|
11618
|
Chris@42
|
11619
|
Chris@42
|
11620
|
Chris@42
|
11621
|
Chris@42
|
11622
|
Chris@42
|
11623
|
Chris@42
|
11624
|
Chris@42
|
11625
|
Chris@42
|
11626
|
Chris@42
|
11627
|
Chris@42
|
11628
|
Chris@42
|
11629
|
Chris@42
|
11630
|
Chris@42
|
11631
|
Chris@42
|
11632
|
Chris@42
|
11633
|
Chris@42
|
11634
|
Chris@42
|
11635
|
Chris@42
|
11636
|
Chris@42
|
11637
|
Chris@42
|
11638
|
Chris@42
|
11639
|
Chris@42
|
11640
|
Chris@42
|
11641
|
Chris@42
|
11642
|
Chris@42
|
11643
|
Chris@42
|
11644
|
Chris@42
|
11645
|
Chris@42
|
11646
|
Chris@42
|
11647
|
Chris@42
|
11648
|
Chris@42
|
11649
|
Chris@42
|
11650
|
Chris@42
|
11651
|
Chris@42
|
11652
|
Chris@42
|
11653
|
Chris@42
|
11654
|
Chris@42
|
11655
|
Chris@42
|
11656
|
Chris@42
|
11657
|
Chris@42
|
11658
|
Chris@42
|
11659
|
Chris@42
|
11660
|
Chris@42
|
11661
|
Chris@42
|
11662
|
Chris@42
|
11663
|
Chris@42
|
11664
|
Chris@42
|
11665
|
Chris@42
|
11666
|
Chris@42
|
11667
|
Chris@42
|
11668
|
Chris@42
|
11669
|
Chris@42
|
11670
|
Chris@42
|
11671
|
Chris@42
|
11672
|
Chris@42
|
11673
|
Chris@42
|
11674
|
Chris@42
|
11675
|
Chris@42
|
11676
|
Chris@42
|
11677
|
Chris@42
|
11678
|
Chris@42
|
11679
|
Chris@42
|
11680
|
Chris@42
|
11681
|
Chris@42
|
11682
|
Chris@42
|
11683
|
Chris@42
|
11684
|
Chris@42
|
11685
|
Chris@42
|
11686
|
Chris@42
|
11687
|
Chris@42
|
11688
|
Chris@42
|
11689
|
Chris@42
|
11690
|
Chris@42
|
11691
|
Chris@42
|
11692
|
Chris@42
|
11693
|
Chris@42
|
11694
|
Chris@42
|
11695
|
Chris@42
|
11696
|
Chris@42
|
11697
|
Chris@42
|
11698
|
Chris@42
|
11699
|
Chris@42
|
11700
|
Chris@42
|
11701
|
Chris@42
|
11702
|
Chris@42
|
11703
|
Chris@42
|
11704
|
Chris@42
|
11705
|
Chris@42
|
11706
|
Chris@42
|
11707
|
Chris@42
|
11708
|
Chris@42
|
11709
|
Chris@42
|
11710
|
Chris@42
|
11711
|
Chris@42
|
11712
|
Chris@42
|
11713
|
Chris@42
|
11714
|
Chris@42
|
11715
|
Chris@42
|
11716
|
Chris@42
|
11717
|
Chris@42
|
11718
|
Chris@42
|
11719
|
Chris@42
|
11720
|
Chris@42
|
11721
|
Chris@42
|
11722
|
Chris@42
|
11723
|
Chris@42
|
11724
|
Chris@42
|
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
|
Chris@42
|
11726 $as_echo_n "checking dynamic linker characteristics... " >&6; }
|
Chris@42
|
11727
|
Chris@42
|
11728 if test "$GCC" = yes; then
|
Chris@42
|
11729 case $host_os in
|
Chris@42
|
11730 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
Chris@42
|
11731 *) lt_awk_arg="/^libraries:/" ;;
|
Chris@42
|
11732 esac
|
Chris@42
|
11733 case $host_os in
|
Chris@42
|
11734 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
|
Chris@42
|
11735 *) lt_sed_strip_eq="s,=/,/,g" ;;
|
Chris@42
|
11736 esac
|
Chris@42
|
11737 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
Chris@42
|
11738 case $lt_search_path_spec in
|
Chris@42
|
11739 *\;*)
|
Chris@42
|
11740 # if the path contains ";" then we assume it to be the separator
|
Chris@42
|
11741 # otherwise default to the standard path separator (i.e. ":") - it is
|
Chris@42
|
11742 # assumed that no part of a normal pathname contains ";" but that should
|
Chris@42
|
11743 # okay in the real world where ";" in dirpaths is itself problematic.
|
Chris@42
|
11744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
Chris@42
|
11745 ;;
|
Chris@42
|
11746 *)
|
Chris@42
|
11747 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
Chris@42
|
11748 ;;
|
Chris@42
|
11749 esac
|
Chris@42
|
11750 # Ok, now we have the path, separated by spaces, we can step through it
|
Chris@42
|
11751 # and add multilib dir if necessary.
|
Chris@42
|
11752 lt_tmp_lt_search_path_spec=
|
Chris@42
|
11753 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
Chris@42
|
11754 for lt_sys_path in $lt_search_path_spec; do
|
Chris@42
|
11755 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
Chris@42
|
11756 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
Chris@42
|
11757 else
|
Chris@42
|
11758 test -d "$lt_sys_path" && \
|
Chris@42
|
11759 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
Chris@42
|
11760 fi
|
Chris@42
|
11761 done
|
Chris@42
|
11762 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
Chris@42
|
11763 BEGIN {RS=" "; FS="/|\n";} {
|
Chris@42
|
11764 lt_foo="";
|
Chris@42
|
11765 lt_count=0;
|
Chris@42
|
11766 for (lt_i = NF; lt_i > 0; lt_i--) {
|
Chris@42
|
11767 if ($lt_i != "" && $lt_i != ".") {
|
Chris@42
|
11768 if ($lt_i == "..") {
|
Chris@42
|
11769 lt_count++;
|
Chris@42
|
11770 } else {
|
Chris@42
|
11771 if (lt_count == 0) {
|
Chris@42
|
11772 lt_foo="/" $lt_i lt_foo;
|
Chris@42
|
11773 } else {
|
Chris@42
|
11774 lt_count--;
|
Chris@42
|
11775 }
|
Chris@42
|
11776 }
|
Chris@42
|
11777 }
|
Chris@42
|
11778 }
|
Chris@42
|
11779 if (lt_foo != "") { lt_freq[lt_foo]++; }
|
Chris@42
|
11780 if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
Chris@42
|
11781 }'`
|
Chris@42
|
11782 # AWK program above erroneously prepends '/' to C:/dos/paths
|
Chris@42
|
11783 # for these hosts.
|
Chris@42
|
11784 case $host_os in
|
Chris@42
|
11785 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
Chris@42
|
11786 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
|
Chris@42
|
11787 esac
|
Chris@42
|
11788 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
Chris@42
|
11789 else
|
Chris@42
|
11790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
Chris@42
|
11791 fi
|
Chris@42
|
11792 library_names_spec=
|
Chris@42
|
11793 libname_spec='lib$name'
|
Chris@42
|
11794 soname_spec=
|
Chris@42
|
11795 shrext_cmds=".so"
|
Chris@42
|
11796 postinstall_cmds=
|
Chris@42
|
11797 postuninstall_cmds=
|
Chris@42
|
11798 finish_cmds=
|
Chris@42
|
11799 finish_eval=
|
Chris@42
|
11800 shlibpath_var=
|
Chris@42
|
11801 shlibpath_overrides_runpath=unknown
|
Chris@42
|
11802 version_type=none
|
Chris@42
|
11803 dynamic_linker="$host_os ld.so"
|
Chris@42
|
11804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
Chris@42
|
11805 need_lib_prefix=unknown
|
Chris@42
|
11806 hardcode_into_libs=no
|
Chris@42
|
11807
|
Chris@42
|
11808 # when you set need_version to no, make sure it does not cause -set_version
|
Chris@42
|
11809 # flags to be left without arguments
|
Chris@42
|
11810 need_version=unknown
|
Chris@42
|
11811
|
Chris@42
|
11812 case $host_os in
|
Chris@42
|
11813 aix3*)
|
Chris@42
|
11814 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
Chris@42
|
11816 shlibpath_var=LIBPATH
|
Chris@42
|
11817
|
Chris@42
|
11818 # AIX 3 has no versioning support, so we append a major version to the name.
|
Chris@42
|
11819 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
11820 ;;
|
Chris@42
|
11821
|
Chris@42
|
11822 aix[4-9]*)
|
Chris@42
|
11823 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
11824 need_lib_prefix=no
|
Chris@42
|
11825 need_version=no
|
Chris@42
|
11826 hardcode_into_libs=yes
|
Chris@42
|
11827 if test "$host_cpu" = ia64; then
|
Chris@42
|
11828 # AIX 5 supports IA64
|
Chris@42
|
11829 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
Chris@42
|
11830 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
11831 else
|
Chris@42
|
11832 # With GCC up to 2.95.x, collect2 would create an import file
|
Chris@42
|
11833 # for dependence libraries. The import file would start with
|
Chris@42
|
11834 # the line `#! .'. This would cause the generated library to
|
Chris@42
|
11835 # depend on `.', always an invalid library. This was fixed in
|
Chris@42
|
11836 # development snapshots of GCC prior to 3.0.
|
Chris@42
|
11837 case $host_os in
|
Chris@42
|
11838 aix4 | aix4.[01] | aix4.[01].*)
|
Chris@42
|
11839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
Chris@42
|
11840 echo ' yes '
|
Chris@42
|
11841 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
Chris@42
|
11842 :
|
Chris@42
|
11843 else
|
Chris@42
|
11844 can_build_shared=no
|
Chris@42
|
11845 fi
|
Chris@42
|
11846 ;;
|
Chris@42
|
11847 esac
|
Chris@42
|
11848 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
Chris@42
|
11849 # soname into executable. Probably we can add versioning support to
|
Chris@42
|
11850 # collect2, so additional links can be useful in future.
|
Chris@42
|
11851 if test "$aix_use_runtimelinking" = yes; then
|
Chris@42
|
11852 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
Chris@42
|
11853 # instead of lib<name>.a to let people know that these are not
|
Chris@42
|
11854 # typical AIX shared libraries.
|
Chris@42
|
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
11856 else
|
Chris@42
|
11857 # We preserve .a as extension for shared libraries through AIX4.2
|
Chris@42
|
11858 # and later when we are not doing run time linking.
|
Chris@42
|
11859 library_names_spec='${libname}${release}.a $libname.a'
|
Chris@42
|
11860 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
11861 fi
|
Chris@42
|
11862 shlibpath_var=LIBPATH
|
Chris@42
|
11863 fi
|
Chris@42
|
11864 ;;
|
Chris@42
|
11865
|
Chris@42
|
11866 amigaos*)
|
Chris@42
|
11867 case $host_cpu in
|
Chris@42
|
11868 powerpc)
|
Chris@42
|
11869 # Since July 2007 AmigaOS4 officially supports .so libraries.
|
Chris@42
|
11870 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
Chris@42
|
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
11872 ;;
|
Chris@42
|
11873 m68k)
|
Chris@42
|
11874 library_names_spec='$libname.ixlibrary $libname.a'
|
Chris@42
|
11875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
Chris@42
|
11876 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
|
Chris@42
|
11877 ;;
|
Chris@42
|
11878 esac
|
Chris@42
|
11879 ;;
|
Chris@42
|
11880
|
Chris@42
|
11881 beos*)
|
Chris@42
|
11882 library_names_spec='${libname}${shared_ext}'
|
Chris@42
|
11883 dynamic_linker="$host_os ld.so"
|
Chris@42
|
11884 shlibpath_var=LIBRARY_PATH
|
Chris@42
|
11885 ;;
|
Chris@42
|
11886
|
Chris@42
|
11887 bsdi[45]*)
|
Chris@42
|
11888 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
11889 need_version=no
|
Chris@42
|
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
11891 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
11892 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
Chris@42
|
11893 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
11894 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
Chris@42
|
11895 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
Chris@42
|
11896 # the default ld.so.conf also contains /usr/contrib/lib and
|
Chris@42
|
11897 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
Chris@42
|
11898 # libtool to hard-code these into programs
|
Chris@42
|
11899 ;;
|
Chris@42
|
11900
|
Chris@42
|
11901 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
11902 version_type=windows
|
Chris@42
|
11903 shrext_cmds=".dll"
|
Chris@42
|
11904 need_version=no
|
Chris@42
|
11905 need_lib_prefix=no
|
Chris@42
|
11906
|
Chris@42
|
11907 case $GCC,$cc_basename in
|
Chris@42
|
11908 yes,*)
|
Chris@42
|
11909 # gcc
|
Chris@42
|
11910 library_names_spec='$libname.dll.a'
|
Chris@42
|
11911 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
Chris@42
|
11912 postinstall_cmds='base_file=`basename \${file}`~
|
Chris@42
|
11913 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
Chris@42
|
11914 dldir=$destdir/`dirname \$dlpath`~
|
Chris@42
|
11915 test -d \$dldir || mkdir -p \$dldir~
|
Chris@42
|
11916 $install_prog $dir/$dlname \$dldir/$dlname~
|
Chris@42
|
11917 chmod a+x \$dldir/$dlname~
|
Chris@42
|
11918 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
Chris@42
|
11919 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
Chris@42
|
11920 fi'
|
Chris@42
|
11921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
Chris@42
|
11922 dlpath=$dir/\$dldll~
|
Chris@42
|
11923 $RM \$dlpath'
|
Chris@42
|
11924 shlibpath_overrides_runpath=yes
|
Chris@42
|
11925
|
Chris@42
|
11926 case $host_os in
|
Chris@42
|
11927 cygwin*)
|
Chris@42
|
11928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
Chris@42
|
11929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
Chris@42
|
11930
|
Chris@42
|
11931 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
|
Chris@42
|
11932 ;;
|
Chris@42
|
11933 mingw* | cegcc*)
|
Chris@42
|
11934 # MinGW DLLs use traditional 'lib' prefix
|
Chris@42
|
11935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
Chris@42
|
11936 ;;
|
Chris@42
|
11937 pw32*)
|
Chris@42
|
11938 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
Chris@42
|
11939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
Chris@42
|
11940 ;;
|
Chris@42
|
11941 esac
|
Chris@42
|
11942 dynamic_linker='Win32 ld.exe'
|
Chris@42
|
11943 ;;
|
Chris@42
|
11944
|
Chris@42
|
11945 *,cl*)
|
Chris@42
|
11946 # Native MSVC
|
Chris@42
|
11947 libname_spec='$name'
|
Chris@42
|
11948 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
Chris@42
|
11949 library_names_spec='${libname}.dll.lib'
|
Chris@42
|
11950
|
Chris@42
|
11951 case $build_os in
|
Chris@42
|
11952 mingw*)
|
Chris@42
|
11953 sys_lib_search_path_spec=
|
Chris@42
|
11954 lt_save_ifs=$IFS
|
Chris@42
|
11955 IFS=';'
|
Chris@42
|
11956 for lt_path in $LIB
|
Chris@42
|
11957 do
|
Chris@42
|
11958 IFS=$lt_save_ifs
|
Chris@42
|
11959 # Let DOS variable expansion print the short 8.3 style file name.
|
Chris@42
|
11960 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
Chris@42
|
11961 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
Chris@42
|
11962 done
|
Chris@42
|
11963 IFS=$lt_save_ifs
|
Chris@42
|
11964 # Convert to MSYS style.
|
Chris@42
|
11965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
Chris@42
|
11966 ;;
|
Chris@42
|
11967 cygwin*)
|
Chris@42
|
11968 # Convert to unix form, then to dos form, then back to unix form
|
Chris@42
|
11969 # but this time dos style (no spaces!) so that the unix form looks
|
Chris@42
|
11970 # like /cygdrive/c/PROGRA~1:/cygdr...
|
Chris@42
|
11971 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
Chris@42
|
11972 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
Chris@42
|
11973 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
Chris@42
|
11974 ;;
|
Chris@42
|
11975 *)
|
Chris@42
|
11976 sys_lib_search_path_spec="$LIB"
|
Chris@42
|
11977 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
Chris@42
|
11978 # It is most probably a Windows format PATH.
|
Chris@42
|
11979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
Chris@42
|
11980 else
|
Chris@42
|
11981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
Chris@42
|
11982 fi
|
Chris@42
|
11983 # FIXME: find the short name or the path components, as spaces are
|
Chris@42
|
11984 # common. (e.g. "Program Files" -> "PROGRA~1")
|
Chris@42
|
11985 ;;
|
Chris@42
|
11986 esac
|
Chris@42
|
11987
|
Chris@42
|
11988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
Chris@42
|
11989 postinstall_cmds='base_file=`basename \${file}`~
|
Chris@42
|
11990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
Chris@42
|
11991 dldir=$destdir/`dirname \$dlpath`~
|
Chris@42
|
11992 test -d \$dldir || mkdir -p \$dldir~
|
Chris@42
|
11993 $install_prog $dir/$dlname \$dldir/$dlname'
|
Chris@42
|
11994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
Chris@42
|
11995 dlpath=$dir/\$dldll~
|
Chris@42
|
11996 $RM \$dlpath'
|
Chris@42
|
11997 shlibpath_overrides_runpath=yes
|
Chris@42
|
11998 dynamic_linker='Win32 link.exe'
|
Chris@42
|
11999 ;;
|
Chris@42
|
12000
|
Chris@42
|
12001 *)
|
Chris@42
|
12002 # Assume MSVC wrapper
|
Chris@42
|
12003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
Chris@42
|
12004 dynamic_linker='Win32 ld.exe'
|
Chris@42
|
12005 ;;
|
Chris@42
|
12006 esac
|
Chris@42
|
12007 # FIXME: first we should search . and the directory the executable is in
|
Chris@42
|
12008 shlibpath_var=PATH
|
Chris@42
|
12009 ;;
|
Chris@42
|
12010
|
Chris@42
|
12011 darwin* | rhapsody*)
|
Chris@42
|
12012 dynamic_linker="$host_os dyld"
|
Chris@42
|
12013 version_type=darwin
|
Chris@42
|
12014 need_lib_prefix=no
|
Chris@42
|
12015 need_version=no
|
Chris@42
|
12016 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
Chris@42
|
12017 soname_spec='${libname}${release}${major}$shared_ext'
|
Chris@42
|
12018 shlibpath_overrides_runpath=yes
|
Chris@42
|
12019 shlibpath_var=DYLD_LIBRARY_PATH
|
Chris@42
|
12020 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
Chris@42
|
12021
|
Chris@42
|
12022 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
Chris@42
|
12023 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
Chris@42
|
12024 ;;
|
Chris@42
|
12025
|
Chris@42
|
12026 dgux*)
|
Chris@42
|
12027 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12028 need_lib_prefix=no
|
Chris@42
|
12029 need_version=no
|
Chris@42
|
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
Chris@42
|
12031 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12032 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12033 ;;
|
Chris@42
|
12034
|
Chris@42
|
12035 freebsd* | dragonfly*)
|
Chris@42
|
12036 # DragonFly does not have aout. When/if they implement a new
|
Chris@42
|
12037 # versioning mechanism, adjust this.
|
Chris@42
|
12038 if test -x /usr/bin/objformat; then
|
Chris@42
|
12039 objformat=`/usr/bin/objformat`
|
Chris@42
|
12040 else
|
Chris@42
|
12041 case $host_os in
|
Chris@42
|
12042 freebsd[23].*) objformat=aout ;;
|
Chris@42
|
12043 *) objformat=elf ;;
|
Chris@42
|
12044 esac
|
Chris@42
|
12045 fi
|
Chris@42
|
12046 version_type=freebsd-$objformat
|
Chris@42
|
12047 case $version_type in
|
Chris@42
|
12048 freebsd-elf*)
|
Chris@42
|
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
Chris@42
|
12050 need_version=no
|
Chris@42
|
12051 need_lib_prefix=no
|
Chris@42
|
12052 ;;
|
Chris@42
|
12053 freebsd-*)
|
Chris@42
|
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
Chris@42
|
12055 need_version=yes
|
Chris@42
|
12056 ;;
|
Chris@42
|
12057 esac
|
Chris@42
|
12058 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12059 case $host_os in
|
Chris@42
|
12060 freebsd2.*)
|
Chris@42
|
12061 shlibpath_overrides_runpath=yes
|
Chris@42
|
12062 ;;
|
Chris@42
|
12063 freebsd3.[01]* | freebsdelf3.[01]*)
|
Chris@42
|
12064 shlibpath_overrides_runpath=yes
|
Chris@42
|
12065 hardcode_into_libs=yes
|
Chris@42
|
12066 ;;
|
Chris@42
|
12067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
Chris@42
|
12068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
Chris@42
|
12069 shlibpath_overrides_runpath=no
|
Chris@42
|
12070 hardcode_into_libs=yes
|
Chris@42
|
12071 ;;
|
Chris@42
|
12072 *) # from 4.6 on, and DragonFly
|
Chris@42
|
12073 shlibpath_overrides_runpath=yes
|
Chris@42
|
12074 hardcode_into_libs=yes
|
Chris@42
|
12075 ;;
|
Chris@42
|
12076 esac
|
Chris@42
|
12077 ;;
|
Chris@42
|
12078
|
Chris@42
|
12079 haiku*)
|
Chris@42
|
12080 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12081 need_lib_prefix=no
|
Chris@42
|
12082 need_version=no
|
Chris@42
|
12083 dynamic_linker="$host_os runtime_loader"
|
Chris@42
|
12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
Chris@42
|
12085 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12086 shlibpath_var=LIBRARY_PATH
|
Chris@42
|
12087 shlibpath_overrides_runpath=yes
|
Chris@42
|
12088 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
Chris@42
|
12089 hardcode_into_libs=yes
|
Chris@42
|
12090 ;;
|
Chris@42
|
12091
|
Chris@42
|
12092 hpux9* | hpux10* | hpux11*)
|
Chris@42
|
12093 # Give a soname corresponding to the major version so that dld.sl refuses to
|
Chris@42
|
12094 # link against other versions.
|
Chris@42
|
12095 version_type=sunos
|
Chris@42
|
12096 need_lib_prefix=no
|
Chris@42
|
12097 need_version=no
|
Chris@42
|
12098 case $host_cpu in
|
Chris@42
|
12099 ia64*)
|
Chris@42
|
12100 shrext_cmds='.so'
|
Chris@42
|
12101 hardcode_into_libs=yes
|
Chris@42
|
12102 dynamic_linker="$host_os dld.so"
|
Chris@42
|
12103 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
Chris@42
|
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12106 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12107 if test "X$HPUX_IA64_MODE" = X32; then
|
Chris@42
|
12108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
Chris@42
|
12109 else
|
Chris@42
|
12110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
Chris@42
|
12111 fi
|
Chris@42
|
12112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
Chris@42
|
12113 ;;
|
Chris@42
|
12114 hppa*64*)
|
Chris@42
|
12115 shrext_cmds='.sl'
|
Chris@42
|
12116 hardcode_into_libs=yes
|
Chris@42
|
12117 dynamic_linker="$host_os dld.sl"
|
Chris@42
|
12118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
Chris@42
|
12119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
Chris@42
|
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12121 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
Chris@42
|
12123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
Chris@42
|
12124 ;;
|
Chris@42
|
12125 *)
|
Chris@42
|
12126 shrext_cmds='.sl'
|
Chris@42
|
12127 dynamic_linker="$host_os dld.sl"
|
Chris@42
|
12128 shlibpath_var=SHLIB_PATH
|
Chris@42
|
12129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
Chris@42
|
12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12131 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12132 ;;
|
Chris@42
|
12133 esac
|
Chris@42
|
12134 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
Chris@42
|
12135 postinstall_cmds='chmod 555 $lib'
|
Chris@42
|
12136 # or fails outright, so override atomically:
|
Chris@42
|
12137 install_override_mode=555
|
Chris@42
|
12138 ;;
|
Chris@42
|
12139
|
Chris@42
|
12140 interix[3-9]*)
|
Chris@42
|
12141 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12142 need_lib_prefix=no
|
Chris@42
|
12143 need_version=no
|
Chris@42
|
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
Chris@42
|
12145 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
Chris@42
|
12147 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12148 shlibpath_overrides_runpath=no
|
Chris@42
|
12149 hardcode_into_libs=yes
|
Chris@42
|
12150 ;;
|
Chris@42
|
12151
|
Chris@42
|
12152 irix5* | irix6* | nonstopux*)
|
Chris@42
|
12153 case $host_os in
|
Chris@42
|
12154 nonstopux*) version_type=nonstopux ;;
|
Chris@42
|
12155 *)
|
Chris@42
|
12156 if test "$lt_cv_prog_gnu_ld" = yes; then
|
Chris@42
|
12157 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12158 else
|
Chris@42
|
12159 version_type=irix
|
Chris@42
|
12160 fi ;;
|
Chris@42
|
12161 esac
|
Chris@42
|
12162 need_lib_prefix=no
|
Chris@42
|
12163 need_version=no
|
Chris@42
|
12164 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
Chris@42
|
12166 case $host_os in
|
Chris@42
|
12167 irix5* | nonstopux*)
|
Chris@42
|
12168 libsuff= shlibsuff=
|
Chris@42
|
12169 ;;
|
Chris@42
|
12170 *)
|
Chris@42
|
12171 case $LD in # libtool.m4 will add one of these switches to LD
|
Chris@42
|
12172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
Chris@42
|
12173 libsuff= shlibsuff= libmagic=32-bit;;
|
Chris@42
|
12174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
Chris@42
|
12175 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
Chris@42
|
12176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
Chris@42
|
12177 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
Chris@42
|
12178 *) libsuff= shlibsuff= libmagic=never-match;;
|
Chris@42
|
12179 esac
|
Chris@42
|
12180 ;;
|
Chris@42
|
12181 esac
|
Chris@42
|
12182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
Chris@42
|
12183 shlibpath_overrides_runpath=no
|
Chris@42
|
12184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
Chris@42
|
12185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
Chris@42
|
12186 hardcode_into_libs=yes
|
Chris@42
|
12187 ;;
|
Chris@42
|
12188
|
Chris@42
|
12189 # No shared lib support for Linux oldld, aout, or coff.
|
Chris@42
|
12190 linux*oldld* | linux*aout* | linux*coff*)
|
Chris@42
|
12191 dynamic_linker=no
|
Chris@42
|
12192 ;;
|
Chris@42
|
12193
|
Chris@42
|
12194 # This must be glibc/ELF.
|
Chris@42
|
12195 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
Chris@42
|
12196 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12197 need_lib_prefix=no
|
Chris@42
|
12198 need_version=no
|
Chris@42
|
12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12200 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
Chris@42
|
12202 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12203 shlibpath_overrides_runpath=no
|
Chris@42
|
12204
|
Chris@42
|
12205 # Some binutils ld are patched to set DT_RUNPATH
|
Chris@42
|
12206 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
|
Chris@42
|
12207 $as_echo_n "(cached) " >&6
|
Chris@42
|
12208 else
|
Chris@42
|
12209 lt_cv_shlibpath_overrides_runpath=no
|
Chris@42
|
12210 save_LDFLAGS=$LDFLAGS
|
Chris@42
|
12211 save_libdir=$libdir
|
Chris@42
|
12212 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
Chris@42
|
12213 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
Chris@42
|
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
12215 /* end confdefs.h. */
|
Chris@42
|
12216
|
Chris@42
|
12217 int
|
Chris@42
|
12218 main ()
|
Chris@42
|
12219 {
|
Chris@42
|
12220
|
Chris@42
|
12221 ;
|
Chris@42
|
12222 return 0;
|
Chris@42
|
12223 }
|
Chris@42
|
12224 _ACEOF
|
Chris@42
|
12225 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
12226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
|
Chris@42
|
12227 lt_cv_shlibpath_overrides_runpath=yes
|
Chris@42
|
12228 fi
|
Chris@42
|
12229 fi
|
Chris@42
|
12230 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
12231 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
12232 LDFLAGS=$save_LDFLAGS
|
Chris@42
|
12233 libdir=$save_libdir
|
Chris@42
|
12234
|
Chris@42
|
12235 fi
|
Chris@42
|
12236
|
Chris@42
|
12237 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
Chris@42
|
12238
|
Chris@42
|
12239 # This implies no fast_install, which is unacceptable.
|
Chris@42
|
12240 # Some rework will be needed to allow for fast_install
|
Chris@42
|
12241 # before this can be enabled.
|
Chris@42
|
12242 hardcode_into_libs=yes
|
Chris@42
|
12243
|
Chris@42
|
12244 # Append ld.so.conf contents to the search path
|
Chris@42
|
12245 if test -f /etc/ld.so.conf; then
|
Chris@42
|
12246 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' ' '`
|
Chris@42
|
12247 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
Chris@42
|
12248 fi
|
Chris@42
|
12249
|
Chris@42
|
12250 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
Chris@42
|
12251 # powerpc, because MkLinux only supported shared libraries with the
|
Chris@42
|
12252 # GNU dynamic linker. Since this was broken with cross compilers,
|
Chris@42
|
12253 # most powerpc-linux boxes support dynamic linking these days and
|
Chris@42
|
12254 # people can always --disable-shared, the test was removed, and we
|
Chris@42
|
12255 # assume the GNU/Linux dynamic linker is in use.
|
Chris@42
|
12256 dynamic_linker='GNU/Linux ld.so'
|
Chris@42
|
12257 ;;
|
Chris@42
|
12258
|
Chris@42
|
12259 netbsdelf*-gnu)
|
Chris@42
|
12260 version_type=linux
|
Chris@42
|
12261 need_lib_prefix=no
|
Chris@42
|
12262 need_version=no
|
Chris@42
|
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
Chris@42
|
12264 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12265 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12266 shlibpath_overrides_runpath=no
|
Chris@42
|
12267 hardcode_into_libs=yes
|
Chris@42
|
12268 dynamic_linker='NetBSD ld.elf_so'
|
Chris@42
|
12269 ;;
|
Chris@42
|
12270
|
Chris@42
|
12271 netbsd*)
|
Chris@42
|
12272 version_type=sunos
|
Chris@42
|
12273 need_lib_prefix=no
|
Chris@42
|
12274 need_version=no
|
Chris@42
|
12275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
Chris@42
|
12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
Chris@42
|
12277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
Chris@42
|
12278 dynamic_linker='NetBSD (a.out) ld.so'
|
Chris@42
|
12279 else
|
Chris@42
|
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
Chris@42
|
12281 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12282 dynamic_linker='NetBSD ld.elf_so'
|
Chris@42
|
12283 fi
|
Chris@42
|
12284 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12285 shlibpath_overrides_runpath=yes
|
Chris@42
|
12286 hardcode_into_libs=yes
|
Chris@42
|
12287 ;;
|
Chris@42
|
12288
|
Chris@42
|
12289 newsos6)
|
Chris@42
|
12290 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12292 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12293 shlibpath_overrides_runpath=yes
|
Chris@42
|
12294 ;;
|
Chris@42
|
12295
|
Chris@42
|
12296 *nto* | *qnx*)
|
Chris@42
|
12297 version_type=qnx
|
Chris@42
|
12298 need_lib_prefix=no
|
Chris@42
|
12299 need_version=no
|
Chris@42
|
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12301 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12302 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12303 shlibpath_overrides_runpath=no
|
Chris@42
|
12304 hardcode_into_libs=yes
|
Chris@42
|
12305 dynamic_linker='ldqnx.so'
|
Chris@42
|
12306 ;;
|
Chris@42
|
12307
|
Chris@42
|
12308 openbsd*)
|
Chris@42
|
12309 version_type=sunos
|
Chris@42
|
12310 sys_lib_dlsearch_path_spec="/usr/lib"
|
Chris@42
|
12311 need_lib_prefix=no
|
Chris@42
|
12312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
Chris@42
|
12313 case $host_os in
|
Chris@42
|
12314 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
Chris@42
|
12315 *) need_version=no ;;
|
Chris@42
|
12316 esac
|
Chris@42
|
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
Chris@42
|
12318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
Chris@42
|
12319 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
Chris@42
|
12321 case $host_os in
|
Chris@42
|
12322 openbsd2.[89] | openbsd2.[89].*)
|
Chris@42
|
12323 shlibpath_overrides_runpath=no
|
Chris@42
|
12324 ;;
|
Chris@42
|
12325 *)
|
Chris@42
|
12326 shlibpath_overrides_runpath=yes
|
Chris@42
|
12327 ;;
|
Chris@42
|
12328 esac
|
Chris@42
|
12329 else
|
Chris@42
|
12330 shlibpath_overrides_runpath=yes
|
Chris@42
|
12331 fi
|
Chris@42
|
12332 ;;
|
Chris@42
|
12333
|
Chris@42
|
12334 os2*)
|
Chris@42
|
12335 libname_spec='$name'
|
Chris@42
|
12336 shrext_cmds=".dll"
|
Chris@42
|
12337 need_lib_prefix=no
|
Chris@42
|
12338 library_names_spec='$libname${shared_ext} $libname.a'
|
Chris@42
|
12339 dynamic_linker='OS/2 ld.exe'
|
Chris@42
|
12340 shlibpath_var=LIBPATH
|
Chris@42
|
12341 ;;
|
Chris@42
|
12342
|
Chris@42
|
12343 osf3* | osf4* | osf5*)
|
Chris@42
|
12344 version_type=osf
|
Chris@42
|
12345 need_lib_prefix=no
|
Chris@42
|
12346 need_version=no
|
Chris@42
|
12347 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12349 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
Chris@42
|
12351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
Chris@42
|
12352 ;;
|
Chris@42
|
12353
|
Chris@42
|
12354 rdos*)
|
Chris@42
|
12355 dynamic_linker=no
|
Chris@42
|
12356 ;;
|
Chris@42
|
12357
|
Chris@42
|
12358 solaris*)
|
Chris@42
|
12359 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12360 need_lib_prefix=no
|
Chris@42
|
12361 need_version=no
|
Chris@42
|
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12363 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12364 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12365 shlibpath_overrides_runpath=yes
|
Chris@42
|
12366 hardcode_into_libs=yes
|
Chris@42
|
12367 # ldd complains unless libraries are executable
|
Chris@42
|
12368 postinstall_cmds='chmod +x $lib'
|
Chris@42
|
12369 ;;
|
Chris@42
|
12370
|
Chris@42
|
12371 sunos4*)
|
Chris@42
|
12372 version_type=sunos
|
Chris@42
|
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
Chris@42
|
12374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
Chris@42
|
12375 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12376 shlibpath_overrides_runpath=yes
|
Chris@42
|
12377 if test "$with_gnu_ld" = yes; then
|
Chris@42
|
12378 need_lib_prefix=no
|
Chris@42
|
12379 fi
|
Chris@42
|
12380 need_version=yes
|
Chris@42
|
12381 ;;
|
Chris@42
|
12382
|
Chris@42
|
12383 sysv4 | sysv4.3*)
|
Chris@42
|
12384 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12386 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12387 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12388 case $host_vendor in
|
Chris@42
|
12389 sni)
|
Chris@42
|
12390 shlibpath_overrides_runpath=no
|
Chris@42
|
12391 need_lib_prefix=no
|
Chris@42
|
12392 runpath_var=LD_RUN_PATH
|
Chris@42
|
12393 ;;
|
Chris@42
|
12394 siemens)
|
Chris@42
|
12395 need_lib_prefix=no
|
Chris@42
|
12396 ;;
|
Chris@42
|
12397 motorola)
|
Chris@42
|
12398 need_lib_prefix=no
|
Chris@42
|
12399 need_version=no
|
Chris@42
|
12400 shlibpath_overrides_runpath=no
|
Chris@42
|
12401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
Chris@42
|
12402 ;;
|
Chris@42
|
12403 esac
|
Chris@42
|
12404 ;;
|
Chris@42
|
12405
|
Chris@42
|
12406 sysv4*MP*)
|
Chris@42
|
12407 if test -d /usr/nec ;then
|
Chris@42
|
12408 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
Chris@42
|
12410 soname_spec='$libname${shared_ext}.$major'
|
Chris@42
|
12411 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12412 fi
|
Chris@42
|
12413 ;;
|
Chris@42
|
12414
|
Chris@42
|
12415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
Chris@42
|
12416 version_type=freebsd-elf
|
Chris@42
|
12417 need_lib_prefix=no
|
Chris@42
|
12418 need_version=no
|
Chris@42
|
12419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
Chris@42
|
12420 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12421 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12422 shlibpath_overrides_runpath=yes
|
Chris@42
|
12423 hardcode_into_libs=yes
|
Chris@42
|
12424 if test "$with_gnu_ld" = yes; then
|
Chris@42
|
12425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
Chris@42
|
12426 else
|
Chris@42
|
12427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
Chris@42
|
12428 case $host_os in
|
Chris@42
|
12429 sco3.2v5*)
|
Chris@42
|
12430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
Chris@42
|
12431 ;;
|
Chris@42
|
12432 esac
|
Chris@42
|
12433 fi
|
Chris@42
|
12434 sys_lib_dlsearch_path_spec='/usr/lib'
|
Chris@42
|
12435 ;;
|
Chris@42
|
12436
|
Chris@42
|
12437 tpf*)
|
Chris@42
|
12438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
Chris@42
|
12439 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12440 need_lib_prefix=no
|
Chris@42
|
12441 need_version=no
|
Chris@42
|
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12443 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12444 shlibpath_overrides_runpath=no
|
Chris@42
|
12445 hardcode_into_libs=yes
|
Chris@42
|
12446 ;;
|
Chris@42
|
12447
|
Chris@42
|
12448 uts4*)
|
Chris@42
|
12449 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
12451 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
12452 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
12453 ;;
|
Chris@42
|
12454
|
Chris@42
|
12455 *)
|
Chris@42
|
12456 dynamic_linker=no
|
Chris@42
|
12457 ;;
|
Chris@42
|
12458 esac
|
Chris@42
|
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
|
Chris@42
|
12460 $as_echo "$dynamic_linker" >&6; }
|
Chris@42
|
12461 test "$dynamic_linker" = no && can_build_shared=no
|
Chris@42
|
12462
|
Chris@42
|
12463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
Chris@42
|
12464 if test "$GCC" = yes; then
|
Chris@42
|
12465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
Chris@42
|
12466 fi
|
Chris@42
|
12467
|
Chris@42
|
12468 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
|
Chris@42
|
12469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
|
Chris@42
|
12470 fi
|
Chris@42
|
12471 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
|
Chris@42
|
12472 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
|
Chris@42
|
12473 fi
|
Chris@42
|
12474
|
Chris@42
|
12475
|
Chris@42
|
12476
|
Chris@42
|
12477
|
Chris@42
|
12478
|
Chris@42
|
12479
|
Chris@42
|
12480
|
Chris@42
|
12481
|
Chris@42
|
12482
|
Chris@42
|
12483
|
Chris@42
|
12484
|
Chris@42
|
12485
|
Chris@42
|
12486
|
Chris@42
|
12487
|
Chris@42
|
12488
|
Chris@42
|
12489
|
Chris@42
|
12490
|
Chris@42
|
12491
|
Chris@42
|
12492
|
Chris@42
|
12493
|
Chris@42
|
12494
|
Chris@42
|
12495
|
Chris@42
|
12496
|
Chris@42
|
12497
|
Chris@42
|
12498
|
Chris@42
|
12499
|
Chris@42
|
12500
|
Chris@42
|
12501
|
Chris@42
|
12502
|
Chris@42
|
12503
|
Chris@42
|
12504
|
Chris@42
|
12505
|
Chris@42
|
12506
|
Chris@42
|
12507
|
Chris@42
|
12508
|
Chris@42
|
12509
|
Chris@42
|
12510
|
Chris@42
|
12511
|
Chris@42
|
12512
|
Chris@42
|
12513
|
Chris@42
|
12514
|
Chris@42
|
12515
|
Chris@42
|
12516
|
Chris@42
|
12517
|
Chris@42
|
12518
|
Chris@42
|
12519
|
Chris@42
|
12520
|
Chris@42
|
12521
|
Chris@42
|
12522
|
Chris@42
|
12523
|
Chris@42
|
12524
|
Chris@42
|
12525
|
Chris@42
|
12526
|
Chris@42
|
12527
|
Chris@42
|
12528
|
Chris@42
|
12529
|
Chris@42
|
12530
|
Chris@42
|
12531
|
Chris@42
|
12532
|
Chris@42
|
12533
|
Chris@42
|
12534
|
Chris@42
|
12535
|
Chris@42
|
12536
|
Chris@42
|
12537
|
Chris@42
|
12538
|
Chris@42
|
12539
|
Chris@42
|
12540
|
Chris@42
|
12541
|
Chris@42
|
12542
|
Chris@42
|
12543
|
Chris@42
|
12544
|
Chris@42
|
12545
|
Chris@42
|
12546
|
Chris@42
|
12547
|
Chris@42
|
12548
|
Chris@42
|
12549
|
Chris@42
|
12550
|
Chris@42
|
12551
|
Chris@42
|
12552
|
Chris@42
|
12553
|
Chris@42
|
12554
|
Chris@42
|
12555
|
Chris@42
|
12556
|
Chris@42
|
12557
|
Chris@42
|
12558
|
Chris@42
|
12559
|
Chris@42
|
12560
|
Chris@42
|
12561
|
Chris@42
|
12562
|
Chris@42
|
12563
|
Chris@42
|
12564
|
Chris@42
|
12565
|
Chris@42
|
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
|
Chris@42
|
12567 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
|
Chris@42
|
12568 hardcode_action=
|
Chris@42
|
12569 if test -n "$hardcode_libdir_flag_spec" ||
|
Chris@42
|
12570 test -n "$runpath_var" ||
|
Chris@42
|
12571 test "X$hardcode_automatic" = "Xyes" ; then
|
Chris@42
|
12572
|
Chris@42
|
12573 # We can hardcode non-existent directories.
|
Chris@42
|
12574 if test "$hardcode_direct" != no &&
|
Chris@42
|
12575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
Chris@42
|
12576 # have to relink, otherwise we might link with an installed library
|
Chris@42
|
12577 # when we should be linking with a yet-to-be-installed one
|
Chris@42
|
12578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
|
Chris@42
|
12579 test "$hardcode_minus_L" != no; then
|
Chris@42
|
12580 # Linking always hardcodes the temporary library directory.
|
Chris@42
|
12581 hardcode_action=relink
|
Chris@42
|
12582 else
|
Chris@42
|
12583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
Chris@42
|
12584 hardcode_action=immediate
|
Chris@42
|
12585 fi
|
Chris@42
|
12586 else
|
Chris@42
|
12587 # We cannot hardcode anything, or else we can only hardcode existing
|
Chris@42
|
12588 # directories.
|
Chris@42
|
12589 hardcode_action=unsupported
|
Chris@42
|
12590 fi
|
Chris@42
|
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
|
Chris@42
|
12592 $as_echo "$hardcode_action" >&6; }
|
Chris@42
|
12593
|
Chris@42
|
12594 if test "$hardcode_action" = relink ||
|
Chris@42
|
12595 test "$inherit_rpath" = yes; then
|
Chris@42
|
12596 # Fast installation is not supported
|
Chris@42
|
12597 enable_fast_install=no
|
Chris@42
|
12598 elif test "$shlibpath_overrides_runpath" = yes ||
|
Chris@42
|
12599 test "$enable_shared" = no; then
|
Chris@42
|
12600 # Fast installation is not necessary
|
Chris@42
|
12601 enable_fast_install=needless
|
Chris@42
|
12602 fi
|
Chris@42
|
12603
|
Chris@42
|
12604
|
Chris@42
|
12605
|
Chris@42
|
12606
|
Chris@42
|
12607
|
Chris@42
|
12608
|
Chris@42
|
12609 if test "x$enable_dlopen" != xyes; then
|
Chris@42
|
12610 enable_dlopen=unknown
|
Chris@42
|
12611 enable_dlopen_self=unknown
|
Chris@42
|
12612 enable_dlopen_self_static=unknown
|
Chris@42
|
12613 else
|
Chris@42
|
12614 lt_cv_dlopen=no
|
Chris@42
|
12615 lt_cv_dlopen_libs=
|
Chris@42
|
12616
|
Chris@42
|
12617 case $host_os in
|
Chris@42
|
12618 beos*)
|
Chris@42
|
12619 lt_cv_dlopen="load_add_on"
|
Chris@42
|
12620 lt_cv_dlopen_libs=
|
Chris@42
|
12621 lt_cv_dlopen_self=yes
|
Chris@42
|
12622 ;;
|
Chris@42
|
12623
|
Chris@42
|
12624 mingw* | pw32* | cegcc*)
|
Chris@42
|
12625 lt_cv_dlopen="LoadLibrary"
|
Chris@42
|
12626 lt_cv_dlopen_libs=
|
Chris@42
|
12627 ;;
|
Chris@42
|
12628
|
Chris@42
|
12629 cygwin*)
|
Chris@42
|
12630 lt_cv_dlopen="dlopen"
|
Chris@42
|
12631 lt_cv_dlopen_libs=
|
Chris@42
|
12632 ;;
|
Chris@42
|
12633
|
Chris@42
|
12634 darwin*)
|
Chris@42
|
12635 # if libdl is installed we need to link against it
|
Chris@42
|
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
Chris@42
|
12637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
Chris@42
|
12638 if ${ac_cv_lib_dl_dlopen+:} false; then :
|
Chris@42
|
12639 $as_echo_n "(cached) " >&6
|
Chris@42
|
12640 else
|
Chris@42
|
12641 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
12642 LIBS="-ldl $LIBS"
|
Chris@42
|
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
12644 /* end confdefs.h. */
|
Chris@42
|
12645
|
Chris@42
|
12646 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
12647 Use char because int might match the return type of a GCC
|
Chris@42
|
12648 builtin and then its argument prototype would still apply. */
|
Chris@42
|
12649 #ifdef __cplusplus
|
Chris@42
|
12650 extern "C"
|
Chris@42
|
12651 #endif
|
Chris@42
|
12652 char dlopen ();
|
Chris@42
|
12653 int
|
Chris@42
|
12654 main ()
|
Chris@42
|
12655 {
|
Chris@42
|
12656 return dlopen ();
|
Chris@42
|
12657 ;
|
Chris@42
|
12658 return 0;
|
Chris@42
|
12659 }
|
Chris@42
|
12660 _ACEOF
|
Chris@42
|
12661 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
12662 ac_cv_lib_dl_dlopen=yes
|
Chris@42
|
12663 else
|
Chris@42
|
12664 ac_cv_lib_dl_dlopen=no
|
Chris@42
|
12665 fi
|
Chris@42
|
12666 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
12667 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
12668 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
12669 fi
|
Chris@42
|
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
Chris@42
|
12671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
Chris@42
|
12672 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
Chris@42
|
12673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
Chris@42
|
12674 else
|
Chris@42
|
12675
|
Chris@42
|
12676 lt_cv_dlopen="dyld"
|
Chris@42
|
12677 lt_cv_dlopen_libs=
|
Chris@42
|
12678 lt_cv_dlopen_self=yes
|
Chris@42
|
12679
|
Chris@42
|
12680 fi
|
Chris@42
|
12681
|
Chris@42
|
12682 ;;
|
Chris@42
|
12683
|
Chris@42
|
12684 *)
|
Chris@42
|
12685 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
|
Chris@42
|
12686 if test "x$ac_cv_func_shl_load" = xyes; then :
|
Chris@42
|
12687 lt_cv_dlopen="shl_load"
|
Chris@42
|
12688 else
|
Chris@42
|
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
|
Chris@42
|
12690 $as_echo_n "checking for shl_load in -ldld... " >&6; }
|
Chris@42
|
12691 if ${ac_cv_lib_dld_shl_load+:} false; then :
|
Chris@42
|
12692 $as_echo_n "(cached) " >&6
|
Chris@42
|
12693 else
|
Chris@42
|
12694 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
12695 LIBS="-ldld $LIBS"
|
Chris@42
|
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
12697 /* end confdefs.h. */
|
Chris@42
|
12698
|
Chris@42
|
12699 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
12700 Use char because int might match the return type of a GCC
|
Chris@42
|
12701 builtin and then its argument prototype would still apply. */
|
Chris@42
|
12702 #ifdef __cplusplus
|
Chris@42
|
12703 extern "C"
|
Chris@42
|
12704 #endif
|
Chris@42
|
12705 char shl_load ();
|
Chris@42
|
12706 int
|
Chris@42
|
12707 main ()
|
Chris@42
|
12708 {
|
Chris@42
|
12709 return shl_load ();
|
Chris@42
|
12710 ;
|
Chris@42
|
12711 return 0;
|
Chris@42
|
12712 }
|
Chris@42
|
12713 _ACEOF
|
Chris@42
|
12714 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
12715 ac_cv_lib_dld_shl_load=yes
|
Chris@42
|
12716 else
|
Chris@42
|
12717 ac_cv_lib_dld_shl_load=no
|
Chris@42
|
12718 fi
|
Chris@42
|
12719 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
12720 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
12721 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
12722 fi
|
Chris@42
|
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
|
Chris@42
|
12724 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
|
Chris@42
|
12725 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
|
Chris@42
|
12726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
|
Chris@42
|
12727 else
|
Chris@42
|
12728 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
|
Chris@42
|
12729 if test "x$ac_cv_func_dlopen" = xyes; then :
|
Chris@42
|
12730 lt_cv_dlopen="dlopen"
|
Chris@42
|
12731 else
|
Chris@42
|
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
Chris@42
|
12733 $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
Chris@42
|
12734 if ${ac_cv_lib_dl_dlopen+:} false; then :
|
Chris@42
|
12735 $as_echo_n "(cached) " >&6
|
Chris@42
|
12736 else
|
Chris@42
|
12737 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
12738 LIBS="-ldl $LIBS"
|
Chris@42
|
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
12740 /* end confdefs.h. */
|
Chris@42
|
12741
|
Chris@42
|
12742 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
12743 Use char because int might match the return type of a GCC
|
Chris@42
|
12744 builtin and then its argument prototype would still apply. */
|
Chris@42
|
12745 #ifdef __cplusplus
|
Chris@42
|
12746 extern "C"
|
Chris@42
|
12747 #endif
|
Chris@42
|
12748 char dlopen ();
|
Chris@42
|
12749 int
|
Chris@42
|
12750 main ()
|
Chris@42
|
12751 {
|
Chris@42
|
12752 return dlopen ();
|
Chris@42
|
12753 ;
|
Chris@42
|
12754 return 0;
|
Chris@42
|
12755 }
|
Chris@42
|
12756 _ACEOF
|
Chris@42
|
12757 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
12758 ac_cv_lib_dl_dlopen=yes
|
Chris@42
|
12759 else
|
Chris@42
|
12760 ac_cv_lib_dl_dlopen=no
|
Chris@42
|
12761 fi
|
Chris@42
|
12762 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
12763 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
12764 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
12765 fi
|
Chris@42
|
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
Chris@42
|
12767 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
Chris@42
|
12768 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
Chris@42
|
12769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
Chris@42
|
12770 else
|
Chris@42
|
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
|
Chris@42
|
12772 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
|
Chris@42
|
12773 if ${ac_cv_lib_svld_dlopen+:} false; then :
|
Chris@42
|
12774 $as_echo_n "(cached) " >&6
|
Chris@42
|
12775 else
|
Chris@42
|
12776 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
12777 LIBS="-lsvld $LIBS"
|
Chris@42
|
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
12779 /* end confdefs.h. */
|
Chris@42
|
12780
|
Chris@42
|
12781 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
12782 Use char because int might match the return type of a GCC
|
Chris@42
|
12783 builtin and then its argument prototype would still apply. */
|
Chris@42
|
12784 #ifdef __cplusplus
|
Chris@42
|
12785 extern "C"
|
Chris@42
|
12786 #endif
|
Chris@42
|
12787 char dlopen ();
|
Chris@42
|
12788 int
|
Chris@42
|
12789 main ()
|
Chris@42
|
12790 {
|
Chris@42
|
12791 return dlopen ();
|
Chris@42
|
12792 ;
|
Chris@42
|
12793 return 0;
|
Chris@42
|
12794 }
|
Chris@42
|
12795 _ACEOF
|
Chris@42
|
12796 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
12797 ac_cv_lib_svld_dlopen=yes
|
Chris@42
|
12798 else
|
Chris@42
|
12799 ac_cv_lib_svld_dlopen=no
|
Chris@42
|
12800 fi
|
Chris@42
|
12801 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
12802 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
12803 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
12804 fi
|
Chris@42
|
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
|
Chris@42
|
12806 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
|
Chris@42
|
12807 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
|
Chris@42
|
12808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
Chris@42
|
12809 else
|
Chris@42
|
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
|
Chris@42
|
12811 $as_echo_n "checking for dld_link in -ldld... " >&6; }
|
Chris@42
|
12812 if ${ac_cv_lib_dld_dld_link+:} false; then :
|
Chris@42
|
12813 $as_echo_n "(cached) " >&6
|
Chris@42
|
12814 else
|
Chris@42
|
12815 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
12816 LIBS="-ldld $LIBS"
|
Chris@42
|
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
12818 /* end confdefs.h. */
|
Chris@42
|
12819
|
Chris@42
|
12820 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
12821 Use char because int might match the return type of a GCC
|
Chris@42
|
12822 builtin and then its argument prototype would still apply. */
|
Chris@42
|
12823 #ifdef __cplusplus
|
Chris@42
|
12824 extern "C"
|
Chris@42
|
12825 #endif
|
Chris@42
|
12826 char dld_link ();
|
Chris@42
|
12827 int
|
Chris@42
|
12828 main ()
|
Chris@42
|
12829 {
|
Chris@42
|
12830 return dld_link ();
|
Chris@42
|
12831 ;
|
Chris@42
|
12832 return 0;
|
Chris@42
|
12833 }
|
Chris@42
|
12834 _ACEOF
|
Chris@42
|
12835 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
12836 ac_cv_lib_dld_dld_link=yes
|
Chris@42
|
12837 else
|
Chris@42
|
12838 ac_cv_lib_dld_dld_link=no
|
Chris@42
|
12839 fi
|
Chris@42
|
12840 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
12841 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
12842 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
12843 fi
|
Chris@42
|
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
|
Chris@42
|
12845 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
|
Chris@42
|
12846 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
|
Chris@42
|
12847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
|
Chris@42
|
12848 fi
|
Chris@42
|
12849
|
Chris@42
|
12850
|
Chris@42
|
12851 fi
|
Chris@42
|
12852
|
Chris@42
|
12853
|
Chris@42
|
12854 fi
|
Chris@42
|
12855
|
Chris@42
|
12856
|
Chris@42
|
12857 fi
|
Chris@42
|
12858
|
Chris@42
|
12859
|
Chris@42
|
12860 fi
|
Chris@42
|
12861
|
Chris@42
|
12862
|
Chris@42
|
12863 fi
|
Chris@42
|
12864
|
Chris@42
|
12865 ;;
|
Chris@42
|
12866 esac
|
Chris@42
|
12867
|
Chris@42
|
12868 if test "x$lt_cv_dlopen" != xno; then
|
Chris@42
|
12869 enable_dlopen=yes
|
Chris@42
|
12870 else
|
Chris@42
|
12871 enable_dlopen=no
|
Chris@42
|
12872 fi
|
Chris@42
|
12873
|
Chris@42
|
12874 case $lt_cv_dlopen in
|
Chris@42
|
12875 dlopen)
|
Chris@42
|
12876 save_CPPFLAGS="$CPPFLAGS"
|
Chris@42
|
12877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
Chris@42
|
12878
|
Chris@42
|
12879 save_LDFLAGS="$LDFLAGS"
|
Chris@42
|
12880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
Chris@42
|
12881
|
Chris@42
|
12882 save_LIBS="$LIBS"
|
Chris@42
|
12883 LIBS="$lt_cv_dlopen_libs $LIBS"
|
Chris@42
|
12884
|
Chris@42
|
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
|
Chris@42
|
12886 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
|
Chris@42
|
12887 if ${lt_cv_dlopen_self+:} false; then :
|
Chris@42
|
12888 $as_echo_n "(cached) " >&6
|
Chris@42
|
12889 else
|
Chris@42
|
12890 if test "$cross_compiling" = yes; then :
|
Chris@42
|
12891 lt_cv_dlopen_self=cross
|
Chris@42
|
12892 else
|
Chris@42
|
12893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
Chris@42
|
12894 lt_status=$lt_dlunknown
|
Chris@42
|
12895 cat > conftest.$ac_ext <<_LT_EOF
|
Chris@42
|
12896 #line $LINENO "configure"
|
Chris@42
|
12897 #include "confdefs.h"
|
Chris@42
|
12898
|
Chris@42
|
12899 #if HAVE_DLFCN_H
|
Chris@42
|
12900 #include <dlfcn.h>
|
Chris@42
|
12901 #endif
|
Chris@42
|
12902
|
Chris@42
|
12903 #include <stdio.h>
|
Chris@42
|
12904
|
Chris@42
|
12905 #ifdef RTLD_GLOBAL
|
Chris@42
|
12906 # define LT_DLGLOBAL RTLD_GLOBAL
|
Chris@42
|
12907 #else
|
Chris@42
|
12908 # ifdef DL_GLOBAL
|
Chris@42
|
12909 # define LT_DLGLOBAL DL_GLOBAL
|
Chris@42
|
12910 # else
|
Chris@42
|
12911 # define LT_DLGLOBAL 0
|
Chris@42
|
12912 # endif
|
Chris@42
|
12913 #endif
|
Chris@42
|
12914
|
Chris@42
|
12915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
Chris@42
|
12916 find out it does not work in some platform. */
|
Chris@42
|
12917 #ifndef LT_DLLAZY_OR_NOW
|
Chris@42
|
12918 # ifdef RTLD_LAZY
|
Chris@42
|
12919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
Chris@42
|
12920 # else
|
Chris@42
|
12921 # ifdef DL_LAZY
|
Chris@42
|
12922 # define LT_DLLAZY_OR_NOW DL_LAZY
|
Chris@42
|
12923 # else
|
Chris@42
|
12924 # ifdef RTLD_NOW
|
Chris@42
|
12925 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
Chris@42
|
12926 # else
|
Chris@42
|
12927 # ifdef DL_NOW
|
Chris@42
|
12928 # define LT_DLLAZY_OR_NOW DL_NOW
|
Chris@42
|
12929 # else
|
Chris@42
|
12930 # define LT_DLLAZY_OR_NOW 0
|
Chris@42
|
12931 # endif
|
Chris@42
|
12932 # endif
|
Chris@42
|
12933 # endif
|
Chris@42
|
12934 # endif
|
Chris@42
|
12935 #endif
|
Chris@42
|
12936
|
Chris@42
|
12937 /* When -fvisbility=hidden is used, assume the code has been annotated
|
Chris@42
|
12938 correspondingly for the symbols needed. */
|
Chris@42
|
12939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
Chris@42
|
12940 int fnord () __attribute__((visibility("default")));
|
Chris@42
|
12941 #endif
|
Chris@42
|
12942
|
Chris@42
|
12943 int fnord () { return 42; }
|
Chris@42
|
12944 int main ()
|
Chris@42
|
12945 {
|
Chris@42
|
12946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
Chris@42
|
12947 int status = $lt_dlunknown;
|
Chris@42
|
12948
|
Chris@42
|
12949 if (self)
|
Chris@42
|
12950 {
|
Chris@42
|
12951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
Chris@42
|
12952 else
|
Chris@42
|
12953 {
|
Chris@42
|
12954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
Chris@42
|
12955 else puts (dlerror ());
|
Chris@42
|
12956 }
|
Chris@42
|
12957 /* dlclose (self); */
|
Chris@42
|
12958 }
|
Chris@42
|
12959 else
|
Chris@42
|
12960 puts (dlerror ());
|
Chris@42
|
12961
|
Chris@42
|
12962 return status;
|
Chris@42
|
12963 }
|
Chris@42
|
12964 _LT_EOF
|
Chris@42
|
12965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
Chris@42
|
12966 (eval $ac_link) 2>&5
|
Chris@42
|
12967 ac_status=$?
|
Chris@42
|
12968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
12969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
|
Chris@42
|
12970 (./conftest; exit; ) >&5 2>/dev/null
|
Chris@42
|
12971 lt_status=$?
|
Chris@42
|
12972 case x$lt_status in
|
Chris@42
|
12973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
Chris@42
|
12974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
Chris@42
|
12975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
Chris@42
|
12976 esac
|
Chris@42
|
12977 else :
|
Chris@42
|
12978 # compilation failed
|
Chris@42
|
12979 lt_cv_dlopen_self=no
|
Chris@42
|
12980 fi
|
Chris@42
|
12981 fi
|
Chris@42
|
12982 rm -fr conftest*
|
Chris@42
|
12983
|
Chris@42
|
12984
|
Chris@42
|
12985 fi
|
Chris@42
|
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
|
Chris@42
|
12987 $as_echo "$lt_cv_dlopen_self" >&6; }
|
Chris@42
|
12988
|
Chris@42
|
12989 if test "x$lt_cv_dlopen_self" = xyes; then
|
Chris@42
|
12990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
Chris@42
|
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
|
Chris@42
|
12992 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
|
Chris@42
|
12993 if ${lt_cv_dlopen_self_static+:} false; then :
|
Chris@42
|
12994 $as_echo_n "(cached) " >&6
|
Chris@42
|
12995 else
|
Chris@42
|
12996 if test "$cross_compiling" = yes; then :
|
Chris@42
|
12997 lt_cv_dlopen_self_static=cross
|
Chris@42
|
12998 else
|
Chris@42
|
12999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
Chris@42
|
13000 lt_status=$lt_dlunknown
|
Chris@42
|
13001 cat > conftest.$ac_ext <<_LT_EOF
|
Chris@42
|
13002 #line $LINENO "configure"
|
Chris@42
|
13003 #include "confdefs.h"
|
Chris@42
|
13004
|
Chris@42
|
13005 #if HAVE_DLFCN_H
|
Chris@42
|
13006 #include <dlfcn.h>
|
Chris@42
|
13007 #endif
|
Chris@42
|
13008
|
Chris@42
|
13009 #include <stdio.h>
|
Chris@42
|
13010
|
Chris@42
|
13011 #ifdef RTLD_GLOBAL
|
Chris@42
|
13012 # define LT_DLGLOBAL RTLD_GLOBAL
|
Chris@42
|
13013 #else
|
Chris@42
|
13014 # ifdef DL_GLOBAL
|
Chris@42
|
13015 # define LT_DLGLOBAL DL_GLOBAL
|
Chris@42
|
13016 # else
|
Chris@42
|
13017 # define LT_DLGLOBAL 0
|
Chris@42
|
13018 # endif
|
Chris@42
|
13019 #endif
|
Chris@42
|
13020
|
Chris@42
|
13021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
Chris@42
|
13022 find out it does not work in some platform. */
|
Chris@42
|
13023 #ifndef LT_DLLAZY_OR_NOW
|
Chris@42
|
13024 # ifdef RTLD_LAZY
|
Chris@42
|
13025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
Chris@42
|
13026 # else
|
Chris@42
|
13027 # ifdef DL_LAZY
|
Chris@42
|
13028 # define LT_DLLAZY_OR_NOW DL_LAZY
|
Chris@42
|
13029 # else
|
Chris@42
|
13030 # ifdef RTLD_NOW
|
Chris@42
|
13031 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
Chris@42
|
13032 # else
|
Chris@42
|
13033 # ifdef DL_NOW
|
Chris@42
|
13034 # define LT_DLLAZY_OR_NOW DL_NOW
|
Chris@42
|
13035 # else
|
Chris@42
|
13036 # define LT_DLLAZY_OR_NOW 0
|
Chris@42
|
13037 # endif
|
Chris@42
|
13038 # endif
|
Chris@42
|
13039 # endif
|
Chris@42
|
13040 # endif
|
Chris@42
|
13041 #endif
|
Chris@42
|
13042
|
Chris@42
|
13043 /* When -fvisbility=hidden is used, assume the code has been annotated
|
Chris@42
|
13044 correspondingly for the symbols needed. */
|
Chris@42
|
13045 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
Chris@42
|
13046 int fnord () __attribute__((visibility("default")));
|
Chris@42
|
13047 #endif
|
Chris@42
|
13048
|
Chris@42
|
13049 int fnord () { return 42; }
|
Chris@42
|
13050 int main ()
|
Chris@42
|
13051 {
|
Chris@42
|
13052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
Chris@42
|
13053 int status = $lt_dlunknown;
|
Chris@42
|
13054
|
Chris@42
|
13055 if (self)
|
Chris@42
|
13056 {
|
Chris@42
|
13057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
Chris@42
|
13058 else
|
Chris@42
|
13059 {
|
Chris@42
|
13060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
Chris@42
|
13061 else puts (dlerror ());
|
Chris@42
|
13062 }
|
Chris@42
|
13063 /* dlclose (self); */
|
Chris@42
|
13064 }
|
Chris@42
|
13065 else
|
Chris@42
|
13066 puts (dlerror ());
|
Chris@42
|
13067
|
Chris@42
|
13068 return status;
|
Chris@42
|
13069 }
|
Chris@42
|
13070 _LT_EOF
|
Chris@42
|
13071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
Chris@42
|
13072 (eval $ac_link) 2>&5
|
Chris@42
|
13073 ac_status=$?
|
Chris@42
|
13074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
13075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
|
Chris@42
|
13076 (./conftest; exit; ) >&5 2>/dev/null
|
Chris@42
|
13077 lt_status=$?
|
Chris@42
|
13078 case x$lt_status in
|
Chris@42
|
13079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
Chris@42
|
13080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
Chris@42
|
13081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
Chris@42
|
13082 esac
|
Chris@42
|
13083 else :
|
Chris@42
|
13084 # compilation failed
|
Chris@42
|
13085 lt_cv_dlopen_self_static=no
|
Chris@42
|
13086 fi
|
Chris@42
|
13087 fi
|
Chris@42
|
13088 rm -fr conftest*
|
Chris@42
|
13089
|
Chris@42
|
13090
|
Chris@42
|
13091 fi
|
Chris@42
|
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
|
Chris@42
|
13093 $as_echo "$lt_cv_dlopen_self_static" >&6; }
|
Chris@42
|
13094 fi
|
Chris@42
|
13095
|
Chris@42
|
13096 CPPFLAGS="$save_CPPFLAGS"
|
Chris@42
|
13097 LDFLAGS="$save_LDFLAGS"
|
Chris@42
|
13098 LIBS="$save_LIBS"
|
Chris@42
|
13099 ;;
|
Chris@42
|
13100 esac
|
Chris@42
|
13101
|
Chris@42
|
13102 case $lt_cv_dlopen_self in
|
Chris@42
|
13103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
Chris@42
|
13104 *) enable_dlopen_self=unknown ;;
|
Chris@42
|
13105 esac
|
Chris@42
|
13106
|
Chris@42
|
13107 case $lt_cv_dlopen_self_static in
|
Chris@42
|
13108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
Chris@42
|
13109 *) enable_dlopen_self_static=unknown ;;
|
Chris@42
|
13110 esac
|
Chris@42
|
13111 fi
|
Chris@42
|
13112
|
Chris@42
|
13113
|
Chris@42
|
13114
|
Chris@42
|
13115
|
Chris@42
|
13116
|
Chris@42
|
13117
|
Chris@42
|
13118
|
Chris@42
|
13119
|
Chris@42
|
13120
|
Chris@42
|
13121
|
Chris@42
|
13122
|
Chris@42
|
13123
|
Chris@42
|
13124
|
Chris@42
|
13125
|
Chris@42
|
13126
|
Chris@42
|
13127
|
Chris@42
|
13128
|
Chris@42
|
13129 striplib=
|
Chris@42
|
13130 old_striplib=
|
Chris@42
|
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
|
Chris@42
|
13132 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
|
Chris@42
|
13133 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
Chris@42
|
13134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
Chris@42
|
13135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
Chris@42
|
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
13137 $as_echo "yes" >&6; }
|
Chris@42
|
13138 else
|
Chris@42
|
13139 # FIXME - insert some real tests, host_os isn't really good enough
|
Chris@42
|
13140 case $host_os in
|
Chris@42
|
13141 darwin*)
|
Chris@42
|
13142 if test -n "$STRIP" ; then
|
Chris@42
|
13143 striplib="$STRIP -x"
|
Chris@42
|
13144 old_striplib="$STRIP -S"
|
Chris@42
|
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
13146 $as_echo "yes" >&6; }
|
Chris@42
|
13147 else
|
Chris@42
|
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
13149 $as_echo "no" >&6; }
|
Chris@42
|
13150 fi
|
Chris@42
|
13151 ;;
|
Chris@42
|
13152 *)
|
Chris@42
|
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
13154 $as_echo "no" >&6; }
|
Chris@42
|
13155 ;;
|
Chris@42
|
13156 esac
|
Chris@42
|
13157 fi
|
Chris@42
|
13158
|
Chris@42
|
13159
|
Chris@42
|
13160
|
Chris@42
|
13161
|
Chris@42
|
13162
|
Chris@42
|
13163
|
Chris@42
|
13164
|
Chris@42
|
13165
|
Chris@42
|
13166
|
Chris@42
|
13167
|
Chris@42
|
13168
|
Chris@42
|
13169
|
Chris@42
|
13170 # Report which library types will actually be built
|
Chris@42
|
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
|
Chris@42
|
13172 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
|
Chris@42
|
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
|
Chris@42
|
13174 $as_echo "$can_build_shared" >&6; }
|
Chris@42
|
13175
|
Chris@42
|
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
|
Chris@42
|
13177 $as_echo_n "checking whether to build shared libraries... " >&6; }
|
Chris@42
|
13178 test "$can_build_shared" = "no" && enable_shared=no
|
Chris@42
|
13179
|
Chris@42
|
13180 # On AIX, shared libraries and static libraries use the same namespace, and
|
Chris@42
|
13181 # are all built from PIC.
|
Chris@42
|
13182 case $host_os in
|
Chris@42
|
13183 aix3*)
|
Chris@42
|
13184 test "$enable_shared" = yes && enable_static=no
|
Chris@42
|
13185 if test -n "$RANLIB"; then
|
Chris@42
|
13186 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
Chris@42
|
13187 postinstall_cmds='$RANLIB $lib'
|
Chris@42
|
13188 fi
|
Chris@42
|
13189 ;;
|
Chris@42
|
13190
|
Chris@42
|
13191 aix[4-9]*)
|
Chris@42
|
13192 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
Chris@42
|
13193 test "$enable_shared" = yes && enable_static=no
|
Chris@42
|
13194 fi
|
Chris@42
|
13195 ;;
|
Chris@42
|
13196 esac
|
Chris@42
|
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
|
Chris@42
|
13198 $as_echo "$enable_shared" >&6; }
|
Chris@42
|
13199
|
Chris@42
|
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
|
Chris@42
|
13201 $as_echo_n "checking whether to build static libraries... " >&6; }
|
Chris@42
|
13202 # Make sure either enable_shared or enable_static is yes.
|
Chris@42
|
13203 test "$enable_shared" = yes || enable_static=yes
|
Chris@42
|
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
|
Chris@42
|
13205 $as_echo "$enable_static" >&6; }
|
Chris@42
|
13206
|
Chris@42
|
13207
|
Chris@42
|
13208
|
Chris@42
|
13209
|
Chris@42
|
13210 fi
|
Chris@42
|
13211 ac_ext=c
|
Chris@42
|
13212 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
13213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
13214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
13215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
13216
|
Chris@42
|
13217 CC="$lt_save_CC"
|
Chris@42
|
13218
|
Chris@42
|
13219
|
Chris@42
|
13220
|
Chris@42
|
13221
|
Chris@42
|
13222
|
Chris@42
|
13223
|
Chris@42
|
13224
|
Chris@42
|
13225
|
Chris@42
|
13226
|
Chris@42
|
13227
|
Chris@42
|
13228
|
Chris@42
|
13229
|
Chris@42
|
13230
|
Chris@42
|
13231
|
Chris@42
|
13232
|
Chris@42
|
13233 ac_config_commands="$ac_config_commands libtool"
|
Chris@42
|
13234
|
Chris@42
|
13235
|
Chris@42
|
13236
|
Chris@42
|
13237
|
Chris@42
|
13238 # Only expand once:
|
Chris@42
|
13239
|
Chris@42
|
13240
|
Chris@42
|
13241
|
Chris@42
|
13242 # Extract the first word of "ocamlbuild", so it can be a program name with args.
|
Chris@42
|
13243 set dummy ocamlbuild; ac_word=$2
|
Chris@42
|
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
13245 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
13246 if ${ac_cv_prog_OCAMLBUILD+:} false; then :
|
Chris@42
|
13247 $as_echo_n "(cached) " >&6
|
Chris@42
|
13248 else
|
Chris@42
|
13249 if test -n "$OCAMLBUILD"; then
|
Chris@42
|
13250 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
|
Chris@42
|
13251 else
|
Chris@42
|
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
13253 for as_dir in $PATH
|
Chris@42
|
13254 do
|
Chris@42
|
13255 IFS=$as_save_IFS
|
Chris@42
|
13256 test -z "$as_dir" && as_dir=.
|
Chris@42
|
13257 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
13258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
13259 ac_cv_prog_OCAMLBUILD="ocamlbuild"
|
Chris@42
|
13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
13261 break 2
|
Chris@42
|
13262 fi
|
Chris@42
|
13263 done
|
Chris@42
|
13264 done
|
Chris@42
|
13265 IFS=$as_save_IFS
|
Chris@42
|
13266
|
Chris@42
|
13267 fi
|
Chris@42
|
13268 fi
|
Chris@42
|
13269 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
|
Chris@42
|
13270 if test -n "$OCAMLBUILD"; then
|
Chris@42
|
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
|
Chris@42
|
13272 $as_echo "$OCAMLBUILD" >&6; }
|
Chris@42
|
13273 else
|
Chris@42
|
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
13275 $as_echo "no" >&6; }
|
Chris@42
|
13276 fi
|
Chris@42
|
13277
|
Chris@42
|
13278
|
Chris@42
|
13279
|
Chris@42
|
13280
|
Chris@42
|
13281 # Check whether --enable-mpi was given.
|
Chris@42
|
13282 if test "${enable_mpi+set}" = set; then :
|
Chris@42
|
13283 enableval=$enable_mpi; enable_mpi=$enableval
|
Chris@42
|
13284 else
|
Chris@42
|
13285 enable_mpi=no
|
Chris@42
|
13286 fi
|
Chris@42
|
13287
|
Chris@42
|
13288
|
Chris@42
|
13289 if test "$enable_mpi" = "yes"; then
|
Chris@42
|
13290 if test $PRECISION = q; then
|
Chris@42
|
13291 as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5
|
Chris@42
|
13292 fi
|
Chris@42
|
13293
|
Chris@42
|
13294
|
Chris@42
|
13295
|
Chris@42
|
13296
|
Chris@42
|
13297
|
Chris@42
|
13298 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc
|
Chris@42
|
13299 do
|
Chris@42
|
13300 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
Chris@42
|
13301 set dummy $ac_prog; ac_word=$2
|
Chris@42
|
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
13303 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
13304 if ${ac_cv_prog_MPICC+:} false; then :
|
Chris@42
|
13305 $as_echo_n "(cached) " >&6
|
Chris@42
|
13306 else
|
Chris@42
|
13307 if test -n "$MPICC"; then
|
Chris@42
|
13308 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
|
Chris@42
|
13309 else
|
Chris@42
|
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
13311 for as_dir in $PATH
|
Chris@42
|
13312 do
|
Chris@42
|
13313 IFS=$as_save_IFS
|
Chris@42
|
13314 test -z "$as_dir" && as_dir=.
|
Chris@42
|
13315 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
13316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
13317 ac_cv_prog_MPICC="$ac_prog"
|
Chris@42
|
13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
13319 break 2
|
Chris@42
|
13320 fi
|
Chris@42
|
13321 done
|
Chris@42
|
13322 done
|
Chris@42
|
13323 IFS=$as_save_IFS
|
Chris@42
|
13324
|
Chris@42
|
13325 fi
|
Chris@42
|
13326 fi
|
Chris@42
|
13327 MPICC=$ac_cv_prog_MPICC
|
Chris@42
|
13328 if test -n "$MPICC"; then
|
Chris@42
|
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
|
Chris@42
|
13330 $as_echo "$MPICC" >&6; }
|
Chris@42
|
13331 else
|
Chris@42
|
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
13333 $as_echo "no" >&6; }
|
Chris@42
|
13334 fi
|
Chris@42
|
13335
|
Chris@42
|
13336
|
Chris@42
|
13337 test -n "$MPICC" && break
|
Chris@42
|
13338 done
|
Chris@42
|
13339 test -n "$MPICC" || MPICC="$CC"
|
Chris@42
|
13340
|
Chris@42
|
13341 acx_mpi_save_CC="$CC"
|
Chris@42
|
13342 CC="$MPICC"
|
Chris@42
|
13343
|
Chris@42
|
13344
|
Chris@42
|
13345
|
Chris@42
|
13346 if test x = x"$MPILIBS"; then
|
Chris@42
|
13347 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
|
Chris@42
|
13348 if test "x$ac_cv_func_MPI_Init" = xyes; then :
|
Chris@42
|
13349 MPILIBS=" "
|
Chris@42
|
13350 fi
|
Chris@42
|
13351
|
Chris@42
|
13352 fi
|
Chris@42
|
13353 if test x = x"$MPILIBS"; then
|
Chris@42
|
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
|
Chris@42
|
13355 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
|
Chris@42
|
13356 if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
|
Chris@42
|
13357 $as_echo_n "(cached) " >&6
|
Chris@42
|
13358 else
|
Chris@42
|
13359 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
13360 LIBS="-lmpi $LIBS"
|
Chris@42
|
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13362 /* end confdefs.h. */
|
Chris@42
|
13363
|
Chris@42
|
13364 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
13365 Use char because int might match the return type of a GCC
|
Chris@42
|
13366 builtin and then its argument prototype would still apply. */
|
Chris@42
|
13367 #ifdef __cplusplus
|
Chris@42
|
13368 extern "C"
|
Chris@42
|
13369 #endif
|
Chris@42
|
13370 char MPI_Init ();
|
Chris@42
|
13371 int
|
Chris@42
|
13372 main ()
|
Chris@42
|
13373 {
|
Chris@42
|
13374 return MPI_Init ();
|
Chris@42
|
13375 ;
|
Chris@42
|
13376 return 0;
|
Chris@42
|
13377 }
|
Chris@42
|
13378 _ACEOF
|
Chris@42
|
13379 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
13380 ac_cv_lib_mpi_MPI_Init=yes
|
Chris@42
|
13381 else
|
Chris@42
|
13382 ac_cv_lib_mpi_MPI_Init=no
|
Chris@42
|
13383 fi
|
Chris@42
|
13384 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
13385 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
13386 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
13387 fi
|
Chris@42
|
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
|
Chris@42
|
13389 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
|
Chris@42
|
13390 if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
|
Chris@42
|
13391 MPILIBS="-lmpi"
|
Chris@42
|
13392 fi
|
Chris@42
|
13393
|
Chris@42
|
13394 fi
|
Chris@42
|
13395 if test x = x"$MPILIBS"; then
|
Chris@42
|
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
|
Chris@42
|
13397 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
|
Chris@42
|
13398 if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
|
Chris@42
|
13399 $as_echo_n "(cached) " >&6
|
Chris@42
|
13400 else
|
Chris@42
|
13401 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
13402 LIBS="-lmpich $LIBS"
|
Chris@42
|
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13404 /* end confdefs.h. */
|
Chris@42
|
13405
|
Chris@42
|
13406 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
13407 Use char because int might match the return type of a GCC
|
Chris@42
|
13408 builtin and then its argument prototype would still apply. */
|
Chris@42
|
13409 #ifdef __cplusplus
|
Chris@42
|
13410 extern "C"
|
Chris@42
|
13411 #endif
|
Chris@42
|
13412 char MPI_Init ();
|
Chris@42
|
13413 int
|
Chris@42
|
13414 main ()
|
Chris@42
|
13415 {
|
Chris@42
|
13416 return MPI_Init ();
|
Chris@42
|
13417 ;
|
Chris@42
|
13418 return 0;
|
Chris@42
|
13419 }
|
Chris@42
|
13420 _ACEOF
|
Chris@42
|
13421 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
13422 ac_cv_lib_mpich_MPI_Init=yes
|
Chris@42
|
13423 else
|
Chris@42
|
13424 ac_cv_lib_mpich_MPI_Init=no
|
Chris@42
|
13425 fi
|
Chris@42
|
13426 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
13427 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
13428 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
13429 fi
|
Chris@42
|
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
|
Chris@42
|
13431 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
|
Chris@42
|
13432 if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
|
Chris@42
|
13433 MPILIBS="-lmpich"
|
Chris@42
|
13434 fi
|
Chris@42
|
13435
|
Chris@42
|
13436 fi
|
Chris@42
|
13437
|
Chris@42
|
13438 if test x != x"$MPILIBS"; then
|
Chris@42
|
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
|
Chris@42
|
13440 $as_echo_n "checking for mpi.h... " >&6; }
|
Chris@42
|
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13442 /* end confdefs.h. */
|
Chris@42
|
13443 #include <mpi.h>
|
Chris@42
|
13444 int
|
Chris@42
|
13445 main ()
|
Chris@42
|
13446 {
|
Chris@42
|
13447
|
Chris@42
|
13448 ;
|
Chris@42
|
13449 return 0;
|
Chris@42
|
13450 }
|
Chris@42
|
13451 _ACEOF
|
Chris@42
|
13452 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
13454 $as_echo "yes" >&6; }
|
Chris@42
|
13455 else
|
Chris@42
|
13456 MPILIBS=""
|
Chris@42
|
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
13458 $as_echo "no" >&6; }
|
Chris@42
|
13459 fi
|
Chris@42
|
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13461 fi
|
Chris@42
|
13462
|
Chris@42
|
13463 CC="$acx_mpi_save_CC"
|
Chris@42
|
13464
|
Chris@42
|
13465
|
Chris@42
|
13466
|
Chris@42
|
13467 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
Chris@42
|
13468 if test x = x"$MPILIBS"; then
|
Chris@42
|
13469 as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5
|
Chris@42
|
13470 :
|
Chris@42
|
13471 else
|
Chris@42
|
13472
|
Chris@42
|
13473 $as_echo "#define HAVE_MPI 1" >>confdefs.h
|
Chris@42
|
13474
|
Chris@42
|
13475 :
|
Chris@42
|
13476 fi
|
Chris@42
|
13477
|
Chris@42
|
13478 # Extract the first word of "mpirun", so it can be a program name with args.
|
Chris@42
|
13479 set dummy mpirun; ac_word=$2
|
Chris@42
|
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
13481 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
13482 if ${ac_cv_prog_MPIRUN+:} false; then :
|
Chris@42
|
13483 $as_echo_n "(cached) " >&6
|
Chris@42
|
13484 else
|
Chris@42
|
13485 if test -n "$MPIRUN"; then
|
Chris@42
|
13486 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
|
Chris@42
|
13487 else
|
Chris@42
|
13488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
13489 for as_dir in $PATH
|
Chris@42
|
13490 do
|
Chris@42
|
13491 IFS=$as_save_IFS
|
Chris@42
|
13492 test -z "$as_dir" && as_dir=.
|
Chris@42
|
13493 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
13494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
13495 ac_cv_prog_MPIRUN="mpirun"
|
Chris@42
|
13496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
13497 break 2
|
Chris@42
|
13498 fi
|
Chris@42
|
13499 done
|
Chris@42
|
13500 done
|
Chris@42
|
13501 IFS=$as_save_IFS
|
Chris@42
|
13502
|
Chris@42
|
13503 fi
|
Chris@42
|
13504 fi
|
Chris@42
|
13505 MPIRUN=$ac_cv_prog_MPIRUN
|
Chris@42
|
13506 if test -n "$MPIRUN"; then
|
Chris@42
|
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5
|
Chris@42
|
13508 $as_echo "$MPIRUN" >&6; }
|
Chris@42
|
13509 else
|
Chris@42
|
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
13511 $as_echo "no" >&6; }
|
Chris@42
|
13512 fi
|
Chris@42
|
13513
|
Chris@42
|
13514
|
Chris@42
|
13515
|
Chris@42
|
13516
|
Chris@42
|
13517 save_CC=$CC
|
Chris@42
|
13518 CC=$MPICC
|
Chris@42
|
13519 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
13520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
13521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
13522 # This bug is HP SR number 8606223364.
|
Chris@42
|
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5
|
Chris@42
|
13524 $as_echo_n "checking size of MPI_Fint... " >&6; }
|
Chris@42
|
13525 if ${ac_cv_sizeof_MPI_Fint+:} false; then :
|
Chris@42
|
13526 $as_echo_n "(cached) " >&6
|
Chris@42
|
13527 else
|
Chris@42
|
13528 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint" "#include <mpi.h>
|
Chris@42
|
13529 "; then :
|
Chris@42
|
13530
|
Chris@42
|
13531 else
|
Chris@42
|
13532 if test "$ac_cv_type_MPI_Fint" = yes; then
|
Chris@42
|
13533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
13534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
13535 as_fn_error 77 "cannot compute sizeof (MPI_Fint)
|
Chris@42
|
13536 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
13537 else
|
Chris@42
|
13538 ac_cv_sizeof_MPI_Fint=0
|
Chris@42
|
13539 fi
|
Chris@42
|
13540 fi
|
Chris@42
|
13541
|
Chris@42
|
13542 fi
|
Chris@42
|
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5
|
Chris@42
|
13544 $as_echo "$ac_cv_sizeof_MPI_Fint" >&6; }
|
Chris@42
|
13545
|
Chris@42
|
13546
|
Chris@42
|
13547
|
Chris@42
|
13548 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
13549 #define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint
|
Chris@42
|
13550 _ACEOF
|
Chris@42
|
13551
|
Chris@42
|
13552
|
Chris@42
|
13553 CC=$save_CC
|
Chris@42
|
13554 if test 0 = $ac_cv_sizeof_MPI_Fint; then
|
Chris@42
|
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5
|
Chris@42
|
13556 $as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;};
|
Chris@42
|
13557 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
13558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
13559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
13560 # This bug is HP SR number 8606223364.
|
Chris@42
|
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
|
Chris@42
|
13562 $as_echo_n "checking size of int... " >&6; }
|
Chris@42
|
13563 if ${ac_cv_sizeof_int+:} false; then :
|
Chris@42
|
13564 $as_echo_n "(cached) " >&6
|
Chris@42
|
13565 else
|
Chris@42
|
13566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
|
Chris@42
|
13567
|
Chris@42
|
13568 else
|
Chris@42
|
13569 if test "$ac_cv_type_int" = yes; then
|
Chris@42
|
13570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
13571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
13572 as_fn_error 77 "cannot compute sizeof (int)
|
Chris@42
|
13573 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
13574 else
|
Chris@42
|
13575 ac_cv_sizeof_int=0
|
Chris@42
|
13576 fi
|
Chris@42
|
13577 fi
|
Chris@42
|
13578
|
Chris@42
|
13579 fi
|
Chris@42
|
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
|
Chris@42
|
13581 $as_echo "$ac_cv_sizeof_int" >&6; }
|
Chris@42
|
13582
|
Chris@42
|
13583
|
Chris@42
|
13584
|
Chris@42
|
13585 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
13586 #define SIZEOF_INT $ac_cv_sizeof_int
|
Chris@42
|
13587 _ACEOF
|
Chris@42
|
13588
|
Chris@42
|
13589
|
Chris@42
|
13590 if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi
|
Chris@42
|
13591 ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int
|
Chris@42
|
13592 fi
|
Chris@42
|
13593 C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T
|
Chris@42
|
13594
|
Chris@42
|
13595 fi
|
Chris@42
|
13596 if test "$enable_mpi" = "yes"; then
|
Chris@42
|
13597 MPI_TRUE=
|
Chris@42
|
13598 MPI_FALSE='#'
|
Chris@42
|
13599 else
|
Chris@42
|
13600 MPI_TRUE='#'
|
Chris@42
|
13601 MPI_FALSE=
|
Chris@42
|
13602 fi
|
Chris@42
|
13603
|
Chris@42
|
13604
|
Chris@42
|
13605
|
Chris@42
|
13606
|
Chris@42
|
13607
|
Chris@42
|
13608
|
Chris@42
|
13609
|
Chris@42
|
13610
|
Chris@42
|
13611 # Try to determine "good" native compiler flags if none specified via CFLAGS
|
Chris@42
|
13612 if test "$ac_test_CFLAGS" != "set"; then
|
Chris@42
|
13613 CFLAGS=""
|
Chris@42
|
13614 case $ax_cv_c_compiler_vendor in
|
Chris@42
|
13615 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
|
Chris@42
|
13616 ;;
|
Chris@42
|
13617
|
Chris@42
|
13618 sun) CFLAGS="-native -fast -xO5 -dalign"
|
Chris@42
|
13619 ;;
|
Chris@42
|
13620
|
Chris@42
|
13621 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
|
Chris@42
|
13622 ;;
|
Chris@42
|
13623
|
Chris@42
|
13624 ibm) xlc_opt="-qarch=auto -qtune=auto"
|
Chris@42
|
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
|
Chris@42
|
13626 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
|
Chris@42
|
13627 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13628 CFLAGS="$xlc_opt"
|
Chris@42
|
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13630 /* end confdefs.h. */
|
Chris@42
|
13631
|
Chris@42
|
13632 int
|
Chris@42
|
13633 main ()
|
Chris@42
|
13634 {
|
Chris@42
|
13635
|
Chris@42
|
13636 ;
|
Chris@42
|
13637 return 0;
|
Chris@42
|
13638 }
|
Chris@42
|
13639 _ACEOF
|
Chris@42
|
13640 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13641 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
|
Chris@42
|
13642 else
|
Chris@42
|
13643 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
|
Chris@42
|
13644 fi
|
Chris@42
|
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13646 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
13647 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
|
Chris@42
|
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
13649 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
13650 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
13651 CFLAGS="-O3 -qalias=ansi -w $xlc_opt"
|
Chris@42
|
13652 else
|
Chris@42
|
13653 CFLAGS="-O3 -qalias=ansi -w"
|
Chris@42
|
13654 fi
|
Chris@42
|
13655
|
Chris@42
|
13656 ;;
|
Chris@42
|
13657
|
Chris@42
|
13658 intel) CFLAGS="-O3"
|
Chris@42
|
13659 # Intel seems to have changed the spelling of this flag recently
|
Chris@42
|
13660 icc_ansi_alias="unknown"
|
Chris@42
|
13661 for flag in -ansi-alias -ansi_alias; do
|
Chris@42
|
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
|
Chris@42
|
13663 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
|
Chris@42
|
13664 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13665 CFLAGS="$flag"
|
Chris@42
|
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13667 /* end confdefs.h. */
|
Chris@42
|
13668
|
Chris@42
|
13669 int
|
Chris@42
|
13670 main ()
|
Chris@42
|
13671 {
|
Chris@42
|
13672
|
Chris@42
|
13673 ;
|
Chris@42
|
13674 return 0;
|
Chris@42
|
13675 }
|
Chris@42
|
13676 _ACEOF
|
Chris@42
|
13677 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13678 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
|
Chris@42
|
13679 else
|
Chris@42
|
13680 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
|
Chris@42
|
13681 fi
|
Chris@42
|
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13683 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
13684 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
|
Chris@42
|
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
13686 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
13687 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
13688 icc_ansi_alias=$flag; break
|
Chris@42
|
13689 else
|
Chris@42
|
13690 :
|
Chris@42
|
13691 fi
|
Chris@42
|
13692
|
Chris@42
|
13693 done
|
Chris@42
|
13694 if test "x$icc_ansi_alias" != xunknown; then
|
Chris@42
|
13695 CFLAGS="$CFLAGS $icc_ansi_alias"
|
Chris@42
|
13696 fi
|
Chris@42
|
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
|
Chris@42
|
13698 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
|
Chris@42
|
13699 if ${ax_cv_c_flags__malign_double+:} false; then :
|
Chris@42
|
13700 $as_echo_n "(cached) " >&6
|
Chris@42
|
13701 else
|
Chris@42
|
13702
|
Chris@42
|
13703 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13704 CFLAGS="-malign-double"
|
Chris@42
|
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13706 /* end confdefs.h. */
|
Chris@42
|
13707
|
Chris@42
|
13708 int
|
Chris@42
|
13709 main ()
|
Chris@42
|
13710 {
|
Chris@42
|
13711
|
Chris@42
|
13712 ;
|
Chris@42
|
13713 return 0;
|
Chris@42
|
13714 }
|
Chris@42
|
13715 _ACEOF
|
Chris@42
|
13716 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13717 ax_cv_c_flags__malign_double=yes
|
Chris@42
|
13718 else
|
Chris@42
|
13719 ax_cv_c_flags__malign_double=no
|
Chris@42
|
13720 fi
|
Chris@42
|
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13722 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
13723 fi
|
Chris@42
|
13724
|
Chris@42
|
13725 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
|
Chris@42
|
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
13727 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
13728 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
13729 CFLAGS="$CFLAGS -malign-double"
|
Chris@42
|
13730 else
|
Chris@42
|
13731 :
|
Chris@42
|
13732 fi
|
Chris@42
|
13733
|
Chris@42
|
13734 # We used to check for architecture flags here, e.g. -xHost etc.,
|
Chris@42
|
13735 # but these flags are problematic. On icc-12.0.0, "-mavx -xHost"
|
Chris@42
|
13736 # overrides -mavx with -xHost, generating SSE2 code instead of AVX
|
Chris@42
|
13737 # code. ICC does not seem to support -mtune=host or equivalent
|
Chris@42
|
13738 # non-ABI changing flag.
|
Chris@42
|
13739 ;;
|
Chris@42
|
13740
|
Chris@42
|
13741 clang)
|
Chris@42
|
13742 CFLAGS="-O3 -fomit-frame-pointer"
|
Chris@42
|
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
|
Chris@42
|
13744 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
|
Chris@42
|
13745 if ${ax_cv_c_flags__mtune_native+:} false; then :
|
Chris@42
|
13746 $as_echo_n "(cached) " >&6
|
Chris@42
|
13747 else
|
Chris@42
|
13748
|
Chris@42
|
13749 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13750 CFLAGS="-mtune=native"
|
Chris@42
|
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13752 /* end confdefs.h. */
|
Chris@42
|
13753
|
Chris@42
|
13754 int
|
Chris@42
|
13755 main ()
|
Chris@42
|
13756 {
|
Chris@42
|
13757
|
Chris@42
|
13758 ;
|
Chris@42
|
13759 return 0;
|
Chris@42
|
13760 }
|
Chris@42
|
13761 _ACEOF
|
Chris@42
|
13762 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13763 ax_cv_c_flags__mtune_native=yes
|
Chris@42
|
13764 else
|
Chris@42
|
13765 ax_cv_c_flags__mtune_native=no
|
Chris@42
|
13766 fi
|
Chris@42
|
13767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13768 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
13769 fi
|
Chris@42
|
13770
|
Chris@42
|
13771 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
|
Chris@42
|
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
13773 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
13774 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
13775 CFLAGS="$CFLAGS -mtune=native"
|
Chris@42
|
13776 else
|
Chris@42
|
13777 :
|
Chris@42
|
13778 fi
|
Chris@42
|
13779
|
Chris@42
|
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
|
Chris@42
|
13781 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
|
Chris@42
|
13782 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
|
Chris@42
|
13783 $as_echo_n "(cached) " >&6
|
Chris@42
|
13784 else
|
Chris@42
|
13785
|
Chris@42
|
13786 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13787 CFLAGS="-fstrict-aliasing"
|
Chris@42
|
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13789 /* end confdefs.h. */
|
Chris@42
|
13790
|
Chris@42
|
13791 int
|
Chris@42
|
13792 main ()
|
Chris@42
|
13793 {
|
Chris@42
|
13794
|
Chris@42
|
13795 ;
|
Chris@42
|
13796 return 0;
|
Chris@42
|
13797 }
|
Chris@42
|
13798 _ACEOF
|
Chris@42
|
13799 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13800 ax_cv_c_flags__fstrict_aliasing=yes
|
Chris@42
|
13801 else
|
Chris@42
|
13802 ax_cv_c_flags__fstrict_aliasing=no
|
Chris@42
|
13803 fi
|
Chris@42
|
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13805 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
13806 fi
|
Chris@42
|
13807
|
Chris@42
|
13808 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
|
Chris@42
|
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
13810 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
13811 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
13812 CFLAGS="$CFLAGS -fstrict-aliasing"
|
Chris@42
|
13813 else
|
Chris@42
|
13814 :
|
Chris@42
|
13815 fi
|
Chris@42
|
13816
|
Chris@42
|
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
|
Chris@42
|
13818 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
|
Chris@42
|
13819 if ${ax_cv_c_flags__ffast_math+:} false; then :
|
Chris@42
|
13820 $as_echo_n "(cached) " >&6
|
Chris@42
|
13821 else
|
Chris@42
|
13822
|
Chris@42
|
13823 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13824 CFLAGS="-ffast-math"
|
Chris@42
|
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13826 /* end confdefs.h. */
|
Chris@42
|
13827
|
Chris@42
|
13828 int
|
Chris@42
|
13829 main ()
|
Chris@42
|
13830 {
|
Chris@42
|
13831
|
Chris@42
|
13832 ;
|
Chris@42
|
13833 return 0;
|
Chris@42
|
13834 }
|
Chris@42
|
13835 _ACEOF
|
Chris@42
|
13836 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13837 ax_cv_c_flags__ffast_math=yes
|
Chris@42
|
13838 else
|
Chris@42
|
13839 ax_cv_c_flags__ffast_math=no
|
Chris@42
|
13840 fi
|
Chris@42
|
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13842 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
13843 fi
|
Chris@42
|
13844
|
Chris@42
|
13845 eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math
|
Chris@42
|
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
13847 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
13848 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
13849 CFLAGS="$CFLAGS -ffast-math"
|
Chris@42
|
13850 else
|
Chris@42
|
13851 :
|
Chris@42
|
13852 fi
|
Chris@42
|
13853
|
Chris@42
|
13854 ;;
|
Chris@42
|
13855
|
Chris@42
|
13856 gnu)
|
Chris@42
|
13857 # Default optimization flags for gcc on all systems.
|
Chris@42
|
13858 # Somehow -O3 does not imply -fomit-frame-pointer on ia32
|
Chris@42
|
13859 CFLAGS="-O3 -fomit-frame-pointer"
|
Chris@42
|
13860
|
Chris@42
|
13861 # tune for the host by default
|
Chris@42
|
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
|
Chris@42
|
13863 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
|
Chris@42
|
13864 if ${ax_cv_c_flags__mtune_native+:} false; then :
|
Chris@42
|
13865 $as_echo_n "(cached) " >&6
|
Chris@42
|
13866 else
|
Chris@42
|
13867
|
Chris@42
|
13868 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13869 CFLAGS="-mtune=native"
|
Chris@42
|
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13871 /* end confdefs.h. */
|
Chris@42
|
13872
|
Chris@42
|
13873 int
|
Chris@42
|
13874 main ()
|
Chris@42
|
13875 {
|
Chris@42
|
13876
|
Chris@42
|
13877 ;
|
Chris@42
|
13878 return 0;
|
Chris@42
|
13879 }
|
Chris@42
|
13880 _ACEOF
|
Chris@42
|
13881 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13882 ax_cv_c_flags__mtune_native=yes
|
Chris@42
|
13883 else
|
Chris@42
|
13884 ax_cv_c_flags__mtune_native=no
|
Chris@42
|
13885 fi
|
Chris@42
|
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13887 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
13888 fi
|
Chris@42
|
13889
|
Chris@42
|
13890 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
|
Chris@42
|
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
13892 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
13893 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
13894 CFLAGS="$CFLAGS -mtune=native"
|
Chris@42
|
13895 else
|
Chris@42
|
13896 :
|
Chris@42
|
13897 fi
|
Chris@42
|
13898
|
Chris@42
|
13899
|
Chris@42
|
13900 # -malign-double for x86 systems
|
Chris@42
|
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
|
Chris@42
|
13902 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
|
Chris@42
|
13903 if ${ax_cv_c_flags__malign_double+:} false; then :
|
Chris@42
|
13904 $as_echo_n "(cached) " >&6
|
Chris@42
|
13905 else
|
Chris@42
|
13906
|
Chris@42
|
13907 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13908 CFLAGS="-malign-double"
|
Chris@42
|
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13910 /* end confdefs.h. */
|
Chris@42
|
13911
|
Chris@42
|
13912 int
|
Chris@42
|
13913 main ()
|
Chris@42
|
13914 {
|
Chris@42
|
13915
|
Chris@42
|
13916 ;
|
Chris@42
|
13917 return 0;
|
Chris@42
|
13918 }
|
Chris@42
|
13919 _ACEOF
|
Chris@42
|
13920 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13921 ax_cv_c_flags__malign_double=yes
|
Chris@42
|
13922 else
|
Chris@42
|
13923 ax_cv_c_flags__malign_double=no
|
Chris@42
|
13924 fi
|
Chris@42
|
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13926 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
13927 fi
|
Chris@42
|
13928
|
Chris@42
|
13929 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
|
Chris@42
|
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
13931 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
13932 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
13933 CFLAGS="$CFLAGS -malign-double"
|
Chris@42
|
13934 else
|
Chris@42
|
13935 :
|
Chris@42
|
13936 fi
|
Chris@42
|
13937
|
Chris@42
|
13938
|
Chris@42
|
13939 # -fstrict-aliasing for gcc-2.95+
|
Chris@42
|
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
|
Chris@42
|
13941 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
|
Chris@42
|
13942 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
|
Chris@42
|
13943 $as_echo_n "(cached) " >&6
|
Chris@42
|
13944 else
|
Chris@42
|
13945
|
Chris@42
|
13946 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13947 CFLAGS="-fstrict-aliasing"
|
Chris@42
|
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13949 /* end confdefs.h. */
|
Chris@42
|
13950
|
Chris@42
|
13951 int
|
Chris@42
|
13952 main ()
|
Chris@42
|
13953 {
|
Chris@42
|
13954
|
Chris@42
|
13955 ;
|
Chris@42
|
13956 return 0;
|
Chris@42
|
13957 }
|
Chris@42
|
13958 _ACEOF
|
Chris@42
|
13959 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
13960 ax_cv_c_flags__fstrict_aliasing=yes
|
Chris@42
|
13961 else
|
Chris@42
|
13962 ax_cv_c_flags__fstrict_aliasing=no
|
Chris@42
|
13963 fi
|
Chris@42
|
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
13965 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
13966 fi
|
Chris@42
|
13967
|
Chris@42
|
13968 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
|
Chris@42
|
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
13970 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
13971 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
13972 CFLAGS="$CFLAGS -fstrict-aliasing"
|
Chris@42
|
13973 else
|
Chris@42
|
13974 :
|
Chris@42
|
13975 fi
|
Chris@42
|
13976
|
Chris@42
|
13977
|
Chris@42
|
13978 # -fno-schedule-insns is pretty much required on all risc
|
Chris@42
|
13979 # processors.
|
Chris@42
|
13980 #
|
Chris@42
|
13981 # gcc performs one pass of instruction scheduling, then a pass of
|
Chris@42
|
13982 # register allocation, then another pass of instruction
|
Chris@42
|
13983 # scheduling. The first pass reorders instructions in a way that
|
Chris@42
|
13984 # is pretty much the worst possible for the purposes of register
|
Chris@42
|
13985 # allocation. We disable the first pass.
|
Chris@42
|
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5
|
Chris@42
|
13987 $as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; }
|
Chris@42
|
13988 if ${ax_cv_c_flags__fno_schedule_insns+:} false; then :
|
Chris@42
|
13989 $as_echo_n "(cached) " >&6
|
Chris@42
|
13990 else
|
Chris@42
|
13991
|
Chris@42
|
13992 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
13993 CFLAGS="-fno-schedule-insns"
|
Chris@42
|
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
13995 /* end confdefs.h. */
|
Chris@42
|
13996
|
Chris@42
|
13997 int
|
Chris@42
|
13998 main ()
|
Chris@42
|
13999 {
|
Chris@42
|
14000
|
Chris@42
|
14001 ;
|
Chris@42
|
14002 return 0;
|
Chris@42
|
14003 }
|
Chris@42
|
14004 _ACEOF
|
Chris@42
|
14005 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14006 ax_cv_c_flags__fno_schedule_insns=yes
|
Chris@42
|
14007 else
|
Chris@42
|
14008 ax_cv_c_flags__fno_schedule_insns=no
|
Chris@42
|
14009 fi
|
Chris@42
|
14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14011 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14012 fi
|
Chris@42
|
14013
|
Chris@42
|
14014 eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns
|
Chris@42
|
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14016 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14017 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14018 CFLAGS="$CFLAGS -fno-schedule-insns"
|
Chris@42
|
14019 else
|
Chris@42
|
14020 :
|
Chris@42
|
14021 fi
|
Chris@42
|
14022
|
Chris@42
|
14023
|
Chris@42
|
14024 # note that we enable "unsafe" fp optimization with other compilers, too
|
Chris@42
|
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
|
Chris@42
|
14026 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
|
Chris@42
|
14027 if ${ax_cv_c_flags__ffast_math+:} false; then :
|
Chris@42
|
14028 $as_echo_n "(cached) " >&6
|
Chris@42
|
14029 else
|
Chris@42
|
14030
|
Chris@42
|
14031 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14032 CFLAGS="-ffast-math"
|
Chris@42
|
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14034 /* end confdefs.h. */
|
Chris@42
|
14035
|
Chris@42
|
14036 int
|
Chris@42
|
14037 main ()
|
Chris@42
|
14038 {
|
Chris@42
|
14039
|
Chris@42
|
14040 ;
|
Chris@42
|
14041 return 0;
|
Chris@42
|
14042 }
|
Chris@42
|
14043 _ACEOF
|
Chris@42
|
14044 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14045 ax_cv_c_flags__ffast_math=yes
|
Chris@42
|
14046 else
|
Chris@42
|
14047 ax_cv_c_flags__ffast_math=no
|
Chris@42
|
14048 fi
|
Chris@42
|
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14050 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14051 fi
|
Chris@42
|
14052
|
Chris@42
|
14053 eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math
|
Chris@42
|
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14055 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14056 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14057 CFLAGS="$CFLAGS -ffast-math"
|
Chris@42
|
14058 else
|
Chris@42
|
14059 :
|
Chris@42
|
14060 fi
|
Chris@42
|
14061
|
Chris@42
|
14062
|
Chris@42
|
14063 # flags to enable power ISA 2.07 instructions with gcc (always true with vsx)
|
Chris@42
|
14064 if test "$have_vsx" = "yes"; then
|
Chris@42
|
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mcpu=power8" >&5
|
Chris@42
|
14066 $as_echo_n "checking whether C compiler accepts -mcpu=power8... " >&6; }
|
Chris@42
|
14067 if ${ax_cv_c_flags__mcpu_power8+:} false; then :
|
Chris@42
|
14068 $as_echo_n "(cached) " >&6
|
Chris@42
|
14069 else
|
Chris@42
|
14070
|
Chris@42
|
14071 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14072 CFLAGS="-mcpu=power8"
|
Chris@42
|
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14074 /* end confdefs.h. */
|
Chris@42
|
14075
|
Chris@42
|
14076 int
|
Chris@42
|
14077 main ()
|
Chris@42
|
14078 {
|
Chris@42
|
14079
|
Chris@42
|
14080 ;
|
Chris@42
|
14081 return 0;
|
Chris@42
|
14082 }
|
Chris@42
|
14083 _ACEOF
|
Chris@42
|
14084 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14085 ax_cv_c_flags__mcpu_power8=yes
|
Chris@42
|
14086 else
|
Chris@42
|
14087 ax_cv_c_flags__mcpu_power8=no
|
Chris@42
|
14088 fi
|
Chris@42
|
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14090 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14091 fi
|
Chris@42
|
14092
|
Chris@42
|
14093 eval ax_check_compiler_flags=$ax_cv_c_flags__mcpu_power8
|
Chris@42
|
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14095 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14096 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14097 CFLAGS="$CFLAGS -mcpu=power8"
|
Chris@42
|
14098 else
|
Chris@42
|
14099 :
|
Chris@42
|
14100 fi
|
Chris@42
|
14101
|
Chris@42
|
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-fusion" >&5
|
Chris@42
|
14103 $as_echo_n "checking whether C compiler accepts -mpower8-fusion... " >&6; }
|
Chris@42
|
14104 if ${ax_cv_c_flags__mpower8_fusion+:} false; then :
|
Chris@42
|
14105 $as_echo_n "(cached) " >&6
|
Chris@42
|
14106 else
|
Chris@42
|
14107
|
Chris@42
|
14108 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14109 CFLAGS="-mpower8-fusion"
|
Chris@42
|
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14111 /* end confdefs.h. */
|
Chris@42
|
14112
|
Chris@42
|
14113 int
|
Chris@42
|
14114 main ()
|
Chris@42
|
14115 {
|
Chris@42
|
14116
|
Chris@42
|
14117 ;
|
Chris@42
|
14118 return 0;
|
Chris@42
|
14119 }
|
Chris@42
|
14120 _ACEOF
|
Chris@42
|
14121 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14122 ax_cv_c_flags__mpower8_fusion=yes
|
Chris@42
|
14123 else
|
Chris@42
|
14124 ax_cv_c_flags__mpower8_fusion=no
|
Chris@42
|
14125 fi
|
Chris@42
|
14126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14127 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14128 fi
|
Chris@42
|
14129
|
Chris@42
|
14130 eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_fusion
|
Chris@42
|
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14132 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14133 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14134 CFLAGS="$CFLAGS -mpower8-fusion"
|
Chris@42
|
14135 else
|
Chris@42
|
14136 :
|
Chris@42
|
14137 fi
|
Chris@42
|
14138
|
Chris@42
|
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-vector" >&5
|
Chris@42
|
14140 $as_echo_n "checking whether C compiler accepts -mpower8-vector... " >&6; }
|
Chris@42
|
14141 if ${ax_cv_c_flags__mpower8_vector+:} false; then :
|
Chris@42
|
14142 $as_echo_n "(cached) " >&6
|
Chris@42
|
14143 else
|
Chris@42
|
14144
|
Chris@42
|
14145 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14146 CFLAGS="-mpower8-vector"
|
Chris@42
|
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14148 /* end confdefs.h. */
|
Chris@42
|
14149
|
Chris@42
|
14150 int
|
Chris@42
|
14151 main ()
|
Chris@42
|
14152 {
|
Chris@42
|
14153
|
Chris@42
|
14154 ;
|
Chris@42
|
14155 return 0;
|
Chris@42
|
14156 }
|
Chris@42
|
14157 _ACEOF
|
Chris@42
|
14158 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14159 ax_cv_c_flags__mpower8_vector=yes
|
Chris@42
|
14160 else
|
Chris@42
|
14161 ax_cv_c_flags__mpower8_vector=no
|
Chris@42
|
14162 fi
|
Chris@42
|
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14164 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14165 fi
|
Chris@42
|
14166
|
Chris@42
|
14167 eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_vector
|
Chris@42
|
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14169 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14170 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14171 CFLAGS="$CFLAGS -mpower8-vector"
|
Chris@42
|
14172 else
|
Chris@42
|
14173 :
|
Chris@42
|
14174 fi
|
Chris@42
|
14175
|
Chris@42
|
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mdirect-move" >&5
|
Chris@42
|
14177 $as_echo_n "checking whether C compiler accepts -mdirect-move... " >&6; }
|
Chris@42
|
14178 if ${ax_cv_c_flags__mdirect_move+:} false; then :
|
Chris@42
|
14179 $as_echo_n "(cached) " >&6
|
Chris@42
|
14180 else
|
Chris@42
|
14181
|
Chris@42
|
14182 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14183 CFLAGS="-mdirect-move"
|
Chris@42
|
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14185 /* end confdefs.h. */
|
Chris@42
|
14186
|
Chris@42
|
14187 int
|
Chris@42
|
14188 main ()
|
Chris@42
|
14189 {
|
Chris@42
|
14190
|
Chris@42
|
14191 ;
|
Chris@42
|
14192 return 0;
|
Chris@42
|
14193 }
|
Chris@42
|
14194 _ACEOF
|
Chris@42
|
14195 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14196 ax_cv_c_flags__mdirect_move=yes
|
Chris@42
|
14197 else
|
Chris@42
|
14198 ax_cv_c_flags__mdirect_move=no
|
Chris@42
|
14199 fi
|
Chris@42
|
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14201 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14202 fi
|
Chris@42
|
14203
|
Chris@42
|
14204 eval ax_check_compiler_flags=$ax_cv_c_flags__mdirect_move
|
Chris@42
|
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14206 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14207 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14208 CFLAGS="$CFLAGS -mdirect-move"
|
Chris@42
|
14209 else
|
Chris@42
|
14210 :
|
Chris@42
|
14211 fi
|
Chris@42
|
14212
|
Chris@42
|
14213 fi
|
Chris@42
|
14214 ;;
|
Chris@42
|
14215 esac
|
Chris@42
|
14216
|
Chris@42
|
14217 if test -z "$CFLAGS"; then
|
Chris@42
|
14218 echo ""
|
Chris@42
|
14219 echo "********************************************************"
|
Chris@42
|
14220 echo "* WARNING: Don't know the best CFLAGS for this system *"
|
Chris@42
|
14221 echo "* Use ./configure CFLAGS=... to specify your own flags *"
|
Chris@42
|
14222 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
|
Chris@42
|
14223 echo "********************************************************"
|
Chris@42
|
14224 echo ""
|
Chris@42
|
14225 CFLAGS="-O3"
|
Chris@42
|
14226 fi
|
Chris@42
|
14227
|
Chris@42
|
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
|
Chris@42
|
14229 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
|
Chris@42
|
14230 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14231 CFLAGS="$CFLAGS"
|
Chris@42
|
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14233 /* end confdefs.h. */
|
Chris@42
|
14234
|
Chris@42
|
14235 int
|
Chris@42
|
14236 main ()
|
Chris@42
|
14237 {
|
Chris@42
|
14238
|
Chris@42
|
14239 ;
|
Chris@42
|
14240 return 0;
|
Chris@42
|
14241 }
|
Chris@42
|
14242 _ACEOF
|
Chris@42
|
14243 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14244 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
|
Chris@42
|
14245 else
|
Chris@42
|
14246 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
|
Chris@42
|
14247 fi
|
Chris@42
|
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14249 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14250 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
|
Chris@42
|
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14252 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14253 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14254 :
|
Chris@42
|
14255 else
|
Chris@42
|
14256
|
Chris@42
|
14257 echo ""
|
Chris@42
|
14258 echo "********************************************************"
|
Chris@42
|
14259 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
|
Chris@42
|
14260 echo "* your compiler. *"
|
Chris@42
|
14261 echo "* Use ./configure CFLAGS=... to specify your own flags *"
|
Chris@42
|
14262 echo "********************************************************"
|
Chris@42
|
14263 echo ""
|
Chris@42
|
14264 CFLAGS=""
|
Chris@42
|
14265
|
Chris@42
|
14266 fi
|
Chris@42
|
14267
|
Chris@42
|
14268
|
Chris@42
|
14269 fi
|
Chris@42
|
14270
|
Chris@42
|
14271
|
Chris@42
|
14272 case "${ax_cv_c_compiler_vendor}" in
|
Chris@42
|
14273 intel) # Stop icc from defining __GNUC__, except on MacOS where this fails
|
Chris@42
|
14274 case "${host_os}" in
|
Chris@42
|
14275 *darwin*) ;; # icc -no-gcc fails to compile some system headers
|
Chris@42
|
14276 *)
|
Chris@42
|
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-gcc" >&5
|
Chris@42
|
14278 $as_echo_n "checking whether C compiler accepts -no-gcc... " >&6; }
|
Chris@42
|
14279 if ${ax_cv_c_flags__no_gcc+:} false; then :
|
Chris@42
|
14280 $as_echo_n "(cached) " >&6
|
Chris@42
|
14281 else
|
Chris@42
|
14282
|
Chris@42
|
14283 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14284 CFLAGS="-no-gcc"
|
Chris@42
|
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14286 /* end confdefs.h. */
|
Chris@42
|
14287
|
Chris@42
|
14288 int
|
Chris@42
|
14289 main ()
|
Chris@42
|
14290 {
|
Chris@42
|
14291
|
Chris@42
|
14292 ;
|
Chris@42
|
14293 return 0;
|
Chris@42
|
14294 }
|
Chris@42
|
14295 _ACEOF
|
Chris@42
|
14296 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14297 ax_cv_c_flags__no_gcc=yes
|
Chris@42
|
14298 else
|
Chris@42
|
14299 ax_cv_c_flags__no_gcc=no
|
Chris@42
|
14300 fi
|
Chris@42
|
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14302 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14303 fi
|
Chris@42
|
14304
|
Chris@42
|
14305 eval ax_check_compiler_flags=$ax_cv_c_flags__no_gcc
|
Chris@42
|
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14307 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14308 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14309 CC="$CC -no-gcc"
|
Chris@42
|
14310 else
|
Chris@42
|
14311 :
|
Chris@42
|
14312 fi
|
Chris@42
|
14313
|
Chris@42
|
14314 ;;
|
Chris@42
|
14315 esac
|
Chris@42
|
14316 ;;
|
Chris@42
|
14317
|
Chris@42
|
14318 hp) # must (sometimes) manually increase cpp limits to handle fftw3.h
|
Chris@42
|
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5
|
Chris@42
|
14320 $as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; }
|
Chris@42
|
14321 if ${ax_cv_c_flags__Wp+:} false; then :
|
Chris@42
|
14322 $as_echo_n "(cached) " >&6
|
Chris@42
|
14323 else
|
Chris@42
|
14324
|
Chris@42
|
14325 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14326 CFLAGS="-Wp,-H128000"
|
Chris@42
|
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14328 /* end confdefs.h. */
|
Chris@42
|
14329
|
Chris@42
|
14330 int
|
Chris@42
|
14331 main ()
|
Chris@42
|
14332 {
|
Chris@42
|
14333
|
Chris@42
|
14334 ;
|
Chris@42
|
14335 return 0;
|
Chris@42
|
14336 }
|
Chris@42
|
14337 _ACEOF
|
Chris@42
|
14338 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14339 ax_cv_c_flags__Wp=yes
|
Chris@42
|
14340 else
|
Chris@42
|
14341 ax_cv_c_flags__Wp=no
|
Chris@42
|
14342 fi
|
Chris@42
|
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14344 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14345 fi
|
Chris@42
|
14346
|
Chris@42
|
14347 eval ax_check_compiler_flags=$ax_cv_c_flags__Wp
|
Chris@42
|
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14349 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14350 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14351 CC="$CC -Wp,-H128000"
|
Chris@42
|
14352 else
|
Chris@42
|
14353 :
|
Chris@42
|
14354 fi
|
Chris@42
|
14355
|
Chris@42
|
14356 ;;
|
Chris@42
|
14357
|
Chris@42
|
14358 portland) # -Masmkeyword required for asm("") cycle counters
|
Chris@42
|
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5
|
Chris@42
|
14360 $as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; }
|
Chris@42
|
14361 if ${ax_cv_c_flags__Masmkeyword+:} false; then :
|
Chris@42
|
14362 $as_echo_n "(cached) " >&6
|
Chris@42
|
14363 else
|
Chris@42
|
14364
|
Chris@42
|
14365 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14366 CFLAGS="-Masmkeyword"
|
Chris@42
|
14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14368 /* end confdefs.h. */
|
Chris@42
|
14369
|
Chris@42
|
14370 int
|
Chris@42
|
14371 main ()
|
Chris@42
|
14372 {
|
Chris@42
|
14373
|
Chris@42
|
14374 ;
|
Chris@42
|
14375 return 0;
|
Chris@42
|
14376 }
|
Chris@42
|
14377 _ACEOF
|
Chris@42
|
14378 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14379 ax_cv_c_flags__Masmkeyword=yes
|
Chris@42
|
14380 else
|
Chris@42
|
14381 ax_cv_c_flags__Masmkeyword=no
|
Chris@42
|
14382 fi
|
Chris@42
|
14383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14384 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14385 fi
|
Chris@42
|
14386
|
Chris@42
|
14387 eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword
|
Chris@42
|
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14389 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14390 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14391 CC="$CC -Masmkeyword"
|
Chris@42
|
14392 else
|
Chris@42
|
14393 :
|
Chris@42
|
14394 fi
|
Chris@42
|
14395
|
Chris@42
|
14396 ;;
|
Chris@42
|
14397 esac
|
Chris@42
|
14398
|
Chris@42
|
14399 case "${ax_cv_c_compiler_vendor}" in
|
Chris@42
|
14400 gnu|intel)
|
Chris@42
|
14401 # SSE/SSE2
|
Chris@42
|
14402 if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
|
Chris@42
|
14403 if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
|
Chris@42
|
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5
|
Chris@42
|
14405 $as_echo_n "checking whether C compiler accepts -$flag... " >&6; }
|
Chris@42
|
14406 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14407 CFLAGS="-$flag"
|
Chris@42
|
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14409 /* end confdefs.h. */
|
Chris@42
|
14410
|
Chris@42
|
14411 int
|
Chris@42
|
14412 main ()
|
Chris@42
|
14413 {
|
Chris@42
|
14414
|
Chris@42
|
14415 ;
|
Chris@42
|
14416 return 0;
|
Chris@42
|
14417 }
|
Chris@42
|
14418 _ACEOF
|
Chris@42
|
14419 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14420 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes
|
Chris@42
|
14421 else
|
Chris@42
|
14422 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no
|
Chris@42
|
14423 fi
|
Chris@42
|
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14425 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14426 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`
|
Chris@42
|
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14428 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14429 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14430 SSE2_CFLAGS="-$flag"
|
Chris@42
|
14431 else
|
Chris@42
|
14432 as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5
|
Chris@42
|
14433 fi
|
Chris@42
|
14434
|
Chris@42
|
14435 fi
|
Chris@42
|
14436
|
Chris@42
|
14437 # AVX
|
Chris@42
|
14438 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
|
Chris@42
|
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
|
Chris@42
|
14440 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
|
Chris@42
|
14441 if ${ax_cv_c_flags__mavx+:} false; then :
|
Chris@42
|
14442 $as_echo_n "(cached) " >&6
|
Chris@42
|
14443 else
|
Chris@42
|
14444
|
Chris@42
|
14445 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14446 CFLAGS="-mavx"
|
Chris@42
|
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14448 /* end confdefs.h. */
|
Chris@42
|
14449
|
Chris@42
|
14450 int
|
Chris@42
|
14451 main ()
|
Chris@42
|
14452 {
|
Chris@42
|
14453
|
Chris@42
|
14454 ;
|
Chris@42
|
14455 return 0;
|
Chris@42
|
14456 }
|
Chris@42
|
14457 _ACEOF
|
Chris@42
|
14458 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14459 ax_cv_c_flags__mavx=yes
|
Chris@42
|
14460 else
|
Chris@42
|
14461 ax_cv_c_flags__mavx=no
|
Chris@42
|
14462 fi
|
Chris@42
|
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14464 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14465 fi
|
Chris@42
|
14466
|
Chris@42
|
14467 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
|
Chris@42
|
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14469 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14470 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14471 AVX_CFLAGS="-mavx"
|
Chris@42
|
14472 else
|
Chris@42
|
14473 as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5
|
Chris@42
|
14474 fi
|
Chris@42
|
14475
|
Chris@42
|
14476 fi
|
Chris@42
|
14477
|
Chris@42
|
14478 # AVX2
|
Chris@42
|
14479 # gcc-4.8 works with -march=core-avx2, but -mavx2 is not enough.
|
Chris@42
|
14480 # Later versions seem to happy with -mavx2, so try the arch one first.
|
Chris@42
|
14481 if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then
|
Chris@42
|
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=core-avx2" >&5
|
Chris@42
|
14483 $as_echo_n "checking whether C compiler accepts -march=core-avx2... " >&6; }
|
Chris@42
|
14484 if ${ax_cv_c_flags__march_core_avx2+:} false; then :
|
Chris@42
|
14485 $as_echo_n "(cached) " >&6
|
Chris@42
|
14486 else
|
Chris@42
|
14487
|
Chris@42
|
14488 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14489 CFLAGS="-march=core-avx2"
|
Chris@42
|
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14491 /* end confdefs.h. */
|
Chris@42
|
14492
|
Chris@42
|
14493 int
|
Chris@42
|
14494 main ()
|
Chris@42
|
14495 {
|
Chris@42
|
14496
|
Chris@42
|
14497 ;
|
Chris@42
|
14498 return 0;
|
Chris@42
|
14499 }
|
Chris@42
|
14500 _ACEOF
|
Chris@42
|
14501 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14502 ax_cv_c_flags__march_core_avx2=yes
|
Chris@42
|
14503 else
|
Chris@42
|
14504 ax_cv_c_flags__march_core_avx2=no
|
Chris@42
|
14505 fi
|
Chris@42
|
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14507 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14508 fi
|
Chris@42
|
14509
|
Chris@42
|
14510 eval ax_check_compiler_flags=$ax_cv_c_flags__march_core_avx2
|
Chris@42
|
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14512 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14513 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14514 AVX2_CFLAGS="-march=core-avx2"
|
Chris@42
|
14515 else
|
Chris@42
|
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
|
Chris@42
|
14517 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
|
Chris@42
|
14518 if ${ax_cv_c_flags__mavx2+:} false; then :
|
Chris@42
|
14519 $as_echo_n "(cached) " >&6
|
Chris@42
|
14520 else
|
Chris@42
|
14521
|
Chris@42
|
14522 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14523 CFLAGS="-mavx2"
|
Chris@42
|
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14525 /* end confdefs.h. */
|
Chris@42
|
14526
|
Chris@42
|
14527 int
|
Chris@42
|
14528 main ()
|
Chris@42
|
14529 {
|
Chris@42
|
14530
|
Chris@42
|
14531 ;
|
Chris@42
|
14532 return 0;
|
Chris@42
|
14533 }
|
Chris@42
|
14534 _ACEOF
|
Chris@42
|
14535 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14536 ax_cv_c_flags__mavx2=yes
|
Chris@42
|
14537 else
|
Chris@42
|
14538 ax_cv_c_flags__mavx2=no
|
Chris@42
|
14539 fi
|
Chris@42
|
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14541 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14542 fi
|
Chris@42
|
14543
|
Chris@42
|
14544 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2
|
Chris@42
|
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14546 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14547 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14548 AVX2_CFLAGS="-mavx2"
|
Chris@42
|
14549 else
|
Chris@42
|
14550 as_fn_error $? "Need a version of gcc with either -march=core-avx2 or -mavx2" "$LINENO" 5
|
Chris@42
|
14551 fi
|
Chris@42
|
14552
|
Chris@42
|
14553 fi
|
Chris@42
|
14554
|
Chris@42
|
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5
|
Chris@42
|
14556 $as_echo_n "checking whether C compiler accepts -mfma... " >&6; }
|
Chris@42
|
14557 if ${ax_cv_c_flags__mfma+:} false; then :
|
Chris@42
|
14558 $as_echo_n "(cached) " >&6
|
Chris@42
|
14559 else
|
Chris@42
|
14560
|
Chris@42
|
14561 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14562 CFLAGS="-mfma"
|
Chris@42
|
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14564 /* end confdefs.h. */
|
Chris@42
|
14565
|
Chris@42
|
14566 int
|
Chris@42
|
14567 main ()
|
Chris@42
|
14568 {
|
Chris@42
|
14569
|
Chris@42
|
14570 ;
|
Chris@42
|
14571 return 0;
|
Chris@42
|
14572 }
|
Chris@42
|
14573 _ACEOF
|
Chris@42
|
14574 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14575 ax_cv_c_flags__mfma=yes
|
Chris@42
|
14576 else
|
Chris@42
|
14577 ax_cv_c_flags__mfma=no
|
Chris@42
|
14578 fi
|
Chris@42
|
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14580 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14581 fi
|
Chris@42
|
14582
|
Chris@42
|
14583 eval ax_check_compiler_flags=$ax_cv_c_flags__mfma
|
Chris@42
|
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14585 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14586 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14587 AVX2_CFLAGS="$AVX2_CFLAGS -mfma"
|
Chris@42
|
14588 else
|
Chris@42
|
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&5
|
Chris@42
|
14590 $as_echo "$as_me: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&2;}
|
Chris@42
|
14591 fi
|
Chris@42
|
14592
|
Chris@42
|
14593 fi
|
Chris@42
|
14594
|
Chris@42
|
14595 # AVX512
|
Chris@42
|
14596 if test "$have_avx512" = "yes" -a "x$AVX512_CFLAGS" = x; then
|
Chris@42
|
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
|
Chris@42
|
14598 $as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
|
Chris@42
|
14599 if ${ax_cv_c_flags__mavx512f+:} false; then :
|
Chris@42
|
14600 $as_echo_n "(cached) " >&6
|
Chris@42
|
14601 else
|
Chris@42
|
14602
|
Chris@42
|
14603 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14604 CFLAGS="-mavx512f"
|
Chris@42
|
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14606 /* end confdefs.h. */
|
Chris@42
|
14607
|
Chris@42
|
14608 int
|
Chris@42
|
14609 main ()
|
Chris@42
|
14610 {
|
Chris@42
|
14611
|
Chris@42
|
14612 ;
|
Chris@42
|
14613 return 0;
|
Chris@42
|
14614 }
|
Chris@42
|
14615 _ACEOF
|
Chris@42
|
14616 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14617 ax_cv_c_flags__mavx512f=yes
|
Chris@42
|
14618 else
|
Chris@42
|
14619 ax_cv_c_flags__mavx512f=no
|
Chris@42
|
14620 fi
|
Chris@42
|
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14622 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14623 fi
|
Chris@42
|
14624
|
Chris@42
|
14625 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx512f
|
Chris@42
|
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14627 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14628 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14629 AVX512_CFLAGS="-mavx512f"
|
Chris@42
|
14630 else
|
Chris@42
|
14631 as_fn_error $? "Need a version of gcc with -mavx512f" "$LINENO" 5
|
Chris@42
|
14632 fi
|
Chris@42
|
14633
|
Chris@42
|
14634 fi
|
Chris@42
|
14635
|
Chris@42
|
14636 if test "$host_vendor" = "apple"; then
|
Chris@42
|
14637 # We need to tell gcc to use an external assembler to get AVX/AVX2 with gcc on OS X
|
Chris@42
|
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wa,-q" >&5
|
Chris@42
|
14639 $as_echo_n "checking whether C compiler accepts -Wa,-q... " >&6; }
|
Chris@42
|
14640 if ${ax_cv_c_flags__Wa+:} false; then :
|
Chris@42
|
14641 $as_echo_n "(cached) " >&6
|
Chris@42
|
14642 else
|
Chris@42
|
14643
|
Chris@42
|
14644 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14645 CFLAGS="-Wa,-q"
|
Chris@42
|
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14647 /* end confdefs.h. */
|
Chris@42
|
14648
|
Chris@42
|
14649 int
|
Chris@42
|
14650 main ()
|
Chris@42
|
14651 {
|
Chris@42
|
14652
|
Chris@42
|
14653 ;
|
Chris@42
|
14654 return 0;
|
Chris@42
|
14655 }
|
Chris@42
|
14656 _ACEOF
|
Chris@42
|
14657 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14658 ax_cv_c_flags__Wa=yes
|
Chris@42
|
14659 else
|
Chris@42
|
14660 ax_cv_c_flags__Wa=no
|
Chris@42
|
14661 fi
|
Chris@42
|
14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14663 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14664 fi
|
Chris@42
|
14665
|
Chris@42
|
14666 eval ax_check_compiler_flags=$ax_cv_c_flags__Wa
|
Chris@42
|
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14668 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14669 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14670 CFLAGS="$CFLAGS -Wa,-q"
|
Chris@42
|
14671 else
|
Chris@42
|
14672 :
|
Chris@42
|
14673 fi
|
Chris@42
|
14674
|
Chris@42
|
14675 # Disable the new compact unwinding format so we avoid warnings/potential errors.
|
Chris@42
|
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wl,-no_compact_unwind" >&5
|
Chris@42
|
14677 $as_echo_n "checking whether C compiler accepts -Wl,-no_compact_unwind... " >&6; }
|
Chris@42
|
14678 if ${ax_cv_c_flags__Wl+:} false; then :
|
Chris@42
|
14679 $as_echo_n "(cached) " >&6
|
Chris@42
|
14680 else
|
Chris@42
|
14681
|
Chris@42
|
14682 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14683 CFLAGS="-Wl,-no_compact_unwind"
|
Chris@42
|
14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14685 /* end confdefs.h. */
|
Chris@42
|
14686
|
Chris@42
|
14687 int
|
Chris@42
|
14688 main ()
|
Chris@42
|
14689 {
|
Chris@42
|
14690
|
Chris@42
|
14691 ;
|
Chris@42
|
14692 return 0;
|
Chris@42
|
14693 }
|
Chris@42
|
14694 _ACEOF
|
Chris@42
|
14695 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14696 ax_cv_c_flags__Wl=yes
|
Chris@42
|
14697 else
|
Chris@42
|
14698 ax_cv_c_flags__Wl=no
|
Chris@42
|
14699 fi
|
Chris@42
|
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14701 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14702 fi
|
Chris@42
|
14703
|
Chris@42
|
14704 eval ax_check_compiler_flags=$ax_cv_c_flags__Wl
|
Chris@42
|
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14706 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14707 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14708 CFLAGS="$CFLAGS -Wl,-no_compact_unwind"
|
Chris@42
|
14709 else
|
Chris@42
|
14710 :
|
Chris@42
|
14711 fi
|
Chris@42
|
14712
|
Chris@42
|
14713 fi
|
Chris@42
|
14714
|
Chris@42
|
14715 # KCVI
|
Chris@42
|
14716 if test "$have_kcvi" = "yes" -a "x$KCVI_CFLAGS" = x; then
|
Chris@42
|
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmic" >&5
|
Chris@42
|
14718 $as_echo_n "checking whether C compiler accepts -mmic... " >&6; }
|
Chris@42
|
14719 if ${ax_cv_c_flags__mmic+:} false; then :
|
Chris@42
|
14720 $as_echo_n "(cached) " >&6
|
Chris@42
|
14721 else
|
Chris@42
|
14722
|
Chris@42
|
14723 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14724 CFLAGS="-mmic"
|
Chris@42
|
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14726 /* end confdefs.h. */
|
Chris@42
|
14727
|
Chris@42
|
14728 int
|
Chris@42
|
14729 main ()
|
Chris@42
|
14730 {
|
Chris@42
|
14731
|
Chris@42
|
14732 ;
|
Chris@42
|
14733 return 0;
|
Chris@42
|
14734 }
|
Chris@42
|
14735 _ACEOF
|
Chris@42
|
14736 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14737 ax_cv_c_flags__mmic=yes
|
Chris@42
|
14738 else
|
Chris@42
|
14739 ax_cv_c_flags__mmic=no
|
Chris@42
|
14740 fi
|
Chris@42
|
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14742 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14743 fi
|
Chris@42
|
14744
|
Chris@42
|
14745 eval ax_check_compiler_flags=$ax_cv_c_flags__mmic
|
Chris@42
|
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14747 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14748 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14749 KCVI_CFLAGS="-mmic"
|
Chris@42
|
14750 else
|
Chris@42
|
14751 as_fn_error $? "Need a version of icc with -mmic" "$LINENO" 5
|
Chris@42
|
14752 fi
|
Chris@42
|
14753
|
Chris@42
|
14754 fi
|
Chris@42
|
14755
|
Chris@42
|
14756 if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then
|
Chris@42
|
14757 # -DFAKE__VEC__ is a workaround because gcc-3.3 does not
|
Chris@42
|
14758 # #define __VEC__ with -maltivec.
|
Chris@42
|
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
|
Chris@42
|
14760 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
|
Chris@42
|
14761 if ${ax_cv_c_flags__faltivec+:} false; then :
|
Chris@42
|
14762 $as_echo_n "(cached) " >&6
|
Chris@42
|
14763 else
|
Chris@42
|
14764
|
Chris@42
|
14765 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14766 CFLAGS="-faltivec"
|
Chris@42
|
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14768 /* end confdefs.h. */
|
Chris@42
|
14769
|
Chris@42
|
14770 int
|
Chris@42
|
14771 main ()
|
Chris@42
|
14772 {
|
Chris@42
|
14773
|
Chris@42
|
14774 ;
|
Chris@42
|
14775 return 0;
|
Chris@42
|
14776 }
|
Chris@42
|
14777 _ACEOF
|
Chris@42
|
14778 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14779 ax_cv_c_flags__faltivec=yes
|
Chris@42
|
14780 else
|
Chris@42
|
14781 ax_cv_c_flags__faltivec=no
|
Chris@42
|
14782 fi
|
Chris@42
|
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14784 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14785 fi
|
Chris@42
|
14786
|
Chris@42
|
14787 eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec
|
Chris@42
|
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14789 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14790 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14791 ALTIVEC_CFLAGS="-faltivec"
|
Chris@42
|
14792 else
|
Chris@42
|
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5
|
Chris@42
|
14794 $as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; }
|
Chris@42
|
14795 if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then :
|
Chris@42
|
14796 $as_echo_n "(cached) " >&6
|
Chris@42
|
14797 else
|
Chris@42
|
14798
|
Chris@42
|
14799 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14800 CFLAGS="-maltivec -mabi=altivec"
|
Chris@42
|
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14802 /* end confdefs.h. */
|
Chris@42
|
14803
|
Chris@42
|
14804 int
|
Chris@42
|
14805 main ()
|
Chris@42
|
14806 {
|
Chris@42
|
14807
|
Chris@42
|
14808 ;
|
Chris@42
|
14809 return 0;
|
Chris@42
|
14810 }
|
Chris@42
|
14811 _ACEOF
|
Chris@42
|
14812 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14813 ax_cv_c_flags__maltivec__mabi_altivec=yes
|
Chris@42
|
14814 else
|
Chris@42
|
14815 ax_cv_c_flags__maltivec__mabi_altivec=no
|
Chris@42
|
14816 fi
|
Chris@42
|
14817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14818 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14819 fi
|
Chris@42
|
14820
|
Chris@42
|
14821 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec
|
Chris@42
|
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14823 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14824 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14825 ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__"
|
Chris@42
|
14826 else
|
Chris@42
|
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5
|
Chris@42
|
14828 $as_echo_n "checking whether C compiler accepts -fvec... " >&6; }
|
Chris@42
|
14829 if ${ax_cv_c_flags__fvec+:} false; then :
|
Chris@42
|
14830 $as_echo_n "(cached) " >&6
|
Chris@42
|
14831 else
|
Chris@42
|
14832
|
Chris@42
|
14833 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14834 CFLAGS="-fvec"
|
Chris@42
|
14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14836 /* end confdefs.h. */
|
Chris@42
|
14837
|
Chris@42
|
14838 int
|
Chris@42
|
14839 main ()
|
Chris@42
|
14840 {
|
Chris@42
|
14841
|
Chris@42
|
14842 ;
|
Chris@42
|
14843 return 0;
|
Chris@42
|
14844 }
|
Chris@42
|
14845 _ACEOF
|
Chris@42
|
14846 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14847 ax_cv_c_flags__fvec=yes
|
Chris@42
|
14848 else
|
Chris@42
|
14849 ax_cv_c_flags__fvec=no
|
Chris@42
|
14850 fi
|
Chris@42
|
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14852 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14853 fi
|
Chris@42
|
14854
|
Chris@42
|
14855 eval ax_check_compiler_flags=$ax_cv_c_flags__fvec
|
Chris@42
|
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14857 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14858 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14859 ALTIVEC_CFLAGS="-fvec"
|
Chris@42
|
14860 else
|
Chris@42
|
14861 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
|
Chris@42
|
14862 fi
|
Chris@42
|
14863
|
Chris@42
|
14864 fi
|
Chris@42
|
14865
|
Chris@42
|
14866 fi
|
Chris@42
|
14867
|
Chris@42
|
14868 fi
|
Chris@42
|
14869
|
Chris@42
|
14870 case "${host_cpu}" in
|
Chris@42
|
14871 aarch64)
|
Chris@42
|
14872 ;;
|
Chris@42
|
14873 *)
|
Chris@42
|
14874 if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then
|
Chris@42
|
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5
|
Chris@42
|
14876 $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; }
|
Chris@42
|
14877 if ${ax_cv_c_flags__mfpu_neon+:} false; then :
|
Chris@42
|
14878 $as_echo_n "(cached) " >&6
|
Chris@42
|
14879 else
|
Chris@42
|
14880
|
Chris@42
|
14881 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14882 CFLAGS="-mfpu=neon"
|
Chris@42
|
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14884 /* end confdefs.h. */
|
Chris@42
|
14885
|
Chris@42
|
14886 int
|
Chris@42
|
14887 main ()
|
Chris@42
|
14888 {
|
Chris@42
|
14889
|
Chris@42
|
14890 ;
|
Chris@42
|
14891 return 0;
|
Chris@42
|
14892 }
|
Chris@42
|
14893 _ACEOF
|
Chris@42
|
14894 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14895 ax_cv_c_flags__mfpu_neon=yes
|
Chris@42
|
14896 else
|
Chris@42
|
14897 ax_cv_c_flags__mfpu_neon=no
|
Chris@42
|
14898 fi
|
Chris@42
|
14899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14900 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14901 fi
|
Chris@42
|
14902
|
Chris@42
|
14903 eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon
|
Chris@42
|
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14905 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14906 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14907 NEON_CFLAGS="-mfpu=neon"
|
Chris@42
|
14908 else
|
Chris@42
|
14909 as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5
|
Chris@42
|
14910 fi
|
Chris@42
|
14911
|
Chris@42
|
14912 fi
|
Chris@42
|
14913 ;;
|
Chris@42
|
14914 esac
|
Chris@42
|
14915
|
Chris@42
|
14916 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
|
Chris@42
|
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5
|
Chris@42
|
14918 $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; }
|
Chris@42
|
14919 if ${ax_cv_c_flags__mvsx+:} false; then :
|
Chris@42
|
14920 $as_echo_n "(cached) " >&6
|
Chris@42
|
14921 else
|
Chris@42
|
14922
|
Chris@42
|
14923 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14924 CFLAGS="-mvsx"
|
Chris@42
|
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14926 /* end confdefs.h. */
|
Chris@42
|
14927
|
Chris@42
|
14928 int
|
Chris@42
|
14929 main ()
|
Chris@42
|
14930 {
|
Chris@42
|
14931
|
Chris@42
|
14932 ;
|
Chris@42
|
14933 return 0;
|
Chris@42
|
14934 }
|
Chris@42
|
14935 _ACEOF
|
Chris@42
|
14936 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14937 ax_cv_c_flags__mvsx=yes
|
Chris@42
|
14938 else
|
Chris@42
|
14939 ax_cv_c_flags__mvsx=no
|
Chris@42
|
14940 fi
|
Chris@42
|
14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14942 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14943 fi
|
Chris@42
|
14944
|
Chris@42
|
14945 eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx
|
Chris@42
|
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14947 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14948 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14949 VSX_CFLAGS="-mvsx"
|
Chris@42
|
14950 else
|
Chris@42
|
14951 as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5
|
Chris@42
|
14952 fi
|
Chris@42
|
14953
|
Chris@42
|
14954 fi
|
Chris@42
|
14955
|
Chris@42
|
14956 ;;
|
Chris@42
|
14957
|
Chris@42
|
14958 clang)
|
Chris@42
|
14959
|
Chris@42
|
14960 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
|
Chris@42
|
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
|
Chris@42
|
14962 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
|
Chris@42
|
14963 if ${ax_cv_c_flags__mavx+:} false; then :
|
Chris@42
|
14964 $as_echo_n "(cached) " >&6
|
Chris@42
|
14965 else
|
Chris@42
|
14966
|
Chris@42
|
14967 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
14968 CFLAGS="-mavx"
|
Chris@42
|
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
14970 /* end confdefs.h. */
|
Chris@42
|
14971
|
Chris@42
|
14972 int
|
Chris@42
|
14973 main ()
|
Chris@42
|
14974 {
|
Chris@42
|
14975
|
Chris@42
|
14976 ;
|
Chris@42
|
14977 return 0;
|
Chris@42
|
14978 }
|
Chris@42
|
14979 _ACEOF
|
Chris@42
|
14980 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
14981 ax_cv_c_flags__mavx=yes
|
Chris@42
|
14982 else
|
Chris@42
|
14983 ax_cv_c_flags__mavx=no
|
Chris@42
|
14984 fi
|
Chris@42
|
14985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
14986 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
14987 fi
|
Chris@42
|
14988
|
Chris@42
|
14989 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
|
Chris@42
|
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
14991 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
14992 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
14993 AVX_CFLAGS="-mavx"
|
Chris@42
|
14994 else
|
Chris@42
|
14995 as_fn_error $? "Need a version of clang with -mavx" "$LINENO" 5
|
Chris@42
|
14996 fi
|
Chris@42
|
14997
|
Chris@42
|
14998 fi
|
Chris@42
|
14999
|
Chris@42
|
15000 if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then
|
Chris@42
|
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
|
Chris@42
|
15002 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
|
Chris@42
|
15003 if ${ax_cv_c_flags__mavx2+:} false; then :
|
Chris@42
|
15004 $as_echo_n "(cached) " >&6
|
Chris@42
|
15005 else
|
Chris@42
|
15006
|
Chris@42
|
15007 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
15008 CFLAGS="-mavx2"
|
Chris@42
|
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15010 /* end confdefs.h. */
|
Chris@42
|
15011
|
Chris@42
|
15012 int
|
Chris@42
|
15013 main ()
|
Chris@42
|
15014 {
|
Chris@42
|
15015
|
Chris@42
|
15016 ;
|
Chris@42
|
15017 return 0;
|
Chris@42
|
15018 }
|
Chris@42
|
15019 _ACEOF
|
Chris@42
|
15020 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15021 ax_cv_c_flags__mavx2=yes
|
Chris@42
|
15022 else
|
Chris@42
|
15023 ax_cv_c_flags__mavx2=no
|
Chris@42
|
15024 fi
|
Chris@42
|
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15026 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
15027 fi
|
Chris@42
|
15028
|
Chris@42
|
15029 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2
|
Chris@42
|
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
15031 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
15032 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
15033 AVX2_CFLAGS="-mavx2"
|
Chris@42
|
15034 else
|
Chris@42
|
15035 as_fn_error $? "Need a version of clang with -mavx2" "$LINENO" 5
|
Chris@42
|
15036 fi
|
Chris@42
|
15037
|
Chris@42
|
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5
|
Chris@42
|
15039 $as_echo_n "checking whether C compiler accepts -mfma... " >&6; }
|
Chris@42
|
15040 if ${ax_cv_c_flags__mfma+:} false; then :
|
Chris@42
|
15041 $as_echo_n "(cached) " >&6
|
Chris@42
|
15042 else
|
Chris@42
|
15043
|
Chris@42
|
15044 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
15045 CFLAGS="-mfma"
|
Chris@42
|
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15047 /* end confdefs.h. */
|
Chris@42
|
15048
|
Chris@42
|
15049 int
|
Chris@42
|
15050 main ()
|
Chris@42
|
15051 {
|
Chris@42
|
15052
|
Chris@42
|
15053 ;
|
Chris@42
|
15054 return 0;
|
Chris@42
|
15055 }
|
Chris@42
|
15056 _ACEOF
|
Chris@42
|
15057 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15058 ax_cv_c_flags__mfma=yes
|
Chris@42
|
15059 else
|
Chris@42
|
15060 ax_cv_c_flags__mfma=no
|
Chris@42
|
15061 fi
|
Chris@42
|
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15063 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
15064 fi
|
Chris@42
|
15065
|
Chris@42
|
15066 eval ax_check_compiler_flags=$ax_cv_c_flags__mfma
|
Chris@42
|
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
15068 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
15069 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
15070 AVX2_CFLAGS="$AVX2_CFLAGS -mfma"
|
Chris@42
|
15071 else
|
Chris@42
|
15072 :
|
Chris@42
|
15073 fi
|
Chris@42
|
15074
|
Chris@42
|
15075 fi
|
Chris@42
|
15076
|
Chris@42
|
15077 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
|
Chris@42
|
15078 # clang appears to need both -mvsx and -maltivec for VSX
|
Chris@42
|
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec" >&5
|
Chris@42
|
15080 $as_echo_n "checking whether C compiler accepts -maltivec... " >&6; }
|
Chris@42
|
15081 if ${ax_cv_c_flags__maltivec+:} false; then :
|
Chris@42
|
15082 $as_echo_n "(cached) " >&6
|
Chris@42
|
15083 else
|
Chris@42
|
15084
|
Chris@42
|
15085 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
15086 CFLAGS="-maltivec"
|
Chris@42
|
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15088 /* end confdefs.h. */
|
Chris@42
|
15089
|
Chris@42
|
15090 int
|
Chris@42
|
15091 main ()
|
Chris@42
|
15092 {
|
Chris@42
|
15093
|
Chris@42
|
15094 ;
|
Chris@42
|
15095 return 0;
|
Chris@42
|
15096 }
|
Chris@42
|
15097 _ACEOF
|
Chris@42
|
15098 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15099 ax_cv_c_flags__maltivec=yes
|
Chris@42
|
15100 else
|
Chris@42
|
15101 ax_cv_c_flags__maltivec=no
|
Chris@42
|
15102 fi
|
Chris@42
|
15103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15104 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
15105 fi
|
Chris@42
|
15106
|
Chris@42
|
15107 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec
|
Chris@42
|
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
15109 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
15110 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
15111 VSX_CFLAGS="-maltivec"
|
Chris@42
|
15112 else
|
Chris@42
|
15113 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
|
Chris@42
|
15114 fi
|
Chris@42
|
15115
|
Chris@42
|
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5
|
Chris@42
|
15117 $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; }
|
Chris@42
|
15118 if ${ax_cv_c_flags__mvsx+:} false; then :
|
Chris@42
|
15119 $as_echo_n "(cached) " >&6
|
Chris@42
|
15120 else
|
Chris@42
|
15121
|
Chris@42
|
15122 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
15123 CFLAGS="-mvsx"
|
Chris@42
|
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15125 /* end confdefs.h. */
|
Chris@42
|
15126
|
Chris@42
|
15127 int
|
Chris@42
|
15128 main ()
|
Chris@42
|
15129 {
|
Chris@42
|
15130
|
Chris@42
|
15131 ;
|
Chris@42
|
15132 return 0;
|
Chris@42
|
15133 }
|
Chris@42
|
15134 _ACEOF
|
Chris@42
|
15135 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15136 ax_cv_c_flags__mvsx=yes
|
Chris@42
|
15137 else
|
Chris@42
|
15138 ax_cv_c_flags__mvsx=no
|
Chris@42
|
15139 fi
|
Chris@42
|
15140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15141 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
15142 fi
|
Chris@42
|
15143
|
Chris@42
|
15144 eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx
|
Chris@42
|
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
15146 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
15147 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
15148 VSX_CFLAGS="-mvsx $VSX_CFLAGS"
|
Chris@42
|
15149 else
|
Chris@42
|
15150 as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5
|
Chris@42
|
15151 fi
|
Chris@42
|
15152
|
Chris@42
|
15153 fi
|
Chris@42
|
15154 ;;
|
Chris@42
|
15155
|
Chris@42
|
15156 ibm)
|
Chris@42
|
15157 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
|
Chris@42
|
15158 # Note that IBM xlC uses -qaltivec for VSX too.
|
Chris@42
|
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -qaltivec" >&5
|
Chris@42
|
15160 $as_echo_n "checking whether C compiler accepts -qaltivec... " >&6; }
|
Chris@42
|
15161 if ${ax_cv_c_flags__qaltivec+:} false; then :
|
Chris@42
|
15162 $as_echo_n "(cached) " >&6
|
Chris@42
|
15163 else
|
Chris@42
|
15164
|
Chris@42
|
15165 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
15166 CFLAGS="-qaltivec"
|
Chris@42
|
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15168 /* end confdefs.h. */
|
Chris@42
|
15169
|
Chris@42
|
15170 int
|
Chris@42
|
15171 main ()
|
Chris@42
|
15172 {
|
Chris@42
|
15173
|
Chris@42
|
15174 ;
|
Chris@42
|
15175 return 0;
|
Chris@42
|
15176 }
|
Chris@42
|
15177 _ACEOF
|
Chris@42
|
15178 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15179 ax_cv_c_flags__qaltivec=yes
|
Chris@42
|
15180 else
|
Chris@42
|
15181 ax_cv_c_flags__qaltivec=no
|
Chris@42
|
15182 fi
|
Chris@42
|
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15184 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
15185 fi
|
Chris@42
|
15186
|
Chris@42
|
15187 eval ax_check_compiler_flags=$ax_cv_c_flags__qaltivec
|
Chris@42
|
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
15189 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
15190 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
15191 VSX_CFLAGS="-qaltivec"
|
Chris@42
|
15192 else
|
Chris@42
|
15193 as_fn_error $? "Need a version of gcc with -qaltivec" "$LINENO" 5
|
Chris@42
|
15194 fi
|
Chris@42
|
15195
|
Chris@42
|
15196 fi
|
Chris@42
|
15197 ;;
|
Chris@42
|
15198 esac
|
Chris@42
|
15199
|
Chris@42
|
15200
|
Chris@42
|
15201
|
Chris@42
|
15202
|
Chris@42
|
15203
|
Chris@42
|
15204
|
Chris@42
|
15205
|
Chris@42
|
15206
|
Chris@42
|
15207
|
Chris@42
|
15208
|
Chris@42
|
15209 if test "$with_incoming_stack_boundary"x != "no"x; then
|
Chris@42
|
15210 case "${ax_cv_c_compiler_vendor}" in
|
Chris@42
|
15211 gnu)
|
Chris@42
|
15212 tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary";
|
Chris@42
|
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5
|
Chris@42
|
15214 $as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; }
|
Chris@42
|
15215 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
15216 CFLAGS="$tentative_flags"
|
Chris@42
|
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15218 /* end confdefs.h. */
|
Chris@42
|
15219
|
Chris@42
|
15220 int
|
Chris@42
|
15221 main ()
|
Chris@42
|
15222 {
|
Chris@42
|
15223
|
Chris@42
|
15224 ;
|
Chris@42
|
15225 return 0;
|
Chris@42
|
15226 }
|
Chris@42
|
15227 _ACEOF
|
Chris@42
|
15228 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15229 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes
|
Chris@42
|
15230 else
|
Chris@42
|
15231 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no
|
Chris@42
|
15232 fi
|
Chris@42
|
15233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15234 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
15235 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`
|
Chris@42
|
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
15237 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
15238 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
15239 STACK_ALIGN_CFLAGS=$tentative_flags
|
Chris@42
|
15240 else
|
Chris@42
|
15241 :
|
Chris@42
|
15242 fi
|
Chris@42
|
15243
|
Chris@42
|
15244 ;;
|
Chris@42
|
15245 esac
|
Chris@42
|
15246 fi
|
Chris@42
|
15247
|
Chris@42
|
15248
|
Chris@42
|
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
Chris@42
|
15250 $as_echo_n "checking for ANSI C header files... " >&6; }
|
Chris@42
|
15251 if ${ac_cv_header_stdc+:} false; then :
|
Chris@42
|
15252 $as_echo_n "(cached) " >&6
|
Chris@42
|
15253 else
|
Chris@42
|
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15255 /* end confdefs.h. */
|
Chris@42
|
15256 #include <stdlib.h>
|
Chris@42
|
15257 #include <stdarg.h>
|
Chris@42
|
15258 #include <string.h>
|
Chris@42
|
15259 #include <float.h>
|
Chris@42
|
15260
|
Chris@42
|
15261 int
|
Chris@42
|
15262 main ()
|
Chris@42
|
15263 {
|
Chris@42
|
15264
|
Chris@42
|
15265 ;
|
Chris@42
|
15266 return 0;
|
Chris@42
|
15267 }
|
Chris@42
|
15268 _ACEOF
|
Chris@42
|
15269 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15270 ac_cv_header_stdc=yes
|
Chris@42
|
15271 else
|
Chris@42
|
15272 ac_cv_header_stdc=no
|
Chris@42
|
15273 fi
|
Chris@42
|
15274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15275
|
Chris@42
|
15276 if test $ac_cv_header_stdc = yes; then
|
Chris@42
|
15277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
Chris@42
|
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15279 /* end confdefs.h. */
|
Chris@42
|
15280 #include <string.h>
|
Chris@42
|
15281
|
Chris@42
|
15282 _ACEOF
|
Chris@42
|
15283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
Chris@42
|
15284 $EGREP "memchr" >/dev/null 2>&1; then :
|
Chris@42
|
15285
|
Chris@42
|
15286 else
|
Chris@42
|
15287 ac_cv_header_stdc=no
|
Chris@42
|
15288 fi
|
Chris@42
|
15289 rm -f conftest*
|
Chris@42
|
15290
|
Chris@42
|
15291 fi
|
Chris@42
|
15292
|
Chris@42
|
15293 if test $ac_cv_header_stdc = yes; then
|
Chris@42
|
15294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
Chris@42
|
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15296 /* end confdefs.h. */
|
Chris@42
|
15297 #include <stdlib.h>
|
Chris@42
|
15298
|
Chris@42
|
15299 _ACEOF
|
Chris@42
|
15300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
Chris@42
|
15301 $EGREP "free" >/dev/null 2>&1; then :
|
Chris@42
|
15302
|
Chris@42
|
15303 else
|
Chris@42
|
15304 ac_cv_header_stdc=no
|
Chris@42
|
15305 fi
|
Chris@42
|
15306 rm -f conftest*
|
Chris@42
|
15307
|
Chris@42
|
15308 fi
|
Chris@42
|
15309
|
Chris@42
|
15310 if test $ac_cv_header_stdc = yes; then
|
Chris@42
|
15311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
Chris@42
|
15312 if test "$cross_compiling" = yes; then :
|
Chris@42
|
15313 :
|
Chris@42
|
15314 else
|
Chris@42
|
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15316 /* end confdefs.h. */
|
Chris@42
|
15317 #include <ctype.h>
|
Chris@42
|
15318 #include <stdlib.h>
|
Chris@42
|
15319 #if ((' ' & 0x0FF) == 0x020)
|
Chris@42
|
15320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
Chris@42
|
15321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
Chris@42
|
15322 #else
|
Chris@42
|
15323 # define ISLOWER(c) \
|
Chris@42
|
15324 (('a' <= (c) && (c) <= 'i') \
|
Chris@42
|
15325 || ('j' <= (c) && (c) <= 'r') \
|
Chris@42
|
15326 || ('s' <= (c) && (c) <= 'z'))
|
Chris@42
|
15327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
Chris@42
|
15328 #endif
|
Chris@42
|
15329
|
Chris@42
|
15330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
Chris@42
|
15331 int
|
Chris@42
|
15332 main ()
|
Chris@42
|
15333 {
|
Chris@42
|
15334 int i;
|
Chris@42
|
15335 for (i = 0; i < 256; i++)
|
Chris@42
|
15336 if (XOR (islower (i), ISLOWER (i))
|
Chris@42
|
15337 || toupper (i) != TOUPPER (i))
|
Chris@42
|
15338 return 2;
|
Chris@42
|
15339 return 0;
|
Chris@42
|
15340 }
|
Chris@42
|
15341 _ACEOF
|
Chris@42
|
15342 if ac_fn_c_try_run "$LINENO"; then :
|
Chris@42
|
15343
|
Chris@42
|
15344 else
|
Chris@42
|
15345 ac_cv_header_stdc=no
|
Chris@42
|
15346 fi
|
Chris@42
|
15347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
Chris@42
|
15348 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
Chris@42
|
15349 fi
|
Chris@42
|
15350
|
Chris@42
|
15351 fi
|
Chris@42
|
15352 fi
|
Chris@42
|
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
Chris@42
|
15354 $as_echo "$ac_cv_header_stdc" >&6; }
|
Chris@42
|
15355 if test $ac_cv_header_stdc = yes; then
|
Chris@42
|
15356
|
Chris@42
|
15357 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
Chris@42
|
15358
|
Chris@42
|
15359 fi
|
Chris@42
|
15360
|
Chris@42
|
15361 for ac_header in libintl.h malloc.h stddef.h stdlib.h string.h strings.h sys/time.h unistd.h limits.h c_asm.h intrinsics.h stdint.h mach/mach_time.h sys/sysctl.h
|
Chris@42
|
15362 do :
|
Chris@42
|
15363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
Chris@42
|
15364 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
Chris@42
|
15365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
Chris@42
|
15366 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
Chris@42
|
15368 _ACEOF
|
Chris@42
|
15369
|
Chris@42
|
15370 fi
|
Chris@42
|
15371
|
Chris@42
|
15372 done
|
Chris@42
|
15373
|
Chris@42
|
15374
|
Chris@42
|
15375 save_CFLAGS="$CFLAGS"
|
Chris@42
|
15376 save_CPPFLAGS="$CPPFLAGS"
|
Chris@42
|
15377 CFLAGS="$CFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS"
|
Chris@42
|
15378 CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS"
|
Chris@42
|
15379 for ac_header in altivec.h
|
Chris@42
|
15380 do :
|
Chris@42
|
15381 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
|
Chris@42
|
15382 if test "x$ac_cv_header_altivec_h" = xyes; then :
|
Chris@42
|
15383 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15384 #define HAVE_ALTIVEC_H 1
|
Chris@42
|
15385 _ACEOF
|
Chris@42
|
15386
|
Chris@42
|
15387 fi
|
Chris@42
|
15388
|
Chris@42
|
15389 done
|
Chris@42
|
15390
|
Chris@42
|
15391 CFLAGS="$save_CFLAGS"
|
Chris@42
|
15392 CPPFLAGS="$save_CPPFLAGS"
|
Chris@42
|
15393
|
Chris@42
|
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
Chris@42
|
15395 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
Chris@42
|
15396 if ${ac_cv_c_const+:} false; then :
|
Chris@42
|
15397 $as_echo_n "(cached) " >&6
|
Chris@42
|
15398 else
|
Chris@42
|
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15400 /* end confdefs.h. */
|
Chris@42
|
15401
|
Chris@42
|
15402 int
|
Chris@42
|
15403 main ()
|
Chris@42
|
15404 {
|
Chris@42
|
15405
|
Chris@42
|
15406 #ifndef __cplusplus
|
Chris@42
|
15407 /* Ultrix mips cc rejects this sort of thing. */
|
Chris@42
|
15408 typedef int charset[2];
|
Chris@42
|
15409 const charset cs = { 0, 0 };
|
Chris@42
|
15410 /* SunOS 4.1.1 cc rejects this. */
|
Chris@42
|
15411 char const *const *pcpcc;
|
Chris@42
|
15412 char **ppc;
|
Chris@42
|
15413 /* NEC SVR4.0.2 mips cc rejects this. */
|
Chris@42
|
15414 struct point {int x, y;};
|
Chris@42
|
15415 static struct point const zero = {0,0};
|
Chris@42
|
15416 /* AIX XL C 1.02.0.0 rejects this.
|
Chris@42
|
15417 It does not let you subtract one const X* pointer from another in
|
Chris@42
|
15418 an arm of an if-expression whose if-part is not a constant
|
Chris@42
|
15419 expression */
|
Chris@42
|
15420 const char *g = "string";
|
Chris@42
|
15421 pcpcc = &g + (g ? g-g : 0);
|
Chris@42
|
15422 /* HPUX 7.0 cc rejects these. */
|
Chris@42
|
15423 ++pcpcc;
|
Chris@42
|
15424 ppc = (char**) pcpcc;
|
Chris@42
|
15425 pcpcc = (char const *const *) ppc;
|
Chris@42
|
15426 { /* SCO 3.2v4 cc rejects this sort of thing. */
|
Chris@42
|
15427 char tx;
|
Chris@42
|
15428 char *t = &tx;
|
Chris@42
|
15429 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
Chris@42
|
15430
|
Chris@42
|
15431 *t++ = 0;
|
Chris@42
|
15432 if (s) return 0;
|
Chris@42
|
15433 }
|
Chris@42
|
15434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
Chris@42
|
15435 int x[] = {25, 17};
|
Chris@42
|
15436 const int *foo = &x[0];
|
Chris@42
|
15437 ++foo;
|
Chris@42
|
15438 }
|
Chris@42
|
15439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
Chris@42
|
15440 typedef const int *iptr;
|
Chris@42
|
15441 iptr p = 0;
|
Chris@42
|
15442 ++p;
|
Chris@42
|
15443 }
|
Chris@42
|
15444 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
Chris@42
|
15445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
Chris@42
|
15446 struct s { int j; const int *ap[3]; } bx;
|
Chris@42
|
15447 struct s *b = &bx; b->j = 5;
|
Chris@42
|
15448 }
|
Chris@42
|
15449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
Chris@42
|
15450 const int foo = 10;
|
Chris@42
|
15451 if (!foo) return 0;
|
Chris@42
|
15452 }
|
Chris@42
|
15453 return !cs[0] && !zero.x;
|
Chris@42
|
15454 #endif
|
Chris@42
|
15455
|
Chris@42
|
15456 ;
|
Chris@42
|
15457 return 0;
|
Chris@42
|
15458 }
|
Chris@42
|
15459 _ACEOF
|
Chris@42
|
15460 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15461 ac_cv_c_const=yes
|
Chris@42
|
15462 else
|
Chris@42
|
15463 ac_cv_c_const=no
|
Chris@42
|
15464 fi
|
Chris@42
|
15465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15466 fi
|
Chris@42
|
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
Chris@42
|
15468 $as_echo "$ac_cv_c_const" >&6; }
|
Chris@42
|
15469 if test $ac_cv_c_const = no; then
|
Chris@42
|
15470
|
Chris@42
|
15471 $as_echo "#define const /**/" >>confdefs.h
|
Chris@42
|
15472
|
Chris@42
|
15473 fi
|
Chris@42
|
15474
|
Chris@42
|
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
|
Chris@42
|
15476 $as_echo_n "checking for inline... " >&6; }
|
Chris@42
|
15477 if ${ac_cv_c_inline+:} false; then :
|
Chris@42
|
15478 $as_echo_n "(cached) " >&6
|
Chris@42
|
15479 else
|
Chris@42
|
15480 ac_cv_c_inline=no
|
Chris@42
|
15481 for ac_kw in inline __inline__ __inline; do
|
Chris@42
|
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15483 /* end confdefs.h. */
|
Chris@42
|
15484 #ifndef __cplusplus
|
Chris@42
|
15485 typedef int foo_t;
|
Chris@42
|
15486 static $ac_kw foo_t static_foo () {return 0; }
|
Chris@42
|
15487 $ac_kw foo_t foo () {return 0; }
|
Chris@42
|
15488 #endif
|
Chris@42
|
15489
|
Chris@42
|
15490 _ACEOF
|
Chris@42
|
15491 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15492 ac_cv_c_inline=$ac_kw
|
Chris@42
|
15493 fi
|
Chris@42
|
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15495 test "$ac_cv_c_inline" != no && break
|
Chris@42
|
15496 done
|
Chris@42
|
15497
|
Chris@42
|
15498 fi
|
Chris@42
|
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
|
Chris@42
|
15500 $as_echo "$ac_cv_c_inline" >&6; }
|
Chris@42
|
15501
|
Chris@42
|
15502 case $ac_cv_c_inline in
|
Chris@42
|
15503 inline | yes) ;;
|
Chris@42
|
15504 *)
|
Chris@42
|
15505 case $ac_cv_c_inline in
|
Chris@42
|
15506 no) ac_val=;;
|
Chris@42
|
15507 *) ac_val=$ac_cv_c_inline;;
|
Chris@42
|
15508 esac
|
Chris@42
|
15509 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15510 #ifndef __cplusplus
|
Chris@42
|
15511 #define inline $ac_val
|
Chris@42
|
15512 #endif
|
Chris@42
|
15513 _ACEOF
|
Chris@42
|
15514 ;;
|
Chris@42
|
15515 esac
|
Chris@42
|
15516
|
Chris@42
|
15517 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
Chris@42
|
15518 if test "x$ac_cv_type_size_t" = xyes; then :
|
Chris@42
|
15519
|
Chris@42
|
15520 else
|
Chris@42
|
15521
|
Chris@42
|
15522 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15523 #define size_t unsigned int
|
Chris@42
|
15524 _ACEOF
|
Chris@42
|
15525
|
Chris@42
|
15526 fi
|
Chris@42
|
15527
|
Chris@42
|
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
Chris@42
|
15529 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
Chris@42
|
15530 if ${ac_cv_header_time+:} false; then :
|
Chris@42
|
15531 $as_echo_n "(cached) " >&6
|
Chris@42
|
15532 else
|
Chris@42
|
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
15534 /* end confdefs.h. */
|
Chris@42
|
15535 #include <sys/types.h>
|
Chris@42
|
15536 #include <sys/time.h>
|
Chris@42
|
15537 #include <time.h>
|
Chris@42
|
15538
|
Chris@42
|
15539 int
|
Chris@42
|
15540 main ()
|
Chris@42
|
15541 {
|
Chris@42
|
15542 if ((struct tm *) 0)
|
Chris@42
|
15543 return 0;
|
Chris@42
|
15544 ;
|
Chris@42
|
15545 return 0;
|
Chris@42
|
15546 }
|
Chris@42
|
15547 _ACEOF
|
Chris@42
|
15548 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
15549 ac_cv_header_time=yes
|
Chris@42
|
15550 else
|
Chris@42
|
15551 ac_cv_header_time=no
|
Chris@42
|
15552 fi
|
Chris@42
|
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
15554 fi
|
Chris@42
|
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
Chris@42
|
15556 $as_echo "$ac_cv_header_time" >&6; }
|
Chris@42
|
15557 if test $ac_cv_header_time = yes; then
|
Chris@42
|
15558
|
Chris@42
|
15559 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
Chris@42
|
15560
|
Chris@42
|
15561 fi
|
Chris@42
|
15562
|
Chris@42
|
15563 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
|
Chris@42
|
15564 if test "x$ac_cv_type_long_double" = xyes; then :
|
Chris@42
|
15565
|
Chris@42
|
15566 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
|
Chris@42
|
15567
|
Chris@42
|
15568 else
|
Chris@42
|
15569
|
Chris@42
|
15570 if test $PRECISION = l; then
|
Chris@42
|
15571 as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5
|
Chris@42
|
15572 fi
|
Chris@42
|
15573
|
Chris@42
|
15574 fi
|
Chris@42
|
15575
|
Chris@42
|
15576 ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" "
|
Chris@42
|
15577 #if HAVE_SYS_TIME_H
|
Chris@42
|
15578 #include <sys/time.h>
|
Chris@42
|
15579 #endif
|
Chris@42
|
15580
|
Chris@42
|
15581 "
|
Chris@42
|
15582 if test "x$ac_cv_type_hrtime_t" = xyes; then :
|
Chris@42
|
15583
|
Chris@42
|
15584 $as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h
|
Chris@42
|
15585
|
Chris@42
|
15586 fi
|
Chris@42
|
15587
|
Chris@42
|
15588
|
Chris@42
|
15589 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15592 # This bug is HP SR number 8606223364.
|
Chris@42
|
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
|
Chris@42
|
15594 $as_echo_n "checking size of int... " >&6; }
|
Chris@42
|
15595 if ${ac_cv_sizeof_int+:} false; then :
|
Chris@42
|
15596 $as_echo_n "(cached) " >&6
|
Chris@42
|
15597 else
|
Chris@42
|
15598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
|
Chris@42
|
15599
|
Chris@42
|
15600 else
|
Chris@42
|
15601 if test "$ac_cv_type_int" = yes; then
|
Chris@42
|
15602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15604 as_fn_error 77 "cannot compute sizeof (int)
|
Chris@42
|
15605 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15606 else
|
Chris@42
|
15607 ac_cv_sizeof_int=0
|
Chris@42
|
15608 fi
|
Chris@42
|
15609 fi
|
Chris@42
|
15610
|
Chris@42
|
15611 fi
|
Chris@42
|
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
|
Chris@42
|
15613 $as_echo "$ac_cv_sizeof_int" >&6; }
|
Chris@42
|
15614
|
Chris@42
|
15615
|
Chris@42
|
15616
|
Chris@42
|
15617 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15618 #define SIZEOF_INT $ac_cv_sizeof_int
|
Chris@42
|
15619 _ACEOF
|
Chris@42
|
15620
|
Chris@42
|
15621
|
Chris@42
|
15622 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15625 # This bug is HP SR number 8606223364.
|
Chris@42
|
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
|
Chris@42
|
15627 $as_echo_n "checking size of unsigned int... " >&6; }
|
Chris@42
|
15628 if ${ac_cv_sizeof_unsigned_int+:} false; then :
|
Chris@42
|
15629 $as_echo_n "(cached) " >&6
|
Chris@42
|
15630 else
|
Chris@42
|
15631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
|
Chris@42
|
15632
|
Chris@42
|
15633 else
|
Chris@42
|
15634 if test "$ac_cv_type_unsigned_int" = yes; then
|
Chris@42
|
15635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15637 as_fn_error 77 "cannot compute sizeof (unsigned int)
|
Chris@42
|
15638 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15639 else
|
Chris@42
|
15640 ac_cv_sizeof_unsigned_int=0
|
Chris@42
|
15641 fi
|
Chris@42
|
15642 fi
|
Chris@42
|
15643
|
Chris@42
|
15644 fi
|
Chris@42
|
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
|
Chris@42
|
15646 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
|
Chris@42
|
15647
|
Chris@42
|
15648
|
Chris@42
|
15649
|
Chris@42
|
15650 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15651 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
|
Chris@42
|
15652 _ACEOF
|
Chris@42
|
15653
|
Chris@42
|
15654
|
Chris@42
|
15655 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15658 # This bug is HP SR number 8606223364.
|
Chris@42
|
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
|
Chris@42
|
15660 $as_echo_n "checking size of long... " >&6; }
|
Chris@42
|
15661 if ${ac_cv_sizeof_long+:} false; then :
|
Chris@42
|
15662 $as_echo_n "(cached) " >&6
|
Chris@42
|
15663 else
|
Chris@42
|
15664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
|
Chris@42
|
15665
|
Chris@42
|
15666 else
|
Chris@42
|
15667 if test "$ac_cv_type_long" = yes; then
|
Chris@42
|
15668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15670 as_fn_error 77 "cannot compute sizeof (long)
|
Chris@42
|
15671 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15672 else
|
Chris@42
|
15673 ac_cv_sizeof_long=0
|
Chris@42
|
15674 fi
|
Chris@42
|
15675 fi
|
Chris@42
|
15676
|
Chris@42
|
15677 fi
|
Chris@42
|
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
|
Chris@42
|
15679 $as_echo "$ac_cv_sizeof_long" >&6; }
|
Chris@42
|
15680
|
Chris@42
|
15681
|
Chris@42
|
15682
|
Chris@42
|
15683 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15684 #define SIZEOF_LONG $ac_cv_sizeof_long
|
Chris@42
|
15685 _ACEOF
|
Chris@42
|
15686
|
Chris@42
|
15687
|
Chris@42
|
15688 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15691 # This bug is HP SR number 8606223364.
|
Chris@42
|
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
|
Chris@42
|
15693 $as_echo_n "checking size of unsigned long... " >&6; }
|
Chris@42
|
15694 if ${ac_cv_sizeof_unsigned_long+:} false; then :
|
Chris@42
|
15695 $as_echo_n "(cached) " >&6
|
Chris@42
|
15696 else
|
Chris@42
|
15697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
|
Chris@42
|
15698
|
Chris@42
|
15699 else
|
Chris@42
|
15700 if test "$ac_cv_type_unsigned_long" = yes; then
|
Chris@42
|
15701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15703 as_fn_error 77 "cannot compute sizeof (unsigned long)
|
Chris@42
|
15704 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15705 else
|
Chris@42
|
15706 ac_cv_sizeof_unsigned_long=0
|
Chris@42
|
15707 fi
|
Chris@42
|
15708 fi
|
Chris@42
|
15709
|
Chris@42
|
15710 fi
|
Chris@42
|
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
|
Chris@42
|
15712 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
|
Chris@42
|
15713
|
Chris@42
|
15714
|
Chris@42
|
15715
|
Chris@42
|
15716 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15717 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
|
Chris@42
|
15718 _ACEOF
|
Chris@42
|
15719
|
Chris@42
|
15720
|
Chris@42
|
15721 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15724 # This bug is HP SR number 8606223364.
|
Chris@42
|
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
|
Chris@42
|
15726 $as_echo_n "checking size of long long... " >&6; }
|
Chris@42
|
15727 if ${ac_cv_sizeof_long_long+:} false; then :
|
Chris@42
|
15728 $as_echo_n "(cached) " >&6
|
Chris@42
|
15729 else
|
Chris@42
|
15730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
|
Chris@42
|
15731
|
Chris@42
|
15732 else
|
Chris@42
|
15733 if test "$ac_cv_type_long_long" = yes; then
|
Chris@42
|
15734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15736 as_fn_error 77 "cannot compute sizeof (long long)
|
Chris@42
|
15737 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15738 else
|
Chris@42
|
15739 ac_cv_sizeof_long_long=0
|
Chris@42
|
15740 fi
|
Chris@42
|
15741 fi
|
Chris@42
|
15742
|
Chris@42
|
15743 fi
|
Chris@42
|
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
|
Chris@42
|
15745 $as_echo "$ac_cv_sizeof_long_long" >&6; }
|
Chris@42
|
15746
|
Chris@42
|
15747
|
Chris@42
|
15748
|
Chris@42
|
15749 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15750 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
Chris@42
|
15751 _ACEOF
|
Chris@42
|
15752
|
Chris@42
|
15753
|
Chris@42
|
15754 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15757 # This bug is HP SR number 8606223364.
|
Chris@42
|
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
|
Chris@42
|
15759 $as_echo_n "checking size of unsigned long long... " >&6; }
|
Chris@42
|
15760 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
|
Chris@42
|
15761 $as_echo_n "(cached) " >&6
|
Chris@42
|
15762 else
|
Chris@42
|
15763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
|
Chris@42
|
15764
|
Chris@42
|
15765 else
|
Chris@42
|
15766 if test "$ac_cv_type_unsigned_long_long" = yes; then
|
Chris@42
|
15767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15769 as_fn_error 77 "cannot compute sizeof (unsigned long long)
|
Chris@42
|
15770 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15771 else
|
Chris@42
|
15772 ac_cv_sizeof_unsigned_long_long=0
|
Chris@42
|
15773 fi
|
Chris@42
|
15774 fi
|
Chris@42
|
15775
|
Chris@42
|
15776 fi
|
Chris@42
|
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
|
Chris@42
|
15778 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
|
Chris@42
|
15779
|
Chris@42
|
15780
|
Chris@42
|
15781
|
Chris@42
|
15782 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15783 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
|
Chris@42
|
15784 _ACEOF
|
Chris@42
|
15785
|
Chris@42
|
15786
|
Chris@42
|
15787 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15790 # This bug is HP SR number 8606223364.
|
Chris@42
|
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
|
Chris@42
|
15792 $as_echo_n "checking size of size_t... " >&6; }
|
Chris@42
|
15793 if ${ac_cv_sizeof_size_t+:} false; then :
|
Chris@42
|
15794 $as_echo_n "(cached) " >&6
|
Chris@42
|
15795 else
|
Chris@42
|
15796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
|
Chris@42
|
15797
|
Chris@42
|
15798 else
|
Chris@42
|
15799 if test "$ac_cv_type_size_t" = yes; then
|
Chris@42
|
15800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15802 as_fn_error 77 "cannot compute sizeof (size_t)
|
Chris@42
|
15803 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15804 else
|
Chris@42
|
15805 ac_cv_sizeof_size_t=0
|
Chris@42
|
15806 fi
|
Chris@42
|
15807 fi
|
Chris@42
|
15808
|
Chris@42
|
15809 fi
|
Chris@42
|
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
|
Chris@42
|
15811 $as_echo "$ac_cv_sizeof_size_t" >&6; }
|
Chris@42
|
15812
|
Chris@42
|
15813
|
Chris@42
|
15814
|
Chris@42
|
15815 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15816 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
|
Chris@42
|
15817 _ACEOF
|
Chris@42
|
15818
|
Chris@42
|
15819
|
Chris@42
|
15820 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15823 # This bug is HP SR number 8606223364.
|
Chris@42
|
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
|
Chris@42
|
15825 $as_echo_n "checking size of ptrdiff_t... " >&6; }
|
Chris@42
|
15826 if ${ac_cv_sizeof_ptrdiff_t+:} false; then :
|
Chris@42
|
15827 $as_echo_n "(cached) " >&6
|
Chris@42
|
15828 else
|
Chris@42
|
15829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then :
|
Chris@42
|
15830
|
Chris@42
|
15831 else
|
Chris@42
|
15832 if test "$ac_cv_type_ptrdiff_t" = yes; then
|
Chris@42
|
15833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15835 as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
|
Chris@42
|
15836 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15837 else
|
Chris@42
|
15838 ac_cv_sizeof_ptrdiff_t=0
|
Chris@42
|
15839 fi
|
Chris@42
|
15840 fi
|
Chris@42
|
15841
|
Chris@42
|
15842 fi
|
Chris@42
|
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
|
Chris@42
|
15844 $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
|
Chris@42
|
15845
|
Chris@42
|
15846
|
Chris@42
|
15847
|
Chris@42
|
15848 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15849 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
|
Chris@42
|
15850 _ACEOF
|
Chris@42
|
15851
|
Chris@42
|
15852
|
Chris@42
|
15853
|
Chris@42
|
15854 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default
|
Chris@42
|
15855 #ifdef HAVE_STDINT_H
|
Chris@42
|
15856 # include <stdint.h>
|
Chris@42
|
15857 #endif
|
Chris@42
|
15858 "
|
Chris@42
|
15859 if test "x$ac_cv_type_uintptr_t" = xyes; then :
|
Chris@42
|
15860
|
Chris@42
|
15861 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15862 #define HAVE_UINTPTR_T 1
|
Chris@42
|
15863 _ACEOF
|
Chris@42
|
15864
|
Chris@42
|
15865
|
Chris@42
|
15866 else
|
Chris@42
|
15867 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15870 # This bug is HP SR number 8606223364.
|
Chris@42
|
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
|
Chris@42
|
15872 $as_echo_n "checking size of void *... " >&6; }
|
Chris@42
|
15873 if ${ac_cv_sizeof_void_p+:} false; then :
|
Chris@42
|
15874 $as_echo_n "(cached) " >&6
|
Chris@42
|
15875 else
|
Chris@42
|
15876 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
|
Chris@42
|
15877
|
Chris@42
|
15878 else
|
Chris@42
|
15879 if test "$ac_cv_type_void_p" = yes; then
|
Chris@42
|
15880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15882 as_fn_error 77 "cannot compute sizeof (void *)
|
Chris@42
|
15883 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15884 else
|
Chris@42
|
15885 ac_cv_sizeof_void_p=0
|
Chris@42
|
15886 fi
|
Chris@42
|
15887 fi
|
Chris@42
|
15888
|
Chris@42
|
15889 fi
|
Chris@42
|
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
|
Chris@42
|
15891 $as_echo "$ac_cv_sizeof_void_p" >&6; }
|
Chris@42
|
15892
|
Chris@42
|
15893
|
Chris@42
|
15894
|
Chris@42
|
15895 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15896 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
Chris@42
|
15897 _ACEOF
|
Chris@42
|
15898
|
Chris@42
|
15899
|
Chris@42
|
15900 fi
|
Chris@42
|
15901
|
Chris@42
|
15902
|
Chris@42
|
15903 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15906 # This bug is HP SR number 8606223364.
|
Chris@42
|
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
|
Chris@42
|
15908 $as_echo_n "checking size of float... " >&6; }
|
Chris@42
|
15909 if ${ac_cv_sizeof_float+:} false; then :
|
Chris@42
|
15910 $as_echo_n "(cached) " >&6
|
Chris@42
|
15911 else
|
Chris@42
|
15912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
|
Chris@42
|
15913
|
Chris@42
|
15914 else
|
Chris@42
|
15915 if test "$ac_cv_type_float" = yes; then
|
Chris@42
|
15916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15918 as_fn_error 77 "cannot compute sizeof (float)
|
Chris@42
|
15919 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15920 else
|
Chris@42
|
15921 ac_cv_sizeof_float=0
|
Chris@42
|
15922 fi
|
Chris@42
|
15923 fi
|
Chris@42
|
15924
|
Chris@42
|
15925 fi
|
Chris@42
|
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
|
Chris@42
|
15927 $as_echo "$ac_cv_sizeof_float" >&6; }
|
Chris@42
|
15928
|
Chris@42
|
15929
|
Chris@42
|
15930
|
Chris@42
|
15931 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15932 #define SIZEOF_FLOAT $ac_cv_sizeof_float
|
Chris@42
|
15933 _ACEOF
|
Chris@42
|
15934
|
Chris@42
|
15935
|
Chris@42
|
15936 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15939 # This bug is HP SR number 8606223364.
|
Chris@42
|
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
|
Chris@42
|
15941 $as_echo_n "checking size of double... " >&6; }
|
Chris@42
|
15942 if ${ac_cv_sizeof_double+:} false; then :
|
Chris@42
|
15943 $as_echo_n "(cached) " >&6
|
Chris@42
|
15944 else
|
Chris@42
|
15945 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
|
Chris@42
|
15946
|
Chris@42
|
15947 else
|
Chris@42
|
15948 if test "$ac_cv_type_double" = yes; then
|
Chris@42
|
15949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15951 as_fn_error 77 "cannot compute sizeof (double)
|
Chris@42
|
15952 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15953 else
|
Chris@42
|
15954 ac_cv_sizeof_double=0
|
Chris@42
|
15955 fi
|
Chris@42
|
15956 fi
|
Chris@42
|
15957
|
Chris@42
|
15958 fi
|
Chris@42
|
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
|
Chris@42
|
15960 $as_echo "$ac_cv_sizeof_double" >&6; }
|
Chris@42
|
15961
|
Chris@42
|
15962
|
Chris@42
|
15963
|
Chris@42
|
15964 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
15965 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
Chris@42
|
15966 _ACEOF
|
Chris@42
|
15967
|
Chris@42
|
15968
|
Chris@42
|
15969
|
Chris@42
|
15970 # The cast to long int works around a bug in the HP C Compiler
|
Chris@42
|
15971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
Chris@42
|
15972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
Chris@42
|
15973 # This bug is HP SR number 8606223364.
|
Chris@42
|
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5
|
Chris@42
|
15975 $as_echo_n "checking size of fftw_r2r_kind... " >&6; }
|
Chris@42
|
15976 if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then :
|
Chris@42
|
15977 $as_echo_n "(cached) " >&6
|
Chris@42
|
15978 else
|
Chris@42
|
15979 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind" "typedef enum {
|
Chris@42
|
15980 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
|
Chris@42
|
15981 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
|
Chris@42
|
15982 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
|
Chris@42
|
15983 } fftw_r2r_kind;
|
Chris@42
|
15984 "; then :
|
Chris@42
|
15985
|
Chris@42
|
15986 else
|
Chris@42
|
15987 if test "$ac_cv_type_fftw_r2r_kind" = yes; then
|
Chris@42
|
15988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
15989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
15990 as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind)
|
Chris@42
|
15991 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
15992 else
|
Chris@42
|
15993 ac_cv_sizeof_fftw_r2r_kind=0
|
Chris@42
|
15994 fi
|
Chris@42
|
15995 fi
|
Chris@42
|
15996
|
Chris@42
|
15997 fi
|
Chris@42
|
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5
|
Chris@42
|
15999 $as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; }
|
Chris@42
|
16000
|
Chris@42
|
16001
|
Chris@42
|
16002
|
Chris@42
|
16003 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16004 #define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind
|
Chris@42
|
16005 _ACEOF
|
Chris@42
|
16006
|
Chris@42
|
16007
|
Chris@42
|
16008 if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi
|
Chris@42
|
16009 C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T
|
Chris@42
|
16010
|
Chris@42
|
16011
|
Chris@42
|
16012 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
Chris@42
|
16013 # for constant arguments. Useless!
|
Chris@42
|
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
Chris@42
|
16015 $as_echo_n "checking for working alloca.h... " >&6; }
|
Chris@42
|
16016 if ${ac_cv_working_alloca_h+:} false; then :
|
Chris@42
|
16017 $as_echo_n "(cached) " >&6
|
Chris@42
|
16018 else
|
Chris@42
|
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16020 /* end confdefs.h. */
|
Chris@42
|
16021 #include <alloca.h>
|
Chris@42
|
16022 int
|
Chris@42
|
16023 main ()
|
Chris@42
|
16024 {
|
Chris@42
|
16025 char *p = (char *) alloca (2 * sizeof (int));
|
Chris@42
|
16026 if (p) return 0;
|
Chris@42
|
16027 ;
|
Chris@42
|
16028 return 0;
|
Chris@42
|
16029 }
|
Chris@42
|
16030 _ACEOF
|
Chris@42
|
16031 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
16032 ac_cv_working_alloca_h=yes
|
Chris@42
|
16033 else
|
Chris@42
|
16034 ac_cv_working_alloca_h=no
|
Chris@42
|
16035 fi
|
Chris@42
|
16036 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
16037 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
16038 fi
|
Chris@42
|
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
Chris@42
|
16040 $as_echo "$ac_cv_working_alloca_h" >&6; }
|
Chris@42
|
16041 if test $ac_cv_working_alloca_h = yes; then
|
Chris@42
|
16042
|
Chris@42
|
16043 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
Chris@42
|
16044
|
Chris@42
|
16045 fi
|
Chris@42
|
16046
|
Chris@42
|
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
Chris@42
|
16048 $as_echo_n "checking for alloca... " >&6; }
|
Chris@42
|
16049 if ${ac_cv_func_alloca_works+:} false; then :
|
Chris@42
|
16050 $as_echo_n "(cached) " >&6
|
Chris@42
|
16051 else
|
Chris@42
|
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16053 /* end confdefs.h. */
|
Chris@42
|
16054 #ifdef __GNUC__
|
Chris@42
|
16055 # define alloca __builtin_alloca
|
Chris@42
|
16056 #else
|
Chris@42
|
16057 # ifdef _MSC_VER
|
Chris@42
|
16058 # include <malloc.h>
|
Chris@42
|
16059 # define alloca _alloca
|
Chris@42
|
16060 # else
|
Chris@42
|
16061 # ifdef HAVE_ALLOCA_H
|
Chris@42
|
16062 # include <alloca.h>
|
Chris@42
|
16063 # else
|
Chris@42
|
16064 # ifdef _AIX
|
Chris@42
|
16065 #pragma alloca
|
Chris@42
|
16066 # else
|
Chris@42
|
16067 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
Chris@42
|
16068 void *alloca (size_t);
|
Chris@42
|
16069 # endif
|
Chris@42
|
16070 # endif
|
Chris@42
|
16071 # endif
|
Chris@42
|
16072 # endif
|
Chris@42
|
16073 #endif
|
Chris@42
|
16074
|
Chris@42
|
16075 int
|
Chris@42
|
16076 main ()
|
Chris@42
|
16077 {
|
Chris@42
|
16078 char *p = (char *) alloca (1);
|
Chris@42
|
16079 if (p) return 0;
|
Chris@42
|
16080 ;
|
Chris@42
|
16081 return 0;
|
Chris@42
|
16082 }
|
Chris@42
|
16083 _ACEOF
|
Chris@42
|
16084 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
16085 ac_cv_func_alloca_works=yes
|
Chris@42
|
16086 else
|
Chris@42
|
16087 ac_cv_func_alloca_works=no
|
Chris@42
|
16088 fi
|
Chris@42
|
16089 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
16090 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
16091 fi
|
Chris@42
|
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
Chris@42
|
16093 $as_echo "$ac_cv_func_alloca_works" >&6; }
|
Chris@42
|
16094
|
Chris@42
|
16095 if test $ac_cv_func_alloca_works = yes; then
|
Chris@42
|
16096
|
Chris@42
|
16097 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
Chris@42
|
16098
|
Chris@42
|
16099 else
|
Chris@42
|
16100 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
Chris@42
|
16101 # that cause trouble. Some versions do not even contain alloca or
|
Chris@42
|
16102 # contain a buggy version. If you still want to use their alloca,
|
Chris@42
|
16103 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
Chris@42
|
16104
|
Chris@42
|
16105 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
Chris@42
|
16106
|
Chris@42
|
16107 $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
Chris@42
|
16108
|
Chris@42
|
16109
|
Chris@42
|
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
Chris@42
|
16111 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
Chris@42
|
16112 if ${ac_cv_os_cray+:} false; then :
|
Chris@42
|
16113 $as_echo_n "(cached) " >&6
|
Chris@42
|
16114 else
|
Chris@42
|
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16116 /* end confdefs.h. */
|
Chris@42
|
16117 #if defined CRAY && ! defined CRAY2
|
Chris@42
|
16118 webecray
|
Chris@42
|
16119 #else
|
Chris@42
|
16120 wenotbecray
|
Chris@42
|
16121 #endif
|
Chris@42
|
16122
|
Chris@42
|
16123 _ACEOF
|
Chris@42
|
16124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
Chris@42
|
16125 $EGREP "webecray" >/dev/null 2>&1; then :
|
Chris@42
|
16126 ac_cv_os_cray=yes
|
Chris@42
|
16127 else
|
Chris@42
|
16128 ac_cv_os_cray=no
|
Chris@42
|
16129 fi
|
Chris@42
|
16130 rm -f conftest*
|
Chris@42
|
16131
|
Chris@42
|
16132 fi
|
Chris@42
|
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
Chris@42
|
16134 $as_echo "$ac_cv_os_cray" >&6; }
|
Chris@42
|
16135 if test $ac_cv_os_cray = yes; then
|
Chris@42
|
16136 for ac_func in _getb67 GETB67 getb67; do
|
Chris@42
|
16137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
Chris@42
|
16138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
Chris@42
|
16139 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
Chris@42
|
16140
|
Chris@42
|
16141 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16142 #define CRAY_STACKSEG_END $ac_func
|
Chris@42
|
16143 _ACEOF
|
Chris@42
|
16144
|
Chris@42
|
16145 break
|
Chris@42
|
16146 fi
|
Chris@42
|
16147
|
Chris@42
|
16148 done
|
Chris@42
|
16149 fi
|
Chris@42
|
16150
|
Chris@42
|
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
Chris@42
|
16152 $as_echo_n "checking stack direction for C alloca... " >&6; }
|
Chris@42
|
16153 if ${ac_cv_c_stack_direction+:} false; then :
|
Chris@42
|
16154 $as_echo_n "(cached) " >&6
|
Chris@42
|
16155 else
|
Chris@42
|
16156 if test "$cross_compiling" = yes; then :
|
Chris@42
|
16157 ac_cv_c_stack_direction=0
|
Chris@42
|
16158 else
|
Chris@42
|
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16160 /* end confdefs.h. */
|
Chris@42
|
16161 $ac_includes_default
|
Chris@42
|
16162 int
|
Chris@42
|
16163 find_stack_direction (int *addr, int depth)
|
Chris@42
|
16164 {
|
Chris@42
|
16165 int dir, dummy = 0;
|
Chris@42
|
16166 if (! addr)
|
Chris@42
|
16167 addr = &dummy;
|
Chris@42
|
16168 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
|
Chris@42
|
16169 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
|
Chris@42
|
16170 return dir + dummy;
|
Chris@42
|
16171 }
|
Chris@42
|
16172
|
Chris@42
|
16173 int
|
Chris@42
|
16174 main (int argc, char **argv)
|
Chris@42
|
16175 {
|
Chris@42
|
16176 return find_stack_direction (0, argc + !argv + 20) < 0;
|
Chris@42
|
16177 }
|
Chris@42
|
16178 _ACEOF
|
Chris@42
|
16179 if ac_fn_c_try_run "$LINENO"; then :
|
Chris@42
|
16180 ac_cv_c_stack_direction=1
|
Chris@42
|
16181 else
|
Chris@42
|
16182 ac_cv_c_stack_direction=-1
|
Chris@42
|
16183 fi
|
Chris@42
|
16184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
Chris@42
|
16185 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
Chris@42
|
16186 fi
|
Chris@42
|
16187
|
Chris@42
|
16188 fi
|
Chris@42
|
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
Chris@42
|
16190 $as_echo "$ac_cv_c_stack_direction" >&6; }
|
Chris@42
|
16191 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16192 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
Chris@42
|
16193 _ACEOF
|
Chris@42
|
16194
|
Chris@42
|
16195
|
Chris@42
|
16196 fi
|
Chris@42
|
16197
|
Chris@42
|
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
|
Chris@42
|
16199 $as_echo_n "checking for working strtod... " >&6; }
|
Chris@42
|
16200 if ${ac_cv_func_strtod+:} false; then :
|
Chris@42
|
16201 $as_echo_n "(cached) " >&6
|
Chris@42
|
16202 else
|
Chris@42
|
16203 if test "$cross_compiling" = yes; then :
|
Chris@42
|
16204 ac_cv_func_strtod=no
|
Chris@42
|
16205 else
|
Chris@42
|
16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16207 /* end confdefs.h. */
|
Chris@42
|
16208
|
Chris@42
|
16209 $ac_includes_default
|
Chris@42
|
16210 #ifndef strtod
|
Chris@42
|
16211 double strtod ();
|
Chris@42
|
16212 #endif
|
Chris@42
|
16213 int
|
Chris@42
|
16214 main()
|
Chris@42
|
16215 {
|
Chris@42
|
16216 {
|
Chris@42
|
16217 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
|
Chris@42
|
16218 char *string = " +69";
|
Chris@42
|
16219 char *term;
|
Chris@42
|
16220 double value;
|
Chris@42
|
16221 value = strtod (string, &term);
|
Chris@42
|
16222 if (value != 69 || term != (string + 4))
|
Chris@42
|
16223 return 1;
|
Chris@42
|
16224 }
|
Chris@42
|
16225
|
Chris@42
|
16226 {
|
Chris@42
|
16227 /* Under Solaris 2.4, strtod returns the wrong value for the
|
Chris@42
|
16228 terminating character under some conditions. */
|
Chris@42
|
16229 char *string = "NaN";
|
Chris@42
|
16230 char *term;
|
Chris@42
|
16231 strtod (string, &term);
|
Chris@42
|
16232 if (term != string && *(term - 1) == 0)
|
Chris@42
|
16233 return 1;
|
Chris@42
|
16234 }
|
Chris@42
|
16235 return 0;
|
Chris@42
|
16236 }
|
Chris@42
|
16237
|
Chris@42
|
16238 _ACEOF
|
Chris@42
|
16239 if ac_fn_c_try_run "$LINENO"; then :
|
Chris@42
|
16240 ac_cv_func_strtod=yes
|
Chris@42
|
16241 else
|
Chris@42
|
16242 ac_cv_func_strtod=no
|
Chris@42
|
16243 fi
|
Chris@42
|
16244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
Chris@42
|
16245 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
Chris@42
|
16246 fi
|
Chris@42
|
16247
|
Chris@42
|
16248 fi
|
Chris@42
|
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
|
Chris@42
|
16250 $as_echo "$ac_cv_func_strtod" >&6; }
|
Chris@42
|
16251 if test $ac_cv_func_strtod = no; then
|
Chris@42
|
16252 case " $LIBOBJS " in
|
Chris@42
|
16253 *" strtod.$ac_objext "* ) ;;
|
Chris@42
|
16254 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
|
Chris@42
|
16255 ;;
|
Chris@42
|
16256 esac
|
Chris@42
|
16257
|
Chris@42
|
16258 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
|
Chris@42
|
16259 if test "x$ac_cv_func_pow" = xyes; then :
|
Chris@42
|
16260
|
Chris@42
|
16261 fi
|
Chris@42
|
16262
|
Chris@42
|
16263 if test $ac_cv_func_pow = no; then
|
Chris@42
|
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
|
Chris@42
|
16265 $as_echo_n "checking for pow in -lm... " >&6; }
|
Chris@42
|
16266 if ${ac_cv_lib_m_pow+:} false; then :
|
Chris@42
|
16267 $as_echo_n "(cached) " >&6
|
Chris@42
|
16268 else
|
Chris@42
|
16269 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
16270 LIBS="-lm $LIBS"
|
Chris@42
|
16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16272 /* end confdefs.h. */
|
Chris@42
|
16273
|
Chris@42
|
16274 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
16275 Use char because int might match the return type of a GCC
|
Chris@42
|
16276 builtin and then its argument prototype would still apply. */
|
Chris@42
|
16277 #ifdef __cplusplus
|
Chris@42
|
16278 extern "C"
|
Chris@42
|
16279 #endif
|
Chris@42
|
16280 char pow ();
|
Chris@42
|
16281 int
|
Chris@42
|
16282 main ()
|
Chris@42
|
16283 {
|
Chris@42
|
16284 return pow ();
|
Chris@42
|
16285 ;
|
Chris@42
|
16286 return 0;
|
Chris@42
|
16287 }
|
Chris@42
|
16288 _ACEOF
|
Chris@42
|
16289 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
16290 ac_cv_lib_m_pow=yes
|
Chris@42
|
16291 else
|
Chris@42
|
16292 ac_cv_lib_m_pow=no
|
Chris@42
|
16293 fi
|
Chris@42
|
16294 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
16295 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
16296 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
16297 fi
|
Chris@42
|
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
|
Chris@42
|
16299 $as_echo "$ac_cv_lib_m_pow" >&6; }
|
Chris@42
|
16300 if test "x$ac_cv_lib_m_pow" = xyes; then :
|
Chris@42
|
16301 POW_LIB=-lm
|
Chris@42
|
16302 else
|
Chris@42
|
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
|
Chris@42
|
16304 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
|
Chris@42
|
16305 fi
|
Chris@42
|
16306
|
Chris@42
|
16307 fi
|
Chris@42
|
16308
|
Chris@42
|
16309 fi
|
Chris@42
|
16310
|
Chris@42
|
16311 for ac_func in vprintf
|
Chris@42
|
16312 do :
|
Chris@42
|
16313 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
Chris@42
|
16314 if test "x$ac_cv_func_vprintf" = xyes; then :
|
Chris@42
|
16315 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16316 #define HAVE_VPRINTF 1
|
Chris@42
|
16317 _ACEOF
|
Chris@42
|
16318
|
Chris@42
|
16319 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
Chris@42
|
16320 if test "x$ac_cv_func__doprnt" = xyes; then :
|
Chris@42
|
16321
|
Chris@42
|
16322 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
Chris@42
|
16323
|
Chris@42
|
16324 fi
|
Chris@42
|
16325
|
Chris@42
|
16326 fi
|
Chris@42
|
16327 done
|
Chris@42
|
16328
|
Chris@42
|
16329
|
Chris@42
|
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
|
Chris@42
|
16331 $as_echo_n "checking for sin in -lm... " >&6; }
|
Chris@42
|
16332 if ${ac_cv_lib_m_sin+:} false; then :
|
Chris@42
|
16333 $as_echo_n "(cached) " >&6
|
Chris@42
|
16334 else
|
Chris@42
|
16335 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
16336 LIBS="-lm $LIBS"
|
Chris@42
|
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16338 /* end confdefs.h. */
|
Chris@42
|
16339
|
Chris@42
|
16340 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
16341 Use char because int might match the return type of a GCC
|
Chris@42
|
16342 builtin and then its argument prototype would still apply. */
|
Chris@42
|
16343 #ifdef __cplusplus
|
Chris@42
|
16344 extern "C"
|
Chris@42
|
16345 #endif
|
Chris@42
|
16346 char sin ();
|
Chris@42
|
16347 int
|
Chris@42
|
16348 main ()
|
Chris@42
|
16349 {
|
Chris@42
|
16350 return sin ();
|
Chris@42
|
16351 ;
|
Chris@42
|
16352 return 0;
|
Chris@42
|
16353 }
|
Chris@42
|
16354 _ACEOF
|
Chris@42
|
16355 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
16356 ac_cv_lib_m_sin=yes
|
Chris@42
|
16357 else
|
Chris@42
|
16358 ac_cv_lib_m_sin=no
|
Chris@42
|
16359 fi
|
Chris@42
|
16360 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
16361 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
16362 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
16363 fi
|
Chris@42
|
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
|
Chris@42
|
16365 $as_echo "$ac_cv_lib_m_sin" >&6; }
|
Chris@42
|
16366 if test "x$ac_cv_lib_m_sin" = xyes; then :
|
Chris@42
|
16367 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16368 #define HAVE_LIBM 1
|
Chris@42
|
16369 _ACEOF
|
Chris@42
|
16370
|
Chris@42
|
16371 LIBS="-lm $LIBS"
|
Chris@42
|
16372
|
Chris@42
|
16373 fi
|
Chris@42
|
16374
|
Chris@42
|
16375
|
Chris@42
|
16376 if test $PRECISION = q; then
|
Chris@42
|
16377
|
Chris@42
|
16378
|
Chris@42
|
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5
|
Chris@42
|
16380 $as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; }
|
Chris@42
|
16381 if ${ax_cv_gcc_4_6_0+:} false; then :
|
Chris@42
|
16382 $as_echo_n "(cached) " >&6
|
Chris@42
|
16383 else
|
Chris@42
|
16384
|
Chris@42
|
16385 ax_cv_gcc_4_6_0=no
|
Chris@42
|
16386 if test "$GCC" = "yes"; then
|
Chris@42
|
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16388 /* end confdefs.h. */
|
Chris@42
|
16389
|
Chris@42
|
16390 #ifdef __GNUC__
|
Chris@42
|
16391 # if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \
|
Chris@42
|
16392 || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0)
|
Chris@42
|
16393 yes;
|
Chris@42
|
16394 # endif
|
Chris@42
|
16395 #endif
|
Chris@42
|
16396
|
Chris@42
|
16397 _ACEOF
|
Chris@42
|
16398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
Chris@42
|
16399 $EGREP "yes" >/dev/null 2>&1; then :
|
Chris@42
|
16400 ax_cv_gcc_4_6_0=yes
|
Chris@42
|
16401 fi
|
Chris@42
|
16402 rm -f conftest*
|
Chris@42
|
16403
|
Chris@42
|
16404 fi
|
Chris@42
|
16405
|
Chris@42
|
16406 fi
|
Chris@42
|
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5
|
Chris@42
|
16408 $as_echo "$ax_cv_gcc_4_6_0" >&6; }
|
Chris@42
|
16409 if test "$ax_cv_gcc_4_6_0" = yes; then
|
Chris@42
|
16410 :
|
Chris@42
|
16411 else
|
Chris@42
|
16412 as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5
|
Chris@42
|
16413 fi
|
Chris@42
|
16414
|
Chris@42
|
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5
|
Chris@42
|
16416 $as_echo_n "checking for sinq in -lquadmath... " >&6; }
|
Chris@42
|
16417 if ${ac_cv_lib_quadmath_sinq+:} false; then :
|
Chris@42
|
16418 $as_echo_n "(cached) " >&6
|
Chris@42
|
16419 else
|
Chris@42
|
16420 ac_check_lib_save_LIBS=$LIBS
|
Chris@42
|
16421 LIBS="-lquadmath $LIBS"
|
Chris@42
|
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16423 /* end confdefs.h. */
|
Chris@42
|
16424
|
Chris@42
|
16425 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
16426 Use char because int might match the return type of a GCC
|
Chris@42
|
16427 builtin and then its argument prototype would still apply. */
|
Chris@42
|
16428 #ifdef __cplusplus
|
Chris@42
|
16429 extern "C"
|
Chris@42
|
16430 #endif
|
Chris@42
|
16431 char sinq ();
|
Chris@42
|
16432 int
|
Chris@42
|
16433 main ()
|
Chris@42
|
16434 {
|
Chris@42
|
16435 return sinq ();
|
Chris@42
|
16436 ;
|
Chris@42
|
16437 return 0;
|
Chris@42
|
16438 }
|
Chris@42
|
16439 _ACEOF
|
Chris@42
|
16440 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
16441 ac_cv_lib_quadmath_sinq=yes
|
Chris@42
|
16442 else
|
Chris@42
|
16443 ac_cv_lib_quadmath_sinq=no
|
Chris@42
|
16444 fi
|
Chris@42
|
16445 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
16446 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
16447 LIBS=$ac_check_lib_save_LIBS
|
Chris@42
|
16448 fi
|
Chris@42
|
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5
|
Chris@42
|
16450 $as_echo "$ac_cv_lib_quadmath_sinq" >&6; }
|
Chris@42
|
16451 if test "x$ac_cv_lib_quadmath_sinq" = xyes; then :
|
Chris@42
|
16452 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16453 #define HAVE_LIBQUADMATH 1
|
Chris@42
|
16454 _ACEOF
|
Chris@42
|
16455
|
Chris@42
|
16456 LIBS="-lquadmath $LIBS"
|
Chris@42
|
16457
|
Chris@42
|
16458 else
|
Chris@42
|
16459 as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5
|
Chris@42
|
16460 fi
|
Chris@42
|
16461
|
Chris@42
|
16462 LIBQUADMATH=-lquadmath
|
Chris@42
|
16463 fi
|
Chris@42
|
16464
|
Chris@42
|
16465
|
Chris@42
|
16466 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
|
Chris@42
|
16467 do :
|
Chris@42
|
16468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
Chris@42
|
16469 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
Chris@42
|
16470 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
Chris@42
|
16471 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
Chris@42
|
16473 _ACEOF
|
Chris@42
|
16474
|
Chris@42
|
16475 fi
|
Chris@42
|
16476 done
|
Chris@42
|
16477
|
Chris@42
|
16478 ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "#include <math.h>
|
Chris@42
|
16479 "
|
Chris@42
|
16480 if test "x$ac_cv_have_decl_sinl" = xyes; then :
|
Chris@42
|
16481 ac_have_decl=1
|
Chris@42
|
16482 else
|
Chris@42
|
16483 ac_have_decl=0
|
Chris@42
|
16484 fi
|
Chris@42
|
16485
|
Chris@42
|
16486 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16487 #define HAVE_DECL_SINL $ac_have_decl
|
Chris@42
|
16488 _ACEOF
|
Chris@42
|
16489 ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "#include <math.h>
|
Chris@42
|
16490 "
|
Chris@42
|
16491 if test "x$ac_cv_have_decl_cosl" = xyes; then :
|
Chris@42
|
16492 ac_have_decl=1
|
Chris@42
|
16493 else
|
Chris@42
|
16494 ac_have_decl=0
|
Chris@42
|
16495 fi
|
Chris@42
|
16496
|
Chris@42
|
16497 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16498 #define HAVE_DECL_COSL $ac_have_decl
|
Chris@42
|
16499 _ACEOF
|
Chris@42
|
16500 ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "#include <math.h>
|
Chris@42
|
16501 "
|
Chris@42
|
16502 if test "x$ac_cv_have_decl_sinq" = xyes; then :
|
Chris@42
|
16503 ac_have_decl=1
|
Chris@42
|
16504 else
|
Chris@42
|
16505 ac_have_decl=0
|
Chris@42
|
16506 fi
|
Chris@42
|
16507
|
Chris@42
|
16508 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16509 #define HAVE_DECL_SINQ $ac_have_decl
|
Chris@42
|
16510 _ACEOF
|
Chris@42
|
16511 ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "#include <math.h>
|
Chris@42
|
16512 "
|
Chris@42
|
16513 if test "x$ac_cv_have_decl_cosq" = xyes; then :
|
Chris@42
|
16514 ac_have_decl=1
|
Chris@42
|
16515 else
|
Chris@42
|
16516 ac_have_decl=0
|
Chris@42
|
16517 fi
|
Chris@42
|
16518
|
Chris@42
|
16519 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16520 #define HAVE_DECL_COSQ $ac_have_decl
|
Chris@42
|
16521 _ACEOF
|
Chris@42
|
16522
|
Chris@42
|
16523 ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "
|
Chris@42
|
16524 #ifdef HAVE_MALLOC_H
|
Chris@42
|
16525 #include <malloc.h>
|
Chris@42
|
16526 #endif
|
Chris@42
|
16527 "
|
Chris@42
|
16528 if test "x$ac_cv_have_decl_memalign" = xyes; then :
|
Chris@42
|
16529 ac_have_decl=1
|
Chris@42
|
16530 else
|
Chris@42
|
16531 ac_have_decl=0
|
Chris@42
|
16532 fi
|
Chris@42
|
16533
|
Chris@42
|
16534 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16535 #define HAVE_DECL_MEMALIGN $ac_have_decl
|
Chris@42
|
16536 _ACEOF
|
Chris@42
|
16537
|
Chris@42
|
16538 ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default"
|
Chris@42
|
16539 if test "x$ac_cv_have_decl_drand48" = xyes; then :
|
Chris@42
|
16540 ac_have_decl=1
|
Chris@42
|
16541 else
|
Chris@42
|
16542 ac_have_decl=0
|
Chris@42
|
16543 fi
|
Chris@42
|
16544
|
Chris@42
|
16545 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16546 #define HAVE_DECL_DRAND48 $ac_have_decl
|
Chris@42
|
16547 _ACEOF
|
Chris@42
|
16548 ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default"
|
Chris@42
|
16549 if test "x$ac_cv_have_decl_srand48" = xyes; then :
|
Chris@42
|
16550 ac_have_decl=1
|
Chris@42
|
16551 else
|
Chris@42
|
16552 ac_have_decl=0
|
Chris@42
|
16553 fi
|
Chris@42
|
16554
|
Chris@42
|
16555 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16556 #define HAVE_DECL_SRAND48 $ac_have_decl
|
Chris@42
|
16557 _ACEOF
|
Chris@42
|
16558 ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default"
|
Chris@42
|
16559 if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
|
Chris@42
|
16560 ac_have_decl=1
|
Chris@42
|
16561 else
|
Chris@42
|
16562 ac_have_decl=0
|
Chris@42
|
16563 fi
|
Chris@42
|
16564
|
Chris@42
|
16565 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16566 #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
|
Chris@42
|
16567 _ACEOF
|
Chris@42
|
16568
|
Chris@42
|
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5
|
Chris@42
|
16570 $as_echo_n "checking for _rtc intrinsic... " >&6; }
|
Chris@42
|
16571 rtc_ok=yes
|
Chris@42
|
16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16573 /* end confdefs.h. */
|
Chris@42
|
16574 #ifdef HAVE_INTRINSICS_H
|
Chris@42
|
16575 #include <intrinsics.h>
|
Chris@42
|
16576 #endif
|
Chris@42
|
16577 int
|
Chris@42
|
16578 main ()
|
Chris@42
|
16579 {
|
Chris@42
|
16580 _rtc()
|
Chris@42
|
16581 ;
|
Chris@42
|
16582 return 0;
|
Chris@42
|
16583 }
|
Chris@42
|
16584 _ACEOF
|
Chris@42
|
16585 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
16586
|
Chris@42
|
16587 $as_echo "#define HAVE__RTC 1" >>confdefs.h
|
Chris@42
|
16588
|
Chris@42
|
16589 else
|
Chris@42
|
16590 rtc_ok=no
|
Chris@42
|
16591 fi
|
Chris@42
|
16592 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
16593 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5
|
Chris@42
|
16595 $as_echo "$rtc_ok" >&6; }
|
Chris@42
|
16596
|
Chris@42
|
16597 if test "$PRECISION" = "l"; then
|
Chris@42
|
16598 for ac_func in cosl sinl tanl
|
Chris@42
|
16599 do :
|
Chris@42
|
16600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
Chris@42
|
16601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
Chris@42
|
16602 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
Chris@42
|
16603 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
16604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
Chris@42
|
16605 _ACEOF
|
Chris@42
|
16606
|
Chris@42
|
16607 else
|
Chris@42
|
16608 as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5
|
Chris@42
|
16609 fi
|
Chris@42
|
16610 done
|
Chris@42
|
16611
|
Chris@42
|
16612 fi
|
Chris@42
|
16613
|
Chris@42
|
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
|
Chris@42
|
16615 $as_echo_n "checking for isnan... " >&6; }
|
Chris@42
|
16616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16617 /* end confdefs.h. */
|
Chris@42
|
16618 #include <math.h>
|
Chris@42
|
16619
|
Chris@42
|
16620 int
|
Chris@42
|
16621 main ()
|
Chris@42
|
16622 {
|
Chris@42
|
16623 if (!isnan(3.14159)) isnan(2.7183);
|
Chris@42
|
16624 ;
|
Chris@42
|
16625 return 0;
|
Chris@42
|
16626 }
|
Chris@42
|
16627 _ACEOF
|
Chris@42
|
16628 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
16629 ok=yes
|
Chris@42
|
16630 else
|
Chris@42
|
16631 ok=no
|
Chris@42
|
16632 fi
|
Chris@42
|
16633 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
16634 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
16635 if test "$ok" = "yes"; then
|
Chris@42
|
16636
|
Chris@42
|
16637 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
|
Chris@42
|
16638
|
Chris@42
|
16639 fi
|
Chris@42
|
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
|
Chris@42
|
16641 $as_echo "${ok}" >&6; }
|
Chris@42
|
16642
|
Chris@42
|
16643
|
Chris@42
|
16644
|
Chris@42
|
16645 ax_gcc_aligns_stack=no
|
Chris@42
|
16646 if test "$GCC" = "yes"; then
|
Chris@42
|
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5
|
Chris@42
|
16648 $as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; }
|
Chris@42
|
16649 if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then :
|
Chris@42
|
16650 $as_echo_n "(cached) " >&6
|
Chris@42
|
16651 else
|
Chris@42
|
16652
|
Chris@42
|
16653 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
16654 CFLAGS="-mpreferred-stack-boundary=4"
|
Chris@42
|
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16656 /* end confdefs.h. */
|
Chris@42
|
16657
|
Chris@42
|
16658 int
|
Chris@42
|
16659 main ()
|
Chris@42
|
16660 {
|
Chris@42
|
16661
|
Chris@42
|
16662 ;
|
Chris@42
|
16663 return 0;
|
Chris@42
|
16664 }
|
Chris@42
|
16665 _ACEOF
|
Chris@42
|
16666 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
16667 ax_cv_c_flags__mpreferred_stack_boundary_4=yes
|
Chris@42
|
16668 else
|
Chris@42
|
16669 ax_cv_c_flags__mpreferred_stack_boundary_4=no
|
Chris@42
|
16670 fi
|
Chris@42
|
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
16672 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
16673 fi
|
Chris@42
|
16674
|
Chris@42
|
16675 eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4
|
Chris@42
|
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
16677 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
16678 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
16679
|
Chris@42
|
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5
|
Chris@42
|
16681 $as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; }
|
Chris@42
|
16682 save_CFLAGS="$CFLAGS"
|
Chris@42
|
16683 CFLAGS="-O"
|
Chris@42
|
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
|
Chris@42
|
16685 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
|
Chris@42
|
16686 if ${ax_cv_c_flags__malign_double+:} false; then :
|
Chris@42
|
16687 $as_echo_n "(cached) " >&6
|
Chris@42
|
16688 else
|
Chris@42
|
16689
|
Chris@42
|
16690 ax_save_FLAGS=$CFLAGS
|
Chris@42
|
16691 CFLAGS="-malign-double"
|
Chris@42
|
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16693 /* end confdefs.h. */
|
Chris@42
|
16694
|
Chris@42
|
16695 int
|
Chris@42
|
16696 main ()
|
Chris@42
|
16697 {
|
Chris@42
|
16698
|
Chris@42
|
16699 ;
|
Chris@42
|
16700 return 0;
|
Chris@42
|
16701 }
|
Chris@42
|
16702 _ACEOF
|
Chris@42
|
16703 if ac_fn_c_try_compile "$LINENO"; then :
|
Chris@42
|
16704 ax_cv_c_flags__malign_double=yes
|
Chris@42
|
16705 else
|
Chris@42
|
16706 ax_cv_c_flags__malign_double=no
|
Chris@42
|
16707 fi
|
Chris@42
|
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
16709 CFLAGS=$ax_save_FLAGS
|
Chris@42
|
16710 fi
|
Chris@42
|
16711
|
Chris@42
|
16712 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
|
Chris@42
|
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
|
Chris@42
|
16714 $as_echo "$ax_check_compiler_flags" >&6; }
|
Chris@42
|
16715 if test "x$ax_check_compiler_flags" = xyes; then
|
Chris@42
|
16716 CFLAGS="$CFLAGS -malign-double"
|
Chris@42
|
16717 else
|
Chris@42
|
16718 :
|
Chris@42
|
16719 fi
|
Chris@42
|
16720
|
Chris@42
|
16721 if test "$cross_compiling" = yes; then :
|
Chris@42
|
16722
|
Chris@42
|
16723
|
Chris@42
|
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5
|
Chris@42
|
16725 $as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; }
|
Chris@42
|
16726 if ${ax_cv_gcc_3_0_0+:} false; then :
|
Chris@42
|
16727 $as_echo_n "(cached) " >&6
|
Chris@42
|
16728 else
|
Chris@42
|
16729
|
Chris@42
|
16730 ax_cv_gcc_3_0_0=no
|
Chris@42
|
16731 if test "$GCC" = "yes"; then
|
Chris@42
|
16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16733 /* end confdefs.h. */
|
Chris@42
|
16734
|
Chris@42
|
16735 #ifdef __GNUC__
|
Chris@42
|
16736 # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \
|
Chris@42
|
16737 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0)
|
Chris@42
|
16738 yes;
|
Chris@42
|
16739 # endif
|
Chris@42
|
16740 #endif
|
Chris@42
|
16741
|
Chris@42
|
16742 _ACEOF
|
Chris@42
|
16743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
Chris@42
|
16744 $EGREP "yes" >/dev/null 2>&1; then :
|
Chris@42
|
16745 ax_cv_gcc_3_0_0=yes
|
Chris@42
|
16746 fi
|
Chris@42
|
16747 rm -f conftest*
|
Chris@42
|
16748
|
Chris@42
|
16749 fi
|
Chris@42
|
16750
|
Chris@42
|
16751 fi
|
Chris@42
|
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5
|
Chris@42
|
16753 $as_echo "$ax_cv_gcc_3_0_0" >&6; }
|
Chris@42
|
16754 if test "$ax_cv_gcc_3_0_0" = yes; then
|
Chris@42
|
16755 ax_gcc_stack_align_bug=no
|
Chris@42
|
16756 else
|
Chris@42
|
16757 ax_gcc_stack_align_bug=yes
|
Chris@42
|
16758 fi
|
Chris@42
|
16759
|
Chris@42
|
16760 else
|
Chris@42
|
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
16762 /* end confdefs.h. */
|
Chris@42
|
16763 #include <stdlib.h>
|
Chris@42
|
16764 # include <stdio.h>
|
Chris@42
|
16765 struct yuck { int blechh; };
|
Chris@42
|
16766 int one(void) { return 1; }
|
Chris@42
|
16767 struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; }
|
Chris@42
|
16768 # define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); }
|
Chris@42
|
16769 void blah(int foo) { double foobar; CHK_ALIGN(foobar); }
|
Chris@42
|
16770 int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1);
|
Chris@42
|
16771 CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;}
|
Chris@42
|
16772 int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); }
|
Chris@42
|
16773
|
Chris@42
|
16774 _ACEOF
|
Chris@42
|
16775 if ac_fn_c_try_run "$LINENO"; then :
|
Chris@42
|
16776 ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no
|
Chris@42
|
16777 else
|
Chris@42
|
16778 ax_gcc_stack_align_bug=yes
|
Chris@42
|
16779 fi
|
Chris@42
|
16780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
Chris@42
|
16781 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
Chris@42
|
16782 fi
|
Chris@42
|
16783
|
Chris@42
|
16784 CFLAGS="$save_CFLAGS"
|
Chris@42
|
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5
|
Chris@42
|
16786 $as_echo "$ax_gcc_aligns_stack" >&6; }
|
Chris@42
|
16787
|
Chris@42
|
16788 else
|
Chris@42
|
16789 :
|
Chris@42
|
16790 fi
|
Chris@42
|
16791
|
Chris@42
|
16792 fi
|
Chris@42
|
16793 if test "$ax_gcc_aligns_stack" = yes; then
|
Chris@42
|
16794 :
|
Chris@42
|
16795 else
|
Chris@42
|
16796 :
|
Chris@42
|
16797 fi
|
Chris@42
|
16798
|
Chris@42
|
16799
|
Chris@42
|
16800 if test "${enable_debug}" = "yes"; then
|
Chris@42
|
16801 CFLAGS="-g"
|
Chris@42
|
16802 fi
|
Chris@42
|
16803
|
Chris@42
|
16804 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
|
Chris@42
|
16805 if test "$ac_test_CFLAGS" != "set"; then
|
Chris@42
|
16806 if test $ac_cv_c_compiler_gnu = yes; then
|
Chris@42
|
16807 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
|
Chris@42
|
16808 fi
|
Chris@42
|
16809 fi
|
Chris@42
|
16810 fi
|
Chris@42
|
16811
|
Chris@42
|
16812 if test "$USE_MAINTAINER_MODE" = yes; then
|
Chris@42
|
16813 # Extract the first word of "indent", so it can be a program name with args.
|
Chris@42
|
16814 set dummy indent; ac_word=$2
|
Chris@42
|
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
16816 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
16817 if ${ac_cv_path_INDENT+:} false; then :
|
Chris@42
|
16818 $as_echo_n "(cached) " >&6
|
Chris@42
|
16819 else
|
Chris@42
|
16820 case $INDENT in
|
Chris@42
|
16821 [\\/]* | ?:[\\/]*)
|
Chris@42
|
16822 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
|
Chris@42
|
16823 ;;
|
Chris@42
|
16824 *)
|
Chris@42
|
16825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
16826 for as_dir in $PATH
|
Chris@42
|
16827 do
|
Chris@42
|
16828 IFS=$as_save_IFS
|
Chris@42
|
16829 test -z "$as_dir" && as_dir=.
|
Chris@42
|
16830 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
16831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
16832 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
|
Chris@42
|
16833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
16834 break 2
|
Chris@42
|
16835 fi
|
Chris@42
|
16836 done
|
Chris@42
|
16837 done
|
Chris@42
|
16838 IFS=$as_save_IFS
|
Chris@42
|
16839
|
Chris@42
|
16840 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
|
Chris@42
|
16841 ;;
|
Chris@42
|
16842 esac
|
Chris@42
|
16843 fi
|
Chris@42
|
16844 INDENT=$ac_cv_path_INDENT
|
Chris@42
|
16845 if test -n "$INDENT"; then
|
Chris@42
|
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
|
Chris@42
|
16847 $as_echo "$INDENT" >&6; }
|
Chris@42
|
16848 else
|
Chris@42
|
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
16850 $as_echo "no" >&6; }
|
Chris@42
|
16851 fi
|
Chris@42
|
16852
|
Chris@42
|
16853
|
Chris@42
|
16854 # if INDENT is set to 'indent' then we didn't find indent
|
Chris@42
|
16855 if test "$INDENT" != indent ; then
|
Chris@42
|
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
|
Chris@42
|
16857 $as_echo_n "checking if $INDENT is GNU indent... " >&6; }
|
Chris@42
|
16858 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
|
Chris@42
|
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
16860 $as_echo "yes" >&6; }
|
Chris@42
|
16861 INDENT="$INDENT -kr -cs -i5 -l800 -fca -nfc1 -sc -sob -cli4 -TR -Tplanner -TV"
|
Chris@42
|
16862 else
|
Chris@42
|
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
16864 $as_echo "no" >&6; }
|
Chris@42
|
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5
|
Chris@42
|
16866 $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
|
Chris@42
|
16867 fi
|
Chris@42
|
16868 else
|
Chris@42
|
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: codelets will be ugly" >&5
|
Chris@42
|
16870 $as_echo "$as_me: WARNING: no indent program found: codelets will be ugly" >&2;}
|
Chris@42
|
16871 INDENT=cat
|
Chris@42
|
16872 fi
|
Chris@42
|
16873 fi
|
Chris@42
|
16874
|
Chris@42
|
16875
|
Chris@42
|
16876 # Check whether --enable-fortran was given.
|
Chris@42
|
16877 if test "${enable_fortran+set}" = set; then :
|
Chris@42
|
16878 enableval=$enable_fortran; enable_fortran=$enableval
|
Chris@42
|
16879 else
|
Chris@42
|
16880 enable_fortran=yes
|
Chris@42
|
16881 fi
|
Chris@42
|
16882
|
Chris@42
|
16883
|
Chris@42
|
16884 if test "$enable_fortran" = "yes"; then
|
Chris@42
|
16885 ac_ext=f
|
Chris@42
|
16886 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
16887 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
16888 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
16889 if test -n "$ac_tool_prefix"; then
|
Chris@42
|
16890 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
|
Chris@42
|
16891 do
|
Chris@42
|
16892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
Chris@42
|
16893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
Chris@42
|
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
16895 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
16896 if ${ac_cv_prog_F77+:} false; then :
|
Chris@42
|
16897 $as_echo_n "(cached) " >&6
|
Chris@42
|
16898 else
|
Chris@42
|
16899 if test -n "$F77"; then
|
Chris@42
|
16900 ac_cv_prog_F77="$F77" # Let the user override the test.
|
Chris@42
|
16901 else
|
Chris@42
|
16902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
16903 for as_dir in $PATH
|
Chris@42
|
16904 do
|
Chris@42
|
16905 IFS=$as_save_IFS
|
Chris@42
|
16906 test -z "$as_dir" && as_dir=.
|
Chris@42
|
16907 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
16908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
16909 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
|
Chris@42
|
16910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
16911 break 2
|
Chris@42
|
16912 fi
|
Chris@42
|
16913 done
|
Chris@42
|
16914 done
|
Chris@42
|
16915 IFS=$as_save_IFS
|
Chris@42
|
16916
|
Chris@42
|
16917 fi
|
Chris@42
|
16918 fi
|
Chris@42
|
16919 F77=$ac_cv_prog_F77
|
Chris@42
|
16920 if test -n "$F77"; then
|
Chris@42
|
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
|
Chris@42
|
16922 $as_echo "$F77" >&6; }
|
Chris@42
|
16923 else
|
Chris@42
|
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
16925 $as_echo "no" >&6; }
|
Chris@42
|
16926 fi
|
Chris@42
|
16927
|
Chris@42
|
16928
|
Chris@42
|
16929 test -n "$F77" && break
|
Chris@42
|
16930 done
|
Chris@42
|
16931 fi
|
Chris@42
|
16932 if test -z "$F77"; then
|
Chris@42
|
16933 ac_ct_F77=$F77
|
Chris@42
|
16934 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
|
Chris@42
|
16935 do
|
Chris@42
|
16936 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
Chris@42
|
16937 set dummy $ac_prog; ac_word=$2
|
Chris@42
|
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
16939 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
16940 if ${ac_cv_prog_ac_ct_F77+:} false; then :
|
Chris@42
|
16941 $as_echo_n "(cached) " >&6
|
Chris@42
|
16942 else
|
Chris@42
|
16943 if test -n "$ac_ct_F77"; then
|
Chris@42
|
16944 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
|
Chris@42
|
16945 else
|
Chris@42
|
16946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
16947 for as_dir in $PATH
|
Chris@42
|
16948 do
|
Chris@42
|
16949 IFS=$as_save_IFS
|
Chris@42
|
16950 test -z "$as_dir" && as_dir=.
|
Chris@42
|
16951 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
16952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
16953 ac_cv_prog_ac_ct_F77="$ac_prog"
|
Chris@42
|
16954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
16955 break 2
|
Chris@42
|
16956 fi
|
Chris@42
|
16957 done
|
Chris@42
|
16958 done
|
Chris@42
|
16959 IFS=$as_save_IFS
|
Chris@42
|
16960
|
Chris@42
|
16961 fi
|
Chris@42
|
16962 fi
|
Chris@42
|
16963 ac_ct_F77=$ac_cv_prog_ac_ct_F77
|
Chris@42
|
16964 if test -n "$ac_ct_F77"; then
|
Chris@42
|
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
|
Chris@42
|
16966 $as_echo "$ac_ct_F77" >&6; }
|
Chris@42
|
16967 else
|
Chris@42
|
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
16969 $as_echo "no" >&6; }
|
Chris@42
|
16970 fi
|
Chris@42
|
16971
|
Chris@42
|
16972
|
Chris@42
|
16973 test -n "$ac_ct_F77" && break
|
Chris@42
|
16974 done
|
Chris@42
|
16975
|
Chris@42
|
16976 if test "x$ac_ct_F77" = x; then
|
Chris@42
|
16977 F77=""
|
Chris@42
|
16978 else
|
Chris@42
|
16979 case $cross_compiling:$ac_tool_warned in
|
Chris@42
|
16980 yes:)
|
Chris@42
|
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
Chris@42
|
16982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
Chris@42
|
16983 ac_tool_warned=yes ;;
|
Chris@42
|
16984 esac
|
Chris@42
|
16985 F77=$ac_ct_F77
|
Chris@42
|
16986 fi
|
Chris@42
|
16987 fi
|
Chris@42
|
16988
|
Chris@42
|
16989
|
Chris@42
|
16990 # Provide some information about the compiler.
|
Chris@42
|
16991 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
|
Chris@42
|
16992 set X $ac_compile
|
Chris@42
|
16993 ac_compiler=$2
|
Chris@42
|
16994 for ac_option in --version -v -V -qversion; do
|
Chris@42
|
16995 { { ac_try="$ac_compiler $ac_option >&5"
|
Chris@42
|
16996 case "(($ac_try" in
|
Chris@42
|
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
Chris@42
|
16998 *) ac_try_echo=$ac_try;;
|
Chris@42
|
16999 esac
|
Chris@42
|
17000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
Chris@42
|
17001 $as_echo "$ac_try_echo"; } >&5
|
Chris@42
|
17002 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
Chris@42
|
17003 ac_status=$?
|
Chris@42
|
17004 if test -s conftest.err; then
|
Chris@42
|
17005 sed '10a\
|
Chris@42
|
17006 ... rest of stderr output deleted ...
|
Chris@42
|
17007 10q' conftest.err >conftest.er1
|
Chris@42
|
17008 cat conftest.er1 >&5
|
Chris@42
|
17009 fi
|
Chris@42
|
17010 rm -f conftest.er1 conftest.err
|
Chris@42
|
17011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
17012 test $ac_status = 0; }
|
Chris@42
|
17013 done
|
Chris@42
|
17014 rm -f a.out
|
Chris@42
|
17015
|
Chris@42
|
17016 # If we don't use `.F' as extension, the preprocessor is not run on the
|
Chris@42
|
17017 # input file. (Note that this only needs to work for GNU compilers.)
|
Chris@42
|
17018 ac_save_ext=$ac_ext
|
Chris@42
|
17019 ac_ext=F
|
Chris@42
|
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
|
Chris@42
|
17021 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
|
Chris@42
|
17022 if ${ac_cv_f77_compiler_gnu+:} false; then :
|
Chris@42
|
17023 $as_echo_n "(cached) " >&6
|
Chris@42
|
17024 else
|
Chris@42
|
17025 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
17026 program main
|
Chris@42
|
17027 #ifndef __GNUC__
|
Chris@42
|
17028 choke me
|
Chris@42
|
17029 #endif
|
Chris@42
|
17030
|
Chris@42
|
17031 end
|
Chris@42
|
17032 _ACEOF
|
Chris@42
|
17033 if ac_fn_f77_try_compile "$LINENO"; then :
|
Chris@42
|
17034 ac_compiler_gnu=yes
|
Chris@42
|
17035 else
|
Chris@42
|
17036 ac_compiler_gnu=no
|
Chris@42
|
17037 fi
|
Chris@42
|
17038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
17039 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
|
Chris@42
|
17040
|
Chris@42
|
17041 fi
|
Chris@42
|
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
|
Chris@42
|
17043 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
|
Chris@42
|
17044 ac_ext=$ac_save_ext
|
Chris@42
|
17045 ac_test_FFLAGS=${FFLAGS+set}
|
Chris@42
|
17046 ac_save_FFLAGS=$FFLAGS
|
Chris@42
|
17047 FFLAGS=
|
Chris@42
|
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
|
Chris@42
|
17049 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
|
Chris@42
|
17050 if ${ac_cv_prog_f77_g+:} false; then :
|
Chris@42
|
17051 $as_echo_n "(cached) " >&6
|
Chris@42
|
17052 else
|
Chris@42
|
17053 FFLAGS=-g
|
Chris@42
|
17054 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
17055 program main
|
Chris@42
|
17056
|
Chris@42
|
17057 end
|
Chris@42
|
17058 _ACEOF
|
Chris@42
|
17059 if ac_fn_f77_try_compile "$LINENO"; then :
|
Chris@42
|
17060 ac_cv_prog_f77_g=yes
|
Chris@42
|
17061 else
|
Chris@42
|
17062 ac_cv_prog_f77_g=no
|
Chris@42
|
17063 fi
|
Chris@42
|
17064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
17065
|
Chris@42
|
17066 fi
|
Chris@42
|
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
|
Chris@42
|
17068 $as_echo "$ac_cv_prog_f77_g" >&6; }
|
Chris@42
|
17069 if test "$ac_test_FFLAGS" = set; then
|
Chris@42
|
17070 FFLAGS=$ac_save_FFLAGS
|
Chris@42
|
17071 elif test $ac_cv_prog_f77_g = yes; then
|
Chris@42
|
17072 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
Chris@42
|
17073 FFLAGS="-g -O2"
|
Chris@42
|
17074 else
|
Chris@42
|
17075 FFLAGS="-g"
|
Chris@42
|
17076 fi
|
Chris@42
|
17077 else
|
Chris@42
|
17078 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
Chris@42
|
17079 FFLAGS="-O2"
|
Chris@42
|
17080 else
|
Chris@42
|
17081 FFLAGS=
|
Chris@42
|
17082 fi
|
Chris@42
|
17083 fi
|
Chris@42
|
17084
|
Chris@42
|
17085 if test $ac_compiler_gnu = yes; then
|
Chris@42
|
17086 G77=yes
|
Chris@42
|
17087 else
|
Chris@42
|
17088 G77=
|
Chris@42
|
17089 fi
|
Chris@42
|
17090 ac_ext=c
|
Chris@42
|
17091 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
17092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
17093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
17094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
17095
|
Chris@42
|
17096 ac_ext=f
|
Chris@42
|
17097 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
17098 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
17099 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
17100
|
Chris@42
|
17101 if test -z "$F77" || test "X$F77" = "Xno"; then
|
Chris@42
|
17102 _lt_disable_F77=yes
|
Chris@42
|
17103 fi
|
Chris@42
|
17104
|
Chris@42
|
17105 archive_cmds_need_lc_F77=no
|
Chris@42
|
17106 allow_undefined_flag_F77=
|
Chris@42
|
17107 always_export_symbols_F77=no
|
Chris@42
|
17108 archive_expsym_cmds_F77=
|
Chris@42
|
17109 export_dynamic_flag_spec_F77=
|
Chris@42
|
17110 hardcode_direct_F77=no
|
Chris@42
|
17111 hardcode_direct_absolute_F77=no
|
Chris@42
|
17112 hardcode_libdir_flag_spec_F77=
|
Chris@42
|
17113 hardcode_libdir_separator_F77=
|
Chris@42
|
17114 hardcode_minus_L_F77=no
|
Chris@42
|
17115 hardcode_automatic_F77=no
|
Chris@42
|
17116 inherit_rpath_F77=no
|
Chris@42
|
17117 module_cmds_F77=
|
Chris@42
|
17118 module_expsym_cmds_F77=
|
Chris@42
|
17119 link_all_deplibs_F77=unknown
|
Chris@42
|
17120 old_archive_cmds_F77=$old_archive_cmds
|
Chris@42
|
17121 reload_flag_F77=$reload_flag
|
Chris@42
|
17122 reload_cmds_F77=$reload_cmds
|
Chris@42
|
17123 no_undefined_flag_F77=
|
Chris@42
|
17124 whole_archive_flag_spec_F77=
|
Chris@42
|
17125 enable_shared_with_static_runtimes_F77=no
|
Chris@42
|
17126
|
Chris@42
|
17127 # Source file extension for f77 test sources.
|
Chris@42
|
17128 ac_ext=f
|
Chris@42
|
17129
|
Chris@42
|
17130 # Object file extension for compiled f77 test sources.
|
Chris@42
|
17131 objext=o
|
Chris@42
|
17132 objext_F77=$objext
|
Chris@42
|
17133
|
Chris@42
|
17134 # No sense in running all these tests if we already determined that
|
Chris@42
|
17135 # the F77 compiler isn't working. Some variables (like enable_shared)
|
Chris@42
|
17136 # are currently assumed to apply to all compilers on this platform,
|
Chris@42
|
17137 # and will be corrupted by setting them based on a non-working compiler.
|
Chris@42
|
17138 if test "$_lt_disable_F77" != yes; then
|
Chris@42
|
17139 # Code to be used in simple compile tests
|
Chris@42
|
17140 lt_simple_compile_test_code="\
|
Chris@42
|
17141 subroutine t
|
Chris@42
|
17142 return
|
Chris@42
|
17143 end
|
Chris@42
|
17144 "
|
Chris@42
|
17145
|
Chris@42
|
17146 # Code to be used in simple link tests
|
Chris@42
|
17147 lt_simple_link_test_code="\
|
Chris@42
|
17148 program t
|
Chris@42
|
17149 end
|
Chris@42
|
17150 "
|
Chris@42
|
17151
|
Chris@42
|
17152 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
Chris@42
|
17153
|
Chris@42
|
17154
|
Chris@42
|
17155
|
Chris@42
|
17156
|
Chris@42
|
17157
|
Chris@42
|
17158
|
Chris@42
|
17159 # If no C compiler was specified, use CC.
|
Chris@42
|
17160 LTCC=${LTCC-"$CC"}
|
Chris@42
|
17161
|
Chris@42
|
17162 # If no C compiler flags were specified, use CFLAGS.
|
Chris@42
|
17163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
Chris@42
|
17164
|
Chris@42
|
17165 # Allow CC to be a program name with arguments.
|
Chris@42
|
17166 compiler=$CC
|
Chris@42
|
17167
|
Chris@42
|
17168
|
Chris@42
|
17169 # save warnings/boilerplate of simple test code
|
Chris@42
|
17170 ac_outfile=conftest.$ac_objext
|
Chris@42
|
17171 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
Chris@42
|
17172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
Chris@42
|
17173 _lt_compiler_boilerplate=`cat conftest.err`
|
Chris@42
|
17174 $RM conftest*
|
Chris@42
|
17175
|
Chris@42
|
17176 ac_outfile=conftest.$ac_objext
|
Chris@42
|
17177 echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
Chris@42
|
17178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
Chris@42
|
17179 _lt_linker_boilerplate=`cat conftest.err`
|
Chris@42
|
17180 $RM -r conftest*
|
Chris@42
|
17181
|
Chris@42
|
17182
|
Chris@42
|
17183 # Allow CC to be a program name with arguments.
|
Chris@42
|
17184 lt_save_CC="$CC"
|
Chris@42
|
17185 lt_save_GCC=$GCC
|
Chris@42
|
17186 lt_save_CFLAGS=$CFLAGS
|
Chris@42
|
17187 CC=${F77-"f77"}
|
Chris@42
|
17188 CFLAGS=$FFLAGS
|
Chris@42
|
17189 compiler=$CC
|
Chris@42
|
17190 compiler_F77=$CC
|
Chris@42
|
17191 for cc_temp in $compiler""; do
|
Chris@42
|
17192 case $cc_temp in
|
Chris@42
|
17193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
Chris@42
|
17194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
Chris@42
|
17195 \-*) ;;
|
Chris@42
|
17196 *) break;;
|
Chris@42
|
17197 esac
|
Chris@42
|
17198 done
|
Chris@42
|
17199 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
Chris@42
|
17200
|
Chris@42
|
17201 GCC=$G77
|
Chris@42
|
17202 if test -n "$compiler"; then
|
Chris@42
|
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
|
Chris@42
|
17204 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
|
Chris@42
|
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
|
Chris@42
|
17206 $as_echo "$can_build_shared" >&6; }
|
Chris@42
|
17207
|
Chris@42
|
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
|
Chris@42
|
17209 $as_echo_n "checking whether to build shared libraries... " >&6; }
|
Chris@42
|
17210 test "$can_build_shared" = "no" && enable_shared=no
|
Chris@42
|
17211
|
Chris@42
|
17212 # On AIX, shared libraries and static libraries use the same namespace, and
|
Chris@42
|
17213 # are all built from PIC.
|
Chris@42
|
17214 case $host_os in
|
Chris@42
|
17215 aix3*)
|
Chris@42
|
17216 test "$enable_shared" = yes && enable_static=no
|
Chris@42
|
17217 if test -n "$RANLIB"; then
|
Chris@42
|
17218 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
Chris@42
|
17219 postinstall_cmds='$RANLIB $lib'
|
Chris@42
|
17220 fi
|
Chris@42
|
17221 ;;
|
Chris@42
|
17222 aix[4-9]*)
|
Chris@42
|
17223 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
Chris@42
|
17224 test "$enable_shared" = yes && enable_static=no
|
Chris@42
|
17225 fi
|
Chris@42
|
17226 ;;
|
Chris@42
|
17227 esac
|
Chris@42
|
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
|
Chris@42
|
17229 $as_echo "$enable_shared" >&6; }
|
Chris@42
|
17230
|
Chris@42
|
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
|
Chris@42
|
17232 $as_echo_n "checking whether to build static libraries... " >&6; }
|
Chris@42
|
17233 # Make sure either enable_shared or enable_static is yes.
|
Chris@42
|
17234 test "$enable_shared" = yes || enable_static=yes
|
Chris@42
|
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
|
Chris@42
|
17236 $as_echo "$enable_static" >&6; }
|
Chris@42
|
17237
|
Chris@42
|
17238 GCC_F77="$G77"
|
Chris@42
|
17239 LD_F77="$LD"
|
Chris@42
|
17240
|
Chris@42
|
17241 ## CAVEAT EMPTOR:
|
Chris@42
|
17242 ## There is no encapsulation within the following macros, do not change
|
Chris@42
|
17243 ## the running order or otherwise move them around unless you know exactly
|
Chris@42
|
17244 ## what you are doing...
|
Chris@42
|
17245 lt_prog_compiler_wl_F77=
|
Chris@42
|
17246 lt_prog_compiler_pic_F77=
|
Chris@42
|
17247 lt_prog_compiler_static_F77=
|
Chris@42
|
17248
|
Chris@42
|
17249
|
Chris@42
|
17250 if test "$GCC" = yes; then
|
Chris@42
|
17251 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17252 lt_prog_compiler_static_F77='-static'
|
Chris@42
|
17253
|
Chris@42
|
17254 case $host_os in
|
Chris@42
|
17255 aix*)
|
Chris@42
|
17256 # All AIX code is PIC.
|
Chris@42
|
17257 if test "$host_cpu" = ia64; then
|
Chris@42
|
17258 # AIX 5 now supports IA64 processor
|
Chris@42
|
17259 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17260 fi
|
Chris@42
|
17261 ;;
|
Chris@42
|
17262
|
Chris@42
|
17263 amigaos*)
|
Chris@42
|
17264 case $host_cpu in
|
Chris@42
|
17265 powerpc)
|
Chris@42
|
17266 # see comment about AmigaOS4 .so support
|
Chris@42
|
17267 lt_prog_compiler_pic_F77='-fPIC'
|
Chris@42
|
17268 ;;
|
Chris@42
|
17269 m68k)
|
Chris@42
|
17270 # FIXME: we need at least 68020 code to build shared libraries, but
|
Chris@42
|
17271 # adding the `-m68020' flag to GCC prevents building anything better,
|
Chris@42
|
17272 # like `-m68040'.
|
Chris@42
|
17273 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
|
Chris@42
|
17274 ;;
|
Chris@42
|
17275 esac
|
Chris@42
|
17276 ;;
|
Chris@42
|
17277
|
Chris@42
|
17278 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
Chris@42
|
17279 # PIC is the default for these OSes.
|
Chris@42
|
17280 ;;
|
Chris@42
|
17281
|
Chris@42
|
17282 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
Chris@42
|
17283 # This hack is so that the source file can tell whether it is being
|
Chris@42
|
17284 # built for inclusion in a dll (and should export symbols for example).
|
Chris@42
|
17285 # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
Chris@42
|
17286 # (--disable-auto-import) libraries
|
Chris@42
|
17287 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
Chris@42
|
17288 ;;
|
Chris@42
|
17289
|
Chris@42
|
17290 darwin* | rhapsody*)
|
Chris@42
|
17291 # PIC is the default on this platform
|
Chris@42
|
17292 # Common symbols not allowed in MH_DYLIB files
|
Chris@42
|
17293 lt_prog_compiler_pic_F77='-fno-common'
|
Chris@42
|
17294 ;;
|
Chris@42
|
17295
|
Chris@42
|
17296 haiku*)
|
Chris@42
|
17297 # PIC is the default for Haiku.
|
Chris@42
|
17298 # The "-static" flag exists, but is broken.
|
Chris@42
|
17299 lt_prog_compiler_static_F77=
|
Chris@42
|
17300 ;;
|
Chris@42
|
17301
|
Chris@42
|
17302 hpux*)
|
Chris@42
|
17303 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
Chris@42
|
17304 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
Chris@42
|
17305 # sets the default TLS model and affects inlining.
|
Chris@42
|
17306 case $host_cpu in
|
Chris@42
|
17307 hppa*64*)
|
Chris@42
|
17308 # +Z the default
|
Chris@42
|
17309 ;;
|
Chris@42
|
17310 *)
|
Chris@42
|
17311 lt_prog_compiler_pic_F77='-fPIC'
|
Chris@42
|
17312 ;;
|
Chris@42
|
17313 esac
|
Chris@42
|
17314 ;;
|
Chris@42
|
17315
|
Chris@42
|
17316 interix[3-9]*)
|
Chris@42
|
17317 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
Chris@42
|
17318 # Instead, we relocate shared libraries at runtime.
|
Chris@42
|
17319 ;;
|
Chris@42
|
17320
|
Chris@42
|
17321 msdosdjgpp*)
|
Chris@42
|
17322 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
Chris@42
|
17323 # on systems that don't support them.
|
Chris@42
|
17324 lt_prog_compiler_can_build_shared_F77=no
|
Chris@42
|
17325 enable_shared=no
|
Chris@42
|
17326 ;;
|
Chris@42
|
17327
|
Chris@42
|
17328 *nto* | *qnx*)
|
Chris@42
|
17329 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
Chris@42
|
17330 # it will coredump.
|
Chris@42
|
17331 lt_prog_compiler_pic_F77='-fPIC -shared'
|
Chris@42
|
17332 ;;
|
Chris@42
|
17333
|
Chris@42
|
17334 sysv4*MP*)
|
Chris@42
|
17335 if test -d /usr/nec; then
|
Chris@42
|
17336 lt_prog_compiler_pic_F77=-Kconform_pic
|
Chris@42
|
17337 fi
|
Chris@42
|
17338 ;;
|
Chris@42
|
17339
|
Chris@42
|
17340 *)
|
Chris@42
|
17341 lt_prog_compiler_pic_F77='-fPIC'
|
Chris@42
|
17342 ;;
|
Chris@42
|
17343 esac
|
Chris@42
|
17344
|
Chris@42
|
17345 case $cc_basename in
|
Chris@42
|
17346 nvcc*) # Cuda Compiler Driver 2.2
|
Chris@42
|
17347 lt_prog_compiler_wl_F77='-Xlinker '
|
Chris@42
|
17348 if test -n "$lt_prog_compiler_pic_F77"; then
|
Chris@42
|
17349 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
|
Chris@42
|
17350 fi
|
Chris@42
|
17351 ;;
|
Chris@42
|
17352 esac
|
Chris@42
|
17353 else
|
Chris@42
|
17354 # PORTME Check for flag to pass linker flags through the system compiler.
|
Chris@42
|
17355 case $host_os in
|
Chris@42
|
17356 aix*)
|
Chris@42
|
17357 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17358 if test "$host_cpu" = ia64; then
|
Chris@42
|
17359 # AIX 5 now supports IA64 processor
|
Chris@42
|
17360 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17361 else
|
Chris@42
|
17362 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
|
Chris@42
|
17363 fi
|
Chris@42
|
17364 ;;
|
Chris@42
|
17365
|
Chris@42
|
17366 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
Chris@42
|
17367 # This hack is so that the source file can tell whether it is being
|
Chris@42
|
17368 # built for inclusion in a dll (and should export symbols for example).
|
Chris@42
|
17369 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
Chris@42
|
17370 ;;
|
Chris@42
|
17371
|
Chris@42
|
17372 hpux9* | hpux10* | hpux11*)
|
Chris@42
|
17373 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
Chris@42
|
17375 # not for PA HP-UX.
|
Chris@42
|
17376 case $host_cpu in
|
Chris@42
|
17377 hppa*64*|ia64*)
|
Chris@42
|
17378 # +Z the default
|
Chris@42
|
17379 ;;
|
Chris@42
|
17380 *)
|
Chris@42
|
17381 lt_prog_compiler_pic_F77='+Z'
|
Chris@42
|
17382 ;;
|
Chris@42
|
17383 esac
|
Chris@42
|
17384 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
Chris@42
|
17385 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
|
Chris@42
|
17386 ;;
|
Chris@42
|
17387
|
Chris@42
|
17388 irix5* | irix6* | nonstopux*)
|
Chris@42
|
17389 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17390 # PIC (with -KPIC) is the default.
|
Chris@42
|
17391 lt_prog_compiler_static_F77='-non_shared'
|
Chris@42
|
17392 ;;
|
Chris@42
|
17393
|
Chris@42
|
17394 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
Chris@42
|
17395 case $cc_basename in
|
Chris@42
|
17396 # old Intel for x86_64 which still supported -KPIC.
|
Chris@42
|
17397 ecc*)
|
Chris@42
|
17398 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17399 lt_prog_compiler_pic_F77='-KPIC'
|
Chris@42
|
17400 lt_prog_compiler_static_F77='-static'
|
Chris@42
|
17401 ;;
|
Chris@42
|
17402 # icc used to be incompatible with GCC.
|
Chris@42
|
17403 # ICC 10 doesn't accept -KPIC any more.
|
Chris@42
|
17404 icc* | ifort*)
|
Chris@42
|
17405 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17406 lt_prog_compiler_pic_F77='-fPIC'
|
Chris@42
|
17407 lt_prog_compiler_static_F77='-static'
|
Chris@42
|
17408 ;;
|
Chris@42
|
17409 # Lahey Fortran 8.1.
|
Chris@42
|
17410 lf95*)
|
Chris@42
|
17411 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17412 lt_prog_compiler_pic_F77='--shared'
|
Chris@42
|
17413 lt_prog_compiler_static_F77='--static'
|
Chris@42
|
17414 ;;
|
Chris@42
|
17415 nagfor*)
|
Chris@42
|
17416 # NAG Fortran compiler
|
Chris@42
|
17417 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
|
Chris@42
|
17418 lt_prog_compiler_pic_F77='-PIC'
|
Chris@42
|
17419 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17420 ;;
|
Chris@42
|
17421 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
Chris@42
|
17422 # Portland Group compilers (*not* the Pentium gcc compiler,
|
Chris@42
|
17423 # which looks to be a dead project)
|
Chris@42
|
17424 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17425 lt_prog_compiler_pic_F77='-fpic'
|
Chris@42
|
17426 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17427 ;;
|
Chris@42
|
17428 ccc*)
|
Chris@42
|
17429 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17430 # All Alpha code is PIC.
|
Chris@42
|
17431 lt_prog_compiler_static_F77='-non_shared'
|
Chris@42
|
17432 ;;
|
Chris@42
|
17433 xl* | bgxl* | bgf* | mpixl*)
|
Chris@42
|
17434 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
Chris@42
|
17435 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17436 lt_prog_compiler_pic_F77='-qpic'
|
Chris@42
|
17437 lt_prog_compiler_static_F77='-qstaticlink'
|
Chris@42
|
17438 ;;
|
Chris@42
|
17439 *)
|
Chris@42
|
17440 case `$CC -V 2>&1 | sed 5q` in
|
Chris@42
|
17441 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
Chris@42
|
17442 # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
Chris@42
|
17443 lt_prog_compiler_pic_F77='-KPIC'
|
Chris@42
|
17444 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17445 lt_prog_compiler_wl_F77=''
|
Chris@42
|
17446 ;;
|
Chris@42
|
17447 *Sun\ F* | *Sun*Fortran*)
|
Chris@42
|
17448 lt_prog_compiler_pic_F77='-KPIC'
|
Chris@42
|
17449 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17450 lt_prog_compiler_wl_F77='-Qoption ld '
|
Chris@42
|
17451 ;;
|
Chris@42
|
17452 *Sun\ C*)
|
Chris@42
|
17453 # Sun C 5.9
|
Chris@42
|
17454 lt_prog_compiler_pic_F77='-KPIC'
|
Chris@42
|
17455 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17456 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17457 ;;
|
Chris@42
|
17458 *Intel*\ [CF]*Compiler*)
|
Chris@42
|
17459 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17460 lt_prog_compiler_pic_F77='-fPIC'
|
Chris@42
|
17461 lt_prog_compiler_static_F77='-static'
|
Chris@42
|
17462 ;;
|
Chris@42
|
17463 *Portland\ Group*)
|
Chris@42
|
17464 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17465 lt_prog_compiler_pic_F77='-fpic'
|
Chris@42
|
17466 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17467 ;;
|
Chris@42
|
17468 esac
|
Chris@42
|
17469 ;;
|
Chris@42
|
17470 esac
|
Chris@42
|
17471 ;;
|
Chris@42
|
17472
|
Chris@42
|
17473 newsos6)
|
Chris@42
|
17474 lt_prog_compiler_pic_F77='-KPIC'
|
Chris@42
|
17475 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17476 ;;
|
Chris@42
|
17477
|
Chris@42
|
17478 *nto* | *qnx*)
|
Chris@42
|
17479 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
Chris@42
|
17480 # it will coredump.
|
Chris@42
|
17481 lt_prog_compiler_pic_F77='-fPIC -shared'
|
Chris@42
|
17482 ;;
|
Chris@42
|
17483
|
Chris@42
|
17484 osf3* | osf4* | osf5*)
|
Chris@42
|
17485 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17486 # All OSF/1 code is PIC.
|
Chris@42
|
17487 lt_prog_compiler_static_F77='-non_shared'
|
Chris@42
|
17488 ;;
|
Chris@42
|
17489
|
Chris@42
|
17490 rdos*)
|
Chris@42
|
17491 lt_prog_compiler_static_F77='-non_shared'
|
Chris@42
|
17492 ;;
|
Chris@42
|
17493
|
Chris@42
|
17494 solaris*)
|
Chris@42
|
17495 lt_prog_compiler_pic_F77='-KPIC'
|
Chris@42
|
17496 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17497 case $cc_basename in
|
Chris@42
|
17498 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
Chris@42
|
17499 lt_prog_compiler_wl_F77='-Qoption ld ';;
|
Chris@42
|
17500 *)
|
Chris@42
|
17501 lt_prog_compiler_wl_F77='-Wl,';;
|
Chris@42
|
17502 esac
|
Chris@42
|
17503 ;;
|
Chris@42
|
17504
|
Chris@42
|
17505 sunos4*)
|
Chris@42
|
17506 lt_prog_compiler_wl_F77='-Qoption ld '
|
Chris@42
|
17507 lt_prog_compiler_pic_F77='-PIC'
|
Chris@42
|
17508 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17509 ;;
|
Chris@42
|
17510
|
Chris@42
|
17511 sysv4 | sysv4.2uw2* | sysv4.3*)
|
Chris@42
|
17512 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17513 lt_prog_compiler_pic_F77='-KPIC'
|
Chris@42
|
17514 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17515 ;;
|
Chris@42
|
17516
|
Chris@42
|
17517 sysv4*MP*)
|
Chris@42
|
17518 if test -d /usr/nec ;then
|
Chris@42
|
17519 lt_prog_compiler_pic_F77='-Kconform_pic'
|
Chris@42
|
17520 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17521 fi
|
Chris@42
|
17522 ;;
|
Chris@42
|
17523
|
Chris@42
|
17524 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
Chris@42
|
17525 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17526 lt_prog_compiler_pic_F77='-KPIC'
|
Chris@42
|
17527 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17528 ;;
|
Chris@42
|
17529
|
Chris@42
|
17530 unicos*)
|
Chris@42
|
17531 lt_prog_compiler_wl_F77='-Wl,'
|
Chris@42
|
17532 lt_prog_compiler_can_build_shared_F77=no
|
Chris@42
|
17533 ;;
|
Chris@42
|
17534
|
Chris@42
|
17535 uts4*)
|
Chris@42
|
17536 lt_prog_compiler_pic_F77='-pic'
|
Chris@42
|
17537 lt_prog_compiler_static_F77='-Bstatic'
|
Chris@42
|
17538 ;;
|
Chris@42
|
17539
|
Chris@42
|
17540 *)
|
Chris@42
|
17541 lt_prog_compiler_can_build_shared_F77=no
|
Chris@42
|
17542 ;;
|
Chris@42
|
17543 esac
|
Chris@42
|
17544 fi
|
Chris@42
|
17545
|
Chris@42
|
17546 case $host_os in
|
Chris@42
|
17547 # For platforms which do not support PIC, -DPIC is meaningless:
|
Chris@42
|
17548 *djgpp*)
|
Chris@42
|
17549 lt_prog_compiler_pic_F77=
|
Chris@42
|
17550 ;;
|
Chris@42
|
17551 *)
|
Chris@42
|
17552 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
|
Chris@42
|
17553 ;;
|
Chris@42
|
17554 esac
|
Chris@42
|
17555
|
Chris@42
|
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
Chris@42
|
17557 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
Chris@42
|
17558 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
|
Chris@42
|
17559 $as_echo_n "(cached) " >&6
|
Chris@42
|
17560 else
|
Chris@42
|
17561 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
|
Chris@42
|
17562 fi
|
Chris@42
|
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
|
Chris@42
|
17564 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
|
Chris@42
|
17565 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
|
Chris@42
|
17566
|
Chris@42
|
17567 #
|
Chris@42
|
17568 # Check to make sure the PIC flag actually works.
|
Chris@42
|
17569 #
|
Chris@42
|
17570 if test -n "$lt_prog_compiler_pic_F77"; then
|
Chris@42
|
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
|
Chris@42
|
17572 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
|
Chris@42
|
17573 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
|
Chris@42
|
17574 $as_echo_n "(cached) " >&6
|
Chris@42
|
17575 else
|
Chris@42
|
17576 lt_cv_prog_compiler_pic_works_F77=no
|
Chris@42
|
17577 ac_outfile=conftest.$ac_objext
|
Chris@42
|
17578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
Chris@42
|
17579 lt_compiler_flag="$lt_prog_compiler_pic_F77"
|
Chris@42
|
17580 # Insert the option either (1) after the last *FLAGS variable, or
|
Chris@42
|
17581 # (2) before a word containing "conftest.", or (3) at the end.
|
Chris@42
|
17582 # Note that $ac_compile itself does not contain backslashes and begins
|
Chris@42
|
17583 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
Chris@42
|
17584 # The option is referenced via a variable to avoid confusing sed.
|
Chris@42
|
17585 lt_compile=`echo "$ac_compile" | $SED \
|
Chris@42
|
17586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
Chris@42
|
17587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
Chris@42
|
17588 -e 's:$: $lt_compiler_flag:'`
|
Chris@42
|
17589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
Chris@42
|
17590 (eval "$lt_compile" 2>conftest.err)
|
Chris@42
|
17591 ac_status=$?
|
Chris@42
|
17592 cat conftest.err >&5
|
Chris@42
|
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
Chris@42
|
17594 if (exit $ac_status) && test -s "$ac_outfile"; then
|
Chris@42
|
17595 # The compiler can only warn and ignore the option if not recognized
|
Chris@42
|
17596 # So say no if there are warnings other than the usual output.
|
Chris@42
|
17597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
Chris@42
|
17598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
Chris@42
|
17599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
Chris@42
|
17600 lt_cv_prog_compiler_pic_works_F77=yes
|
Chris@42
|
17601 fi
|
Chris@42
|
17602 fi
|
Chris@42
|
17603 $RM conftest*
|
Chris@42
|
17604
|
Chris@42
|
17605 fi
|
Chris@42
|
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
|
Chris@42
|
17607 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
|
Chris@42
|
17608
|
Chris@42
|
17609 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
|
Chris@42
|
17610 case $lt_prog_compiler_pic_F77 in
|
Chris@42
|
17611 "" | " "*) ;;
|
Chris@42
|
17612 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
|
Chris@42
|
17613 esac
|
Chris@42
|
17614 else
|
Chris@42
|
17615 lt_prog_compiler_pic_F77=
|
Chris@42
|
17616 lt_prog_compiler_can_build_shared_F77=no
|
Chris@42
|
17617 fi
|
Chris@42
|
17618
|
Chris@42
|
17619 fi
|
Chris@42
|
17620
|
Chris@42
|
17621
|
Chris@42
|
17622
|
Chris@42
|
17623
|
Chris@42
|
17624
|
Chris@42
|
17625 #
|
Chris@42
|
17626 # Check to make sure the static flag actually works.
|
Chris@42
|
17627 #
|
Chris@42
|
17628 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
|
Chris@42
|
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
Chris@42
|
17630 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
Chris@42
|
17631 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
|
Chris@42
|
17632 $as_echo_n "(cached) " >&6
|
Chris@42
|
17633 else
|
Chris@42
|
17634 lt_cv_prog_compiler_static_works_F77=no
|
Chris@42
|
17635 save_LDFLAGS="$LDFLAGS"
|
Chris@42
|
17636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
Chris@42
|
17637 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
Chris@42
|
17638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
Chris@42
|
17639 # The linker can only warn and ignore the option if not recognized
|
Chris@42
|
17640 # So say no if there are warnings
|
Chris@42
|
17641 if test -s conftest.err; then
|
Chris@42
|
17642 # Append any errors to the config.log.
|
Chris@42
|
17643 cat conftest.err 1>&5
|
Chris@42
|
17644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
Chris@42
|
17645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
Chris@42
|
17646 if diff conftest.exp conftest.er2 >/dev/null; then
|
Chris@42
|
17647 lt_cv_prog_compiler_static_works_F77=yes
|
Chris@42
|
17648 fi
|
Chris@42
|
17649 else
|
Chris@42
|
17650 lt_cv_prog_compiler_static_works_F77=yes
|
Chris@42
|
17651 fi
|
Chris@42
|
17652 fi
|
Chris@42
|
17653 $RM -r conftest*
|
Chris@42
|
17654 LDFLAGS="$save_LDFLAGS"
|
Chris@42
|
17655
|
Chris@42
|
17656 fi
|
Chris@42
|
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
|
Chris@42
|
17658 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
|
Chris@42
|
17659
|
Chris@42
|
17660 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
|
Chris@42
|
17661 :
|
Chris@42
|
17662 else
|
Chris@42
|
17663 lt_prog_compiler_static_F77=
|
Chris@42
|
17664 fi
|
Chris@42
|
17665
|
Chris@42
|
17666
|
Chris@42
|
17667
|
Chris@42
|
17668
|
Chris@42
|
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
Chris@42
|
17670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
Chris@42
|
17671 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
|
Chris@42
|
17672 $as_echo_n "(cached) " >&6
|
Chris@42
|
17673 else
|
Chris@42
|
17674 lt_cv_prog_compiler_c_o_F77=no
|
Chris@42
|
17675 $RM -r conftest 2>/dev/null
|
Chris@42
|
17676 mkdir conftest
|
Chris@42
|
17677 cd conftest
|
Chris@42
|
17678 mkdir out
|
Chris@42
|
17679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
Chris@42
|
17680
|
Chris@42
|
17681 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
Chris@42
|
17682 # Insert the option either (1) after the last *FLAGS variable, or
|
Chris@42
|
17683 # (2) before a word containing "conftest.", or (3) at the end.
|
Chris@42
|
17684 # Note that $ac_compile itself does not contain backslashes and begins
|
Chris@42
|
17685 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
Chris@42
|
17686 lt_compile=`echo "$ac_compile" | $SED \
|
Chris@42
|
17687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
Chris@42
|
17688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
Chris@42
|
17689 -e 's:$: $lt_compiler_flag:'`
|
Chris@42
|
17690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
Chris@42
|
17691 (eval "$lt_compile" 2>out/conftest.err)
|
Chris@42
|
17692 ac_status=$?
|
Chris@42
|
17693 cat out/conftest.err >&5
|
Chris@42
|
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
Chris@42
|
17695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
Chris@42
|
17696 then
|
Chris@42
|
17697 # The compiler can only warn and ignore the option if not recognized
|
Chris@42
|
17698 # So say no if there are warnings
|
Chris@42
|
17699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
Chris@42
|
17700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
Chris@42
|
17701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
Chris@42
|
17702 lt_cv_prog_compiler_c_o_F77=yes
|
Chris@42
|
17703 fi
|
Chris@42
|
17704 fi
|
Chris@42
|
17705 chmod u+w . 2>&5
|
Chris@42
|
17706 $RM conftest*
|
Chris@42
|
17707 # SGI C++ compiler will create directory out/ii_files/ for
|
Chris@42
|
17708 # template instantiation
|
Chris@42
|
17709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
Chris@42
|
17710 $RM out/* && rmdir out
|
Chris@42
|
17711 cd ..
|
Chris@42
|
17712 $RM -r conftest
|
Chris@42
|
17713 $RM conftest*
|
Chris@42
|
17714
|
Chris@42
|
17715 fi
|
Chris@42
|
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
|
Chris@42
|
17717 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
|
Chris@42
|
17718
|
Chris@42
|
17719
|
Chris@42
|
17720
|
Chris@42
|
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
Chris@42
|
17722 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
Chris@42
|
17723 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
|
Chris@42
|
17724 $as_echo_n "(cached) " >&6
|
Chris@42
|
17725 else
|
Chris@42
|
17726 lt_cv_prog_compiler_c_o_F77=no
|
Chris@42
|
17727 $RM -r conftest 2>/dev/null
|
Chris@42
|
17728 mkdir conftest
|
Chris@42
|
17729 cd conftest
|
Chris@42
|
17730 mkdir out
|
Chris@42
|
17731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
Chris@42
|
17732
|
Chris@42
|
17733 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
Chris@42
|
17734 # Insert the option either (1) after the last *FLAGS variable, or
|
Chris@42
|
17735 # (2) before a word containing "conftest.", or (3) at the end.
|
Chris@42
|
17736 # Note that $ac_compile itself does not contain backslashes and begins
|
Chris@42
|
17737 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
Chris@42
|
17738 lt_compile=`echo "$ac_compile" | $SED \
|
Chris@42
|
17739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
Chris@42
|
17740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
Chris@42
|
17741 -e 's:$: $lt_compiler_flag:'`
|
Chris@42
|
17742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
Chris@42
|
17743 (eval "$lt_compile" 2>out/conftest.err)
|
Chris@42
|
17744 ac_status=$?
|
Chris@42
|
17745 cat out/conftest.err >&5
|
Chris@42
|
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
Chris@42
|
17747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
Chris@42
|
17748 then
|
Chris@42
|
17749 # The compiler can only warn and ignore the option if not recognized
|
Chris@42
|
17750 # So say no if there are warnings
|
Chris@42
|
17751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
Chris@42
|
17752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
Chris@42
|
17753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
Chris@42
|
17754 lt_cv_prog_compiler_c_o_F77=yes
|
Chris@42
|
17755 fi
|
Chris@42
|
17756 fi
|
Chris@42
|
17757 chmod u+w . 2>&5
|
Chris@42
|
17758 $RM conftest*
|
Chris@42
|
17759 # SGI C++ compiler will create directory out/ii_files/ for
|
Chris@42
|
17760 # template instantiation
|
Chris@42
|
17761 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
Chris@42
|
17762 $RM out/* && rmdir out
|
Chris@42
|
17763 cd ..
|
Chris@42
|
17764 $RM -r conftest
|
Chris@42
|
17765 $RM conftest*
|
Chris@42
|
17766
|
Chris@42
|
17767 fi
|
Chris@42
|
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
|
Chris@42
|
17769 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
|
Chris@42
|
17770
|
Chris@42
|
17771
|
Chris@42
|
17772
|
Chris@42
|
17773
|
Chris@42
|
17774 hard_links="nottested"
|
Chris@42
|
17775 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
|
Chris@42
|
17776 # do not overwrite the value of need_locks provided by the user
|
Chris@42
|
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
Chris@42
|
17778 $as_echo_n "checking if we can lock with hard links... " >&6; }
|
Chris@42
|
17779 hard_links=yes
|
Chris@42
|
17780 $RM conftest*
|
Chris@42
|
17781 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
Chris@42
|
17782 touch conftest.a
|
Chris@42
|
17783 ln conftest.a conftest.b 2>&5 || hard_links=no
|
Chris@42
|
17784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
Chris@42
|
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
Chris@42
|
17786 $as_echo "$hard_links" >&6; }
|
Chris@42
|
17787 if test "$hard_links" = no; then
|
Chris@42
|
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
Chris@42
|
17789 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
Chris@42
|
17790 need_locks=warn
|
Chris@42
|
17791 fi
|
Chris@42
|
17792 else
|
Chris@42
|
17793 need_locks=no
|
Chris@42
|
17794 fi
|
Chris@42
|
17795
|
Chris@42
|
17796
|
Chris@42
|
17797
|
Chris@42
|
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
Chris@42
|
17799 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
Chris@42
|
17800
|
Chris@42
|
17801 runpath_var=
|
Chris@42
|
17802 allow_undefined_flag_F77=
|
Chris@42
|
17803 always_export_symbols_F77=no
|
Chris@42
|
17804 archive_cmds_F77=
|
Chris@42
|
17805 archive_expsym_cmds_F77=
|
Chris@42
|
17806 compiler_needs_object_F77=no
|
Chris@42
|
17807 enable_shared_with_static_runtimes_F77=no
|
Chris@42
|
17808 export_dynamic_flag_spec_F77=
|
Chris@42
|
17809 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
Chris@42
|
17810 hardcode_automatic_F77=no
|
Chris@42
|
17811 hardcode_direct_F77=no
|
Chris@42
|
17812 hardcode_direct_absolute_F77=no
|
Chris@42
|
17813 hardcode_libdir_flag_spec_F77=
|
Chris@42
|
17814 hardcode_libdir_separator_F77=
|
Chris@42
|
17815 hardcode_minus_L_F77=no
|
Chris@42
|
17816 hardcode_shlibpath_var_F77=unsupported
|
Chris@42
|
17817 inherit_rpath_F77=no
|
Chris@42
|
17818 link_all_deplibs_F77=unknown
|
Chris@42
|
17819 module_cmds_F77=
|
Chris@42
|
17820 module_expsym_cmds_F77=
|
Chris@42
|
17821 old_archive_from_new_cmds_F77=
|
Chris@42
|
17822 old_archive_from_expsyms_cmds_F77=
|
Chris@42
|
17823 thread_safe_flag_spec_F77=
|
Chris@42
|
17824 whole_archive_flag_spec_F77=
|
Chris@42
|
17825 # include_expsyms should be a list of space-separated symbols to be *always*
|
Chris@42
|
17826 # included in the symbol list
|
Chris@42
|
17827 include_expsyms_F77=
|
Chris@42
|
17828 # exclude_expsyms can be an extended regexp of symbols to exclude
|
Chris@42
|
17829 # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
Chris@42
|
17830 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
Chris@42
|
17831 # as well as any symbol that contains `d'.
|
Chris@42
|
17832 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
Chris@42
|
17833 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
Chris@42
|
17834 # platforms (ab)use it in PIC code, but their linkers get confused if
|
Chris@42
|
17835 # the symbol is explicitly referenced. Since portable code cannot
|
Chris@42
|
17836 # rely on this symbol name, it's probably fine to never include it in
|
Chris@42
|
17837 # preloaded symbol tables.
|
Chris@42
|
17838 # Exclude shared library initialization/finalization symbols.
|
Chris@42
|
17839 extract_expsyms_cmds=
|
Chris@42
|
17840
|
Chris@42
|
17841 case $host_os in
|
Chris@42
|
17842 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
17843 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
Chris@42
|
17844 # When not using gcc, we currently assume that we are using
|
Chris@42
|
17845 # Microsoft Visual C++.
|
Chris@42
|
17846 if test "$GCC" != yes; then
|
Chris@42
|
17847 with_gnu_ld=no
|
Chris@42
|
17848 fi
|
Chris@42
|
17849 ;;
|
Chris@42
|
17850 interix*)
|
Chris@42
|
17851 # we just hope/assume this is gcc and not c89 (= MSVC++)
|
Chris@42
|
17852 with_gnu_ld=yes
|
Chris@42
|
17853 ;;
|
Chris@42
|
17854 openbsd*)
|
Chris@42
|
17855 with_gnu_ld=no
|
Chris@42
|
17856 ;;
|
Chris@42
|
17857 linux* | k*bsd*-gnu | gnu*)
|
Chris@42
|
17858 link_all_deplibs_F77=no
|
Chris@42
|
17859 ;;
|
Chris@42
|
17860 esac
|
Chris@42
|
17861
|
Chris@42
|
17862 ld_shlibs_F77=yes
|
Chris@42
|
17863
|
Chris@42
|
17864 # On some targets, GNU ld is compatible enough with the native linker
|
Chris@42
|
17865 # that we're better off using the native interface for both.
|
Chris@42
|
17866 lt_use_gnu_ld_interface=no
|
Chris@42
|
17867 if test "$with_gnu_ld" = yes; then
|
Chris@42
|
17868 case $host_os in
|
Chris@42
|
17869 aix*)
|
Chris@42
|
17870 # The AIX port of GNU ld has always aspired to compatibility
|
Chris@42
|
17871 # with the native linker. However, as the warning in the GNU ld
|
Chris@42
|
17872 # block says, versions before 2.19.5* couldn't really create working
|
Chris@42
|
17873 # shared libraries, regardless of the interface used.
|
Chris@42
|
17874 case `$LD -v 2>&1` in
|
Chris@42
|
17875 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
Chris@42
|
17876 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
Chris@42
|
17877 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
Chris@42
|
17878 *)
|
Chris@42
|
17879 lt_use_gnu_ld_interface=yes
|
Chris@42
|
17880 ;;
|
Chris@42
|
17881 esac
|
Chris@42
|
17882 ;;
|
Chris@42
|
17883 *)
|
Chris@42
|
17884 lt_use_gnu_ld_interface=yes
|
Chris@42
|
17885 ;;
|
Chris@42
|
17886 esac
|
Chris@42
|
17887 fi
|
Chris@42
|
17888
|
Chris@42
|
17889 if test "$lt_use_gnu_ld_interface" = yes; then
|
Chris@42
|
17890 # If archive_cmds runs LD, not CC, wlarc should be empty
|
Chris@42
|
17891 wlarc='${wl}'
|
Chris@42
|
17892
|
Chris@42
|
17893 # Set some defaults for GNU ld with shared library support. These
|
Chris@42
|
17894 # are reset later if shared libraries are not supported. Putting them
|
Chris@42
|
17895 # here allows them to be overridden if necessary.
|
Chris@42
|
17896 runpath_var=LD_RUN_PATH
|
Chris@42
|
17897 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
17898 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
|
Chris@42
|
17899 # ancient GNU ld didn't support --whole-archive et. al.
|
Chris@42
|
17900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
Chris@42
|
17901 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
Chris@42
|
17902 else
|
Chris@42
|
17903 whole_archive_flag_spec_F77=
|
Chris@42
|
17904 fi
|
Chris@42
|
17905 supports_anon_versioning=no
|
Chris@42
|
17906 case `$LD -v 2>&1` in
|
Chris@42
|
17907 *GNU\ gold*) supports_anon_versioning=yes ;;
|
Chris@42
|
17908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
Chris@42
|
17909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
Chris@42
|
17910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
Chris@42
|
17911 *\ 2.11.*) ;; # other 2.11 versions
|
Chris@42
|
17912 *) supports_anon_versioning=yes ;;
|
Chris@42
|
17913 esac
|
Chris@42
|
17914
|
Chris@42
|
17915 # See if GNU ld supports shared libraries.
|
Chris@42
|
17916 case $host_os in
|
Chris@42
|
17917 aix[3-9]*)
|
Chris@42
|
17918 # On AIX/PPC, the GNU linker is very broken
|
Chris@42
|
17919 if test "$host_cpu" != ia64; then
|
Chris@42
|
17920 ld_shlibs_F77=no
|
Chris@42
|
17921 cat <<_LT_EOF 1>&2
|
Chris@42
|
17922
|
Chris@42
|
17923 *** Warning: the GNU linker, at least up to release 2.19, is reported
|
Chris@42
|
17924 *** to be unable to reliably create shared libraries on AIX.
|
Chris@42
|
17925 *** Therefore, libtool is disabling shared libraries support. If you
|
Chris@42
|
17926 *** really care for shared libraries, you may want to install binutils
|
Chris@42
|
17927 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
Chris@42
|
17928 *** You will then need to restart the configuration process.
|
Chris@42
|
17929
|
Chris@42
|
17930 _LT_EOF
|
Chris@42
|
17931 fi
|
Chris@42
|
17932 ;;
|
Chris@42
|
17933
|
Chris@42
|
17934 amigaos*)
|
Chris@42
|
17935 case $host_cpu in
|
Chris@42
|
17936 powerpc)
|
Chris@42
|
17937 # see comment about AmigaOS4 .so support
|
Chris@42
|
17938 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
17939 archive_expsym_cmds_F77=''
|
Chris@42
|
17940 ;;
|
Chris@42
|
17941 m68k)
|
Chris@42
|
17942 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)'
|
Chris@42
|
17943 hardcode_libdir_flag_spec_F77='-L$libdir'
|
Chris@42
|
17944 hardcode_minus_L_F77=yes
|
Chris@42
|
17945 ;;
|
Chris@42
|
17946 esac
|
Chris@42
|
17947 ;;
|
Chris@42
|
17948
|
Chris@42
|
17949 beos*)
|
Chris@42
|
17950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
Chris@42
|
17951 allow_undefined_flag_F77=unsupported
|
Chris@42
|
17952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
Chris@42
|
17953 # support --undefined. This deserves some investigation. FIXME
|
Chris@42
|
17954 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
17955 else
|
Chris@42
|
17956 ld_shlibs_F77=no
|
Chris@42
|
17957 fi
|
Chris@42
|
17958 ;;
|
Chris@42
|
17959
|
Chris@42
|
17960 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
17961 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
|
Chris@42
|
17962 # as there is no search path for DLLs.
|
Chris@42
|
17963 hardcode_libdir_flag_spec_F77='-L$libdir'
|
Chris@42
|
17964 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
|
Chris@42
|
17965 allow_undefined_flag_F77=unsupported
|
Chris@42
|
17966 always_export_symbols_F77=no
|
Chris@42
|
17967 enable_shared_with_static_runtimes_F77=yes
|
Chris@42
|
17968 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'
|
Chris@42
|
17969 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
Chris@42
|
17970
|
Chris@42
|
17971 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
Chris@42
|
17972 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
Chris@42
|
17973 # If the export-symbols file already is a .def file (1st line
|
Chris@42
|
17974 # is EXPORTS), use it as is; otherwise, prepend...
|
Chris@42
|
17975 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
Chris@42
|
17976 cp $export_symbols $output_objdir/$soname.def;
|
Chris@42
|
17977 else
|
Chris@42
|
17978 echo EXPORTS > $output_objdir/$soname.def;
|
Chris@42
|
17979 cat $export_symbols >> $output_objdir/$soname.def;
|
Chris@42
|
17980 fi~
|
Chris@42
|
17981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
Chris@42
|
17982 else
|
Chris@42
|
17983 ld_shlibs_F77=no
|
Chris@42
|
17984 fi
|
Chris@42
|
17985 ;;
|
Chris@42
|
17986
|
Chris@42
|
17987 haiku*)
|
Chris@42
|
17988 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
17989 link_all_deplibs_F77=yes
|
Chris@42
|
17990 ;;
|
Chris@42
|
17991
|
Chris@42
|
17992 interix[3-9]*)
|
Chris@42
|
17993 hardcode_direct_F77=no
|
Chris@42
|
17994 hardcode_shlibpath_var_F77=no
|
Chris@42
|
17995 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
Chris@42
|
17996 export_dynamic_flag_spec_F77='${wl}-E'
|
Chris@42
|
17997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
Chris@42
|
17998 # Instead, shared libraries are loaded at an image base (0x10000000 by
|
Chris@42
|
17999 # default) and relocated if they conflict, which is a slow very memory
|
Chris@42
|
18000 # consuming and fragmenting process. To avoid this, we pick a random,
|
Chris@42
|
18001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
Chris@42
|
18002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
Chris@42
|
18003 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'
|
Chris@42
|
18004 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'
|
Chris@42
|
18005 ;;
|
Chris@42
|
18006
|
Chris@42
|
18007 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
Chris@42
|
18008 tmp_diet=no
|
Chris@42
|
18009 if test "$host_os" = linux-dietlibc; then
|
Chris@42
|
18010 case $cc_basename in
|
Chris@42
|
18011 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
Chris@42
|
18012 esac
|
Chris@42
|
18013 fi
|
Chris@42
|
18014 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
Chris@42
|
18015 && test "$tmp_diet" = no
|
Chris@42
|
18016 then
|
Chris@42
|
18017 tmp_addflag=' $pic_flag'
|
Chris@42
|
18018 tmp_sharedflag='-shared'
|
Chris@42
|
18019 case $cc_basename,$host_cpu in
|
Chris@42
|
18020 pgcc*) # Portland Group C compiler
|
Chris@42
|
18021 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'
|
Chris@42
|
18022 tmp_addflag=' $pic_flag'
|
Chris@42
|
18023 ;;
|
Chris@42
|
18024 pgf77* | pgf90* | pgf95* | pgfortran*)
|
Chris@42
|
18025 # Portland Group f77 and f90 compilers
|
Chris@42
|
18026 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'
|
Chris@42
|
18027 tmp_addflag=' $pic_flag -Mnomain' ;;
|
Chris@42
|
18028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
Chris@42
|
18029 tmp_addflag=' -i_dynamic' ;;
|
Chris@42
|
18030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
Chris@42
|
18031 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
Chris@42
|
18032 ifc* | ifort*) # Intel Fortran compiler
|
Chris@42
|
18033 tmp_addflag=' -nofor_main' ;;
|
Chris@42
|
18034 lf95*) # Lahey Fortran 8.1
|
Chris@42
|
18035 whole_archive_flag_spec_F77=
|
Chris@42
|
18036 tmp_sharedflag='--shared' ;;
|
Chris@42
|
18037 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
Chris@42
|
18038 tmp_sharedflag='-qmkshrobj'
|
Chris@42
|
18039 tmp_addflag= ;;
|
Chris@42
|
18040 nvcc*) # Cuda Compiler Driver 2.2
|
Chris@42
|
18041 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'
|
Chris@42
|
18042 compiler_needs_object_F77=yes
|
Chris@42
|
18043 ;;
|
Chris@42
|
18044 esac
|
Chris@42
|
18045 case `$CC -V 2>&1 | sed 5q` in
|
Chris@42
|
18046 *Sun\ C*) # Sun C 5.9
|
Chris@42
|
18047 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'
|
Chris@42
|
18048 compiler_needs_object_F77=yes
|
Chris@42
|
18049 tmp_sharedflag='-G' ;;
|
Chris@42
|
18050 *Sun\ F*) # Sun Fortran 8.3
|
Chris@42
|
18051 tmp_sharedflag='-G' ;;
|
Chris@42
|
18052 esac
|
Chris@42
|
18053 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
18054
|
Chris@42
|
18055 if test "x$supports_anon_versioning" = xyes; then
|
Chris@42
|
18056 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
|
Chris@42
|
18057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
Chris@42
|
18058 echo "local: *; };" >> $output_objdir/$libname.ver~
|
Chris@42
|
18059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
Chris@42
|
18060 fi
|
Chris@42
|
18061
|
Chris@42
|
18062 case $cc_basename in
|
Chris@42
|
18063 xlf* | bgf* | bgxlf* | mpixlf*)
|
Chris@42
|
18064 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
Chris@42
|
18065 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
|
Chris@42
|
18066 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
18067 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
Chris@42
|
18068 if test "x$supports_anon_versioning" = xyes; then
|
Chris@42
|
18069 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
|
Chris@42
|
18070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
Chris@42
|
18071 echo "local: *; };" >> $output_objdir/$libname.ver~
|
Chris@42
|
18072 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
Chris@42
|
18073 fi
|
Chris@42
|
18074 ;;
|
Chris@42
|
18075 esac
|
Chris@42
|
18076 else
|
Chris@42
|
18077 ld_shlibs_F77=no
|
Chris@42
|
18078 fi
|
Chris@42
|
18079 ;;
|
Chris@42
|
18080
|
Chris@42
|
18081 netbsd* | netbsdelf*-gnu)
|
Chris@42
|
18082 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
Chris@42
|
18083 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
Chris@42
|
18084 wlarc=
|
Chris@42
|
18085 else
|
Chris@42
|
18086 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
18087 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'
|
Chris@42
|
18088 fi
|
Chris@42
|
18089 ;;
|
Chris@42
|
18090
|
Chris@42
|
18091 solaris*)
|
Chris@42
|
18092 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
Chris@42
|
18093 ld_shlibs_F77=no
|
Chris@42
|
18094 cat <<_LT_EOF 1>&2
|
Chris@42
|
18095
|
Chris@42
|
18096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
Chris@42
|
18097 *** create shared libraries on Solaris systems. Therefore, libtool
|
Chris@42
|
18098 *** is disabling shared libraries support. We urge you to upgrade GNU
|
Chris@42
|
18099 *** binutils to release 2.9.1 or newer. Another option is to modify
|
Chris@42
|
18100 *** your PATH or compiler configuration so that the native linker is
|
Chris@42
|
18101 *** used, and then restart.
|
Chris@42
|
18102
|
Chris@42
|
18103 _LT_EOF
|
Chris@42
|
18104 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
Chris@42
|
18105 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
18106 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'
|
Chris@42
|
18107 else
|
Chris@42
|
18108 ld_shlibs_F77=no
|
Chris@42
|
18109 fi
|
Chris@42
|
18110 ;;
|
Chris@42
|
18111
|
Chris@42
|
18112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
Chris@42
|
18113 case `$LD -v 2>&1` in
|
Chris@42
|
18114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
Chris@42
|
18115 ld_shlibs_F77=no
|
Chris@42
|
18116 cat <<_LT_EOF 1>&2
|
Chris@42
|
18117
|
Chris@42
|
18118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
Chris@42
|
18119 *** reliably create shared libraries on SCO systems. Therefore, libtool
|
Chris@42
|
18120 *** is disabling shared libraries support. We urge you to upgrade GNU
|
Chris@42
|
18121 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
Chris@42
|
18122 *** your PATH or compiler configuration so that the native linker is
|
Chris@42
|
18123 *** used, and then restart.
|
Chris@42
|
18124
|
Chris@42
|
18125 _LT_EOF
|
Chris@42
|
18126 ;;
|
Chris@42
|
18127 *)
|
Chris@42
|
18128 # For security reasons, it is highly recommended that you always
|
Chris@42
|
18129 # use absolute paths for naming shared libraries, and exclude the
|
Chris@42
|
18130 # DT_RUNPATH tag from executables and libraries. But doing so
|
Chris@42
|
18131 # requires that you compile everything twice, which is a pain.
|
Chris@42
|
18132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
Chris@42
|
18133 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
18134 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
18135 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
Chris@42
|
18136 else
|
Chris@42
|
18137 ld_shlibs_F77=no
|
Chris@42
|
18138 fi
|
Chris@42
|
18139 ;;
|
Chris@42
|
18140 esac
|
Chris@42
|
18141 ;;
|
Chris@42
|
18142
|
Chris@42
|
18143 sunos4*)
|
Chris@42
|
18144 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18145 wlarc=
|
Chris@42
|
18146 hardcode_direct_F77=yes
|
Chris@42
|
18147 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18148 ;;
|
Chris@42
|
18149
|
Chris@42
|
18150 *)
|
Chris@42
|
18151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
Chris@42
|
18152 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
18153 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'
|
Chris@42
|
18154 else
|
Chris@42
|
18155 ld_shlibs_F77=no
|
Chris@42
|
18156 fi
|
Chris@42
|
18157 ;;
|
Chris@42
|
18158 esac
|
Chris@42
|
18159
|
Chris@42
|
18160 if test "$ld_shlibs_F77" = no; then
|
Chris@42
|
18161 runpath_var=
|
Chris@42
|
18162 hardcode_libdir_flag_spec_F77=
|
Chris@42
|
18163 export_dynamic_flag_spec_F77=
|
Chris@42
|
18164 whole_archive_flag_spec_F77=
|
Chris@42
|
18165 fi
|
Chris@42
|
18166 else
|
Chris@42
|
18167 # PORTME fill in a description of your system's linker (not GNU ld)
|
Chris@42
|
18168 case $host_os in
|
Chris@42
|
18169 aix3*)
|
Chris@42
|
18170 allow_undefined_flag_F77=unsupported
|
Chris@42
|
18171 always_export_symbols_F77=yes
|
Chris@42
|
18172 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'
|
Chris@42
|
18173 # Note: this linker hardcodes the directories in LIBPATH if there
|
Chris@42
|
18174 # are no directories specified by -L.
|
Chris@42
|
18175 hardcode_minus_L_F77=yes
|
Chris@42
|
18176 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
Chris@42
|
18177 # Neither direct hardcoding nor static linking is supported with a
|
Chris@42
|
18178 # broken collect2.
|
Chris@42
|
18179 hardcode_direct_F77=unsupported
|
Chris@42
|
18180 fi
|
Chris@42
|
18181 ;;
|
Chris@42
|
18182
|
Chris@42
|
18183 aix[4-9]*)
|
Chris@42
|
18184 if test "$host_cpu" = ia64; then
|
Chris@42
|
18185 # On IA64, the linker does run time linking by default, so we don't
|
Chris@42
|
18186 # have to do anything special.
|
Chris@42
|
18187 aix_use_runtimelinking=no
|
Chris@42
|
18188 exp_sym_flag='-Bexport'
|
Chris@42
|
18189 no_entry_flag=""
|
Chris@42
|
18190 else
|
Chris@42
|
18191 # If we're using GNU nm, then we don't want the "-C" option.
|
Chris@42
|
18192 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
Chris@42
|
18193 # Also, AIX nm treats weak defined symbols like other global
|
Chris@42
|
18194 # defined symbols, whereas GNU nm marks them as "W".
|
Chris@42
|
18195 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
Chris@42
|
18196 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
Chris@42
|
18197 else
|
Chris@42
|
18198 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
Chris@42
|
18199 fi
|
Chris@42
|
18200 aix_use_runtimelinking=no
|
Chris@42
|
18201
|
Chris@42
|
18202 # Test if we are trying to use run time linking or normal
|
Chris@42
|
18203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
Chris@42
|
18204 # need to do runtime linking.
|
Chris@42
|
18205 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
Chris@42
|
18206 for ld_flag in $LDFLAGS; do
|
Chris@42
|
18207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
Chris@42
|
18208 aix_use_runtimelinking=yes
|
Chris@42
|
18209 break
|
Chris@42
|
18210 fi
|
Chris@42
|
18211 done
|
Chris@42
|
18212 ;;
|
Chris@42
|
18213 esac
|
Chris@42
|
18214
|
Chris@42
|
18215 exp_sym_flag='-bexport'
|
Chris@42
|
18216 no_entry_flag='-bnoentry'
|
Chris@42
|
18217 fi
|
Chris@42
|
18218
|
Chris@42
|
18219 # When large executables or shared objects are built, AIX ld can
|
Chris@42
|
18220 # have problems creating the table of contents. If linking a library
|
Chris@42
|
18221 # or program results in "error TOC overflow" add -mminimal-toc to
|
Chris@42
|
18222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
Chris@42
|
18223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
Chris@42
|
18224
|
Chris@42
|
18225 archive_cmds_F77=''
|
Chris@42
|
18226 hardcode_direct_F77=yes
|
Chris@42
|
18227 hardcode_direct_absolute_F77=yes
|
Chris@42
|
18228 hardcode_libdir_separator_F77=':'
|
Chris@42
|
18229 link_all_deplibs_F77=yes
|
Chris@42
|
18230 file_list_spec_F77='${wl}-f,'
|
Chris@42
|
18231
|
Chris@42
|
18232 if test "$GCC" = yes; then
|
Chris@42
|
18233 case $host_os in aix4.[012]|aix4.[012].*)
|
Chris@42
|
18234 # We only want to do this on AIX 4.2 and lower, the check
|
Chris@42
|
18235 # below for broken collect2 doesn't work under 4.3+
|
Chris@42
|
18236 collect2name=`${CC} -print-prog-name=collect2`
|
Chris@42
|
18237 if test -f "$collect2name" &&
|
Chris@42
|
18238 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
Chris@42
|
18239 then
|
Chris@42
|
18240 # We have reworked collect2
|
Chris@42
|
18241 :
|
Chris@42
|
18242 else
|
Chris@42
|
18243 # We have old collect2
|
Chris@42
|
18244 hardcode_direct_F77=unsupported
|
Chris@42
|
18245 # It fails to find uninstalled libraries when the uninstalled
|
Chris@42
|
18246 # path is not listed in the libpath. Setting hardcode_minus_L
|
Chris@42
|
18247 # to unsupported forces relinking
|
Chris@42
|
18248 hardcode_minus_L_F77=yes
|
Chris@42
|
18249 hardcode_libdir_flag_spec_F77='-L$libdir'
|
Chris@42
|
18250 hardcode_libdir_separator_F77=
|
Chris@42
|
18251 fi
|
Chris@42
|
18252 ;;
|
Chris@42
|
18253 esac
|
Chris@42
|
18254 shared_flag='-shared'
|
Chris@42
|
18255 if test "$aix_use_runtimelinking" = yes; then
|
Chris@42
|
18256 shared_flag="$shared_flag "'${wl}-G'
|
Chris@42
|
18257 fi
|
Chris@42
|
18258 link_all_deplibs_F77=no
|
Chris@42
|
18259 else
|
Chris@42
|
18260 # not using gcc
|
Chris@42
|
18261 if test "$host_cpu" = ia64; then
|
Chris@42
|
18262 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
Chris@42
|
18263 # chokes on -Wl,-G. The following line is correct:
|
Chris@42
|
18264 shared_flag='-G'
|
Chris@42
|
18265 else
|
Chris@42
|
18266 if test "$aix_use_runtimelinking" = yes; then
|
Chris@42
|
18267 shared_flag='${wl}-G'
|
Chris@42
|
18268 else
|
Chris@42
|
18269 shared_flag='${wl}-bM:SRE'
|
Chris@42
|
18270 fi
|
Chris@42
|
18271 fi
|
Chris@42
|
18272 fi
|
Chris@42
|
18273
|
Chris@42
|
18274 export_dynamic_flag_spec_F77='${wl}-bexpall'
|
Chris@42
|
18275 # It seems that -bexpall does not export symbols beginning with
|
Chris@42
|
18276 # underscore (_), so it is better to generate a list of symbols to export.
|
Chris@42
|
18277 always_export_symbols_F77=yes
|
Chris@42
|
18278 if test "$aix_use_runtimelinking" = yes; then
|
Chris@42
|
18279 # Warning - without using the other runtime loading flags (-brtl),
|
Chris@42
|
18280 # -berok will link without error, but may produce a broken library.
|
Chris@42
|
18281 allow_undefined_flag_F77='-berok'
|
Chris@42
|
18282 # Determine the default libpath from the value encoded in an
|
Chris@42
|
18283 # empty executable.
|
Chris@42
|
18284 if test "${lt_cv_aix_libpath+set}" = set; then
|
Chris@42
|
18285 aix_libpath=$lt_cv_aix_libpath
|
Chris@42
|
18286 else
|
Chris@42
|
18287 if ${lt_cv_aix_libpath__F77+:} false; then :
|
Chris@42
|
18288 $as_echo_n "(cached) " >&6
|
Chris@42
|
18289 else
|
Chris@42
|
18290 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
18291 program main
|
Chris@42
|
18292
|
Chris@42
|
18293 end
|
Chris@42
|
18294 _ACEOF
|
Chris@42
|
18295 if ac_fn_f77_try_link "$LINENO"; then :
|
Chris@42
|
18296
|
Chris@42
|
18297 lt_aix_libpath_sed='
|
Chris@42
|
18298 /Import File Strings/,/^$/ {
|
Chris@42
|
18299 /^0/ {
|
Chris@42
|
18300 s/^0 *\([^ ]*\) *$/\1/
|
Chris@42
|
18301 p
|
Chris@42
|
18302 }
|
Chris@42
|
18303 }'
|
Chris@42
|
18304 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
Chris@42
|
18305 # Check for a 64-bit object if we didn't find anything.
|
Chris@42
|
18306 if test -z "$lt_cv_aix_libpath__F77"; then
|
Chris@42
|
18307 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
Chris@42
|
18308 fi
|
Chris@42
|
18309 fi
|
Chris@42
|
18310 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
18311 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
18312 if test -z "$lt_cv_aix_libpath__F77"; then
|
Chris@42
|
18313 lt_cv_aix_libpath__F77="/usr/lib:/lib"
|
Chris@42
|
18314 fi
|
Chris@42
|
18315
|
Chris@42
|
18316 fi
|
Chris@42
|
18317
|
Chris@42
|
18318 aix_libpath=$lt_cv_aix_libpath__F77
|
Chris@42
|
18319 fi
|
Chris@42
|
18320
|
Chris@42
|
18321 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
Chris@42
|
18322 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
Chris@42
|
18323 else
|
Chris@42
|
18324 if test "$host_cpu" = ia64; then
|
Chris@42
|
18325 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
|
Chris@42
|
18326 allow_undefined_flag_F77="-z nodefs"
|
Chris@42
|
18327 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"
|
Chris@42
|
18328 else
|
Chris@42
|
18329 # Determine the default libpath from the value encoded in an
|
Chris@42
|
18330 # empty executable.
|
Chris@42
|
18331 if test "${lt_cv_aix_libpath+set}" = set; then
|
Chris@42
|
18332 aix_libpath=$lt_cv_aix_libpath
|
Chris@42
|
18333 else
|
Chris@42
|
18334 if ${lt_cv_aix_libpath__F77+:} false; then :
|
Chris@42
|
18335 $as_echo_n "(cached) " >&6
|
Chris@42
|
18336 else
|
Chris@42
|
18337 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
18338 program main
|
Chris@42
|
18339
|
Chris@42
|
18340 end
|
Chris@42
|
18341 _ACEOF
|
Chris@42
|
18342 if ac_fn_f77_try_link "$LINENO"; then :
|
Chris@42
|
18343
|
Chris@42
|
18344 lt_aix_libpath_sed='
|
Chris@42
|
18345 /Import File Strings/,/^$/ {
|
Chris@42
|
18346 /^0/ {
|
Chris@42
|
18347 s/^0 *\([^ ]*\) *$/\1/
|
Chris@42
|
18348 p
|
Chris@42
|
18349 }
|
Chris@42
|
18350 }'
|
Chris@42
|
18351 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
Chris@42
|
18352 # Check for a 64-bit object if we didn't find anything.
|
Chris@42
|
18353 if test -z "$lt_cv_aix_libpath__F77"; then
|
Chris@42
|
18354 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
Chris@42
|
18355 fi
|
Chris@42
|
18356 fi
|
Chris@42
|
18357 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
18358 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
18359 if test -z "$lt_cv_aix_libpath__F77"; then
|
Chris@42
|
18360 lt_cv_aix_libpath__F77="/usr/lib:/lib"
|
Chris@42
|
18361 fi
|
Chris@42
|
18362
|
Chris@42
|
18363 fi
|
Chris@42
|
18364
|
Chris@42
|
18365 aix_libpath=$lt_cv_aix_libpath__F77
|
Chris@42
|
18366 fi
|
Chris@42
|
18367
|
Chris@42
|
18368 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
Chris@42
|
18369 # Warning - without using the other run time loading flags,
|
Chris@42
|
18370 # -berok will link without error, but may produce a broken library.
|
Chris@42
|
18371 no_undefined_flag_F77=' ${wl}-bernotok'
|
Chris@42
|
18372 allow_undefined_flag_F77=' ${wl}-berok'
|
Chris@42
|
18373 if test "$with_gnu_ld" = yes; then
|
Chris@42
|
18374 # We only use this code for GNU lds that support --whole-archive.
|
Chris@42
|
18375 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
Chris@42
|
18376 else
|
Chris@42
|
18377 # Exported symbols can be pulled into shared objects from archives
|
Chris@42
|
18378 whole_archive_flag_spec_F77='$convenience'
|
Chris@42
|
18379 fi
|
Chris@42
|
18380 archive_cmds_need_lc_F77=yes
|
Chris@42
|
18381 # This is similar to how AIX traditionally builds its shared libraries.
|
Chris@42
|
18382 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
Chris@42
|
18383 fi
|
Chris@42
|
18384 fi
|
Chris@42
|
18385 ;;
|
Chris@42
|
18386
|
Chris@42
|
18387 amigaos*)
|
Chris@42
|
18388 case $host_cpu in
|
Chris@42
|
18389 powerpc)
|
Chris@42
|
18390 # see comment about AmigaOS4 .so support
|
Chris@42
|
18391 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
Chris@42
|
18392 archive_expsym_cmds_F77=''
|
Chris@42
|
18393 ;;
|
Chris@42
|
18394 m68k)
|
Chris@42
|
18395 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)'
|
Chris@42
|
18396 hardcode_libdir_flag_spec_F77='-L$libdir'
|
Chris@42
|
18397 hardcode_minus_L_F77=yes
|
Chris@42
|
18398 ;;
|
Chris@42
|
18399 esac
|
Chris@42
|
18400 ;;
|
Chris@42
|
18401
|
Chris@42
|
18402 bsdi[45]*)
|
Chris@42
|
18403 export_dynamic_flag_spec_F77=-rdynamic
|
Chris@42
|
18404 ;;
|
Chris@42
|
18405
|
Chris@42
|
18406 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
18407 # When not using gcc, we currently assume that we are using
|
Chris@42
|
18408 # Microsoft Visual C++.
|
Chris@42
|
18409 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
Chris@42
|
18410 # no search path for DLLs.
|
Chris@42
|
18411 case $cc_basename in
|
Chris@42
|
18412 cl*)
|
Chris@42
|
18413 # Native MSVC
|
Chris@42
|
18414 hardcode_libdir_flag_spec_F77=' '
|
Chris@42
|
18415 allow_undefined_flag_F77=unsupported
|
Chris@42
|
18416 always_export_symbols_F77=yes
|
Chris@42
|
18417 file_list_spec_F77='@'
|
Chris@42
|
18418 # Tell ltmain to make .lib files, not .a files.
|
Chris@42
|
18419 libext=lib
|
Chris@42
|
18420 # Tell ltmain to make .dll files, not .so files.
|
Chris@42
|
18421 shrext_cmds=".dll"
|
Chris@42
|
18422 # FIXME: Setting linknames here is a bad hack.
|
Chris@42
|
18423 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
Chris@42
|
18424 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
Chris@42
|
18425 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
Chris@42
|
18426 else
|
Chris@42
|
18427 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
Chris@42
|
18428 fi~
|
Chris@42
|
18429 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
Chris@42
|
18430 linknames='
|
Chris@42
|
18431 # The linker will not automatically build a static lib if we build a DLL.
|
Chris@42
|
18432 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
|
Chris@42
|
18433 enable_shared_with_static_runtimes_F77=yes
|
Chris@42
|
18434 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
Chris@42
|
18435 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
Chris@42
|
18436 # Don't use ranlib
|
Chris@42
|
18437 old_postinstall_cmds_F77='chmod 644 $oldlib'
|
Chris@42
|
18438 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
|
Chris@42
|
18439 lt_tool_outputfile="@TOOL_OUTPUT@"~
|
Chris@42
|
18440 case $lt_outputfile in
|
Chris@42
|
18441 *.exe|*.EXE) ;;
|
Chris@42
|
18442 *)
|
Chris@42
|
18443 lt_outputfile="$lt_outputfile.exe"
|
Chris@42
|
18444 lt_tool_outputfile="$lt_tool_outputfile.exe"
|
Chris@42
|
18445 ;;
|
Chris@42
|
18446 esac~
|
Chris@42
|
18447 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
Chris@42
|
18448 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
Chris@42
|
18449 $RM "$lt_outputfile.manifest";
|
Chris@42
|
18450 fi'
|
Chris@42
|
18451 ;;
|
Chris@42
|
18452 *)
|
Chris@42
|
18453 # Assume MSVC wrapper
|
Chris@42
|
18454 hardcode_libdir_flag_spec_F77=' '
|
Chris@42
|
18455 allow_undefined_flag_F77=unsupported
|
Chris@42
|
18456 # Tell ltmain to make .lib files, not .a files.
|
Chris@42
|
18457 libext=lib
|
Chris@42
|
18458 # Tell ltmain to make .dll files, not .so files.
|
Chris@42
|
18459 shrext_cmds=".dll"
|
Chris@42
|
18460 # FIXME: Setting linknames here is a bad hack.
|
Chris@42
|
18461 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
Chris@42
|
18462 # The linker will automatically build a .lib file if we build a DLL.
|
Chris@42
|
18463 old_archive_from_new_cmds_F77='true'
|
Chris@42
|
18464 # FIXME: Should let the user specify the lib program.
|
Chris@42
|
18465 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
Chris@42
|
18466 enable_shared_with_static_runtimes_F77=yes
|
Chris@42
|
18467 ;;
|
Chris@42
|
18468 esac
|
Chris@42
|
18469 ;;
|
Chris@42
|
18470
|
Chris@42
|
18471 darwin* | rhapsody*)
|
Chris@42
|
18472
|
Chris@42
|
18473
|
Chris@42
|
18474 archive_cmds_need_lc_F77=no
|
Chris@42
|
18475 hardcode_direct_F77=no
|
Chris@42
|
18476 hardcode_automatic_F77=yes
|
Chris@42
|
18477 hardcode_shlibpath_var_F77=unsupported
|
Chris@42
|
18478 if test "$lt_cv_ld_force_load" = "yes"; then
|
Chris@42
|
18479 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\"`'
|
Chris@42
|
18480 compiler_needs_object_F77=yes
|
Chris@42
|
18481 else
|
Chris@42
|
18482 whole_archive_flag_spec_F77=''
|
Chris@42
|
18483 fi
|
Chris@42
|
18484 link_all_deplibs_F77=yes
|
Chris@42
|
18485 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
|
Chris@42
|
18486 case $cc_basename in
|
Chris@42
|
18487 ifort*) _lt_dar_can_shared=yes ;;
|
Chris@42
|
18488 *) _lt_dar_can_shared=$GCC ;;
|
Chris@42
|
18489 esac
|
Chris@42
|
18490 if test "$_lt_dar_can_shared" = "yes"; then
|
Chris@42
|
18491 output_verbose_link_cmd=func_echo_all
|
Chris@42
|
18492 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}"
|
Chris@42
|
18493 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
Chris@42
|
18494 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}"
|
Chris@42
|
18495 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}"
|
Chris@42
|
18496
|
Chris@42
|
18497 else
|
Chris@42
|
18498 ld_shlibs_F77=no
|
Chris@42
|
18499 fi
|
Chris@42
|
18500
|
Chris@42
|
18501 ;;
|
Chris@42
|
18502
|
Chris@42
|
18503 dgux*)
|
Chris@42
|
18504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18505 hardcode_libdir_flag_spec_F77='-L$libdir'
|
Chris@42
|
18506 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18507 ;;
|
Chris@42
|
18508
|
Chris@42
|
18509 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
Chris@42
|
18510 # support. Future versions do this automatically, but an explicit c++rt0.o
|
Chris@42
|
18511 # does not break anything, and helps significantly (at the cost of a little
|
Chris@42
|
18512 # extra space).
|
Chris@42
|
18513 freebsd2.2*)
|
Chris@42
|
18514 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
Chris@42
|
18515 hardcode_libdir_flag_spec_F77='-R$libdir'
|
Chris@42
|
18516 hardcode_direct_F77=yes
|
Chris@42
|
18517 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18518 ;;
|
Chris@42
|
18519
|
Chris@42
|
18520 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
Chris@42
|
18521 freebsd2.*)
|
Chris@42
|
18522 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18523 hardcode_direct_F77=yes
|
Chris@42
|
18524 hardcode_minus_L_F77=yes
|
Chris@42
|
18525 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18526 ;;
|
Chris@42
|
18527
|
Chris@42
|
18528 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
Chris@42
|
18529 freebsd* | dragonfly*)
|
Chris@42
|
18530 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18531 hardcode_libdir_flag_spec_F77='-R$libdir'
|
Chris@42
|
18532 hardcode_direct_F77=yes
|
Chris@42
|
18533 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18534 ;;
|
Chris@42
|
18535
|
Chris@42
|
18536 hpux9*)
|
Chris@42
|
18537 if test "$GCC" = yes; then
|
Chris@42
|
18538 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
Chris@42
|
18539 else
|
Chris@42
|
18540 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
Chris@42
|
18541 fi
|
Chris@42
|
18542 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
Chris@42
|
18543 hardcode_libdir_separator_F77=:
|
Chris@42
|
18544 hardcode_direct_F77=yes
|
Chris@42
|
18545
|
Chris@42
|
18546 # hardcode_minus_L: Not really in the search PATH,
|
Chris@42
|
18547 # but as the default location of the library.
|
Chris@42
|
18548 hardcode_minus_L_F77=yes
|
Chris@42
|
18549 export_dynamic_flag_spec_F77='${wl}-E'
|
Chris@42
|
18550 ;;
|
Chris@42
|
18551
|
Chris@42
|
18552 hpux10*)
|
Chris@42
|
18553 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
Chris@42
|
18554 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18555 else
|
Chris@42
|
18556 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18557 fi
|
Chris@42
|
18558 if test "$with_gnu_ld" = no; then
|
Chris@42
|
18559 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
Chris@42
|
18560 hardcode_libdir_separator_F77=:
|
Chris@42
|
18561 hardcode_direct_F77=yes
|
Chris@42
|
18562 hardcode_direct_absolute_F77=yes
|
Chris@42
|
18563 export_dynamic_flag_spec_F77='${wl}-E'
|
Chris@42
|
18564 # hardcode_minus_L: Not really in the search PATH,
|
Chris@42
|
18565 # but as the default location of the library.
|
Chris@42
|
18566 hardcode_minus_L_F77=yes
|
Chris@42
|
18567 fi
|
Chris@42
|
18568 ;;
|
Chris@42
|
18569
|
Chris@42
|
18570 hpux11*)
|
Chris@42
|
18571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
Chris@42
|
18572 case $host_cpu in
|
Chris@42
|
18573 hppa*64*)
|
Chris@42
|
18574 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18575 ;;
|
Chris@42
|
18576 ia64*)
|
Chris@42
|
18577 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18578 ;;
|
Chris@42
|
18579 *)
|
Chris@42
|
18580 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18581 ;;
|
Chris@42
|
18582 esac
|
Chris@42
|
18583 else
|
Chris@42
|
18584 case $host_cpu in
|
Chris@42
|
18585 hppa*64*)
|
Chris@42
|
18586 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18587 ;;
|
Chris@42
|
18588 ia64*)
|
Chris@42
|
18589 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18590 ;;
|
Chris@42
|
18591 *)
|
Chris@42
|
18592 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18593 ;;
|
Chris@42
|
18594 esac
|
Chris@42
|
18595 fi
|
Chris@42
|
18596 if test "$with_gnu_ld" = no; then
|
Chris@42
|
18597 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
Chris@42
|
18598 hardcode_libdir_separator_F77=:
|
Chris@42
|
18599
|
Chris@42
|
18600 case $host_cpu in
|
Chris@42
|
18601 hppa*64*|ia64*)
|
Chris@42
|
18602 hardcode_direct_F77=no
|
Chris@42
|
18603 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18604 ;;
|
Chris@42
|
18605 *)
|
Chris@42
|
18606 hardcode_direct_F77=yes
|
Chris@42
|
18607 hardcode_direct_absolute_F77=yes
|
Chris@42
|
18608 export_dynamic_flag_spec_F77='${wl}-E'
|
Chris@42
|
18609
|
Chris@42
|
18610 # hardcode_minus_L: Not really in the search PATH,
|
Chris@42
|
18611 # but as the default location of the library.
|
Chris@42
|
18612 hardcode_minus_L_F77=yes
|
Chris@42
|
18613 ;;
|
Chris@42
|
18614 esac
|
Chris@42
|
18615 fi
|
Chris@42
|
18616 ;;
|
Chris@42
|
18617
|
Chris@42
|
18618 irix5* | irix6* | nonstopux*)
|
Chris@42
|
18619 if test "$GCC" = yes; then
|
Chris@42
|
18620 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'
|
Chris@42
|
18621 # Try to use the -exported_symbol ld option, if it does not
|
Chris@42
|
18622 # work, assume that -exports_file does not work either and
|
Chris@42
|
18623 # implicitly export all symbols.
|
Chris@42
|
18624 # This should be the same for all languages, so no per-tag cache variable.
|
Chris@42
|
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
Chris@42
|
18626 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
Chris@42
|
18627 if ${lt_cv_irix_exported_symbol+:} false; then :
|
Chris@42
|
18628 $as_echo_n "(cached) " >&6
|
Chris@42
|
18629 else
|
Chris@42
|
18630 save_LDFLAGS="$LDFLAGS"
|
Chris@42
|
18631 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
Chris@42
|
18632 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
18633
|
Chris@42
|
18634 subroutine foo
|
Chris@42
|
18635 end
|
Chris@42
|
18636 _ACEOF
|
Chris@42
|
18637 if ac_fn_f77_try_link "$LINENO"; then :
|
Chris@42
|
18638 lt_cv_irix_exported_symbol=yes
|
Chris@42
|
18639 else
|
Chris@42
|
18640 lt_cv_irix_exported_symbol=no
|
Chris@42
|
18641 fi
|
Chris@42
|
18642 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
18643 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
18644 LDFLAGS="$save_LDFLAGS"
|
Chris@42
|
18645 fi
|
Chris@42
|
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
Chris@42
|
18647 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
Chris@42
|
18648 if test "$lt_cv_irix_exported_symbol" = yes; then
|
Chris@42
|
18649 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'
|
Chris@42
|
18650 fi
|
Chris@42
|
18651 else
|
Chris@42
|
18652 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'
|
Chris@42
|
18653 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'
|
Chris@42
|
18654 fi
|
Chris@42
|
18655 archive_cmds_need_lc_F77='no'
|
Chris@42
|
18656 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
18657 hardcode_libdir_separator_F77=:
|
Chris@42
|
18658 inherit_rpath_F77=yes
|
Chris@42
|
18659 link_all_deplibs_F77=yes
|
Chris@42
|
18660 ;;
|
Chris@42
|
18661
|
Chris@42
|
18662 netbsd* | netbsdelf*-gnu)
|
Chris@42
|
18663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
Chris@42
|
18664 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
Chris@42
|
18665 else
|
Chris@42
|
18666 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
Chris@42
|
18667 fi
|
Chris@42
|
18668 hardcode_libdir_flag_spec_F77='-R$libdir'
|
Chris@42
|
18669 hardcode_direct_F77=yes
|
Chris@42
|
18670 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18671 ;;
|
Chris@42
|
18672
|
Chris@42
|
18673 newsos6)
|
Chris@42
|
18674 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18675 hardcode_direct_F77=yes
|
Chris@42
|
18676 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
18677 hardcode_libdir_separator_F77=:
|
Chris@42
|
18678 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18679 ;;
|
Chris@42
|
18680
|
Chris@42
|
18681 *nto* | *qnx*)
|
Chris@42
|
18682 ;;
|
Chris@42
|
18683
|
Chris@42
|
18684 openbsd*)
|
Chris@42
|
18685 if test -f /usr/libexec/ld.so; then
|
Chris@42
|
18686 hardcode_direct_F77=yes
|
Chris@42
|
18687 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18688 hardcode_direct_absolute_F77=yes
|
Chris@42
|
18689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
Chris@42
|
18690 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18691 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
Chris@42
|
18692 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
Chris@42
|
18693 export_dynamic_flag_spec_F77='${wl}-E'
|
Chris@42
|
18694 else
|
Chris@42
|
18695 case $host_os in
|
Chris@42
|
18696 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
Chris@42
|
18697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18698 hardcode_libdir_flag_spec_F77='-R$libdir'
|
Chris@42
|
18699 ;;
|
Chris@42
|
18700 *)
|
Chris@42
|
18701 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18702 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
Chris@42
|
18703 ;;
|
Chris@42
|
18704 esac
|
Chris@42
|
18705 fi
|
Chris@42
|
18706 else
|
Chris@42
|
18707 ld_shlibs_F77=no
|
Chris@42
|
18708 fi
|
Chris@42
|
18709 ;;
|
Chris@42
|
18710
|
Chris@42
|
18711 os2*)
|
Chris@42
|
18712 hardcode_libdir_flag_spec_F77='-L$libdir'
|
Chris@42
|
18713 hardcode_minus_L_F77=yes
|
Chris@42
|
18714 allow_undefined_flag_F77=unsupported
|
Chris@42
|
18715 archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
Chris@42
|
18716 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
Chris@42
|
18717 ;;
|
Chris@42
|
18718
|
Chris@42
|
18719 osf3*)
|
Chris@42
|
18720 if test "$GCC" = yes; then
|
Chris@42
|
18721 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
Chris@42
|
18722 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'
|
Chris@42
|
18723 else
|
Chris@42
|
18724 allow_undefined_flag_F77=' -expect_unresolved \*'
|
Chris@42
|
18725 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'
|
Chris@42
|
18726 fi
|
Chris@42
|
18727 archive_cmds_need_lc_F77='no'
|
Chris@42
|
18728 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
18729 hardcode_libdir_separator_F77=:
|
Chris@42
|
18730 ;;
|
Chris@42
|
18731
|
Chris@42
|
18732 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
Chris@42
|
18733 if test "$GCC" = yes; then
|
Chris@42
|
18734 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
Chris@42
|
18735 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'
|
Chris@42
|
18736 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
Chris@42
|
18737 else
|
Chris@42
|
18738 allow_undefined_flag_F77=' -expect_unresolved \*'
|
Chris@42
|
18739 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'
|
Chris@42
|
18740 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~
|
Chris@42
|
18741 $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'
|
Chris@42
|
18742
|
Chris@42
|
18743 # Both c and cxx compiler support -rpath directly
|
Chris@42
|
18744 hardcode_libdir_flag_spec_F77='-rpath $libdir'
|
Chris@42
|
18745 fi
|
Chris@42
|
18746 archive_cmds_need_lc_F77='no'
|
Chris@42
|
18747 hardcode_libdir_separator_F77=:
|
Chris@42
|
18748 ;;
|
Chris@42
|
18749
|
Chris@42
|
18750 solaris*)
|
Chris@42
|
18751 no_undefined_flag_F77=' -z defs'
|
Chris@42
|
18752 if test "$GCC" = yes; then
|
Chris@42
|
18753 wlarc='${wl}'
|
Chris@42
|
18754 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18755 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
Chris@42
|
18756 $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'
|
Chris@42
|
18757 else
|
Chris@42
|
18758 case `$CC -V 2>&1` in
|
Chris@42
|
18759 *"Compilers 5.0"*)
|
Chris@42
|
18760 wlarc=''
|
Chris@42
|
18761 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18762 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
Chris@42
|
18763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
Chris@42
|
18764 ;;
|
Chris@42
|
18765 *)
|
Chris@42
|
18766 wlarc='${wl}'
|
Chris@42
|
18767 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18768 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
Chris@42
|
18769 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
Chris@42
|
18770 ;;
|
Chris@42
|
18771 esac
|
Chris@42
|
18772 fi
|
Chris@42
|
18773 hardcode_libdir_flag_spec_F77='-R$libdir'
|
Chris@42
|
18774 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18775 case $host_os in
|
Chris@42
|
18776 solaris2.[0-5] | solaris2.[0-5].*) ;;
|
Chris@42
|
18777 *)
|
Chris@42
|
18778 # The compiler driver will combine and reorder linker options,
|
Chris@42
|
18779 # but understands `-z linker_flag'. GCC discards it without `$wl',
|
Chris@42
|
18780 # but is careful enough not to reorder.
|
Chris@42
|
18781 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
Chris@42
|
18782 if test "$GCC" = yes; then
|
Chris@42
|
18783 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
Chris@42
|
18784 else
|
Chris@42
|
18785 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
|
Chris@42
|
18786 fi
|
Chris@42
|
18787 ;;
|
Chris@42
|
18788 esac
|
Chris@42
|
18789 link_all_deplibs_F77=yes
|
Chris@42
|
18790 ;;
|
Chris@42
|
18791
|
Chris@42
|
18792 sunos4*)
|
Chris@42
|
18793 if test "x$host_vendor" = xsequent; then
|
Chris@42
|
18794 # Use $CC to link under sequent, because it throws in some extra .o
|
Chris@42
|
18795 # files that make .init and .fini sections work.
|
Chris@42
|
18796 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18797 else
|
Chris@42
|
18798 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18799 fi
|
Chris@42
|
18800 hardcode_libdir_flag_spec_F77='-L$libdir'
|
Chris@42
|
18801 hardcode_direct_F77=yes
|
Chris@42
|
18802 hardcode_minus_L_F77=yes
|
Chris@42
|
18803 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18804 ;;
|
Chris@42
|
18805
|
Chris@42
|
18806 sysv4)
|
Chris@42
|
18807 case $host_vendor in
|
Chris@42
|
18808 sni)
|
Chris@42
|
18809 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18810 hardcode_direct_F77=yes # is this really true???
|
Chris@42
|
18811 ;;
|
Chris@42
|
18812 siemens)
|
Chris@42
|
18813 ## LD is ld it makes a PLAMLIB
|
Chris@42
|
18814 ## CC just makes a GrossModule.
|
Chris@42
|
18815 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18816 reload_cmds_F77='$CC -r -o $output$reload_objs'
|
Chris@42
|
18817 hardcode_direct_F77=no
|
Chris@42
|
18818 ;;
|
Chris@42
|
18819 motorola)
|
Chris@42
|
18820 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18821 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
|
Chris@42
|
18822 ;;
|
Chris@42
|
18823 esac
|
Chris@42
|
18824 runpath_var='LD_RUN_PATH'
|
Chris@42
|
18825 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18826 ;;
|
Chris@42
|
18827
|
Chris@42
|
18828 sysv4.3*)
|
Chris@42
|
18829 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18830 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18831 export_dynamic_flag_spec_F77='-Bexport'
|
Chris@42
|
18832 ;;
|
Chris@42
|
18833
|
Chris@42
|
18834 sysv4*MP*)
|
Chris@42
|
18835 if test -d /usr/nec; then
|
Chris@42
|
18836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18837 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18838 runpath_var=LD_RUN_PATH
|
Chris@42
|
18839 hardcode_runpath_var=yes
|
Chris@42
|
18840 ld_shlibs_F77=yes
|
Chris@42
|
18841 fi
|
Chris@42
|
18842 ;;
|
Chris@42
|
18843
|
Chris@42
|
18844 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
Chris@42
|
18845 no_undefined_flag_F77='${wl}-z,text'
|
Chris@42
|
18846 archive_cmds_need_lc_F77=no
|
Chris@42
|
18847 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18848 runpath_var='LD_RUN_PATH'
|
Chris@42
|
18849
|
Chris@42
|
18850 if test "$GCC" = yes; then
|
Chris@42
|
18851 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18852 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18853 else
|
Chris@42
|
18854 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18855 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18856 fi
|
Chris@42
|
18857 ;;
|
Chris@42
|
18858
|
Chris@42
|
18859 sysv5* | sco3.2v5* | sco5v6*)
|
Chris@42
|
18860 # Note: We can NOT use -z defs as we might desire, because we do not
|
Chris@42
|
18861 # link with -lc, and that would cause any symbols used from libc to
|
Chris@42
|
18862 # always be unresolved, which means just about no library would
|
Chris@42
|
18863 # ever link correctly. If we're not using GNU ld we use -z text
|
Chris@42
|
18864 # though, which does catch some bad symbols but isn't as heavy-handed
|
Chris@42
|
18865 # as -z defs.
|
Chris@42
|
18866 no_undefined_flag_F77='${wl}-z,text'
|
Chris@42
|
18867 allow_undefined_flag_F77='${wl}-z,nodefs'
|
Chris@42
|
18868 archive_cmds_need_lc_F77=no
|
Chris@42
|
18869 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18870 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
|
Chris@42
|
18871 hardcode_libdir_separator_F77=':'
|
Chris@42
|
18872 link_all_deplibs_F77=yes
|
Chris@42
|
18873 export_dynamic_flag_spec_F77='${wl}-Bexport'
|
Chris@42
|
18874 runpath_var='LD_RUN_PATH'
|
Chris@42
|
18875
|
Chris@42
|
18876 if test "$GCC" = yes; then
|
Chris@42
|
18877 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18878 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18879 else
|
Chris@42
|
18880 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18881 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
Chris@42
|
18882 fi
|
Chris@42
|
18883 ;;
|
Chris@42
|
18884
|
Chris@42
|
18885 uts4*)
|
Chris@42
|
18886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
Chris@42
|
18887 hardcode_libdir_flag_spec_F77='-L$libdir'
|
Chris@42
|
18888 hardcode_shlibpath_var_F77=no
|
Chris@42
|
18889 ;;
|
Chris@42
|
18890
|
Chris@42
|
18891 *)
|
Chris@42
|
18892 ld_shlibs_F77=no
|
Chris@42
|
18893 ;;
|
Chris@42
|
18894 esac
|
Chris@42
|
18895
|
Chris@42
|
18896 if test x$host_vendor = xsni; then
|
Chris@42
|
18897 case $host in
|
Chris@42
|
18898 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
Chris@42
|
18899 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
|
Chris@42
|
18900 ;;
|
Chris@42
|
18901 esac
|
Chris@42
|
18902 fi
|
Chris@42
|
18903 fi
|
Chris@42
|
18904
|
Chris@42
|
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
|
Chris@42
|
18906 $as_echo "$ld_shlibs_F77" >&6; }
|
Chris@42
|
18907 test "$ld_shlibs_F77" = no && can_build_shared=no
|
Chris@42
|
18908
|
Chris@42
|
18909 with_gnu_ld_F77=$with_gnu_ld
|
Chris@42
|
18910
|
Chris@42
|
18911
|
Chris@42
|
18912
|
Chris@42
|
18913
|
Chris@42
|
18914
|
Chris@42
|
18915
|
Chris@42
|
18916 #
|
Chris@42
|
18917 # Do we need to explicitly link libc?
|
Chris@42
|
18918 #
|
Chris@42
|
18919 case "x$archive_cmds_need_lc_F77" in
|
Chris@42
|
18920 x|xyes)
|
Chris@42
|
18921 # Assume -lc should be added
|
Chris@42
|
18922 archive_cmds_need_lc_F77=yes
|
Chris@42
|
18923
|
Chris@42
|
18924 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
Chris@42
|
18925 case $archive_cmds_F77 in
|
Chris@42
|
18926 *'~'*)
|
Chris@42
|
18927 # FIXME: we may have to deal with multi-command sequences.
|
Chris@42
|
18928 ;;
|
Chris@42
|
18929 '$CC '*)
|
Chris@42
|
18930 # Test whether the compiler implicitly links with -lc since on some
|
Chris@42
|
18931 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
Chris@42
|
18932 # to ld, don't add -lc before -lgcc.
|
Chris@42
|
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
|
Chris@42
|
18934 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
|
Chris@42
|
18935 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
|
Chris@42
|
18936 $as_echo_n "(cached) " >&6
|
Chris@42
|
18937 else
|
Chris@42
|
18938 $RM conftest*
|
Chris@42
|
18939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
Chris@42
|
18940
|
Chris@42
|
18941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
Chris@42
|
18942 (eval $ac_compile) 2>&5
|
Chris@42
|
18943 ac_status=$?
|
Chris@42
|
18944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
18945 test $ac_status = 0; } 2>conftest.err; then
|
Chris@42
|
18946 soname=conftest
|
Chris@42
|
18947 lib=conftest
|
Chris@42
|
18948 libobjs=conftest.$ac_objext
|
Chris@42
|
18949 deplibs=
|
Chris@42
|
18950 wl=$lt_prog_compiler_wl_F77
|
Chris@42
|
18951 pic_flag=$lt_prog_compiler_pic_F77
|
Chris@42
|
18952 compiler_flags=-v
|
Chris@42
|
18953 linker_flags=-v
|
Chris@42
|
18954 verstring=
|
Chris@42
|
18955 output_objdir=.
|
Chris@42
|
18956 libname=conftest
|
Chris@42
|
18957 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
|
Chris@42
|
18958 allow_undefined_flag_F77=
|
Chris@42
|
18959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
|
Chris@42
|
18960 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
Chris@42
|
18961 ac_status=$?
|
Chris@42
|
18962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
Chris@42
|
18963 test $ac_status = 0; }
|
Chris@42
|
18964 then
|
Chris@42
|
18965 lt_cv_archive_cmds_need_lc_F77=no
|
Chris@42
|
18966 else
|
Chris@42
|
18967 lt_cv_archive_cmds_need_lc_F77=yes
|
Chris@42
|
18968 fi
|
Chris@42
|
18969 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
|
Chris@42
|
18970 else
|
Chris@42
|
18971 cat conftest.err 1>&5
|
Chris@42
|
18972 fi
|
Chris@42
|
18973 $RM conftest*
|
Chris@42
|
18974
|
Chris@42
|
18975 fi
|
Chris@42
|
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
|
Chris@42
|
18977 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
|
Chris@42
|
18978 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
|
Chris@42
|
18979 ;;
|
Chris@42
|
18980 esac
|
Chris@42
|
18981 fi
|
Chris@42
|
18982 ;;
|
Chris@42
|
18983 esac
|
Chris@42
|
18984
|
Chris@42
|
18985
|
Chris@42
|
18986
|
Chris@42
|
18987
|
Chris@42
|
18988
|
Chris@42
|
18989
|
Chris@42
|
18990
|
Chris@42
|
18991
|
Chris@42
|
18992
|
Chris@42
|
18993
|
Chris@42
|
18994
|
Chris@42
|
18995
|
Chris@42
|
18996
|
Chris@42
|
18997
|
Chris@42
|
18998
|
Chris@42
|
18999
|
Chris@42
|
19000
|
Chris@42
|
19001
|
Chris@42
|
19002
|
Chris@42
|
19003
|
Chris@42
|
19004
|
Chris@42
|
19005
|
Chris@42
|
19006
|
Chris@42
|
19007
|
Chris@42
|
19008
|
Chris@42
|
19009
|
Chris@42
|
19010
|
Chris@42
|
19011
|
Chris@42
|
19012
|
Chris@42
|
19013
|
Chris@42
|
19014
|
Chris@42
|
19015
|
Chris@42
|
19016
|
Chris@42
|
19017
|
Chris@42
|
19018
|
Chris@42
|
19019
|
Chris@42
|
19020
|
Chris@42
|
19021
|
Chris@42
|
19022
|
Chris@42
|
19023
|
Chris@42
|
19024
|
Chris@42
|
19025
|
Chris@42
|
19026
|
Chris@42
|
19027
|
Chris@42
|
19028
|
Chris@42
|
19029
|
Chris@42
|
19030
|
Chris@42
|
19031
|
Chris@42
|
19032
|
Chris@42
|
19033
|
Chris@42
|
19034
|
Chris@42
|
19035
|
Chris@42
|
19036
|
Chris@42
|
19037
|
Chris@42
|
19038
|
Chris@42
|
19039
|
Chris@42
|
19040
|
Chris@42
|
19041
|
Chris@42
|
19042
|
Chris@42
|
19043
|
Chris@42
|
19044
|
Chris@42
|
19045
|
Chris@42
|
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
|
Chris@42
|
19047 $as_echo_n "checking dynamic linker characteristics... " >&6; }
|
Chris@42
|
19048
|
Chris@42
|
19049 library_names_spec=
|
Chris@42
|
19050 libname_spec='lib$name'
|
Chris@42
|
19051 soname_spec=
|
Chris@42
|
19052 shrext_cmds=".so"
|
Chris@42
|
19053 postinstall_cmds=
|
Chris@42
|
19054 postuninstall_cmds=
|
Chris@42
|
19055 finish_cmds=
|
Chris@42
|
19056 finish_eval=
|
Chris@42
|
19057 shlibpath_var=
|
Chris@42
|
19058 shlibpath_overrides_runpath=unknown
|
Chris@42
|
19059 version_type=none
|
Chris@42
|
19060 dynamic_linker="$host_os ld.so"
|
Chris@42
|
19061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
Chris@42
|
19062 need_lib_prefix=unknown
|
Chris@42
|
19063 hardcode_into_libs=no
|
Chris@42
|
19064
|
Chris@42
|
19065 # when you set need_version to no, make sure it does not cause -set_version
|
Chris@42
|
19066 # flags to be left without arguments
|
Chris@42
|
19067 need_version=unknown
|
Chris@42
|
19068
|
Chris@42
|
19069 case $host_os in
|
Chris@42
|
19070 aix3*)
|
Chris@42
|
19071 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
Chris@42
|
19073 shlibpath_var=LIBPATH
|
Chris@42
|
19074
|
Chris@42
|
19075 # AIX 3 has no versioning support, so we append a major version to the name.
|
Chris@42
|
19076 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19077 ;;
|
Chris@42
|
19078
|
Chris@42
|
19079 aix[4-9]*)
|
Chris@42
|
19080 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19081 need_lib_prefix=no
|
Chris@42
|
19082 need_version=no
|
Chris@42
|
19083 hardcode_into_libs=yes
|
Chris@42
|
19084 if test "$host_cpu" = ia64; then
|
Chris@42
|
19085 # AIX 5 supports IA64
|
Chris@42
|
19086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
Chris@42
|
19087 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19088 else
|
Chris@42
|
19089 # With GCC up to 2.95.x, collect2 would create an import file
|
Chris@42
|
19090 # for dependence libraries. The import file would start with
|
Chris@42
|
19091 # the line `#! .'. This would cause the generated library to
|
Chris@42
|
19092 # depend on `.', always an invalid library. This was fixed in
|
Chris@42
|
19093 # development snapshots of GCC prior to 3.0.
|
Chris@42
|
19094 case $host_os in
|
Chris@42
|
19095 aix4 | aix4.[01] | aix4.[01].*)
|
Chris@42
|
19096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
Chris@42
|
19097 echo ' yes '
|
Chris@42
|
19098 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
Chris@42
|
19099 :
|
Chris@42
|
19100 else
|
Chris@42
|
19101 can_build_shared=no
|
Chris@42
|
19102 fi
|
Chris@42
|
19103 ;;
|
Chris@42
|
19104 esac
|
Chris@42
|
19105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
Chris@42
|
19106 # soname into executable. Probably we can add versioning support to
|
Chris@42
|
19107 # collect2, so additional links can be useful in future.
|
Chris@42
|
19108 if test "$aix_use_runtimelinking" = yes; then
|
Chris@42
|
19109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
Chris@42
|
19110 # instead of lib<name>.a to let people know that these are not
|
Chris@42
|
19111 # typical AIX shared libraries.
|
Chris@42
|
19112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19113 else
|
Chris@42
|
19114 # We preserve .a as extension for shared libraries through AIX4.2
|
Chris@42
|
19115 # and later when we are not doing run time linking.
|
Chris@42
|
19116 library_names_spec='${libname}${release}.a $libname.a'
|
Chris@42
|
19117 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19118 fi
|
Chris@42
|
19119 shlibpath_var=LIBPATH
|
Chris@42
|
19120 fi
|
Chris@42
|
19121 ;;
|
Chris@42
|
19122
|
Chris@42
|
19123 amigaos*)
|
Chris@42
|
19124 case $host_cpu in
|
Chris@42
|
19125 powerpc)
|
Chris@42
|
19126 # Since July 2007 AmigaOS4 officially supports .so libraries.
|
Chris@42
|
19127 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
Chris@42
|
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19129 ;;
|
Chris@42
|
19130 m68k)
|
Chris@42
|
19131 library_names_spec='$libname.ixlibrary $libname.a'
|
Chris@42
|
19132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
Chris@42
|
19133 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
|
Chris@42
|
19134 ;;
|
Chris@42
|
19135 esac
|
Chris@42
|
19136 ;;
|
Chris@42
|
19137
|
Chris@42
|
19138 beos*)
|
Chris@42
|
19139 library_names_spec='${libname}${shared_ext}'
|
Chris@42
|
19140 dynamic_linker="$host_os ld.so"
|
Chris@42
|
19141 shlibpath_var=LIBRARY_PATH
|
Chris@42
|
19142 ;;
|
Chris@42
|
19143
|
Chris@42
|
19144 bsdi[45]*)
|
Chris@42
|
19145 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19146 need_version=no
|
Chris@42
|
19147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19148 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
Chris@42
|
19150 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
Chris@42
|
19152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
Chris@42
|
19153 # the default ld.so.conf also contains /usr/contrib/lib and
|
Chris@42
|
19154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
Chris@42
|
19155 # libtool to hard-code these into programs
|
Chris@42
|
19156 ;;
|
Chris@42
|
19157
|
Chris@42
|
19158 cygwin* | mingw* | pw32* | cegcc*)
|
Chris@42
|
19159 version_type=windows
|
Chris@42
|
19160 shrext_cmds=".dll"
|
Chris@42
|
19161 need_version=no
|
Chris@42
|
19162 need_lib_prefix=no
|
Chris@42
|
19163
|
Chris@42
|
19164 case $GCC,$cc_basename in
|
Chris@42
|
19165 yes,*)
|
Chris@42
|
19166 # gcc
|
Chris@42
|
19167 library_names_spec='$libname.dll.a'
|
Chris@42
|
19168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
Chris@42
|
19169 postinstall_cmds='base_file=`basename \${file}`~
|
Chris@42
|
19170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
Chris@42
|
19171 dldir=$destdir/`dirname \$dlpath`~
|
Chris@42
|
19172 test -d \$dldir || mkdir -p \$dldir~
|
Chris@42
|
19173 $install_prog $dir/$dlname \$dldir/$dlname~
|
Chris@42
|
19174 chmod a+x \$dldir/$dlname~
|
Chris@42
|
19175 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
Chris@42
|
19176 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
Chris@42
|
19177 fi'
|
Chris@42
|
19178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
Chris@42
|
19179 dlpath=$dir/\$dldll~
|
Chris@42
|
19180 $RM \$dlpath'
|
Chris@42
|
19181 shlibpath_overrides_runpath=yes
|
Chris@42
|
19182
|
Chris@42
|
19183 case $host_os in
|
Chris@42
|
19184 cygwin*)
|
Chris@42
|
19185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
Chris@42
|
19186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
Chris@42
|
19187
|
Chris@42
|
19188 ;;
|
Chris@42
|
19189 mingw* | cegcc*)
|
Chris@42
|
19190 # MinGW DLLs use traditional 'lib' prefix
|
Chris@42
|
19191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
Chris@42
|
19192 ;;
|
Chris@42
|
19193 pw32*)
|
Chris@42
|
19194 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
Chris@42
|
19195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
Chris@42
|
19196 ;;
|
Chris@42
|
19197 esac
|
Chris@42
|
19198 dynamic_linker='Win32 ld.exe'
|
Chris@42
|
19199 ;;
|
Chris@42
|
19200
|
Chris@42
|
19201 *,cl*)
|
Chris@42
|
19202 # Native MSVC
|
Chris@42
|
19203 libname_spec='$name'
|
Chris@42
|
19204 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
Chris@42
|
19205 library_names_spec='${libname}.dll.lib'
|
Chris@42
|
19206
|
Chris@42
|
19207 case $build_os in
|
Chris@42
|
19208 mingw*)
|
Chris@42
|
19209 sys_lib_search_path_spec=
|
Chris@42
|
19210 lt_save_ifs=$IFS
|
Chris@42
|
19211 IFS=';'
|
Chris@42
|
19212 for lt_path in $LIB
|
Chris@42
|
19213 do
|
Chris@42
|
19214 IFS=$lt_save_ifs
|
Chris@42
|
19215 # Let DOS variable expansion print the short 8.3 style file name.
|
Chris@42
|
19216 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
Chris@42
|
19217 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
Chris@42
|
19218 done
|
Chris@42
|
19219 IFS=$lt_save_ifs
|
Chris@42
|
19220 # Convert to MSYS style.
|
Chris@42
|
19221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
Chris@42
|
19222 ;;
|
Chris@42
|
19223 cygwin*)
|
Chris@42
|
19224 # Convert to unix form, then to dos form, then back to unix form
|
Chris@42
|
19225 # but this time dos style (no spaces!) so that the unix form looks
|
Chris@42
|
19226 # like /cygdrive/c/PROGRA~1:/cygdr...
|
Chris@42
|
19227 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
Chris@42
|
19228 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
Chris@42
|
19229 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
Chris@42
|
19230 ;;
|
Chris@42
|
19231 *)
|
Chris@42
|
19232 sys_lib_search_path_spec="$LIB"
|
Chris@42
|
19233 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
Chris@42
|
19234 # It is most probably a Windows format PATH.
|
Chris@42
|
19235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
Chris@42
|
19236 else
|
Chris@42
|
19237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
Chris@42
|
19238 fi
|
Chris@42
|
19239 # FIXME: find the short name or the path components, as spaces are
|
Chris@42
|
19240 # common. (e.g. "Program Files" -> "PROGRA~1")
|
Chris@42
|
19241 ;;
|
Chris@42
|
19242 esac
|
Chris@42
|
19243
|
Chris@42
|
19244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
Chris@42
|
19245 postinstall_cmds='base_file=`basename \${file}`~
|
Chris@42
|
19246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
Chris@42
|
19247 dldir=$destdir/`dirname \$dlpath`~
|
Chris@42
|
19248 test -d \$dldir || mkdir -p \$dldir~
|
Chris@42
|
19249 $install_prog $dir/$dlname \$dldir/$dlname'
|
Chris@42
|
19250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
Chris@42
|
19251 dlpath=$dir/\$dldll~
|
Chris@42
|
19252 $RM \$dlpath'
|
Chris@42
|
19253 shlibpath_overrides_runpath=yes
|
Chris@42
|
19254 dynamic_linker='Win32 link.exe'
|
Chris@42
|
19255 ;;
|
Chris@42
|
19256
|
Chris@42
|
19257 *)
|
Chris@42
|
19258 # Assume MSVC wrapper
|
Chris@42
|
19259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
Chris@42
|
19260 dynamic_linker='Win32 ld.exe'
|
Chris@42
|
19261 ;;
|
Chris@42
|
19262 esac
|
Chris@42
|
19263 # FIXME: first we should search . and the directory the executable is in
|
Chris@42
|
19264 shlibpath_var=PATH
|
Chris@42
|
19265 ;;
|
Chris@42
|
19266
|
Chris@42
|
19267 darwin* | rhapsody*)
|
Chris@42
|
19268 dynamic_linker="$host_os dyld"
|
Chris@42
|
19269 version_type=darwin
|
Chris@42
|
19270 need_lib_prefix=no
|
Chris@42
|
19271 need_version=no
|
Chris@42
|
19272 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
Chris@42
|
19273 soname_spec='${libname}${release}${major}$shared_ext'
|
Chris@42
|
19274 shlibpath_overrides_runpath=yes
|
Chris@42
|
19275 shlibpath_var=DYLD_LIBRARY_PATH
|
Chris@42
|
19276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
Chris@42
|
19277
|
Chris@42
|
19278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
Chris@42
|
19279 ;;
|
Chris@42
|
19280
|
Chris@42
|
19281 dgux*)
|
Chris@42
|
19282 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19283 need_lib_prefix=no
|
Chris@42
|
19284 need_version=no
|
Chris@42
|
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
Chris@42
|
19286 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19287 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19288 ;;
|
Chris@42
|
19289
|
Chris@42
|
19290 freebsd* | dragonfly*)
|
Chris@42
|
19291 # DragonFly does not have aout. When/if they implement a new
|
Chris@42
|
19292 # versioning mechanism, adjust this.
|
Chris@42
|
19293 if test -x /usr/bin/objformat; then
|
Chris@42
|
19294 objformat=`/usr/bin/objformat`
|
Chris@42
|
19295 else
|
Chris@42
|
19296 case $host_os in
|
Chris@42
|
19297 freebsd[23].*) objformat=aout ;;
|
Chris@42
|
19298 *) objformat=elf ;;
|
Chris@42
|
19299 esac
|
Chris@42
|
19300 fi
|
Chris@42
|
19301 version_type=freebsd-$objformat
|
Chris@42
|
19302 case $version_type in
|
Chris@42
|
19303 freebsd-elf*)
|
Chris@42
|
19304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
Chris@42
|
19305 need_version=no
|
Chris@42
|
19306 need_lib_prefix=no
|
Chris@42
|
19307 ;;
|
Chris@42
|
19308 freebsd-*)
|
Chris@42
|
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
Chris@42
|
19310 need_version=yes
|
Chris@42
|
19311 ;;
|
Chris@42
|
19312 esac
|
Chris@42
|
19313 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19314 case $host_os in
|
Chris@42
|
19315 freebsd2.*)
|
Chris@42
|
19316 shlibpath_overrides_runpath=yes
|
Chris@42
|
19317 ;;
|
Chris@42
|
19318 freebsd3.[01]* | freebsdelf3.[01]*)
|
Chris@42
|
19319 shlibpath_overrides_runpath=yes
|
Chris@42
|
19320 hardcode_into_libs=yes
|
Chris@42
|
19321 ;;
|
Chris@42
|
19322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
Chris@42
|
19323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
Chris@42
|
19324 shlibpath_overrides_runpath=no
|
Chris@42
|
19325 hardcode_into_libs=yes
|
Chris@42
|
19326 ;;
|
Chris@42
|
19327 *) # from 4.6 on, and DragonFly
|
Chris@42
|
19328 shlibpath_overrides_runpath=yes
|
Chris@42
|
19329 hardcode_into_libs=yes
|
Chris@42
|
19330 ;;
|
Chris@42
|
19331 esac
|
Chris@42
|
19332 ;;
|
Chris@42
|
19333
|
Chris@42
|
19334 haiku*)
|
Chris@42
|
19335 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19336 need_lib_prefix=no
|
Chris@42
|
19337 need_version=no
|
Chris@42
|
19338 dynamic_linker="$host_os runtime_loader"
|
Chris@42
|
19339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
Chris@42
|
19340 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19341 shlibpath_var=LIBRARY_PATH
|
Chris@42
|
19342 shlibpath_overrides_runpath=yes
|
Chris@42
|
19343 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
Chris@42
|
19344 hardcode_into_libs=yes
|
Chris@42
|
19345 ;;
|
Chris@42
|
19346
|
Chris@42
|
19347 hpux9* | hpux10* | hpux11*)
|
Chris@42
|
19348 # Give a soname corresponding to the major version so that dld.sl refuses to
|
Chris@42
|
19349 # link against other versions.
|
Chris@42
|
19350 version_type=sunos
|
Chris@42
|
19351 need_lib_prefix=no
|
Chris@42
|
19352 need_version=no
|
Chris@42
|
19353 case $host_cpu in
|
Chris@42
|
19354 ia64*)
|
Chris@42
|
19355 shrext_cmds='.so'
|
Chris@42
|
19356 hardcode_into_libs=yes
|
Chris@42
|
19357 dynamic_linker="$host_os dld.so"
|
Chris@42
|
19358 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
Chris@42
|
19360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19361 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19362 if test "X$HPUX_IA64_MODE" = X32; then
|
Chris@42
|
19363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
Chris@42
|
19364 else
|
Chris@42
|
19365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
Chris@42
|
19366 fi
|
Chris@42
|
19367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
Chris@42
|
19368 ;;
|
Chris@42
|
19369 hppa*64*)
|
Chris@42
|
19370 shrext_cmds='.sl'
|
Chris@42
|
19371 hardcode_into_libs=yes
|
Chris@42
|
19372 dynamic_linker="$host_os dld.sl"
|
Chris@42
|
19373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
Chris@42
|
19374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
Chris@42
|
19375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19376 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
Chris@42
|
19378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
Chris@42
|
19379 ;;
|
Chris@42
|
19380 *)
|
Chris@42
|
19381 shrext_cmds='.sl'
|
Chris@42
|
19382 dynamic_linker="$host_os dld.sl"
|
Chris@42
|
19383 shlibpath_var=SHLIB_PATH
|
Chris@42
|
19384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
Chris@42
|
19385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19386 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19387 ;;
|
Chris@42
|
19388 esac
|
Chris@42
|
19389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
Chris@42
|
19390 postinstall_cmds='chmod 555 $lib'
|
Chris@42
|
19391 # or fails outright, so override atomically:
|
Chris@42
|
19392 install_override_mode=555
|
Chris@42
|
19393 ;;
|
Chris@42
|
19394
|
Chris@42
|
19395 interix[3-9]*)
|
Chris@42
|
19396 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19397 need_lib_prefix=no
|
Chris@42
|
19398 need_version=no
|
Chris@42
|
19399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
Chris@42
|
19400 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
Chris@42
|
19402 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19403 shlibpath_overrides_runpath=no
|
Chris@42
|
19404 hardcode_into_libs=yes
|
Chris@42
|
19405 ;;
|
Chris@42
|
19406
|
Chris@42
|
19407 irix5* | irix6* | nonstopux*)
|
Chris@42
|
19408 case $host_os in
|
Chris@42
|
19409 nonstopux*) version_type=nonstopux ;;
|
Chris@42
|
19410 *)
|
Chris@42
|
19411 if test "$lt_cv_prog_gnu_ld" = yes; then
|
Chris@42
|
19412 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19413 else
|
Chris@42
|
19414 version_type=irix
|
Chris@42
|
19415 fi ;;
|
Chris@42
|
19416 esac
|
Chris@42
|
19417 need_lib_prefix=no
|
Chris@42
|
19418 need_version=no
|
Chris@42
|
19419 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
Chris@42
|
19421 case $host_os in
|
Chris@42
|
19422 irix5* | nonstopux*)
|
Chris@42
|
19423 libsuff= shlibsuff=
|
Chris@42
|
19424 ;;
|
Chris@42
|
19425 *)
|
Chris@42
|
19426 case $LD in # libtool.m4 will add one of these switches to LD
|
Chris@42
|
19427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
Chris@42
|
19428 libsuff= shlibsuff= libmagic=32-bit;;
|
Chris@42
|
19429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
Chris@42
|
19430 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
Chris@42
|
19431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
Chris@42
|
19432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
Chris@42
|
19433 *) libsuff= shlibsuff= libmagic=never-match;;
|
Chris@42
|
19434 esac
|
Chris@42
|
19435 ;;
|
Chris@42
|
19436 esac
|
Chris@42
|
19437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
Chris@42
|
19438 shlibpath_overrides_runpath=no
|
Chris@42
|
19439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
Chris@42
|
19440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
Chris@42
|
19441 hardcode_into_libs=yes
|
Chris@42
|
19442 ;;
|
Chris@42
|
19443
|
Chris@42
|
19444 # No shared lib support for Linux oldld, aout, or coff.
|
Chris@42
|
19445 linux*oldld* | linux*aout* | linux*coff*)
|
Chris@42
|
19446 dynamic_linker=no
|
Chris@42
|
19447 ;;
|
Chris@42
|
19448
|
Chris@42
|
19449 # This must be glibc/ELF.
|
Chris@42
|
19450 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
Chris@42
|
19451 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19452 need_lib_prefix=no
|
Chris@42
|
19453 need_version=no
|
Chris@42
|
19454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19455 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
Chris@42
|
19457 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19458 shlibpath_overrides_runpath=no
|
Chris@42
|
19459
|
Chris@42
|
19460 # Some binutils ld are patched to set DT_RUNPATH
|
Chris@42
|
19461 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
|
Chris@42
|
19462 $as_echo_n "(cached) " >&6
|
Chris@42
|
19463 else
|
Chris@42
|
19464 lt_cv_shlibpath_overrides_runpath=no
|
Chris@42
|
19465 save_LDFLAGS=$LDFLAGS
|
Chris@42
|
19466 save_libdir=$libdir
|
Chris@42
|
19467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
|
Chris@42
|
19468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
|
Chris@42
|
19469 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
19470 program main
|
Chris@42
|
19471
|
Chris@42
|
19472 end
|
Chris@42
|
19473 _ACEOF
|
Chris@42
|
19474 if ac_fn_f77_try_link "$LINENO"; then :
|
Chris@42
|
19475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
|
Chris@42
|
19476 lt_cv_shlibpath_overrides_runpath=yes
|
Chris@42
|
19477 fi
|
Chris@42
|
19478 fi
|
Chris@42
|
19479 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
19480 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
19481 LDFLAGS=$save_LDFLAGS
|
Chris@42
|
19482 libdir=$save_libdir
|
Chris@42
|
19483
|
Chris@42
|
19484 fi
|
Chris@42
|
19485
|
Chris@42
|
19486 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
Chris@42
|
19487
|
Chris@42
|
19488 # This implies no fast_install, which is unacceptable.
|
Chris@42
|
19489 # Some rework will be needed to allow for fast_install
|
Chris@42
|
19490 # before this can be enabled.
|
Chris@42
|
19491 hardcode_into_libs=yes
|
Chris@42
|
19492
|
Chris@42
|
19493 # Append ld.so.conf contents to the search path
|
Chris@42
|
19494 if test -f /etc/ld.so.conf; then
|
Chris@42
|
19495 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' ' '`
|
Chris@42
|
19496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
Chris@42
|
19497 fi
|
Chris@42
|
19498
|
Chris@42
|
19499 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
Chris@42
|
19500 # powerpc, because MkLinux only supported shared libraries with the
|
Chris@42
|
19501 # GNU dynamic linker. Since this was broken with cross compilers,
|
Chris@42
|
19502 # most powerpc-linux boxes support dynamic linking these days and
|
Chris@42
|
19503 # people can always --disable-shared, the test was removed, and we
|
Chris@42
|
19504 # assume the GNU/Linux dynamic linker is in use.
|
Chris@42
|
19505 dynamic_linker='GNU/Linux ld.so'
|
Chris@42
|
19506 ;;
|
Chris@42
|
19507
|
Chris@42
|
19508 netbsdelf*-gnu)
|
Chris@42
|
19509 version_type=linux
|
Chris@42
|
19510 need_lib_prefix=no
|
Chris@42
|
19511 need_version=no
|
Chris@42
|
19512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
Chris@42
|
19513 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19514 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19515 shlibpath_overrides_runpath=no
|
Chris@42
|
19516 hardcode_into_libs=yes
|
Chris@42
|
19517 dynamic_linker='NetBSD ld.elf_so'
|
Chris@42
|
19518 ;;
|
Chris@42
|
19519
|
Chris@42
|
19520 netbsd*)
|
Chris@42
|
19521 version_type=sunos
|
Chris@42
|
19522 need_lib_prefix=no
|
Chris@42
|
19523 need_version=no
|
Chris@42
|
19524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
Chris@42
|
19525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
Chris@42
|
19526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
Chris@42
|
19527 dynamic_linker='NetBSD (a.out) ld.so'
|
Chris@42
|
19528 else
|
Chris@42
|
19529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
Chris@42
|
19530 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19531 dynamic_linker='NetBSD ld.elf_so'
|
Chris@42
|
19532 fi
|
Chris@42
|
19533 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19534 shlibpath_overrides_runpath=yes
|
Chris@42
|
19535 hardcode_into_libs=yes
|
Chris@42
|
19536 ;;
|
Chris@42
|
19537
|
Chris@42
|
19538 newsos6)
|
Chris@42
|
19539 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19541 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19542 shlibpath_overrides_runpath=yes
|
Chris@42
|
19543 ;;
|
Chris@42
|
19544
|
Chris@42
|
19545 *nto* | *qnx*)
|
Chris@42
|
19546 version_type=qnx
|
Chris@42
|
19547 need_lib_prefix=no
|
Chris@42
|
19548 need_version=no
|
Chris@42
|
19549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19550 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19551 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19552 shlibpath_overrides_runpath=no
|
Chris@42
|
19553 hardcode_into_libs=yes
|
Chris@42
|
19554 dynamic_linker='ldqnx.so'
|
Chris@42
|
19555 ;;
|
Chris@42
|
19556
|
Chris@42
|
19557 openbsd*)
|
Chris@42
|
19558 version_type=sunos
|
Chris@42
|
19559 sys_lib_dlsearch_path_spec="/usr/lib"
|
Chris@42
|
19560 need_lib_prefix=no
|
Chris@42
|
19561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
Chris@42
|
19562 case $host_os in
|
Chris@42
|
19563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
Chris@42
|
19564 *) need_version=no ;;
|
Chris@42
|
19565 esac
|
Chris@42
|
19566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
Chris@42
|
19567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
Chris@42
|
19568 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
Chris@42
|
19570 case $host_os in
|
Chris@42
|
19571 openbsd2.[89] | openbsd2.[89].*)
|
Chris@42
|
19572 shlibpath_overrides_runpath=no
|
Chris@42
|
19573 ;;
|
Chris@42
|
19574 *)
|
Chris@42
|
19575 shlibpath_overrides_runpath=yes
|
Chris@42
|
19576 ;;
|
Chris@42
|
19577 esac
|
Chris@42
|
19578 else
|
Chris@42
|
19579 shlibpath_overrides_runpath=yes
|
Chris@42
|
19580 fi
|
Chris@42
|
19581 ;;
|
Chris@42
|
19582
|
Chris@42
|
19583 os2*)
|
Chris@42
|
19584 libname_spec='$name'
|
Chris@42
|
19585 shrext_cmds=".dll"
|
Chris@42
|
19586 need_lib_prefix=no
|
Chris@42
|
19587 library_names_spec='$libname${shared_ext} $libname.a'
|
Chris@42
|
19588 dynamic_linker='OS/2 ld.exe'
|
Chris@42
|
19589 shlibpath_var=LIBPATH
|
Chris@42
|
19590 ;;
|
Chris@42
|
19591
|
Chris@42
|
19592 osf3* | osf4* | osf5*)
|
Chris@42
|
19593 version_type=osf
|
Chris@42
|
19594 need_lib_prefix=no
|
Chris@42
|
19595 need_version=no
|
Chris@42
|
19596 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19598 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
Chris@42
|
19600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
Chris@42
|
19601 ;;
|
Chris@42
|
19602
|
Chris@42
|
19603 rdos*)
|
Chris@42
|
19604 dynamic_linker=no
|
Chris@42
|
19605 ;;
|
Chris@42
|
19606
|
Chris@42
|
19607 solaris*)
|
Chris@42
|
19608 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19609 need_lib_prefix=no
|
Chris@42
|
19610 need_version=no
|
Chris@42
|
19611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19612 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19613 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19614 shlibpath_overrides_runpath=yes
|
Chris@42
|
19615 hardcode_into_libs=yes
|
Chris@42
|
19616 # ldd complains unless libraries are executable
|
Chris@42
|
19617 postinstall_cmds='chmod +x $lib'
|
Chris@42
|
19618 ;;
|
Chris@42
|
19619
|
Chris@42
|
19620 sunos4*)
|
Chris@42
|
19621 version_type=sunos
|
Chris@42
|
19622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
Chris@42
|
19623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
Chris@42
|
19624 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19625 shlibpath_overrides_runpath=yes
|
Chris@42
|
19626 if test "$with_gnu_ld" = yes; then
|
Chris@42
|
19627 need_lib_prefix=no
|
Chris@42
|
19628 fi
|
Chris@42
|
19629 need_version=yes
|
Chris@42
|
19630 ;;
|
Chris@42
|
19631
|
Chris@42
|
19632 sysv4 | sysv4.3*)
|
Chris@42
|
19633 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19635 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19636 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19637 case $host_vendor in
|
Chris@42
|
19638 sni)
|
Chris@42
|
19639 shlibpath_overrides_runpath=no
|
Chris@42
|
19640 need_lib_prefix=no
|
Chris@42
|
19641 runpath_var=LD_RUN_PATH
|
Chris@42
|
19642 ;;
|
Chris@42
|
19643 siemens)
|
Chris@42
|
19644 need_lib_prefix=no
|
Chris@42
|
19645 ;;
|
Chris@42
|
19646 motorola)
|
Chris@42
|
19647 need_lib_prefix=no
|
Chris@42
|
19648 need_version=no
|
Chris@42
|
19649 shlibpath_overrides_runpath=no
|
Chris@42
|
19650 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
Chris@42
|
19651 ;;
|
Chris@42
|
19652 esac
|
Chris@42
|
19653 ;;
|
Chris@42
|
19654
|
Chris@42
|
19655 sysv4*MP*)
|
Chris@42
|
19656 if test -d /usr/nec ;then
|
Chris@42
|
19657 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19658 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
Chris@42
|
19659 soname_spec='$libname${shared_ext}.$major'
|
Chris@42
|
19660 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19661 fi
|
Chris@42
|
19662 ;;
|
Chris@42
|
19663
|
Chris@42
|
19664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
Chris@42
|
19665 version_type=freebsd-elf
|
Chris@42
|
19666 need_lib_prefix=no
|
Chris@42
|
19667 need_version=no
|
Chris@42
|
19668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
Chris@42
|
19669 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19670 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19671 shlibpath_overrides_runpath=yes
|
Chris@42
|
19672 hardcode_into_libs=yes
|
Chris@42
|
19673 if test "$with_gnu_ld" = yes; then
|
Chris@42
|
19674 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
Chris@42
|
19675 else
|
Chris@42
|
19676 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
Chris@42
|
19677 case $host_os in
|
Chris@42
|
19678 sco3.2v5*)
|
Chris@42
|
19679 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
Chris@42
|
19680 ;;
|
Chris@42
|
19681 esac
|
Chris@42
|
19682 fi
|
Chris@42
|
19683 sys_lib_dlsearch_path_spec='/usr/lib'
|
Chris@42
|
19684 ;;
|
Chris@42
|
19685
|
Chris@42
|
19686 tpf*)
|
Chris@42
|
19687 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
Chris@42
|
19688 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19689 need_lib_prefix=no
|
Chris@42
|
19690 need_version=no
|
Chris@42
|
19691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19692 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19693 shlibpath_overrides_runpath=no
|
Chris@42
|
19694 hardcode_into_libs=yes
|
Chris@42
|
19695 ;;
|
Chris@42
|
19696
|
Chris@42
|
19697 uts4*)
|
Chris@42
|
19698 version_type=linux # correct to gnu/linux during the next big refactor
|
Chris@42
|
19699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
Chris@42
|
19700 soname_spec='${libname}${release}${shared_ext}$major'
|
Chris@42
|
19701 shlibpath_var=LD_LIBRARY_PATH
|
Chris@42
|
19702 ;;
|
Chris@42
|
19703
|
Chris@42
|
19704 *)
|
Chris@42
|
19705 dynamic_linker=no
|
Chris@42
|
19706 ;;
|
Chris@42
|
19707 esac
|
Chris@42
|
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
|
Chris@42
|
19709 $as_echo "$dynamic_linker" >&6; }
|
Chris@42
|
19710 test "$dynamic_linker" = no && can_build_shared=no
|
Chris@42
|
19711
|
Chris@42
|
19712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
Chris@42
|
19713 if test "$GCC" = yes; then
|
Chris@42
|
19714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
Chris@42
|
19715 fi
|
Chris@42
|
19716
|
Chris@42
|
19717 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
|
Chris@42
|
19718 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
|
Chris@42
|
19719 fi
|
Chris@42
|
19720 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
|
Chris@42
|
19721 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
|
Chris@42
|
19722 fi
|
Chris@42
|
19723
|
Chris@42
|
19724
|
Chris@42
|
19725
|
Chris@42
|
19726
|
Chris@42
|
19727
|
Chris@42
|
19728
|
Chris@42
|
19729
|
Chris@42
|
19730
|
Chris@42
|
19731
|
Chris@42
|
19732
|
Chris@42
|
19733
|
Chris@42
|
19734
|
Chris@42
|
19735
|
Chris@42
|
19736
|
Chris@42
|
19737
|
Chris@42
|
19738
|
Chris@42
|
19739
|
Chris@42
|
19740
|
Chris@42
|
19741
|
Chris@42
|
19742
|
Chris@42
|
19743
|
Chris@42
|
19744
|
Chris@42
|
19745
|
Chris@42
|
19746
|
Chris@42
|
19747
|
Chris@42
|
19748
|
Chris@42
|
19749
|
Chris@42
|
19750
|
Chris@42
|
19751
|
Chris@42
|
19752
|
Chris@42
|
19753
|
Chris@42
|
19754
|
Chris@42
|
19755
|
Chris@42
|
19756
|
Chris@42
|
19757
|
Chris@42
|
19758
|
Chris@42
|
19759
|
Chris@42
|
19760
|
Chris@42
|
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
|
Chris@42
|
19762 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
|
Chris@42
|
19763 hardcode_action_F77=
|
Chris@42
|
19764 if test -n "$hardcode_libdir_flag_spec_F77" ||
|
Chris@42
|
19765 test -n "$runpath_var_F77" ||
|
Chris@42
|
19766 test "X$hardcode_automatic_F77" = "Xyes" ; then
|
Chris@42
|
19767
|
Chris@42
|
19768 # We can hardcode non-existent directories.
|
Chris@42
|
19769 if test "$hardcode_direct_F77" != no &&
|
Chris@42
|
19770 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
Chris@42
|
19771 # have to relink, otherwise we might link with an installed library
|
Chris@42
|
19772 # when we should be linking with a yet-to-be-installed one
|
Chris@42
|
19773 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
|
Chris@42
|
19774 test "$hardcode_minus_L_F77" != no; then
|
Chris@42
|
19775 # Linking always hardcodes the temporary library directory.
|
Chris@42
|
19776 hardcode_action_F77=relink
|
Chris@42
|
19777 else
|
Chris@42
|
19778 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
Chris@42
|
19779 hardcode_action_F77=immediate
|
Chris@42
|
19780 fi
|
Chris@42
|
19781 else
|
Chris@42
|
19782 # We cannot hardcode anything, or else we can only hardcode existing
|
Chris@42
|
19783 # directories.
|
Chris@42
|
19784 hardcode_action_F77=unsupported
|
Chris@42
|
19785 fi
|
Chris@42
|
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
|
Chris@42
|
19787 $as_echo "$hardcode_action_F77" >&6; }
|
Chris@42
|
19788
|
Chris@42
|
19789 if test "$hardcode_action_F77" = relink ||
|
Chris@42
|
19790 test "$inherit_rpath_F77" = yes; then
|
Chris@42
|
19791 # Fast installation is not supported
|
Chris@42
|
19792 enable_fast_install=no
|
Chris@42
|
19793 elif test "$shlibpath_overrides_runpath" = yes ||
|
Chris@42
|
19794 test "$enable_shared" = no; then
|
Chris@42
|
19795 # Fast installation is not necessary
|
Chris@42
|
19796 enable_fast_install=needless
|
Chris@42
|
19797 fi
|
Chris@42
|
19798
|
Chris@42
|
19799
|
Chris@42
|
19800
|
Chris@42
|
19801
|
Chris@42
|
19802
|
Chris@42
|
19803
|
Chris@42
|
19804
|
Chris@42
|
19805 fi # test -n "$compiler"
|
Chris@42
|
19806
|
Chris@42
|
19807 GCC=$lt_save_GCC
|
Chris@42
|
19808 CC="$lt_save_CC"
|
Chris@42
|
19809 CFLAGS="$lt_save_CFLAGS"
|
Chris@42
|
19810 fi # test "$_lt_disable_F77" != yes
|
Chris@42
|
19811
|
Chris@42
|
19812 ac_ext=c
|
Chris@42
|
19813 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
19814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
19815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
19816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
19817
|
Chris@42
|
19818
|
Chris@42
|
19819 if test -z "$F77"; then
|
Chris@42
|
19820 enable_fortran=no
|
Chris@42
|
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5
|
Chris@42
|
19822 $as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;}
|
Chris@42
|
19823 else
|
Chris@42
|
19824 ac_ext=f
|
Chris@42
|
19825 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
19826 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
19827 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
|
Chris@42
|
19829 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
|
Chris@42
|
19830 if ${ac_cv_prog_f77_v+:} false; then :
|
Chris@42
|
19831 $as_echo_n "(cached) " >&6
|
Chris@42
|
19832 else
|
Chris@42
|
19833 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
19834 program main
|
Chris@42
|
19835
|
Chris@42
|
19836 end
|
Chris@42
|
19837 _ACEOF
|
Chris@42
|
19838 if ac_fn_f77_try_compile "$LINENO"; then :
|
Chris@42
|
19839 ac_cv_prog_f77_v=
|
Chris@42
|
19840 # Try some options frequently used verbose output
|
Chris@42
|
19841 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
|
Chris@42
|
19842 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
19843 program main
|
Chris@42
|
19844
|
Chris@42
|
19845 end
|
Chris@42
|
19846 _ACEOF
|
Chris@42
|
19847
|
Chris@42
|
19848 # Compile and link our simple test program by passing a flag (argument
|
Chris@42
|
19849 # 1 to this macro) to the Fortran compiler in order to get
|
Chris@42
|
19850 # "verbose" output that we can then parse for the Fortran linker
|
Chris@42
|
19851 # flags.
|
Chris@42
|
19852 ac_save_FFLAGS=$FFLAGS
|
Chris@42
|
19853 FFLAGS="$FFLAGS $ac_verb"
|
Chris@42
|
19854 eval "set x $ac_link"
|
Chris@42
|
19855 shift
|
Chris@42
|
19856 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
|
Chris@42
|
19857 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
|
Chris@42
|
19858 # LIBRARY_PATH; skip all such settings.
|
Chris@42
|
19859 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
|
Chris@42
|
19860 sed '/^Driving:/d; /^Configured with:/d;
|
Chris@42
|
19861 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
|
Chris@42
|
19862 $as_echo "$ac_f77_v_output" >&5
|
Chris@42
|
19863 FFLAGS=$ac_save_FFLAGS
|
Chris@42
|
19864
|
Chris@42
|
19865 rm -rf conftest*
|
Chris@42
|
19866
|
Chris@42
|
19867 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
|
Chris@42
|
19868 # /foo, /bar, and /baz are search directories for the Fortran linker.
|
Chris@42
|
19869 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
|
Chris@42
|
19870 ac_f77_v_output="`echo $ac_f77_v_output |
|
Chris@42
|
19871 grep 'LPATH is:' |
|
Chris@42
|
19872 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
|
Chris@42
|
19873
|
Chris@42
|
19874 # FIXME: we keep getting bitten by quoted arguments; a more general fix
|
Chris@42
|
19875 # that detects unbalanced quotes in FLIBS should be implemented
|
Chris@42
|
19876 # and (ugh) tested at some point.
|
Chris@42
|
19877 case $ac_f77_v_output in
|
Chris@42
|
19878 # With xlf replace commas with spaces,
|
Chris@42
|
19879 # and remove "-link" and closing parenthesis.
|
Chris@42
|
19880 *xlfentry*)
|
Chris@42
|
19881 ac_f77_v_output=`echo $ac_f77_v_output |
|
Chris@42
|
19882 sed '
|
Chris@42
|
19883 s/,/ /g
|
Chris@42
|
19884 s/ -link / /g
|
Chris@42
|
19885 s/) *$//
|
Chris@42
|
19886 '
|
Chris@42
|
19887 ` ;;
|
Chris@42
|
19888
|
Chris@42
|
19889 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
|
Chris@42
|
19890 # $LIBS confuse us, and the libraries appear later in the output anyway).
|
Chris@42
|
19891 *mGLOB_options_string*)
|
Chris@42
|
19892 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
|
Chris@42
|
19893
|
Chris@42
|
19894 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
|
Chris@42
|
19895 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
|
Chris@42
|
19896 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
|
Chris@42
|
19897 *-cmdline\ * | *-ignore\ * | *-def\ *)
|
Chris@42
|
19898 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
|
Chris@42
|
19899 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
|
Chris@42
|
19900 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
|
Chris@42
|
19901 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
|
Chris@42
|
19902
|
Chris@42
|
19903 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
|
Chris@42
|
19904 *fort77*f2c*gcc*)
|
Chris@42
|
19905 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
|
Chris@42
|
19906 /:[ ]\+Running[ ]\{1,\}"gcc"/{
|
Chris@42
|
19907 /"-c"/d
|
Chris@42
|
19908 /[.]c"*/d
|
Chris@42
|
19909 s/^.*"gcc"/"gcc"/
|
Chris@42
|
19910 s/"//gp
|
Chris@42
|
19911 }'` ;;
|
Chris@42
|
19912
|
Chris@42
|
19913 # If we are using Cray Fortran then delete quotes.
|
Chris@42
|
19914 *cft90*)
|
Chris@42
|
19915 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
|
Chris@42
|
19916 esac
|
Chris@42
|
19917
|
Chris@42
|
19918
|
Chris@42
|
19919 # look for -l* and *.a constructs in the output
|
Chris@42
|
19920 for ac_arg in $ac_f77_v_output; do
|
Chris@42
|
19921 case $ac_arg in
|
Chris@42
|
19922 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
|
Chris@42
|
19923 ac_cv_prog_f77_v=$ac_verb
|
Chris@42
|
19924 break 2 ;;
|
Chris@42
|
19925 esac
|
Chris@42
|
19926 done
|
Chris@42
|
19927 done
|
Chris@42
|
19928 if test -z "$ac_cv_prog_f77_v"; then
|
Chris@42
|
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
|
Chris@42
|
19930 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
|
Chris@42
|
19931 fi
|
Chris@42
|
19932 else
|
Chris@42
|
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
|
Chris@42
|
19934 $as_echo "$as_me: WARNING: compilation failed" >&2;}
|
Chris@42
|
19935 fi
|
Chris@42
|
19936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
19937
|
Chris@42
|
19938 fi
|
Chris@42
|
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
|
Chris@42
|
19940 $as_echo "$ac_cv_prog_f77_v" >&6; }
|
Chris@42
|
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
|
Chris@42
|
19942 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
|
Chris@42
|
19943 if ${ac_cv_f77_libs+:} false; then :
|
Chris@42
|
19944 $as_echo_n "(cached) " >&6
|
Chris@42
|
19945 else
|
Chris@42
|
19946 if test "x$FLIBS" != "x"; then
|
Chris@42
|
19947 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
|
Chris@42
|
19948 else
|
Chris@42
|
19949
|
Chris@42
|
19950 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
19951 program main
|
Chris@42
|
19952
|
Chris@42
|
19953 end
|
Chris@42
|
19954 _ACEOF
|
Chris@42
|
19955
|
Chris@42
|
19956 # Compile and link our simple test program by passing a flag (argument
|
Chris@42
|
19957 # 1 to this macro) to the Fortran compiler in order to get
|
Chris@42
|
19958 # "verbose" output that we can then parse for the Fortran linker
|
Chris@42
|
19959 # flags.
|
Chris@42
|
19960 ac_save_FFLAGS=$FFLAGS
|
Chris@42
|
19961 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
|
Chris@42
|
19962 eval "set x $ac_link"
|
Chris@42
|
19963 shift
|
Chris@42
|
19964 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
|
Chris@42
|
19965 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
|
Chris@42
|
19966 # LIBRARY_PATH; skip all such settings.
|
Chris@42
|
19967 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
|
Chris@42
|
19968 sed '/^Driving:/d; /^Configured with:/d;
|
Chris@42
|
19969 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
|
Chris@42
|
19970 $as_echo "$ac_f77_v_output" >&5
|
Chris@42
|
19971 FFLAGS=$ac_save_FFLAGS
|
Chris@42
|
19972
|
Chris@42
|
19973 rm -rf conftest*
|
Chris@42
|
19974
|
Chris@42
|
19975 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
|
Chris@42
|
19976 # /foo, /bar, and /baz are search directories for the Fortran linker.
|
Chris@42
|
19977 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
|
Chris@42
|
19978 ac_f77_v_output="`echo $ac_f77_v_output |
|
Chris@42
|
19979 grep 'LPATH is:' |
|
Chris@42
|
19980 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
|
Chris@42
|
19981
|
Chris@42
|
19982 # FIXME: we keep getting bitten by quoted arguments; a more general fix
|
Chris@42
|
19983 # that detects unbalanced quotes in FLIBS should be implemented
|
Chris@42
|
19984 # and (ugh) tested at some point.
|
Chris@42
|
19985 case $ac_f77_v_output in
|
Chris@42
|
19986 # With xlf replace commas with spaces,
|
Chris@42
|
19987 # and remove "-link" and closing parenthesis.
|
Chris@42
|
19988 *xlfentry*)
|
Chris@42
|
19989 ac_f77_v_output=`echo $ac_f77_v_output |
|
Chris@42
|
19990 sed '
|
Chris@42
|
19991 s/,/ /g
|
Chris@42
|
19992 s/ -link / /g
|
Chris@42
|
19993 s/) *$//
|
Chris@42
|
19994 '
|
Chris@42
|
19995 ` ;;
|
Chris@42
|
19996
|
Chris@42
|
19997 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
|
Chris@42
|
19998 # $LIBS confuse us, and the libraries appear later in the output anyway).
|
Chris@42
|
19999 *mGLOB_options_string*)
|
Chris@42
|
20000 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
|
Chris@42
|
20001
|
Chris@42
|
20002 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
|
Chris@42
|
20003 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
|
Chris@42
|
20004 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
|
Chris@42
|
20005 *-cmdline\ * | *-ignore\ * | *-def\ *)
|
Chris@42
|
20006 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
|
Chris@42
|
20007 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
|
Chris@42
|
20008 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
|
Chris@42
|
20009 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
|
Chris@42
|
20010
|
Chris@42
|
20011 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
|
Chris@42
|
20012 *fort77*f2c*gcc*)
|
Chris@42
|
20013 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
|
Chris@42
|
20014 /:[ ]\+Running[ ]\{1,\}"gcc"/{
|
Chris@42
|
20015 /"-c"/d
|
Chris@42
|
20016 /[.]c"*/d
|
Chris@42
|
20017 s/^.*"gcc"/"gcc"/
|
Chris@42
|
20018 s/"//gp
|
Chris@42
|
20019 }'` ;;
|
Chris@42
|
20020
|
Chris@42
|
20021 # If we are using Cray Fortran then delete quotes.
|
Chris@42
|
20022 *cft90*)
|
Chris@42
|
20023 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
|
Chris@42
|
20024 esac
|
Chris@42
|
20025
|
Chris@42
|
20026
|
Chris@42
|
20027
|
Chris@42
|
20028 ac_cv_f77_libs=
|
Chris@42
|
20029
|
Chris@42
|
20030 # Save positional arguments (if any)
|
Chris@42
|
20031 ac_save_positional="$@"
|
Chris@42
|
20032
|
Chris@42
|
20033 set X $ac_f77_v_output
|
Chris@42
|
20034 while test $# != 1; do
|
Chris@42
|
20035 shift
|
Chris@42
|
20036 ac_arg=$1
|
Chris@42
|
20037 case $ac_arg in
|
Chris@42
|
20038 [\\/]*.a | ?:[\\/]*.a)
|
Chris@42
|
20039 ac_exists=false
|
Chris@42
|
20040 for ac_i in $ac_cv_f77_libs; do
|
Chris@42
|
20041 if test x"$ac_arg" = x"$ac_i"; then
|
Chris@42
|
20042 ac_exists=true
|
Chris@42
|
20043 break
|
Chris@42
|
20044 fi
|
Chris@42
|
20045 done
|
Chris@42
|
20046
|
Chris@42
|
20047 if test x"$ac_exists" = xtrue; then :
|
Chris@42
|
20048
|
Chris@42
|
20049 else
|
Chris@42
|
20050 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
|
Chris@42
|
20051 fi
|
Chris@42
|
20052 ;;
|
Chris@42
|
20053 -bI:*)
|
Chris@42
|
20054 ac_exists=false
|
Chris@42
|
20055 for ac_i in $ac_cv_f77_libs; do
|
Chris@42
|
20056 if test x"$ac_arg" = x"$ac_i"; then
|
Chris@42
|
20057 ac_exists=true
|
Chris@42
|
20058 break
|
Chris@42
|
20059 fi
|
Chris@42
|
20060 done
|
Chris@42
|
20061
|
Chris@42
|
20062 if test x"$ac_exists" = xtrue; then :
|
Chris@42
|
20063
|
Chris@42
|
20064 else
|
Chris@42
|
20065 if test "$ac_compiler_gnu" = yes; then
|
Chris@42
|
20066 for ac_link_opt in $ac_arg; do
|
Chris@42
|
20067 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
|
Chris@42
|
20068 done
|
Chris@42
|
20069 else
|
Chris@42
|
20070 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
|
Chris@42
|
20071 fi
|
Chris@42
|
20072 fi
|
Chris@42
|
20073 ;;
|
Chris@42
|
20074 # Ignore these flags.
|
Chris@42
|
20075 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
|
Chris@42
|
20076 |-LANG:=* | -LIST:* | -LNO:* | -link)
|
Chris@42
|
20077 ;;
|
Chris@42
|
20078 -lkernel32)
|
Chris@42
|
20079 case $host_os in
|
Chris@42
|
20080 *cygwin*) ;;
|
Chris@42
|
20081 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
|
Chris@42
|
20082 ;;
|
Chris@42
|
20083 esac
|
Chris@42
|
20084 ;;
|
Chris@42
|
20085 -[LRuYz])
|
Chris@42
|
20086 # These flags, when seen by themselves, take an argument.
|
Chris@42
|
20087 # We remove the space between option and argument and re-iterate
|
Chris@42
|
20088 # unless we find an empty arg or a new option (starting with -)
|
Chris@42
|
20089 case $2 in
|
Chris@42
|
20090 "" | -*);;
|
Chris@42
|
20091 *)
|
Chris@42
|
20092 ac_arg="$ac_arg$2"
|
Chris@42
|
20093 shift; shift
|
Chris@42
|
20094 set X $ac_arg "$@"
|
Chris@42
|
20095 ;;
|
Chris@42
|
20096 esac
|
Chris@42
|
20097 ;;
|
Chris@42
|
20098 -YP,*)
|
Chris@42
|
20099 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
|
Chris@42
|
20100 ac_exists=false
|
Chris@42
|
20101 for ac_i in $ac_cv_f77_libs; do
|
Chris@42
|
20102 if test x"$ac_j" = x"$ac_i"; then
|
Chris@42
|
20103 ac_exists=true
|
Chris@42
|
20104 break
|
Chris@42
|
20105 fi
|
Chris@42
|
20106 done
|
Chris@42
|
20107
|
Chris@42
|
20108 if test x"$ac_exists" = xtrue; then :
|
Chris@42
|
20109
|
Chris@42
|
20110 else
|
Chris@42
|
20111 ac_arg="$ac_arg $ac_j"
|
Chris@42
|
20112 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
|
Chris@42
|
20113 fi
|
Chris@42
|
20114 done
|
Chris@42
|
20115 ;;
|
Chris@42
|
20116 -[lLR]*)
|
Chris@42
|
20117 ac_exists=false
|
Chris@42
|
20118 for ac_i in $ac_cv_f77_libs; do
|
Chris@42
|
20119 if test x"$ac_arg" = x"$ac_i"; then
|
Chris@42
|
20120 ac_exists=true
|
Chris@42
|
20121 break
|
Chris@42
|
20122 fi
|
Chris@42
|
20123 done
|
Chris@42
|
20124
|
Chris@42
|
20125 if test x"$ac_exists" = xtrue; then :
|
Chris@42
|
20126
|
Chris@42
|
20127 else
|
Chris@42
|
20128 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
|
Chris@42
|
20129 fi
|
Chris@42
|
20130 ;;
|
Chris@42
|
20131 -zallextract*| -zdefaultextract)
|
Chris@42
|
20132 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
|
Chris@42
|
20133 ;;
|
Chris@42
|
20134 # Ignore everything else.
|
Chris@42
|
20135 esac
|
Chris@42
|
20136 done
|
Chris@42
|
20137 # restore positional arguments
|
Chris@42
|
20138 set X $ac_save_positional; shift
|
Chris@42
|
20139
|
Chris@42
|
20140 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
|
Chris@42
|
20141 # then we insist that the "run path" must be an absolute path (i.e. it
|
Chris@42
|
20142 # must begin with a "/").
|
Chris@42
|
20143 case `(uname -sr) 2>/dev/null` in
|
Chris@42
|
20144 "SunOS 5"*)
|
Chris@42
|
20145 ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
|
Chris@42
|
20146 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
|
Chris@42
|
20147 test "x$ac_ld_run_path" != x &&
|
Chris@42
|
20148 if test "$ac_compiler_gnu" = yes; then
|
Chris@42
|
20149 for ac_link_opt in $ac_ld_run_path; do
|
Chris@42
|
20150 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
|
Chris@42
|
20151 done
|
Chris@42
|
20152 else
|
Chris@42
|
20153 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
|
Chris@42
|
20154 fi
|
Chris@42
|
20155 ;;
|
Chris@42
|
20156 esac
|
Chris@42
|
20157 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
|
Chris@42
|
20158
|
Chris@42
|
20159 fi
|
Chris@42
|
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
|
Chris@42
|
20161 $as_echo "$ac_cv_f77_libs" >&6; }
|
Chris@42
|
20162 FLIBS="$ac_cv_f77_libs"
|
Chris@42
|
20163
|
Chris@42
|
20164
|
Chris@42
|
20165 ac_ext=c
|
Chris@42
|
20166 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20170
|
Chris@42
|
20171 ac_ext=f
|
Chris@42
|
20172 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20173 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20174 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
20175
|
Chris@42
|
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
|
Chris@42
|
20177 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
|
Chris@42
|
20178 if ${ac_cv_f77_dummy_main+:} false; then :
|
Chris@42
|
20179 $as_echo_n "(cached) " >&6
|
Chris@42
|
20180 else
|
Chris@42
|
20181 ac_f77_dm_save_LIBS=$LIBS
|
Chris@42
|
20182 LIBS="$LIBS $FLIBS"
|
Chris@42
|
20183 ac_fortran_dm_var=F77_DUMMY_MAIN
|
Chris@42
|
20184 ac_ext=c
|
Chris@42
|
20185 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20189
|
Chris@42
|
20190 # First, try linking without a dummy main:
|
Chris@42
|
20191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
20192 /* end confdefs.h. */
|
Chris@42
|
20193
|
Chris@42
|
20194 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
20195
|
Chris@42
|
20196 # ifdef __cplusplus
|
Chris@42
|
20197 extern "C"
|
Chris@42
|
20198 # endif
|
Chris@42
|
20199 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
20200
|
Chris@42
|
20201 #endif
|
Chris@42
|
20202 int
|
Chris@42
|
20203 main ()
|
Chris@42
|
20204 {
|
Chris@42
|
20205
|
Chris@42
|
20206 ;
|
Chris@42
|
20207 return 0;
|
Chris@42
|
20208 }
|
Chris@42
|
20209 _ACEOF
|
Chris@42
|
20210 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
20211 ac_cv_fortran_dummy_main=none
|
Chris@42
|
20212 else
|
Chris@42
|
20213 ac_cv_fortran_dummy_main=unknown
|
Chris@42
|
20214 fi
|
Chris@42
|
20215 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
20216 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
20217
|
Chris@42
|
20218 if test $ac_cv_fortran_dummy_main = unknown; then
|
Chris@42
|
20219 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
|
Chris@42
|
20220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
20221 /* end confdefs.h. */
|
Chris@42
|
20222 #define $ac_fortran_dm_var $ac_func
|
Chris@42
|
20223 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
20224
|
Chris@42
|
20225 # ifdef __cplusplus
|
Chris@42
|
20226 extern "C"
|
Chris@42
|
20227 # endif
|
Chris@42
|
20228 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
20229
|
Chris@42
|
20230 #endif
|
Chris@42
|
20231 int
|
Chris@42
|
20232 main ()
|
Chris@42
|
20233 {
|
Chris@42
|
20234
|
Chris@42
|
20235 ;
|
Chris@42
|
20236 return 0;
|
Chris@42
|
20237 }
|
Chris@42
|
20238 _ACEOF
|
Chris@42
|
20239 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
20240 ac_cv_fortran_dummy_main=$ac_func; break
|
Chris@42
|
20241 fi
|
Chris@42
|
20242 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
20243 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
20244 done
|
Chris@42
|
20245 fi
|
Chris@42
|
20246 ac_ext=f
|
Chris@42
|
20247 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20248 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20249 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
20250 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
|
Chris@42
|
20251 rm -rf conftest*
|
Chris@42
|
20252 LIBS=$ac_f77_dm_save_LIBS
|
Chris@42
|
20253
|
Chris@42
|
20254 fi
|
Chris@42
|
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
|
Chris@42
|
20256 $as_echo "$ac_cv_f77_dummy_main" >&6; }
|
Chris@42
|
20257 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
|
Chris@42
|
20258 if test "$F77_DUMMY_MAIN" != unknown; then :
|
Chris@42
|
20259 if test $F77_DUMMY_MAIN != none; then
|
Chris@42
|
20260
|
Chris@42
|
20261 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
20262 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
|
Chris@42
|
20263 _ACEOF
|
Chris@42
|
20264
|
Chris@42
|
20265 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
|
Chris@42
|
20266
|
Chris@42
|
20267 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
|
Chris@42
|
20268
|
Chris@42
|
20269 fi
|
Chris@42
|
20270 fi
|
Chris@42
|
20271 else
|
Chris@42
|
20272 enable_fortran=no
|
Chris@42
|
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5
|
Chris@42
|
20274 $as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;}
|
Chris@42
|
20275 fi
|
Chris@42
|
20276
|
Chris@42
|
20277 ac_ext=c
|
Chris@42
|
20278 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20282
|
Chris@42
|
20283 fi
|
Chris@42
|
20284 else
|
Chris@42
|
20285
|
Chris@42
|
20286 $as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h
|
Chris@42
|
20287
|
Chris@42
|
20288 fi
|
Chris@42
|
20289
|
Chris@42
|
20290 if test "x$enable_fortran" = xyes; then
|
Chris@42
|
20291 ac_ext=f
|
Chris@42
|
20292 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20293 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20294 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
|
Chris@42
|
20296 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
|
Chris@42
|
20297 if ${ac_cv_f77_mangling+:} false; then :
|
Chris@42
|
20298 $as_echo_n "(cached) " >&6
|
Chris@42
|
20299 else
|
Chris@42
|
20300 cat > conftest.$ac_ext <<_ACEOF
|
Chris@42
|
20301 subroutine foobar()
|
Chris@42
|
20302 return
|
Chris@42
|
20303 end
|
Chris@42
|
20304 subroutine foo_bar()
|
Chris@42
|
20305 return
|
Chris@42
|
20306 end
|
Chris@42
|
20307 _ACEOF
|
Chris@42
|
20308 if ac_fn_f77_try_compile "$LINENO"; then :
|
Chris@42
|
20309 mv conftest.$ac_objext cfortran_test.$ac_objext
|
Chris@42
|
20310
|
Chris@42
|
20311 ac_save_LIBS=$LIBS
|
Chris@42
|
20312 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
|
Chris@42
|
20313
|
Chris@42
|
20314 ac_ext=c
|
Chris@42
|
20315 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20319 ac_success=no
|
Chris@42
|
20320 for ac_foobar in foobar FOOBAR; do
|
Chris@42
|
20321 for ac_underscore in "" "_"; do
|
Chris@42
|
20322 ac_func="$ac_foobar$ac_underscore"
|
Chris@42
|
20323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
20324 /* end confdefs.h. */
|
Chris@42
|
20325
|
Chris@42
|
20326 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
20327 Use char because int might match the return type of a GCC
|
Chris@42
|
20328 builtin and then its argument prototype would still apply. */
|
Chris@42
|
20329 #ifdef __cplusplus
|
Chris@42
|
20330 extern "C"
|
Chris@42
|
20331 #endif
|
Chris@42
|
20332 char $ac_func ();
|
Chris@42
|
20333 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
20334
|
Chris@42
|
20335 # ifdef __cplusplus
|
Chris@42
|
20336 extern "C"
|
Chris@42
|
20337 # endif
|
Chris@42
|
20338 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
20339
|
Chris@42
|
20340 #endif
|
Chris@42
|
20341 int
|
Chris@42
|
20342 main ()
|
Chris@42
|
20343 {
|
Chris@42
|
20344 return $ac_func ();
|
Chris@42
|
20345 ;
|
Chris@42
|
20346 return 0;
|
Chris@42
|
20347 }
|
Chris@42
|
20348 _ACEOF
|
Chris@42
|
20349 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
20350 ac_success=yes; break 2
|
Chris@42
|
20351 fi
|
Chris@42
|
20352 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
20353 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
20354 done
|
Chris@42
|
20355 done
|
Chris@42
|
20356 ac_ext=f
|
Chris@42
|
20357 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20358 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20359 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
20360
|
Chris@42
|
20361 if test "$ac_success" = "yes"; then
|
Chris@42
|
20362 case $ac_foobar in
|
Chris@42
|
20363 foobar)
|
Chris@42
|
20364 ac_case=lower
|
Chris@42
|
20365 ac_foo_bar=foo_bar
|
Chris@42
|
20366 ;;
|
Chris@42
|
20367 FOOBAR)
|
Chris@42
|
20368 ac_case=upper
|
Chris@42
|
20369 ac_foo_bar=FOO_BAR
|
Chris@42
|
20370 ;;
|
Chris@42
|
20371 esac
|
Chris@42
|
20372
|
Chris@42
|
20373 ac_ext=c
|
Chris@42
|
20374 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20378 ac_success_extra=no
|
Chris@42
|
20379 for ac_extra in "" "_"; do
|
Chris@42
|
20380 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
|
Chris@42
|
20381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
20382 /* end confdefs.h. */
|
Chris@42
|
20383
|
Chris@42
|
20384 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
20385 Use char because int might match the return type of a GCC
|
Chris@42
|
20386 builtin and then its argument prototype would still apply. */
|
Chris@42
|
20387 #ifdef __cplusplus
|
Chris@42
|
20388 extern "C"
|
Chris@42
|
20389 #endif
|
Chris@42
|
20390 char $ac_func ();
|
Chris@42
|
20391 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
20392
|
Chris@42
|
20393 # ifdef __cplusplus
|
Chris@42
|
20394 extern "C"
|
Chris@42
|
20395 # endif
|
Chris@42
|
20396 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
20397
|
Chris@42
|
20398 #endif
|
Chris@42
|
20399 int
|
Chris@42
|
20400 main ()
|
Chris@42
|
20401 {
|
Chris@42
|
20402 return $ac_func ();
|
Chris@42
|
20403 ;
|
Chris@42
|
20404 return 0;
|
Chris@42
|
20405 }
|
Chris@42
|
20406 _ACEOF
|
Chris@42
|
20407 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
20408 ac_success_extra=yes; break
|
Chris@42
|
20409 fi
|
Chris@42
|
20410 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
20411 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
20412 done
|
Chris@42
|
20413 ac_ext=f
|
Chris@42
|
20414 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20415 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20416 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
20417
|
Chris@42
|
20418 if test "$ac_success_extra" = "yes"; then
|
Chris@42
|
20419 ac_cv_f77_mangling="$ac_case case"
|
Chris@42
|
20420 if test -z "$ac_underscore"; then
|
Chris@42
|
20421 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
|
Chris@42
|
20422 else
|
Chris@42
|
20423 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
|
Chris@42
|
20424 fi
|
Chris@42
|
20425 if test -z "$ac_extra"; then
|
Chris@42
|
20426 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
|
Chris@42
|
20427 else
|
Chris@42
|
20428 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
|
Chris@42
|
20429 fi
|
Chris@42
|
20430 else
|
Chris@42
|
20431 ac_cv_f77_mangling="unknown"
|
Chris@42
|
20432 fi
|
Chris@42
|
20433 else
|
Chris@42
|
20434 ac_cv_f77_mangling="unknown"
|
Chris@42
|
20435 fi
|
Chris@42
|
20436
|
Chris@42
|
20437 LIBS=$ac_save_LIBS
|
Chris@42
|
20438 rm -rf conftest*
|
Chris@42
|
20439 rm -f cfortran_test*
|
Chris@42
|
20440 else
|
Chris@42
|
20441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
20442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
20443 as_fn_error $? "cannot compile a simple Fortran program
|
Chris@42
|
20444 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
20445 fi
|
Chris@42
|
20446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
Chris@42
|
20447
|
Chris@42
|
20448 fi
|
Chris@42
|
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
|
Chris@42
|
20450 $as_echo "$ac_cv_f77_mangling" >&6; }
|
Chris@42
|
20451
|
Chris@42
|
20452 ac_ext=c
|
Chris@42
|
20453 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20457
|
Chris@42
|
20458 ac_ext=f
|
Chris@42
|
20459 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20460 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20461 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
20462 case $ac_cv_f77_mangling in
|
Chris@42
|
20463 "lower case, no underscore, no extra underscore")
|
Chris@42
|
20464 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
|
Chris@42
|
20465
|
Chris@42
|
20466 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
|
Chris@42
|
20467 ;;
|
Chris@42
|
20468 "lower case, no underscore, extra underscore")
|
Chris@42
|
20469 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
|
Chris@42
|
20470
|
Chris@42
|
20471 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
|
Chris@42
|
20472 ;;
|
Chris@42
|
20473 "lower case, underscore, no extra underscore")
|
Chris@42
|
20474 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
|
Chris@42
|
20475
|
Chris@42
|
20476 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
|
Chris@42
|
20477 ;;
|
Chris@42
|
20478 "lower case, underscore, extra underscore")
|
Chris@42
|
20479 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
|
Chris@42
|
20480
|
Chris@42
|
20481 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
|
Chris@42
|
20482 ;;
|
Chris@42
|
20483 "upper case, no underscore, no extra underscore")
|
Chris@42
|
20484 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
|
Chris@42
|
20485
|
Chris@42
|
20486 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
|
Chris@42
|
20487 ;;
|
Chris@42
|
20488 "upper case, no underscore, extra underscore")
|
Chris@42
|
20489 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
|
Chris@42
|
20490
|
Chris@42
|
20491 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
|
Chris@42
|
20492 ;;
|
Chris@42
|
20493 "upper case, underscore, no extra underscore")
|
Chris@42
|
20494 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
|
Chris@42
|
20495
|
Chris@42
|
20496 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
|
Chris@42
|
20497 ;;
|
Chris@42
|
20498 "upper case, underscore, extra underscore")
|
Chris@42
|
20499 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
|
Chris@42
|
20500
|
Chris@42
|
20501 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
|
Chris@42
|
20502 ;;
|
Chris@42
|
20503 *)
|
Chris@42
|
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
|
Chris@42
|
20505 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
|
Chris@42
|
20506 ;;
|
Chris@42
|
20507 esac
|
Chris@42
|
20508
|
Chris@42
|
20509 ac_ext=c
|
Chris@42
|
20510 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20514
|
Chris@42
|
20515 ac_ext=f
|
Chris@42
|
20516 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20517 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20518 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
20519 case $ac_cv_f77_mangling in
|
Chris@42
|
20520 upper*) ac_val="F77FOO" ;;
|
Chris@42
|
20521 lower*) ac_val="f77foo" ;;
|
Chris@42
|
20522 *) ac_val="unknown" ;;
|
Chris@42
|
20523 esac
|
Chris@42
|
20524 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
|
Chris@42
|
20525
|
Chris@42
|
20526 f77foo="$ac_val"
|
Chris@42
|
20527
|
Chris@42
|
20528 ac_ext=c
|
Chris@42
|
20529 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20533
|
Chris@42
|
20534 ac_ext=f
|
Chris@42
|
20535 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20536 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20537 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
Chris@42
|
20538 case $ac_cv_f77_mangling in
|
Chris@42
|
20539 upper*) ac_val="F77_FOO" ;;
|
Chris@42
|
20540 lower*) ac_val="f77_foo" ;;
|
Chris@42
|
20541 *) ac_val="unknown" ;;
|
Chris@42
|
20542 esac
|
Chris@42
|
20543 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
|
Chris@42
|
20544 case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
|
Chris@42
|
20545
|
Chris@42
|
20546 f77_foo="$ac_val"
|
Chris@42
|
20547
|
Chris@42
|
20548 ac_ext=c
|
Chris@42
|
20549 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20553
|
Chris@42
|
20554 f77_foo2=`echo $f77foo | sed 's/77/77_/'`
|
Chris@42
|
20555 if test "$f77_foo" = "$f77_foo2"; then
|
Chris@42
|
20556
|
Chris@42
|
20557 $as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h
|
Chris@42
|
20558
|
Chris@42
|
20559
|
Chris@42
|
20560 # Include g77 wrappers by default for GNU systems or gfortran
|
Chris@42
|
20561 with_g77_wrappers=$ac_cv_f77_compiler_gnu
|
Chris@42
|
20562 case $host_os in *gnu*) with_g77_wrappers=yes ;; esac
|
Chris@42
|
20563 fi
|
Chris@42
|
20564 else
|
Chris@42
|
20565 with_g77_wrappers=no
|
Chris@42
|
20566 fi
|
Chris@42
|
20567
|
Chris@42
|
20568
|
Chris@42
|
20569 # Check whether --with-g77-wrappers was given.
|
Chris@42
|
20570 if test "${with_g77_wrappers+set}" = set; then :
|
Chris@42
|
20571 withval=$with_g77_wrappers; with_g77_wrappers=$withval
|
Chris@42
|
20572 fi
|
Chris@42
|
20573
|
Chris@42
|
20574 if test "x$with_g77_wrappers" = "xyes"; then
|
Chris@42
|
20575
|
Chris@42
|
20576 $as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h
|
Chris@42
|
20577
|
Chris@42
|
20578 fi
|
Chris@42
|
20579
|
Chris@42
|
20580 have_smp="no"
|
Chris@42
|
20581 # Check whether --enable-openmp was given.
|
Chris@42
|
20582 if test "${enable_openmp+set}" = set; then :
|
Chris@42
|
20583 enableval=$enable_openmp; enable_openmp=$enableval
|
Chris@42
|
20584 else
|
Chris@42
|
20585 enable_openmp=no
|
Chris@42
|
20586 fi
|
Chris@42
|
20587
|
Chris@42
|
20588
|
Chris@42
|
20589 if test "$enable_openmp" = "yes"; then
|
Chris@42
|
20590
|
Chris@42
|
20591 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
|
Chris@42
|
20592
|
Chris@42
|
20593
|
Chris@42
|
20594
|
Chris@42
|
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
|
Chris@42
|
20596 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
|
Chris@42
|
20597 if ${ax_cv_c_openmp+:} false; then :
|
Chris@42
|
20598 $as_echo_n "(cached) " >&6
|
Chris@42
|
20599 else
|
Chris@42
|
20600 saveCFLAGS=$CFLAGS
|
Chris@42
|
20601 ax_cv_c_openmp=unknown
|
Chris@42
|
20602 # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
|
Chris@42
|
20603 # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
|
Chris@42
|
20604 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
|
Chris@42
|
20605 if test "x$OPENMP_CFLAGS" != x; then
|
Chris@42
|
20606 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
|
Chris@42
|
20607 fi
|
Chris@42
|
20608 for ax_openmp_flag in $ax_openmp_flags; do
|
Chris@42
|
20609 case $ax_openmp_flag in
|
Chris@42
|
20610 none) CFLAGS=$saveC ;;
|
Chris@42
|
20611 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
|
Chris@42
|
20612 esac
|
Chris@42
|
20613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
20614 /* end confdefs.h. */
|
Chris@42
|
20615
|
Chris@42
|
20616 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
20617 Use char because int might match the return type of a GCC
|
Chris@42
|
20618 builtin and then its argument prototype would still apply. */
|
Chris@42
|
20619 #ifdef __cplusplus
|
Chris@42
|
20620 extern "C"
|
Chris@42
|
20621 #endif
|
Chris@42
|
20622 char omp_set_num_threads ();
|
Chris@42
|
20623 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
20624
|
Chris@42
|
20625 # ifdef __cplusplus
|
Chris@42
|
20626 extern "C"
|
Chris@42
|
20627 # endif
|
Chris@42
|
20628 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
20629
|
Chris@42
|
20630 #endif
|
Chris@42
|
20631 int
|
Chris@42
|
20632 main ()
|
Chris@42
|
20633 {
|
Chris@42
|
20634 return omp_set_num_threads ();
|
Chris@42
|
20635 ;
|
Chris@42
|
20636 return 0;
|
Chris@42
|
20637 }
|
Chris@42
|
20638 _ACEOF
|
Chris@42
|
20639 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
20640 ax_cv_c_openmp=$ax_openmp_flag; break
|
Chris@42
|
20641 fi
|
Chris@42
|
20642 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
20643 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
20644 done
|
Chris@42
|
20645 CFLAGS=$saveCFLAGS
|
Chris@42
|
20646
|
Chris@42
|
20647 fi
|
Chris@42
|
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
|
Chris@42
|
20649 $as_echo "$ax_cv_c_openmp" >&6; }
|
Chris@42
|
20650 if test "x$ax_cv_c_openmp" = "xunknown"; then
|
Chris@42
|
20651 as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5
|
Chris@42
|
20652 else
|
Chris@42
|
20653 if test "x$ax_cv_c_openmp" != "xnone"; then
|
Chris@42
|
20654 OPENMP_CFLAGS=$ax_cv_c_openmp
|
Chris@42
|
20655 fi
|
Chris@42
|
20656
|
Chris@42
|
20657 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
|
Chris@42
|
20658
|
Chris@42
|
20659 fi
|
Chris@42
|
20660
|
Chris@42
|
20661
|
Chris@42
|
20662 fi
|
Chris@42
|
20663
|
Chris@42
|
20664 # Check whether --enable-threads was given.
|
Chris@42
|
20665 if test "${enable_threads+set}" = set; then :
|
Chris@42
|
20666 enableval=$enable_threads; enable_threads=$enableval
|
Chris@42
|
20667 else
|
Chris@42
|
20668 enable_threads=no
|
Chris@42
|
20669 fi
|
Chris@42
|
20670
|
Chris@42
|
20671
|
Chris@42
|
20672 if test "$enable_threads" = "yes"; then
|
Chris@42
|
20673
|
Chris@42
|
20674 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
|
Chris@42
|
20675
|
Chris@42
|
20676 fi
|
Chris@42
|
20677
|
Chris@42
|
20678
|
Chris@42
|
20679 # Check whether --with-combined-threads was given.
|
Chris@42
|
20680 if test "${with_combined_threads+set}" = set; then :
|
Chris@42
|
20681 withval=$with_combined_threads; with_combined_threads=$withval
|
Chris@42
|
20682 else
|
Chris@42
|
20683 with_combined_threads=no
|
Chris@42
|
20684 fi
|
Chris@42
|
20685
|
Chris@42
|
20686
|
Chris@42
|
20687 if test "$with_combined_threads" = yes; then
|
Chris@42
|
20688 if test "$enable_openmp" = "yes"; then
|
Chris@42
|
20689 as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5
|
Chris@42
|
20690 fi
|
Chris@42
|
20691 if test "$enable_threads" != "yes"; then
|
Chris@42
|
20692 as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5
|
Chris@42
|
20693 fi
|
Chris@42
|
20694 fi
|
Chris@42
|
20695
|
Chris@42
|
20696 THREADLIBS=""
|
Chris@42
|
20697 if test "$enable_threads" = "yes"; then
|
Chris@42
|
20698 # Win32 threads are the default on Windows:
|
Chris@42
|
20699 if test -z "$THREADLIBS"; then
|
Chris@42
|
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5
|
Chris@42
|
20701 $as_echo_n "checking for Win32 threads... " >&6; }
|
Chris@42
|
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
20703 /* end confdefs.h. */
|
Chris@42
|
20704 #include <windows.h>
|
Chris@42
|
20705 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
20706
|
Chris@42
|
20707 # ifdef __cplusplus
|
Chris@42
|
20708 extern "C"
|
Chris@42
|
20709 # endif
|
Chris@42
|
20710 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
20711
|
Chris@42
|
20712 #endif
|
Chris@42
|
20713 int
|
Chris@42
|
20714 main ()
|
Chris@42
|
20715 {
|
Chris@42
|
20716 _beginthreadex(0,0,0,0,0,0);
|
Chris@42
|
20717 ;
|
Chris@42
|
20718 return 0;
|
Chris@42
|
20719 }
|
Chris@42
|
20720 _ACEOF
|
Chris@42
|
20721 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
20722 THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
20723 $as_echo "yes" >&6; }
|
Chris@42
|
20724 else
|
Chris@42
|
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
20726 $as_echo "no" >&6; }
|
Chris@42
|
20727 fi
|
Chris@42
|
20728 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
20729 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
20730 fi
|
Chris@42
|
20731
|
Chris@42
|
20732 # POSIX threads, the default choice everywhere else:
|
Chris@42
|
20733 if test -z "$THREADLIBS"; then
|
Chris@42
|
20734
|
Chris@42
|
20735
|
Chris@42
|
20736
|
Chris@42
|
20737 ac_ext=c
|
Chris@42
|
20738 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
20739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
20740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
20741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
20742
|
Chris@42
|
20743 acx_pthread_ok=no
|
Chris@42
|
20744
|
Chris@42
|
20745 # We used to check for pthread.h first, but this fails if pthread.h
|
Chris@42
|
20746 # requires special compiler flags (e.g. on True64 or Sequent).
|
Chris@42
|
20747 # It gets checked for in the link test anyway.
|
Chris@42
|
20748
|
Chris@42
|
20749 # First of all, check if the user has set any of the PTHREAD_LIBS,
|
Chris@42
|
20750 # etcetera environment variables, and if threads linking works using
|
Chris@42
|
20751 # them:
|
Chris@42
|
20752 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
|
Chris@42
|
20753 save_CFLAGS="$CFLAGS"
|
Chris@42
|
20754 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
Chris@42
|
20755 save_LIBS="$LIBS"
|
Chris@42
|
20756 LIBS="$PTHREAD_LIBS $LIBS"
|
Chris@42
|
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
|
Chris@42
|
20758 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
|
Chris@42
|
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
20760 /* end confdefs.h. */
|
Chris@42
|
20761
|
Chris@42
|
20762 /* Override any GCC internal prototype to avoid an error.
|
Chris@42
|
20763 Use char because int might match the return type of a GCC
|
Chris@42
|
20764 builtin and then its argument prototype would still apply. */
|
Chris@42
|
20765 #ifdef __cplusplus
|
Chris@42
|
20766 extern "C"
|
Chris@42
|
20767 #endif
|
Chris@42
|
20768 char pthread_join ();
|
Chris@42
|
20769 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
20770
|
Chris@42
|
20771 # ifdef __cplusplus
|
Chris@42
|
20772 extern "C"
|
Chris@42
|
20773 # endif
|
Chris@42
|
20774 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
20775
|
Chris@42
|
20776 #endif
|
Chris@42
|
20777 int
|
Chris@42
|
20778 main ()
|
Chris@42
|
20779 {
|
Chris@42
|
20780 return pthread_join ();
|
Chris@42
|
20781 ;
|
Chris@42
|
20782 return 0;
|
Chris@42
|
20783 }
|
Chris@42
|
20784 _ACEOF
|
Chris@42
|
20785 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
20786 acx_pthread_ok=yes
|
Chris@42
|
20787 fi
|
Chris@42
|
20788 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
20789 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
|
Chris@42
|
20791 $as_echo "$acx_pthread_ok" >&6; }
|
Chris@42
|
20792 if test x"$acx_pthread_ok" = xno; then
|
Chris@42
|
20793 PTHREAD_LIBS=""
|
Chris@42
|
20794 PTHREAD_CFLAGS=""
|
Chris@42
|
20795 fi
|
Chris@42
|
20796 LIBS="$save_LIBS"
|
Chris@42
|
20797 CFLAGS="$save_CFLAGS"
|
Chris@42
|
20798 fi
|
Chris@42
|
20799
|
Chris@42
|
20800 # We must check for the threads library under a number of different
|
Chris@42
|
20801 # names; the ordering is very important because some systems
|
Chris@42
|
20802 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
|
Chris@42
|
20803 # libraries is broken (non-POSIX).
|
Chris@42
|
20804
|
Chris@42
|
20805 # Create a list of thread flags to try. Items starting with a "-" are
|
Chris@42
|
20806 # C compiler flags, and other items are library names, except for "none"
|
Chris@42
|
20807 # which indicates that we try without any flags at all, and "pthread-config"
|
Chris@42
|
20808 # which is a program returning the flags for the Pth emulation library.
|
Chris@42
|
20809
|
Chris@42
|
20810 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
|
Chris@42
|
20811
|
Chris@42
|
20812 # The ordering *is* (sometimes) important. Some notes on the
|
Chris@42
|
20813 # individual items follow:
|
Chris@42
|
20814
|
Chris@42
|
20815 # pthreads: AIX (must check this before -lpthread)
|
Chris@42
|
20816 # none: in case threads are in libc; should be tried before -Kthread and
|
Chris@42
|
20817 # other compiler flags to prevent continual compiler warnings
|
Chris@42
|
20818 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
|
Chris@42
|
20819 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
|
Chris@42
|
20820 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
|
Chris@42
|
20821 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
|
Chris@42
|
20822 # -pthreads: Solaris/gcc
|
Chris@42
|
20823 # -mthreads: Mingw32/gcc, Lynx/gcc
|
Chris@42
|
20824 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
|
Chris@42
|
20825 # doesn't hurt to check since this sometimes defines pthreads too;
|
Chris@42
|
20826 # also defines -D_REENTRANT)
|
Chris@42
|
20827 # ... -mt is also the pthreads flag for HP/aCC
|
Chris@42
|
20828 # (where it should come before -mthreads to avoid spurious warnings)
|
Chris@42
|
20829 # pthread: Linux, etcetera
|
Chris@42
|
20830 # --thread-safe: KAI C++
|
Chris@42
|
20831 # pthread-config: use pthread-config program (for GNU Pth library)
|
Chris@42
|
20832
|
Chris@42
|
20833 case "${host_cpu}-${host_os}" in
|
Chris@42
|
20834 *solaris*)
|
Chris@42
|
20835
|
Chris@42
|
20836 # On Solaris (at least, for some versions), libc contains stubbed
|
Chris@42
|
20837 # (non-functional) versions of the pthreads routines, so link-based
|
Chris@42
|
20838 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
|
Chris@42
|
20839 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
|
Chris@42
|
20840 # a function called by this macro, so we could check for that, but
|
Chris@42
|
20841 # who knows whether they'll stub that too in a future libc.) So,
|
Chris@42
|
20842 # we'll just look for -pthreads and -lpthread first:
|
Chris@42
|
20843
|
Chris@42
|
20844 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
|
Chris@42
|
20845 ;;
|
Chris@42
|
20846 esac
|
Chris@42
|
20847
|
Chris@42
|
20848 if test x"$acx_pthread_ok" = xno; then
|
Chris@42
|
20849 for flag in $acx_pthread_flags; do
|
Chris@42
|
20850
|
Chris@42
|
20851 case $flag in
|
Chris@42
|
20852 none)
|
Chris@42
|
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
|
Chris@42
|
20854 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
|
Chris@42
|
20855 ;;
|
Chris@42
|
20856
|
Chris@42
|
20857 -*)
|
Chris@42
|
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
|
Chris@42
|
20859 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
|
Chris@42
|
20860 PTHREAD_CFLAGS="$flag"
|
Chris@42
|
20861 ;;
|
Chris@42
|
20862
|
Chris@42
|
20863 pthread-config)
|
Chris@42
|
20864 # Extract the first word of "pthread-config", so it can be a program name with args.
|
Chris@42
|
20865 set dummy pthread-config; ac_word=$2
|
Chris@42
|
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
20867 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
20868 if ${ac_cv_prog_acx_pthread_config+:} false; then :
|
Chris@42
|
20869 $as_echo_n "(cached) " >&6
|
Chris@42
|
20870 else
|
Chris@42
|
20871 if test -n "$acx_pthread_config"; then
|
Chris@42
|
20872 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
|
Chris@42
|
20873 else
|
Chris@42
|
20874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
20875 for as_dir in $PATH
|
Chris@42
|
20876 do
|
Chris@42
|
20877 IFS=$as_save_IFS
|
Chris@42
|
20878 test -z "$as_dir" && as_dir=.
|
Chris@42
|
20879 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
20880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
20881 ac_cv_prog_acx_pthread_config="yes"
|
Chris@42
|
20882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
20883 break 2
|
Chris@42
|
20884 fi
|
Chris@42
|
20885 done
|
Chris@42
|
20886 done
|
Chris@42
|
20887 IFS=$as_save_IFS
|
Chris@42
|
20888
|
Chris@42
|
20889 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
|
Chris@42
|
20890 fi
|
Chris@42
|
20891 fi
|
Chris@42
|
20892 acx_pthread_config=$ac_cv_prog_acx_pthread_config
|
Chris@42
|
20893 if test -n "$acx_pthread_config"; then
|
Chris@42
|
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
|
Chris@42
|
20895 $as_echo "$acx_pthread_config" >&6; }
|
Chris@42
|
20896 else
|
Chris@42
|
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
20898 $as_echo "no" >&6; }
|
Chris@42
|
20899 fi
|
Chris@42
|
20900
|
Chris@42
|
20901
|
Chris@42
|
20902 if test x"$acx_pthread_config" = xno; then continue; fi
|
Chris@42
|
20903 PTHREAD_CFLAGS="`pthread-config --cflags`"
|
Chris@42
|
20904 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
|
Chris@42
|
20905 ;;
|
Chris@42
|
20906
|
Chris@42
|
20907 *)
|
Chris@42
|
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
|
Chris@42
|
20909 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
|
Chris@42
|
20910 PTHREAD_LIBS="-l$flag"
|
Chris@42
|
20911 ;;
|
Chris@42
|
20912 esac
|
Chris@42
|
20913
|
Chris@42
|
20914 save_LIBS="$LIBS"
|
Chris@42
|
20915 save_CFLAGS="$CFLAGS"
|
Chris@42
|
20916 LIBS="$PTHREAD_LIBS $LIBS"
|
Chris@42
|
20917 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
Chris@42
|
20918
|
Chris@42
|
20919 # Check for various functions. We must include pthread.h,
|
Chris@42
|
20920 # since some functions may be macros. (On the Sequent, we
|
Chris@42
|
20921 # need a special flag -Kthread to make this header compile.)
|
Chris@42
|
20922 # We check for pthread_join because it is in -lpthread on IRIX
|
Chris@42
|
20923 # while pthread_create is in libc. We check for pthread_attr_init
|
Chris@42
|
20924 # due to DEC craziness with -lpthreads. We check for
|
Chris@42
|
20925 # pthread_cleanup_push because it is one of the few pthread
|
Chris@42
|
20926 # functions on Solaris that doesn't have a non-functional libc stub.
|
Chris@42
|
20927 # We try pthread_create on general principles.
|
Chris@42
|
20928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
20929 /* end confdefs.h. */
|
Chris@42
|
20930 #include <pthread.h>
|
Chris@42
|
20931 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
20932
|
Chris@42
|
20933 # ifdef __cplusplus
|
Chris@42
|
20934 extern "C"
|
Chris@42
|
20935 # endif
|
Chris@42
|
20936 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
20937
|
Chris@42
|
20938 #endif
|
Chris@42
|
20939 int
|
Chris@42
|
20940 main ()
|
Chris@42
|
20941 {
|
Chris@42
|
20942 pthread_t th; pthread_join(th, (void**) 0);
|
Chris@42
|
20943 pthread_attr_init((pthread_attr_t*) 0);
|
Chris@42
|
20944 pthread_cleanup_push((void(*)(void *)) 0, (void*) 0);
|
Chris@42
|
20945 pthread_create((pthread_t*) 0, (pthread_attr_t*) 0,
|
Chris@42
|
20946 (void*(*)(void *)) 0, (void*) 0);
|
Chris@42
|
20947 pthread_cleanup_pop(0);
|
Chris@42
|
20948 ;
|
Chris@42
|
20949 return 0;
|
Chris@42
|
20950 }
|
Chris@42
|
20951 _ACEOF
|
Chris@42
|
20952 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
20953 acx_pthread_ok=yes
|
Chris@42
|
20954 fi
|
Chris@42
|
20955 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
20956 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
20957
|
Chris@42
|
20958 LIBS="$save_LIBS"
|
Chris@42
|
20959 CFLAGS="$save_CFLAGS"
|
Chris@42
|
20960
|
Chris@42
|
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
|
Chris@42
|
20962 $as_echo "$acx_pthread_ok" >&6; }
|
Chris@42
|
20963 if test "x$acx_pthread_ok" = xyes; then
|
Chris@42
|
20964 break;
|
Chris@42
|
20965 fi
|
Chris@42
|
20966
|
Chris@42
|
20967 PTHREAD_LIBS=""
|
Chris@42
|
20968 PTHREAD_CFLAGS=""
|
Chris@42
|
20969 done
|
Chris@42
|
20970 fi
|
Chris@42
|
20971
|
Chris@42
|
20972 # Various other checks:
|
Chris@42
|
20973 if test "x$acx_pthread_ok" = xyes; then
|
Chris@42
|
20974 save_LIBS="$LIBS"
|
Chris@42
|
20975 LIBS="$PTHREAD_LIBS $LIBS"
|
Chris@42
|
20976 save_CFLAGS="$CFLAGS"
|
Chris@42
|
20977 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
Chris@42
|
20978
|
Chris@42
|
20979 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
|
Chris@42
|
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
|
Chris@42
|
20981 $as_echo_n "checking for joinable pthread attribute... " >&6; }
|
Chris@42
|
20982 attr_name=unknown
|
Chris@42
|
20983 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
|
Chris@42
|
20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
20985 /* end confdefs.h. */
|
Chris@42
|
20986 #include <pthread.h>
|
Chris@42
|
20987 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
20988
|
Chris@42
|
20989 # ifdef __cplusplus
|
Chris@42
|
20990 extern "C"
|
Chris@42
|
20991 # endif
|
Chris@42
|
20992 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
20993
|
Chris@42
|
20994 #endif
|
Chris@42
|
20995 int
|
Chris@42
|
20996 main ()
|
Chris@42
|
20997 {
|
Chris@42
|
20998 int attr=$attr; return attr;
|
Chris@42
|
20999 ;
|
Chris@42
|
21000 return 0;
|
Chris@42
|
21001 }
|
Chris@42
|
21002 _ACEOF
|
Chris@42
|
21003 if ac_fn_c_try_link "$LINENO"; then :
|
Chris@42
|
21004 attr_name=$attr; break
|
Chris@42
|
21005 fi
|
Chris@42
|
21006 rm -f core conftest.err conftest.$ac_objext \
|
Chris@42
|
21007 conftest$ac_exeext conftest.$ac_ext
|
Chris@42
|
21008 done
|
Chris@42
|
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
|
Chris@42
|
21010 $as_echo "$attr_name" >&6; }
|
Chris@42
|
21011 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
|
Chris@42
|
21012
|
Chris@42
|
21013 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
21014 #define PTHREAD_CREATE_JOINABLE $attr_name
|
Chris@42
|
21015 _ACEOF
|
Chris@42
|
21016
|
Chris@42
|
21017 fi
|
Chris@42
|
21018
|
Chris@42
|
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
|
Chris@42
|
21020 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
|
Chris@42
|
21021 flag=no
|
Chris@42
|
21022 case "${host_cpu}-${host_os}" in
|
Chris@42
|
21023 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
|
Chris@42
|
21024 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
|
Chris@42
|
21025 esac
|
Chris@42
|
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
|
Chris@42
|
21027 $as_echo "${flag}" >&6; }
|
Chris@42
|
21028 if test "x$flag" != xno; then
|
Chris@42
|
21029 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
|
Chris@42
|
21030 fi
|
Chris@42
|
21031
|
Chris@42
|
21032 LIBS="$save_LIBS"
|
Chris@42
|
21033 CFLAGS="$save_CFLAGS"
|
Chris@42
|
21034
|
Chris@42
|
21035 # More AIX lossage: must compile with xlc_r or cc_r
|
Chris@42
|
21036 if test x"$GCC" != xyes; then
|
Chris@42
|
21037 for ac_prog in xlc_r cc_r
|
Chris@42
|
21038 do
|
Chris@42
|
21039 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
Chris@42
|
21040 set dummy $ac_prog; ac_word=$2
|
Chris@42
|
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
Chris@42
|
21042 $as_echo_n "checking for $ac_word... " >&6; }
|
Chris@42
|
21043 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
|
Chris@42
|
21044 $as_echo_n "(cached) " >&6
|
Chris@42
|
21045 else
|
Chris@42
|
21046 if test -n "$PTHREAD_CC"; then
|
Chris@42
|
21047 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
|
Chris@42
|
21048 else
|
Chris@42
|
21049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
21050 for as_dir in $PATH
|
Chris@42
|
21051 do
|
Chris@42
|
21052 IFS=$as_save_IFS
|
Chris@42
|
21053 test -z "$as_dir" && as_dir=.
|
Chris@42
|
21054 for ac_exec_ext in '' $ac_executable_extensions; do
|
Chris@42
|
21055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
Chris@42
|
21056 ac_cv_prog_PTHREAD_CC="$ac_prog"
|
Chris@42
|
21057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
Chris@42
|
21058 break 2
|
Chris@42
|
21059 fi
|
Chris@42
|
21060 done
|
Chris@42
|
21061 done
|
Chris@42
|
21062 IFS=$as_save_IFS
|
Chris@42
|
21063
|
Chris@42
|
21064 fi
|
Chris@42
|
21065 fi
|
Chris@42
|
21066 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
|
Chris@42
|
21067 if test -n "$PTHREAD_CC"; then
|
Chris@42
|
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
|
Chris@42
|
21069 $as_echo "$PTHREAD_CC" >&6; }
|
Chris@42
|
21070 else
|
Chris@42
|
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
21072 $as_echo "no" >&6; }
|
Chris@42
|
21073 fi
|
Chris@42
|
21074
|
Chris@42
|
21075
|
Chris@42
|
21076 test -n "$PTHREAD_CC" && break
|
Chris@42
|
21077 done
|
Chris@42
|
21078 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
|
Chris@42
|
21079
|
Chris@42
|
21080 else
|
Chris@42
|
21081 PTHREAD_CC=$CC
|
Chris@42
|
21082 fi
|
Chris@42
|
21083 else
|
Chris@42
|
21084 PTHREAD_CC="$CC"
|
Chris@42
|
21085 fi
|
Chris@42
|
21086
|
Chris@42
|
21087
|
Chris@42
|
21088
|
Chris@42
|
21089
|
Chris@42
|
21090
|
Chris@42
|
21091 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
Chris@42
|
21092 if test x"$acx_pthread_ok" = xyes; then
|
Chris@42
|
21093 THREADLIBS="$PTHREAD_LIBS "
|
Chris@42
|
21094 CC="$PTHREAD_CC"
|
Chris@42
|
21095
|
Chris@42
|
21096 $as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h
|
Chris@42
|
21097
|
Chris@42
|
21098 :
|
Chris@42
|
21099 else
|
Chris@42
|
21100 acx_pthread_ok=no
|
Chris@42
|
21101
|
Chris@42
|
21102 fi
|
Chris@42
|
21103 ac_ext=c
|
Chris@42
|
21104 ac_cpp='$CPP $CPPFLAGS'
|
Chris@42
|
21105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
Chris@42
|
21106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
Chris@42
|
21107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
Chris@42
|
21108
|
Chris@42
|
21109
|
Chris@42
|
21110 fi
|
Chris@42
|
21111
|
Chris@42
|
21112 if test -z "$THREADLIBS"; then
|
Chris@42
|
21113 as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5
|
Chris@42
|
21114 fi
|
Chris@42
|
21115
|
Chris@42
|
21116 $as_echo "#define HAVE_THREADS 1" >>confdefs.h
|
Chris@42
|
21117
|
Chris@42
|
21118 fi
|
Chris@42
|
21119
|
Chris@42
|
21120 if test "$enable_threads" = "yes"; then
|
Chris@42
|
21121 THREADS_TRUE=
|
Chris@42
|
21122 THREADS_FALSE='#'
|
Chris@42
|
21123 else
|
Chris@42
|
21124 THREADS_TRUE='#'
|
Chris@42
|
21125 THREADS_FALSE=
|
Chris@42
|
21126 fi
|
Chris@42
|
21127
|
Chris@42
|
21128 if test "$enable_openmp" = "yes"; then
|
Chris@42
|
21129 OPENMP_TRUE=
|
Chris@42
|
21130 OPENMP_FALSE='#'
|
Chris@42
|
21131 else
|
Chris@42
|
21132 OPENMP_TRUE='#'
|
Chris@42
|
21133 OPENMP_FALSE=
|
Chris@42
|
21134 fi
|
Chris@42
|
21135
|
Chris@42
|
21136 if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then
|
Chris@42
|
21137 SMP_TRUE=
|
Chris@42
|
21138 SMP_FALSE='#'
|
Chris@42
|
21139 else
|
Chris@42
|
21140 SMP_TRUE='#'
|
Chris@42
|
21141 SMP_FALSE=
|
Chris@42
|
21142 fi
|
Chris@42
|
21143
|
Chris@42
|
21144 if test x"$with_combined_threads" = xyes; then
|
Chris@42
|
21145 COMBINED_THREADS_TRUE=
|
Chris@42
|
21146 COMBINED_THREADS_FALSE='#'
|
Chris@42
|
21147 else
|
Chris@42
|
21148 COMBINED_THREADS_TRUE='#'
|
Chris@42
|
21149 COMBINED_THREADS_FALSE=
|
Chris@42
|
21150 fi
|
Chris@42
|
21151
|
Chris@42
|
21152
|
Chris@42
|
21153
|
Chris@42
|
21154 case "${host_cpu}" in
|
Chris@42
|
21155 armv7*)
|
Chris@42
|
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking armv7a has 64 bits readable CNTVCT" >&5
|
Chris@42
|
21157 $as_echo_n "checking armv7a has 64 bits readable CNTVCT... " >&6; }
|
Chris@42
|
21158 if test "$cross_compiling" = yes; then :
|
Chris@42
|
21159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
21160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
21161 as_fn_error $? "cannot run test program while cross compiling
|
Chris@42
|
21162 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
21163 else
|
Chris@42
|
21164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
21165 /* end confdefs.h. */
|
Chris@42
|
21166 #include <stdint.h>
|
Chris@42
|
21167 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
21168
|
Chris@42
|
21169 # ifdef __cplusplus
|
Chris@42
|
21170 extern "C"
|
Chris@42
|
21171 # endif
|
Chris@42
|
21172 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
21173
|
Chris@42
|
21174 #endif
|
Chris@42
|
21175 int
|
Chris@42
|
21176 main ()
|
Chris@42
|
21177 {
|
Chris@42
|
21178 uint32_t Rt, Rt2 = 0;asm volatile("mrrc p15, 1, %0, %1, c14" : "=r"(Rt), "=r"(Rt2));
|
Chris@42
|
21179
|
Chris@42
|
21180 ;
|
Chris@42
|
21181 return 0;
|
Chris@42
|
21182 }
|
Chris@42
|
21183 _ACEOF
|
Chris@42
|
21184 if ac_fn_c_try_run "$LINENO"; then :
|
Chris@42
|
21185
|
Chris@42
|
21186 $as_echo "#define ARMV7A_HAS_CNTCVT 1" >>confdefs.h
|
Chris@42
|
21187
|
Chris@42
|
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
21189 $as_echo "yes" >&6; }
|
Chris@42
|
21190 else
|
Chris@42
|
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
21192 $as_echo "no" >&6; }
|
Chris@42
|
21193
|
Chris@42
|
21194 fi
|
Chris@42
|
21195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
Chris@42
|
21196 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
Chris@42
|
21197 fi
|
Chris@42
|
21198
|
Chris@42
|
21199 ;;
|
Chris@42
|
21200 aarch64)
|
Chris@42
|
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking armv8 has 64 bits readable CNTVCT_EL0" >&5
|
Chris@42
|
21202 $as_echo_n "checking armv8 has 64 bits readable CNTVCT_EL0... " >&6; }
|
Chris@42
|
21203 if test "$cross_compiling" = yes; then :
|
Chris@42
|
21204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
Chris@42
|
21205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
Chris@42
|
21206 as_fn_error $? "cannot run test program while cross compiling
|
Chris@42
|
21207 See \`config.log' for more details" "$LINENO" 5; }
|
Chris@42
|
21208 else
|
Chris@42
|
21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
21210 /* end confdefs.h. */
|
Chris@42
|
21211 #include <stdint.h>
|
Chris@42
|
21212 #ifdef F77_DUMMY_MAIN
|
Chris@42
|
21213
|
Chris@42
|
21214 # ifdef __cplusplus
|
Chris@42
|
21215 extern "C"
|
Chris@42
|
21216 # endif
|
Chris@42
|
21217 int F77_DUMMY_MAIN() { return 1; }
|
Chris@42
|
21218
|
Chris@42
|
21219 #endif
|
Chris@42
|
21220 int
|
Chris@42
|
21221 main ()
|
Chris@42
|
21222 {
|
Chris@42
|
21223 uint64_t Rt;asm volatile("mrs %0, CNTVCT_EL0" : "=r" (Rt));
|
Chris@42
|
21224
|
Chris@42
|
21225 ;
|
Chris@42
|
21226 return 0;
|
Chris@42
|
21227 }
|
Chris@42
|
21228 _ACEOF
|
Chris@42
|
21229 if ac_fn_c_try_run "$LINENO"; then :
|
Chris@42
|
21230
|
Chris@42
|
21231 $as_echo "#define ARMV8_HAS_CNTCVT_EL0 1" >>confdefs.h
|
Chris@42
|
21232
|
Chris@42
|
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
Chris@42
|
21234 $as_echo "yes" >&6; }
|
Chris@42
|
21235 else
|
Chris@42
|
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
Chris@42
|
21237 $as_echo "no" >&6; }
|
Chris@42
|
21238
|
Chris@42
|
21239 fi
|
Chris@42
|
21240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
Chris@42
|
21241 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
Chris@42
|
21242 fi
|
Chris@42
|
21243
|
Chris@42
|
21244 ;;
|
Chris@42
|
21245 *)
|
Chris@42
|
21246 ;;
|
Chris@42
|
21247 esac
|
Chris@42
|
21248
|
Chris@42
|
21249
|
Chris@42
|
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5
|
Chris@42
|
21251 $as_echo_n "checking whether a cycle counter is available... " >&6; }
|
Chris@42
|
21252 save_CPPFLAGS=$CPPFLAGS
|
Chris@42
|
21253 CPPFLAGS="$CPPFLAGS -I$srcdir/kernel"
|
Chris@42
|
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
Chris@42
|
21255 /* end confdefs.h. */
|
Chris@42
|
21256 #include "cycle.h"
|
Chris@42
|
21257 #ifndef HAVE_TICK_COUNTER
|
Chris@42
|
21258 # error No cycle counter
|
Chris@42
|
21259 #endif
|
Chris@42
|
21260 _ACEOF
|
Chris@42
|
21261 if ac_fn_c_try_cpp "$LINENO"; then :
|
Chris@42
|
21262 ok=yes
|
Chris@42
|
21263 else
|
Chris@42
|
21264 ok=no
|
Chris@42
|
21265 fi
|
Chris@42
|
21266 rm -f conftest.err conftest.i conftest.$ac_ext
|
Chris@42
|
21267 CPPFLAGS=$save_CPPFLAGS
|
Chris@42
|
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5
|
Chris@42
|
21269 $as_echo "$ok" >&6; }
|
Chris@42
|
21270 if test $ok = no && test "x$with_slow_timer" = xno; then
|
Chris@42
|
21271 echo "***************************************************************"
|
Chris@42
|
21272 echo "WARNING: No cycle counter found. FFTW will use ESTIMATE mode "
|
Chris@42
|
21273 echo " for all plans. See the manual for more information."
|
Chris@42
|
21274 echo "***************************************************************"
|
Chris@42
|
21275 fi
|
Chris@42
|
21276
|
Chris@42
|
21277
|
Chris@42
|
21278
|
Chris@42
|
21279 cat >>confdefs.h <<_ACEOF
|
Chris@42
|
21280 #define FFTW_CC "$CC $CFLAGS"
|
Chris@42
|
21281 _ACEOF
|
Chris@42
|
21282
|
Chris@42
|
21283
|
Chris@42
|
21284 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"
|
Chris@42
|
21285
|
Chris@42
|
21286
|
Chris@42
|
21287 cat >confcache <<\_ACEOF
|
Chris@42
|
21288 # This file is a shell script that caches the results of configure
|
Chris@42
|
21289 # tests run on this system so they can be shared between configure
|
Chris@42
|
21290 # scripts and configure runs, see configure's option --config-cache.
|
Chris@42
|
21291 # It is not useful on other systems. If it contains results you don't
|
Chris@42
|
21292 # want to keep, you may remove or edit it.
|
Chris@42
|
21293 #
|
Chris@42
|
21294 # config.status only pays attention to the cache file if you give it
|
Chris@42
|
21295 # the --recheck option to rerun configure.
|
Chris@42
|
21296 #
|
Chris@42
|
21297 # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
Chris@42
|
21298 # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
Chris@42
|
21299 # following values.
|
Chris@42
|
21300
|
Chris@42
|
21301 _ACEOF
|
Chris@42
|
21302
|
Chris@42
|
21303 # The following way of writing the cache mishandles newlines in values,
|
Chris@42
|
21304 # but we know of no workaround that is simple, portable, and efficient.
|
Chris@42
|
21305 # So, we kill variables containing newlines.
|
Chris@42
|
21306 # Ultrix sh set writes to stderr and can't be redirected directly,
|
Chris@42
|
21307 # and sets the high bit in the cache file unless we assign to the vars.
|
Chris@42
|
21308 (
|
Chris@42
|
21309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
Chris@42
|
21310 eval ac_val=\$$ac_var
|
Chris@42
|
21311 case $ac_val in #(
|
Chris@42
|
21312 *${as_nl}*)
|
Chris@42
|
21313 case $ac_var in #(
|
Chris@42
|
21314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
Chris@42
|
21315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
Chris@42
|
21316 esac
|
Chris@42
|
21317 case $ac_var in #(
|
Chris@42
|
21318 _ | IFS | as_nl) ;; #(
|
Chris@42
|
21319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
Chris@42
|
21320 *) { eval $ac_var=; unset $ac_var;} ;;
|
Chris@42
|
21321 esac ;;
|
Chris@42
|
21322 esac
|
Chris@42
|
21323 done
|
Chris@42
|
21324
|
Chris@42
|
21325 (set) 2>&1 |
|
Chris@42
|
21326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
Chris@42
|
21327 *${as_nl}ac_space=\ *)
|
Chris@42
|
21328 # `set' does not quote correctly, so add quotes: double-quote
|
Chris@42
|
21329 # substitution turns \\\\ into \\, and sed turns \\ into \.
|
Chris@42
|
21330 sed -n \
|
Chris@42
|
21331 "s/'/'\\\\''/g;
|
Chris@42
|
21332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
Chris@42
|
21333 ;; #(
|
Chris@42
|
21334 *)
|
Chris@42
|
21335 # `set' quotes correctly as required by POSIX, so do not add quotes.
|
Chris@42
|
21336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
Chris@42
|
21337 ;;
|
Chris@42
|
21338 esac |
|
Chris@42
|
21339 sort
|
Chris@42
|
21340 ) |
|
Chris@42
|
21341 sed '
|
Chris@42
|
21342 /^ac_cv_env_/b end
|
Chris@42
|
21343 t clear
|
Chris@42
|
21344 :clear
|
Chris@42
|
21345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
Chris@42
|
21346 t end
|
Chris@42
|
21347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
Chris@42
|
21348 :end' >>confcache
|
Chris@42
|
21349 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
Chris@42
|
21350 if test -w "$cache_file"; then
|
Chris@42
|
21351 if test "x$cache_file" != "x/dev/null"; then
|
Chris@42
|
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
Chris@42
|
21353 $as_echo "$as_me: updating cache $cache_file" >&6;}
|
Chris@42
|
21354 if test ! -f "$cache_file" || test -h "$cache_file"; then
|
Chris@42
|
21355 cat confcache >"$cache_file"
|
Chris@42
|
21356 else
|
Chris@42
|
21357 case $cache_file in #(
|
Chris@42
|
21358 */* | ?:*)
|
Chris@42
|
21359 mv -f confcache "$cache_file"$$ &&
|
Chris@42
|
21360 mv -f "$cache_file"$$ "$cache_file" ;; #(
|
Chris@42
|
21361 *)
|
Chris@42
|
21362 mv -f confcache "$cache_file" ;;
|
Chris@42
|
21363 esac
|
Chris@42
|
21364 fi
|
Chris@42
|
21365 fi
|
Chris@42
|
21366 else
|
Chris@42
|
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
Chris@42
|
21368 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
Chris@42
|
21369 fi
|
Chris@42
|
21370 fi
|
Chris@42
|
21371 rm -f confcache
|
Chris@42
|
21372
|
Chris@42
|
21373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
Chris@42
|
21374 # Let make expand exec_prefix.
|
Chris@42
|
21375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
Chris@42
|
21376
|
Chris@42
|
21377 DEFS=-DHAVE_CONFIG_H
|
Chris@42
|
21378
|
Chris@42
|
21379 ac_libobjs=
|
Chris@42
|
21380 ac_ltlibobjs=
|
Chris@42
|
21381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
Chris@42
|
21382 # 1. Remove the extension, and $U if already installed.
|
Chris@42
|
21383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
Chris@42
|
21384 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
Chris@42
|
21385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
Chris@42
|
21386 # will be set to the directory where LIBOBJS objects are built.
|
Chris@42
|
21387 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
Chris@42
|
21388 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
Chris@42
|
21389 done
|
Chris@42
|
21390 LIBOBJS=$ac_libobjs
|
Chris@42
|
21391
|
Chris@42
|
21392 LTLIBOBJS=$ac_ltlibobjs
|
Chris@42
|
21393
|
Chris@42
|
21394
|
Chris@42
|
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
|
Chris@42
|
21396 $as_echo_n "checking that generated files are newer than configure... " >&6; }
|
Chris@42
|
21397 if test -n "$am_sleep_pid"; then
|
Chris@42
|
21398 # Hide warnings about reused PIDs.
|
Chris@42
|
21399 wait $am_sleep_pid 2>/dev/null
|
Chris@42
|
21400 fi
|
Chris@42
|
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
|
Chris@42
|
21402 $as_echo "done" >&6; }
|
Chris@42
|
21403 if test -n "$EXEEXT"; then
|
Chris@42
|
21404 am__EXEEXT_TRUE=
|
Chris@42
|
21405 am__EXEEXT_FALSE='#'
|
Chris@42
|
21406 else
|
Chris@42
|
21407 am__EXEEXT_TRUE='#'
|
Chris@42
|
21408 am__EXEEXT_FALSE=
|
Chris@42
|
21409 fi
|
Chris@42
|
21410
|
Chris@42
|
21411 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
Chris@42
|
21412 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
|
Chris@42
|
21413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21414 fi
|
Chris@42
|
21415 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
|
Chris@42
|
21416 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
|
Chris@42
|
21417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21418 fi
|
Chris@42
|
21419 if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then
|
Chris@42
|
21420 as_fn_error $? "conditional \"SINGLE\" was never defined.
|
Chris@42
|
21421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21422 fi
|
Chris@42
|
21423 if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then
|
Chris@42
|
21424 as_fn_error $? "conditional \"LDOUBLE\" was never defined.
|
Chris@42
|
21425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21426 fi
|
Chris@42
|
21427 if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then
|
Chris@42
|
21428 as_fn_error $? "conditional \"QUAD\" was never defined.
|
Chris@42
|
21429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21430 fi
|
Chris@42
|
21431 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
|
Chris@42
|
21432 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
|
Chris@42
|
21433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21434 fi
|
Chris@42
|
21435 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
|
Chris@42
|
21436 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
|
Chris@42
|
21437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21438 fi
|
Chris@42
|
21439 if test -z "${HAVE_AVX2_TRUE}" && test -z "${HAVE_AVX2_FALSE}"; then
|
Chris@42
|
21440 as_fn_error $? "conditional \"HAVE_AVX2\" was never defined.
|
Chris@42
|
21441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21442 fi
|
Chris@42
|
21443 if test -z "${HAVE_AVX512_TRUE}" && test -z "${HAVE_AVX512_FALSE}"; then
|
Chris@42
|
21444 as_fn_error $? "conditional \"HAVE_AVX512\" was never defined.
|
Chris@42
|
21445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21446 fi
|
Chris@42
|
21447 if test -z "${HAVE_AVX_128_FMA_TRUE}" && test -z "${HAVE_AVX_128_FMA_FALSE}"; then
|
Chris@42
|
21448 as_fn_error $? "conditional \"HAVE_AVX_128_FMA\" was never defined.
|
Chris@42
|
21449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21450 fi
|
Chris@42
|
21451 if test -z "${HAVE_KCVI_TRUE}" && test -z "${HAVE_KCVI_FALSE}"; then
|
Chris@42
|
21452 as_fn_error $? "conditional \"HAVE_KCVI\" was never defined.
|
Chris@42
|
21453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21454 fi
|
Chris@42
|
21455 if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then
|
Chris@42
|
21456 as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined.
|
Chris@42
|
21457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21458 fi
|
Chris@42
|
21459 if test -z "${HAVE_VSX_TRUE}" && test -z "${HAVE_VSX_FALSE}"; then
|
Chris@42
|
21460 as_fn_error $? "conditional \"HAVE_VSX\" was never defined.
|
Chris@42
|
21461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21462 fi
|
Chris@42
|
21463 if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then
|
Chris@42
|
21464 as_fn_error $? "conditional \"HAVE_NEON\" was never defined.
|
Chris@42
|
21465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21466 fi
|
Chris@42
|
21467 if test -z "${HAVE_GENERIC_SIMD128_TRUE}" && test -z "${HAVE_GENERIC_SIMD128_FALSE}"; then
|
Chris@42
|
21468 as_fn_error $? "conditional \"HAVE_GENERIC_SIMD128\" was never defined.
|
Chris@42
|
21469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21470 fi
|
Chris@42
|
21471 if test -z "${HAVE_GENERIC_SIMD256_TRUE}" && test -z "${HAVE_GENERIC_SIMD256_FALSE}"; then
|
Chris@42
|
21472 as_fn_error $? "conditional \"HAVE_GENERIC_SIMD256\" was never defined.
|
Chris@42
|
21473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21474 fi
|
Chris@42
|
21475 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
Chris@42
|
21476 as_fn_error $? "conditional \"AMDEP\" was never defined.
|
Chris@42
|
21477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21478 fi
|
Chris@42
|
21479 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
Chris@42
|
21480 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
Chris@42
|
21481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21482 fi
|
Chris@42
|
21483 if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then
|
Chris@42
|
21484 as_fn_error $? "conditional \"MPI\" was never defined.
|
Chris@42
|
21485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21486 fi
|
Chris@42
|
21487 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
|
Chris@42
|
21488 as_fn_error $? "conditional \"THREADS\" was never defined.
|
Chris@42
|
21489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21490 fi
|
Chris@42
|
21491 if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then
|
Chris@42
|
21492 as_fn_error $? "conditional \"OPENMP\" was never defined.
|
Chris@42
|
21493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21494 fi
|
Chris@42
|
21495 if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then
|
Chris@42
|
21496 as_fn_error $? "conditional \"SMP\" was never defined.
|
Chris@42
|
21497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21498 fi
|
Chris@42
|
21499 if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then
|
Chris@42
|
21500 as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined.
|
Chris@42
|
21501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Chris@42
|
21502 fi
|
Chris@42
|
21503
|
Chris@42
|
21504 : "${CONFIG_STATUS=./config.status}"
|
Chris@42
|
21505 ac_write_fail=0
|
Chris@42
|
21506 ac_clean_files_save=$ac_clean_files
|
Chris@42
|
21507 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
Chris@42
|
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
Chris@42
|
21509 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
Chris@42
|
21510 as_write_fail=0
|
Chris@42
|
21511 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
Chris@42
|
21512 #! $SHELL
|
Chris@42
|
21513 # Generated by $as_me.
|
Chris@42
|
21514 # Run this file to recreate the current configuration.
|
Chris@42
|
21515 # Compiler output produced by configure, useful for debugging
|
Chris@42
|
21516 # configure, is in config.log if it exists.
|
Chris@42
|
21517
|
Chris@42
|
21518 debug=false
|
Chris@42
|
21519 ac_cs_recheck=false
|
Chris@42
|
21520 ac_cs_silent=false
|
Chris@42
|
21521
|
Chris@42
|
21522 SHELL=\${CONFIG_SHELL-$SHELL}
|
Chris@42
|
21523 export SHELL
|
Chris@42
|
21524 _ASEOF
|
Chris@42
|
21525 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
Chris@42
|
21526 ## -------------------- ##
|
Chris@42
|
21527 ## M4sh Initialization. ##
|
Chris@42
|
21528 ## -------------------- ##
|
Chris@42
|
21529
|
Chris@42
|
21530 # Be more Bourne compatible
|
Chris@42
|
21531 DUALCASE=1; export DUALCASE # for MKS sh
|
Chris@42
|
21532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
Chris@42
|
21533 emulate sh
|
Chris@42
|
21534 NULLCMD=:
|
Chris@42
|
21535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
Chris@42
|
21536 # is contrary to our usage. Disable this feature.
|
Chris@42
|
21537 alias -g '${1+"$@"}'='"$@"'
|
Chris@42
|
21538 setopt NO_GLOB_SUBST
|
Chris@42
|
21539 else
|
Chris@42
|
21540 case `(set -o) 2>/dev/null` in #(
|
Chris@42
|
21541 *posix*) :
|
Chris@42
|
21542 set -o posix ;; #(
|
Chris@42
|
21543 *) :
|
Chris@42
|
21544 ;;
|
Chris@42
|
21545 esac
|
Chris@42
|
21546 fi
|
Chris@42
|
21547
|
Chris@42
|
21548
|
Chris@42
|
21549 as_nl='
|
Chris@42
|
21550 '
|
Chris@42
|
21551 export as_nl
|
Chris@42
|
21552 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
Chris@42
|
21553 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
Chris@42
|
21554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
Chris@42
|
21555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
Chris@42
|
21556 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
Chris@42
|
21557 # but without wasting forks for bash or zsh.
|
Chris@42
|
21558 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
Chris@42
|
21559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
Chris@42
|
21560 as_echo='print -r --'
|
Chris@42
|
21561 as_echo_n='print -rn --'
|
Chris@42
|
21562 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
Chris@42
|
21563 as_echo='printf %s\n'
|
Chris@42
|
21564 as_echo_n='printf %s'
|
Chris@42
|
21565 else
|
Chris@42
|
21566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
Chris@42
|
21567 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
Chris@42
|
21568 as_echo_n='/usr/ucb/echo -n'
|
Chris@42
|
21569 else
|
Chris@42
|
21570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
Chris@42
|
21571 as_echo_n_body='eval
|
Chris@42
|
21572 arg=$1;
|
Chris@42
|
21573 case $arg in #(
|
Chris@42
|
21574 *"$as_nl"*)
|
Chris@42
|
21575 expr "X$arg" : "X\\(.*\\)$as_nl";
|
Chris@42
|
21576 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
Chris@42
|
21577 esac;
|
Chris@42
|
21578 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
Chris@42
|
21579 '
|
Chris@42
|
21580 export as_echo_n_body
|
Chris@42
|
21581 as_echo_n='sh -c $as_echo_n_body as_echo'
|
Chris@42
|
21582 fi
|
Chris@42
|
21583 export as_echo_body
|
Chris@42
|
21584 as_echo='sh -c $as_echo_body as_echo'
|
Chris@42
|
21585 fi
|
Chris@42
|
21586
|
Chris@42
|
21587 # The user is always right.
|
Chris@42
|
21588 if test "${PATH_SEPARATOR+set}" != set; then
|
Chris@42
|
21589 PATH_SEPARATOR=:
|
Chris@42
|
21590 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
Chris@42
|
21591 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
Chris@42
|
21592 PATH_SEPARATOR=';'
|
Chris@42
|
21593 }
|
Chris@42
|
21594 fi
|
Chris@42
|
21595
|
Chris@42
|
21596
|
Chris@42
|
21597 # IFS
|
Chris@42
|
21598 # We need space, tab and new line, in precisely that order. Quoting is
|
Chris@42
|
21599 # there to prevent editors from complaining about space-tab.
|
Chris@42
|
21600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
Chris@42
|
21601 # splitting by setting IFS to empty value.)
|
Chris@42
|
21602 IFS=" "" $as_nl"
|
Chris@42
|
21603
|
Chris@42
|
21604 # Find who we are. Look in the path if we contain no directory separator.
|
Chris@42
|
21605 as_myself=
|
Chris@42
|
21606 case $0 in #((
|
Chris@42
|
21607 *[\\/]* ) as_myself=$0 ;;
|
Chris@42
|
21608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
Chris@42
|
21609 for as_dir in $PATH
|
Chris@42
|
21610 do
|
Chris@42
|
21611 IFS=$as_save_IFS
|
Chris@42
|
21612 test -z "$as_dir" && as_dir=.
|
Chris@42
|
21613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
Chris@42
|
21614 done
|
Chris@42
|
21615 IFS=$as_save_IFS
|
Chris@42
|
21616
|
Chris@42
|
21617 ;;
|
Chris@42
|
21618 esac
|
Chris@42
|
21619 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
Chris@42
|
21620 # in which case we are not to be found in the path.
|
Chris@42
|
21621 if test "x$as_myself" = x; then
|
Chris@42
|
21622 as_myself=$0
|
Chris@42
|
21623 fi
|
Chris@42
|
21624 if test ! -f "$as_myself"; then
|
Chris@42
|
21625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
Chris@42
|
21626 exit 1
|
Chris@42
|
21627 fi
|
Chris@42
|
21628
|
Chris@42
|
21629 # Unset variables that we do not need and which cause bugs (e.g. in
|
Chris@42
|
21630 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
Chris@42
|
21631 # suppresses any "Segmentation fault" message there. '((' could
|
Chris@42
|
21632 # trigger a bug in pdksh 5.2.14.
|
Chris@42
|
21633 for as_var in BASH_ENV ENV MAIL MAILPATH
|
Chris@42
|
21634 do eval test x\${$as_var+set} = xset \
|
Chris@42
|
21635 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
Chris@42
|
21636 done
|
Chris@42
|
21637 PS1='$ '
|
Chris@42
|
21638 PS2='> '
|
Chris@42
|
21639 PS4='+ '
|
Chris@42
|
21640
|
Chris@42
|
21641 # NLS nuisances.
|
Chris@42
|
21642 LC_ALL=C
|
Chris@42
|
21643 export LC_ALL
|
Chris@42
|
21644 LANGUAGE=C
|
Chris@42
|
21645 export LANGUAGE
|
Chris@42
|
21646
|
Chris@42
|
21647 # CDPATH.
|
Chris@42
|
21648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
Chris@42
|
21649
|
Chris@42
|
21650
|
Chris@42
|
21651 # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
Chris@42
|
21652 # ----------------------------------------
|
Chris@42
|
21653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
Chris@42
|
21654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
Chris@42
|
21655 # script with STATUS, using 1 if that was 0.
|
Chris@42
|
21656 as_fn_error ()
|
Chris@42
|
21657 {
|
Chris@42
|
21658 as_status=$1; test $as_status -eq 0 && as_status=1
|
Chris@42
|
21659 if test "$4"; then
|
Chris@42
|
21660 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
Chris@42
|
21661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
Chris@42
|
21662 fi
|
Chris@42
|
21663 $as_echo "$as_me: error: $2" >&2
|
Chris@42
|
21664 as_fn_exit $as_status
|
Chris@42
|
21665 } # as_fn_error
|
Chris@42
|
21666
|
Chris@42
|
21667
|
Chris@42
|
21668 # as_fn_set_status STATUS
|
Chris@42
|
21669 # -----------------------
|
Chris@42
|
21670 # Set $? to STATUS, without forking.
|
Chris@42
|
21671 as_fn_set_status ()
|
Chris@42
|
21672 {
|
Chris@42
|
21673 return $1
|
Chris@42
|
21674 } # as_fn_set_status
|
Chris@42
|
21675
|
Chris@42
|
21676 # as_fn_exit STATUS
|
Chris@42
|
21677 # -----------------
|
Chris@42
|
21678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
Chris@42
|
21679 as_fn_exit ()
|
Chris@42
|
21680 {
|
Chris@42
|
21681 set +e
|
Chris@42
|
21682 as_fn_set_status $1
|
Chris@42
|
21683 exit $1
|
Chris@42
|
21684 } # as_fn_exit
|
Chris@42
|
21685
|
Chris@42
|
21686 # as_fn_unset VAR
|
Chris@42
|
21687 # ---------------
|
Chris@42
|
21688 # Portably unset VAR.
|
Chris@42
|
21689 as_fn_unset ()
|
Chris@42
|
21690 {
|
Chris@42
|
21691 { eval $1=; unset $1;}
|
Chris@42
|
21692 }
|
Chris@42
|
21693 as_unset=as_fn_unset
|
Chris@42
|
21694 # as_fn_append VAR VALUE
|
Chris@42
|
21695 # ----------------------
|
Chris@42
|
21696 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
Chris@42
|
21697 # advantage of any shell optimizations that allow amortized linear growth over
|
Chris@42
|
21698 # repeated appends, instead of the typical quadratic growth present in naive
|
Chris@42
|
21699 # implementations.
|
Chris@42
|
21700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
Chris@42
|
21701 eval 'as_fn_append ()
|
Chris@42
|
21702 {
|
Chris@42
|
21703 eval $1+=\$2
|
Chris@42
|
21704 }'
|
Chris@42
|
21705 else
|
Chris@42
|
21706 as_fn_append ()
|
Chris@42
|
21707 {
|
Chris@42
|
21708 eval $1=\$$1\$2
|
Chris@42
|
21709 }
|
Chris@42
|
21710 fi # as_fn_append
|
Chris@42
|
21711
|
Chris@42
|
21712 # as_fn_arith ARG...
|
Chris@42
|
21713 # ------------------
|
Chris@42
|
21714 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
Chris@42
|
21715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
Chris@42
|
21716 # must be portable across $(()) and expr.
|
Chris@42
|
21717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
Chris@42
|
21718 eval 'as_fn_arith ()
|
Chris@42
|
21719 {
|
Chris@42
|
21720 as_val=$(( $* ))
|
Chris@42
|
21721 }'
|
Chris@42
|
21722 else
|
Chris@42
|
21723 as_fn_arith ()
|
Chris@42
|
21724 {
|
Chris@42
|
21725 as_val=`expr "$@" || test $? -eq 1`
|
Chris@42
|
21726 }
|
Chris@42
|
21727 fi # as_fn_arith
|
Chris@42
|
21728
|
Chris@42
|
21729
|
Chris@42
|
21730 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
Chris@42
|
21731 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
Chris@42
|
21732 as_expr=expr
|
Chris@42
|
21733 else
|
Chris@42
|
21734 as_expr=false
|
Chris@42
|
21735 fi
|
Chris@42
|
21736
|
Chris@42
|
21737 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
Chris@42
|
21738 as_basename=basename
|
Chris@42
|
21739 else
|
Chris@42
|
21740 as_basename=false
|
Chris@42
|
21741 fi
|
Chris@42
|
21742
|
Chris@42
|
21743 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
Chris@42
|
21744 as_dirname=dirname
|
Chris@42
|
21745 else
|
Chris@42
|
21746 as_dirname=false
|
Chris@42
|
21747 fi
|
Chris@42
|
21748
|
Chris@42
|
21749 as_me=`$as_basename -- "$0" ||
|
Chris@42
|
21750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
Chris@42
|
21751 X"$0" : 'X\(//\)$' \| \
|
Chris@42
|
21752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
Chris@42
|
21753 $as_echo X/"$0" |
|
Chris@42
|
21754 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
Chris@42
|
21755 s//\1/
|
Chris@42
|
21756 q
|
Chris@42
|
21757 }
|
Chris@42
|
21758 /^X\/\(\/\/\)$/{
|
Chris@42
|
21759 s//\1/
|
Chris@42
|
21760 q
|
Chris@42
|
21761 }
|
Chris@42
|
21762 /^X\/\(\/\).*/{
|
Chris@42
|
21763 s//\1/
|
Chris@42
|
21764 q
|
Chris@42
|
21765 }
|
Chris@42
|
21766 s/.*/./; q'`
|
Chris@42
|
21767
|
Chris@42
|
21768 # Avoid depending upon Character Ranges.
|
Chris@42
|
21769 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
Chris@42
|
21770 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
Chris@42
|
21771 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
Chris@42
|
21772 as_cr_digits='0123456789'
|
Chris@42
|
21773 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
Chris@42
|
21774
|
Chris@42
|
21775 ECHO_C= ECHO_N= ECHO_T=
|
Chris@42
|
21776 case `echo -n x` in #(((((
|
Chris@42
|
21777 -n*)
|
Chris@42
|
21778 case `echo 'xy\c'` in
|
Chris@42
|
21779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
Chris@42
|
21780 xy) ECHO_C='\c';;
|
Chris@42
|
21781 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
Chris@42
|
21782 ECHO_T=' ';;
|
Chris@42
|
21783 esac;;
|
Chris@42
|
21784 *)
|
Chris@42
|
21785 ECHO_N='-n';;
|
Chris@42
|
21786 esac
|
Chris@42
|
21787
|
Chris@42
|
21788 rm -f conf$$ conf$$.exe conf$$.file
|
Chris@42
|
21789 if test -d conf$$.dir; then
|
Chris@42
|
21790 rm -f conf$$.dir/conf$$.file
|
Chris@42
|
21791 else
|
Chris@42
|
21792 rm -f conf$$.dir
|
Chris@42
|
21793 mkdir conf$$.dir 2>/dev/null
|
Chris@42
|
21794 fi
|
Chris@42
|
21795 if (echo >conf$$.file) 2>/dev/null; then
|
Chris@42
|
21796 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
Chris@42
|
21797 as_ln_s='ln -s'
|
Chris@42
|
21798 # ... but there are two gotchas:
|
Chris@42
|
21799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
Chris@42
|
21800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
Chris@42
|
21801 # In both cases, we have to default to `cp -pR'.
|
Chris@42
|
21802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
Chris@42
|
21803 as_ln_s='cp -pR'
|
Chris@42
|
21804 elif ln conf$$.file conf$$ 2>/dev/null; then
|
Chris@42
|
21805 as_ln_s=ln
|
Chris@42
|
21806 else
|
Chris@42
|
21807 as_ln_s='cp -pR'
|
Chris@42
|
21808 fi
|
Chris@42
|
21809 else
|
Chris@42
|
21810 as_ln_s='cp -pR'
|
Chris@42
|
21811 fi
|
Chris@42
|
21812 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
Chris@42
|
21813 rmdir conf$$.dir 2>/dev/null
|
Chris@42
|
21814
|
Chris@42
|
21815
|
Chris@42
|
21816 # as_fn_mkdir_p
|
Chris@42
|
21817 # -------------
|
Chris@42
|
21818 # Create "$as_dir" as a directory, including parents if necessary.
|
Chris@42
|
21819 as_fn_mkdir_p ()
|
Chris@42
|
21820 {
|
Chris@42
|
21821
|
Chris@42
|
21822 case $as_dir in #(
|
Chris@42
|
21823 -*) as_dir=./$as_dir;;
|
Chris@42
|
21824 esac
|
Chris@42
|
21825 test -d "$as_dir" || eval $as_mkdir_p || {
|
Chris@42
|
21826 as_dirs=
|
Chris@42
|
21827 while :; do
|
Chris@42
|
21828 case $as_dir in #(
|
Chris@42
|
21829 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
Chris@42
|
21830 *) as_qdir=$as_dir;;
|
Chris@42
|
21831 esac
|
Chris@42
|
21832 as_dirs="'$as_qdir' $as_dirs"
|
Chris@42
|
21833 as_dir=`$as_dirname -- "$as_dir" ||
|
Chris@42
|
21834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
Chris@42
|
21835 X"$as_dir" : 'X\(//\)[^/]' \| \
|
Chris@42
|
21836 X"$as_dir" : 'X\(//\)$' \| \
|
Chris@42
|
21837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
Chris@42
|
21838 $as_echo X"$as_dir" |
|
Chris@42
|
21839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
Chris@42
|
21840 s//\1/
|
Chris@42
|
21841 q
|
Chris@42
|
21842 }
|
Chris@42
|
21843 /^X\(\/\/\)[^/].*/{
|
Chris@42
|
21844 s//\1/
|
Chris@42
|
21845 q
|
Chris@42
|
21846 }
|
Chris@42
|
21847 /^X\(\/\/\)$/{
|
Chris@42
|
21848 s//\1/
|
Chris@42
|
21849 q
|
Chris@42
|
21850 }
|
Chris@42
|
21851 /^X\(\/\).*/{
|
Chris@42
|
21852 s//\1/
|
Chris@42
|
21853 q
|
Chris@42
|
21854 }
|
Chris@42
|
21855 s/.*/./; q'`
|
Chris@42
|
21856 test -d "$as_dir" && break
|
Chris@42
|
21857 done
|
Chris@42
|
21858 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
Chris@42
|
21859 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
Chris@42
|
21860
|
Chris@42
|
21861
|
Chris@42
|
21862 } # as_fn_mkdir_p
|
Chris@42
|
21863 if mkdir -p . 2>/dev/null; then
|
Chris@42
|
21864 as_mkdir_p='mkdir -p "$as_dir"'
|
Chris@42
|
21865 else
|
Chris@42
|
21866 test -d ./-p && rmdir ./-p
|
Chris@42
|
21867 as_mkdir_p=false
|
Chris@42
|
21868 fi
|
Chris@42
|
21869
|
Chris@42
|
21870
|
Chris@42
|
21871 # as_fn_executable_p FILE
|
Chris@42
|
21872 # -----------------------
|
Chris@42
|
21873 # Test if FILE is an executable regular file.
|
Chris@42
|
21874 as_fn_executable_p ()
|
Chris@42
|
21875 {
|
Chris@42
|
21876 test -f "$1" && test -x "$1"
|
Chris@42
|
21877 } # as_fn_executable_p
|
Chris@42
|
21878 as_test_x='test -x'
|
Chris@42
|
21879 as_executable_p=as_fn_executable_p
|
Chris@42
|
21880
|
Chris@42
|
21881 # Sed expression to map a string onto a valid CPP name.
|
Chris@42
|
21882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
Chris@42
|
21883
|
Chris@42
|
21884 # Sed expression to map a string onto a valid variable name.
|
Chris@42
|
21885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
Chris@42
|
21886
|
Chris@42
|
21887
|
Chris@42
|
21888 exec 6>&1
|
Chris@42
|
21889 ## ----------------------------------- ##
|
Chris@42
|
21890 ## Main body of $CONFIG_STATUS script. ##
|
Chris@42
|
21891 ## ----------------------------------- ##
|
Chris@42
|
21892 _ASEOF
|
Chris@42
|
21893 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
Chris@42
|
21894
|
Chris@42
|
21895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
21896 # Save the log message, to keep $0 and so on meaningful, and to
|
Chris@42
|
21897 # report actual input values of CONFIG_FILES etc. instead of their
|
Chris@42
|
21898 # values after options handling.
|
Chris@42
|
21899 ac_log="
|
Chris@42
|
21900 This file was extended by fftw $as_me 3.3.5, which was
|
Chris@42
|
21901 generated by GNU Autoconf 2.69. Invocation command line was
|
Chris@42
|
21902
|
Chris@42
|
21903 CONFIG_FILES = $CONFIG_FILES
|
Chris@42
|
21904 CONFIG_HEADERS = $CONFIG_HEADERS
|
Chris@42
|
21905 CONFIG_LINKS = $CONFIG_LINKS
|
Chris@42
|
21906 CONFIG_COMMANDS = $CONFIG_COMMANDS
|
Chris@42
|
21907 $ $0 $@
|
Chris@42
|
21908
|
Chris@42
|
21909 on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
Chris@42
|
21910 "
|
Chris@42
|
21911
|
Chris@42
|
21912 _ACEOF
|
Chris@42
|
21913
|
Chris@42
|
21914 case $ac_config_files in *"
|
Chris@42
|
21915 "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
Chris@42
|
21916 esac
|
Chris@42
|
21917
|
Chris@42
|
21918 case $ac_config_headers in *"
|
Chris@42
|
21919 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
Chris@42
|
21920 esac
|
Chris@42
|
21921
|
Chris@42
|
21922
|
Chris@42
|
21923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
Chris@42
|
21924 # Files that config.status was made for.
|
Chris@42
|
21925 config_files="$ac_config_files"
|
Chris@42
|
21926 config_headers="$ac_config_headers"
|
Chris@42
|
21927 config_commands="$ac_config_commands"
|
Chris@42
|
21928
|
Chris@42
|
21929 _ACEOF
|
Chris@42
|
21930
|
Chris@42
|
21931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
21932 ac_cs_usage="\
|
Chris@42
|
21933 \`$as_me' instantiates files and other configuration actions
|
Chris@42
|
21934 from templates according to the current configuration. Unless the files
|
Chris@42
|
21935 and actions are specified as TAGs, all are instantiated by default.
|
Chris@42
|
21936
|
Chris@42
|
21937 Usage: $0 [OPTION]... [TAG]...
|
Chris@42
|
21938
|
Chris@42
|
21939 -h, --help print this help, then exit
|
Chris@42
|
21940 -V, --version print version number and configuration settings, then exit
|
Chris@42
|
21941 --config print configuration, then exit
|
Chris@42
|
21942 -q, --quiet, --silent
|
Chris@42
|
21943 do not print progress messages
|
Chris@42
|
21944 -d, --debug don't remove temporary files
|
Chris@42
|
21945 --recheck update $as_me by reconfiguring in the same conditions
|
Chris@42
|
21946 --file=FILE[:TEMPLATE]
|
Chris@42
|
21947 instantiate the configuration file FILE
|
Chris@42
|
21948 --header=FILE[:TEMPLATE]
|
Chris@42
|
21949 instantiate the configuration header FILE
|
Chris@42
|
21950
|
Chris@42
|
21951 Configuration files:
|
Chris@42
|
21952 $config_files
|
Chris@42
|
21953
|
Chris@42
|
21954 Configuration headers:
|
Chris@42
|
21955 $config_headers
|
Chris@42
|
21956
|
Chris@42
|
21957 Configuration commands:
|
Chris@42
|
21958 $config_commands
|
Chris@42
|
21959
|
Chris@42
|
21960 Report bugs to <fftw@fftw.org>."
|
Chris@42
|
21961
|
Chris@42
|
21962 _ACEOF
|
Chris@42
|
21963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
Chris@42
|
21964 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
Chris@42
|
21965 ac_cs_version="\\
|
Chris@42
|
21966 fftw config.status 3.3.5
|
Chris@42
|
21967 configured by $0, generated by GNU Autoconf 2.69,
|
Chris@42
|
21968 with options \\"\$ac_cs_config\\"
|
Chris@42
|
21969
|
Chris@42
|
21970 Copyright (C) 2012 Free Software Foundation, Inc.
|
Chris@42
|
21971 This config.status script is free software; the Free Software Foundation
|
Chris@42
|
21972 gives unlimited permission to copy, distribute and modify it."
|
Chris@42
|
21973
|
Chris@42
|
21974 ac_pwd='$ac_pwd'
|
Chris@42
|
21975 srcdir='$srcdir'
|
Chris@42
|
21976 INSTALL='$INSTALL'
|
Chris@42
|
21977 MKDIR_P='$MKDIR_P'
|
Chris@42
|
21978 AWK='$AWK'
|
Chris@42
|
21979 test -n "\$AWK" || AWK=awk
|
Chris@42
|
21980 _ACEOF
|
Chris@42
|
21981
|
Chris@42
|
21982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
21983 # The default lists apply if the user does not specify any file.
|
Chris@42
|
21984 ac_need_defaults=:
|
Chris@42
|
21985 while test $# != 0
|
Chris@42
|
21986 do
|
Chris@42
|
21987 case $1 in
|
Chris@42
|
21988 --*=?*)
|
Chris@42
|
21989 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
Chris@42
|
21990 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
Chris@42
|
21991 ac_shift=:
|
Chris@42
|
21992 ;;
|
Chris@42
|
21993 --*=)
|
Chris@42
|
21994 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
Chris@42
|
21995 ac_optarg=
|
Chris@42
|
21996 ac_shift=:
|
Chris@42
|
21997 ;;
|
Chris@42
|
21998 *)
|
Chris@42
|
21999 ac_option=$1
|
Chris@42
|
22000 ac_optarg=$2
|
Chris@42
|
22001 ac_shift=shift
|
Chris@42
|
22002 ;;
|
Chris@42
|
22003 esac
|
Chris@42
|
22004
|
Chris@42
|
22005 case $ac_option in
|
Chris@42
|
22006 # Handling of the options.
|
Chris@42
|
22007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
Chris@42
|
22008 ac_cs_recheck=: ;;
|
Chris@42
|
22009 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
Chris@42
|
22010 $as_echo "$ac_cs_version"; exit ;;
|
Chris@42
|
22011 --config | --confi | --conf | --con | --co | --c )
|
Chris@42
|
22012 $as_echo "$ac_cs_config"; exit ;;
|
Chris@42
|
22013 --debug | --debu | --deb | --de | --d | -d )
|
Chris@42
|
22014 debug=: ;;
|
Chris@42
|
22015 --file | --fil | --fi | --f )
|
Chris@42
|
22016 $ac_shift
|
Chris@42
|
22017 case $ac_optarg in
|
Chris@42
|
22018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
Chris@42
|
22019 '') as_fn_error $? "missing file argument" ;;
|
Chris@42
|
22020 esac
|
Chris@42
|
22021 as_fn_append CONFIG_FILES " '$ac_optarg'"
|
Chris@42
|
22022 ac_need_defaults=false;;
|
Chris@42
|
22023 --header | --heade | --head | --hea )
|
Chris@42
|
22024 $ac_shift
|
Chris@42
|
22025 case $ac_optarg in
|
Chris@42
|
22026 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
Chris@42
|
22027 esac
|
Chris@42
|
22028 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
Chris@42
|
22029 ac_need_defaults=false;;
|
Chris@42
|
22030 --he | --h)
|
Chris@42
|
22031 # Conflict between --help and --header
|
Chris@42
|
22032 as_fn_error $? "ambiguous option: \`$1'
|
Chris@42
|
22033 Try \`$0 --help' for more information.";;
|
Chris@42
|
22034 --help | --hel | -h )
|
Chris@42
|
22035 $as_echo "$ac_cs_usage"; exit ;;
|
Chris@42
|
22036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
Chris@42
|
22037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
Chris@42
|
22038 ac_cs_silent=: ;;
|
Chris@42
|
22039
|
Chris@42
|
22040 # This is an error.
|
Chris@42
|
22041 -*) as_fn_error $? "unrecognized option: \`$1'
|
Chris@42
|
22042 Try \`$0 --help' for more information." ;;
|
Chris@42
|
22043
|
Chris@42
|
22044 *) as_fn_append ac_config_targets " $1"
|
Chris@42
|
22045 ac_need_defaults=false ;;
|
Chris@42
|
22046
|
Chris@42
|
22047 esac
|
Chris@42
|
22048 shift
|
Chris@42
|
22049 done
|
Chris@42
|
22050
|
Chris@42
|
22051 ac_configure_extra_args=
|
Chris@42
|
22052
|
Chris@42
|
22053 if $ac_cs_silent; then
|
Chris@42
|
22054 exec 6>/dev/null
|
Chris@42
|
22055 ac_configure_extra_args="$ac_configure_extra_args --silent"
|
Chris@42
|
22056 fi
|
Chris@42
|
22057
|
Chris@42
|
22058 _ACEOF
|
Chris@42
|
22059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
Chris@42
|
22060 if \$ac_cs_recheck; then
|
Chris@42
|
22061 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
Chris@42
|
22062 shift
|
Chris@42
|
22063 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
Chris@42
|
22064 CONFIG_SHELL='$SHELL'
|
Chris@42
|
22065 export CONFIG_SHELL
|
Chris@42
|
22066 exec "\$@"
|
Chris@42
|
22067 fi
|
Chris@42
|
22068
|
Chris@42
|
22069 _ACEOF
|
Chris@42
|
22070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
22071 exec 5>>config.log
|
Chris@42
|
22072 {
|
Chris@42
|
22073 echo
|
Chris@42
|
22074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
Chris@42
|
22075 ## Running $as_me. ##
|
Chris@42
|
22076 _ASBOX
|
Chris@42
|
22077 $as_echo "$ac_log"
|
Chris@42
|
22078 } >&5
|
Chris@42
|
22079
|
Chris@42
|
22080 _ACEOF
|
Chris@42
|
22081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
Chris@42
|
22082 #
|
Chris@42
|
22083 # INIT-COMMANDS
|
Chris@42
|
22084 #
|
Chris@42
|
22085 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
Chris@42
|
22086
|
Chris@42
|
22087
|
Chris@42
|
22088 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
Chris@42
|
22089 # if CDPATH is set.
|
Chris@42
|
22090 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
Chris@42
|
22091
|
Chris@42
|
22092 sed_quote_subst='$sed_quote_subst'
|
Chris@42
|
22093 double_quote_subst='$double_quote_subst'
|
Chris@42
|
22094 delay_variable_subst='$delay_variable_subst'
|
Chris@42
|
22095 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22096 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22097 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22098 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22099 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22100 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22101 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22102 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22103 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22104 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22105 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22106 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22107 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22108 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22109 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22110 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22111 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22112 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22113 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22114 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22115 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22116 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22117 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22118 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22119 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22120 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22121 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22122 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22123 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22124 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22125 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22126 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22127 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22128 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22129 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22130 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22131 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22132 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22133 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22134 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22135 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22136 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22137 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22138 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22139 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22140 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22141 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22142 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22143 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22144 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22145 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22146 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22147 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22148 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22149 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22150 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22151 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22152 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"`'
|
Chris@42
|
22153 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22154 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22155 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22156 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22157 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22158 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22159 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22160 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22161 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22162 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22163 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22164 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22165 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22166 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22167 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22168 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22169 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22170 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22171 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22172 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22173 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22174 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22175 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22176 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22177 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22178 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22179 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22180 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22181 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22182 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22183 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22184 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22185 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22186 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22187 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22188 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22189 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22190 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22191 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22192 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22193 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22194 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22195 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22196 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22197 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22198 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22199 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22200 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22201 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22202 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22203 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22204 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22205 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22206 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22207 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22208 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22209 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22210 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22211 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22212 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22213 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22214 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22215 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22216 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22217 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22218 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22219 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22220 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22221 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22222 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22223 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22224 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22225 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22226 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22227 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22228 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22229 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22230 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22231 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22232 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22233 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22234 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22235 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22236 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22237 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22238 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22239 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22240 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22241 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22242 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22243 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22244 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22245 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22246 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22247 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22248 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22249 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22250 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22251 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22252 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22253 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22254 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22255 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22256 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22257 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22258 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22259 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22260 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22261 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22262 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22263 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22264 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22265 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22266 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22267 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
|
Chris@42
|
22268
|
Chris@42
|
22269 LTCC='$LTCC'
|
Chris@42
|
22270 LTCFLAGS='$LTCFLAGS'
|
Chris@42
|
22271 compiler='$compiler_DEFAULT'
|
Chris@42
|
22272
|
Chris@42
|
22273 # A function that is used when there is no print builtin or printf.
|
Chris@42
|
22274 func_fallback_echo ()
|
Chris@42
|
22275 {
|
Chris@42
|
22276 eval 'cat <<_LTECHO_EOF
|
Chris@42
|
22277 \$1
|
Chris@42
|
22278 _LTECHO_EOF'
|
Chris@42
|
22279 }
|
Chris@42
|
22280
|
Chris@42
|
22281 # Quote evaled strings.
|
Chris@42
|
22282 for var in AS \
|
Chris@42
|
22283 DLLTOOL \
|
Chris@42
|
22284 OBJDUMP \
|
Chris@42
|
22285 SHELL \
|
Chris@42
|
22286 ECHO \
|
Chris@42
|
22287 PATH_SEPARATOR \
|
Chris@42
|
22288 SED \
|
Chris@42
|
22289 GREP \
|
Chris@42
|
22290 EGREP \
|
Chris@42
|
22291 FGREP \
|
Chris@42
|
22292 LD \
|
Chris@42
|
22293 NM \
|
Chris@42
|
22294 LN_S \
|
Chris@42
|
22295 lt_SP2NL \
|
Chris@42
|
22296 lt_NL2SP \
|
Chris@42
|
22297 reload_flag \
|
Chris@42
|
22298 deplibs_check_method \
|
Chris@42
|
22299 file_magic_cmd \
|
Chris@42
|
22300 file_magic_glob \
|
Chris@42
|
22301 want_nocaseglob \
|
Chris@42
|
22302 sharedlib_from_linklib_cmd \
|
Chris@42
|
22303 AR \
|
Chris@42
|
22304 AR_FLAGS \
|
Chris@42
|
22305 archiver_list_spec \
|
Chris@42
|
22306 STRIP \
|
Chris@42
|
22307 RANLIB \
|
Chris@42
|
22308 CC \
|
Chris@42
|
22309 CFLAGS \
|
Chris@42
|
22310 compiler \
|
Chris@42
|
22311 lt_cv_sys_global_symbol_pipe \
|
Chris@42
|
22312 lt_cv_sys_global_symbol_to_cdecl \
|
Chris@42
|
22313 lt_cv_sys_global_symbol_to_c_name_address \
|
Chris@42
|
22314 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
Chris@42
|
22315 nm_file_list_spec \
|
Chris@42
|
22316 lt_prog_compiler_no_builtin_flag \
|
Chris@42
|
22317 lt_prog_compiler_pic \
|
Chris@42
|
22318 lt_prog_compiler_wl \
|
Chris@42
|
22319 lt_prog_compiler_static \
|
Chris@42
|
22320 lt_cv_prog_compiler_c_o \
|
Chris@42
|
22321 need_locks \
|
Chris@42
|
22322 MANIFEST_TOOL \
|
Chris@42
|
22323 DSYMUTIL \
|
Chris@42
|
22324 NMEDIT \
|
Chris@42
|
22325 LIPO \
|
Chris@42
|
22326 OTOOL \
|
Chris@42
|
22327 OTOOL64 \
|
Chris@42
|
22328 shrext_cmds \
|
Chris@42
|
22329 export_dynamic_flag_spec \
|
Chris@42
|
22330 whole_archive_flag_spec \
|
Chris@42
|
22331 compiler_needs_object \
|
Chris@42
|
22332 with_gnu_ld \
|
Chris@42
|
22333 allow_undefined_flag \
|
Chris@42
|
22334 no_undefined_flag \
|
Chris@42
|
22335 hardcode_libdir_flag_spec \
|
Chris@42
|
22336 hardcode_libdir_separator \
|
Chris@42
|
22337 exclude_expsyms \
|
Chris@42
|
22338 include_expsyms \
|
Chris@42
|
22339 file_list_spec \
|
Chris@42
|
22340 variables_saved_for_relink \
|
Chris@42
|
22341 libname_spec \
|
Chris@42
|
22342 library_names_spec \
|
Chris@42
|
22343 soname_spec \
|
Chris@42
|
22344 install_override_mode \
|
Chris@42
|
22345 finish_eval \
|
Chris@42
|
22346 old_striplib \
|
Chris@42
|
22347 striplib \
|
Chris@42
|
22348 LD_F77 \
|
Chris@42
|
22349 reload_flag_F77 \
|
Chris@42
|
22350 compiler_F77 \
|
Chris@42
|
22351 lt_prog_compiler_no_builtin_flag_F77 \
|
Chris@42
|
22352 lt_prog_compiler_pic_F77 \
|
Chris@42
|
22353 lt_prog_compiler_wl_F77 \
|
Chris@42
|
22354 lt_prog_compiler_static_F77 \
|
Chris@42
|
22355 lt_cv_prog_compiler_c_o_F77 \
|
Chris@42
|
22356 export_dynamic_flag_spec_F77 \
|
Chris@42
|
22357 whole_archive_flag_spec_F77 \
|
Chris@42
|
22358 compiler_needs_object_F77 \
|
Chris@42
|
22359 with_gnu_ld_F77 \
|
Chris@42
|
22360 allow_undefined_flag_F77 \
|
Chris@42
|
22361 no_undefined_flag_F77 \
|
Chris@42
|
22362 hardcode_libdir_flag_spec_F77 \
|
Chris@42
|
22363 hardcode_libdir_separator_F77 \
|
Chris@42
|
22364 exclude_expsyms_F77 \
|
Chris@42
|
22365 include_expsyms_F77 \
|
Chris@42
|
22366 file_list_spec_F77; do
|
Chris@42
|
22367 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
Chris@42
|
22368 *[\\\\\\\`\\"\\\$]*)
|
Chris@42
|
22369 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
Chris@42
|
22370 ;;
|
Chris@42
|
22371 *)
|
Chris@42
|
22372 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
Chris@42
|
22373 ;;
|
Chris@42
|
22374 esac
|
Chris@42
|
22375 done
|
Chris@42
|
22376
|
Chris@42
|
22377 # Double-quote double-evaled strings.
|
Chris@42
|
22378 for var in reload_cmds \
|
Chris@42
|
22379 old_postinstall_cmds \
|
Chris@42
|
22380 old_postuninstall_cmds \
|
Chris@42
|
22381 old_archive_cmds \
|
Chris@42
|
22382 extract_expsyms_cmds \
|
Chris@42
|
22383 old_archive_from_new_cmds \
|
Chris@42
|
22384 old_archive_from_expsyms_cmds \
|
Chris@42
|
22385 archive_cmds \
|
Chris@42
|
22386 archive_expsym_cmds \
|
Chris@42
|
22387 module_cmds \
|
Chris@42
|
22388 module_expsym_cmds \
|
Chris@42
|
22389 export_symbols_cmds \
|
Chris@42
|
22390 prelink_cmds \
|
Chris@42
|
22391 postlink_cmds \
|
Chris@42
|
22392 postinstall_cmds \
|
Chris@42
|
22393 postuninstall_cmds \
|
Chris@42
|
22394 finish_cmds \
|
Chris@42
|
22395 sys_lib_search_path_spec \
|
Chris@42
|
22396 sys_lib_dlsearch_path_spec \
|
Chris@42
|
22397 reload_cmds_F77 \
|
Chris@42
|
22398 old_archive_cmds_F77 \
|
Chris@42
|
22399 old_archive_from_new_cmds_F77 \
|
Chris@42
|
22400 old_archive_from_expsyms_cmds_F77 \
|
Chris@42
|
22401 archive_cmds_F77 \
|
Chris@42
|
22402 archive_expsym_cmds_F77 \
|
Chris@42
|
22403 module_cmds_F77 \
|
Chris@42
|
22404 module_expsym_cmds_F77 \
|
Chris@42
|
22405 export_symbols_cmds_F77 \
|
Chris@42
|
22406 prelink_cmds_F77 \
|
Chris@42
|
22407 postlink_cmds_F77; do
|
Chris@42
|
22408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
Chris@42
|
22409 *[\\\\\\\`\\"\\\$]*)
|
Chris@42
|
22410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
Chris@42
|
22411 ;;
|
Chris@42
|
22412 *)
|
Chris@42
|
22413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
Chris@42
|
22414 ;;
|
Chris@42
|
22415 esac
|
Chris@42
|
22416 done
|
Chris@42
|
22417
|
Chris@42
|
22418 ac_aux_dir='$ac_aux_dir'
|
Chris@42
|
22419 xsi_shell='$xsi_shell'
|
Chris@42
|
22420 lt_shell_append='$lt_shell_append'
|
Chris@42
|
22421
|
Chris@42
|
22422 # See if we are running on zsh, and set the options which allow our
|
Chris@42
|
22423 # commands through without removal of \ escapes INIT.
|
Chris@42
|
22424 if test -n "\${ZSH_VERSION+set}" ; then
|
Chris@42
|
22425 setopt NO_GLOB_SUBST
|
Chris@42
|
22426 fi
|
Chris@42
|
22427
|
Chris@42
|
22428
|
Chris@42
|
22429 PACKAGE='$PACKAGE'
|
Chris@42
|
22430 VERSION='$VERSION'
|
Chris@42
|
22431 TIMESTAMP='$TIMESTAMP'
|
Chris@42
|
22432 RM='$RM'
|
Chris@42
|
22433 ofile='$ofile'
|
Chris@42
|
22434
|
Chris@42
|
22435
|
Chris@42
|
22436
|
Chris@42
|
22437
|
Chris@42
|
22438
|
Chris@42
|
22439
|
Chris@42
|
22440 _ACEOF
|
Chris@42
|
22441
|
Chris@42
|
22442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
22443
|
Chris@42
|
22444 # Handling of arguments.
|
Chris@42
|
22445 for ac_config_target in $ac_config_targets
|
Chris@42
|
22446 do
|
Chris@42
|
22447 case $ac_config_target in
|
Chris@42
|
22448 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
Chris@42
|
22449 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
Chris@42
|
22450 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
Chris@42
|
22451 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
Chris@42
|
22452 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
|
Chris@42
|
22453 "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;;
|
Chris@42
|
22454 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
|
Chris@42
|
22455 "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;;
|
Chris@42
|
22456 "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;;
|
Chris@42
|
22457 "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;;
|
Chris@42
|
22458 "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;;
|
Chris@42
|
22459 "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;;
|
Chris@42
|
22460 "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;;
|
Chris@42
|
22461 "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;;
|
Chris@42
|
22462 "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;;
|
Chris@42
|
22463 "dft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx-128-fma/Makefile" ;;
|
Chris@42
|
22464 "dft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2/Makefile" ;;
|
Chris@42
|
22465 "dft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2-128/Makefile" ;;
|
Chris@42
|
22466 "dft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx512/Makefile" ;;
|
Chris@42
|
22467 "dft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/kcvi/Makefile" ;;
|
Chris@42
|
22468 "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;;
|
Chris@42
|
22469 "dft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/vsx/Makefile" ;;
|
Chris@42
|
22470 "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;;
|
Chris@42
|
22471 "dft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd128/Makefile" ;;
|
Chris@42
|
22472 "dft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd256/Makefile" ;;
|
Chris@42
|
22473 "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;;
|
Chris@42
|
22474 "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;;
|
Chris@42
|
22475 "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;;
|
Chris@42
|
22476 "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;;
|
Chris@42
|
22477 "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;;
|
Chris@42
|
22478 "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;;
|
Chris@42
|
22479 "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;;
|
Chris@42
|
22480 "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;;
|
Chris@42
|
22481 "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;;
|
Chris@42
|
22482 "rdft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx-128-fma/Makefile" ;;
|
Chris@42
|
22483 "rdft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2/Makefile" ;;
|
Chris@42
|
22484 "rdft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2-128/Makefile" ;;
|
Chris@42
|
22485 "rdft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx512/Makefile" ;;
|
Chris@42
|
22486 "rdft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/kcvi/Makefile" ;;
|
Chris@42
|
22487 "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;;
|
Chris@42
|
22488 "rdft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/vsx/Makefile" ;;
|
Chris@42
|
22489 "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;;
|
Chris@42
|
22490 "rdft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd128/Makefile" ;;
|
Chris@42
|
22491 "rdft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd256/Makefile" ;;
|
Chris@42
|
22492 "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;;
|
Chris@42
|
22493 "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;;
|
Chris@42
|
22494 "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;;
|
Chris@42
|
22495 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
|
Chris@42
|
22496 "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;;
|
Chris@42
|
22497 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
|
Chris@42
|
22498 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
Chris@42
|
22499 "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;;
|
Chris@42
|
22500 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
|
Chris@42
|
22501 "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;;
|
Chris@42
|
22502 "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;;
|
Chris@42
|
22503 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
|
Chris@42
|
22504 "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;;
|
Chris@42
|
22505
|
Chris@42
|
22506 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
Chris@42
|
22507 esac
|
Chris@42
|
22508 done
|
Chris@42
|
22509
|
Chris@42
|
22510
|
Chris@42
|
22511 # If the user did not use the arguments to specify the items to instantiate,
|
Chris@42
|
22512 # then the envvar interface is used. Set only those that are not.
|
Chris@42
|
22513 # We use the long form for the default assignment because of an extremely
|
Chris@42
|
22514 # bizarre bug on SunOS 4.1.3.
|
Chris@42
|
22515 if $ac_need_defaults; then
|
Chris@42
|
22516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
Chris@42
|
22517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
Chris@42
|
22518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
Chris@42
|
22519 fi
|
Chris@42
|
22520
|
Chris@42
|
22521 # Have a temporary directory for convenience. Make it in the build tree
|
Chris@42
|
22522 # simply because there is no reason against having it here, and in addition,
|
Chris@42
|
22523 # creating and moving files from /tmp can sometimes cause problems.
|
Chris@42
|
22524 # Hook for its removal unless debugging.
|
Chris@42
|
22525 # Note that there is a small window in which the directory will not be cleaned:
|
Chris@42
|
22526 # after its creation but before its name has been assigned to `$tmp'.
|
Chris@42
|
22527 $debug ||
|
Chris@42
|
22528 {
|
Chris@42
|
22529 tmp= ac_tmp=
|
Chris@42
|
22530 trap 'exit_status=$?
|
Chris@42
|
22531 : "${ac_tmp:=$tmp}"
|
Chris@42
|
22532 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
Chris@42
|
22533 ' 0
|
Chris@42
|
22534 trap 'as_fn_exit 1' 1 2 13 15
|
Chris@42
|
22535 }
|
Chris@42
|
22536 # Create a (secure) tmp directory for tmp files.
|
Chris@42
|
22537
|
Chris@42
|
22538 {
|
Chris@42
|
22539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
Chris@42
|
22540 test -d "$tmp"
|
Chris@42
|
22541 } ||
|
Chris@42
|
22542 {
|
Chris@42
|
22543 tmp=./conf$$-$RANDOM
|
Chris@42
|
22544 (umask 077 && mkdir "$tmp")
|
Chris@42
|
22545 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
Chris@42
|
22546 ac_tmp=$tmp
|
Chris@42
|
22547
|
Chris@42
|
22548 # Set up the scripts for CONFIG_FILES section.
|
Chris@42
|
22549 # No need to generate them if there are no CONFIG_FILES.
|
Chris@42
|
22550 # This happens for instance with `./config.status config.h'.
|
Chris@42
|
22551 if test -n "$CONFIG_FILES"; then
|
Chris@42
|
22552
|
Chris@42
|
22553
|
Chris@42
|
22554 ac_cr=`echo X | tr X '\015'`
|
Chris@42
|
22555 # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
Chris@42
|
22556 # But we know of no other shell where ac_cr would be empty at this
|
Chris@42
|
22557 # point, so we can use a bashism as a fallback.
|
Chris@42
|
22558 if test "x$ac_cr" = x; then
|
Chris@42
|
22559 eval ac_cr=\$\'\\r\'
|
Chris@42
|
22560 fi
|
Chris@42
|
22561 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
Chris@42
|
22562 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
Chris@42
|
22563 ac_cs_awk_cr='\\r'
|
Chris@42
|
22564 else
|
Chris@42
|
22565 ac_cs_awk_cr=$ac_cr
|
Chris@42
|
22566 fi
|
Chris@42
|
22567
|
Chris@42
|
22568 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
Chris@42
|
22569 _ACEOF
|
Chris@42
|
22570
|
Chris@42
|
22571
|
Chris@42
|
22572 {
|
Chris@42
|
22573 echo "cat >conf$$subs.awk <<_ACEOF" &&
|
Chris@42
|
22574 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
Chris@42
|
22575 echo "_ACEOF"
|
Chris@42
|
22576 } >conf$$subs.sh ||
|
Chris@42
|
22577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
Chris@42
|
22578 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
Chris@42
|
22579 ac_delim='%!_!# '
|
Chris@42
|
22580 for ac_last_try in false false false false false :; do
|
Chris@42
|
22581 . ./conf$$subs.sh ||
|
Chris@42
|
22582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
Chris@42
|
22583
|
Chris@42
|
22584 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
Chris@42
|
22585 if test $ac_delim_n = $ac_delim_num; then
|
Chris@42
|
22586 break
|
Chris@42
|
22587 elif $ac_last_try; then
|
Chris@42
|
22588 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
Chris@42
|
22589 else
|
Chris@42
|
22590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
Chris@42
|
22591 fi
|
Chris@42
|
22592 done
|
Chris@42
|
22593 rm -f conf$$subs.sh
|
Chris@42
|
22594
|
Chris@42
|
22595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
Chris@42
|
22596 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
Chris@42
|
22597 _ACEOF
|
Chris@42
|
22598 sed -n '
|
Chris@42
|
22599 h
|
Chris@42
|
22600 s/^/S["/; s/!.*/"]=/
|
Chris@42
|
22601 p
|
Chris@42
|
22602 g
|
Chris@42
|
22603 s/^[^!]*!//
|
Chris@42
|
22604 :repl
|
Chris@42
|
22605 t repl
|
Chris@42
|
22606 s/'"$ac_delim"'$//
|
Chris@42
|
22607 t delim
|
Chris@42
|
22608 :nl
|
Chris@42
|
22609 h
|
Chris@42
|
22610 s/\(.\{148\}\)..*/\1/
|
Chris@42
|
22611 t more1
|
Chris@42
|
22612 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
Chris@42
|
22613 p
|
Chris@42
|
22614 n
|
Chris@42
|
22615 b repl
|
Chris@42
|
22616 :more1
|
Chris@42
|
22617 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
Chris@42
|
22618 p
|
Chris@42
|
22619 g
|
Chris@42
|
22620 s/.\{148\}//
|
Chris@42
|
22621 t nl
|
Chris@42
|
22622 :delim
|
Chris@42
|
22623 h
|
Chris@42
|
22624 s/\(.\{148\}\)..*/\1/
|
Chris@42
|
22625 t more2
|
Chris@42
|
22626 s/["\\]/\\&/g; s/^/"/; s/$/"/
|
Chris@42
|
22627 p
|
Chris@42
|
22628 b
|
Chris@42
|
22629 :more2
|
Chris@42
|
22630 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
Chris@42
|
22631 p
|
Chris@42
|
22632 g
|
Chris@42
|
22633 s/.\{148\}//
|
Chris@42
|
22634 t delim
|
Chris@42
|
22635 ' <conf$$subs.awk | sed '
|
Chris@42
|
22636 /^[^""]/{
|
Chris@42
|
22637 N
|
Chris@42
|
22638 s/\n//
|
Chris@42
|
22639 }
|
Chris@42
|
22640 ' >>$CONFIG_STATUS || ac_write_fail=1
|
Chris@42
|
22641 rm -f conf$$subs.awk
|
Chris@42
|
22642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
Chris@42
|
22643 _ACAWK
|
Chris@42
|
22644 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
Chris@42
|
22645 for (key in S) S_is_set[key] = 1
|
Chris@42
|
22646 FS = ""
|
Chris@42
|
22647
|
Chris@42
|
22648 }
|
Chris@42
|
22649 {
|
Chris@42
|
22650 line = $ 0
|
Chris@42
|
22651 nfields = split(line, field, "@")
|
Chris@42
|
22652 substed = 0
|
Chris@42
|
22653 len = length(field[1])
|
Chris@42
|
22654 for (i = 2; i < nfields; i++) {
|
Chris@42
|
22655 key = field[i]
|
Chris@42
|
22656 keylen = length(key)
|
Chris@42
|
22657 if (S_is_set[key]) {
|
Chris@42
|
22658 value = S[key]
|
Chris@42
|
22659 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
Chris@42
|
22660 len += length(value) + length(field[++i])
|
Chris@42
|
22661 substed = 1
|
Chris@42
|
22662 } else
|
Chris@42
|
22663 len += 1 + keylen
|
Chris@42
|
22664 }
|
Chris@42
|
22665
|
Chris@42
|
22666 print line
|
Chris@42
|
22667 }
|
Chris@42
|
22668
|
Chris@42
|
22669 _ACAWK
|
Chris@42
|
22670 _ACEOF
|
Chris@42
|
22671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
22672 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
Chris@42
|
22673 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
Chris@42
|
22674 else
|
Chris@42
|
22675 cat
|
Chris@42
|
22676 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
Chris@42
|
22677 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
Chris@42
|
22678 _ACEOF
|
Chris@42
|
22679
|
Chris@42
|
22680 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
Chris@42
|
22681 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
Chris@42
|
22682 # trailing colons and then remove the whole line if VPATH becomes empty
|
Chris@42
|
22683 # (actually we leave an empty line to preserve line numbers).
|
Chris@42
|
22684 if test "x$srcdir" = x.; then
|
Chris@42
|
22685 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
Chris@42
|
22686 h
|
Chris@42
|
22687 s///
|
Chris@42
|
22688 s/^/:/
|
Chris@42
|
22689 s/[ ]*$/:/
|
Chris@42
|
22690 s/:\$(srcdir):/:/g
|
Chris@42
|
22691 s/:\${srcdir}:/:/g
|
Chris@42
|
22692 s/:@srcdir@:/:/g
|
Chris@42
|
22693 s/^:*//
|
Chris@42
|
22694 s/:*$//
|
Chris@42
|
22695 x
|
Chris@42
|
22696 s/\(=[ ]*\).*/\1/
|
Chris@42
|
22697 G
|
Chris@42
|
22698 s/\n//
|
Chris@42
|
22699 s/^[^=]*=[ ]*$//
|
Chris@42
|
22700 }'
|
Chris@42
|
22701 fi
|
Chris@42
|
22702
|
Chris@42
|
22703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
22704 fi # test -n "$CONFIG_FILES"
|
Chris@42
|
22705
|
Chris@42
|
22706 # Set up the scripts for CONFIG_HEADERS section.
|
Chris@42
|
22707 # No need to generate them if there are no CONFIG_HEADERS.
|
Chris@42
|
22708 # This happens for instance with `./config.status Makefile'.
|
Chris@42
|
22709 if test -n "$CONFIG_HEADERS"; then
|
Chris@42
|
22710 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
Chris@42
|
22711 BEGIN {
|
Chris@42
|
22712 _ACEOF
|
Chris@42
|
22713
|
Chris@42
|
22714 # Transform confdefs.h into an awk script `defines.awk', embedded as
|
Chris@42
|
22715 # here-document in config.status, that substitutes the proper values into
|
Chris@42
|
22716 # config.h.in to produce config.h.
|
Chris@42
|
22717
|
Chris@42
|
22718 # Create a delimiter string that does not exist in confdefs.h, to ease
|
Chris@42
|
22719 # handling of long lines.
|
Chris@42
|
22720 ac_delim='%!_!# '
|
Chris@42
|
22721 for ac_last_try in false false :; do
|
Chris@42
|
22722 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
Chris@42
|
22723 if test -z "$ac_tt"; then
|
Chris@42
|
22724 break
|
Chris@42
|
22725 elif $ac_last_try; then
|
Chris@42
|
22726 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
Chris@42
|
22727 else
|
Chris@42
|
22728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
Chris@42
|
22729 fi
|
Chris@42
|
22730 done
|
Chris@42
|
22731
|
Chris@42
|
22732 # For the awk script, D is an array of macro values keyed by name,
|
Chris@42
|
22733 # likewise P contains macro parameters if any. Preserve backslash
|
Chris@42
|
22734 # newline sequences.
|
Chris@42
|
22735
|
Chris@42
|
22736 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
Chris@42
|
22737 sed -n '
|
Chris@42
|
22738 s/.\{148\}/&'"$ac_delim"'/g
|
Chris@42
|
22739 t rset
|
Chris@42
|
22740 :rset
|
Chris@42
|
22741 s/^[ ]*#[ ]*define[ ][ ]*/ /
|
Chris@42
|
22742 t def
|
Chris@42
|
22743 d
|
Chris@42
|
22744 :def
|
Chris@42
|
22745 s/\\$//
|
Chris@42
|
22746 t bsnl
|
Chris@42
|
22747 s/["\\]/\\&/g
|
Chris@42
|
22748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
Chris@42
|
22749 D["\1"]=" \3"/p
|
Chris@42
|
22750 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
Chris@42
|
22751 d
|
Chris@42
|
22752 :bsnl
|
Chris@42
|
22753 s/["\\]/\\&/g
|
Chris@42
|
22754 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
Chris@42
|
22755 D["\1"]=" \3\\\\\\n"\\/p
|
Chris@42
|
22756 t cont
|
Chris@42
|
22757 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
Chris@42
|
22758 t cont
|
Chris@42
|
22759 d
|
Chris@42
|
22760 :cont
|
Chris@42
|
22761 n
|
Chris@42
|
22762 s/.\{148\}/&'"$ac_delim"'/g
|
Chris@42
|
22763 t clear
|
Chris@42
|
22764 :clear
|
Chris@42
|
22765 s/\\$//
|
Chris@42
|
22766 t bsnlc
|
Chris@42
|
22767 s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
Chris@42
|
22768 d
|
Chris@42
|
22769 :bsnlc
|
Chris@42
|
22770 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
Chris@42
|
22771 b cont
|
Chris@42
|
22772 ' <confdefs.h | sed '
|
Chris@42
|
22773 s/'"$ac_delim"'/"\\\
|
Chris@42
|
22774 "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
Chris@42
|
22775
|
Chris@42
|
22776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
Chris@42
|
22777 for (key in D) D_is_set[key] = 1
|
Chris@42
|
22778 FS = ""
|
Chris@42
|
22779 }
|
Chris@42
|
22780 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
Chris@42
|
22781 line = \$ 0
|
Chris@42
|
22782 split(line, arg, " ")
|
Chris@42
|
22783 if (arg[1] == "#") {
|
Chris@42
|
22784 defundef = arg[2]
|
Chris@42
|
22785 mac1 = arg[3]
|
Chris@42
|
22786 } else {
|
Chris@42
|
22787 defundef = substr(arg[1], 2)
|
Chris@42
|
22788 mac1 = arg[2]
|
Chris@42
|
22789 }
|
Chris@42
|
22790 split(mac1, mac2, "(") #)
|
Chris@42
|
22791 macro = mac2[1]
|
Chris@42
|
22792 prefix = substr(line, 1, index(line, defundef) - 1)
|
Chris@42
|
22793 if (D_is_set[macro]) {
|
Chris@42
|
22794 # Preserve the white space surrounding the "#".
|
Chris@42
|
22795 print prefix "define", macro P[macro] D[macro]
|
Chris@42
|
22796 next
|
Chris@42
|
22797 } else {
|
Chris@42
|
22798 # Replace #undef with comments. This is necessary, for example,
|
Chris@42
|
22799 # in the case of _POSIX_SOURCE, which is predefined and required
|
Chris@42
|
22800 # on some systems where configure will not decide to define it.
|
Chris@42
|
22801 if (defundef == "undef") {
|
Chris@42
|
22802 print "/*", prefix defundef, macro, "*/"
|
Chris@42
|
22803 next
|
Chris@42
|
22804 }
|
Chris@42
|
22805 }
|
Chris@42
|
22806 }
|
Chris@42
|
22807 { print }
|
Chris@42
|
22808 _ACAWK
|
Chris@42
|
22809 _ACEOF
|
Chris@42
|
22810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
22811 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
Chris@42
|
22812 fi # test -n "$CONFIG_HEADERS"
|
Chris@42
|
22813
|
Chris@42
|
22814
|
Chris@42
|
22815 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
Chris@42
|
22816 shift
|
Chris@42
|
22817 for ac_tag
|
Chris@42
|
22818 do
|
Chris@42
|
22819 case $ac_tag in
|
Chris@42
|
22820 :[FHLC]) ac_mode=$ac_tag; continue;;
|
Chris@42
|
22821 esac
|
Chris@42
|
22822 case $ac_mode$ac_tag in
|
Chris@42
|
22823 :[FHL]*:*);;
|
Chris@42
|
22824 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
Chris@42
|
22825 :[FH]-) ac_tag=-:-;;
|
Chris@42
|
22826 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
Chris@42
|
22827 esac
|
Chris@42
|
22828 ac_save_IFS=$IFS
|
Chris@42
|
22829 IFS=:
|
Chris@42
|
22830 set x $ac_tag
|
Chris@42
|
22831 IFS=$ac_save_IFS
|
Chris@42
|
22832 shift
|
Chris@42
|
22833 ac_file=$1
|
Chris@42
|
22834 shift
|
Chris@42
|
22835
|
Chris@42
|
22836 case $ac_mode in
|
Chris@42
|
22837 :L) ac_source=$1;;
|
Chris@42
|
22838 :[FH])
|
Chris@42
|
22839 ac_file_inputs=
|
Chris@42
|
22840 for ac_f
|
Chris@42
|
22841 do
|
Chris@42
|
22842 case $ac_f in
|
Chris@42
|
22843 -) ac_f="$ac_tmp/stdin";;
|
Chris@42
|
22844 *) # Look for the file first in the build tree, then in the source tree
|
Chris@42
|
22845 # (if the path is not absolute). The absolute path cannot be DOS-style,
|
Chris@42
|
22846 # because $ac_f cannot contain `:'.
|
Chris@42
|
22847 test -f "$ac_f" ||
|
Chris@42
|
22848 case $ac_f in
|
Chris@42
|
22849 [\\/$]*) false;;
|
Chris@42
|
22850 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
Chris@42
|
22851 esac ||
|
Chris@42
|
22852 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
Chris@42
|
22853 esac
|
Chris@42
|
22854 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
Chris@42
|
22855 as_fn_append ac_file_inputs " '$ac_f'"
|
Chris@42
|
22856 done
|
Chris@42
|
22857
|
Chris@42
|
22858 # Let's still pretend it is `configure' which instantiates (i.e., don't
|
Chris@42
|
22859 # use $as_me), people would be surprised to read:
|
Chris@42
|
22860 # /* config.h. Generated by config.status. */
|
Chris@42
|
22861 configure_input='Generated from '`
|
Chris@42
|
22862 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
Chris@42
|
22863 `' by configure.'
|
Chris@42
|
22864 if test x"$ac_file" != x-; then
|
Chris@42
|
22865 configure_input="$ac_file. $configure_input"
|
Chris@42
|
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
Chris@42
|
22867 $as_echo "$as_me: creating $ac_file" >&6;}
|
Chris@42
|
22868 fi
|
Chris@42
|
22869 # Neutralize special characters interpreted by sed in replacement strings.
|
Chris@42
|
22870 case $configure_input in #(
|
Chris@42
|
22871 *\&* | *\|* | *\\* )
|
Chris@42
|
22872 ac_sed_conf_input=`$as_echo "$configure_input" |
|
Chris@42
|
22873 sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
Chris@42
|
22874 *) ac_sed_conf_input=$configure_input;;
|
Chris@42
|
22875 esac
|
Chris@42
|
22876
|
Chris@42
|
22877 case $ac_tag in
|
Chris@42
|
22878 *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
Chris@42
|
22879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
Chris@42
|
22880 esac
|
Chris@42
|
22881 ;;
|
Chris@42
|
22882 esac
|
Chris@42
|
22883
|
Chris@42
|
22884 ac_dir=`$as_dirname -- "$ac_file" ||
|
Chris@42
|
22885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
Chris@42
|
22886 X"$ac_file" : 'X\(//\)[^/]' \| \
|
Chris@42
|
22887 X"$ac_file" : 'X\(//\)$' \| \
|
Chris@42
|
22888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
Chris@42
|
22889 $as_echo X"$ac_file" |
|
Chris@42
|
22890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
Chris@42
|
22891 s//\1/
|
Chris@42
|
22892 q
|
Chris@42
|
22893 }
|
Chris@42
|
22894 /^X\(\/\/\)[^/].*/{
|
Chris@42
|
22895 s//\1/
|
Chris@42
|
22896 q
|
Chris@42
|
22897 }
|
Chris@42
|
22898 /^X\(\/\/\)$/{
|
Chris@42
|
22899 s//\1/
|
Chris@42
|
22900 q
|
Chris@42
|
22901 }
|
Chris@42
|
22902 /^X\(\/\).*/{
|
Chris@42
|
22903 s//\1/
|
Chris@42
|
22904 q
|
Chris@42
|
22905 }
|
Chris@42
|
22906 s/.*/./; q'`
|
Chris@42
|
22907 as_dir="$ac_dir"; as_fn_mkdir_p
|
Chris@42
|
22908 ac_builddir=.
|
Chris@42
|
22909
|
Chris@42
|
22910 case "$ac_dir" in
|
Chris@42
|
22911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
Chris@42
|
22912 *)
|
Chris@42
|
22913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
Chris@42
|
22914 # A ".." for each directory in $ac_dir_suffix.
|
Chris@42
|
22915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
Chris@42
|
22916 case $ac_top_builddir_sub in
|
Chris@42
|
22917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
Chris@42
|
22918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
Chris@42
|
22919 esac ;;
|
Chris@42
|
22920 esac
|
Chris@42
|
22921 ac_abs_top_builddir=$ac_pwd
|
Chris@42
|
22922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
Chris@42
|
22923 # for backward compatibility:
|
Chris@42
|
22924 ac_top_builddir=$ac_top_build_prefix
|
Chris@42
|
22925
|
Chris@42
|
22926 case $srcdir in
|
Chris@42
|
22927 .) # We are building in place.
|
Chris@42
|
22928 ac_srcdir=.
|
Chris@42
|
22929 ac_top_srcdir=$ac_top_builddir_sub
|
Chris@42
|
22930 ac_abs_top_srcdir=$ac_pwd ;;
|
Chris@42
|
22931 [\\/]* | ?:[\\/]* ) # Absolute name.
|
Chris@42
|
22932 ac_srcdir=$srcdir$ac_dir_suffix;
|
Chris@42
|
22933 ac_top_srcdir=$srcdir
|
Chris@42
|
22934 ac_abs_top_srcdir=$srcdir ;;
|
Chris@42
|
22935 *) # Relative name.
|
Chris@42
|
22936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
Chris@42
|
22937 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
Chris@42
|
22938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
Chris@42
|
22939 esac
|
Chris@42
|
22940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
Chris@42
|
22941
|
Chris@42
|
22942
|
Chris@42
|
22943 case $ac_mode in
|
Chris@42
|
22944 :F)
|
Chris@42
|
22945 #
|
Chris@42
|
22946 # CONFIG_FILE
|
Chris@42
|
22947 #
|
Chris@42
|
22948
|
Chris@42
|
22949 case $INSTALL in
|
Chris@42
|
22950 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
Chris@42
|
22951 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
Chris@42
|
22952 esac
|
Chris@42
|
22953 ac_MKDIR_P=$MKDIR_P
|
Chris@42
|
22954 case $MKDIR_P in
|
Chris@42
|
22955 [\\/$]* | ?:[\\/]* ) ;;
|
Chris@42
|
22956 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
Chris@42
|
22957 esac
|
Chris@42
|
22958 _ACEOF
|
Chris@42
|
22959
|
Chris@42
|
22960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
22961 # If the template does not know about datarootdir, expand it.
|
Chris@42
|
22962 # FIXME: This hack should be removed a few years after 2.60.
|
Chris@42
|
22963 ac_datarootdir_hack=; ac_datarootdir_seen=
|
Chris@42
|
22964 ac_sed_dataroot='
|
Chris@42
|
22965 /datarootdir/ {
|
Chris@42
|
22966 p
|
Chris@42
|
22967 q
|
Chris@42
|
22968 }
|
Chris@42
|
22969 /@datadir@/p
|
Chris@42
|
22970 /@docdir@/p
|
Chris@42
|
22971 /@infodir@/p
|
Chris@42
|
22972 /@localedir@/p
|
Chris@42
|
22973 /@mandir@/p'
|
Chris@42
|
22974 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
Chris@42
|
22975 *datarootdir*) ac_datarootdir_seen=yes;;
|
Chris@42
|
22976 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
Chris@42
|
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
Chris@42
|
22978 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
Chris@42
|
22979 _ACEOF
|
Chris@42
|
22980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
Chris@42
|
22981 ac_datarootdir_hack='
|
Chris@42
|
22982 s&@datadir@&$datadir&g
|
Chris@42
|
22983 s&@docdir@&$docdir&g
|
Chris@42
|
22984 s&@infodir@&$infodir&g
|
Chris@42
|
22985 s&@localedir@&$localedir&g
|
Chris@42
|
22986 s&@mandir@&$mandir&g
|
Chris@42
|
22987 s&\\\${datarootdir}&$datarootdir&g' ;;
|
Chris@42
|
22988 esac
|
Chris@42
|
22989 _ACEOF
|
Chris@42
|
22990
|
Chris@42
|
22991 # Neutralize VPATH when `$srcdir' = `.'.
|
Chris@42
|
22992 # Shell code in configure.ac might set extrasub.
|
Chris@42
|
22993 # FIXME: do we really want to maintain this feature?
|
Chris@42
|
22994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
Chris@42
|
22995 ac_sed_extra="$ac_vpsub
|
Chris@42
|
22996 $extrasub
|
Chris@42
|
22997 _ACEOF
|
Chris@42
|
22998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
Chris@42
|
22999 :t
|
Chris@42
|
23000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
Chris@42
|
23001 s|@configure_input@|$ac_sed_conf_input|;t t
|
Chris@42
|
23002 s&@top_builddir@&$ac_top_builddir_sub&;t t
|
Chris@42
|
23003 s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
Chris@42
|
23004 s&@srcdir@&$ac_srcdir&;t t
|
Chris@42
|
23005 s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
Chris@42
|
23006 s&@top_srcdir@&$ac_top_srcdir&;t t
|
Chris@42
|
23007 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
Chris@42
|
23008 s&@builddir@&$ac_builddir&;t t
|
Chris@42
|
23009 s&@abs_builddir@&$ac_abs_builddir&;t t
|
Chris@42
|
23010 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
Chris@42
|
23011 s&@INSTALL@&$ac_INSTALL&;t t
|
Chris@42
|
23012 s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
Chris@42
|
23013 $ac_datarootdir_hack
|
Chris@42
|
23014 "
|
Chris@42
|
23015 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
Chris@42
|
23016 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
Chris@42
|
23017
|
Chris@42
|
23018 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
Chris@42
|
23019 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
Chris@42
|
23020 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
Chris@42
|
23021 "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
Chris@42
|
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
Chris@42
|
23023 which seems to be undefined. Please make sure it is defined" >&5
|
Chris@42
|
23024 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
Chris@42
|
23025 which seems to be undefined. Please make sure it is defined" >&2;}
|
Chris@42
|
23026
|
Chris@42
|
23027 rm -f "$ac_tmp/stdin"
|
Chris@42
|
23028 case $ac_file in
|
Chris@42
|
23029 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
Chris@42
|
23030 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
Chris@42
|
23031 esac \
|
Chris@42
|
23032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
Chris@42
|
23033 ;;
|
Chris@42
|
23034 :H)
|
Chris@42
|
23035 #
|
Chris@42
|
23036 # CONFIG_HEADER
|
Chris@42
|
23037 #
|
Chris@42
|
23038 if test x"$ac_file" != x-; then
|
Chris@42
|
23039 {
|
Chris@42
|
23040 $as_echo "/* $configure_input */" \
|
Chris@42
|
23041 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
Chris@42
|
23042 } >"$ac_tmp/config.h" \
|
Chris@42
|
23043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
Chris@42
|
23044 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
Chris@42
|
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
Chris@42
|
23046 $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
Chris@42
|
23047 else
|
Chris@42
|
23048 rm -f "$ac_file"
|
Chris@42
|
23049 mv "$ac_tmp/config.h" "$ac_file" \
|
Chris@42
|
23050 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
Chris@42
|
23051 fi
|
Chris@42
|
23052 else
|
Chris@42
|
23053 $as_echo "/* $configure_input */" \
|
Chris@42
|
23054 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
Chris@42
|
23055 || as_fn_error $? "could not create -" "$LINENO" 5
|
Chris@42
|
23056 fi
|
Chris@42
|
23057 # Compute "$ac_file"'s index in $config_headers.
|
Chris@42
|
23058 _am_arg="$ac_file"
|
Chris@42
|
23059 _am_stamp_count=1
|
Chris@42
|
23060 for _am_header in $config_headers :; do
|
Chris@42
|
23061 case $_am_header in
|
Chris@42
|
23062 $_am_arg | $_am_arg:* )
|
Chris@42
|
23063 break ;;
|
Chris@42
|
23064 * )
|
Chris@42
|
23065 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
Chris@42
|
23066 esac
|
Chris@42
|
23067 done
|
Chris@42
|
23068 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
Chris@42
|
23069 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
Chris@42
|
23070 X"$_am_arg" : 'X\(//\)[^/]' \| \
|
Chris@42
|
23071 X"$_am_arg" : 'X\(//\)$' \| \
|
Chris@42
|
23072 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
Chris@42
|
23073 $as_echo X"$_am_arg" |
|
Chris@42
|
23074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
Chris@42
|
23075 s//\1/
|
Chris@42
|
23076 q
|
Chris@42
|
23077 }
|
Chris@42
|
23078 /^X\(\/\/\)[^/].*/{
|
Chris@42
|
23079 s//\1/
|
Chris@42
|
23080 q
|
Chris@42
|
23081 }
|
Chris@42
|
23082 /^X\(\/\/\)$/{
|
Chris@42
|
23083 s//\1/
|
Chris@42
|
23084 q
|
Chris@42
|
23085 }
|
Chris@42
|
23086 /^X\(\/\).*/{
|
Chris@42
|
23087 s//\1/
|
Chris@42
|
23088 q
|
Chris@42
|
23089 }
|
Chris@42
|
23090 s/.*/./; q'`/stamp-h$_am_stamp_count
|
Chris@42
|
23091 ;;
|
Chris@42
|
23092
|
Chris@42
|
23093 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
Chris@42
|
23094 $as_echo "$as_me: executing $ac_file commands" >&6;}
|
Chris@42
|
23095 ;;
|
Chris@42
|
23096 esac
|
Chris@42
|
23097
|
Chris@42
|
23098
|
Chris@42
|
23099 case $ac_file$ac_mode in
|
Chris@42
|
23100 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
|
Chris@42
|
23101 # Older Autoconf quotes --file arguments for eval, but not when files
|
Chris@42
|
23102 # are listed without --file. Let's play safe and only enable the eval
|
Chris@42
|
23103 # if we detect the quoting.
|
Chris@42
|
23104 case $CONFIG_FILES in
|
Chris@42
|
23105 *\'*) eval set x "$CONFIG_FILES" ;;
|
Chris@42
|
23106 *) set x $CONFIG_FILES ;;
|
Chris@42
|
23107 esac
|
Chris@42
|
23108 shift
|
Chris@42
|
23109 for mf
|
Chris@42
|
23110 do
|
Chris@42
|
23111 # Strip MF so we end up with the name of the file.
|
Chris@42
|
23112 mf=`echo "$mf" | sed -e 's/:.*$//'`
|
Chris@42
|
23113 # Check whether this is an Automake generated Makefile or not.
|
Chris@42
|
23114 # We used to match only the files named 'Makefile.in', but
|
Chris@42
|
23115 # some people rename them; so instead we look at the file content.
|
Chris@42
|
23116 # Grep'ing the first line is not enough: some people post-process
|
Chris@42
|
23117 # each Makefile.in and add a new line on top of each file to say so.
|
Chris@42
|
23118 # Grep'ing the whole file is not good either: AIX grep has a line
|
Chris@42
|
23119 # limit of 2048, but all sed's we know have understand at least 4000.
|
Chris@42
|
23120 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
Chris@42
|
23121 dirpart=`$as_dirname -- "$mf" ||
|
Chris@42
|
23122 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
Chris@42
|
23123 X"$mf" : 'X\(//\)[^/]' \| \
|
Chris@42
|
23124 X"$mf" : 'X\(//\)$' \| \
|
Chris@42
|
23125 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
Chris@42
|
23126 $as_echo X"$mf" |
|
Chris@42
|
23127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
Chris@42
|
23128 s//\1/
|
Chris@42
|
23129 q
|
Chris@42
|
23130 }
|
Chris@42
|
23131 /^X\(\/\/\)[^/].*/{
|
Chris@42
|
23132 s//\1/
|
Chris@42
|
23133 q
|
Chris@42
|
23134 }
|
Chris@42
|
23135 /^X\(\/\/\)$/{
|
Chris@42
|
23136 s//\1/
|
Chris@42
|
23137 q
|
Chris@42
|
23138 }
|
Chris@42
|
23139 /^X\(\/\).*/{
|
Chris@42
|
23140 s//\1/
|
Chris@42
|
23141 q
|
Chris@42
|
23142 }
|
Chris@42
|
23143 s/.*/./; q'`
|
Chris@42
|
23144 else
|
Chris@42
|
23145 continue
|
Chris@42
|
23146 fi
|
Chris@42
|
23147 # Extract the definition of DEPDIR, am__include, and am__quote
|
Chris@42
|
23148 # from the Makefile without running 'make'.
|
Chris@42
|
23149 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
Chris@42
|
23150 test -z "$DEPDIR" && continue
|
Chris@42
|
23151 am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
Chris@42
|
23152 test -z "$am__include" && continue
|
Chris@42
|
23153 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
Chris@42
|
23154 # Find all dependency output files, they are included files with
|
Chris@42
|
23155 # $(DEPDIR) in their names. We invoke sed twice because it is the
|
Chris@42
|
23156 # simplest approach to changing $(DEPDIR) to its actual value in the
|
Chris@42
|
23157 # expansion.
|
Chris@42
|
23158 for file in `sed -n "
|
Chris@42
|
23159 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
Chris@42
|
23160 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
Chris@42
|
23161 # Make sure the directory exists.
|
Chris@42
|
23162 test -f "$dirpart/$file" && continue
|
Chris@42
|
23163 fdir=`$as_dirname -- "$file" ||
|
Chris@42
|
23164 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
Chris@42
|
23165 X"$file" : 'X\(//\)[^/]' \| \
|
Chris@42
|
23166 X"$file" : 'X\(//\)$' \| \
|
Chris@42
|
23167 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
Chris@42
|
23168 $as_echo X"$file" |
|
Chris@42
|
23169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
Chris@42
|
23170 s//\1/
|
Chris@42
|
23171 q
|
Chris@42
|
23172 }
|
Chris@42
|
23173 /^X\(\/\/\)[^/].*/{
|
Chris@42
|
23174 s//\1/
|
Chris@42
|
23175 q
|
Chris@42
|
23176 }
|
Chris@42
|
23177 /^X\(\/\/\)$/{
|
Chris@42
|
23178 s//\1/
|
Chris@42
|
23179 q
|
Chris@42
|
23180 }
|
Chris@42
|
23181 /^X\(\/\).*/{
|
Chris@42
|
23182 s//\1/
|
Chris@42
|
23183 q
|
Chris@42
|
23184 }
|
Chris@42
|
23185 s/.*/./; q'`
|
Chris@42
|
23186 as_dir=$dirpart/$fdir; as_fn_mkdir_p
|
Chris@42
|
23187 # echo "creating $dirpart/$file"
|
Chris@42
|
23188 echo '# dummy' > "$dirpart/$file"
|
Chris@42
|
23189 done
|
Chris@42
|
23190 done
|
Chris@42
|
23191 }
|
Chris@42
|
23192 ;;
|
Chris@42
|
23193 "libtool":C)
|
Chris@42
|
23194
|
Chris@42
|
23195 # See if we are running on zsh, and set the options which allow our
|
Chris@42
|
23196 # commands through without removal of \ escapes.
|
Chris@42
|
23197 if test -n "${ZSH_VERSION+set}" ; then
|
Chris@42
|
23198 setopt NO_GLOB_SUBST
|
Chris@42
|
23199 fi
|
Chris@42
|
23200
|
Chris@42
|
23201 cfgfile="${ofile}T"
|
Chris@42
|
23202 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
Chris@42
|
23203 $RM "$cfgfile"
|
Chris@42
|
23204
|
Chris@42
|
23205 cat <<_LT_EOF >> "$cfgfile"
|
Chris@42
|
23206 #! $SHELL
|
Chris@42
|
23207
|
Chris@42
|
23208 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
Chris@42
|
23209 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
|
Chris@42
|
23210 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
Chris@42
|
23211 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
Chris@42
|
23212 #
|
Chris@42
|
23213 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
Chris@42
|
23214 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
Chris@42
|
23215 # Foundation, Inc.
|
Chris@42
|
23216 # Written by Gordon Matzigkeit, 1996
|
Chris@42
|
23217 #
|
Chris@42
|
23218 # This file is part of GNU Libtool.
|
Chris@42
|
23219 #
|
Chris@42
|
23220 # GNU Libtool is free software; you can redistribute it and/or
|
Chris@42
|
23221 # modify it under the terms of the GNU General Public License as
|
Chris@42
|
23222 # published by the Free Software Foundation; either version 2 of
|
Chris@42
|
23223 # the License, or (at your option) any later version.
|
Chris@42
|
23224 #
|
Chris@42
|
23225 # As a special exception to the GNU General Public License,
|
Chris@42
|
23226 # if you distribute this file as part of a program or library that
|
Chris@42
|
23227 # is built using GNU Libtool, you may include this file under the
|
Chris@42
|
23228 # same distribution terms that you use for the rest of that program.
|
Chris@42
|
23229 #
|
Chris@42
|
23230 # GNU Libtool is distributed in the hope that it will be useful,
|
Chris@42
|
23231 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Chris@42
|
23232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
Chris@42
|
23233 # GNU General Public License for more details.
|
Chris@42
|
23234 #
|
Chris@42
|
23235 # You should have received a copy of the GNU General Public License
|
Chris@42
|
23236 # along with GNU Libtool; see the file COPYING. If not, a copy
|
Chris@42
|
23237 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
|
Chris@42
|
23238 # obtained by writing to the Free Software Foundation, Inc.,
|
Chris@42
|
23239 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Chris@42
|
23240
|
Chris@42
|
23241
|
Chris@42
|
23242 # The names of the tagged configurations supported by this script.
|
Chris@42
|
23243 available_tags="F77 "
|
Chris@42
|
23244
|
Chris@42
|
23245 # ### BEGIN LIBTOOL CONFIG
|
Chris@42
|
23246
|
Chris@42
|
23247 # Whether or not to build shared libraries.
|
Chris@42
|
23248 build_libtool_libs=$enable_shared
|
Chris@42
|
23249
|
Chris@42
|
23250 # Assembler program.
|
Chris@42
|
23251 AS=$lt_AS
|
Chris@42
|
23252
|
Chris@42
|
23253 # DLL creation program.
|
Chris@42
|
23254 DLLTOOL=$lt_DLLTOOL
|
Chris@42
|
23255
|
Chris@42
|
23256 # Object dumper program.
|
Chris@42
|
23257 OBJDUMP=$lt_OBJDUMP
|
Chris@42
|
23258
|
Chris@42
|
23259 # Which release of libtool.m4 was used?
|
Chris@42
|
23260 macro_version=$macro_version
|
Chris@42
|
23261 macro_revision=$macro_revision
|
Chris@42
|
23262
|
Chris@42
|
23263 # Whether or not to build static libraries.
|
Chris@42
|
23264 build_old_libs=$enable_static
|
Chris@42
|
23265
|
Chris@42
|
23266 # What type of objects to build.
|
Chris@42
|
23267 pic_mode=$pic_mode
|
Chris@42
|
23268
|
Chris@42
|
23269 # Whether or not to optimize for fast installation.
|
Chris@42
|
23270 fast_install=$enable_fast_install
|
Chris@42
|
23271
|
Chris@42
|
23272 # Shell to use when invoking shell scripts.
|
Chris@42
|
23273 SHELL=$lt_SHELL
|
Chris@42
|
23274
|
Chris@42
|
23275 # An echo program that protects backslashes.
|
Chris@42
|
23276 ECHO=$lt_ECHO
|
Chris@42
|
23277
|
Chris@42
|
23278 # The PATH separator for the build system.
|
Chris@42
|
23279 PATH_SEPARATOR=$lt_PATH_SEPARATOR
|
Chris@42
|
23280
|
Chris@42
|
23281 # The host system.
|
Chris@42
|
23282 host_alias=$host_alias
|
Chris@42
|
23283 host=$host
|
Chris@42
|
23284 host_os=$host_os
|
Chris@42
|
23285
|
Chris@42
|
23286 # The build system.
|
Chris@42
|
23287 build_alias=$build_alias
|
Chris@42
|
23288 build=$build
|
Chris@42
|
23289 build_os=$build_os
|
Chris@42
|
23290
|
Chris@42
|
23291 # A sed program that does not truncate output.
|
Chris@42
|
23292 SED=$lt_SED
|
Chris@42
|
23293
|
Chris@42
|
23294 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
Chris@42
|
23295 Xsed="\$SED -e 1s/^X//"
|
Chris@42
|
23296
|
Chris@42
|
23297 # A grep program that handles long lines.
|
Chris@42
|
23298 GREP=$lt_GREP
|
Chris@42
|
23299
|
Chris@42
|
23300 # An ERE matcher.
|
Chris@42
|
23301 EGREP=$lt_EGREP
|
Chris@42
|
23302
|
Chris@42
|
23303 # A literal string matcher.
|
Chris@42
|
23304 FGREP=$lt_FGREP
|
Chris@42
|
23305
|
Chris@42
|
23306 # A BSD- or MS-compatible name lister.
|
Chris@42
|
23307 NM=$lt_NM
|
Chris@42
|
23308
|
Chris@42
|
23309 # Whether we need soft or hard links.
|
Chris@42
|
23310 LN_S=$lt_LN_S
|
Chris@42
|
23311
|
Chris@42
|
23312 # What is the maximum length of a command?
|
Chris@42
|
23313 max_cmd_len=$max_cmd_len
|
Chris@42
|
23314
|
Chris@42
|
23315 # Object file suffix (normally "o").
|
Chris@42
|
23316 objext=$ac_objext
|
Chris@42
|
23317
|
Chris@42
|
23318 # Executable file suffix (normally "").
|
Chris@42
|
23319 exeext=$exeext
|
Chris@42
|
23320
|
Chris@42
|
23321 # whether the shell understands "unset".
|
Chris@42
|
23322 lt_unset=$lt_unset
|
Chris@42
|
23323
|
Chris@42
|
23324 # turn spaces into newlines.
|
Chris@42
|
23325 SP2NL=$lt_lt_SP2NL
|
Chris@42
|
23326
|
Chris@42
|
23327 # turn newlines into spaces.
|
Chris@42
|
23328 NL2SP=$lt_lt_NL2SP
|
Chris@42
|
23329
|
Chris@42
|
23330 # convert \$build file names to \$host format.
|
Chris@42
|
23331 to_host_file_cmd=$lt_cv_to_host_file_cmd
|
Chris@42
|
23332
|
Chris@42
|
23333 # convert \$build files to toolchain format.
|
Chris@42
|
23334 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
Chris@42
|
23335
|
Chris@42
|
23336 # Method to check whether dependent libraries are shared objects.
|
Chris@42
|
23337 deplibs_check_method=$lt_deplibs_check_method
|
Chris@42
|
23338
|
Chris@42
|
23339 # Command to use when deplibs_check_method = "file_magic".
|
Chris@42
|
23340 file_magic_cmd=$lt_file_magic_cmd
|
Chris@42
|
23341
|
Chris@42
|
23342 # How to find potential files when deplibs_check_method = "file_magic".
|
Chris@42
|
23343 file_magic_glob=$lt_file_magic_glob
|
Chris@42
|
23344
|
Chris@42
|
23345 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
Chris@42
|
23346 want_nocaseglob=$lt_want_nocaseglob
|
Chris@42
|
23347
|
Chris@42
|
23348 # Command to associate shared and link libraries.
|
Chris@42
|
23349 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
Chris@42
|
23350
|
Chris@42
|
23351 # The archiver.
|
Chris@42
|
23352 AR=$lt_AR
|
Chris@42
|
23353
|
Chris@42
|
23354 # Flags to create an archive.
|
Chris@42
|
23355 AR_FLAGS=$lt_AR_FLAGS
|
Chris@42
|
23356
|
Chris@42
|
23357 # How to feed a file listing to the archiver.
|
Chris@42
|
23358 archiver_list_spec=$lt_archiver_list_spec
|
Chris@42
|
23359
|
Chris@42
|
23360 # A symbol stripping program.
|
Chris@42
|
23361 STRIP=$lt_STRIP
|
Chris@42
|
23362
|
Chris@42
|
23363 # Commands used to install an old-style archive.
|
Chris@42
|
23364 RANLIB=$lt_RANLIB
|
Chris@42
|
23365 old_postinstall_cmds=$lt_old_postinstall_cmds
|
Chris@42
|
23366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
Chris@42
|
23367
|
Chris@42
|
23368 # Whether to use a lock for old archive extraction.
|
Chris@42
|
23369 lock_old_archive_extraction=$lock_old_archive_extraction
|
Chris@42
|
23370
|
Chris@42
|
23371 # A C compiler.
|
Chris@42
|
23372 LTCC=$lt_CC
|
Chris@42
|
23373
|
Chris@42
|
23374 # LTCC compiler flags.
|
Chris@42
|
23375 LTCFLAGS=$lt_CFLAGS
|
Chris@42
|
23376
|
Chris@42
|
23377 # Take the output of nm and produce a listing of raw symbols and C names.
|
Chris@42
|
23378 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
Chris@42
|
23379
|
Chris@42
|
23380 # Transform the output of nm in a proper C declaration.
|
Chris@42
|
23381 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
Chris@42
|
23382
|
Chris@42
|
23383 # Transform the output of nm in a C name address pair.
|
Chris@42
|
23384 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
Chris@42
|
23385
|
Chris@42
|
23386 # Transform the output of nm in a C name address pair when lib prefix is needed.
|
Chris@42
|
23387 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
Chris@42
|
23388
|
Chris@42
|
23389 # Specify filename containing input files for \$NM.
|
Chris@42
|
23390 nm_file_list_spec=$lt_nm_file_list_spec
|
Chris@42
|
23391
|
Chris@42
|
23392 # The root where to search for dependent libraries,and in which our libraries should be installed.
|
Chris@42
|
23393 lt_sysroot=$lt_sysroot
|
Chris@42
|
23394
|
Chris@42
|
23395 # The name of the directory that contains temporary libtool files.
|
Chris@42
|
23396 objdir=$objdir
|
Chris@42
|
23397
|
Chris@42
|
23398 # Used to examine libraries when file_magic_cmd begins with "file".
|
Chris@42
|
23399 MAGIC_CMD=$MAGIC_CMD
|
Chris@42
|
23400
|
Chris@42
|
23401 # Must we lock files when doing compilation?
|
Chris@42
|
23402 need_locks=$lt_need_locks
|
Chris@42
|
23403
|
Chris@42
|
23404 # Manifest tool.
|
Chris@42
|
23405 MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
Chris@42
|
23406
|
Chris@42
|
23407 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
Chris@42
|
23408 DSYMUTIL=$lt_DSYMUTIL
|
Chris@42
|
23409
|
Chris@42
|
23410 # Tool to change global to local symbols on Mac OS X.
|
Chris@42
|
23411 NMEDIT=$lt_NMEDIT
|
Chris@42
|
23412
|
Chris@42
|
23413 # Tool to manipulate fat objects and archives on Mac OS X.
|
Chris@42
|
23414 LIPO=$lt_LIPO
|
Chris@42
|
23415
|
Chris@42
|
23416 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
Chris@42
|
23417 OTOOL=$lt_OTOOL
|
Chris@42
|
23418
|
Chris@42
|
23419 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
Chris@42
|
23420 OTOOL64=$lt_OTOOL64
|
Chris@42
|
23421
|
Chris@42
|
23422 # Old archive suffix (normally "a").
|
Chris@42
|
23423 libext=$libext
|
Chris@42
|
23424
|
Chris@42
|
23425 # Shared library suffix (normally ".so").
|
Chris@42
|
23426 shrext_cmds=$lt_shrext_cmds
|
Chris@42
|
23427
|
Chris@42
|
23428 # The commands to extract the exported symbol list from a shared archive.
|
Chris@42
|
23429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
Chris@42
|
23430
|
Chris@42
|
23431 # Variables whose values should be saved in libtool wrapper scripts and
|
Chris@42
|
23432 # restored at link time.
|
Chris@42
|
23433 variables_saved_for_relink=$lt_variables_saved_for_relink
|
Chris@42
|
23434
|
Chris@42
|
23435 # Do we need the "lib" prefix for modules?
|
Chris@42
|
23436 need_lib_prefix=$need_lib_prefix
|
Chris@42
|
23437
|
Chris@42
|
23438 # Do we need a version for libraries?
|
Chris@42
|
23439 need_version=$need_version
|
Chris@42
|
23440
|
Chris@42
|
23441 # Library versioning type.
|
Chris@42
|
23442 version_type=$version_type
|
Chris@42
|
23443
|
Chris@42
|
23444 # Shared library runtime path variable.
|
Chris@42
|
23445 runpath_var=$runpath_var
|
Chris@42
|
23446
|
Chris@42
|
23447 # Shared library path variable.
|
Chris@42
|
23448 shlibpath_var=$shlibpath_var
|
Chris@42
|
23449
|
Chris@42
|
23450 # Is shlibpath searched before the hard-coded library search path?
|
Chris@42
|
23451 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
Chris@42
|
23452
|
Chris@42
|
23453 # Format of library name prefix.
|
Chris@42
|
23454 libname_spec=$lt_libname_spec
|
Chris@42
|
23455
|
Chris@42
|
23456 # List of archive names. First name is the real one, the rest are links.
|
Chris@42
|
23457 # The last name is the one that the linker finds with -lNAME
|
Chris@42
|
23458 library_names_spec=$lt_library_names_spec
|
Chris@42
|
23459
|
Chris@42
|
23460 # The coded name of the library, if different from the real name.
|
Chris@42
|
23461 soname_spec=$lt_soname_spec
|
Chris@42
|
23462
|
Chris@42
|
23463 # Permission mode override for installation of shared libraries.
|
Chris@42
|
23464 install_override_mode=$lt_install_override_mode
|
Chris@42
|
23465
|
Chris@42
|
23466 # Command to use after installation of a shared archive.
|
Chris@42
|
23467 postinstall_cmds=$lt_postinstall_cmds
|
Chris@42
|
23468
|
Chris@42
|
23469 # Command to use after uninstallation of a shared archive.
|
Chris@42
|
23470 postuninstall_cmds=$lt_postuninstall_cmds
|
Chris@42
|
23471
|
Chris@42
|
23472 # Commands used to finish a libtool library installation in a directory.
|
Chris@42
|
23473 finish_cmds=$lt_finish_cmds
|
Chris@42
|
23474
|
Chris@42
|
23475 # As "finish_cmds", except a single script fragment to be evaled but
|
Chris@42
|
23476 # not shown.
|
Chris@42
|
23477 finish_eval=$lt_finish_eval
|
Chris@42
|
23478
|
Chris@42
|
23479 # Whether we should hardcode library paths into libraries.
|
Chris@42
|
23480 hardcode_into_libs=$hardcode_into_libs
|
Chris@42
|
23481
|
Chris@42
|
23482 # Compile-time system search path for libraries.
|
Chris@42
|
23483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
Chris@42
|
23484
|
Chris@42
|
23485 # Run-time system search path for libraries.
|
Chris@42
|
23486 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
Chris@42
|
23487
|
Chris@42
|
23488 # Whether dlopen is supported.
|
Chris@42
|
23489 dlopen_support=$enable_dlopen
|
Chris@42
|
23490
|
Chris@42
|
23491 # Whether dlopen of programs is supported.
|
Chris@42
|
23492 dlopen_self=$enable_dlopen_self
|
Chris@42
|
23493
|
Chris@42
|
23494 # Whether dlopen of statically linked programs is supported.
|
Chris@42
|
23495 dlopen_self_static=$enable_dlopen_self_static
|
Chris@42
|
23496
|
Chris@42
|
23497 # Commands to strip libraries.
|
Chris@42
|
23498 old_striplib=$lt_old_striplib
|
Chris@42
|
23499 striplib=$lt_striplib
|
Chris@42
|
23500
|
Chris@42
|
23501
|
Chris@42
|
23502 # The linker used to build libraries.
|
Chris@42
|
23503 LD=$lt_LD
|
Chris@42
|
23504
|
Chris@42
|
23505 # How to create reloadable object files.
|
Chris@42
|
23506 reload_flag=$lt_reload_flag
|
Chris@42
|
23507 reload_cmds=$lt_reload_cmds
|
Chris@42
|
23508
|
Chris@42
|
23509 # Commands used to build an old-style archive.
|
Chris@42
|
23510 old_archive_cmds=$lt_old_archive_cmds
|
Chris@42
|
23511
|
Chris@42
|
23512 # A language specific compiler.
|
Chris@42
|
23513 CC=$lt_compiler
|
Chris@42
|
23514
|
Chris@42
|
23515 # Is the compiler the GNU compiler?
|
Chris@42
|
23516 with_gcc=$GCC
|
Chris@42
|
23517
|
Chris@42
|
23518 # Compiler flag to turn off builtin functions.
|
Chris@42
|
23519 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
Chris@42
|
23520
|
Chris@42
|
23521 # Additional compiler flags for building library objects.
|
Chris@42
|
23522 pic_flag=$lt_lt_prog_compiler_pic
|
Chris@42
|
23523
|
Chris@42
|
23524 # How to pass a linker flag through the compiler.
|
Chris@42
|
23525 wl=$lt_lt_prog_compiler_wl
|
Chris@42
|
23526
|
Chris@42
|
23527 # Compiler flag to prevent dynamic linking.
|
Chris@42
|
23528 link_static_flag=$lt_lt_prog_compiler_static
|
Chris@42
|
23529
|
Chris@42
|
23530 # Does compiler simultaneously support -c and -o options?
|
Chris@42
|
23531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
Chris@42
|
23532
|
Chris@42
|
23533 # Whether or not to add -lc for building shared libraries.
|
Chris@42
|
23534 build_libtool_need_lc=$archive_cmds_need_lc
|
Chris@42
|
23535
|
Chris@42
|
23536 # Whether or not to disallow shared libs when runtime libs are static.
|
Chris@42
|
23537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
Chris@42
|
23538
|
Chris@42
|
23539 # Compiler flag to allow reflexive dlopens.
|
Chris@42
|
23540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
Chris@42
|
23541
|
Chris@42
|
23542 # Compiler flag to generate shared objects directly from archives.
|
Chris@42
|
23543 whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
Chris@42
|
23544
|
Chris@42
|
23545 # Whether the compiler copes with passing no objects directly.
|
Chris@42
|
23546 compiler_needs_object=$lt_compiler_needs_object
|
Chris@42
|
23547
|
Chris@42
|
23548 # Create an old-style archive from a shared archive.
|
Chris@42
|
23549 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
Chris@42
|
23550
|
Chris@42
|
23551 # Create a temporary old-style archive to link instead of a shared archive.
|
Chris@42
|
23552 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
Chris@42
|
23553
|
Chris@42
|
23554 # Commands used to build a shared archive.
|
Chris@42
|
23555 archive_cmds=$lt_archive_cmds
|
Chris@42
|
23556 archive_expsym_cmds=$lt_archive_expsym_cmds
|
Chris@42
|
23557
|
Chris@42
|
23558 # Commands used to build a loadable module if different from building
|
Chris@42
|
23559 # a shared archive.
|
Chris@42
|
23560 module_cmds=$lt_module_cmds
|
Chris@42
|
23561 module_expsym_cmds=$lt_module_expsym_cmds
|
Chris@42
|
23562
|
Chris@42
|
23563 # Whether we are building with GNU ld or not.
|
Chris@42
|
23564 with_gnu_ld=$lt_with_gnu_ld
|
Chris@42
|
23565
|
Chris@42
|
23566 # Flag that allows shared libraries with undefined symbols to be built.
|
Chris@42
|
23567 allow_undefined_flag=$lt_allow_undefined_flag
|
Chris@42
|
23568
|
Chris@42
|
23569 # Flag that enforces no undefined symbols.
|
Chris@42
|
23570 no_undefined_flag=$lt_no_undefined_flag
|
Chris@42
|
23571
|
Chris@42
|
23572 # Flag to hardcode \$libdir into a binary during linking.
|
Chris@42
|
23573 # This must work even if \$libdir does not exist
|
Chris@42
|
23574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
Chris@42
|
23575
|
Chris@42
|
23576 # Whether we need a single "-rpath" flag with a separated argument.
|
Chris@42
|
23577 hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
Chris@42
|
23578
|
Chris@42
|
23579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
Chris@42
|
23580 # DIR into the resulting binary.
|
Chris@42
|
23581 hardcode_direct=$hardcode_direct
|
Chris@42
|
23582
|
Chris@42
|
23583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
Chris@42
|
23584 # DIR into the resulting binary and the resulting library dependency is
|
Chris@42
|
23585 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
|
Chris@42
|
23586 # library is relocated.
|
Chris@42
|
23587 hardcode_direct_absolute=$hardcode_direct_absolute
|
Chris@42
|
23588
|
Chris@42
|
23589 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
Chris@42
|
23590 # into the resulting binary.
|
Chris@42
|
23591 hardcode_minus_L=$hardcode_minus_L
|
Chris@42
|
23592
|
Chris@42
|
23593 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
Chris@42
|
23594 # into the resulting binary.
|
Chris@42
|
23595 hardcode_shlibpath_var=$hardcode_shlibpath_var
|
Chris@42
|
23596
|
Chris@42
|
23597 # Set to "yes" if building a shared library automatically hardcodes DIR
|
Chris@42
|
23598 # into the library and all subsequent libraries and executables linked
|
Chris@42
|
23599 # against it.
|
Chris@42
|
23600 hardcode_automatic=$hardcode_automatic
|
Chris@42
|
23601
|
Chris@42
|
23602 # Set to yes if linker adds runtime paths of dependent libraries
|
Chris@42
|
23603 # to runtime path list.
|
Chris@42
|
23604 inherit_rpath=$inherit_rpath
|
Chris@42
|
23605
|
Chris@42
|
23606 # Whether libtool must link a program against all its dependency libraries.
|
Chris@42
|
23607 link_all_deplibs=$link_all_deplibs
|
Chris@42
|
23608
|
Chris@42
|
23609 # Set to "yes" if exported symbols are required.
|
Chris@42
|
23610 always_export_symbols=$always_export_symbols
|
Chris@42
|
23611
|
Chris@42
|
23612 # The commands to list exported symbols.
|
Chris@42
|
23613 export_symbols_cmds=$lt_export_symbols_cmds
|
Chris@42
|
23614
|
Chris@42
|
23615 # Symbols that should not be listed in the preloaded symbols.
|
Chris@42
|
23616 exclude_expsyms=$lt_exclude_expsyms
|
Chris@42
|
23617
|
Chris@42
|
23618 # Symbols that must always be exported.
|
Chris@42
|
23619 include_expsyms=$lt_include_expsyms
|
Chris@42
|
23620
|
Chris@42
|
23621 # Commands necessary for linking programs (against libraries) with templates.
|
Chris@42
|
23622 prelink_cmds=$lt_prelink_cmds
|
Chris@42
|
23623
|
Chris@42
|
23624 # Commands necessary for finishing linking programs.
|
Chris@42
|
23625 postlink_cmds=$lt_postlink_cmds
|
Chris@42
|
23626
|
Chris@42
|
23627 # Specify filename containing input files.
|
Chris@42
|
23628 file_list_spec=$lt_file_list_spec
|
Chris@42
|
23629
|
Chris@42
|
23630 # How to hardcode a shared library path into an executable.
|
Chris@42
|
23631 hardcode_action=$hardcode_action
|
Chris@42
|
23632
|
Chris@42
|
23633 # ### END LIBTOOL CONFIG
|
Chris@42
|
23634
|
Chris@42
|
23635 _LT_EOF
|
Chris@42
|
23636
|
Chris@42
|
23637 case $host_os in
|
Chris@42
|
23638 aix3*)
|
Chris@42
|
23639 cat <<\_LT_EOF >> "$cfgfile"
|
Chris@42
|
23640 # AIX sometimes has problems with the GCC collect2 program. For some
|
Chris@42
|
23641 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
Chris@42
|
23642 # vanish in a puff of smoke.
|
Chris@42
|
23643 if test "X${COLLECT_NAMES+set}" != Xset; then
|
Chris@42
|
23644 COLLECT_NAMES=
|
Chris@42
|
23645 export COLLECT_NAMES
|
Chris@42
|
23646 fi
|
Chris@42
|
23647 _LT_EOF
|
Chris@42
|
23648 ;;
|
Chris@42
|
23649 esac
|
Chris@42
|
23650
|
Chris@42
|
23651
|
Chris@42
|
23652 ltmain="$ac_aux_dir/ltmain.sh"
|
Chris@42
|
23653
|
Chris@42
|
23654
|
Chris@42
|
23655 # We use sed instead of cat because bash on DJGPP gets confused if
|
Chris@42
|
23656 # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
Chris@42
|
23657 # text mode, it properly converts lines to CR/LF. This bash problem
|
Chris@42
|
23658 # is reportedly fixed, but why not run on old versions too?
|
Chris@42
|
23659 sed '$q' "$ltmain" >> "$cfgfile" \
|
Chris@42
|
23660 || (rm -f "$cfgfile"; exit 1)
|
Chris@42
|
23661
|
Chris@42
|
23662 if test x"$xsi_shell" = xyes; then
|
Chris@42
|
23663 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
Chris@42
|
23664 func_dirname ()\
|
Chris@42
|
23665 {\
|
Chris@42
|
23666 \ case ${1} in\
|
Chris@42
|
23667 \ */*) func_dirname_result="${1%/*}${2}" ;;\
|
Chris@42
|
23668 \ * ) func_dirname_result="${3}" ;;\
|
Chris@42
|
23669 \ esac\
|
Chris@42
|
23670 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23671 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23673 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23674
|
Chris@42
|
23675
|
Chris@42
|
23676 sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
Chris@42
|
23677 func_basename ()\
|
Chris@42
|
23678 {\
|
Chris@42
|
23679 \ func_basename_result="${1##*/}"\
|
Chris@42
|
23680 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23681 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23683 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23684
|
Chris@42
|
23685
|
Chris@42
|
23686 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
Chris@42
|
23687 func_dirname_and_basename ()\
|
Chris@42
|
23688 {\
|
Chris@42
|
23689 \ case ${1} in\
|
Chris@42
|
23690 \ */*) func_dirname_result="${1%/*}${2}" ;;\
|
Chris@42
|
23691 \ * ) func_dirname_result="${3}" ;;\
|
Chris@42
|
23692 \ esac\
|
Chris@42
|
23693 \ func_basename_result="${1##*/}"\
|
Chris@42
|
23694 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23695 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23697 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23698
|
Chris@42
|
23699
|
Chris@42
|
23700 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
Chris@42
|
23701 func_stripname ()\
|
Chris@42
|
23702 {\
|
Chris@42
|
23703 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
Chris@42
|
23704 \ # positional parameters, so assign one to ordinary parameter first.\
|
Chris@42
|
23705 \ func_stripname_result=${3}\
|
Chris@42
|
23706 \ func_stripname_result=${func_stripname_result#"${1}"}\
|
Chris@42
|
23707 \ func_stripname_result=${func_stripname_result%"${2}"}\
|
Chris@42
|
23708 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23709 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23711 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23712
|
Chris@42
|
23713
|
Chris@42
|
23714 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
Chris@42
|
23715 func_split_long_opt ()\
|
Chris@42
|
23716 {\
|
Chris@42
|
23717 \ func_split_long_opt_name=${1%%=*}\
|
Chris@42
|
23718 \ func_split_long_opt_arg=${1#*=}\
|
Chris@42
|
23719 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23720 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23722 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23723
|
Chris@42
|
23724
|
Chris@42
|
23725 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
Chris@42
|
23726 func_split_short_opt ()\
|
Chris@42
|
23727 {\
|
Chris@42
|
23728 \ func_split_short_opt_arg=${1#??}\
|
Chris@42
|
23729 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
Chris@42
|
23730 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23731 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23733 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23734
|
Chris@42
|
23735
|
Chris@42
|
23736 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
Chris@42
|
23737 func_lo2o ()\
|
Chris@42
|
23738 {\
|
Chris@42
|
23739 \ case ${1} in\
|
Chris@42
|
23740 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
Chris@42
|
23741 \ *) func_lo2o_result=${1} ;;\
|
Chris@42
|
23742 \ esac\
|
Chris@42
|
23743 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23744 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23746 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23747
|
Chris@42
|
23748
|
Chris@42
|
23749 sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
Chris@42
|
23750 func_xform ()\
|
Chris@42
|
23751 {\
|
Chris@42
|
23752 func_xform_result=${1%.*}.lo\
|
Chris@42
|
23753 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23754 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23756 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23757
|
Chris@42
|
23758
|
Chris@42
|
23759 sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
Chris@42
|
23760 func_arith ()\
|
Chris@42
|
23761 {\
|
Chris@42
|
23762 func_arith_result=$(( $* ))\
|
Chris@42
|
23763 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23764 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23766 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23767
|
Chris@42
|
23768
|
Chris@42
|
23769 sed -e '/^func_len ()$/,/^} # func_len /c\
|
Chris@42
|
23770 func_len ()\
|
Chris@42
|
23771 {\
|
Chris@42
|
23772 func_len_result=${#1}\
|
Chris@42
|
23773 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23774 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23776 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23777
|
Chris@42
|
23778 fi
|
Chris@42
|
23779
|
Chris@42
|
23780 if test x"$lt_shell_append" = xyes; then
|
Chris@42
|
23781 sed -e '/^func_append ()$/,/^} # func_append /c\
|
Chris@42
|
23782 func_append ()\
|
Chris@42
|
23783 {\
|
Chris@42
|
23784 eval "${1}+=\\${2}"\
|
Chris@42
|
23785 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23786 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23788 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23789
|
Chris@42
|
23790
|
Chris@42
|
23791 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
Chris@42
|
23792 func_append_quoted ()\
|
Chris@42
|
23793 {\
|
Chris@42
|
23794 \ func_quote_for_eval "${2}"\
|
Chris@42
|
23795 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
Chris@42
|
23796 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
Chris@42
|
23797 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23799 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23800
|
Chris@42
|
23801
|
Chris@42
|
23802 # Save a `func_append' function call where possible by direct use of '+='
|
Chris@42
|
23803 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
Chris@42
|
23804 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23806 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23807 else
|
Chris@42
|
23808 # Save a `func_append' function call even when '+=' is not available
|
Chris@42
|
23809 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
Chris@42
|
23810 && mv -f "$cfgfile.tmp" "$cfgfile" \
|
Chris@42
|
23811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
Chris@42
|
23812 test 0 -eq $? || _lt_function_replace_fail=:
|
Chris@42
|
23813 fi
|
Chris@42
|
23814
|
Chris@42
|
23815 if test x"$_lt_function_replace_fail" = x":"; then
|
Chris@42
|
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
Chris@42
|
23817 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
Chris@42
|
23818 fi
|
Chris@42
|
23819
|
Chris@42
|
23820
|
Chris@42
|
23821 mv -f "$cfgfile" "$ofile" ||
|
Chris@42
|
23822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
Chris@42
|
23823 chmod +x "$ofile"
|
Chris@42
|
23824
|
Chris@42
|
23825
|
Chris@42
|
23826 cat <<_LT_EOF >> "$ofile"
|
Chris@42
|
23827
|
Chris@42
|
23828 # ### BEGIN LIBTOOL TAG CONFIG: F77
|
Chris@42
|
23829
|
Chris@42
|
23830 # The linker used to build libraries.
|
Chris@42
|
23831 LD=$lt_LD_F77
|
Chris@42
|
23832
|
Chris@42
|
23833 # How to create reloadable object files.
|
Chris@42
|
23834 reload_flag=$lt_reload_flag_F77
|
Chris@42
|
23835 reload_cmds=$lt_reload_cmds_F77
|
Chris@42
|
23836
|
Chris@42
|
23837 # Commands used to build an old-style archive.
|
Chris@42
|
23838 old_archive_cmds=$lt_old_archive_cmds_F77
|
Chris@42
|
23839
|
Chris@42
|
23840 # A language specific compiler.
|
Chris@42
|
23841 CC=$lt_compiler_F77
|
Chris@42
|
23842
|
Chris@42
|
23843 # Is the compiler the GNU compiler?
|
Chris@42
|
23844 with_gcc=$GCC_F77
|
Chris@42
|
23845
|
Chris@42
|
23846 # Compiler flag to turn off builtin functions.
|
Chris@42
|
23847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
|
Chris@42
|
23848
|
Chris@42
|
23849 # Additional compiler flags for building library objects.
|
Chris@42
|
23850 pic_flag=$lt_lt_prog_compiler_pic_F77
|
Chris@42
|
23851
|
Chris@42
|
23852 # How to pass a linker flag through the compiler.
|
Chris@42
|
23853 wl=$lt_lt_prog_compiler_wl_F77
|
Chris@42
|
23854
|
Chris@42
|
23855 # Compiler flag to prevent dynamic linking.
|
Chris@42
|
23856 link_static_flag=$lt_lt_prog_compiler_static_F77
|
Chris@42
|
23857
|
Chris@42
|
23858 # Does compiler simultaneously support -c and -o options?
|
Chris@42
|
23859 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
|
Chris@42
|
23860
|
Chris@42
|
23861 # Whether or not to add -lc for building shared libraries.
|
Chris@42
|
23862 build_libtool_need_lc=$archive_cmds_need_lc_F77
|
Chris@42
|
23863
|
Chris@42
|
23864 # Whether or not to disallow shared libs when runtime libs are static.
|
Chris@42
|
23865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
|
Chris@42
|
23866
|
Chris@42
|
23867 # Compiler flag to allow reflexive dlopens.
|
Chris@42
|
23868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
|
Chris@42
|
23869
|
Chris@42
|
23870 # Compiler flag to generate shared objects directly from archives.
|
Chris@42
|
23871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
|
Chris@42
|
23872
|
Chris@42
|
23873 # Whether the compiler copes with passing no objects directly.
|
Chris@42
|
23874 compiler_needs_object=$lt_compiler_needs_object_F77
|
Chris@42
|
23875
|
Chris@42
|
23876 # Create an old-style archive from a shared archive.
|
Chris@42
|
23877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
|
Chris@42
|
23878
|
Chris@42
|
23879 # Create a temporary old-style archive to link instead of a shared archive.
|
Chris@42
|
23880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
|
Chris@42
|
23881
|
Chris@42
|
23882 # Commands used to build a shared archive.
|
Chris@42
|
23883 archive_cmds=$lt_archive_cmds_F77
|
Chris@42
|
23884 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
|
Chris@42
|
23885
|
Chris@42
|
23886 # Commands used to build a loadable module if different from building
|
Chris@42
|
23887 # a shared archive.
|
Chris@42
|
23888 module_cmds=$lt_module_cmds_F77
|
Chris@42
|
23889 module_expsym_cmds=$lt_module_expsym_cmds_F77
|
Chris@42
|
23890
|
Chris@42
|
23891 # Whether we are building with GNU ld or not.
|
Chris@42
|
23892 with_gnu_ld=$lt_with_gnu_ld_F77
|
Chris@42
|
23893
|
Chris@42
|
23894 # Flag that allows shared libraries with undefined symbols to be built.
|
Chris@42
|
23895 allow_undefined_flag=$lt_allow_undefined_flag_F77
|
Chris@42
|
23896
|
Chris@42
|
23897 # Flag that enforces no undefined symbols.
|
Chris@42
|
23898 no_undefined_flag=$lt_no_undefined_flag_F77
|
Chris@42
|
23899
|
Chris@42
|
23900 # Flag to hardcode \$libdir into a binary during linking.
|
Chris@42
|
23901 # This must work even if \$libdir does not exist
|
Chris@42
|
23902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
|
Chris@42
|
23903
|
Chris@42
|
23904 # Whether we need a single "-rpath" flag with a separated argument.
|
Chris@42
|
23905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
|
Chris@42
|
23906
|
Chris@42
|
23907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
Chris@42
|
23908 # DIR into the resulting binary.
|
Chris@42
|
23909 hardcode_direct=$hardcode_direct_F77
|
Chris@42
|
23910
|
Chris@42
|
23911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
Chris@42
|
23912 # DIR into the resulting binary and the resulting library dependency is
|
Chris@42
|
23913 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
|
Chris@42
|
23914 # library is relocated.
|
Chris@42
|
23915 hardcode_direct_absolute=$hardcode_direct_absolute_F77
|
Chris@42
|
23916
|
Chris@42
|
23917 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
Chris@42
|
23918 # into the resulting binary.
|
Chris@42
|
23919 hardcode_minus_L=$hardcode_minus_L_F77
|
Chris@42
|
23920
|
Chris@42
|
23921 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
Chris@42
|
23922 # into the resulting binary.
|
Chris@42
|
23923 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
|
Chris@42
|
23924
|
Chris@42
|
23925 # Set to "yes" if building a shared library automatically hardcodes DIR
|
Chris@42
|
23926 # into the library and all subsequent libraries and executables linked
|
Chris@42
|
23927 # against it.
|
Chris@42
|
23928 hardcode_automatic=$hardcode_automatic_F77
|
Chris@42
|
23929
|
Chris@42
|
23930 # Set to yes if linker adds runtime paths of dependent libraries
|
Chris@42
|
23931 # to runtime path list.
|
Chris@42
|
23932 inherit_rpath=$inherit_rpath_F77
|
Chris@42
|
23933
|
Chris@42
|
23934 # Whether libtool must link a program against all its dependency libraries.
|
Chris@42
|
23935 link_all_deplibs=$link_all_deplibs_F77
|
Chris@42
|
23936
|
Chris@42
|
23937 # Set to "yes" if exported symbols are required.
|
Chris@42
|
23938 always_export_symbols=$always_export_symbols_F77
|
Chris@42
|
23939
|
Chris@42
|
23940 # The commands to list exported symbols.
|
Chris@42
|
23941 export_symbols_cmds=$lt_export_symbols_cmds_F77
|
Chris@42
|
23942
|
Chris@42
|
23943 # Symbols that should not be listed in the preloaded symbols.
|
Chris@42
|
23944 exclude_expsyms=$lt_exclude_expsyms_F77
|
Chris@42
|
23945
|
Chris@42
|
23946 # Symbols that must always be exported.
|
Chris@42
|
23947 include_expsyms=$lt_include_expsyms_F77
|
Chris@42
|
23948
|
Chris@42
|
23949 # Commands necessary for linking programs (against libraries) with templates.
|
Chris@42
|
23950 prelink_cmds=$lt_prelink_cmds_F77
|
Chris@42
|
23951
|
Chris@42
|
23952 # Commands necessary for finishing linking programs.
|
Chris@42
|
23953 postlink_cmds=$lt_postlink_cmds_F77
|
Chris@42
|
23954
|
Chris@42
|
23955 # Specify filename containing input files.
|
Chris@42
|
23956 file_list_spec=$lt_file_list_spec_F77
|
Chris@42
|
23957
|
Chris@42
|
23958 # How to hardcode a shared library path into an executable.
|
Chris@42
|
23959 hardcode_action=$hardcode_action_F77
|
Chris@42
|
23960
|
Chris@42
|
23961 # ### END LIBTOOL TAG CONFIG: F77
|
Chris@42
|
23962 _LT_EOF
|
Chris@42
|
23963
|
Chris@42
|
23964 ;;
|
Chris@42
|
23965
|
Chris@42
|
23966 esac
|
Chris@42
|
23967 done # for ac_tag
|
Chris@42
|
23968
|
Chris@42
|
23969
|
Chris@42
|
23970 as_fn_exit 0
|
Chris@42
|
23971 _ACEOF
|
Chris@42
|
23972 ac_clean_files=$ac_clean_files_save
|
Chris@42
|
23973
|
Chris@42
|
23974 test $ac_write_fail = 0 ||
|
Chris@42
|
23975 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
Chris@42
|
23976
|
Chris@42
|
23977
|
Chris@42
|
23978 # configure is writing to config.log, and then calls config.status.
|
Chris@42
|
23979 # config.status does its own redirection, appending to config.log.
|
Chris@42
|
23980 # Unfortunately, on DOS this fails, as config.log is still kept open
|
Chris@42
|
23981 # by configure, so config.status won't be able to write to it; its
|
Chris@42
|
23982 # output is simply discarded. So we exec the FD to /dev/null,
|
Chris@42
|
23983 # effectively closing config.log, so it can be properly (re)opened and
|
Chris@42
|
23984 # appended to by config.status. When coming back to configure, we
|
Chris@42
|
23985 # need to make the FD available again.
|
Chris@42
|
23986 if test "$no_create" != yes; then
|
Chris@42
|
23987 ac_cs_success=:
|
Chris@42
|
23988 ac_config_status_args=
|
Chris@42
|
23989 test "$silent" = yes &&
|
Chris@42
|
23990 ac_config_status_args="$ac_config_status_args --quiet"
|
Chris@42
|
23991 exec 5>/dev/null
|
Chris@42
|
23992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
Chris@42
|
23993 exec 5>>config.log
|
Chris@42
|
23994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
Chris@42
|
23995 # would make configure fail if this is the last instruction.
|
Chris@42
|
23996 $ac_cs_success || as_fn_exit 1
|
Chris@42
|
23997 fi
|
Chris@42
|
23998 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
Chris@42
|
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
Chris@42
|
24000 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
Chris@42
|
24001 fi
|
Chris@42
|
24002
|