]>
Commit | Line | Data |
---|---|---|
1e8e9920 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
f00f02a3 | 3 | # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
cd9a469c | 7 | # |
1e8e9920 | 8 | # |
1e8e9920 | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cd9a469c | 11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1e8e9920 | 14 | |
cd9a469c | 15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1e8e9920 | 18 | emulate sh |
19 | NULLCMD=: | |
cd9a469c | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1e8e9920 | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
1e8e9920 | 31 | fi |
1e8e9920 | 32 | |
cd9a469c | 33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
1e8e9920 | 79 | fi |
80 | ||
81 | ||
cd9a469c | 82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
f00f02a3 | 90 | as_myself= |
cd9a469c | 91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
1e8e9920 | 122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
cd9a469c | 127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
f00f02a3 | 135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
cd9a469c | 160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
f00f02a3 | 193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
cd9a469c | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
e6408286 | 199 | |
200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | PATH=/empty FPATH=/empty; export PATH FPATH | |
205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
cd9a469c | 207 | test \$(( 1 + 1 )) = 2 || exit 1" |
208 | if (eval "$as_required") 2>/dev/null; then : | |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
1e8e9920 | 219 | do |
cd9a469c | 220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
f00f02a3 | 247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
cd9a469c | 266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
1e8e9920 | 274 | else |
cd9a469c | 275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
1e8e9920 | 279 | fi |
cd9a469c | 280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
f00f02a3 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
f00f02a3 | 367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
cd9a469c | 375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
f00f02a3 | 411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
cd9a469c | 413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
f00f02a3 | 415 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 416 | as_fn_error () |
417 | { | |
f00f02a3 | 418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
cd9a469c | 422 | fi |
f00f02a3 | 423 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
1e8e9920 | 426 | |
cd9a469c | 427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1e8e9920 | 429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
cd9a469c | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1e8e9920 | 435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
cd9a469c | 440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
1e8e9920 | 445 | |
cd9a469c | 446 | as_me=`$as_basename -- "$0" || |
1e8e9920 | 447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
1e8e9920 | 464 | |
1e8e9920 | 465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
1e8e9920 | 472 | |
cd9a469c | 473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
1e8e9920 | 482 | sed ' |
cd9a469c | 483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
1e8e9920 | 487 | N |
cd9a469c | 488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1e8e9920 | 490 | t loop |
cd9a469c | 491 | s/-\n.*// |
1e8e9920 | 492 | ' >$as_me.lineno && |
cd9a469c | 493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
1e8e9920 | 495 | |
f00f02a3 | 496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
1e8e9920 | 500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
cd9a469c | 502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
1e8e9920 | 504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
cd9a469c | 508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
1e8e9920 | 519 | esac |
520 | ||
cd9a469c | 521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
1e8e9920 | 524 | else |
cd9a469c | 525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
1e8e9920 | 527 | fi |
cd9a469c | 528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
1e8e9920 | 530 | as_ln_s='ln -s' |
cd9a469c | 531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f00f02a3 | 534 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 536 | as_ln_s='cp -pR' |
cd9a469c | 537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
f00f02a3 | 540 | as_ln_s='cp -pR' |
1e8e9920 | 541 | fi |
1e8e9920 | 542 | else |
f00f02a3 | 543 | as_ln_s='cp -pR' |
1e8e9920 | 544 | fi |
cd9a469c | 545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
1e8e9920 | 547 | |
548 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
1e8e9920 | 550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
f00f02a3 | 555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
1e8e9920 | 557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
542f9784 | 564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
542f9784 | 566 | |
f00f02a3 | 567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
cd9a469c | 569 | |
1e8e9920 | 570 | # Name of the host. |
f00f02a3 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
1e8e9920 | 572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
1e8e9920 | 575 | # |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
cd9a469c | 579 | ac_clean_files= |
1e8e9920 | 580 | ac_config_libobj_dir=. |
cd9a469c | 581 | LIBOBJS= |
1e8e9920 | 582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
1e8e9920 | 586 | |
587 | # Identity of this package. | |
c35c9a62 | 588 | PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library' |
1e8e9920 | 589 | PACKAGE_TARNAME='libgomp' |
590 | PACKAGE_VERSION='1.0' | |
c35c9a62 | 591 | PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0' |
1e8e9920 | 592 | PACKAGE_BUGREPORT='' |
cd9a469c | 593 | PACKAGE_URL='http://www.gnu.org/software/libgomp/' |
1e8e9920 | 594 | |
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
cd9a469c | 598 | #ifdef HAVE_SYS_TYPES_H |
1e8e9920 | 599 | # include <sys/types.h> |
600 | #endif | |
cd9a469c | 601 | #ifdef HAVE_SYS_STAT_H |
1e8e9920 | 602 | # include <sys/stat.h> |
603 | #endif | |
cd9a469c | 604 | #ifdef STDC_HEADERS |
1e8e9920 | 605 | # include <stdlib.h> |
606 | # include <stddef.h> | |
607 | #else | |
cd9a469c | 608 | # ifdef HAVE_STDLIB_H |
1e8e9920 | 609 | # include <stdlib.h> |
610 | # endif | |
611 | #endif | |
cd9a469c | 612 | #ifdef HAVE_STRING_H |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
1e8e9920 | 614 | # include <memory.h> |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
cd9a469c | 618 | #ifdef HAVE_STRINGS_H |
1e8e9920 | 619 | # include <strings.h> |
620 | #endif | |
cd9a469c | 621 | #ifdef HAVE_INTTYPES_H |
1e8e9920 | 622 | # include <inttypes.h> |
1e8e9920 | 623 | #endif |
cd9a469c | 624 | #ifdef HAVE_STDINT_H |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
1e8e9920 | 628 | # include <unistd.h> |
629 | #endif" | |
630 | ||
a7826e61 | 631 | ac_header_list= |
632 | ac_func_list= | |
cd9a469c | 633 | ac_subst_vars='am__EXEEXT_FALSE |
634 | am__EXEEXT_TRUE | |
635 | LTLIBOBJS | |
636 | LIBOBJS | |
0812bb06 | 637 | get_gcc_base_ver |
cd9a469c | 638 | OMP_NEST_LOCK_25_KIND |
639 | OMP_LOCK_25_KIND | |
640 | OMP_NEST_LOCK_25_ALIGN | |
641 | OMP_NEST_LOCK_25_SIZE | |
642 | OMP_LOCK_25_ALIGN | |
643 | OMP_LOCK_25_SIZE | |
644 | OMP_NEST_LOCK_KIND | |
645 | OMP_LOCK_KIND | |
646 | OMP_NEST_LOCK_ALIGN | |
647 | OMP_NEST_LOCK_SIZE | |
648 | OMP_LOCK_ALIGN | |
649 | OMP_LOCK_SIZE | |
650 | USE_FORTRAN_FALSE | |
651 | USE_FORTRAN_TRUE | |
652 | link_gomp | |
653 | XLDFLAGS | |
654 | XCFLAGS | |
655 | config_path | |
5c80018e | 656 | CPU_COUNT |
71cbce26 | 657 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE |
658 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE | |
659 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE | |
660 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE | |
cd9a469c | 661 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE |
662 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE | |
663 | OPT_LDFLAGS | |
664 | SECTION_LDFLAGS | |
56686608 | 665 | PLUGIN_HSA_FALSE |
666 | PLUGIN_HSA_TRUE | |
ca4c3545 | 667 | PLUGIN_NVPTX_FALSE |
668 | PLUGIN_NVPTX_TRUE | |
669 | offload_additional_lib_paths | |
670 | offload_additional_options | |
62f34603 | 671 | offload_targets |
3a590203 | 672 | offload_plugins |
56686608 | 673 | PLUGIN_HSA_LIBS |
674 | PLUGIN_HSA_LDFLAGS | |
675 | PLUGIN_HSA_CPPFLAGS | |
676 | PLUGIN_HSA | |
677 | HSA_RUNTIME_LIB | |
678 | HSA_RUNTIME_INCLUDE | |
ca4c3545 | 679 | PLUGIN_NVPTX_LIBS |
680 | PLUGIN_NVPTX_LDFLAGS | |
681 | PLUGIN_NVPTX_CPPFLAGS | |
682 | PLUGIN_NVPTX | |
683 | CUDA_DRIVER_LIB | |
684 | CUDA_DRIVER_INCLUDE | |
cd9a469c | 685 | libtool_VERSION |
686 | ac_ct_FC | |
687 | FCFLAGS | |
688 | FC | |
689 | MAINT | |
690 | MAINTAINER_MODE_FALSE | |
691 | MAINTAINER_MODE_TRUE | |
692 | enable_static | |
693 | enable_shared | |
8c35d268 | 694 | lt_host_flags |
cd9a469c | 695 | CPP |
696 | OTOOL64 | |
697 | OTOOL | |
698 | LIPO | |
699 | NMEDIT | |
700 | DSYMUTIL | |
cd9a469c | 701 | OBJDUMP |
702 | LN_S | |
703 | NM | |
704 | ac_ct_DUMPBIN | |
705 | DUMPBIN | |
706 | LD | |
707 | FGREP | |
708 | EGREP | |
709 | GREP | |
710 | SED | |
711 | LIBTOOL | |
712 | BUILD_INFO_FALSE | |
713 | BUILD_INFO_TRUE | |
714 | PERL | |
715 | RANLIB | |
716 | AR | |
717 | am__fastdepCC_FALSE | |
718 | am__fastdepCC_TRUE | |
719 | CCDEPMODE | |
ebbb7f3d | 720 | am__nodep |
cd9a469c | 721 | AMDEPBACKSLASH |
722 | AMDEP_FALSE | |
723 | AMDEP_TRUE | |
724 | am__quote | |
725 | am__include | |
726 | DEPDIR | |
727 | OBJEXT | |
728 | EXEEXT | |
729 | ac_ct_CC | |
730 | CPPFLAGS | |
731 | LDFLAGS | |
732 | CFLAGS | |
733 | CC | |
734 | toolexeclibdir | |
735 | toolexecdir | |
736 | multi_basedir | |
f00f02a3 | 737 | AM_BACKSLASH |
738 | AM_DEFAULT_VERBOSITY | |
739 | AM_DEFAULT_V | |
740 | AM_V | |
cd9a469c | 741 | am__untar |
742 | am__tar | |
743 | AMTAR | |
744 | am__leading_dot | |
745 | SET_MAKE | |
746 | AWK | |
747 | mkdir_p | |
748 | MKDIR_P | |
749 | INSTALL_STRIP_PROGRAM | |
750 | STRIP | |
751 | install_sh | |
752 | MAKEINFO | |
753 | AUTOHEADER | |
754 | AUTOMAKE | |
755 | AUTOCONF | |
756 | ACLOCAL | |
757 | VERSION | |
758 | PACKAGE | |
759 | CYGPATH_W | |
760 | am__isrc | |
761 | INSTALL_DATA | |
762 | INSTALL_SCRIPT | |
763 | INSTALL_PROGRAM | |
764 | target_os | |
765 | target_vendor | |
766 | target_cpu | |
767 | target | |
768 | host_os | |
769 | host_vendor | |
770 | host_cpu | |
771 | host | |
772 | build_os | |
773 | build_vendor | |
774 | build_cpu | |
775 | build | |
776 | GENINSRC_FALSE | |
777 | GENINSRC_TRUE | |
778 | target_alias | |
779 | host_alias | |
780 | build_alias | |
781 | LIBS | |
782 | ECHO_T | |
783 | ECHO_N | |
784 | ECHO_C | |
785 | DEFS | |
786 | mandir | |
787 | localedir | |
788 | libdir | |
789 | psdir | |
790 | pdfdir | |
791 | dvidir | |
792 | htmldir | |
793 | infodir | |
794 | docdir | |
795 | oldincludedir | |
796 | includedir | |
797 | localstatedir | |
798 | sharedstatedir | |
799 | sysconfdir | |
800 | datadir | |
801 | datarootdir | |
802 | libexecdir | |
803 | sbindir | |
804 | bindir | |
805 | program_transform_name | |
806 | prefix | |
807 | exec_prefix | |
808 | PACKAGE_URL | |
809 | PACKAGE_BUGREPORT | |
810 | PACKAGE_STRING | |
811 | PACKAGE_VERSION | |
812 | PACKAGE_TARNAME | |
813 | PACKAGE_NAME | |
814 | PATH_SEPARATOR | |
815 | SHELL' | |
1e8e9920 | 816 | ac_subst_files='' |
cd9a469c | 817 | ac_user_opts=' |
818 | enable_option_checking | |
819 | enable_version_specific_runtime_libs | |
820 | enable_generated_files_in_srcdir | |
f00f02a3 | 821 | enable_silent_rules |
cd9a469c | 822 | enable_multilib |
823 | enable_dependency_tracking | |
824 | enable_shared | |
825 | enable_static | |
826 | with_pic | |
827 | enable_fast_install | |
828 | with_gnu_ld | |
829 | enable_libtool_lock | |
830 | enable_maintainer_mode | |
ca4c3545 | 831 | with_cuda_driver |
832 | with_cuda_driver_include | |
833 | with_cuda_driver_lib | |
56686608 | 834 | with_hsa_runtime |
835 | with_hsa_runtime_include | |
836 | with_hsa_runtime_lib | |
cd9a469c | 837 | enable_linux_futex |
838 | enable_tls | |
839 | enable_symvers | |
79e3a293 | 840 | enable_cet |
0812bb06 | 841 | with_gcc_major_version_only |
cd9a469c | 842 | ' |
843 | ac_precious_vars='build_alias | |
844 | host_alias | |
845 | target_alias | |
846 | CPP | |
847 | CPPFLAGS | |
848 | FC | |
849 | FCFLAGS | |
850 | LDFLAGS | |
851 | LIBS' | |
852 | ||
1e8e9920 | 853 | |
854 | # Initialize some variables set by options. | |
855 | ac_init_help= | |
856 | ac_init_version=false | |
cd9a469c | 857 | ac_unrecognized_opts= |
858 | ac_unrecognized_sep= | |
1e8e9920 | 859 | # The variables have the same names as the options, with |
860 | # dashes changed to underlines. | |
861 | cache_file=/dev/null | |
862 | exec_prefix=NONE | |
863 | no_create= | |
864 | no_recursion= | |
865 | prefix=NONE | |
866 | program_prefix=NONE | |
867 | program_suffix=NONE | |
868 | program_transform_name=s,x,x, | |
869 | silent= | |
870 | site= | |
871 | srcdir= | |
872 | verbose= | |
873 | x_includes=NONE | |
874 | x_libraries=NONE | |
875 | ||
876 | # Installation directory options. | |
877 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
878 | # and all the variables that are supposed to be based on exec_prefix | |
879 | # by default will actually change. | |
880 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 881 | # (The list follows the same order as the GNU Coding Standards.) |
1e8e9920 | 882 | bindir='${exec_prefix}/bin' |
883 | sbindir='${exec_prefix}/sbin' | |
884 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 885 | datarootdir='${prefix}/share' |
886 | datadir='${datarootdir}' | |
1e8e9920 | 887 | sysconfdir='${prefix}/etc' |
888 | sharedstatedir='${prefix}/com' | |
889 | localstatedir='${prefix}/var' | |
1e8e9920 | 890 | includedir='${prefix}/include' |
891 | oldincludedir='/usr/include' | |
cd9a469c | 892 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
893 | infodir='${datarootdir}/info' | |
894 | htmldir='${docdir}' | |
895 | dvidir='${docdir}' | |
896 | pdfdir='${docdir}' | |
897 | psdir='${docdir}' | |
898 | libdir='${exec_prefix}/lib' | |
899 | localedir='${datarootdir}/locale' | |
900 | mandir='${datarootdir}/man' | |
1e8e9920 | 901 | |
902 | ac_prev= | |
cd9a469c | 903 | ac_dashdash= |
1e8e9920 | 904 | for ac_option |
905 | do | |
906 | # If the previous option needs an argument, assign it. | |
907 | if test -n "$ac_prev"; then | |
cd9a469c | 908 | eval $ac_prev=\$ac_option |
1e8e9920 | 909 | ac_prev= |
910 | continue | |
911 | fi | |
912 | ||
cd9a469c | 913 | case $ac_option in |
f00f02a3 | 914 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
915 | *=) ac_optarg= ;; | |
916 | *) ac_optarg=yes ;; | |
cd9a469c | 917 | esac |
1e8e9920 | 918 | |
919 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
920 | ||
cd9a469c | 921 | case $ac_dashdash$ac_option in |
922 | --) | |
923 | ac_dashdash=yes ;; | |
1e8e9920 | 924 | |
925 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
926 | ac_prev=bindir ;; | |
927 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
928 | bindir=$ac_optarg ;; | |
929 | ||
930 | -build | --build | --buil | --bui | --bu) | |
931 | ac_prev=build_alias ;; | |
932 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
933 | build_alias=$ac_optarg ;; | |
934 | ||
935 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
936 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
937 | ac_prev=cache_file ;; | |
938 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
939 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
940 | cache_file=$ac_optarg ;; | |
941 | ||
942 | --config-cache | -C) | |
943 | cache_file=config.cache ;; | |
944 | ||
cd9a469c | 945 | -datadir | --datadir | --datadi | --datad) |
1e8e9920 | 946 | ac_prev=datadir ;; |
cd9a469c | 947 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1e8e9920 | 948 | datadir=$ac_optarg ;; |
949 | ||
cd9a469c | 950 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
951 | | --dataroo | --dataro | --datar) | |
952 | ac_prev=datarootdir ;; | |
953 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
954 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
955 | datarootdir=$ac_optarg ;; | |
956 | ||
1e8e9920 | 957 | -disable-* | --disable-*) |
cd9a469c | 958 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1e8e9920 | 959 | # Reject names that are not valid shell variable names. |
cd9a469c | 960 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 961 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 962 | ac_useropt_orig=$ac_useropt |
963 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
964 | case $ac_user_opts in | |
965 | *" | |
966 | "enable_$ac_useropt" | |
967 | "*) ;; | |
968 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
969 | ac_unrecognized_sep=', ';; | |
970 | esac | |
971 | eval enable_$ac_useropt=no ;; | |
972 | ||
973 | -docdir | --docdir | --docdi | --doc | --do) | |
974 | ac_prev=docdir ;; | |
975 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
976 | docdir=$ac_optarg ;; | |
977 | ||
978 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
979 | ac_prev=dvidir ;; | |
980 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
981 | dvidir=$ac_optarg ;; | |
1e8e9920 | 982 | |
983 | -enable-* | --enable-*) | |
cd9a469c | 984 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1e8e9920 | 985 | # Reject names that are not valid shell variable names. |
cd9a469c | 986 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 987 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 988 | ac_useropt_orig=$ac_useropt |
989 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
990 | case $ac_user_opts in | |
991 | *" | |
992 | "enable_$ac_useropt" | |
993 | "*) ;; | |
994 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
995 | ac_unrecognized_sep=', ';; | |
1e8e9920 | 996 | esac |
cd9a469c | 997 | eval enable_$ac_useropt=\$ac_optarg ;; |
1e8e9920 | 998 | |
999 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1000 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1001 | | --exec | --exe | --ex) | |
1002 | ac_prev=exec_prefix ;; | |
1003 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1004 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1005 | | --exec=* | --exe=* | --ex=*) | |
1006 | exec_prefix=$ac_optarg ;; | |
1007 | ||
1008 | -gas | --gas | --ga | --g) | |
1009 | # Obsolete; use --with-gas. | |
1010 | with_gas=yes ;; | |
1011 | ||
1012 | -help | --help | --hel | --he | -h) | |
1013 | ac_init_help=long ;; | |
1014 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1015 | ac_init_help=recursive ;; | |
1016 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1017 | ac_init_help=short ;; | |
1018 | ||
1019 | -host | --host | --hos | --ho) | |
1020 | ac_prev=host_alias ;; | |
1021 | -host=* | --host=* | --hos=* | --ho=*) | |
1022 | host_alias=$ac_optarg ;; | |
1023 | ||
cd9a469c | 1024 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1025 | ac_prev=htmldir ;; | |
1026 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1027 | | --ht=*) | |
1028 | htmldir=$ac_optarg ;; | |
1029 | ||
1e8e9920 | 1030 | -includedir | --includedir | --includedi | --included | --include \ |
1031 | | --includ | --inclu | --incl | --inc) | |
1032 | ac_prev=includedir ;; | |
1033 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1034 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1035 | includedir=$ac_optarg ;; | |
1036 | ||
1037 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1038 | ac_prev=infodir ;; | |
1039 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1040 | infodir=$ac_optarg ;; | |
1041 | ||
1042 | -libdir | --libdir | --libdi | --libd) | |
1043 | ac_prev=libdir ;; | |
1044 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1045 | libdir=$ac_optarg ;; | |
1046 | ||
1047 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1048 | | --libexe | --libex | --libe) | |
1049 | ac_prev=libexecdir ;; | |
1050 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1051 | | --libexe=* | --libex=* | --libe=*) | |
1052 | libexecdir=$ac_optarg ;; | |
1053 | ||
cd9a469c | 1054 | -localedir | --localedir | --localedi | --localed | --locale) |
1055 | ac_prev=localedir ;; | |
1056 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1057 | localedir=$ac_optarg ;; | |
1058 | ||
1e8e9920 | 1059 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1060 | | --localstate | --localstat | --localsta | --localst | --locals) |
1e8e9920 | 1061 | ac_prev=localstatedir ;; |
1062 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1063 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1e8e9920 | 1064 | localstatedir=$ac_optarg ;; |
1065 | ||
1066 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1067 | ac_prev=mandir ;; | |
1068 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1069 | mandir=$ac_optarg ;; | |
1070 | ||
1071 | -nfp | --nfp | --nf) | |
1072 | # Obsolete; use --without-fp. | |
1073 | with_fp=no ;; | |
1074 | ||
1075 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1076 | | --no-cr | --no-c | -n) | |
1077 | no_create=yes ;; | |
1078 | ||
1079 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1080 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1081 | no_recursion=yes ;; | |
1082 | ||
1083 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1084 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1085 | | --oldin | --oldi | --old | --ol | --o) | |
1086 | ac_prev=oldincludedir ;; | |
1087 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1088 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1089 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1090 | oldincludedir=$ac_optarg ;; | |
1091 | ||
1092 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1093 | ac_prev=prefix ;; | |
1094 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1095 | prefix=$ac_optarg ;; | |
1096 | ||
1097 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1098 | | --program-pre | --program-pr | --program-p) | |
1099 | ac_prev=program_prefix ;; | |
1100 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1101 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1102 | program_prefix=$ac_optarg ;; | |
1103 | ||
1104 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1105 | | --program-suf | --program-su | --program-s) | |
1106 | ac_prev=program_suffix ;; | |
1107 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1108 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1109 | program_suffix=$ac_optarg ;; | |
1110 | ||
1111 | -program-transform-name | --program-transform-name \ | |
1112 | | --program-transform-nam | --program-transform-na \ | |
1113 | | --program-transform-n | --program-transform- \ | |
1114 | | --program-transform | --program-transfor \ | |
1115 | | --program-transfo | --program-transf \ | |
1116 | | --program-trans | --program-tran \ | |
1117 | | --progr-tra | --program-tr | --program-t) | |
1118 | ac_prev=program_transform_name ;; | |
1119 | -program-transform-name=* | --program-transform-name=* \ | |
1120 | | --program-transform-nam=* | --program-transform-na=* \ | |
1121 | | --program-transform-n=* | --program-transform-=* \ | |
1122 | | --program-transform=* | --program-transfor=* \ | |
1123 | | --program-transfo=* | --program-transf=* \ | |
1124 | | --program-trans=* | --program-tran=* \ | |
1125 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1126 | program_transform_name=$ac_optarg ;; | |
1127 | ||
cd9a469c | 1128 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1129 | ac_prev=pdfdir ;; | |
1130 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1131 | pdfdir=$ac_optarg ;; | |
1132 | ||
1133 | -psdir | --psdir | --psdi | --psd | --ps) | |
1134 | ac_prev=psdir ;; | |
1135 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1136 | psdir=$ac_optarg ;; | |
1137 | ||
1e8e9920 | 1138 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1139 | | -silent | --silent | --silen | --sile | --sil) | |
1140 | silent=yes ;; | |
1141 | ||
1142 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1143 | ac_prev=sbindir ;; | |
1144 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1145 | | --sbi=* | --sb=*) | |
1146 | sbindir=$ac_optarg ;; | |
1147 | ||
1148 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1149 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1150 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1151 | | --sha | --sh) | |
1152 | ac_prev=sharedstatedir ;; | |
1153 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1154 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1155 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1156 | | --sha=* | --sh=*) | |
1157 | sharedstatedir=$ac_optarg ;; | |
1158 | ||
1159 | -site | --site | --sit) | |
1160 | ac_prev=site ;; | |
1161 | -site=* | --site=* | --sit=*) | |
1162 | site=$ac_optarg ;; | |
1163 | ||
1164 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1165 | ac_prev=srcdir ;; | |
1166 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1167 | srcdir=$ac_optarg ;; | |
1168 | ||
1169 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1170 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1171 | ac_prev=sysconfdir ;; | |
1172 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1173 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1174 | sysconfdir=$ac_optarg ;; | |
1175 | ||
1176 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1177 | ac_prev=target_alias ;; | |
1178 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1179 | target_alias=$ac_optarg ;; | |
1180 | ||
1181 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1182 | verbose=yes ;; | |
1183 | ||
1184 | -version | --version | --versio | --versi | --vers | -V) | |
1185 | ac_init_version=: ;; | |
1186 | ||
1187 | -with-* | --with-*) | |
cd9a469c | 1188 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1e8e9920 | 1189 | # Reject names that are not valid shell variable names. |
cd9a469c | 1190 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1191 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1192 | ac_useropt_orig=$ac_useropt |
1193 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1194 | case $ac_user_opts in | |
1195 | *" | |
1196 | "with_$ac_useropt" | |
1197 | "*) ;; | |
1198 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1199 | ac_unrecognized_sep=', ';; | |
1e8e9920 | 1200 | esac |
cd9a469c | 1201 | eval with_$ac_useropt=\$ac_optarg ;; |
1e8e9920 | 1202 | |
1203 | -without-* | --without-*) | |
cd9a469c | 1204 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1e8e9920 | 1205 | # Reject names that are not valid shell variable names. |
cd9a469c | 1206 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1207 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1208 | ac_useropt_orig=$ac_useropt |
1209 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1210 | case $ac_user_opts in | |
1211 | *" | |
1212 | "with_$ac_useropt" | |
1213 | "*) ;; | |
1214 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1215 | ac_unrecognized_sep=', ';; | |
1216 | esac | |
1217 | eval with_$ac_useropt=no ;; | |
1e8e9920 | 1218 | |
1219 | --x) | |
1220 | # Obsolete; use --with-x. | |
1221 | with_x=yes ;; | |
1222 | ||
1223 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1224 | | --x-incl | --x-inc | --x-in | --x-i) | |
1225 | ac_prev=x_includes ;; | |
1226 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1227 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1228 | x_includes=$ac_optarg ;; | |
1229 | ||
1230 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1231 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1232 | ac_prev=x_libraries ;; | |
1233 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1234 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1235 | x_libraries=$ac_optarg ;; | |
1236 | ||
f00f02a3 | 1237 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1238 | Try \`$0 --help' for more information" | |
1e8e9920 | 1239 | ;; |
1240 | ||
1241 | *=*) | |
1242 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1243 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1244 | case $ac_envvar in #( |
1245 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
f00f02a3 | 1246 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
cd9a469c | 1247 | esac |
1248 | eval $ac_envvar=\$ac_optarg | |
1e8e9920 | 1249 | export $ac_envvar ;; |
1250 | ||
1251 | *) | |
1252 | # FIXME: should be removed in autoconf 3.0. | |
cd9a469c | 1253 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1e8e9920 | 1254 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1255 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f00f02a3 | 1256 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1e8e9920 | 1257 | ;; |
1258 | ||
1259 | esac | |
1260 | done | |
1261 | ||
1262 | if test -n "$ac_prev"; then | |
1263 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
f00f02a3 | 1264 | as_fn_error $? "missing argument to $ac_option" |
1e8e9920 | 1265 | fi |
1266 | ||
cd9a469c | 1267 | if test -n "$ac_unrecognized_opts"; then |
1268 | case $enable_option_checking in | |
1269 | no) ;; | |
f00f02a3 | 1270 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
cd9a469c | 1271 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1e8e9920 | 1272 | esac |
cd9a469c | 1273 | fi |
1e8e9920 | 1274 | |
cd9a469c | 1275 | # Check all directory arguments for consistency. |
1276 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1277 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1278 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1279 | libdir localedir mandir | |
1e8e9920 | 1280 | do |
cd9a469c | 1281 | eval ac_val=\$$ac_var |
1282 | # Remove trailing slashes. | |
1e8e9920 | 1283 | case $ac_val in |
cd9a469c | 1284 | */ ) |
1285 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1286 | eval $ac_var=\$ac_val;; | |
1e8e9920 | 1287 | esac |
cd9a469c | 1288 | # Be sure to have absolute directory names. |
1289 | case $ac_val in | |
1290 | [\\/$]* | ?:[\\/]* ) continue;; | |
1291 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1292 | esac | |
f00f02a3 | 1293 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1e8e9920 | 1294 | done |
1295 | ||
1296 | # There might be people who depend on the old broken behavior: `$host' | |
1297 | # used to hold the argument of --host etc. | |
1298 | # FIXME: To remove some day. | |
1299 | build=$build_alias | |
1300 | host=$host_alias | |
1301 | target=$target_alias | |
1302 | ||
1303 | # FIXME: To remove some day. | |
1304 | if test "x$host_alias" != x; then | |
1305 | if test "x$build_alias" = x; then | |
1306 | cross_compiling=maybe | |
1e8e9920 | 1307 | elif test "x$build_alias" != "x$host_alias"; then |
1308 | cross_compiling=yes | |
1309 | fi | |
1310 | fi | |
1311 | ||
1312 | ac_tool_prefix= | |
1313 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1314 | ||
1315 | test "$silent" = yes && exec 6>/dev/null | |
1316 | ||
1317 | ||
cd9a469c | 1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1319 | ac_ls_di=`ls -di .` && | |
1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f00f02a3 | 1321 | as_fn_error $? "working directory cannot be determined" |
cd9a469c | 1322 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f00f02a3 | 1323 | as_fn_error $? "pwd does not report name of working directory" |
cd9a469c | 1324 | |
1325 | ||
1e8e9920 | 1326 | # Find the source files, if location was not specified. |
1327 | if test -z "$srcdir"; then | |
1328 | ac_srcdir_defaulted=yes | |
cd9a469c | 1329 | # Try the directory containing this script, then the parent directory. |
1330 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1331 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1332 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1333 | X"$as_myself" : 'X\(//\)$' \| \ | |
1334 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1335 | $as_echo X"$as_myself" | | |
1336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\/\)[^/].*/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\/\)$/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | /^X\(\/\).*/{ | |
1349 | s//\1/ | |
1350 | q | |
1351 | } | |
1352 | s/.*/./; q'` | |
1e8e9920 | 1353 | srcdir=$ac_confdir |
cd9a469c | 1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
1e8e9920 | 1355 | srcdir=.. |
1356 | fi | |
1357 | else | |
1358 | ac_srcdir_defaulted=no | |
1359 | fi | |
cd9a469c | 1360 | if test ! -r "$srcdir/$ac_unique_file"; then |
1361 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f00f02a3 | 1362 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd9a469c | 1363 | fi |
1364 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1365 | ac_abs_confdir=`( | |
f00f02a3 | 1366 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
cd9a469c | 1367 | pwd)` |
1368 | # When building in place, set srcdir=. | |
1369 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1370 | srcdir=. | |
1371 | fi | |
1372 | # Remove unnecessary trailing slashes from srcdir. | |
1373 | # Double slashes in file names in object file debugging info | |
1374 | # mess up M-x gdb in Emacs. | |
1375 | case $srcdir in | |
1376 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1377 | esac | |
1378 | for ac_var in $ac_precious_vars; do | |
1379 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1380 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1381 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1382 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1383 | done | |
1e8e9920 | 1384 | |
1385 | # | |
1386 | # Report the --help message. | |
1387 | # | |
1388 | if test "$ac_init_help" = "long"; then | |
1389 | # Omit some internal or obsolete options to make the list less imposing. | |
1390 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1391 | cat <<_ACEOF | |
c35c9a62 | 1392 | \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems. |
1e8e9920 | 1393 | |
1394 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1395 | ||
1396 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1397 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1398 | ||
1399 | Defaults for the options are specified in brackets. | |
1400 | ||
1401 | Configuration: | |
1402 | -h, --help display this help and exit | |
1403 | --help=short display options specific to this package | |
1404 | --help=recursive display the short help of all the included packages | |
1405 | -V, --version display version information and exit | |
f00f02a3 | 1406 | -q, --quiet, --silent do not print \`checking ...' messages |
1e8e9920 | 1407 | --cache-file=FILE cache test results in FILE [disabled] |
1408 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1409 | -n, --no-create do not create output files | |
1410 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1411 | ||
1e8e9920 | 1412 | Installation directories: |
1413 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1414 | [$ac_default_prefix] |
1e8e9920 | 1415 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1416 | [PREFIX] |
1e8e9920 | 1417 | |
1418 | By default, \`make install' will install all the files in | |
1419 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1420 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1421 | for instance \`--prefix=\$HOME'. | |
1422 | ||
1423 | For better control, use the options below. | |
1424 | ||
1425 | Fine tuning of the installation directories: | |
cd9a469c | 1426 | --bindir=DIR user executables [EPREFIX/bin] |
1427 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1428 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1429 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1430 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1431 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1432 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1433 | --includedir=DIR C header files [PREFIX/include] | |
1434 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1435 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1436 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1437 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1438 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1439 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1440 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp] | |
1441 | --htmldir=DIR html documentation [DOCDIR] | |
1442 | --dvidir=DIR dvi documentation [DOCDIR] | |
1443 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1444 | --psdir=DIR ps documentation [DOCDIR] | |
1e8e9920 | 1445 | _ACEOF |
1446 | ||
1447 | cat <<\_ACEOF | |
1448 | ||
1449 | Program names: | |
1450 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1451 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1452 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1453 | ||
1454 | System types: | |
1455 | --build=BUILD configure for building on BUILD [guessed] | |
1456 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1457 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1458 | _ACEOF | |
1459 | fi | |
1460 | ||
1461 | if test -n "$ac_init_help"; then | |
1462 | case $ac_init_help in | |
c35c9a62 | 1463 | short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";; |
1e8e9920 | 1464 | esac |
1465 | cat <<\_ACEOF | |
1466 | ||
1467 | Optional Features: | |
cd9a469c | 1468 | --disable-option-checking ignore unrecognized --enable/--with options |
1e8e9920 | 1469 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1470 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1471 | --enable-version-specific-runtime-libs | |
1472 | Specify that runtime libraries should be installed | |
1473 | in a compiler-specific directory [default=no] | |
aeda7a78 | 1474 | --enable-generated-files-in-srcdir |
1475 | put copies of generated files in source dir intended | |
1476 | for creating source tarballs for users without | |
1477 | texinfo bison or flex. [default=no] | |
f00f02a3 | 1478 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1479 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1e8e9920 | 1480 | --enable-multilib build many library versions (default) |
f00f02a3 | 1481 | --enable-dependency-tracking |
1482 | do not reject slow dependency extractors | |
1483 | --disable-dependency-tracking | |
1484 | speeds up one-time build | |
cd9a469c | 1485 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1486 | --enable-static[=PKGS] build static libraries [default=yes] | |
542f9784 | 1487 | --enable-fast-install[=PKGS] |
1488 | optimize for fast installation [default=yes] | |
1e8e9920 | 1489 | --disable-libtool-lock avoid locking (might break parallel builds) |
f00f02a3 | 1490 | --enable-maintainer-mode |
1491 | enable make rules and dependencies not useful (and | |
1492 | sometimes confusing) to the casual installer | |
cd9a469c | 1493 | --enable-linux-futex use the Linux futex system call [default=default] |
e564ddd8 | 1494 | --enable-tls Use thread-local storage [default=yes] |
1e8e9920 | 1495 | --enable-symvers=STYLE enables symbol versioning of the shared library |
1496 | [default=yes] | |
ee8fea81 | 1497 | --enable-cet enable Intel CET in target libraries [default=no] |
1e8e9920 | 1498 | |
1499 | Optional Packages: | |
1500 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1501 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
542f9784 | 1502 | --with-pic try to use only PIC/non-PIC objects [default=use |
1503 | both] | |
1504 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
ca4c3545 | 1505 | --with-cuda-driver=PATH specify prefix directory for installed CUDA driver |
1506 | package. Equivalent to | |
1507 | --with-cuda-driver-include=PATH/include plus | |
1508 | --with-cuda-driver-lib=PATH/lib | |
1509 | --with-cuda-driver-include=PATH | |
1510 | specify directory for installed CUDA driver include | |
1511 | files | |
1512 | --with-cuda-driver-lib=PATH | |
1513 | specify directory for the installed CUDA driver | |
1514 | library | |
56686608 | 1515 | --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time |
1516 | package. Equivalent to | |
1517 | --with-hsa-runtime-include=PATH/include plus | |
1518 | --with-hsa-runtime-lib=PATH/lib | |
1519 | --with-hsa-runtime-include=PATH | |
1520 | specify directory for installed HSA run-time include | |
1521 | files | |
1522 | --with-hsa-runtime-lib=PATH | |
1523 | specify directory for the installed HSA run-time | |
1524 | library | |
0812bb06 | 1525 | --with-gcc-major-version-only |
1526 | use only GCC major number in filesystem paths | |
1e8e9920 | 1527 | |
1528 | Some influential environment variables: | |
1529 | CC C compiler command | |
1530 | CFLAGS C compiler flags | |
1531 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1532 | nonstandard directory <lib dir> | |
cd9a469c | 1533 | LIBS libraries to pass to the linker, e.g. -l<library> |
f00f02a3 | 1534 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
cd9a469c | 1535 | you have headers in a nonstandard directory <include dir> |
542f9784 | 1536 | CPP C preprocessor |
1e8e9920 | 1537 | FC Fortran compiler command |
1538 | FCFLAGS Fortran compiler flags | |
1e8e9920 | 1539 | |
1540 | Use these variables to override the choices made by `configure' or to help | |
1541 | it to find libraries and programs with nonstandard names/locations. | |
1542 | ||
cd9a469c | 1543 | Report bugs to the package provider. |
c35c9a62 | 1544 | GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. |
cd9a469c | 1545 | General help using GNU software: <http://www.gnu.org/gethelp/>. |
1e8e9920 | 1546 | _ACEOF |
cd9a469c | 1547 | ac_status=$? |
1e8e9920 | 1548 | fi |
1549 | ||
1550 | if test "$ac_init_help" = "recursive"; then | |
1551 | # If there are subdirs, report their specific --help. | |
1e8e9920 | 1552 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1553 | test -d "$ac_dir" || |
1554 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1555 | continue | |
1e8e9920 | 1556 | ac_builddir=. |
1557 | ||
cd9a469c | 1558 | case "$ac_dir" in |
1559 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1560 | *) | |
1561 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1562 | # A ".." for each directory in $ac_dir_suffix. | |
1563 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1564 | case $ac_top_builddir_sub in | |
1565 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1566 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1567 | esac ;; | |
1568 | esac | |
1569 | ac_abs_top_builddir=$ac_pwd | |
1570 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1571 | # for backward compatibility: | |
1572 | ac_top_builddir=$ac_top_build_prefix | |
1e8e9920 | 1573 | |
1574 | case $srcdir in | |
cd9a469c | 1575 | .) # We are building in place. |
1e8e9920 | 1576 | ac_srcdir=. |
cd9a469c | 1577 | ac_top_srcdir=$ac_top_builddir_sub |
1578 | ac_abs_top_srcdir=$ac_pwd ;; | |
1579 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1e8e9920 | 1580 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1581 | ac_top_srcdir=$srcdir |
1582 | ac_abs_top_srcdir=$srcdir ;; | |
1583 | *) # Relative name. | |
1584 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1585 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1586 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1e8e9920 | 1587 | esac |
cd9a469c | 1588 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1589 | ||
1590 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1591 | # Check for guested configure. | |
1592 | if test -f "$ac_srcdir/configure.gnu"; then | |
1593 | echo && | |
1594 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1595 | elif test -f "$ac_srcdir/configure"; then | |
1596 | echo && | |
1597 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1e8e9920 | 1598 | else |
cd9a469c | 1599 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1600 | fi || ac_status=$? | |
1601 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1e8e9920 | 1602 | done |
1603 | fi | |
1604 | ||
cd9a469c | 1605 | test -n "$ac_init_help" && exit $ac_status |
1e8e9920 | 1606 | if $ac_init_version; then |
1607 | cat <<\_ACEOF | |
c35c9a62 | 1608 | GNU Offloading and Multi Processing Runtime Library configure 1.0 |
f00f02a3 | 1609 | generated by GNU Autoconf 2.69 |
1e8e9920 | 1610 | |
f00f02a3 | 1611 | Copyright (C) 2012 Free Software Foundation, Inc. |
1e8e9920 | 1612 | This configure script is free software; the Free Software Foundation |
1613 | gives unlimited permission to copy, distribute and modify it. | |
1614 | _ACEOF | |
cd9a469c | 1615 | exit |
1e8e9920 | 1616 | fi |
1e8e9920 | 1617 | |
cd9a469c | 1618 | ## ------------------------ ## |
1619 | ## Autoconf initialization. ## | |
1620 | ## ------------------------ ## | |
1e8e9920 | 1621 | |
cd9a469c | 1622 | # ac_fn_c_try_compile LINENO |
1623 | # -------------------------- | |
1624 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1625 | ac_fn_c_try_compile () | |
1e8e9920 | 1626 | { |
cd9a469c | 1627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1628 | rm -f conftest.$ac_objext | |
1629 | if { { ac_try="$ac_compile" | |
1630 | case "(($ac_try" in | |
1631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1632 | *) ac_try_echo=$ac_try;; | |
1633 | esac | |
1634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1635 | $as_echo "$ac_try_echo"; } >&5 | |
1636 | (eval "$ac_compile") 2>conftest.err | |
1637 | ac_status=$? | |
1638 | if test -s conftest.err; then | |
1639 | grep -v '^ *+' conftest.err >conftest.er1 | |
1640 | cat conftest.er1 >&5 | |
1641 | mv -f conftest.er1 conftest.err | |
1642 | fi | |
1643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1644 | test $ac_status = 0; } && { | |
1645 | test -z "$ac_c_werror_flag" || | |
1646 | test ! -s conftest.err | |
1647 | } && test -s conftest.$ac_objext; then : | |
1648 | ac_retval=0 | |
1649 | else | |
1650 | $as_echo "$as_me: failed program was:" >&5 | |
1651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1e8e9920 | 1652 | |
cd9a469c | 1653 | ac_retval=1 |
1654 | fi | |
f00f02a3 | 1655 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1656 | as_fn_set_status $ac_retval | |
1e8e9920 | 1657 | |
cd9a469c | 1658 | } # ac_fn_c_try_compile |
1e8e9920 | 1659 | |
cd9a469c | 1660 | # ac_fn_c_try_link LINENO |
1661 | # ----------------------- | |
1662 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1663 | ac_fn_c_try_link () | |
1664 | { | |
1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1667 | if { { ac_try="$ac_link" | |
1668 | case "(($ac_try" in | |
1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1670 | *) ac_try_echo=$ac_try;; | |
1671 | esac | |
1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1673 | $as_echo "$ac_try_echo"; } >&5 | |
1674 | (eval "$ac_link") 2>conftest.err | |
1675 | ac_status=$? | |
1676 | if test -s conftest.err; then | |
1677 | grep -v '^ *+' conftest.err >conftest.er1 | |
1678 | cat conftest.er1 >&5 | |
1679 | mv -f conftest.er1 conftest.err | |
1680 | fi | |
1681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1682 | test $ac_status = 0; } && { | |
1683 | test -z "$ac_c_werror_flag" || | |
1684 | test ! -s conftest.err | |
1685 | } && test -s conftest$ac_exeext && { | |
1686 | test "$cross_compiling" = yes || | |
f00f02a3 | 1687 | test -x conftest$ac_exeext |
cd9a469c | 1688 | }; then : |
1689 | ac_retval=0 | |
1690 | else | |
1691 | $as_echo "$as_me: failed program was:" >&5 | |
1692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1e8e9920 | 1693 | |
cd9a469c | 1694 | ac_retval=1 |
1695 | fi | |
1696 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1697 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1698 | # interfere with the next link command; also delete a directory that is | |
1699 | # left behind by Apple's compiler. We do this before executing the actions. | |
1700 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1701 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1702 | as_fn_set_status $ac_retval | |
1e8e9920 | 1703 | |
cd9a469c | 1704 | } # ac_fn_c_try_link |
1e8e9920 | 1705 | |
cd9a469c | 1706 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1707 | # ------------------------------------------------------- | |
1708 | # Tests whether HEADER exists and can be compiled using the include files in | |
1709 | # INCLUDES, setting the cache variable VAR accordingly. | |
1710 | ac_fn_c_check_header_compile () | |
1711 | { | |
1712 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1714 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1715 | if eval \${$3+:} false; then : |
cd9a469c | 1716 | $as_echo_n "(cached) " >&6 |
1717 | else | |
1718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1719 | /* end confdefs.h. */ | |
1720 | $4 | |
1721 | #include <$2> | |
1722 | _ACEOF | |
1723 | if ac_fn_c_try_compile "$LINENO"; then : | |
1724 | eval "$3=yes" | |
1725 | else | |
1726 | eval "$3=no" | |
1727 | fi | |
1728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1729 | fi | |
1730 | eval ac_res=\$$3 | |
1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1732 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 1733 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1e8e9920 | 1734 | |
cd9a469c | 1735 | } # ac_fn_c_check_header_compile |
1e8e9920 | 1736 | |
cd9a469c | 1737 | # ac_fn_c_try_cpp LINENO |
1738 | # ---------------------- | |
1739 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1740 | ac_fn_c_try_cpp () | |
1741 | { | |
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1743 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1744 | case "(($ac_try" in | |
1745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1746 | *) ac_try_echo=$ac_try;; | |
1747 | esac | |
1748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1749 | $as_echo "$ac_try_echo"; } >&5 | |
1750 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1751 | ac_status=$? | |
1752 | if test -s conftest.err; then | |
1753 | grep -v '^ *+' conftest.err >conftest.er1 | |
1754 | cat conftest.er1 >&5 | |
1755 | mv -f conftest.er1 conftest.err | |
1756 | fi | |
1757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
f00f02a3 | 1758 | test $ac_status = 0; } > conftest.i && { |
cd9a469c | 1759 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1760 | test ! -s conftest.err | |
1761 | }; then : | |
1762 | ac_retval=0 | |
1763 | else | |
1764 | $as_echo "$as_me: failed program was:" >&5 | |
1765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1e8e9920 | 1766 | |
cd9a469c | 1767 | ac_retval=1 |
1768 | fi | |
f00f02a3 | 1769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1770 | as_fn_set_status $ac_retval | |
1e8e9920 | 1771 | |
cd9a469c | 1772 | } # ac_fn_c_try_cpp |
1e8e9920 | 1773 | |
cd9a469c | 1774 | # ac_fn_c_try_run LINENO |
1775 | # ---------------------- | |
1776 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1777 | # that executables *can* be run. | |
1778 | ac_fn_c_try_run () | |
1779 | { | |
1780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1781 | if { { ac_try="$ac_link" | |
1782 | case "(($ac_try" in | |
1783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1784 | *) ac_try_echo=$ac_try;; | |
1785 | esac | |
1786 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1787 | $as_echo "$ac_try_echo"; } >&5 | |
1788 | (eval "$ac_link") 2>&5 | |
1789 | ac_status=$? | |
1790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1791 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1792 | { { case "(($ac_try" in | |
1793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1794 | *) ac_try_echo=$ac_try;; | |
1795 | esac | |
1796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1797 | $as_echo "$ac_try_echo"; } >&5 | |
1798 | (eval "$ac_try") 2>&5 | |
1799 | ac_status=$? | |
1800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1801 | test $ac_status = 0; }; }; then : | |
1802 | ac_retval=0 | |
1803 | else | |
1804 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1805 | $as_echo "$as_me: failed program was:" >&5 | |
1806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1e8e9920 | 1807 | |
cd9a469c | 1808 | ac_retval=$ac_status |
1809 | fi | |
1810 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1811 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1812 | as_fn_set_status $ac_retval | |
1e8e9920 | 1813 | |
cd9a469c | 1814 | } # ac_fn_c_try_run |
1e8e9920 | 1815 | |
cd9a469c | 1816 | # ac_fn_c_check_func LINENO FUNC VAR |
1817 | # ---------------------------------- | |
1818 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1819 | ac_fn_c_check_func () | |
1e8e9920 | 1820 | { |
cd9a469c | 1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1823 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1824 | if eval \${$3+:} false; then : |
cd9a469c | 1825 | $as_echo_n "(cached) " >&6 |
1826 | else | |
1827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1828 | /* end confdefs.h. */ | |
1829 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1830 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1831 | #define $2 innocuous_$2 | |
1e8e9920 | 1832 | |
cd9a469c | 1833 | /* System header to define __stub macros and hopefully few prototypes, |
1834 | which can conflict with char $2 (); below. | |
1835 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1836 | <limits.h> exists even on freestanding compilers. */ | |
1e8e9920 | 1837 | |
cd9a469c | 1838 | #ifdef __STDC__ |
1839 | # include <limits.h> | |
1840 | #else | |
1841 | # include <assert.h> | |
1842 | #endif | |
1e8e9920 | 1843 | |
cd9a469c | 1844 | #undef $2 |
1e8e9920 | 1845 | |
cd9a469c | 1846 | /* Override any GCC internal prototype to avoid an error. |
1847 | Use char because int might match the return type of a GCC | |
1848 | builtin and then its argument prototype would still apply. */ | |
1849 | #ifdef __cplusplus | |
1850 | extern "C" | |
1851 | #endif | |
1852 | char $2 (); | |
1853 | /* The GNU C library defines this for functions which it implements | |
1854 | to always fail with ENOSYS. Some functions are actually named | |
1855 | something starting with __ and the normal name is an alias. */ | |
1856 | #if defined __stub_$2 || defined __stub___$2 | |
1857 | choke me | |
1858 | #endif | |
1e8e9920 | 1859 | |
cd9a469c | 1860 | int |
1861 | main () | |
1862 | { | |
1863 | return $2 (); | |
1864 | ; | |
1865 | return 0; | |
1866 | } | |
1e8e9920 | 1867 | _ACEOF |
cd9a469c | 1868 | if ac_fn_c_try_link "$LINENO"; then : |
1869 | eval "$3=yes" | |
1870 | else | |
1871 | eval "$3=no" | |
1872 | fi | |
1873 | rm -f core conftest.err conftest.$ac_objext \ | |
1874 | conftest$ac_exeext conftest.$ac_ext | |
1875 | fi | |
1876 | eval ac_res=\$$3 | |
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1878 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 1879 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1e8e9920 | 1880 | |
cd9a469c | 1881 | } # ac_fn_c_check_func |
1e8e9920 | 1882 | |
cd9a469c | 1883 | # ac_fn_fc_try_compile LINENO |
1884 | # --------------------------- | |
1885 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1886 | ac_fn_fc_try_compile () | |
1887 | { | |
1888 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1889 | rm -f conftest.$ac_objext | |
1890 | if { { ac_try="$ac_compile" | |
1891 | case "(($ac_try" in | |
1892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1893 | *) ac_try_echo=$ac_try;; | |
1894 | esac | |
1895 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1896 | $as_echo "$ac_try_echo"; } >&5 | |
1897 | (eval "$ac_compile") 2>conftest.err | |
1898 | ac_status=$? | |
1899 | if test -s conftest.err; then | |
1900 | grep -v '^ *+' conftest.err >conftest.er1 | |
1901 | cat conftest.er1 >&5 | |
1902 | mv -f conftest.er1 conftest.err | |
1903 | fi | |
1904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1905 | test $ac_status = 0; } && { | |
1906 | test -z "$ac_fc_werror_flag" || | |
1907 | test ! -s conftest.err | |
1908 | } && test -s conftest.$ac_objext; then : | |
1909 | ac_retval=0 | |
1910 | else | |
1911 | $as_echo "$as_me: failed program was:" >&5 | |
1912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1e8e9920 | 1913 | |
cd9a469c | 1914 | ac_retval=1 |
1915 | fi | |
f00f02a3 | 1916 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1917 | as_fn_set_status $ac_retval | |
1e8e9920 | 1918 | |
cd9a469c | 1919 | } # ac_fn_fc_try_compile |
1e8e9920 | 1920 | |
cd9a469c | 1921 | # ac_fn_fc_try_link LINENO |
1922 | # ------------------------ | |
1923 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1924 | ac_fn_fc_try_link () | |
1925 | { | |
1926 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1928 | if { { ac_try="$ac_link" | |
1929 | case "(($ac_try" in | |
1930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1931 | *) ac_try_echo=$ac_try;; | |
1932 | esac | |
1933 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1934 | $as_echo "$ac_try_echo"; } >&5 | |
1935 | (eval "$ac_link") 2>conftest.err | |
1936 | ac_status=$? | |
1937 | if test -s conftest.err; then | |
1938 | grep -v '^ *+' conftest.err >conftest.er1 | |
1939 | cat conftest.er1 >&5 | |
1940 | mv -f conftest.er1 conftest.err | |
1941 | fi | |
1942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1943 | test $ac_status = 0; } && { | |
1944 | test -z "$ac_fc_werror_flag" || | |
1945 | test ! -s conftest.err | |
1946 | } && test -s conftest$ac_exeext && { | |
1947 | test "$cross_compiling" = yes || | |
f00f02a3 | 1948 | test -x conftest$ac_exeext |
cd9a469c | 1949 | }; then : |
1950 | ac_retval=0 | |
1951 | else | |
1952 | $as_echo "$as_me: failed program was:" >&5 | |
1953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1e8e9920 | 1954 | |
cd9a469c | 1955 | ac_retval=1 |
1956 | fi | |
1957 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1958 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1959 | # interfere with the next link command; also delete a directory that is | |
1960 | # left behind by Apple's compiler. We do this before executing the actions. | |
1961 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1962 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1963 | as_fn_set_status $ac_retval | |
1e8e9920 | 1964 | |
cd9a469c | 1965 | } # ac_fn_fc_try_link |
1e8e9920 | 1966 | |
cd9a469c | 1967 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1968 | # ------------------------------------------------------- | |
1969 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1970 | # the include files in INCLUDES and setting the cache variable VAR | |
1971 | # accordingly. | |
1972 | ac_fn_c_check_header_mongrel () | |
1973 | { | |
1974 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
f00f02a3 | 1975 | if eval \${$3+:} false; then : |
cd9a469c | 1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1977 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1978 | if eval \${$3+:} false; then : |
cd9a469c | 1979 | $as_echo_n "(cached) " >&6 |
1980 | fi | |
1981 | eval ac_res=\$$3 | |
1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1983 | $as_echo "$ac_res" >&6; } | |
1984 | else | |
1985 | # Is the header compilable? | |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1987 | $as_echo_n "checking $2 usability... " >&6; } | |
1988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1989 | /* end confdefs.h. */ | |
1990 | $4 | |
1991 | #include <$2> | |
1e8e9920 | 1992 | _ACEOF |
cd9a469c | 1993 | if ac_fn_c_try_compile "$LINENO"; then : |
1994 | ac_header_compiler=yes | |
1995 | else | |
1996 | ac_header_compiler=no | |
1e8e9920 | 1997 | fi |
cd9a469c | 1998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2000 | $as_echo "$ac_header_compiler" >&6; } | |
1e8e9920 | 2001 | |
cd9a469c | 2002 | # Is the header present? |
2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2004 | $as_echo_n "checking $2 presence... " >&6; } | |
2005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2006 | /* end confdefs.h. */ | |
2007 | #include <$2> | |
2008 | _ACEOF | |
2009 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2010 | ac_header_preproc=yes | |
1e8e9920 | 2011 | else |
cd9a469c | 2012 | ac_header_preproc=no |
1e8e9920 | 2013 | fi |
f00f02a3 | 2014 | rm -f conftest.err conftest.i conftest.$ac_ext |
cd9a469c | 2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2016 | $as_echo "$ac_header_preproc" >&6; } | |
1e8e9920 | 2017 | |
cd9a469c | 2018 | # So? What about this header? |
2019 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2020 | yes:no: ) | |
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2022 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2024 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2025 | ;; | |
2026 | no:yes:* ) | |
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2028 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2030 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2032 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2034 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2036 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2037 | ;; | |
2038 | esac | |
2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2040 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 2041 | if eval \${$3+:} false; then : |
cd9a469c | 2042 | $as_echo_n "(cached) " >&6 |
2043 | else | |
2044 | eval "$3=\$ac_header_compiler" | |
1e8e9920 | 2045 | fi |
cd9a469c | 2046 | eval ac_res=\$$3 |
2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2048 | $as_echo "$ac_res" >&6; } | |
2049 | fi | |
f00f02a3 | 2050 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1e8e9920 | 2051 | |
cd9a469c | 2052 | } # ac_fn_c_check_header_mongrel |
1e8e9920 | 2053 | |
cd9a469c | 2054 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2055 | # ------------------------------------------- | |
2056 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2057 | # variable VAR accordingly. | |
2058 | ac_fn_c_check_type () | |
2059 | { | |
2060 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2062 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 2063 | if eval \${$3+:} false; then : |
cd9a469c | 2064 | $as_echo_n "(cached) " >&6 |
2065 | else | |
2066 | eval "$3=no" | |
2067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2068 | /* end confdefs.h. */ | |
2069 | $4 | |
2070 | int | |
2071 | main () | |
2072 | { | |
2073 | if (sizeof ($2)) | |
2074 | return 0; | |
2075 | ; | |
2076 | return 0; | |
2077 | } | |
2078 | _ACEOF | |
2079 | if ac_fn_c_try_compile "$LINENO"; then : | |
2080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2081 | /* end confdefs.h. */ | |
2082 | $4 | |
2083 | int | |
2084 | main () | |
2085 | { | |
2086 | if (sizeof (($2))) | |
2087 | return 0; | |
2088 | ; | |
2089 | return 0; | |
2090 | } | |
2091 | _ACEOF | |
2092 | if ac_fn_c_try_compile "$LINENO"; then : | |
1e8e9920 | 2093 | |
cd9a469c | 2094 | else |
2095 | eval "$3=yes" | |
2096 | fi | |
2097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2098 | fi | |
2099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2100 | fi | |
2101 | eval ac_res=\$$3 | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2103 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 2104 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1e8e9920 | 2105 | |
cd9a469c | 2106 | } # ac_fn_c_check_type |
1e8e9920 | 2107 | |
cd9a469c | 2108 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2109 | # -------------------------------------------- | |
2110 | # Tries to find the compile-time value of EXPR in a program that includes | |
2111 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2112 | # computed | |
2113 | ac_fn_c_compute_int () | |
2114 | { | |
2115 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2116 | if test "$cross_compiling" = yes; then | |
2117 | # Depending upon the size, compute the lo and hi bounds. | |
2118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2119 | /* end confdefs.h. */ | |
2120 | $4 | |
2121 | int | |
2122 | main () | |
2123 | { | |
2124 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
f00f02a3 | 2125 | test_array [0] = 0; |
2126 | return test_array [0]; | |
1e8e9920 | 2127 | |
cd9a469c | 2128 | ; |
2129 | return 0; | |
2130 | } | |
2131 | _ACEOF | |
2132 | if ac_fn_c_try_compile "$LINENO"; then : | |
2133 | ac_lo=0 ac_mid=0 | |
2134 | while :; do | |
2135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2136 | /* end confdefs.h. */ | |
2137 | $4 | |
2138 | int | |
2139 | main () | |
2140 | { | |
2141 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
f00f02a3 | 2142 | test_array [0] = 0; |
2143 | return test_array [0]; | |
1e8e9920 | 2144 | |
cd9a469c | 2145 | ; |
2146 | return 0; | |
2147 | } | |
2148 | _ACEOF | |
2149 | if ac_fn_c_try_compile "$LINENO"; then : | |
2150 | ac_hi=$ac_mid; break | |
2151 | else | |
2152 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2153 | if test $ac_lo -le $ac_mid; then | |
2154 | ac_lo= ac_hi= | |
2155 | break | |
2156 | fi | |
2157 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2158 | fi | |
2159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2160 | done | |
2161 | else | |
2162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2163 | /* end confdefs.h. */ | |
2164 | $4 | |
2165 | int | |
2166 | main () | |
2167 | { | |
2168 | static int test_array [1 - 2 * !(($2) < 0)]; | |
f00f02a3 | 2169 | test_array [0] = 0; |
2170 | return test_array [0]; | |
1e8e9920 | 2171 | |
cd9a469c | 2172 | ; |
2173 | return 0; | |
2174 | } | |
2175 | _ACEOF | |
2176 | if ac_fn_c_try_compile "$LINENO"; then : | |
2177 | ac_hi=-1 ac_mid=-1 | |
2178 | while :; do | |
2179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2180 | /* end confdefs.h. */ | |
2181 | $4 | |
2182 | int | |
2183 | main () | |
2184 | { | |
2185 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
f00f02a3 | 2186 | test_array [0] = 0; |
2187 | return test_array [0]; | |
1e8e9920 | 2188 | |
cd9a469c | 2189 | ; |
2190 | return 0; | |
2191 | } | |
2192 | _ACEOF | |
2193 | if ac_fn_c_try_compile "$LINENO"; then : | |
2194 | ac_lo=$ac_mid; break | |
2195 | else | |
2196 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2197 | if test $ac_mid -le $ac_hi; then | |
2198 | ac_lo= ac_hi= | |
2199 | break | |
2200 | fi | |
2201 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2202 | fi | |
2203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2204 | done | |
2205 | else | |
2206 | ac_lo= ac_hi= | |
2207 | fi | |
2208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2209 | fi | |
2210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2211 | # Binary search between lo and hi bounds. | |
2212 | while test "x$ac_lo" != "x$ac_hi"; do | |
2213 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2215 | /* end confdefs.h. */ | |
2216 | $4 | |
2217 | int | |
2218 | main () | |
2219 | { | |
2220 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
f00f02a3 | 2221 | test_array [0] = 0; |
2222 | return test_array [0]; | |
1e8e9920 | 2223 | |
cd9a469c | 2224 | ; |
2225 | return 0; | |
2226 | } | |
2227 | _ACEOF | |
2228 | if ac_fn_c_try_compile "$LINENO"; then : | |
2229 | ac_hi=$ac_mid | |
2230 | else | |
2231 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2232 | fi | |
2233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2234 | done | |
2235 | case $ac_lo in #(( | |
2236 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2237 | '') ac_retval=1 ;; | |
2238 | esac | |
2239 | else | |
2240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2241 | /* end confdefs.h. */ | |
2242 | $4 | |
2243 | static long int longval () { return $2; } | |
2244 | static unsigned long int ulongval () { return $2; } | |
2245 | #include <stdio.h> | |
2246 | #include <stdlib.h> | |
2247 | int | |
2248 | main () | |
2249 | { | |
1e8e9920 | 2250 | |
cd9a469c | 2251 | FILE *f = fopen ("conftest.val", "w"); |
2252 | if (! f) | |
2253 | return 1; | |
2254 | if (($2) < 0) | |
2255 | { | |
2256 | long int i = longval (); | |
2257 | if (i != ($2)) | |
2258 | return 1; | |
2259 | fprintf (f, "%ld", i); | |
2260 | } | |
2261 | else | |
2262 | { | |
2263 | unsigned long int i = ulongval (); | |
2264 | if (i != ($2)) | |
2265 | return 1; | |
2266 | fprintf (f, "%lu", i); | |
2267 | } | |
2268 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2269 | on some platforms. */ | |
2270 | return ferror (f) || fclose (f) != 0; | |
1e8e9920 | 2271 | |
cd9a469c | 2272 | ; |
2273 | return 0; | |
2274 | } | |
2275 | _ACEOF | |
2276 | if ac_fn_c_try_run "$LINENO"; then : | |
2277 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2278 | else | |
2279 | ac_retval=1 | |
2280 | fi | |
2281 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2282 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2283 | rm -f conftest.val | |
1e8e9920 | 2284 | |
cd9a469c | 2285 | fi |
f00f02a3 | 2286 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2287 | as_fn_set_status $ac_retval | |
1e8e9920 | 2288 | |
cd9a469c | 2289 | } # ac_fn_c_compute_int |
2290 | cat >config.log <<_ACEOF | |
2291 | This file contains any messages produced by compilers while | |
2292 | running configure, to aid debugging if configure makes a mistake. | |
1e8e9920 | 2293 | |
c35c9a62 | 2294 | It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was |
f00f02a3 | 2295 | generated by GNU Autoconf 2.69. Invocation command line was |
1e8e9920 | 2296 | |
cd9a469c | 2297 | $ $0 $@ |
1e8e9920 | 2298 | |
cd9a469c | 2299 | _ACEOF |
2300 | exec 5>>config.log | |
2301 | { | |
2302 | cat <<_ASUNAME | |
2303 | ## --------- ## | |
2304 | ## Platform. ## | |
2305 | ## --------- ## | |
1e8e9920 | 2306 | |
cd9a469c | 2307 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2308 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2309 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2310 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2311 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1e8e9920 | 2312 | |
cd9a469c | 2313 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2314 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1e8e9920 | 2315 | |
cd9a469c | 2316 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2317 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2318 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2319 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2320 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2321 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2322 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1e8e9920 | 2323 | |
cd9a469c | 2324 | _ASUNAME |
1e8e9920 | 2325 | |
cd9a469c | 2326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2327 | for as_dir in $PATH | |
2328 | do | |
2329 | IFS=$as_save_IFS | |
2330 | test -z "$as_dir" && as_dir=. | |
2331 | $as_echo "PATH: $as_dir" | |
2332 | done | |
2333 | IFS=$as_save_IFS | |
1e8e9920 | 2334 | |
cd9a469c | 2335 | } >&5 |
1e8e9920 | 2336 | |
cd9a469c | 2337 | cat >&5 <<_ACEOF |
5b2c7553 | 2338 | |
2339 | ||
cd9a469c | 2340 | ## ----------- ## |
2341 | ## Core tests. ## | |
2342 | ## ----------- ## | |
5b2c7553 | 2343 | |
cd9a469c | 2344 | _ACEOF |
1e8e9920 | 2345 | |
2346 | ||
cd9a469c | 2347 | # Keep a trace of the command line. |
2348 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2349 | # Strip out --silent because we don't want to record it for future runs. | |
2350 | # Also quote any args containing shell meta-characters. | |
2351 | # Make two passes to allow for proper duplicate-argument suppression. | |
2352 | ac_configure_args= | |
2353 | ac_configure_args0= | |
2354 | ac_configure_args1= | |
2355 | ac_must_keep_next=false | |
2356 | for ac_pass in 1 2 | |
2357 | do | |
2358 | for ac_arg | |
2359 | do | |
2360 | case $ac_arg in | |
2361 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2362 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2363 | | -silent | --silent | --silen | --sile | --sil) | |
2364 | continue ;; | |
2365 | *\'*) | |
2366 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2367 | esac | |
2368 | case $ac_pass in | |
2369 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2370 | 2) | |
2371 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2372 | if test $ac_must_keep_next = true; then | |
2373 | ac_must_keep_next=false # Got value, back to normal. | |
2374 | else | |
2375 | case $ac_arg in | |
2376 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2377 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2378 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2379 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2380 | case "$ac_configure_args0 " in | |
2381 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2382 | esac | |
2383 | ;; | |
2384 | -* ) ac_must_keep_next=true ;; | |
2385 | esac | |
2386 | fi | |
2387 | as_fn_append ac_configure_args " '$ac_arg'" | |
2388 | ;; | |
2389 | esac | |
2390 | done | |
2391 | done | |
2392 | { ac_configure_args0=; unset ac_configure_args0;} | |
2393 | { ac_configure_args1=; unset ac_configure_args1;} | |
1e8e9920 | 2394 | |
cd9a469c | 2395 | # When interrupted or exit'd, cleanup temporary files, and complete |
2396 | # config.log. We remove comments because anyway the quotes in there | |
2397 | # would cause problems or look ugly. | |
2398 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2399 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2400 | trap 'exit_status=$? | |
2401 | # Save into config.log some information that might help in debugging. | |
2402 | { | |
2403 | echo | |
1e8e9920 | 2404 | |
f00f02a3 | 2405 | $as_echo "## ---------------- ## |
cd9a469c | 2406 | ## Cache variables. ## |
f00f02a3 | 2407 | ## ---------------- ##" |
cd9a469c | 2408 | echo |
2409 | # The following way of writing the cache mishandles newlines in values, | |
2410 | ( | |
2411 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2412 | eval ac_val=\$$ac_var | |
2413 | case $ac_val in #( | |
2414 | *${as_nl}*) | |
2415 | case $ac_var in #( | |
2416 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2417 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2418 | esac | |
2419 | case $ac_var in #( | |
2420 | _ | IFS | as_nl) ;; #( | |
2421 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2422 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2423 | esac ;; | |
2424 | esac | |
2425 | done | |
2426 | (set) 2>&1 | | |
2427 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2428 | *${as_nl}ac_space=\ *) | |
2429 | sed -n \ | |
2430 | "s/'\''/'\''\\\\'\'''\''/g; | |
2431 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2432 | ;; #( | |
2433 | *) | |
2434 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2435 | ;; | |
2436 | esac | | |
2437 | sort | |
2438 | ) | |
2439 | echo | |
1e8e9920 | 2440 | |
f00f02a3 | 2441 | $as_echo "## ----------------- ## |
cd9a469c | 2442 | ## Output variables. ## |
f00f02a3 | 2443 | ## ----------------- ##" |
cd9a469c | 2444 | echo |
2445 | for ac_var in $ac_subst_vars | |
2446 | do | |
2447 | eval ac_val=\$$ac_var | |
2448 | case $ac_val in | |
2449 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2450 | esac | |
2451 | $as_echo "$ac_var='\''$ac_val'\''" | |
2452 | done | sort | |
2453 | echo | |
1e8e9920 | 2454 | |
cd9a469c | 2455 | if test -n "$ac_subst_files"; then |
f00f02a3 | 2456 | $as_echo "## ------------------- ## |
cd9a469c | 2457 | ## File substitutions. ## |
f00f02a3 | 2458 | ## ------------------- ##" |
cd9a469c | 2459 | echo |
2460 | for ac_var in $ac_subst_files | |
2461 | do | |
2462 | eval ac_val=\$$ac_var | |
2463 | case $ac_val in | |
2464 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2465 | esac | |
2466 | $as_echo "$ac_var='\''$ac_val'\''" | |
2467 | done | sort | |
2468 | echo | |
2469 | fi | |
1e8e9920 | 2470 | |
cd9a469c | 2471 | if test -s confdefs.h; then |
f00f02a3 | 2472 | $as_echo "## ----------- ## |
cd9a469c | 2473 | ## confdefs.h. ## |
f00f02a3 | 2474 | ## ----------- ##" |
cd9a469c | 2475 | echo |
2476 | cat confdefs.h | |
2477 | echo | |
2478 | fi | |
2479 | test "$ac_signal" != 0 && | |
2480 | $as_echo "$as_me: caught signal $ac_signal" | |
2481 | $as_echo "$as_me: exit $exit_status" | |
2482 | } >&5 | |
2483 | rm -f core *.core core.conftest.* && | |
2484 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2485 | exit $exit_status | |
2486 | ' 0 | |
2487 | for ac_signal in 1 2 13 15; do | |
2488 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2489 | done | |
2490 | ac_signal=0 | |
1e8e9920 | 2491 | |
cd9a469c | 2492 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2493 | rm -f -r conftest* confdefs.h | |
2494 | ||
2495 | $as_echo "/* confdefs.h */" > confdefs.h | |
2496 | ||
2497 | # Predefined preprocessor variables. | |
2498 | ||
2499 | cat >>confdefs.h <<_ACEOF | |
2500 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2501 | _ACEOF | |
2502 | ||
2503 | cat >>confdefs.h <<_ACEOF | |
2504 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2505 | _ACEOF | |
2506 | ||
2507 | cat >>confdefs.h <<_ACEOF | |
2508 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2509 | _ACEOF | |
2510 | ||
2511 | cat >>confdefs.h <<_ACEOF | |
2512 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2513 | _ACEOF | |
2514 | ||
2515 | cat >>confdefs.h <<_ACEOF | |
2516 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2517 | _ACEOF | |
2518 | ||
2519 | cat >>confdefs.h <<_ACEOF | |
2520 | #define PACKAGE_URL "$PACKAGE_URL" | |
2521 | _ACEOF | |
2522 | ||
2523 | ||
2524 | # Let the site file select an alternate cache file if it wants to. | |
2525 | # Prefer an explicitly selected file to automatically selected ones. | |
2526 | ac_site_file1=NONE | |
2527 | ac_site_file2=NONE | |
2528 | if test -n "$CONFIG_SITE"; then | |
f00f02a3 | 2529 | # We do not want a PATH search for config.site. |
2530 | case $CONFIG_SITE in #(( | |
2531 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2532 | */*) ac_site_file1=$CONFIG_SITE;; | |
2533 | *) ac_site_file1=./$CONFIG_SITE;; | |
2534 | esac | |
cd9a469c | 2535 | elif test "x$prefix" != xNONE; then |
2536 | ac_site_file1=$prefix/share/config.site | |
2537 | ac_site_file2=$prefix/etc/config.site | |
2538 | else | |
2539 | ac_site_file1=$ac_default_prefix/share/config.site | |
2540 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2541 | fi | |
2542 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2543 | do | |
2544 | test "x$ac_site_file" = xNONE && continue | |
f00f02a3 | 2545 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
cd9a469c | 2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2547 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2548 | sed 's/^/| /' "$ac_site_file" >&5 | |
f00f02a3 | 2549 | . "$ac_site_file" \ |
2550 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2552 | as_fn_error $? "failed to load site script $ac_site_file | |
2553 | See \`config.log' for more details" "$LINENO" 5; } | |
cd9a469c | 2554 | fi |
2555 | done | |
2556 | ||
2557 | if test -r "$cache_file"; then | |
f00f02a3 | 2558 | # Some versions of bash will fail to source /dev/null (special files |
2559 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2560 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
cd9a469c | 2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2562 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2563 | case $cache_file in | |
2564 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2565 | *) . "./$cache_file";; | |
2566 | esac | |
2567 | fi | |
2568 | else | |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2570 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2571 | >$cache_file | |
2572 | fi | |
2573 | ||
a7826e61 | 2574 | as_fn_append ac_header_list " unistd.h" |
2575 | as_fn_append ac_func_list " secure_getenv" | |
2576 | as_fn_append ac_func_list " __secure_getenv" | |
2577 | as_fn_append ac_func_list " getuid" | |
2578 | as_fn_append ac_func_list " geteuid" | |
2579 | as_fn_append ac_func_list " getgid" | |
2580 | as_fn_append ac_func_list " getegid" | |
cd9a469c | 2581 | # Check that the precious variables saved in the cache have kept the same |
2582 | # value. | |
2583 | ac_cache_corrupted=false | |
2584 | for ac_var in $ac_precious_vars; do | |
2585 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2586 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2587 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2588 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2589 | case $ac_old_set,$ac_new_set in | |
2590 | set,) | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2592 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2593 | ac_cache_corrupted=: ;; | |
2594 | ,set) | |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2596 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2597 | ac_cache_corrupted=: ;; | |
2598 | ,);; | |
2599 | *) | |
2600 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2601 | # differences in whitespace do not lead to failure. | |
2602 | ac_old_val_w=`echo x $ac_old_val` | |
2603 | ac_new_val_w=`echo x $ac_new_val` | |
2604 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2606 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2607 | ac_cache_corrupted=: | |
2608 | else | |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2610 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2611 | eval $ac_var=\$ac_old_val | |
2612 | fi | |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2614 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2616 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2617 | fi;; | |
2618 | esac | |
2619 | # Pass precious variables to config.status. | |
2620 | if test "$ac_new_set" = set; then | |
2621 | case $ac_new_val in | |
2622 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2623 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2624 | esac | |
2625 | case " $ac_configure_args " in | |
2626 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2627 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2628 | esac | |
2629 | fi | |
2630 | done | |
2631 | if $ac_cache_corrupted; then | |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2633 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2635 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
f00f02a3 | 2636 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
cd9a469c | 2637 | fi |
2638 | ## -------------------- ## | |
2639 | ## Main body of script. ## | |
2640 | ## -------------------- ## | |
2641 | ||
2642 | ac_ext=c | |
2643 | ac_cpp='$CPP $CPPFLAGS' | |
2644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2647 | ||
2648 | ||
2649 | ||
2650 | ||
2651 | ||
2652 | ac_config_headers="$ac_config_headers config.h" | |
2653 | ||
2654 | ||
2655 | # ------- | |
2656 | # Options | |
2657 | # ------- | |
2658 | ||
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 | |
2660 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2661 | # Check whether --enable-version-specific-runtime-libs was given. | |
2662 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2663 | enableval=$enable_version_specific_runtime_libs; | |
1e8e9920 | 2664 | case "$enableval" in |
2665 | yes|no) ;; | |
f00f02a3 | 2666 | *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; |
1e8e9920 | 2667 | esac |
2668 | ||
2669 | else | |
2670 | enable_version_specific_runtime_libs=no | |
cd9a469c | 2671 | fi |
2672 | ||
1e8e9920 | 2673 | |
cd9a469c | 2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 |
2675 | $as_echo "$enable_version_specific_runtime_libs" >&6; } | |
1e8e9920 | 2676 | |
aeda7a78 | 2677 | # We would like our source tree to be readonly. However when releases or |
2678 | # pre-releases are generated, the flex/bison generated files as well as the | |
2679 | # various formats of manuals need to be included along with the rest of the | |
2680 | # sources. Therefore we have --enable-generated-files-in-srcdir to do | |
2681 | # just that. | |
cd9a469c | 2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 |
2683 | $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } | |
2684 | # Check whether --enable-generated-files-in-srcdir was given. | |
2685 | if test "${enable_generated_files_in_srcdir+set}" = set; then : | |
2686 | enableval=$enable_generated_files_in_srcdir; | |
aeda7a78 | 2687 | case "$enableval" in |
2688 | yes|no) ;; | |
f00f02a3 | 2689 | *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; |
aeda7a78 | 2690 | esac |
2691 | ||
2692 | else | |
2693 | enable_generated_files_in_srcdir=no | |
cd9a469c | 2694 | fi |
aeda7a78 | 2695 | |
2696 | ||
cd9a469c | 2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 |
2698 | $as_echo "$enable_generated_files_in_srcdir" >&6; } | |
2699 | if test "$enable_generated_files_in_srcdir" = yes; then | |
aeda7a78 | 2700 | GENINSRC_TRUE= |
2701 | GENINSRC_FALSE='#' | |
2702 | else | |
2703 | GENINSRC_TRUE='#' | |
2704 | GENINSRC_FALSE= | |
2705 | fi | |
2706 | ||
2707 | ||
2708 | ||
1e8e9920 | 2709 | # ------- |
2710 | # ------- | |
2711 | ||
2712 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2713 | # | |
2714 | # You will slowly go insane if you do not grok the following fact: when | |
2715 | # building this library, the top-level /target/ becomes the library's /host/. | |
2716 | # | |
2717 | # configure then causes --target to default to --host, exactly like any | |
2718 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2719 | # always be the same. This makes sense both for native and cross compilers | |
2720 | # just think about it for a little while. :-) | |
2721 | # | |
2722 | # Also, if this library is being configured as part of a cross compiler, the | |
2723 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2724 | # | |
2725 | # Do not delete or change the following two lines. For why, see | |
2726 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
2727 | ac_aux_dir= | |
cd9a469c | 2728 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
f00f02a3 | 2729 | if test -f "$ac_dir/install-sh"; then |
2730 | ac_aux_dir=$ac_dir | |
2731 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2732 | break | |
2733 | elif test -f "$ac_dir/install.sh"; then | |
2734 | ac_aux_dir=$ac_dir | |
2735 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2736 | break | |
2737 | elif test -f "$ac_dir/shtool"; then | |
2738 | ac_aux_dir=$ac_dir | |
2739 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2740 | break | |
2741 | fi | |
1e8e9920 | 2742 | done |
2743 | if test -z "$ac_aux_dir"; then | |
f00f02a3 | 2744 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
1e8e9920 | 2745 | fi |
cd9a469c | 2746 | |
2747 | # These three variables are undocumented and unsupported, | |
2748 | # and are intended to be withdrawn in a future Autoconf release. | |
2749 | # They can cause serious problems if a builder's source tree is in a directory | |
2750 | # whose full name contains unusual characters. | |
2751 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2752 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2753 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2754 | ||
1e8e9920 | 2755 | |
2756 | # Make sure we can run config.sub. | |
cd9a469c | 2757 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
f00f02a3 | 2758 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
cd9a469c | 2759 | |
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2761 | $as_echo_n "checking build system type... " >&6; } | |
f00f02a3 | 2762 | if ${ac_cv_build+:} false; then : |
cd9a469c | 2763 | $as_echo_n "(cached) " >&6 |
2764 | else | |
2765 | ac_build_alias=$build_alias | |
2766 | test "x$ac_build_alias" = x && | |
2767 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2768 | test "x$ac_build_alias" = x && | |
f00f02a3 | 2769 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
cd9a469c | 2770 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
f00f02a3 | 2771 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
cd9a469c | 2772 | |
2773 | fi | |
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2775 | $as_echo "$ac_cv_build" >&6; } | |
2776 | case $ac_cv_build in | |
2777 | *-*-*) ;; | |
f00f02a3 | 2778 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
cd9a469c | 2779 | esac |
1e8e9920 | 2780 | build=$ac_cv_build |
cd9a469c | 2781 | ac_save_IFS=$IFS; IFS='-' |
2782 | set x $ac_cv_build | |
2783 | shift | |
2784 | build_cpu=$1 | |
2785 | build_vendor=$2 | |
2786 | shift; shift | |
2787 | # Remember, the first character of IFS is used to create $*, | |
2788 | # except with old shells: | |
2789 | build_os=$* | |
2790 | IFS=$ac_save_IFS | |
2791 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1e8e9920 | 2792 | |
2793 | ||
cd9a469c | 2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2795 | $as_echo_n "checking host system type... " >&6; } | |
f00f02a3 | 2796 | if ${ac_cv_host+:} false; then : |
cd9a469c | 2797 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 2798 | else |
cd9a469c | 2799 | if test "x$host_alias" = x; then |
2800 | ac_cv_host=$ac_cv_build | |
2801 | else | |
2802 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
f00f02a3 | 2803 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
cd9a469c | 2804 | fi |
1e8e9920 | 2805 | |
2806 | fi | |
cd9a469c | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2808 | $as_echo "$ac_cv_host" >&6; } | |
2809 | case $ac_cv_host in | |
2810 | *-*-*) ;; | |
f00f02a3 | 2811 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
cd9a469c | 2812 | esac |
1e8e9920 | 2813 | host=$ac_cv_host |
cd9a469c | 2814 | ac_save_IFS=$IFS; IFS='-' |
2815 | set x $ac_cv_host | |
2816 | shift | |
2817 | host_cpu=$1 | |
2818 | host_vendor=$2 | |
2819 | shift; shift | |
2820 | # Remember, the first character of IFS is used to create $*, | |
2821 | # except with old shells: | |
2822 | host_os=$* | |
2823 | IFS=$ac_save_IFS | |
2824 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
1e8e9920 | 2825 | |
2826 | ||
cd9a469c | 2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2828 | $as_echo_n "checking target system type... " >&6; } | |
f00f02a3 | 2829 | if ${ac_cv_target+:} false; then : |
cd9a469c | 2830 | $as_echo_n "(cached) " >&6 |
2831 | else | |
2832 | if test "x$target_alias" = x; then | |
2833 | ac_cv_target=$ac_cv_host | |
1e8e9920 | 2834 | else |
cd9a469c | 2835 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
f00f02a3 | 2836 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
cd9a469c | 2837 | fi |
1e8e9920 | 2838 | |
2839 | fi | |
cd9a469c | 2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2841 | $as_echo "$ac_cv_target" >&6; } | |
2842 | case $ac_cv_target in | |
2843 | *-*-*) ;; | |
f00f02a3 | 2844 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
cd9a469c | 2845 | esac |
1e8e9920 | 2846 | target=$ac_cv_target |
cd9a469c | 2847 | ac_save_IFS=$IFS; IFS='-' |
2848 | set x $ac_cv_target | |
2849 | shift | |
2850 | target_cpu=$1 | |
2851 | target_vendor=$2 | |
2852 | shift; shift | |
2853 | # Remember, the first character of IFS is used to create $*, | |
2854 | # except with old shells: | |
2855 | target_os=$* | |
2856 | IFS=$ac_save_IFS | |
2857 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1e8e9920 | 2858 | |
2859 | ||
2860 | # The aliases save the names the user supplied, while $host etc. | |
2861 | # will get canonicalized. | |
2862 | test -n "$target_alias" && | |
2863 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2864 | NONENONEs,x,x, && | |
2865 | program_prefix=${target_alias}- | |
cd9a469c | 2866 | |
1e8e9920 | 2867 | target_alias=${target_alias-$host_alias} |
2868 | ||
2869 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
2870 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2871 | # 1.9.0: minimum required version | |
2872 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
2873 | # of other PACKAGE_* variables will, however, and there's nothing | |
2874 | # we can do about that; they come from AC_INIT). | |
2875 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
2876 | # file in the top srcdir, etc, etc), so stop complaining. | |
5dbeae57 | 2877 | # no-dist: we don't want 'dist' and related rules. |
1e8e9920 | 2878 | # -Wall: turns on all automake warnings... |
2879 | # -Wno-portability: ...except this one, since GNU make is required. | |
2880 | # -Wno-override: ... and this one, since we do want this in testsuite. | |
f00f02a3 | 2881 | am__api_version='1.15' |
cd9a469c | 2882 | |
1e8e9920 | 2883 | # Find a good install program. We prefer a C program (faster), |
2884 | # so one script is as good as another. But avoid the broken or | |
2885 | # incompatible versions: | |
2886 | # SysV /etc/install, /usr/sbin/install | |
2887 | # SunOS /usr/etc/install | |
2888 | # IRIX /sbin/install | |
2889 | # AIX /bin/install | |
2890 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2891 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2892 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2893 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2894 | # OS/2's system install, which has a completely different semantic | |
2895 | # ./install, which can be erroneously created by make from ./install.sh. | |
82eaf560 | 2896 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2898 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
1e8e9920 | 2899 | if test -z "$INSTALL"; then |
f00f02a3 | 2900 | if ${ac_cv_path_install+:} false; then : |
cd9a469c | 2901 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 2902 | else |
2903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2904 | for as_dir in $PATH | |
2905 | do | |
2906 | IFS=$as_save_IFS | |
2907 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2908 | # Account for people who put trailing slashes in PATH elements. |
2909 | case $as_dir/ in #(( | |
2910 | ./ | .// | /[cC]/* | \ | |
1e8e9920 | 2911 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2912 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1e8e9920 | 2913 | /usr/ucb/* ) ;; |
2914 | *) | |
2915 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2916 | # Don't use installbsd from OSF since it installs stuff as root | |
2917 | # by default. | |
2918 | for ac_prog in ginstall scoinst install; do | |
2919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2920 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1e8e9920 | 2921 | if test $ac_prog = install && |
2922 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2923 | # AIX install. It has an incompatible calling convention. | |
2924 | : | |
2925 | elif test $ac_prog = install && | |
2926 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2927 | # program-specific install script used by HP pwplus--don't use. | |
2928 | : | |
2929 | else | |
82eaf560 | 2930 | rm -rf conftest.one conftest.two conftest.dir |
2931 | echo one > conftest.one | |
2932 | echo two > conftest.two | |
2933 | mkdir conftest.dir | |
2934 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2935 | test -s conftest.one && test -s conftest.two && | |
2936 | test -s conftest.dir/conftest.one && | |
2937 | test -s conftest.dir/conftest.two | |
2938 | then | |
2939 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2940 | break 3 | |
2941 | fi | |
1e8e9920 | 2942 | fi |
2943 | fi | |
2944 | done | |
2945 | done | |
2946 | ;; | |
2947 | esac | |
cd9a469c | 2948 | |
2949 | done | |
2950 | IFS=$as_save_IFS | |
1e8e9920 | 2951 | |
82eaf560 | 2952 | rm -rf conftest.one conftest.two conftest.dir |
1e8e9920 | 2953 | |
2954 | fi | |
2955 | if test "${ac_cv_path_install+set}" = set; then | |
2956 | INSTALL=$ac_cv_path_install | |
2957 | else | |
82eaf560 | 2958 | # As a last resort, use the slow shell script. Don't cache a |
2959 | # value for INSTALL within a source directory, because that will | |
1e8e9920 | 2960 | # break other packages using the cache if that directory is |
82eaf560 | 2961 | # removed, or if the value is a relative name. |
1e8e9920 | 2962 | INSTALL=$ac_install_sh |
2963 | fi | |
2964 | fi | |
cd9a469c | 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2966 | $as_echo "$INSTALL" >&6; } | |
1e8e9920 | 2967 | |
2968 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2969 | # It thinks the first close brace ends the variable substitution. | |
2970 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2971 | ||
2972 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2973 | ||
2974 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2975 | ||
cd9a469c | 2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2977 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
cd9a469c | 2978 | # Reject unsafe characters in $srcdir or the absolute working directory |
2979 | # name. Accept space and tab only in the latter. | |
2980 | am_lf=' | |
2981 | ' | |
2982 | case `pwd` in | |
2983 | *[\\\"\#\$\&\'\`$am_lf]*) | |
f00f02a3 | 2984 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
cd9a469c | 2985 | esac |
2986 | case $srcdir in | |
2987 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
f00f02a3 | 2988 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
cd9a469c | 2989 | esac |
2990 | ||
f00f02a3 | 2991 | # Do 'set' in a subshell so we don't clobber the current shell's |
1e8e9920 | 2992 | # arguments. Must try -L first in case configure is actually a |
2993 | # symlink; some systems play weird games with the mod time of symlinks | |
2994 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2995 | # directory). | |
2996 | if ( | |
f00f02a3 | 2997 | am_has_slept=no |
2998 | for am_try in 1 2; do | |
2999 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3000 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3001 | if test "$*" = "X"; then | |
3002 | # -L didn't work. | |
3003 | set X `ls -t "$srcdir/configure" conftest.file` | |
3004 | fi | |
3005 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3006 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3007 | ||
3008 | # If neither matched, then we have a broken ls. This can happen | |
3009 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3010 | # broken ls alias from the environment. This has actually | |
3011 | # happened. Such a system could not be considered "sane". | |
3012 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3013 | alias in your environment" "$LINENO" 5 | |
3014 | fi | |
3015 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3016 | break | |
3017 | fi | |
3018 | # Just in case. | |
3019 | sleep 1 | |
3020 | am_has_slept=yes | |
3021 | done | |
1e8e9920 | 3022 | test "$2" = conftest.file |
3023 | ) | |
3024 | then | |
3025 | # Ok. | |
3026 | : | |
3027 | else | |
f00f02a3 | 3028 | as_fn_error $? "newly created file is older than distributed files! |
cd9a469c | 3029 | Check your system clock" "$LINENO" 5 |
1e8e9920 | 3030 | fi |
cd9a469c | 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3032 | $as_echo "yes" >&6; } | |
f00f02a3 | 3033 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3034 | # generated files are strictly newer. | |
3035 | am_sleep_pid= | |
3036 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3037 | ( sleep 1 ) & | |
3038 | am_sleep_pid=$! | |
3039 | fi | |
3040 | ||
3041 | rm -f conftest.file | |
3042 | ||
1e8e9920 | 3043 | test "$program_prefix" != NONE && |
cd9a469c | 3044 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
1e8e9920 | 3045 | # Use a double $ so make ignores it. |
3046 | test "$program_suffix" != NONE && | |
cd9a469c | 3047 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3048 | # Double any \ or $. | |
1e8e9920 | 3049 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 3050 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3051 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
1e8e9920 | 3052 | |
f00f02a3 | 3053 | # Expand $ac_aux_dir to an absolute path. |
3054 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
1e8e9920 | 3055 | |
cd9a469c | 3056 | if test x"${MISSING+set}" != xset; then |
3057 | case $am_aux_dir in | |
3058 | *\ * | *\ *) | |
3059 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3060 | *) | |
3061 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3062 | esac | |
3063 | fi | |
1e8e9920 | 3064 | # Use eval to expand $SHELL |
f00f02a3 | 3065 | if eval "$MISSING --is-lightweight"; then |
3066 | am_missing_run="$MISSING " | |
1e8e9920 | 3067 | else |
3068 | am_missing_run= | |
f00f02a3 | 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3070 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
cd9a469c | 3071 | fi |
3072 | ||
f00f02a3 | 3073 | if test x"${install_sh+set}" != xset; then |
cd9a469c | 3074 | case $am_aux_dir in |
3075 | *\ * | *\ *) | |
3076 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3077 | *) | |
3078 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3079 | esac | |
3080 | fi | |
3081 | ||
f00f02a3 | 3082 | # Installed binaries are usually stripped using 'strip' when the user |
3083 | # run "make install-strip". However 'strip' might not be the right | |
cd9a469c | 3084 | # tool to use in cross-compilation environments, therefore Automake |
f00f02a3 | 3085 | # will honor the 'STRIP' environment variable to overrule this program. |
cd9a469c | 3086 | if test "$cross_compiling" != no; then |
3087 | if test -n "$ac_tool_prefix"; then | |
3088 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3089 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3091 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3092 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 3093 | $as_echo_n "(cached) " >&6 |
3094 | else | |
3095 | if test -n "$STRIP"; then | |
3096 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3097 | else | |
3098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3099 | for as_dir in $PATH | |
3100 | do | |
3101 | IFS=$as_save_IFS | |
3102 | test -z "$as_dir" && as_dir=. | |
3103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cd9a469c | 3105 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3107 | break 2 | |
3108 | fi | |
3109 | done | |
3110 | done | |
3111 | IFS=$as_save_IFS | |
3112 | ||
3113 | fi | |
3114 | fi | |
3115 | STRIP=$ac_cv_prog_STRIP | |
3116 | if test -n "$STRIP"; then | |
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3118 | $as_echo "$STRIP" >&6; } | |
3119 | else | |
3120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3121 | $as_echo "no" >&6; } | |
3122 | fi | |
3123 | ||
3124 | ||
3125 | fi | |
3126 | if test -z "$ac_cv_prog_STRIP"; then | |
3127 | ac_ct_STRIP=$STRIP | |
3128 | # Extract the first word of "strip", so it can be a program name with args. | |
3129 | set dummy strip; ac_word=$2 | |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3131 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3132 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
cd9a469c | 3133 | $as_echo_n "(cached) " >&6 |
3134 | else | |
3135 | if test -n "$ac_ct_STRIP"; then | |
3136 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3137 | else | |
3138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3139 | for as_dir in $PATH | |
3140 | do | |
3141 | IFS=$as_save_IFS | |
3142 | test -z "$as_dir" && as_dir=. | |
3143 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3144 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cd9a469c | 3145 | ac_cv_prog_ac_ct_STRIP="strip" |
3146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3147 | break 2 | |
3148 | fi | |
3149 | done | |
3150 | done | |
3151 | IFS=$as_save_IFS | |
3152 | ||
3153 | fi | |
3154 | fi | |
3155 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3156 | if test -n "$ac_ct_STRIP"; then | |
3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3158 | $as_echo "$ac_ct_STRIP" >&6; } | |
3159 | else | |
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3161 | $as_echo "no" >&6; } | |
3162 | fi | |
3163 | ||
3164 | if test "x$ac_ct_STRIP" = x; then | |
3165 | STRIP=":" | |
3166 | else | |
3167 | case $cross_compiling:$ac_tool_warned in | |
3168 | yes:) | |
3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3170 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3171 | ac_tool_warned=yes ;; | |
3172 | esac | |
3173 | STRIP=$ac_ct_STRIP | |
3174 | fi | |
3175 | else | |
3176 | STRIP="$ac_cv_prog_STRIP" | |
3177 | fi | |
3178 | ||
3179 | fi | |
3180 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3181 | ||
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3183 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3184 | if test -z "$MKDIR_P"; then | |
f00f02a3 | 3185 | if ${ac_cv_path_mkdir+:} false; then : |
cd9a469c | 3186 | $as_echo_n "(cached) " >&6 |
3187 | else | |
3188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3189 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3190 | do | |
3191 | IFS=$as_save_IFS | |
3192 | test -z "$as_dir" && as_dir=. | |
3193 | for ac_prog in mkdir gmkdir; do | |
3194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3195 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
cd9a469c | 3196 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3197 | 'mkdir (GNU coreutils) '* | \ | |
3198 | 'mkdir (coreutils) '* | \ | |
3199 | 'mkdir (fileutils) '4.1*) | |
3200 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3201 | break 3;; | |
3202 | esac | |
3203 | done | |
3204 | done | |
1e8e9920 | 3205 | done |
cd9a469c | 3206 | IFS=$as_save_IFS |
3207 | ||
3208 | fi | |
3209 | ||
f00f02a3 | 3210 | test -d ./--version && rmdir ./--version |
cd9a469c | 3211 | if test "${ac_cv_path_mkdir+set}" = set; then |
3212 | MKDIR_P="$ac_cv_path_mkdir -p" | |
1e8e9920 | 3213 | else |
cd9a469c | 3214 | # As a last resort, use the slow shell script. Don't cache a |
3215 | # value for MKDIR_P within a source directory, because that will | |
3216 | # break other packages using the cache if that directory is | |
3217 | # removed, or if the value is a relative name. | |
cd9a469c | 3218 | MKDIR_P="$ac_install_sh -d" |
1e8e9920 | 3219 | fi |
3220 | fi | |
cd9a469c | 3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3222 | $as_echo "$MKDIR_P" >&6; } | |
3223 | ||
1e8e9920 | 3224 | for ac_prog in gawk mawk nawk awk |
3225 | do | |
3226 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3227 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3229 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3230 | if ${ac_cv_prog_AWK+:} false; then : |
cd9a469c | 3231 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 3232 | else |
3233 | if test -n "$AWK"; then | |
3234 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3235 | else | |
3236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3237 | for as_dir in $PATH | |
3238 | do | |
3239 | IFS=$as_save_IFS | |
3240 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3241 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 3243 | ac_cv_prog_AWK="$ac_prog" |
cd9a469c | 3244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 3245 | break 2 |
3246 | fi | |
3247 | done | |
cd9a469c | 3248 | done |
3249 | IFS=$as_save_IFS | |
1e8e9920 | 3250 | |
3251 | fi | |
3252 | fi | |
3253 | AWK=$ac_cv_prog_AWK | |
3254 | if test -n "$AWK"; then | |
cd9a469c | 3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3256 | $as_echo "$AWK" >&6; } | |
1e8e9920 | 3257 | else |
cd9a469c | 3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3259 | $as_echo "no" >&6; } | |
1e8e9920 | 3260 | fi |
3261 | ||
cd9a469c | 3262 | |
1e8e9920 | 3263 | test -n "$AWK" && break |
3264 | done | |
3265 | ||
cd9a469c | 3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3267 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3268 | set x ${MAKE-make} | |
3269 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
f00f02a3 | 3270 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
cd9a469c | 3271 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 3272 | else |
3273 | cat >conftest.make <<\_ACEOF | |
cd9a469c | 3274 | SHELL = /bin/sh |
1e8e9920 | 3275 | all: |
cd9a469c | 3276 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
1e8e9920 | 3277 | _ACEOF |
f00f02a3 | 3278 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
cd9a469c | 3279 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3280 | *@@@%%%=?*=@@@%%%*) | |
3281 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3282 | *) | |
3283 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3284 | esac | |
1e8e9920 | 3285 | rm -f conftest.make |
3286 | fi | |
cd9a469c | 3287 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3289 | $as_echo "yes" >&6; } | |
1e8e9920 | 3290 | SET_MAKE= |
3291 | else | |
cd9a469c | 3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3293 | $as_echo "no" >&6; } | |
1e8e9920 | 3294 | SET_MAKE="MAKE=${MAKE-make}" |
3295 | fi | |
3296 | ||
3297 | rm -rf .tst 2>/dev/null | |
3298 | mkdir .tst 2>/dev/null | |
3299 | if test -d .tst; then | |
3300 | am__leading_dot=. | |
3301 | else | |
3302 | am__leading_dot=_ | |
3303 | fi | |
3304 | rmdir .tst 2>/dev/null | |
3305 | ||
f00f02a3 | 3306 | # Check whether --enable-silent-rules was given. |
3307 | if test "${enable_silent_rules+set}" = set; then : | |
3308 | enableval=$enable_silent_rules; | |
3309 | fi | |
3310 | ||
3311 | case $enable_silent_rules in # ((( | |
3312 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3313 | no) AM_DEFAULT_VERBOSITY=1;; | |
3314 | *) AM_DEFAULT_VERBOSITY=1;; | |
3315 | esac | |
3316 | am_make=${MAKE-make} | |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3318 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3319 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3320 | $as_echo_n "(cached) " >&6 | |
3321 | else | |
3322 | if $as_echo 'TRUE=$(BAR$(V)) | |
3323 | BAR0=false | |
3324 | BAR1=true | |
3325 | V=1 | |
3326 | am__doit: | |
3327 | @$(TRUE) | |
3328 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3329 | am_cv_make_support_nested_variables=yes | |
3330 | else | |
3331 | am_cv_make_support_nested_variables=no | |
3332 | fi | |
3333 | fi | |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3335 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3336 | if test $am_cv_make_support_nested_variables = yes; then | |
3337 | AM_V='$(V)' | |
3338 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3339 | else | |
3340 | AM_V=$AM_DEFAULT_VERBOSITY | |
3341 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3342 | fi | |
3343 | AM_BACKSLASH='\' | |
3344 | ||
cd9a469c | 3345 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3346 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3347 | # is not polluted with repeated "-I." | |
3348 | am__isrc=' -I$(srcdir)' | |
3349 | # test to see if srcdir already configured | |
3350 | if test -f $srcdir/config.status; then | |
f00f02a3 | 3351 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
cd9a469c | 3352 | fi |
1e8e9920 | 3353 | fi |
3354 | ||
3355 | # test whether we have cygpath | |
3356 | if test -z "$CYGPATH_W"; then | |
3357 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3358 | CYGPATH_W='cygpath -w' | |
3359 | else | |
3360 | CYGPATH_W=echo | |
3361 | fi | |
3362 | fi | |
3363 | ||
3364 | ||
3365 | # Define the identity of the package. | |
3366 | PACKAGE='libgomp' | |
3367 | VERSION='1.0' | |
3368 | ||
3369 | ||
3370 | cat >>confdefs.h <<_ACEOF | |
3371 | #define PACKAGE "$PACKAGE" | |
3372 | _ACEOF | |
3373 | ||
3374 | ||
3375 | cat >>confdefs.h <<_ACEOF | |
3376 | #define VERSION "$VERSION" | |
3377 | _ACEOF | |
3378 | ||
3379 | # Some tools Automake needs. | |
3380 | ||
3381 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3382 | ||
3383 | ||
3384 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3385 | ||
3386 | ||
3387 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3388 | ||
3389 | ||
3390 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3391 | ||
3392 | ||
3393 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3394 | ||
f00f02a3 | 3395 | # For better backward compatibility. To be removed once Automake 1.9.x |
3396 | # dies out for good. For more background, see: | |
3397 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3398 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3399 | mkdir_p='$(MKDIR_P)' | |
3400 | ||
3401 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3402 | # system "awk" is bad on some platforms. | |
ebbb7f3d | 3403 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3404 | # in the wild :-( We should find a proper way to deprecate it ... | |
3405 | AMTAR='$${TAR-tar}' | |
1e8e9920 | 3406 | |
f00f02a3 | 3407 | |
3408 | # We'll loop over all known methods to create a tar archive until one works. | |
3409 | _am_tools='gnutar pax cpio none' | |
3410 | ||
ebbb7f3d | 3411 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
1e8e9920 | 3412 | |
3413 | ||
3414 | ||
3415 | ||
3416 | ||
f00f02a3 | 3417 | |
3418 | # POSIX will say in a future version that running "rm -f" with no argument | |
3419 | # is OK; and we want to be able to make that assumption in our Makefile | |
3420 | # recipes. So use an aggressive probe to check that the usage we want is | |
3421 | # actually supported "in the wild" to an acceptable degree. | |
3422 | # See automake bug#10828. | |
3423 | # To make any issue more visible, cause the running configure to be aborted | |
3424 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3425 | # user can still override this though. | |
3426 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3427 | cat >&2 <<'END' | |
3428 | Oops! | |
3429 | ||
3430 | Your 'rm' program seems unable to run without file operands specified | |
3431 | on the command line, even when the '-f' option is present. This is contrary | |
3432 | to the behaviour of most rm programs out there, and not conforming with | |
3433 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3434 | ||
3435 | Please tell bug-automake@gnu.org about your system, including the value | |
3436 | of your $PATH and any error possibly output before this message. This | |
3437 | can help us improve future automake versions. | |
3438 | ||
3439 | END | |
3440 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3441 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3442 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3443 | echo >&2 | |
3444 | else | |
3445 | cat >&2 <<'END' | |
3446 | Aborting the configuration process, to ensure you take notice of the issue. | |
3447 | ||
3448 | You can download and install GNU coreutils to get an 'rm' implementation | |
3449 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3450 | ||
3451 | If you want to complete the configuration process using your problematic | |
3452 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3453 | to "yes", and re-run configure. | |
3454 | ||
3455 | END | |
3456 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3457 | fi | |
3458 | fi | |
3459 | ||
1e8e9920 | 3460 | # Default to --enable-multilib |
cd9a469c | 3461 | # Check whether --enable-multilib was given. |
3462 | if test "${enable_multilib+set}" = set; then : | |
3463 | enableval=$enable_multilib; case "$enableval" in | |
1e8e9920 | 3464 | yes) multilib=yes ;; |
3465 | no) multilib=no ;; | |
f00f02a3 | 3466 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
1e8e9920 | 3467 | esac |
3468 | else | |
3469 | multilib=yes | |
cd9a469c | 3470 | fi |
3471 | ||
1e8e9920 | 3472 | |
3473 | # We may get other options which we leave undocumented: | |
3474 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3475 | # See config-ml.in if you want the gory details. | |
3476 | ||
3477 | if test "$srcdir" = "."; then | |
3478 | if test "$with_target_subdir" != "."; then | |
3479 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3480 | else | |
3481 | multi_basedir="$srcdir/$with_multisrctop.." | |
3482 | fi | |
3483 | else | |
3484 | multi_basedir="$srcdir/.." | |
3485 | fi | |
3486 | ||
3487 | ||
ff434425 | 3488 | # Even if the default multilib is not a cross compilation, |
3489 | # it may be that some of the other multilibs are. | |
3490 | if test $cross_compiling = no && test $multilib = yes \ | |
3491 | && test "x${with_multisubdir}" != x ; then | |
3492 | cross_compiling=maybe | |
3493 | fi | |
3494 | ||
cd9a469c | 3495 | ac_config_commands="$ac_config_commands default-1" |
1e8e9920 | 3496 | |
3497 | ||
3498 | # Calculate toolexeclibdir | |
3499 | # Also toolexecdir, though it's only used in toolexeclibdir | |
3500 | case ${enable_version_specific_runtime_libs} in | |
3501 | yes) | |
3502 | # Need the gcc compiler version to know where to install libraries | |
3503 | # and header files if --enable-version-specific-runtime-libs option | |
3504 | # is selected. | |
3505 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
3506 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
3507 | ;; | |
3508 | no) | |
3509 | if test -n "$with_cross_host" && | |
3510 | test x"$with_cross_host" != x"no"; then | |
3511 | # Install a library built with a cross compiler in tooldir, not libdir. | |
3512 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
3513 | toolexeclibdir='$(toolexecdir)/lib' | |
3514 | else | |
3515 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
3516 | toolexeclibdir='$(libdir)' | |
3517 | fi | |
3518 | multi_os_directory=`$CC -print-multi-os-directory` | |
3519 | case $multi_os_directory in | |
3520 | .) ;; # Avoid trailing /. | |
3521 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
3522 | esac | |
3523 | ;; | |
3524 | esac | |
3525 | ||
3526 | ||
3527 | ||
3528 | # Check the compiler. | |
3529 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
3530 | # We must force CC to /not/ be precious variables; otherwise | |
3531 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
3532 | # As a side effect, we have to subst CFLAGS ourselves. | |
3533 | ||
3534 | ||
3535 | ||
3536 | ac_ext=c | |
3537 | ac_cpp='$CPP $CPPFLAGS' | |
3538 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3539 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3540 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3541 | if test -n "$ac_tool_prefix"; then | |
3542 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3543 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3545 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3546 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3547 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 3548 | else |
3549 | if test -n "$CC"; then | |
3550 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3551 | else | |
3552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3553 | for as_dir in $PATH | |
3554 | do | |
3555 | IFS=$as_save_IFS | |
3556 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3557 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 3559 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 3560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 3561 | break 2 |
3562 | fi | |
3563 | done | |
cd9a469c | 3564 | done |
3565 | IFS=$as_save_IFS | |
1e8e9920 | 3566 | |
3567 | fi | |
3568 | fi | |
3569 | CC=$ac_cv_prog_CC | |
3570 | if test -n "$CC"; then | |
cd9a469c | 3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3572 | $as_echo "$CC" >&6; } | |
1e8e9920 | 3573 | else |
cd9a469c | 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3575 | $as_echo "no" >&6; } | |
1e8e9920 | 3576 | fi |
3577 | ||
cd9a469c | 3578 | |
1e8e9920 | 3579 | fi |
3580 | if test -z "$ac_cv_prog_CC"; then | |
3581 | ac_ct_CC=$CC | |
3582 | # Extract the first word of "gcc", so it can be a program name with args. | |
3583 | set dummy gcc; ac_word=$2 | |
cd9a469c | 3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3585 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3586 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 3587 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 3588 | else |
3589 | if test -n "$ac_ct_CC"; then | |
3590 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3591 | else | |
3592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3593 | for as_dir in $PATH | |
3594 | do | |
3595 | IFS=$as_save_IFS | |
3596 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3597 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 3599 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 3600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 3601 | break 2 |
3602 | fi | |
3603 | done | |
cd9a469c | 3604 | done |
3605 | IFS=$as_save_IFS | |
1e8e9920 | 3606 | |
3607 | fi | |
3608 | fi | |
3609 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3610 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3612 | $as_echo "$ac_ct_CC" >&6; } | |
1e8e9920 | 3613 | else |
cd9a469c | 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3615 | $as_echo "no" >&6; } | |
1e8e9920 | 3616 | fi |
3617 | ||
cd9a469c | 3618 | if test "x$ac_ct_CC" = x; then |
3619 | CC="" | |
3620 | else | |
3621 | case $cross_compiling:$ac_tool_warned in | |
3622 | yes:) | |
3623 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3624 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3625 | ac_tool_warned=yes ;; | |
3626 | esac | |
3627 | CC=$ac_ct_CC | |
3628 | fi | |
1e8e9920 | 3629 | else |
3630 | CC="$ac_cv_prog_CC" | |
3631 | fi | |
3632 | ||
3633 | if test -z "$CC"; then | |
cd9a469c | 3634 | if test -n "$ac_tool_prefix"; then |
3635 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1e8e9920 | 3636 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3638 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3639 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3640 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 3641 | else |
3642 | if test -n "$CC"; then | |
3643 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3644 | else | |
3645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3646 | for as_dir in $PATH | |
3647 | do | |
3648 | IFS=$as_save_IFS | |
3649 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3650 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 3652 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 3653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 3654 | break 2 |
3655 | fi | |
3656 | done | |
cd9a469c | 3657 | done |
3658 | IFS=$as_save_IFS | |
1e8e9920 | 3659 | |
3660 | fi | |
3661 | fi | |
3662 | CC=$ac_cv_prog_CC | |
3663 | if test -n "$CC"; then | |
cd9a469c | 3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3665 | $as_echo "$CC" >&6; } | |
1e8e9920 | 3666 | else |
cd9a469c | 3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3668 | $as_echo "no" >&6; } | |
1e8e9920 | 3669 | fi |
3670 | ||
1e8e9920 | 3671 | |
cd9a469c | 3672 | fi |
1e8e9920 | 3673 | fi |
3674 | if test -z "$CC"; then | |
3675 | # Extract the first word of "cc", so it can be a program name with args. | |
3676 | set dummy cc; ac_word=$2 | |
cd9a469c | 3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3678 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3679 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3680 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 3681 | else |
3682 | if test -n "$CC"; then | |
3683 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3684 | else | |
3685 | ac_prog_rejected=no | |
3686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3687 | for as_dir in $PATH | |
3688 | do | |
3689 | IFS=$as_save_IFS | |
3690 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3691 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 3693 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3694 | ac_prog_rejected=yes | |
3695 | continue | |
3696 | fi | |
3697 | ac_cv_prog_CC="cc" | |
cd9a469c | 3698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 3699 | break 2 |
3700 | fi | |
3701 | done | |
cd9a469c | 3702 | done |
3703 | IFS=$as_save_IFS | |
1e8e9920 | 3704 | |
3705 | if test $ac_prog_rejected = yes; then | |
3706 | # We found a bogon in the path, so make sure we never use it. | |
3707 | set dummy $ac_cv_prog_CC | |
3708 | shift | |
3709 | if test $# != 0; then | |
3710 | # We chose a different compiler from the bogus one. | |
3711 | # However, it has the same basename, so the bogon will be chosen | |
3712 | # first if we set CC to just the basename; use the full file name. | |
3713 | shift | |
3714 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3715 | fi | |
3716 | fi | |
3717 | fi | |
3718 | fi | |
3719 | CC=$ac_cv_prog_CC | |
3720 | if test -n "$CC"; then | |
cd9a469c | 3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3722 | $as_echo "$CC" >&6; } | |
1e8e9920 | 3723 | else |
cd9a469c | 3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3725 | $as_echo "no" >&6; } | |
1e8e9920 | 3726 | fi |
3727 | ||
cd9a469c | 3728 | |
1e8e9920 | 3729 | fi |
3730 | if test -z "$CC"; then | |
3731 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 3732 | for ac_prog in cl.exe |
1e8e9920 | 3733 | do |
3734 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3735 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 3736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3737 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3738 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3739 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 3740 | else |
3741 | if test -n "$CC"; then | |
3742 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3743 | else | |
3744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3745 | for as_dir in $PATH | |
3746 | do | |
3747 | IFS=$as_save_IFS | |
3748 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3749 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 3751 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 3752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 3753 | break 2 |
3754 | fi | |
3755 | done | |
cd9a469c | 3756 | done |
3757 | IFS=$as_save_IFS | |
1e8e9920 | 3758 | |
3759 | fi | |
3760 | fi | |
3761 | CC=$ac_cv_prog_CC | |
3762 | if test -n "$CC"; then | |
cd9a469c | 3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3764 | $as_echo "$CC" >&6; } | |
1e8e9920 | 3765 | else |
cd9a469c | 3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3767 | $as_echo "no" >&6; } | |
1e8e9920 | 3768 | fi |
3769 | ||
cd9a469c | 3770 | |
1e8e9920 | 3771 | test -n "$CC" && break |
3772 | done | |
3773 | fi | |
3774 | if test -z "$CC"; then | |
3775 | ac_ct_CC=$CC | |
cd9a469c | 3776 | for ac_prog in cl.exe |
1e8e9920 | 3777 | do |
3778 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3779 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3781 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3782 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 3783 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 3784 | else |
3785 | if test -n "$ac_ct_CC"; then | |
3786 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3787 | else | |
3788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3789 | for as_dir in $PATH | |
3790 | do | |
3791 | IFS=$as_save_IFS | |
3792 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3793 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3794 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 3795 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 3796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 3797 | break 2 |
3798 | fi | |
3799 | done | |
cd9a469c | 3800 | done |
3801 | IFS=$as_save_IFS | |
1e8e9920 | 3802 | |
3803 | fi | |
3804 | fi | |
3805 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3806 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3808 | $as_echo "$ac_ct_CC" >&6; } | |
1e8e9920 | 3809 | else |
cd9a469c | 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3811 | $as_echo "no" >&6; } | |
1e8e9920 | 3812 | fi |
3813 | ||
cd9a469c | 3814 | |
1e8e9920 | 3815 | test -n "$ac_ct_CC" && break |
3816 | done | |
3817 | ||
cd9a469c | 3818 | if test "x$ac_ct_CC" = x; then |
3819 | CC="" | |
3820 | else | |
3821 | case $cross_compiling:$ac_tool_warned in | |
3822 | yes:) | |
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3824 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3825 | ac_tool_warned=yes ;; | |
3826 | esac | |
3827 | CC=$ac_ct_CC | |
3828 | fi | |
1e8e9920 | 3829 | fi |
3830 | ||
3831 | fi | |
3832 | ||
3833 | ||
cd9a469c | 3834 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 3836 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3837 | See \`config.log' for more details" "$LINENO" 5; } | |
1e8e9920 | 3838 | |
3839 | # Provide some information about the compiler. | |
cd9a469c | 3840 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3841 | set X $ac_compile | |
3842 | ac_compiler=$2 | |
3843 | for ac_option in --version -v -V -qversion; do | |
3844 | { { ac_try="$ac_compiler $ac_option >&5" | |
3845 | case "(($ac_try" in | |
3846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3847 | *) ac_try_echo=$ac_try;; | |
3848 | esac | |
3849 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3850 | $as_echo "$ac_try_echo"; } >&5 | |
3851 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1e8e9920 | 3852 | ac_status=$? |
cd9a469c | 3853 | if test -s conftest.err; then |
3854 | sed '10a\ | |
3855 | ... rest of stderr output deleted ... | |
3856 | 10q' conftest.err >conftest.er1 | |
3857 | cat conftest.er1 >&5 | |
cd9a469c | 3858 | fi |
f00f02a3 | 3859 | rm -f conftest.er1 conftest.err |
cd9a469c | 3860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3861 | test $ac_status = 0; } | |
3862 | done | |
1e8e9920 | 3863 | |
cd9a469c | 3864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1e8e9920 | 3865 | /* end confdefs.h. */ |
3866 | ||
3867 | int | |
3868 | main () | |
3869 | { | |
3870 | ||
3871 | ; | |
3872 | return 0; | |
3873 | } | |
3874 | _ACEOF | |
3875 | ac_clean_files_save=$ac_clean_files | |
f00f02a3 | 3876 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1e8e9920 | 3877 | # Try to create an executable without -o first, disregard a.out. |
3878 | # It will help us diagnose broken compilers, and finding out an intuition | |
3879 | # of exeext. | |
f00f02a3 | 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3881 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
cd9a469c | 3882 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3883 | ||
3884 | # The possible output files: | |
3885 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3886 | ||
3887 | ac_rmfiles= | |
3888 | for ac_file in $ac_files | |
3889 | do | |
3890 | case $ac_file in | |
3891 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3892 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3893 | esac | |
3894 | done | |
3895 | rm -f $ac_rmfiles | |
3896 | ||
3897 | if { { ac_try="$ac_link_default" | |
3898 | case "(($ac_try" in | |
3899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3900 | *) ac_try_echo=$ac_try;; | |
3901 | esac | |
3902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3903 | $as_echo "$ac_try_echo"; } >&5 | |
3904 | (eval "$ac_link_default") 2>&5 | |
3905 | ac_status=$? | |
3906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3907 | test $ac_status = 0; }; then : | |
3908 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3909 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3910 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3911 | # so that the user can short-circuit this test for compilers unknown to | |
3912 | # Autoconf. | |
3913 | for ac_file in $ac_files '' | |
1e8e9920 | 3914 | do |
3915 | test -f "$ac_file" || continue | |
3916 | case $ac_file in | |
cd9a469c | 3917 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1e8e9920 | 3918 | ;; |
3919 | [ab].out ) | |
3920 | # We found the default executable, but exeext='' is most | |
3921 | # certainly right. | |
3922 | break;; | |
3923 | *.* ) | |
cd9a469c | 3924 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3925 | then :; else | |
3926 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3927 | fi | |
3928 | # We set ac_cv_exeext here because the later test for it is not | |
3929 | # safe: cross compilers may not add the suffix if given an `-o' | |
3930 | # argument, so we may need to know it at that point already. | |
3931 | # Even if this section looks crufty: it has the advantage of | |
3932 | # actually working. | |
1e8e9920 | 3933 | break;; |
3934 | * ) | |
3935 | break;; | |
3936 | esac | |
3937 | done | |
cd9a469c | 3938 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3939 | ||
1e8e9920 | 3940 | else |
cd9a469c | 3941 | ac_file='' |
3942 | fi | |
cd9a469c | 3943 | if test -z "$ac_file"; then : |
f00f02a3 | 3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3945 | $as_echo "no" >&6; } | |
3946 | $as_echo "$as_me: failed program was:" >&5 | |
1e8e9920 | 3947 | sed 's/^/| /' conftest.$ac_ext >&5 |
3948 | ||
cd9a469c | 3949 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3950 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 3951 | as_fn_error 77 "C compiler cannot create executables |
3952 | See \`config.log' for more details" "$LINENO" 5; } | |
3953 | else | |
3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3955 | $as_echo "yes" >&6; } | |
1e8e9920 | 3956 | fi |
f00f02a3 | 3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3958 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3960 | $as_echo "$ac_file" >&6; } | |
1e8e9920 | 3961 | ac_exeext=$ac_cv_exeext |
1e8e9920 | 3962 | |
f00f02a3 | 3963 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1e8e9920 | 3964 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3966 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3967 | if { { ac_try="$ac_link" | |
3968 | case "(($ac_try" in | |
3969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3970 | *) ac_try_echo=$ac_try;; | |
3971 | esac | |
3972 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3973 | $as_echo "$ac_try_echo"; } >&5 | |
3974 | (eval "$ac_link") 2>&5 | |
1e8e9920 | 3975 | ac_status=$? |
cd9a469c | 3976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3977 | test $ac_status = 0; }; then : | |
1e8e9920 | 3978 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3979 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3980 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3981 | # `rm'. | |
3982 | for ac_file in conftest.exe conftest conftest.*; do | |
3983 | test -f "$ac_file" || continue | |
3984 | case $ac_file in | |
cd9a469c | 3985 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1e8e9920 | 3986 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1e8e9920 | 3987 | break;; |
3988 | * ) break;; | |
3989 | esac | |
3990 | done | |
3991 | else | |
cd9a469c | 3992 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 3994 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3995 | See \`config.log' for more details" "$LINENO" 5; } | |
1e8e9920 | 3996 | fi |
f00f02a3 | 3997 | rm -f conftest conftest$ac_cv_exeext |
cd9a469c | 3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3999 | $as_echo "$ac_cv_exeext" >&6; } | |
1e8e9920 | 4000 | |
4001 | rm -f conftest.$ac_ext | |
4002 | EXEEXT=$ac_cv_exeext | |
4003 | ac_exeext=$EXEEXT | |
f00f02a3 | 4004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4005 | /* end confdefs.h. */ | |
4006 | #include <stdio.h> | |
4007 | int | |
4008 | main () | |
4009 | { | |
4010 | FILE *f = fopen ("conftest.out", "w"); | |
4011 | return ferror (f) || fclose (f) != 0; | |
4012 | ||
4013 | ; | |
4014 | return 0; | |
4015 | } | |
4016 | _ACEOF | |
4017 | ac_clean_files="$ac_clean_files conftest.out" | |
4018 | # Check that the compiler produces executables we can run. If not, either | |
4019 | # the compiler is broken, or we cross compile. | |
4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4021 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4022 | if test "$cross_compiling" != yes; then | |
4023 | { { ac_try="$ac_link" | |
4024 | case "(($ac_try" in | |
4025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4026 | *) ac_try_echo=$ac_try;; | |
4027 | esac | |
4028 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4029 | $as_echo "$ac_try_echo"; } >&5 | |
4030 | (eval "$ac_link") 2>&5 | |
4031 | ac_status=$? | |
4032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4033 | test $ac_status = 0; } | |
4034 | if { ac_try='./conftest$ac_cv_exeext' | |
4035 | { { case "(($ac_try" in | |
4036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4037 | *) ac_try_echo=$ac_try;; | |
4038 | esac | |
4039 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4040 | $as_echo "$ac_try_echo"; } >&5 | |
4041 | (eval "$ac_try") 2>&5 | |
4042 | ac_status=$? | |
4043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4044 | test $ac_status = 0; }; }; then | |
4045 | cross_compiling=no | |
4046 | else | |
4047 | if test "$cross_compiling" = maybe; then | |
4048 | cross_compiling=yes | |
4049 | else | |
4050 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4051 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4052 | as_fn_error $? "cannot run C compiled programs. | |
4053 | If you meant to cross compile, use \`--host'. | |
4054 | See \`config.log' for more details" "$LINENO" 5; } | |
4055 | fi | |
4056 | fi | |
4057 | fi | |
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4059 | $as_echo "$cross_compiling" >&6; } | |
4060 | ||
4061 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4062 | ac_clean_files=$ac_clean_files_save | |
cd9a469c | 4063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4064 | $as_echo_n "checking for suffix of object files... " >&6; } | |
f00f02a3 | 4065 | if ${ac_cv_objext+:} false; then : |
cd9a469c | 4066 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4067 | else |
cd9a469c | 4068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1e8e9920 | 4069 | /* end confdefs.h. */ |
4070 | ||
4071 | int | |
4072 | main () | |
4073 | { | |
4074 | ||
4075 | ; | |
4076 | return 0; | |
4077 | } | |
4078 | _ACEOF | |
4079 | rm -f conftest.o conftest.obj | |
cd9a469c | 4080 | if { { ac_try="$ac_compile" |
4081 | case "(($ac_try" in | |
4082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4083 | *) ac_try_echo=$ac_try;; | |
4084 | esac | |
4085 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4086 | $as_echo "$ac_try_echo"; } >&5 | |
4087 | (eval "$ac_compile") 2>&5 | |
4088 | ac_status=$? | |
4089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4090 | test $ac_status = 0; }; then : | |
4091 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4092 | test -f "$ac_file" || continue; | |
1e8e9920 | 4093 | case $ac_file in |
cd9a469c | 4094 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1e8e9920 | 4095 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4096 | break;; | |
4097 | esac | |
4098 | done | |
4099 | else | |
cd9a469c | 4100 | $as_echo "$as_me: failed program was:" >&5 |
1e8e9920 | 4101 | sed 's/^/| /' conftest.$ac_ext >&5 |
4102 | ||
cd9a469c | 4103 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4104 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4105 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4106 | See \`config.log' for more details" "$LINENO" 5; } | |
1e8e9920 | 4107 | fi |
1e8e9920 | 4108 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4109 | fi | |
cd9a469c | 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4111 | $as_echo "$ac_cv_objext" >&6; } | |
1e8e9920 | 4112 | OBJEXT=$ac_cv_objext |
4113 | ac_objext=$OBJEXT | |
cd9a469c | 4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4115 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f00f02a3 | 4116 | if ${ac_cv_c_compiler_gnu+:} false; then : |
cd9a469c | 4117 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4118 | else |
cd9a469c | 4119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1e8e9920 | 4120 | /* end confdefs.h. */ |
4121 | ||
4122 | int | |
4123 | main () | |
4124 | { | |
4125 | #ifndef __GNUC__ | |
4126 | choke me | |
4127 | #endif | |
4128 | ||
4129 | ; | |
4130 | return 0; | |
4131 | } | |
4132 | _ACEOF | |
cd9a469c | 4133 | if ac_fn_c_try_compile "$LINENO"; then : |
1e8e9920 | 4134 | ac_compiler_gnu=yes |
4135 | else | |
cd9a469c | 4136 | ac_compiler_gnu=no |
1e8e9920 | 4137 | fi |
cd9a469c | 4138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1e8e9920 | 4139 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4140 | ||
4141 | fi | |
cd9a469c | 4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4143 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4144 | if test $ac_compiler_gnu = yes; then | |
4145 | GCC=yes | |
4146 | else | |
4147 | GCC= | |
4148 | fi | |
1e8e9920 | 4149 | ac_test_CFLAGS=${CFLAGS+set} |
4150 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4152 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f00f02a3 | 4153 | if ${ac_cv_prog_cc_g+:} false; then : |
cd9a469c | 4154 | $as_echo_n "(cached) " >&6 |
4155 | else | |
4156 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4157 | ac_c_werror_flag=yes | |
4158 | ac_cv_prog_cc_g=no | |
4159 | CFLAGS="-g" | |
4160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1e8e9920 | 4161 | /* end confdefs.h. */ |
4162 | ||
4163 | int | |
4164 | main () | |
4165 | { | |
4166 | ||
4167 | ; | |
4168 | return 0; | |
4169 | } | |
4170 | _ACEOF | |
cd9a469c | 4171 | if ac_fn_c_try_compile "$LINENO"; then : |
1e8e9920 | 4172 | ac_cv_prog_cc_g=yes |
4173 | else | |
cd9a469c | 4174 | CFLAGS="" |
4175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4176 | /* end confdefs.h. */ | |
4177 | ||
4178 | int | |
4179 | main () | |
4180 | { | |
4181 | ||
4182 | ; | |
4183 | return 0; | |
4184 | } | |
4185 | _ACEOF | |
4186 | if ac_fn_c_try_compile "$LINENO"; then : | |
4187 | ||
4188 | else | |
4189 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4190 | CFLAGS="-g" | |
4191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4192 | /* end confdefs.h. */ | |
4193 | ||
4194 | int | |
4195 | main () | |
4196 | { | |
1e8e9920 | 4197 | |
cd9a469c | 4198 | ; |
4199 | return 0; | |
4200 | } | |
4201 | _ACEOF | |
4202 | if ac_fn_c_try_compile "$LINENO"; then : | |
4203 | ac_cv_prog_cc_g=yes | |
1e8e9920 | 4204 | fi |
cd9a469c | 4205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1e8e9920 | 4206 | fi |
cd9a469c | 4207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4208 | fi | |
4209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4210 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4211 | fi | |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4213 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
1e8e9920 | 4214 | if test "$ac_test_CFLAGS" = set; then |
4215 | CFLAGS=$ac_save_CFLAGS | |
4216 | elif test $ac_cv_prog_cc_g = yes; then | |
4217 | if test "$GCC" = yes; then | |
4218 | CFLAGS="-g -O2" | |
4219 | else | |
4220 | CFLAGS="-g" | |
4221 | fi | |
4222 | else | |
4223 | if test "$GCC" = yes; then | |
4224 | CFLAGS="-O2" | |
4225 | else | |
4226 | CFLAGS= | |
4227 | fi | |
4228 | fi | |
cd9a469c | 4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4230 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
f00f02a3 | 4231 | if ${ac_cv_prog_cc_c89+:} false; then : |
cd9a469c | 4232 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4233 | else |
cd9a469c | 4234 | ac_cv_prog_cc_c89=no |
1e8e9920 | 4235 | ac_save_CC=$CC |
cd9a469c | 4236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1e8e9920 | 4237 | /* end confdefs.h. */ |
4238 | #include <stdarg.h> | |
4239 | #include <stdio.h> | |
f00f02a3 | 4240 | struct stat; |
1e8e9920 | 4241 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4242 | struct buf { int x; }; | |
4243 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4244 | static char *e (p, i) | |
4245 | char **p; | |
4246 | int i; | |
4247 | { | |
4248 | return p[i]; | |
4249 | } | |
4250 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4251 | { | |
4252 | char *s; | |
4253 | va_list v; | |
4254 | va_start (v,p); | |
4255 | s = g (p, va_arg (v,int)); | |
4256 | va_end (v); | |
4257 | return s; | |
4258 | } | |
4259 | ||
4260 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4261 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4262 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4263 | as 'x'. The following induces an error, until -std is added to get |
1e8e9920 | 4264 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4265 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4266 | that's true only with -std. */ |
1e8e9920 | 4267 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4268 | ||
cd9a469c | 4269 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4270 | inside strings and character constants. */ | |
4271 | #define FOO(x) 'x' | |
4272 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4273 | ||
1e8e9920 | 4274 | int test (int i, double x); |
4275 | struct s1 {int (*f) (int a);}; | |
4276 | struct s2 {int (*f) (double a);}; | |
4277 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4278 | int argc; | |
4279 | char **argv; | |
4280 | int | |
4281 | main () | |
4282 | { | |
4283 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4284 | ; | |
4285 | return 0; | |
4286 | } | |
4287 | _ACEOF | |
cd9a469c | 4288 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4289 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1e8e9920 | 4290 | do |
4291 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4292 | if ac_fn_c_try_compile "$LINENO"; then : |
4293 | ac_cv_prog_cc_c89=$ac_arg | |
1e8e9920 | 4294 | fi |
cd9a469c | 4295 | rm -f core conftest.err conftest.$ac_objext |
4296 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1e8e9920 | 4297 | done |
cd9a469c | 4298 | rm -f conftest.$ac_ext |
1e8e9920 | 4299 | CC=$ac_save_CC |
4300 | ||
4301 | fi | |
cd9a469c | 4302 | # AC_CACHE_VAL |
4303 | case "x$ac_cv_prog_cc_c89" in | |
4304 | x) | |
4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4306 | $as_echo "none needed" >&6; } ;; | |
4307 | xno) | |
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4309 | $as_echo "unsupported" >&6; } ;; | |
1e8e9920 | 4310 | *) |
cd9a469c | 4311 | CC="$CC $ac_cv_prog_cc_c89" |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4313 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1e8e9920 | 4314 | esac |
cd9a469c | 4315 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1e8e9920 | 4316 | |
1e8e9920 | 4317 | fi |
4318 | ||
1e8e9920 | 4319 | ac_ext=c |
4320 | ac_cpp='$CPP $CPPFLAGS' | |
4321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f00f02a3 | 4324 | |
4325 | ac_ext=c | |
4326 | ac_cpp='$CPP $CPPFLAGS' | |
4327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4331 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4332 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4333 | $as_echo_n "(cached) " >&6 | |
4334 | else | |
4335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4336 | /* end confdefs.h. */ | |
4337 | ||
4338 | int | |
4339 | main () | |
4340 | { | |
4341 | ||
4342 | ; | |
4343 | return 0; | |
4344 | } | |
4345 | _ACEOF | |
4346 | # Make sure it works both with $CC and with simple cc. | |
4347 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4348 | # compilers refuse to overwrite an existing .o file with -o, | |
4349 | # though they will create one. | |
4350 | am_cv_prog_cc_c_o=yes | |
4351 | for am_i in 1 2; do | |
4352 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4353 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4354 | ac_status=$? | |
4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4356 | (exit $ac_status); } \ | |
4357 | && test -f conftest2.$ac_objext; then | |
4358 | : OK | |
4359 | else | |
4360 | am_cv_prog_cc_c_o=no | |
4361 | break | |
4362 | fi | |
4363 | done | |
4364 | rm -f core conftest* | |
4365 | unset am_i | |
4366 | fi | |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4368 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4369 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4370 | # Losing compiler, so override with the script. | |
4371 | # FIXME: It is wrong to rewrite CC. | |
4372 | # But if we don't then we get into trouble of one sort or another. | |
4373 | # A longer-term fix would be to have automake use am__CC in this case, | |
4374 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4375 | CC="$am_aux_dir/compile $CC" | |
4376 | fi | |
4377 | ac_ext=c | |
4378 | ac_cpp='$CPP $CPPFLAGS' | |
4379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4382 | ||
1e8e9920 | 4383 | DEPDIR="${am__leading_dot}deps" |
4384 | ||
cd9a469c | 4385 | ac_config_commands="$ac_config_commands depfiles" |
1e8e9920 | 4386 | |
4387 | ||
4388 | am_make=${MAKE-make} | |
4389 | cat > confinc << 'END' | |
4390 | am__doit: | |
cd9a469c | 4391 | @echo this is the am__doit target |
1e8e9920 | 4392 | .PHONY: am__doit |
4393 | END | |
4394 | # If we don't find an include directive, just comment out the code. | |
cd9a469c | 4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
4396 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
1e8e9920 | 4397 | am__include="#" |
4398 | am__quote= | |
4399 | _am_result=none | |
4400 | # First try GNU make style include. | |
4401 | echo "include confinc" > confmf | |
f00f02a3 | 4402 | # Ignore all kinds of additional output from 'make'. |
cd9a469c | 4403 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4404 | *the\ am__doit\ target*) | |
4405 | am__include=include | |
4406 | am__quote= | |
4407 | _am_result=GNU | |
4408 | ;; | |
4409 | esac | |
1e8e9920 | 4410 | # Now try BSD make style include. |
4411 | if test "$am__include" = "#"; then | |
4412 | echo '.include "confinc"' > confmf | |
cd9a469c | 4413 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4414 | *the\ am__doit\ target*) | |
4415 | am__include=.include | |
4416 | am__quote="\"" | |
4417 | _am_result=BSD | |
4418 | ;; | |
4419 | esac | |
1e8e9920 | 4420 | fi |
4421 | ||
4422 | ||
cd9a469c | 4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4424 | $as_echo "$_am_result" >&6; } | |
1e8e9920 | 4425 | rm -f confinc confmf |
4426 | ||
cd9a469c | 4427 | # Check whether --enable-dependency-tracking was given. |
4428 | if test "${enable_dependency_tracking+set}" = set; then : | |
4429 | enableval=$enable_dependency_tracking; | |
4430 | fi | |
1e8e9920 | 4431 | |
1e8e9920 | 4432 | if test "x$enable_dependency_tracking" != xno; then |
4433 | am_depcomp="$ac_aux_dir/depcomp" | |
4434 | AMDEPBACKSLASH='\' | |
ebbb7f3d | 4435 | am__nodep='_no' |
1e8e9920 | 4436 | fi |
cd9a469c | 4437 | if test "x$enable_dependency_tracking" != xno; then |
1e8e9920 | 4438 | AMDEP_TRUE= |
4439 | AMDEP_FALSE='#' | |
4440 | else | |
4441 | AMDEP_TRUE='#' | |
4442 | AMDEP_FALSE= | |
4443 | fi | |
4444 | ||
4445 | ||
4446 | ||
1e8e9920 | 4447 | depcc="$CC" am_compiler_list= |
4448 | ||
cd9a469c | 4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4450 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
f00f02a3 | 4451 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
cd9a469c | 4452 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4453 | else |
4454 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4455 | # We make a subdir and do the tests there. Otherwise we can end up | |
4456 | # making bogus files that we don't know about and never remove. For | |
4457 | # instance it was reported that on HP-UX the gcc test will end up | |
f00f02a3 | 4458 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4459 | # in D". | |
ebbb7f3d | 4460 | rm -rf conftest.dir |
1e8e9920 | 4461 | mkdir conftest.dir |
4462 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4463 | # using a relative directory. | |
4464 | cp "$am_depcomp" conftest.dir | |
4465 | cd conftest.dir | |
4466 | # We will build objects and dependencies in a subdirectory because | |
4467 | # it helps to detect inapplicable dependency modes. For instance | |
4468 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4469 | # side effect of compilation, but ICC will put the dependencies in | |
4470 | # the current directory while Tru64 will put them in the object | |
4471 | # directory. | |
4472 | mkdir sub | |
4473 | ||
4474 | am_cv_CC_dependencies_compiler_type=none | |
4475 | if test "$am_compiler_list" = ""; then | |
4476 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4477 | fi | |
cd9a469c | 4478 | am__universal=false |
4479 | case " $depcc " in #( | |
4480 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4481 | esac | |
4482 | ||
1e8e9920 | 4483 | for depmode in $am_compiler_list; do |
4484 | # Setup a source with many dependencies, because some compilers | |
4485 | # like to wrap large dependency lists on column 80 (with \), and | |
4486 | # we should not choose a depcomp mode which is confused by this. | |
4487 | # | |
4488 | # We need to recreate these files for each test, as the compiler may | |
4489 | # overwrite some of them when testing with obscure command lines. | |
4490 | # This happens at least with the AIX C compiler. | |
4491 | : > sub/conftest.c | |
4492 | for i in 1 2 3 4 5 6; do | |
4493 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
f00f02a3 | 4494 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4495 | # Solaris 10 /bin/sh. | |
4496 | echo '/* dummy */' > sub/conftst$i.h | |
1e8e9920 | 4497 | done |
4498 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4499 | ||
f00f02a3 | 4500 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
cd9a469c | 4501 | # mode. It turns out that the SunPro C++ compiler does not properly |
f00f02a3 | 4502 | # handle '-M -o', and we need to detect this. Also, some Intel |
4503 | # versions had trouble with output in subdirs. | |
cd9a469c | 4504 | am__obj=sub/conftest.${OBJEXT-o} |
4505 | am__minus_obj="-o $am__obj" | |
1e8e9920 | 4506 | case $depmode in |
cd9a469c | 4507 | gcc) |
4508 | # This depmode causes a compiler race in universal mode. | |
4509 | test "$am__universal" = false || continue | |
4510 | ;; | |
1e8e9920 | 4511 | nosideeffect) |
f00f02a3 | 4512 | # After this tag, mechanisms are not by side-effect, so they'll |
4513 | # only be used when explicitly requested. | |
1e8e9920 | 4514 | if test "x$enable_dependency_tracking" = xyes; then |
4515 | continue | |
4516 | else | |
4517 | break | |
4518 | fi | |
4519 | ;; | |
ebbb7f3d | 4520 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
f00f02a3 | 4521 | # This compiler won't grok '-c -o', but also, the minuso test has |
cd9a469c | 4522 | # not run yet. These depmodes are late enough in the game, and |
4523 | # so weak that their functioning should not be impacted. | |
4524 | am__obj=conftest.${OBJEXT-o} | |
4525 | am__minus_obj= | |
4526 | ;; | |
1e8e9920 | 4527 | none) break ;; |
4528 | esac | |
1e8e9920 | 4529 | if depmode=$depmode \ |
cd9a469c | 4530 | source=sub/conftest.c object=$am__obj \ |
1e8e9920 | 4531 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
cd9a469c | 4532 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
1e8e9920 | 4533 | >/dev/null 2>conftest.err && |
cd9a469c | 4534 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
1e8e9920 | 4535 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
cd9a469c | 4536 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
1e8e9920 | 4537 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4538 | # icc doesn't choke on unknown options, it will just issue warnings | |
4539 | # or remarks (even with -Werror). So we grep stderr for any message | |
4540 | # that says an option was ignored or not supported. | |
4541 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4542 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4543 | # The diagnosis changed in icc 8.0: | |
4544 | # icc: Command line remark: option '-MP' not supported | |
4545 | if (grep 'ignoring option' conftest.err || | |
4546 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4547 | am_cv_CC_dependencies_compiler_type=$depmode | |
4548 | break | |
4549 | fi | |
4550 | fi | |
4551 | done | |
4552 | ||
4553 | cd .. | |
4554 | rm -rf conftest.dir | |
4555 | else | |
4556 | am_cv_CC_dependencies_compiler_type=none | |
4557 | fi | |
4558 | ||
4559 | fi | |
cd9a469c | 4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4561 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
1e8e9920 | 4562 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4563 | ||
cd9a469c | 4564 | if |
1e8e9920 | 4565 | test "x$enable_dependency_tracking" != xno \ |
4566 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4567 | am__fastdepCC_TRUE= | |
4568 | am__fastdepCC_FALSE='#' | |
4569 | else | |
4570 | am__fastdepCC_TRUE='#' | |
4571 | am__fastdepCC_FALSE= | |
4572 | fi | |
4573 | ||
4574 | ||
4575 | ||
4576 | ||
4577 | ||
4578 | ||
4579 | # In order to override CFLAGS_FOR_TARGET, all of our special flags go | |
4580 | # in XCFLAGS. But we need them in CFLAGS during configury. So put them | |
4581 | # in both places for now and restore CFLAGS at the end of config. | |
4582 | save_CFLAGS="$CFLAGS" | |
4583 | ||
4584 | # Add -Wall -Werror if we are using GCC. | |
4585 | if test "x$GCC" = "xyes"; then | |
4586 | XCFLAGS="$XCFLAGS -Wall -Werror" | |
4587 | fi | |
4588 | ||
4589 | # Find other programs we need. | |
4590 | if test -n "$ac_tool_prefix"; then | |
4591 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4592 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
cd9a469c | 4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4594 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4595 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 4596 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4597 | else |
4598 | if test -n "$AR"; then | |
4599 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4600 | else | |
4601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4602 | for as_dir in $PATH | |
4603 | do | |
4604 | IFS=$as_save_IFS | |
4605 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4606 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4607 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 4608 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
cd9a469c | 4609 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 4610 | break 2 |
4611 | fi | |
4612 | done | |
cd9a469c | 4613 | done |
4614 | IFS=$as_save_IFS | |
1e8e9920 | 4615 | |
4616 | fi | |
4617 | fi | |
4618 | AR=$ac_cv_prog_AR | |
4619 | if test -n "$AR"; then | |
cd9a469c | 4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4621 | $as_echo "$AR" >&6; } | |
1e8e9920 | 4622 | else |
cd9a469c | 4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4624 | $as_echo "no" >&6; } | |
1e8e9920 | 4625 | fi |
4626 | ||
cd9a469c | 4627 | |
1e8e9920 | 4628 | fi |
4629 | if test -z "$ac_cv_prog_AR"; then | |
4630 | ac_ct_AR=$AR | |
4631 | # Extract the first word of "ar", so it can be a program name with args. | |
4632 | set dummy ar; ac_word=$2 | |
cd9a469c | 4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4634 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4635 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
cd9a469c | 4636 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4637 | else |
4638 | if test -n "$ac_ct_AR"; then | |
4639 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4640 | else | |
4641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4642 | for as_dir in $PATH | |
4643 | do | |
4644 | IFS=$as_save_IFS | |
4645 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4646 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 4648 | ac_cv_prog_ac_ct_AR="ar" |
cd9a469c | 4649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 4650 | break 2 |
4651 | fi | |
4652 | done | |
cd9a469c | 4653 | done |
4654 | IFS=$as_save_IFS | |
1e8e9920 | 4655 | |
4656 | fi | |
4657 | fi | |
4658 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4659 | if test -n "$ac_ct_AR"; then | |
cd9a469c | 4660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
4661 | $as_echo "$ac_ct_AR" >&6; } | |
1e8e9920 | 4662 | else |
cd9a469c | 4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4664 | $as_echo "no" >&6; } | |
1e8e9920 | 4665 | fi |
4666 | ||
cd9a469c | 4667 | if test "x$ac_ct_AR" = x; then |
4668 | AR="" | |
4669 | else | |
4670 | case $cross_compiling:$ac_tool_warned in | |
4671 | yes:) | |
4672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4673 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4674 | ac_tool_warned=yes ;; | |
4675 | esac | |
4676 | AR=$ac_ct_AR | |
4677 | fi | |
1e8e9920 | 4678 | else |
4679 | AR="$ac_cv_prog_AR" | |
4680 | fi | |
4681 | ||
4682 | if test -n "$ac_tool_prefix"; then | |
4683 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4684 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
cd9a469c | 4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4686 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4687 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 4688 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4689 | else |
4690 | if test -n "$RANLIB"; then | |
4691 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4692 | else | |
4693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4694 | for as_dir in $PATH | |
4695 | do | |
4696 | IFS=$as_save_IFS | |
4697 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4698 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4699 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 4700 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
cd9a469c | 4701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 4702 | break 2 |
4703 | fi | |
4704 | done | |
cd9a469c | 4705 | done |
4706 | IFS=$as_save_IFS | |
1e8e9920 | 4707 | |
4708 | fi | |
4709 | fi | |
4710 | RANLIB=$ac_cv_prog_RANLIB | |
4711 | if test -n "$RANLIB"; then | |
cd9a469c | 4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4713 | $as_echo "$RANLIB" >&6; } | |
1e8e9920 | 4714 | else |
cd9a469c | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4716 | $as_echo "no" >&6; } | |
1e8e9920 | 4717 | fi |
4718 | ||
cd9a469c | 4719 | |
1e8e9920 | 4720 | fi |
4721 | if test -z "$ac_cv_prog_RANLIB"; then | |
4722 | ac_ct_RANLIB=$RANLIB | |
4723 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4724 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4726 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4727 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
cd9a469c | 4728 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4729 | else |
4730 | if test -n "$ac_ct_RANLIB"; then | |
4731 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4732 | else | |
4733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4734 | for as_dir in $PATH | |
4735 | do | |
4736 | IFS=$as_save_IFS | |
4737 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4738 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4739 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 4740 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
cd9a469c | 4741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 4742 | break 2 |
4743 | fi | |
4744 | done | |
cd9a469c | 4745 | done |
4746 | IFS=$as_save_IFS | |
1e8e9920 | 4747 | |
1e8e9920 | 4748 | fi |
4749 | fi | |
4750 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4751 | if test -n "$ac_ct_RANLIB"; then | |
cd9a469c | 4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4753 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1e8e9920 | 4754 | else |
cd9a469c | 4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4756 | $as_echo "no" >&6; } | |
1e8e9920 | 4757 | fi |
4758 | ||
cd9a469c | 4759 | if test "x$ac_ct_RANLIB" = x; then |
4760 | RANLIB="ranlib-not-found-in-path-error" | |
4761 | else | |
4762 | case $cross_compiling:$ac_tool_warned in | |
4763 | yes:) | |
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4765 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4766 | ac_tool_warned=yes ;; | |
4767 | esac | |
4768 | RANLIB=$ac_ct_RANLIB | |
4769 | fi | |
1e8e9920 | 4770 | else |
4771 | RANLIB="$ac_cv_prog_RANLIB" | |
4772 | fi | |
4773 | ||
4774 | # Extract the first word of "perl", so it can be a program name with args. | |
4775 | set dummy perl; ac_word=$2 | |
cd9a469c | 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4777 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4778 | if ${ac_cv_path_PERL+:} false; then : |
cd9a469c | 4779 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4780 | else |
4781 | case $PERL in | |
4782 | [\\/]* | ?:[\\/]*) | |
4783 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
4784 | ;; | |
4785 | *) | |
4786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4787 | for as_dir in $PATH | |
4788 | do | |
4789 | IFS=$as_save_IFS | |
4790 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4791 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 4793 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 4794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 4795 | break 2 |
4796 | fi | |
4797 | done | |
cd9a469c | 4798 | done |
4799 | IFS=$as_save_IFS | |
1e8e9920 | 4800 | |
4801 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" | |
4802 | ;; | |
4803 | esac | |
4804 | fi | |
4805 | PERL=$ac_cv_path_PERL | |
1e8e9920 | 4806 | if test -n "$PERL"; then |
cd9a469c | 4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
4808 | $as_echo "$PERL" >&6; } | |
1e8e9920 | 4809 | else |
cd9a469c | 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4811 | $as_echo "no" >&6; } | |
1e8e9920 | 4812 | fi |
4813 | ||
cd9a469c | 4814 | |
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4816 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4817 | set x ${MAKE-make} | |
4818 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
f00f02a3 | 4819 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
cd9a469c | 4820 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 4821 | else |
4822 | cat >conftest.make <<\_ACEOF | |
cd9a469c | 4823 | SHELL = /bin/sh |
1e8e9920 | 4824 | all: |
cd9a469c | 4825 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
1e8e9920 | 4826 | _ACEOF |
f00f02a3 | 4827 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
cd9a469c | 4828 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4829 | *@@@%%%=?*=@@@%%%*) | |
4830 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4831 | *) | |
4832 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4833 | esac | |
1e8e9920 | 4834 | rm -f conftest.make |
4835 | fi | |
cd9a469c | 4836 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4838 | $as_echo "yes" >&6; } | |
1e8e9920 | 4839 | SET_MAKE= |
4840 | else | |
cd9a469c | 4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4842 | $as_echo "no" >&6; } | |
1e8e9920 | 4843 | SET_MAKE="MAKE=${MAKE-make}" |
4844 | fi | |
4845 | ||
1e8e9920 | 4846 | |
4847 | ||
439d698f | 4848 | # See if makeinfo has been installed and is modern enough |
4849 | # that we can use it. | |
4850 | ||
4851 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
4852 | set dummy makeinfo; ac_word=$2 | |
cd9a469c | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4854 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4855 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
cd9a469c | 4856 | $as_echo_n "(cached) " >&6 |
439d698f | 4857 | else |
4858 | if test -n "$MAKEINFO"; then | |
4859 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
4860 | else | |
4861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4862 | for as_dir in $PATH | |
4863 | do | |
4864 | IFS=$as_save_IFS | |
4865 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4866 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
439d698f | 4868 | ac_cv_prog_MAKEINFO="makeinfo" |
cd9a469c | 4869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
439d698f | 4870 | break 2 |
4871 | fi | |
4872 | done | |
cd9a469c | 4873 | done |
4874 | IFS=$as_save_IFS | |
439d698f | 4875 | |
4876 | fi | |
4877 | fi | |
4878 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
4879 | if test -n "$MAKEINFO"; then | |
cd9a469c | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
4881 | $as_echo "$MAKEINFO" >&6; } | |
439d698f | 4882 | else |
cd9a469c | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4884 | $as_echo "no" >&6; } | |
439d698f | 4885 | fi |
4886 | ||
cd9a469c | 4887 | |
439d698f | 4888 | if test -n "$MAKEINFO"; then |
4889 | # Found it, now check the version. | |
cd9a469c | 4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 |
4891 | $as_echo_n "checking for modern makeinfo... " >&6; } | |
f00f02a3 | 4892 | if ${gcc_cv_prog_makeinfo_modern+:} false; then : |
cd9a469c | 4893 | $as_echo_n "(cached) " >&6 |
439d698f | 4894 | else |
4895 | ac_prog_version=`eval $MAKEINFO --version 2>&1 | | |
4896 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
4897 | ||
4898 | case $ac_prog_version in | |
4899 | '') gcc_cv_prog_makeinfo_modern=no;; | |
41b2fb5d | 4900 | 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; |
439d698f | 4901 | *) gcc_cv_prog_makeinfo_modern=no;; |
4902 | esac | |
4903 | ||
4904 | fi | |
cd9a469c | 4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 |
4906 | $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } | |
439d698f | 4907 | else |
4908 | gcc_cv_prog_makeinfo_modern=no | |
4909 | fi | |
542f9784 | 4910 | if test $gcc_cv_prog_makeinfo_modern = no; then |
4911 | MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" | |
4912 | fi | |
439d698f | 4913 | |
cd9a469c | 4914 | if test $gcc_cv_prog_makeinfo_modern = "yes"; then |
439d698f | 4915 | BUILD_INFO_TRUE= |
4916 | BUILD_INFO_FALSE='#' | |
4917 | else | |
4918 | BUILD_INFO_TRUE='#' | |
4919 | BUILD_INFO_FALSE= | |
4920 | fi | |
4921 | ||
4922 | ||
4923 | ||
1e8e9920 | 4924 | # Configure libtool |
6d873a38 | 4925 | case `pwd` in |
4926 | *\ * | *\ *) | |
cd9a469c | 4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4928 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6d873a38 | 4929 | esac |
542f9784 | 4930 | |
4931 | ||
542f9784 | 4932 | |
e6408286 | 4933 | macro_version='2.2.7a' |
4934 | macro_revision='1.3134' | |
542f9784 | 4935 | |
4936 | ||
4937 | ||
4938 | ||
4939 | ||
4940 | ||
1e8e9920 | 4941 | |
542f9784 | 4942 | |
4943 | ||
4944 | ||
4945 | ||
4946 | ||
4947 | ||
6d873a38 | 4948 | ltmain="$ac_aux_dir/ltmain.sh" |
542f9784 | 4949 | |
e6408286 | 4950 | # Backslashify metacharacters that are still active within |
4951 | # double-quoted strings. | |
4952 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4953 | ||
4954 | # Same as above, but do not quote variable references. | |
4955 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4956 | ||
4957 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4958 | # double_quote_subst'ed string. | |
4959 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4960 | ||
4961 | # Sed substitution to delay expansion of an escaped single quote. | |
4962 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4963 | ||
4964 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4965 | no_glob_subst='s/\*/\\\*/g' | |
4966 | ||
4967 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4968 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4969 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4970 | ||
4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4972 | $as_echo_n "checking how to print strings... " >&6; } | |
4973 | # Test print first, because it will be a builtin if present. | |
4974 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
4975 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4976 | ECHO='print -r --' | |
4977 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4978 | ECHO='printf %s\n' | |
4979 | else | |
4980 | # Use this function as a fallback that always works. | |
4981 | func_fallback_echo () | |
4982 | { | |
4983 | eval 'cat <<_LTECHO_EOF | |
4984 | $1 | |
4985 | _LTECHO_EOF' | |
4986 | } | |
4987 | ECHO='func_fallback_echo' | |
4988 | fi | |
4989 | ||
4990 | # func_echo_all arg... | |
4991 | # Invoke $ECHO with all args, space-separated. | |
4992 | func_echo_all () | |
4993 | { | |
4994 | $ECHO "" | |
4995 | } | |
4996 | ||
4997 | case "$ECHO" in | |
4998 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4999 | $as_echo "printf" >&6; } ;; | |
5000 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5001 | $as_echo "print -r" >&6; } ;; | |
5002 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5003 | $as_echo "cat" >&6; } ;; | |
5004 | esac | |
5005 | ||
5006 | ||
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | ||
5017 | ||
5018 | ||
cd9a469c | 5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5020 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
f00f02a3 | 5021 | if ${ac_cv_path_SED+:} false; then : |
cd9a469c | 5022 | $as_echo_n "(cached) " >&6 |
5023 | else | |
5024 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5025 | for ac_i in 1 2 3 4 5 6 7; do | |
5026 | ac_script="$ac_script$as_nl$ac_script" | |
5027 | done | |
5028 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5029 | { ac_script=; unset ac_script;} | |
5030 | if test -z "$SED"; then | |
5031 | ac_path_SED_found=false | |
5032 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
542f9784 | 5034 | for as_dir in $PATH |
5035 | do | |
5036 | IFS=$as_save_IFS | |
5037 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5038 | for ac_prog in sed gsed; do |
542f9784 | 5039 | for ac_exec_ext in '' $ac_executable_extensions; do |
cd9a469c | 5040 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
f00f02a3 | 5041 | as_fn_executable_p "$ac_path_SED" || continue |
cd9a469c | 5042 | # Check for GNU ac_path_SED and select it if it is found. |
5043 | # Check for GNU $ac_path_SED | |
5044 | case `"$ac_path_SED" --version 2>&1` in | |
5045 | *GNU*) | |
5046 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5047 | *) | |
5048 | ac_count=0 | |
5049 | $as_echo_n 0123456789 >"conftest.in" | |
5050 | while : | |
5051 | do | |
5052 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5053 | mv "conftest.tmp" "conftest.in" | |
5054 | cp "conftest.in" "conftest.nl" | |
5055 | $as_echo '' >> "conftest.nl" | |
5056 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5057 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5058 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5059 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5060 | # Best one so far, save it but keep looking for a better one | |
5061 | ac_cv_path_SED="$ac_path_SED" | |
5062 | ac_path_SED_max=$ac_count | |
5063 | fi | |
5064 | # 10*(2^10) chars as input seems more than enough | |
5065 | test $ac_count -gt 10 && break | |
5066 | done | |
5067 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5068 | esac | |
5069 | ||
5070 | $ac_path_SED_found && break 3 | |
542f9784 | 5071 | done |
5072 | done | |
cd9a469c | 5073 | done |
542f9784 | 5074 | IFS=$as_save_IFS |
cd9a469c | 5075 | if test -z "$ac_cv_path_SED"; then |
f00f02a3 | 5076 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
542f9784 | 5077 | fi |
cd9a469c | 5078 | else |
5079 | ac_cv_path_SED=$SED | |
542f9784 | 5080 | fi |
5081 | ||
cd9a469c | 5082 | fi |
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5084 | $as_echo "$ac_cv_path_SED" >&6; } | |
5085 | SED="$ac_cv_path_SED" | |
5086 | rm -f conftest.sed | |
542f9784 | 5087 | |
5088 | test -z "$SED" && SED=sed | |
5089 | Xsed="$SED -e 1s/^X//" | |
5090 | ||
5091 | ||
5092 | ||
5093 | ||
5094 | ||
5095 | ||
5096 | ||
5097 | ||
5098 | ||
5099 | ||
5100 | ||
cd9a469c | 5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5102 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
f00f02a3 | 5103 | if ${ac_cv_path_GREP+:} false; then : |
cd9a469c | 5104 | $as_echo_n "(cached) " >&6 |
5105 | else | |
5106 | if test -z "$GREP"; then | |
5107 | ac_path_GREP_found=false | |
5108 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5110 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5111 | do | |
5112 | IFS=$as_save_IFS | |
5113 | test -z "$as_dir" && as_dir=. | |
5114 | for ac_prog in grep ggrep; do | |
5115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5116 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
f00f02a3 | 5117 | as_fn_executable_p "$ac_path_GREP" || continue |
cd9a469c | 5118 | # Check for GNU ac_path_GREP and select it if it is found. |
5119 | # Check for GNU $ac_path_GREP | |
5120 | case `"$ac_path_GREP" --version 2>&1` in | |
5121 | *GNU*) | |
5122 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5123 | *) | |
5124 | ac_count=0 | |
5125 | $as_echo_n 0123456789 >"conftest.in" | |
5126 | while : | |
5127 | do | |
5128 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5129 | mv "conftest.tmp" "conftest.in" | |
5130 | cp "conftest.in" "conftest.nl" | |
5131 | $as_echo 'GREP' >> "conftest.nl" | |
5132 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5133 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5134 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5135 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5136 | # Best one so far, save it but keep looking for a better one | |
5137 | ac_cv_path_GREP="$ac_path_GREP" | |
5138 | ac_path_GREP_max=$ac_count | |
5139 | fi | |
5140 | # 10*(2^10) chars as input seems more than enough | |
5141 | test $ac_count -gt 10 && break | |
5142 | done | |
5143 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5144 | esac | |
5145 | ||
5146 | $ac_path_GREP_found && break 3 | |
5147 | done | |
5148 | done | |
5149 | done | |
5150 | IFS=$as_save_IFS | |
5151 | if test -z "$ac_cv_path_GREP"; then | |
f00f02a3 | 5152 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
cd9a469c | 5153 | fi |
5154 | else | |
5155 | ac_cv_path_GREP=$GREP | |
5156 | fi | |
5157 | ||
5158 | fi | |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5160 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5161 | GREP="$ac_cv_path_GREP" | |
5162 | ||
5163 | ||
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5165 | $as_echo_n "checking for egrep... " >&6; } | |
f00f02a3 | 5166 | if ${ac_cv_path_EGREP+:} false; then : |
cd9a469c | 5167 | $as_echo_n "(cached) " >&6 |
542f9784 | 5168 | else |
cd9a469c | 5169 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5170 | then ac_cv_path_EGREP="$GREP -E" | |
5171 | else | |
5172 | if test -z "$EGREP"; then | |
5173 | ac_path_EGREP_found=false | |
5174 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5176 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5177 | do | |
5178 | IFS=$as_save_IFS | |
5179 | test -z "$as_dir" && as_dir=. | |
5180 | for ac_prog in egrep; do | |
5181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5182 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
f00f02a3 | 5183 | as_fn_executable_p "$ac_path_EGREP" || continue |
cd9a469c | 5184 | # Check for GNU ac_path_EGREP and select it if it is found. |
5185 | # Check for GNU $ac_path_EGREP | |
5186 | case `"$ac_path_EGREP" --version 2>&1` in | |
5187 | *GNU*) | |
5188 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5189 | *) | |
5190 | ac_count=0 | |
5191 | $as_echo_n 0123456789 >"conftest.in" | |
5192 | while : | |
5193 | do | |
5194 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5195 | mv "conftest.tmp" "conftest.in" | |
5196 | cp "conftest.in" "conftest.nl" | |
5197 | $as_echo 'EGREP' >> "conftest.nl" | |
5198 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5199 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5200 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5201 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5202 | # Best one so far, save it but keep looking for a better one | |
5203 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5204 | ac_path_EGREP_max=$ac_count | |
542f9784 | 5205 | fi |
cd9a469c | 5206 | # 10*(2^10) chars as input seems more than enough |
5207 | test $ac_count -gt 10 && break | |
5208 | done | |
5209 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5210 | esac | |
5211 | ||
5212 | $ac_path_EGREP_found && break 3 | |
5213 | done | |
5214 | done | |
5215 | done | |
5216 | IFS=$as_save_IFS | |
5217 | if test -z "$ac_cv_path_EGREP"; then | |
f00f02a3 | 5218 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
cd9a469c | 5219 | fi |
5220 | else | |
5221 | ac_cv_path_EGREP=$EGREP | |
5222 | fi | |
5223 | ||
5224 | fi | |
542f9784 | 5225 | fi |
cd9a469c | 5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5227 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5228 | EGREP="$ac_cv_path_EGREP" | |
542f9784 | 5229 | |
5230 | ||
cd9a469c | 5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5232 | $as_echo_n "checking for fgrep... " >&6; } | |
f00f02a3 | 5233 | if ${ac_cv_path_FGREP+:} false; then : |
cd9a469c | 5234 | $as_echo_n "(cached) " >&6 |
542f9784 | 5235 | else |
cd9a469c | 5236 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5237 | then ac_cv_path_FGREP="$GREP -F" | |
5238 | else | |
5239 | if test -z "$FGREP"; then | |
5240 | ac_path_FGREP_found=false | |
5241 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5243 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5244 | do | |
5245 | IFS=$as_save_IFS | |
5246 | test -z "$as_dir" && as_dir=. | |
5247 | for ac_prog in fgrep; do | |
5248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5249 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
f00f02a3 | 5250 | as_fn_executable_p "$ac_path_FGREP" || continue |
cd9a469c | 5251 | # Check for GNU ac_path_FGREP and select it if it is found. |
5252 | # Check for GNU $ac_path_FGREP | |
5253 | case `"$ac_path_FGREP" --version 2>&1` in | |
5254 | *GNU*) | |
5255 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5256 | *) | |
5257 | ac_count=0 | |
5258 | $as_echo_n 0123456789 >"conftest.in" | |
5259 | while : | |
5260 | do | |
5261 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5262 | mv "conftest.tmp" "conftest.in" | |
5263 | cp "conftest.in" "conftest.nl" | |
5264 | $as_echo 'FGREP' >> "conftest.nl" | |
5265 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5266 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5267 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5268 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5269 | # Best one so far, save it but keep looking for a better one | |
5270 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5271 | ac_path_FGREP_max=$ac_count | |
542f9784 | 5272 | fi |
cd9a469c | 5273 | # 10*(2^10) chars as input seems more than enough |
5274 | test $ac_count -gt 10 && break | |
5275 | done | |
5276 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5277 | esac | |
5278 | ||
5279 | $ac_path_FGREP_found && break 3 | |
5280 | done | |
5281 | done | |
5282 | done | |
5283 | IFS=$as_save_IFS | |
5284 | if test -z "$ac_cv_path_FGREP"; then | |
f00f02a3 | 5285 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
cd9a469c | 5286 | fi |
5287 | else | |
5288 | ac_cv_path_FGREP=$FGREP | |
5289 | fi | |
5290 | ||
5291 | fi | |
542f9784 | 5292 | fi |
cd9a469c | 5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5294 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5295 | FGREP="$ac_cv_path_FGREP" | |
542f9784 | 5296 | |
5297 | ||
5298 | test -z "$GREP" && GREP=grep | |
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | ||
5305 | ||
5306 | ||
5307 | ||
5308 | ||
5309 | ||
5310 | ||
5311 | ||
5312 | ||
5313 | ||
5314 | ||
5315 | ||
5316 | ||
5317 | ||
cd9a469c | 5318 | # Check whether --with-gnu-ld was given. |
5319 | if test "${with_gnu_ld+set}" = set; then : | |
5320 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
1e8e9920 | 5321 | else |
5322 | with_gnu_ld=no | |
cd9a469c | 5323 | fi |
5324 | ||
1e8e9920 | 5325 | ac_prog=ld |
5326 | if test "$GCC" = yes; then | |
5327 | # Check if gcc -print-prog-name=ld gives a path. | |
cd9a469c | 5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5329 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
1e8e9920 | 5330 | case $host in |
5331 | *-*-mingw*) | |
5332 | # gcc leaves a trailing carriage return which upsets mingw | |
5333 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5334 | *) | |
5335 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5336 | esac | |
5337 | case $ac_prog in | |
5338 | # Accept absolute paths. | |
542f9784 | 5339 | [\\/]* | ?:[\\/]*) |
1e8e9920 | 5340 | re_direlt='/[^/][^/]*/\.\./' |
542f9784 | 5341 | # Canonicalize the pathname of ld |
5342 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5343 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5344 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
1e8e9920 | 5345 | done |
5346 | test -z "$LD" && LD="$ac_prog" | |
5347 | ;; | |
5348 | "") | |
5349 | # If it fails, then pretend we aren't using GCC. | |
5350 | ac_prog=ld | |
5351 | ;; | |
5352 | *) | |
5353 | # If it is relative, then search for the first ld in PATH. | |
5354 | with_gnu_ld=unknown | |
5355 | ;; | |
5356 | esac | |
5357 | elif test "$with_gnu_ld" = yes; then | |
cd9a469c | 5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5359 | $as_echo_n "checking for GNU ld... " >&6; } | |
1e8e9920 | 5360 | else |
cd9a469c | 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5362 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
1e8e9920 | 5363 | fi |
f00f02a3 | 5364 | if ${lt_cv_path_LD+:} false; then : |
cd9a469c | 5365 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 5366 | else |
5367 | if test -z "$LD"; then | |
542f9784 | 5368 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
1e8e9920 | 5369 | for ac_dir in $PATH; do |
542f9784 | 5370 | IFS="$lt_save_ifs" |
1e8e9920 | 5371 | test -z "$ac_dir" && ac_dir=. |
5372 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5373 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5374 | # Check to see if the program is GNU ld. I'd rather use --version, | |
542f9784 | 5375 | # but apparently some variants of GNU ld only accept -v. |
1e8e9920 | 5376 | # Break only if it was the GNU/non-GNU ld that we prefer. |
542f9784 | 5377 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5378 | *GNU* | *'with BFD'*) | |
1e8e9920 | 5379 | test "$with_gnu_ld" != no && break |
542f9784 | 5380 | ;; |
5381 | *) | |
1e8e9920 | 5382 | test "$with_gnu_ld" != yes && break |
542f9784 | 5383 | ;; |
5384 | esac | |
1e8e9920 | 5385 | fi |
5386 | done | |
542f9784 | 5387 | IFS="$lt_save_ifs" |
1e8e9920 | 5388 | else |
5389 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5390 | fi | |
5391 | fi | |
5392 | ||
5393 | LD="$lt_cv_path_LD" | |
5394 | if test -n "$LD"; then | |
cd9a469c | 5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5396 | $as_echo "$LD" >&6; } | |
1e8e9920 | 5397 | else |
cd9a469c | 5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5399 | $as_echo "no" >&6; } | |
1e8e9920 | 5400 | fi |
f00f02a3 | 5401 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
cd9a469c | 5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5403 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
f00f02a3 | 5404 | if ${lt_cv_prog_gnu_ld+:} false; then : |
cd9a469c | 5405 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 5406 | else |
542f9784 | 5407 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5408 | case `$LD -v 2>&1 </dev/null` in | |
5409 | *GNU* | *'with BFD'*) | |
1e8e9920 | 5410 | lt_cv_prog_gnu_ld=yes |
542f9784 | 5411 | ;; |
5412 | *) | |
1e8e9920 | 5413 | lt_cv_prog_gnu_ld=no |
542f9784 | 5414 | ;; |
5415 | esac | |
1e8e9920 | 5416 | fi |
cd9a469c | 5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5418 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
1e8e9920 | 5419 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5420 | ||
5421 | ||
1e8e9920 | 5422 | |
542f9784 | 5423 | |
5424 | ||
5425 | ||
5426 | ||
5427 | ||
5428 | ||
cd9a469c | 5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5430 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
f00f02a3 | 5431 | if ${lt_cv_path_NM+:} false; then : |
cd9a469c | 5432 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 5433 | else |
5434 | if test -n "$NM"; then | |
5435 | # Let the user override the test. | |
5436 | lt_cv_path_NM="$NM" | |
5437 | else | |
542f9784 | 5438 | lt_nm_to_check="${ac_tool_prefix}nm" |
5439 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5440 | lt_nm_to_check="$lt_nm_to_check nm" | |
5441 | fi | |
5442 | for lt_tmp_nm in $lt_nm_to_check; do | |
5443 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5444 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5445 | IFS="$lt_save_ifs" | |
5446 | test -z "$ac_dir" && ac_dir=. | |
5447 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5448 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5449 | # Check to see if the nm accepts a BSD-compat flag. | |
5450 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5451 | # nm: unknown option "B" ignored | |
5452 | # Tru64's nm complains that /dev/null is an invalid object file | |
5453 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5454 | */dev/null* | *'Invalid file or object type'*) | |
5455 | lt_cv_path_NM="$tmp_nm -B" | |
5456 | break | |
5457 | ;; | |
5458 | *) | |
5459 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5460 | */dev/null*) | |
5461 | lt_cv_path_NM="$tmp_nm -p" | |
5462 | break | |
5463 | ;; | |
5464 | *) | |
5465 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5466 | continue # so that we can try to find one that supports BSD flags | |
5467 | ;; | |
5468 | esac | |
5469 | ;; | |
5470 | esac | |
5471 | fi | |
5472 | done | |
5473 | IFS="$lt_save_ifs" | |
5474 | done | |
5475 | : ${lt_cv_path_NM=no} | |
5476 | fi | |
5477 | fi | |
cd9a469c | 5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5479 | $as_echo "$lt_cv_path_NM" >&6; } | |
542f9784 | 5480 | if test "$lt_cv_path_NM" != "no"; then |
5481 | NM="$lt_cv_path_NM" | |
5482 | else | |
5483 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
e6408286 | 5484 | if test -n "$DUMPBIN"; then : |
5485 | # Let the user override the test. | |
5486 | else | |
5487 | if test -n "$ac_tool_prefix"; then | |
5488 | for ac_prog in dumpbin "link -dump" | |
542f9784 | 5489 | do |
5490 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5491 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5493 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5494 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
cd9a469c | 5495 | $as_echo_n "(cached) " >&6 |
542f9784 | 5496 | else |
5497 | if test -n "$DUMPBIN"; then | |
5498 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5499 | else | |
5500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5501 | for as_dir in $PATH | |
5502 | do | |
5503 | IFS=$as_save_IFS | |
5504 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5505 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 5507 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
cd9a469c | 5508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 5509 | break 2 |
5510 | fi | |
5511 | done | |
cd9a469c | 5512 | done |
5513 | IFS=$as_save_IFS | |
542f9784 | 5514 | |
5515 | fi | |
5516 | fi | |
5517 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5518 | if test -n "$DUMPBIN"; then | |
cd9a469c | 5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5520 | $as_echo "$DUMPBIN" >&6; } | |
542f9784 | 5521 | else |
cd9a469c | 5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5523 | $as_echo "no" >&6; } | |
542f9784 | 5524 | fi |
5525 | ||
cd9a469c | 5526 | |
542f9784 | 5527 | test -n "$DUMPBIN" && break |
5528 | done | |
5529 | fi | |
5530 | if test -z "$DUMPBIN"; then | |
5531 | ac_ct_DUMPBIN=$DUMPBIN | |
e6408286 | 5532 | for ac_prog in dumpbin "link -dump" |
542f9784 | 5533 | do |
5534 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5535 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5537 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5538 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
cd9a469c | 5539 | $as_echo_n "(cached) " >&6 |
542f9784 | 5540 | else |
5541 | if test -n "$ac_ct_DUMPBIN"; then | |
5542 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5543 | else | |
5544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5545 | for as_dir in $PATH | |
5546 | do | |
5547 | IFS=$as_save_IFS | |
5548 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5549 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5550 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 5551 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
cd9a469c | 5552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 5553 | break 2 |
5554 | fi | |
5555 | done | |
cd9a469c | 5556 | done |
5557 | IFS=$as_save_IFS | |
542f9784 | 5558 | |
5559 | fi | |
1e8e9920 | 5560 | fi |
542f9784 | 5561 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5562 | if test -n "$ac_ct_DUMPBIN"; then | |
cd9a469c | 5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5564 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
542f9784 | 5565 | else |
cd9a469c | 5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5567 | $as_echo "no" >&6; } | |
542f9784 | 5568 | fi |
5569 | ||
cd9a469c | 5570 | |
542f9784 | 5571 | test -n "$ac_ct_DUMPBIN" && break |
5572 | done | |
542f9784 | 5573 | |
cd9a469c | 5574 | if test "x$ac_ct_DUMPBIN" = x; then |
5575 | DUMPBIN=":" | |
5576 | else | |
5577 | case $cross_compiling:$ac_tool_warned in | |
5578 | yes:) | |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5580 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5581 | ac_tool_warned=yes ;; | |
5582 | esac | |
5583 | DUMPBIN=$ac_ct_DUMPBIN | |
5584 | fi | |
542f9784 | 5585 | fi |
5586 | ||
e6408286 | 5587 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5588 | *COFF*) | |
5589 | DUMPBIN="$DUMPBIN -symbols" | |
5590 | ;; | |
5591 | *) | |
5592 | DUMPBIN=: | |
5593 | ;; | |
5594 | esac | |
5595 | fi | |
542f9784 | 5596 | |
5597 | if test "$DUMPBIN" != ":"; then | |
5598 | NM="$DUMPBIN" | |
5599 | fi | |
1e8e9920 | 5600 | fi |
542f9784 | 5601 | test -z "$NM" && NM=nm |
5602 | ||
5603 | ||
5604 | ||
5605 | ||
5606 | ||
1e8e9920 | 5607 | |
cd9a469c | 5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5609 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
f00f02a3 | 5610 | if ${lt_cv_nm_interface+:} false; then : |
cd9a469c | 5611 | $as_echo_n "(cached) " >&6 |
542f9784 | 5612 | else |
5613 | lt_cv_nm_interface="BSD nm" | |
5614 | echo "int some_variable = 0;" > conftest.$ac_ext | |
e6408286 | 5615 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
542f9784 | 5616 | (eval "$ac_compile" 2>conftest.err) |
5617 | cat conftest.err >&5 | |
e6408286 | 5618 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
542f9784 | 5619 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5620 | cat conftest.err >&5 | |
e6408286 | 5621 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
542f9784 | 5622 | cat conftest.out >&5 |
5623 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5624 | lt_cv_nm_interface="MS dumpbin" | |
5625 | fi | |
5626 | rm -f conftest* | |
5627 | fi | |
cd9a469c | 5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5629 | $as_echo "$lt_cv_nm_interface" >&6; } | |
1e8e9920 | 5630 | |
cd9a469c | 5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5632 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1e8e9920 | 5633 | LN_S=$as_ln_s |
5634 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5636 | $as_echo "yes" >&6; } | |
1e8e9920 | 5637 | else |
cd9a469c | 5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5639 | $as_echo "no, using $LN_S" >&6; } | |
1e8e9920 | 5640 | fi |
5641 | ||
542f9784 | 5642 | # find the maximum length of command line arguments |
cd9a469c | 5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5644 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
f00f02a3 | 5645 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
cd9a469c | 5646 | $as_echo_n "(cached) " >&6 |
542f9784 | 5647 | else |
5648 | i=0 | |
5649 | teststring="ABCD" | |
5650 | ||
5651 | case $build_os in | |
5652 | msdosdjgpp*) | |
5653 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5654 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5655 | # during glob expansion). Even if it were fixed, the result of this | |
5656 | # check would be larger than it should be. | |
5657 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5658 | ;; | |
5659 | ||
5660 | gnu*) | |
5661 | # Under GNU Hurd, this test is not required because there is | |
5662 | # no limit to the length of command line arguments. | |
5663 | # Libtool will interpret -1 as no limit whatsoever | |
5664 | lt_cv_sys_max_cmd_len=-1; | |
5665 | ;; | |
5666 | ||
6d873a38 | 5667 | cygwin* | mingw* | cegcc*) |
542f9784 | 5668 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5669 | # about 5 minutes as the teststring grows exponentially. | |
5670 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5671 | # you end up with a "frozen" computer, even though with patience | |
5672 | # the test eventually succeeds (with a max line length of 256k). | |
5673 | # Instead, let's just punt: use the minimum linelength reported by | |
5674 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5675 | lt_cv_sys_max_cmd_len=8192; | |
5676 | ;; | |
5677 | ||
e6408286 | 5678 | mint*) |
5679 | # On MiNT this can take a long time and run out of memory. | |
5680 | lt_cv_sys_max_cmd_len=8192; | |
5681 | ;; | |
5682 | ||
542f9784 | 5683 | amigaos*) |
5684 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5685 | # So we just punt and use a minimum line length of 8192. | |
5686 | lt_cv_sys_max_cmd_len=8192; | |
5687 | ;; | |
5688 | ||
5689 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5690 | # This has been around since 386BSD, at least. Likely further. | |
5691 | if test -x /sbin/sysctl; then | |
5692 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5693 | elif test -x /usr/sbin/sysctl; then | |
5694 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5695 | else | |
5696 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5697 | fi | |
5698 | # And add a safety zone | |
5699 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5700 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5701 | ;; | |
5702 | ||
5703 | interix*) | |
5704 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5705 | lt_cv_sys_max_cmd_len=196608 | |
5706 | ;; | |
5707 | ||
5708 | osf*) | |
5709 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5710 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5711 | # nice to cause kernel panics so lets avoid the loop below. | |
5712 | # First set a reasonable default. | |
5713 | lt_cv_sys_max_cmd_len=16384 | |
5714 | # | |
5715 | if test -x /sbin/sysconfig; then | |
5716 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5717 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5718 | esac | |
5719 | fi | |
5720 | ;; | |
5721 | sco3.2v5*) | |
5722 | lt_cv_sys_max_cmd_len=102400 | |
5723 | ;; | |
5724 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5725 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5726 | if test -n "$kargmax"; then | |
5727 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5728 | else | |
5729 | lt_cv_sys_max_cmd_len=32768 | |
5730 | fi | |
5731 | ;; | |
5732 | *) | |
6d873a38 | 5733 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5734 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
07c46636 | 5735 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5736 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5737 | else | |
5738 | # Make teststring a little bigger before we do anything with it. | |
5739 | # a 1K string should be a reasonable start. | |
5740 | for i in 1 2 3 4 5 6 7 8 ; do | |
5741 | teststring=$teststring$teststring | |
5742 | done | |
5743 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5744 | # If test is not a shell built-in, we'll probably end up computing a | |
5745 | # maximum length that is only half of the actual maximum length, but | |
5746 | # we can't tell. | |
e6408286 | 5747 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5748 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
07c46636 | 5749 | test $i != 17 # 1/2 MB should be enough |
5750 | do | |
5751 | i=`expr $i + 1` | |
5752 | teststring=$teststring$teststring | |
5753 | done | |
5754 | # Only check the string length outside the loop. | |
5755 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5756 | teststring= | |
5757 | # Add a significant safety factor because C++ compilers can tack on | |
5758 | # massive amounts of additional arguments before passing them to the | |
5759 | # linker. It appears as though 1/2 is a usable value. | |
5760 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5761 | fi | |
542f9784 | 5762 | ;; |
5763 | esac | |
5764 | ||
5765 | fi | |
5766 | ||
5767 | if test -n $lt_cv_sys_max_cmd_len ; then | |
cd9a469c | 5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5769 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
542f9784 | 5770 | else |
cd9a469c | 5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5772 | $as_echo "none" >&6; } | |
542f9784 | 5773 | fi |
5774 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5775 | ||
5776 | ||
5777 | ||
5778 | ||
5779 | ||
5780 | ||
542f9784 | 5781 | : ${CP="cp -f"} |
5782 | : ${MV="mv -f"} | |
5783 | : ${RM="rm -f"} | |
5784 | ||
cd9a469c | 5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5786 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
542f9784 | 5787 | # Try some XSI features |
5788 | xsi_shell=no | |
5789 | ( _lt_dummy="a/b/c" | |
5790 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6d873a38 | 5791 | = c,a/b,, \ |
5792 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5793 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
542f9784 | 5794 | && xsi_shell=yes |
cd9a469c | 5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5796 | $as_echo "$xsi_shell" >&6; } | |
542f9784 | 5797 | |
5798 | ||
cd9a469c | 5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5800 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
542f9784 | 5801 | lt_shell_append=no |
5802 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5803 | >/dev/null 2>&1 \ | |
5804 | && lt_shell_append=yes | |
cd9a469c | 5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5806 | $as_echo "$lt_shell_append" >&6; } | |
542f9784 | 5807 | |
5808 | ||
5809 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5810 | lt_unset=unset | |
5811 | else | |
5812 | lt_unset=false | |
5813 | fi | |
5814 | ||
5815 | ||
5816 | ||
5817 | ||
5818 | ||
5819 | # test EBCDIC or ASCII | |
5820 | case `echo X|tr X '\101'` in | |
5821 | A) # ASCII based system | |
5822 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5823 | lt_SP2NL='tr \040 \012' | |
5824 | lt_NL2SP='tr \015\012 \040\040' | |
5825 | ;; | |
5826 | *) # EBCDIC based system | |
5827 | lt_SP2NL='tr \100 \n' | |
5828 | lt_NL2SP='tr \r\n \100\100' | |
5829 | ;; | |
5830 | esac | |
5831 | ||
5832 | ||
5833 | ||
5834 | ||
5835 | ||
5836 | ||
5837 | ||
5838 | ||
5839 | ||
cd9a469c | 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5841 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
f00f02a3 | 5842 | if ${lt_cv_ld_reload_flag+:} false; then : |
cd9a469c | 5843 | $as_echo_n "(cached) " >&6 |
542f9784 | 5844 | else |
5845 | lt_cv_ld_reload_flag='-r' | |
5846 | fi | |
cd9a469c | 5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5848 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
542f9784 | 5849 | reload_flag=$lt_cv_ld_reload_flag |
5850 | case $reload_flag in | |
5851 | "" | " "*) ;; | |
5852 | *) reload_flag=" $reload_flag" ;; | |
5853 | esac | |
5854 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5855 | case $host_os in | |
5856 | darwin*) | |
5857 | if test "$GCC" = yes; then | |
5858 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5859 | else | |
5860 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5861 | fi | |
5862 | ;; | |
5863 | esac | |
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ||
5872 | ||
6d873a38 | 5873 | if test -n "$ac_tool_prefix"; then |
5874 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5875 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
cd9a469c | 5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5877 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5878 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
cd9a469c | 5879 | $as_echo_n "(cached) " >&6 |
6d873a38 | 5880 | else |
5881 | if test -n "$OBJDUMP"; then | |
5882 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5883 | else | |
5884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5885 | for as_dir in $PATH | |
5886 | do | |
5887 | IFS=$as_save_IFS | |
5888 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5889 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 5891 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
cd9a469c | 5892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 5893 | break 2 |
5894 | fi | |
5895 | done | |
cd9a469c | 5896 | done |
5897 | IFS=$as_save_IFS | |
6d873a38 | 5898 | |
5899 | fi | |
5900 | fi | |
5901 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5902 | if test -n "$OBJDUMP"; then | |
cd9a469c | 5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5904 | $as_echo "$OBJDUMP" >&6; } | |
6d873a38 | 5905 | else |
cd9a469c | 5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5907 | $as_echo "no" >&6; } | |
6d873a38 | 5908 | fi |
5909 | ||
cd9a469c | 5910 | |
6d873a38 | 5911 | fi |
5912 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5913 | ac_ct_OBJDUMP=$OBJDUMP | |
5914 | # Extract the first word of "objdump", so it can be a program name with args. | |
5915 | set dummy objdump; ac_word=$2 | |
cd9a469c | 5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5917 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5918 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
cd9a469c | 5919 | $as_echo_n "(cached) " >&6 |
6d873a38 | 5920 | else |
5921 | if test -n "$ac_ct_OBJDUMP"; then | |
5922 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5923 | else | |
5924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5925 | for as_dir in $PATH | |
5926 | do | |
5927 | IFS=$as_save_IFS | |
5928 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5929 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 5931 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
cd9a469c | 5932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 5933 | break 2 |
5934 | fi | |
5935 | done | |
cd9a469c | 5936 | done |
5937 | IFS=$as_save_IFS | |
6d873a38 | 5938 | |
6d873a38 | 5939 | fi |
5940 | fi | |
5941 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5942 | if test -n "$ac_ct_OBJDUMP"; then | |
cd9a469c | 5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5944 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6d873a38 | 5945 | else |
cd9a469c | 5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5947 | $as_echo "no" >&6; } | |
6d873a38 | 5948 | fi |
5949 | ||
cd9a469c | 5950 | if test "x$ac_ct_OBJDUMP" = x; then |
5951 | OBJDUMP="false" | |
5952 | else | |
5953 | case $cross_compiling:$ac_tool_warned in | |
5954 | yes:) | |
5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5956 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5957 | ac_tool_warned=yes ;; | |
5958 | esac | |
5959 | OBJDUMP=$ac_ct_OBJDUMP | |
5960 | fi | |
6d873a38 | 5961 | else |
5962 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5963 | fi | |
5964 | ||
5965 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5966 | ||
5967 | ||
5968 | ||
5969 | ||
5970 | ||
5971 | ||
5972 | ||
5973 | ||
542f9784 | 5974 | |
cd9a469c | 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5976 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
f00f02a3 | 5977 | if ${lt_cv_deplibs_check_method+:} false; then : |
cd9a469c | 5978 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 5979 | else |
5980 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5981 | lt_cv_file_magic_test_file= | |
5982 | lt_cv_deplibs_check_method='unknown' | |
5983 | # Need to set the preceding variable on all platforms that support | |
5984 | # interlibrary dependencies. | |
5985 | # 'none' -- dependencies not supported. | |
5986 | # `unknown' -- same as none, but documents that we really don't know. | |
5987 | # 'pass_all' -- all dependencies passed with no checks. | |
5988 | # 'test_compile' -- check by making test program. | |
542f9784 | 5989 | # 'file_magic [[regex]]' -- check by looking for files in library path |
5990 | # which responds to the $file_magic_cmd with a given extended regex. | |
1e8e9920 | 5991 | # If you have `file' or equivalent on your system and you're not sure |
5992 | # whether `pass_all' will *always* work, you probably want this one. | |
5993 | ||
5994 | case $host_os in | |
c8db569e | 5995 | aix[4-9]*) |
1e8e9920 | 5996 | lt_cv_deplibs_check_method=pass_all |
5997 | ;; | |
5998 | ||
5999 | beos*) | |
6000 | lt_cv_deplibs_check_method=pass_all | |
6001 | ;; | |
6002 | ||
542f9784 | 6003 | bsdi[45]*) |
1e8e9920 | 6004 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
6005 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6006 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6007 | ;; | |
6008 | ||
542f9784 | 6009 | cygwin*) |
6010 | # func_win32_libid is a shell function defined in ltmain.sh | |
6011 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6012 | lt_cv_file_magic_cmd='func_win32_libid' | |
6013 | ;; | |
6014 | ||
6015 | mingw* | pw32*) | |
6016 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6017 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6018 | # unless we find 'file', for example because we are cross-compiling. | |
e6408286 | 6019 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6020 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
542f9784 | 6021 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6022 | lt_cv_file_magic_cmd='func_win32_libid' | |
6023 | else | |
6024 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6025 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6026 | fi | |
1e8e9920 | 6027 | ;; |
6028 | ||
e6408286 | 6029 | cegcc*) |
6d873a38 | 6030 | # use the weaker test based on 'objdump'. See mingw*. |
6031 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6032 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6033 | ;; | |
6034 | ||
1e8e9920 | 6035 | darwin* | rhapsody*) |
1e8e9920 | 6036 | lt_cv_deplibs_check_method=pass_all |
6037 | ;; | |
6038 | ||
542f9784 | 6039 | freebsd* | dragonfly*) |
6040 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
1e8e9920 | 6041 | case $host_cpu in |
6042 | i*86 ) | |
6043 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6044 | # Let's accept both of them until this is cleared up. | |
542f9784 | 6045 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
1e8e9920 | 6046 | lt_cv_file_magic_cmd=/usr/bin/file |
6047 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6048 | ;; | |
6049 | esac | |
6050 | else | |
6051 | lt_cv_deplibs_check_method=pass_all | |
6052 | fi | |
6053 | ;; | |
6054 | ||
6055 | gnu*) | |
6056 | lt_cv_deplibs_check_method=pass_all | |
6057 | ;; | |
6058 | ||
e6408286 | 6059 | haiku*) |
6060 | lt_cv_deplibs_check_method=pass_all | |
6061 | ;; | |
6062 | ||
542f9784 | 6063 | hpux10.20* | hpux11*) |
6064 | lt_cv_file_magic_cmd=/usr/bin/file | |
1e8e9920 | 6065 | case $host_cpu in |
1e8e9920 | 6066 | ia64*) |
6067 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
1e8e9920 | 6068 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
6069 | ;; | |
542f9784 | 6070 | hppa*64*) |
e6408286 | 6071 | 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]' |
542f9784 | 6072 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
1e8e9920 | 6073 | ;; |
6074 | *) | |
e6408286 | 6075 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
542f9784 | 6076 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
1e8e9920 | 6077 | ;; |
6078 | esac | |
542f9784 | 6079 | ;; |
6080 | ||
6081 | interix[3-9]*) | |
6082 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6083 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6084 | ;; | |
6085 | ||
6086 | irix5* | irix6* | nonstopux*) | |
6087 | case $LD in | |
6088 | *-32|*"-32 ") libmagic=32-bit;; | |
6089 | *-n32|*"-n32 ") libmagic=N32;; | |
6090 | *-64|*"-64 ") libmagic=64-bit;; | |
6091 | *) libmagic=never-match;; | |
6092 | esac | |
1e8e9920 | 6093 | lt_cv_deplibs_check_method=pass_all |
6094 | ;; | |
6095 | ||
6096 | # This must be Linux ELF. | |
9af964d4 | 6097 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1e8e9920 | 6098 | lt_cv_deplibs_check_method=pass_all |
6099 | ;; | |
6100 | ||
542f9784 | 6101 | netbsd*) |
6102 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6103 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
1e8e9920 | 6104 | else |
542f9784 | 6105 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
1e8e9920 | 6106 | fi |
6107 | ;; | |
6108 | ||
542f9784 | 6109 | newos6*) |
1e8e9920 | 6110 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
6111 | lt_cv_file_magic_cmd=/usr/bin/file | |
6112 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6113 | ;; | |
6114 | ||
542f9784 | 6115 | *nto* | *qnx*) |
6116 | lt_cv_deplibs_check_method=pass_all | |
6117 | ;; | |
6118 | ||
6119 | openbsd*) | |
6120 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6121 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6122 | else | |
6123 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6124 | fi | |
6125 | ;; | |
6126 | ||
1e8e9920 | 6127 | osf3* | osf4* | osf5*) |
1e8e9920 | 6128 | lt_cv_deplibs_check_method=pass_all |
6129 | ;; | |
6130 | ||
542f9784 | 6131 | rdos*) |
1e8e9920 | 6132 | lt_cv_deplibs_check_method=pass_all |
6133 | ;; | |
6134 | ||
6135 | solaris*) | |
6136 | lt_cv_deplibs_check_method=pass_all | |
1e8e9920 | 6137 | ;; |
6138 | ||
542f9784 | 6139 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
1e8e9920 | 6140 | lt_cv_deplibs_check_method=pass_all |
6141 | ;; | |
6142 | ||
542f9784 | 6143 | sysv4 | sysv4.3*) |
1e8e9920 | 6144 | case $host_vendor in |
1e8e9920 | 6145 | motorola) |
6146 | 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]' | |
6147 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6148 | ;; | |
542f9784 | 6149 | ncr) |
6150 | lt_cv_deplibs_check_method=pass_all | |
6151 | ;; | |
6152 | sequent) | |
6153 | lt_cv_file_magic_cmd='/bin/file' | |
6154 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6155 | ;; | |
6156 | sni) | |
6157 | lt_cv_file_magic_cmd='/bin/file' | |
6158 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6159 | lt_cv_file_magic_test_file=/lib/libc.so | |
6160 | ;; | |
6161 | siemens) | |
6162 | lt_cv_deplibs_check_method=pass_all | |
6163 | ;; | |
6164 | pc) | |
6165 | lt_cv_deplibs_check_method=pass_all | |
6166 | ;; | |
1e8e9920 | 6167 | esac |
6168 | ;; | |
542f9784 | 6169 | |
6170 | tpf*) | |
6171 | lt_cv_deplibs_check_method=pass_all | |
6172 | ;; | |
1e8e9920 | 6173 | esac |
6174 | ||
6175 | fi | |
cd9a469c | 6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6177 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
1e8e9920 | 6178 | file_magic_cmd=$lt_cv_file_magic_cmd |
6179 | deplibs_check_method=$lt_cv_deplibs_check_method | |
542f9784 | 6180 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
1e8e9920 | 6181 | |
6182 | ||
6183 | ||
6184 | ||
6185 | ||
1e8e9920 | 6186 | |
1e8e9920 | 6187 | |
1e8e9920 | 6188 | |
1e8e9920 | 6189 | |
1e8e9920 | 6190 | |
1e8e9920 | 6191 | |
1e8e9920 | 6192 | |
6193 | if test -n "$ac_tool_prefix"; then | |
542f9784 | 6194 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6195 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
cd9a469c | 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6197 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6198 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 6199 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 6200 | else |
542f9784 | 6201 | if test -n "$AR"; then |
6202 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1e8e9920 | 6203 | else |
6204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6205 | for as_dir in $PATH | |
6206 | do | |
6207 | IFS=$as_save_IFS | |
6208 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6209 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 6210 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 6211 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
cd9a469c | 6212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 6213 | break 2 |
6214 | fi | |
6215 | done | |
cd9a469c | 6216 | done |
6217 | IFS=$as_save_IFS | |
1e8e9920 | 6218 | |
6219 | fi | |
6220 | fi | |
542f9784 | 6221 | AR=$ac_cv_prog_AR |
6222 | if test -n "$AR"; then | |
cd9a469c | 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6224 | $as_echo "$AR" >&6; } | |
1e8e9920 | 6225 | else |
cd9a469c | 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6227 | $as_echo "no" >&6; } | |
1e8e9920 | 6228 | fi |
6229 | ||
cd9a469c | 6230 | |
1e8e9920 | 6231 | fi |
542f9784 | 6232 | if test -z "$ac_cv_prog_AR"; then |
6233 | ac_ct_AR=$AR | |
6234 | # Extract the first word of "ar", so it can be a program name with args. | |
6235 | set dummy ar; ac_word=$2 | |
cd9a469c | 6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6237 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6238 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
cd9a469c | 6239 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 6240 | else |
542f9784 | 6241 | if test -n "$ac_ct_AR"; then |
6242 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
1e8e9920 | 6243 | else |
6244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6245 | for as_dir in $PATH | |
6246 | do | |
6247 | IFS=$as_save_IFS | |
6248 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6249 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 6250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 6251 | ac_cv_prog_ac_ct_AR="ar" |
cd9a469c | 6252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 6253 | break 2 |
6254 | fi | |
6255 | done | |
cd9a469c | 6256 | done |
6257 | IFS=$as_save_IFS | |
1e8e9920 | 6258 | |
1e8e9920 | 6259 | fi |
6260 | fi | |
542f9784 | 6261 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6262 | if test -n "$ac_ct_AR"; then | |
cd9a469c | 6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6264 | $as_echo "$ac_ct_AR" >&6; } | |
1e8e9920 | 6265 | else |
cd9a469c | 6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6267 | $as_echo "no" >&6; } | |
1e8e9920 | 6268 | fi |
6269 | ||
cd9a469c | 6270 | if test "x$ac_ct_AR" = x; then |
6271 | AR="false" | |
6272 | else | |
6273 | case $cross_compiling:$ac_tool_warned in | |
6274 | yes:) | |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6276 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6277 | ac_tool_warned=yes ;; | |
6278 | esac | |
6279 | AR=$ac_ct_AR | |
6280 | fi | |
1e8e9920 | 6281 | else |
542f9784 | 6282 | AR="$ac_cv_prog_AR" |
1e8e9920 | 6283 | fi |
6284 | ||
542f9784 | 6285 | test -z "$AR" && AR=ar |
6286 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6287 | ||
6288 | ||
6289 | ||
6290 | ||
6291 | ||
6292 | ||
6293 | ||
6294 | ||
6295 | ||
6296 | ||
6297 | ||
1e8e9920 | 6298 | if test -n "$ac_tool_prefix"; then |
6299 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6300 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
cd9a469c | 6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6302 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6303 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 6304 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 6305 | else |
6306 | if test -n "$STRIP"; then | |
6307 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6308 | else | |
6309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6310 | for as_dir in $PATH | |
6311 | do | |
6312 | IFS=$as_save_IFS | |
6313 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6314 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 6315 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 6316 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
cd9a469c | 6317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 6318 | break 2 |
6319 | fi | |
6320 | done | |
cd9a469c | 6321 | done |
6322 | IFS=$as_save_IFS | |
1e8e9920 | 6323 | |
6324 | fi | |
6325 | fi | |
6326 | STRIP=$ac_cv_prog_STRIP | |
6327 | if test -n "$STRIP"; then | |
cd9a469c | 6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6329 | $as_echo "$STRIP" >&6; } | |
1e8e9920 | 6330 | else |
cd9a469c | 6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6332 | $as_echo "no" >&6; } | |
1e8e9920 | 6333 | fi |
6334 | ||
cd9a469c | 6335 | |
1e8e9920 | 6336 | fi |
6337 | if test -z "$ac_cv_prog_STRIP"; then | |
6338 | ac_ct_STRIP=$STRIP | |
6339 | # Extract the first word of "strip", so it can be a program name with args. | |
6340 | set dummy strip; ac_word=$2 | |
cd9a469c | 6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6342 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6343 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
cd9a469c | 6344 | $as_echo_n "(cached) " >&6 |
1e8e9920 | 6345 | else |
6346 | if test -n "$ac_ct_STRIP"; then | |
6347 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6348 | else | |
6349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6350 | for as_dir in $PATH | |
6351 | do | |
6352 | IFS=$as_save_IFS | |
6353 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6354 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 6355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1e8e9920 | 6356 | ac_cv_prog_ac_ct_STRIP="strip" |
cd9a469c | 6357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1e8e9920 | 6358 | break 2 |
6359 | fi | |
6360 | done | |
cd9a469c | 6361 | done |
6362 | IFS=$as_save_IFS | |
1e8e9920 | 6363 | |
1e8e9920 | 6364 | fi |
6365 | fi | |
6366 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6367 | if test -n "$ac_ct_STRIP"; then | |
cd9a469c | 6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6369 | $as_echo "$ac_ct_STRIP" >&6; } | |
1e8e9920 | 6370 | else |
cd9a469c | 6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6372 | $as_echo "no" >&6; } | |
1e8e9920 | 6373 | fi |
6374 | ||
cd9a469c | 6375 | if test "x$ac_ct_STRIP" = x; then |
6376 | STRIP=":" | |
6377 | else | |
6378 | case $cross_compiling:$ac_tool_warned in | |
6379 | yes:) | |
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6382 | ac_tool_warned=yes ;; | |
6383 | esac | |
6384 | STRIP=$ac_ct_STRIP | |
6385 | fi | |
1e8e9920 | 6386 | else |
6387 | STRIP="$ac_cv_prog_STRIP" | |
6388 | fi | |
6389 | ||
542f9784 | 6390 | test -z "$STRIP" && STRIP=: |
1e8e9920 | 6391 | |
6392 | ||
1e8e9920 | 6393 | |
1e8e9920 | 6394 | |
6395 | ||
1e8e9920 | 6396 | |
542f9784 | 6397 | if test -n "$ac_tool_prefix"; then |
6398 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6399 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
cd9a469c | 6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6401 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6402 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 6403 | $as_echo_n "(cached) " >&6 |
542f9784 | 6404 | else |
6405 | if test -n "$RANLIB"; then | |
6406 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6407 | else | |
6408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6409 | for as_dir in $PATH | |
6410 | do | |
6411 | IFS=$as_save_IFS | |
6412 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6413 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 6414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 6415 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
cd9a469c | 6416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 6417 | break 2 |
6418 | fi | |
6419 | done | |
cd9a469c | 6420 | done |
6421 | IFS=$as_save_IFS | |
542f9784 | 6422 | |
6423 | fi | |
6424 | fi | |
6425 | RANLIB=$ac_cv_prog_RANLIB | |
6426 | if test -n "$RANLIB"; then | |
cd9a469c | 6427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6428 | $as_echo "$RANLIB" >&6; } | |
542f9784 | 6429 | else |
cd9a469c | 6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6431 | $as_echo "no" >&6; } | |
542f9784 | 6432 | fi |
6433 | ||
cd9a469c | 6434 | |
542f9784 | 6435 | fi |
6436 | if test -z "$ac_cv_prog_RANLIB"; then | |
6437 | ac_ct_RANLIB=$RANLIB | |
6438 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6439 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6441 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6442 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
cd9a469c | 6443 | $as_echo_n "(cached) " >&6 |
542f9784 | 6444 | else |
6445 | if test -n "$ac_ct_RANLIB"; then | |
6446 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6447 | else | |
6448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6449 | for as_dir in $PATH | |
6450 | do | |
6451 | IFS=$as_save_IFS | |
6452 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6453 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 6454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 6455 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
cd9a469c | 6456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 6457 | break 2 |
6458 | fi | |
6459 | done | |
cd9a469c | 6460 | done |
6461 | IFS=$as_save_IFS | |
542f9784 | 6462 | |
542f9784 | 6463 | fi |
6464 | fi | |
6465 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6466 | if test -n "$ac_ct_RANLIB"; then | |
cd9a469c | 6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6468 | $as_echo "$ac_ct_RANLIB" >&6; } | |
542f9784 | 6469 | else |
cd9a469c | 6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6471 | $as_echo "no" >&6; } | |
542f9784 | 6472 | fi |
6473 | ||
cd9a469c | 6474 | if test "x$ac_ct_RANLIB" = x; then |
6475 | RANLIB=":" | |
6476 | else | |
6477 | case $cross_compiling:$ac_tool_warned in | |
6478 | yes:) | |
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6480 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6481 | ac_tool_warned=yes ;; | |
6482 | esac | |
6483 | RANLIB=$ac_ct_RANLIB | |
6484 | fi | |
542f9784 | 6485 | else |
6486 | RANLIB="$ac_cv_prog_RANLIB" | |
6487 | fi | |
6488 | ||
6489 | test -z "$RANLIB" && RANLIB=: | |
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | # Determine commands to create old-style static archives. | |
6d873a38 | 6497 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
542f9784 | 6498 | old_postinstall_cmds='chmod 644 $oldlib' |
6499 | old_postuninstall_cmds= | |
6500 | ||
6501 | if test -n "$RANLIB"; then | |
6502 | case $host_os in | |
6503 | openbsd*) | |
6504 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6505 | ;; | |
6506 | *) | |
6507 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6508 | ;; | |
6509 | esac | |
6510 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6511 | fi | |
6512 | ||
e6408286 | 6513 | case $host_os in |
6514 | darwin*) | |
6515 | lock_old_archive_extraction=yes ;; | |
6516 | *) | |
6517 | lock_old_archive_extraction=no ;; | |
6518 | esac | |
6519 | ||
6520 | ||
6521 | ||
6522 | ||
6523 | ||
6524 | ||
542f9784 | 6525 | |
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | # If no C compiler was specified, use CC. | |
6559 | LTCC=${LTCC-"$CC"} | |
6560 | ||
6561 | # If no C compiler flags were specified, use CFLAGS. | |
6562 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6563 | ||
6564 | # Allow CC to be a program name with arguments. | |
6565 | compiler=$CC | |
6566 | ||
6567 | ||
6568 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
cd9a469c | 6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6570 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
f00f02a3 | 6571 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
cd9a469c | 6572 | $as_echo_n "(cached) " >&6 |
542f9784 | 6573 | else |
6574 | ||
6575 | # These are sane defaults that work on at least a few old systems. | |
6576 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6577 | ||
6578 | # Character class describing NM global symbol codes. | |
6579 | symcode='[BCDEGRST]' | |
6580 | ||
6581 | # Regexp to match symbols that can be accessed directly from C. | |
6582 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6583 | ||
6584 | # Define system-specific variables. | |
6585 | case $host_os in | |
6586 | aix*) | |
6587 | symcode='[BCDT]' | |
6588 | ;; | |
6d873a38 | 6589 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 6590 | symcode='[ABCDGISTW]' |
6591 | ;; | |
6592 | hpux*) | |
6593 | if test "$host_cpu" = ia64; then | |
6594 | symcode='[ABCDEGRST]' | |
6595 | fi | |
6596 | ;; | |
6597 | irix* | nonstopux*) | |
6598 | symcode='[BCDEGRST]' | |
6599 | ;; | |
6600 | osf*) | |
6601 | symcode='[BCDEGQRST]' | |
6602 | ;; | |
6603 | solaris*) | |
6604 | symcode='[BDRT]' | |
6605 | ;; | |
6606 | sco3.2v5*) | |
6607 | symcode='[DT]' | |
6608 | ;; | |
6609 | sysv4.2uw2*) | |
6610 | symcode='[DT]' | |
6611 | ;; | |
6612 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6613 | symcode='[ABDT]' | |
6614 | ;; | |
6615 | sysv4) | |
6616 | symcode='[DFNSTU]' | |
6617 | ;; | |
6618 | esac | |
6619 | ||
6620 | # If we're using GNU nm, then use its standard symbol codes. | |
6621 | case `$NM -V 2>&1` in | |
6622 | *GNU* | *'with BFD'*) | |
6623 | symcode='[ABCDGIRSTW]' ;; | |
6624 | esac | |
6625 | ||
6626 | # Transform an extracted symbol line into a proper C declaration. | |
6627 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6628 | # so use this general approach. | |
6629 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6630 | ||
6631 | # Transform an extracted symbol line into symbol name and symbol address | |
6632 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6d873a38 | 6633 | 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'" |
542f9784 | 6634 | |
6635 | # Handle CRLF in mingw tool chain | |
6636 | opt_cr= | |
6637 | case $build_os in | |
6638 | mingw*) | |
6639 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6640 | ;; | |
6641 | esac | |
6642 | ||
6643 | # Try without a prefix underscore, then with it. | |
6644 | for ac_symprfx in "" "_"; do | |
6645 | ||
6646 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6647 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6648 | ||
6649 | # Write the raw and C identifiers. | |
6650 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6651 | # Fake it for dumpbin and say T for any non-static function | |
6652 | # and D for any global variable. | |
6653 | # Also find C++ and __fastcall symbols from MSVC++, | |
6654 | # which start with @ or ?. | |
6655 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6656 | " {last_section=section; section=\$ 3};"\ | |
6657 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6658 | " \$ 0!~/External *\|/{next};"\ | |
6659 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6660 | " {if(hide[section]) next};"\ | |
6661 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6662 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6663 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6664 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6665 | " ' prfx=^$ac_symprfx" | |
6666 | else | |
6667 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6668 | fi | |
6669 | ||
6670 | # Check to see that the pipe works correctly. | |
6671 | pipe_works=no | |
6672 | ||
6673 | rm -f conftest* | |
6674 | cat > conftest.$ac_ext <<_LT_EOF | |
6675 | #ifdef __cplusplus | |
6676 | extern "C" { | |
6677 | #endif | |
6678 | char nm_test_var; | |
6679 | void nm_test_func(void); | |
6680 | void nm_test_func(void){} | |
6681 | #ifdef __cplusplus | |
6682 | } | |
6683 | #endif | |
6684 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6685 | _LT_EOF | |
6686 | ||
cd9a469c | 6687 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 6688 | (eval $ac_compile) 2>&5 |
6689 | ac_status=$? | |
cd9a469c | 6690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6691 | test $ac_status = 0; }; then | |
542f9784 | 6692 | # Now try to grab the symbols. |
6693 | nlist=conftest.nm | |
e6408286 | 6694 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6695 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
542f9784 | 6696 | ac_status=$? |
cd9a469c | 6697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6698 | test $ac_status = 0; } && test -s "$nlist"; then | |
542f9784 | 6699 | # Try sorting and uniquifying the output. |
6700 | if sort "$nlist" | uniq > "$nlist"T; then | |
6701 | mv -f "$nlist"T "$nlist" | |
6702 | else | |
6703 | rm -f "$nlist"T | |
6704 | fi | |
6705 | ||
6706 | # Make sure that we snagged all the symbols we need. | |
6707 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6708 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6709 | cat <<_LT_EOF > conftest.$ac_ext | |
6710 | #ifdef __cplusplus | |
6711 | extern "C" { | |
6712 | #endif | |
6713 | ||
6714 | _LT_EOF | |
6715 | # Now generate the symbol file. | |
6716 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6717 | ||
6718 | cat <<_LT_EOF >> conftest.$ac_ext | |
6719 | ||
6720 | /* The mapping between symbol names and symbols. */ | |
6721 | const struct { | |
6722 | const char *name; | |
6723 | void *address; | |
6724 | } | |
6725 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6726 | { | |
6727 | { "@PROGRAM@", (void *) 0 }, | |
6728 | _LT_EOF | |
6729 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6730 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6731 | {0, (void *) 0} | |
6732 | }; | |
6733 | ||
6734 | /* This works around a problem in FreeBSD linker */ | |
6735 | #ifdef FREEBSD_WORKAROUND | |
6736 | static const void *lt_preloaded_setup() { | |
6737 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6738 | } | |
6739 | #endif | |
6740 | ||
6741 | #ifdef __cplusplus | |
6742 | } | |
6743 | #endif | |
6744 | _LT_EOF | |
6745 | # Now try linking the two files. | |
6746 | mv conftest.$ac_objext conftstm.$ac_objext | |
6747 | lt_save_LIBS="$LIBS" | |
6748 | lt_save_CFLAGS="$CFLAGS" | |
6749 | LIBS="conftstm.$ac_objext" | |
6750 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
cd9a469c | 6751 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 6752 | (eval $ac_link) 2>&5 |
6753 | ac_status=$? | |
cd9a469c | 6754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6755 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
542f9784 | 6756 | pipe_works=yes |
6757 | fi | |
6758 | LIBS="$lt_save_LIBS" | |
6759 | CFLAGS="$lt_save_CFLAGS" | |
6760 | else | |
6761 | echo "cannot find nm_test_func in $nlist" >&5 | |
6762 | fi | |
6763 | else | |
6764 | echo "cannot find nm_test_var in $nlist" >&5 | |
6765 | fi | |
6766 | else | |
6767 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6768 | fi | |
6769 | else | |
6770 | echo "$progname: failed program was:" >&5 | |
6771 | cat conftest.$ac_ext >&5 | |
6772 | fi | |
6d873a38 | 6773 | rm -rf conftest* conftst* |
542f9784 | 6774 | |
6775 | # Do not use the global_symbol_pipe unless it works. | |
6776 | if test "$pipe_works" = yes; then | |
6777 | break | |
6778 | else | |
6779 | lt_cv_sys_global_symbol_pipe= | |
6780 | fi | |
6781 | done | |
6782 | ||
6783 | fi | |
6784 | ||
6785 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6786 | lt_cv_sys_global_symbol_to_cdecl= | |
6787 | fi | |
6788 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
cd9a469c | 6789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6790 | $as_echo "failed" >&6; } | |
542f9784 | 6791 | else |
cd9a469c | 6792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6793 | $as_echo "ok" >&6; } | |
542f9784 | 6794 | fi |
6795 | ||
6796 | ||
6797 | ||
6798 | ||
6799 | ||
6800 | ||
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6d873a38 | 6810 | |
6811 | ||
6812 | ||
6813 | ||
6814 | ||
542f9784 | 6815 | |
6816 | ||
6817 | ||
cd9a469c | 6818 | # Check whether --enable-libtool-lock was given. |
6819 | if test "${enable_libtool_lock+set}" = set; then : | |
6820 | enableval=$enable_libtool_lock; | |
6821 | fi | |
542f9784 | 6822 | |
542f9784 | 6823 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6824 | ||
6825 | # Some flags need to be propagated to the compiler or linker for good | |
1e8e9920 | 6826 | # libtool support. |
6827 | case $host in | |
542f9784 | 6828 | ia64-*-hpux*) |
1e8e9920 | 6829 | # Find out which ABI we are using. |
542f9784 | 6830 | echo 'int i;' > conftest.$ac_ext |
cd9a469c | 6831 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1e8e9920 | 6832 | (eval $ac_compile) 2>&5 |
6833 | ac_status=$? | |
cd9a469c | 6834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6835 | test $ac_status = 0; }; then | |
542f9784 | 6836 | case `/usr/bin/file conftest.$ac_objext` in |
6837 | *ELF-32*) | |
6838 | HPUX_IA64_MODE="32" | |
6839 | ;; | |
6840 | *ELF-64*) | |
6841 | HPUX_IA64_MODE="64" | |
6842 | ;; | |
6843 | esac | |
6844 | fi | |
6845 | rm -rf conftest* | |
6846 | ;; | |
6847 | *-*-irix6*) | |
6848 | # Find out which ABI we are using. | |
e6408286 | 6849 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
cd9a469c | 6850 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 6851 | (eval $ac_compile) 2>&5 |
6852 | ac_status=$? | |
cd9a469c | 6853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6854 | test $ac_status = 0; }; then | |
542f9784 | 6855 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6856 | case `/usr/bin/file conftest.$ac_objext` in | |
6857 | *32-bit*) | |
6858 | LD="${LD-ld} -melf32bsmip" | |
6859 | ;; | |
6860 | *N32*) | |
6861 | LD="${LD-ld} -melf32bmipn32" | |
6862 | ;; | |
6863 | *64-bit*) | |
6864 | LD="${LD-ld} -melf64bmip" | |
6865 | ;; | |
6866 | esac | |
6867 | else | |
6868 | case `/usr/bin/file conftest.$ac_objext` in | |
6869 | *32-bit*) | |
6870 | LD="${LD-ld} -32" | |
6871 | ;; | |
6872 | *N32*) | |
6873 | LD="${LD-ld} -n32" | |
6874 | ;; | |
6875 | *64-bit*) | |
6876 | LD="${LD-ld} -64" | |
6877 | ;; | |
6878 | esac | |
6879 | fi | |
6880 | fi | |
6881 | rm -rf conftest* | |
6882 | ;; | |
6883 | ||
9613c003 | 6884 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
542f9784 | 6885 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6886 | # Find out which ABI we are using. | |
6887 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 6888 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 6889 | (eval $ac_compile) 2>&5 |
6890 | ac_status=$? | |
cd9a469c | 6891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6892 | test $ac_status = 0; }; then | |
542f9784 | 6893 | case `/usr/bin/file conftest.o` in |
6894 | *32-bit*) | |
6895 | case $host in | |
6896 | x86_64-*kfreebsd*-gnu) | |
6897 | LD="${LD-ld} -m elf_i386_fbsd" | |
6898 | ;; | |
6899 | x86_64-*linux*) | |
b4b3bbba | 6900 | case `/usr/bin/file conftest.o` in |
6901 | *x86-64*) | |
6902 | LD="${LD-ld} -m elf32_x86_64" | |
6903 | ;; | |
6904 | *) | |
6905 | LD="${LD-ld} -m elf_i386" | |
6906 | ;; | |
6907 | esac | |
542f9784 | 6908 | ;; |
9613c003 | 6909 | powerpc64le-*linux*) |
6910 | LD="${LD-ld} -m elf32lppclinux" | |
6911 | ;; | |
6912 | powerpc64-*linux*) | |
542f9784 | 6913 | LD="${LD-ld} -m elf32ppclinux" |
6914 | ;; | |
6915 | s390x-*linux*) | |
6916 | LD="${LD-ld} -m elf_s390" | |
6917 | ;; | |
6918 | sparc64-*linux*) | |
6919 | LD="${LD-ld} -m elf32_sparc" | |
6920 | ;; | |
6921 | esac | |
6922 | ;; | |
6923 | *64-bit*) | |
6924 | case $host in | |
6925 | x86_64-*kfreebsd*-gnu) | |
6926 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6927 | ;; | |
6928 | x86_64-*linux*) | |
6929 | LD="${LD-ld} -m elf_x86_64" | |
6930 | ;; | |
9613c003 | 6931 | powerpcle-*linux*) |
6932 | LD="${LD-ld} -m elf64lppc" | |
6933 | ;; | |
6934 | powerpc-*linux*) | |
542f9784 | 6935 | LD="${LD-ld} -m elf64ppc" |
6936 | ;; | |
6937 | s390*-*linux*|s390*-*tpf*) | |
6938 | LD="${LD-ld} -m elf64_s390" | |
6939 | ;; | |
6940 | sparc*-*linux*) | |
6941 | LD="${LD-ld} -m elf64_sparc" | |
6942 | ;; | |
6943 | esac | |
6944 | ;; | |
6945 | esac | |
6946 | fi | |
6947 | rm -rf conftest* | |
6948 | ;; | |
6949 | ||
6950 | *-*-sco3.2v5*) | |
6951 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6952 | SAVE_CFLAGS="$CFLAGS" | |
6953 | CFLAGS="$CFLAGS -belf" | |
cd9a469c | 6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6955 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
f00f02a3 | 6956 | if ${lt_cv_cc_needs_belf+:} false; then : |
cd9a469c | 6957 | $as_echo_n "(cached) " >&6 |
542f9784 | 6958 | else |
6959 | ac_ext=c | |
6960 | ac_cpp='$CPP $CPPFLAGS' | |
6961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6964 | ||
cd9a469c | 6965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 6966 | /* end confdefs.h. */ |
6967 | ||
6968 | int | |
6969 | main () | |
6970 | { | |
6971 | ||
6972 | ; | |
6973 | return 0; | |
6974 | } | |
6975 | _ACEOF | |
cd9a469c | 6976 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 6977 | lt_cv_cc_needs_belf=yes |
6978 | else | |
cd9a469c | 6979 | lt_cv_cc_needs_belf=no |
542f9784 | 6980 | fi |
cd9a469c | 6981 | rm -f core conftest.err conftest.$ac_objext \ |
6982 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 6983 | ac_ext=c |
6984 | ac_cpp='$CPP $CPPFLAGS' | |
6985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6988 | ||
6989 | fi | |
cd9a469c | 6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6991 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
542f9784 | 6992 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6993 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6994 | CFLAGS="$SAVE_CFLAGS" | |
6995 | fi | |
6996 | ;; | |
6997 | sparc*-*solaris*) | |
6998 | # Find out which ABI we are using. | |
6999 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 7000 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 7001 | (eval $ac_compile) 2>&5 |
7002 | ac_status=$? | |
cd9a469c | 7003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7004 | test $ac_status = 0; }; then | |
542f9784 | 7005 | case `/usr/bin/file conftest.o` in |
7006 | *64-bit*) | |
7007 | case $lt_cv_prog_gnu_ld in | |
7008 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6d873a38 | 7009 | *) |
7010 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7011 | LD="${LD-ld} -64" | |
7012 | fi | |
7013 | ;; | |
542f9784 | 7014 | esac |
7015 | ;; | |
7016 | esac | |
7017 | fi | |
7018 | rm -rf conftest* | |
7019 | ;; | |
7020 | esac | |
7021 | ||
7022 | need_locks="$enable_libtool_lock" | |
7023 | ||
6d873a38 | 7024 | |
7025 | case $host_os in | |
7026 | rhapsody* | darwin*) | |
7027 | if test -n "$ac_tool_prefix"; then | |
7028 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7029 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
cd9a469c | 7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7031 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7032 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
cd9a469c | 7033 | $as_echo_n "(cached) " >&6 |
542f9784 | 7034 | else |
6d873a38 | 7035 | if test -n "$DSYMUTIL"; then |
7036 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7037 | else | |
7038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7039 | for as_dir in $PATH | |
542f9784 | 7040 | do |
6d873a38 | 7041 | IFS=$as_save_IFS |
7042 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7043 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7045 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
cd9a469c | 7046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7047 | break 2 |
542f9784 | 7048 | fi |
6d873a38 | 7049 | done |
cd9a469c | 7050 | done |
7051 | IFS=$as_save_IFS | |
6d873a38 | 7052 | |
7053 | fi | |
7054 | fi | |
7055 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7056 | if test -n "$DSYMUTIL"; then | |
cd9a469c | 7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7058 | $as_echo "$DSYMUTIL" >&6; } | |
6d873a38 | 7059 | else |
cd9a469c | 7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7061 | $as_echo "no" >&6; } | |
6d873a38 | 7062 | fi |
7063 | ||
cd9a469c | 7064 | |
6d873a38 | 7065 | fi |
7066 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7067 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7068 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7069 | set dummy dsymutil; ac_word=$2 | |
cd9a469c | 7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7071 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7072 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
cd9a469c | 7073 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7074 | else |
7075 | if test -n "$ac_ct_DSYMUTIL"; then | |
7076 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7077 | else | |
7078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7079 | for as_dir in $PATH | |
7080 | do | |
7081 | IFS=$as_save_IFS | |
7082 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7083 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7084 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7085 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
cd9a469c | 7086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7087 | break 2 |
7088 | fi | |
7089 | done | |
cd9a469c | 7090 | done |
7091 | IFS=$as_save_IFS | |
6d873a38 | 7092 | |
6d873a38 | 7093 | fi |
7094 | fi | |
7095 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7096 | if test -n "$ac_ct_DSYMUTIL"; then | |
cd9a469c | 7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7098 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6d873a38 | 7099 | else |
cd9a469c | 7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7101 | $as_echo "no" >&6; } | |
6d873a38 | 7102 | fi |
7103 | ||
cd9a469c | 7104 | if test "x$ac_ct_DSYMUTIL" = x; then |
7105 | DSYMUTIL=":" | |
7106 | else | |
7107 | case $cross_compiling:$ac_tool_warned in | |
7108 | yes:) | |
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7110 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7111 | ac_tool_warned=yes ;; | |
7112 | esac | |
7113 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7114 | fi | |
6d873a38 | 7115 | else |
7116 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7117 | fi | |
7118 | ||
7119 | if test -n "$ac_tool_prefix"; then | |
7120 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7121 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
cd9a469c | 7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7123 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7124 | if ${ac_cv_prog_NMEDIT+:} false; then : |
cd9a469c | 7125 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7126 | else |
7127 | if test -n "$NMEDIT"; then | |
7128 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7129 | else | |
7130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7131 | for as_dir in $PATH | |
7132 | do | |
7133 | IFS=$as_save_IFS | |
7134 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7135 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7136 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7137 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
cd9a469c | 7138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7139 | break 2 |
7140 | fi | |
7141 | done | |
cd9a469c | 7142 | done |
7143 | IFS=$as_save_IFS | |
6d873a38 | 7144 | |
7145 | fi | |
7146 | fi | |
7147 | NMEDIT=$ac_cv_prog_NMEDIT | |
7148 | if test -n "$NMEDIT"; then | |
cd9a469c | 7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7150 | $as_echo "$NMEDIT" >&6; } | |
6d873a38 | 7151 | else |
cd9a469c | 7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7153 | $as_echo "no" >&6; } | |
6d873a38 | 7154 | fi |
7155 | ||
cd9a469c | 7156 | |
6d873a38 | 7157 | fi |
7158 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7159 | ac_ct_NMEDIT=$NMEDIT | |
7160 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7161 | set dummy nmedit; ac_word=$2 | |
cd9a469c | 7162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7163 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7164 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
cd9a469c | 7165 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7166 | else |
7167 | if test -n "$ac_ct_NMEDIT"; then | |
7168 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7169 | else | |
7170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7171 | for as_dir in $PATH | |
7172 | do | |
7173 | IFS=$as_save_IFS | |
7174 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7175 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7177 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
cd9a469c | 7178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7179 | break 2 |
7180 | fi | |
7181 | done | |
cd9a469c | 7182 | done |
7183 | IFS=$as_save_IFS | |
6d873a38 | 7184 | |
6d873a38 | 7185 | fi |
7186 | fi | |
7187 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7188 | if test -n "$ac_ct_NMEDIT"; then | |
cd9a469c | 7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7190 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6d873a38 | 7191 | else |
cd9a469c | 7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7193 | $as_echo "no" >&6; } | |
6d873a38 | 7194 | fi |
7195 | ||
cd9a469c | 7196 | if test "x$ac_ct_NMEDIT" = x; then |
7197 | NMEDIT=":" | |
7198 | else | |
7199 | case $cross_compiling:$ac_tool_warned in | |
7200 | yes:) | |
7201 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7202 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7203 | ac_tool_warned=yes ;; | |
7204 | esac | |
7205 | NMEDIT=$ac_ct_NMEDIT | |
7206 | fi | |
6d873a38 | 7207 | else |
7208 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7209 | fi | |
7210 | ||
7211 | if test -n "$ac_tool_prefix"; then | |
7212 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7213 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
cd9a469c | 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7215 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7216 | if ${ac_cv_prog_LIPO+:} false; then : |
cd9a469c | 7217 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7218 | else |
7219 | if test -n "$LIPO"; then | |
7220 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7221 | else | |
7222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7223 | for as_dir in $PATH | |
7224 | do | |
7225 | IFS=$as_save_IFS | |
7226 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7227 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7229 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
cd9a469c | 7230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7231 | break 2 |
7232 | fi | |
7233 | done | |
cd9a469c | 7234 | done |
7235 | IFS=$as_save_IFS | |
6d873a38 | 7236 | |
7237 | fi | |
7238 | fi | |
7239 | LIPO=$ac_cv_prog_LIPO | |
7240 | if test -n "$LIPO"; then | |
cd9a469c | 7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7242 | $as_echo "$LIPO" >&6; } | |
6d873a38 | 7243 | else |
cd9a469c | 7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7245 | $as_echo "no" >&6; } | |
6d873a38 | 7246 | fi |
7247 | ||
cd9a469c | 7248 | |
6d873a38 | 7249 | fi |
7250 | if test -z "$ac_cv_prog_LIPO"; then | |
7251 | ac_ct_LIPO=$LIPO | |
7252 | # Extract the first word of "lipo", so it can be a program name with args. | |
7253 | set dummy lipo; ac_word=$2 | |
cd9a469c | 7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7255 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7256 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
cd9a469c | 7257 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7258 | else |
7259 | if test -n "$ac_ct_LIPO"; then | |
7260 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7261 | else | |
7262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7263 | for as_dir in $PATH | |
7264 | do | |
7265 | IFS=$as_save_IFS | |
7266 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7267 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7269 | ac_cv_prog_ac_ct_LIPO="lipo" |
cd9a469c | 7270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7271 | break 2 |
7272 | fi | |
7273 | done | |
cd9a469c | 7274 | done |
7275 | IFS=$as_save_IFS | |
6d873a38 | 7276 | |
6d873a38 | 7277 | fi |
7278 | fi | |
7279 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7280 | if test -n "$ac_ct_LIPO"; then | |
cd9a469c | 7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7282 | $as_echo "$ac_ct_LIPO" >&6; } | |
6d873a38 | 7283 | else |
cd9a469c | 7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7285 | $as_echo "no" >&6; } | |
6d873a38 | 7286 | fi |
7287 | ||
cd9a469c | 7288 | if test "x$ac_ct_LIPO" = x; then |
7289 | LIPO=":" | |
7290 | else | |
7291 | case $cross_compiling:$ac_tool_warned in | |
7292 | yes:) | |
7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7294 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7295 | ac_tool_warned=yes ;; | |
7296 | esac | |
7297 | LIPO=$ac_ct_LIPO | |
7298 | fi | |
6d873a38 | 7299 | else |
7300 | LIPO="$ac_cv_prog_LIPO" | |
7301 | fi | |
7302 | ||
7303 | if test -n "$ac_tool_prefix"; then | |
7304 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7305 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
cd9a469c | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7307 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7308 | if ${ac_cv_prog_OTOOL+:} false; then : |
cd9a469c | 7309 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7310 | else |
7311 | if test -n "$OTOOL"; then | |
7312 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7313 | else | |
7314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7315 | for as_dir in $PATH | |
7316 | do | |
7317 | IFS=$as_save_IFS | |
7318 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7319 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7321 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
cd9a469c | 7322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7323 | break 2 |
7324 | fi | |
7325 | done | |
cd9a469c | 7326 | done |
7327 | IFS=$as_save_IFS | |
6d873a38 | 7328 | |
7329 | fi | |
7330 | fi | |
7331 | OTOOL=$ac_cv_prog_OTOOL | |
7332 | if test -n "$OTOOL"; then | |
cd9a469c | 7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7334 | $as_echo "$OTOOL" >&6; } | |
6d873a38 | 7335 | else |
cd9a469c | 7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7337 | $as_echo "no" >&6; } | |
6d873a38 | 7338 | fi |
7339 | ||
cd9a469c | 7340 | |
6d873a38 | 7341 | fi |
7342 | if test -z "$ac_cv_prog_OTOOL"; then | |
7343 | ac_ct_OTOOL=$OTOOL | |
7344 | # Extract the first word of "otool", so it can be a program name with args. | |
7345 | set dummy otool; ac_word=$2 | |
cd9a469c | 7346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7347 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7348 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
cd9a469c | 7349 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7350 | else |
7351 | if test -n "$ac_ct_OTOOL"; then | |
7352 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7353 | else | |
7354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7355 | for as_dir in $PATH | |
7356 | do | |
7357 | IFS=$as_save_IFS | |
7358 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7359 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7360 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7361 | ac_cv_prog_ac_ct_OTOOL="otool" |
cd9a469c | 7362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7363 | break 2 |
7364 | fi | |
7365 | done | |
cd9a469c | 7366 | done |
7367 | IFS=$as_save_IFS | |
6d873a38 | 7368 | |
6d873a38 | 7369 | fi |
7370 | fi | |
7371 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7372 | if test -n "$ac_ct_OTOOL"; then | |
cd9a469c | 7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7374 | $as_echo "$ac_ct_OTOOL" >&6; } | |
6d873a38 | 7375 | else |
cd9a469c | 7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7377 | $as_echo "no" >&6; } | |
6d873a38 | 7378 | fi |
7379 | ||
cd9a469c | 7380 | if test "x$ac_ct_OTOOL" = x; then |
7381 | OTOOL=":" | |
7382 | else | |
7383 | case $cross_compiling:$ac_tool_warned in | |
7384 | yes:) | |
7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7386 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7387 | ac_tool_warned=yes ;; | |
7388 | esac | |
7389 | OTOOL=$ac_ct_OTOOL | |
7390 | fi | |
6d873a38 | 7391 | else |
7392 | OTOOL="$ac_cv_prog_OTOOL" | |
7393 | fi | |
7394 | ||
7395 | if test -n "$ac_tool_prefix"; then | |
7396 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7397 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
cd9a469c | 7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7399 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7400 | if ${ac_cv_prog_OTOOL64+:} false; then : |
cd9a469c | 7401 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7402 | else |
7403 | if test -n "$OTOOL64"; then | |
7404 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7405 | else | |
7406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7407 | for as_dir in $PATH | |
7408 | do | |
7409 | IFS=$as_save_IFS | |
7410 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7411 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7413 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
cd9a469c | 7414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7415 | break 2 |
7416 | fi | |
7417 | done | |
cd9a469c | 7418 | done |
7419 | IFS=$as_save_IFS | |
6d873a38 | 7420 | |
7421 | fi | |
7422 | fi | |
7423 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7424 | if test -n "$OTOOL64"; then | |
cd9a469c | 7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7426 | $as_echo "$OTOOL64" >&6; } | |
6d873a38 | 7427 | else |
cd9a469c | 7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7429 | $as_echo "no" >&6; } | |
6d873a38 | 7430 | fi |
7431 | ||
cd9a469c | 7432 | |
6d873a38 | 7433 | fi |
7434 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7435 | ac_ct_OTOOL64=$OTOOL64 | |
7436 | # Extract the first word of "otool64", so it can be a program name with args. | |
7437 | set dummy otool64; ac_word=$2 | |
cd9a469c | 7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7439 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7440 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
cd9a469c | 7441 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7442 | else |
7443 | if test -n "$ac_ct_OTOOL64"; then | |
7444 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7445 | else | |
7446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7447 | for as_dir in $PATH | |
7448 | do | |
7449 | IFS=$as_save_IFS | |
7450 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7451 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7452 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6d873a38 | 7453 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
cd9a469c | 7454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6d873a38 | 7455 | break 2 |
7456 | fi | |
7457 | done | |
cd9a469c | 7458 | done |
7459 | IFS=$as_save_IFS | |
6d873a38 | 7460 | |
6d873a38 | 7461 | fi |
7462 | fi | |
7463 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7464 | if test -n "$ac_ct_OTOOL64"; then | |
cd9a469c | 7465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7466 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
6d873a38 | 7467 | else |
cd9a469c | 7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7469 | $as_echo "no" >&6; } | |
6d873a38 | 7470 | fi |
7471 | ||
cd9a469c | 7472 | if test "x$ac_ct_OTOOL64" = x; then |
7473 | OTOOL64=":" | |
7474 | else | |
7475 | case $cross_compiling:$ac_tool_warned in | |
7476 | yes:) | |
7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7478 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7479 | ac_tool_warned=yes ;; | |
7480 | esac | |
7481 | OTOOL64=$ac_ct_OTOOL64 | |
7482 | fi | |
6d873a38 | 7483 | else |
7484 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7485 | fi | |
7486 | ||
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | ||
7492 | ||
7493 | ||
7494 | ||
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | ||
7501 | ||
7502 | ||
7503 | ||
7504 | ||
7505 | ||
7506 | ||
7507 | ||
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
cd9a469c | 7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7514 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
f00f02a3 | 7515 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
cd9a469c | 7516 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7517 | else |
7518 | lt_cv_apple_cc_single_mod=no | |
7519 | if test -z "${LT_MULTI_MODULE}"; then | |
7520 | # By default we will add the -single_module flag. You can override | |
7521 | # by either setting the environment variable LT_MULTI_MODULE | |
7522 | # non-empty at configure time, or by adding -multi_module to the | |
7523 | # link flags. | |
7524 | rm -rf libconftest.dylib* | |
7525 | echo "int foo(void){return 1;}" > conftest.c | |
7526 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7527 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7528 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7529 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7530 | _lt_result=$? | |
7531 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7532 | lt_cv_apple_cc_single_mod=yes | |
7533 | else | |
7534 | cat conftest.err >&5 | |
7535 | fi | |
7536 | rm -rf libconftest.dylib* | |
7537 | rm -f conftest.* | |
7538 | fi | |
7539 | fi | |
cd9a469c | 7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7541 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7543 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
f00f02a3 | 7544 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
cd9a469c | 7545 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7546 | else |
7547 | lt_cv_ld_exported_symbols_list=no | |
7548 | save_LDFLAGS=$LDFLAGS | |
7549 | echo "_main" > conftest.sym | |
7550 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
cd9a469c | 7551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d873a38 | 7552 | /* end confdefs.h. */ |
7553 | ||
7554 | int | |
7555 | main () | |
7556 | { | |
7557 | ||
7558 | ; | |
7559 | return 0; | |
7560 | } | |
7561 | _ACEOF | |
cd9a469c | 7562 | if ac_fn_c_try_link "$LINENO"; then : |
6d873a38 | 7563 | lt_cv_ld_exported_symbols_list=yes |
7564 | else | |
cd9a469c | 7565 | lt_cv_ld_exported_symbols_list=no |
6d873a38 | 7566 | fi |
cd9a469c | 7567 | rm -f core conftest.err conftest.$ac_objext \ |
7568 | conftest$ac_exeext conftest.$ac_ext | |
6d873a38 | 7569 | LDFLAGS="$save_LDFLAGS" |
7570 | ||
7571 | fi | |
cd9a469c | 7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7573 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
e6408286 | 7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7575 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
f00f02a3 | 7576 | if ${lt_cv_ld_force_load+:} false; then : |
e6408286 | 7577 | $as_echo_n "(cached) " >&6 |
7578 | else | |
7579 | lt_cv_ld_force_load=no | |
7580 | cat > conftest.c << _LT_EOF | |
7581 | int forced_loaded() { return 2;} | |
7582 | _LT_EOF | |
7583 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7584 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7585 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7586 | $AR cru libconftest.a conftest.o 2>&5 | |
7587 | cat > conftest.c << _LT_EOF | |
7588 | int main() { return 0;} | |
7589 | _LT_EOF | |
7590 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7591 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7592 | _lt_result=$? | |
7593 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7594 | lt_cv_ld_force_load=yes | |
7595 | else | |
7596 | cat conftest.err >&5 | |
7597 | fi | |
7598 | rm -f conftest.err libconftest.a conftest conftest.c | |
7599 | rm -rf conftest.dSYM | |
7600 | ||
7601 | fi | |
7602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7603 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
6d873a38 | 7604 | case $host_os in |
7605 | rhapsody* | darwin1.[012]) | |
7606 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7607 | darwin1.*) | |
7608 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7609 | darwin*) # darwin 5.x on | |
7610 | # if running on 10.5 or later, the deployment target defaults | |
7611 | # to the OS version, if on x86, and 10.4, the deployment | |
7612 | # target defaults to 10.4. Don't you love it? | |
7613 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7614 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7615 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7c407808 | 7616 | 10.[012][,.]*) |
6d873a38 | 7617 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7618 | 10.*) | |
7619 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7620 | esac | |
7621 | ;; | |
7622 | esac | |
7623 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7624 | _lt_dar_single_mod='$single_module' | |
7625 | fi | |
7626 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7627 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7628 | else | |
7629 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7630 | fi | |
e6408286 | 7631 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
6d873a38 | 7632 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7633 | else | |
7634 | _lt_dsymutil= | |
7635 | fi | |
7636 | ;; | |
7637 | esac | |
7638 | ||
7639 | ac_ext=c | |
7640 | ac_cpp='$CPP $CPPFLAGS' | |
7641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
cd9a469c | 7644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7645 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6d873a38 | 7646 | # On Suns, sometimes $CPP names a directory. |
7647 | if test -n "$CPP" && test -d "$CPP"; then | |
7648 | CPP= | |
7649 | fi | |
7650 | if test -z "$CPP"; then | |
f00f02a3 | 7651 | if ${ac_cv_prog_CPP+:} false; then : |
cd9a469c | 7652 | $as_echo_n "(cached) " >&6 |
6d873a38 | 7653 | else |
7654 | # Double quotes because CPP needs to be expanded | |
7655 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7656 | do | |
7657 | ac_preproc_ok=false | |
7658 | for ac_c_preproc_warn_flag in '' yes | |
7659 | do | |
7660 | # Use a header file that comes with gcc, so configuring glibc | |
7661 | # with a fresh cross-compiler works. | |
7662 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7663 | # <limits.h> exists even on freestanding compilers. | |
7664 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7665 | # not just through cpp. "Syntax error" is here to catch this case. | |
cd9a469c | 7666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d873a38 | 7667 | /* end confdefs.h. */ |
7668 | #ifdef __STDC__ | |
7669 | # include <limits.h> | |
7670 | #else | |
7671 | # include <assert.h> | |
7672 | #endif | |
7673 | Syntax error | |
7674 | _ACEOF | |
cd9a469c | 7675 | if ac_fn_c_try_cpp "$LINENO"; then : |
542f9784 | 7676 | |
cd9a469c | 7677 | else |
542f9784 | 7678 | # Broken: fails on valid input. |
7679 | continue | |
7680 | fi | |
f00f02a3 | 7681 | rm -f conftest.err conftest.i conftest.$ac_ext |
542f9784 | 7682 | |
cd9a469c | 7683 | # OK, works on sane cases. Now check whether nonexistent headers |
542f9784 | 7684 | # can be detected and how. |
cd9a469c | 7685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 7686 | /* end confdefs.h. */ |
7687 | #include <ac_nonexistent.h> | |
7688 | _ACEOF | |
cd9a469c | 7689 | if ac_fn_c_try_cpp "$LINENO"; then : |
542f9784 | 7690 | # Broken: success on invalid input. |
7691 | continue | |
7692 | else | |
542f9784 | 7693 | # Passes both tests. |
7694 | ac_preproc_ok=: | |
7695 | break | |
7696 | fi | |
f00f02a3 | 7697 | rm -f conftest.err conftest.i conftest.$ac_ext |
542f9784 | 7698 | |
7699 | done | |
7700 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
f00f02a3 | 7701 | rm -f conftest.i conftest.err conftest.$ac_ext |
cd9a469c | 7702 | if $ac_preproc_ok; then : |
542f9784 | 7703 | break |
7704 | fi | |
7705 | ||
7706 | done | |
7707 | ac_cv_prog_CPP=$CPP | |
7708 | ||
7709 | fi | |
7710 | CPP=$ac_cv_prog_CPP | |
7711 | else | |
7712 | ac_cv_prog_CPP=$CPP | |
7713 | fi | |
cd9a469c | 7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7715 | $as_echo "$CPP" >&6; } | |
542f9784 | 7716 | ac_preproc_ok=false |
7717 | for ac_c_preproc_warn_flag in '' yes | |
7718 | do | |
7719 | # Use a header file that comes with gcc, so configuring glibc | |
7720 | # with a fresh cross-compiler works. | |
7721 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7722 | # <limits.h> exists even on freestanding compilers. | |
7723 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7724 | # not just through cpp. "Syntax error" is here to catch this case. | |
cd9a469c | 7725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 7726 | /* end confdefs.h. */ |
7727 | #ifdef __STDC__ | |
7728 | # include <limits.h> | |
7729 | #else | |
7730 | # include <assert.h> | |
7731 | #endif | |
7732 | Syntax error | |
7733 | _ACEOF | |
cd9a469c | 7734 | if ac_fn_c_try_cpp "$LINENO"; then : |
542f9784 | 7735 | |
cd9a469c | 7736 | else |
542f9784 | 7737 | # Broken: fails on valid input. |
7738 | continue | |
7739 | fi | |
f00f02a3 | 7740 | rm -f conftest.err conftest.i conftest.$ac_ext |
542f9784 | 7741 | |
cd9a469c | 7742 | # OK, works on sane cases. Now check whether nonexistent headers |
542f9784 | 7743 | # can be detected and how. |
cd9a469c | 7744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 7745 | /* end confdefs.h. */ |
7746 | #include <ac_nonexistent.h> | |
7747 | _ACEOF | |
cd9a469c | 7748 | if ac_fn_c_try_cpp "$LINENO"; then : |
542f9784 | 7749 | # Broken: success on invalid input. |
7750 | continue | |
7751 | else | |
542f9784 | 7752 | # Passes both tests. |
7753 | ac_preproc_ok=: | |
7754 | break | |
7755 | fi | |
f00f02a3 | 7756 | rm -f conftest.err conftest.i conftest.$ac_ext |
542f9784 | 7757 | |
7758 | done | |
7759 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
f00f02a3 | 7760 | rm -f conftest.i conftest.err conftest.$ac_ext |
cd9a469c | 7761 | if $ac_preproc_ok; then : |
7762 | ||
542f9784 | 7763 | else |
cd9a469c | 7764 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7765 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 7766 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7767 | See \`config.log' for more details" "$LINENO" 5; } | |
542f9784 | 7768 | fi |
7769 | ||
7770 | ac_ext=c | |
7771 | ac_cpp='$CPP $CPPFLAGS' | |
7772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7775 | ||
7776 | ||
cd9a469c | 7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7778 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
f00f02a3 | 7779 | if ${ac_cv_header_stdc+:} false; then : |
cd9a469c | 7780 | $as_echo_n "(cached) " >&6 |
542f9784 | 7781 | else |
cd9a469c | 7782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 7783 | /* end confdefs.h. */ |
7784 | #include <stdlib.h> | |
7785 | #include <stdarg.h> | |
7786 | #include <string.h> | |
7787 | #include <float.h> | |
7788 | ||
7789 | int | |
7790 | main () | |
7791 | { | |
7792 | ||
7793 | ; | |
7794 | return 0; | |
7795 | } | |
7796 | _ACEOF | |
cd9a469c | 7797 | if ac_fn_c_try_compile "$LINENO"; then : |
542f9784 | 7798 | ac_cv_header_stdc=yes |
7799 | else | |
cd9a469c | 7800 | ac_cv_header_stdc=no |
542f9784 | 7801 | fi |
cd9a469c | 7802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 7803 | |
7804 | if test $ac_cv_header_stdc = yes; then | |
7805 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
cd9a469c | 7806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 7807 | /* end confdefs.h. */ |
7808 | #include <string.h> | |
7809 | ||
7810 | _ACEOF | |
7811 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
cd9a469c | 7812 | $EGREP "memchr" >/dev/null 2>&1; then : |
7813 | ||
542f9784 | 7814 | else |
7815 | ac_cv_header_stdc=no | |
7816 | fi | |
7817 | rm -f conftest* | |
7818 | ||
7819 | fi | |
7820 | ||
7821 | if test $ac_cv_header_stdc = yes; then | |
7822 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
cd9a469c | 7823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 7824 | /* end confdefs.h. */ |
7825 | #include <stdlib.h> | |
7826 | ||
7827 | _ACEOF | |
7828 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
cd9a469c | 7829 | $EGREP "free" >/dev/null 2>&1; then : |
7830 | ||
542f9784 | 7831 | else |
7832 | ac_cv_header_stdc=no | |
7833 | fi | |
7834 | rm -f conftest* | |
7835 | ||
7836 | fi | |
7837 | ||
7838 | if test $ac_cv_header_stdc = yes; then | |
7839 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
cd9a469c | 7840 | if test "$cross_compiling" = yes; then : |
542f9784 | 7841 | : |
7842 | else | |
cd9a469c | 7843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 7844 | /* end confdefs.h. */ |
7845 | #include <ctype.h> | |
cd9a469c | 7846 | #include <stdlib.h> |
542f9784 | 7847 | #if ((' ' & 0x0FF) == 0x020) |
7848 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7849 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7850 | #else | |
7851 | # define ISLOWER(c) \ | |
7852 | (('a' <= (c) && (c) <= 'i') \ | |
7853 | || ('j' <= (c) && (c) <= 'r') \ | |
7854 | || ('s' <= (c) && (c) <= 'z')) | |
7855 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7856 | #endif | |
7857 | ||
7858 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7859 | int | |
7860 | main () | |
7861 | { | |
7862 | int i; | |
7863 | for (i = 0; i < 256; i++) | |
7864 | if (XOR (islower (i), ISLOWER (i)) | |
7865 | || toupper (i) != TOUPPER (i)) | |
cd9a469c | 7866 | return 2; |
7867 | return 0; | |
542f9784 | 7868 | } |
7869 | _ACEOF | |
cd9a469c | 7870 | if ac_fn_c_try_run "$LINENO"; then : |
542f9784 | 7871 | |
cd9a469c | 7872 | else |
7873 | ac_cv_header_stdc=no | |
542f9784 | 7874 | fi |
cd9a469c | 7875 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7876 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
542f9784 | 7877 | fi |
cd9a469c | 7878 | |
542f9784 | 7879 | fi |
7880 | fi | |
cd9a469c | 7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7882 | $as_echo "$ac_cv_header_stdc" >&6; } | |
542f9784 | 7883 | if test $ac_cv_header_stdc = yes; then |
7884 | ||
cd9a469c | 7885 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
542f9784 | 7886 | |
7887 | fi | |
7888 | ||
7889 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
542f9784 | 7890 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7891 | inttypes.h stdint.h unistd.h | |
cd9a469c | 7892 | do : |
7893 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7894 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7895 | " | |
f00f02a3 | 7896 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
542f9784 | 7897 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 7898 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
542f9784 | 7899 | _ACEOF |
7900 | ||
7901 | fi | |
7902 | ||
7903 | done | |
7904 | ||
7905 | ||
542f9784 | 7906 | for ac_header in dlfcn.h |
cd9a469c | 7907 | do : |
7908 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7909 | " | |
f00f02a3 | 7910 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
542f9784 | 7911 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 7912 | #define HAVE_DLFCN_H 1 |
542f9784 | 7913 | _ACEOF |
7914 | ||
7915 | fi | |
7916 | ||
7917 | done | |
7918 | ||
7919 | ||
7920 | ||
e6408286 | 7921 | |
7922 | ||
6d873a38 | 7923 | # Set options |
7924 | ||
7925 | ||
7926 | ||
7927 | enable_dlopen=no | |
7928 | ||
7929 | ||
7930 | enable_win32_dll=no | |
7931 | ||
7932 | ||
cd9a469c | 7933 | # Check whether --enable-shared was given. |
7934 | if test "${enable_shared+set}" = set; then : | |
7935 | enableval=$enable_shared; p=${PACKAGE-default} | |
6d873a38 | 7936 | case $enableval in |
7937 | yes) enable_shared=yes ;; | |
7938 | no) enable_shared=no ;; | |
7939 | *) | |
7940 | enable_shared=no | |
7941 | # Look at the argument we got. We use all the common list separators. | |
7942 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7943 | for pkg in $enableval; do | |
7944 | IFS="$lt_save_ifs" | |
7945 | if test "X$pkg" = "X$p"; then | |
7946 | enable_shared=yes | |
7947 | fi | |
7948 | done | |
7949 | IFS="$lt_save_ifs" | |
7950 | ;; | |
7951 | esac | |
7952 | else | |
7953 | enable_shared=yes | |
cd9a469c | 7954 | fi |
7955 | ||
6d873a38 | 7956 | |
7957 | ||
7958 | ||
7959 | ||
7960 | ||
7961 | ||
7962 | ||
7963 | ||
cd9a469c | 7964 | # Check whether --enable-static was given. |
7965 | if test "${enable_static+set}" = set; then : | |
7966 | enableval=$enable_static; p=${PACKAGE-default} | |
6d873a38 | 7967 | case $enableval in |
7968 | yes) enable_static=yes ;; | |
7969 | no) enable_static=no ;; | |
7970 | *) | |
7971 | enable_static=no | |
7972 | # Look at the argument we got. We use all the common list separators. | |
7973 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7974 | for pkg in $enableval; do | |
7975 | IFS="$lt_save_ifs" | |
7976 | if test "X$pkg" = "X$p"; then | |
7977 | enable_static=yes | |
7978 | fi | |
7979 | done | |
7980 | IFS="$lt_save_ifs" | |
7981 | ;; | |
7982 | esac | |
7983 | else | |
7984 | enable_static=yes | |
cd9a469c | 7985 | fi |
7986 | ||
6d873a38 | 7987 | |
7988 | ||
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | ||
7995 | ||
cd9a469c | 7996 | # Check whether --with-pic was given. |
7997 | if test "${with_pic+set}" = set; then : | |
7998 | withval=$with_pic; pic_mode="$withval" | |
6d873a38 | 7999 | else |
8000 | pic_mode=default | |
cd9a469c | 8001 | fi |
8002 | ||
6d873a38 | 8003 | |
8004 | test -z "$pic_mode" && pic_mode=default | |
8005 | ||
8006 | ||
8007 | ||
8008 | ||
8009 | ||
8010 | ||
8011 | ||
cd9a469c | 8012 | # Check whether --enable-fast-install was given. |
8013 | if test "${enable_fast_install+set}" = set; then : | |
8014 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6d873a38 | 8015 | case $enableval in |
8016 | yes) enable_fast_install=yes ;; | |
8017 | no) enable_fast_install=no ;; | |
8018 | *) | |
8019 | enable_fast_install=no | |
8020 | # Look at the argument we got. We use all the common list separators. | |
8021 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8022 | for pkg in $enableval; do | |
8023 | IFS="$lt_save_ifs" | |
8024 | if test "X$pkg" = "X$p"; then | |
8025 | enable_fast_install=yes | |
8026 | fi | |
8027 | done | |
8028 | IFS="$lt_save_ifs" | |
8029 | ;; | |
8030 | esac | |
8031 | else | |
8032 | enable_fast_install=yes | |
cd9a469c | 8033 | fi |
8034 | ||
6d873a38 | 8035 | |
8036 | ||
8037 | ||
8038 | ||
8039 | ||
8040 | ||
8041 | ||
8042 | ||
8043 | ||
8044 | ||
542f9784 | 8045 | # This can be used to rebuild libtool when needed |
8046 | LIBTOOL_DEPS="$ltmain" | |
8047 | ||
8048 | # Always use our own libtool. | |
8049 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | ||
8059 | ||
8060 | ||
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
e6408286 | 8073 | |
542f9784 | 8074 | |
8075 | ||
8076 | test -z "$LN_S" && LN_S="ln -s" | |
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
8091 | if test -n "${ZSH_VERSION+set}" ; then | |
8092 | setopt NO_GLOB_SUBST | |
8093 | fi | |
8094 | ||
cd9a469c | 8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8096 | $as_echo_n "checking for objdir... " >&6; } | |
f00f02a3 | 8097 | if ${lt_cv_objdir+:} false; then : |
cd9a469c | 8098 | $as_echo_n "(cached) " >&6 |
542f9784 | 8099 | else |
8100 | rm -f .libs 2>/dev/null | |
8101 | mkdir .libs 2>/dev/null | |
8102 | if test -d .libs; then | |
8103 | lt_cv_objdir=.libs | |
8104 | else | |
8105 | # MS-DOS does not allow filenames that begin with a dot. | |
8106 | lt_cv_objdir=_libs | |
8107 | fi | |
8108 | rmdir .libs 2>/dev/null | |
8109 | fi | |
cd9a469c | 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8111 | $as_echo "$lt_cv_objdir" >&6; } | |
542f9784 | 8112 | objdir=$lt_cv_objdir |
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | cat >>confdefs.h <<_ACEOF | |
8119 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8120 | _ACEOF | |
8121 | ||
8122 | ||
8123 | ||
8124 | ||
542f9784 | 8125 | case $host_os in |
8126 | aix3*) | |
8127 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8128 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8129 | # vanish in a puff of smoke. | |
8130 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8131 | COLLECT_NAMES= | |
8132 | export COLLECT_NAMES | |
8133 | fi | |
8134 | ;; | |
8135 | esac | |
8136 | ||
542f9784 | 8137 | # Global variables: |
8138 | ofile=libtool | |
8139 | can_build_shared=yes | |
8140 | ||
8141 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8142 | # which needs '.lib'). | |
8143 | libext=a | |
8144 | ||
8145 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8146 | ||
8147 | old_CC="$CC" | |
8148 | old_CFLAGS="$CFLAGS" | |
8149 | ||
8150 | # Set sane defaults for various variables | |
8151 | test -z "$CC" && CC=cc | |
8152 | test -z "$LTCC" && LTCC=$CC | |
8153 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8154 | test -z "$LD" && LD=ld | |
8155 | test -z "$ac_objext" && ac_objext=o | |
8156 | ||
8157 | for cc_temp in $compiler""; do | |
8158 | case $cc_temp in | |
8159 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8160 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8161 | \-*) ;; | |
8162 | *) break;; | |
8163 | esac | |
8164 | done | |
e6408286 | 8165 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 8166 | |
8167 | ||
8168 | # Only perform the check for file, if the check method requires it | |
8169 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8170 | case $deplibs_check_method in | |
8171 | file_magic*) | |
8172 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
cd9a469c | 8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8174 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
f00f02a3 | 8175 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
cd9a469c | 8176 | $as_echo_n "(cached) " >&6 |
542f9784 | 8177 | else |
8178 | case $MAGIC_CMD in | |
8179 | [\\/*] | ?:[\\/]*) | |
8180 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8181 | ;; | |
8182 | *) | |
8183 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8184 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8185 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8186 | for ac_dir in $ac_dummy; do | |
8187 | IFS="$lt_save_ifs" | |
8188 | test -z "$ac_dir" && ac_dir=. | |
8189 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8190 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8191 | if test -n "$file_magic_test_file"; then | |
8192 | case $deplibs_check_method in | |
8193 | "file_magic "*) | |
8194 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8195 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8196 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8197 | $EGREP "$file_magic_regex" > /dev/null; then | |
8198 | : | |
8199 | else | |
8200 | cat <<_LT_EOF 1>&2 | |
8201 | ||
8202 | *** Warning: the command libtool uses to detect shared libraries, | |
8203 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8204 | *** The result is that libtool may fail to recognize shared libraries | |
8205 | *** as such. This will affect the creation of libtool libraries that | |
8206 | *** depend on shared libraries, but programs linked with such libtool | |
8207 | *** libraries will work regardless of this problem. Nevertheless, you | |
8208 | *** may want to report the problem to your system manager and/or to | |
8209 | *** bug-libtool@gnu.org | |
8210 | ||
8211 | _LT_EOF | |
8212 | fi ;; | |
8213 | esac | |
8214 | fi | |
8215 | break | |
8216 | fi | |
8217 | done | |
8218 | IFS="$lt_save_ifs" | |
8219 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8220 | ;; | |
8221 | esac | |
8222 | fi | |
8223 | ||
8224 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8225 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 8226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8227 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 8228 | else |
cd9a469c | 8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8230 | $as_echo "no" >&6; } | |
542f9784 | 8231 | fi |
8232 | ||
8233 | ||
8234 | ||
8235 | ||
8236 | ||
8237 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8238 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8240 | $as_echo_n "checking for file... " >&6; } | |
f00f02a3 | 8241 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
cd9a469c | 8242 | $as_echo_n "(cached) " >&6 |
542f9784 | 8243 | else |
8244 | case $MAGIC_CMD in | |
8245 | [\\/*] | ?:[\\/]*) | |
8246 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8247 | ;; | |
8248 | *) | |
8249 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8250 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8251 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8252 | for ac_dir in $ac_dummy; do | |
8253 | IFS="$lt_save_ifs" | |
8254 | test -z "$ac_dir" && ac_dir=. | |
8255 | if test -f $ac_dir/file; then | |
8256 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8257 | if test -n "$file_magic_test_file"; then | |
8258 | case $deplibs_check_method in | |
8259 | "file_magic "*) | |
8260 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8261 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8262 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8263 | $EGREP "$file_magic_regex" > /dev/null; then | |
8264 | : | |
8265 | else | |
8266 | cat <<_LT_EOF 1>&2 | |
8267 | ||
8268 | *** Warning: the command libtool uses to detect shared libraries, | |
8269 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8270 | *** The result is that libtool may fail to recognize shared libraries | |
8271 | *** as such. This will affect the creation of libtool libraries that | |
8272 | *** depend on shared libraries, but programs linked with such libtool | |
8273 | *** libraries will work regardless of this problem. Nevertheless, you | |
8274 | *** may want to report the problem to your system manager and/or to | |
8275 | *** bug-libtool@gnu.org | |
8276 | ||
8277 | _LT_EOF | |
8278 | fi ;; | |
8279 | esac | |
8280 | fi | |
8281 | break | |
8282 | fi | |
8283 | done | |
8284 | IFS="$lt_save_ifs" | |
8285 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8286 | ;; | |
8287 | esac | |
8288 | fi | |
8289 | ||
8290 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8291 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8293 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 8294 | else |
cd9a469c | 8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8296 | $as_echo "no" >&6; } | |
542f9784 | 8297 | fi |
8298 | ||
8299 | ||
8300 | else | |
8301 | MAGIC_CMD=: | |
8302 | fi | |
8303 | fi | |
8304 | ||
8305 | fi | |
8306 | ;; | |
8307 | esac | |
8308 | ||
8309 | # Use C for the default configuration in the libtool script | |
8310 | ||
8311 | lt_save_CC="$CC" | |
8312 | ac_ext=c | |
8313 | ac_cpp='$CPP $CPPFLAGS' | |
8314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8317 | ||
8318 | ||
8319 | # Source file extension for C test sources. | |
8320 | ac_ext=c | |
8321 | ||
8322 | # Object file extension for compiled C test sources. | |
8323 | objext=o | |
8324 | objext=$objext | |
8325 | ||
8326 | # Code to be used in simple compile tests | |
8327 | lt_simple_compile_test_code="int some_variable = 0;" | |
8328 | ||
8329 | # Code to be used in simple link tests | |
8330 | lt_simple_link_test_code='int main(){return(0);}' | |
8331 | ||
8332 | ||
8333 | ||
8334 | ||
8335 | ||
8336 | ||
8337 | ||
8338 | # If no C compiler was specified, use CC. | |
8339 | LTCC=${LTCC-"$CC"} | |
8340 | ||
8341 | # If no C compiler flags were specified, use CFLAGS. | |
8342 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8343 | ||
8344 | # Allow CC to be a program name with arguments. | |
8345 | compiler=$CC | |
8346 | ||
8347 | # Save the default compiler, since it gets overwritten when the other | |
8348 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8349 | compiler_DEFAULT=$CC | |
8350 | ||
8351 | # save warnings/boilerplate of simple test code | |
8352 | ac_outfile=conftest.$ac_objext | |
8353 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8354 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8355 | _lt_compiler_boilerplate=`cat conftest.err` | |
8356 | $RM conftest* | |
8357 | ||
8358 | ac_outfile=conftest.$ac_objext | |
8359 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8360 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8361 | _lt_linker_boilerplate=`cat conftest.err` | |
6d873a38 | 8362 | $RM -r conftest* |
542f9784 | 8363 | |
8364 | ||
8365 | ## CAVEAT EMPTOR: | |
8366 | ## There is no encapsulation within the following macros, do not change | |
8367 | ## the running order or otherwise move them around unless you know exactly | |
8368 | ## what you are doing... | |
8369 | if test -n "$compiler"; then | |
8370 | ||
8371 | lt_prog_compiler_no_builtin_flag= | |
8372 | ||
8373 | if test "$GCC" = yes; then | |
e6408286 | 8374 | case $cc_basename in |
8375 | nvcc*) | |
8376 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8377 | *) | |
8378 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8379 | esac | |
542f9784 | 8380 | |
cd9a469c | 8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8382 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
f00f02a3 | 8383 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
cd9a469c | 8384 | $as_echo_n "(cached) " >&6 |
542f9784 | 8385 | else |
8386 | lt_cv_prog_compiler_rtti_exceptions=no | |
8387 | ac_outfile=conftest.$ac_objext | |
8388 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8389 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8390 | # Insert the option either (1) after the last *FLAGS variable, or | |
8391 | # (2) before a word containing "conftest.", or (3) at the end. | |
8392 | # Note that $ac_compile itself does not contain backslashes and begins | |
8393 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8394 | # The option is referenced via a variable to avoid confusing sed. | |
8395 | lt_compile=`echo "$ac_compile" | $SED \ | |
8396 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8397 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8398 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 8399 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 8400 | (eval "$lt_compile" 2>conftest.err) |
8401 | ac_status=$? | |
8402 | cat conftest.err >&5 | |
e6408286 | 8403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 8404 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8405 | # The compiler can only warn and ignore the option if not recognized | |
8406 | # So say no if there are warnings other than the usual output. | |
e6408286 | 8407 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 8408 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8409 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8410 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8411 | fi | |
8412 | fi | |
8413 | $RM conftest* | |
8414 | ||
8415 | fi | |
cd9a469c | 8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8417 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
542f9784 | 8418 | |
8419 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8420 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8421 | else | |
8422 | : | |
8423 | fi | |
8424 | ||
8425 | fi | |
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | lt_prog_compiler_wl= | |
8433 | lt_prog_compiler_pic= | |
8434 | lt_prog_compiler_static= | |
8435 | ||
cd9a469c | 8436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8437 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 8438 | |
8439 | if test "$GCC" = yes; then | |
8440 | lt_prog_compiler_wl='-Wl,' | |
8441 | lt_prog_compiler_static='-static' | |
8442 | ||
8443 | case $host_os in | |
8444 | aix*) | |
8445 | # All AIX code is PIC. | |
8446 | if test "$host_cpu" = ia64; then | |
8447 | # AIX 5 now supports IA64 processor | |
8448 | lt_prog_compiler_static='-Bstatic' | |
8449 | fi | |
33cbbd54 | 8450 | lt_prog_compiler_pic='-fPIC' |
542f9784 | 8451 | ;; |
8452 | ||
8453 | amigaos*) | |
6d873a38 | 8454 | case $host_cpu in |
8455 | powerpc) | |
8456 | # see comment about AmigaOS4 .so support | |
8457 | lt_prog_compiler_pic='-fPIC' | |
8458 | ;; | |
8459 | m68k) | |
8460 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8461 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8462 | # like `-m68040'. | |
8463 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8464 | ;; | |
8465 | esac | |
542f9784 | 8466 | ;; |
8467 | ||
8468 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8469 | # PIC is the default for these OSes. | |
8470 | ;; | |
8471 | ||
6d873a38 | 8472 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 8473 | # This hack is so that the source file can tell whether it is being |
8474 | # built for inclusion in a dll (and should export symbols for example). | |
8475 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8476 | # (--disable-auto-import) libraries | |
8477 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8478 | ;; | |
8479 | ||
8480 | darwin* | rhapsody*) | |
8481 | # PIC is the default on this platform | |
8482 | # Common symbols not allowed in MH_DYLIB files | |
8483 | lt_prog_compiler_pic='-fno-common' | |
8484 | ;; | |
8485 | ||
e6408286 | 8486 | haiku*) |
8487 | # PIC is the default for Haiku. | |
8488 | # The "-static" flag exists, but is broken. | |
8489 | lt_prog_compiler_static= | |
8490 | ;; | |
8491 | ||
542f9784 | 8492 | hpux*) |
6d873a38 | 8493 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8494 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8495 | # sets the default TLS model and affects inlining. | |
542f9784 | 8496 | case $host_cpu in |
6d873a38 | 8497 | hppa*64*) |
542f9784 | 8498 | # +Z the default |
8499 | ;; | |
8500 | *) | |
8501 | lt_prog_compiler_pic='-fPIC' | |
8502 | ;; | |
8503 | esac | |
8504 | ;; | |
8505 | ||
8506 | interix[3-9]*) | |
8507 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8508 | # Instead, we relocate shared libraries at runtime. | |
8509 | ;; | |
8510 | ||
8511 | msdosdjgpp*) | |
8512 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8513 | # on systems that don't support them. | |
8514 | lt_prog_compiler_can_build_shared=no | |
8515 | enable_shared=no | |
8516 | ;; | |
8517 | ||
8518 | *nto* | *qnx*) | |
8519 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8520 | # it will coredump. | |
8521 | lt_prog_compiler_pic='-fPIC -shared' | |
8522 | ;; | |
8523 | ||
8524 | sysv4*MP*) | |
8525 | if test -d /usr/nec; then | |
8526 | lt_prog_compiler_pic=-Kconform_pic | |
8527 | fi | |
8528 | ;; | |
8529 | ||
8530 | *) | |
8531 | lt_prog_compiler_pic='-fPIC' | |
8532 | ;; | |
8533 | esac | |
e6408286 | 8534 | |
8535 | case $cc_basename in | |
8536 | nvcc*) # Cuda Compiler Driver 2.2 | |
8537 | lt_prog_compiler_wl='-Xlinker ' | |
8538 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8539 | ;; | |
8540 | esac | |
542f9784 | 8541 | else |
8542 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8543 | case $host_os in | |
8544 | aix*) | |
8545 | lt_prog_compiler_wl='-Wl,' | |
8546 | if test "$host_cpu" = ia64; then | |
8547 | # AIX 5 now supports IA64 processor | |
8548 | lt_prog_compiler_static='-Bstatic' | |
8549 | else | |
8550 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8551 | fi | |
8552 | ;; | |
542f9784 | 8553 | |
6d873a38 | 8554 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 8555 | # This hack is so that the source file can tell whether it is being |
8556 | # built for inclusion in a dll (and should export symbols for example). | |
8557 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8558 | ;; | |
8559 | ||
8560 | hpux9* | hpux10* | hpux11*) | |
8561 | lt_prog_compiler_wl='-Wl,' | |
8562 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8563 | # not for PA HP-UX. | |
8564 | case $host_cpu in | |
8565 | hppa*64*|ia64*) | |
8566 | # +Z the default | |
8567 | ;; | |
8568 | *) | |
8569 | lt_prog_compiler_pic='+Z' | |
8570 | ;; | |
8571 | esac | |
8572 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8573 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8574 | ;; | |
8575 | ||
8576 | irix5* | irix6* | nonstopux*) | |
8577 | lt_prog_compiler_wl='-Wl,' | |
8578 | # PIC (with -KPIC) is the default. | |
8579 | lt_prog_compiler_static='-non_shared' | |
8580 | ;; | |
8581 | ||
9af964d4 | 8582 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 8583 | case $cc_basename in |
6d873a38 | 8584 | # old Intel for x86_64 which still supported -KPIC. |
8585 | ecc*) | |
542f9784 | 8586 | lt_prog_compiler_wl='-Wl,' |
8587 | lt_prog_compiler_pic='-KPIC' | |
8588 | lt_prog_compiler_static='-static' | |
8589 | ;; | |
6d873a38 | 8590 | # icc used to be incompatible with GCC. |
8591 | # ICC 10 doesn't accept -KPIC any more. | |
8592 | icc* | ifort*) | |
8593 | lt_prog_compiler_wl='-Wl,' | |
8594 | lt_prog_compiler_pic='-fPIC' | |
8595 | lt_prog_compiler_static='-static' | |
8596 | ;; | |
8597 | # Lahey Fortran 8.1. | |
8598 | lf95*) | |
8599 | lt_prog_compiler_wl='-Wl,' | |
8600 | lt_prog_compiler_pic='--shared' | |
8601 | lt_prog_compiler_static='--static' | |
8602 | ;; | |
e6408286 | 8603 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 8604 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8605 | # which looks to be a dead project) | |
8606 | lt_prog_compiler_wl='-Wl,' | |
8607 | lt_prog_compiler_pic='-fpic' | |
8608 | lt_prog_compiler_static='-Bstatic' | |
8609 | ;; | |
8610 | ccc*) | |
8611 | lt_prog_compiler_wl='-Wl,' | |
8612 | # All Alpha code is PIC. | |
8613 | lt_prog_compiler_static='-non_shared' | |
8614 | ;; | |
e6408286 | 8615 | xl* | bgxl* | bgf* | mpixl*) |
8616 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
6d873a38 | 8617 | lt_prog_compiler_wl='-Wl,' |
8618 | lt_prog_compiler_pic='-qpic' | |
8619 | lt_prog_compiler_static='-qstaticlink' | |
8620 | ;; | |
542f9784 | 8621 | *) |
8622 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 8623 | *Sun\ F* | *Sun*Fortran*) |
8624 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 8625 | lt_prog_compiler_pic='-KPIC' |
8626 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 8627 | lt_prog_compiler_wl='' |
542f9784 | 8628 | ;; |
e6408286 | 8629 | *Sun\ C*) |
8630 | # Sun C 5.9 | |
542f9784 | 8631 | lt_prog_compiler_pic='-KPIC' |
8632 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 8633 | lt_prog_compiler_wl='-Wl,' |
542f9784 | 8634 | ;; |
8635 | esac | |
8636 | ;; | |
8637 | esac | |
8638 | ;; | |
8639 | ||
8640 | newsos6) | |
8641 | lt_prog_compiler_pic='-KPIC' | |
8642 | lt_prog_compiler_static='-Bstatic' | |
8643 | ;; | |
8644 | ||
8645 | *nto* | *qnx*) | |
8646 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8647 | # it will coredump. | |
8648 | lt_prog_compiler_pic='-fPIC -shared' | |
8649 | ;; | |
8650 | ||
8651 | osf3* | osf4* | osf5*) | |
8652 | lt_prog_compiler_wl='-Wl,' | |
8653 | # All OSF/1 code is PIC. | |
8654 | lt_prog_compiler_static='-non_shared' | |
8655 | ;; | |
8656 | ||
8657 | rdos*) | |
8658 | lt_prog_compiler_static='-non_shared' | |
8659 | ;; | |
8660 | ||
8661 | solaris*) | |
8662 | lt_prog_compiler_pic='-KPIC' | |
8663 | lt_prog_compiler_static='-Bstatic' | |
8664 | case $cc_basename in | |
8665 | f77* | f90* | f95*) | |
8666 | lt_prog_compiler_wl='-Qoption ld ';; | |
8667 | *) | |
8668 | lt_prog_compiler_wl='-Wl,';; | |
8669 | esac | |
8670 | ;; | |
8671 | ||
8672 | sunos4*) | |
8673 | lt_prog_compiler_wl='-Qoption ld ' | |
8674 | lt_prog_compiler_pic='-PIC' | |
8675 | lt_prog_compiler_static='-Bstatic' | |
8676 | ;; | |
8677 | ||
8678 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8679 | lt_prog_compiler_wl='-Wl,' | |
8680 | lt_prog_compiler_pic='-KPIC' | |
8681 | lt_prog_compiler_static='-Bstatic' | |
8682 | ;; | |
8683 | ||
8684 | sysv4*MP*) | |
8685 | if test -d /usr/nec ;then | |
8686 | lt_prog_compiler_pic='-Kconform_pic' | |
8687 | lt_prog_compiler_static='-Bstatic' | |
8688 | fi | |
8689 | ;; | |
8690 | ||
8691 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8692 | lt_prog_compiler_wl='-Wl,' | |
8693 | lt_prog_compiler_pic='-KPIC' | |
8694 | lt_prog_compiler_static='-Bstatic' | |
8695 | ;; | |
8696 | ||
8697 | unicos*) | |
8698 | lt_prog_compiler_wl='-Wl,' | |
8699 | lt_prog_compiler_can_build_shared=no | |
8700 | ;; | |
8701 | ||
8702 | uts4*) | |
8703 | lt_prog_compiler_pic='-pic' | |
8704 | lt_prog_compiler_static='-Bstatic' | |
8705 | ;; | |
8706 | ||
8707 | *) | |
8708 | lt_prog_compiler_can_build_shared=no | |
8709 | ;; | |
8710 | esac | |
8711 | fi | |
8712 | ||
8713 | case $host_os in | |
8714 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8715 | *djgpp*) | |
8716 | lt_prog_compiler_pic= | |
8717 | ;; | |
8718 | *) | |
8719 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8720 | ;; | |
8721 | esac | |
cd9a469c | 8722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8723 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
542f9784 | 8724 | |
8725 | ||
8726 | ||
8727 | ||
8728 | ||
8729 | ||
8730 | # | |
8731 | # Check to make sure the PIC flag actually works. | |
8732 | # | |
8733 | if test -n "$lt_prog_compiler_pic"; then | |
cd9a469c | 8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8735 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
f00f02a3 | 8736 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
cd9a469c | 8737 | $as_echo_n "(cached) " >&6 |
542f9784 | 8738 | else |
6d873a38 | 8739 | lt_cv_prog_compiler_pic_works=no |
542f9784 | 8740 | ac_outfile=conftest.$ac_objext |
8741 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8742 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8743 | # Insert the option either (1) after the last *FLAGS variable, or | |
8744 | # (2) before a word containing "conftest.", or (3) at the end. | |
8745 | # Note that $ac_compile itself does not contain backslashes and begins | |
8746 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8747 | # The option is referenced via a variable to avoid confusing sed. | |
8748 | lt_compile=`echo "$ac_compile" | $SED \ | |
8749 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8750 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8751 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 8752 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 8753 | (eval "$lt_compile" 2>conftest.err) |
8754 | ac_status=$? | |
8755 | cat conftest.err >&5 | |
e6408286 | 8756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 8757 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8758 | # The compiler can only warn and ignore the option if not recognized | |
8759 | # So say no if there are warnings other than the usual output. | |
e6408286 | 8760 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 8761 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8762 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6d873a38 | 8763 | lt_cv_prog_compiler_pic_works=yes |
542f9784 | 8764 | fi |
8765 | fi | |
8766 | $RM conftest* | |
8767 | ||
8768 | fi | |
cd9a469c | 8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8770 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
542f9784 | 8771 | |
6d873a38 | 8772 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
542f9784 | 8773 | case $lt_prog_compiler_pic in |
8774 | "" | " "*) ;; | |
8775 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8776 | esac | |
8777 | else | |
8778 | lt_prog_compiler_pic= | |
8779 | lt_prog_compiler_can_build_shared=no | |
8780 | fi | |
8781 | ||
8782 | fi | |
8783 | ||
8784 | ||
8785 | ||
8786 | ||
8787 | ||
8788 | ||
8789 | # | |
8790 | # Check to make sure the static flag actually works. | |
8791 | # | |
8792 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
cd9a469c | 8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8794 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
f00f02a3 | 8795 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
cd9a469c | 8796 | $as_echo_n "(cached) " >&6 |
542f9784 | 8797 | else |
6d873a38 | 8798 | lt_cv_prog_compiler_static_works=no |
542f9784 | 8799 | save_LDFLAGS="$LDFLAGS" |
8800 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8801 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8802 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8803 | # The linker can only warn and ignore the option if not recognized | |
8804 | # So say no if there are warnings | |
8805 | if test -s conftest.err; then | |
8806 | # Append any errors to the config.log. | |
8807 | cat conftest.err 1>&5 | |
e6408286 | 8808 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 8809 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8810 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6d873a38 | 8811 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 8812 | fi |
8813 | else | |
6d873a38 | 8814 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 8815 | fi |
8816 | fi | |
6d873a38 | 8817 | $RM -r conftest* |
542f9784 | 8818 | LDFLAGS="$save_LDFLAGS" |
8819 | ||
8820 | fi | |
cd9a469c | 8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8822 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
542f9784 | 8823 | |
6d873a38 | 8824 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
542f9784 | 8825 | : |
8826 | else | |
8827 | lt_prog_compiler_static= | |
8828 | fi | |
8829 | ||
8830 | ||
8831 | ||
8832 | ||
8833 | ||
8834 | ||
8835 | ||
cd9a469c | 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8837 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 8838 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
cd9a469c | 8839 | $as_echo_n "(cached) " >&6 |
542f9784 | 8840 | else |
8841 | lt_cv_prog_compiler_c_o=no | |
8842 | $RM -r conftest 2>/dev/null | |
8843 | mkdir conftest | |
8844 | cd conftest | |
8845 | mkdir out | |
8846 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8847 | ||
8848 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8849 | # Insert the option either (1) after the last *FLAGS variable, or | |
8850 | # (2) before a word containing "conftest.", or (3) at the end. | |
8851 | # Note that $ac_compile itself does not contain backslashes and begins | |
8852 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8853 | lt_compile=`echo "$ac_compile" | $SED \ | |
8854 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8855 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8856 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 8857 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 8858 | (eval "$lt_compile" 2>out/conftest.err) |
8859 | ac_status=$? | |
8860 | cat out/conftest.err >&5 | |
e6408286 | 8861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 8862 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8863 | then | |
8864 | # The compiler can only warn and ignore the option if not recognized | |
8865 | # So say no if there are warnings | |
e6408286 | 8866 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 8867 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8868 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8869 | lt_cv_prog_compiler_c_o=yes | |
8870 | fi | |
8871 | fi | |
8872 | chmod u+w . 2>&5 | |
8873 | $RM conftest* | |
8874 | # SGI C++ compiler will create directory out/ii_files/ for | |
8875 | # template instantiation | |
8876 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8877 | $RM out/* && rmdir out | |
8878 | cd .. | |
8879 | $RM -r conftest | |
8880 | $RM conftest* | |
8881 | ||
8882 | fi | |
cd9a469c | 8883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8884 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 8885 | |
8886 | ||
8887 | ||
8888 | ||
8889 | ||
8890 | ||
cd9a469c | 8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8892 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 8893 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
cd9a469c | 8894 | $as_echo_n "(cached) " >&6 |
542f9784 | 8895 | else |
8896 | lt_cv_prog_compiler_c_o=no | |
8897 | $RM -r conftest 2>/dev/null | |
8898 | mkdir conftest | |
8899 | cd conftest | |
8900 | mkdir out | |
8901 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8902 | ||
8903 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8904 | # Insert the option either (1) after the last *FLAGS variable, or | |
8905 | # (2) before a word containing "conftest.", or (3) at the end. | |
8906 | # Note that $ac_compile itself does not contain backslashes and begins | |
8907 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8908 | lt_compile=`echo "$ac_compile" | $SED \ | |
8909 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8910 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8911 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 8912 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 8913 | (eval "$lt_compile" 2>out/conftest.err) |
8914 | ac_status=$? | |
8915 | cat out/conftest.err >&5 | |
e6408286 | 8916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 8917 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8918 | then | |
8919 | # The compiler can only warn and ignore the option if not recognized | |
8920 | # So say no if there are warnings | |
e6408286 | 8921 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 8922 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8923 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8924 | lt_cv_prog_compiler_c_o=yes | |
8925 | fi | |
8926 | fi | |
8927 | chmod u+w . 2>&5 | |
8928 | $RM conftest* | |
8929 | # SGI C++ compiler will create directory out/ii_files/ for | |
8930 | # template instantiation | |
8931 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8932 | $RM out/* && rmdir out | |
8933 | cd .. | |
8934 | $RM -r conftest | |
8935 | $RM conftest* | |
8936 | ||
8937 | fi | |
cd9a469c | 8938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8939 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 8940 | |
8941 | ||
8942 | ||
8943 | ||
8944 | hard_links="nottested" | |
8945 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8946 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8948 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 8949 | hard_links=yes |
8950 | $RM conftest* | |
8951 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8952 | touch conftest.a | |
8953 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8954 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 8955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8956 | $as_echo "$hard_links" >&6; } | |
542f9784 | 8957 | if test "$hard_links" = no; then |
cd9a469c | 8958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8959 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 8960 | need_locks=warn |
8961 | fi | |
8962 | else | |
8963 | need_locks=no | |
8964 | fi | |
8965 | ||
8966 | ||
8967 | ||
8968 | ||
8969 | ||
8970 | ||
cd9a469c | 8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8972 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 8973 | |
8974 | runpath_var= | |
8975 | allow_undefined_flag= | |
8976 | always_export_symbols=no | |
8977 | archive_cmds= | |
8978 | archive_expsym_cmds= | |
8979 | compiler_needs_object=no | |
8980 | enable_shared_with_static_runtimes=no | |
8981 | export_dynamic_flag_spec= | |
8982 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8983 | hardcode_automatic=no | |
8984 | hardcode_direct=no | |
8985 | hardcode_direct_absolute=no | |
8986 | hardcode_libdir_flag_spec= | |
8987 | hardcode_libdir_flag_spec_ld= | |
8988 | hardcode_libdir_separator= | |
8989 | hardcode_minus_L=no | |
8990 | hardcode_shlibpath_var=unsupported | |
8991 | inherit_rpath=no | |
8992 | link_all_deplibs=unknown | |
8993 | module_cmds= | |
8994 | module_expsym_cmds= | |
8995 | old_archive_from_new_cmds= | |
8996 | old_archive_from_expsyms_cmds= | |
8997 | thread_safe_flag_spec= | |
8998 | whole_archive_flag_spec= | |
8999 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9000 | # included in the symbol list | |
9001 | include_expsyms= | |
9002 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9003 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9004 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9005 | # as well as any symbol that contains `d'. | |
6d873a38 | 9006 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 9007 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9008 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9009 | # the symbol is explicitly referenced. Since portable code cannot | |
9010 | # rely on this symbol name, it's probably fine to never include it in | |
9011 | # preloaded symbol tables. | |
6d873a38 | 9012 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 9013 | extract_expsyms_cmds= |
9014 | ||
9015 | case $host_os in | |
6d873a38 | 9016 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 9017 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9018 | # When not using gcc, we currently assume that we are using | |
9019 | # Microsoft Visual C++. | |
9020 | if test "$GCC" != yes; then | |
9021 | with_gnu_ld=no | |
9022 | fi | |
9023 | ;; | |
9024 | interix*) | |
9025 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9026 | with_gnu_ld=yes | |
9027 | ;; | |
9028 | openbsd*) | |
9029 | with_gnu_ld=no | |
9030 | ;; | |
9031 | esac | |
9032 | ||
9033 | ld_shlibs=yes | |
e6408286 | 9034 | |
9035 | # On some targets, GNU ld is compatible enough with the native linker | |
9036 | # that we're better off using the native interface for both. | |
9037 | lt_use_gnu_ld_interface=no | |
542f9784 | 9038 | if test "$with_gnu_ld" = yes; then |
e6408286 | 9039 | case $host_os in |
9040 | aix*) | |
9041 | # The AIX port of GNU ld has always aspired to compatibility | |
9042 | # with the native linker. However, as the warning in the GNU ld | |
9043 | # block says, versions before 2.19.5* couldn't really create working | |
9044 | # shared libraries, regardless of the interface used. | |
9045 | case `$LD -v 2>&1` in | |
9046 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9047 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9048 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9049 | *) | |
9050 | lt_use_gnu_ld_interface=yes | |
9051 | ;; | |
9052 | esac | |
9053 | ;; | |
9054 | *) | |
9055 | lt_use_gnu_ld_interface=yes | |
9056 | ;; | |
9057 | esac | |
9058 | fi | |
9059 | ||
9060 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 9061 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9062 | wlarc='${wl}' | |
9063 | ||
9064 | # Set some defaults for GNU ld with shared library support. These | |
9065 | # are reset later if shared libraries are not supported. Putting them | |
9066 | # here allows them to be overridden if necessary. | |
9067 | runpath_var=LD_RUN_PATH | |
9068 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9069 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9070 | # ancient GNU ld didn't support --whole-archive et. al. | |
9071 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9072 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9073 | else | |
9074 | whole_archive_flag_spec= | |
9075 | fi | |
9076 | supports_anon_versioning=no | |
9077 | case `$LD -v 2>&1` in | |
e6408286 | 9078 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 9079 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9080 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9081 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9082 | *\ 2.11.*) ;; # other 2.11 versions | |
9083 | *) supports_anon_versioning=yes ;; | |
9084 | esac | |
9085 | ||
9086 | # See if GNU ld supports shared libraries. | |
9087 | case $host_os in | |
c8db569e | 9088 | aix[3-9]*) |
542f9784 | 9089 | # On AIX/PPC, the GNU linker is very broken |
9090 | if test "$host_cpu" != ia64; then | |
9091 | ld_shlibs=no | |
9092 | cat <<_LT_EOF 1>&2 | |
9093 | ||
e6408286 | 9094 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 9095 | *** to be unable to reliably create shared libraries on AIX. |
9096 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 9097 | *** really care for shared libraries, you may want to install binutils |
9098 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9099 | *** You will then need to restart the configuration process. | |
542f9784 | 9100 | |
9101 | _LT_EOF | |
9102 | fi | |
9103 | ;; | |
9104 | ||
9105 | amigaos*) | |
6d873a38 | 9106 | case $host_cpu in |
9107 | powerpc) | |
9108 | # see comment about AmigaOS4 .so support | |
9109 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9110 | archive_expsym_cmds='' | |
9111 | ;; | |
9112 | m68k) | |
9113 | 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)' | |
9114 | hardcode_libdir_flag_spec='-L$libdir' | |
9115 | hardcode_minus_L=yes | |
9116 | ;; | |
9117 | esac | |
542f9784 | 9118 | ;; |
9119 | ||
9120 | beos*) | |
9121 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9122 | allow_undefined_flag=unsupported | |
9123 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9124 | # support --undefined. This deserves some investigation. FIXME | |
9125 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9126 | else | |
9127 | ld_shlibs=no | |
9128 | fi | |
9129 | ;; | |
9130 | ||
6d873a38 | 9131 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 9132 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9133 | # as there is no search path for DLLs. | |
9134 | hardcode_libdir_flag_spec='-L$libdir' | |
e6408286 | 9135 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
542f9784 | 9136 | allow_undefined_flag=unsupported |
9137 | always_export_symbols=no | |
9138 | enable_shared_with_static_runtimes=yes | |
9139 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9140 | ||
9141 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9142 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9143 | # If the export-symbols file already is a .def file (1st line | |
9144 | # is EXPORTS), use it as is; otherwise, prepend... | |
9145 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9146 | cp $export_symbols $output_objdir/$soname.def; | |
9147 | else | |
9148 | echo EXPORTS > $output_objdir/$soname.def; | |
9149 | cat $export_symbols >> $output_objdir/$soname.def; | |
9150 | fi~ | |
9151 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9152 | else | |
9153 | ld_shlibs=no | |
9154 | fi | |
9155 | ;; | |
9156 | ||
e6408286 | 9157 | haiku*) |
9158 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9159 | link_all_deplibs=yes | |
9160 | ;; | |
9161 | ||
542f9784 | 9162 | interix[3-9]*) |
9163 | hardcode_direct=no | |
9164 | hardcode_shlibpath_var=no | |
9165 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9166 | export_dynamic_flag_spec='${wl}-E' | |
9167 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9168 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9169 | # default) and relocated if they conflict, which is a slow very memory | |
9170 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9171 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9172 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9173 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9174 | 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' | |
9175 | ;; | |
9176 | ||
9af964d4 | 9177 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 9178 | tmp_diet=no |
9179 | if test "$host_os" = linux-dietlibc; then | |
9180 | case $cc_basename in | |
9181 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9182 | esac | |
9183 | fi | |
9184 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9185 | && test "$tmp_diet" = no | |
9186 | then | |
4e8a08d4 | 9187 | tmp_addflag=' $pic_flag' |
6d873a38 | 9188 | tmp_sharedflag='-shared' |
542f9784 | 9189 | case $cc_basename,$host_cpu in |
9190 | pgcc*) # Portland Group C compiler | |
e6408286 | 9191 | 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' |
542f9784 | 9192 | tmp_addflag=' $pic_flag' |
9193 | ;; | |
e6408286 | 9194 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9195 | # Portland Group f77 and f90 compilers | |
9196 | 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' | |
542f9784 | 9197 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9198 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9199 | tmp_addflag=' -i_dynamic' ;; | |
9200 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9201 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9202 | ifc* | ifort*) # Intel Fortran compiler | |
9203 | tmp_addflag=' -nofor_main' ;; | |
6d873a38 | 9204 | lf95*) # Lahey Fortran 8.1 |
9205 | whole_archive_flag_spec= | |
9206 | tmp_sharedflag='--shared' ;; | |
e6408286 | 9207 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
6d873a38 | 9208 | tmp_sharedflag='-qmkshrobj' |
9209 | tmp_addflag= ;; | |
e6408286 | 9210 | nvcc*) # Cuda Compiler Driver 2.2 |
9211 | 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' | |
9212 | compiler_needs_object=yes | |
9213 | ;; | |
542f9784 | 9214 | esac |
9215 | case `$CC -V 2>&1 | sed 5q` in | |
9216 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 9217 | 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' |
542f9784 | 9218 | compiler_needs_object=yes |
9219 | tmp_sharedflag='-G' ;; | |
9220 | *Sun\ F*) # Sun Fortran 8.3 | |
9221 | tmp_sharedflag='-G' ;; | |
542f9784 | 9222 | esac |
9223 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9224 | ||
9225 | if test "x$supports_anon_versioning" = xyes; then | |
9226 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9227 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9228 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9229 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9230 | fi | |
6d873a38 | 9231 | |
9232 | case $cc_basename in | |
e6408286 | 9233 | xlf* | bgf* | bgxlf* | mpixlf*) |
6d873a38 | 9234 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9235 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9236 | hardcode_libdir_flag_spec= | |
9237 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9238 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9239 | if test "x$supports_anon_versioning" = xyes; then | |
9240 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9241 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9242 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9243 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9244 | fi | |
9245 | ;; | |
9246 | esac | |
542f9784 | 9247 | else |
9248 | ld_shlibs=no | |
9249 | fi | |
9250 | ;; | |
9251 | ||
9252 | netbsd*) | |
9253 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9254 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9255 | wlarc= | |
9256 | else | |
9257 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9258 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9259 | fi | |
9260 | ;; | |
9261 | ||
9262 | solaris*) | |
9263 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9264 | ld_shlibs=no | |
9265 | cat <<_LT_EOF 1>&2 | |
9266 | ||
9267 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9268 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9269 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9270 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9271 | *** your PATH or compiler configuration so that the native linker is | |
9272 | *** used, and then restart. | |
9273 | ||
9274 | _LT_EOF | |
9275 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9276 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9277 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9278 | else | |
9279 | ld_shlibs=no | |
9280 | fi | |
9281 | ;; | |
9282 | ||
9283 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9284 | case `$LD -v 2>&1` in | |
9285 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9286 | ld_shlibs=no | |
9287 | cat <<_LT_EOF 1>&2 | |
9288 | ||
9289 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9290 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9291 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9292 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9293 | *** your PATH or compiler configuration so that the native linker is | |
9294 | *** used, and then restart. | |
9295 | ||
9296 | _LT_EOF | |
9297 | ;; | |
9298 | *) | |
9299 | # For security reasons, it is highly recommended that you always | |
9300 | # use absolute paths for naming shared libraries, and exclude the | |
9301 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9302 | # requires that you compile everything twice, which is a pain. | |
9303 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9304 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9305 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9306 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9307 | else | |
9308 | ld_shlibs=no | |
9309 | fi | |
9310 | ;; | |
9311 | esac | |
9312 | ;; | |
9313 | ||
9314 | sunos4*) | |
9315 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9316 | wlarc= | |
9317 | hardcode_direct=yes | |
9318 | hardcode_shlibpath_var=no | |
9319 | ;; | |
9320 | ||
9321 | *) | |
9322 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9323 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9324 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9325 | else | |
9326 | ld_shlibs=no | |
9327 | fi | |
9328 | ;; | |
9329 | esac | |
9330 | ||
9331 | if test "$ld_shlibs" = no; then | |
9332 | runpath_var= | |
9333 | hardcode_libdir_flag_spec= | |
9334 | export_dynamic_flag_spec= | |
9335 | whole_archive_flag_spec= | |
9336 | fi | |
9337 | else | |
9338 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9339 | case $host_os in | |
9340 | aix3*) | |
9341 | allow_undefined_flag=unsupported | |
9342 | always_export_symbols=yes | |
9343 | 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' | |
9344 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9345 | # are no directories specified by -L. | |
9346 | hardcode_minus_L=yes | |
9347 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9348 | # Neither direct hardcoding nor static linking is supported with a | |
9349 | # broken collect2. | |
9350 | hardcode_direct=unsupported | |
9351 | fi | |
9352 | ;; | |
9353 | ||
c8db569e | 9354 | aix[4-9]*) |
542f9784 | 9355 | if test "$host_cpu" = ia64; then |
9356 | # On IA64, the linker does run time linking by default, so we don't | |
9357 | # have to do anything special. | |
9358 | aix_use_runtimelinking=no | |
9359 | exp_sym_flag='-Bexport' | |
9360 | no_entry_flag="" | |
9361 | else | |
9362 | # If we're using GNU nm, then we don't want the "-C" option. | |
9363 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 9364 | # Also, AIX nm treats weak defined symbols like other global |
9365 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 9366 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 9367 | 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' |
542f9784 | 9368 | else |
6090f29a | 9369 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
542f9784 | 9370 | fi |
9371 | aix_use_runtimelinking=no | |
9372 | ||
9373 | # Test if we are trying to use run time linking or normal | |
9374 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9375 | # need to do runtime linking. | |
c8db569e | 9376 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 9377 | for ld_flag in $LDFLAGS; do |
9378 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9379 | aix_use_runtimelinking=yes | |
9380 | break | |
9381 | fi | |
9382 | done | |
9383 | ;; | |
9384 | esac | |
9385 | ||
9386 | exp_sym_flag='-bexport' | |
9387 | no_entry_flag='-bnoentry' | |
9388 | fi | |
9389 | ||
9390 | # When large executables or shared objects are built, AIX ld can | |
9391 | # have problems creating the table of contents. If linking a library | |
9392 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9393 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9394 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9395 | ||
9396 | archive_cmds='' | |
9397 | hardcode_direct=yes | |
9398 | hardcode_direct_absolute=yes | |
9399 | hardcode_libdir_separator=':' | |
9400 | link_all_deplibs=yes | |
9401 | file_list_spec='${wl}-f,' | |
9402 | ||
9403 | if test "$GCC" = yes; then | |
9404 | case $host_os in aix4.[012]|aix4.[012].*) | |
9405 | # We only want to do this on AIX 4.2 and lower, the check | |
9406 | # below for broken collect2 doesn't work under 4.3+ | |
9407 | collect2name=`${CC} -print-prog-name=collect2` | |
9408 | if test -f "$collect2name" && | |
9409 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9410 | then | |
9411 | # We have reworked collect2 | |
9412 | : | |
9413 | else | |
9414 | # We have old collect2 | |
9415 | hardcode_direct=unsupported | |
9416 | # It fails to find uninstalled libraries when the uninstalled | |
9417 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9418 | # to unsupported forces relinking | |
9419 | hardcode_minus_L=yes | |
9420 | hardcode_libdir_flag_spec='-L$libdir' | |
9421 | hardcode_libdir_separator= | |
9422 | fi | |
9423 | ;; | |
9424 | esac | |
9425 | shared_flag='-shared' | |
9426 | if test "$aix_use_runtimelinking" = yes; then | |
9427 | shared_flag="$shared_flag "'${wl}-G' | |
9428 | fi | |
9429 | else | |
9430 | # not using gcc | |
9431 | if test "$host_cpu" = ia64; then | |
9432 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9433 | # chokes on -Wl,-G. The following line is correct: | |
9434 | shared_flag='-G' | |
9435 | else | |
9436 | if test "$aix_use_runtimelinking" = yes; then | |
9437 | shared_flag='${wl}-G' | |
9438 | else | |
9439 | shared_flag='${wl}-bM:SRE' | |
9440 | fi | |
9441 | fi | |
9442 | fi | |
9443 | ||
6d873a38 | 9444 | export_dynamic_flag_spec='${wl}-bexpall' |
542f9784 | 9445 | # It seems that -bexpall does not export symbols beginning with |
9446 | # underscore (_), so it is better to generate a list of symbols to export. | |
9447 | always_export_symbols=yes | |
9448 | if test "$aix_use_runtimelinking" = yes; then | |
9449 | # Warning - without using the other runtime loading flags (-brtl), | |
9450 | # -berok will link without error, but may produce a broken library. | |
9451 | allow_undefined_flag='-berok' | |
9452 | # Determine the default libpath from the value encoded in an | |
9453 | # empty executable. | |
cd9a469c | 9454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 9455 | /* end confdefs.h. */ |
9456 | ||
9457 | int | |
9458 | main () | |
9459 | { | |
9460 | ||
9461 | ; | |
9462 | return 0; | |
9463 | } | |
9464 | _ACEOF | |
cd9a469c | 9465 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 9466 | |
9467 | lt_aix_libpath_sed=' | |
9468 | /Import File Strings/,/^$/ { | |
9469 | /^0/ { | |
9470 | s/^0 *\(.*\)$/\1/ | |
9471 | p | |
9472 | } | |
9473 | }' | |
9474 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9475 | # Check for a 64-bit object if we didn't find anything. | |
9476 | if test -z "$aix_libpath"; then | |
9477 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9478 | fi | |
542f9784 | 9479 | fi |
cd9a469c | 9480 | rm -f core conftest.err conftest.$ac_objext \ |
9481 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 9482 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9483 | ||
9484 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 9485 | 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" |
542f9784 | 9486 | else |
9487 | if test "$host_cpu" = ia64; then | |
9488 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9489 | allow_undefined_flag="-z nodefs" | |
9490 | 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" | |
9491 | else | |
9492 | # Determine the default libpath from the value encoded in an | |
9493 | # empty executable. | |
cd9a469c | 9494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 9495 | /* end confdefs.h. */ |
9496 | ||
9497 | int | |
9498 | main () | |
9499 | { | |
9500 | ||
9501 | ; | |
9502 | return 0; | |
9503 | } | |
9504 | _ACEOF | |
cd9a469c | 9505 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 9506 | |
9507 | lt_aix_libpath_sed=' | |
9508 | /Import File Strings/,/^$/ { | |
9509 | /^0/ { | |
9510 | s/^0 *\(.*\)$/\1/ | |
9511 | p | |
9512 | } | |
9513 | }' | |
9514 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9515 | # Check for a 64-bit object if we didn't find anything. | |
9516 | if test -z "$aix_libpath"; then | |
9517 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9518 | fi | |
542f9784 | 9519 | fi |
cd9a469c | 9520 | rm -f core conftest.err conftest.$ac_objext \ |
9521 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 9522 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9523 | ||
9524 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9525 | # Warning - without using the other run time loading flags, | |
9526 | # -berok will link without error, but may produce a broken library. | |
9527 | no_undefined_flag=' ${wl}-bernotok' | |
9528 | allow_undefined_flag=' ${wl}-berok' | |
e6408286 | 9529 | if test "$with_gnu_ld" = yes; then |
9530 | # We only use this code for GNU lds that support --whole-archive. | |
9531 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9532 | else | |
9533 | # Exported symbols can be pulled into shared objects from archives | |
9534 | whole_archive_flag_spec='$convenience' | |
9535 | fi | |
542f9784 | 9536 | archive_cmds_need_lc=yes |
9537 | # This is similar to how AIX traditionally builds its shared libraries. | |
9538 | 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' | |
9539 | fi | |
9540 | fi | |
9541 | ;; | |
9542 | ||
9543 | amigaos*) | |
6d873a38 | 9544 | case $host_cpu in |
9545 | powerpc) | |
9546 | # see comment about AmigaOS4 .so support | |
9547 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9548 | archive_expsym_cmds='' | |
9549 | ;; | |
9550 | m68k) | |
9551 | 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)' | |
9552 | hardcode_libdir_flag_spec='-L$libdir' | |
9553 | hardcode_minus_L=yes | |
9554 | ;; | |
9555 | esac | |
542f9784 | 9556 | ;; |
9557 | ||
9558 | bsdi[45]*) | |
9559 | export_dynamic_flag_spec=-rdynamic | |
9560 | ;; | |
9561 | ||
6d873a38 | 9562 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 9563 | # When not using gcc, we currently assume that we are using |
9564 | # Microsoft Visual C++. | |
9565 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9566 | # no search path for DLLs. | |
9567 | hardcode_libdir_flag_spec=' ' | |
9568 | allow_undefined_flag=unsupported | |
9569 | # Tell ltmain to make .lib files, not .a files. | |
9570 | libext=lib | |
9571 | # Tell ltmain to make .dll files, not .so files. | |
9572 | shrext_cmds=".dll" | |
9573 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 9574 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 9575 | # The linker will automatically build a .lib file if we build a DLL. |
9576 | old_archive_from_new_cmds='true' | |
9577 | # FIXME: Should let the user specify the lib program. | |
9578 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9579 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9580 | enable_shared_with_static_runtimes=yes | |
9581 | ;; | |
9582 | ||
9583 | darwin* | rhapsody*) | |
542f9784 | 9584 | |
6d873a38 | 9585 | |
9586 | archive_cmds_need_lc=no | |
9587 | hardcode_direct=no | |
9588 | hardcode_automatic=yes | |
9589 | hardcode_shlibpath_var=unsupported | |
e6408286 | 9590 | if test "$lt_cv_ld_force_load" = "yes"; then |
9591 | 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\"`' | |
9592 | else | |
9593 | whole_archive_flag_spec='' | |
9594 | fi | |
6d873a38 | 9595 | link_all_deplibs=yes |
9596 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9597 | case $cc_basename in | |
9598 | ifort*) _lt_dar_can_shared=yes ;; | |
9599 | *) _lt_dar_can_shared=$GCC ;; | |
9600 | esac | |
9601 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 9602 | output_verbose_link_cmd=func_echo_all |
6d873a38 | 9603 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9604 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9605 | 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}" | |
9606 | 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}" | |
9607 | ||
9608 | else | |
9609 | ld_shlibs=no | |
9610 | fi | |
9611 | ||
542f9784 | 9612 | ;; |
9613 | ||
9614 | dgux*) | |
9615 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9616 | hardcode_libdir_flag_spec='-L$libdir' | |
9617 | hardcode_shlibpath_var=no | |
9618 | ;; | |
9619 | ||
542f9784 | 9620 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9621 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9622 | # does not break anything, and helps significantly (at the cost of a little | |
9623 | # extra space). | |
9624 | freebsd2.2*) | |
9625 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9626 | hardcode_libdir_flag_spec='-R$libdir' | |
9627 | hardcode_direct=yes | |
9628 | hardcode_shlibpath_var=no | |
9629 | ;; | |
9630 | ||
9631 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
30369aff | 9632 | freebsd2.*) |
542f9784 | 9633 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9634 | hardcode_direct=yes | |
9635 | hardcode_minus_L=yes | |
9636 | hardcode_shlibpath_var=no | |
9637 | ;; | |
9638 | ||
9639 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9640 | freebsd* | dragonfly*) | |
9641 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9642 | hardcode_libdir_flag_spec='-R$libdir' | |
9643 | hardcode_direct=yes | |
9644 | hardcode_shlibpath_var=no | |
9645 | ;; | |
9646 | ||
9647 | hpux9*) | |
9648 | if test "$GCC" = yes; then | |
9649 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9650 | else | |
9651 | 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' | |
9652 | fi | |
9653 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9654 | hardcode_libdir_separator=: | |
9655 | hardcode_direct=yes | |
9656 | ||
9657 | # hardcode_minus_L: Not really in the search PATH, | |
9658 | # but as the default location of the library. | |
9659 | hardcode_minus_L=yes | |
9660 | export_dynamic_flag_spec='${wl}-E' | |
9661 | ;; | |
9662 | ||
9663 | hpux10*) | |
e6408286 | 9664 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 9665 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9666 | else | |
9667 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9668 | fi | |
9669 | if test "$with_gnu_ld" = no; then | |
9670 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9671 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9672 | hardcode_libdir_separator=: | |
9673 | hardcode_direct=yes | |
9674 | hardcode_direct_absolute=yes | |
9675 | export_dynamic_flag_spec='${wl}-E' | |
9676 | # hardcode_minus_L: Not really in the search PATH, | |
9677 | # but as the default location of the library. | |
9678 | hardcode_minus_L=yes | |
9679 | fi | |
9680 | ;; | |
9681 | ||
9682 | hpux11*) | |
e6408286 | 9683 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 9684 | case $host_cpu in |
9685 | hppa*64*) | |
9686 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9687 | ;; | |
9688 | ia64*) | |
6d873a38 | 9689 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 9690 | ;; |
9691 | *) | |
9692 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9693 | ;; | |
9694 | esac | |
9695 | else | |
9696 | case $host_cpu in | |
9697 | hppa*64*) | |
9698 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9699 | ;; | |
9700 | ia64*) | |
9701 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9702 | ;; | |
9703 | *) | |
e6408286 | 9704 | |
9705 | # Older versions of the 11.00 compiler do not understand -b yet | |
9706 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9708 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
f00f02a3 | 9709 | if ${lt_cv_prog_compiler__b+:} false; then : |
e6408286 | 9710 | $as_echo_n "(cached) " >&6 |
9711 | else | |
9712 | lt_cv_prog_compiler__b=no | |
9713 | save_LDFLAGS="$LDFLAGS" | |
9714 | LDFLAGS="$LDFLAGS -b" | |
9715 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9716 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9717 | # The linker can only warn and ignore the option if not recognized | |
9718 | # So say no if there are warnings | |
9719 | if test -s conftest.err; then | |
9720 | # Append any errors to the config.log. | |
9721 | cat conftest.err 1>&5 | |
9722 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9723 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9724 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9725 | lt_cv_prog_compiler__b=yes | |
9726 | fi | |
9727 | else | |
9728 | lt_cv_prog_compiler__b=yes | |
9729 | fi | |
9730 | fi | |
9731 | $RM -r conftest* | |
9732 | LDFLAGS="$save_LDFLAGS" | |
9733 | ||
9734 | fi | |
9735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9736 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9737 | ||
9738 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9739 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9740 | else | |
9741 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9742 | fi | |
9743 | ||
542f9784 | 9744 | ;; |
9745 | esac | |
9746 | fi | |
9747 | if test "$with_gnu_ld" = no; then | |
9748 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9749 | hardcode_libdir_separator=: | |
9750 | ||
9751 | case $host_cpu in | |
9752 | hppa*64*|ia64*) | |
9753 | hardcode_direct=no | |
9754 | hardcode_shlibpath_var=no | |
9755 | ;; | |
9756 | *) | |
9757 | hardcode_direct=yes | |
9758 | hardcode_direct_absolute=yes | |
9759 | export_dynamic_flag_spec='${wl}-E' | |
9760 | ||
9761 | # hardcode_minus_L: Not really in the search PATH, | |
9762 | # but as the default location of the library. | |
9763 | hardcode_minus_L=yes | |
9764 | ;; | |
9765 | esac | |
9766 | fi | |
9767 | ;; | |
9768 | ||
9769 | irix5* | irix6* | nonstopux*) | |
9770 | if test "$GCC" = yes; then | |
e6408286 | 9771 | archive_cmds='$CC -shared $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' |
542f9784 | 9772 | # Try to use the -exported_symbol ld option, if it does not |
9773 | # work, assume that -exports_file does not work either and | |
9774 | # implicitly export all symbols. | |
9775 | save_LDFLAGS="$LDFLAGS" | |
9776 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
cd9a469c | 9777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9778 | /* end confdefs.h. */ | |
542f9784 | 9779 | int foo(void) {} |
9780 | _ACEOF | |
cd9a469c | 9781 | if ac_fn_c_try_link "$LINENO"; then : |
e6408286 | 9782 | archive_expsym_cmds='$CC -shared $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' |
542f9784 | 9783 | |
542f9784 | 9784 | fi |
cd9a469c | 9785 | rm -f core conftest.err conftest.$ac_objext \ |
9786 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 9787 | LDFLAGS="$save_LDFLAGS" |
9788 | else | |
e6408286 | 9789 | 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' |
9790 | 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' | |
542f9784 | 9791 | fi |
9792 | archive_cmds_need_lc='no' | |
9793 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9794 | hardcode_libdir_separator=: | |
9795 | inherit_rpath=yes | |
9796 | link_all_deplibs=yes | |
9797 | ;; | |
9798 | ||
9799 | netbsd*) | |
9800 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9801 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9802 | else | |
9803 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9804 | fi | |
9805 | hardcode_libdir_flag_spec='-R$libdir' | |
9806 | hardcode_direct=yes | |
9807 | hardcode_shlibpath_var=no | |
9808 | ;; | |
9809 | ||
9810 | newsos6) | |
9811 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9812 | hardcode_direct=yes | |
9813 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9814 | hardcode_libdir_separator=: | |
9815 | hardcode_shlibpath_var=no | |
9816 | ;; | |
9817 | ||
9818 | *nto* | *qnx*) | |
9819 | ;; | |
9820 | ||
9821 | openbsd*) | |
6d873a38 | 9822 | if test -f /usr/libexec/ld.so; then |
9823 | hardcode_direct=yes | |
9824 | hardcode_shlibpath_var=no | |
9825 | hardcode_direct_absolute=yes | |
9826 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 9827 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6d873a38 | 9828 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 9829 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6d873a38 | 9830 | export_dynamic_flag_spec='${wl}-E' |
9831 | else | |
9832 | case $host_os in | |
9833 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9834 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9835 | hardcode_libdir_flag_spec='-R$libdir' | |
9836 | ;; | |
9837 | *) | |
9838 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9839 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9840 | ;; | |
9841 | esac | |
9842 | fi | |
9843 | else | |
9844 | ld_shlibs=no | |
542f9784 | 9845 | fi |
9846 | ;; | |
9847 | ||
9848 | os2*) | |
9849 | hardcode_libdir_flag_spec='-L$libdir' | |
9850 | hardcode_minus_L=yes | |
9851 | allow_undefined_flag=unsupported | |
e6408286 | 9852 | 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' |
542f9784 | 9853 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9854 | ;; | |
9855 | ||
9856 | osf3*) | |
9857 | if test "$GCC" = yes; then | |
9858 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 9859 | 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' |
542f9784 | 9860 | else |
9861 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 9862 | 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' |
542f9784 | 9863 | fi |
9864 | archive_cmds_need_lc='no' | |
9865 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9866 | hardcode_libdir_separator=: | |
9867 | ;; | |
9868 | ||
9869 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9870 | if test "$GCC" = yes; then | |
9871 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 9872 | archive_cmds='$CC -shared${allow_undefined_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' |
542f9784 | 9873 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9874 | else | |
9875 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 9876 | 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' |
542f9784 | 9877 | 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~ |
e6408286 | 9878 | $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' |
542f9784 | 9879 | |
9880 | # Both c and cxx compiler support -rpath directly | |
9881 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9882 | fi | |
9883 | archive_cmds_need_lc='no' | |
9884 | hardcode_libdir_separator=: | |
9885 | ;; | |
9886 | ||
9887 | solaris*) | |
9888 | no_undefined_flag=' -z defs' | |
9889 | if test "$GCC" = yes; then | |
9890 | wlarc='${wl}' | |
9891 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9892 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9893 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9894 | else | |
9895 | case `$CC -V 2>&1` in | |
9896 | *"Compilers 5.0"*) | |
9897 | wlarc='' | |
9898 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9899 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9900 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9901 | ;; | |
9902 | *) | |
9903 | wlarc='${wl}' | |
9904 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9905 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9906 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9907 | ;; | |
9908 | esac | |
9909 | fi | |
9910 | hardcode_libdir_flag_spec='-R$libdir' | |
9911 | hardcode_shlibpath_var=no | |
9912 | case $host_os in | |
9913 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9914 | *) | |
9915 | # The compiler driver will combine and reorder linker options, | |
9916 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9917 | # but is careful enough not to reorder. | |
9918 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9919 | if test "$GCC" = yes; then | |
9920 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9921 | else | |
9922 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9923 | fi | |
9924 | ;; | |
9925 | esac | |
9926 | link_all_deplibs=yes | |
9927 | ;; | |
9928 | ||
9929 | sunos4*) | |
9930 | if test "x$host_vendor" = xsequent; then | |
9931 | # Use $CC to link under sequent, because it throws in some extra .o | |
9932 | # files that make .init and .fini sections work. | |
9933 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9934 | else | |
9935 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9936 | fi | |
9937 | hardcode_libdir_flag_spec='-L$libdir' | |
9938 | hardcode_direct=yes | |
9939 | hardcode_minus_L=yes | |
9940 | hardcode_shlibpath_var=no | |
9941 | ;; | |
9942 | ||
9943 | sysv4) | |
9944 | case $host_vendor in | |
9945 | sni) | |
9946 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9947 | hardcode_direct=yes # is this really true??? | |
9948 | ;; | |
9949 | siemens) | |
9950 | ## LD is ld it makes a PLAMLIB | |
9951 | ## CC just makes a GrossModule. | |
9952 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9953 | reload_cmds='$CC -r -o $output$reload_objs' | |
9954 | hardcode_direct=no | |
9955 | ;; | |
9956 | motorola) | |
9957 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9958 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9959 | ;; | |
9960 | esac | |
9961 | runpath_var='LD_RUN_PATH' | |
9962 | hardcode_shlibpath_var=no | |
9963 | ;; | |
9964 | ||
9965 | sysv4.3*) | |
9966 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9967 | hardcode_shlibpath_var=no | |
9968 | export_dynamic_flag_spec='-Bexport' | |
9969 | ;; | |
9970 | ||
9971 | sysv4*MP*) | |
9972 | if test -d /usr/nec; then | |
9973 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9974 | hardcode_shlibpath_var=no | |
9975 | runpath_var=LD_RUN_PATH | |
9976 | hardcode_runpath_var=yes | |
9977 | ld_shlibs=yes | |
9978 | fi | |
9979 | ;; | |
9980 | ||
9981 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9982 | no_undefined_flag='${wl}-z,text' | |
9983 | archive_cmds_need_lc=no | |
9984 | hardcode_shlibpath_var=no | |
9985 | runpath_var='LD_RUN_PATH' | |
9986 | ||
9987 | if test "$GCC" = yes; then | |
9988 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9989 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9990 | else | |
9991 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9992 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9993 | fi | |
9994 | ;; | |
9995 | ||
9996 | sysv5* | sco3.2v5* | sco5v6*) | |
9997 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9998 | # link with -lc, and that would cause any symbols used from libc to | |
9999 | # always be unresolved, which means just about no library would | |
10000 | # ever link correctly. If we're not using GNU ld we use -z text | |
10001 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10002 | # as -z defs. | |
10003 | no_undefined_flag='${wl}-z,text' | |
10004 | allow_undefined_flag='${wl}-z,nodefs' | |
10005 | archive_cmds_need_lc=no | |
10006 | hardcode_shlibpath_var=no | |
10007 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10008 | hardcode_libdir_separator=':' | |
10009 | link_all_deplibs=yes | |
10010 | export_dynamic_flag_spec='${wl}-Bexport' | |
10011 | runpath_var='LD_RUN_PATH' | |
10012 | ||
10013 | if test "$GCC" = yes; then | |
10014 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10015 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10016 | else | |
10017 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10018 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10019 | fi | |
10020 | ;; | |
10021 | ||
10022 | uts4*) | |
10023 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10024 | hardcode_libdir_flag_spec='-L$libdir' | |
10025 | hardcode_shlibpath_var=no | |
10026 | ;; | |
10027 | ||
10028 | *) | |
10029 | ld_shlibs=no | |
10030 | ;; | |
10031 | esac | |
10032 | ||
10033 | if test x$host_vendor = xsni; then | |
10034 | case $host in | |
10035 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10036 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10037 | ;; | |
10038 | esac | |
10039 | fi | |
10040 | fi | |
10041 | ||
cd9a469c | 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10043 | $as_echo "$ld_shlibs" >&6; } | |
542f9784 | 10044 | test "$ld_shlibs" = no && can_build_shared=no |
10045 | ||
10046 | with_gnu_ld=$with_gnu_ld | |
10047 | ||
10048 | ||
10049 | ||
10050 | ||
10051 | ||
10052 | ||
10053 | ||
10054 | ||
10055 | ||
10056 | ||
10057 | ||
10058 | ||
10059 | ||
10060 | ||
10061 | ||
10062 | # | |
10063 | # Do we need to explicitly link libc? | |
10064 | # | |
10065 | case "x$archive_cmds_need_lc" in | |
10066 | x|xyes) | |
10067 | # Assume -lc should be added | |
10068 | archive_cmds_need_lc=yes | |
10069 | ||
10070 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10071 | case $archive_cmds in | |
10072 | *'~'*) | |
10073 | # FIXME: we may have to deal with multi-command sequences. | |
10074 | ;; | |
10075 | '$CC '*) | |
10076 | # Test whether the compiler implicitly links with -lc since on some | |
10077 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10078 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10080 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
f00f02a3 | 10081 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
cd9a469c | 10082 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 10083 | else |
10084 | $RM conftest* | |
10085 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 10086 | |
cd9a469c | 10087 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 10088 | (eval $ac_compile) 2>&5 |
10089 | ac_status=$? | |
cd9a469c | 10090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10091 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 10092 | soname=conftest |
10093 | lib=conftest | |
10094 | libobjs=conftest.$ac_objext | |
10095 | deplibs= | |
10096 | wl=$lt_prog_compiler_wl | |
10097 | pic_flag=$lt_prog_compiler_pic | |
10098 | compiler_flags=-v | |
10099 | linker_flags=-v | |
10100 | verstring= | |
10101 | output_objdir=. | |
10102 | libname=conftest | |
10103 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10104 | allow_undefined_flag= | |
cd9a469c | 10105 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 10106 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10107 | ac_status=$? | |
cd9a469c | 10108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10109 | test $ac_status = 0; } | |
9e6fd619 | 10110 | then |
10111 | lt_cv_archive_cmds_need_lc=no | |
10112 | else | |
10113 | lt_cv_archive_cmds_need_lc=yes | |
10114 | fi | |
10115 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10116 | else | |
10117 | cat conftest.err 1>&5 | |
10118 | fi | |
10119 | $RM conftest* | |
10120 | ||
10121 | fi | |
cd9a469c | 10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10123 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9e6fd619 | 10124 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
542f9784 | 10125 | ;; |
10126 | esac | |
10127 | fi | |
10128 | ;; | |
10129 | esac | |
10130 | ||
10131 | ||
10132 | ||
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | ||
10146 | ||
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | ||
10165 | ||
10166 | ||
10167 | ||
10168 | ||
10169 | ||
10170 | ||
10171 | ||
10172 | ||
10173 | ||
10174 | ||
10175 | ||
10176 | ||
10177 | ||
10178 | ||
10179 | ||
10180 | ||
10181 | ||
10182 | ||
10183 | ||
10184 | ||
10185 | ||
10186 | ||
10187 | ||
10188 | ||
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
10194 | ||
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
10203 | ||
10204 | ||
10205 | ||
10206 | ||
10207 | ||
10208 | ||
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
10218 | ||
10219 | ||
10220 | ||
10221 | ||
10222 | ||
10223 | ||
10224 | ||
10225 | ||
10226 | ||
10227 | ||
10228 | ||
10229 | ||
10230 | ||
10231 | ||
10232 | ||
10233 | ||
10234 | ||
10235 | ||
10236 | ||
10237 | ||
10238 | ||
10239 | ||
10240 | ||
10241 | ||
10242 | ||
10243 | ||
10244 | ||
10245 | ||
10246 | ||
10247 | ||
10248 | ||
10249 | ||
10250 | ||
10251 | ||
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | ||
10259 | ||
10260 | ||
10261 | ||
10262 | ||
10263 | ||
10264 | ||
10265 | ||
10266 | ||
10267 | ||
10268 | ||
10269 | ||
10270 | ||
10271 | ||
10272 | ||
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
cd9a469c | 10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10288 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
6d873a38 | 10289 | |
10290 | if test "$GCC" = yes; then | |
542f9784 | 10291 | case $host_os in |
10292 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10293 | *) lt_awk_arg="/^libraries:/" ;; | |
10294 | esac | |
e6408286 | 10295 | case $host_os in |
10296 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10297 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10298 | esac | |
10299 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10300 | case $lt_search_path_spec in | |
10301 | *\;*) | |
542f9784 | 10302 | # if the path contains ";" then we assume it to be the separator |
10303 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10304 | # assumed that no part of a normal pathname contains ";" but that should | |
10305 | # okay in the real world where ";" in dirpaths is itself problematic. | |
e6408286 | 10306 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10307 | ;; | |
10308 | *) | |
10309 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10310 | ;; | |
10311 | esac | |
542f9784 | 10312 | # Ok, now we have the path, separated by spaces, we can step through it |
10313 | # and add multilib dir if necessary. | |
10314 | lt_tmp_lt_search_path_spec= | |
10315 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10316 | for lt_sys_path in $lt_search_path_spec; do | |
10317 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10318 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10319 | else | |
10320 | test -d "$lt_sys_path" && \ | |
10321 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10322 | fi | |
10323 | done | |
e6408286 | 10324 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
542f9784 | 10325 | BEGIN {RS=" "; FS="/|\n";} { |
10326 | lt_foo=""; | |
10327 | lt_count=0; | |
10328 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10329 | if ($lt_i != "" && $lt_i != ".") { | |
10330 | if ($lt_i == "..") { | |
10331 | lt_count++; | |
10332 | } else { | |
10333 | if (lt_count == 0) { | |
10334 | lt_foo="/" $lt_i lt_foo; | |
10335 | } else { | |
10336 | lt_count--; | |
10337 | } | |
10338 | } | |
10339 | } | |
10340 | } | |
10341 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10342 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10343 | }'` | |
e6408286 | 10344 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10345 | # for these hosts. | |
10346 | case $host_os in | |
10347 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10348 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10349 | esac | |
10350 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
542f9784 | 10351 | else |
10352 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10353 | fi | |
10354 | library_names_spec= | |
10355 | libname_spec='lib$name' | |
10356 | soname_spec= | |
10357 | shrext_cmds=".so" | |
10358 | postinstall_cmds= | |
10359 | postuninstall_cmds= | |
10360 | finish_cmds= | |
10361 | finish_eval= | |
10362 | shlibpath_var= | |
10363 | shlibpath_overrides_runpath=unknown | |
10364 | version_type=none | |
10365 | dynamic_linker="$host_os ld.so" | |
10366 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10367 | need_lib_prefix=unknown | |
10368 | hardcode_into_libs=no | |
10369 | ||
10370 | # when you set need_version to no, make sure it does not cause -set_version | |
10371 | # flags to be left without arguments | |
10372 | need_version=unknown | |
10373 | ||
10374 | case $host_os in | |
10375 | aix3*) | |
10376 | version_type=linux | |
10377 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10378 | shlibpath_var=LIBPATH | |
10379 | ||
10380 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10381 | soname_spec='${libname}${release}${shared_ext}$major' | |
10382 | ;; | |
10383 | ||
c8db569e | 10384 | aix[4-9]*) |
542f9784 | 10385 | version_type=linux |
10386 | need_lib_prefix=no | |
10387 | need_version=no | |
10388 | hardcode_into_libs=yes | |
10389 | if test "$host_cpu" = ia64; then | |
10390 | # AIX 5 supports IA64 | |
10391 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10392 | shlibpath_var=LD_LIBRARY_PATH | |
10393 | else | |
10394 | # With GCC up to 2.95.x, collect2 would create an import file | |
10395 | # for dependence libraries. The import file would start with | |
10396 | # the line `#! .'. This would cause the generated library to | |
10397 | # depend on `.', always an invalid library. This was fixed in | |
10398 | # development snapshots of GCC prior to 3.0. | |
10399 | case $host_os in | |
10400 | aix4 | aix4.[01] | aix4.[01].*) | |
10401 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10402 | echo ' yes ' | |
10403 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10404 | : | |
10405 | else | |
10406 | can_build_shared=no | |
10407 | fi | |
10408 | ;; | |
10409 | esac | |
10410 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10411 | # soname into executable. Probably we can add versioning support to | |
10412 | # collect2, so additional links can be useful in future. | |
10413 | if test "$aix_use_runtimelinking" = yes; then | |
10414 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10415 | # instead of lib<name>.a to let people know that these are not | |
10416 | # typical AIX shared libraries. | |
10417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10418 | else | |
10419 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10420 | # and later when we are not doing run time linking. | |
10421 | library_names_spec='${libname}${release}.a $libname.a' | |
10422 | soname_spec='${libname}${release}${shared_ext}$major' | |
10423 | fi | |
10424 | shlibpath_var=LIBPATH | |
10425 | fi | |
10426 | ;; | |
10427 | ||
10428 | amigaos*) | |
6d873a38 | 10429 | case $host_cpu in |
10430 | powerpc) | |
10431 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10432 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10434 | ;; | |
10435 | m68k) | |
542f9784 | 10436 | library_names_spec='$libname.ixlibrary $libname.a' |
10437 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 10438 | 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' |
6d873a38 | 10439 | ;; |
10440 | esac | |
542f9784 | 10441 | ;; |
10442 | ||
10443 | beos*) | |
10444 | library_names_spec='${libname}${shared_ext}' | |
10445 | dynamic_linker="$host_os ld.so" | |
10446 | shlibpath_var=LIBRARY_PATH | |
10447 | ;; | |
10448 | ||
10449 | bsdi[45]*) | |
10450 | version_type=linux | |
10451 | need_version=no | |
10452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10453 | soname_spec='${libname}${release}${shared_ext}$major' | |
10454 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10455 | shlibpath_var=LD_LIBRARY_PATH | |
10456 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10457 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10458 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10459 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10460 | # libtool to hard-code these into programs | |
10461 | ;; | |
10462 | ||
6d873a38 | 10463 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10464 | version_type=windows |
10465 | shrext_cmds=".dll" | |
10466 | need_version=no | |
10467 | need_lib_prefix=no | |
10468 | ||
6d873a38 | 10469 | case $GCC,$host_os in |
10470 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 10471 | library_names_spec='$libname.dll.a' |
10472 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10473 | postinstall_cmds='base_file=`basename \${file}`~ | |
10474 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10475 | dldir=$destdir/`dirname \$dlpath`~ | |
10476 | test -d \$dldir || mkdir -p \$dldir~ | |
10477 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10478 | chmod a+x \$dldir/$dlname~ | |
10479 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10480 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10481 | fi' | |
10482 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10483 | dlpath=$dir/\$dldll~ | |
10484 | $RM \$dlpath' | |
10485 | shlibpath_overrides_runpath=yes | |
10486 | ||
10487 | case $host_os in | |
10488 | cygwin*) | |
10489 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10490 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 10491 | |
10492 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
542f9784 | 10493 | ;; |
6d873a38 | 10494 | mingw* | cegcc*) |
542f9784 | 10495 | # MinGW DLLs use traditional 'lib' prefix |
10496 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 10497 | ;; |
10498 | pw32*) | |
10499 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10500 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10501 | ;; | |
10502 | esac | |
10503 | ;; | |
10504 | ||
10505 | *) | |
10506 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10507 | ;; | |
10508 | esac | |
10509 | dynamic_linker='Win32 ld.exe' | |
10510 | # FIXME: first we should search . and the directory the executable is in | |
10511 | shlibpath_var=PATH | |
10512 | ;; | |
10513 | ||
10514 | darwin* | rhapsody*) | |
10515 | dynamic_linker="$host_os dyld" | |
10516 | version_type=darwin | |
10517 | need_lib_prefix=no | |
10518 | need_version=no | |
10519 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10520 | soname_spec='${libname}${release}${major}$shared_ext' | |
10521 | shlibpath_overrides_runpath=yes | |
10522 | shlibpath_var=DYLD_LIBRARY_PATH | |
10523 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10524 | ||
10525 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10526 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10527 | ;; | |
10528 | ||
10529 | dgux*) | |
10530 | version_type=linux | |
10531 | need_lib_prefix=no | |
10532 | need_version=no | |
10533 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10534 | soname_spec='${libname}${release}${shared_ext}$major' | |
10535 | shlibpath_var=LD_LIBRARY_PATH | |
10536 | ;; | |
10537 | ||
542f9784 | 10538 | freebsd* | dragonfly*) |
10539 | # DragonFly does not have aout. When/if they implement a new | |
10540 | # versioning mechanism, adjust this. | |
10541 | if test -x /usr/bin/objformat; then | |
10542 | objformat=`/usr/bin/objformat` | |
10543 | else | |
10544 | case $host_os in | |
30369aff | 10545 | freebsd[23].*) objformat=aout ;; |
542f9784 | 10546 | *) objformat=elf ;; |
10547 | esac | |
10548 | fi | |
10549 | version_type=freebsd-$objformat | |
10550 | case $version_type in | |
10551 | freebsd-elf*) | |
10552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10553 | need_version=no | |
10554 | need_lib_prefix=no | |
10555 | ;; | |
10556 | freebsd-*) | |
10557 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10558 | need_version=yes | |
10559 | ;; | |
10560 | esac | |
10561 | shlibpath_var=LD_LIBRARY_PATH | |
10562 | case $host_os in | |
30369aff | 10563 | freebsd2.*) |
542f9784 | 10564 | shlibpath_overrides_runpath=yes |
10565 | ;; | |
10566 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10567 | shlibpath_overrides_runpath=yes | |
10568 | hardcode_into_libs=yes | |
10569 | ;; | |
10570 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10571 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10572 | shlibpath_overrides_runpath=no | |
10573 | hardcode_into_libs=yes | |
10574 | ;; | |
10575 | *) # from 4.6 on, and DragonFly | |
10576 | shlibpath_overrides_runpath=yes | |
10577 | hardcode_into_libs=yes | |
10578 | ;; | |
10579 | esac | |
10580 | ;; | |
10581 | ||
10582 | gnu*) | |
10583 | version_type=linux | |
10584 | need_lib_prefix=no | |
10585 | need_version=no | |
10586 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10587 | soname_spec='${libname}${release}${shared_ext}$major' | |
10588 | shlibpath_var=LD_LIBRARY_PATH | |
10589 | hardcode_into_libs=yes | |
10590 | ;; | |
10591 | ||
e6408286 | 10592 | haiku*) |
10593 | version_type=linux | |
10594 | need_lib_prefix=no | |
10595 | need_version=no | |
10596 | dynamic_linker="$host_os runtime_loader" | |
10597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10598 | soname_spec='${libname}${release}${shared_ext}$major' | |
10599 | shlibpath_var=LIBRARY_PATH | |
10600 | shlibpath_overrides_runpath=yes | |
10601 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10602 | hardcode_into_libs=yes | |
10603 | ;; | |
10604 | ||
542f9784 | 10605 | hpux9* | hpux10* | hpux11*) |
10606 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10607 | # link against other versions. | |
10608 | version_type=sunos | |
10609 | need_lib_prefix=no | |
10610 | need_version=no | |
10611 | case $host_cpu in | |
10612 | ia64*) | |
10613 | shrext_cmds='.so' | |
10614 | hardcode_into_libs=yes | |
10615 | dynamic_linker="$host_os dld.so" | |
10616 | shlibpath_var=LD_LIBRARY_PATH | |
10617 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10619 | soname_spec='${libname}${release}${shared_ext}$major' | |
10620 | if test "X$HPUX_IA64_MODE" = X32; then | |
10621 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10622 | else | |
10623 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10624 | fi | |
10625 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10626 | ;; | |
10627 | hppa*64*) | |
10628 | shrext_cmds='.sl' | |
10629 | hardcode_into_libs=yes | |
10630 | dynamic_linker="$host_os dld.sl" | |
10631 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10632 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10634 | soname_spec='${libname}${release}${shared_ext}$major' | |
10635 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10636 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10637 | ;; | |
10638 | *) | |
10639 | shrext_cmds='.sl' | |
10640 | dynamic_linker="$host_os dld.sl" | |
10641 | shlibpath_var=SHLIB_PATH | |
10642 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10644 | soname_spec='${libname}${release}${shared_ext}$major' | |
10645 | ;; | |
10646 | esac | |
e6408286 | 10647 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 10648 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 10649 | # or fails outright, so override atomically: |
10650 | install_override_mode=555 | |
542f9784 | 10651 | ;; |
10652 | ||
10653 | interix[3-9]*) | |
10654 | version_type=linux | |
10655 | need_lib_prefix=no | |
10656 | need_version=no | |
10657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10658 | soname_spec='${libname}${release}${shared_ext}$major' | |
10659 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10660 | shlibpath_var=LD_LIBRARY_PATH | |
10661 | shlibpath_overrides_runpath=no | |
10662 | hardcode_into_libs=yes | |
10663 | ;; | |
10664 | ||
10665 | irix5* | irix6* | nonstopux*) | |
10666 | case $host_os in | |
10667 | nonstopux*) version_type=nonstopux ;; | |
10668 | *) | |
10669 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10670 | version_type=linux | |
10671 | else | |
10672 | version_type=irix | |
10673 | fi ;; | |
10674 | esac | |
10675 | need_lib_prefix=no | |
10676 | need_version=no | |
10677 | soname_spec='${libname}${release}${shared_ext}$major' | |
10678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10679 | case $host_os in | |
10680 | irix5* | nonstopux*) | |
10681 | libsuff= shlibsuff= | |
10682 | ;; | |
10683 | *) | |
10684 | case $LD in # libtool.m4 will add one of these switches to LD | |
10685 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10686 | libsuff= shlibsuff= libmagic=32-bit;; | |
10687 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10688 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10689 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10690 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10691 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10692 | esac | |
10693 | ;; | |
10694 | esac | |
10695 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10696 | shlibpath_overrides_runpath=no | |
10697 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10698 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10699 | hardcode_into_libs=yes | |
10700 | ;; | |
10701 | ||
10702 | # No shared lib support for Linux oldld, aout, or coff. | |
10703 | linux*oldld* | linux*aout* | linux*coff*) | |
10704 | dynamic_linker=no | |
10705 | ;; | |
10706 | ||
10707 | # This must be Linux ELF. | |
9af964d4 | 10708 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 10709 | version_type=linux |
10710 | need_lib_prefix=no | |
10711 | need_version=no | |
10712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10713 | soname_spec='${libname}${release}${shared_ext}$major' | |
10714 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10715 | shlibpath_var=LD_LIBRARY_PATH | |
10716 | shlibpath_overrides_runpath=no | |
9e6fd619 | 10717 | |
542f9784 | 10718 | # Some binutils ld are patched to set DT_RUNPATH |
f00f02a3 | 10719 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
cd9a469c | 10720 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 10721 | else |
10722 | lt_cv_shlibpath_overrides_runpath=no | |
10723 | save_LDFLAGS=$LDFLAGS | |
10724 | save_libdir=$libdir | |
10725 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10726 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
cd9a469c | 10727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 10728 | /* end confdefs.h. */ |
10729 | ||
10730 | int | |
10731 | main () | |
10732 | { | |
10733 | ||
10734 | ; | |
10735 | return 0; | |
10736 | } | |
10737 | _ACEOF | |
cd9a469c | 10738 | if ac_fn_c_try_link "$LINENO"; then : |
10739 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 10740 | lt_cv_shlibpath_overrides_runpath=yes |
542f9784 | 10741 | fi |
542f9784 | 10742 | fi |
cd9a469c | 10743 | rm -f core conftest.err conftest.$ac_objext \ |
10744 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 10745 | LDFLAGS=$save_LDFLAGS |
10746 | libdir=$save_libdir | |
10747 | ||
10748 | fi | |
10749 | ||
10750 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 10751 | |
10752 | # This implies no fast_install, which is unacceptable. | |
10753 | # Some rework will be needed to allow for fast_install | |
10754 | # before this can be enabled. | |
10755 | hardcode_into_libs=yes | |
10756 | ||
10757 | # Append ld.so.conf contents to the search path | |
10758 | if test -f /etc/ld.so.conf; then | |
e6408286 | 10759 | 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' ' '` |
542f9784 | 10760 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10761 | fi | |
10762 | ||
10763 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10764 | # powerpc, because MkLinux only supported shared libraries with the | |
10765 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10766 | # most powerpc-linux boxes support dynamic linking these days and | |
10767 | # people can always --disable-shared, the test was removed, and we | |
10768 | # assume the GNU/Linux dynamic linker is in use. | |
10769 | dynamic_linker='GNU/Linux ld.so' | |
10770 | ;; | |
10771 | ||
10772 | netbsd*) | |
10773 | version_type=sunos | |
10774 | need_lib_prefix=no | |
10775 | need_version=no | |
10776 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10778 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10779 | dynamic_linker='NetBSD (a.out) ld.so' | |
10780 | else | |
10781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10782 | soname_spec='${libname}${release}${shared_ext}$major' | |
10783 | dynamic_linker='NetBSD ld.elf_so' | |
10784 | fi | |
10785 | shlibpath_var=LD_LIBRARY_PATH | |
10786 | shlibpath_overrides_runpath=yes | |
10787 | hardcode_into_libs=yes | |
10788 | ;; | |
10789 | ||
10790 | newsos6) | |
10791 | version_type=linux | |
10792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10793 | shlibpath_var=LD_LIBRARY_PATH | |
10794 | shlibpath_overrides_runpath=yes | |
10795 | ;; | |
10796 | ||
10797 | *nto* | *qnx*) | |
10798 | version_type=qnx | |
10799 | need_lib_prefix=no | |
10800 | need_version=no | |
10801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10802 | soname_spec='${libname}${release}${shared_ext}$major' | |
10803 | shlibpath_var=LD_LIBRARY_PATH | |
10804 | shlibpath_overrides_runpath=no | |
10805 | hardcode_into_libs=yes | |
10806 | dynamic_linker='ldqnx.so' | |
10807 | ;; | |
10808 | ||
10809 | openbsd*) | |
10810 | version_type=sunos | |
10811 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10812 | need_lib_prefix=no | |
10813 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10814 | case $host_os in | |
10815 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10816 | *) need_version=no ;; | |
10817 | esac | |
10818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10819 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10820 | shlibpath_var=LD_LIBRARY_PATH | |
10821 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10822 | case $host_os in | |
10823 | openbsd2.[89] | openbsd2.[89].*) | |
10824 | shlibpath_overrides_runpath=no | |
10825 | ;; | |
10826 | *) | |
10827 | shlibpath_overrides_runpath=yes | |
10828 | ;; | |
10829 | esac | |
10830 | else | |
10831 | shlibpath_overrides_runpath=yes | |
10832 | fi | |
10833 | ;; | |
10834 | ||
10835 | os2*) | |
10836 | libname_spec='$name' | |
10837 | shrext_cmds=".dll" | |
10838 | need_lib_prefix=no | |
10839 | library_names_spec='$libname${shared_ext} $libname.a' | |
10840 | dynamic_linker='OS/2 ld.exe' | |
10841 | shlibpath_var=LIBPATH | |
10842 | ;; | |
10843 | ||
10844 | osf3* | osf4* | osf5*) | |
10845 | version_type=osf | |
10846 | need_lib_prefix=no | |
10847 | need_version=no | |
10848 | soname_spec='${libname}${release}${shared_ext}$major' | |
10849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10850 | shlibpath_var=LD_LIBRARY_PATH | |
10851 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10852 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10853 | ;; | |
10854 | ||
10855 | rdos*) | |
10856 | dynamic_linker=no | |
10857 | ;; | |
10858 | ||
10859 | solaris*) | |
10860 | version_type=linux | |
10861 | need_lib_prefix=no | |
10862 | need_version=no | |
10863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10864 | soname_spec='${libname}${release}${shared_ext}$major' | |
10865 | shlibpath_var=LD_LIBRARY_PATH | |
10866 | shlibpath_overrides_runpath=yes | |
10867 | hardcode_into_libs=yes | |
10868 | # ldd complains unless libraries are executable | |
10869 | postinstall_cmds='chmod +x $lib' | |
10870 | ;; | |
10871 | ||
10872 | sunos4*) | |
10873 | version_type=sunos | |
10874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10875 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10876 | shlibpath_var=LD_LIBRARY_PATH | |
10877 | shlibpath_overrides_runpath=yes | |
10878 | if test "$with_gnu_ld" = yes; then | |
10879 | need_lib_prefix=no | |
10880 | fi | |
10881 | need_version=yes | |
10882 | ;; | |
10883 | ||
10884 | sysv4 | sysv4.3*) | |
10885 | version_type=linux | |
10886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10887 | soname_spec='${libname}${release}${shared_ext}$major' | |
10888 | shlibpath_var=LD_LIBRARY_PATH | |
10889 | case $host_vendor in | |
10890 | sni) | |
10891 | shlibpath_overrides_runpath=no | |
10892 | need_lib_prefix=no | |
10893 | runpath_var=LD_RUN_PATH | |
10894 | ;; | |
10895 | siemens) | |
10896 | need_lib_prefix=no | |
10897 | ;; | |
10898 | motorola) | |
10899 | need_lib_prefix=no | |
10900 | need_version=no | |
10901 | shlibpath_overrides_runpath=no | |
10902 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10903 | ;; | |
10904 | esac | |
10905 | ;; | |
10906 | ||
10907 | sysv4*MP*) | |
10908 | if test -d /usr/nec ;then | |
10909 | version_type=linux | |
10910 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10911 | soname_spec='$libname${shared_ext}.$major' | |
10912 | shlibpath_var=LD_LIBRARY_PATH | |
10913 | fi | |
10914 | ;; | |
10915 | ||
10916 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10917 | version_type=freebsd-elf | |
10918 | need_lib_prefix=no | |
10919 | need_version=no | |
10920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10921 | soname_spec='${libname}${release}${shared_ext}$major' | |
10922 | shlibpath_var=LD_LIBRARY_PATH | |
10923 | shlibpath_overrides_runpath=yes | |
10924 | hardcode_into_libs=yes | |
10925 | if test "$with_gnu_ld" = yes; then | |
10926 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10927 | else | |
10928 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10929 | case $host_os in | |
10930 | sco3.2v5*) | |
10931 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10932 | ;; | |
10933 | esac | |
10934 | fi | |
10935 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10936 | ;; | |
10937 | ||
10938 | tpf*) | |
10939 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10940 | version_type=linux | |
10941 | need_lib_prefix=no | |
10942 | need_version=no | |
6d873a38 | 10943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 10944 | shlibpath_var=LD_LIBRARY_PATH |
10945 | shlibpath_overrides_runpath=no | |
10946 | hardcode_into_libs=yes | |
10947 | ;; | |
10948 | ||
10949 | uts4*) | |
10950 | version_type=linux | |
10951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10952 | soname_spec='${libname}${release}${shared_ext}$major' | |
10953 | shlibpath_var=LD_LIBRARY_PATH | |
10954 | ;; | |
10955 | ||
10956 | *) | |
10957 | dynamic_linker=no | |
10958 | ;; | |
10959 | esac | |
cd9a469c | 10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10961 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 10962 | test "$dynamic_linker" = no && can_build_shared=no |
10963 | ||
10964 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10965 | if test "$GCC" = yes; then | |
10966 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10967 | fi | |
10968 | ||
6d873a38 | 10969 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10970 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10971 | fi | |
10972 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10973 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10974 | fi | |
10975 | ||
542f9784 | 10976 | |
10977 | ||
10978 | ||
10979 | ||
10980 | ||
10981 | ||
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | ||
10991 | ||
10992 | ||
10993 | ||
10994 | ||
10995 | ||
10996 | ||
10997 | ||
10998 | ||
10999 | ||
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | ||
11006 | ||
11007 | ||
11008 | ||
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | ||
11014 | ||
11015 | ||
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | ||
11055 | ||
e6408286 | 11056 | |
11057 | ||
11058 | ||
11059 | ||
11060 | ||
542f9784 | 11061 | |
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
cd9a469c | 11067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11068 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
542f9784 | 11069 | hardcode_action= |
11070 | if test -n "$hardcode_libdir_flag_spec" || | |
11071 | test -n "$runpath_var" || | |
11072 | test "X$hardcode_automatic" = "Xyes" ; then | |
11073 | ||
11074 | # We can hardcode non-existent directories. | |
11075 | if test "$hardcode_direct" != no && | |
11076 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11077 | # have to relink, otherwise we might link with an installed library | |
11078 | # when we should be linking with a yet-to-be-installed one | |
11079 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11080 | test "$hardcode_minus_L" != no; then | |
11081 | # Linking always hardcodes the temporary library directory. | |
11082 | hardcode_action=relink | |
11083 | else | |
11084 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11085 | hardcode_action=immediate | |
11086 | fi | |
11087 | else | |
11088 | # We cannot hardcode anything, or else we can only hardcode existing | |
11089 | # directories. | |
11090 | hardcode_action=unsupported | |
11091 | fi | |
cd9a469c | 11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11093 | $as_echo "$hardcode_action" >&6; } | |
542f9784 | 11094 | |
11095 | if test "$hardcode_action" = relink || | |
11096 | test "$inherit_rpath" = yes; then | |
11097 | # Fast installation is not supported | |
11098 | enable_fast_install=no | |
11099 | elif test "$shlibpath_overrides_runpath" = yes || | |
11100 | test "$enable_shared" = no; then | |
11101 | # Fast installation is not necessary | |
11102 | enable_fast_install=needless | |
11103 | fi | |
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | ||
11109 | ||
11110 | if test "x$enable_dlopen" != xyes; then | |
11111 | enable_dlopen=unknown | |
11112 | enable_dlopen_self=unknown | |
11113 | enable_dlopen_self_static=unknown | |
11114 | else | |
11115 | lt_cv_dlopen=no | |
11116 | lt_cv_dlopen_libs= | |
11117 | ||
11118 | case $host_os in | |
11119 | beos*) | |
11120 | lt_cv_dlopen="load_add_on" | |
11121 | lt_cv_dlopen_libs= | |
11122 | lt_cv_dlopen_self=yes | |
11123 | ;; | |
11124 | ||
6d873a38 | 11125 | mingw* | pw32* | cegcc*) |
542f9784 | 11126 | lt_cv_dlopen="LoadLibrary" |
11127 | lt_cv_dlopen_libs= | |
11128 | ;; | |
11129 | ||
11130 | cygwin*) | |
11131 | lt_cv_dlopen="dlopen" | |
11132 | lt_cv_dlopen_libs= | |
11133 | ;; | |
11134 | ||
11135 | darwin*) | |
11136 | # if libdl is installed we need to link against it | |
cd9a469c | 11137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11138 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f00f02a3 | 11139 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
cd9a469c | 11140 | $as_echo_n "(cached) " >&6 |
542f9784 | 11141 | else |
11142 | ac_check_lib_save_LIBS=$LIBS | |
11143 | LIBS="-ldl $LIBS" | |
cd9a469c | 11144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11145 | /* end confdefs.h. */ |
11146 | ||
cd9a469c | 11147 | /* Override any GCC internal prototype to avoid an error. |
11148 | Use char because int might match the return type of a GCC | |
11149 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 11150 | #ifdef __cplusplus |
11151 | extern "C" | |
11152 | #endif | |
542f9784 | 11153 | char dlopen (); |
11154 | int | |
11155 | main () | |
11156 | { | |
cd9a469c | 11157 | return dlopen (); |
542f9784 | 11158 | ; |
11159 | return 0; | |
11160 | } | |
11161 | _ACEOF | |
cd9a469c | 11162 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 11163 | ac_cv_lib_dl_dlopen=yes |
11164 | else | |
cd9a469c | 11165 | ac_cv_lib_dl_dlopen=no |
542f9784 | 11166 | fi |
cd9a469c | 11167 | rm -f core conftest.err conftest.$ac_objext \ |
11168 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11169 | LIBS=$ac_check_lib_save_LIBS |
11170 | fi | |
cd9a469c | 11171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11172 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
f00f02a3 | 11173 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
542f9784 | 11174 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11175 | else | |
11176 | ||
11177 | lt_cv_dlopen="dyld" | |
11178 | lt_cv_dlopen_libs= | |
11179 | lt_cv_dlopen_self=yes | |
11180 | ||
11181 | fi | |
11182 | ||
11183 | ;; | |
11184 | ||
11185 | *) | |
cd9a469c | 11186 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
f00f02a3 | 11187 | if test "x$ac_cv_func_shl_load" = xyes; then : |
542f9784 | 11188 | lt_cv_dlopen="shl_load" |
11189 | else | |
cd9a469c | 11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11191 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
f00f02a3 | 11192 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
cd9a469c | 11193 | $as_echo_n "(cached) " >&6 |
542f9784 | 11194 | else |
11195 | ac_check_lib_save_LIBS=$LIBS | |
11196 | LIBS="-ldld $LIBS" | |
cd9a469c | 11197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11198 | /* end confdefs.h. */ |
11199 | ||
cd9a469c | 11200 | /* Override any GCC internal prototype to avoid an error. |
11201 | Use char because int might match the return type of a GCC | |
11202 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 11203 | #ifdef __cplusplus |
11204 | extern "C" | |
11205 | #endif | |
542f9784 | 11206 | char shl_load (); |
11207 | int | |
11208 | main () | |
11209 | { | |
cd9a469c | 11210 | return shl_load (); |
542f9784 | 11211 | ; |
11212 | return 0; | |
11213 | } | |
11214 | _ACEOF | |
cd9a469c | 11215 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 11216 | ac_cv_lib_dld_shl_load=yes |
11217 | else | |
cd9a469c | 11218 | ac_cv_lib_dld_shl_load=no |
542f9784 | 11219 | fi |
cd9a469c | 11220 | rm -f core conftest.err conftest.$ac_objext \ |
11221 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11222 | LIBS=$ac_check_lib_save_LIBS |
11223 | fi | |
cd9a469c | 11224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11225 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
f00f02a3 | 11226 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
6d873a38 | 11227 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
542f9784 | 11228 | else |
cd9a469c | 11229 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
f00f02a3 | 11230 | if test "x$ac_cv_func_dlopen" = xyes; then : |
542f9784 | 11231 | lt_cv_dlopen="dlopen" |
11232 | else | |
cd9a469c | 11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11234 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f00f02a3 | 11235 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
cd9a469c | 11236 | $as_echo_n "(cached) " >&6 |
542f9784 | 11237 | else |
11238 | ac_check_lib_save_LIBS=$LIBS | |
11239 | LIBS="-ldl $LIBS" | |
cd9a469c | 11240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11241 | /* end confdefs.h. */ |
11242 | ||
cd9a469c | 11243 | /* Override any GCC internal prototype to avoid an error. |
11244 | Use char because int might match the return type of a GCC | |
11245 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 11246 | #ifdef __cplusplus |
11247 | extern "C" | |
11248 | #endif | |
542f9784 | 11249 | char dlopen (); |
11250 | int | |
11251 | main () | |
11252 | { | |
cd9a469c | 11253 | return dlopen (); |
542f9784 | 11254 | ; |
11255 | return 0; | |
11256 | } | |
11257 | _ACEOF | |
cd9a469c | 11258 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 11259 | ac_cv_lib_dl_dlopen=yes |
11260 | else | |
cd9a469c | 11261 | ac_cv_lib_dl_dlopen=no |
542f9784 | 11262 | fi |
cd9a469c | 11263 | rm -f core conftest.err conftest.$ac_objext \ |
11264 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11265 | LIBS=$ac_check_lib_save_LIBS |
11266 | fi | |
cd9a469c | 11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11268 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
f00f02a3 | 11269 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
542f9784 | 11270 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11271 | else | |
cd9a469c | 11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11273 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
f00f02a3 | 11274 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
cd9a469c | 11275 | $as_echo_n "(cached) " >&6 |
542f9784 | 11276 | else |
11277 | ac_check_lib_save_LIBS=$LIBS | |
11278 | LIBS="-lsvld $LIBS" | |
cd9a469c | 11279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11280 | /* end confdefs.h. */ |
11281 | ||
cd9a469c | 11282 | /* Override any GCC internal prototype to avoid an error. |
11283 | Use char because int might match the return type of a GCC | |
11284 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 11285 | #ifdef __cplusplus |
11286 | extern "C" | |
11287 | #endif | |
542f9784 | 11288 | char dlopen (); |
11289 | int | |
11290 | main () | |
11291 | { | |
cd9a469c | 11292 | return dlopen (); |
542f9784 | 11293 | ; |
11294 | return 0; | |
11295 | } | |
11296 | _ACEOF | |
cd9a469c | 11297 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 11298 | ac_cv_lib_svld_dlopen=yes |
11299 | else | |
cd9a469c | 11300 | ac_cv_lib_svld_dlopen=no |
542f9784 | 11301 | fi |
cd9a469c | 11302 | rm -f core conftest.err conftest.$ac_objext \ |
11303 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11304 | LIBS=$ac_check_lib_save_LIBS |
11305 | fi | |
cd9a469c | 11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11307 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
f00f02a3 | 11308 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
542f9784 | 11309 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11310 | else | |
cd9a469c | 11311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11312 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
f00f02a3 | 11313 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
cd9a469c | 11314 | $as_echo_n "(cached) " >&6 |
542f9784 | 11315 | else |
11316 | ac_check_lib_save_LIBS=$LIBS | |
11317 | LIBS="-ldld $LIBS" | |
cd9a469c | 11318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11319 | /* end confdefs.h. */ |
11320 | ||
cd9a469c | 11321 | /* Override any GCC internal prototype to avoid an error. |
11322 | Use char because int might match the return type of a GCC | |
11323 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 11324 | #ifdef __cplusplus |
11325 | extern "C" | |
11326 | #endif | |
542f9784 | 11327 | char dld_link (); |
11328 | int | |
11329 | main () | |
11330 | { | |
cd9a469c | 11331 | return dld_link (); |
542f9784 | 11332 | ; |
11333 | return 0; | |
11334 | } | |
11335 | _ACEOF | |
cd9a469c | 11336 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 11337 | ac_cv_lib_dld_dld_link=yes |
11338 | else | |
cd9a469c | 11339 | ac_cv_lib_dld_dld_link=no |
542f9784 | 11340 | fi |
cd9a469c | 11341 | rm -f core conftest.err conftest.$ac_objext \ |
11342 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11343 | LIBS=$ac_check_lib_save_LIBS |
11344 | fi | |
cd9a469c | 11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11346 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
f00f02a3 | 11347 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
6d873a38 | 11348 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
542f9784 | 11349 | fi |
11350 | ||
11351 | ||
11352 | fi | |
11353 | ||
11354 | ||
11355 | fi | |
11356 | ||
11357 | ||
11358 | fi | |
11359 | ||
11360 | ||
11361 | fi | |
11362 | ||
11363 | ||
11364 | fi | |
11365 | ||
11366 | ;; | |
11367 | esac | |
11368 | ||
11369 | if test "x$lt_cv_dlopen" != xno; then | |
11370 | enable_dlopen=yes | |
11371 | else | |
11372 | enable_dlopen=no | |
11373 | fi | |
11374 | ||
11375 | case $lt_cv_dlopen in | |
11376 | dlopen) | |
11377 | save_CPPFLAGS="$CPPFLAGS" | |
11378 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11379 | ||
11380 | save_LDFLAGS="$LDFLAGS" | |
11381 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11382 | ||
11383 | save_LIBS="$LIBS" | |
11384 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11385 | ||
cd9a469c | 11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11387 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
f00f02a3 | 11388 | if ${lt_cv_dlopen_self+:} false; then : |
cd9a469c | 11389 | $as_echo_n "(cached) " >&6 |
542f9784 | 11390 | else |
11391 | if test "$cross_compiling" = yes; then : | |
11392 | lt_cv_dlopen_self=cross | |
11393 | else | |
11394 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11395 | lt_status=$lt_dlunknown | |
11396 | cat > conftest.$ac_ext <<_LT_EOF | |
5c80018e | 11397 | #line 11397 "configure" |
542f9784 | 11398 | #include "confdefs.h" |
11399 | ||
11400 | #if HAVE_DLFCN_H | |
11401 | #include <dlfcn.h> | |
11402 | #endif | |
11403 | ||
11404 | #include <stdio.h> | |
11405 | ||
11406 | #ifdef RTLD_GLOBAL | |
11407 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11408 | #else | |
11409 | # ifdef DL_GLOBAL | |
11410 | # define LT_DLGLOBAL DL_GLOBAL | |
11411 | # else | |
11412 | # define LT_DLGLOBAL 0 | |
11413 | # endif | |
11414 | #endif | |
11415 | ||
11416 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11417 | find out it does not work in some platform. */ | |
11418 | #ifndef LT_DLLAZY_OR_NOW | |
11419 | # ifdef RTLD_LAZY | |
11420 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11421 | # else | |
11422 | # ifdef DL_LAZY | |
11423 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11424 | # else | |
11425 | # ifdef RTLD_NOW | |
11426 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11427 | # else | |
11428 | # ifdef DL_NOW | |
11429 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11430 | # else | |
11431 | # define LT_DLLAZY_OR_NOW 0 | |
11432 | # endif | |
11433 | # endif | |
11434 | # endif | |
11435 | # endif | |
11436 | #endif | |
11437 | ||
e6408286 | 11438 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11439 | correspondingly for the symbols needed. */ | |
11440 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11441 | void fnord () __attribute__((visibility("default"))); | |
11442 | #endif | |
11443 | ||
11444 | void fnord () { int i=42; } | |
542f9784 | 11445 | int main () |
11446 | { | |
11447 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11448 | int status = $lt_dlunknown; | |
11449 | ||
11450 | if (self) | |
11451 | { | |
11452 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 11453 | else |
11454 | { | |
11455 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11456 | else puts (dlerror ()); | |
11457 | } | |
542f9784 | 11458 | /* dlclose (self); */ |
11459 | } | |
11460 | else | |
11461 | puts (dlerror ()); | |
11462 | ||
6d873a38 | 11463 | return status; |
542f9784 | 11464 | } |
11465 | _LT_EOF | |
cd9a469c | 11466 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 11467 | (eval $ac_link) 2>&5 |
11468 | ac_status=$? | |
cd9a469c | 11469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11470 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 11471 | (./conftest; exit; ) >&5 2>/dev/null |
11472 | lt_status=$? | |
11473 | case x$lt_status in | |
11474 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11475 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11476 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11477 | esac | |
11478 | else : | |
11479 | # compilation failed | |
11480 | lt_cv_dlopen_self=no | |
11481 | fi | |
11482 | fi | |
11483 | rm -fr conftest* | |
11484 | ||
11485 | ||
11486 | fi | |
cd9a469c | 11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11488 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
542f9784 | 11489 | |
11490 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11491 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
cd9a469c | 11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11493 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
f00f02a3 | 11494 | if ${lt_cv_dlopen_self_static+:} false; then : |
cd9a469c | 11495 | $as_echo_n "(cached) " >&6 |
542f9784 | 11496 | else |
11497 | if test "$cross_compiling" = yes; then : | |
11498 | lt_cv_dlopen_self_static=cross | |
11499 | else | |
11500 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11501 | lt_status=$lt_dlunknown | |
11502 | cat > conftest.$ac_ext <<_LT_EOF | |
5c80018e | 11503 | #line 11503 "configure" |
542f9784 | 11504 | #include "confdefs.h" |
11505 | ||
11506 | #if HAVE_DLFCN_H | |
11507 | #include <dlfcn.h> | |
11508 | #endif | |
11509 | ||
11510 | #include <stdio.h> | |
11511 | ||
11512 | #ifdef RTLD_GLOBAL | |
11513 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11514 | #else | |
11515 | # ifdef DL_GLOBAL | |
11516 | # define LT_DLGLOBAL DL_GLOBAL | |
11517 | # else | |
11518 | # define LT_DLGLOBAL 0 | |
11519 | # endif | |
11520 | #endif | |
11521 | ||
11522 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11523 | find out it does not work in some platform. */ | |
11524 | #ifndef LT_DLLAZY_OR_NOW | |
11525 | # ifdef RTLD_LAZY | |
11526 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11527 | # else | |
11528 | # ifdef DL_LAZY | |
11529 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11530 | # else | |
11531 | # ifdef RTLD_NOW | |
11532 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11533 | # else | |
11534 | # ifdef DL_NOW | |
11535 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11536 | # else | |
11537 | # define LT_DLLAZY_OR_NOW 0 | |
11538 | # endif | |
11539 | # endif | |
11540 | # endif | |
11541 | # endif | |
11542 | #endif | |
11543 | ||
e6408286 | 11544 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11545 | correspondingly for the symbols needed. */ | |
11546 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11547 | void fnord () __attribute__((visibility("default"))); | |
11548 | #endif | |
11549 | ||
11550 | void fnord () { int i=42; } | |
542f9784 | 11551 | int main () |
11552 | { | |
11553 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11554 | int status = $lt_dlunknown; | |
11555 | ||
11556 | if (self) | |
11557 | { | |
11558 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 11559 | else |
11560 | { | |
11561 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11562 | else puts (dlerror ()); | |
11563 | } | |
542f9784 | 11564 | /* dlclose (self); */ |
11565 | } | |
11566 | else | |
11567 | puts (dlerror ()); | |
11568 | ||
6d873a38 | 11569 | return status; |
542f9784 | 11570 | } |
11571 | _LT_EOF | |
cd9a469c | 11572 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 11573 | (eval $ac_link) 2>&5 |
11574 | ac_status=$? | |
cd9a469c | 11575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11576 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 11577 | (./conftest; exit; ) >&5 2>/dev/null |
11578 | lt_status=$? | |
11579 | case x$lt_status in | |
11580 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11581 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11582 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11583 | esac | |
11584 | else : | |
11585 | # compilation failed | |
11586 | lt_cv_dlopen_self_static=no | |
11587 | fi | |
11588 | fi | |
11589 | rm -fr conftest* | |
11590 | ||
11591 | ||
11592 | fi | |
cd9a469c | 11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11594 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
542f9784 | 11595 | fi |
11596 | ||
11597 | CPPFLAGS="$save_CPPFLAGS" | |
11598 | LDFLAGS="$save_LDFLAGS" | |
11599 | LIBS="$save_LIBS" | |
11600 | ;; | |
11601 | esac | |
11602 | ||
11603 | case $lt_cv_dlopen_self in | |
11604 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11605 | *) enable_dlopen_self=unknown ;; | |
11606 | esac | |
11607 | ||
11608 | case $lt_cv_dlopen_self_static in | |
11609 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11610 | *) enable_dlopen_self_static=unknown ;; | |
11611 | esac | |
11612 | fi | |
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | striplib= | |
11631 | old_striplib= | |
cd9a469c | 11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11633 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
542f9784 | 11634 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11635 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11636 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
cd9a469c | 11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11638 | $as_echo "yes" >&6; } | |
542f9784 | 11639 | else |
11640 | # FIXME - insert some real tests, host_os isn't really good enough | |
11641 | case $host_os in | |
11642 | darwin*) | |
11643 | if test -n "$STRIP" ; then | |
11644 | striplib="$STRIP -x" | |
11645 | old_striplib="$STRIP -S" | |
cd9a469c | 11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11647 | $as_echo "yes" >&6; } | |
542f9784 | 11648 | else |
cd9a469c | 11649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11650 | $as_echo "no" >&6; } | |
542f9784 | 11651 | fi |
11652 | ;; | |
11653 | *) | |
cd9a469c | 11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11655 | $as_echo "no" >&6; } | |
542f9784 | 11656 | ;; |
11657 | esac | |
11658 | fi | |
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | # Report which library types will actually be built | |
cd9a469c | 11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11673 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11675 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 11676 | |
cd9a469c | 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11678 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
542f9784 | 11679 | test "$can_build_shared" = "no" && enable_shared=no |
11680 | ||
11681 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11682 | # are all built from PIC. | |
11683 | case $host_os in | |
11684 | aix3*) | |
11685 | test "$enable_shared" = yes && enable_static=no | |
11686 | if test -n "$RANLIB"; then | |
11687 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11688 | postinstall_cmds='$RANLIB $lib' | |
11689 | fi | |
11690 | ;; | |
11691 | ||
c8db569e | 11692 | aix[4-9]*) |
542f9784 | 11693 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11694 | test "$enable_shared" = yes && enable_static=no | |
11695 | fi | |
11696 | ;; | |
11697 | esac | |
cd9a469c | 11698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11699 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 11700 | |
cd9a469c | 11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11702 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
542f9784 | 11703 | # Make sure either enable_shared or enable_static is yes. |
11704 | test "$enable_shared" = yes || enable_static=yes | |
cd9a469c | 11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11706 | $as_echo "$enable_static" >&6; } | |
542f9784 | 11707 | |
11708 | ||
11709 | ||
11710 | ||
11711 | fi | |
11712 | ac_ext=c | |
11713 | ac_cpp='$CPP $CPPFLAGS' | |
11714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11717 | ||
11718 | CC="$lt_save_CC" | |
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | ||
11727 | ||
11728 | ||
11729 | ||
11730 | ||
11731 | ||
cd9a469c | 11732 | ac_config_commands="$ac_config_commands libtool" |
542f9784 | 11733 | |
11734 | ||
11735 | ||
11736 | ||
11737 | # Only expand once: | |
11738 | ||
11739 | ||
11740 | ||
11741 | ||
11742 | ||
8c35d268 | 11743 | case $host in |
11744 | *-cygwin* | *-mingw*) | |
11745 | # 'host' will be top-level target in the case of a target lib, | |
11746 | # we must compare to with_cross_host to decide if this is a native | |
11747 | # or cross-compiler and select where to install dlls appropriately. | |
11748 | if test -n "$with_cross_host" && | |
11749 | test x"$with_cross_host" != x"no"; then | |
11750 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
11751 | else | |
11752 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
11753 | fi | |
11754 | ;; | |
11755 | *) | |
11756 | lt_host_flags= | |
11757 | ;; | |
11758 | esac | |
11759 | ||
11760 | ||
11761 | ||
11762 | ||
11763 | ||
11764 | ||
cd9a469c | 11765 | |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11767 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11768 | # Check whether --enable-maintainer-mode was given. | |
11769 | if test "${enable_maintainer_mode+set}" = set; then : | |
11770 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
542f9784 | 11771 | else |
11772 | USE_MAINTAINER_MODE=no | |
cd9a469c | 11773 | fi |
542f9784 | 11774 | |
cd9a469c | 11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
11776 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11777 | if test $USE_MAINTAINER_MODE = yes; then | |
542f9784 | 11778 | MAINTAINER_MODE_TRUE= |
11779 | MAINTAINER_MODE_FALSE='#' | |
11780 | else | |
11781 | MAINTAINER_MODE_TRUE='#' | |
11782 | MAINTAINER_MODE_FALSE= | |
11783 | fi | |
11784 | ||
11785 | MAINT=$MAINTAINER_MODE_TRUE | |
11786 | ||
11787 | ||
11788 | ||
87969c8c | 11789 | # Create a spec file, so that compile/link tests don't fail |
11790 | test -f libgfortran.spec || touch libgfortran.spec | |
11791 | FCFLAGS="$FCFLAGS -L." | |
11792 | ||
542f9784 | 11793 | # We need gfortran to compile parts of the library |
11794 | # We can't use AC_PROG_FC because it expects a fully working gfortran. | |
11795 | #AC_PROG_FC(gfortran) | |
00b1a0e2 | 11796 | case `echo $GFORTRAN` in |
11797 | -* | no* ) | |
11798 | FC=no ;; | |
11799 | *) | |
a5e97ab0 | 11800 | set dummy $GFORTRAN; ac_word=$2 |
11801 | if test -x "$ac_word"; then | |
647ee0e4 | 11802 | FC="$GFORTRAN" |
11803 | else | |
11804 | FC=no | |
11805 | fi ;; | |
00b1a0e2 | 11806 | esac |
cd9a469c | 11807 | ac_ext=${ac_fc_srcext-f} |
11808 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
11809 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 11810 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
11811 | if test -n "$ac_tool_prefix"; then | |
11812 | for ac_prog in gfortran | |
11813 | do | |
11814 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11815 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11817 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11818 | if ${ac_cv_prog_FC+:} false; then : |
cd9a469c | 11819 | $as_echo_n "(cached) " >&6 |
542f9784 | 11820 | else |
11821 | if test -n "$FC"; then | |
11822 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
11823 | else | |
11824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11825 | for as_dir in $PATH | |
11826 | do | |
11827 | IFS=$as_save_IFS | |
11828 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11829 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 11831 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
cd9a469c | 11832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 11833 | break 2 |
11834 | fi | |
11835 | done | |
cd9a469c | 11836 | done |
11837 | IFS=$as_save_IFS | |
542f9784 | 11838 | |
11839 | fi | |
11840 | fi | |
11841 | FC=$ac_cv_prog_FC | |
11842 | if test -n "$FC"; then | |
cd9a469c | 11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
11844 | $as_echo "$FC" >&6; } | |
542f9784 | 11845 | else |
cd9a469c | 11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11847 | $as_echo "no" >&6; } | |
542f9784 | 11848 | fi |
11849 | ||
cd9a469c | 11850 | |
542f9784 | 11851 | test -n "$FC" && break |
11852 | done | |
11853 | fi | |
11854 | if test -z "$FC"; then | |
11855 | ac_ct_FC=$FC | |
11856 | for ac_prog in gfortran | |
11857 | do | |
11858 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11859 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11861 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11862 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
cd9a469c | 11863 | $as_echo_n "(cached) " >&6 |
542f9784 | 11864 | else |
11865 | if test -n "$ac_ct_FC"; then | |
11866 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
11867 | else | |
11868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11869 | for as_dir in $PATH | |
11870 | do | |
11871 | IFS=$as_save_IFS | |
11872 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11873 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11874 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 11875 | ac_cv_prog_ac_ct_FC="$ac_prog" |
cd9a469c | 11876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 11877 | break 2 |
11878 | fi | |
11879 | done | |
cd9a469c | 11880 | done |
11881 | IFS=$as_save_IFS | |
542f9784 | 11882 | |
11883 | fi | |
11884 | fi | |
11885 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
11886 | if test -n "$ac_ct_FC"; then | |
cd9a469c | 11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
11888 | $as_echo "$ac_ct_FC" >&6; } | |
542f9784 | 11889 | else |
cd9a469c | 11890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11891 | $as_echo "no" >&6; } | |
542f9784 | 11892 | fi |
11893 | ||
cd9a469c | 11894 | |
542f9784 | 11895 | test -n "$ac_ct_FC" && break |
11896 | done | |
11897 | ||
cd9a469c | 11898 | if test "x$ac_ct_FC" = x; then |
11899 | FC="" | |
11900 | else | |
11901 | case $cross_compiling:$ac_tool_warned in | |
11902 | yes:) | |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11904 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11905 | ac_tool_warned=yes ;; | |
11906 | esac | |
11907 | FC=$ac_ct_FC | |
11908 | fi | |
542f9784 | 11909 | fi |
11910 | ||
11911 | ||
11912 | # Provide some information about the compiler. | |
cd9a469c | 11913 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
11914 | set X $ac_compile | |
11915 | ac_compiler=$2 | |
11916 | for ac_option in --version -v -V -qversion; do | |
11917 | { { ac_try="$ac_compiler $ac_option >&5" | |
11918 | case "(($ac_try" in | |
11919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11920 | *) ac_try_echo=$ac_try;; | |
11921 | esac | |
11922 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11923 | $as_echo "$ac_try_echo"; } >&5 | |
11924 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
542f9784 | 11925 | ac_status=$? |
cd9a469c | 11926 | if test -s conftest.err; then |
11927 | sed '10a\ | |
11928 | ... rest of stderr output deleted ... | |
11929 | 10q' conftest.err >conftest.er1 | |
11930 | cat conftest.er1 >&5 | |
cd9a469c | 11931 | fi |
f00f02a3 | 11932 | rm -f conftest.er1 conftest.err |
cd9a469c | 11933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11934 | test $ac_status = 0; } | |
11935 | done | |
542f9784 | 11936 | rm -f a.out |
11937 | ||
11938 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
11939 | # input file. (Note that this only needs to work for GNU compilers.) | |
11940 | ac_save_ext=$ac_ext | |
11941 | ac_ext=F | |
cd9a469c | 11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
11943 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
f00f02a3 | 11944 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
cd9a469c | 11945 | $as_echo_n "(cached) " >&6 |
542f9784 | 11946 | else |
cd9a469c | 11947 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 11948 | program main |
11949 | #ifndef __GNUC__ | |
11950 | choke me | |
11951 | #endif | |
11952 | ||
11953 | end | |
11954 | _ACEOF | |
cd9a469c | 11955 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 11956 | ac_compiler_gnu=yes |
11957 | else | |
cd9a469c | 11958 | ac_compiler_gnu=no |
542f9784 | 11959 | fi |
cd9a469c | 11960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 11961 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
11962 | ||
11963 | fi | |
cd9a469c | 11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
11965 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
542f9784 | 11966 | ac_ext=$ac_save_ext |
cd9a469c | 11967 | ac_test_FCFLAGS=${FCFLAGS+set} |
11968 | ac_save_FCFLAGS=$FCFLAGS | |
542f9784 | 11969 | FCFLAGS= |
cd9a469c | 11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
11971 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
f00f02a3 | 11972 | if ${ac_cv_prog_fc_g+:} false; then : |
cd9a469c | 11973 | $as_echo_n "(cached) " >&6 |
542f9784 | 11974 | else |
11975 | FCFLAGS=-g | |
cd9a469c | 11976 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 11977 | program main |
11978 | ||
11979 | end | |
11980 | _ACEOF | |
cd9a469c | 11981 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 11982 | ac_cv_prog_fc_g=yes |
11983 | else | |
cd9a469c | 11984 | ac_cv_prog_fc_g=no |
542f9784 | 11985 | fi |
cd9a469c | 11986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 11987 | |
11988 | fi | |
cd9a469c | 11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
11990 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
11991 | if test "$ac_test_FCFLAGS" = set; then | |
11992 | FCFLAGS=$ac_save_FCFLAGS | |
542f9784 | 11993 | elif test $ac_cv_prog_fc_g = yes; then |
11994 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11995 | FCFLAGS="-g -O2" | |
11996 | else | |
11997 | FCFLAGS="-g" | |
11998 | fi | |
11999 | else | |
12000 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
12001 | FCFLAGS="-O2" | |
12002 | else | |
12003 | FCFLAGS= | |
12004 | fi | |
12005 | fi | |
12006 | ||
f00f02a3 | 12007 | if test $ac_compiler_gnu = yes; then |
12008 | GFC=yes | |
12009 | else | |
12010 | GFC= | |
12011 | fi | |
542f9784 | 12012 | ac_ext=c |
12013 | ac_cpp='$CPP $CPPFLAGS' | |
12014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12017 | ||
e6408286 | 12018 | ac_ext=${ac_fc_srcext-f} |
cd9a469c | 12019 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
12020 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 12021 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
542f9784 | 12022 | |
542f9784 | 12023 | |
12024 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
12025 | _lt_disable_FC=yes | |
12026 | fi | |
12027 | ||
542f9784 | 12028 | archive_cmds_need_lc_FC=no |
12029 | allow_undefined_flag_FC= | |
12030 | always_export_symbols_FC=no | |
12031 | archive_expsym_cmds_FC= | |
12032 | export_dynamic_flag_spec_FC= | |
12033 | hardcode_direct_FC=no | |
12034 | hardcode_direct_absolute_FC=no | |
12035 | hardcode_libdir_flag_spec_FC= | |
12036 | hardcode_libdir_flag_spec_ld_FC= | |
12037 | hardcode_libdir_separator_FC= | |
12038 | hardcode_minus_L_FC=no | |
12039 | hardcode_automatic_FC=no | |
12040 | inherit_rpath_FC=no | |
12041 | module_cmds_FC= | |
12042 | module_expsym_cmds_FC= | |
12043 | link_all_deplibs_FC=unknown | |
12044 | old_archive_cmds_FC=$old_archive_cmds | |
e6408286 | 12045 | reload_flag_FC=$reload_flag |
12046 | reload_cmds_FC=$reload_cmds | |
542f9784 | 12047 | no_undefined_flag_FC= |
12048 | whole_archive_flag_spec_FC= | |
12049 | enable_shared_with_static_runtimes_FC=no | |
12050 | ||
12051 | # Source file extension for fc test sources. | |
12052 | ac_ext=${ac_fc_srcext-f} | |
12053 | ||
12054 | # Object file extension for compiled fc test sources. | |
12055 | objext=o | |
12056 | objext_FC=$objext | |
12057 | ||
12058 | # No sense in running all these tests if we already determined that | |
12059 | # the FC compiler isn't working. Some variables (like enable_shared) | |
12060 | # are currently assumed to apply to all compilers on this platform, | |
12061 | # and will be corrupted by setting them based on a non-working compiler. | |
12062 | if test "$_lt_disable_FC" != yes; then | |
12063 | # Code to be used in simple compile tests | |
12064 | lt_simple_compile_test_code="\ | |
12065 | subroutine t | |
12066 | return | |
12067 | end | |
12068 | " | |
12069 | ||
12070 | # Code to be used in simple link tests | |
12071 | lt_simple_link_test_code="\ | |
12072 | program t | |
12073 | end | |
12074 | " | |
12075 | ||
12076 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12077 | ||
12078 | ||
12079 | ||
12080 | ||
12081 | ||
12082 | ||
12083 | # If no C compiler was specified, use CC. | |
12084 | LTCC=${LTCC-"$CC"} | |
12085 | ||
12086 | # If no C compiler flags were specified, use CFLAGS. | |
12087 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12088 | ||
12089 | # Allow CC to be a program name with arguments. | |
12090 | compiler=$CC | |
12091 | ||
12092 | ||
12093 | # save warnings/boilerplate of simple test code | |
12094 | ac_outfile=conftest.$ac_objext | |
12095 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12096 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12097 | _lt_compiler_boilerplate=`cat conftest.err` | |
12098 | $RM conftest* | |
12099 | ||
12100 | ac_outfile=conftest.$ac_objext | |
12101 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12102 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12103 | _lt_linker_boilerplate=`cat conftest.err` | |
6d873a38 | 12104 | $RM -r conftest* |
542f9784 | 12105 | |
12106 | ||
12107 | # Allow CC to be a program name with arguments. | |
12108 | lt_save_CC="$CC" | |
6d873a38 | 12109 | lt_save_GCC=$GCC |
542f9784 | 12110 | CC=${FC-"f95"} |
12111 | compiler=$CC | |
6d873a38 | 12112 | GCC=$ac_cv_fc_compiler_gnu |
12113 | ||
542f9784 | 12114 | compiler_FC=$CC |
12115 | for cc_temp in $compiler""; do | |
12116 | case $cc_temp in | |
12117 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12118 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12119 | \-*) ;; | |
12120 | *) break;; | |
12121 | esac | |
12122 | done | |
e6408286 | 12123 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 12124 | |
12125 | ||
12126 | if test -n "$compiler"; then | |
cd9a469c | 12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12128 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12130 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 12131 | |
cd9a469c | 12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12133 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
542f9784 | 12134 | test "$can_build_shared" = "no" && enable_shared=no |
12135 | ||
12136 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12137 | # are all built from PIC. | |
12138 | case $host_os in | |
12139 | aix3*) | |
12140 | test "$enable_shared" = yes && enable_static=no | |
12141 | if test -n "$RANLIB"; then | |
12142 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12143 | postinstall_cmds='$RANLIB $lib' | |
12144 | fi | |
12145 | ;; | |
c8db569e | 12146 | aix[4-9]*) |
542f9784 | 12147 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
12148 | test "$enable_shared" = yes && enable_static=no | |
12149 | fi | |
12150 | ;; | |
12151 | esac | |
cd9a469c | 12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12153 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 12154 | |
cd9a469c | 12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12156 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
542f9784 | 12157 | # Make sure either enable_shared or enable_static is yes. |
12158 | test "$enable_shared" = yes || enable_static=yes | |
cd9a469c | 12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12160 | $as_echo "$enable_static" >&6; } | |
542f9784 | 12161 | |
12162 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
12163 | LD_FC="$LD" | |
12164 | ||
12165 | ## CAVEAT EMPTOR: | |
12166 | ## There is no encapsulation within the following macros, do not change | |
12167 | ## the running order or otherwise move them around unless you know exactly | |
12168 | ## what you are doing... | |
12169 | # Dependencies to place before and after the object being linked: | |
12170 | predep_objects_FC= | |
12171 | postdep_objects_FC= | |
12172 | predeps_FC= | |
12173 | postdeps_FC= | |
12174 | compiler_lib_search_path_FC= | |
12175 | ||
12176 | cat > conftest.$ac_ext <<_LT_EOF | |
12177 | subroutine foo | |
12178 | implicit none | |
12179 | integer a | |
12180 | a=0 | |
12181 | return | |
12182 | end | |
12183 | _LT_EOF | |
12184 | ||
cd9a469c | 12185 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 12186 | (eval $ac_compile) 2>&5 |
12187 | ac_status=$? | |
cd9a469c | 12188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12189 | test $ac_status = 0; }; then | |
542f9784 | 12190 | # Parse the compiler output and extract the necessary |
12191 | # objects, libraries and library flags. | |
12192 | ||
12193 | # Sentinel used to keep track of whether or not we are before | |
12194 | # the conftest object file. | |
12195 | pre_test_object_deps_done=no | |
12196 | ||
6d873a38 | 12197 | for p in `eval "$output_verbose_link_cmd"`; do |
542f9784 | 12198 | case $p in |
12199 | ||
12200 | -L* | -R* | -l*) | |
12201 | # Some compilers place space between "-{L,R}" and the path. | |
12202 | # Remove the space. | |
12203 | if test $p = "-L" || | |
12204 | test $p = "-R"; then | |
12205 | prev=$p | |
12206 | continue | |
12207 | else | |
12208 | prev= | |
12209 | fi | |
12210 | ||
12211 | if test "$pre_test_object_deps_done" = no; then | |
12212 | case $p in | |
12213 | -L* | -R*) | |
12214 | # Internal compiler library paths should come after those | |
12215 | # provided the user. The postdeps already come after the | |
12216 | # user supplied libs so there is no need to process them. | |
12217 | if test -z "$compiler_lib_search_path_FC"; then | |
12218 | compiler_lib_search_path_FC="${prev}${p}" | |
12219 | else | |
12220 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
12221 | fi | |
12222 | ;; | |
12223 | # The "-l" case would never come before the object being | |
12224 | # linked, so don't bother handling this case. | |
12225 | esac | |
12226 | else | |
12227 | if test -z "$postdeps_FC"; then | |
12228 | postdeps_FC="${prev}${p}" | |
12229 | else | |
12230 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
12231 | fi | |
12232 | fi | |
12233 | ;; | |
12234 | ||
12235 | *.$objext) | |
12236 | # This assumes that the test object file only shows up | |
12237 | # once in the compiler output. | |
12238 | if test "$p" = "conftest.$objext"; then | |
12239 | pre_test_object_deps_done=yes | |
12240 | continue | |
12241 | fi | |
12242 | ||
12243 | if test "$pre_test_object_deps_done" = no; then | |
12244 | if test -z "$predep_objects_FC"; then | |
12245 | predep_objects_FC="$p" | |
12246 | else | |
12247 | predep_objects_FC="$predep_objects_FC $p" | |
12248 | fi | |
12249 | else | |
12250 | if test -z "$postdep_objects_FC"; then | |
12251 | postdep_objects_FC="$p" | |
12252 | else | |
12253 | postdep_objects_FC="$postdep_objects_FC $p" | |
12254 | fi | |
12255 | fi | |
12256 | ;; | |
12257 | ||
12258 | *) ;; # Ignore the rest. | |
12259 | ||
12260 | esac | |
12261 | done | |
12262 | ||
12263 | # Clean up. | |
12264 | rm -f a.out a.exe | |
12265 | else | |
12266 | echo "libtool.m4: error: problem compiling FC test program" | |
12267 | fi | |
12268 | ||
12269 | $RM -f confest.$objext | |
12270 | ||
12271 | # PORTME: override above test on systems where it is broken | |
12272 | ||
12273 | ||
12274 | case " $postdeps_FC " in | |
12275 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
12276 | esac | |
6d873a38 | 12277 | compiler_lib_search_dirs_FC= |
12278 | if test -n "${compiler_lib_search_path_FC}"; then | |
12279 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12280 | fi | |
12281 | ||
12282 | ||
12283 | ||
12284 | ||
12285 | ||
542f9784 | 12286 | |
12287 | ||
12288 | ||
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | lt_prog_compiler_wl_FC= | |
12313 | lt_prog_compiler_pic_FC= | |
12314 | lt_prog_compiler_static_FC= | |
12315 | ||
cd9a469c | 12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
12317 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 12318 | |
12319 | if test "$GCC" = yes; then | |
12320 | lt_prog_compiler_wl_FC='-Wl,' | |
12321 | lt_prog_compiler_static_FC='-static' | |
12322 | ||
12323 | case $host_os in | |
12324 | aix*) | |
12325 | # All AIX code is PIC. | |
12326 | if test "$host_cpu" = ia64; then | |
12327 | # AIX 5 now supports IA64 processor | |
12328 | lt_prog_compiler_static_FC='-Bstatic' | |
12329 | fi | |
33cbbd54 | 12330 | lt_prog_compiler_pic_FC='-fPIC' |
542f9784 | 12331 | ;; |
12332 | ||
12333 | amigaos*) | |
6d873a38 | 12334 | case $host_cpu in |
12335 | powerpc) | |
12336 | # see comment about AmigaOS4 .so support | |
12337 | lt_prog_compiler_pic_FC='-fPIC' | |
12338 | ;; | |
12339 | m68k) | |
12340 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12341 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12342 | # like `-m68040'. | |
12343 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
12344 | ;; | |
12345 | esac | |
542f9784 | 12346 | ;; |
12347 | ||
12348 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12349 | # PIC is the default for these OSes. | |
12350 | ;; | |
12351 | ||
6d873a38 | 12352 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 12353 | # This hack is so that the source file can tell whether it is being |
12354 | # built for inclusion in a dll (and should export symbols for example). | |
12355 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12356 | # (--disable-auto-import) libraries | |
12357 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
12358 | ;; | |
12359 | ||
12360 | darwin* | rhapsody*) | |
12361 | # PIC is the default on this platform | |
12362 | # Common symbols not allowed in MH_DYLIB files | |
12363 | lt_prog_compiler_pic_FC='-fno-common' | |
12364 | ;; | |
12365 | ||
e6408286 | 12366 | haiku*) |
12367 | # PIC is the default for Haiku. | |
12368 | # The "-static" flag exists, but is broken. | |
12369 | lt_prog_compiler_static_FC= | |
12370 | ;; | |
12371 | ||
542f9784 | 12372 | hpux*) |
6d873a38 | 12373 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
12374 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12375 | # sets the default TLS model and affects inlining. | |
542f9784 | 12376 | case $host_cpu in |
6d873a38 | 12377 | hppa*64*) |
542f9784 | 12378 | # +Z the default |
12379 | ;; | |
12380 | *) | |
12381 | lt_prog_compiler_pic_FC='-fPIC' | |
12382 | ;; | |
12383 | esac | |
12384 | ;; | |
12385 | ||
12386 | interix[3-9]*) | |
12387 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12388 | # Instead, we relocate shared libraries at runtime. | |
12389 | ;; | |
12390 | ||
12391 | msdosdjgpp*) | |
12392 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
12393 | # on systems that don't support them. | |
12394 | lt_prog_compiler_can_build_shared_FC=no | |
12395 | enable_shared=no | |
12396 | ;; | |
12397 | ||
12398 | *nto* | *qnx*) | |
12399 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12400 | # it will coredump. | |
12401 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
12402 | ;; | |
12403 | ||
12404 | sysv4*MP*) | |
12405 | if test -d /usr/nec; then | |
12406 | lt_prog_compiler_pic_FC=-Kconform_pic | |
12407 | fi | |
12408 | ;; | |
12409 | ||
12410 | *) | |
12411 | lt_prog_compiler_pic_FC='-fPIC' | |
12412 | ;; | |
12413 | esac | |
e6408286 | 12414 | |
12415 | case $cc_basename in | |
12416 | nvcc*) # Cuda Compiler Driver 2.2 | |
12417 | lt_prog_compiler_wl_FC='-Xlinker ' | |
12418 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
12419 | ;; | |
12420 | esac | |
542f9784 | 12421 | else |
12422 | # PORTME Check for flag to pass linker flags through the system compiler. | |
12423 | case $host_os in | |
12424 | aix*) | |
12425 | lt_prog_compiler_wl_FC='-Wl,' | |
12426 | if test "$host_cpu" = ia64; then | |
12427 | # AIX 5 now supports IA64 processor | |
12428 | lt_prog_compiler_static_FC='-Bstatic' | |
12429 | else | |
12430 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
12431 | fi | |
12432 | ;; | |
542f9784 | 12433 | |
6d873a38 | 12434 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 12435 | # This hack is so that the source file can tell whether it is being |
12436 | # built for inclusion in a dll (and should export symbols for example). | |
12437 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
12438 | ;; | |
12439 | ||
12440 | hpux9* | hpux10* | hpux11*) | |
12441 | lt_prog_compiler_wl_FC='-Wl,' | |
12442 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12443 | # not for PA HP-UX. | |
12444 | case $host_cpu in | |
12445 | hppa*64*|ia64*) | |
12446 | # +Z the default | |
12447 | ;; | |
12448 | *) | |
12449 | lt_prog_compiler_pic_FC='+Z' | |
12450 | ;; | |
12451 | esac | |
12452 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
12453 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
12454 | ;; | |
12455 | ||
12456 | irix5* | irix6* | nonstopux*) | |
12457 | lt_prog_compiler_wl_FC='-Wl,' | |
12458 | # PIC (with -KPIC) is the default. | |
12459 | lt_prog_compiler_static_FC='-non_shared' | |
12460 | ;; | |
12461 | ||
9af964d4 | 12462 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 12463 | case $cc_basename in |
6d873a38 | 12464 | # old Intel for x86_64 which still supported -KPIC. |
12465 | ecc*) | |
542f9784 | 12466 | lt_prog_compiler_wl_FC='-Wl,' |
12467 | lt_prog_compiler_pic_FC='-KPIC' | |
12468 | lt_prog_compiler_static_FC='-static' | |
12469 | ;; | |
6d873a38 | 12470 | # icc used to be incompatible with GCC. |
12471 | # ICC 10 doesn't accept -KPIC any more. | |
12472 | icc* | ifort*) | |
12473 | lt_prog_compiler_wl_FC='-Wl,' | |
12474 | lt_prog_compiler_pic_FC='-fPIC' | |
12475 | lt_prog_compiler_static_FC='-static' | |
12476 | ;; | |
12477 | # Lahey Fortran 8.1. | |
12478 | lf95*) | |
12479 | lt_prog_compiler_wl_FC='-Wl,' | |
12480 | lt_prog_compiler_pic_FC='--shared' | |
12481 | lt_prog_compiler_static_FC='--static' | |
12482 | ;; | |
e6408286 | 12483 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 12484 | # Portland Group compilers (*not* the Pentium gcc compiler, |
12485 | # which looks to be a dead project) | |
12486 | lt_prog_compiler_wl_FC='-Wl,' | |
12487 | lt_prog_compiler_pic_FC='-fpic' | |
12488 | lt_prog_compiler_static_FC='-Bstatic' | |
12489 | ;; | |
12490 | ccc*) | |
12491 | lt_prog_compiler_wl_FC='-Wl,' | |
12492 | # All Alpha code is PIC. | |
12493 | lt_prog_compiler_static_FC='-non_shared' | |
12494 | ;; | |
e6408286 | 12495 | xl* | bgxl* | bgf* | mpixl*) |
12496 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
6d873a38 | 12497 | lt_prog_compiler_wl_FC='-Wl,' |
12498 | lt_prog_compiler_pic_FC='-qpic' | |
12499 | lt_prog_compiler_static_FC='-qstaticlink' | |
12500 | ;; | |
542f9784 | 12501 | *) |
12502 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 12503 | *Sun\ F* | *Sun*Fortran*) |
12504 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 12505 | lt_prog_compiler_pic_FC='-KPIC' |
12506 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 12507 | lt_prog_compiler_wl_FC='' |
542f9784 | 12508 | ;; |
e6408286 | 12509 | *Sun\ C*) |
12510 | # Sun C 5.9 | |
542f9784 | 12511 | lt_prog_compiler_pic_FC='-KPIC' |
12512 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 12513 | lt_prog_compiler_wl_FC='-Wl,' |
542f9784 | 12514 | ;; |
12515 | esac | |
12516 | ;; | |
12517 | esac | |
12518 | ;; | |
12519 | ||
12520 | newsos6) | |
12521 | lt_prog_compiler_pic_FC='-KPIC' | |
12522 | lt_prog_compiler_static_FC='-Bstatic' | |
12523 | ;; | |
12524 | ||
12525 | *nto* | *qnx*) | |
12526 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12527 | # it will coredump. | |
12528 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
12529 | ;; | |
12530 | ||
12531 | osf3* | osf4* | osf5*) | |
12532 | lt_prog_compiler_wl_FC='-Wl,' | |
12533 | # All OSF/1 code is PIC. | |
12534 | lt_prog_compiler_static_FC='-non_shared' | |
12535 | ;; | |
12536 | ||
12537 | rdos*) | |
12538 | lt_prog_compiler_static_FC='-non_shared' | |
12539 | ;; | |
12540 | ||
12541 | solaris*) | |
12542 | lt_prog_compiler_pic_FC='-KPIC' | |
12543 | lt_prog_compiler_static_FC='-Bstatic' | |
12544 | case $cc_basename in | |
12545 | f77* | f90* | f95*) | |
12546 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
12547 | *) | |
12548 | lt_prog_compiler_wl_FC='-Wl,';; | |
12549 | esac | |
12550 | ;; | |
12551 | ||
12552 | sunos4*) | |
12553 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
12554 | lt_prog_compiler_pic_FC='-PIC' | |
12555 | lt_prog_compiler_static_FC='-Bstatic' | |
12556 | ;; | |
12557 | ||
12558 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
12559 | lt_prog_compiler_wl_FC='-Wl,' | |
12560 | lt_prog_compiler_pic_FC='-KPIC' | |
12561 | lt_prog_compiler_static_FC='-Bstatic' | |
12562 | ;; | |
12563 | ||
12564 | sysv4*MP*) | |
12565 | if test -d /usr/nec ;then | |
12566 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
12567 | lt_prog_compiler_static_FC='-Bstatic' | |
12568 | fi | |
12569 | ;; | |
12570 | ||
12571 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12572 | lt_prog_compiler_wl_FC='-Wl,' | |
12573 | lt_prog_compiler_pic_FC='-KPIC' | |
12574 | lt_prog_compiler_static_FC='-Bstatic' | |
12575 | ;; | |
12576 | ||
12577 | unicos*) | |
12578 | lt_prog_compiler_wl_FC='-Wl,' | |
12579 | lt_prog_compiler_can_build_shared_FC=no | |
12580 | ;; | |
12581 | ||
12582 | uts4*) | |
12583 | lt_prog_compiler_pic_FC='-pic' | |
12584 | lt_prog_compiler_static_FC='-Bstatic' | |
12585 | ;; | |
12586 | ||
12587 | *) | |
12588 | lt_prog_compiler_can_build_shared_FC=no | |
12589 | ;; | |
12590 | esac | |
12591 | fi | |
12592 | ||
12593 | case $host_os in | |
12594 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12595 | *djgpp*) | |
12596 | lt_prog_compiler_pic_FC= | |
12597 | ;; | |
12598 | *) | |
12599 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
12600 | ;; | |
12601 | esac | |
cd9a469c | 12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
12603 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
542f9784 | 12604 | |
12605 | ||
12606 | ||
12607 | # | |
12608 | # Check to make sure the PIC flag actually works. | |
12609 | # | |
12610 | if test -n "$lt_prog_compiler_pic_FC"; then | |
cd9a469c | 12611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
12612 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
f00f02a3 | 12613 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
cd9a469c | 12614 | $as_echo_n "(cached) " >&6 |
542f9784 | 12615 | else |
6d873a38 | 12616 | lt_cv_prog_compiler_pic_works_FC=no |
542f9784 | 12617 | ac_outfile=conftest.$ac_objext |
12618 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12619 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
12620 | # Insert the option either (1) after the last *FLAGS variable, or | |
12621 | # (2) before a word containing "conftest.", or (3) at the end. | |
12622 | # Note that $ac_compile itself does not contain backslashes and begins | |
12623 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12624 | # The option is referenced via a variable to avoid confusing sed. | |
12625 | lt_compile=`echo "$ac_compile" | $SED \ | |
12626 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12627 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12628 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 12629 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 12630 | (eval "$lt_compile" 2>conftest.err) |
12631 | ac_status=$? | |
12632 | cat conftest.err >&5 | |
e6408286 | 12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 12634 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12635 | # The compiler can only warn and ignore the option if not recognized | |
12636 | # So say no if there are warnings other than the usual output. | |
e6408286 | 12637 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 12638 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12639 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6d873a38 | 12640 | lt_cv_prog_compiler_pic_works_FC=yes |
542f9784 | 12641 | fi |
12642 | fi | |
12643 | $RM conftest* | |
12644 | ||
12645 | fi | |
cd9a469c | 12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
12647 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
542f9784 | 12648 | |
6d873a38 | 12649 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
542f9784 | 12650 | case $lt_prog_compiler_pic_FC in |
12651 | "" | " "*) ;; | |
12652 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
12653 | esac | |
12654 | else | |
12655 | lt_prog_compiler_pic_FC= | |
12656 | lt_prog_compiler_can_build_shared_FC=no | |
12657 | fi | |
12658 | ||
12659 | fi | |
12660 | ||
12661 | ||
12662 | ||
12663 | # | |
12664 | # Check to make sure the static flag actually works. | |
12665 | # | |
12666 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
cd9a469c | 12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12668 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
f00f02a3 | 12669 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
cd9a469c | 12670 | $as_echo_n "(cached) " >&6 |
542f9784 | 12671 | else |
6d873a38 | 12672 | lt_cv_prog_compiler_static_works_FC=no |
542f9784 | 12673 | save_LDFLAGS="$LDFLAGS" |
12674 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12675 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12676 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12677 | # The linker can only warn and ignore the option if not recognized | |
12678 | # So say no if there are warnings | |
12679 | if test -s conftest.err; then | |
12680 | # Append any errors to the config.log. | |
12681 | cat conftest.err 1>&5 | |
e6408286 | 12682 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 12683 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12684 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6d873a38 | 12685 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 12686 | fi |
12687 | else | |
6d873a38 | 12688 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 12689 | fi |
12690 | fi | |
6d873a38 | 12691 | $RM -r conftest* |
542f9784 | 12692 | LDFLAGS="$save_LDFLAGS" |
12693 | ||
12694 | fi | |
cd9a469c | 12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
12696 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
542f9784 | 12697 | |
6d873a38 | 12698 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
542f9784 | 12699 | : |
12700 | else | |
12701 | lt_prog_compiler_static_FC= | |
12702 | fi | |
12703 | ||
12704 | ||
12705 | ||
12706 | ||
cd9a469c | 12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12708 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 12709 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
cd9a469c | 12710 | $as_echo_n "(cached) " >&6 |
542f9784 | 12711 | else |
12712 | lt_cv_prog_compiler_c_o_FC=no | |
12713 | $RM -r conftest 2>/dev/null | |
12714 | mkdir conftest | |
12715 | cd conftest | |
12716 | mkdir out | |
12717 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12718 | ||
12719 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12720 | # Insert the option either (1) after the last *FLAGS variable, or | |
12721 | # (2) before a word containing "conftest.", or (3) at the end. | |
12722 | # Note that $ac_compile itself does not contain backslashes and begins | |
12723 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12724 | lt_compile=`echo "$ac_compile" | $SED \ | |
12725 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12726 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12727 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 12728 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 12729 | (eval "$lt_compile" 2>out/conftest.err) |
12730 | ac_status=$? | |
12731 | cat out/conftest.err >&5 | |
e6408286 | 12732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 12733 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12734 | then | |
12735 | # The compiler can only warn and ignore the option if not recognized | |
12736 | # So say no if there are warnings | |
e6408286 | 12737 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 12738 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12739 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12740 | lt_cv_prog_compiler_c_o_FC=yes | |
12741 | fi | |
12742 | fi | |
12743 | chmod u+w . 2>&5 | |
12744 | $RM conftest* | |
12745 | # SGI C++ compiler will create directory out/ii_files/ for | |
12746 | # template instantiation | |
12747 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12748 | $RM out/* && rmdir out | |
12749 | cd .. | |
12750 | $RM -r conftest | |
12751 | $RM conftest* | |
12752 | ||
12753 | fi | |
cd9a469c | 12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12755 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 12756 | |
12757 | ||
12758 | ||
cd9a469c | 12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12760 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 12761 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
cd9a469c | 12762 | $as_echo_n "(cached) " >&6 |
542f9784 | 12763 | else |
12764 | lt_cv_prog_compiler_c_o_FC=no | |
12765 | $RM -r conftest 2>/dev/null | |
12766 | mkdir conftest | |
12767 | cd conftest | |
12768 | mkdir out | |
12769 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12770 | ||
12771 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12772 | # Insert the option either (1) after the last *FLAGS variable, or | |
12773 | # (2) before a word containing "conftest.", or (3) at the end. | |
12774 | # Note that $ac_compile itself does not contain backslashes and begins | |
12775 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12776 | lt_compile=`echo "$ac_compile" | $SED \ | |
12777 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12778 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12779 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 12780 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 12781 | (eval "$lt_compile" 2>out/conftest.err) |
12782 | ac_status=$? | |
12783 | cat out/conftest.err >&5 | |
e6408286 | 12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 12785 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12786 | then | |
12787 | # The compiler can only warn and ignore the option if not recognized | |
12788 | # So say no if there are warnings | |
e6408286 | 12789 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 12790 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12791 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12792 | lt_cv_prog_compiler_c_o_FC=yes | |
12793 | fi | |
12794 | fi | |
12795 | chmod u+w . 2>&5 | |
12796 | $RM conftest* | |
12797 | # SGI C++ compiler will create directory out/ii_files/ for | |
12798 | # template instantiation | |
12799 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12800 | $RM out/* && rmdir out | |
12801 | cd .. | |
12802 | $RM -r conftest | |
12803 | $RM conftest* | |
12804 | ||
12805 | fi | |
cd9a469c | 12806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12807 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 12808 | |
12809 | ||
12810 | ||
12811 | ||
12812 | hard_links="nottested" | |
12813 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
12814 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 12815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
12816 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 12817 | hard_links=yes |
12818 | $RM conftest* | |
12819 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12820 | touch conftest.a | |
12821 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12822 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 12823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
12824 | $as_echo "$hard_links" >&6; } | |
542f9784 | 12825 | if test "$hard_links" = no; then |
cd9a469c | 12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12827 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 12828 | need_locks=warn |
12829 | fi | |
12830 | else | |
12831 | need_locks=no | |
12832 | fi | |
12833 | ||
12834 | ||
12835 | ||
cd9a469c | 12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12837 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 12838 | |
12839 | runpath_var= | |
12840 | allow_undefined_flag_FC= | |
12841 | always_export_symbols_FC=no | |
12842 | archive_cmds_FC= | |
12843 | archive_expsym_cmds_FC= | |
12844 | compiler_needs_object_FC=no | |
12845 | enable_shared_with_static_runtimes_FC=no | |
12846 | export_dynamic_flag_spec_FC= | |
12847 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12848 | hardcode_automatic_FC=no | |
12849 | hardcode_direct_FC=no | |
12850 | hardcode_direct_absolute_FC=no | |
12851 | hardcode_libdir_flag_spec_FC= | |
12852 | hardcode_libdir_flag_spec_ld_FC= | |
12853 | hardcode_libdir_separator_FC= | |
12854 | hardcode_minus_L_FC=no | |
12855 | hardcode_shlibpath_var_FC=unsupported | |
12856 | inherit_rpath_FC=no | |
12857 | link_all_deplibs_FC=unknown | |
12858 | module_cmds_FC= | |
12859 | module_expsym_cmds_FC= | |
12860 | old_archive_from_new_cmds_FC= | |
12861 | old_archive_from_expsyms_cmds_FC= | |
12862 | thread_safe_flag_spec_FC= | |
12863 | whole_archive_flag_spec_FC= | |
12864 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12865 | # included in the symbol list | |
12866 | include_expsyms_FC= | |
12867 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
12868 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12869 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12870 | # as well as any symbol that contains `d'. | |
6d873a38 | 12871 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 12872 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
12873 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12874 | # the symbol is explicitly referenced. Since portable code cannot | |
12875 | # rely on this symbol name, it's probably fine to never include it in | |
12876 | # preloaded symbol tables. | |
6d873a38 | 12877 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 12878 | extract_expsyms_cmds= |
12879 | ||
12880 | case $host_os in | |
6d873a38 | 12881 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 12882 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
12883 | # When not using gcc, we currently assume that we are using | |
12884 | # Microsoft Visual C++. | |
12885 | if test "$GCC" != yes; then | |
12886 | with_gnu_ld=no | |
12887 | fi | |
12888 | ;; | |
12889 | interix*) | |
12890 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
12891 | with_gnu_ld=yes | |
12892 | ;; | |
12893 | openbsd*) | |
12894 | with_gnu_ld=no | |
12895 | ;; | |
12896 | esac | |
12897 | ||
12898 | ld_shlibs_FC=yes | |
e6408286 | 12899 | |
12900 | # On some targets, GNU ld is compatible enough with the native linker | |
12901 | # that we're better off using the native interface for both. | |
12902 | lt_use_gnu_ld_interface=no | |
542f9784 | 12903 | if test "$with_gnu_ld" = yes; then |
e6408286 | 12904 | case $host_os in |
12905 | aix*) | |
12906 | # The AIX port of GNU ld has always aspired to compatibility | |
12907 | # with the native linker. However, as the warning in the GNU ld | |
12908 | # block says, versions before 2.19.5* couldn't really create working | |
12909 | # shared libraries, regardless of the interface used. | |
12910 | case `$LD -v 2>&1` in | |
12911 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
12912 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
12913 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
12914 | *) | |
12915 | lt_use_gnu_ld_interface=yes | |
12916 | ;; | |
12917 | esac | |
12918 | ;; | |
12919 | *) | |
12920 | lt_use_gnu_ld_interface=yes | |
12921 | ;; | |
12922 | esac | |
12923 | fi | |
12924 | ||
12925 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 12926 | # If archive_cmds runs LD, not CC, wlarc should be empty |
12927 | wlarc='${wl}' | |
12928 | ||
12929 | # Set some defaults for GNU ld with shared library support. These | |
12930 | # are reset later if shared libraries are not supported. Putting them | |
12931 | # here allows them to be overridden if necessary. | |
12932 | runpath_var=LD_RUN_PATH | |
12933 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12934 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
12935 | # ancient GNU ld didn't support --whole-archive et. al. | |
12936 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
12937 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12938 | else | |
12939 | whole_archive_flag_spec_FC= | |
12940 | fi | |
12941 | supports_anon_versioning=no | |
12942 | case `$LD -v 2>&1` in | |
e6408286 | 12943 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 12944 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
12945 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
12946 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
12947 | *\ 2.11.*) ;; # other 2.11 versions | |
12948 | *) supports_anon_versioning=yes ;; | |
12949 | esac | |
12950 | ||
12951 | # See if GNU ld supports shared libraries. | |
12952 | case $host_os in | |
c8db569e | 12953 | aix[3-9]*) |
542f9784 | 12954 | # On AIX/PPC, the GNU linker is very broken |
12955 | if test "$host_cpu" != ia64; then | |
12956 | ld_shlibs_FC=no | |
12957 | cat <<_LT_EOF 1>&2 | |
12958 | ||
e6408286 | 12959 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 12960 | *** to be unable to reliably create shared libraries on AIX. |
12961 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 12962 | *** really care for shared libraries, you may want to install binutils |
12963 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
12964 | *** You will then need to restart the configuration process. | |
542f9784 | 12965 | |
12966 | _LT_EOF | |
12967 | fi | |
12968 | ;; | |
12969 | ||
12970 | amigaos*) | |
6d873a38 | 12971 | case $host_cpu in |
12972 | powerpc) | |
12973 | # see comment about AmigaOS4 .so support | |
12974 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12975 | archive_expsym_cmds_FC='' | |
12976 | ;; | |
12977 | m68k) | |
12978 | archive_cmds_FC='$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)' | |
12979 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12980 | hardcode_minus_L_FC=yes | |
12981 | ;; | |
12982 | esac | |
542f9784 | 12983 | ;; |
12984 | ||
12985 | beos*) | |
12986 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12987 | allow_undefined_flag_FC=unsupported | |
12988 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12989 | # support --undefined. This deserves some investigation. FIXME | |
12990 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12991 | else | |
12992 | ld_shlibs_FC=no | |
12993 | fi | |
12994 | ;; | |
12995 | ||
6d873a38 | 12996 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 12997 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
12998 | # as there is no search path for DLLs. | |
12999 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
e6408286 | 13000 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
542f9784 | 13001 | allow_undefined_flag_FC=unsupported |
13002 | always_export_symbols_FC=no | |
13003 | enable_shared_with_static_runtimes_FC=yes | |
13004 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
13005 | ||
13006 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13007 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13008 | # If the export-symbols file already is a .def file (1st line | |
13009 | # is EXPORTS), use it as is; otherwise, prepend... | |
13010 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13011 | cp $export_symbols $output_objdir/$soname.def; | |
13012 | else | |
13013 | echo EXPORTS > $output_objdir/$soname.def; | |
13014 | cat $export_symbols >> $output_objdir/$soname.def; | |
13015 | fi~ | |
13016 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13017 | else | |
13018 | ld_shlibs_FC=no | |
13019 | fi | |
13020 | ;; | |
13021 | ||
e6408286 | 13022 | haiku*) |
13023 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13024 | link_all_deplibs_FC=yes | |
13025 | ;; | |
13026 | ||
542f9784 | 13027 | interix[3-9]*) |
13028 | hardcode_direct_FC=no | |
13029 | hardcode_shlibpath_var_FC=no | |
13030 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
13031 | export_dynamic_flag_spec_FC='${wl}-E' | |
13032 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13033 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13034 | # default) and relocated if they conflict, which is a slow very memory | |
13035 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13036 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13037 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13038 | archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13039 | archive_expsym_cmds_FC='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' | |
13040 | ;; | |
13041 | ||
9af964d4 | 13042 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 13043 | tmp_diet=no |
13044 | if test "$host_os" = linux-dietlibc; then | |
13045 | case $cc_basename in | |
13046 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
13047 | esac | |
13048 | fi | |
13049 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
13050 | && test "$tmp_diet" = no | |
13051 | then | |
4e8a08d4 | 13052 | tmp_addflag=' $pic_flag' |
6d873a38 | 13053 | tmp_sharedflag='-shared' |
542f9784 | 13054 | case $cc_basename,$host_cpu in |
13055 | pgcc*) # Portland Group C compiler | |
e6408286 | 13056 | whole_archive_flag_spec_FC='${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' |
542f9784 | 13057 | tmp_addflag=' $pic_flag' |
13058 | ;; | |
e6408286 | 13059 | pgf77* | pgf90* | pgf95* | pgfortran*) |
13060 | # Portland Group f77 and f90 compilers | |
13061 | whole_archive_flag_spec_FC='${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' | |
542f9784 | 13062 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13063 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13064 | tmp_addflag=' -i_dynamic' ;; | |
13065 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13066 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13067 | ifc* | ifort*) # Intel Fortran compiler | |
13068 | tmp_addflag=' -nofor_main' ;; | |
6d873a38 | 13069 | lf95*) # Lahey Fortran 8.1 |
13070 | whole_archive_flag_spec_FC= | |
13071 | tmp_sharedflag='--shared' ;; | |
e6408286 | 13072 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
6d873a38 | 13073 | tmp_sharedflag='-qmkshrobj' |
13074 | tmp_addflag= ;; | |
e6408286 | 13075 | nvcc*) # Cuda Compiler Driver 2.2 |
13076 | whole_archive_flag_spec_FC='${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' | |
13077 | compiler_needs_object_FC=yes | |
13078 | ;; | |
542f9784 | 13079 | esac |
13080 | case `$CC -V 2>&1 | sed 5q` in | |
13081 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 13082 | whole_archive_flag_spec_FC='${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' |
542f9784 | 13083 | compiler_needs_object_FC=yes |
13084 | tmp_sharedflag='-G' ;; | |
13085 | *Sun\ F*) # Sun Fortran 8.3 | |
13086 | tmp_sharedflag='-G' ;; | |
542f9784 | 13087 | esac |
13088 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13089 | ||
13090 | if test "x$supports_anon_versioning" = xyes; then | |
13091 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
13092 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13093 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13094 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13095 | fi | |
6d873a38 | 13096 | |
13097 | case $cc_basename in | |
e6408286 | 13098 | xlf* | bgf* | bgxlf* | mpixlf*) |
6d873a38 | 13099 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
13100 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
13101 | hardcode_libdir_flag_spec_FC= | |
13102 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
13103 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
13104 | if test "x$supports_anon_versioning" = xyes; then | |
13105 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
13106 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13107 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13108 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
13109 | fi | |
13110 | ;; | |
13111 | esac | |
542f9784 | 13112 | else |
13113 | ld_shlibs_FC=no | |
13114 | fi | |
13115 | ;; | |
13116 | ||
13117 | netbsd*) | |
13118 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13119 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13120 | wlarc= | |
13121 | else | |
13122 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13123 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13124 | fi | |
13125 | ;; | |
13126 | ||
13127 | solaris*) | |
13128 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
13129 | ld_shlibs_FC=no | |
13130 | cat <<_LT_EOF 1>&2 | |
13131 | ||
13132 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13133 | *** create shared libraries on Solaris systems. Therefore, libtool | |
13134 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13135 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
13136 | *** your PATH or compiler configuration so that the native linker is | |
13137 | *** used, and then restart. | |
13138 | ||
13139 | _LT_EOF | |
13140 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13141 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13142 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13143 | else | |
13144 | ld_shlibs_FC=no | |
13145 | fi | |
13146 | ;; | |
13147 | ||
13148 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
13149 | case `$LD -v 2>&1` in | |
13150 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
13151 | ld_shlibs_FC=no | |
13152 | cat <<_LT_EOF 1>&2 | |
13153 | ||
13154 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
13155 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
13156 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13157 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
13158 | *** your PATH or compiler configuration so that the native linker is | |
13159 | *** used, and then restart. | |
13160 | ||
13161 | _LT_EOF | |
13162 | ;; | |
13163 | *) | |
13164 | # For security reasons, it is highly recommended that you always | |
13165 | # use absolute paths for naming shared libraries, and exclude the | |
13166 | # DT_RUNPATH tag from executables and libraries. But doing so | |
13167 | # requires that you compile everything twice, which is a pain. | |
13168 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13169 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13170 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13171 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13172 | else | |
13173 | ld_shlibs_FC=no | |
13174 | fi | |
13175 | ;; | |
13176 | esac | |
13177 | ;; | |
13178 | ||
13179 | sunos4*) | |
13180 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13181 | wlarc= | |
13182 | hardcode_direct_FC=yes | |
13183 | hardcode_shlibpath_var_FC=no | |
13184 | ;; | |
13185 | ||
13186 | *) | |
13187 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13188 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13189 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13190 | else | |
13191 | ld_shlibs_FC=no | |
13192 | fi | |
13193 | ;; | |
13194 | esac | |
13195 | ||
13196 | if test "$ld_shlibs_FC" = no; then | |
13197 | runpath_var= | |
13198 | hardcode_libdir_flag_spec_FC= | |
13199 | export_dynamic_flag_spec_FC= | |
13200 | whole_archive_flag_spec_FC= | |
13201 | fi | |
13202 | else | |
13203 | # PORTME fill in a description of your system's linker (not GNU ld) | |
13204 | case $host_os in | |
13205 | aix3*) | |
13206 | allow_undefined_flag_FC=unsupported | |
13207 | always_export_symbols_FC=yes | |
13208 | archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
13209 | # Note: this linker hardcodes the directories in LIBPATH if there | |
13210 | # are no directories specified by -L. | |
13211 | hardcode_minus_L_FC=yes | |
13212 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
13213 | # Neither direct hardcoding nor static linking is supported with a | |
13214 | # broken collect2. | |
13215 | hardcode_direct_FC=unsupported | |
13216 | fi | |
13217 | ;; | |
13218 | ||
c8db569e | 13219 | aix[4-9]*) |
542f9784 | 13220 | if test "$host_cpu" = ia64; then |
13221 | # On IA64, the linker does run time linking by default, so we don't | |
13222 | # have to do anything special. | |
13223 | aix_use_runtimelinking=no | |
13224 | exp_sym_flag='-Bexport' | |
13225 | no_entry_flag="" | |
13226 | else | |
13227 | # If we're using GNU nm, then we don't want the "-C" option. | |
13228 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 13229 | # Also, AIX nm treats weak defined symbols like other global |
13230 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 13231 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 13232 | export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
542f9784 | 13233 | else |
80561764 | 13234 | export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
542f9784 | 13235 | fi |
13236 | aix_use_runtimelinking=no | |
13237 | ||
13238 | # Test if we are trying to use run time linking or normal | |
13239 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13240 | # need to do runtime linking. | |
c8db569e | 13241 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 13242 | for ld_flag in $LDFLAGS; do |
13243 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
13244 | aix_use_runtimelinking=yes | |
13245 | break | |
13246 | fi | |
13247 | done | |
13248 | ;; | |
13249 | esac | |
13250 | ||
13251 | exp_sym_flag='-bexport' | |
13252 | no_entry_flag='-bnoentry' | |
13253 | fi | |
13254 | ||
13255 | # When large executables or shared objects are built, AIX ld can | |
13256 | # have problems creating the table of contents. If linking a library | |
13257 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13258 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13259 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13260 | ||
13261 | archive_cmds_FC='' | |
13262 | hardcode_direct_FC=yes | |
13263 | hardcode_direct_absolute_FC=yes | |
13264 | hardcode_libdir_separator_FC=':' | |
13265 | link_all_deplibs_FC=yes | |
13266 | file_list_spec_FC='${wl}-f,' | |
13267 | ||
13268 | if test "$GCC" = yes; then | |
13269 | case $host_os in aix4.[012]|aix4.[012].*) | |
13270 | # We only want to do this on AIX 4.2 and lower, the check | |
13271 | # below for broken collect2 doesn't work under 4.3+ | |
13272 | collect2name=`${CC} -print-prog-name=collect2` | |
13273 | if test -f "$collect2name" && | |
13274 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13275 | then | |
13276 | # We have reworked collect2 | |
13277 | : | |
13278 | else | |
13279 | # We have old collect2 | |
13280 | hardcode_direct_FC=unsupported | |
13281 | # It fails to find uninstalled libraries when the uninstalled | |
13282 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13283 | # to unsupported forces relinking | |
13284 | hardcode_minus_L_FC=yes | |
13285 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13286 | hardcode_libdir_separator_FC= | |
13287 | fi | |
13288 | ;; | |
13289 | esac | |
13290 | shared_flag='-shared' | |
13291 | if test "$aix_use_runtimelinking" = yes; then | |
13292 | shared_flag="$shared_flag "'${wl}-G' | |
13293 | fi | |
13294 | else | |
13295 | # not using gcc | |
13296 | if test "$host_cpu" = ia64; then | |
13297 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13298 | # chokes on -Wl,-G. The following line is correct: | |
13299 | shared_flag='-G' | |
13300 | else | |
13301 | if test "$aix_use_runtimelinking" = yes; then | |
13302 | shared_flag='${wl}-G' | |
13303 | else | |
13304 | shared_flag='${wl}-bM:SRE' | |
13305 | fi | |
13306 | fi | |
13307 | fi | |
13308 | ||
6d873a38 | 13309 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
542f9784 | 13310 | # It seems that -bexpall does not export symbols beginning with |
13311 | # underscore (_), so it is better to generate a list of symbols to export. | |
13312 | always_export_symbols_FC=yes | |
13313 | if test "$aix_use_runtimelinking" = yes; then | |
13314 | # Warning - without using the other runtime loading flags (-brtl), | |
13315 | # -berok will link without error, but may produce a broken library. | |
13316 | allow_undefined_flag_FC='-berok' | |
13317 | # Determine the default libpath from the value encoded in an | |
13318 | # empty executable. | |
cd9a469c | 13319 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 13320 | program main |
13321 | ||
13322 | end | |
13323 | _ACEOF | |
cd9a469c | 13324 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 13325 | |
13326 | lt_aix_libpath_sed=' | |
13327 | /Import File Strings/,/^$/ { | |
13328 | /^0/ { | |
13329 | s/^0 *\(.*\)$/\1/ | |
13330 | p | |
13331 | } | |
13332 | }' | |
13333 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13334 | # Check for a 64-bit object if we didn't find anything. | |
13335 | if test -z "$aix_libpath"; then | |
13336 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13337 | fi | |
542f9784 | 13338 | fi |
cd9a469c | 13339 | rm -f core conftest.err conftest.$ac_objext \ |
13340 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 13341 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13342 | ||
13343 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 13344 | archive_expsym_cmds_FC='$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" |
542f9784 | 13345 | else |
13346 | if test "$host_cpu" = ia64; then | |
13347 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
13348 | allow_undefined_flag_FC="-z nodefs" | |
13349 | archive_expsym_cmds_FC="\$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" | |
13350 | else | |
13351 | # Determine the default libpath from the value encoded in an | |
13352 | # empty executable. | |
cd9a469c | 13353 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 13354 | program main |
13355 | ||
13356 | end | |
13357 | _ACEOF | |
cd9a469c | 13358 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 13359 | |
13360 | lt_aix_libpath_sed=' | |
13361 | /Import File Strings/,/^$/ { | |
13362 | /^0/ { | |
13363 | s/^0 *\(.*\)$/\1/ | |
13364 | p | |
13365 | } | |
13366 | }' | |
13367 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13368 | # Check for a 64-bit object if we didn't find anything. | |
13369 | if test -z "$aix_libpath"; then | |
13370 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13371 | fi | |
542f9784 | 13372 | fi |
cd9a469c | 13373 | rm -f core conftest.err conftest.$ac_objext \ |
13374 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 13375 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13376 | ||
13377 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13378 | # Warning - without using the other run time loading flags, | |
13379 | # -berok will link without error, but may produce a broken library. | |
13380 | no_undefined_flag_FC=' ${wl}-bernotok' | |
13381 | allow_undefined_flag_FC=' ${wl}-berok' | |
e6408286 | 13382 | if test "$with_gnu_ld" = yes; then |
13383 | # We only use this code for GNU lds that support --whole-archive. | |
13384 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13385 | else | |
13386 | # Exported symbols can be pulled into shared objects from archives | |
13387 | whole_archive_flag_spec_FC='$convenience' | |
13388 | fi | |
542f9784 | 13389 | archive_cmds_need_lc_FC=yes |
13390 | # This is similar to how AIX traditionally builds its shared libraries. | |
13391 | archive_expsym_cmds_FC="\$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' | |
13392 | fi | |
13393 | fi | |
1e8e9920 | 13394 | ;; |
542f9784 | 13395 | |
13396 | amigaos*) | |
6d873a38 | 13397 | case $host_cpu in |
13398 | powerpc) | |
13399 | # see comment about AmigaOS4 .so support | |
13400 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13401 | archive_expsym_cmds_FC='' | |
13402 | ;; | |
13403 | m68k) | |
13404 | archive_cmds_FC='$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)' | |
13405 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13406 | hardcode_minus_L_FC=yes | |
13407 | ;; | |
13408 | esac | |
1e8e9920 | 13409 | ;; |
542f9784 | 13410 | |
13411 | bsdi[45]*) | |
13412 | export_dynamic_flag_spec_FC=-rdynamic | |
1e8e9920 | 13413 | ;; |
542f9784 | 13414 | |
6d873a38 | 13415 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 13416 | # When not using gcc, we currently assume that we are using |
13417 | # Microsoft Visual C++. | |
13418 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13419 | # no search path for DLLs. | |
13420 | hardcode_libdir_flag_spec_FC=' ' | |
13421 | allow_undefined_flag_FC=unsupported | |
13422 | # Tell ltmain to make .lib files, not .a files. | |
13423 | libext=lib | |
13424 | # Tell ltmain to make .dll files, not .so files. | |
13425 | shrext_cmds=".dll" | |
13426 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 13427 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 13428 | # The linker will automatically build a .lib file if we build a DLL. |
13429 | old_archive_from_new_cmds_FC='true' | |
13430 | # FIXME: Should let the user specify the lib program. | |
13431 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
13432 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
13433 | enable_shared_with_static_runtimes_FC=yes | |
1e8e9920 | 13434 | ;; |
542f9784 | 13435 | |
13436 | darwin* | rhapsody*) | |
542f9784 | 13437 | |
6d873a38 | 13438 | |
13439 | archive_cmds_need_lc_FC=no | |
13440 | hardcode_direct_FC=no | |
13441 | hardcode_automatic_FC=yes | |
13442 | hardcode_shlibpath_var_FC=unsupported | |
e6408286 | 13443 | if test "$lt_cv_ld_force_load" = "yes"; then |
13444 | whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
13445 | else | |
13446 | whole_archive_flag_spec_FC='' | |
13447 | fi | |
6d873a38 | 13448 | link_all_deplibs_FC=yes |
13449 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
13450 | case $cc_basename in | |
13451 | ifort*) _lt_dar_can_shared=yes ;; | |
13452 | *) _lt_dar_can_shared=$GCC ;; | |
13453 | esac | |
13454 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 13455 | output_verbose_link_cmd=func_echo_all |
6d873a38 | 13456 | archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
13457 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13458 | archive_expsym_cmds_FC="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}" | |
13459 | module_expsym_cmds_FC="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}" | |
13460 | ||
13461 | else | |
13462 | ld_shlibs_FC=no | |
13463 | fi | |
13464 | ||
1e8e9920 | 13465 | ;; |
542f9784 | 13466 | |
13467 | dgux*) | |
13468 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13469 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13470 | hardcode_shlibpath_var_FC=no | |
1e8e9920 | 13471 | ;; |
1e8e9920 | 13472 | |
542f9784 | 13473 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
13474 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
13475 | # does not break anything, and helps significantly (at the cost of a little | |
13476 | # extra space). | |
13477 | freebsd2.2*) | |
13478 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
13479 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13480 | hardcode_direct_FC=yes | |
13481 | hardcode_shlibpath_var_FC=no | |
1e8e9920 | 13482 | ;; |
1e8e9920 | 13483 | |
542f9784 | 13484 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
30369aff | 13485 | freebsd2.*) |
542f9784 | 13486 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13487 | hardcode_direct_FC=yes | |
13488 | hardcode_minus_L_FC=yes | |
13489 | hardcode_shlibpath_var_FC=no | |
13490 | ;; | |
13491 | ||
13492 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
13493 | freebsd* | dragonfly*) | |
13494 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
13495 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13496 | hardcode_direct_FC=yes | |
13497 | hardcode_shlibpath_var_FC=no | |
13498 | ;; | |
13499 | ||
13500 | hpux9*) | |
13501 | if test "$GCC" = yes; then | |
13502 | archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13503 | else | |
13504 | archive_cmds_FC='$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' | |
13505 | fi | |
13506 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13507 | hardcode_libdir_separator_FC=: | |
13508 | hardcode_direct_FC=yes | |
13509 | ||
13510 | # hardcode_minus_L: Not really in the search PATH, | |
13511 | # but as the default location of the library. | |
13512 | hardcode_minus_L_FC=yes | |
13513 | export_dynamic_flag_spec_FC='${wl}-E' | |
13514 | ;; | |
13515 | ||
13516 | hpux10*) | |
e6408286 | 13517 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 13518 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
13519 | else | |
13520 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
13521 | fi | |
13522 | if test "$with_gnu_ld" = no; then | |
13523 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13524 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
13525 | hardcode_libdir_separator_FC=: | |
13526 | hardcode_direct_FC=yes | |
13527 | hardcode_direct_absolute_FC=yes | |
13528 | export_dynamic_flag_spec_FC='${wl}-E' | |
13529 | # hardcode_minus_L: Not really in the search PATH, | |
13530 | # but as the default location of the library. | |
13531 | hardcode_minus_L_FC=yes | |
13532 | fi | |
13533 | ;; | |
13534 | ||
13535 | hpux11*) | |
e6408286 | 13536 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 13537 | case $host_cpu in |
13538 | hppa*64*) | |
13539 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13540 | ;; | |
13541 | ia64*) | |
6d873a38 | 13542 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 13543 | ;; |
13544 | *) | |
13545 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13546 | ;; | |
13547 | esac | |
13548 | else | |
13549 | case $host_cpu in | |
13550 | hppa*64*) | |
13551 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13552 | ;; | |
13553 | ia64*) | |
13554 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
13555 | ;; | |
13556 | *) | |
e6408286 | 13557 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 13558 | ;; |
13559 | esac | |
13560 | fi | |
13561 | if test "$with_gnu_ld" = no; then | |
13562 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13563 | hardcode_libdir_separator_FC=: | |
13564 | ||
13565 | case $host_cpu in | |
13566 | hppa*64*|ia64*) | |
13567 | hardcode_direct_FC=no | |
13568 | hardcode_shlibpath_var_FC=no | |
13569 | ;; | |
13570 | *) | |
13571 | hardcode_direct_FC=yes | |
13572 | hardcode_direct_absolute_FC=yes | |
13573 | export_dynamic_flag_spec_FC='${wl}-E' | |
13574 | ||
13575 | # hardcode_minus_L: Not really in the search PATH, | |
13576 | # but as the default location of the library. | |
13577 | hardcode_minus_L_FC=yes | |
13578 | ;; | |
13579 | esac | |
13580 | fi | |
13581 | ;; | |
13582 | ||
13583 | irix5* | irix6* | nonstopux*) | |
13584 | if test "$GCC" = yes; then | |
e6408286 | 13585 | archive_cmds_FC='$CC -shared $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' |
542f9784 | 13586 | # Try to use the -exported_symbol ld option, if it does not |
13587 | # work, assume that -exports_file does not work either and | |
13588 | # implicitly export all symbols. | |
13589 | save_LDFLAGS="$LDFLAGS" | |
13590 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
cd9a469c | 13591 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 13592 | int foo(void) {} |
13593 | _ACEOF | |
cd9a469c | 13594 | if ac_fn_fc_try_link "$LINENO"; then : |
e6408286 | 13595 | archive_expsym_cmds_FC='$CC -shared $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' |
542f9784 | 13596 | |
542f9784 | 13597 | fi |
cd9a469c | 13598 | rm -f core conftest.err conftest.$ac_objext \ |
13599 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 13600 | LDFLAGS="$save_LDFLAGS" |
13601 | else | |
e6408286 | 13602 | archive_cmds_FC='$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' |
13603 | archive_expsym_cmds_FC='$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' | |
542f9784 | 13604 | fi |
13605 | archive_cmds_need_lc_FC='no' | |
13606 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13607 | hardcode_libdir_separator_FC=: | |
13608 | inherit_rpath_FC=yes | |
13609 | link_all_deplibs_FC=yes | |
13610 | ;; | |
13611 | ||
13612 | netbsd*) | |
13613 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13614 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
13615 | else | |
13616 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
13617 | fi | |
13618 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13619 | hardcode_direct_FC=yes | |
13620 | hardcode_shlibpath_var_FC=no | |
13621 | ;; | |
13622 | ||
13623 | newsos6) | |
13624 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13625 | hardcode_direct_FC=yes | |
13626 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13627 | hardcode_libdir_separator_FC=: | |
13628 | hardcode_shlibpath_var_FC=no | |
13629 | ;; | |
13630 | ||
13631 | *nto* | *qnx*) | |
13632 | ;; | |
13633 | ||
13634 | openbsd*) | |
6d873a38 | 13635 | if test -f /usr/libexec/ld.so; then |
13636 | hardcode_direct_FC=yes | |
13637 | hardcode_shlibpath_var_FC=no | |
13638 | hardcode_direct_absolute_FC=yes | |
13639 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 13640 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6d873a38 | 13641 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 13642 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
6d873a38 | 13643 | export_dynamic_flag_spec_FC='${wl}-E' |
13644 | else | |
13645 | case $host_os in | |
13646 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
13647 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13648 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13649 | ;; | |
13650 | *) | |
13651 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
13652 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
13653 | ;; | |
13654 | esac | |
13655 | fi | |
13656 | else | |
13657 | ld_shlibs_FC=no | |
542f9784 | 13658 | fi |
13659 | ;; | |
13660 | ||
13661 | os2*) | |
13662 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13663 | hardcode_minus_L_FC=yes | |
13664 | allow_undefined_flag_FC=unsupported | |
e6408286 | 13665 | archive_cmds_FC='$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' |
542f9784 | 13666 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
13667 | ;; | |
13668 | ||
13669 | osf3*) | |
13670 | if test "$GCC" = yes; then | |
13671 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 13672 | archive_cmds_FC='$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' |
542f9784 | 13673 | else |
13674 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 13675 | archive_cmds_FC='$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' |
542f9784 | 13676 | fi |
13677 | archive_cmds_need_lc_FC='no' | |
13678 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13679 | hardcode_libdir_separator_FC=: | |
13680 | ;; | |
13681 | ||
13682 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
13683 | if test "$GCC" = yes; then | |
13684 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 13685 | archive_cmds_FC='$CC -shared${allow_undefined_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' |
542f9784 | 13686 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
13687 | else | |
13688 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 13689 | archive_cmds_FC='$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' |
542f9784 | 13690 | archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
e6408286 | 13691 | $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' |
542f9784 | 13692 | |
13693 | # Both c and cxx compiler support -rpath directly | |
13694 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
13695 | fi | |
13696 | archive_cmds_need_lc_FC='no' | |
13697 | hardcode_libdir_separator_FC=: | |
13698 | ;; | |
13699 | ||
13700 | solaris*) | |
13701 | no_undefined_flag_FC=' -z defs' | |
13702 | if test "$GCC" = yes; then | |
13703 | wlarc='${wl}' | |
13704 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13705 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13706 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13707 | else | |
13708 | case `$CC -V 2>&1` in | |
13709 | *"Compilers 5.0"*) | |
13710 | wlarc='' | |
13711 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13712 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13713 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
13714 | ;; | |
13715 | *) | |
13716 | wlarc='${wl}' | |
13717 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13718 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13719 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13720 | ;; | |
13721 | esac | |
13722 | fi | |
13723 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13724 | hardcode_shlibpath_var_FC=no | |
13725 | case $host_os in | |
13726 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13727 | *) | |
13728 | # The compiler driver will combine and reorder linker options, | |
13729 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
13730 | # but is careful enough not to reorder. | |
13731 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13732 | if test "$GCC" = yes; then | |
13733 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13734 | else | |
13735 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
13736 | fi | |
13737 | ;; | |
13738 | esac | |
13739 | link_all_deplibs_FC=yes | |
13740 | ;; | |
13741 | ||
13742 | sunos4*) | |
13743 | if test "x$host_vendor" = xsequent; then | |
13744 | # Use $CC to link under sequent, because it throws in some extra .o | |
13745 | # files that make .init and .fini sections work. | |
13746 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13747 | else | |
13748 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
13749 | fi | |
13750 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13751 | hardcode_direct_FC=yes | |
13752 | hardcode_minus_L_FC=yes | |
13753 | hardcode_shlibpath_var_FC=no | |
13754 | ;; | |
13755 | ||
13756 | sysv4) | |
13757 | case $host_vendor in | |
13758 | sni) | |
13759 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13760 | hardcode_direct_FC=yes # is this really true??? | |
13761 | ;; | |
13762 | siemens) | |
13763 | ## LD is ld it makes a PLAMLIB | |
13764 | ## CC just makes a GrossModule. | |
13765 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
13766 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
13767 | hardcode_direct_FC=no | |
13768 | ;; | |
13769 | motorola) | |
13770 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13771 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
13772 | ;; | |
1e8e9920 | 13773 | esac |
542f9784 | 13774 | runpath_var='LD_RUN_PATH' |
13775 | hardcode_shlibpath_var_FC=no | |
13776 | ;; | |
13777 | ||
13778 | sysv4.3*) | |
13779 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13780 | hardcode_shlibpath_var_FC=no | |
13781 | export_dynamic_flag_spec_FC='-Bexport' | |
13782 | ;; | |
13783 | ||
13784 | sysv4*MP*) | |
13785 | if test -d /usr/nec; then | |
13786 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13787 | hardcode_shlibpath_var_FC=no | |
13788 | runpath_var=LD_RUN_PATH | |
13789 | hardcode_runpath_var=yes | |
13790 | ld_shlibs_FC=yes | |
13791 | fi | |
13792 | ;; | |
13793 | ||
13794 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13795 | no_undefined_flag_FC='${wl}-z,text' | |
13796 | archive_cmds_need_lc_FC=no | |
13797 | hardcode_shlibpath_var_FC=no | |
13798 | runpath_var='LD_RUN_PATH' | |
13799 | ||
13800 | if test "$GCC" = yes; then | |
13801 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13802 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13803 | else | |
13804 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13805 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13806 | fi | |
13807 | ;; | |
13808 | ||
13809 | sysv5* | sco3.2v5* | sco5v6*) | |
13810 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13811 | # link with -lc, and that would cause any symbols used from libc to | |
13812 | # always be unresolved, which means just about no library would | |
13813 | # ever link correctly. If we're not using GNU ld we use -z text | |
13814 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13815 | # as -z defs. | |
13816 | no_undefined_flag_FC='${wl}-z,text' | |
13817 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
13818 | archive_cmds_need_lc_FC=no | |
13819 | hardcode_shlibpath_var_FC=no | |
13820 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
13821 | hardcode_libdir_separator_FC=':' | |
13822 | link_all_deplibs_FC=yes | |
13823 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
13824 | runpath_var='LD_RUN_PATH' | |
13825 | ||
13826 | if test "$GCC" = yes; then | |
13827 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13828 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13829 | else | |
13830 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13831 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13832 | fi | |
13833 | ;; | |
13834 | ||
13835 | uts4*) | |
13836 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13837 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13838 | hardcode_shlibpath_var_FC=no | |
13839 | ;; | |
13840 | ||
13841 | *) | |
13842 | ld_shlibs_FC=no | |
1e8e9920 | 13843 | ;; |
542f9784 | 13844 | esac |
13845 | ||
13846 | if test x$host_vendor = xsni; then | |
1e8e9920 | 13847 | case $host in |
542f9784 | 13848 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13849 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
13850 | ;; | |
1e8e9920 | 13851 | esac |
542f9784 | 13852 | fi |
1e8e9920 | 13853 | fi |
1e8e9920 | 13854 | |
cd9a469c | 13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
13856 | $as_echo "$ld_shlibs_FC" >&6; } | |
542f9784 | 13857 | test "$ld_shlibs_FC" = no && can_build_shared=no |
1e8e9920 | 13858 | |
542f9784 | 13859 | with_gnu_ld_FC=$with_gnu_ld |
1e8e9920 | 13860 | |
1e8e9920 | 13861 | |
1e8e9920 | 13862 | |
1e8e9920 | 13863 | |
542f9784 | 13864 | |
13865 | ||
13866 | # | |
13867 | # Do we need to explicitly link libc? | |
13868 | # | |
13869 | case "x$archive_cmds_need_lc_FC" in | |
13870 | x|xyes) | |
13871 | # Assume -lc should be added | |
13872 | archive_cmds_need_lc_FC=yes | |
13873 | ||
13874 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13875 | case $archive_cmds_FC in | |
13876 | *'~'*) | |
13877 | # FIXME: we may have to deal with multi-command sequences. | |
13878 | ;; | |
13879 | '$CC '*) | |
13880 | # Test whether the compiler implicitly links with -lc since on some | |
13881 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13882 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
13884 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
f00f02a3 | 13885 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
cd9a469c | 13886 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 13887 | else |
13888 | $RM conftest* | |
13889 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 13890 | |
cd9a469c | 13891 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 13892 | (eval $ac_compile) 2>&5 |
1e8e9920 | 13893 | ac_status=$? |
cd9a469c | 13894 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13895 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 13896 | soname=conftest |
13897 | lib=conftest | |
13898 | libobjs=conftest.$ac_objext | |
13899 | deplibs= | |
13900 | wl=$lt_prog_compiler_wl_FC | |
13901 | pic_flag=$lt_prog_compiler_pic_FC | |
13902 | compiler_flags=-v | |
13903 | linker_flags=-v | |
13904 | verstring= | |
13905 | output_objdir=. | |
13906 | libname=conftest | |
13907 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
13908 | allow_undefined_flag_FC= | |
cd9a469c | 13909 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 13910 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
1e8e9920 | 13911 | ac_status=$? |
cd9a469c | 13912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13913 | test $ac_status = 0; } | |
9e6fd619 | 13914 | then |
13915 | lt_cv_archive_cmds_need_lc_FC=no | |
13916 | else | |
13917 | lt_cv_archive_cmds_need_lc_FC=yes | |
13918 | fi | |
13919 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
13920 | else | |
13921 | cat conftest.err 1>&5 | |
13922 | fi | |
13923 | $RM conftest* | |
13924 | ||
13925 | fi | |
cd9a469c | 13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
13927 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
9e6fd619 | 13928 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
542f9784 | 13929 | ;; |
13930 | esac | |
1e8e9920 | 13931 | fi |
13932 | ;; | |
542f9784 | 13933 | esac |
13934 | ||
1e8e9920 | 13935 | |
13936 | ||
1e8e9920 | 13937 | |
13938 | ||
1e8e9920 | 13939 | |
1e8e9920 | 13940 | |
1e8e9920 | 13941 | |
1e8e9920 | 13942 | |
1e8e9920 | 13943 | |
13944 | ||
1e8e9920 | 13945 | |
1e8e9920 | 13946 | |
1e8e9920 | 13947 | |
13948 | ||
13949 | ||
13950 | ||
13951 | ||
13952 | ||
13953 | ||
13954 | ||
13955 | ||
a263d1ab | 13956 | |
13957 | ||
a263d1ab | 13958 | |
a263d1ab | 13959 | |
13960 | ||
13961 | ||
1e8e9920 | 13962 | |
1e8e9920 | 13963 | |
1e8e9920 | 13964 | |
1e8e9920 | 13965 | |
1e8e9920 | 13966 | |
1e8e9920 | 13967 | |
13968 | ||
1e8e9920 | 13969 | |
1e8e9920 | 13970 | |
1e8e9920 | 13971 | |
1e8e9920 | 13972 | |
1e8e9920 | 13973 | |
1e8e9920 | 13974 | |
1e8e9920 | 13975 | |
542f9784 | 13976 | |
13977 | ||
13978 | ||
13979 | ||
13980 | ||
13981 | ||
13982 | ||
13983 | ||
13984 | ||
13985 | ||
13986 | ||
13987 | ||
13988 | ||
13989 | ||
13990 | ||
13991 | ||
13992 | ||
13993 | ||
13994 | ||
13995 | ||
13996 | ||
13997 | ||
cd9a469c | 13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
13999 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
6d873a38 | 14000 | |
542f9784 | 14001 | library_names_spec= |
14002 | libname_spec='lib$name' | |
14003 | soname_spec= | |
14004 | shrext_cmds=".so" | |
14005 | postinstall_cmds= | |
14006 | postuninstall_cmds= | |
14007 | finish_cmds= | |
14008 | finish_eval= | |
14009 | shlibpath_var= | |
14010 | shlibpath_overrides_runpath=unknown | |
14011 | version_type=none | |
14012 | dynamic_linker="$host_os ld.so" | |
14013 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14014 | need_lib_prefix=unknown | |
14015 | hardcode_into_libs=no | |
14016 | ||
14017 | # when you set need_version to no, make sure it does not cause -set_version | |
14018 | # flags to be left without arguments | |
14019 | need_version=unknown | |
14020 | ||
14021 | case $host_os in | |
14022 | aix3*) | |
14023 | version_type=linux | |
14024 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14025 | shlibpath_var=LIBPATH | |
14026 | ||
14027 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14028 | soname_spec='${libname}${release}${shared_ext}$major' | |
14029 | ;; | |
14030 | ||
c8db569e | 14031 | aix[4-9]*) |
542f9784 | 14032 | version_type=linux |
14033 | need_lib_prefix=no | |
14034 | need_version=no | |
14035 | hardcode_into_libs=yes | |
14036 | if test "$host_cpu" = ia64; then | |
14037 | # AIX 5 supports IA64 | |
14038 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14039 | shlibpath_var=LD_LIBRARY_PATH | |
1e8e9920 | 14040 | else |
542f9784 | 14041 | # With GCC up to 2.95.x, collect2 would create an import file |
14042 | # for dependence libraries. The import file would start with | |
14043 | # the line `#! .'. This would cause the generated library to | |
14044 | # depend on `.', always an invalid library. This was fixed in | |
14045 | # development snapshots of GCC prior to 3.0. | |
14046 | case $host_os in | |
14047 | aix4 | aix4.[01] | aix4.[01].*) | |
14048 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14049 | echo ' yes ' | |
14050 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14051 | : | |
14052 | else | |
14053 | can_build_shared=no | |
14054 | fi | |
14055 | ;; | |
14056 | esac | |
14057 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14058 | # soname into executable. Probably we can add versioning support to | |
14059 | # collect2, so additional links can be useful in future. | |
14060 | if test "$aix_use_runtimelinking" = yes; then | |
14061 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14062 | # instead of lib<name>.a to let people know that these are not | |
14063 | # typical AIX shared libraries. | |
14064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14065 | else | |
14066 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14067 | # and later when we are not doing run time linking. | |
14068 | library_names_spec='${libname}${release}.a $libname.a' | |
14069 | soname_spec='${libname}${release}${shared_ext}$major' | |
14070 | fi | |
14071 | shlibpath_var=LIBPATH | |
1e8e9920 | 14072 | fi |
542f9784 | 14073 | ;; |
14074 | ||
14075 | amigaos*) | |
6d873a38 | 14076 | case $host_cpu in |
14077 | powerpc) | |
14078 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14079 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14081 | ;; | |
14082 | m68k) | |
542f9784 | 14083 | library_names_spec='$libname.ixlibrary $libname.a' |
14084 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 14085 | 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' |
6d873a38 | 14086 | ;; |
14087 | esac | |
542f9784 | 14088 | ;; |
1e8e9920 | 14089 | |
542f9784 | 14090 | beos*) |
14091 | library_names_spec='${libname}${shared_ext}' | |
14092 | dynamic_linker="$host_os ld.so" | |
14093 | shlibpath_var=LIBRARY_PATH | |
14094 | ;; | |
1e8e9920 | 14095 | |
542f9784 | 14096 | bsdi[45]*) |
14097 | version_type=linux | |
14098 | need_version=no | |
14099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14100 | soname_spec='${libname}${release}${shared_ext}$major' | |
14101 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14102 | shlibpath_var=LD_LIBRARY_PATH | |
14103 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14104 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14105 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14106 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14107 | # libtool to hard-code these into programs | |
14108 | ;; | |
1e8e9920 | 14109 | |
6d873a38 | 14110 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14111 | version_type=windows |
14112 | shrext_cmds=".dll" | |
14113 | need_version=no | |
14114 | need_lib_prefix=no | |
14115 | ||
6d873a38 | 14116 | case $GCC,$host_os in |
14117 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 14118 | library_names_spec='$libname.dll.a' |
14119 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14120 | postinstall_cmds='base_file=`basename \${file}`~ | |
14121 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14122 | dldir=$destdir/`dirname \$dlpath`~ | |
14123 | test -d \$dldir || mkdir -p \$dldir~ | |
14124 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14125 | chmod a+x \$dldir/$dlname~ | |
14126 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14127 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14128 | fi' | |
14129 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14130 | dlpath=$dir/\$dldll~ | |
14131 | $RM \$dlpath' | |
14132 | shlibpath_overrides_runpath=yes | |
14133 | ||
14134 | case $host_os in | |
14135 | cygwin*) | |
14136 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14137 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 14138 | |
542f9784 | 14139 | ;; |
6d873a38 | 14140 | mingw* | cegcc*) |
542f9784 | 14141 | # MinGW DLLs use traditional 'lib' prefix |
14142 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 14143 | ;; |
14144 | pw32*) | |
14145 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14146 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14147 | ;; | |
14148 | esac | |
14149 | ;; | |
1e8e9920 | 14150 | |
542f9784 | 14151 | *) |
14152 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14153 | ;; | |
14154 | esac | |
14155 | dynamic_linker='Win32 ld.exe' | |
14156 | # FIXME: first we should search . and the directory the executable is in | |
14157 | shlibpath_var=PATH | |
14158 | ;; | |
1e8e9920 | 14159 | |
542f9784 | 14160 | darwin* | rhapsody*) |
14161 | dynamic_linker="$host_os dyld" | |
14162 | version_type=darwin | |
14163 | need_lib_prefix=no | |
14164 | need_version=no | |
14165 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14166 | soname_spec='${libname}${release}${major}$shared_ext' | |
14167 | shlibpath_overrides_runpath=yes | |
14168 | shlibpath_var=DYLD_LIBRARY_PATH | |
14169 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14170 | ||
14171 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14172 | ;; | |
14173 | ||
14174 | dgux*) | |
14175 | version_type=linux | |
14176 | need_lib_prefix=no | |
14177 | need_version=no | |
14178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14179 | soname_spec='${libname}${release}${shared_ext}$major' | |
14180 | shlibpath_var=LD_LIBRARY_PATH | |
14181 | ;; | |
14182 | ||
542f9784 | 14183 | freebsd* | dragonfly*) |
14184 | # DragonFly does not have aout. When/if they implement a new | |
14185 | # versioning mechanism, adjust this. | |
14186 | if test -x /usr/bin/objformat; then | |
14187 | objformat=`/usr/bin/objformat` | |
1e8e9920 | 14188 | else |
542f9784 | 14189 | case $host_os in |
30369aff | 14190 | freebsd[23].*) objformat=aout ;; |
542f9784 | 14191 | *) objformat=elf ;; |
14192 | esac | |
1e8e9920 | 14193 | fi |
542f9784 | 14194 | version_type=freebsd-$objformat |
14195 | case $version_type in | |
14196 | freebsd-elf*) | |
14197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14198 | need_version=no | |
14199 | need_lib_prefix=no | |
14200 | ;; | |
14201 | freebsd-*) | |
14202 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14203 | need_version=yes | |
14204 | ;; | |
14205 | esac | |
14206 | shlibpath_var=LD_LIBRARY_PATH | |
14207 | case $host_os in | |
30369aff | 14208 | freebsd2.*) |
542f9784 | 14209 | shlibpath_overrides_runpath=yes |
14210 | ;; | |
14211 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14212 | shlibpath_overrides_runpath=yes | |
14213 | hardcode_into_libs=yes | |
14214 | ;; | |
14215 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14216 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14217 | shlibpath_overrides_runpath=no | |
14218 | hardcode_into_libs=yes | |
14219 | ;; | |
14220 | *) # from 4.6 on, and DragonFly | |
14221 | shlibpath_overrides_runpath=yes | |
14222 | hardcode_into_libs=yes | |
14223 | ;; | |
14224 | esac | |
14225 | ;; | |
1e8e9920 | 14226 | |
542f9784 | 14227 | gnu*) |
14228 | version_type=linux | |
14229 | need_lib_prefix=no | |
14230 | need_version=no | |
14231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14232 | soname_spec='${libname}${release}${shared_ext}$major' | |
14233 | shlibpath_var=LD_LIBRARY_PATH | |
14234 | hardcode_into_libs=yes | |
14235 | ;; | |
1e8e9920 | 14236 | |
e6408286 | 14237 | haiku*) |
14238 | version_type=linux | |
14239 | need_lib_prefix=no | |
14240 | need_version=no | |
14241 | dynamic_linker="$host_os runtime_loader" | |
14242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14243 | soname_spec='${libname}${release}${shared_ext}$major' | |
14244 | shlibpath_var=LIBRARY_PATH | |
14245 | shlibpath_overrides_runpath=yes | |
14246 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
14247 | hardcode_into_libs=yes | |
14248 | ;; | |
14249 | ||
542f9784 | 14250 | hpux9* | hpux10* | hpux11*) |
14251 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14252 | # link against other versions. | |
14253 | version_type=sunos | |
14254 | need_lib_prefix=no | |
14255 | need_version=no | |
14256 | case $host_cpu in | |
14257 | ia64*) | |
14258 | shrext_cmds='.so' | |
14259 | hardcode_into_libs=yes | |
14260 | dynamic_linker="$host_os dld.so" | |
14261 | shlibpath_var=LD_LIBRARY_PATH | |
14262 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14264 | soname_spec='${libname}${release}${shared_ext}$major' | |
14265 | if test "X$HPUX_IA64_MODE" = X32; then | |
14266 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14267 | else | |
14268 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14269 | fi | |
14270 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14271 | ;; | |
14272 | hppa*64*) | |
14273 | shrext_cmds='.sl' | |
14274 | hardcode_into_libs=yes | |
14275 | dynamic_linker="$host_os dld.sl" | |
14276 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14277 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14279 | soname_spec='${libname}${release}${shared_ext}$major' | |
14280 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14281 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14282 | ;; | |
14283 | *) | |
14284 | shrext_cmds='.sl' | |
14285 | dynamic_linker="$host_os dld.sl" | |
14286 | shlibpath_var=SHLIB_PATH | |
14287 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14289 | soname_spec='${libname}${release}${shared_ext}$major' | |
14290 | ;; | |
14291 | esac | |
e6408286 | 14292 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 14293 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 14294 | # or fails outright, so override atomically: |
14295 | install_override_mode=555 | |
542f9784 | 14296 | ;; |
14297 | ||
14298 | interix[3-9]*) | |
14299 | version_type=linux | |
14300 | need_lib_prefix=no | |
14301 | need_version=no | |
14302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14303 | soname_spec='${libname}${release}${shared_ext}$major' | |
14304 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14305 | shlibpath_var=LD_LIBRARY_PATH | |
14306 | shlibpath_overrides_runpath=no | |
14307 | hardcode_into_libs=yes | |
14308 | ;; | |
14309 | ||
14310 | irix5* | irix6* | nonstopux*) | |
14311 | case $host_os in | |
14312 | nonstopux*) version_type=nonstopux ;; | |
14313 | *) | |
14314 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14315 | version_type=linux | |
14316 | else | |
14317 | version_type=irix | |
14318 | fi ;; | |
14319 | esac | |
14320 | need_lib_prefix=no | |
14321 | need_version=no | |
14322 | soname_spec='${libname}${release}${shared_ext}$major' | |
14323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14324 | case $host_os in | |
14325 | irix5* | nonstopux*) | |
14326 | libsuff= shlibsuff= | |
14327 | ;; | |
14328 | *) | |
14329 | case $LD in # libtool.m4 will add one of these switches to LD | |
14330 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14331 | libsuff= shlibsuff= libmagic=32-bit;; | |
14332 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14333 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14334 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14335 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14336 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14337 | esac | |
14338 | ;; | |
14339 | esac | |
14340 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14341 | shlibpath_overrides_runpath=no | |
14342 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14343 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14344 | hardcode_into_libs=yes | |
14345 | ;; | |
14346 | ||
14347 | # No shared lib support for Linux oldld, aout, or coff. | |
14348 | linux*oldld* | linux*aout* | linux*coff*) | |
14349 | dynamic_linker=no | |
14350 | ;; | |
14351 | ||
14352 | # This must be Linux ELF. | |
9af964d4 | 14353 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 14354 | version_type=linux |
14355 | need_lib_prefix=no | |
14356 | need_version=no | |
14357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14358 | soname_spec='${libname}${release}${shared_ext}$major' | |
14359 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14360 | shlibpath_var=LD_LIBRARY_PATH | |
14361 | shlibpath_overrides_runpath=no | |
9e6fd619 | 14362 | |
542f9784 | 14363 | # Some binutils ld are patched to set DT_RUNPATH |
f00f02a3 | 14364 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
cd9a469c | 14365 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 14366 | else |
14367 | lt_cv_shlibpath_overrides_runpath=no | |
14368 | save_LDFLAGS=$LDFLAGS | |
14369 | save_libdir=$libdir | |
14370 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
14371 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
cd9a469c | 14372 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14373 | program main |
14374 | ||
14375 | end | |
1e8e9920 | 14376 | _ACEOF |
cd9a469c | 14377 | if ac_fn_fc_try_link "$LINENO"; then : |
14378 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 14379 | lt_cv_shlibpath_overrides_runpath=yes |
1e8e9920 | 14380 | fi |
1e8e9920 | 14381 | fi |
cd9a469c | 14382 | rm -f core conftest.err conftest.$ac_objext \ |
14383 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 14384 | LDFLAGS=$save_LDFLAGS |
14385 | libdir=$save_libdir | |
14386 | ||
14387 | fi | |
14388 | ||
14389 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 14390 | |
14391 | # This implies no fast_install, which is unacceptable. | |
14392 | # Some rework will be needed to allow for fast_install | |
14393 | # before this can be enabled. | |
14394 | hardcode_into_libs=yes | |
14395 | ||
14396 | # Append ld.so.conf contents to the search path | |
14397 | if test -f /etc/ld.so.conf; then | |
e6408286 | 14398 | 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' ' '` |
542f9784 | 14399 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
14400 | fi | |
1e8e9920 | 14401 | |
542f9784 | 14402 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14403 | # powerpc, because MkLinux only supported shared libraries with the | |
14404 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14405 | # most powerpc-linux boxes support dynamic linking these days and | |
14406 | # people can always --disable-shared, the test was removed, and we | |
14407 | # assume the GNU/Linux dynamic linker is in use. | |
14408 | dynamic_linker='GNU/Linux ld.so' | |
14409 | ;; | |
1e8e9920 | 14410 | |
542f9784 | 14411 | netbsd*) |
14412 | version_type=sunos | |
14413 | need_lib_prefix=no | |
14414 | need_version=no | |
14415 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14417 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14418 | dynamic_linker='NetBSD (a.out) ld.so' | |
14419 | else | |
14420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14421 | soname_spec='${libname}${release}${shared_ext}$major' | |
14422 | dynamic_linker='NetBSD ld.elf_so' | |
14423 | fi | |
14424 | shlibpath_var=LD_LIBRARY_PATH | |
14425 | shlibpath_overrides_runpath=yes | |
14426 | hardcode_into_libs=yes | |
14427 | ;; | |
1e8e9920 | 14428 | |
542f9784 | 14429 | newsos6) |
14430 | version_type=linux | |
14431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14432 | shlibpath_var=LD_LIBRARY_PATH | |
14433 | shlibpath_overrides_runpath=yes | |
14434 | ;; | |
14435 | ||
14436 | *nto* | *qnx*) | |
14437 | version_type=qnx | |
14438 | need_lib_prefix=no | |
14439 | need_version=no | |
14440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14441 | soname_spec='${libname}${release}${shared_ext}$major' | |
14442 | shlibpath_var=LD_LIBRARY_PATH | |
14443 | shlibpath_overrides_runpath=no | |
14444 | hardcode_into_libs=yes | |
14445 | dynamic_linker='ldqnx.so' | |
14446 | ;; | |
14447 | ||
14448 | openbsd*) | |
14449 | version_type=sunos | |
14450 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14451 | need_lib_prefix=no | |
14452 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14453 | case $host_os in | |
14454 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14455 | *) need_version=no ;; | |
14456 | esac | |
14457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14458 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14459 | shlibpath_var=LD_LIBRARY_PATH | |
14460 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14461 | case $host_os in | |
14462 | openbsd2.[89] | openbsd2.[89].*) | |
14463 | shlibpath_overrides_runpath=no | |
14464 | ;; | |
14465 | *) | |
14466 | shlibpath_overrides_runpath=yes | |
14467 | ;; | |
14468 | esac | |
1e8e9920 | 14469 | else |
542f9784 | 14470 | shlibpath_overrides_runpath=yes |
1e8e9920 | 14471 | fi |
542f9784 | 14472 | ;; |
1e8e9920 | 14473 | |
542f9784 | 14474 | os2*) |
14475 | libname_spec='$name' | |
14476 | shrext_cmds=".dll" | |
14477 | need_lib_prefix=no | |
14478 | library_names_spec='$libname${shared_ext} $libname.a' | |
14479 | dynamic_linker='OS/2 ld.exe' | |
14480 | shlibpath_var=LIBPATH | |
14481 | ;; | |
14482 | ||
14483 | osf3* | osf4* | osf5*) | |
14484 | version_type=osf | |
14485 | need_lib_prefix=no | |
14486 | need_version=no | |
14487 | soname_spec='${libname}${release}${shared_ext}$major' | |
14488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14489 | shlibpath_var=LD_LIBRARY_PATH | |
14490 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14491 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14492 | ;; | |
14493 | ||
14494 | rdos*) | |
14495 | dynamic_linker=no | |
14496 | ;; | |
14497 | ||
14498 | solaris*) | |
14499 | version_type=linux | |
14500 | need_lib_prefix=no | |
14501 | need_version=no | |
14502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14503 | soname_spec='${libname}${release}${shared_ext}$major' | |
14504 | shlibpath_var=LD_LIBRARY_PATH | |
14505 | shlibpath_overrides_runpath=yes | |
14506 | hardcode_into_libs=yes | |
14507 | # ldd complains unless libraries are executable | |
14508 | postinstall_cmds='chmod +x $lib' | |
14509 | ;; | |
14510 | ||
14511 | sunos4*) | |
14512 | version_type=sunos | |
14513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14514 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14515 | shlibpath_var=LD_LIBRARY_PATH | |
14516 | shlibpath_overrides_runpath=yes | |
14517 | if test "$with_gnu_ld" = yes; then | |
14518 | need_lib_prefix=no | |
14519 | fi | |
14520 | need_version=yes | |
14521 | ;; | |
14522 | ||
14523 | sysv4 | sysv4.3*) | |
14524 | version_type=linux | |
14525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14526 | soname_spec='${libname}${release}${shared_ext}$major' | |
14527 | shlibpath_var=LD_LIBRARY_PATH | |
14528 | case $host_vendor in | |
14529 | sni) | |
14530 | shlibpath_overrides_runpath=no | |
14531 | need_lib_prefix=no | |
14532 | runpath_var=LD_RUN_PATH | |
14533 | ;; | |
14534 | siemens) | |
14535 | need_lib_prefix=no | |
14536 | ;; | |
14537 | motorola) | |
14538 | need_lib_prefix=no | |
14539 | need_version=no | |
14540 | shlibpath_overrides_runpath=no | |
14541 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14542 | ;; | |
14543 | esac | |
14544 | ;; | |
14545 | ||
14546 | sysv4*MP*) | |
14547 | if test -d /usr/nec ;then | |
14548 | version_type=linux | |
14549 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14550 | soname_spec='$libname${shared_ext}.$major' | |
14551 | shlibpath_var=LD_LIBRARY_PATH | |
14552 | fi | |
14553 | ;; | |
14554 | ||
14555 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14556 | version_type=freebsd-elf | |
14557 | need_lib_prefix=no | |
14558 | need_version=no | |
14559 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14560 | soname_spec='${libname}${release}${shared_ext}$major' | |
14561 | shlibpath_var=LD_LIBRARY_PATH | |
14562 | shlibpath_overrides_runpath=yes | |
14563 | hardcode_into_libs=yes | |
14564 | if test "$with_gnu_ld" = yes; then | |
14565 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14566 | else | |
14567 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14568 | case $host_os in | |
14569 | sco3.2v5*) | |
14570 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14571 | ;; | |
14572 | esac | |
14573 | fi | |
14574 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14575 | ;; | |
14576 | ||
14577 | tpf*) | |
14578 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14579 | version_type=linux | |
14580 | need_lib_prefix=no | |
14581 | need_version=no | |
6d873a38 | 14582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 14583 | shlibpath_var=LD_LIBRARY_PATH |
14584 | shlibpath_overrides_runpath=no | |
14585 | hardcode_into_libs=yes | |
14586 | ;; | |
14587 | ||
14588 | uts4*) | |
14589 | version_type=linux | |
14590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14591 | soname_spec='${libname}${release}${shared_ext}$major' | |
14592 | shlibpath_var=LD_LIBRARY_PATH | |
14593 | ;; | |
14594 | ||
14595 | *) | |
14596 | dynamic_linker=no | |
14597 | ;; | |
14598 | esac | |
cd9a469c | 14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
14600 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 14601 | test "$dynamic_linker" = no && can_build_shared=no |
14602 | ||
cd9a469c | 14603 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
14604 | if test "$GCC" = yes; then | |
14605 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14606 | fi | |
8a75144c | 14607 | |
cd9a469c | 14608 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14609 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14610 | fi | |
14611 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14612 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
8a75144c | 14613 | fi |
14614 | ||
1e8e9920 | 14615 | |
14616 | ||
1e8e9920 | 14617 | |
1e8e9920 | 14618 | |
14619 | ||
fd6481cf | 14620 | |
fd6481cf | 14621 | |
fd6481cf | 14622 | |
1e8e9920 | 14623 | |
1e8e9920 | 14624 | |
1e8e9920 | 14625 | |
1e8e9920 | 14626 | |
1e8e9920 | 14627 | |
1e8e9920 | 14628 | |
1e8e9920 | 14629 | |
1e8e9920 | 14630 | |
1e8e9920 | 14631 | |
14632 | ||
14633 | ||
14634 | ||
14635 | ||
1e8e9920 | 14636 | |
1e8e9920 | 14637 | |
1e8e9920 | 14638 | |
1e8e9920 | 14639 | |
1e8e9920 | 14640 | |
14641 | ||
14642 | ||
14643 | ||
1e8e9920 | 14644 | |
14645 | ||
107c3bbf | 14646 | |
e6408286 | 14647 | |
14648 | ||
107c3bbf | 14649 | |
107c3bbf | 14650 | |
107c3bbf | 14651 | |
cd9a469c | 14652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
14653 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14654 | hardcode_action_FC= | |
14655 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
14656 | test -n "$runpath_var_FC" || | |
14657 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
107c3bbf | 14658 | |
cd9a469c | 14659 | # We can hardcode non-existent directories. |
14660 | if test "$hardcode_direct_FC" != no && | |
14661 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14662 | # have to relink, otherwise we might link with an installed library | |
14663 | # when we should be linking with a yet-to-be-installed one | |
14664 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
14665 | test "$hardcode_minus_L_FC" != no; then | |
14666 | # Linking always hardcodes the temporary library directory. | |
14667 | hardcode_action_FC=relink | |
14668 | else | |
14669 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14670 | hardcode_action_FC=immediate | |
14671 | fi | |
107c3bbf | 14672 | else |
cd9a469c | 14673 | # We cannot hardcode anything, or else we can only hardcode existing |
14674 | # directories. | |
14675 | hardcode_action_FC=unsupported | |
14676 | fi | |
14677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 | |
14678 | $as_echo "$hardcode_action_FC" >&6; } | |
107c3bbf | 14679 | |
cd9a469c | 14680 | if test "$hardcode_action_FC" = relink || |
14681 | test "$inherit_rpath_FC" = yes; then | |
14682 | # Fast installation is not supported | |
14683 | enable_fast_install=no | |
14684 | elif test "$shlibpath_overrides_runpath" = yes || | |
14685 | test "$enable_shared" = no; then | |
14686 | # Fast installation is not necessary | |
14687 | enable_fast_install=needless | |
107c3bbf | 14688 | fi |
107c3bbf | 14689 | |
107c3bbf | 14690 | |
107c3bbf | 14691 | |
107c3bbf | 14692 | |
107c3bbf | 14693 | |
107c3bbf | 14694 | |
107c3bbf | 14695 | |
cd9a469c | 14696 | fi # test -n "$compiler" |
107c3bbf | 14697 | |
cd9a469c | 14698 | GCC=$lt_save_GCC |
14699 | CC="$lt_save_CC" | |
14700 | fi # test "$_lt_disable_FC" != yes | |
107c3bbf | 14701 | |
cd9a469c | 14702 | ac_ext=c |
14703 | ac_cpp='$CPP $CPPFLAGS' | |
14704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14707 | ||
14708 | ||
87969c8c | 14709 | FCFLAGS="$FCFLAGS -Wall -L../libgfortran" |
cd9a469c | 14710 | |
14711 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
14712 | libtool_VERSION=1:0:0 | |
107c3bbf | 14713 | |
cd9a469c | 14714 | |
14715 | # Check header files. | |
14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
14717 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
f00f02a3 | 14718 | if ${ac_cv_header_stdc+:} false; then : |
cd9a469c | 14719 | $as_echo_n "(cached) " >&6 |
107c3bbf | 14720 | else |
cd9a469c | 14721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
107c3bbf | 14722 | /* end confdefs.h. */ |
107c3bbf | 14723 | #include <stdlib.h> |
cd9a469c | 14724 | #include <stdarg.h> |
14725 | #include <string.h> | |
14726 | #include <float.h> | |
14727 | ||
107c3bbf | 14728 | int |
14729 | main () | |
14730 | { | |
14731 | ||
107c3bbf | 14732 | ; |
14733 | return 0; | |
14734 | } | |
14735 | _ACEOF | |
cd9a469c | 14736 | if ac_fn_c_try_compile "$LINENO"; then : |
14737 | ac_cv_header_stdc=yes | |
107c3bbf | 14738 | else |
cd9a469c | 14739 | ac_cv_header_stdc=no |
107c3bbf | 14740 | fi |
cd9a469c | 14741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
107c3bbf | 14742 | |
cd9a469c | 14743 | if test $ac_cv_header_stdc = yes; then |
14744 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
107c3bbf | 14746 | /* end confdefs.h. */ |
cd9a469c | 14747 | #include <string.h> |
107c3bbf | 14748 | |
107c3bbf | 14749 | _ACEOF |
cd9a469c | 14750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14751 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14752 | ||
107c3bbf | 14753 | else |
cd9a469c | 14754 | ac_cv_header_stdc=no |
14755 | fi | |
14756 | rm -f conftest* | |
107c3bbf | 14757 | |
107c3bbf | 14758 | fi |
107c3bbf | 14759 | |
cd9a469c | 14760 | if test $ac_cv_header_stdc = yes; then |
14761 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
107c3bbf | 14763 | /* end confdefs.h. */ |
cd9a469c | 14764 | #include <stdlib.h> |
107c3bbf | 14765 | |
107c3bbf | 14766 | _ACEOF |
cd9a469c | 14767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14768 | $EGREP "free" >/dev/null 2>&1; then : | |
14769 | ||
14770 | else | |
14771 | ac_cv_header_stdc=no | |
14772 | fi | |
14773 | rm -f conftest* | |
14774 | ||
14775 | fi | |
14776 | ||
14777 | if test $ac_cv_header_stdc = yes; then | |
14778 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14779 | if test "$cross_compiling" = yes; then : | |
14780 | : | |
14781 | else | |
14782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
107c3bbf | 14783 | /* end confdefs.h. */ |
cd9a469c | 14784 | #include <ctype.h> |
14785 | #include <stdlib.h> | |
14786 | #if ((' ' & 0x0FF) == 0x020) | |
14787 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14788 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14789 | #else | |
14790 | # define ISLOWER(c) \ | |
14791 | (('a' <= (c) && (c) <= 'i') \ | |
14792 | || ('j' <= (c) && (c) <= 'r') \ | |
14793 | || ('s' <= (c) && (c) <= 'z')) | |
14794 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
14795 | #endif | |
107c3bbf | 14796 | |
cd9a469c | 14797 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
107c3bbf | 14798 | int |
14799 | main () | |
14800 | { | |
cd9a469c | 14801 | int i; |
14802 | for (i = 0; i < 256; i++) | |
14803 | if (XOR (islower (i), ISLOWER (i)) | |
14804 | || toupper (i) != TOUPPER (i)) | |
14805 | return 2; | |
107c3bbf | 14806 | return 0; |
14807 | } | |
14808 | _ACEOF | |
cd9a469c | 14809 | if ac_fn_c_try_run "$LINENO"; then : |
107c3bbf | 14810 | |
107c3bbf | 14811 | else |
cd9a469c | 14812 | ac_cv_header_stdc=no |
14813 | fi | |
14814 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14815 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14816 | fi | |
107c3bbf | 14817 | |
107c3bbf | 14818 | fi |
107c3bbf | 14819 | fi |
cd9a469c | 14820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
14821 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14822 | if test $ac_cv_header_stdc = yes; then | |
14823 | ||
14824 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
14825 | ||
14826 | fi | |
14827 | ||
14828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
14829 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
f00f02a3 | 14830 | if ${ac_cv_header_time+:} false; then : |
cd9a469c | 14831 | $as_echo_n "(cached) " >&6 |
14832 | else | |
14833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
107c3bbf | 14834 | /* end confdefs.h. */ |
cd9a469c | 14835 | #include <sys/types.h> |
14836 | #include <sys/time.h> | |
14837 | #include <time.h> | |
107c3bbf | 14838 | |
14839 | int | |
14840 | main () | |
14841 | { | |
cd9a469c | 14842 | if ((struct tm *) 0) |
14843 | return 0; | |
107c3bbf | 14844 | ; |
14845 | return 0; | |
14846 | } | |
14847 | _ACEOF | |
cd9a469c | 14848 | if ac_fn_c_try_compile "$LINENO"; then : |
14849 | ac_cv_header_time=yes | |
107c3bbf | 14850 | else |
cd9a469c | 14851 | ac_cv_header_time=no |
14852 | fi | |
14853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14854 | fi | |
14855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
14856 | $as_echo "$ac_cv_header_time" >&6; } | |
14857 | if test $ac_cv_header_time = yes; then | |
14858 | ||
14859 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
107c3bbf | 14860 | |
107c3bbf | 14861 | fi |
cd9a469c | 14862 | |
14863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
14864 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
f00f02a3 | 14865 | if ${gcc_cv_header_string+:} false; then : |
cd9a469c | 14866 | $as_echo_n "(cached) " >&6 |
107c3bbf | 14867 | else |
cd9a469c | 14868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
107c3bbf | 14869 | /* end confdefs.h. */ |
cd9a469c | 14870 | #include <string.h> |
14871 | #include <strings.h> | |
107c3bbf | 14872 | int |
14873 | main () | |
14874 | { | |
14875 | ||
107c3bbf | 14876 | ; |
14877 | return 0; | |
14878 | } | |
14879 | _ACEOF | |
cd9a469c | 14880 | if ac_fn_c_try_compile "$LINENO"; then : |
14881 | gcc_cv_header_string=yes | |
107c3bbf | 14882 | else |
cd9a469c | 14883 | gcc_cv_header_string=no |
107c3bbf | 14884 | fi |
cd9a469c | 14885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
107c3bbf | 14886 | fi |
cd9a469c | 14887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
14888 | $as_echo "$gcc_cv_header_string" >&6; } | |
14889 | if test $gcc_cv_header_string = yes; then | |
14890 | ||
14891 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
14892 | ||
107c3bbf | 14893 | fi |
cd9a469c | 14894 | |
85f988d0 | 14895 | for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h |
cd9a469c | 14896 | do : |
14897 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14898 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
f00f02a3 | 14899 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
cd9a469c | 14900 | cat >>confdefs.h <<_ACEOF |
14901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
107c3bbf | 14902 | _ACEOF |
107c3bbf | 14903 | |
cd9a469c | 14904 | fi |
107c3bbf | 14905 | |
cd9a469c | 14906 | done |
107c3bbf | 14907 | |
107c3bbf | 14908 | |
cd9a469c | 14909 | |
14910 | ||
14911 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
14912 | ||
14913 | acx_cv_header_stdint=stddef.h | |
14914 | acx_cv_header_stdint_kind="(already complete)" | |
14915 | for i in stdint.h $inttype_headers; do | |
14916 | unset ac_cv_type_uintptr_t | |
14917 | unset ac_cv_type_uintmax_t | |
14918 | unset ac_cv_type_int_least32_t | |
14919 | unset ac_cv_type_int_fast32_t | |
14920 | unset ac_cv_type_uint64_t | |
14921 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
14922 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
14923 | #include <$i> | |
14924 | " | |
f00f02a3 | 14925 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
cd9a469c | 14926 | acx_cv_header_stdint=$i |
14927 | else | |
14928 | continue | |
14929 | fi | |
14930 | ||
14931 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
14932 | #include <$i> | |
14933 | " | |
f00f02a3 | 14934 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
cd9a469c | 14935 | |
14936 | else | |
14937 | acx_cv_header_stdint_kind="(mostly complete)" | |
14938 | fi | |
14939 | ||
14940 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> | |
14941 | #include <$i> | |
14942 | " | |
f00f02a3 | 14943 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
cd9a469c | 14944 | |
14945 | else | |
14946 | acx_cv_header_stdint_kind="(mostly complete)" | |
14947 | fi | |
14948 | ||
14949 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> | |
14950 | #include <$i> | |
14951 | " | |
f00f02a3 | 14952 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
cd9a469c | 14953 | |
107c3bbf | 14954 | else |
cd9a469c | 14955 | acx_cv_header_stdint_kind="(mostly complete)" |
14956 | fi | |
107c3bbf | 14957 | |
cd9a469c | 14958 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
14959 | #include <$i> | |
14960 | " | |
f00f02a3 | 14961 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
cd9a469c | 14962 | |
14963 | else | |
14964 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
107c3bbf | 14965 | fi |
cd9a469c | 14966 | |
14967 | break | |
14968 | done | |
14969 | if test "$acx_cv_header_stdint" = stddef.h; then | |
14970 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
14971 | for i in stdint.h $inttype_headers; do | |
14972 | unset ac_cv_type_uintptr_t | |
14973 | unset ac_cv_type_uint32_t | |
14974 | unset ac_cv_type_uint64_t | |
14975 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
14976 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
14977 | #include <$i> | |
14978 | " | |
f00f02a3 | 14979 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
cd9a469c | 14980 | acx_cv_header_stdint=$i |
107c3bbf | 14981 | else |
cd9a469c | 14982 | continue |
14983 | fi | |
107c3bbf | 14984 | |
cd9a469c | 14985 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
14986 | #include <$i> | |
14987 | " | |
f00f02a3 | 14988 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
107c3bbf | 14989 | |
cd9a469c | 14990 | fi |
107c3bbf | 14991 | |
cd9a469c | 14992 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
14993 | #include <$i> | |
14994 | " | |
f00f02a3 | 14995 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
107c3bbf | 14996 | |
cd9a469c | 14997 | fi |
107c3bbf | 14998 | |
cd9a469c | 14999 | break |
15000 | done | |
15001 | fi | |
15002 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15003 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
15004 | for i in sys/types.h $inttype_headers; do | |
15005 | unset ac_cv_type_u_int32_t | |
15006 | unset ac_cv_type_u_int64_t | |
15007 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
15008 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
15009 | #include <$i> | |
15010 | " | |
f00f02a3 | 15011 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
cd9a469c | 15012 | acx_cv_header_stdint=$i |
107c3bbf | 15013 | else |
cd9a469c | 15014 | continue |
15015 | fi | |
15016 | ||
15017 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> | |
15018 | #include <$i> | |
15019 | " | |
f00f02a3 | 15020 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
107c3bbf | 15021 | |
107c3bbf | 15022 | fi |
107c3bbf | 15023 | |
cd9a469c | 15024 | break |
15025 | done | |
107c3bbf | 15026 | fi |
cd9a469c | 15027 | if test "$acx_cv_header_stdint" = stddef.h; then |
15028 | acx_cv_header_stdint_kind="(using manual detection)" | |
107c3bbf | 15029 | fi |
107c3bbf | 15030 | |
cd9a469c | 15031 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
15032 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
15033 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
15034 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
15035 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
107c3bbf | 15036 | |
cd9a469c | 15037 | # ----------------- Summarize what we found so far |
107c3bbf | 15038 | |
cd9a469c | 15039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
15040 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
15041 | ||
15042 | case `$as_basename -- gstdint.h || | |
15043 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
15044 | Xgstdint.h : 'X\(//\)$' \| \ | |
15045 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
15046 | $as_echo X/gstdint.h | | |
15047 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15048 | s//\1/ | |
15049 | q | |
15050 | } | |
15051 | /^X\/\(\/\/\)$/{ | |
15052 | s//\1/ | |
15053 | q | |
15054 | } | |
15055 | /^X\/\(\/\).*/{ | |
15056 | s//\1/ | |
15057 | q | |
15058 | } | |
15059 | s/.*/./; q'` in | |
15060 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
15061 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15062 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
15063 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15064 | *) ;; | |
107c3bbf | 15065 | esac |
107c3bbf | 15066 | |
cd9a469c | 15067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
15068 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
107c3bbf | 15069 | |
cd9a469c | 15070 | # ----------------- done included file, check C basic types -------- |
107c3bbf | 15071 | |
cd9a469c | 15072 | # Lacking an uintptr_t? Test size of void * |
15073 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
15074 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
15075 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15076 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15077 | # This bug is HP SR number 8606223364. | |
15078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
15079 | $as_echo_n "checking size of void *... " >&6; } | |
f00f02a3 | 15080 | if ${ac_cv_sizeof_void_p+:} false; then : |
cd9a469c | 15081 | $as_echo_n "(cached) " >&6 |
107c3bbf | 15082 | else |
cd9a469c | 15083 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
107c3bbf | 15084 | |
cd9a469c | 15085 | else |
15086 | if test "$ac_cv_type_void_p" = yes; then | |
15087 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15088 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 15089 | as_fn_error 77 "cannot compute sizeof (void *) |
15090 | See \`config.log' for more details" "$LINENO" 5; } | |
cd9a469c | 15091 | else |
15092 | ac_cv_sizeof_void_p=0 | |
15093 | fi | |
107c3bbf | 15094 | fi |
cd9a469c | 15095 | |
107c3bbf | 15096 | fi |
cd9a469c | 15097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
15098 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
107c3bbf | 15099 | |
107c3bbf | 15100 | |
cd9a469c | 15101 | |
15102 | cat >>confdefs.h <<_ACEOF | |
15103 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
107c3bbf | 15104 | _ACEOF |
107c3bbf | 15105 | |
cd9a469c | 15106 | ;; |
15107 | esac | |
107c3bbf | 15108 | |
cd9a469c | 15109 | # Lacking an uint64_t? Test size of long |
15110 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
15111 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
15112 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15113 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15114 | # This bug is HP SR number 8606223364. | |
15115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
15116 | $as_echo_n "checking size of long... " >&6; } | |
f00f02a3 | 15117 | if ${ac_cv_sizeof_long+:} false; then : |
cd9a469c | 15118 | $as_echo_n "(cached) " >&6 |
107c3bbf | 15119 | else |
cd9a469c | 15120 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
107c3bbf | 15121 | |
107c3bbf | 15122 | else |
cd9a469c | 15123 | if test "$ac_cv_type_long" = yes; then |
15124 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15125 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 15126 | as_fn_error 77 "cannot compute sizeof (long) |
15127 | See \`config.log' for more details" "$LINENO" 5; } | |
cd9a469c | 15128 | else |
15129 | ac_cv_sizeof_long=0 | |
15130 | fi | |
15131 | fi | |
107c3bbf | 15132 | |
cd9a469c | 15133 | fi |
15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
15135 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
107c3bbf | 15136 | |
107c3bbf | 15137 | |
cd9a469c | 15138 | |
15139 | cat >>confdefs.h <<_ACEOF | |
15140 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
107c3bbf | 15141 | _ACEOF |
107c3bbf | 15142 | |
cd9a469c | 15143 | ;; |
15144 | esac | |
107c3bbf | 15145 | |
cd9a469c | 15146 | if test $acx_cv_header_stdint = stddef.h; then |
15147 | # Lacking a good header? Test size of everything and deduce all types. | |
15148 | # The cast to long int works around a bug in the HP C Compiler | |
15149 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15150 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15151 | # This bug is HP SR number 8606223364. | |
15152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
15153 | $as_echo_n "checking size of int... " >&6; } | |
f00f02a3 | 15154 | if ${ac_cv_sizeof_int+:} false; then : |
cd9a469c | 15155 | $as_echo_n "(cached) " >&6 |
107c3bbf | 15156 | else |
cd9a469c | 15157 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
15158 | ||
15159 | else | |
15160 | if test "$ac_cv_type_int" = yes; then | |
15161 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15162 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 15163 | as_fn_error 77 "cannot compute sizeof (int) |
15164 | See \`config.log' for more details" "$LINENO" 5; } | |
cd9a469c | 15165 | else |
15166 | ac_cv_sizeof_int=0 | |
15167 | fi | |
15168 | fi | |
15169 | ||
15170 | fi | |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
15172 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
15173 | ||
15174 | ||
15175 | ||
15176 | cat >>confdefs.h <<_ACEOF | |
15177 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15178 | _ACEOF | |
107c3bbf | 15179 | |
cd9a469c | 15180 | |
15181 | # The cast to long int works around a bug in the HP C Compiler | |
15182 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15183 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15184 | # This bug is HP SR number 8606223364. | |
15185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
15186 | $as_echo_n "checking size of short... " >&6; } | |
f00f02a3 | 15187 | if ${ac_cv_sizeof_short+:} false; then : |
cd9a469c | 15188 | $as_echo_n "(cached) " >&6 |
107c3bbf | 15189 | else |
cd9a469c | 15190 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
107c3bbf | 15191 | |
cd9a469c | 15192 | else |
15193 | if test "$ac_cv_type_short" = yes; then | |
15194 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15195 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 15196 | as_fn_error 77 "cannot compute sizeof (short) |
15197 | See \`config.log' for more details" "$LINENO" 5; } | |
cd9a469c | 15198 | else |
15199 | ac_cv_sizeof_short=0 | |
15200 | fi | |
107c3bbf | 15201 | fi |
cd9a469c | 15202 | |
107c3bbf | 15203 | fi |
cd9a469c | 15204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
15205 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
107c3bbf | 15206 | |
107c3bbf | 15207 | |
cd9a469c | 15208 | |
15209 | cat >>confdefs.h <<_ACEOF | |
15210 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
107c3bbf | 15211 | _ACEOF |
cd9a469c | 15212 | |
15213 | ||
15214 | # The cast to long int works around a bug in the HP C Compiler | |
15215 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15216 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15217 | # This bug is HP SR number 8606223364. | |
15218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
15219 | $as_echo_n "checking size of char... " >&6; } | |
f00f02a3 | 15220 | if ${ac_cv_sizeof_char+:} false; then : |
cd9a469c | 15221 | $as_echo_n "(cached) " >&6 |
107c3bbf | 15222 | else |
cd9a469c | 15223 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : |
107c3bbf | 15224 | |
107c3bbf | 15225 | else |
cd9a469c | 15226 | if test "$ac_cv_type_char" = yes; then |
15227 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15228 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 15229 | as_fn_error 77 "cannot compute sizeof (char) |
15230 | See \`config.log' for more details" "$LINENO" 5; } | |
cd9a469c | 15231 | else |
15232 | ac_cv_sizeof_char=0 | |
15233 | fi | |
15234 | fi | |
107c3bbf | 15235 | |
cd9a469c | 15236 | fi |
15237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
15238 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
107c3bbf | 15239 | |
107c3bbf | 15240 | |
cd9a469c | 15241 | |
15242 | cat >>confdefs.h <<_ACEOF | |
15243 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
107c3bbf | 15244 | _ACEOF |
107c3bbf | 15245 | |
cd9a469c | 15246 | |
15247 | ||
15248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
15249 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
15250 | case "$ac_cv_sizeof_char" in | |
15251 | 1) acx_cv_type_int8_t=char ;; | |
f00f02a3 | 15252 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
cd9a469c | 15253 | esac |
15254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
15255 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
15256 | ||
15257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
15258 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
15259 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
15260 | 2:*) acx_cv_type_int16_t=int ;; | |
15261 | *:2) acx_cv_type_int16_t=short ;; | |
f00f02a3 | 15262 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
cd9a469c | 15263 | esac |
15264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
15265 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
15266 | ||
15267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
15268 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
15269 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
15270 | 4:*) acx_cv_type_int32_t=int ;; | |
15271 | *:4) acx_cv_type_int32_t=long ;; | |
f00f02a3 | 15272 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
cd9a469c | 15273 | esac |
15274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
15275 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
107c3bbf | 15276 | fi |
cd9a469c | 15277 | |
15278 | # These tests are here to make the output prettier | |
15279 | ||
15280 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
15281 | case "$ac_cv_sizeof_long" in | |
15282 | 8) acx_cv_type_int64_t=long ;; | |
15283 | esac | |
15284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
15285 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
15286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
15287 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
107c3bbf | 15288 | fi |
cd9a469c | 15289 | |
15290 | # Now we can use the above types | |
15291 | ||
15292 | if test "$ac_cv_type_uintptr_t" != yes; then | |
15293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
15294 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
15295 | case $ac_cv_sizeof_void_p in | |
15296 | 2) acx_cv_type_intptr_t=int16_t ;; | |
15297 | 4) acx_cv_type_intptr_t=int32_t ;; | |
15298 | 8) acx_cv_type_intptr_t=int64_t ;; | |
f00f02a3 | 15299 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
cd9a469c | 15300 | esac |
15301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
15302 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
107c3bbf | 15303 | fi |
107c3bbf | 15304 | |
cd9a469c | 15305 | # ----------------- done all checks, emit header ------------- |
15306 | ac_config_commands="$ac_config_commands gstdint.h" | |
15307 | ||
15308 | ||
15309 | ||
15310 | ||
cd9a469c | 15311 | XPCFLAGS="" |
a88ef88c | 15312 | case "$host" in |
15313 | *-*-rtems*) | |
15314 | # RTEMS supports Pthreads, but the library is not available at GCC build time. | |
15315 | ;; | |
fdcd05c8 | 15316 | nvptx*-*-*) |
15317 | # NVPTX does not support Pthreads, has its own code replacement. | |
44a69dfd | 15318 | libgomp_use_pthreads=no |
b0d82200 | 15319 | # NVPTX is an accelerator-only target |
15320 | libgomp_offloaded_only=yes | |
fdcd05c8 | 15321 | ;; |
a88ef88c | 15322 | *) |
15323 | # Check to see if -pthread or -lpthread is needed. Prefer the former. | |
15324 | # In case the pthread.h system header is not found, this test will fail. | |
15325 | CFLAGS="$CFLAGS -pthread" | |
15326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 15327 | /* end confdefs.h. */ |
15328 | #include <pthread.h> | |
a88ef88c | 15329 | void *g(void *d) { return NULL; } |
fd6481cf | 15330 | int |
15331 | main () | |
15332 | { | |
cd9a469c | 15333 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
fd6481cf | 15334 | ; |
15335 | return 0; | |
15336 | } | |
15337 | _ACEOF | |
cd9a469c | 15338 | if ac_fn_c_try_link "$LINENO"; then : |
15339 | XPCFLAGS=" -Wc,-pthread" | |
15340 | else | |
15341 | CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" | |
a88ef88c | 15342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fd6481cf | 15343 | /* end confdefs.h. */ |
cd9a469c | 15344 | #include <pthread.h> |
a88ef88c | 15345 | void *g(void *d) { return NULL; } |
fd6481cf | 15346 | int |
15347 | main () | |
15348 | { | |
cd9a469c | 15349 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
fd6481cf | 15350 | ; |
15351 | return 0; | |
15352 | } | |
15353 | _ACEOF | |
cd9a469c | 15354 | if ac_fn_c_try_link "$LINENO"; then : |
fd6481cf | 15355 | |
fd6481cf | 15356 | else |
f00f02a3 | 15357 | as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5 |
cd9a469c | 15358 | fi |
15359 | rm -f core conftest.err conftest.$ac_objext \ | |
15360 | conftest$ac_exeext conftest.$ac_ext | |
15361 | fi | |
15362 | rm -f core conftest.err conftest.$ac_objext \ | |
15363 | conftest$ac_exeext conftest.$ac_ext | |
a88ef88c | 15364 | esac |
fd6481cf | 15365 | |
44a69dfd | 15366 | if test x$libgomp_use_pthreads != xno; then |
15367 | ||
15368 | $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h | |
15369 | ||
15370 | fi | |
15371 | ||
b0d82200 | 15372 | if test x$libgomp_offloaded_only = xyes; then |
15373 | ||
15374 | $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h | |
15375 | ||
15376 | fi | |
15377 | ||
ca4c3545 | 15378 | # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*- |
15379 | # | |
5c80018e | 15380 | # Copyright (C) 2014-2019 Free Software Foundation, Inc. |
ca4c3545 | 15381 | # |
15382 | # Contributed by Mentor Embedded. | |
15383 | # | |
15384 | # This file is part of the GNU Offloading and Multi Processing Library | |
15385 | # (libgomp). | |
15386 | # | |
15387 | # Libgomp is free software; you can redistribute it and/or modify it | |
15388 | # under the terms of the GNU General Public License as published by | |
15389 | # the Free Software Foundation; either version 3, or (at your option) | |
15390 | # any later version. | |
15391 | # | |
15392 | # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY | |
15393 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
15394 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
15395 | # more details. | |
15396 | # | |
15397 | # Under Section 7 of GPL version 3, you are granted additional | |
15398 | # permissions described in the GCC Runtime Library Exception, version | |
15399 | # 3.1, as published by the Free Software Foundation. | |
15400 | # | |
15401 | # You should have received a copy of the GNU General Public License and | |
15402 | # a copy of the GCC Runtime Library Exception along with this program; | |
15403 | # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | |
15404 | # <http://www.gnu.org/licenses/>. | |
15405 | ||
a3d93be3 | 15406 | plugin_support=yes |
15407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | |
15408 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | |
f00f02a3 | 15409 | if ${ac_cv_lib_dl_dlsym+:} false; then : |
a3d93be3 | 15410 | $as_echo_n "(cached) " >&6 |
15411 | else | |
15412 | ac_check_lib_save_LIBS=$LIBS | |
15413 | LIBS="-ldl $LIBS" | |
15414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15415 | /* end confdefs.h. */ | |
15416 | ||
15417 | /* Override any GCC internal prototype to avoid an error. | |
15418 | Use char because int might match the return type of a GCC | |
15419 | builtin and then its argument prototype would still apply. */ | |
15420 | #ifdef __cplusplus | |
15421 | extern "C" | |
15422 | #endif | |
15423 | char dlsym (); | |
15424 | int | |
15425 | main () | |
15426 | { | |
15427 | return dlsym (); | |
15428 | ; | |
15429 | return 0; | |
15430 | } | |
15431 | _ACEOF | |
15432 | if ac_fn_c_try_link "$LINENO"; then : | |
15433 | ac_cv_lib_dl_dlsym=yes | |
15434 | else | |
15435 | ac_cv_lib_dl_dlsym=no | |
15436 | fi | |
15437 | rm -f core conftest.err conftest.$ac_objext \ | |
15438 | conftest$ac_exeext conftest.$ac_ext | |
15439 | LIBS=$ac_check_lib_save_LIBS | |
15440 | fi | |
15441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | |
15442 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | |
f00f02a3 | 15443 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
a3d93be3 | 15444 | cat >>confdefs.h <<_ACEOF |
15445 | #define HAVE_LIBDL 1 | |
15446 | _ACEOF | |
15447 | ||
15448 | LIBS="-ldl $LIBS" | |
15449 | ||
15450 | else | |
15451 | plugin_support=no | |
15452 | fi | |
15453 | ||
15454 | if test x"$plugin_support" = xyes; then | |
15455 | ||
15456 | $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h | |
15457 | ||
ca4c3545 | 15458 | elif test "x${enable_offload_targets-no}" != xno; then |
f00f02a3 | 15459 | as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5 |
ca4c3545 | 15460 | fi |
15461 | ||
a7826e61 | 15462 | |
15463 | ||
15464 | for ac_header in $ac_header_list | |
15465 | do : | |
15466 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15467 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
15468 | " | |
f00f02a3 | 15469 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
a7826e61 | 15470 | cat >>confdefs.h <<_ACEOF |
15471 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15472 | _ACEOF | |
15473 | ||
15474 | fi | |
15475 | ||
15476 | done | |
15477 | ||
15478 | ||
15479 | ||
15480 | ||
15481 | ||
15482 | ||
15483 | ||
15484 | for ac_func in $ac_func_list | |
15485 | do : | |
15486 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15487 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
f00f02a3 | 15488 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
a7826e61 | 15489 | cat >>confdefs.h <<_ACEOF |
15490 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15491 | _ACEOF | |
15492 | ||
15493 | fi | |
15494 | done | |
15495 | ||
15496 | ||
15497 | ||
15498 | ||
15499 | ||
15500 | ||
15501 | ||
15502 | ||
15503 | ||
15504 | ||
15505 | ||
15506 | ||
15507 | ||
15508 | ||
15509 | ||
15510 | ||
ca4c3545 | 15511 | # Look for the CUDA driver package. |
15512 | CUDA_DRIVER_INCLUDE= | |
15513 | CUDA_DRIVER_LIB= | |
15514 | ||
15515 | ||
15516 | CUDA_DRIVER_CPPFLAGS= | |
15517 | CUDA_DRIVER_LDFLAGS= | |
15518 | ||
15519 | # Check whether --with-cuda-driver was given. | |
15520 | if test "${with_cuda_driver+set}" = set; then : | |
15521 | withval=$with_cuda_driver; | |
a3d93be3 | 15522 | fi |
15523 | ||
ca4c3545 | 15524 | |
15525 | # Check whether --with-cuda-driver-include was given. | |
15526 | if test "${with_cuda_driver_include+set}" = set; then : | |
15527 | withval=$with_cuda_driver_include; | |
15528 | fi | |
15529 | ||
15530 | ||
15531 | # Check whether --with-cuda-driver-lib was given. | |
15532 | if test "${with_cuda_driver_lib+set}" = set; then : | |
15533 | withval=$with_cuda_driver_lib; | |
15534 | fi | |
15535 | ||
e7d2a440 | 15536 | case "x$with_cuda_driver" in |
3481f5b6 | 15537 | x) ;; |
15538 | xno) | |
15539 | CUDA_DRIVER_INCLUDE=no | |
15540 | CUDA_DRIVER_LIB=no | |
15541 | ;; | |
e7d2a440 | 15542 | *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include |
15543 | CUDA_DRIVER_LIB=$with_cuda_driver/lib | |
15544 | ;; | |
15545 | esac | |
ca4c3545 | 15546 | if test "x$with_cuda_driver_include" != x; then |
15547 | CUDA_DRIVER_INCLUDE=$with_cuda_driver_include | |
15548 | fi | |
15549 | if test "x$with_cuda_driver_lib" != x; then | |
15550 | CUDA_DRIVER_LIB=$with_cuda_driver_lib | |
15551 | fi | |
3481f5b6 | 15552 | if test "x$CUDA_DRIVER_INCLUDE" != x \ |
15553 | && test "x$CUDA_DRIVER_INCLUDE" != xno; then | |
ca4c3545 | 15554 | CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE |
15555 | fi | |
3481f5b6 | 15556 | if test "x$CUDA_DRIVER_LIB" != x \ |
15557 | && test "x$CUDA_DRIVER_LIB" != xno; then | |
ca4c3545 | 15558 | CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB |
15559 | fi | |
15560 | ||
15561 | PLUGIN_NVPTX=0 | |
15562 | PLUGIN_NVPTX_CPPFLAGS= | |
15563 | PLUGIN_NVPTX_LDFLAGS= | |
15564 | PLUGIN_NVPTX_LIBS= | |
e7d2a440 | 15565 | PLUGIN_NVPTX_DYNAMIC=0 |
ca4c3545 | 15566 | |
15567 | ||
15568 | ||
15569 | ||
15570 | ||
56686608 | 15571 | # Look for HSA run-time, its includes and libraries |
15572 | ||
15573 | HSA_RUNTIME_INCLUDE= | |
15574 | HSA_RUNTIME_LIB= | |
15575 | ||
15576 | ||
15577 | HSA_RUNTIME_CPPFLAGS= | |
15578 | HSA_RUNTIME_LDFLAGS= | |
15579 | ||
15580 | ||
15581 | # Check whether --with-hsa-runtime was given. | |
15582 | if test "${with_hsa_runtime+set}" = set; then : | |
15583 | withval=$with_hsa_runtime; | |
15584 | fi | |
15585 | ||
15586 | ||
15587 | # Check whether --with-hsa-runtime-include was given. | |
15588 | if test "${with_hsa_runtime_include+set}" = set; then : | |
15589 | withval=$with_hsa_runtime_include; | |
15590 | fi | |
15591 | ||
15592 | ||
15593 | # Check whether --with-hsa-runtime-lib was given. | |
15594 | if test "${with_hsa_runtime_lib+set}" = set; then : | |
15595 | withval=$with_hsa_runtime_lib; | |
15596 | fi | |
15597 | ||
15598 | if test "x$with_hsa_runtime" != x; then | |
15599 | HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include | |
15600 | HSA_RUNTIME_LIB=$with_hsa_runtime/lib | |
15601 | fi | |
15602 | if test "x$with_hsa_runtime_include" != x; then | |
15603 | HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include | |
15604 | fi | |
15605 | if test "x$with_hsa_runtime_lib" != x; then | |
15606 | HSA_RUNTIME_LIB=$with_hsa_runtime_lib | |
15607 | fi | |
15608 | if test "x$HSA_RUNTIME_INCLUDE" != x; then | |
15609 | HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE | |
15610 | fi | |
15611 | if test "x$HSA_RUNTIME_LIB" != x; then | |
15612 | HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB | |
15613 | fi | |
15614 | ||
56686608 | 15615 | PLUGIN_HSA=0 |
15616 | PLUGIN_HSA_CPPFLAGS= | |
15617 | PLUGIN_HSA_LDFLAGS= | |
15618 | PLUGIN_HSA_LIBS= | |
15619 | ||
15620 | ||
15621 | ||
15622 | ||
15623 | ||
3a590203 | 15624 | # Parse '--enable-offload-targets', figure out the corresponding libgomp |
15625 | # plugins, and configure to find the corresponding offload compilers. | |
62f34603 | 15626 | # 'offload_plugins' and 'offload_targets' will be populated in the same order. |
3a590203 | 15627 | offload_plugins= |
62f34603 | 15628 | offload_targets= |
15629 | ||
3a590203 | 15630 | |
ca4c3545 | 15631 | offload_additional_options= |
15632 | offload_additional_lib_paths= | |
15633 | ||
15634 | ||
15635 | if test x"$enable_offload_targets" != x; then | |
15636 | for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do | |
15637 | tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'` | |
15638 | tgt=`echo $tgt | sed 's/=.*//'` | |
3a590203 | 15639 | tgt_plugin= |
ca4c3545 | 15640 | case $tgt in |
15641 | *-intelmic-* | *-intelmicemul-*) | |
3a590203 | 15642 | tgt_plugin=intelmic |
ca4c3545 | 15643 | ;; |
15644 | nvptx*) | |
3a590203 | 15645 | tgt_plugin=nvptx |
ca4c3545 | 15646 | PLUGIN_NVPTX=$tgt |
3481f5b6 | 15647 | if test "x$CUDA_DRIVER_LIB" != xno \ |
15648 | && test "x$CUDA_DRIVER_LIB" != xno; then | |
15649 | PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS | |
15650 | PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS | |
15651 | PLUGIN_NVPTX_LIBS='-lcuda' | |
15652 | ||
15653 | PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS | |
15654 | CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS" | |
15655 | PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS | |
15656 | LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS" | |
15657 | PLUGIN_NVPTX_save_LIBS=$LIBS | |
15658 | LIBS="$PLUGIN_NVPTX_LIBS $LIBS" | |
15659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ca4c3545 | 15660 | /* end confdefs.h. */ |
15661 | #include "cuda.h" | |
15662 | int | |
15663 | main () | |
15664 | { | |
15665 | CUresult r = cuCtxPushCurrent (NULL); | |
15666 | ; | |
15667 | return 0; | |
15668 | } | |
15669 | _ACEOF | |
15670 | if ac_fn_c_try_link "$LINENO"; then : | |
15671 | PLUGIN_NVPTX=1 | |
15672 | fi | |
15673 | rm -f core conftest.err conftest.$ac_objext \ | |
15674 | conftest$ac_exeext conftest.$ac_ext | |
3481f5b6 | 15675 | CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS |
15676 | LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS | |
15677 | LIBS=$PLUGIN_NVPTX_save_LIBS | |
15678 | fi | |
ca4c3545 | 15679 | case $PLUGIN_NVPTX in |
15680 | nvptx*) | |
3481f5b6 | 15681 | if (test "x$CUDA_DRIVER_INCLUDE" = x \ |
15682 | || test "x$CUDA_DRIVER_INCLUDE" = xno) \ | |
15683 | && (test "x$CUDA_DRIVER_LIB" = x \ | |
15684 | || test "x$CUDA_DRIVER_LIB" = xno); then | |
e7d2a440 | 15685 | PLUGIN_NVPTX=1 |
15686 | PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda' | |
15687 | PLUGIN_NVPTX_LIBS='-ldl' | |
15688 | PLUGIN_NVPTX_DYNAMIC=1 | |
15689 | else | |
15690 | PLUGIN_NVPTX=0 | |
f00f02a3 | 15691 | as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5 |
e7d2a440 | 15692 | fi |
15693 | ;; | |
ca4c3545 | 15694 | esac |
15695 | ;; | |
56686608 | 15696 | hsa*) |
15697 | case "${target}" in | |
15698 | x86_64-*-*) | |
15699 | case " ${CC} ${CFLAGS} " in | |
15700 | *" -m32 "*) | |
15701 | PLUGIN_HSA=0 | |
15702 | ;; | |
15703 | *) | |
3a590203 | 15704 | tgt_plugin=hsa |
56686608 | 15705 | PLUGIN_HSA=$tgt |
15706 | PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS | |
a7826e61 | 15707 | PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS" |
15708 | PLUGIN_HSA_LIBS="-ldl" | |
56686608 | 15709 | |
15710 | PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS | |
15711 | CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS" | |
15712 | PLUGIN_HSA_save_LDFLAGS=$LDFLAGS | |
15713 | LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS" | |
15714 | PLUGIN_HSA_save_LIBS=$LIBS | |
15715 | LIBS="$PLUGIN_HSA_LIBS $LIBS" | |
15716 | ||
a7826e61 | 15717 | PLUGIN_HSA=1 |
56686608 | 15718 | CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS |
15719 | LDFLAGS=$PLUGIN_HSA_save_LDFLAGS | |
15720 | LIBS=$PLUGIN_HSA_save_LIBS | |
15721 | case $PLUGIN_HSA in | |
3a590203 | 15722 | hsa*) |
56686608 | 15723 | HSA_PLUGIN=0 |
f00f02a3 | 15724 | as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5 |
56686608 | 15725 | ;; |
15726 | esac | |
15727 | ;; | |
15728 | esac | |
15729 | ;; | |
15730 | *-*-*) | |
15731 | PLUGIN_HSA=0 | |
15732 | ;; | |
15733 | esac | |
15734 | ;; | |
ca4c3545 | 15735 | *) |
f00f02a3 | 15736 | as_fn_error $? "unknown offload target specified" "$LINENO" 5 |
ca4c3545 | 15737 | ;; |
15738 | esac | |
3a590203 | 15739 | if test x"$tgt_plugin" = x; then |
15740 | # Not configuring libgomp for this offload target if we're not building | |
15741 | # the corresponding offload plugin. | |
bf57e97e | 15742 | continue |
3a590203 | 15743 | elif test x"$offload_plugins" = x; then |
15744 | offload_plugins=$tgt_plugin | |
62f34603 | 15745 | offload_targets=$tgt |
ca4c3545 | 15746 | else |
3a590203 | 15747 | offload_plugins=$offload_plugins,$tgt_plugin |
62f34603 | 15748 | offload_targets=$offload_targets,$tgt |
ca4c3545 | 15749 | fi |
3a590203 | 15750 | # Configure additional search paths. |
15751 | if test "$tgt_plugin" = hsa; then | |
071822e7 | 15752 | # Offloading compilation is all handled by the target compiler. |
15753 | : | |
15754 | elif test x"$tgt_dir" != x; then | |
ca4c3545 | 15755 | offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin" |
15756 | offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32" | |
15757 | else | |
15758 | offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)" | |
15759 | offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir" | |
15760 | fi | |
15761 | done | |
15762 | fi | |
15763 | ||
15764 | cat >>confdefs.h <<_ACEOF | |
3a590203 | 15765 | #define OFFLOAD_PLUGINS "$offload_plugins" |
ca4c3545 | 15766 | _ACEOF |
15767 | ||
15768 | if test $PLUGIN_NVPTX = 1; then | |
15769 | PLUGIN_NVPTX_TRUE= | |
15770 | PLUGIN_NVPTX_FALSE='#' | |
15771 | else | |
15772 | PLUGIN_NVPTX_TRUE='#' | |
15773 | PLUGIN_NVPTX_FALSE= | |
15774 | fi | |
15775 | ||
15776 | ||
15777 | cat >>confdefs.h <<_ACEOF | |
15778 | #define PLUGIN_NVPTX $PLUGIN_NVPTX | |
15779 | _ACEOF | |
15780 | ||
e7d2a440 | 15781 | |
15782 | cat >>confdefs.h <<_ACEOF | |
15783 | #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC | |
15784 | _ACEOF | |
15785 | ||
56686608 | 15786 | if test $PLUGIN_HSA = 1; then |
15787 | PLUGIN_HSA_TRUE= | |
15788 | PLUGIN_HSA_FALSE='#' | |
15789 | else | |
15790 | PLUGIN_HSA_TRUE='#' | |
15791 | PLUGIN_HSA_FALSE= | |
15792 | fi | |
15793 | ||
15794 | ||
15795 | cat >>confdefs.h <<_ACEOF | |
15796 | #define PLUGIN_HSA $PLUGIN_HSA | |
15797 | _ACEOF | |
15798 | ||
ca4c3545 | 15799 | |
a7826e61 | 15800 | if test "$HSA_RUNTIME_LIB" != ""; then |
15801 | HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/" | |
15802 | fi | |
15803 | ||
15804 | ||
15805 | cat >>confdefs.h <<_ACEOF | |
15806 | #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB" | |
15807 | _ACEOF | |
15808 | ||
15809 | ||
ca4c3545 | 15810 | |
cd9a469c | 15811 | # Check for functions needed. |
15812 | for ac_func in getloadavg clock_gettime strtoull | |
15813 | do : | |
15814 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15815 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
f00f02a3 | 15816 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
cd9a469c | 15817 | cat >>confdefs.h <<_ACEOF |
15818 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
fd6481cf | 15819 | _ACEOF |
fd6481cf | 15820 | |
cd9a469c | 15821 | fi |
15822 | done | |
15823 | ||
7e5a76c8 | 15824 | for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc |
15825 | do : | |
15826 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15827 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5c80018e | 15828 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7e5a76c8 | 15829 | cat >>confdefs.h <<_ACEOF |
15830 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15831 | _ACEOF | |
15832 | ||
15833 | fi | |
15834 | done | |
15835 | ||
cd9a469c | 15836 | |
15837 | # Check for broken semaphore implementation on darwin. | |
15838 | # sem_init returns: sem_init error: Function not implemented. | |
15839 | case "$host" in | |
15840 | *-darwin*) | |
15841 | ||
15842 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | |
15843 | ||
15844 | ;; | |
15845 | esac | |
15846 | ||
4bf07de7 | 15847 | # RTEMS specific checks |
15848 | case "$host" in | |
15849 | *-*-rtems*) | |
15850 | ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h> | |
15851 | " | |
f00f02a3 | 15852 | if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then : |
4bf07de7 | 15853 | |
15854 | cat >>confdefs.h <<_ACEOF | |
15855 | #define HAVE_STRUCT__MUTEX_CONTROL 1 | |
15856 | _ACEOF | |
15857 | ||
15858 | ||
15859 | fi | |
15860 | ||
15861 | ;; | |
15862 | esac | |
15863 | ||
cd9a469c | 15864 | # Check whether --enable-linux-futex was given. |
15865 | if test "${enable_linux_futex+set}" = set; then : | |
15866 | enableval=$enable_linux_futex; | |
15867 | case "$enableval" in | |
15868 | yes|no|default) ;; | |
f00f02a3 | 15869 | *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;; |
cd9a469c | 15870 | esac |
15871 | ||
15872 | else | |
15873 | enable_linux_futex=default | |
15874 | fi | |
fd6481cf | 15875 | |
fd6481cf | 15876 | |
cd9a469c | 15877 | case "$target" in |
15878 | *-linux*) | |
15879 | case "$enable_linux_futex" in | |
15880 | default) | |
15881 | # If headers don't have gettid/futex syscalls definition, then | |
15882 | # default to no, otherwise there will be compile time failures. | |
15883 | # Otherwise, default to yes. If we don't detect we are | |
15884 | # compiled/linked against NPTL and not cross-compiling, check | |
15885 | # if programs are run by default against NPTL and if not, issue | |
15886 | # a warning. | |
15887 | enable_linux_futex=no | |
15888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15889 | /* end confdefs.h. */ | |
15890 | #include <sys/syscall.h> | |
15891 | int lk; | |
fd6481cf | 15892 | int |
15893 | main () | |
15894 | { | |
cd9a469c | 15895 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); |
fd6481cf | 15896 | ; |
15897 | return 0; | |
15898 | } | |
15899 | _ACEOF | |
cd9a469c | 15900 | if ac_fn_c_try_link "$LINENO"; then : |
15901 | save_LIBS="$LIBS" | |
15902 | LIBS="-lpthread $LIBS" | |
15903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fd6481cf | 15904 | /* end confdefs.h. */ |
cd9a469c | 15905 | #ifndef _GNU_SOURCE |
15906 | #define _GNU_SOURCE 1 | |
15907 | #endif | |
15908 | #include <pthread.h> | |
15909 | pthread_t th; void *status; | |
fd6481cf | 15910 | int |
15911 | main () | |
15912 | { | |
cd9a469c | 15913 | pthread_tryjoin_np (th, &status); |
fd6481cf | 15914 | ; |
15915 | return 0; | |
15916 | } | |
15917 | _ACEOF | |
cd9a469c | 15918 | if ac_fn_c_try_link "$LINENO"; then : |
15919 | enable_linux_futex=yes | |
fd6481cf | 15920 | else |
cd9a469c | 15921 | if test x$cross_compiling = xno; then |
15922 | if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ | |
15923 | | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else | |
15924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls. | |
15925 | If so, please configure with --disable-linux-futex" >&5 | |
15926 | $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. | |
15927 | If so, please configure with --disable-linux-futex" >&2;} | |
15928 | fi | |
15929 | fi | |
15930 | enable_linux_futex=yes | |
fd6481cf | 15931 | fi |
cd9a469c | 15932 | rm -f core conftest.err conftest.$ac_objext \ |
15933 | conftest$ac_exeext conftest.$ac_ext | |
15934 | LIBS="$save_LIBS" | |
15935 | fi | |
15936 | rm -f core conftest.err conftest.$ac_objext \ | |
15937 | conftest$ac_exeext conftest.$ac_ext | |
15938 | ;; | |
15939 | yes) | |
15940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fd6481cf | 15941 | /* end confdefs.h. */ |
cd9a469c | 15942 | #include <sys/syscall.h> |
15943 | int lk; | |
fd6481cf | 15944 | int |
15945 | main () | |
15946 | { | |
cd9a469c | 15947 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); |
fd6481cf | 15948 | ; |
15949 | return 0; | |
15950 | } | |
15951 | _ACEOF | |
cd9a469c | 15952 | if ac_fn_c_try_link "$LINENO"; then : |
fd6481cf | 15953 | |
cd9a469c | 15954 | else |
f00f02a3 | 15955 | as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5 |
fd6481cf | 15956 | fi |
cd9a469c | 15957 | rm -f core conftest.err conftest.$ac_objext \ |
15958 | conftest$ac_exeext conftest.$ac_ext | |
15959 | ;; | |
15960 | esac | |
15961 | ;; | |
15962 | *) | |
15963 | enable_linux_futex=no | |
15964 | ;; | |
15965 | esac | |
15966 | if test x$enable_linux_futex = xyes; then | |
15967 | : | |
fd6481cf | 15968 | fi |
fd6481cf | 15969 | |
cd9a469c | 15970 | |
15971 | # Check for pthread_{,attr_}[sg]etaffinity_np. | |
15972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15973 | /* end confdefs.h. */ | |
15974 | #define _GNU_SOURCE | |
15975 | #include <pthread.h> | |
fd6481cf | 15976 | int |
15977 | main () | |
15978 | { | |
cd9a469c | 15979 | cpu_set_t cpuset; |
15980 | pthread_attr_t attr; | |
15981 | pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
15982 | if (CPU_ISSET (0, &cpuset)) | |
15983 | CPU_SET (1, &cpuset); | |
15984 | else | |
15985 | CPU_ZERO (&cpuset); | |
15986 | pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
15987 | pthread_attr_init (&attr); | |
15988 | pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
15989 | pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
fd6481cf | 15990 | ; |
15991 | return 0; | |
15992 | } | |
15993 | _ACEOF | |
cd9a469c | 15994 | if ac_fn_c_try_link "$LINENO"; then : |
15995 | ||
15996 | $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h | |
15997 | ||
15998 | fi | |
15999 | rm -f core conftest.err conftest.$ac_objext \ | |
16000 | conftest$ac_exeext conftest.$ac_ext | |
16001 | ||
16002 | # At least for glibc, clock_gettime is in librt. But don't pull that | |
16003 | # in if it still doesn't give us the function we want. | |
16004 | if test $ac_cv_func_clock_gettime = no; then | |
16005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
16006 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
f00f02a3 | 16007 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
cd9a469c | 16008 | $as_echo_n "(cached) " >&6 |
16009 | else | |
16010 | ac_check_lib_save_LIBS=$LIBS | |
16011 | LIBS="-lrt $LIBS" | |
16012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fd6481cf | 16013 | /* end confdefs.h. */ |
16014 | ||
cd9a469c | 16015 | /* Override any GCC internal prototype to avoid an error. |
16016 | Use char because int might match the return type of a GCC | |
16017 | builtin and then its argument prototype would still apply. */ | |
16018 | #ifdef __cplusplus | |
16019 | extern "C" | |
16020 | #endif | |
16021 | char clock_gettime (); | |
fd6481cf | 16022 | int |
16023 | main () | |
16024 | { | |
cd9a469c | 16025 | return clock_gettime (); |
fd6481cf | 16026 | ; |
16027 | return 0; | |
16028 | } | |
16029 | _ACEOF | |
cd9a469c | 16030 | if ac_fn_c_try_link "$LINENO"; then : |
16031 | ac_cv_lib_rt_clock_gettime=yes | |
fd6481cf | 16032 | else |
cd9a469c | 16033 | ac_cv_lib_rt_clock_gettime=no |
16034 | fi | |
16035 | rm -f core conftest.err conftest.$ac_objext \ | |
16036 | conftest$ac_exeext conftest.$ac_ext | |
16037 | LIBS=$ac_check_lib_save_LIBS | |
16038 | fi | |
16039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
16040 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
f00f02a3 | 16041 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
cd9a469c | 16042 | LIBS="-lrt $LIBS" |
16043 | ||
16044 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |
fd6481cf | 16045 | |
fd6481cf | 16046 | fi |
cd9a469c | 16047 | |
16048 | fi | |
16049 | ||
7e5a76c8 | 16050 | # Check for uname. |
16051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16052 | /* end confdefs.h. */ | |
16053 | #include <string.h> | |
16054 | #include <stdlib.h> | |
16055 | #include <sys/utsname.h> | |
16056 | int | |
16057 | main () | |
16058 | { | |
16059 | struct utsname buf; | |
16060 | volatile size_t len = 0; | |
16061 | if (!uname (buf)) | |
16062 | len = strlen (buf.nodename); | |
16063 | ; | |
16064 | return 0; | |
16065 | } | |
16066 | _ACEOF | |
16067 | if ac_fn_c_try_compile "$LINENO"; then : | |
16068 | ||
16069 | $as_echo "#define HAVE_UNAME 1" >>confdefs.h | |
16070 | ||
16071 | fi | |
16072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16073 | ||
16074 | # Check for gethostname. | |
16075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16076 | /* end confdefs.h. */ | |
16077 | #include <unistd.h> | |
16078 | int | |
16079 | main () | |
16080 | { | |
16081 | ||
16082 | char buf[256]; | |
16083 | if (gethostname (buf, sizeof (buf) - 1) == 0) | |
16084 | buf[255] = '\0'; | |
16085 | ||
16086 | ; | |
16087 | return 0; | |
16088 | } | |
16089 | _ACEOF | |
16090 | if ac_fn_c_try_compile "$LINENO"; then : | |
16091 | ||
16092 | $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h | |
16093 | ||
16094 | fi | |
16095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16096 | ||
16097 | # Check for getpid. | |
16098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16099 | /* end confdefs.h. */ | |
16100 | #include <unistd.h> | |
16101 | int | |
16102 | main () | |
16103 | { | |
16104 | int pid = getpid (); | |
16105 | ; | |
16106 | return 0; | |
16107 | } | |
16108 | _ACEOF | |
16109 | if ac_fn_c_try_compile "$LINENO"; then : | |
16110 | ||
16111 | $as_echo "#define HAVE_GETPID 1" >>confdefs.h | |
16112 | ||
16113 | fi | |
16114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16115 | ||
cd9a469c | 16116 | # See if we support thread-local storage. |
16117 | ||
16118 | ||
16119 | # Check whether --enable-tls was given. | |
16120 | if test "${enable_tls+set}" = set; then : | |
16121 | enableval=$enable_tls; | |
16122 | case "$enableval" in | |
16123 | yes|no) ;; | |
f00f02a3 | 16124 | *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; |
cd9a469c | 16125 | esac |
16126 | ||
16127 | else | |
16128 | enable_tls=yes | |
16129 | fi | |
16130 | ||
16131 | ||
16132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 | |
16133 | $as_echo_n "checking whether the target supports thread-local storage... " >&6; } | |
f00f02a3 | 16134 | if ${gcc_cv_have_tls+:} false; then : |
cd9a469c | 16135 | $as_echo_n "(cached) " >&6 |
fd6481cf | 16136 | else |
fd6481cf | 16137 | |
cd9a469c | 16138 | if test "$cross_compiling" = yes; then : |
16139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16140 | /* end confdefs.h. */ | |
16141 | __thread int a; int b; int main() { return a = b; } | |
16142 | _ACEOF | |
16143 | if ac_fn_c_try_link "$LINENO"; then : | |
16144 | chktls_save_LDFLAGS="$LDFLAGS" | |
16145 | case $host in | |
16146 | *-*-linux*) | |
16147 | LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" | |
16148 | ;; | |
16149 | esac | |
16150 | chktls_save_CFLAGS="$CFLAGS" | |
16151 | CFLAGS="-fPIC $CFLAGS" | |
16152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16153 | /* end confdefs.h. */ | |
16154 | int f() { return 0; } | |
fd6481cf | 16155 | _ACEOF |
cd9a469c | 16156 | if ac_fn_c_try_link "$LINENO"; then : |
16157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fd6481cf | 16158 | /* end confdefs.h. */ |
cd9a469c | 16159 | __thread int a; int b; int f() { return a = b; } |
16160 | _ACEOF | |
16161 | if ac_fn_c_try_link "$LINENO"; then : | |
16162 | gcc_cv_have_tls=yes | |
16163 | else | |
16164 | gcc_cv_have_tls=no | |
16165 | fi | |
16166 | rm -f core conftest.err conftest.$ac_objext \ | |
16167 | conftest$ac_exeext conftest.$ac_ext | |
16168 | else | |
16169 | gcc_cv_have_tls=yes | |
16170 | fi | |
16171 | rm -f core conftest.err conftest.$ac_objext \ | |
16172 | conftest$ac_exeext conftest.$ac_ext | |
16173 | CFLAGS="$chktls_save_CFLAGS" | |
16174 | LDFLAGS="$chktls_save_LDFLAGS" | |
16175 | else | |
16176 | gcc_cv_have_tls=no | |
16177 | fi | |
16178 | rm -f core conftest.err conftest.$ac_objext \ | |
16179 | conftest$ac_exeext conftest.$ac_ext | |
fd6481cf | 16180 | |
fd6481cf | 16181 | |
cd9a469c | 16182 | else |
16183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16184 | /* end confdefs.h. */ | |
16185 | __thread int a; int b; int main() { return a = b; } | |
fd6481cf | 16186 | _ACEOF |
cd9a469c | 16187 | if ac_fn_c_try_run "$LINENO"; then : |
16188 | chktls_save_LDFLAGS="$LDFLAGS" | |
16189 | LDFLAGS="-static $LDFLAGS" | |
16190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16191 | /* end confdefs.h. */ | |
16192 | int main() { return 0; } | |
fd6481cf | 16193 | _ACEOF |
cd9a469c | 16194 | if ac_fn_c_try_link "$LINENO"; then : |
16195 | if test "$cross_compiling" = yes; then : | |
16196 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16198 | as_fn_error $? "cannot run test program while cross compiling |
16199 | See \`config.log' for more details" "$LINENO" 5; } | |
cd9a469c | 16200 | else |
16201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fd6481cf | 16202 | /* end confdefs.h. */ |
cd9a469c | 16203 | __thread int a; int b; int main() { return a = b; } |
16204 | _ACEOF | |
16205 | if ac_fn_c_try_run "$LINENO"; then : | |
16206 | gcc_cv_have_tls=yes | |
16207 | else | |
16208 | gcc_cv_have_tls=no | |
16209 | fi | |
16210 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16211 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16212 | fi | |
fd6481cf | 16213 | |
cd9a469c | 16214 | else |
16215 | gcc_cv_have_tls=yes | |
16216 | fi | |
16217 | rm -f core conftest.err conftest.$ac_objext \ | |
16218 | conftest$ac_exeext conftest.$ac_ext | |
16219 | LDFLAGS="$chktls_save_LDFLAGS" | |
16220 | if test $gcc_cv_have_tls = yes; then | |
16221 | chktls_save_CFLAGS="$CFLAGS" | |
16222 | thread_CFLAGS=failed | |
16223 | for flag in '' '-pthread' '-lpthread'; do | |
16224 | CFLAGS="$flag $chktls_save_CFLAGS" | |
16225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16226 | /* end confdefs.h. */ | |
16227 | #include <pthread.h> | |
16228 | void *g(void *d) { return NULL; } | |
fd6481cf | 16229 | int |
16230 | main () | |
16231 | { | |
cd9a469c | 16232 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
fd6481cf | 16233 | ; |
16234 | return 0; | |
16235 | } | |
16236 | _ACEOF | |
cd9a469c | 16237 | if ac_fn_c_try_link "$LINENO"; then : |
16238 | thread_CFLAGS="$flag" | |
fd6481cf | 16239 | fi |
cd9a469c | 16240 | rm -f core conftest.err conftest.$ac_objext \ |
16241 | conftest$ac_exeext conftest.$ac_ext | |
16242 | if test "X$thread_CFLAGS" != Xfailed; then | |
16243 | break | |
16244 | fi | |
16245 | done | |
16246 | CFLAGS="$chktls_save_CFLAGS" | |
16247 | if test "X$thread_CFLAGS" != Xfailed; then | |
16248 | CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" | |
9b15a251 | 16249 | if test "$cross_compiling" = yes; then : |
cd9a469c | 16250 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
16251 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16252 | as_fn_error $? "cannot run test program while cross compiling |
16253 | See \`config.log' for more details" "$LINENO" 5; } | |
fd6481cf | 16254 | else |
cd9a469c | 16255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fd6481cf | 16256 | /* end confdefs.h. */ |
cd9a469c | 16257 | #include <pthread.h> |
16258 | __thread int a; | |
9a2be164 | 16259 | static int *volatile a_in_other_thread; |
cd9a469c | 16260 | static void * |
16261 | thread_func (void *arg) | |
16262 | { | |
16263 | a_in_other_thread = &a; | |
16264 | return (void *)0; | |
16265 | } | |
fd6481cf | 16266 | int |
16267 | main () | |
16268 | { | |
cd9a469c | 16269 | pthread_t thread; |
16270 | void *thread_retval; | |
9a2be164 | 16271 | int *volatile a_in_main_thread; |
16272 | a_in_main_thread = &a; | |
cd9a469c | 16273 | if (pthread_create (&thread, (pthread_attr_t *)0, |
16274 | thread_func, (void *)0)) | |
16275 | return 0; | |
cd9a469c | 16276 | if (pthread_join (thread, &thread_retval)) |
16277 | return 0; | |
16278 | return (a_in_other_thread == a_in_main_thread); | |
fd6481cf | 16279 | ; |
16280 | return 0; | |
16281 | } | |
16282 | _ACEOF | |
cd9a469c | 16283 | if ac_fn_c_try_run "$LINENO"; then : |
16284 | gcc_cv_have_tls=yes | |
fd6481cf | 16285 | else |
cd9a469c | 16286 | gcc_cv_have_tls=no |
16287 | fi | |
16288 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16289 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16290 | fi | |
16291 | ||
16292 | CFLAGS="$chktls_save_CFLAGS" | |
16293 | fi | |
16294 | fi | |
16295 | else | |
16296 | gcc_cv_have_tls=no | |
16297 | fi | |
16298 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16299 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16300 | fi | |
fd6481cf | 16301 | |
fd6481cf | 16302 | fi |
cd9a469c | 16303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 |
16304 | $as_echo "$gcc_cv_have_tls" >&6; } | |
16305 | if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then | |
16306 | ||
16307 | $as_echo "#define HAVE_TLS 1" >>confdefs.h | |
16308 | ||
16309 | fi | |
16310 | ||
4b9d11e9 | 16311 | # See if we have emulated thread-local storage. |
16312 | ||
16313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5 | |
16314 | $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; } | |
f00f02a3 | 16315 | if ${gcc_cv_use_emutls+:} false; then : |
4b9d11e9 | 16316 | $as_echo_n "(cached) " >&6 |
16317 | else | |
16318 | ||
16319 | gcc_cv_use_emutls=no | |
16320 | echo '__thread int a; int b; int main() { return a = b; }' > conftest.c | |
16321 | if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5' | |
16322 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16323 | (eval $ac_try) 2>&5 | |
16324 | ac_status=$? | |
16325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16326 | test $ac_status = 0; }; }; then | |
16327 | if grep __emutls_get_address conftest.s > /dev/null; then | |
16328 | gcc_cv_use_emutls=yes | |
16329 | fi | |
16330 | fi | |
16331 | rm -f conftest.* | |
16332 | ||
16333 | fi | |
16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5 | |
16335 | $as_echo "$gcc_cv_use_emutls" >&6; } | |
16336 | if test "$gcc_cv_use_emutls" = "yes" ; then | |
16337 | ||
16338 | $as_echo "#define USE_EMUTLS 1" >>confdefs.h | |
16339 | ||
16340 | fi | |
16341 | ||
edb5e609 | 16342 | # See what sort of export controls are available. |
cd9a469c | 16343 | |
16344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 | |
16345 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
f00f02a3 | 16346 | if ${libgomp_cv_have_attribute_visibility+:} false; then : |
cd9a469c | 16347 | $as_echo_n "(cached) " >&6 |
fd6481cf | 16348 | else |
fd6481cf | 16349 | |
cd9a469c | 16350 | save_CFLAGS="$CFLAGS" |
16351 | CFLAGS="$CFLAGS -Werror" | |
16352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16353 | /* end confdefs.h. */ | |
16354 | void __attribute__((visibility("hidden"))) foo(void) { } | |
fd6481cf | 16355 | int |
16356 | main () | |
16357 | { | |
16358 | ||
fd6481cf | 16359 | ; |
16360 | return 0; | |
16361 | } | |
16362 | _ACEOF | |
cd9a469c | 16363 | if ac_fn_c_try_compile "$LINENO"; then : |
16364 | libgomp_cv_have_attribute_visibility=yes | |
fd6481cf | 16365 | else |
cd9a469c | 16366 | libgomp_cv_have_attribute_visibility=no |
fd6481cf | 16367 | fi |
cd9a469c | 16368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16369 | CFLAGS="$save_CFLAGS" | |
fd6481cf | 16370 | fi |
cd9a469c | 16371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5 |
16372 | $as_echo "$libgomp_cv_have_attribute_visibility" >&6; } | |
16373 | if test $libgomp_cv_have_attribute_visibility = yes; then | |
16374 | ||
16375 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h | |
16376 | ||
16377 | fi | |
16378 | ||
16379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 | |
16380 | $as_echo_n "checking whether the target supports dllexport... " >&6; } | |
f00f02a3 | 16381 | if ${libgomp_cv_have_attribute_dllexport+:} false; then : |
cd9a469c | 16382 | $as_echo_n "(cached) " >&6 |
16383 | else | |
fd6481cf | 16384 | |
cd9a469c | 16385 | save_CFLAGS="$CFLAGS" |
16386 | CFLAGS="$CFLAGS -Werror" | |
16387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16388 | /* end confdefs.h. */ | |
16389 | void __attribute__((dllexport)) foo(void) { } | |
fd6481cf | 16390 | int |
16391 | main () | |
16392 | { | |
fd6481cf | 16393 | |
16394 | ; | |
16395 | return 0; | |
16396 | } | |
16397 | _ACEOF | |
cd9a469c | 16398 | if ac_fn_c_try_compile "$LINENO"; then : |
16399 | libgomp_cv_have_attribute_dllexport=yes | |
16400 | else | |
16401 | libgomp_cv_have_attribute_dllexport=no | |
16402 | fi | |
16403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16404 | CFLAGS="$save_CFLAGS" | |
16405 | fi | |
16406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5 | |
16407 | $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; } | |
16408 | if test $libgomp_cv_have_attribute_dllexport = yes; then | |
16409 | ||
16410 | $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h | |
16411 | ||
16412 | fi | |
16413 | ||
16414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 | |
16415 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
f00f02a3 | 16416 | if ${libgomp_cv_have_attribute_alias+:} false; then : |
cd9a469c | 16417 | $as_echo_n "(cached) " >&6 |
16418 | else | |
16419 | ||
16420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fd6481cf | 16421 | /* end confdefs.h. */ |
16422 | ||
cd9a469c | 16423 | void foo(void) { } |
16424 | extern void bar(void) __attribute__((alias("foo"))); | |
fd6481cf | 16425 | int |
16426 | main () | |
16427 | { | |
cd9a469c | 16428 | bar(); |
fd6481cf | 16429 | ; |
16430 | return 0; | |
16431 | } | |
16432 | _ACEOF | |
cd9a469c | 16433 | if ac_fn_c_try_link "$LINENO"; then : |
16434 | libgomp_cv_have_attribute_alias=yes | |
fd6481cf | 16435 | else |
cd9a469c | 16436 | libgomp_cv_have_attribute_alias=no |
16437 | fi | |
16438 | rm -f core conftest.err conftest.$ac_objext \ | |
16439 | conftest$ac_exeext conftest.$ac_ext | |
16440 | fi | |
16441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5 | |
16442 | $as_echo "$libgomp_cv_have_attribute_alias" >&6; } | |
16443 | if test $libgomp_cv_have_attribute_alias = yes; then | |
16444 | ||
16445 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h | |
16446 | ||
16447 | fi | |
16448 | ||
16449 | ||
16450 | # Check whether --with-gnu-ld was given. | |
16451 | if test "${with_gnu_ld+set}" = set; then : | |
16452 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
16453 | else | |
16454 | with_gnu_ld=no | |
16455 | fi | |
fd6481cf | 16456 | |
cd9a469c | 16457 | ac_prog=ld |
16458 | if test "$GCC" = yes; then | |
16459 | # Check if gcc -print-prog-name=ld gives a path. | |
16460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
16461 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
16462 | case $host in | |
16463 | *-*-mingw*) | |
16464 | # gcc leaves a trailing carriage return which upsets mingw | |
16465 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
16466 | *) | |
16467 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
16468 | esac | |
16469 | case $ac_prog in | |
16470 | # Accept absolute paths. | |
16471 | [\\/]* | ?:[\\/]*) | |
16472 | re_direlt='/[^/][^/]*/\.\./' | |
16473 | # Canonicalize the pathname of ld | |
16474 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
16475 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
16476 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
16477 | done | |
16478 | test -z "$LD" && LD="$ac_prog" | |
16479 | ;; | |
16480 | "") | |
16481 | # If it fails, then pretend we aren't using GCC. | |
16482 | ac_prog=ld | |
16483 | ;; | |
16484 | *) | |
16485 | # If it is relative, then search for the first ld in PATH. | |
16486 | with_gnu_ld=unknown | |
16487 | ;; | |
16488 | esac | |
16489 | elif test "$with_gnu_ld" = yes; then | |
16490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
16491 | $as_echo_n "checking for GNU ld... " >&6; } | |
16492 | else | |
16493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
16494 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
fd6481cf | 16495 | fi |
f00f02a3 | 16496 | if ${lt_cv_path_LD+:} false; then : |
cd9a469c | 16497 | $as_echo_n "(cached) " >&6 |
16498 | else | |
16499 | if test -z "$LD"; then | |
16500 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
16501 | for ac_dir in $PATH; do | |
16502 | IFS="$lt_save_ifs" | |
16503 | test -z "$ac_dir" && ac_dir=. | |
16504 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
16505 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
16506 | # Check to see if the program is GNU ld. I'd rather use --version, | |
16507 | # but apparently some variants of GNU ld only accept -v. | |
16508 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
16509 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
16510 | *GNU* | *'with BFD'*) | |
16511 | test "$with_gnu_ld" != no && break | |
16512 | ;; | |
16513 | *) | |
16514 | test "$with_gnu_ld" != yes && break | |
16515 | ;; | |
16516 | esac | |
16517 | fi | |
fd6481cf | 16518 | done |
cd9a469c | 16519 | IFS="$lt_save_ifs" |
fd6481cf | 16520 | else |
cd9a469c | 16521 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
16522 | fi | |
16523 | fi | |
16524 | ||
16525 | LD="$lt_cv_path_LD" | |
16526 | if test -n "$LD"; then | |
16527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
16528 | $as_echo "$LD" >&6; } | |
16529 | else | |
16530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16531 | $as_echo "no" >&6; } | |
16532 | fi | |
f00f02a3 | 16533 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
cd9a469c | 16534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
16535 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
f00f02a3 | 16536 | if ${lt_cv_prog_gnu_ld+:} false; then : |
cd9a469c | 16537 | $as_echo_n "(cached) " >&6 |
16538 | else | |
16539 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
16540 | case `$LD -v 2>&1 </dev/null` in | |
16541 | *GNU* | *'with BFD'*) | |
16542 | lt_cv_prog_gnu_ld=yes | |
16543 | ;; | |
16544 | *) | |
16545 | lt_cv_prog_gnu_ld=no | |
16546 | ;; | |
16547 | esac | |
16548 | fi | |
16549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
16550 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
16551 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
16552 | ||
16553 | ||
16554 | ||
16555 | ||
16556 | ||
16557 | ||
16558 | ||
16559 | # If we're not using GNU ld, then there's no point in even trying these | |
16560 | # tests. Check for that first. We should have already tested for gld | |
16561 | # by now (in libtool), but require it now just to be safe... | |
16562 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | |
16563 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | |
16564 | ||
16565 | ||
16566 | ||
16567 | # The name set by libtool depends on the version of libtool. Shame on us | |
16568 | # for depending on an impl detail, but c'est la vie. Older versions used | |
16569 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | |
16570 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | |
16571 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | |
16572 | # set (hence we're using an older libtool), then set it. | |
16573 | if test x${with_gnu_ld+set} != xset; then | |
16574 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | |
16575 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | |
16576 | with_gnu_ld=no | |
16577 | else | |
16578 | with_gnu_ld=$ac_cv_prog_gnu_ld | |
16579 | fi | |
16580 | fi | |
16581 | ||
16582 | # Start by getting the version number. I think the libtool test already | |
16583 | # does some of this, but throws away the result. | |
16584 | libgomp_ld_is_gold=no | |
16585 | if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then | |
16586 | libgomp_ld_is_gold=yes | |
16587 | fi | |
16588 | ||
8dc52806 | 16589 | ldver=`$LD --version 2>/dev/null | |
8b501d36 | 16590 | sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'` |
cd9a469c | 16591 | |
16592 | libgomp_gnu_ld_version=`echo $ldver | \ | |
16593 | $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` | |
16594 | ||
16595 | # Set --gc-sections. | |
16596 | if test "$with_gnu_ld" = "notbroken"; then | |
16597 | # GNU ld it is! Joy and bunny rabbits! | |
16598 | ||
16599 | # All these tests are for C++; save the language and the compiler flags. | |
16600 | # Need to do this so that g++ won't try to link in libstdc++ | |
16601 | ac_test_CFLAGS="${CFLAGS+set}" | |
16602 | ac_save_CFLAGS="$CFLAGS" | |
16603 | CFLAGS='-x c++ -Wl,--gc-sections' | |
16604 | ||
16605 | # Check for -Wl,--gc-sections | |
16606 | # XXX This test is broken at the moment, as symbols required for linking | |
16607 | # are now in libsupc++ (not built yet). In addition, this test has | |
16608 | # cored on solaris in the past. In addition, --gc-sections doesn't | |
16609 | # really work at the moment (keeps on discarding used sections, first | |
16610 | # .eh_frame and now some of the glibc sections for iconv). | |
16611 | # Bzzzzt. Thanks for playing, maybe next time. | |
16612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 | |
16613 | $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } | |
16614 | if test "$cross_compiling" = yes; then : | |
16615 | ac_sectionLDflags=yes | |
16616 | else | |
16617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16618 | /* end confdefs.h. */ | |
16619 | ||
16620 | int main(void) | |
16621 | { | |
16622 | try { throw 1; } | |
16623 | catch (...) { }; | |
16624 | return 0; | |
16625 | } | |
fd6481cf | 16626 | |
fd6481cf | 16627 | _ACEOF |
cd9a469c | 16628 | if ac_fn_c_try_run "$LINENO"; then : |
16629 | ac_sectionLDflags=yes | |
16630 | else | |
16631 | ac_sectionLDflags=no | |
16632 | fi | |
16633 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16634 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16635 | fi | |
16636 | ||
16637 | if test "$ac_test_CFLAGS" = set; then | |
16638 | CFLAGS="$ac_save_CFLAGS" | |
16639 | else | |
16640 | # this is the suspicious part | |
16641 | CFLAGS='' | |
16642 | fi | |
16643 | if test "$ac_sectionLDflags" = "yes"; then | |
16644 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | |
16645 | fi | |
16646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 | |
16647 | $as_echo "$ac_sectionLDflags" >&6; } | |
16648 | fi | |
16649 | ||
16650 | # Set linker optimization flags. | |
16651 | if test x"$with_gnu_ld" = x"yes"; then | |
16652 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | |
16653 | fi | |
16654 | ||
16655 | ||
16656 | ||
16657 | ||
16658 | ||
16659 | ||
16660 | # Check whether --enable-symvers was given. | |
16661 | if test "${enable_symvers+set}" = set; then : | |
16662 | enableval=$enable_symvers; | |
16663 | case "$enableval" in | |
de656189 | 16664 | yes|no|gnu*|sun) ;; |
f00f02a3 | 16665 | *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; |
cd9a469c | 16666 | esac |
16667 | ||
16668 | else | |
16669 | enable_symvers=yes | |
16670 | fi | |
16671 | ||
16672 | ||
16673 | ||
16674 | # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we | |
16675 | # don't know enough about $LD to do tricks... | |
16676 | ||
bbb514dc | 16677 | |
16678 | # Turn a 'yes' into a suitable default. | |
16679 | if test x$enable_symvers = xyes ; then | |
16680 | # FIXME The following test is too strict, in theory. | |
16681 | if test $enable_shared = no || test "x$LD" = x; then | |
16682 | enable_symvers=no | |
71cbce26 | 16683 | else |
bbb514dc | 16684 | if test $with_gnu_ld = yes ; then |
16685 | enable_symvers=gnu | |
16686 | else | |
16687 | case ${target_os} in | |
16688 | # Sun symbol versioning exists since Solaris 2.5. | |
16689 | solaris2.[5-9]* | solaris2.1[0-9]*) | |
16690 | enable_symvers=sun ;; | |
16691 | *) | |
16692 | enable_symvers=no ;; | |
16693 | esac | |
16694 | fi | |
71cbce26 | 16695 | fi |
16696 | fi | |
16697 | ||
16698 | # Check if 'sun' was requested on non-Solaris 2 platforms. | |
16699 | if test x$enable_symvers = xsun ; then | |
16700 | case ${target_os} in | |
16701 | solaris2*) | |
16702 | # All fine. | |
16703 | ;; | |
16704 | *) | |
16705 | # Unlikely to work. | |
16706 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 | |
16707 | $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} | |
16708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 | |
16709 | $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} | |
16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16711 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16712 | enable_symvers=no | |
16713 | ;; | |
16714 | esac | |
cd9a469c | 16715 | fi |
16716 | ||
16717 | # Check to see if libgcc_s exists, indicating that shared libgcc is possible. | |
16718 | if test $enable_symvers != no; then | |
16719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 | |
16720 | $as_echo_n "checking for shared libgcc... " >&6; } | |
16721 | ac_save_CFLAGS="$CFLAGS" | |
16722 | CFLAGS=' -lgcc_s' | |
16723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fd6481cf | 16724 | /* end confdefs.h. */ |
16725 | ||
16726 | int | |
16727 | main () | |
16728 | { | |
cd9a469c | 16729 | return 0; |
fd6481cf | 16730 | ; |
16731 | return 0; | |
16732 | } | |
16733 | _ACEOF | |
cd9a469c | 16734 | if ac_fn_c_try_link "$LINENO"; then : |
16735 | libgomp_shared_libgcc=yes | |
16736 | else | |
16737 | libgomp_shared_libgcc=no | |
16738 | fi | |
16739 | rm -f core conftest.err conftest.$ac_objext \ | |
16740 | conftest$ac_exeext conftest.$ac_ext | |
16741 | CFLAGS="$ac_save_CFLAGS" | |
16742 | if test $libgomp_shared_libgcc = no; then | |
16743 | cat > conftest.c <<EOF | |
16744 | int main (void) { return 0; } | |
16745 | EOF | |
16746 | libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
16747 | -shared -shared-libgcc -o conftest.so \ | |
16748 | conftest.c -v 2>&1 >/dev/null \ | |
16749 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
16750 | rm -f conftest.c conftest.so | |
16751 | if test x${libgomp_libgcc_s_suffix+set} = xset; then | |
16752 | CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" | |
16753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fd6481cf | 16754 | /* end confdefs.h. */ |
16755 | ||
16756 | int | |
16757 | main () | |
16758 | { | |
cd9a469c | 16759 | return 0; |
fd6481cf | 16760 | ; |
16761 | return 0; | |
16762 | } | |
16763 | _ACEOF | |
cd9a469c | 16764 | if ac_fn_c_try_link "$LINENO"; then : |
16765 | libgomp_shared_libgcc=yes | |
16766 | fi | |
16767 | rm -f core conftest.err conftest.$ac_objext \ | |
16768 | conftest$ac_exeext conftest.$ac_ext | |
16769 | CFLAGS="$ac_save_CFLAGS" | |
16770 | fi | |
16771 | fi | |
16772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5 | |
16773 | $as_echo "$libgomp_shared_libgcc" >&6; } | |
16774 | fi | |
16775 | ||
16776 | # For GNU ld, we need at least this version. The format is described in | |
16777 | # LIBGOMP_CHECK_LINKER_FEATURES above. | |
16778 | libgomp_min_gnu_ld_version=21400 | |
16779 | # XXXXXXXXXXX libgomp_gnu_ld_version=21390 | |
fd6481cf | 16780 | |
cd9a469c | 16781 | # Check to see if unspecified "yes" value can win, given results above. |
16782 | # Change "yes" into either "no" or a style name. | |
71cbce26 | 16783 | if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then |
16784 | if test $with_gnu_ld = yes; then | |
cd9a469c | 16785 | if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then |
16786 | enable_symvers=gnu | |
16787 | elif test $libgomp_ld_is_gold = yes ; then | |
16788 | enable_symvers=gnu | |
16789 | else | |
16790 | # The right tools, the right setup, but too old. Fallbacks? | |
16791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 | |
16792 | $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} | |
16793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 | |
16794 | $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} | |
16795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 | |
16796 | $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} | |
16797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 | |
16798 | $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} | |
16799 | if test $libgomp_gnu_ld_version -ge 21200 ; then | |
16800 | # Globbing fix is present, proper block support is not. | |
16801 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16802 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16803 | enable_symvers=no | |
16804 | else | |
16805 | # 2.11 or older. | |
16806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16807 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16808 | enable_symvers=no | |
16809 | fi | |
16810 | fi | |
71cbce26 | 16811 | elif test $enable_symvers = sun; then |
16812 | : All interesting versions of Sun ld support sun style symbol versioning. | |
cd9a469c | 16813 | else |
16814 | # just fail for now | |
16815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 | |
16816 | $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} | |
16817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 | |
16818 | $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} | |
16819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 | |
16820 | $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} | |
16821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16822 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16823 | enable_symvers=no | |
16824 | fi | |
fd6481cf | 16825 | fi |
cd9a469c | 16826 | |
16827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5 | |
16828 | $as_echo_n "checking whether the target supports .symver directive... " >&6; } | |
f00f02a3 | 16829 | if ${libgomp_cv_have_as_symver_directive+:} false; then : |
cd9a469c | 16830 | $as_echo_n "(cached) " >&6 |
fd6481cf | 16831 | else |
fd6481cf | 16832 | |
cd9a469c | 16833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fd6481cf | 16834 | /* end confdefs.h. */ |
cd9a469c | 16835 | void foo (void); __asm (".symver foo, bar@SYMVER"); |
fd6481cf | 16836 | int |
16837 | main () | |
16838 | { | |
fd6481cf | 16839 | |
16840 | ; | |
16841 | return 0; | |
16842 | } | |
16843 | _ACEOF | |
cd9a469c | 16844 | if ac_fn_c_try_compile "$LINENO"; then : |
16845 | libgomp_cv_have_as_symver_directive=yes | |
fd6481cf | 16846 | else |
cd9a469c | 16847 | libgomp_cv_have_as_symver_directive=no |
16848 | fi | |
16849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16850 | fi | |
16851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5 | |
16852 | $as_echo "$libgomp_cv_have_as_symver_directive" >&6; } | |
16853 | if test $libgomp_cv_have_as_symver_directive = yes; then | |
16854 | ||
16855 | $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h | |
fd6481cf | 16856 | |
fd6481cf | 16857 | fi |
cd9a469c | 16858 | |
16859 | if test $enable_symvers != no; then | |
16860 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= | |
16861 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' | |
fd6481cf | 16862 | else |
cd9a469c | 16863 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' |
16864 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= | |
16865 | fi | |
fd6481cf | 16866 | |
71cbce26 | 16867 | if test $enable_symvers = gnu; then |
16868 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE= | |
16869 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' | |
16870 | else | |
16871 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' | |
16872 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE= | |
16873 | fi | |
16874 | ||
16875 | if test $enable_symvers = sun; then | |
16876 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE= | |
16877 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' | |
16878 | else | |
16879 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' | |
16880 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE= | |
16881 | fi | |
16882 | ||
cd9a469c | 16883 | { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 |
16884 | $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} | |
fd6481cf | 16885 | |
71cbce26 | 16886 | if test $enable_symvers != no ; then |
16887 | case ${target_os} in | |
16888 | # The Solaris 2 runtime linker doesn't support the GNU extension of | |
16889 | # binding the same symbol to different versions | |
16890 | solaris2*) | |
fb6822c1 | 16891 | ;; |
71cbce26 | 16892 | # Other platforms with GNU symbol versioning (GNU/Linux, more?) do. |
16893 | *) | |
16894 | ||
16895 | $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h | |
16896 | ||
fb6822c1 | 16897 | ;; |
71cbce26 | 16898 | esac |
71cbce26 | 16899 | fi |
16900 | ||
16901 | ||
cd9a469c | 16902 | if test $enable_symvers = gnu; then |
16903 | ||
16904 | $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h | |
fd6481cf | 16905 | |
16906 | fi | |
cd9a469c | 16907 | |
5c80018e | 16908 | # Determine cpu count to limit testsuite parallelism. |
16909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5 | |
16910 | $as_echo_n "checking the number of available CPUs... " >&6; } | |
16911 | CPU_COUNT="0" | |
16912 | ||
16913 | # Try generic methods | |
16914 | ||
16915 | # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and | |
16916 | # 'NPROCESSORS_ONLN' are platform-specific | |
16917 | command -v getconf >/dev/null 2>&1 && \ | |
16918 | CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0" | |
16919 | if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then : | |
16920 | : # empty | |
16921 | else | |
16922 | # 'nproc' is part of GNU Coreutils and is widely available | |
16923 | CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0" | |
16924 | ||
16925 | fi | |
16926 | if test "$CPU_COUNT" -gt "0" 2>/dev/null; then : | |
16927 | : # empty | |
16928 | else | |
16929 | # Try platform-specific preferred methods | |
16930 | case $host_os in #( | |
16931 | *linux*) : | |
16932 | CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #( | |
16933 | *darwin*) : | |
16934 | CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #( | |
16935 | freebsd*) : | |
16936 | command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #( | |
16937 | netbsd*) : | |
16938 | command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #( | |
16939 | solaris*) : | |
16940 | command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #( | |
16941 | mingw*) : | |
16942 | CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( | |
16943 | msys*) : | |
16944 | CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( | |
16945 | cygwin*) : | |
16946 | CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( | |
16947 | *) : | |
16948 | ;; | |
16949 | esac | |
16950 | fi | |
16951 | if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then : | |
16952 | : # empty | |
16953 | else | |
16954 | # Try less preferred generic method | |
16955 | # 'hw.ncpu' exist on many platforms, but not on GNU/Linux | |
16956 | CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0" | |
16957 | ||
16958 | fi | |
16959 | if test "$CPU_COUNT" -gt "0" 2>/dev/null; then : | |
16960 | : # empty | |
16961 | else | |
16962 | # Try platform-specific fallback methods | |
16963 | # They can be less accurate and slower then preferred methods | |
16964 | case $host_os in #( | |
16965 | *linux*) : | |
16966 | CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #( | |
16967 | *darwin*) : | |
16968 | CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #( | |
16969 | freebsd*) : | |
16970 | CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( | |
16971 | netbsd*) : | |
16972 | CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \ | |
16973 | CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( | |
16974 | solaris*) : | |
16975 | command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \ | |
16976 | CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #( | |
16977 | mingw*) : | |
16978 | if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then : | |
16979 | : # empty | |
16980 | else | |
16981 | test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" | |
16982 | fi ;; #( | |
16983 | msys*) : | |
16984 | test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( | |
16985 | cygwin*) : | |
16986 | test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( | |
16987 | *) : | |
16988 | ;; | |
16989 | esac | |
16990 | fi | |
16991 | if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then : | |
16992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5 | |
16993 | $as_echo "$CPU_COUNT" >&6; } | |
16994 | ||
16995 | else | |
16996 | CPU_COUNT="1" | |
16997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5 | |
16998 | $as_echo "unable to detect (assuming 1)" >&6; } | |
16999 | ||
17000 | fi | |
17001 | ||
17002 | ||
cd9a469c | 17003 | # Get target configury. |
17004 | . ${srcdir}/configure.tgt | |
17005 | CFLAGS="$save_CFLAGS $XCFLAGS" | |
17006 | ||
17007 | # Check for __sync_val_compare_and_swap, but only after the target has | |
17008 | # had a chance to set XCFLAGS. | |
17009 | ||
17010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 | |
17011 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } | |
f00f02a3 | 17012 | if ${libgomp_cv_have_sync_builtins+:} false; then : |
cd9a469c | 17013 | $as_echo_n "(cached) " >&6 |
17014 | else | |
17015 | ||
17016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fd6481cf | 17017 | /* end confdefs.h. */ |
17018 | ||
17019 | int | |
17020 | main () | |
17021 | { | |
14a88549 | 17022 | int foo; __sync_val_compare_and_swap(&foo, 0, 1); |
fd6481cf | 17023 | ; |
17024 | return 0; | |
17025 | } | |
17026 | _ACEOF | |
cd9a469c | 17027 | if ac_fn_c_try_link "$LINENO"; then : |
17028 | libgomp_cv_have_sync_builtins=yes | |
17029 | else | |
17030 | libgomp_cv_have_sync_builtins=no | |
17031 | fi | |
17032 | rm -f core conftest.err conftest.$ac_objext \ | |
17033 | conftest$ac_exeext conftest.$ac_ext | |
17034 | fi | |
17035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5 | |
17036 | $as_echo "$libgomp_cv_have_sync_builtins" >&6; } | |
17037 | if test $libgomp_cv_have_sync_builtins = yes; then | |
fd6481cf | 17038 | |
cd9a469c | 17039 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h |
17040 | ||
17041 | fi | |
17042 | ||
17043 | XCFLAGS="$XCFLAGS$XPCFLAGS" | |
17044 | ||
79e3a293 | 17045 | # Add CET specific flags if CET is enabled |
17046 | # Check whether --enable-cet was given. | |
17047 | if test "${enable_cet+set}" = set; then : | |
17048 | enableval=$enable_cet; | |
17049 | case "$enableval" in | |
ee8fea81 | 17050 | yes|no|auto) ;; |
f00f02a3 | 17051 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
79e3a293 | 17052 | esac |
17053 | ||
17054 | else | |
ee8fea81 | 17055 | enable_cet=no |
79e3a293 | 17056 | fi |
17057 | ||
17058 | ||
5611e648 | 17059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
17060 | $as_echo_n "checking for CET support... " >&6; } | |
17061 | ||
79e3a293 | 17062 | case "$host" in |
17063 | i[34567]86-*-linux* | x86_64-*-linux*) | |
17064 | case "$enable_cet" in | |
ee8fea81 | 17065 | auto) |
5611e648 | 17066 | # Check if target supports multi-byte NOPs |
17067 | # and if assembler supports CET insn. | |
79e3a293 | 17068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17069 | /* end confdefs.h. */ | |
17070 | ||
17071 | int | |
17072 | main () | |
17073 | { | |
5611e648 | 17074 | |
17075 | #if !defined(__SSE2__) | |
17076 | #error target does not support multi-byte NOPs | |
17077 | #else | |
79e3a293 | 17078 | asm ("setssbsy"); |
5611e648 | 17079 | #endif |
17080 | ||
79e3a293 | 17081 | ; |
17082 | return 0; | |
17083 | } | |
17084 | _ACEOF | |
17085 | if ac_fn_c_try_compile "$LINENO"; then : | |
17086 | enable_cet=yes | |
17087 | else | |
17088 | enable_cet=no | |
17089 | fi | |
17090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17091 | ;; | |
17092 | yes) | |
17093 | # Check if assembler supports CET. | |
17094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17095 | /* end confdefs.h. */ | |
17096 | ||
17097 | int | |
17098 | main () | |
17099 | { | |
17100 | asm ("setssbsy"); | |
17101 | ; | |
17102 | return 0; | |
17103 | } | |
17104 | _ACEOF | |
17105 | if ac_fn_c_try_compile "$LINENO"; then : | |
17106 | ||
17107 | else | |
f00f02a3 | 17108 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
79e3a293 | 17109 | fi |
17110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17111 | ;; | |
17112 | esac | |
17113 | ;; | |
17114 | *) | |
17115 | enable_cet=no | |
17116 | ;; | |
17117 | esac | |
17118 | if test x$enable_cet = xyes; then | |
6726651f | 17119 | CET_FLAGS="-fcf-protection -mshstk" |
5611e648 | 17120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17121 | $as_echo "yes" >&6; } | |
17122 | else | |
17123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17124 | $as_echo "no" >&6; } | |
79e3a293 | 17125 | fi |
17126 | ||
17127 | XCFLAGS="$XCFLAGS $CET_FLAGS" | |
17128 | FCFLAGS="$FCFLAGS $CET_FLAGS" | |
17129 | ||
cd9a469c | 17130 | |
17131 | ||
17132 | ||
17133 | ||
17134 | # Cleanup and exit. | |
17135 | CFLAGS="$save_CFLAGS" | |
17136 | cat >confcache <<\_ACEOF | |
17137 | # This file is a shell script that caches the results of configure | |
17138 | # tests run on this system so they can be shared between configure | |
17139 | # scripts and configure runs, see configure's option --config-cache. | |
17140 | # It is not useful on other systems. If it contains results you don't | |
17141 | # want to keep, you may remove or edit it. | |
17142 | # | |
17143 | # config.status only pays attention to the cache file if you give it | |
17144 | # the --recheck option to rerun configure. | |
17145 | # | |
17146 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17147 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17148 | # following values. | |
fd6481cf | 17149 | |
fd6481cf | 17150 | _ACEOF |
cd9a469c | 17151 | |
17152 | # The following way of writing the cache mishandles newlines in values, | |
17153 | # but we know of no workaround that is simple, portable, and efficient. | |
17154 | # So, we kill variables containing newlines. | |
17155 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17156 | # and sets the high bit in the cache file unless we assign to the vars. | |
17157 | ( | |
17158 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17159 | eval ac_val=\$$ac_var | |
17160 | case $ac_val in #( | |
17161 | *${as_nl}*) | |
17162 | case $ac_var in #( | |
17163 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17164 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17165 | esac | |
17166 | case $ac_var in #( | |
17167 | _ | IFS | as_nl) ;; #( | |
17168 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17169 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17170 | esac ;; | |
17171 | esac | |
17172 | done | |
17173 | ||
17174 | (set) 2>&1 | | |
17175 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
17176 | *${as_nl}ac_space=\ *) | |
17177 | # `set' does not quote correctly, so add quotes: double-quote | |
17178 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
17179 | sed -n \ | |
17180 | "s/'/'\\\\''/g; | |
17181 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17182 | ;; #( | |
17183 | *) | |
17184 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17185 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
17186 | ;; | |
17187 | esac | | |
17188 | sort | |
17189 | ) | | |
17190 | sed ' | |
17191 | /^ac_cv_env_/b end | |
17192 | t clear | |
17193 | :clear | |
17194 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17195 | t end | |
17196 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17197 | :end' >>confcache | |
17198 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17199 | if test -w "$cache_file"; then | |
f00f02a3 | 17200 | if test "x$cache_file" != "x/dev/null"; then |
cd9a469c | 17201 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17202 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f00f02a3 | 17203 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17204 | cat confcache >"$cache_file" | |
17205 | else | |
17206 | case $cache_file in #( | |
17207 | */* | ?:*) | |
17208 | mv -f confcache "$cache_file"$$ && | |
17209 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17210 | *) | |
17211 | mv -f confcache "$cache_file" ;; | |
17212 | esac | |
17213 | fi | |
17214 | fi | |
cd9a469c | 17215 | else |
17216 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
17217 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
17218 | fi | |
17219 | fi | |
17220 | rm -f confcache | |
17221 | ||
17222 | if test ${multilib} = yes; then | |
17223 | multilib_arg="--enable-multilib" | |
fd6481cf | 17224 | else |
cd9a469c | 17225 | multilib_arg= |
17226 | fi | |
17227 | ||
17228 | # Set up the set of libraries that we need to link against for libgomp. | |
4d07f291 | 17229 | # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread, |
cd9a469c | 17230 | # which will force linkage against -lpthread (or equivalent for the system). |
17231 | # That's not 100% ideal, but about the best we can do easily. | |
17232 | if test $enable_shared = yes; then | |
17233 | link_gomp="-lgomp %{static: $LIBS}" | |
17234 | else | |
17235 | link_gomp="-lgomp $LIBS" | |
17236 | fi | |
17237 | ||
17238 | ||
17239 | if test "$ac_cv_fc_compiler_gnu" = yes; then | |
17240 | USE_FORTRAN_TRUE= | |
17241 | USE_FORTRAN_FALSE='#' | |
17242 | else | |
17243 | USE_FORTRAN_TRUE='#' | |
17244 | USE_FORTRAN_FALSE= | |
17245 | fi | |
17246 | ||
17247 | ||
17248 | # ??? 2006-01-24: Paulo committed to asking autoconf folk to document | |
17249 | # and export AC_COMPUTE_INT. If that happens, then we'll need to remove | |
17250 | # the underscore here and update the PREREQ. If it doesn't, then we'll | |
17251 | # need to copy this macro to our acinclude.m4. | |
17252 | save_CFLAGS="$CFLAGS" | |
17253 | for i in $config_path; do | |
17254 | if test -f $srcdir/config/$i/omp-lock.h; then | |
17255 | CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h" | |
17256 | break | |
17257 | fi | |
17258 | done | |
fd6481cf | 17259 | |
cd9a469c | 17260 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then : |
fd6481cf | 17261 | |
cd9a469c | 17262 | else |
f00f02a3 | 17263 | as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5 |
cd9a469c | 17264 | fi |
fd6481cf | 17265 | |
fd6481cf | 17266 | |
cd9a469c | 17267 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then : |
fd6481cf | 17268 | |
cd9a469c | 17269 | fi |
fd6481cf | 17270 | |
fd6481cf | 17271 | |
cd9a469c | 17272 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then : |
fd6481cf | 17273 | |
fd6481cf | 17274 | fi |
fd6481cf | 17275 | |
fd6481cf | 17276 | |
cd9a469c | 17277 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then : |
fd6481cf | 17278 | |
fd6481cf | 17279 | fi |
fd6481cf | 17280 | |
fd6481cf | 17281 | |
cd9a469c | 17282 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then : |
fd6481cf | 17283 | |
fd6481cf | 17284 | else |
f00f02a3 | 17285 | as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5 |
cd9a469c | 17286 | fi |
17287 | ||
17288 | ||
17289 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then : | |
fd6481cf | 17290 | |
17291 | fi | |
cd9a469c | 17292 | |
17293 | ||
17294 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then : | |
17295 | ||
fd6481cf | 17296 | fi |
cd9a469c | 17297 | |
17298 | ||
17299 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then : | |
17300 | ||
fd6481cf | 17301 | fi |
cd9a469c | 17302 | |
17303 | ||
fd6481cf | 17304 | |
17305 | # If the lock fits in an integer, then arrange for Fortran to use that | |
17306 | # integer. If it doesn't, then arrange for Fortran to use a pointer. | |
17307 | # Except that we don't have a way at present to multi-lib the installed | |
17308 | # Fortran modules, so we assume 8 bytes for pointers, regardless of the | |
17309 | # actual target. | |
17310 | OMP_LOCK_KIND=$OMP_LOCK_SIZE | |
17311 | OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE | |
17312 | if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then | |
17313 | OMP_LOCK_KIND=8 | |
17314 | fi | |
17315 | if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then | |
17316 | OMP_NEST_LOCK_KIND=8 | |
17317 | fi | |
17318 | OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE | |
17319 | OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE | |
17320 | if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then | |
17321 | OMP_LOCK_25_KIND=8 | |
17322 | fi | |
17323 | if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then | |
17324 | OMP_NEST_LOCK_25_KIND=8 | |
17325 | fi | |
17326 | ||
17327 | ||
17328 | ||
17329 | ||
17330 | ||
17331 | ||
107c3bbf | 17332 | |
17333 | ||
17334 | ||
17335 | ||
17336 | ||
17337 | ||
17338 | ||
17339 | CFLAGS="$save_CFLAGS" | |
17340 | ||
0812bb06 | 17341 | # Determine what GCC version number to use in filesystem paths. |
17342 | ||
17343 | get_gcc_base_ver="cat" | |
17344 | ||
17345 | # Check whether --with-gcc-major-version-only was given. | |
17346 | if test "${with_gcc_major_version_only+set}" = set; then : | |
17347 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
124c259e | 17348 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
0812bb06 | 17349 | fi |
17350 | ||
17351 | fi | |
17352 | ||
17353 | ||
17354 | ||
17355 | ||
cd9a469c | 17356 | ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" |
107c3bbf | 17357 | |
cd9a469c | 17358 | ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" |
1e8e9920 | 17359 | |
ca4c3545 | 17360 | ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" |
17361 | ||
1e8e9920 | 17362 | cat >confcache <<\_ACEOF |
17363 | # This file is a shell script that caches the results of configure | |
17364 | # tests run on this system so they can be shared between configure | |
17365 | # scripts and configure runs, see configure's option --config-cache. | |
17366 | # It is not useful on other systems. If it contains results you don't | |
17367 | # want to keep, you may remove or edit it. | |
17368 | # | |
17369 | # config.status only pays attention to the cache file if you give it | |
17370 | # the --recheck option to rerun configure. | |
17371 | # | |
17372 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17373 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17374 | # following values. | |
17375 | ||
17376 | _ACEOF | |
17377 | ||
17378 | # The following way of writing the cache mishandles newlines in values, | |
17379 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 17380 | # So, we kill variables containing newlines. |
1e8e9920 | 17381 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17382 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 17383 | ( |
17384 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17385 | eval ac_val=\$$ac_var | |
17386 | case $ac_val in #( | |
17387 | *${as_nl}*) | |
17388 | case $ac_var in #( | |
17389 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17390 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17391 | esac | |
17392 | case $ac_var in #( | |
17393 | _ | IFS | as_nl) ;; #( | |
17394 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17395 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17396 | esac ;; | |
17397 | esac | |
17398 | done | |
17399 | ||
1e8e9920 | 17400 | (set) 2>&1 | |
cd9a469c | 17401 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17402 | *${as_nl}ac_space=\ *) | |
17403 | # `set' does not quote correctly, so add quotes: double-quote | |
17404 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1e8e9920 | 17405 | sed -n \ |
17406 | "s/'/'\\\\''/g; | |
17407 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 17408 | ;; #( |
1e8e9920 | 17409 | *) |
17410 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 17411 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1e8e9920 | 17412 | ;; |
cd9a469c | 17413 | esac | |
17414 | sort | |
17415 | ) | | |
1e8e9920 | 17416 | sed ' |
cd9a469c | 17417 | /^ac_cv_env_/b end |
1e8e9920 | 17418 | t clear |
cd9a469c | 17419 | :clear |
1e8e9920 | 17420 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17421 | t end | |
cd9a469c | 17422 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17423 | :end' >>confcache | |
17424 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17425 | if test -w "$cache_file"; then | |
f00f02a3 | 17426 | if test "x$cache_file" != "x/dev/null"; then |
cd9a469c | 17427 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17428 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f00f02a3 | 17429 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17430 | cat confcache >"$cache_file" | |
17431 | else | |
17432 | case $cache_file in #( | |
17433 | */* | ?:*) | |
17434 | mv -f confcache "$cache_file"$$ && | |
17435 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17436 | *) | |
17437 | mv -f confcache "$cache_file" ;; | |
17438 | esac | |
17439 | fi | |
17440 | fi | |
1e8e9920 | 17441 | else |
cd9a469c | 17442 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17443 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
1e8e9920 | 17444 | fi |
17445 | fi | |
17446 | rm -f confcache | |
17447 | ||
17448 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17449 | # Let make expand exec_prefix. | |
17450 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17451 | ||
1e8e9920 | 17452 | DEFS=-DHAVE_CONFIG_H |
17453 | ||
17454 | ac_libobjs= | |
17455 | ac_ltlibobjs= | |
f00f02a3 | 17456 | U= |
1e8e9920 | 17457 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17458 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 17459 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17460 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17461 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17462 | # will be set to the directory where LIBOBJS objects are built. | |
17463 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17464 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1e8e9920 | 17465 | done |
17466 | LIBOBJS=$ac_libobjs | |
17467 | ||
17468 | LTLIBOBJS=$ac_ltlibobjs | |
17469 | ||
17470 | ||
aeda7a78 | 17471 | if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then |
f00f02a3 | 17472 | as_fn_error $? "conditional \"GENINSRC\" was never defined. |
cd9a469c | 17473 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17474 | fi | |
f00f02a3 | 17475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17476 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17477 | if test -n "$am_sleep_pid"; then | |
17478 | # Hide warnings about reused PIDs. | |
17479 | wait $am_sleep_pid 2>/dev/null | |
17480 | fi | |
17481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17482 | $as_echo "done" >&6; } | |
cd9a469c | 17483 | if test -n "$EXEEXT"; then |
17484 | am__EXEEXT_TRUE= | |
17485 | am__EXEEXT_FALSE='#' | |
17486 | else | |
17487 | am__EXEEXT_TRUE='#' | |
17488 | am__EXEEXT_FALSE= | |
aeda7a78 | 17489 | fi |
cd9a469c | 17490 | |
1e8e9920 | 17491 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
f00f02a3 | 17492 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
cd9a469c | 17493 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
1e8e9920 | 17494 | fi |
17495 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
f00f02a3 | 17496 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
cd9a469c | 17497 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
1e8e9920 | 17498 | fi |
439d698f | 17499 | if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then |
f00f02a3 | 17500 | as_fn_error $? "conditional \"BUILD_INFO\" was never defined. |
cd9a469c | 17501 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
439d698f | 17502 | fi |
a263d1ab | 17503 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
f00f02a3 | 17504 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
cd9a469c | 17505 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
a263d1ab | 17506 | fi |
ca4c3545 | 17507 | if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then |
f00f02a3 | 17508 | as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined. |
ca4c3545 | 17509 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17510 | fi | |
56686608 | 17511 | if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then |
f00f02a3 | 17512 | as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined. |
56686608 | 17513 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17514 | fi | |
1e8e9920 | 17515 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then |
f00f02a3 | 17516 | as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. |
cd9a469c | 17517 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
1e8e9920 | 17518 | fi |
71cbce26 | 17519 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then |
f00f02a3 | 17520 | as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined. |
71cbce26 | 17521 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17522 | fi | |
17523 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then | |
f00f02a3 | 17524 | as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined. |
71cbce26 | 17525 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17526 | fi | |
1e8e9920 | 17527 | if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then |
f00f02a3 | 17528 | as_fn_error $? "conditional \"USE_FORTRAN\" was never defined. |
cd9a469c | 17529 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
1e8e9920 | 17530 | fi |
17531 | ||
f00f02a3 | 17532 | : "${CONFIG_STATUS=./config.status}" |
cd9a469c | 17533 | ac_write_fail=0 |
1e8e9920 | 17534 | ac_clean_files_save=$ac_clean_files |
17535 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 17536 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17537 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17538 | as_write_fail=0 | |
17539 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1e8e9920 | 17540 | #! $SHELL |
17541 | # Generated by $as_me. | |
17542 | # Run this file to recreate the current configuration. | |
17543 | # Compiler output produced by configure, useful for debugging | |
17544 | # configure, is in config.log if it exists. | |
17545 | ||
17546 | debug=false | |
17547 | ac_cs_recheck=false | |
17548 | ac_cs_silent=false | |
1e8e9920 | 17549 | |
cd9a469c | 17550 | SHELL=\${CONFIG_SHELL-$SHELL} |
17551 | export SHELL | |
17552 | _ASEOF | |
17553 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17554 | ## -------------------- ## | |
17555 | ## M4sh Initialization. ## | |
17556 | ## -------------------- ## | |
17557 | ||
17558 | # Be more Bourne compatible | |
17559 | DUALCASE=1; export DUALCASE # for MKS sh | |
17560 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1e8e9920 | 17561 | emulate sh |
17562 | NULLCMD=: | |
cd9a469c | 17563 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1e8e9920 | 17564 | # is contrary to our usage. Disable this feature. |
17565 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 17566 | setopt NO_GLOB_SUBST |
17567 | else | |
17568 | case `(set -o) 2>/dev/null` in #( | |
17569 | *posix*) : | |
17570 | set -o posix ;; #( | |
17571 | *) : | |
17572 | ;; | |
17573 | esac | |
1e8e9920 | 17574 | fi |
1e8e9920 | 17575 | |
cd9a469c | 17576 | |
17577 | as_nl=' | |
17578 | ' | |
17579 | export as_nl | |
17580 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17581 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17582 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17583 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17584 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17585 | # but without wasting forks for bash or zsh. | |
17586 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17587 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17588 | as_echo='print -r --' | |
17589 | as_echo_n='print -rn --' | |
17590 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17591 | as_echo='printf %s\n' | |
17592 | as_echo_n='printf %s' | |
17593 | else | |
17594 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17595 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17596 | as_echo_n='/usr/ucb/echo -n' | |
17597 | else | |
17598 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17599 | as_echo_n_body='eval | |
17600 | arg=$1; | |
17601 | case $arg in #( | |
17602 | *"$as_nl"*) | |
17603 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17604 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17605 | esac; | |
17606 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17607 | ' | |
17608 | export as_echo_n_body | |
17609 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17610 | fi | |
17611 | export as_echo_body | |
17612 | as_echo='sh -c $as_echo_body as_echo' | |
17613 | fi | |
17614 | ||
17615 | # The user is always right. | |
17616 | if test "${PATH_SEPARATOR+set}" != set; then | |
17617 | PATH_SEPARATOR=: | |
17618 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17619 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17620 | PATH_SEPARATOR=';' | |
17621 | } | |
1e8e9920 | 17622 | fi |
17623 | ||
17624 | ||
cd9a469c | 17625 | # IFS |
17626 | # We need space, tab and new line, in precisely that order. Quoting is | |
17627 | # there to prevent editors from complaining about space-tab. | |
17628 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17629 | # splitting by setting IFS to empty value.) | |
17630 | IFS=" "" $as_nl" | |
17631 | ||
17632 | # Find who we are. Look in the path if we contain no directory separator. | |
f00f02a3 | 17633 | as_myself= |
cd9a469c | 17634 | case $0 in #(( |
17635 | *[\\/]* ) as_myself=$0 ;; | |
17636 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17637 | for as_dir in $PATH | |
17638 | do | |
17639 | IFS=$as_save_IFS | |
17640 | test -z "$as_dir" && as_dir=. | |
17641 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17642 | done | |
17643 | IFS=$as_save_IFS | |
17644 | ||
17645 | ;; | |
17646 | esac | |
17647 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17648 | # in which case we are not to be found in the path. | |
17649 | if test "x$as_myself" = x; then | |
17650 | as_myself=$0 | |
17651 | fi | |
17652 | if test ! -f "$as_myself"; then | |
17653 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17654 | exit 1 | |
17655 | fi | |
17656 | ||
17657 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17658 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17659 | # suppresses any "Segmentation fault" message there. '((' could | |
17660 | # trigger a bug in pdksh 5.2.14. | |
17661 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17662 | do eval test x\${$as_var+set} = xset \ | |
17663 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17664 | done | |
1e8e9920 | 17665 | PS1='$ ' |
17666 | PS2='> ' | |
17667 | PS4='+ ' | |
17668 | ||
17669 | # NLS nuisances. | |
cd9a469c | 17670 | LC_ALL=C |
17671 | export LC_ALL | |
17672 | LANGUAGE=C | |
17673 | export LANGUAGE | |
17674 | ||
17675 | # CDPATH. | |
17676 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17677 | ||
17678 | ||
f00f02a3 | 17679 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17680 | # ---------------------------------------- | |
cd9a469c | 17681 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17682 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
f00f02a3 | 17683 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 17684 | as_fn_error () |
17685 | { | |
f00f02a3 | 17686 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17687 | if test "$4"; then | |
17688 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17689 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1e8e9920 | 17690 | fi |
f00f02a3 | 17691 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 17692 | as_fn_exit $as_status |
17693 | } # as_fn_error | |
17694 | ||
17695 | ||
17696 | # as_fn_set_status STATUS | |
17697 | # ----------------------- | |
17698 | # Set $? to STATUS, without forking. | |
17699 | as_fn_set_status () | |
17700 | { | |
17701 | return $1 | |
17702 | } # as_fn_set_status | |
17703 | ||
17704 | # as_fn_exit STATUS | |
17705 | # ----------------- | |
17706 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17707 | as_fn_exit () | |
17708 | { | |
17709 | set +e | |
17710 | as_fn_set_status $1 | |
17711 | exit $1 | |
17712 | } # as_fn_exit | |
17713 | ||
17714 | # as_fn_unset VAR | |
17715 | # --------------- | |
17716 | # Portably unset VAR. | |
17717 | as_fn_unset () | |
17718 | { | |
17719 | { eval $1=; unset $1;} | |
17720 | } | |
17721 | as_unset=as_fn_unset | |
17722 | # as_fn_append VAR VALUE | |
17723 | # ---------------------- | |
17724 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17725 | # advantage of any shell optimizations that allow amortized linear growth over | |
17726 | # repeated appends, instead of the typical quadratic growth present in naive | |
17727 | # implementations. | |
17728 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17729 | eval 'as_fn_append () | |
17730 | { | |
17731 | eval $1+=\$2 | |
17732 | }' | |
17733 | else | |
17734 | as_fn_append () | |
17735 | { | |
17736 | eval $1=\$$1\$2 | |
17737 | } | |
17738 | fi # as_fn_append | |
17739 | ||
17740 | # as_fn_arith ARG... | |
17741 | # ------------------ | |
17742 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17743 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17744 | # must be portable across $(()) and expr. | |
17745 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17746 | eval 'as_fn_arith () | |
17747 | { | |
17748 | as_val=$(( $* )) | |
17749 | }' | |
17750 | else | |
17751 | as_fn_arith () | |
17752 | { | |
17753 | as_val=`expr "$@" || test $? -eq 1` | |
17754 | } | |
17755 | fi # as_fn_arith | |
17756 | ||
1e8e9920 | 17757 | |
cd9a469c | 17758 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17759 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1e8e9920 | 17760 | as_expr=expr |
17761 | else | |
17762 | as_expr=false | |
17763 | fi | |
17764 | ||
cd9a469c | 17765 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1e8e9920 | 17766 | as_basename=basename |
17767 | else | |
17768 | as_basename=false | |
17769 | fi | |
17770 | ||
cd9a469c | 17771 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17772 | as_dirname=dirname | |
17773 | else | |
17774 | as_dirname=false | |
17775 | fi | |
1e8e9920 | 17776 | |
cd9a469c | 17777 | as_me=`$as_basename -- "$0" || |
1e8e9920 | 17778 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
17779 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 17780 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
17781 | $as_echo X/"$0" | | |
17782 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17783 | s//\1/ | |
17784 | q | |
17785 | } | |
17786 | /^X\/\(\/\/\)$/{ | |
17787 | s//\1/ | |
17788 | q | |
17789 | } | |
17790 | /^X\/\(\/\).*/{ | |
17791 | s//\1/ | |
17792 | q | |
17793 | } | |
17794 | s/.*/./; q'` | |
1e8e9920 | 17795 | |
1e8e9920 | 17796 | # Avoid depending upon Character Ranges. |
17797 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17798 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17799 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17800 | as_cr_digits='0123456789' | |
17801 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17802 | ||
cd9a469c | 17803 | ECHO_C= ECHO_N= ECHO_T= |
17804 | case `echo -n x` in #((((( | |
17805 | -n*) | |
17806 | case `echo 'xy\c'` in | |
17807 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17808 | xy) ECHO_C='\c';; | |
17809 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17810 | ECHO_T=' ';; | |
17811 | esac;; | |
17812 | *) | |
17813 | ECHO_N='-n';; | |
1e8e9920 | 17814 | esac |
17815 | ||
cd9a469c | 17816 | rm -f conf$$ conf$$.exe conf$$.file |
17817 | if test -d conf$$.dir; then | |
17818 | rm -f conf$$.dir/conf$$.file | |
1e8e9920 | 17819 | else |
cd9a469c | 17820 | rm -f conf$$.dir |
17821 | mkdir conf$$.dir 2>/dev/null | |
1e8e9920 | 17822 | fi |
cd9a469c | 17823 | if (echo >conf$$.file) 2>/dev/null; then |
17824 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
1e8e9920 | 17825 | as_ln_s='ln -s' |
cd9a469c | 17826 | # ... but there are two gotchas: |
17827 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17828 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f00f02a3 | 17829 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 17830 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 17831 | as_ln_s='cp -pR' |
cd9a469c | 17832 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17833 | as_ln_s=ln | |
17834 | else | |
f00f02a3 | 17835 | as_ln_s='cp -pR' |
1e8e9920 | 17836 | fi |
1e8e9920 | 17837 | else |
f00f02a3 | 17838 | as_ln_s='cp -pR' |
1e8e9920 | 17839 | fi |
cd9a469c | 17840 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17841 | rmdir conf$$.dir 2>/dev/null | |
17842 | ||
17843 | ||
17844 | # as_fn_mkdir_p | |
17845 | # ------------- | |
17846 | # Create "$as_dir" as a directory, including parents if necessary. | |
17847 | as_fn_mkdir_p () | |
17848 | { | |
17849 | ||
17850 | case $as_dir in #( | |
17851 | -*) as_dir=./$as_dir;; | |
17852 | esac | |
17853 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17854 | as_dirs= | |
17855 | while :; do | |
17856 | case $as_dir in #( | |
17857 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17858 | *) as_qdir=$as_dir;; | |
17859 | esac | |
17860 | as_dirs="'$as_qdir' $as_dirs" | |
17861 | as_dir=`$as_dirname -- "$as_dir" || | |
17862 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17863 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17864 | X"$as_dir" : 'X\(//\)$' \| \ | |
17865 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17866 | $as_echo X"$as_dir" | | |
17867 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17868 | s//\1/ | |
17869 | q | |
17870 | } | |
17871 | /^X\(\/\/\)[^/].*/{ | |
17872 | s//\1/ | |
17873 | q | |
17874 | } | |
17875 | /^X\(\/\/\)$/{ | |
17876 | s//\1/ | |
17877 | q | |
17878 | } | |
17879 | /^X\(\/\).*/{ | |
17880 | s//\1/ | |
17881 | q | |
17882 | } | |
17883 | s/.*/./; q'` | |
17884 | test -d "$as_dir" && break | |
17885 | done | |
17886 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
f00f02a3 | 17887 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 17888 | |
1e8e9920 | 17889 | |
cd9a469c | 17890 | } # as_fn_mkdir_p |
1e8e9920 | 17891 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 17892 | as_mkdir_p='mkdir -p "$as_dir"' |
1e8e9920 | 17893 | else |
17894 | test -d ./-p && rmdir ./-p | |
17895 | as_mkdir_p=false | |
17896 | fi | |
17897 | ||
f00f02a3 | 17898 | |
17899 | # as_fn_executable_p FILE | |
17900 | # ----------------------- | |
17901 | # Test if FILE is an executable regular file. | |
17902 | as_fn_executable_p () | |
17903 | { | |
17904 | test -f "$1" && test -x "$1" | |
17905 | } # as_fn_executable_p | |
17906 | as_test_x='test -x' | |
17907 | as_executable_p=as_fn_executable_p | |
1e8e9920 | 17908 | |
17909 | # Sed expression to map a string onto a valid CPP name. | |
17910 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17911 | ||
cd9a469c | 17912 | # Sed expression to map a string onto a valid variable name. |
17913 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
1e8e9920 | 17914 | |
1e8e9920 | 17915 | |
17916 | exec 6>&1 | |
cd9a469c | 17917 | ## ----------------------------------- ## |
17918 | ## Main body of $CONFIG_STATUS script. ## | |
17919 | ## ----------------------------------- ## | |
17920 | _ASEOF | |
17921 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17922 | ||
17923 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17924 | # Save the log message, to keep $0 and so on meaningful, and to | |
1e8e9920 | 17925 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 17926 | # values after options handling. |
17927 | ac_log=" | |
c35c9a62 | 17928 | This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was |
f00f02a3 | 17929 | generated by GNU Autoconf 2.69. Invocation command line was |
1e8e9920 | 17930 | |
17931 | CONFIG_FILES = $CONFIG_FILES | |
17932 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17933 | CONFIG_LINKS = $CONFIG_LINKS | |
17934 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17935 | $ $0 $@ | |
17936 | ||
cd9a469c | 17937 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17938 | " | |
17939 | ||
1e8e9920 | 17940 | _ACEOF |
17941 | ||
cd9a469c | 17942 | case $ac_config_files in *" |
17943 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17944 | esac | |
1e8e9920 | 17945 | |
cd9a469c | 17946 | case $ac_config_headers in *" |
17947 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17948 | esac | |
1e8e9920 | 17949 | |
1e8e9920 | 17950 | |
cd9a469c | 17951 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17952 | # Files that config.status was made for. | |
17953 | config_files="$ac_config_files" | |
17954 | config_headers="$ac_config_headers" | |
17955 | config_commands="$ac_config_commands" | |
1e8e9920 | 17956 | |
cd9a469c | 17957 | _ACEOF |
1e8e9920 | 17958 | |
cd9a469c | 17959 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1e8e9920 | 17960 | ac_cs_usage="\ |
cd9a469c | 17961 | \`$as_me' instantiates files and other configuration actions |
17962 | from templates according to the current configuration. Unless the files | |
17963 | and actions are specified as TAGs, all are instantiated by default. | |
1e8e9920 | 17964 | |
cd9a469c | 17965 | Usage: $0 [OPTION]... [TAG]... |
1e8e9920 | 17966 | |
17967 | -h, --help print this help, then exit | |
cd9a469c | 17968 | -V, --version print version number and configuration settings, then exit |
f00f02a3 | 17969 | --config print configuration, then exit |
cd9a469c | 17970 | -q, --quiet, --silent |
17971 | do not print progress messages | |
1e8e9920 | 17972 | -d, --debug don't remove temporary files |
17973 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 17974 | --file=FILE[:TEMPLATE] |
17975 | instantiate the configuration file FILE | |
17976 | --header=FILE[:TEMPLATE] | |
17977 | instantiate the configuration header FILE | |
1e8e9920 | 17978 | |
17979 | Configuration files: | |
17980 | $config_files | |
17981 | ||
17982 | Configuration headers: | |
17983 | $config_headers | |
17984 | ||
17985 | Configuration commands: | |
17986 | $config_commands | |
17987 | ||
cd9a469c | 17988 | Report bugs to the package provider. |
c35c9a62 | 17989 | GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. |
cd9a469c | 17990 | General help using GNU software: <http://www.gnu.org/gethelp/>." |
1e8e9920 | 17991 | |
cd9a469c | 17992 | _ACEOF |
17993 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 17994 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1e8e9920 | 17995 | ac_cs_version="\\ |
c35c9a62 | 17996 | GNU Offloading and Multi Processing Runtime Library config.status 1.0 |
f00f02a3 | 17997 | configured by $0, generated by GNU Autoconf 2.69, |
17998 | with options \\"\$ac_cs_config\\" | |
1e8e9920 | 17999 | |
f00f02a3 | 18000 | Copyright (C) 2012 Free Software Foundation, Inc. |
1e8e9920 | 18001 | This config.status script is free software; the Free Software Foundation |
18002 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 18003 | |
18004 | ac_pwd='$ac_pwd' | |
18005 | srcdir='$srcdir' | |
18006 | INSTALL='$INSTALL' | |
18007 | MKDIR_P='$MKDIR_P' | |
18008 | AWK='$AWK' | |
18009 | test -n "\$AWK" || AWK=awk | |
1e8e9920 | 18010 | _ACEOF |
18011 | ||
cd9a469c | 18012 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18013 | # The default lists apply if the user does not specify any file. | |
1e8e9920 | 18014 | ac_need_defaults=: |
18015 | while test $# != 0 | |
18016 | do | |
18017 | case $1 in | |
f00f02a3 | 18018 | --*=?*) |
cd9a469c | 18019 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18020 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1e8e9920 | 18021 | ac_shift=: |
18022 | ;; | |
f00f02a3 | 18023 | --*=) |
18024 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18025 | ac_optarg= | |
18026 | ac_shift=: | |
18027 | ;; | |
cd9a469c | 18028 | *) |
1e8e9920 | 18029 | ac_option=$1 |
18030 | ac_optarg=$2 | |
18031 | ac_shift=shift | |
18032 | ;; | |
1e8e9920 | 18033 | esac |
18034 | ||
18035 | case $ac_option in | |
18036 | # Handling of the options. | |
1e8e9920 | 18037 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18038 | ac_cs_recheck=: ;; | |
cd9a469c | 18039 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18040 | $as_echo "$ac_cs_version"; exit ;; | |
f00f02a3 | 18041 | --config | --confi | --conf | --con | --co | --c ) |
18042 | $as_echo "$ac_cs_config"; exit ;; | |
cd9a469c | 18043 | --debug | --debu | --deb | --de | --d | -d ) |
1e8e9920 | 18044 | debug=: ;; |
18045 | --file | --fil | --fi | --f ) | |
18046 | $ac_shift | |
cd9a469c | 18047 | case $ac_optarg in |
18048 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f00f02a3 | 18049 | '') as_fn_error $? "missing file argument" ;; |
cd9a469c | 18050 | esac |
18051 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
1e8e9920 | 18052 | ac_need_defaults=false;; |
18053 | --header | --heade | --head | --hea ) | |
18054 | $ac_shift | |
cd9a469c | 18055 | case $ac_optarg in |
18056 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18057 | esac | |
18058 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
1e8e9920 | 18059 | ac_need_defaults=false;; |
cd9a469c | 18060 | --he | --h) |
18061 | # Conflict between --help and --header | |
f00f02a3 | 18062 | as_fn_error $? "ambiguous option: \`$1' |
cd9a469c | 18063 | Try \`$0 --help' for more information.";; |
18064 | --help | --hel | -h ) | |
18065 | $as_echo "$ac_cs_usage"; exit ;; | |
1e8e9920 | 18066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18067 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18068 | ac_cs_silent=: ;; | |
18069 | ||
18070 | # This is an error. | |
f00f02a3 | 18071 | -*) as_fn_error $? "unrecognized option: \`$1' |
cd9a469c | 18072 | Try \`$0 --help' for more information." ;; |
1e8e9920 | 18073 | |
cd9a469c | 18074 | *) as_fn_append ac_config_targets " $1" |
18075 | ac_need_defaults=false ;; | |
1e8e9920 | 18076 | |
18077 | esac | |
18078 | shift | |
18079 | done | |
18080 | ||
18081 | ac_configure_extra_args= | |
18082 | ||
18083 | if $ac_cs_silent; then | |
18084 | exec 6>/dev/null | |
18085 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18086 | fi | |
18087 | ||
18088 | _ACEOF | |
cd9a469c | 18089 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1e8e9920 | 18090 | if \$ac_cs_recheck; then |
f00f02a3 | 18091 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
cd9a469c | 18092 | shift |
18093 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18094 | CONFIG_SHELL='$SHELL' | |
18095 | export CONFIG_SHELL | |
18096 | exec "\$@" | |
1e8e9920 | 18097 | fi |
18098 | ||
18099 | _ACEOF | |
cd9a469c | 18100 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18101 | exec 5>>config.log | |
18102 | { | |
18103 | echo | |
18104 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18105 | ## Running $as_me. ## | |
18106 | _ASBOX | |
18107 | $as_echo "$ac_log" | |
18108 | } >&5 | |
1e8e9920 | 18109 | |
cd9a469c | 18110 | _ACEOF |
18111 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1e8e9920 | 18112 | # |
cd9a469c | 18113 | # INIT-COMMANDS |
1e8e9920 | 18114 | # |
18115 | ||
1e8e9920 | 18116 | srcdir="$srcdir" |
18117 | host="$host" | |
18118 | target="$target" | |
18119 | with_multisubdir="$with_multisubdir" | |
18120 | with_multisrctop="$with_multisrctop" | |
18121 | with_target_subdir="$with_target_subdir" | |
18122 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
18123 | multi_basedir="$multi_basedir" | |
18124 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
18125 | CC="$CC" | |
0a475b3b | 18126 | CXX="$CXX" |
18127 | GFORTRAN="$GFORTRAN" | |
f00f02a3 | 18128 | GDC="$GDC" |
1e8e9920 | 18129 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
18130 | ||
542f9784 | 18131 | |
18132 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18133 | # if CDPATH is set. | |
18134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18135 | ||
18136 | sed_quote_subst='$sed_quote_subst' | |
18137 | double_quote_subst='$double_quote_subst' | |
18138 | delay_variable_subst='$delay_variable_subst' | |
e6408286 | 18139 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
18140 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18141 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18142 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18143 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18144 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18145 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18146 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18147 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18148 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18149 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18150 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18151 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18152 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18153 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18154 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18155 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18156 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18157 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18158 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18159 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18160 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18161 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18162 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18163 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18164 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18165 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18166 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18167 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18168 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18169 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18170 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18171 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18172 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18173 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18174 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18175 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18176 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18177 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18178 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18179 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18180 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18181 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18182 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18183 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18184 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18185 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18186 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18187 | 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"`' | |
18188 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18189 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18190 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18191 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18192 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18193 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18194 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18195 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18196 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18197 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18198 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18199 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18200 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18201 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18202 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18203 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18204 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18205 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18206 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18207 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18208 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18209 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18210 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18211 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18212 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18213 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18214 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18215 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18216 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18217 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18218 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18219 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
18220 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18221 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18222 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18223 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18224 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18225 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18226 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18227 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18228 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
18229 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18230 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18231 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18232 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18233 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18234 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18235 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18236 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18237 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18238 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18239 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18240 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18241 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18242 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18243 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18244 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18245 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18246 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18247 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18248 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18249 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18250 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18251 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18252 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18253 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18254 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18255 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18256 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18257 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18258 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18259 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
18260 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
18261 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
18262 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
18263 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18264 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18265 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
18266 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
18267 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18268 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18269 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
18270 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
18271 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
18272 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
18273 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
18274 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
18275 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
18276 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
18277 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
18278 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
18279 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
18280 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
18281 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18282 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18283 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18284 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18285 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18286 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18287 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
18288 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
18289 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
18290 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
18291 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
18292 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
18293 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
18294 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
18295 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
18296 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
18297 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
18298 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
18299 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
18300 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
18301 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
18302 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18303 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
18304 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
18305 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18306 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
18307 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
18308 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
18309 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
18310 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
18311 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
18312 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
18313 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
542f9784 | 18314 | |
18315 | LTCC='$LTCC' | |
18316 | LTCFLAGS='$LTCFLAGS' | |
18317 | compiler='$compiler_DEFAULT' | |
18318 | ||
e6408286 | 18319 | # A function that is used when there is no print builtin or printf. |
18320 | func_fallback_echo () | |
18321 | { | |
18322 | eval 'cat <<_LTECHO_EOF | |
18323 | \$1 | |
18324 | _LTECHO_EOF' | |
18325 | } | |
18326 | ||
542f9784 | 18327 | # Quote evaled strings. |
e6408286 | 18328 | for var in SHELL \ |
18329 | ECHO \ | |
18330 | SED \ | |
542f9784 | 18331 | GREP \ |
18332 | EGREP \ | |
18333 | FGREP \ | |
18334 | LD \ | |
18335 | NM \ | |
18336 | LN_S \ | |
18337 | lt_SP2NL \ | |
18338 | lt_NL2SP \ | |
18339 | reload_flag \ | |
6d873a38 | 18340 | OBJDUMP \ |
542f9784 | 18341 | deplibs_check_method \ |
18342 | file_magic_cmd \ | |
18343 | AR \ | |
18344 | AR_FLAGS \ | |
18345 | STRIP \ | |
18346 | RANLIB \ | |
18347 | CC \ | |
18348 | CFLAGS \ | |
18349 | compiler \ | |
18350 | lt_cv_sys_global_symbol_pipe \ | |
18351 | lt_cv_sys_global_symbol_to_cdecl \ | |
18352 | lt_cv_sys_global_symbol_to_c_name_address \ | |
6d873a38 | 18353 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
542f9784 | 18354 | lt_prog_compiler_no_builtin_flag \ |
18355 | lt_prog_compiler_wl \ | |
18356 | lt_prog_compiler_pic \ | |
18357 | lt_prog_compiler_static \ | |
18358 | lt_cv_prog_compiler_c_o \ | |
18359 | need_locks \ | |
6d873a38 | 18360 | DSYMUTIL \ |
18361 | NMEDIT \ | |
18362 | LIPO \ | |
18363 | OTOOL \ | |
18364 | OTOOL64 \ | |
542f9784 | 18365 | shrext_cmds \ |
18366 | export_dynamic_flag_spec \ | |
18367 | whole_archive_flag_spec \ | |
18368 | compiler_needs_object \ | |
18369 | with_gnu_ld \ | |
18370 | allow_undefined_flag \ | |
18371 | no_undefined_flag \ | |
18372 | hardcode_libdir_flag_spec \ | |
18373 | hardcode_libdir_flag_spec_ld \ | |
18374 | hardcode_libdir_separator \ | |
18375 | fix_srcfile_path \ | |
18376 | exclude_expsyms \ | |
18377 | include_expsyms \ | |
18378 | file_list_spec \ | |
18379 | variables_saved_for_relink \ | |
18380 | libname_spec \ | |
18381 | library_names_spec \ | |
18382 | soname_spec \ | |
e6408286 | 18383 | install_override_mode \ |
542f9784 | 18384 | finish_eval \ |
18385 | old_striplib \ | |
18386 | striplib \ | |
6d873a38 | 18387 | compiler_lib_search_dirs \ |
542f9784 | 18388 | predep_objects \ |
18389 | postdep_objects \ | |
18390 | predeps \ | |
18391 | postdeps \ | |
18392 | compiler_lib_search_path \ | |
18393 | LD_FC \ | |
e6408286 | 18394 | reload_flag_FC \ |
542f9784 | 18395 | compiler_FC \ |
18396 | lt_prog_compiler_no_builtin_flag_FC \ | |
18397 | lt_prog_compiler_wl_FC \ | |
18398 | lt_prog_compiler_pic_FC \ | |
18399 | lt_prog_compiler_static_FC \ | |
18400 | lt_cv_prog_compiler_c_o_FC \ | |
18401 | export_dynamic_flag_spec_FC \ | |
18402 | whole_archive_flag_spec_FC \ | |
18403 | compiler_needs_object_FC \ | |
18404 | with_gnu_ld_FC \ | |
18405 | allow_undefined_flag_FC \ | |
18406 | no_undefined_flag_FC \ | |
18407 | hardcode_libdir_flag_spec_FC \ | |
18408 | hardcode_libdir_flag_spec_ld_FC \ | |
18409 | hardcode_libdir_separator_FC \ | |
18410 | fix_srcfile_path_FC \ | |
18411 | exclude_expsyms_FC \ | |
18412 | include_expsyms_FC \ | |
18413 | file_list_spec_FC \ | |
6d873a38 | 18414 | compiler_lib_search_dirs_FC \ |
542f9784 | 18415 | predep_objects_FC \ |
18416 | postdep_objects_FC \ | |
18417 | predeps_FC \ | |
18418 | postdeps_FC \ | |
18419 | compiler_lib_search_path_FC; do | |
e6408286 | 18420 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 18421 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 18422 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
542f9784 | 18423 | ;; |
18424 | *) | |
18425 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18426 | ;; | |
18427 | esac | |
18428 | done | |
18429 | ||
18430 | # Double-quote double-evaled strings. | |
18431 | for var in reload_cmds \ | |
18432 | old_postinstall_cmds \ | |
18433 | old_postuninstall_cmds \ | |
18434 | old_archive_cmds \ | |
18435 | extract_expsyms_cmds \ | |
18436 | old_archive_from_new_cmds \ | |
18437 | old_archive_from_expsyms_cmds \ | |
18438 | archive_cmds \ | |
18439 | archive_expsym_cmds \ | |
18440 | module_cmds \ | |
18441 | module_expsym_cmds \ | |
18442 | export_symbols_cmds \ | |
18443 | prelink_cmds \ | |
18444 | postinstall_cmds \ | |
18445 | postuninstall_cmds \ | |
18446 | finish_cmds \ | |
18447 | sys_lib_search_path_spec \ | |
18448 | sys_lib_dlsearch_path_spec \ | |
e6408286 | 18449 | reload_cmds_FC \ |
542f9784 | 18450 | old_archive_cmds_FC \ |
18451 | old_archive_from_new_cmds_FC \ | |
18452 | old_archive_from_expsyms_cmds_FC \ | |
18453 | archive_cmds_FC \ | |
18454 | archive_expsym_cmds_FC \ | |
18455 | module_cmds_FC \ | |
18456 | module_expsym_cmds_FC \ | |
18457 | export_symbols_cmds_FC \ | |
18458 | prelink_cmds_FC; do | |
e6408286 | 18459 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 18460 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 18461 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
542f9784 | 18462 | ;; |
18463 | *) | |
18464 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18465 | ;; | |
18466 | esac | |
18467 | done | |
18468 | ||
542f9784 | 18469 | ac_aux_dir='$ac_aux_dir' |
18470 | xsi_shell='$xsi_shell' | |
18471 | lt_shell_append='$lt_shell_append' | |
18472 | ||
18473 | # See if we are running on zsh, and set the options which allow our | |
18474 | # commands through without removal of \ escapes INIT. | |
18475 | if test -n "\${ZSH_VERSION+set}" ; then | |
18476 | setopt NO_GLOB_SUBST | |
18477 | fi | |
18478 | ||
18479 | ||
18480 | PACKAGE='$PACKAGE' | |
18481 | VERSION='$VERSION' | |
18482 | TIMESTAMP='$TIMESTAMP' | |
18483 | RM='$RM' | |
18484 | ofile='$ofile' | |
18485 | ||
18486 | ||
18487 | ||
18488 | ||
18489 | ||
18490 | ||
01473a49 | 18491 | GCC="$GCC" |
18492 | CC="$CC" | |
18493 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
18494 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
18495 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
18496 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
18497 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
18498 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
18499 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
18500 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
18501 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
18502 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
18503 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
18504 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
18505 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
18506 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
18507 | ||
18508 | ||
1e8e9920 | 18509 | _ACEOF |
18510 | ||
cd9a469c | 18511 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1e8e9920 | 18512 | |
cd9a469c | 18513 | # Handling of arguments. |
1e8e9920 | 18514 | for ac_config_target in $ac_config_targets |
18515 | do | |
cd9a469c | 18516 | case $ac_config_target in |
18517 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
18518 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
18519 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
18520 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
18521 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
18522 | "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;; | |
18523 | "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; | |
18524 | "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; | |
18525 | "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; | |
18526 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18527 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
18528 | "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; | |
ca4c3545 | 18529 | "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;; |
cd9a469c | 18530 | |
f00f02a3 | 18531 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1e8e9920 | 18532 | esac |
18533 | done | |
18534 | ||
cd9a469c | 18535 | |
1e8e9920 | 18536 | # If the user did not use the arguments to specify the items to instantiate, |
18537 | # then the envvar interface is used. Set only those that are not. | |
18538 | # We use the long form for the default assignment because of an extremely | |
18539 | # bizarre bug on SunOS 4.1.3. | |
18540 | if $ac_need_defaults; then | |
18541 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18542 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18543 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18544 | fi | |
18545 | ||
18546 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 18547 | # simply because there is no reason against having it here, and in addition, |
1e8e9920 | 18548 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 18549 | # Hook for its removal unless debugging. |
18550 | # Note that there is a small window in which the directory will not be cleaned: | |
18551 | # after its creation but before its name has been assigned to `$tmp'. | |
1e8e9920 | 18552 | $debug || |
18553 | { | |
f00f02a3 | 18554 | tmp= ac_tmp= |
cd9a469c | 18555 | trap 'exit_status=$? |
f00f02a3 | 18556 | : "${ac_tmp:=$tmp}" |
18557 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
cd9a469c | 18558 | ' 0 |
18559 | trap 'as_fn_exit 1' 1 2 13 15 | |
1e8e9920 | 18560 | } |
1e8e9920 | 18561 | # Create a (secure) tmp directory for tmp files. |
18562 | ||
18563 | { | |
cd9a469c | 18564 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f00f02a3 | 18565 | test -d "$tmp" |
1e8e9920 | 18566 | } || |
18567 | { | |
cd9a469c | 18568 | tmp=./conf$$-$RANDOM |
18569 | (umask 077 && mkdir "$tmp") | |
f00f02a3 | 18570 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18571 | ac_tmp=$tmp | |
cd9a469c | 18572 | |
18573 | # Set up the scripts for CONFIG_FILES section. | |
18574 | # No need to generate them if there are no CONFIG_FILES. | |
18575 | # This happens for instance with `./config.status config.h'. | |
18576 | if test -n "$CONFIG_FILES"; then | |
18577 | ||
18578 | ||
18579 | ac_cr=`echo X | tr X '\015'` | |
18580 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18581 | # But we know of no other shell where ac_cr would be empty at this | |
18582 | # point, so we can use a bashism as a fallback. | |
18583 | if test "x$ac_cr" = x; then | |
18584 | eval ac_cr=\$\'\\r\' | |
18585 | fi | |
18586 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18587 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
f00f02a3 | 18588 | ac_cs_awk_cr='\\r' |
cd9a469c | 18589 | else |
18590 | ac_cs_awk_cr=$ac_cr | |
18591 | fi | |
18592 | ||
f00f02a3 | 18593 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
cd9a469c | 18594 | _ACEOF |
18595 | ||
18596 | ||
1e8e9920 | 18597 | { |
cd9a469c | 18598 | echo "cat >conf$$subs.awk <<_ACEOF" && |
18599 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18600 | echo "_ACEOF" | |
18601 | } >conf$$subs.sh || | |
f00f02a3 | 18602 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18603 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
cd9a469c | 18604 | ac_delim='%!_!# ' |
18605 | for ac_last_try in false false false false false :; do | |
18606 | . ./conf$$subs.sh || | |
f00f02a3 | 18607 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 18608 | |
18609 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18610 | if test $ac_delim_n = $ac_delim_num; then | |
18611 | break | |
18612 | elif $ac_last_try; then | |
f00f02a3 | 18613 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 18614 | else |
18615 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18616 | fi | |
18617 | done | |
18618 | rm -f conf$$subs.sh | |
18619 | ||
18620 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 18621 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
cd9a469c | 18622 | _ACEOF |
18623 | sed -n ' | |
18624 | h | |
18625 | s/^/S["/; s/!.*/"]=/ | |
18626 | p | |
18627 | g | |
18628 | s/^[^!]*!// | |
18629 | :repl | |
18630 | t repl | |
18631 | s/'"$ac_delim"'$// | |
18632 | t delim | |
18633 | :nl | |
18634 | h | |
f00f02a3 | 18635 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 18636 | t more1 |
18637 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18638 | p | |
18639 | n | |
18640 | b repl | |
18641 | :more1 | |
18642 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18643 | p | |
18644 | g | |
18645 | s/.\{148\}// | |
18646 | t nl | |
18647 | :delim | |
18648 | h | |
f00f02a3 | 18649 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 18650 | t more2 |
18651 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18652 | p | |
18653 | b | |
18654 | :more2 | |
18655 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18656 | p | |
18657 | g | |
18658 | s/.\{148\}// | |
18659 | t delim | |
18660 | ' <conf$$subs.awk | sed ' | |
18661 | /^[^""]/{ | |
18662 | N | |
18663 | s/\n// | |
1e8e9920 | 18664 | } |
cd9a469c | 18665 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
18666 | rm -f conf$$subs.awk | |
18667 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18668 | _ACAWK | |
f00f02a3 | 18669 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
cd9a469c | 18670 | for (key in S) S_is_set[key] = 1 |
18671 | FS = "\a" | |
1e8e9920 | 18672 | |
cd9a469c | 18673 | } |
18674 | { | |
18675 | line = $ 0 | |
18676 | nfields = split(line, field, "@") | |
18677 | substed = 0 | |
18678 | len = length(field[1]) | |
18679 | for (i = 2; i < nfields; i++) { | |
18680 | key = field[i] | |
18681 | keylen = length(key) | |
18682 | if (S_is_set[key]) { | |
18683 | value = S[key] | |
18684 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18685 | len += length(value) + length(field[++i]) | |
18686 | substed = 1 | |
18687 | } else | |
18688 | len += 1 + keylen | |
18689 | } | |
1e8e9920 | 18690 | |
cd9a469c | 18691 | print line |
18692 | } | |
1e8e9920 | 18693 | |
cd9a469c | 18694 | _ACAWK |
18695 | _ACEOF | |
18696 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18697 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18698 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18699 | else | |
18700 | cat | |
f00f02a3 | 18701 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18702 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
cd9a469c | 18703 | _ACEOF |
18704 | ||
f00f02a3 | 18705 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18706 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
cd9a469c | 18707 | # trailing colons and then remove the whole line if VPATH becomes empty |
18708 | # (actually we leave an empty line to preserve line numbers). | |
18709 | if test "x$srcdir" = x.; then | |
f00f02a3 | 18710 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18711 | h | |
18712 | s/// | |
18713 | s/^/:/ | |
18714 | s/[ ]*$/:/ | |
18715 | s/:\$(srcdir):/:/g | |
18716 | s/:\${srcdir}:/:/g | |
18717 | s/:@srcdir@:/:/g | |
18718 | s/^:*// | |
cd9a469c | 18719 | s/:*$// |
f00f02a3 | 18720 | x |
18721 | s/\(=[ ]*\).*/\1/ | |
18722 | G | |
18723 | s/\n// | |
cd9a469c | 18724 | s/^[^=]*=[ ]*$// |
18725 | }' | |
18726 | fi | |
1e8e9920 | 18727 | |
cd9a469c | 18728 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18729 | fi # test -n "$CONFIG_FILES" | |
1e8e9920 | 18730 | |
cd9a469c | 18731 | # Set up the scripts for CONFIG_HEADERS section. |
18732 | # No need to generate them if there are no CONFIG_HEADERS. | |
18733 | # This happens for instance with `./config.status Makefile'. | |
18734 | if test -n "$CONFIG_HEADERS"; then | |
f00f02a3 | 18735 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
cd9a469c | 18736 | BEGIN { |
1e8e9920 | 18737 | _ACEOF |
18738 | ||
cd9a469c | 18739 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18740 | # here-document in config.status, that substitutes the proper values into | |
18741 | # config.h.in to produce config.h. | |
18742 | ||
18743 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18744 | # handling of long lines. | |
18745 | ac_delim='%!_!# ' | |
18746 | for ac_last_try in false false :; do | |
f00f02a3 | 18747 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18748 | if test -z "$ac_tt"; then | |
cd9a469c | 18749 | break |
18750 | elif $ac_last_try; then | |
f00f02a3 | 18751 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
cd9a469c | 18752 | else |
18753 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
1e8e9920 | 18754 | fi |
cd9a469c | 18755 | done |
1e8e9920 | 18756 | |
cd9a469c | 18757 | # For the awk script, D is an array of macro values keyed by name, |
18758 | # likewise P contains macro parameters if any. Preserve backslash | |
18759 | # newline sequences. | |
18760 | ||
18761 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18762 | sed -n ' | |
18763 | s/.\{148\}/&'"$ac_delim"'/g | |
18764 | t rset | |
18765 | :rset | |
18766 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18767 | t def | |
18768 | d | |
18769 | :def | |
18770 | s/\\$// | |
18771 | t bsnl | |
18772 | s/["\\]/\\&/g | |
18773 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18774 | D["\1"]=" \3"/p | |
18775 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18776 | d | |
18777 | :bsnl | |
18778 | s/["\\]/\\&/g | |
18779 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18780 | D["\1"]=" \3\\\\\\n"\\/p | |
18781 | t cont | |
18782 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18783 | t cont | |
18784 | d | |
18785 | :cont | |
18786 | n | |
18787 | s/.\{148\}/&'"$ac_delim"'/g | |
18788 | t clear | |
18789 | :clear | |
18790 | s/\\$// | |
18791 | t bsnlc | |
18792 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18793 | d | |
18794 | :bsnlc | |
18795 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18796 | b cont | |
18797 | ' <confdefs.h | sed ' | |
18798 | s/'"$ac_delim"'/"\\\ | |
18799 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18800 | ||
18801 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18802 | for (key in D) D_is_set[key] = 1 | |
18803 | FS = "\a" | |
18804 | } | |
18805 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18806 | line = \$ 0 | |
18807 | split(line, arg, " ") | |
18808 | if (arg[1] == "#") { | |
18809 | defundef = arg[2] | |
18810 | mac1 = arg[3] | |
18811 | } else { | |
18812 | defundef = substr(arg[1], 2) | |
18813 | mac1 = arg[2] | |
18814 | } | |
18815 | split(mac1, mac2, "(") #) | |
18816 | macro = mac2[1] | |
18817 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18818 | if (D_is_set[macro]) { | |
18819 | # Preserve the white space surrounding the "#". | |
18820 | print prefix "define", macro P[macro] D[macro] | |
18821 | next | |
18822 | } else { | |
18823 | # Replace #undef with comments. This is necessary, for example, | |
18824 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18825 | # on some systems where configure will not decide to define it. | |
18826 | if (defundef == "undef") { | |
18827 | print "/*", prefix defundef, macro, "*/" | |
18828 | next | |
18829 | } | |
18830 | } | |
18831 | } | |
18832 | { print } | |
18833 | _ACAWK | |
1e8e9920 | 18834 | _ACEOF |
cd9a469c | 18835 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f00f02a3 | 18836 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
cd9a469c | 18837 | fi # test -n "$CONFIG_HEADERS" |
18838 | ||
18839 | ||
18840 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
18841 | shift | |
18842 | for ac_tag | |
18843 | do | |
18844 | case $ac_tag in | |
18845 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18846 | esac | |
18847 | case $ac_mode$ac_tag in | |
18848 | :[FHL]*:*);; | |
f00f02a3 | 18849 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
cd9a469c | 18850 | :[FH]-) ac_tag=-:-;; |
18851 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18852 | esac | |
18853 | ac_save_IFS=$IFS | |
18854 | IFS=: | |
18855 | set x $ac_tag | |
18856 | IFS=$ac_save_IFS | |
18857 | shift | |
18858 | ac_file=$1 | |
18859 | shift | |
18860 | ||
18861 | case $ac_mode in | |
18862 | :L) ac_source=$1;; | |
18863 | :[FH]) | |
18864 | ac_file_inputs= | |
18865 | for ac_f | |
18866 | do | |
18867 | case $ac_f in | |
f00f02a3 | 18868 | -) ac_f="$ac_tmp/stdin";; |
cd9a469c | 18869 | *) # Look for the file first in the build tree, then in the source tree |
18870 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18871 | # because $ac_f cannot contain `:'. | |
18872 | test -f "$ac_f" || | |
18873 | case $ac_f in | |
18874 | [\\/$]*) false;; | |
18875 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18876 | esac || | |
f00f02a3 | 18877 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
cd9a469c | 18878 | esac |
18879 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18880 | as_fn_append ac_file_inputs " '$ac_f'" | |
18881 | done | |
18882 | ||
18883 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18884 | # use $as_me), people would be surprised to read: | |
18885 | # /* config.h. Generated by config.status. */ | |
18886 | configure_input='Generated from '` | |
18887 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18888 | `' by configure.' | |
18889 | if test x"$ac_file" != x-; then | |
18890 | configure_input="$ac_file. $configure_input" | |
18891 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18892 | $as_echo "$as_me: creating $ac_file" >&6;} | |
18893 | fi | |
18894 | # Neutralize special characters interpreted by sed in replacement strings. | |
18895 | case $configure_input in #( | |
18896 | *\&* | *\|* | *\\* ) | |
18897 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18898 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18899 | *) ac_sed_conf_input=$configure_input;; | |
18900 | esac | |
18901 | ||
18902 | case $ac_tag in | |
f00f02a3 | 18903 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18904 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
cd9a469c | 18905 | esac |
18906 | ;; | |
1e8e9920 | 18907 | esac |
18908 | ||
cd9a469c | 18909 | ac_dir=`$as_dirname -- "$ac_file" || |
1e8e9920 | 18910 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18911 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18912 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 18913 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18914 | $as_echo X"$ac_file" | | |
18915 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18916 | s//\1/ | |
18917 | q | |
18918 | } | |
18919 | /^X\(\/\/\)[^/].*/{ | |
18920 | s//\1/ | |
18921 | q | |
18922 | } | |
18923 | /^X\(\/\/\)$/{ | |
18924 | s//\1/ | |
18925 | q | |
18926 | } | |
18927 | /^X\(\/\).*/{ | |
18928 | s//\1/ | |
18929 | q | |
18930 | } | |
18931 | s/.*/./; q'` | |
18932 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1e8e9920 | 18933 | ac_builddir=. |
18934 | ||
cd9a469c | 18935 | case "$ac_dir" in |
18936 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18937 | *) | |
18938 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18939 | # A ".." for each directory in $ac_dir_suffix. | |
18940 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18941 | case $ac_top_builddir_sub in | |
18942 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18943 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18944 | esac ;; | |
18945 | esac | |
18946 | ac_abs_top_builddir=$ac_pwd | |
18947 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18948 | # for backward compatibility: | |
18949 | ac_top_builddir=$ac_top_build_prefix | |
1e8e9920 | 18950 | |
18951 | case $srcdir in | |
cd9a469c | 18952 | .) # We are building in place. |
1e8e9920 | 18953 | ac_srcdir=. |
cd9a469c | 18954 | ac_top_srcdir=$ac_top_builddir_sub |
18955 | ac_abs_top_srcdir=$ac_pwd ;; | |
18956 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1e8e9920 | 18957 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 18958 | ac_top_srcdir=$srcdir |
18959 | ac_abs_top_srcdir=$srcdir ;; | |
18960 | *) # Relative name. | |
18961 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18962 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18963 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1e8e9920 | 18964 | esac |
cd9a469c | 18965 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1e8e9920 | 18966 | |
1e8e9920 | 18967 | |
cd9a469c | 18968 | case $ac_mode in |
18969 | :F) | |
18970 | # | |
18971 | # CONFIG_FILE | |
18972 | # | |
1e8e9920 | 18973 | |
18974 | case $INSTALL in | |
18975 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 18976 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
1e8e9920 | 18977 | esac |
cd9a469c | 18978 | ac_MKDIR_P=$MKDIR_P |
18979 | case $MKDIR_P in | |
18980 | [\\/$]* | ?:[\\/]* ) ;; | |
18981 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
18982 | esac | |
18983 | _ACEOF | |
1e8e9920 | 18984 | |
cd9a469c | 18985 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18986 | # If the template does not know about datarootdir, expand it. | |
18987 | # FIXME: This hack should be removed a few years after 2.60. | |
18988 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18989 | ac_sed_dataroot=' | |
18990 | /datarootdir/ { | |
18991 | p | |
18992 | q | |
18993 | } | |
18994 | /@datadir@/p | |
18995 | /@docdir@/p | |
18996 | /@infodir@/p | |
18997 | /@localedir@/p | |
18998 | /@mandir@/p' | |
18999 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19000 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19001 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19003 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19004 | _ACEOF | |
19005 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19006 | ac_datarootdir_hack=' | |
19007 | s&@datadir@&$datadir&g | |
19008 | s&@docdir@&$docdir&g | |
19009 | s&@infodir@&$infodir&g | |
19010 | s&@localedir@&$localedir&g | |
19011 | s&@mandir@&$mandir&g | |
19012 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19013 | esac | |
1e8e9920 | 19014 | _ACEOF |
cd9a469c | 19015 | |
19016 | # Neutralize VPATH when `$srcdir' = `.'. | |
19017 | # Shell code in configure.ac might set extrasub. | |
19018 | # FIXME: do we really want to maintain this feature? | |
19019 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19020 | ac_sed_extra="$ac_vpsub | |
1e8e9920 | 19021 | $extrasub |
19022 | _ACEOF | |
cd9a469c | 19023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1e8e9920 | 19024 | :t |
19025 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 19026 | s|@configure_input@|$ac_sed_conf_input|;t t |
19027 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19028 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19029 | s&@srcdir@&$ac_srcdir&;t t | |
19030 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19031 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19032 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19033 | s&@builddir@&$ac_builddir&;t t | |
19034 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19035 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19036 | s&@INSTALL@&$ac_INSTALL&;t t | |
19037 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
19038 | $ac_datarootdir_hack | |
19039 | " | |
f00f02a3 | 19040 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19041 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
cd9a469c | 19042 | |
19043 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f00f02a3 | 19044 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19045 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19046 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
cd9a469c | 19047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 19048 | which seems to be undefined. Please make sure it is defined" >&5 |
cd9a469c | 19049 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 19050 | which seems to be undefined. Please make sure it is defined" >&2;} |
cd9a469c | 19051 | |
f00f02a3 | 19052 | rm -f "$ac_tmp/stdin" |
1e8e9920 | 19053 | case $ac_file in |
f00f02a3 | 19054 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19055 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
cd9a469c | 19056 | esac \ |
f00f02a3 | 19057 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
cd9a469c | 19058 | ;; |
19059 | :H) | |
19060 | # | |
19061 | # CONFIG_HEADER | |
19062 | # | |
1e8e9920 | 19063 | if test x"$ac_file" != x-; then |
cd9a469c | 19064 | { |
19065 | $as_echo "/* $configure_input */" \ | |
f00f02a3 | 19066 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19067 | } >"$ac_tmp/config.h" \ | |
19068 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19069 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
cd9a469c | 19070 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19071 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
1e8e9920 | 19072 | else |
cd9a469c | 19073 | rm -f "$ac_file" |
f00f02a3 | 19074 | mv "$ac_tmp/config.h" "$ac_file" \ |
19075 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
1e8e9920 | 19076 | fi |
19077 | else | |
cd9a469c | 19078 | $as_echo "/* $configure_input */" \ |
f00f02a3 | 19079 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
19080 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
1e8e9920 | 19081 | fi |
cd9a469c | 19082 | # Compute "$ac_file"'s index in $config_headers. |
19083 | _am_arg="$ac_file" | |
1e8e9920 | 19084 | _am_stamp_count=1 |
19085 | for _am_header in $config_headers :; do | |
19086 | case $_am_header in | |
cd9a469c | 19087 | $_am_arg | $_am_arg:* ) |
1e8e9920 | 19088 | break ;; |
19089 | * ) | |
19090 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19091 | esac | |
19092 | done | |
cd9a469c | 19093 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
19094 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19095 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19096 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19097 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19098 | $as_echo X"$_am_arg" | | |
19099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19100 | s//\1/ | |
19101 | q | |
19102 | } | |
19103 | /^X\(\/\/\)[^/].*/{ | |
19104 | s//\1/ | |
19105 | q | |
19106 | } | |
19107 | /^X\(\/\/\)$/{ | |
19108 | s//\1/ | |
19109 | q | |
19110 | } | |
19111 | /^X\(\/\).*/{ | |
19112 | s//\1/ | |
19113 | q | |
19114 | } | |
19115 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19116 | ;; | |
1e8e9920 | 19117 | |
cd9a469c | 19118 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19119 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19120 | ;; | |
19121 | esac | |
1e8e9920 | 19122 | |
19123 | ||
cd9a469c | 19124 | case $ac_file$ac_mode in |
19125 | "default-1":C) | |
1e8e9920 | 19126 | # Only add multilib support code if we just rebuilt the top-level |
19127 | # Makefile. | |
19128 | case " $CONFIG_FILES " in | |
19129 | *" Makefile "*) | |
19130 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
19131 | ;; | |
19132 | esac ;; | |
cd9a469c | 19133 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
f00f02a3 | 19134 | # Older Autoconf quotes --file arguments for eval, but not when files |
cd9a469c | 19135 | # are listed without --file. Let's play safe and only enable the eval |
19136 | # if we detect the quoting. | |
19137 | case $CONFIG_FILES in | |
19138 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19139 | *) set x $CONFIG_FILES ;; | |
19140 | esac | |
19141 | shift | |
19142 | for mf | |
19143 | do | |
19144 | # Strip MF so we end up with the name of the file. | |
19145 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19146 | # Check whether this is an Automake generated Makefile or not. | |
f00f02a3 | 19147 | # We used to match only the files named 'Makefile.in', but |
cd9a469c | 19148 | # some people rename them; so instead we look at the file content. |
19149 | # Grep'ing the first line is not enough: some people post-process | |
19150 | # each Makefile.in and add a new line on top of each file to say so. | |
19151 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19152 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19153 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19154 | dirpart=`$as_dirname -- "$mf" || | |
1e8e9920 | 19155 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19156 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19157 | X"$mf" : 'X\(//\)$' \| \ | |
cd9a469c | 19158 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
19159 | $as_echo X"$mf" | | |
19160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19161 | s//\1/ | |
19162 | q | |
19163 | } | |
19164 | /^X\(\/\/\)[^/].*/{ | |
19165 | s//\1/ | |
19166 | q | |
19167 | } | |
19168 | /^X\(\/\/\)$/{ | |
19169 | s//\1/ | |
19170 | q | |
19171 | } | |
19172 | /^X\(\/\).*/{ | |
19173 | s//\1/ | |
19174 | q | |
19175 | } | |
19176 | s/.*/./; q'` | |
19177 | else | |
19178 | continue | |
19179 | fi | |
19180 | # Extract the definition of DEPDIR, am__include, and am__quote | |
f00f02a3 | 19181 | # from the Makefile without running 'make'. |
cd9a469c | 19182 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
19183 | test -z "$DEPDIR" && continue | |
19184 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
f00f02a3 | 19185 | test -z "$am__include" && continue |
cd9a469c | 19186 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
cd9a469c | 19187 | # Find all dependency output files, they are included files with |
19188 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19189 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19190 | # expansion. | |
19191 | for file in `sed -n " | |
19192 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
f00f02a3 | 19193 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
cd9a469c | 19194 | # Make sure the directory exists. |
19195 | test -f "$dirpart/$file" && continue | |
19196 | fdir=`$as_dirname -- "$file" || | |
1e8e9920 | 19197 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19198 | X"$file" : 'X\(//\)[^/]' \| \ | |
19199 | X"$file" : 'X\(//\)$' \| \ | |
cd9a469c | 19200 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
19201 | $as_echo X"$file" | | |
19202 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19203 | s//\1/ | |
19204 | q | |
19205 | } | |
19206 | /^X\(\/\/\)[^/].*/{ | |
19207 | s//\1/ | |
19208 | q | |
19209 | } | |
19210 | /^X\(\/\/\)$/{ | |
19211 | s//\1/ | |
19212 | q | |
19213 | } | |
19214 | /^X\(\/\).*/{ | |
19215 | s//\1/ | |
19216 | q | |
19217 | } | |
19218 | s/.*/./; q'` | |
19219 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19220 | # echo "creating $dirpart/$file" | |
19221 | echo '# dummy' > "$dirpart/$file" | |
1e8e9920 | 19222 | done |
1e8e9920 | 19223 | done |
cd9a469c | 19224 | } |
542f9784 | 19225 | ;; |
cd9a469c | 19226 | "libtool":C) |
542f9784 | 19227 | |
19228 | # See if we are running on zsh, and set the options which allow our | |
19229 | # commands through without removal of \ escapes. | |
19230 | if test -n "${ZSH_VERSION+set}" ; then | |
19231 | setopt NO_GLOB_SUBST | |
19232 | fi | |
19233 | ||
19234 | cfgfile="${ofile}T" | |
19235 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19236 | $RM "$cfgfile" | |
19237 | ||
19238 | cat <<_LT_EOF >> "$cfgfile" | |
19239 | #! $SHELL | |
19240 | ||
19241 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
6d873a38 | 19242 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
542f9784 | 19243 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19244 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19245 | # | |
6d873a38 | 19246 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
e6408286 | 19247 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
6d873a38 | 19248 | # Written by Gordon Matzigkeit, 1996 |
542f9784 | 19249 | # |
6d873a38 | 19250 | # This file is part of GNU Libtool. |
542f9784 | 19251 | # |
6d873a38 | 19252 | # GNU Libtool is free software; you can redistribute it and/or |
19253 | # modify it under the terms of the GNU General Public License as | |
19254 | # published by the Free Software Foundation; either version 2 of | |
19255 | # the License, or (at your option) any later version. | |
542f9784 | 19256 | # |
6d873a38 | 19257 | # As a special exception to the GNU General Public License, |
19258 | # if you distribute this file as part of a program or library that | |
19259 | # is built using GNU Libtool, you may include this file under the | |
19260 | # same distribution terms that you use for the rest of that program. | |
542f9784 | 19261 | # |
6d873a38 | 19262 | # GNU Libtool is distributed in the hope that it will be useful, |
19263 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19264 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19265 | # GNU General Public License for more details. | |
542f9784 | 19266 | # |
6d873a38 | 19267 | # You should have received a copy of the GNU General Public License |
19268 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19269 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19270 | # obtained by writing to the Free Software Foundation, Inc., | |
19271 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
542f9784 | 19272 | |
19273 | ||
19274 | # The names of the tagged configurations supported by this script. | |
19275 | available_tags="FC " | |
19276 | ||
19277 | # ### BEGIN LIBTOOL CONFIG | |
19278 | ||
19279 | # Which release of libtool.m4 was used? | |
19280 | macro_version=$macro_version | |
19281 | macro_revision=$macro_revision | |
19282 | ||
19283 | # Whether or not to build shared libraries. | |
19284 | build_libtool_libs=$enable_shared | |
19285 | ||
19286 | # Whether or not to build static libraries. | |
19287 | build_old_libs=$enable_static | |
19288 | ||
19289 | # What type of objects to build. | |
19290 | pic_mode=$pic_mode | |
19291 | ||
19292 | # Whether or not to optimize for fast installation. | |
19293 | fast_install=$enable_fast_install | |
19294 | ||
e6408286 | 19295 | # Shell to use when invoking shell scripts. |
19296 | SHELL=$lt_SHELL | |
19297 | ||
19298 | # An echo program that protects backslashes. | |
19299 | ECHO=$lt_ECHO | |
19300 | ||
542f9784 | 19301 | # The host system. |
19302 | host_alias=$host_alias | |
19303 | host=$host | |
19304 | host_os=$host_os | |
19305 | ||
19306 | # The build system. | |
19307 | build_alias=$build_alias | |
19308 | build=$build | |
19309 | build_os=$build_os | |
19310 | ||
19311 | # A sed program that does not truncate output. | |
19312 | SED=$lt_SED | |
19313 | ||
19314 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19315 | Xsed="\$SED -e 1s/^X//" | |
19316 | ||
19317 | # A grep program that handles long lines. | |
19318 | GREP=$lt_GREP | |
19319 | ||
19320 | # An ERE matcher. | |
19321 | EGREP=$lt_EGREP | |
19322 | ||
19323 | # A literal string matcher. | |
19324 | FGREP=$lt_FGREP | |
19325 | ||
19326 | # A BSD- or MS-compatible name lister. | |
19327 | NM=$lt_NM | |
19328 | ||
19329 | # Whether we need soft or hard links. | |
19330 | LN_S=$lt_LN_S | |
19331 | ||
19332 | # What is the maximum length of a command? | |
19333 | max_cmd_len=$max_cmd_len | |
19334 | ||
19335 | # Object file suffix (normally "o"). | |
19336 | objext=$ac_objext | |
19337 | ||
19338 | # Executable file suffix (normally ""). | |
19339 | exeext=$exeext | |
19340 | ||
19341 | # whether the shell understands "unset". | |
19342 | lt_unset=$lt_unset | |
19343 | ||
19344 | # turn spaces into newlines. | |
19345 | SP2NL=$lt_lt_SP2NL | |
19346 | ||
19347 | # turn newlines into spaces. | |
19348 | NL2SP=$lt_lt_NL2SP | |
19349 | ||
6d873a38 | 19350 | # An object symbol dumper. |
19351 | OBJDUMP=$lt_OBJDUMP | |
19352 | ||
542f9784 | 19353 | # Method to check whether dependent libraries are shared objects. |
19354 | deplibs_check_method=$lt_deplibs_check_method | |
19355 | ||
19356 | # Command to use when deplibs_check_method == "file_magic". | |
19357 | file_magic_cmd=$lt_file_magic_cmd | |
19358 | ||
19359 | # The archiver. | |
19360 | AR=$lt_AR | |
19361 | AR_FLAGS=$lt_AR_FLAGS | |
19362 | ||
19363 | # A symbol stripping program. | |
19364 | STRIP=$lt_STRIP | |
19365 | ||
19366 | # Commands used to install an old-style archive. | |
19367 | RANLIB=$lt_RANLIB | |
19368 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19369 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19370 | ||
e6408286 | 19371 | # Whether to use a lock for old archive extraction. |
19372 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19373 | ||
542f9784 | 19374 | # A C compiler. |
19375 | LTCC=$lt_CC | |
19376 | ||
19377 | # LTCC compiler flags. | |
19378 | LTCFLAGS=$lt_CFLAGS | |
19379 | ||
19380 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19381 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19382 | ||
19383 | # Transform the output of nm in a proper C declaration. | |
19384 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19385 | ||
19386 | # Transform the output of nm in a C name address pair. | |
19387 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19388 | ||
6d873a38 | 19389 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
19390 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19391 | ||
542f9784 | 19392 | # The name of the directory that contains temporary libtool files. |
19393 | objdir=$objdir | |
19394 | ||
542f9784 | 19395 | # Used to examine libraries when file_magic_cmd begins with "file". |
19396 | MAGIC_CMD=$MAGIC_CMD | |
19397 | ||
19398 | # Must we lock files when doing compilation? | |
19399 | need_locks=$lt_need_locks | |
19400 | ||
6d873a38 | 19401 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19402 | DSYMUTIL=$lt_DSYMUTIL | |
19403 | ||
19404 | # Tool to change global to local symbols on Mac OS X. | |
19405 | NMEDIT=$lt_NMEDIT | |
19406 | ||
19407 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19408 | LIPO=$lt_LIPO | |
19409 | ||
19410 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19411 | OTOOL=$lt_OTOOL | |
19412 | ||
19413 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19414 | OTOOL64=$lt_OTOOL64 | |
19415 | ||
542f9784 | 19416 | # Old archive suffix (normally "a"). |
19417 | libext=$libext | |
19418 | ||
19419 | # Shared library suffix (normally ".so"). | |
19420 | shrext_cmds=$lt_shrext_cmds | |
19421 | ||
19422 | # The commands to extract the exported symbol list from a shared archive. | |
19423 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19424 | ||
19425 | # Variables whose values should be saved in libtool wrapper scripts and | |
19426 | # restored at link time. | |
19427 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19428 | ||
19429 | # Do we need the "lib" prefix for modules? | |
19430 | need_lib_prefix=$need_lib_prefix | |
19431 | ||
19432 | # Do we need a version for libraries? | |
19433 | need_version=$need_version | |
19434 | ||
19435 | # Library versioning type. | |
19436 | version_type=$version_type | |
19437 | ||
19438 | # Shared library runtime path variable. | |
19439 | runpath_var=$runpath_var | |
19440 | ||
19441 | # Shared library path variable. | |
19442 | shlibpath_var=$shlibpath_var | |
19443 | ||
19444 | # Is shlibpath searched before the hard-coded library search path? | |
19445 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19446 | ||
19447 | # Format of library name prefix. | |
19448 | libname_spec=$lt_libname_spec | |
19449 | ||
19450 | # List of archive names. First name is the real one, the rest are links. | |
19451 | # The last name is the one that the linker finds with -lNAME | |
19452 | library_names_spec=$lt_library_names_spec | |
19453 | ||
19454 | # The coded name of the library, if different from the real name. | |
19455 | soname_spec=$lt_soname_spec | |
19456 | ||
e6408286 | 19457 | # Permission mode override for installation of shared libraries. |
19458 | install_override_mode=$lt_install_override_mode | |
19459 | ||
542f9784 | 19460 | # Command to use after installation of a shared archive. |
19461 | postinstall_cmds=$lt_postinstall_cmds | |
19462 | ||
19463 | # Command to use after uninstallation of a shared archive. | |
19464 | postuninstall_cmds=$lt_postuninstall_cmds | |
19465 | ||
19466 | # Commands used to finish a libtool library installation in a directory. | |
19467 | finish_cmds=$lt_finish_cmds | |
19468 | ||
19469 | # As "finish_cmds", except a single script fragment to be evaled but | |
19470 | # not shown. | |
19471 | finish_eval=$lt_finish_eval | |
19472 | ||
19473 | # Whether we should hardcode library paths into libraries. | |
19474 | hardcode_into_libs=$hardcode_into_libs | |
19475 | ||
19476 | # Compile-time system search path for libraries. | |
19477 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19478 | ||
19479 | # Run-time system search path for libraries. | |
19480 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19481 | ||
19482 | # Whether dlopen is supported. | |
19483 | dlopen_support=$enable_dlopen | |
19484 | ||
19485 | # Whether dlopen of programs is supported. | |
19486 | dlopen_self=$enable_dlopen_self | |
19487 | ||
19488 | # Whether dlopen of statically linked programs is supported. | |
19489 | dlopen_self_static=$enable_dlopen_self_static | |
19490 | ||
19491 | # Commands to strip libraries. | |
19492 | old_striplib=$lt_old_striplib | |
19493 | striplib=$lt_striplib | |
19494 | ||
19495 | ||
19496 | # The linker used to build libraries. | |
19497 | LD=$lt_LD | |
19498 | ||
e6408286 | 19499 | # How to create reloadable object files. |
19500 | reload_flag=$lt_reload_flag | |
19501 | reload_cmds=$lt_reload_cmds | |
19502 | ||
542f9784 | 19503 | # Commands used to build an old-style archive. |
19504 | old_archive_cmds=$lt_old_archive_cmds | |
19505 | ||
19506 | # A language specific compiler. | |
19507 | CC=$lt_compiler | |
19508 | ||
19509 | # Is the compiler the GNU compiler? | |
19510 | with_gcc=$GCC | |
19511 | ||
19512 | # Compiler flag to turn off builtin functions. | |
19513 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19514 | ||
19515 | # How to pass a linker flag through the compiler. | |
19516 | wl=$lt_lt_prog_compiler_wl | |
19517 | ||
19518 | # Additional compiler flags for building library objects. | |
19519 | pic_flag=$lt_lt_prog_compiler_pic | |
19520 | ||
19521 | # Compiler flag to prevent dynamic linking. | |
19522 | link_static_flag=$lt_lt_prog_compiler_static | |
19523 | ||
19524 | # Does compiler simultaneously support -c and -o options? | |
19525 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19526 | ||
19527 | # Whether or not to add -lc for building shared libraries. | |
19528 | build_libtool_need_lc=$archive_cmds_need_lc | |
19529 | ||
19530 | # Whether or not to disallow shared libs when runtime libs are static. | |
19531 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19532 | ||
19533 | # Compiler flag to allow reflexive dlopens. | |
19534 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19535 | ||
19536 | # Compiler flag to generate shared objects directly from archives. | |
19537 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19538 | ||
19539 | # Whether the compiler copes with passing no objects directly. | |
19540 | compiler_needs_object=$lt_compiler_needs_object | |
19541 | ||
19542 | # Create an old-style archive from a shared archive. | |
19543 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19544 | ||
19545 | # Create a temporary old-style archive to link instead of a shared archive. | |
19546 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19547 | ||
19548 | # Commands used to build a shared archive. | |
19549 | archive_cmds=$lt_archive_cmds | |
19550 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19551 | ||
19552 | # Commands used to build a loadable module if different from building | |
19553 | # a shared archive. | |
19554 | module_cmds=$lt_module_cmds | |
19555 | module_expsym_cmds=$lt_module_expsym_cmds | |
19556 | ||
19557 | # Whether we are building with GNU ld or not. | |
19558 | with_gnu_ld=$lt_with_gnu_ld | |
19559 | ||
19560 | # Flag that allows shared libraries with undefined symbols to be built. | |
19561 | allow_undefined_flag=$lt_allow_undefined_flag | |
19562 | ||
19563 | # Flag that enforces no undefined symbols. | |
19564 | no_undefined_flag=$lt_no_undefined_flag | |
19565 | ||
19566 | # Flag to hardcode \$libdir into a binary during linking. | |
19567 | # This must work even if \$libdir does not exist | |
19568 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19569 | ||
19570 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19571 | # during linking. This must work even if \$libdir does not exist. | |
19572 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19573 | ||
19574 | # Whether we need a single "-rpath" flag with a separated argument. | |
19575 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19576 | ||
19577 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19578 | # DIR into the resulting binary. | |
19579 | hardcode_direct=$hardcode_direct | |
19580 | ||
19581 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19582 | # DIR into the resulting binary and the resulting library dependency is | |
19583 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19584 | # library is relocated. | |
19585 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19586 | ||
19587 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19588 | # into the resulting binary. | |
19589 | hardcode_minus_L=$hardcode_minus_L | |
19590 | ||
19591 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19592 | # into the resulting binary. | |
19593 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19594 | ||
19595 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19596 | # into the library and all subsequent libraries and executables linked | |
19597 | # against it. | |
19598 | hardcode_automatic=$hardcode_automatic | |
19599 | ||
19600 | # Set to yes if linker adds runtime paths of dependent libraries | |
19601 | # to runtime path list. | |
19602 | inherit_rpath=$inherit_rpath | |
19603 | ||
19604 | # Whether libtool must link a program against all its dependency libraries. | |
19605 | link_all_deplibs=$link_all_deplibs | |
19606 | ||
19607 | # Fix the shell variable \$srcfile for the compiler. | |
19608 | fix_srcfile_path=$lt_fix_srcfile_path | |
19609 | ||
19610 | # Set to "yes" if exported symbols are required. | |
19611 | always_export_symbols=$always_export_symbols | |
19612 | ||
19613 | # The commands to list exported symbols. | |
19614 | export_symbols_cmds=$lt_export_symbols_cmds | |
19615 | ||
19616 | # Symbols that should not be listed in the preloaded symbols. | |
19617 | exclude_expsyms=$lt_exclude_expsyms | |
19618 | ||
19619 | # Symbols that must always be exported. | |
19620 | include_expsyms=$lt_include_expsyms | |
19621 | ||
19622 | # Commands necessary for linking programs (against libraries) with templates. | |
19623 | prelink_cmds=$lt_prelink_cmds | |
19624 | ||
19625 | # Specify filename containing input files. | |
19626 | file_list_spec=$lt_file_list_spec | |
19627 | ||
19628 | # How to hardcode a shared library path into an executable. | |
19629 | hardcode_action=$hardcode_action | |
19630 | ||
6d873a38 | 19631 | # The directories searched by this compiler when creating a shared library. |
19632 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19633 | ||
542f9784 | 19634 | # Dependencies to place before and after the objects being linked to |
19635 | # create a shared library. | |
19636 | predep_objects=$lt_predep_objects | |
19637 | postdep_objects=$lt_postdep_objects | |
19638 | predeps=$lt_predeps | |
19639 | postdeps=$lt_postdeps | |
19640 | ||
19641 | # The library search path used internally by the compiler when linking | |
19642 | # a shared library. | |
19643 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19644 | ||
19645 | # ### END LIBTOOL CONFIG | |
19646 | ||
19647 | _LT_EOF | |
19648 | ||
19649 | case $host_os in | |
19650 | aix3*) | |
19651 | cat <<\_LT_EOF >> "$cfgfile" | |
19652 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19653 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19654 | # vanish in a puff of smoke. | |
19655 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19656 | COLLECT_NAMES= | |
19657 | export COLLECT_NAMES | |
19658 | fi | |
19659 | _LT_EOF | |
19660 | ;; | |
19661 | esac | |
19662 | ||
19663 | ||
19664 | ltmain="$ac_aux_dir/ltmain.sh" | |
19665 | ||
19666 | ||
19667 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19668 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19669 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19670 | # is reportedly fixed, but why not run on old versions too? | |
19671 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19672 | || (rm -f "$cfgfile"; exit 1) | |
19673 | ||
19674 | case $xsi_shell in | |
19675 | yes) | |
19676 | cat << \_LT_EOF >> "$cfgfile" | |
6d873a38 | 19677 | |
542f9784 | 19678 | # func_dirname file append nondir_replacement |
19679 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19680 | # otherwise set result to NONDIR_REPLACEMENT. | |
19681 | func_dirname () | |
19682 | { | |
19683 | case ${1} in | |
19684 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19685 | * ) func_dirname_result="${3}" ;; | |
19686 | esac | |
19687 | } | |
19688 | ||
19689 | # func_basename file | |
19690 | func_basename () | |
19691 | { | |
19692 | func_basename_result="${1##*/}" | |
19693 | } | |
19694 | ||
6d873a38 | 19695 | # func_dirname_and_basename file append nondir_replacement |
19696 | # perform func_basename and func_dirname in a single function | |
19697 | # call: | |
19698 | # dirname: Compute the dirname of FILE. If nonempty, | |
19699 | # add APPEND to the result, otherwise set result | |
19700 | # to NONDIR_REPLACEMENT. | |
19701 | # value returned in "$func_dirname_result" | |
19702 | # basename: Compute filename of FILE. | |
19703 | # value retuned in "$func_basename_result" | |
19704 | # Implementation must be kept synchronized with func_dirname | |
19705 | # and func_basename. For efficiency, we do not delegate to | |
19706 | # those functions but instead duplicate the functionality here. | |
19707 | func_dirname_and_basename () | |
19708 | { | |
19709 | case ${1} in | |
19710 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19711 | * ) func_dirname_result="${3}" ;; | |
19712 | esac | |
19713 | func_basename_result="${1##*/}" | |
19714 | } | |
19715 | ||
542f9784 | 19716 | # func_stripname prefix suffix name |
19717 | # strip PREFIX and SUFFIX off of NAME. | |
19718 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19719 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19720 | # dot (in which case that matches only a dot). | |
19721 | func_stripname () | |
19722 | { | |
19723 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19724 | # positional parameters, so assign one to ordinary parameter first. | |
19725 | func_stripname_result=${3} | |
19726 | func_stripname_result=${func_stripname_result#"${1}"} | |
19727 | func_stripname_result=${func_stripname_result%"${2}"} | |
19728 | } | |
19729 | ||
19730 | # func_opt_split | |
19731 | func_opt_split () | |
19732 | { | |
19733 | func_opt_split_opt=${1%%=*} | |
19734 | func_opt_split_arg=${1#*=} | |
19735 | } | |
19736 | ||
19737 | # func_lo2o object | |
19738 | func_lo2o () | |
19739 | { | |
19740 | case ${1} in | |
19741 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19742 | *) func_lo2o_result=${1} ;; | |
19743 | esac | |
19744 | } | |
6d873a38 | 19745 | |
19746 | # func_xform libobj-or-source | |
19747 | func_xform () | |
19748 | { | |
19749 | func_xform_result=${1%.*}.lo | |
19750 | } | |
19751 | ||
19752 | # func_arith arithmetic-term... | |
19753 | func_arith () | |
19754 | { | |
19755 | func_arith_result=$(( $* )) | |
19756 | } | |
19757 | ||
19758 | # func_len string | |
19759 | # STRING may not start with a hyphen. | |
19760 | func_len () | |
19761 | { | |
19762 | func_len_result=${#1} | |
19763 | } | |
19764 | ||
542f9784 | 19765 | _LT_EOF |
19766 | ;; | |
19767 | *) # Bourne compatible functions. | |
19768 | cat << \_LT_EOF >> "$cfgfile" | |
6d873a38 | 19769 | |
542f9784 | 19770 | # func_dirname file append nondir_replacement |
19771 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19772 | # otherwise set result to NONDIR_REPLACEMENT. | |
19773 | func_dirname () | |
19774 | { | |
19775 | # Extract subdirectory from the argument. | |
e6408286 | 19776 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
542f9784 | 19777 | if test "X$func_dirname_result" = "X${1}"; then |
19778 | func_dirname_result="${3}" | |
19779 | else | |
19780 | func_dirname_result="$func_dirname_result${2}" | |
19781 | fi | |
19782 | } | |
19783 | ||
19784 | # func_basename file | |
19785 | func_basename () | |
19786 | { | |
e6408286 | 19787 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
542f9784 | 19788 | } |
19789 | ||
6d873a38 | 19790 | |
542f9784 | 19791 | # func_stripname prefix suffix name |
19792 | # strip PREFIX and SUFFIX off of NAME. | |
19793 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19794 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19795 | # dot (in which case that matches only a dot). | |
19796 | # func_strip_suffix prefix name | |
19797 | func_stripname () | |
19798 | { | |
19799 | case ${2} in | |
e6408286 | 19800 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
19801 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
542f9784 | 19802 | esac |
19803 | } | |
19804 | ||
19805 | # sed scripts: | |
19806 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19807 | my_sed_long_arg='1s/^-[^=]*=//' | |
19808 | ||
19809 | # func_opt_split | |
19810 | func_opt_split () | |
19811 | { | |
e6408286 | 19812 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
19813 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
542f9784 | 19814 | } |
19815 | ||
19816 | # func_lo2o object | |
19817 | func_lo2o () | |
19818 | { | |
e6408286 | 19819 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
542f9784 | 19820 | } |
6d873a38 | 19821 | |
19822 | # func_xform libobj-or-source | |
19823 | func_xform () | |
19824 | { | |
e6408286 | 19825 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
6d873a38 | 19826 | } |
19827 | ||
19828 | # func_arith arithmetic-term... | |
19829 | func_arith () | |
19830 | { | |
19831 | func_arith_result=`expr "$@"` | |
19832 | } | |
19833 | ||
19834 | # func_len string | |
19835 | # STRING may not start with a hyphen. | |
19836 | func_len () | |
19837 | { | |
19838 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19839 | } | |
19840 | ||
542f9784 | 19841 | _LT_EOF |
19842 | esac | |
19843 | ||
19844 | case $lt_shell_append in | |
19845 | yes) | |
19846 | cat << \_LT_EOF >> "$cfgfile" | |
19847 | ||
19848 | # func_append var value | |
19849 | # Append VALUE to the end of shell variable VAR. | |
19850 | func_append () | |
19851 | { | |
19852 | eval "$1+=\$2" | |
19853 | } | |
19854 | _LT_EOF | |
19855 | ;; | |
19856 | *) | |
19857 | cat << \_LT_EOF >> "$cfgfile" | |
19858 | ||
19859 | # func_append var value | |
19860 | # Append VALUE to the end of shell variable VAR. | |
19861 | func_append () | |
19862 | { | |
19863 | eval "$1=\$$1\$2" | |
19864 | } | |
6d873a38 | 19865 | |
542f9784 | 19866 | _LT_EOF |
19867 | ;; | |
19868 | esac | |
19869 | ||
19870 | ||
19871 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19872 | || (rm -f "$cfgfile"; exit 1) | |
19873 | ||
19874 | mv -f "$cfgfile" "$ofile" || | |
19875 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19876 | chmod +x "$ofile" | |
19877 | ||
19878 | ||
19879 | cat <<_LT_EOF >> "$ofile" | |
19880 | ||
19881 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
19882 | ||
19883 | # The linker used to build libraries. | |
19884 | LD=$lt_LD_FC | |
19885 | ||
e6408286 | 19886 | # How to create reloadable object files. |
19887 | reload_flag=$lt_reload_flag_FC | |
19888 | reload_cmds=$lt_reload_cmds_FC | |
19889 | ||
542f9784 | 19890 | # Commands used to build an old-style archive. |
19891 | old_archive_cmds=$lt_old_archive_cmds_FC | |
19892 | ||
19893 | # A language specific compiler. | |
19894 | CC=$lt_compiler_FC | |
19895 | ||
19896 | # Is the compiler the GNU compiler? | |
19897 | with_gcc=$GCC_FC | |
19898 | ||
19899 | # Compiler flag to turn off builtin functions. | |
19900 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
19901 | ||
19902 | # How to pass a linker flag through the compiler. | |
19903 | wl=$lt_lt_prog_compiler_wl_FC | |
19904 | ||
19905 | # Additional compiler flags for building library objects. | |
19906 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
19907 | ||
19908 | # Compiler flag to prevent dynamic linking. | |
19909 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
19910 | ||
19911 | # Does compiler simultaneously support -c and -o options? | |
19912 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
19913 | ||
19914 | # Whether or not to add -lc for building shared libraries. | |
19915 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
19916 | ||
19917 | # Whether or not to disallow shared libs when runtime libs are static. | |
19918 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
19919 | ||
19920 | # Compiler flag to allow reflexive dlopens. | |
19921 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
19922 | ||
19923 | # Compiler flag to generate shared objects directly from archives. | |
19924 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
19925 | ||
19926 | # Whether the compiler copes with passing no objects directly. | |
19927 | compiler_needs_object=$lt_compiler_needs_object_FC | |
19928 | ||
19929 | # Create an old-style archive from a shared archive. | |
19930 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
19931 | ||
19932 | # Create a temporary old-style archive to link instead of a shared archive. | |
19933 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
19934 | ||
19935 | # Commands used to build a shared archive. | |
19936 | archive_cmds=$lt_archive_cmds_FC | |
19937 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
19938 | ||
19939 | # Commands used to build a loadable module if different from building | |
19940 | # a shared archive. | |
19941 | module_cmds=$lt_module_cmds_FC | |
19942 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
19943 | ||
19944 | # Whether we are building with GNU ld or not. | |
19945 | with_gnu_ld=$lt_with_gnu_ld_FC | |
19946 | ||
19947 | # Flag that allows shared libraries with undefined symbols to be built. | |
19948 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
19949 | ||
19950 | # Flag that enforces no undefined symbols. | |
19951 | no_undefined_flag=$lt_no_undefined_flag_FC | |
19952 | ||
19953 | # Flag to hardcode \$libdir into a binary during linking. | |
19954 | # This must work even if \$libdir does not exist | |
19955 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
19956 | ||
19957 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19958 | # during linking. This must work even if \$libdir does not exist. | |
19959 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
19960 | ||
19961 | # Whether we need a single "-rpath" flag with a separated argument. | |
19962 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
19963 | ||
19964 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19965 | # DIR into the resulting binary. | |
19966 | hardcode_direct=$hardcode_direct_FC | |
19967 | ||
19968 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19969 | # DIR into the resulting binary and the resulting library dependency is | |
19970 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19971 | # library is relocated. | |
19972 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
19973 | ||
19974 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19975 | # into the resulting binary. | |
19976 | hardcode_minus_L=$hardcode_minus_L_FC | |
19977 | ||
19978 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19979 | # into the resulting binary. | |
19980 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
19981 | ||
19982 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19983 | # into the library and all subsequent libraries and executables linked | |
19984 | # against it. | |
19985 | hardcode_automatic=$hardcode_automatic_FC | |
19986 | ||
19987 | # Set to yes if linker adds runtime paths of dependent libraries | |
19988 | # to runtime path list. | |
19989 | inherit_rpath=$inherit_rpath_FC | |
19990 | ||
19991 | # Whether libtool must link a program against all its dependency libraries. | |
19992 | link_all_deplibs=$link_all_deplibs_FC | |
19993 | ||
19994 | # Fix the shell variable \$srcfile for the compiler. | |
19995 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
19996 | ||
19997 | # Set to "yes" if exported symbols are required. | |
19998 | always_export_symbols=$always_export_symbols_FC | |
19999 | ||
20000 | # The commands to list exported symbols. | |
20001 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
20002 | ||
20003 | # Symbols that should not be listed in the preloaded symbols. | |
20004 | exclude_expsyms=$lt_exclude_expsyms_FC | |
20005 | ||
20006 | # Symbols that must always be exported. | |
20007 | include_expsyms=$lt_include_expsyms_FC | |
20008 | ||
20009 | # Commands necessary for linking programs (against libraries) with templates. | |
20010 | prelink_cmds=$lt_prelink_cmds_FC | |
20011 | ||
20012 | # Specify filename containing input files. | |
20013 | file_list_spec=$lt_file_list_spec_FC | |
20014 | ||
20015 | # How to hardcode a shared library path into an executable. | |
20016 | hardcode_action=$hardcode_action_FC | |
20017 | ||
6d873a38 | 20018 | # The directories searched by this compiler when creating a shared library. |
20019 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
20020 | ||
542f9784 | 20021 | # Dependencies to place before and after the objects being linked to |
20022 | # create a shared library. | |
20023 | predep_objects=$lt_predep_objects_FC | |
20024 | postdep_objects=$lt_postdep_objects_FC | |
20025 | predeps=$lt_predeps_FC | |
20026 | postdeps=$lt_postdeps_FC | |
20027 | ||
20028 | # The library search path used internally by the compiler when linking | |
20029 | # a shared library. | |
20030 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
20031 | ||
20032 | # ### END LIBTOOL TAG CONFIG: FC | |
20033 | _LT_EOF | |
20034 | ||
01473a49 | 20035 | ;; |
cd9a469c | 20036 | "gstdint.h":C) |
01473a49 | 20037 | if test "$GCC" = yes; then |
20038 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
20039 | else | |
20040 | echo "/* generated for $CC */" > tmp-stdint.h | |
20041 | fi | |
20042 | ||
20043 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20044 | ||
20045 | #ifndef GCC_GENERATED_STDINT_H | |
20046 | #define GCC_GENERATED_STDINT_H 1 | |
20047 | ||
20048 | #include <sys/types.h> | |
20049 | EOF | |
20050 | ||
20051 | if test "$acx_cv_header_stdint" != stdint.h; then | |
20052 | echo "#include <stddef.h>" >> tmp-stdint.h | |
20053 | fi | |
20054 | if test "$acx_cv_header_stdint" != stddef.h; then | |
20055 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
20056 | fi | |
20057 | ||
20058 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20059 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
20060 | #ifdef __int8_t_defined | |
20061 | #define _INT8_T | |
20062 | #define _INT16_T | |
20063 | #define _INT32_T | |
20064 | #endif | |
20065 | #ifdef __uint32_t_defined | |
20066 | #define _UINT32_T | |
20067 | #endif | |
20068 | ||
20069 | EOF | |
20070 | ||
20071 | # ----------------- done header, emit basic int types ------------- | |
20072 | if test "$acx_cv_header_stdint" = stddef.h; then | |
20073 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20074 | ||
20075 | #ifndef _UINT8_T | |
20076 | #define _UINT8_T | |
542f9784 | 20077 | #ifndef __uint8_t_defined |
20078 | #define __uint8_t_defined | |
9ad2e3f3 | 20079 | #ifndef uint8_t |
01473a49 | 20080 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
20081 | #endif | |
542f9784 | 20082 | #endif |
9ad2e3f3 | 20083 | #endif |
01473a49 | 20084 | |
20085 | #ifndef _UINT16_T | |
20086 | #define _UINT16_T | |
542f9784 | 20087 | #ifndef __uint16_t_defined |
20088 | #define __uint16_t_defined | |
9ad2e3f3 | 20089 | #ifndef uint16_t |
01473a49 | 20090 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
20091 | #endif | |
542f9784 | 20092 | #endif |
9ad2e3f3 | 20093 | #endif |
01473a49 | 20094 | |
20095 | #ifndef _UINT32_T | |
20096 | #define _UINT32_T | |
542f9784 | 20097 | #ifndef __uint32_t_defined |
20098 | #define __uint32_t_defined | |
9ad2e3f3 | 20099 | #ifndef uint32_t |
01473a49 | 20100 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
20101 | #endif | |
542f9784 | 20102 | #endif |
9ad2e3f3 | 20103 | #endif |
01473a49 | 20104 | |
20105 | #ifndef _INT8_T | |
20106 | #define _INT8_T | |
542f9784 | 20107 | #ifndef __int8_t_defined |
20108 | #define __int8_t_defined | |
9ad2e3f3 | 20109 | #ifndef int8_t |
01473a49 | 20110 | typedef $acx_cv_type_int8_t int8_t; |
20111 | #endif | |
542f9784 | 20112 | #endif |
9ad2e3f3 | 20113 | #endif |
01473a49 | 20114 | |
20115 | #ifndef _INT16_T | |
20116 | #define _INT16_T | |
542f9784 | 20117 | #ifndef __int16_t_defined |
20118 | #define __int16_t_defined | |
9ad2e3f3 | 20119 | #ifndef int16_t |
01473a49 | 20120 | typedef $acx_cv_type_int16_t int16_t; |
20121 | #endif | |
542f9784 | 20122 | #endif |
9ad2e3f3 | 20123 | #endif |
01473a49 | 20124 | |
20125 | #ifndef _INT32_T | |
20126 | #define _INT32_T | |
542f9784 | 20127 | #ifndef __int32_t_defined |
20128 | #define __int32_t_defined | |
9ad2e3f3 | 20129 | #ifndef int32_t |
01473a49 | 20130 | typedef $acx_cv_type_int32_t int32_t; |
20131 | #endif | |
542f9784 | 20132 | #endif |
9ad2e3f3 | 20133 | #endif |
01473a49 | 20134 | EOF |
20135 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
20136 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20137 | ||
20138 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
20139 | #ifndef _INT8_T | |
20140 | #define _INT8_T | |
20141 | #endif | |
20142 | #ifndef _INT16_T | |
20143 | #define _INT16_T | |
20144 | #endif | |
20145 | #ifndef _INT32_T | |
20146 | #define _INT32_T | |
20147 | #endif | |
20148 | ||
20149 | #ifndef _UINT8_T | |
20150 | #define _UINT8_T | |
542f9784 | 20151 | #ifndef __uint8_t_defined |
20152 | #define __uint8_t_defined | |
9ad2e3f3 | 20153 | #ifndef uint8_t |
01473a49 | 20154 | typedef u_int8_t uint8_t; |
20155 | #endif | |
542f9784 | 20156 | #endif |
9ad2e3f3 | 20157 | #endif |
01473a49 | 20158 | |
20159 | #ifndef _UINT16_T | |
20160 | #define _UINT16_T | |
542f9784 | 20161 | #ifndef __uint16_t_defined |
20162 | #define __uint16_t_defined | |
9ad2e3f3 | 20163 | #ifndef uint16_t |
01473a49 | 20164 | typedef u_int16_t uint16_t; |
20165 | #endif | |
542f9784 | 20166 | #endif |
9ad2e3f3 | 20167 | #endif |
01473a49 | 20168 | |
20169 | #ifndef _UINT32_T | |
20170 | #define _UINT32_T | |
542f9784 | 20171 | #ifndef __uint32_t_defined |
20172 | #define __uint32_t_defined | |
9ad2e3f3 | 20173 | #ifndef uint32_t |
01473a49 | 20174 | typedef u_int32_t uint32_t; |
20175 | #endif | |
542f9784 | 20176 | #endif |
9ad2e3f3 | 20177 | #endif |
01473a49 | 20178 | EOF |
20179 | else | |
20180 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20181 | ||
20182 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
20183 | #ifndef _INT8_T | |
20184 | #define _INT8_T | |
20185 | #endif | |
20186 | #ifndef _INT16_T | |
20187 | #define _INT16_T | |
20188 | #endif | |
20189 | #ifndef _INT32_T | |
20190 | #define _INT32_T | |
20191 | #endif | |
20192 | #ifndef _UINT8_T | |
20193 | #define _UINT8_T | |
20194 | #endif | |
20195 | #ifndef _UINT16_T | |
20196 | #define _UINT16_T | |
20197 | #endif | |
20198 | #ifndef _UINT32_T | |
20199 | #define _UINT32_T | |
20200 | #endif | |
20201 | EOF | |
20202 | fi | |
20203 | ||
20204 | # ------------- done basic int types, emit int64_t types ------------ | |
20205 | if test "$ac_cv_type_uint64_t" = yes; then | |
20206 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20207 | ||
20208 | /* system headers have good uint64_t and int64_t */ | |
20209 | #ifndef _INT64_T | |
20210 | #define _INT64_T | |
20211 | #endif | |
20212 | #ifndef _UINT64_T | |
20213 | #define _UINT64_T | |
20214 | #endif | |
20215 | EOF | |
20216 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
20217 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20218 | ||
20219 | /* system headers have an u_int64_t (and int64_t) */ | |
20220 | #ifndef _INT64_T | |
20221 | #define _INT64_T | |
20222 | #endif | |
20223 | #ifndef _UINT64_T | |
20224 | #define _UINT64_T | |
542f9784 | 20225 | #ifndef __uint64_t_defined |
20226 | #define __uint64_t_defined | |
9ad2e3f3 | 20227 | #ifndef uint64_t |
01473a49 | 20228 | typedef u_int64_t uint64_t; |
20229 | #endif | |
542f9784 | 20230 | #endif |
9ad2e3f3 | 20231 | #endif |
01473a49 | 20232 | EOF |
20233 | elif test -n "$acx_cv_type_int64_t"; then | |
20234 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20235 | ||
20236 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
20237 | #ifndef _INT64_T | |
20238 | #define _INT64_T | |
9ad2e3f3 | 20239 | #ifndef int64_t |
01473a49 | 20240 | typedef $acx_cv_type_int64_t int64_t; |
20241 | #endif | |
9ad2e3f3 | 20242 | #endif |
01473a49 | 20243 | #ifndef _UINT64_T |
20244 | #define _UINT64_T | |
542f9784 | 20245 | #ifndef __uint64_t_defined |
20246 | #define __uint64_t_defined | |
9ad2e3f3 | 20247 | #ifndef uint64_t |
01473a49 | 20248 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
20249 | #endif | |
542f9784 | 20250 | #endif |
9ad2e3f3 | 20251 | #endif |
01473a49 | 20252 | EOF |
20253 | else | |
20254 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20255 | ||
20256 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
20257 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
20258 | #ifndef _INT64_T | |
20259 | #define _INT64_T | |
542f9784 | 20260 | #ifndef __int64_t_defined |
9ad2e3f3 | 20261 | #ifndef int64_t |
01473a49 | 20262 | typedef long long int64_t; |
20263 | #endif | |
542f9784 | 20264 | #endif |
9ad2e3f3 | 20265 | #endif |
01473a49 | 20266 | #ifndef _UINT64_T |
20267 | #define _UINT64_T | |
9ad2e3f3 | 20268 | #ifndef uint64_t |
01473a49 | 20269 | typedef unsigned long long uint64_t; |
20270 | #endif | |
9ad2e3f3 | 20271 | #endif |
01473a49 | 20272 | |
20273 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
20274 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
20275 | does not implement __extension__. But that compiler doesn't define | |
20276 | __GNUC_MINOR__. */ | |
20277 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
20278 | # define __extension__ | |
20279 | # endif | |
20280 | ||
20281 | # ifndef _INT64_T | |
20282 | # define _INT64_T | |
9ad2e3f3 | 20283 | # ifndef int64_t |
01473a49 | 20284 | __extension__ typedef long long int64_t; |
20285 | # endif | |
9ad2e3f3 | 20286 | # endif |
01473a49 | 20287 | # ifndef _UINT64_T |
20288 | # define _UINT64_T | |
9ad2e3f3 | 20289 | # ifndef uint64_t |
01473a49 | 20290 | __extension__ typedef unsigned long long uint64_t; |
20291 | # endif | |
9ad2e3f3 | 20292 | # endif |
01473a49 | 20293 | |
20294 | #elif !defined __STRICT_ANSI__ | |
20295 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
20296 | ||
20297 | # ifndef _INT64_T | |
20298 | # define _INT64_T | |
9ad2e3f3 | 20299 | # ifndef int64_t |
01473a49 | 20300 | typedef __int64 int64_t; |
20301 | # endif | |
9ad2e3f3 | 20302 | # endif |
01473a49 | 20303 | # ifndef _UINT64_T |
20304 | # define _UINT64_T | |
9ad2e3f3 | 20305 | # ifndef uint64_t |
01473a49 | 20306 | typedef unsigned __int64 uint64_t; |
20307 | # endif | |
9ad2e3f3 | 20308 | # endif |
01473a49 | 20309 | # endif /* compiler */ |
20310 | ||
20311 | #endif /* ANSI version */ | |
20312 | EOF | |
20313 | fi | |
20314 | ||
20315 | # ------------- done int64_t types, emit intptr types ------------ | |
20316 | if test "$ac_cv_type_uintptr_t" != yes; then | |
20317 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20318 | ||
20319 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
542f9784 | 20320 | #ifndef __uintptr_t_defined |
9ad2e3f3 | 20321 | #ifndef uintptr_t |
01473a49 | 20322 | typedef u$acx_cv_type_intptr_t uintptr_t; |
542f9784 | 20323 | #endif |
9ad2e3f3 | 20324 | #endif |
542f9784 | 20325 | #ifndef __intptr_t_defined |
9ad2e3f3 | 20326 | #ifndef intptr_t |
01473a49 | 20327 | typedef $acx_cv_type_intptr_t intptr_t; |
542f9784 | 20328 | #endif |
9ad2e3f3 | 20329 | #endif |
01473a49 | 20330 | EOF |
20331 | fi | |
20332 | ||
20333 | # ------------- done intptr types, emit int_least types ------------ | |
20334 | if test "$ac_cv_type_int_least32_t" != yes; then | |
20335 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20336 | ||
20337 | /* Define int_least types */ | |
20338 | typedef int8_t int_least8_t; | |
20339 | typedef int16_t int_least16_t; | |
20340 | typedef int32_t int_least32_t; | |
20341 | #ifdef _INT64_T | |
20342 | typedef int64_t int_least64_t; | |
20343 | #endif | |
20344 | ||
20345 | typedef uint8_t uint_least8_t; | |
20346 | typedef uint16_t uint_least16_t; | |
20347 | typedef uint32_t uint_least32_t; | |
20348 | #ifdef _UINT64_T | |
20349 | typedef uint64_t uint_least64_t; | |
20350 | #endif | |
20351 | EOF | |
20352 | fi | |
20353 | ||
20354 | # ------------- done intptr types, emit int_fast types ------------ | |
20355 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
20356 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20357 | ||
20358 | /* Define int_fast types. short is often slow */ | |
20359 | typedef int8_t int_fast8_t; | |
20360 | typedef int int_fast16_t; | |
20361 | typedef int32_t int_fast32_t; | |
20362 | #ifdef _INT64_T | |
20363 | typedef int64_t int_fast64_t; | |
20364 | #endif | |
20365 | ||
20366 | typedef uint8_t uint_fast8_t; | |
20367 | typedef unsigned int uint_fast16_t; | |
20368 | typedef uint32_t uint_fast32_t; | |
20369 | #ifdef _UINT64_T | |
20370 | typedef uint64_t uint_fast64_t; | |
20371 | #endif | |
20372 | EOF | |
20373 | fi | |
20374 | ||
20375 | if test "$ac_cv_type_uintmax_t" != yes; then | |
20376 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20377 | ||
20378 | /* Define intmax based on what we found */ | |
9ad2e3f3 | 20379 | #ifndef intmax_t |
01473a49 | 20380 | #ifdef _INT64_T |
20381 | typedef int64_t intmax_t; | |
20382 | #else | |
20383 | typedef long intmax_t; | |
20384 | #endif | |
9ad2e3f3 | 20385 | #endif |
20386 | #ifndef uintmax_t | |
01473a49 | 20387 | #ifdef _UINT64_T |
20388 | typedef uint64_t uintmax_t; | |
20389 | #else | |
20390 | typedef unsigned long uintmax_t; | |
20391 | #endif | |
9ad2e3f3 | 20392 | #endif |
01473a49 | 20393 | EOF |
20394 | fi | |
20395 | ||
20396 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20397 | ||
20398 | #endif /* GCC_GENERATED_STDINT_H */ | |
20399 | EOF | |
20400 | ||
20401 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
20402 | rm -f tmp-stdint.h | |
20403 | else | |
20404 | mv -f tmp-stdint.h gstdint.h | |
20405 | fi | |
20406 | ||
1e8e9920 | 20407 | ;; |
cd9a469c | 20408 | |
1e8e9920 | 20409 | esac |
cd9a469c | 20410 | done # for ac_tag |
1e8e9920 | 20411 | |
1e8e9920 | 20412 | |
cd9a469c | 20413 | as_fn_exit 0 |
1e8e9920 | 20414 | _ACEOF |
1e8e9920 | 20415 | ac_clean_files=$ac_clean_files_save |
20416 | ||
cd9a469c | 20417 | test $ac_write_fail = 0 || |
f00f02a3 | 20418 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 20419 | |
1e8e9920 | 20420 | |
20421 | # configure is writing to config.log, and then calls config.status. | |
20422 | # config.status does its own redirection, appending to config.log. | |
20423 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20424 | # by configure, so config.status won't be able to write to it; its | |
20425 | # output is simply discarded. So we exec the FD to /dev/null, | |
20426 | # effectively closing config.log, so it can be properly (re)opened and | |
20427 | # appended to by config.status. When coming back to configure, we | |
20428 | # need to make the FD available again. | |
20429 | if test "$no_create" != yes; then | |
20430 | ac_cs_success=: | |
20431 | ac_config_status_args= | |
20432 | test "$silent" = yes && | |
20433 | ac_config_status_args="$ac_config_status_args --quiet" | |
20434 | exec 5>/dev/null | |
20435 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20436 | exec 5>>config.log | |
20437 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20438 | # would make configure fail if this is the last instruction. | |
f00f02a3 | 20439 | $ac_cs_success || as_fn_exit 1 |
cd9a469c | 20440 | fi |
20441 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20443 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1e8e9920 | 20444 | fi |
20445 |